Class: Google::Apis::AndroidenterpriseV1::AuthenticationToken

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

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

Instance Method Summary collapse

Methods included from Core::JsonObjectSupport

#to_json

Methods included from Core::Hashable

process_value, #to_h

Constructor Details

#initialize(**args) ⇒ AuthenticationToken

Returns a new instance of AuthenticationToken



399
400
401
# File 'generated/google/apis/androidenterprise_v1/classes.rb', line 399

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

Instance Attribute Details

#kindString

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

Returns:

  • (String)


390
391
392
# File 'generated/google/apis/androidenterprise_v1/classes.rb', line 390

def kind
  @kind
end

#tokenString

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

Returns:

  • (String)


397
398
399
# File 'generated/google/apis/androidenterprise_v1/classes.rb', line 397

def token
  @token
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



404
405
406
407
# File 'generated/google/apis/androidenterprise_v1/classes.rb', line 404

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