class Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1FulfillmentGenericWebService

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: cloud.google.com/dialogflow/docs/ fulfillment-configure.

Attributes

is_cloud_function[RW]

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` @return [Boolean]

is_cloud_function?[RW]

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` @return [Boolean]

password[RW]

The password for HTTP Basic authentication. Corresponds to the JSON property `password` @return [String]

request_headers[RW]

The HTTP request headers to send together with fulfillment requests. Corresponds to the JSON property `requestHeaders` @return [Hash<String,String>]

uri[RW]

Required. The fulfillment URI for receiving POST requests. It must use https protocol. Corresponds to the JSON property `uri` @return [String]

username[RW]

The user name for HTTP Basic authentication. Corresponds to the JSON property `username` @return [String]

Public Class Methods

new(**args) click to toggle source
# File lib/google/apis/dialogflow_v2beta1/classes.rb, line 9596
def initialize(**args)
   update!(**args)
end

Public Instance Methods

update!(**args) click to toggle source

Update properties of this object

# 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