Class: Google::Apis::StsV1::GoogleIdentityStsV1IntrospectTokenResponse
- Inherits:
-
Object
- Object
- Google::Apis::StsV1::GoogleIdentityStsV1IntrospectTokenResponse
- 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
-
#active ⇒ Boolean
(also: #active?)
A boolean value that indicates whether the provided access token is currently active.
-
#client_id ⇒ String
The client identifier for the OAuth 2.0 client that requested the provided token.
-
#exp ⇒ Fixnum
The expiration timestamp, measured in the number of seconds since January 1 1970 UTC, indicating when this token will expire.
-
#iat ⇒ Fixnum
The issued timestamp, measured in the number of seconds since January 1 1970 UTC, indicating when this token was originally issued.
-
#iss ⇒ String
The issuer of the provided token.
-
#scope ⇒ String
A list of scopes associated with the provided token.
-
#sub ⇒ String
The unique user ID associated with the provided token.
-
#username ⇒ String
The human-readable identifier for the token principal subject.
Instance Method Summary collapse
-
#initialize(**args) ⇒ GoogleIdentityStsV1IntrospectTokenResponse
constructor
A new instance of GoogleIdentityStsV1IntrospectTokenResponse.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ GoogleIdentityStsV1IntrospectTokenResponse
Returns a new instance of GoogleIdentityStsV1IntrospectTokenResponse.
582 583 584 |
# File 'lib/google/apis/sts_v1/classes.rb', line 582 def initialize(**args) update!(**args) end |
Instance Attribute Details
#active ⇒ Boolean Also known as: active?
A boolean value that indicates whether the provided access token is currently
active.
Corresponds to the JSON property active
532 533 534 |
# File 'lib/google/apis/sts_v1/classes.rb', line 532 def active @active end |
#client_id ⇒ String
The client identifier for the OAuth 2.0 client that requested the provided
token.
Corresponds to the JSON property client_id
539 540 541 |
# File 'lib/google/apis/sts_v1/classes.rb', line 539 def client_id @client_id end |
#exp ⇒ Fixnum
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
545 546 547 |
# File 'lib/google/apis/sts_v1/classes.rb', line 545 def exp @exp end |
#iat ⇒ Fixnum
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
551 552 553 |
# File 'lib/google/apis/sts_v1/classes.rb', line 551 def iat @iat end |
#iss ⇒ String
The issuer of the provided token.
Corresponds to the JSON property iss
556 557 558 |
# File 'lib/google/apis/sts_v1/classes.rb', line 556 def iss @iss end |
#scope ⇒ String
A list of scopes associated with the provided token.
Corresponds to the JSON property scope
561 562 563 |
# File 'lib/google/apis/sts_v1/classes.rb', line 561 def scope @scope end |
#sub ⇒ String
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
569 570 571 |
# File 'lib/google/apis/sts_v1/classes.rb', line 569 def sub @sub end |
#username ⇒ String
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/. If the provided
token is associated with a workforce pool, this field contains a value in the
following format: principal://iam.googleapis.com/locations/global/
workforcePools//subject/.
Corresponds to the JSON property username
580 581 582 |
# File 'lib/google/apis/sts_v1/classes.rb', line 580 def username @username end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
587 588 589 590 591 592 593 594 595 596 |
# File 'lib/google/apis/sts_v1/classes.rb', line 587 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 |