Class: Google::Apis::AdminDirectoryV1::Token

Inherits:
Object
  • Object
show all
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

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ Token

Returns a new instance of Token.



4331
4332
4333
# File 'lib/google/apis/admin_directory_v1/classes.rb', line 4331

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#anonymousBoolean 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

Returns:

  • (Boolean)


4291
4292
4293
# File 'lib/google/apis/admin_directory_v1/classes.rb', line 4291

def anonymous
  @anonymous
end

#client_idString

The Client ID of the application the token is issued to. Corresponds to the JSON property clientId

Returns:

  • (String)


4297
4298
4299
# File 'lib/google/apis/admin_directory_v1/classes.rb', line 4297

def client_id
  @client_id
end

#display_textString

The displayable name of the application the token is issued to. Corresponds to the JSON property displayText

Returns:

  • (String)


4302
4303
4304
# File 'lib/google/apis/admin_directory_v1/classes.rb', line 4302

def display_text
  @display_text
end

#etagString

ETag of the resource. Corresponds to the JSON property etag

Returns:

  • (String)


4307
4308
4309
# File 'lib/google/apis/admin_directory_v1/classes.rb', line 4307

def etag
  @etag
end

#kindString

The type of the API resource. This is always admin#directory#token. Corresponds to the JSON property kind

Returns:

  • (String)


4312
4313
4314
# File 'lib/google/apis/admin_directory_v1/classes.rb', line 4312

def kind
  @kind
end

#native_appBoolean 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

Returns:

  • (Boolean)


4318
4319
4320
# File 'lib/google/apis/admin_directory_v1/classes.rb', line 4318

def native_app
  @native_app
end

#scopesArray<String>

A list of authorization scopes the application is granted. Corresponds to the JSON property scopes

Returns:

  • (Array<String>)


4324
4325
4326
# File 'lib/google/apis/admin_directory_v1/classes.rb', line 4324

def scopes
  @scopes
end

#user_keyString

The unique ID of the user that issued the token. Corresponds to the JSON property userKey

Returns:

  • (String)


4329
4330
4331
# File 'lib/google/apis/admin_directory_v1/classes.rb', line 4329

def user_key
  @user_key
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



4336
4337
4338
4339
4340
4341
4342
4343
4344
4345
# File 'lib/google/apis/admin_directory_v1/classes.rb', line 4336

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