Class: Google::Apis::StsV1::GoogleIdentityStsV1IntrospectTokenRequest

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

Request message for IntrospectToken.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleIdentityStsV1IntrospectTokenRequest

Returns a new instance of GoogleIdentityStsV1IntrospectTokenRequest.



363
364
365
# File 'lib/google/apis/sts_v1/classes.rb', line 363

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

Instance Attribute Details

#tokenString

Required. The OAuth 2.0 security token issued by the Security Token Service API. Corresponds to the JSON property token

Returns:

  • (String)


355
356
357
# File 'lib/google/apis/sts_v1/classes.rb', line 355

def token
  @token
end

#token_type_hintString

Optional. The type of the given token. Supported values are urn:ietf:params: oauth:token-type:access_token and access_token. Corresponds to the JSON property tokenTypeHint

Returns:

  • (String)


361
362
363
# File 'lib/google/apis/sts_v1/classes.rb', line 361

def token_type_hint
  @token_type_hint
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



368
369
370
371
# File 'lib/google/apis/sts_v1/classes.rb', line 368

def update!(**args)
  @token = args[:token] if args.key?(:token)
  @token_type_hint = args[:token_type_hint] if args.key?(:token_type_hint)
end