Class: Google::Apis::AndroidenterpriseV1::UserToken
- Inherits:
- 
      Object
      
        - Object
- Google::Apis::AndroidenterpriseV1::UserToken
 
- 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
- 
  
    
      #kind  ⇒ String 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    Identifies what kind of resource this is. 
- 
  
    
      #token  ⇒ String 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    The token (activation code) to be entered by the user. 
- 
  
    
      #user_id  ⇒ String 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    The unique ID for the user. 
Instance Method Summary collapse
- 
  
    
      #initialize(**args)  ⇒ UserToken 
    
    
  
  
  
    constructor
  
  
  
  
  
  
  
    A new instance of UserToken. 
- 
  
    
      #update!(**args)  ⇒ Object 
    
    
  
  
  
  
  
  
  
  
  
    Update properties of this object. 
Methods included from Core::JsonObjectSupport
Methods included from Core::Hashable
Constructor Details
#initialize(**args) ⇒ UserToken
Returns a new instance of UserToken
| 2650 2651 2652 | # File 'generated/google/apis/androidenterprise_v1/classes.rb', line 2650 def initialize(**args) update!(**args) end | 
Instance Attribute Details
#kind ⇒ String
Identifies what kind of resource this is. Value: the fixed string "
androidenterprise#userToken".
Corresponds to the JSON property kind
| 2637 2638 2639 | # File 'generated/google/apis/androidenterprise_v1/classes.rb', line 2637 def kind @kind end | 
#token ⇒ String
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
| 2643 2644 2645 | # File 'generated/google/apis/androidenterprise_v1/classes.rb', line 2643 def token @token end | 
#user_id ⇒ String
The unique ID for the user.
Corresponds to the JSON property userId
| 2648 2649 2650 | # File 'generated/google/apis/androidenterprise_v1/classes.rb', line 2648 def user_id @user_id end | 
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
| 2655 2656 2657 2658 2659 | # File 'generated/google/apis/androidenterprise_v1/classes.rb', line 2655 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 |