Class: Google::Apis::DialogflowV3beta1::GoogleCloudDialogflowCxV3beta1ToolAuthenticationApiKeyConfig
- Inherits:
-
Object
- Object
- Google::Apis::DialogflowV3beta1::GoogleCloudDialogflowCxV3beta1ToolAuthenticationApiKeyConfig
- 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 with API key.
Instance Attribute Summary collapse
-
#api_key ⇒ String
Required.
-
#key_name ⇒ String
Required.
-
#request_location ⇒ String
Required.
Instance Method Summary collapse
-
#initialize(**args) ⇒ GoogleCloudDialogflowCxV3beta1ToolAuthenticationApiKeyConfig
constructor
A new instance of GoogleCloudDialogflowCxV3beta1ToolAuthenticationApiKeyConfig.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ GoogleCloudDialogflowCxV3beta1ToolAuthenticationApiKeyConfig
Returns a new instance of GoogleCloudDialogflowCxV3beta1ToolAuthenticationApiKeyConfig.
12791 12792 12793 |
# File 'lib/google/apis/dialogflow_v3beta1/classes.rb', line 12791 def initialize(**args) update!(**args) end |
Instance Attribute Details
#api_key ⇒ String
Required. The API key.
Corresponds to the JSON property apiKey
12777 12778 12779 |
# File 'lib/google/apis/dialogflow_v3beta1/classes.rb', line 12777 def api_key @api_key end |
#key_name ⇒ String
Required. The parameter name or the header name of the API key. E.g., If the
API request is "https://example.com/act?X-Api-Key=", "X-Api-Key" would be the
parameter name.
Corresponds to the JSON property keyName
12784 12785 12786 |
# File 'lib/google/apis/dialogflow_v3beta1/classes.rb', line 12784 def key_name @key_name end |
#request_location ⇒ String
Required. Key location in the request.
Corresponds to the JSON property requestLocation
12789 12790 12791 |
# File 'lib/google/apis/dialogflow_v3beta1/classes.rb', line 12789 def request_location @request_location end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
12796 12797 12798 12799 12800 |
# File 'lib/google/apis/dialogflow_v3beta1/classes.rb', line 12796 def update!(**args) @api_key = args[:api_key] if args.key?(:api_key) @key_name = args[:key_name] if args.key?(:key_name) @request_location = args[:request_location] if args.key?(:request_location) end |