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.



3879
3880
3881
# File 'lib/google/apis/androidpublisher_v3/classes.rb', line 3879

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

Instance Attribute Details

#ai_generated_stateString

Optional. Whether the image was generated by AI. Attested by the developer. Corresponds to the JSON property aiGeneratedState

Returns:

  • (String)


3857
3858
3859
# File 'lib/google/apis/androidpublisher_v3/classes.rb', line 3857

def ai_generated_state
  @ai_generated_state
end

#idString

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

Returns:

  • (String)


3862
3863
3864
# File 'lib/google/apis/androidpublisher_v3/classes.rb', line 3862

def id
  @id
end

#sha1String

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

Returns:

  • (String)


3867
3868
3869
# File 'lib/google/apis/androidpublisher_v3/classes.rb', line 3867

def sha1
  @sha1
end

#sha256String

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

Returns:

  • (String)


3872
3873
3874
# File 'lib/google/apis/androidpublisher_v3/classes.rb', line 3872

def sha256
  @sha256
end

#urlString

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

Returns:

  • (String)


3877
3878
3879
# File 'lib/google/apis/androidpublisher_v3/classes.rb', line 3877

def url
  @url
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



3884
3885
3886
3887
3888
3889
3890
# File 'lib/google/apis/androidpublisher_v3/classes.rb', line 3884

def update!(**args)
  @ai_generated_state = args[:ai_generated_state] if args.key?(:ai_generated_state)
  @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