Class: Google::Apis::DialogflowV2::GoogleCloudDialogflowV2FulfillmentGenericWebService
- Inherits:
-
Object
- Object
- Google::Apis::DialogflowV2::GoogleCloudDialogflowV2FulfillmentGenericWebService
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/dialogflow_v2/classes.rb,
lib/google/apis/dialogflow_v2/representations.rb,
lib/google/apis/dialogflow_v2/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
Optional.
-
#request_headers ⇒ Hash<String,String>
Optional.
-
#uri ⇒ String
Required.
-
#username ⇒ String
Optional.
Instance Method Summary collapse
-
#initialize(**args) ⇒ GoogleCloudDialogflowV2FulfillmentGenericWebService
constructor
A new instance of GoogleCloudDialogflowV2FulfillmentGenericWebService.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ GoogleCloudDialogflowV2FulfillmentGenericWebService
Returns a new instance of GoogleCloudDialogflowV2FulfillmentGenericWebService.
10611 10612 10613 |
# File 'lib/google/apis/dialogflow_v2/classes.rb', line 10611 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
10587 10588 10589 |
# File 'lib/google/apis/dialogflow_v2/classes.rb', line 10587 def is_cloud_function @is_cloud_function end |
#password ⇒ String
Optional. The password for HTTP Basic authentication.
Corresponds to the JSON property password
10593 10594 10595 |
# File 'lib/google/apis/dialogflow_v2/classes.rb', line 10593 def password @password end |
#request_headers ⇒ Hash<String,String>
Optional. The HTTP request headers to send together with fulfillment requests.
Corresponds to the JSON property requestHeaders
10598 10599 10600 |
# File 'lib/google/apis/dialogflow_v2/classes.rb', line 10598 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
10604 10605 10606 |
# File 'lib/google/apis/dialogflow_v2/classes.rb', line 10604 def uri @uri end |
#username ⇒ String
Optional. The user name for HTTP Basic authentication.
Corresponds to the JSON property username
10609 10610 10611 |
# File 'lib/google/apis/dialogflow_v2/classes.rb', line 10609 def username @username end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
10616 10617 10618 10619 10620 10621 10622 |
# File 'lib/google/apis/dialogflow_v2/classes.rb', line 10616 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 |