Class: Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1ToolAuthenticationBearerTokenConfig
- Inherits:
-
Object
- Object
- Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1ToolAuthenticationBearerTokenConfig
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/dialogflow_v2beta1/classes.rb,
lib/google/apis/dialogflow_v2beta1/representations.rb,
lib/google/apis/dialogflow_v2beta1/representations.rb
Overview
Config for authentication using bearer token.
Instance Attribute Summary collapse
-
#secret_version_for_token ⇒ String
Optional.
-
#token ⇒ String
Optional.
Instance Method Summary collapse
-
#initialize(**args) ⇒ GoogleCloudDialogflowV2beta1ToolAuthenticationBearerTokenConfig
constructor
A new instance of GoogleCloudDialogflowV2beta1ToolAuthenticationBearerTokenConfig.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ GoogleCloudDialogflowV2beta1ToolAuthenticationBearerTokenConfig
Returns a new instance of GoogleCloudDialogflowV2beta1ToolAuthenticationBearerTokenConfig.
23592 23593 23594 |
# File 'lib/google/apis/dialogflow_v2beta1/classes.rb', line 23592 def initialize(**args) update!(**args) end |
Instance Attribute Details
#secret_version_for_token ⇒ String
Optional. The name of the SecretManager secret version resource storing the
Bearer token. If this field is set, the token field will be ignored. Format:
projects/project/secrets/secret/versions/version`
Corresponds to the JSON propertysecretVersionForToken`
23582 23583 23584 |
# File 'lib/google/apis/dialogflow_v2beta1/classes.rb', line 23582 def secret_version_for_token @secret_version_for_token end |
#token ⇒ String
Optional. The text token appended to the text Bearer to the request
Authorization header. Session parameters reference can be used to pass the
token dynamically, e.g. $session.params.parameter-id.
Corresponds to the JSON property token
23590 23591 23592 |
# File 'lib/google/apis/dialogflow_v2beta1/classes.rb', line 23590 def token @token end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
23597 23598 23599 23600 |
# File 'lib/google/apis/dialogflow_v2beta1/classes.rb', line 23597 def update!(**args) @secret_version_for_token = args[:secret_version_for_token] if args.key?(:secret_version_for_token) @token = args[:token] if args.key?(:token) end |