Class: Google::Apis::AndroidenterpriseV1::AppVersion
- Inherits:
-
Object
- Object
- Google::Apis::AndroidenterpriseV1::AppVersion
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/androidenterprise_v1/classes.rb,
lib/google/apis/androidenterprise_v1/representations.rb,
lib/google/apis/androidenterprise_v1/representations.rb
Overview
This represents a single version of the app.
Instance Attribute Summary collapse
-
#is_production ⇒ Boolean
(also: #is_production?)
True if this version is a production APK.
-
#target_sdk_version ⇒ Fixnum
The SDK version this app targets, as specified in the manifest of the APK.
-
#track ⇒ String
Deprecated, use trackId instead.
-
#track_id ⇒ Array<String>
Track ids that the app version is published in.
-
#version_code ⇒ Fixnum
Unique increasing identifier for the app version.
-
#version_string ⇒ String
The string used in the Play store by the app developer to identify the version.
Instance Method Summary collapse
-
#initialize(**args) ⇒ AppVersion
constructor
A new instance of AppVersion.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ AppVersion
Returns a new instance of AppVersion.
506 507 508 |
# File 'lib/google/apis/androidenterprise_v1/classes.rb', line 506 def initialize(**args) update!(**args) end |
Instance Attribute Details
#is_production ⇒ Boolean Also known as: is_production?
True if this version is a production APK.
Corresponds to the JSON property isProduction
473 474 475 |
# File 'lib/google/apis/androidenterprise_v1/classes.rb', line 473 def is_production @is_production end |
#target_sdk_version ⇒ Fixnum
The SDK version this app targets, as specified in the manifest of the APK. See
http://developer.android.com/guide/topics/manifest/uses-sdk-element.html
Corresponds to the JSON property targetSdkVersion
480 481 482 |
# File 'lib/google/apis/androidenterprise_v1/classes.rb', line 480 def target_sdk_version @target_sdk_version end |
#track ⇒ String
Deprecated, use trackId instead.
Corresponds to the JSON property track
485 486 487 |
# File 'lib/google/apis/androidenterprise_v1/classes.rb', line 485 def track @track end |
#track_id ⇒ Array<String>
Track ids that the app version is published in. Replaces the track field (
deprecated), but doesn't include the production track (see isProduction
instead).
Corresponds to the JSON property trackId
492 493 494 |
# File 'lib/google/apis/androidenterprise_v1/classes.rb', line 492 def track_id @track_id end |
#version_code ⇒ Fixnum
Unique increasing identifier for the app version.
Corresponds to the JSON property versionCode
497 498 499 |
# File 'lib/google/apis/androidenterprise_v1/classes.rb', line 497 def version_code @version_code end |
#version_string ⇒ String
The string used in the Play store by the app developer to identify the version.
The string is not necessarily unique or localized (for example, the string
could be "1.4").
Corresponds to the JSON property versionString
504 505 506 |
# File 'lib/google/apis/androidenterprise_v1/classes.rb', line 504 def version_string @version_string end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
511 512 513 514 515 516 517 518 |
# File 'lib/google/apis/androidenterprise_v1/classes.rb', line 511 def update!(**args) @is_production = args[:is_production] if args.key?(:is_production) @target_sdk_version = args[:target_sdk_version] if args.key?(:target_sdk_version) @track = args[:track] if args.key?(:track) @track_id = args[:track_id] if args.key?(:track_id) @version_code = args[:version_code] if args.key?(:version_code) @version_string = args[:version_string] if args.key?(:version_string) end |