Class: Google::Apis::AndroidenterpriseV1::DeviceState
- Inherits:
-
Object
- Object
- Google::Apis::AndroidenterpriseV1::DeviceState
- 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
-
#account_state ⇒ String
The state of the Google account on the device.
-
#kind ⇒ String
Corresponds to the JSON property
kind
.
Instance Method Summary collapse
-
#initialize(**args) ⇒ DeviceState
constructor
A new instance of DeviceState.
-
#update!(**args) ⇒ Object
Update properties of this object.
Methods included from Core::JsonObjectSupport
Methods included from Core::Hashable
Constructor Details
#initialize(**args) ⇒ DeviceState
Returns a new instance of DeviceState.
796 797 798 |
# File 'generated/google/apis/androidenterprise_v1/classes.rb', line 796 def initialize(**args) update!(**args) end |
Instance Attribute Details
#account_state ⇒ String
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
789 790 791 |
# File 'generated/google/apis/androidenterprise_v1/classes.rb', line 789 def account_state @account_state end |
#kind ⇒ String
Corresponds to the JSON property kind
794 795 796 |
# File 'generated/google/apis/androidenterprise_v1/classes.rb', line 794 def kind @kind end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
801 802 803 804 |
# File 'generated/google/apis/androidenterprise_v1/classes.rb', line 801 def update!(**args) @account_state = args[:account_state] if args.key?(:account_state) @kind = args[:kind] if args.key?(:kind) end |