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.



13069
13070
13071
# File 'lib/google/apis/dialogflow_v3beta1/classes.rb', line 13069

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)


13067
13068
13069
# File 'lib/google/apis/dialogflow_v3beta1/classes.rb', line 13067

def token
  @token
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



13074
13075
13076
# File 'lib/google/apis/dialogflow_v3beta1/classes.rb', line 13074

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