class Google::Apis::AdminDirectoryV1::Token
JSON template for token resource in Directory API.
Attributes
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]
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]
The Client ID of the application the token is issued to. Corresponds to the JSON property `clientId` @return [String]
The displayable name of the application the token is issued to. Corresponds to the JSON property `displayText` @return [String]
ETag of the resource. Corresponds to the JSON property `etag` @return [String]
The type of the API resource. This is always admin#directory#token. Corresponds to the JSON property `kind` @return [String]
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]
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]
A list of authorization scopes the application is granted. Corresponds to the JSON property `scopes` @return [Array<String>]
The unique ID of the user that issued the token. Corresponds to the JSON property `userKey` @return [String]
Public Class Methods
# File generated/google/apis/admin_directory_v1/classes.rb, line 2169 def initialize(**args) update!(**args) end
Public Instance Methods
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