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

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

Overview

An uploaded image. The resource for ImagesService.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ Image

Returns a new instance of Image.



2823
2824
2825
# File 'lib/google/apis/androidpublisher_v3/classes.rb', line 2823

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

Instance Attribute Details

#idString

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

Returns:

  • (String)


2806
2807
2808
# File 'lib/google/apis/androidpublisher_v3/classes.rb', line 2806

def id
  @id
end

#sha1String

A sha1 hash of the image. Corresponds to the JSON property sha1

Returns:

  • (String)


2811
2812
2813
# File 'lib/google/apis/androidpublisher_v3/classes.rb', line 2811

def sha1
  @sha1
end

#sha256String

A sha256 hash of the image. Corresponds to the JSON property sha256

Returns:

  • (String)


2816
2817
2818
# File 'lib/google/apis/androidpublisher_v3/classes.rb', line 2816

def sha256
  @sha256
end

#urlString

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

Returns:

  • (String)


2821
2822
2823
# File 'lib/google/apis/androidpublisher_v3/classes.rb', line 2821

def url
  @url
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



2828
2829
2830
2831
2832
2833
# File 'lib/google/apis/androidpublisher_v3/classes.rb', line 2828

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