From 83cfa50c7cb14f663f540d270e7d85c8f5559b85 Mon Sep 17 00:00:00 2001 From: Anthonios Partheniou Date: Wed, 18 Dec 2024 18:47:27 +0000 Subject: [PATCH] address feedback --- .../%sub/services/%service/_shared_macros.j2 | 10 +- .../services/asset_service/transports/rest.py | 210 +++++++++++------- .../iam_credentials/transports/rest.py | 40 ++-- .../services/eventarc/transports/rest.py | 180 +++++++++------ .../services/cloud_redis/transports/rest.py | 110 +++++---- .../cloud_redis/transports/rest_asyncio.py | 110 +++++---- 6 files changed, 396 insertions(+), 264 deletions(-) diff --git a/gapic/templates/%namespace/%name_%version/%sub/services/%service/_shared_macros.j2 b/gapic/templates/%namespace/%name_%version/%sub/services/%service/_shared_macros.j2 index fa0a74886..7ec9de91e 100644 --- a/gapic/templates/%namespace/%name_%version/%sub/services/%service/_shared_macros.j2 +++ b/gapic/templates/%namespace/%name_%version/%sub/services/%service/_shared_macros.j2 @@ -383,11 +383,13 @@ class {{ async_method_name_prefix }}{{ service.name }}RestInterceptor: {% endif %} """Post-rpc interceptor for {{ method.name|snake_case }} - Deprecated. This interceptor is deprecated. Please use the `post_{{ method.name|snake_case }}_with_metadata` - interceptor instead. Override in a subclass to read or manipulate the response + DEPRECATED. Please use the `post_{{ method.name|snake_case }}_with_metadata` + interceptor instead. + + Override in a subclass to read or manipulate the response after it is returned by the {{ service.name }} server but before - it is returned to user code. This `post_{{ method.name|snake_case }}` iterceptor runs - before the `post_{{ method.name|snake_case }}_with_metadata` iterceptor. + it is returned to user code. This `post_{{ method.name|snake_case }}` interceptor runs + before the `post_{{ method.name|snake_case }}_with_metadata` interceptor. """ return response diff --git a/tests/integration/goldens/asset/google/cloud/asset_v1/services/asset_service/transports/rest.py b/tests/integration/goldens/asset/google/cloud/asset_v1/services/asset_service/transports/rest.py index 4c8b67550..a96e87b04 100755 --- a/tests/integration/goldens/asset/google/cloud/asset_v1/services/asset_service/transports/rest.py +++ b/tests/integration/goldens/asset/google/cloud/asset_v1/services/asset_service/transports/rest.py @@ -268,11 +268,13 @@ def pre_analyze_iam_policy(self, request: asset_service.AnalyzeIamPolicyRequest, def post_analyze_iam_policy(self, response: asset_service.AnalyzeIamPolicyResponse) -> asset_service.AnalyzeIamPolicyResponse: """Post-rpc interceptor for analyze_iam_policy - Deprecated. This interceptor is deprecated. Please use the `post_analyze_iam_policy_with_metadata` - interceptor instead. Override in a subclass to read or manipulate the response + DEPRECATED. Please use the `post_analyze_iam_policy_with_metadata` + interceptor instead. + + Override in a subclass to read or manipulate the response after it is returned by the AssetService server but before - it is returned to user code. This `post_analyze_iam_policy` iterceptor runs - before the `post_analyze_iam_policy_with_metadata` iterceptor. + it is returned to user code. This `post_analyze_iam_policy` interceptor runs + before the `post_analyze_iam_policy_with_metadata` interceptor. """ return response @@ -300,11 +302,13 @@ def pre_analyze_iam_policy_longrunning(self, request: asset_service.AnalyzeIamPo def post_analyze_iam_policy_longrunning(self, response: operations_pb2.Operation) -> operations_pb2.Operation: """Post-rpc interceptor for analyze_iam_policy_longrunning - Deprecated. This interceptor is deprecated. Please use the `post_analyze_iam_policy_longrunning_with_metadata` - interceptor instead. Override in a subclass to read or manipulate the response + DEPRECATED. Please use the `post_analyze_iam_policy_longrunning_with_metadata` + interceptor instead. + + Override in a subclass to read or manipulate the response after it is returned by the AssetService server but before - it is returned to user code. This `post_analyze_iam_policy_longrunning` iterceptor runs - before the `post_analyze_iam_policy_longrunning_with_metadata` iterceptor. + it is returned to user code. This `post_analyze_iam_policy_longrunning` interceptor runs + before the `post_analyze_iam_policy_longrunning_with_metadata` interceptor. """ return response @@ -332,11 +336,13 @@ def pre_analyze_move(self, request: asset_service.AnalyzeMoveRequest, metadata: def post_analyze_move(self, response: asset_service.AnalyzeMoveResponse) -> asset_service.AnalyzeMoveResponse: """Post-rpc interceptor for analyze_move - Deprecated. This interceptor is deprecated. Please use the `post_analyze_move_with_metadata` - interceptor instead. Override in a subclass to read or manipulate the response + DEPRECATED. Please use the `post_analyze_move_with_metadata` + interceptor instead. + + Override in a subclass to read or manipulate the response after it is returned by the AssetService server but before - it is returned to user code. This `post_analyze_move` iterceptor runs - before the `post_analyze_move_with_metadata` iterceptor. + it is returned to user code. This `post_analyze_move` interceptor runs + before the `post_analyze_move_with_metadata` interceptor. """ return response @@ -364,11 +370,13 @@ def pre_analyze_org_policies(self, request: asset_service.AnalyzeOrgPoliciesRequ def post_analyze_org_policies(self, response: asset_service.AnalyzeOrgPoliciesResponse) -> asset_service.AnalyzeOrgPoliciesResponse: """Post-rpc interceptor for analyze_org_policies - Deprecated. This interceptor is deprecated. Please use the `post_analyze_org_policies_with_metadata` - interceptor instead. Override in a subclass to read or manipulate the response + DEPRECATED. Please use the `post_analyze_org_policies_with_metadata` + interceptor instead. + + Override in a subclass to read or manipulate the response after it is returned by the AssetService server but before - it is returned to user code. This `post_analyze_org_policies` iterceptor runs - before the `post_analyze_org_policies_with_metadata` iterceptor. + it is returned to user code. This `post_analyze_org_policies` interceptor runs + before the `post_analyze_org_policies_with_metadata` interceptor. """ return response @@ -396,11 +404,13 @@ def pre_analyze_org_policy_governed_assets(self, request: asset_service.AnalyzeO def post_analyze_org_policy_governed_assets(self, response: asset_service.AnalyzeOrgPolicyGovernedAssetsResponse) -> asset_service.AnalyzeOrgPolicyGovernedAssetsResponse: """Post-rpc interceptor for analyze_org_policy_governed_assets - Deprecated. This interceptor is deprecated. Please use the `post_analyze_org_policy_governed_assets_with_metadata` - interceptor instead. Override in a subclass to read or manipulate the response + DEPRECATED. Please use the `post_analyze_org_policy_governed_assets_with_metadata` + interceptor instead. + + Override in a subclass to read or manipulate the response after it is returned by the AssetService server but before - it is returned to user code. This `post_analyze_org_policy_governed_assets` iterceptor runs - before the `post_analyze_org_policy_governed_assets_with_metadata` iterceptor. + it is returned to user code. This `post_analyze_org_policy_governed_assets` interceptor runs + before the `post_analyze_org_policy_governed_assets_with_metadata` interceptor. """ return response @@ -428,11 +438,13 @@ def pre_analyze_org_policy_governed_containers(self, request: asset_service.Anal def post_analyze_org_policy_governed_containers(self, response: asset_service.AnalyzeOrgPolicyGovernedContainersResponse) -> asset_service.AnalyzeOrgPolicyGovernedContainersResponse: """Post-rpc interceptor for analyze_org_policy_governed_containers - Deprecated. This interceptor is deprecated. Please use the `post_analyze_org_policy_governed_containers_with_metadata` - interceptor instead. Override in a subclass to read or manipulate the response + DEPRECATED. Please use the `post_analyze_org_policy_governed_containers_with_metadata` + interceptor instead. + + Override in a subclass to read or manipulate the response after it is returned by the AssetService server but before - it is returned to user code. This `post_analyze_org_policy_governed_containers` iterceptor runs - before the `post_analyze_org_policy_governed_containers_with_metadata` iterceptor. + it is returned to user code. This `post_analyze_org_policy_governed_containers` interceptor runs + before the `post_analyze_org_policy_governed_containers_with_metadata` interceptor. """ return response @@ -460,11 +472,13 @@ def pre_batch_get_assets_history(self, request: asset_service.BatchGetAssetsHist def post_batch_get_assets_history(self, response: asset_service.BatchGetAssetsHistoryResponse) -> asset_service.BatchGetAssetsHistoryResponse: """Post-rpc interceptor for batch_get_assets_history - Deprecated. This interceptor is deprecated. Please use the `post_batch_get_assets_history_with_metadata` - interceptor instead. Override in a subclass to read or manipulate the response + DEPRECATED. Please use the `post_batch_get_assets_history_with_metadata` + interceptor instead. + + Override in a subclass to read or manipulate the response after it is returned by the AssetService server but before - it is returned to user code. This `post_batch_get_assets_history` iterceptor runs - before the `post_batch_get_assets_history_with_metadata` iterceptor. + it is returned to user code. This `post_batch_get_assets_history` interceptor runs + before the `post_batch_get_assets_history_with_metadata` interceptor. """ return response @@ -492,11 +506,13 @@ def pre_batch_get_effective_iam_policies(self, request: asset_service.BatchGetEf def post_batch_get_effective_iam_policies(self, response: asset_service.BatchGetEffectiveIamPoliciesResponse) -> asset_service.BatchGetEffectiveIamPoliciesResponse: """Post-rpc interceptor for batch_get_effective_iam_policies - Deprecated. This interceptor is deprecated. Please use the `post_batch_get_effective_iam_policies_with_metadata` - interceptor instead. Override in a subclass to read or manipulate the response + DEPRECATED. Please use the `post_batch_get_effective_iam_policies_with_metadata` + interceptor instead. + + Override in a subclass to read or manipulate the response after it is returned by the AssetService server but before - it is returned to user code. This `post_batch_get_effective_iam_policies` iterceptor runs - before the `post_batch_get_effective_iam_policies_with_metadata` iterceptor. + it is returned to user code. This `post_batch_get_effective_iam_policies` interceptor runs + before the `post_batch_get_effective_iam_policies_with_metadata` interceptor. """ return response @@ -524,11 +540,13 @@ def pre_create_feed(self, request: asset_service.CreateFeedRequest, metadata: Se def post_create_feed(self, response: asset_service.Feed) -> asset_service.Feed: """Post-rpc interceptor for create_feed - Deprecated. This interceptor is deprecated. Please use the `post_create_feed_with_metadata` - interceptor instead. Override in a subclass to read or manipulate the response + DEPRECATED. Please use the `post_create_feed_with_metadata` + interceptor instead. + + Override in a subclass to read or manipulate the response after it is returned by the AssetService server but before - it is returned to user code. This `post_create_feed` iterceptor runs - before the `post_create_feed_with_metadata` iterceptor. + it is returned to user code. This `post_create_feed` interceptor runs + before the `post_create_feed_with_metadata` interceptor. """ return response @@ -556,11 +574,13 @@ def pre_create_saved_query(self, request: asset_service.CreateSavedQueryRequest, def post_create_saved_query(self, response: asset_service.SavedQuery) -> asset_service.SavedQuery: """Post-rpc interceptor for create_saved_query - Deprecated. This interceptor is deprecated. Please use the `post_create_saved_query_with_metadata` - interceptor instead. Override in a subclass to read or manipulate the response + DEPRECATED. Please use the `post_create_saved_query_with_metadata` + interceptor instead. + + Override in a subclass to read or manipulate the response after it is returned by the AssetService server but before - it is returned to user code. This `post_create_saved_query` iterceptor runs - before the `post_create_saved_query_with_metadata` iterceptor. + it is returned to user code. This `post_create_saved_query` interceptor runs + before the `post_create_saved_query_with_metadata` interceptor. """ return response @@ -604,11 +624,13 @@ def pre_export_assets(self, request: asset_service.ExportAssetsRequest, metadata def post_export_assets(self, response: operations_pb2.Operation) -> operations_pb2.Operation: """Post-rpc interceptor for export_assets - Deprecated. This interceptor is deprecated. Please use the `post_export_assets_with_metadata` - interceptor instead. Override in a subclass to read or manipulate the response + DEPRECATED. Please use the `post_export_assets_with_metadata` + interceptor instead. + + Override in a subclass to read or manipulate the response after it is returned by the AssetService server but before - it is returned to user code. This `post_export_assets` iterceptor runs - before the `post_export_assets_with_metadata` iterceptor. + it is returned to user code. This `post_export_assets` interceptor runs + before the `post_export_assets_with_metadata` interceptor. """ return response @@ -636,11 +658,13 @@ def pre_get_feed(self, request: asset_service.GetFeedRequest, metadata: Sequence def post_get_feed(self, response: asset_service.Feed) -> asset_service.Feed: """Post-rpc interceptor for get_feed - Deprecated. This interceptor is deprecated. Please use the `post_get_feed_with_metadata` - interceptor instead. Override in a subclass to read or manipulate the response + DEPRECATED. Please use the `post_get_feed_with_metadata` + interceptor instead. + + Override in a subclass to read or manipulate the response after it is returned by the AssetService server but before - it is returned to user code. This `post_get_feed` iterceptor runs - before the `post_get_feed_with_metadata` iterceptor. + it is returned to user code. This `post_get_feed` interceptor runs + before the `post_get_feed_with_metadata` interceptor. """ return response @@ -668,11 +692,13 @@ def pre_get_saved_query(self, request: asset_service.GetSavedQueryRequest, metad def post_get_saved_query(self, response: asset_service.SavedQuery) -> asset_service.SavedQuery: """Post-rpc interceptor for get_saved_query - Deprecated. This interceptor is deprecated. Please use the `post_get_saved_query_with_metadata` - interceptor instead. Override in a subclass to read or manipulate the response + DEPRECATED. Please use the `post_get_saved_query_with_metadata` + interceptor instead. + + Override in a subclass to read or manipulate the response after it is returned by the AssetService server but before - it is returned to user code. This `post_get_saved_query` iterceptor runs - before the `post_get_saved_query_with_metadata` iterceptor. + it is returned to user code. This `post_get_saved_query` interceptor runs + before the `post_get_saved_query_with_metadata` interceptor. """ return response @@ -700,11 +726,13 @@ def pre_list_assets(self, request: asset_service.ListAssetsRequest, metadata: Se def post_list_assets(self, response: asset_service.ListAssetsResponse) -> asset_service.ListAssetsResponse: """Post-rpc interceptor for list_assets - Deprecated. This interceptor is deprecated. Please use the `post_list_assets_with_metadata` - interceptor instead. Override in a subclass to read or manipulate the response + DEPRECATED. Please use the `post_list_assets_with_metadata` + interceptor instead. + + Override in a subclass to read or manipulate the response after it is returned by the AssetService server but before - it is returned to user code. This `post_list_assets` iterceptor runs - before the `post_list_assets_with_metadata` iterceptor. + it is returned to user code. This `post_list_assets` interceptor runs + before the `post_list_assets_with_metadata` interceptor. """ return response @@ -732,11 +760,13 @@ def pre_list_feeds(self, request: asset_service.ListFeedsRequest, metadata: Sequ def post_list_feeds(self, response: asset_service.ListFeedsResponse) -> asset_service.ListFeedsResponse: """Post-rpc interceptor for list_feeds - Deprecated. This interceptor is deprecated. Please use the `post_list_feeds_with_metadata` - interceptor instead. Override in a subclass to read or manipulate the response + DEPRECATED. Please use the `post_list_feeds_with_metadata` + interceptor instead. + + Override in a subclass to read or manipulate the response after it is returned by the AssetService server but before - it is returned to user code. This `post_list_feeds` iterceptor runs - before the `post_list_feeds_with_metadata` iterceptor. + it is returned to user code. This `post_list_feeds` interceptor runs + before the `post_list_feeds_with_metadata` interceptor. """ return response @@ -764,11 +794,13 @@ def pre_list_saved_queries(self, request: asset_service.ListSavedQueriesRequest, def post_list_saved_queries(self, response: asset_service.ListSavedQueriesResponse) -> asset_service.ListSavedQueriesResponse: """Post-rpc interceptor for list_saved_queries - Deprecated. This interceptor is deprecated. Please use the `post_list_saved_queries_with_metadata` - interceptor instead. Override in a subclass to read or manipulate the response + DEPRECATED. Please use the `post_list_saved_queries_with_metadata` + interceptor instead. + + Override in a subclass to read or manipulate the response after it is returned by the AssetService server but before - it is returned to user code. This `post_list_saved_queries` iterceptor runs - before the `post_list_saved_queries_with_metadata` iterceptor. + it is returned to user code. This `post_list_saved_queries` interceptor runs + before the `post_list_saved_queries_with_metadata` interceptor. """ return response @@ -796,11 +828,13 @@ def pre_query_assets(self, request: asset_service.QueryAssetsRequest, metadata: def post_query_assets(self, response: asset_service.QueryAssetsResponse) -> asset_service.QueryAssetsResponse: """Post-rpc interceptor for query_assets - Deprecated. This interceptor is deprecated. Please use the `post_query_assets_with_metadata` - interceptor instead. Override in a subclass to read or manipulate the response + DEPRECATED. Please use the `post_query_assets_with_metadata` + interceptor instead. + + Override in a subclass to read or manipulate the response after it is returned by the AssetService server but before - it is returned to user code. This `post_query_assets` iterceptor runs - before the `post_query_assets_with_metadata` iterceptor. + it is returned to user code. This `post_query_assets` interceptor runs + before the `post_query_assets_with_metadata` interceptor. """ return response @@ -828,11 +862,13 @@ def pre_search_all_iam_policies(self, request: asset_service.SearchAllIamPolicie def post_search_all_iam_policies(self, response: asset_service.SearchAllIamPoliciesResponse) -> asset_service.SearchAllIamPoliciesResponse: """Post-rpc interceptor for search_all_iam_policies - Deprecated. This interceptor is deprecated. Please use the `post_search_all_iam_policies_with_metadata` - interceptor instead. Override in a subclass to read or manipulate the response + DEPRECATED. Please use the `post_search_all_iam_policies_with_metadata` + interceptor instead. + + Override in a subclass to read or manipulate the response after it is returned by the AssetService server but before - it is returned to user code. This `post_search_all_iam_policies` iterceptor runs - before the `post_search_all_iam_policies_with_metadata` iterceptor. + it is returned to user code. This `post_search_all_iam_policies` interceptor runs + before the `post_search_all_iam_policies_with_metadata` interceptor. """ return response @@ -860,11 +896,13 @@ def pre_search_all_resources(self, request: asset_service.SearchAllResourcesRequ def post_search_all_resources(self, response: asset_service.SearchAllResourcesResponse) -> asset_service.SearchAllResourcesResponse: """Post-rpc interceptor for search_all_resources - Deprecated. This interceptor is deprecated. Please use the `post_search_all_resources_with_metadata` - interceptor instead. Override in a subclass to read or manipulate the response + DEPRECATED. Please use the `post_search_all_resources_with_metadata` + interceptor instead. + + Override in a subclass to read or manipulate the response after it is returned by the AssetService server but before - it is returned to user code. This `post_search_all_resources` iterceptor runs - before the `post_search_all_resources_with_metadata` iterceptor. + it is returned to user code. This `post_search_all_resources` interceptor runs + before the `post_search_all_resources_with_metadata` interceptor. """ return response @@ -892,11 +930,13 @@ def pre_update_feed(self, request: asset_service.UpdateFeedRequest, metadata: Se def post_update_feed(self, response: asset_service.Feed) -> asset_service.Feed: """Post-rpc interceptor for update_feed - Deprecated. This interceptor is deprecated. Please use the `post_update_feed_with_metadata` - interceptor instead. Override in a subclass to read or manipulate the response + DEPRECATED. Please use the `post_update_feed_with_metadata` + interceptor instead. + + Override in a subclass to read or manipulate the response after it is returned by the AssetService server but before - it is returned to user code. This `post_update_feed` iterceptor runs - before the `post_update_feed_with_metadata` iterceptor. + it is returned to user code. This `post_update_feed` interceptor runs + before the `post_update_feed_with_metadata` interceptor. """ return response @@ -924,11 +964,13 @@ def pre_update_saved_query(self, request: asset_service.UpdateSavedQueryRequest, def post_update_saved_query(self, response: asset_service.SavedQuery) -> asset_service.SavedQuery: """Post-rpc interceptor for update_saved_query - Deprecated. This interceptor is deprecated. Please use the `post_update_saved_query_with_metadata` - interceptor instead. Override in a subclass to read or manipulate the response + DEPRECATED. Please use the `post_update_saved_query_with_metadata` + interceptor instead. + + Override in a subclass to read or manipulate the response after it is returned by the AssetService server but before - it is returned to user code. This `post_update_saved_query` iterceptor runs - before the `post_update_saved_query_with_metadata` iterceptor. + it is returned to user code. This `post_update_saved_query` interceptor runs + before the `post_update_saved_query_with_metadata` interceptor. """ return response diff --git a/tests/integration/goldens/credentials/google/iam/credentials_v1/services/iam_credentials/transports/rest.py b/tests/integration/goldens/credentials/google/iam/credentials_v1/services/iam_credentials/transports/rest.py index 698d0e406..75e9ebf34 100755 --- a/tests/integration/goldens/credentials/google/iam/credentials_v1/services/iam_credentials/transports/rest.py +++ b/tests/integration/goldens/credentials/google/iam/credentials_v1/services/iam_credentials/transports/rest.py @@ -121,11 +121,13 @@ def pre_generate_access_token(self, request: common.GenerateAccessTokenRequest, def post_generate_access_token(self, response: common.GenerateAccessTokenResponse) -> common.GenerateAccessTokenResponse: """Post-rpc interceptor for generate_access_token - Deprecated. This interceptor is deprecated. Please use the `post_generate_access_token_with_metadata` - interceptor instead. Override in a subclass to read or manipulate the response + DEPRECATED. Please use the `post_generate_access_token_with_metadata` + interceptor instead. + + Override in a subclass to read or manipulate the response after it is returned by the IAMCredentials server but before - it is returned to user code. This `post_generate_access_token` iterceptor runs - before the `post_generate_access_token_with_metadata` iterceptor. + it is returned to user code. This `post_generate_access_token` interceptor runs + before the `post_generate_access_token_with_metadata` interceptor. """ return response @@ -153,11 +155,13 @@ def pre_generate_id_token(self, request: common.GenerateIdTokenRequest, metadata def post_generate_id_token(self, response: common.GenerateIdTokenResponse) -> common.GenerateIdTokenResponse: """Post-rpc interceptor for generate_id_token - Deprecated. This interceptor is deprecated. Please use the `post_generate_id_token_with_metadata` - interceptor instead. Override in a subclass to read or manipulate the response + DEPRECATED. Please use the `post_generate_id_token_with_metadata` + interceptor instead. + + Override in a subclass to read or manipulate the response after it is returned by the IAMCredentials server but before - it is returned to user code. This `post_generate_id_token` iterceptor runs - before the `post_generate_id_token_with_metadata` iterceptor. + it is returned to user code. This `post_generate_id_token` interceptor runs + before the `post_generate_id_token_with_metadata` interceptor. """ return response @@ -185,11 +189,13 @@ def pre_sign_blob(self, request: common.SignBlobRequest, metadata: Sequence[Tupl def post_sign_blob(self, response: common.SignBlobResponse) -> common.SignBlobResponse: """Post-rpc interceptor for sign_blob - Deprecated. This interceptor is deprecated. Please use the `post_sign_blob_with_metadata` - interceptor instead. Override in a subclass to read or manipulate the response + DEPRECATED. Please use the `post_sign_blob_with_metadata` + interceptor instead. + + Override in a subclass to read or manipulate the response after it is returned by the IAMCredentials server but before - it is returned to user code. This `post_sign_blob` iterceptor runs - before the `post_sign_blob_with_metadata` iterceptor. + it is returned to user code. This `post_sign_blob` interceptor runs + before the `post_sign_blob_with_metadata` interceptor. """ return response @@ -217,11 +223,13 @@ def pre_sign_jwt(self, request: common.SignJwtRequest, metadata: Sequence[Tuple[ def post_sign_jwt(self, response: common.SignJwtResponse) -> common.SignJwtResponse: """Post-rpc interceptor for sign_jwt - Deprecated. This interceptor is deprecated. Please use the `post_sign_jwt_with_metadata` - interceptor instead. Override in a subclass to read or manipulate the response + DEPRECATED. Please use the `post_sign_jwt_with_metadata` + interceptor instead. + + Override in a subclass to read or manipulate the response after it is returned by the IAMCredentials server but before - it is returned to user code. This `post_sign_jwt` iterceptor runs - before the `post_sign_jwt_with_metadata` iterceptor. + it is returned to user code. This `post_sign_jwt` interceptor runs + before the `post_sign_jwt_with_metadata` interceptor. """ return response diff --git a/tests/integration/goldens/eventarc/google/cloud/eventarc_v1/services/eventarc/transports/rest.py b/tests/integration/goldens/eventarc/google/cloud/eventarc_v1/services/eventarc/transports/rest.py index f3530efaa..30c6869c5 100755 --- a/tests/integration/goldens/eventarc/google/cloud/eventarc_v1/services/eventarc/transports/rest.py +++ b/tests/integration/goldens/eventarc/google/cloud/eventarc_v1/services/eventarc/transports/rest.py @@ -244,11 +244,13 @@ def pre_create_channel(self, request: eventarc.CreateChannelRequest, metadata: S def post_create_channel(self, response: operations_pb2.Operation) -> operations_pb2.Operation: """Post-rpc interceptor for create_channel - Deprecated. This interceptor is deprecated. Please use the `post_create_channel_with_metadata` - interceptor instead. Override in a subclass to read or manipulate the response + DEPRECATED. Please use the `post_create_channel_with_metadata` + interceptor instead. + + Override in a subclass to read or manipulate the response after it is returned by the Eventarc server but before - it is returned to user code. This `post_create_channel` iterceptor runs - before the `post_create_channel_with_metadata` iterceptor. + it is returned to user code. This `post_create_channel` interceptor runs + before the `post_create_channel_with_metadata` interceptor. """ return response @@ -276,11 +278,13 @@ def pre_create_channel_connection(self, request: eventarc.CreateChannelConnectio def post_create_channel_connection(self, response: operations_pb2.Operation) -> operations_pb2.Operation: """Post-rpc interceptor for create_channel_connection - Deprecated. This interceptor is deprecated. Please use the `post_create_channel_connection_with_metadata` - interceptor instead. Override in a subclass to read or manipulate the response + DEPRECATED. Please use the `post_create_channel_connection_with_metadata` + interceptor instead. + + Override in a subclass to read or manipulate the response after it is returned by the Eventarc server but before - it is returned to user code. This `post_create_channel_connection` iterceptor runs - before the `post_create_channel_connection_with_metadata` iterceptor. + it is returned to user code. This `post_create_channel_connection` interceptor runs + before the `post_create_channel_connection_with_metadata` interceptor. """ return response @@ -308,11 +312,13 @@ def pre_create_trigger(self, request: eventarc.CreateTriggerRequest, metadata: S def post_create_trigger(self, response: operations_pb2.Operation) -> operations_pb2.Operation: """Post-rpc interceptor for create_trigger - Deprecated. This interceptor is deprecated. Please use the `post_create_trigger_with_metadata` - interceptor instead. Override in a subclass to read or manipulate the response + DEPRECATED. Please use the `post_create_trigger_with_metadata` + interceptor instead. + + Override in a subclass to read or manipulate the response after it is returned by the Eventarc server but before - it is returned to user code. This `post_create_trigger` iterceptor runs - before the `post_create_trigger_with_metadata` iterceptor. + it is returned to user code. This `post_create_trigger` interceptor runs + before the `post_create_trigger_with_metadata` interceptor. """ return response @@ -340,11 +346,13 @@ def pre_delete_channel(self, request: eventarc.DeleteChannelRequest, metadata: S def post_delete_channel(self, response: operations_pb2.Operation) -> operations_pb2.Operation: """Post-rpc interceptor for delete_channel - Deprecated. This interceptor is deprecated. Please use the `post_delete_channel_with_metadata` - interceptor instead. Override in a subclass to read or manipulate the response + DEPRECATED. Please use the `post_delete_channel_with_metadata` + interceptor instead. + + Override in a subclass to read or manipulate the response after it is returned by the Eventarc server but before - it is returned to user code. This `post_delete_channel` iterceptor runs - before the `post_delete_channel_with_metadata` iterceptor. + it is returned to user code. This `post_delete_channel` interceptor runs + before the `post_delete_channel_with_metadata` interceptor. """ return response @@ -372,11 +380,13 @@ def pre_delete_channel_connection(self, request: eventarc.DeleteChannelConnectio def post_delete_channel_connection(self, response: operations_pb2.Operation) -> operations_pb2.Operation: """Post-rpc interceptor for delete_channel_connection - Deprecated. This interceptor is deprecated. Please use the `post_delete_channel_connection_with_metadata` - interceptor instead. Override in a subclass to read or manipulate the response + DEPRECATED. Please use the `post_delete_channel_connection_with_metadata` + interceptor instead. + + Override in a subclass to read or manipulate the response after it is returned by the Eventarc server but before - it is returned to user code. This `post_delete_channel_connection` iterceptor runs - before the `post_delete_channel_connection_with_metadata` iterceptor. + it is returned to user code. This `post_delete_channel_connection` interceptor runs + before the `post_delete_channel_connection_with_metadata` interceptor. """ return response @@ -404,11 +414,13 @@ def pre_delete_trigger(self, request: eventarc.DeleteTriggerRequest, metadata: S def post_delete_trigger(self, response: operations_pb2.Operation) -> operations_pb2.Operation: """Post-rpc interceptor for delete_trigger - Deprecated. This interceptor is deprecated. Please use the `post_delete_trigger_with_metadata` - interceptor instead. Override in a subclass to read or manipulate the response + DEPRECATED. Please use the `post_delete_trigger_with_metadata` + interceptor instead. + + Override in a subclass to read or manipulate the response after it is returned by the Eventarc server but before - it is returned to user code. This `post_delete_trigger` iterceptor runs - before the `post_delete_trigger_with_metadata` iterceptor. + it is returned to user code. This `post_delete_trigger` interceptor runs + before the `post_delete_trigger_with_metadata` interceptor. """ return response @@ -436,11 +448,13 @@ def pre_get_channel(self, request: eventarc.GetChannelRequest, metadata: Sequenc def post_get_channel(self, response: channel.Channel) -> channel.Channel: """Post-rpc interceptor for get_channel - Deprecated. This interceptor is deprecated. Please use the `post_get_channel_with_metadata` - interceptor instead. Override in a subclass to read or manipulate the response + DEPRECATED. Please use the `post_get_channel_with_metadata` + interceptor instead. + + Override in a subclass to read or manipulate the response after it is returned by the Eventarc server but before - it is returned to user code. This `post_get_channel` iterceptor runs - before the `post_get_channel_with_metadata` iterceptor. + it is returned to user code. This `post_get_channel` interceptor runs + before the `post_get_channel_with_metadata` interceptor. """ return response @@ -468,11 +482,13 @@ def pre_get_channel_connection(self, request: eventarc.GetChannelConnectionReque def post_get_channel_connection(self, response: channel_connection.ChannelConnection) -> channel_connection.ChannelConnection: """Post-rpc interceptor for get_channel_connection - Deprecated. This interceptor is deprecated. Please use the `post_get_channel_connection_with_metadata` - interceptor instead. Override in a subclass to read or manipulate the response + DEPRECATED. Please use the `post_get_channel_connection_with_metadata` + interceptor instead. + + Override in a subclass to read or manipulate the response after it is returned by the Eventarc server but before - it is returned to user code. This `post_get_channel_connection` iterceptor runs - before the `post_get_channel_connection_with_metadata` iterceptor. + it is returned to user code. This `post_get_channel_connection` interceptor runs + before the `post_get_channel_connection_with_metadata` interceptor. """ return response @@ -500,11 +516,13 @@ def pre_get_google_channel_config(self, request: eventarc.GetGoogleChannelConfig def post_get_google_channel_config(self, response: google_channel_config.GoogleChannelConfig) -> google_channel_config.GoogleChannelConfig: """Post-rpc interceptor for get_google_channel_config - Deprecated. This interceptor is deprecated. Please use the `post_get_google_channel_config_with_metadata` - interceptor instead. Override in a subclass to read or manipulate the response + DEPRECATED. Please use the `post_get_google_channel_config_with_metadata` + interceptor instead. + + Override in a subclass to read or manipulate the response after it is returned by the Eventarc server but before - it is returned to user code. This `post_get_google_channel_config` iterceptor runs - before the `post_get_google_channel_config_with_metadata` iterceptor. + it is returned to user code. This `post_get_google_channel_config` interceptor runs + before the `post_get_google_channel_config_with_metadata` interceptor. """ return response @@ -532,11 +550,13 @@ def pre_get_provider(self, request: eventarc.GetProviderRequest, metadata: Seque def post_get_provider(self, response: discovery.Provider) -> discovery.Provider: """Post-rpc interceptor for get_provider - Deprecated. This interceptor is deprecated. Please use the `post_get_provider_with_metadata` - interceptor instead. Override in a subclass to read or manipulate the response + DEPRECATED. Please use the `post_get_provider_with_metadata` + interceptor instead. + + Override in a subclass to read or manipulate the response after it is returned by the Eventarc server but before - it is returned to user code. This `post_get_provider` iterceptor runs - before the `post_get_provider_with_metadata` iterceptor. + it is returned to user code. This `post_get_provider` interceptor runs + before the `post_get_provider_with_metadata` interceptor. """ return response @@ -564,11 +584,13 @@ def pre_get_trigger(self, request: eventarc.GetTriggerRequest, metadata: Sequenc def post_get_trigger(self, response: trigger.Trigger) -> trigger.Trigger: """Post-rpc interceptor for get_trigger - Deprecated. This interceptor is deprecated. Please use the `post_get_trigger_with_metadata` - interceptor instead. Override in a subclass to read or manipulate the response + DEPRECATED. Please use the `post_get_trigger_with_metadata` + interceptor instead. + + Override in a subclass to read or manipulate the response after it is returned by the Eventarc server but before - it is returned to user code. This `post_get_trigger` iterceptor runs - before the `post_get_trigger_with_metadata` iterceptor. + it is returned to user code. This `post_get_trigger` interceptor runs + before the `post_get_trigger_with_metadata` interceptor. """ return response @@ -596,11 +618,13 @@ def pre_list_channel_connections(self, request: eventarc.ListChannelConnectionsR def post_list_channel_connections(self, response: eventarc.ListChannelConnectionsResponse) -> eventarc.ListChannelConnectionsResponse: """Post-rpc interceptor for list_channel_connections - Deprecated. This interceptor is deprecated. Please use the `post_list_channel_connections_with_metadata` - interceptor instead. Override in a subclass to read or manipulate the response + DEPRECATED. Please use the `post_list_channel_connections_with_metadata` + interceptor instead. + + Override in a subclass to read or manipulate the response after it is returned by the Eventarc server but before - it is returned to user code. This `post_list_channel_connections` iterceptor runs - before the `post_list_channel_connections_with_metadata` iterceptor. + it is returned to user code. This `post_list_channel_connections` interceptor runs + before the `post_list_channel_connections_with_metadata` interceptor. """ return response @@ -628,11 +652,13 @@ def pre_list_channels(self, request: eventarc.ListChannelsRequest, metadata: Seq def post_list_channels(self, response: eventarc.ListChannelsResponse) -> eventarc.ListChannelsResponse: """Post-rpc interceptor for list_channels - Deprecated. This interceptor is deprecated. Please use the `post_list_channels_with_metadata` - interceptor instead. Override in a subclass to read or manipulate the response + DEPRECATED. Please use the `post_list_channels_with_metadata` + interceptor instead. + + Override in a subclass to read or manipulate the response after it is returned by the Eventarc server but before - it is returned to user code. This `post_list_channels` iterceptor runs - before the `post_list_channels_with_metadata` iterceptor. + it is returned to user code. This `post_list_channels` interceptor runs + before the `post_list_channels_with_metadata` interceptor. """ return response @@ -660,11 +686,13 @@ def pre_list_providers(self, request: eventarc.ListProvidersRequest, metadata: S def post_list_providers(self, response: eventarc.ListProvidersResponse) -> eventarc.ListProvidersResponse: """Post-rpc interceptor for list_providers - Deprecated. This interceptor is deprecated. Please use the `post_list_providers_with_metadata` - interceptor instead. Override in a subclass to read or manipulate the response + DEPRECATED. Please use the `post_list_providers_with_metadata` + interceptor instead. + + Override in a subclass to read or manipulate the response after it is returned by the Eventarc server but before - it is returned to user code. This `post_list_providers` iterceptor runs - before the `post_list_providers_with_metadata` iterceptor. + it is returned to user code. This `post_list_providers` interceptor runs + before the `post_list_providers_with_metadata` interceptor. """ return response @@ -692,11 +720,13 @@ def pre_list_triggers(self, request: eventarc.ListTriggersRequest, metadata: Seq def post_list_triggers(self, response: eventarc.ListTriggersResponse) -> eventarc.ListTriggersResponse: """Post-rpc interceptor for list_triggers - Deprecated. This interceptor is deprecated. Please use the `post_list_triggers_with_metadata` - interceptor instead. Override in a subclass to read or manipulate the response + DEPRECATED. Please use the `post_list_triggers_with_metadata` + interceptor instead. + + Override in a subclass to read or manipulate the response after it is returned by the Eventarc server but before - it is returned to user code. This `post_list_triggers` iterceptor runs - before the `post_list_triggers_with_metadata` iterceptor. + it is returned to user code. This `post_list_triggers` interceptor runs + before the `post_list_triggers_with_metadata` interceptor. """ return response @@ -724,11 +754,13 @@ def pre_update_channel(self, request: eventarc.UpdateChannelRequest, metadata: S def post_update_channel(self, response: operations_pb2.Operation) -> operations_pb2.Operation: """Post-rpc interceptor for update_channel - Deprecated. This interceptor is deprecated. Please use the `post_update_channel_with_metadata` - interceptor instead. Override in a subclass to read or manipulate the response + DEPRECATED. Please use the `post_update_channel_with_metadata` + interceptor instead. + + Override in a subclass to read or manipulate the response after it is returned by the Eventarc server but before - it is returned to user code. This `post_update_channel` iterceptor runs - before the `post_update_channel_with_metadata` iterceptor. + it is returned to user code. This `post_update_channel` interceptor runs + before the `post_update_channel_with_metadata` interceptor. """ return response @@ -756,11 +788,13 @@ def pre_update_google_channel_config(self, request: eventarc.UpdateGoogleChannel def post_update_google_channel_config(self, response: gce_google_channel_config.GoogleChannelConfig) -> gce_google_channel_config.GoogleChannelConfig: """Post-rpc interceptor for update_google_channel_config - Deprecated. This interceptor is deprecated. Please use the `post_update_google_channel_config_with_metadata` - interceptor instead. Override in a subclass to read or manipulate the response + DEPRECATED. Please use the `post_update_google_channel_config_with_metadata` + interceptor instead. + + Override in a subclass to read or manipulate the response after it is returned by the Eventarc server but before - it is returned to user code. This `post_update_google_channel_config` iterceptor runs - before the `post_update_google_channel_config_with_metadata` iterceptor. + it is returned to user code. This `post_update_google_channel_config` interceptor runs + before the `post_update_google_channel_config_with_metadata` interceptor. """ return response @@ -788,11 +822,13 @@ def pre_update_trigger(self, request: eventarc.UpdateTriggerRequest, metadata: S def post_update_trigger(self, response: operations_pb2.Operation) -> operations_pb2.Operation: """Post-rpc interceptor for update_trigger - Deprecated. This interceptor is deprecated. Please use the `post_update_trigger_with_metadata` - interceptor instead. Override in a subclass to read or manipulate the response + DEPRECATED. Please use the `post_update_trigger_with_metadata` + interceptor instead. + + Override in a subclass to read or manipulate the response after it is returned by the Eventarc server but before - it is returned to user code. This `post_update_trigger` iterceptor runs - before the `post_update_trigger_with_metadata` iterceptor. + it is returned to user code. This `post_update_trigger` interceptor runs + before the `post_update_trigger_with_metadata` interceptor. """ return response diff --git a/tests/integration/goldens/redis/google/cloud/redis_v1/services/cloud_redis/transports/rest.py b/tests/integration/goldens/redis/google/cloud/redis_v1/services/cloud_redis/transports/rest.py index dbe5ccb69..32b164701 100755 --- a/tests/integration/goldens/redis/google/cloud/redis_v1/services/cloud_redis/transports/rest.py +++ b/tests/integration/goldens/redis/google/cloud/redis_v1/services/cloud_redis/transports/rest.py @@ -180,11 +180,13 @@ def pre_create_instance(self, request: cloud_redis.CreateInstanceRequest, metada def post_create_instance(self, response: operations_pb2.Operation) -> operations_pb2.Operation: """Post-rpc interceptor for create_instance - Deprecated. This interceptor is deprecated. Please use the `post_create_instance_with_metadata` - interceptor instead. Override in a subclass to read or manipulate the response + DEPRECATED. Please use the `post_create_instance_with_metadata` + interceptor instead. + + Override in a subclass to read or manipulate the response after it is returned by the CloudRedis server but before - it is returned to user code. This `post_create_instance` iterceptor runs - before the `post_create_instance_with_metadata` iterceptor. + it is returned to user code. This `post_create_instance` interceptor runs + before the `post_create_instance_with_metadata` interceptor. """ return response @@ -212,11 +214,13 @@ def pre_delete_instance(self, request: cloud_redis.DeleteInstanceRequest, metada def post_delete_instance(self, response: operations_pb2.Operation) -> operations_pb2.Operation: """Post-rpc interceptor for delete_instance - Deprecated. This interceptor is deprecated. Please use the `post_delete_instance_with_metadata` - interceptor instead. Override in a subclass to read or manipulate the response + DEPRECATED. Please use the `post_delete_instance_with_metadata` + interceptor instead. + + Override in a subclass to read or manipulate the response after it is returned by the CloudRedis server but before - it is returned to user code. This `post_delete_instance` iterceptor runs - before the `post_delete_instance_with_metadata` iterceptor. + it is returned to user code. This `post_delete_instance` interceptor runs + before the `post_delete_instance_with_metadata` interceptor. """ return response @@ -244,11 +248,13 @@ def pre_export_instance(self, request: cloud_redis.ExportInstanceRequest, metada def post_export_instance(self, response: operations_pb2.Operation) -> operations_pb2.Operation: """Post-rpc interceptor for export_instance - Deprecated. This interceptor is deprecated. Please use the `post_export_instance_with_metadata` - interceptor instead. Override in a subclass to read or manipulate the response + DEPRECATED. Please use the `post_export_instance_with_metadata` + interceptor instead. + + Override in a subclass to read or manipulate the response after it is returned by the CloudRedis server but before - it is returned to user code. This `post_export_instance` iterceptor runs - before the `post_export_instance_with_metadata` iterceptor. + it is returned to user code. This `post_export_instance` interceptor runs + before the `post_export_instance_with_metadata` interceptor. """ return response @@ -276,11 +282,13 @@ def pre_failover_instance(self, request: cloud_redis.FailoverInstanceRequest, me def post_failover_instance(self, response: operations_pb2.Operation) -> operations_pb2.Operation: """Post-rpc interceptor for failover_instance - Deprecated. This interceptor is deprecated. Please use the `post_failover_instance_with_metadata` - interceptor instead. Override in a subclass to read or manipulate the response + DEPRECATED. Please use the `post_failover_instance_with_metadata` + interceptor instead. + + Override in a subclass to read or manipulate the response after it is returned by the CloudRedis server but before - it is returned to user code. This `post_failover_instance` iterceptor runs - before the `post_failover_instance_with_metadata` iterceptor. + it is returned to user code. This `post_failover_instance` interceptor runs + before the `post_failover_instance_with_metadata` interceptor. """ return response @@ -308,11 +316,13 @@ def pre_get_instance(self, request: cloud_redis.GetInstanceRequest, metadata: Se def post_get_instance(self, response: cloud_redis.Instance) -> cloud_redis.Instance: """Post-rpc interceptor for get_instance - Deprecated. This interceptor is deprecated. Please use the `post_get_instance_with_metadata` - interceptor instead. Override in a subclass to read or manipulate the response + DEPRECATED. Please use the `post_get_instance_with_metadata` + interceptor instead. + + Override in a subclass to read or manipulate the response after it is returned by the CloudRedis server but before - it is returned to user code. This `post_get_instance` iterceptor runs - before the `post_get_instance_with_metadata` iterceptor. + it is returned to user code. This `post_get_instance` interceptor runs + before the `post_get_instance_with_metadata` interceptor. """ return response @@ -340,11 +350,13 @@ def pre_get_instance_auth_string(self, request: cloud_redis.GetInstanceAuthStrin def post_get_instance_auth_string(self, response: cloud_redis.InstanceAuthString) -> cloud_redis.InstanceAuthString: """Post-rpc interceptor for get_instance_auth_string - Deprecated. This interceptor is deprecated. Please use the `post_get_instance_auth_string_with_metadata` - interceptor instead. Override in a subclass to read or manipulate the response + DEPRECATED. Please use the `post_get_instance_auth_string_with_metadata` + interceptor instead. + + Override in a subclass to read or manipulate the response after it is returned by the CloudRedis server but before - it is returned to user code. This `post_get_instance_auth_string` iterceptor runs - before the `post_get_instance_auth_string_with_metadata` iterceptor. + it is returned to user code. This `post_get_instance_auth_string` interceptor runs + before the `post_get_instance_auth_string_with_metadata` interceptor. """ return response @@ -372,11 +384,13 @@ def pre_import_instance(self, request: cloud_redis.ImportInstanceRequest, metada def post_import_instance(self, response: operations_pb2.Operation) -> operations_pb2.Operation: """Post-rpc interceptor for import_instance - Deprecated. This interceptor is deprecated. Please use the `post_import_instance_with_metadata` - interceptor instead. Override in a subclass to read or manipulate the response + DEPRECATED. Please use the `post_import_instance_with_metadata` + interceptor instead. + + Override in a subclass to read or manipulate the response after it is returned by the CloudRedis server but before - it is returned to user code. This `post_import_instance` iterceptor runs - before the `post_import_instance_with_metadata` iterceptor. + it is returned to user code. This `post_import_instance` interceptor runs + before the `post_import_instance_with_metadata` interceptor. """ return response @@ -404,11 +418,13 @@ def pre_list_instances(self, request: cloud_redis.ListInstancesRequest, metadata def post_list_instances(self, response: cloud_redis.ListInstancesResponse) -> cloud_redis.ListInstancesResponse: """Post-rpc interceptor for list_instances - Deprecated. This interceptor is deprecated. Please use the `post_list_instances_with_metadata` - interceptor instead. Override in a subclass to read or manipulate the response + DEPRECATED. Please use the `post_list_instances_with_metadata` + interceptor instead. + + Override in a subclass to read or manipulate the response after it is returned by the CloudRedis server but before - it is returned to user code. This `post_list_instances` iterceptor runs - before the `post_list_instances_with_metadata` iterceptor. + it is returned to user code. This `post_list_instances` interceptor runs + before the `post_list_instances_with_metadata` interceptor. """ return response @@ -436,11 +452,13 @@ def pre_reschedule_maintenance(self, request: cloud_redis.RescheduleMaintenanceR def post_reschedule_maintenance(self, response: operations_pb2.Operation) -> operations_pb2.Operation: """Post-rpc interceptor for reschedule_maintenance - Deprecated. This interceptor is deprecated. Please use the `post_reschedule_maintenance_with_metadata` - interceptor instead. Override in a subclass to read or manipulate the response + DEPRECATED. Please use the `post_reschedule_maintenance_with_metadata` + interceptor instead. + + Override in a subclass to read or manipulate the response after it is returned by the CloudRedis server but before - it is returned to user code. This `post_reschedule_maintenance` iterceptor runs - before the `post_reschedule_maintenance_with_metadata` iterceptor. + it is returned to user code. This `post_reschedule_maintenance` interceptor runs + before the `post_reschedule_maintenance_with_metadata` interceptor. """ return response @@ -468,11 +486,13 @@ def pre_update_instance(self, request: cloud_redis.UpdateInstanceRequest, metada def post_update_instance(self, response: operations_pb2.Operation) -> operations_pb2.Operation: """Post-rpc interceptor for update_instance - Deprecated. This interceptor is deprecated. Please use the `post_update_instance_with_metadata` - interceptor instead. Override in a subclass to read or manipulate the response + DEPRECATED. Please use the `post_update_instance_with_metadata` + interceptor instead. + + Override in a subclass to read or manipulate the response after it is returned by the CloudRedis server but before - it is returned to user code. This `post_update_instance` iterceptor runs - before the `post_update_instance_with_metadata` iterceptor. + it is returned to user code. This `post_update_instance` interceptor runs + before the `post_update_instance_with_metadata` interceptor. """ return response @@ -500,11 +520,13 @@ def pre_upgrade_instance(self, request: cloud_redis.UpgradeInstanceRequest, meta def post_upgrade_instance(self, response: operations_pb2.Operation) -> operations_pb2.Operation: """Post-rpc interceptor for upgrade_instance - Deprecated. This interceptor is deprecated. Please use the `post_upgrade_instance_with_metadata` - interceptor instead. Override in a subclass to read or manipulate the response + DEPRECATED. Please use the `post_upgrade_instance_with_metadata` + interceptor instead. + + Override in a subclass to read or manipulate the response after it is returned by the CloudRedis server but before - it is returned to user code. This `post_upgrade_instance` iterceptor runs - before the `post_upgrade_instance_with_metadata` iterceptor. + it is returned to user code. This `post_upgrade_instance` interceptor runs + before the `post_upgrade_instance_with_metadata` interceptor. """ return response diff --git a/tests/integration/goldens/redis/google/cloud/redis_v1/services/cloud_redis/transports/rest_asyncio.py b/tests/integration/goldens/redis/google/cloud/redis_v1/services/cloud_redis/transports/rest_asyncio.py index 08b0f9076..a8e3ee3ff 100755 --- a/tests/integration/goldens/redis/google/cloud/redis_v1/services/cloud_redis/transports/rest_asyncio.py +++ b/tests/integration/goldens/redis/google/cloud/redis_v1/services/cloud_redis/transports/rest_asyncio.py @@ -193,11 +193,13 @@ async def pre_create_instance(self, request: cloud_redis.CreateInstanceRequest, async def post_create_instance(self, response: operations_pb2.Operation) -> operations_pb2.Operation: """Post-rpc interceptor for create_instance - Deprecated. This interceptor is deprecated. Please use the `post_create_instance_with_metadata` - interceptor instead. Override in a subclass to read or manipulate the response + DEPRECATED. Please use the `post_create_instance_with_metadata` + interceptor instead. + + Override in a subclass to read or manipulate the response after it is returned by the CloudRedis server but before - it is returned to user code. This `post_create_instance` iterceptor runs - before the `post_create_instance_with_metadata` iterceptor. + it is returned to user code. This `post_create_instance` interceptor runs + before the `post_create_instance_with_metadata` interceptor. """ return response @@ -225,11 +227,13 @@ async def pre_delete_instance(self, request: cloud_redis.DeleteInstanceRequest, async def post_delete_instance(self, response: operations_pb2.Operation) -> operations_pb2.Operation: """Post-rpc interceptor for delete_instance - Deprecated. This interceptor is deprecated. Please use the `post_delete_instance_with_metadata` - interceptor instead. Override in a subclass to read or manipulate the response + DEPRECATED. Please use the `post_delete_instance_with_metadata` + interceptor instead. + + Override in a subclass to read or manipulate the response after it is returned by the CloudRedis server but before - it is returned to user code. This `post_delete_instance` iterceptor runs - before the `post_delete_instance_with_metadata` iterceptor. + it is returned to user code. This `post_delete_instance` interceptor runs + before the `post_delete_instance_with_metadata` interceptor. """ return response @@ -257,11 +261,13 @@ async def pre_export_instance(self, request: cloud_redis.ExportInstanceRequest, async def post_export_instance(self, response: operations_pb2.Operation) -> operations_pb2.Operation: """Post-rpc interceptor for export_instance - Deprecated. This interceptor is deprecated. Please use the `post_export_instance_with_metadata` - interceptor instead. Override in a subclass to read or manipulate the response + DEPRECATED. Please use the `post_export_instance_with_metadata` + interceptor instead. + + Override in a subclass to read or manipulate the response after it is returned by the CloudRedis server but before - it is returned to user code. This `post_export_instance` iterceptor runs - before the `post_export_instance_with_metadata` iterceptor. + it is returned to user code. This `post_export_instance` interceptor runs + before the `post_export_instance_with_metadata` interceptor. """ return response @@ -289,11 +295,13 @@ async def pre_failover_instance(self, request: cloud_redis.FailoverInstanceReque async def post_failover_instance(self, response: operations_pb2.Operation) -> operations_pb2.Operation: """Post-rpc interceptor for failover_instance - Deprecated. This interceptor is deprecated. Please use the `post_failover_instance_with_metadata` - interceptor instead. Override in a subclass to read or manipulate the response + DEPRECATED. Please use the `post_failover_instance_with_metadata` + interceptor instead. + + Override in a subclass to read or manipulate the response after it is returned by the CloudRedis server but before - it is returned to user code. This `post_failover_instance` iterceptor runs - before the `post_failover_instance_with_metadata` iterceptor. + it is returned to user code. This `post_failover_instance` interceptor runs + before the `post_failover_instance_with_metadata` interceptor. """ return response @@ -321,11 +329,13 @@ async def pre_get_instance(self, request: cloud_redis.GetInstanceRequest, metada async def post_get_instance(self, response: cloud_redis.Instance) -> cloud_redis.Instance: """Post-rpc interceptor for get_instance - Deprecated. This interceptor is deprecated. Please use the `post_get_instance_with_metadata` - interceptor instead. Override in a subclass to read or manipulate the response + DEPRECATED. Please use the `post_get_instance_with_metadata` + interceptor instead. + + Override in a subclass to read or manipulate the response after it is returned by the CloudRedis server but before - it is returned to user code. This `post_get_instance` iterceptor runs - before the `post_get_instance_with_metadata` iterceptor. + it is returned to user code. This `post_get_instance` interceptor runs + before the `post_get_instance_with_metadata` interceptor. """ return response @@ -353,11 +363,13 @@ async def pre_get_instance_auth_string(self, request: cloud_redis.GetInstanceAut async def post_get_instance_auth_string(self, response: cloud_redis.InstanceAuthString) -> cloud_redis.InstanceAuthString: """Post-rpc interceptor for get_instance_auth_string - Deprecated. This interceptor is deprecated. Please use the `post_get_instance_auth_string_with_metadata` - interceptor instead. Override in a subclass to read or manipulate the response + DEPRECATED. Please use the `post_get_instance_auth_string_with_metadata` + interceptor instead. + + Override in a subclass to read or manipulate the response after it is returned by the CloudRedis server but before - it is returned to user code. This `post_get_instance_auth_string` iterceptor runs - before the `post_get_instance_auth_string_with_metadata` iterceptor. + it is returned to user code. This `post_get_instance_auth_string` interceptor runs + before the `post_get_instance_auth_string_with_metadata` interceptor. """ return response @@ -385,11 +397,13 @@ async def pre_import_instance(self, request: cloud_redis.ImportInstanceRequest, async def post_import_instance(self, response: operations_pb2.Operation) -> operations_pb2.Operation: """Post-rpc interceptor for import_instance - Deprecated. This interceptor is deprecated. Please use the `post_import_instance_with_metadata` - interceptor instead. Override in a subclass to read or manipulate the response + DEPRECATED. Please use the `post_import_instance_with_metadata` + interceptor instead. + + Override in a subclass to read or manipulate the response after it is returned by the CloudRedis server but before - it is returned to user code. This `post_import_instance` iterceptor runs - before the `post_import_instance_with_metadata` iterceptor. + it is returned to user code. This `post_import_instance` interceptor runs + before the `post_import_instance_with_metadata` interceptor. """ return response @@ -417,11 +431,13 @@ async def pre_list_instances(self, request: cloud_redis.ListInstancesRequest, me async def post_list_instances(self, response: cloud_redis.ListInstancesResponse) -> cloud_redis.ListInstancesResponse: """Post-rpc interceptor for list_instances - Deprecated. This interceptor is deprecated. Please use the `post_list_instances_with_metadata` - interceptor instead. Override in a subclass to read or manipulate the response + DEPRECATED. Please use the `post_list_instances_with_metadata` + interceptor instead. + + Override in a subclass to read or manipulate the response after it is returned by the CloudRedis server but before - it is returned to user code. This `post_list_instances` iterceptor runs - before the `post_list_instances_with_metadata` iterceptor. + it is returned to user code. This `post_list_instances` interceptor runs + before the `post_list_instances_with_metadata` interceptor. """ return response @@ -449,11 +465,13 @@ async def pre_reschedule_maintenance(self, request: cloud_redis.RescheduleMainte async def post_reschedule_maintenance(self, response: operations_pb2.Operation) -> operations_pb2.Operation: """Post-rpc interceptor for reschedule_maintenance - Deprecated. This interceptor is deprecated. Please use the `post_reschedule_maintenance_with_metadata` - interceptor instead. Override in a subclass to read or manipulate the response + DEPRECATED. Please use the `post_reschedule_maintenance_with_metadata` + interceptor instead. + + Override in a subclass to read or manipulate the response after it is returned by the CloudRedis server but before - it is returned to user code. This `post_reschedule_maintenance` iterceptor runs - before the `post_reschedule_maintenance_with_metadata` iterceptor. + it is returned to user code. This `post_reschedule_maintenance` interceptor runs + before the `post_reschedule_maintenance_with_metadata` interceptor. """ return response @@ -481,11 +499,13 @@ async def pre_update_instance(self, request: cloud_redis.UpdateInstanceRequest, async def post_update_instance(self, response: operations_pb2.Operation) -> operations_pb2.Operation: """Post-rpc interceptor for update_instance - Deprecated. This interceptor is deprecated. Please use the `post_update_instance_with_metadata` - interceptor instead. Override in a subclass to read or manipulate the response + DEPRECATED. Please use the `post_update_instance_with_metadata` + interceptor instead. + + Override in a subclass to read or manipulate the response after it is returned by the CloudRedis server but before - it is returned to user code. This `post_update_instance` iterceptor runs - before the `post_update_instance_with_metadata` iterceptor. + it is returned to user code. This `post_update_instance` interceptor runs + before the `post_update_instance_with_metadata` interceptor. """ return response @@ -513,11 +533,13 @@ async def pre_upgrade_instance(self, request: cloud_redis.UpgradeInstanceRequest async def post_upgrade_instance(self, response: operations_pb2.Operation) -> operations_pb2.Operation: """Post-rpc interceptor for upgrade_instance - Deprecated. This interceptor is deprecated. Please use the `post_upgrade_instance_with_metadata` - interceptor instead. Override in a subclass to read or manipulate the response + DEPRECATED. Please use the `post_upgrade_instance_with_metadata` + interceptor instead. + + Override in a subclass to read or manipulate the response after it is returned by the CloudRedis server but before - it is returned to user code. This `post_upgrade_instance` iterceptor runs - before the `post_upgrade_instance_with_metadata` iterceptor. + it is returned to user code. This `post_upgrade_instance` interceptor runs + before the `post_upgrade_instance_with_metadata` interceptor. """ return response