class Google::Apis::PolyV1::Asset

Represents and describes an asset in the Poly library. An asset is a 3D model or scene created using [Tilt Brush](//www.tiltbrush.com), [Blocks](//vr.google. com/blocks/), or any 3D program that produces a file that can be upload to Poly.

Attributes

author_name[RW]

The author's publicly visible name. Use this name when giving credit to the author. For more information, see [Licensing](/poly/discover/licensing). Corresponds to the JSON property `authorName` @return [String]

create_time[RW]

For published assets, the time when the asset was published. For unpublished assets, the time when the asset was created. Corresponds to the JSON property `createTime` @return [String]

description[RW]

The human-readable description, set by the asset's author. Corresponds to the JSON property `description` @return [String]

display_name[RW]

The human-readable name, set by the asset's author. Corresponds to the JSON property `displayName` @return [String]

formats[RW]

A list of Formats where each format describes one representation of the asset. Corresponds to the JSON property `formats` @return [Array<Google::Apis::PolyV1::Format>]

is_curated[RW]

Whether this asset has been curated by the Poly team. Corresponds to the JSON property `isCurated` @return [Boolean]

is_curated?[RW]

Whether this asset has been curated by the Poly team. Corresponds to the JSON property `isCurated` @return [Boolean]

license[RW]

The license under which the author has made the asset available for use, if any. Corresponds to the JSON property `license` @return [String]

metadata[RW]

Application-defined opaque metadata for this asset. This field is only returned when querying for the signed-in user's own assets, not for public assets. This string is limited to 1K chars. It is up to the creator of the asset to define the format for this string (for example, JSON). Corresponds to the JSON property `metadata` @return [String]

name[RW]

The unique identifier for the asset in the form: `assets/`ASSET_ID“. Corresponds to the JSON property `name` @return [String]

presentation_params[RW]

Hints for displaying the asset, based on information available when the asset was uploaded. Corresponds to the JSON property `presentationParams` @return [Google::Apis::PolyV1::PresentationParams]

remix_info[RW]

Info about the sources of this asset (i.e. assets that were remixed to create this asset). Corresponds to the JSON property `remixInfo` @return [Google::Apis::PolyV1::RemixInfo]

thumbnail[RW]

Represents a file in Poly, which can be a root, resource, or thumbnail file. Corresponds to the JSON property `thumbnail` @return [Google::Apis::PolyV1::File]

update_time[RW]

The time when the asset was last modified. For published assets, whose contents are immutable, the update time changes only when metadata properties, such as visibility, are updated. Corresponds to the JSON property `updateTime` @return [String]

visibility[RW]

The visibility of the asset and who can access it. Corresponds to the JSON property `visibility` @return [String]

Public Class Methods

new(**args) click to toggle source
# File lib/google/apis/poly_v1/classes.rb, line 113
def initialize(**args)
   update!(**args)
end

Public Instance Methods

update!(**args) click to toggle source

Update properties of this object

# File lib/google/apis/poly_v1/classes.rb, line 118
def update!(**args)
  @author_name = args[:author_name] if args.key?(:author_name)
  @create_time = args[:create_time] if args.key?(:create_time)
  @description = args[:description] if args.key?(:description)
  @display_name = args[:display_name] if args.key?(:display_name)
  @formats = args[:formats] if args.key?(:formats)
  @is_curated = args[:is_curated] if args.key?(:is_curated)
  @license = args[:license] if args.key?(:license)
  @metadata = args[:metadata] if args.key?(:metadata)
  @name = args[:name] if args.key?(:name)
  @presentation_params = args[:presentation_params] if args.key?(:presentation_params)
  @remix_info = args[:remix_info] if args.key?(:remix_info)
  @thumbnail = args[:thumbnail] if args.key?(:thumbnail)
  @update_time = args[:update_time] if args.key?(:update_time)
  @visibility = args[:visibility] if args.key?(:visibility)
end