Class: Google::Apis::DialogflowV2::GoogleCloudDialogflowV2FulfillmentGenericWebService

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

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleCloudDialogflowV2FulfillmentGenericWebService

Returns a new instance of GoogleCloudDialogflowV2FulfillmentGenericWebService.



8453
8454
8455
# File 'lib/google/apis/dialogflow_v2/classes.rb', line 8453

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. 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

Returns:

  • (Boolean)


8429
8430
8431
# File 'lib/google/apis/dialogflow_v2/classes.rb', line 8429

def is_cloud_function
  @is_cloud_function
end

#passwordString

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

Returns:

  • (String)


8435
8436
8437
# File 'lib/google/apis/dialogflow_v2/classes.rb', line 8435

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>)


8440
8441
8442
# File 'lib/google/apis/dialogflow_v2/classes.rb', line 8440

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)


8446
8447
8448
# File 'lib/google/apis/dialogflow_v2/classes.rb', line 8446

def uri
  @uri
end

#usernameString

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

Returns:

  • (String)


8451
8452
8453
# File 'lib/google/apis/dialogflow_v2/classes.rb', line 8451

def username
  @username
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



8458
8459
8460
8461
8462
8463
8464
# File 'lib/google/apis/dialogflow_v2/classes.rb', line 8458

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