Class: Google::Apis::DialogflowV2::GoogleCloudDialogflowV2ToolAuthenticationBearerTokenConfig
- Inherits:
-
Object
- Object
- Google::Apis::DialogflowV2::GoogleCloudDialogflowV2ToolAuthenticationBearerTokenConfig
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/dialogflow_v2/classes.rb,
lib/google/apis/dialogflow_v2/representations.rb,
lib/google/apis/dialogflow_v2/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) ⇒ GoogleCloudDialogflowV2ToolAuthenticationBearerTokenConfig
constructor
A new instance of GoogleCloudDialogflowV2ToolAuthenticationBearerTokenConfig.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ GoogleCloudDialogflowV2ToolAuthenticationBearerTokenConfig
Returns a new instance of GoogleCloudDialogflowV2ToolAuthenticationBearerTokenConfig.
18890 18891 18892 |
# File 'lib/google/apis/dialogflow_v2/classes.rb', line 18890 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`
18880 18881 18882 |
# File 'lib/google/apis/dialogflow_v2/classes.rb', line 18880 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
18888 18889 18890 |
# File 'lib/google/apis/dialogflow_v2/classes.rb', line 18888 def token @token end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
18895 18896 18897 18898 |
# File 'lib/google/apis/dialogflow_v2/classes.rb', line 18895 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 |