Class: Google::Apis::DialogflowV3beta1::GoogleCloudDialogflowCxV3beta1ToolAuthenticationBearerTokenConfig

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
lib/google/apis/dialogflow_v3beta1/classes.rb,
lib/google/apis/dialogflow_v3beta1/representations.rb,
lib/google/apis/dialogflow_v3beta1/representations.rb

Overview

Config for authentication using bearer token.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleCloudDialogflowCxV3beta1ToolAuthenticationBearerTokenConfig

Returns a new instance of GoogleCloudDialogflowCxV3beta1ToolAuthenticationBearerTokenConfig.



13047
13048
13049
# File 'lib/google/apis/dialogflow_v3beta1/classes.rb', line 13047

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

Instance Attribute Details

#tokenString

Required. 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

Returns:

  • (String)


13045
13046
13047
# File 'lib/google/apis/dialogflow_v3beta1/classes.rb', line 13045

def token
  @token
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



13052
13053
13054
# File 'lib/google/apis/dialogflow_v3beta1/classes.rb', line 13052

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