From 5cf2470633a41cf8ffabfd7ea6c754cea34c7abe Mon Sep 17 00:00:00 2001 From: Yoshi Automation Bot Date: Wed, 14 Aug 2019 08:30:50 -0700 Subject: [PATCH] Update gapic retry configuration (via synth). (#9028) --- .../key_management_service_client_config.py | 54 ++++++++++--------- kms/synth.metadata | 10 ++-- 2 files changed, 33 insertions(+), 31 deletions(-) diff --git a/kms/google/cloud/kms_v1/gapic/key_management_service_client_config.py b/kms/google/cloud/kms_v1/gapic/key_management_service_client_config.py index 0f86e6b5d7a87..0909a8a75eda6 100644 --- a/kms/google/cloud/kms_v1/gapic/key_management_service_client_config.py +++ b/kms/google/cloud/kms_v1/gapic/key_management_service_client_config.py @@ -2,8 +2,10 @@ "interfaces": { "google.cloud.kms.v1.KeyManagementService": { "retry_codes": { + "retryable": ["DEADLINE_EXCEEDED", "INTERNAL", "UNAVAILABLE"], "idempotent": ["DEADLINE_EXCEEDED", "UNAVAILABLE"], "non_idempotent": [], + "non_retryable": [], }, "retry_params": { "default": { @@ -19,132 +21,132 @@ "methods": { "ListKeyRings": { "timeout_millis": 60000, - "retry_codes_name": "idempotent", + "retry_codes_name": "retryable", "retry_params_name": "default", }, "ListImportJobs": { "timeout_millis": 60000, - "retry_codes_name": "idempotent", + "retry_codes_name": "retryable", "retry_params_name": "default", }, "ListCryptoKeys": { "timeout_millis": 60000, - "retry_codes_name": "idempotent", + "retry_codes_name": "retryable", "retry_params_name": "default", }, "ListCryptoKeyVersions": { "timeout_millis": 60000, - "retry_codes_name": "idempotent", + "retry_codes_name": "retryable", "retry_params_name": "default", }, "GetKeyRing": { "timeout_millis": 60000, - "retry_codes_name": "idempotent", + "retry_codes_name": "retryable", "retry_params_name": "default", }, "GetImportJob": { "timeout_millis": 60000, - "retry_codes_name": "idempotent", + "retry_codes_name": "retryable", "retry_params_name": "default", }, "GetCryptoKey": { "timeout_millis": 60000, - "retry_codes_name": "idempotent", + "retry_codes_name": "retryable", "retry_params_name": "default", }, "GetCryptoKeyVersion": { "timeout_millis": 60000, - "retry_codes_name": "idempotent", + "retry_codes_name": "retryable", "retry_params_name": "default", }, "CreateKeyRing": { "timeout_millis": 60000, - "retry_codes_name": "non_idempotent", + "retry_codes_name": "retryable", "retry_params_name": "default", }, "CreateImportJob": { "timeout_millis": 60000, - "retry_codes_name": "non_idempotent", + "retry_codes_name": "retryable", "retry_params_name": "default", }, "CreateCryptoKey": { "timeout_millis": 60000, - "retry_codes_name": "non_idempotent", + "retry_codes_name": "retryable", "retry_params_name": "default", }, "CreateCryptoKeyVersion": { "timeout_millis": 60000, - "retry_codes_name": "non_idempotent", + "retry_codes_name": "non_retryable", "retry_params_name": "default", }, "ImportCryptoKeyVersion": { "timeout_millis": 60000, - "retry_codes_name": "non_idempotent", + "retry_codes_name": "non_retryable", "retry_params_name": "default", }, "UpdateCryptoKey": { "timeout_millis": 60000, - "retry_codes_name": "non_idempotent", + "retry_codes_name": "retryable", "retry_params_name": "default", }, "UpdateCryptoKeyVersion": { "timeout_millis": 60000, - "retry_codes_name": "non_idempotent", + "retry_codes_name": "retryable", "retry_params_name": "default", }, "Encrypt": { "timeout_millis": 60000, - "retry_codes_name": "idempotent", + "retry_codes_name": "retryable", "retry_params_name": "default", }, "Decrypt": { "timeout_millis": 60000, - "retry_codes_name": "idempotent", + "retry_codes_name": "retryable", "retry_params_name": "default", }, "UpdateCryptoKeyPrimaryVersion": { "timeout_millis": 60000, - "retry_codes_name": "non_idempotent", + "retry_codes_name": "retryable", "retry_params_name": "default", }, "DestroyCryptoKeyVersion": { "timeout_millis": 60000, - "retry_codes_name": "non_idempotent", + "retry_codes_name": "retryable", "retry_params_name": "default", }, "RestoreCryptoKeyVersion": { "timeout_millis": 60000, - "retry_codes_name": "non_idempotent", + "retry_codes_name": "retryable", "retry_params_name": "default", }, "GetPublicKey": { "timeout_millis": 60000, - "retry_codes_name": "idempotent", + "retry_codes_name": "retryable", "retry_params_name": "default", }, "AsymmetricDecrypt": { "timeout_millis": 60000, - "retry_codes_name": "idempotent", + "retry_codes_name": "retryable", "retry_params_name": "default", }, "AsymmetricSign": { "timeout_millis": 60000, - "retry_codes_name": "idempotent", + "retry_codes_name": "retryable", "retry_params_name": "default", }, "SetIamPolicy": { "timeout_millis": 60000, - "retry_codes_name": "non_idempotent", + "retry_codes_name": "retryable", "retry_params_name": "default", }, "GetIamPolicy": { "timeout_millis": 60000, - "retry_codes_name": "idempotent", + "retry_codes_name": "retryable", "retry_params_name": "default", }, "TestIamPermissions": { "timeout_millis": 60000, - "retry_codes_name": "non_idempotent", + "retry_codes_name": "retryable", "retry_params_name": "default", }, }, diff --git a/kms/synth.metadata b/kms/synth.metadata index 31d076f456859..76bc063e86653 100644 --- a/kms/synth.metadata +++ b/kms/synth.metadata @@ -1,19 +1,19 @@ { - "updateTime": "2019-08-06T12:29:46.715135Z", + "updateTime": "2019-08-14T12:28:37.661447Z", "sources": [ { "generator": { "name": "artman", - "version": "0.32.1", - "dockerImage": "googleapis/artman@sha256:a684d40ba9a4e15946f5f2ca6b4bd9fe301192f522e9de4fff622118775f309b" + "version": "0.33.0", + "dockerImage": "googleapis/artman@sha256:c6231efb525569736226b1f7af7565dbc84248efafb3692a5bb1d2d8a7975d53" } }, { "git": { "name": "googleapis", "remote": "https://github.com/googleapis/googleapis.git", - "sha": "e699b0cba64ffddfae39633417180f1f65875896", - "internalRef": "261759677" + "sha": "3406d1e899f1f41123b3fa9210ad4bef25c9a720", + "internalRef": "263234709" } }, {