Class: Google::Apis::AndroidenterpriseV1::AppState

Inherits:
Object
  • Object
show all
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

List of states set by the app.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ AppState

Returns a new instance of AppState.



432
433
434
# File 'lib/google/apis/androidenterprise_v1/classes.rb', line 432

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

Instance Attribute Details

#keyed_app_stateArray<Google::Apis::AndroidenterpriseV1::KeyedAppState>

List of keyed app states. This field will always be present. Corresponds to the JSON property keyedAppState



425
426
427
# File 'lib/google/apis/androidenterprise_v1/classes.rb', line 425

def keyed_app_state
  @keyed_app_state
end

#package_nameString

The package name of the app. This field will always be present. Corresponds to the JSON property packageName

Returns:

  • (String)


430
431
432
# File 'lib/google/apis/androidenterprise_v1/classes.rb', line 430

def package_name
  @package_name
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



437
438
439
440
# File 'lib/google/apis/androidenterprise_v1/classes.rb', line 437

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