Class: Google::Apis::AdminDirectoryV1::Token
- Inherits:
-
Object
- Object
- Google::Apis::AdminDirectoryV1::Token
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/admin_directory_v1/classes.rb,
lib/google/apis/admin_directory_v1/representations.rb,
lib/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.
Constructor Details
#initialize(**args) ⇒ Token
Returns a new instance of Token.
4395 4396 4397 |
# File 'lib/google/apis/admin_directory_v1/classes.rb', line 4395 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
4355 4356 4357 |
# File 'lib/google/apis/admin_directory_v1/classes.rb', line 4355 def anonymous @anonymous end |
#client_id ⇒ String
The Client ID of the application the token is issued to.
Corresponds to the JSON property clientId
4361 4362 4363 |
# File 'lib/google/apis/admin_directory_v1/classes.rb', line 4361 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
4366 4367 4368 |
# File 'lib/google/apis/admin_directory_v1/classes.rb', line 4366 def display_text @display_text end |
#etag ⇒ String
ETag of the resource.
Corresponds to the JSON property etag
4371 4372 4373 |
# File 'lib/google/apis/admin_directory_v1/classes.rb', line 4371 def etag @etag end |
#kind ⇒ String
The type of the API resource. This is always admin#directory#token
.
Corresponds to the JSON property kind
4376 4377 4378 |
# File 'lib/google/apis/admin_directory_v1/classes.rb', line 4376 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
4382 4383 4384 |
# File 'lib/google/apis/admin_directory_v1/classes.rb', line 4382 def native_app @native_app end |
#scopes ⇒ Array<String>
A list of authorization scopes the application is granted.
Corresponds to the JSON property scopes
4388 4389 4390 |
# File 'lib/google/apis/admin_directory_v1/classes.rb', line 4388 def scopes @scopes end |
#user_key ⇒ String
The unique ID of the user that issued the token.
Corresponds to the JSON property userKey
4393 4394 4395 |
# File 'lib/google/apis/admin_directory_v1/classes.rb', line 4393 def user_key @user_key end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
4400 4401 4402 4403 4404 4405 4406 4407 4408 4409 |
# File 'lib/google/apis/admin_directory_v1/classes.rb', line 4400 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 |