From 8d582832ea028336dd285d62446cb37dbe228fa1 Mon Sep 17 00:00:00 2001 From: Google APIs Date: Wed, 22 Jul 2020 13:28:51 -0700 Subject: [PATCH] fix: migrate iot/v1 to grpc_service_config PiperOrigin-RevId: 322642677 --- google/cloud/iot/v1/BUILD.bazel | 3 +++ google/cloud/iot/v1/cloudiot_gapic.yaml | 35 ------------------------- 2 files changed, 3 insertions(+), 35 deletions(-) diff --git a/google/cloud/iot/v1/BUILD.bazel b/google/cloud/iot/v1/BUILD.bazel index ea4c7e60..e29ff7b2 100644 --- a/google/cloud/iot/v1/BUILD.bazel +++ b/google/cloud/iot/v1/BUILD.bazel @@ -64,6 +64,7 @@ java_gapic_library( name = "iot_java_gapic", src = ":iot_proto_with_info", gapic_yaml = "cloudiot_gapic.yaml", + grpc_service_config = "cloudiot_grpc_service_config.json", package = "google.cloud.iot.v1", service_yaml = "cloudiot_v1.yaml", test_deps = [ @@ -192,6 +193,7 @@ py_gapic_library( name = "iot_py_gapic", src = ":iot_proto_with_info", gapic_yaml = "cloudiot_gapic.yaml", + grpc_service_config = "cloudiot_grpc_service_config.json", package = "google.cloud.iot.v1", service_yaml = "cloudiot_v1.yaml", deps = [ @@ -236,6 +238,7 @@ php_gapic_library( name = "iot_php_gapic", src = ":iot_proto_with_info", gapic_yaml = "cloudiot_gapic.yaml", + grpc_service_config = "cloudiot_grpc_service_config.json", package = "google.cloud.iot.v1", service_yaml = "cloudiot_v1.yaml", deps = [ diff --git a/google/cloud/iot/v1/cloudiot_gapic.yaml b/google/cloud/iot/v1/cloudiot_gapic.yaml index 37fef5ca..04f0dbe9 100644 --- a/google/cloud/iot/v1/cloudiot_gapic.yaml +++ b/google/cloud/iot/v1/cloudiot_gapic.yaml @@ -25,38 +25,3 @@ interfaces: init_fields: - parent%project=$PROJECT_ID - parent%location="us-central1" - retry_codes_def: - - name: rate_limited_aware - retry_codes: - - UNAVAILABLE - - DEADLINE_EXCEEDED - - RESOURCE_EXHAUSTED - # Definition for retry/backoff parameters. - retry_params_def: - - name: default - initial_retry_delay_millis: 100 - retry_delay_multiplier: 1.3 - max_retry_delay_millis: 60000 - initial_rpc_timeout_millis: 20000 - rpc_timeout_multiplier: 1 - max_rpc_timeout_millis: 20000 - total_timeout_millis: 120000 - - name: rate_limited_aware - initial_retry_delay_millis: 1000 - retry_delay_multiplier: 1.3 - max_retry_delay_millis: 60000 - initial_rpc_timeout_millis: 20000 - rpc_timeout_multiplier: 1 - max_rpc_timeout_millis: 20000 - total_timeout_millis: 120000 - methods: - - name: DeleteDeviceRegistry - retry_codes_name: idempotent - - name: DeleteDevice - retry_codes_name: idempotent - - name: ModifyCloudToDeviceConfig - retry_codes_name: rate_limited_aware - retry_params_name: rate_limited_aware - - name: SendCommandToDevice - retry_codes_name: rate_limited_aware - retry_params_name: rate_limited_aware