Class: Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1FulfillmentGenericWebService
- Inherits:
-
Object
- Object
- Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1FulfillmentGenericWebService
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/dialogflow_v2beta1/classes.rb,
lib/google/apis/dialogflow_v2beta1/representations.rb,
lib/google/apis/dialogflow_v2beta1/representations.rb
Overview
Represents configuration for a generic web service. Dialogflow supports two mechanisms for authentications: - Basic authentication with username and password. - Authentication with additional authentication headers. More information could be found at: https://cloud.google.com/dialogflow/docs/ fulfillment-configure.
Instance Attribute Summary collapse
-
#is_cloud_function ⇒ Boolean
(also: #is_cloud_function?)
Optional.
-
#password ⇒ String
The password for HTTP Basic authentication.
-
#request_headers ⇒ Hash<String,String>
The HTTP request headers to send together with fulfillment requests.
-
#uri ⇒ String
Required.
-
#username ⇒ String
The user name for HTTP Basic authentication.
Instance Method Summary collapse
-
#initialize(**args) ⇒ GoogleCloudDialogflowV2beta1FulfillmentGenericWebService
constructor
A new instance of GoogleCloudDialogflowV2beta1FulfillmentGenericWebService.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ GoogleCloudDialogflowV2beta1FulfillmentGenericWebService
Returns a new instance of GoogleCloudDialogflowV2beta1FulfillmentGenericWebService.
9596 9597 9598 |
# File 'lib/google/apis/dialogflow_v2beta1/classes.rb', line 9596 def initialize(**args) update!(**args) end |
Instance Attribute Details
#is_cloud_function ⇒ Boolean Also known as: is_cloud_function?
Optional. Indicates if generic web service is created through Cloud Functions
integration. Defaults to false. is_cloud_function is deprecated. Cloud
functions can be configured by its uri as a regular web service now.
Corresponds to the JSON property isCloudFunction
9572 9573 9574 |
# File 'lib/google/apis/dialogflow_v2beta1/classes.rb', line 9572 def is_cloud_function @is_cloud_function end |
#password ⇒ String
The password for HTTP Basic authentication.
Corresponds to the JSON property password
9578 9579 9580 |
# File 'lib/google/apis/dialogflow_v2beta1/classes.rb', line 9578 def password @password end |
#request_headers ⇒ Hash<String,String>
The HTTP request headers to send together with fulfillment requests.
Corresponds to the JSON property requestHeaders
9583 9584 9585 |
# File 'lib/google/apis/dialogflow_v2beta1/classes.rb', line 9583 def request_headers @request_headers end |
#uri ⇒ String
Required. The fulfillment URI for receiving POST requests. It must use https
protocol.
Corresponds to the JSON property uri
9589 9590 9591 |
# File 'lib/google/apis/dialogflow_v2beta1/classes.rb', line 9589 def uri @uri end |
#username ⇒ String
The user name for HTTP Basic authentication.
Corresponds to the JSON property username
9594 9595 9596 |
# File 'lib/google/apis/dialogflow_v2beta1/classes.rb', line 9594 def username @username end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
9601 9602 9603 9604 9605 9606 9607 |
# File 'lib/google/apis/dialogflow_v2beta1/classes.rb', line 9601 def update!(**args) @is_cloud_function = args[:is_cloud_function] if args.key?(:is_cloud_function) @password = args[:password] if args.key?(:password) @request_headers = args[:request_headers] if args.key?(:request_headers) @uri = args[:uri] if args.key?(:uri) @username = args[:username] if args.key?(:username) end |