Class: Google::Apis::DisplayvideoV2::ImageAsset

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
lib/google/apis/displayvideo_v2/classes.rb,
lib/google/apis/displayvideo_v2/representations.rb,
lib/google/apis/displayvideo_v2/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.



5936
5937
5938
# File 'lib/google/apis/displayvideo_v2/classes.rb', line 5936

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)


5919
5920
5921
# File 'lib/google/apis/displayvideo_v2/classes.rb', line 5919

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)


5924
5925
5926
# File 'lib/google/apis/displayvideo_v2/classes.rb', line 5924

def file_size
  @file_size
end

#full_sizeGoogle::Apis::DisplayvideoV2::Dimensions

Dimensions. Corresponds to the JSON property fullSize



5929
5930
5931
# File 'lib/google/apis/displayvideo_v2/classes.rb', line 5929

def full_size
  @full_size
end

#mime_typeString

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

Returns:

  • (String)


5934
5935
5936
# File 'lib/google/apis/displayvideo_v2/classes.rb', line 5934

def mime_type
  @mime_type
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



5941
5942
5943
5944
5945
5946
# File 'lib/google/apis/displayvideo_v2/classes.rb', line 5941

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