class Google::Apis::PolyV1::File

Represents a file in Poly, which can be a root, resource, or thumbnail file.

Attributes

content_type[RW]

The MIME content-type, such as `image/png`. For more information, see [MIME types](//developer.mozilla.org/en-US/docs/Web/HTTP/Basics_of_HTTP/MIME_types). Corresponds to the JSON property `contentType` @return [String]

relative_path[RW]

The path of the resource file relative to the root file. For root or thumbnail files, this is just the filename. Corresponds to the JSON property `relativePath` @return [String]

url[RW]

The URL where the file data can be retrieved. Corresponds to the JSON property `url` @return [String]

Public Class Methods

new(**args) click to toggle source
# File lib/google/apis/poly_v1/classes.rb, line 194
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 199
def update!(**args)
  @content_type = args[:content_type] if args.key?(:content_type)
  @relative_path = args[:relative_path] if args.key?(:relative_path)
  @url = args[:url] if args.key?(:url)
end