Class: Google::Apis::PolyV1::File
- Inherits:
-
Object
- Object
- Google::Apis::PolyV1::File
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- generated/google/apis/poly_v1/classes.rb,
generated/google/apis/poly_v1/representations.rb,
generated/google/apis/poly_v1/representations.rb
Overview
Represents a file in Poly, which can be a root, resource, or thumbnail file.
Instance Attribute Summary collapse
-
#content_type ⇒ String
The MIME content-type, such as
image/png
. -
#relative_path ⇒ String
The path of the resource file relative to the root file.
-
#url ⇒ String
The URL where the file data can be retrieved.
Instance Method Summary collapse
-
#initialize(**args) ⇒ File
constructor
A new instance of File.
-
#update!(**args) ⇒ Object
Update properties of this object.
Methods included from Core::JsonObjectSupport
Methods included from Core::Hashable
Constructor Details
#initialize(**args) ⇒ File
Returns a new instance of File
147 148 149 |
# File 'generated/google/apis/poly_v1/classes.rb', line 147 def initialize(**args) update!(**args) end |
Instance Attribute Details
#content_type ⇒ String
The MIME content-type, such as image/png
.
For more information, see
MIME types.
Corresponds to the JSON property contentType
134 135 136 |
# File 'generated/google/apis/poly_v1/classes.rb', line 134 def content_type @content_type end |
#relative_path ⇒ String
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
140 141 142 |
# File 'generated/google/apis/poly_v1/classes.rb', line 140 def relative_path @relative_path end |
#url ⇒ String
The URL where the file data can be retrieved.
Corresponds to the JSON property url
145 146 147 |
# File 'generated/google/apis/poly_v1/classes.rb', line 145 def url @url end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
152 153 154 155 156 |
# File 'generated/google/apis/poly_v1/classes.rb', line 152 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 |