@@ -3507,6 +3507,11 @@ class GoogleCloudDialogflowCxV3WebhookGenericWebService
35073507 # @return [Hash<String,Google::Apis::DialogflowV2::GoogleCloudDialogflowCxV3WebhookGenericWebServiceSecretVersionHeaderValue>]
35083508 attr_accessor :secret_versions_for_request_headers
35093509
3510+ # Configuration for authentication using a service account.
3511+ # Corresponds to the JSON property `serviceAccountAuthConfig`
3512+ # @return [Google::Apis::DialogflowV2::GoogleCloudDialogflowCxV3WebhookGenericWebServiceServiceAccountAuthConfig]
3513+ attr_accessor :service_account_auth_config
3514+
35103515 # Optional. Indicate the auth token type generated from the [Diglogflow service
35113516 # agent](https://cloud.google.com/iam/docs/service-agents#dialogflow-service-
35123517 # agent). The generated token is sent in the Authorization header.
@@ -3545,6 +3550,7 @@ def update!(**args)
35453550 @request_headers = args[:request_headers] if args.key?(:request_headers)
35463551 @secret_version_for_username_password = args[:secret_version_for_username_password] if args.key?(:secret_version_for_username_password)
35473552 @secret_versions_for_request_headers = args[:secret_versions_for_request_headers] if args.key?(:secret_versions_for_request_headers)
3553+ @service_account_auth_config = args[:service_account_auth_config] if args.key?(:service_account_auth_config)
35483554 @service_agent_auth = args[:service_agent_auth] if args.key?(:service_agent_auth)
35493555 @uri = args[:uri] if args.key?(:uri)
35503556 @username = args[:username] if args.key?(:username)
@@ -3620,6 +3626,30 @@ def update!(**args)
36203626 end
36213627 end
36223628
3629+ # Configuration for authentication using a service account.
3630+ class GoogleCloudDialogflowCxV3WebhookGenericWebServiceServiceAccountAuthConfig
3631+ include Google::Apis::Core::Hashable
3632+
3633+ # Required. The email address of the service account used to authenticate the
3634+ # webhook call. Dialogflow uses this service account to exchange an access token
3635+ # and the access token is then sent in the `Authorization` header of the webhook
3636+ # request. The service account must have the `roles/iam.
3637+ # serviceAccountTokenCreator` role granted to the [Dialogflow service agent](
3638+ # https://cloud.google.com/iam/docs/service-agents#dialogflow-service-agent).
3639+ # Corresponds to the JSON property `serviceAccount`
3640+ # @return [String]
3641+ attr_accessor :service_account
3642+
3643+ def initialize(**args)
3644+ update!(**args)
3645+ end
3646+
3647+ # Update properties of this object
3648+ def update!(**args)
3649+ @service_account = args[:service_account] if args.key?(:service_account)
3650+ end
3651+ end
3652+
36233653 # The request message for a webhook call. The request is sent as a JSON object
36243654 # and the field names will be presented in camel cases. You may see undocumented
36253655 # fields in an actual request. These fields are used internally by Dialogflow
@@ -7432,6 +7462,11 @@ class GoogleCloudDialogflowCxV3beta1WebhookGenericWebService
74327462 # @return [Hash<String,Google::Apis::DialogflowV2::GoogleCloudDialogflowCxV3beta1WebhookGenericWebServiceSecretVersionHeaderValue>]
74337463 attr_accessor :secret_versions_for_request_headers
74347464
7465+ # Configuration for authentication using a service account.
7466+ # Corresponds to the JSON property `serviceAccountAuthConfig`
7467+ # @return [Google::Apis::DialogflowV2::GoogleCloudDialogflowCxV3beta1WebhookGenericWebServiceServiceAccountAuthConfig]
7468+ attr_accessor :service_account_auth_config
7469+
74357470 # Optional. Indicate the auth token type generated from the [Diglogflow service
74367471 # agent](https://cloud.google.com/iam/docs/service-agents#dialogflow-service-
74377472 # agent). The generated token is sent in the Authorization header.
@@ -7470,6 +7505,7 @@ def update!(**args)
74707505 @request_headers = args[:request_headers] if args.key?(:request_headers)
74717506 @secret_version_for_username_password = args[:secret_version_for_username_password] if args.key?(:secret_version_for_username_password)
74727507 @secret_versions_for_request_headers = args[:secret_versions_for_request_headers] if args.key?(:secret_versions_for_request_headers)
7508+ @service_account_auth_config = args[:service_account_auth_config] if args.key?(:service_account_auth_config)
74737509 @service_agent_auth = args[:service_agent_auth] if args.key?(:service_agent_auth)
74747510 @uri = args[:uri] if args.key?(:uri)
74757511 @username = args[:username] if args.key?(:username)
@@ -7545,6 +7581,30 @@ def update!(**args)
75457581 end
75467582 end
75477583
7584+ # Configuration for authentication using a service account.
7585+ class GoogleCloudDialogflowCxV3beta1WebhookGenericWebServiceServiceAccountAuthConfig
7586+ include Google::Apis::Core::Hashable
7587+
7588+ # Required. The email address of the service account used to authenticate the
7589+ # webhook call. Dialogflow uses this service account to exchange an access token
7590+ # and the access token is then sent in the `Authorization` header of the webhook
7591+ # request. The service account must have the `roles/iam.
7592+ # serviceAccountTokenCreator` role granted to the [Dialogflow service agent](
7593+ # https://cloud.google.com/iam/docs/service-agents#dialogflow-service-agent).
7594+ # Corresponds to the JSON property `serviceAccount`
7595+ # @return [String]
7596+ attr_accessor :service_account
7597+
7598+ def initialize(**args)
7599+ update!(**args)
7600+ end
7601+
7602+ # Update properties of this object
7603+ def update!(**args)
7604+ @service_account = args[:service_account] if args.key?(:service_account)
7605+ end
7606+ end
7607+
75487608 # The request message for a webhook call. The request is sent as a JSON object
75497609 # and the field names will be presented in camel cases. You may see undocumented
75507610 # fields in an actual request. These fields are used internally by Dialogflow
@@ -19276,9 +19336,9 @@ class GoogleCloudDialogflowV2ToolTlsConfigCaCert
1927619336 # unspecified, Dialogflow will use Google's default trust store to verify
1927719337 # certificates. N.B. Make sure the HTTPS server certificates are signed with "
1927819338 # subject alt name". For instance a certificate can be self-signed using the
19279- # following command, openssl x509 -req -days 200 -in example.com.csr \ -signkey
19280- # example.com.key \ -out example.com.crt \ -extfile <(printf "\nsubjectAltName='
19281- # DNS:www.example.com'")
19339+ # following command, ``` openssl x509 -req -days 200 -in example.com.csr \ -
19340+ # signkey example.com.key \ -out example.com.crt \ -extfile <(printf "\
19341+ # nsubjectAltName=' DNS:www.example.com'") ```
1928219342 # Corresponds to the JSON property `cert`
1928319343 # NOTE: Values are automatically base64 encoded/decoded in the client library.
1928419344 # @return [String]
0 commit comments