Class: Google::Apis::AndroidpublisherV3::Variant

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

APK that is suitable for inclusion in a system image. The resource of SystemApksService.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ Variant

Returns a new instance of Variant.



7338
7339
7340
# File 'lib/google/apis/androidpublisher_v3/classes.rb', line 7338

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

Instance Attribute Details

#device_specGoogle::Apis::AndroidpublisherV3::DeviceSpec

The device spec used to generate a system APK. Corresponds to the JSON property deviceSpec



7326
7327
7328
# File 'lib/google/apis/androidpublisher_v3/classes.rb', line 7326

def device_spec
  @device_spec
end

#optionsGoogle::Apis::AndroidpublisherV3::SystemApkOptions

Options for system APKs. Corresponds to the JSON property options



7331
7332
7333
# File 'lib/google/apis/androidpublisher_v3/classes.rb', line 7331

def options
  @options
end

#variant_idFixnum

Output only. The ID of a previously created system APK variant. Corresponds to the JSON property variantId

Returns:

  • (Fixnum)


7336
7337
7338
# File 'lib/google/apis/androidpublisher_v3/classes.rb', line 7336

def variant_id
  @variant_id
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



7343
7344
7345
7346
7347
# File 'lib/google/apis/androidpublisher_v3/classes.rb', line 7343

def update!(**args)
  @device_spec = args[:device_spec] if args.key?(:device_spec)
  @options = args[:options] if args.key?(:options)
  @variant_id = args[:variant_id] if args.key?(:variant_id)
end