Class: Google::Apis::AndroidenterpriseV1::AppVersion

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
generated/google/apis/androidenterprise_v1/classes.rb,
generated/google/apis/androidenterprise_v1/representations.rb,
generated/google/apis/androidenterprise_v1/representations.rb

Overview

This represents a single version of the app.

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

Returns a new instance of AppVersion.


473
474
475
# File 'generated/google/apis/androidenterprise_v1/classes.rb', line 473

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

Instance Attribute Details

#is_productionBoolean Also known as: is_production?

True if this version is a production APK. Corresponds to the JSON property isProduction

Returns:

  • (Boolean)

446
447
448
# File 'generated/google/apis/androidenterprise_v1/classes.rb', line 446

def is_production
  @is_production
end

#trackString

Deprecated, use trackId instead. Corresponds to the JSON property track

Returns:

  • (String)

452
453
454
# File 'generated/google/apis/androidenterprise_v1/classes.rb', line 452

def track
  @track
end

#track_idArray<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

Returns:

  • (Array<String>)

459
460
461
# File 'generated/google/apis/androidenterprise_v1/classes.rb', line 459

def track_id
  @track_id
end

#version_codeFixnum

Unique increasing identifier for the app version. Corresponds to the JSON property versionCode

Returns:

  • (Fixnum)

464
465
466
# File 'generated/google/apis/androidenterprise_v1/classes.rb', line 464

def version_code
  @version_code
end

#version_stringString

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

Returns:

  • (String)

471
472
473
# File 'generated/google/apis/androidenterprise_v1/classes.rb', line 471

def version_string
  @version_string
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object


478
479
480
481
482
483
484
# File 'generated/google/apis/androidenterprise_v1/classes.rb', line 478

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