class Google::Apis::PolyV1::Format

The same asset can be represented in different formats, for example, a [ WaveFront .obj](//en.wikipedia.org/wiki/Wavefront_.obj_file) file with its corresponding .mtl file or a [Khronos glTF](//www.khronos.org/gltf) file with its corresponding .glb binary data. A format refers to a specific representation of an asset and contains all information needed to retrieve and describe this representation.

Attributes

format_complexity[RW]

Information on the complexity of this Format. Corresponds to the JSON property `formatComplexity` @return [Google::Apis::PolyV1::FormatComplexity]

format_type[RW]

A short string that identifies the format type of this representation. Possible values are: `FBX`, `GLTF`, `GLTF2`, `OBJ`, and `TILT`. Corresponds to the JSON property `formatType` @return [String]

resources[RW]

A list of dependencies of the root element. May include, but is not limited to, materials, textures, and shader programs. Corresponds to the JSON property `resources` @return [Array<Google::Apis::PolyV1::File>]

root[RW]

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

Public Class Methods

new(**args) click to toggle source
# File lib/google/apis/poly_v1/classes.rb, line 237
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 242
def update!(**args)
  @format_complexity = args[:format_complexity] if args.key?(:format_complexity)
  @format_type = args[:format_type] if args.key?(:format_type)
  @resources = args[:resources] if args.key?(:resources)
  @root = args[:root] if args.key?(:root)
end