Class: Google::Apis::AndroidenterpriseV1::UserToken

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

A UserToken is used by a user when setting up a managed device or profile with their managed Google Play account on a device. When the user enters their email address and token (activation code) the appropriate EMM app can be automatically downloaded.

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

Returns a new instance of UserToken



2654
2655
2656
# File 'generated/google/apis/androidenterprise_v1/classes.rb', line 2654

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

Instance Attribute Details

#kindString

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

Returns:

  • (String)


2641
2642
2643
# File 'generated/google/apis/androidenterprise_v1/classes.rb', line 2641

def kind
  @kind
end

#tokenString

The token (activation code) to be entered by the user. This consists of a sequence of decimal digits. Note that the leading digit may be 0. Corresponds to the JSON property token

Returns:

  • (String)


2647
2648
2649
# File 'generated/google/apis/androidenterprise_v1/classes.rb', line 2647

def token
  @token
end

#user_idString

The unique ID for the user. Corresponds to the JSON property userId

Returns:

  • (String)


2652
2653
2654
# File 'generated/google/apis/androidenterprise_v1/classes.rb', line 2652

def user_id
  @user_id
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



2659
2660
2661
2662
2663
# File 'generated/google/apis/androidenterprise_v1/classes.rb', line 2659

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