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.



4243
4244
4245
# File 'lib/google/apis/androidpublisher_v3/classes.rb', line 4243

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)


4221
4222
4223
# File 'lib/google/apis/androidpublisher_v3/classes.rb', line 4221

def ai_generated_state
  @ai_generated_state
end

#idString

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

Returns:

  • (String)


4226
4227
4228
# File 'lib/google/apis/androidpublisher_v3/classes.rb', line 4226

def id
  @id
end

#sha1String

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

Returns:

  • (String)


4231
4232
4233
# File 'lib/google/apis/androidpublisher_v3/classes.rb', line 4231

def sha1
  @sha1
end

#sha256String

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

Returns:

  • (String)


4236
4237
4238
# File 'lib/google/apis/androidpublisher_v3/classes.rb', line 4236

def sha256
  @sha256
end

#urlString

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

Returns:

  • (String)


4241
4242
4243
# File 'lib/google/apis/androidpublisher_v3/classes.rb', line 4241

def url
  @url
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



4248
4249
4250
4251
4252
4253
4254
# File 'lib/google/apis/androidpublisher_v3/classes.rb', line 4248

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