class Google::Apis::AdminDirectoryV1::Token

JSON template for token resource in Directory API.

Attributes

anonymous[RW]

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` @return [Boolean]

anonymous?[RW]

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` @return [Boolean]

client_id[RW]

The Client ID of the application the token is issued to. Corresponds to the JSON property `clientId` @return [String]

display_text[RW]

The displayable name of the application the token is issued to. Corresponds to the JSON property `displayText` @return [String]

etag[RW]

ETag of the resource. Corresponds to the JSON property `etag` @return [String]

kind[RW]

The type of the API resource. This is always admin#directory#token. Corresponds to the JSON property `kind` @return [String]

native_app[RW]

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` @return [Boolean]

native_app?[RW]

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` @return [Boolean]

scopes[RW]

A list of authorization scopes the application is granted. Corresponds to the JSON property `scopes` @return [Array<String>]

user_key[RW]

The unique ID of the user that issued the token. Corresponds to the JSON property `userKey` @return [String]

Public Class Methods

new(**args) click to toggle source
# File generated/google/apis/admin_directory_v1/classes.rb, line 2169
def initialize(**args)
   update!(**args)
end

Public Instance Methods

update!(**args) click to toggle source

Update properties of this object

# File generated/google/apis/admin_directory_v1/classes.rb, line 2174
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