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

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Core::JsonObjectSupport

#to_json

Methods included from Core::Hashable

process_value, #to_h

Constructor Details

#initialize(**args) ⇒ GoogleCloudDialogflowV2beta1FulfillmentGenericWebService

Returns a new instance of GoogleCloudDialogflowV2beta1FulfillmentGenericWebService.



3223
3224
3225
# File 'generated/google/apis/dialogflow_v2beta1/classes.rb', line 3223

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

Instance Attribute Details

#is_cloud_functionBoolean 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

Returns:

  • (Boolean)


3200
3201
3202
# File 'generated/google/apis/dialogflow_v2beta1/classes.rb', line 3200

def is_cloud_function
  @is_cloud_function
end

#passwordString

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

Returns:

  • (String)


3206
3207
3208
# File 'generated/google/apis/dialogflow_v2beta1/classes.rb', line 3206

def password
  @password
end

#request_headersHash<String,String>

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

Returns:

  • (Hash<String,String>)


3211
3212
3213
# File 'generated/google/apis/dialogflow_v2beta1/classes.rb', line 3211

def request_headers
  @request_headers
end

#uriString

Required. The fulfillment URI for receiving POST requests. Corresponds to the JSON property uri

Returns:

  • (String)


3216
3217
3218
# File 'generated/google/apis/dialogflow_v2beta1/classes.rb', line 3216

def uri
  @uri
end

#usernameString

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

Returns:

  • (String)


3221
3222
3223
# File 'generated/google/apis/dialogflow_v2beta1/classes.rb', line 3221

def username
  @username
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



3228
3229
3230
3231
3232
3233
3234
# File 'generated/google/apis/dialogflow_v2beta1/classes.rb', line 3228

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