Class: Google::Apis::DisplayvideoV4::ImageAsset
- Inherits:
-
Object
- Object
- Google::Apis::DisplayvideoV4::ImageAsset
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/displayvideo_v4/classes.rb,
lib/google/apis/displayvideo_v4/representations.rb,
lib/google/apis/displayvideo_v4/representations.rb
Overview
Meta data of an image asset.
Instance Attribute Summary collapse
-
#asset_id ⇒ Fixnum
Required.
-
#file_size ⇒ Fixnum
Output only.
-
#full_size ⇒ Google::Apis::DisplayvideoV4::Dimensions
Dimensions.
-
#mime_type ⇒ String
Output only.
Instance Method Summary collapse
-
#initialize(**args) ⇒ ImageAsset
constructor
A new instance of ImageAsset.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ ImageAsset
Returns a new instance of ImageAsset.
8689 8690 8691 |
# File 'lib/google/apis/displayvideo_v4/classes.rb', line 8689 def initialize(**args) update!(**args) end |
Instance Attribute Details
#asset_id ⇒ Fixnum
Required. The unique ID of the asset.
Corresponds to the JSON property assetId
8672 8673 8674 |
# File 'lib/google/apis/displayvideo_v4/classes.rb', line 8672 def asset_id @asset_id end |
#file_size ⇒ Fixnum
Output only. File size of the image asset in bytes.
Corresponds to the JSON property fileSize
8677 8678 8679 |
# File 'lib/google/apis/displayvideo_v4/classes.rb', line 8677 def file_size @file_size end |
#full_size ⇒ Google::Apis::DisplayvideoV4::Dimensions
Dimensions.
Corresponds to the JSON property fullSize
8682 8683 8684 |
# File 'lib/google/apis/displayvideo_v4/classes.rb', line 8682 def full_size @full_size end |
#mime_type ⇒ String
Output only. MIME type of the image asset.
Corresponds to the JSON property mimeType
8687 8688 8689 |
# File 'lib/google/apis/displayvideo_v4/classes.rb', line 8687 def mime_type @mime_type end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
8694 8695 8696 8697 8698 8699 |
# File 'lib/google/apis/displayvideo_v4/classes.rb', line 8694 def update!(**args) @asset_id = args[:asset_id] if args.key?(:asset_id) @file_size = args[:file_size] if args.key?(:file_size) @full_size = args[:full_size] if args.key?(:full_size) @mime_type = args[:mime_type] if args.key?(:mime_type) end |