Class: Google::Apis::AndroidpublisherV3::Image

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Core::JsonObjectSupport

#to_json

Methods included from Core::Hashable

process_value, #to_h

Constructor Details

#initialize(**args) ⇒ Image

Returns a new instance of Image.



735
736
737
# File 'generated/google/apis/androidpublisher_v3/classes.rb', line 735

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

Instance Attribute Details

#idString

A unique id representing this image. Corresponds to the JSON property id

Returns:

  • (String)


718
719
720
# File 'generated/google/apis/androidpublisher_v3/classes.rb', line 718

def id
  @id
end

#sha1String

A sha1 hash of the image that was uploaded. Corresponds to the JSON property sha1

Returns:

  • (String)


723
724
725
# File 'generated/google/apis/androidpublisher_v3/classes.rb', line 723

def sha1
  @sha1
end

#sha256String

A sha256 hash of the image that was uploaded. Corresponds to the JSON property sha256

Returns:

  • (String)


728
729
730
# File 'generated/google/apis/androidpublisher_v3/classes.rb', line 728

def sha256
  @sha256
end

#urlString

A URL that will serve a preview of the image. Corresponds to the JSON property url

Returns:

  • (String)


733
734
735
# File 'generated/google/apis/androidpublisher_v3/classes.rb', line 733

def url
  @url
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



740
741
742
743
744
745
# File 'generated/google/apis/androidpublisher_v3/classes.rb', line 740

def update!(**args)
  @id = args[:id] if args.key?(:id)
  @sha1 = args[:sha1] if args.key?(:sha1)
  @sha256 = args[:sha256] if args.key?(:sha256)
  @url = args[:url] if args.key?(:url)
end