Class: Google::Apis::AndroidenterpriseV1::DeviceState

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

The state of a user's device, as accessed by the getState and setState methods on device resources.

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

Returns a new instance of DeviceState.



490
491
492
# File 'generated/google/apis/androidenterprise_v1/classes.rb', line 490

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

Instance Attribute Details

#account_stateString

The state of the Google account on the device. "enabled" indicates that the Google account on the device can be used to access Google services (including Google Play), while "disabled" means that it cannot. A new device is initially in the "disabled" state. Corresponds to the JSON property accountState

Returns:

  • (String)


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

def 
  @account_state
end

#kindString

Identifies what kind of resource this is. Value: the fixed string " androidenterprise#deviceState". Corresponds to the JSON property kind

Returns:

  • (String)


488
489
490
# File 'generated/google/apis/androidenterprise_v1/classes.rb', line 488

def kind
  @kind
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



495
496
497
498
# File 'generated/google/apis/androidenterprise_v1/classes.rb', line 495

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