diff --git a/.github/.OwlBot.lock.yaml b/.github/.OwlBot.lock.yaml index 32b3c486..02a4dedc 100644 --- a/.github/.OwlBot.lock.yaml +++ b/.github/.OwlBot.lock.yaml @@ -13,5 +13,5 @@ # limitations under the License. docker: image: gcr.io/cloud-devrel-public-resources/owlbot-python:latest - digest: sha256:9bc5fa3b62b091f60614c08a7fb4fd1d3e1678e326f34dd66ce1eefb5dc3267b -# created: 2023-05-25T14:56:16.294623272Z + digest: sha256:240b5bcc2bafd450912d2da2be15e62bc6de2cf839823ae4bf94d4f392b451dc +# created: 2023-06-03T21:25:37.968717478Z diff --git a/.kokoro/requirements.txt b/.kokoro/requirements.txt index 3b8d7ee8..c7929db6 100644 --- a/.kokoro/requirements.txt +++ b/.kokoro/requirements.txt @@ -113,28 +113,26 @@ commonmark==0.9.1 \ --hash=sha256:452f9dc859be7f06631ddcb328b6919c67984aca654e5fefb3914d54691aed60 \ --hash=sha256:da2f38c92590f83de410ba1a3cbceafbc74fee9def35f9251ba9a971d6d66fd9 # via rich -cryptography==39.0.1 \ - --hash=sha256:0f8da300b5c8af9f98111ffd512910bc792b4c77392a9523624680f7956a99d4 \ - --hash=sha256:35f7c7d015d474f4011e859e93e789c87d21f6f4880ebdc29896a60403328f1f \ - --hash=sha256:5aa67414fcdfa22cf052e640cb5ddc461924a045cacf325cd164e65312d99502 \ - --hash=sha256:5d2d8b87a490bfcd407ed9d49093793d0f75198a35e6eb1a923ce1ee86c62b41 \ - --hash=sha256:6687ef6d0a6497e2b58e7c5b852b53f62142cfa7cd1555795758934da363a965 \ - --hash=sha256:6f8ba7f0328b79f08bdacc3e4e66fb4d7aab0c3584e0bd41328dce5262e26b2e \ - --hash=sha256:706843b48f9a3f9b9911979761c91541e3d90db1ca905fd63fee540a217698bc \ - --hash=sha256:807ce09d4434881ca3a7594733669bd834f5b2c6d5c7e36f8c00f691887042ad \ - --hash=sha256:83e17b26de248c33f3acffb922748151d71827d6021d98c70e6c1a25ddd78505 \ - --hash=sha256:96f1157a7c08b5b189b16b47bc9db2332269d6680a196341bf30046330d15388 \ - --hash=sha256:aec5a6c9864be7df2240c382740fcf3b96928c46604eaa7f3091f58b878c0bb6 \ - --hash=sha256:b0afd054cd42f3d213bf82c629efb1ee5f22eba35bf0eec88ea9ea7304f511a2 \ - --hash=sha256:ced4e447ae29ca194449a3f1ce132ded8fcab06971ef5f618605aacaa612beac \ - --hash=sha256:d1f6198ee6d9148405e49887803907fe8962a23e6c6f83ea7d98f1c0de375695 \ - --hash=sha256:e124352fd3db36a9d4a21c1aa27fd5d051e621845cb87fb851c08f4f75ce8be6 \ - --hash=sha256:e422abdec8b5fa8462aa016786680720d78bdce7a30c652b7fadf83a4ba35336 \ - --hash=sha256:ef8b72fa70b348724ff1218267e7f7375b8de4e8194d1636ee60510aae104cd0 \ - --hash=sha256:f0c64d1bd842ca2633e74a1a28033d139368ad959872533b1bab8c80e8240a0c \ - --hash=sha256:f24077a3b5298a5a06a8e0536e3ea9ec60e4c7ac486755e5fb6e6ea9b3500106 \ - --hash=sha256:fdd188c8a6ef8769f148f88f859884507b954cc64db6b52f66ef199bb9ad660a \ - --hash=sha256:fe913f20024eb2cb2f323e42a64bdf2911bb9738a15dba7d3cce48151034e3a8 +cryptography==41.0.0 \ + --hash=sha256:0ddaee209d1cf1f180f1efa338a68c4621154de0afaef92b89486f5f96047c55 \ + --hash=sha256:14754bcdae909d66ff24b7b5f166d69340ccc6cb15731670435efd5719294895 \ + --hash=sha256:344c6de9f8bda3c425b3a41b319522ba3208551b70c2ae00099c205f0d9fd3be \ + --hash=sha256:34d405ea69a8b34566ba3dfb0521379b210ea5d560fafedf9f800a9a94a41928 \ + --hash=sha256:3680248309d340fda9611498a5319b0193a8dbdb73586a1acf8109d06f25b92d \ + --hash=sha256:3c5ef25d060c80d6d9f7f9892e1d41bb1c79b78ce74805b8cb4aa373cb7d5ec8 \ + --hash=sha256:4ab14d567f7bbe7f1cdff1c53d5324ed4d3fc8bd17c481b395db224fb405c237 \ + --hash=sha256:5c1f7293c31ebc72163a9a0df246f890d65f66b4a40d9ec80081969ba8c78cc9 \ + --hash=sha256:6b71f64beeea341c9b4f963b48ee3b62d62d57ba93eb120e1196b31dc1025e78 \ + --hash=sha256:7d92f0248d38faa411d17f4107fc0bce0c42cae0b0ba5415505df72d751bf62d \ + --hash=sha256:8362565b3835ceacf4dc8f3b56471a2289cf51ac80946f9087e66dc283a810e0 \ + --hash=sha256:84a165379cb9d411d58ed739e4af3396e544eac190805a54ba2e0322feb55c46 \ + --hash=sha256:88ff107f211ea696455ea8d911389f6d2b276aabf3231bf72c8853d22db755c5 \ + --hash=sha256:9f65e842cb02550fac96536edb1d17f24c0a338fd84eaf582be25926e993dde4 \ + --hash=sha256:a4fc68d1c5b951cfb72dfd54702afdbbf0fb7acdc9b7dc4301bbf2225a27714d \ + --hash=sha256:b7f2f5c525a642cecad24ee8670443ba27ac1fab81bba4cc24c7b6b41f2d0c75 \ + --hash=sha256:b846d59a8d5a9ba87e2c3d757ca019fa576793e8758174d3868aecb88d6fc8eb \ + --hash=sha256:bf8fc66012ca857d62f6a347007e166ed59c0bc150cefa49f28376ebe7d992a2 \ + --hash=sha256:f5d0bf9b252f30a31664b6f64432b4730bb7038339bd18b1fafe129cfc2be9be # via # gcp-releasetool # secretstorage diff --git a/.release-please-manifest.json b/.release-please-manifest.json index 2c543c4d..e9e21f78 100644 --- a/.release-please-manifest.json +++ b/.release-please-manifest.json @@ -1,3 +1,3 @@ { - ".": "1.21.0" + ".": "1.22.0" } diff --git a/CHANGELOG.md b/CHANGELOG.md index 0be2276d..2a7edff9 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,17 @@ # Changelog +## [1.22.0](https://github.com/googleapis/python-dialogflow-cx/compare/v1.21.0...v1.22.0) (2023-06-13) + + +### Features + +* Add support for flexible webhook ([ba8d7d3](https://github.com/googleapis/python-dialogflow-cx/commit/ba8d7d341063fcd2ed1591ea84efb395340bc960)) + + +### Documentation + +* Update synthesize speech configs's documentation ([ba8d7d3](https://github.com/googleapis/python-dialogflow-cx/commit/ba8d7d341063fcd2ed1591ea84efb395340bc960)) + ## [1.21.0](https://github.com/googleapis/python-dialogflow-cx/compare/v1.20.1...v1.21.0) (2023-05-25) diff --git a/google/cloud/dialogflowcx/gapic_version.py b/google/cloud/dialogflowcx/gapic_version.py index 6c9024e0..3aae6c78 100644 --- a/google/cloud/dialogflowcx/gapic_version.py +++ b/google/cloud/dialogflowcx/gapic_version.py @@ -13,4 +13,4 @@ # See the License for the specific language governing permissions and # limitations under the License. # -__version__ = "1.21.0" # {x-release-please-version} +__version__ = "1.22.0" # {x-release-please-version} diff --git a/google/cloud/dialogflowcx_v3/gapic_version.py b/google/cloud/dialogflowcx_v3/gapic_version.py index 6c9024e0..3aae6c78 100644 --- a/google/cloud/dialogflowcx_v3/gapic_version.py +++ b/google/cloud/dialogflowcx_v3/gapic_version.py @@ -13,4 +13,4 @@ # See the License for the specific language governing permissions and # limitations under the License. # -__version__ = "1.21.0" # {x-release-please-version} +__version__ = "1.22.0" # {x-release-please-version} diff --git a/google/cloud/dialogflowcx_v3/types/audio_config.py b/google/cloud/dialogflowcx_v3/types/audio_config.py index 0dee41e2..c0cc08e0 100644 --- a/google/cloud/dialogflowcx_v3/types/audio_config.py +++ b/google/cloud/dialogflowcx_v3/types/audio_config.py @@ -460,8 +460,10 @@ class OutputAudioConfig(proto.Message): converting to the desired sample rate (which might result in worse audio quality). synthesize_speech_config (google.cloud.dialogflowcx_v3.types.SynthesizeSpeechConfig): - Optional. Configuration of how speech should - be synthesized. + Optional. Configuration of how speech should be synthesized. + If not specified, + [Agent.text_to_speech_settings][google.cloud.dialogflow.cx.v3.Agent.text_to_speech_settings] + is applied. """ audio_encoding: "OutputAudioEncoding" = proto.Field( @@ -492,13 +494,17 @@ class TextToSpeechSettings(proto.Message): These settings affect: - - The synthesize configuration used in `phone - gateway `__. + - The `phone + gateway `__ + synthesize configuration set via + [Agent.text_to_speech_settings][google.cloud.dialogflow.cx.v3.Agent.text_to_speech_settings]. - - You no longer need to specify + - How speech is synthesized when invoking + [session][google.cloud.dialogflow.cx.v3.Sessions] APIs. + [Agent.text_to_speech_settings][google.cloud.dialogflow.cx.v3.Agent.text_to_speech_settings] + only applies if [OutputAudioConfig.synthesize_speech_config][google.cloud.dialogflow.cx.v3.OutputAudioConfig.synthesize_speech_config] - when invoking API calls. Your agent will use the - pre-configured options for speech synthesizing. + is not specified. """ synthesize_speech_configs: MutableMapping[ diff --git a/google/cloud/dialogflowcx_v3/types/test_case.py b/google/cloud/dialogflowcx_v3/types/test_case.py index f746eb47..b2f95635 100644 --- a/google/cloud/dialogflowcx_v3/types/test_case.py +++ b/google/cloud/dialogflowcx_v3/types/test_case.py @@ -395,8 +395,8 @@ class TestRunDifference(proto.Message): type_ (google.cloud.dialogflowcx_v3.types.TestRunDifference.DiffType): The type of diff. description (str): - A description of the diff, showing the actual - output vs expected output. + A human readable description of the diff, + showing the actual output vs expected output. """ class DiffType(proto.Enum): diff --git a/google/cloud/dialogflowcx_v3/types/webhook.py b/google/cloud/dialogflowcx_v3/types/webhook.py index 5a2c2cb7..320cb481 100644 --- a/google/cloud/dialogflowcx_v3/types/webhook.py +++ b/google/cloud/dialogflowcx_v3/types/webhook.py @@ -117,8 +117,68 @@ class GenericWebService(proto.Message): -signkey example.com.key \ -out example.com.crt \ -extfile <(printf "\nsubjectAltName='DNS:www.example.com'") + webhook_type (google.cloud.dialogflowcx_v3.types.Webhook.GenericWebService.WebhookType): + Optional. Type of the webhook. + http_method (google.cloud.dialogflowcx_v3.types.Webhook.GenericWebService.HttpMethod): + Optional. HTTP method for the flexible + webhook calls. Standard webhook always uses + POST. + request_body (str): + Optional. Defines a custom JSON object as + request body to send to flexible webhook. + parameter_mapping (MutableMapping[str, str]): + Optional. Maps the values extracted from + specific fields of the flexible webhook response + into session parameters. - Key: session + parameter name + - Value: field path in the webhook response """ + class WebhookType(proto.Enum): + r"""Represents the type of webhook configuration. + + Values: + WEBHOOK_TYPE_UNSPECIFIED (0): + Default value. This value is unused. + STANDARD (1): + Represents a standard webhook. + FLEXIBLE (2): + Represents a flexible webhook. + """ + WEBHOOK_TYPE_UNSPECIFIED = 0 + STANDARD = 1 + FLEXIBLE = 2 + + class HttpMethod(proto.Enum): + r"""HTTP method to use when calling webhooks. + + Values: + HTTP_METHOD_UNSPECIFIED (0): + HTTP method not specified. + POST (1): + HTTP POST Method. + GET (2): + HTTP GET Method. + HEAD (3): + HTTP HEAD Method. + PUT (4): + HTTP PUT Method. + DELETE (5): + HTTP DELETE Method. + PATCH (6): + HTTP PATCH Method. + OPTIONS (7): + HTTP OPTIONS Method. + """ + HTTP_METHOD_UNSPECIFIED = 0 + POST = 1 + GET = 2 + HEAD = 3 + PUT = 4 + DELETE = 5 + PATCH = 6 + OPTIONS = 7 + uri: str = proto.Field( proto.STRING, number=1, @@ -140,6 +200,25 @@ class GenericWebService(proto.Message): proto.BYTES, number=5, ) + webhook_type: "Webhook.GenericWebService.WebhookType" = proto.Field( + proto.ENUM, + number=6, + enum="Webhook.GenericWebService.WebhookType", + ) + http_method: "Webhook.GenericWebService.HttpMethod" = proto.Field( + proto.ENUM, + number=7, + enum="Webhook.GenericWebService.HttpMethod", + ) + request_body: str = proto.Field( + proto.STRING, + number=8, + ) + parameter_mapping: MutableMapping[str, str] = proto.MapField( + proto.STRING, + proto.STRING, + number=9, + ) class ServiceDirectoryConfig(proto.Message): r"""Represents configuration for a `Service diff --git a/google/cloud/dialogflowcx_v3beta1/gapic_version.py b/google/cloud/dialogflowcx_v3beta1/gapic_version.py index 6c9024e0..3aae6c78 100644 --- a/google/cloud/dialogflowcx_v3beta1/gapic_version.py +++ b/google/cloud/dialogflowcx_v3beta1/gapic_version.py @@ -13,4 +13,4 @@ # See the License for the specific language governing permissions and # limitations under the License. # -__version__ = "1.21.0" # {x-release-please-version} +__version__ = "1.22.0" # {x-release-please-version} diff --git a/google/cloud/dialogflowcx_v3beta1/types/audio_config.py b/google/cloud/dialogflowcx_v3beta1/types/audio_config.py index c3d81c65..aa9065a8 100644 --- a/google/cloud/dialogflowcx_v3beta1/types/audio_config.py +++ b/google/cloud/dialogflowcx_v3beta1/types/audio_config.py @@ -461,8 +461,10 @@ class OutputAudioConfig(proto.Message): converting to the desired sample rate (which might result in worse audio quality). synthesize_speech_config (google.cloud.dialogflowcx_v3beta1.types.SynthesizeSpeechConfig): - Optional. Configuration of how speech should - be synthesized. + Optional. Configuration of how speech should be synthesized. + If not specified, + [Agent.text_to_speech_settings][google.cloud.dialogflow.cx.v3beta1.Agent.text_to_speech_settings] + is applied. """ audio_encoding: "OutputAudioEncoding" = proto.Field( @@ -493,13 +495,18 @@ class TextToSpeechSettings(proto.Message): These settings affect: - - The synthesize configuration used in `phone - gateway `__. + - The `phone + gateway `__ + synthesize configuration set via + [Agent.text_to_speech_settings][google.cloud.dialogflow.cx.v3beta1.Agent.text_to_speech_settings]. - - You no longer need to specify + - How speech is synthesized when invoking + [session][google.cloud.dialogflow.cx.v3beta1.Sessions] + APIs. + [Agent.text_to_speech_settings][google.cloud.dialogflow.cx.v3beta1.Agent.text_to_speech_settings] + only applies if [OutputAudioConfig.synthesize_speech_config][google.cloud.dialogflow.cx.v3beta1.OutputAudioConfig.synthesize_speech_config] - when invoking API calls. Your agent will use the - pre-configured options for speech synthesizing. + is not specified. """ synthesize_speech_configs: MutableMapping[ diff --git a/google/cloud/dialogflowcx_v3beta1/types/test_case.py b/google/cloud/dialogflowcx_v3beta1/types/test_case.py index 3e136aaf..9e27a532 100644 --- a/google/cloud/dialogflowcx_v3beta1/types/test_case.py +++ b/google/cloud/dialogflowcx_v3beta1/types/test_case.py @@ -397,8 +397,8 @@ class TestRunDifference(proto.Message): type_ (google.cloud.dialogflowcx_v3beta1.types.TestRunDifference.DiffType): The type of diff. description (str): - A description of the diff, showing the actual - output vs expected output. + A human readable description of the diff, + showing the actual output vs expected output. """ class DiffType(proto.Enum): diff --git a/google/cloud/dialogflowcx_v3beta1/types/webhook.py b/google/cloud/dialogflowcx_v3beta1/types/webhook.py index 8881fce9..875c68a7 100644 --- a/google/cloud/dialogflowcx_v3beta1/types/webhook.py +++ b/google/cloud/dialogflowcx_v3beta1/types/webhook.py @@ -117,8 +117,68 @@ class GenericWebService(proto.Message): -signkey example.com.key \ -out example.com.crt \ -extfile <(printf "\nsubjectAltName='DNS:www.example.com'") + webhook_type (google.cloud.dialogflowcx_v3beta1.types.Webhook.GenericWebService.WebhookType): + Optional. Type of the webhook. + http_method (google.cloud.dialogflowcx_v3beta1.types.Webhook.GenericWebService.HttpMethod): + Optional. HTTP method for the flexible + webhook calls. Standard webhook always uses + POST. + request_body (str): + Optional. Defines a custom JSON object as + request body to send to flexible webhook. + parameter_mapping (MutableMapping[str, str]): + Optional. Maps the values extracted from + specific fields of the flexible webhook response + into session parameters. - Key: session + parameter name + - Value: field path in the webhook response """ + class WebhookType(proto.Enum): + r"""Represents the type of webhook configuration. + + Values: + WEBHOOK_TYPE_UNSPECIFIED (0): + Default value. This value is unused. + STANDARD (1): + Represents a standard webhook. + FLEXIBLE (2): + Represents a flexible webhook. + """ + WEBHOOK_TYPE_UNSPECIFIED = 0 + STANDARD = 1 + FLEXIBLE = 2 + + class HttpMethod(proto.Enum): + r"""HTTP method to use when calling webhooks. + + Values: + HTTP_METHOD_UNSPECIFIED (0): + HTTP method not specified. + POST (1): + HTTP POST Method. + GET (2): + HTTP GET Method. + HEAD (3): + HTTP HEAD Method. + PUT (4): + HTTP PUT Method. + DELETE (5): + HTTP DELETE Method. + PATCH (6): + HTTP PATCH Method. + OPTIONS (7): + HTTP OPTIONS Method. + """ + HTTP_METHOD_UNSPECIFIED = 0 + POST = 1 + GET = 2 + HEAD = 3 + PUT = 4 + DELETE = 5 + PATCH = 6 + OPTIONS = 7 + uri: str = proto.Field( proto.STRING, number=1, @@ -140,6 +200,25 @@ class GenericWebService(proto.Message): proto.BYTES, number=5, ) + webhook_type: "Webhook.GenericWebService.WebhookType" = proto.Field( + proto.ENUM, + number=6, + enum="Webhook.GenericWebService.WebhookType", + ) + http_method: "Webhook.GenericWebService.HttpMethod" = proto.Field( + proto.ENUM, + number=7, + enum="Webhook.GenericWebService.HttpMethod", + ) + request_body: str = proto.Field( + proto.STRING, + number=8, + ) + parameter_mapping: MutableMapping[str, str] = proto.MapField( + proto.STRING, + proto.STRING, + number=9, + ) class ServiceDirectoryConfig(proto.Message): r"""Represents configuration for a `Service diff --git a/samples/generated_samples/snippet_metadata_google.cloud.dialogflow.cx.v3.json b/samples/generated_samples/snippet_metadata_google.cloud.dialogflow.cx.v3.json index 2644ecad..979bc273 100644 --- a/samples/generated_samples/snippet_metadata_google.cloud.dialogflow.cx.v3.json +++ b/samples/generated_samples/snippet_metadata_google.cloud.dialogflow.cx.v3.json @@ -8,7 +8,7 @@ ], "language": "PYTHON", "name": "google-cloud-dialogflow-cx", - "version": "1.21.0" + "version": "1.22.0" }, "snippets": [ { diff --git a/samples/generated_samples/snippet_metadata_google.cloud.dialogflow.cx.v3beta1.json b/samples/generated_samples/snippet_metadata_google.cloud.dialogflow.cx.v3beta1.json index f4b63fb1..50c81c72 100644 --- a/samples/generated_samples/snippet_metadata_google.cloud.dialogflow.cx.v3beta1.json +++ b/samples/generated_samples/snippet_metadata_google.cloud.dialogflow.cx.v3beta1.json @@ -8,7 +8,7 @@ ], "language": "PYTHON", "name": "google-cloud-dialogflow-cx", - "version": "1.21.0" + "version": "1.22.0" }, "snippets": [ { diff --git a/tests/unit/gapic/dialogflowcx_v3/test_environments.py b/tests/unit/gapic/dialogflowcx_v3/test_environments.py index a185b741..38dfa1e8 100644 --- a/tests/unit/gapic/dialogflowcx_v3/test_environments.py +++ b/tests/unit/gapic/dialogflowcx_v3/test_environments.py @@ -3966,6 +3966,10 @@ def test_create_environment_rest(request_type): b"allowed_ca_certs_blob1", b"allowed_ca_certs_blob2", ], + "webhook_type": 1, + "http_method": 1, + "request_body": "request_body_value", + "parameter_mapping": {}, }, "service_directory": { "service": "service_value", @@ -4184,6 +4188,10 @@ def test_create_environment_rest_bad_request( b"allowed_ca_certs_blob1", b"allowed_ca_certs_blob2", ], + "webhook_type": 1, + "http_method": 1, + "request_body": "request_body_value", + "parameter_mapping": {}, }, "service_directory": { "service": "service_value", @@ -4316,6 +4324,10 @@ def test_update_environment_rest(request_type): b"allowed_ca_certs_blob1", b"allowed_ca_certs_blob2", ], + "webhook_type": 1, + "http_method": 1, + "request_body": "request_body_value", + "parameter_mapping": {}, }, "service_directory": { "service": "service_value", @@ -4535,6 +4547,10 @@ def test_update_environment_rest_bad_request( b"allowed_ca_certs_blob1", b"allowed_ca_certs_blob2", ], + "webhook_type": 1, + "http_method": 1, + "request_body": "request_body_value", + "parameter_mapping": {}, }, "service_directory": { "service": "service_value", diff --git a/tests/unit/gapic/dialogflowcx_v3/test_webhooks.py b/tests/unit/gapic/dialogflowcx_v3/test_webhooks.py index 29174865..000db9fd 100644 --- a/tests/unit/gapic/dialogflowcx_v3/test_webhooks.py +++ b/tests/unit/gapic/dialogflowcx_v3/test_webhooks.py @@ -2683,6 +2683,10 @@ def test_create_webhook_rest(request_type): "password": "password_value", "request_headers": {}, "allowed_ca_certs": [b"allowed_ca_certs_blob1", b"allowed_ca_certs_blob2"], + "webhook_type": 1, + "http_method": 1, + "request_body": "request_body_value", + "parameter_mapping": {}, }, "service_directory": {"service": "service_value", "generic_web_service": {}}, "timeout": {"seconds": 751, "nanos": 543}, @@ -2884,6 +2888,10 @@ def test_create_webhook_rest_bad_request( "password": "password_value", "request_headers": {}, "allowed_ca_certs": [b"allowed_ca_certs_blob1", b"allowed_ca_certs_blob2"], + "webhook_type": 1, + "http_method": 1, + "request_body": "request_body_value", + "parameter_mapping": {}, }, "service_directory": {"service": "service_value", "generic_web_service": {}}, "timeout": {"seconds": 751, "nanos": 543}, @@ -2995,6 +3003,10 @@ def test_update_webhook_rest(request_type): "password": "password_value", "request_headers": {}, "allowed_ca_certs": [b"allowed_ca_certs_blob1", b"allowed_ca_certs_blob2"], + "webhook_type": 1, + "http_method": 1, + "request_body": "request_body_value", + "parameter_mapping": {}, }, "service_directory": {"service": "service_value", "generic_web_service": {}}, "timeout": {"seconds": 751, "nanos": 543}, @@ -3189,6 +3201,10 @@ def test_update_webhook_rest_bad_request( "password": "password_value", "request_headers": {}, "allowed_ca_certs": [b"allowed_ca_certs_blob1", b"allowed_ca_certs_blob2"], + "webhook_type": 1, + "http_method": 1, + "request_body": "request_body_value", + "parameter_mapping": {}, }, "service_directory": {"service": "service_value", "generic_web_service": {}}, "timeout": {"seconds": 751, "nanos": 543}, diff --git a/tests/unit/gapic/dialogflowcx_v3beta1/test_environments.py b/tests/unit/gapic/dialogflowcx_v3beta1/test_environments.py index a43c91fd..d07199b0 100644 --- a/tests/unit/gapic/dialogflowcx_v3beta1/test_environments.py +++ b/tests/unit/gapic/dialogflowcx_v3beta1/test_environments.py @@ -3968,6 +3968,10 @@ def test_create_environment_rest(request_type): b"allowed_ca_certs_blob1", b"allowed_ca_certs_blob2", ], + "webhook_type": 1, + "http_method": 1, + "request_body": "request_body_value", + "parameter_mapping": {}, }, "service_directory": { "service": "service_value", @@ -4186,6 +4190,10 @@ def test_create_environment_rest_bad_request( b"allowed_ca_certs_blob1", b"allowed_ca_certs_blob2", ], + "webhook_type": 1, + "http_method": 1, + "request_body": "request_body_value", + "parameter_mapping": {}, }, "service_directory": { "service": "service_value", @@ -4318,6 +4326,10 @@ def test_update_environment_rest(request_type): b"allowed_ca_certs_blob1", b"allowed_ca_certs_blob2", ], + "webhook_type": 1, + "http_method": 1, + "request_body": "request_body_value", + "parameter_mapping": {}, }, "service_directory": { "service": "service_value", @@ -4537,6 +4549,10 @@ def test_update_environment_rest_bad_request( b"allowed_ca_certs_blob1", b"allowed_ca_certs_blob2", ], + "webhook_type": 1, + "http_method": 1, + "request_body": "request_body_value", + "parameter_mapping": {}, }, "service_directory": { "service": "service_value", diff --git a/tests/unit/gapic/dialogflowcx_v3beta1/test_webhooks.py b/tests/unit/gapic/dialogflowcx_v3beta1/test_webhooks.py index 70b1fbd2..bdcb2bf4 100644 --- a/tests/unit/gapic/dialogflowcx_v3beta1/test_webhooks.py +++ b/tests/unit/gapic/dialogflowcx_v3beta1/test_webhooks.py @@ -2683,6 +2683,10 @@ def test_create_webhook_rest(request_type): "password": "password_value", "request_headers": {}, "allowed_ca_certs": [b"allowed_ca_certs_blob1", b"allowed_ca_certs_blob2"], + "webhook_type": 1, + "http_method": 1, + "request_body": "request_body_value", + "parameter_mapping": {}, }, "service_directory": {"service": "service_value", "generic_web_service": {}}, "timeout": {"seconds": 751, "nanos": 543}, @@ -2884,6 +2888,10 @@ def test_create_webhook_rest_bad_request( "password": "password_value", "request_headers": {}, "allowed_ca_certs": [b"allowed_ca_certs_blob1", b"allowed_ca_certs_blob2"], + "webhook_type": 1, + "http_method": 1, + "request_body": "request_body_value", + "parameter_mapping": {}, }, "service_directory": {"service": "service_value", "generic_web_service": {}}, "timeout": {"seconds": 751, "nanos": 543}, @@ -2995,6 +3003,10 @@ def test_update_webhook_rest(request_type): "password": "password_value", "request_headers": {}, "allowed_ca_certs": [b"allowed_ca_certs_blob1", b"allowed_ca_certs_blob2"], + "webhook_type": 1, + "http_method": 1, + "request_body": "request_body_value", + "parameter_mapping": {}, }, "service_directory": {"service": "service_value", "generic_web_service": {}}, "timeout": {"seconds": 751, "nanos": 543}, @@ -3189,6 +3201,10 @@ def test_update_webhook_rest_bad_request( "password": "password_value", "request_headers": {}, "allowed_ca_certs": [b"allowed_ca_certs_blob1", b"allowed_ca_certs_blob2"], + "webhook_type": 1, + "http_method": 1, + "request_body": "request_body_value", + "parameter_mapping": {}, }, "service_directory": {"service": "service_value", "generic_web_service": {}}, "timeout": {"seconds": 751, "nanos": 543},