Class: Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1FulfillmentGenericWebService
- Inherits:
-
Object
- Object
- Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1FulfillmentGenericWebService
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- generated/google/apis/dialogflow_v2beta1/classes.rb,
generated/google/apis/dialogflow_v2beta1/representations.rb,
generated/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
Optional.
-
#request_headers ⇒ Hash<String,String>
Optional.
-
#uri ⇒ String
Required.
-
#username ⇒ String
Optional.
Instance Method Summary collapse
-
#initialize(**args) ⇒ GoogleCloudDialogflowV2beta1FulfillmentGenericWebService
constructor
A new instance of GoogleCloudDialogflowV2beta1FulfillmentGenericWebService.
-
#update!(**args) ⇒ Object
Update properties of this object.
Methods included from Core::JsonObjectSupport
Methods included from Core::Hashable
Constructor Details
#initialize(**args) ⇒ GoogleCloudDialogflowV2beta1FulfillmentGenericWebService
Returns a new instance of GoogleCloudDialogflowV2beta1FulfillmentGenericWebService.
3123 3124 3125 |
# File 'generated/google/apis/dialogflow_v2beta1/classes.rb', line 3123 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.
Corresponds to the JSON property isCloudFunction
3100 3101 3102 |
# File 'generated/google/apis/dialogflow_v2beta1/classes.rb', line 3100 def is_cloud_function @is_cloud_function end |
#password ⇒ String
Optional. The password for HTTP Basic authentication.
Corresponds to the JSON property password
3106 3107 3108 |
# File 'generated/google/apis/dialogflow_v2beta1/classes.rb', line 3106 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
3111 3112 3113 |
# File 'generated/google/apis/dialogflow_v2beta1/classes.rb', line 3111 def request_headers @request_headers end |
#uri ⇒ String
Required. The fulfillment URI for receiving POST requests.
Corresponds to the JSON property uri
3116 3117 3118 |
# File 'generated/google/apis/dialogflow_v2beta1/classes.rb', line 3116 def uri @uri end |
#username ⇒ String
Optional. The user name for HTTP Basic authentication.
Corresponds to the JSON property username
3121 3122 3123 |
# File 'generated/google/apis/dialogflow_v2beta1/classes.rb', line 3121 def username @username end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
3128 3129 3130 3131 3132 3133 3134 |
# File 'generated/google/apis/dialogflow_v2beta1/classes.rb', line 3128 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 |