Class: Google::Apis::StsV1::GoogleIdentityStsV1IntrospectTokenResponse

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
lib/google/apis/sts_v1/classes.rb,
lib/google/apis/sts_v1/representations.rb,
lib/google/apis/sts_v1/representations.rb

Overview

Response message for IntrospectToken.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleIdentityStsV1IntrospectTokenResponse

Returns a new instance of GoogleIdentityStsV1IntrospectTokenResponse.



282
283
284
# File 'lib/google/apis/sts_v1/classes.rb', line 282

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

Instance Attribute Details

#activeBoolean Also known as: active?

A boolean value that indicates whether the provided access token is currently active. Corresponds to the JSON property active

Returns:

  • (Boolean)


235
236
237
# File 'lib/google/apis/sts_v1/classes.rb', line 235

def active
  @active
end

#client_idString

The client identifier for the OAuth 2.0 client that requested the provided token. Corresponds to the JSON property client_id

Returns:

  • (String)


242
243
244
# File 'lib/google/apis/sts_v1/classes.rb', line 242

def client_id
  @client_id
end

#expFixnum

The expiration timestamp, measured in the number of seconds since January 1 1970 UTC, indicating when this token will expire. Corresponds to the JSON property exp

Returns:

  • (Fixnum)


248
249
250
# File 'lib/google/apis/sts_v1/classes.rb', line 248

def exp
  @exp
end

#iatFixnum

The issued timestamp, measured in the number of seconds since January 1 1970 UTC, indicating when this token was originally issued. Corresponds to the JSON property iat

Returns:

  • (Fixnum)


254
255
256
# File 'lib/google/apis/sts_v1/classes.rb', line 254

def iat
  @iat
end

#issString

The issuer of the provided token. Corresponds to the JSON property iss

Returns:

  • (String)


259
260
261
# File 'lib/google/apis/sts_v1/classes.rb', line 259

def iss
  @iss
end

#scopeString

A list of scopes associated with the provided token. Corresponds to the JSON property scope

Returns:

  • (String)


264
265
266
# File 'lib/google/apis/sts_v1/classes.rb', line 264

def scope
  @scope
end

#subString

The unique user ID associated with the provided token. For Google Accounts, this value is based on the Google Account's user ID. For federated identities, this value is based on the identity pool ID and the value of the mapped google.subject attribute. Corresponds to the JSON property sub

Returns:

  • (String)


272
273
274
# File 'lib/google/apis/sts_v1/classes.rb', line 272

def sub
  @sub
end

#usernameString

The human-readable identifier for the token principal subject. For example, if the provided token is associated with a workload identity pool, this field contains a value in the following format: principal://iam.googleapis.com/ projects//locations/global/workloadIdentityPools//subject/ Corresponds to the JSON property username

Returns:

  • (String)


280
281
282
# File 'lib/google/apis/sts_v1/classes.rb', line 280

def username
  @username
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



287
288
289
290
291
292
293
294
295
296
# File 'lib/google/apis/sts_v1/classes.rb', line 287

def update!(**args)
  @active = args[:active] if args.key?(:active)
  @client_id = args[:client_id] if args.key?(:client_id)
  @exp = args[:exp] if args.key?(:exp)
  @iat = args[:iat] if args.key?(:iat)
  @iss = args[:iss] if args.key?(:iss)
  @scope = args[:scope] if args.key?(:scope)
  @sub = args[:sub] if args.key?(:sub)
  @username = args[:username] if args.key?(:username)
end