Dialogflow V2 API - Class Google::Cloud::Dialogflow::V2::Tool::Authentication::BearerTokenConfig (v1.13.0)

Reference documentation and code samples for the Dialogflow V2 API class Google::Cloud::Dialogflow::V2::Tool::Authentication::BearerTokenConfig.

Config for authentication using bearer token.

Inherits

  • Object

Extended By

  • Google::Protobuf::MessageExts::ClassMethods

Includes

  • Google::Protobuf::MessageExts

Methods

#secret_version_for_token

def secret_version_for_token() -> ::String
Returns
  • (::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}

#secret_version_for_token=

def secret_version_for_token=(value) -> ::String
Parameter
  • value (::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}
Returns
  • (::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}

#token

def token() -> ::String
Returns
  • (::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.

#token=

def token=(value) -> ::String
Parameter
  • value (::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.
Returns
  • (::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.