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

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

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

Constructor Details

#initialize(**args) ⇒ AuthenticationToken

Returns a new instance of AuthenticationToken.



553
554
555
# File 'lib/google/apis/androidenterprise_v1/classes.rb', line 553

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

Instance Attribute Details

#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)


551
552
553
# File 'lib/google/apis/androidenterprise_v1/classes.rb', line 551

def token
  @token
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



558
559
560
# File 'lib/google/apis/androidenterprise_v1/classes.rb', line 558

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