Class: Google::Apis::AdminDirectoryV1::Token
- Inherits:
- 
      Object
      
        - Object
- Google::Apis::AdminDirectoryV1::Token
 
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- generated/google/apis/admin_directory_v1/classes.rb,
 generated/google/apis/admin_directory_v1/representations.rb,
 generated/google/apis/admin_directory_v1/representations.rb
Overview
JSON template for token resource in Directory API.
Instance Attribute Summary collapse
- 
  
    
      #anonymous  ⇒ Boolean 
    
    
      (also: #anonymous?)
    
  
  
  
  
    
    
  
  
  
  
  
  
    Whether the application is registered with Google. 
- 
  
    
      #client_id  ⇒ String 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    The Client ID of the application the token is issued to. 
- 
  
    
      #display_text  ⇒ String 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    The displayable name of the application the token is issued to. 
- 
  
    
      #etag  ⇒ String 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    ETag of the resource. 
- 
  
    
      #kind  ⇒ String 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    The type of the API resource. 
- 
  
    
      #native_app  ⇒ Boolean 
    
    
      (also: #native_app?)
    
  
  
  
  
    
    
  
  
  
  
  
  
    Whether the token is issued to an installed application. 
- 
  
    
      #scopes  ⇒ Array<String> 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    A list of authorization scopes the application is granted. 
- 
  
    
      #user_key  ⇒ String 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    The unique ID of the user that issued the token. 
Instance Method Summary collapse
- 
  
    
      #initialize(**args)  ⇒ Token 
    
    
  
  
  
    constructor
  
  
  
  
  
  
  
    A new instance of Token. 
- 
  
    
      #update!(**args)  ⇒ Object 
    
    
  
  
  
  
  
  
  
  
  
    Update properties of this object. 
Methods included from Core::JsonObjectSupport
Methods included from Core::Hashable
Constructor Details
#initialize(**args) ⇒ Token
Returns a new instance of Token
| 2751 2752 2753 | # File 'generated/google/apis/admin_directory_v1/classes.rb', line 2751 def initialize(**args) update!(**args) end | 
Instance Attribute Details
#anonymous ⇒ Boolean Also known as: anonymous?
Whether the application is registered with Google. The value is true if the
application has an anonymous Client ID.
Corresponds to the JSON property anonymous
| 2711 2712 2713 | # File 'generated/google/apis/admin_directory_v1/classes.rb', line 2711 def anonymous @anonymous end | 
#client_id ⇒ String
The Client ID of the application the token is issued to.
Corresponds to the JSON property clientId
| 2717 2718 2719 | # File 'generated/google/apis/admin_directory_v1/classes.rb', line 2717 def client_id @client_id end | 
#display_text ⇒ String
The displayable name of the application the token is issued to.
Corresponds to the JSON property displayText
| 2722 2723 2724 | # File 'generated/google/apis/admin_directory_v1/classes.rb', line 2722 def display_text @display_text end | 
#etag ⇒ String
ETag of the resource.
Corresponds to the JSON property etag
| 2727 2728 2729 | # File 'generated/google/apis/admin_directory_v1/classes.rb', line 2727 def etag @etag end | 
#kind ⇒ String
The type of the API resource. This is always admin#directory#token.
Corresponds to the JSON property kind
| 2732 2733 2734 | # File 'generated/google/apis/admin_directory_v1/classes.rb', line 2732 def kind @kind end | 
#native_app ⇒ Boolean Also known as: native_app?
Whether the token is issued to an installed application. The value is true if
the application is installed to a desktop or mobile device.
Corresponds to the JSON property nativeApp
| 2738 2739 2740 | # File 'generated/google/apis/admin_directory_v1/classes.rb', line 2738 def native_app @native_app end | 
#scopes ⇒ Array<String>
A list of authorization scopes the application is granted.
Corresponds to the JSON property scopes
| 2744 2745 2746 | # File 'generated/google/apis/admin_directory_v1/classes.rb', line 2744 def scopes @scopes end | 
#user_key ⇒ String
The unique ID of the user that issued the token.
Corresponds to the JSON property userKey
| 2749 2750 2751 | # File 'generated/google/apis/admin_directory_v1/classes.rb', line 2749 def user_key @user_key end | 
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
| 2756 2757 2758 2759 2760 2761 2762 2763 2764 2765 | # File 'generated/google/apis/admin_directory_v1/classes.rb', line 2756 def update!(**args) @anonymous = args[:anonymous] if args.key?(:anonymous) @client_id = args[:client_id] if args.key?(:client_id) @display_text = args[:display_text] if args.key?(:display_text) @etag = args[:etag] if args.key?(:etag) @kind = args[:kind] if args.key?(:kind) @native_app = args[:native_app] if args.key?(:native_app) @scopes = args[:scopes] if args.key?(:scopes) @user_key = args[:user_key] if args.key?(:user_key) end |