Class: Google::Apis::DisplayvideoV3::ImageAsset

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
lib/google/apis/displayvideo_v3/classes.rb,
lib/google/apis/displayvideo_v3/representations.rb,
lib/google/apis/displayvideo_v3/representations.rb

Overview

Meta data of an image asset.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ ImageAsset

Returns a new instance of ImageAsset.



8192
8193
8194
# File 'lib/google/apis/displayvideo_v3/classes.rb', line 8192

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#asset_idFixnum

Required. The unique ID of the asset. Corresponds to the JSON property assetId

Returns:

  • (Fixnum)


8175
8176
8177
# File 'lib/google/apis/displayvideo_v3/classes.rb', line 8175

def asset_id
  @asset_id
end

#file_sizeFixnum

Output only. File size of the image asset in bytes. Corresponds to the JSON property fileSize

Returns:

  • (Fixnum)


8180
8181
8182
# File 'lib/google/apis/displayvideo_v3/classes.rb', line 8180

def file_size
  @file_size
end

#full_sizeGoogle::Apis::DisplayvideoV3::Dimensions

Dimensions. Corresponds to the JSON property fullSize



8185
8186
8187
# File 'lib/google/apis/displayvideo_v3/classes.rb', line 8185

def full_size
  @full_size
end

#mime_typeString

Output only. MIME type of the image asset. Corresponds to the JSON property mimeType

Returns:

  • (String)


8190
8191
8192
# File 'lib/google/apis/displayvideo_v3/classes.rb', line 8190

def mime_type
  @mime_type
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



8197
8198
8199
8200
8201
8202
# File 'lib/google/apis/displayvideo_v3/classes.rb', line 8197

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