Class: Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1FulfillmentGenericWebService

Inherits:
Object
  • Object
show all
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

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleCloudDialogflowV2beta1FulfillmentGenericWebService

Returns a new instance of GoogleCloudDialogflowV2beta1FulfillmentGenericWebService.



9077
9078
9079
# File 'lib/google/apis/dialogflow_v2beta1/classes.rb', line 9077

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#is_cloud_functionBoolean Also known as: is_cloud_function?

Indicates if generic web service is created through Cloud Functions integration. Defaults to false. Corresponds to the JSON property isCloudFunction

Returns:

  • (Boolean)


9053
9054
9055
# File 'lib/google/apis/dialogflow_v2beta1/classes.rb', line 9053

def is_cloud_function
  @is_cloud_function
end

#passwordString

The password for HTTP Basic authentication. Corresponds to the JSON property password

Returns:

  • (String)


9059
9060
9061
# File 'lib/google/apis/dialogflow_v2beta1/classes.rb', line 9059

def password
  @password
end

#request_headersHash<String,String>

The HTTP request headers to send together with fulfillment requests. Corresponds to the JSON property requestHeaders

Returns:

  • (Hash<String,String>)


9064
9065
9066
# File 'lib/google/apis/dialogflow_v2beta1/classes.rb', line 9064

def request_headers
  @request_headers
end

#uriString

Required. The fulfillment URI for receiving POST requests. It must use https protocol. Corresponds to the JSON property uri

Returns:

  • (String)


9070
9071
9072
# File 'lib/google/apis/dialogflow_v2beta1/classes.rb', line 9070

def uri
  @uri
end

#usernameString

The user name for HTTP Basic authentication. Corresponds to the JSON property username

Returns:

  • (String)


9075
9076
9077
# File 'lib/google/apis/dialogflow_v2beta1/classes.rb', line 9075

def username
  @username
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



9082
9083
9084
9085
9086
9087
9088
# File 'lib/google/apis/dialogflow_v2beta1/classes.rb', line 9082

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