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

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

Overview

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

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) ⇒ Variant

Returns a new instance of Variant.


2143
2144
2145
# File 'generated/google/apis/androidpublisher_v3/classes.rb', line 2143

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


2136
2137
2138
# File 'generated/google/apis/androidpublisher_v3/classes.rb', line 2136

def device_spec
  @device_spec
end

#variant_idFixnum

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

Returns:

  • (Fixnum)

2141
2142
2143
# File 'generated/google/apis/androidpublisher_v3/classes.rb', line 2141

def variant_id
  @variant_id
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object


2148
2149
2150
2151
# File 'generated/google/apis/androidpublisher_v3/classes.rb', line 2148

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