Class: Google::Apis::AndroidenterpriseV1::AuthenticationToken
- Inherits:
-
Object
- Object
- Google::Apis::AndroidenterpriseV1::AuthenticationToken
- 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
An AuthenticationToken is used by the EMM's device policy client on a device to provision the given EMM-managed user on that device.
Instance Attribute Summary collapse
-
#kind ⇒ String
Corresponds to the JSON property
kind
. -
#token ⇒ String
The authentication token to be passed to the device policy client on the device where it can be used to provision the account for which this token was generated.
Instance Method Summary collapse
-
#initialize(**args) ⇒ AuthenticationToken
constructor
A new instance of AuthenticationToken.
-
#update!(**args) ⇒ Object
Update properties of this object.
Methods included from Core::JsonObjectSupport
Methods included from Core::Hashable
Constructor Details
#initialize(**args) ⇒ AuthenticationToken
Returns a new instance of AuthenticationToken.
542 543 544 |
# File 'generated/google/apis/androidenterprise_v1/classes.rb', line 542 def initialize(**args) update!(**args) end |
Instance Attribute Details
#kind ⇒ String
Corresponds to the JSON property kind
533 534 535 |
# File 'generated/google/apis/androidenterprise_v1/classes.rb', line 533 def kind @kind end |
#token ⇒ String
The authentication token to be passed to the device policy client on the
device where it can be used to provision the account for which this token was
generated.
Corresponds to the JSON property token
540 541 542 |
# File 'generated/google/apis/androidenterprise_v1/classes.rb', line 540 def token @token end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
547 548 549 550 |
# File 'generated/google/apis/androidenterprise_v1/classes.rb', line 547 def update!(**args) @kind = args[:kind] if args.key?(:kind) @token = args[:token] if args.key?(:token) end |