diff --git a/packages/google-cloud-recommender/google/cloud/recommender_v1/services/recommender/async_client.py b/packages/google-cloud-recommender/google/cloud/recommender_v1/services/recommender/async_client.py index 26c0a7046987..18a8765bfb1e 100644 --- a/packages/google-cloud-recommender/google/cloud/recommender_v1/services/recommender/async_client.py +++ b/packages/google-cloud-recommender/google/cloud/recommender_v1/services/recommender/async_client.py @@ -315,7 +315,8 @@ def sample_list_insights(): maximum=60.0, multiplier=1.3, predicate=retries.if_exception_type( - core_exceptions.GoogleAPICallError, + core_exceptions.DeadlineExceeded, + core_exceptions.ServiceUnavailable, ), deadline=60.0, ), @@ -428,7 +429,8 @@ def sample_get_insight(): maximum=60.0, multiplier=1.3, predicate=retries.if_exception_type( - core_exceptions.GoogleAPICallError, + core_exceptions.DeadlineExceeded, + core_exceptions.ServiceUnavailable, ), deadline=60.0, ), @@ -705,7 +707,8 @@ def sample_list_recommendations(): maximum=60.0, multiplier=1.3, predicate=retries.if_exception_type( - core_exceptions.GoogleAPICallError, + core_exceptions.DeadlineExceeded, + core_exceptions.ServiceUnavailable, ), deadline=60.0, ), @@ -819,7 +822,8 @@ def sample_get_recommendation(): maximum=60.0, multiplier=1.3, predicate=retries.if_exception_type( - core_exceptions.GoogleAPICallError, + core_exceptions.DeadlineExceeded, + core_exceptions.ServiceUnavailable, ), deadline=60.0, ), diff --git a/packages/google-cloud-recommender/google/cloud/recommender_v1/services/recommender/transports/base.py b/packages/google-cloud-recommender/google/cloud/recommender_v1/services/recommender/transports/base.py index 92446302693b..a06c51a84d15 100644 --- a/packages/google-cloud-recommender/google/cloud/recommender_v1/services/recommender/transports/base.py +++ b/packages/google-cloud-recommender/google/cloud/recommender_v1/services/recommender/transports/base.py @@ -130,7 +130,8 @@ def _prep_wrapped_messages(self, client_info): maximum=60.0, multiplier=1.3, predicate=retries.if_exception_type( - core_exceptions.GoogleAPICallError, + core_exceptions.DeadlineExceeded, + core_exceptions.ServiceUnavailable, ), deadline=60.0, ), @@ -144,7 +145,8 @@ def _prep_wrapped_messages(self, client_info): maximum=60.0, multiplier=1.3, predicate=retries.if_exception_type( - core_exceptions.GoogleAPICallError, + core_exceptions.DeadlineExceeded, + core_exceptions.ServiceUnavailable, ), deadline=60.0, ), @@ -163,7 +165,8 @@ def _prep_wrapped_messages(self, client_info): maximum=60.0, multiplier=1.3, predicate=retries.if_exception_type( - core_exceptions.GoogleAPICallError, + core_exceptions.DeadlineExceeded, + core_exceptions.ServiceUnavailable, ), deadline=60.0, ), @@ -177,7 +180,8 @@ def _prep_wrapped_messages(self, client_info): maximum=60.0, multiplier=1.3, predicate=retries.if_exception_type( - core_exceptions.GoogleAPICallError, + core_exceptions.DeadlineExceeded, + core_exceptions.ServiceUnavailable, ), deadline=60.0, ), diff --git a/packages/google-cloud-recommender/google/cloud/recommender_v1beta1/services/recommender/async_client.py b/packages/google-cloud-recommender/google/cloud/recommender_v1beta1/services/recommender/async_client.py index 93c4e3adf2bf..4ad1db3d9941 100644 --- a/packages/google-cloud-recommender/google/cloud/recommender_v1beta1/services/recommender/async_client.py +++ b/packages/google-cloud-recommender/google/cloud/recommender_v1beta1/services/recommender/async_client.py @@ -332,7 +332,8 @@ def sample_list_insights(): maximum=60.0, multiplier=1.3, predicate=retries.if_exception_type( - core_exceptions.GoogleAPICallError, + core_exceptions.DeadlineExceeded, + core_exceptions.ServiceUnavailable, ), deadline=60.0, ), @@ -445,7 +446,8 @@ def sample_get_insight(): maximum=60.0, multiplier=1.3, predicate=retries.if_exception_type( - core_exceptions.GoogleAPICallError, + core_exceptions.DeadlineExceeded, + core_exceptions.ServiceUnavailable, ), deadline=60.0, ), @@ -722,7 +724,8 @@ def sample_list_recommendations(): maximum=60.0, multiplier=1.3, predicate=retries.if_exception_type( - core_exceptions.GoogleAPICallError, + core_exceptions.DeadlineExceeded, + core_exceptions.ServiceUnavailable, ), deadline=60.0, ), @@ -836,7 +839,8 @@ def sample_get_recommendation(): maximum=60.0, multiplier=1.3, predicate=retries.if_exception_type( - core_exceptions.GoogleAPICallError, + core_exceptions.DeadlineExceeded, + core_exceptions.ServiceUnavailable, ), deadline=60.0, ), diff --git a/packages/google-cloud-recommender/google/cloud/recommender_v1beta1/services/recommender/transports/base.py b/packages/google-cloud-recommender/google/cloud/recommender_v1beta1/services/recommender/transports/base.py index 79759dd36c01..787d6c66a505 100644 --- a/packages/google-cloud-recommender/google/cloud/recommender_v1beta1/services/recommender/transports/base.py +++ b/packages/google-cloud-recommender/google/cloud/recommender_v1beta1/services/recommender/transports/base.py @@ -138,7 +138,8 @@ def _prep_wrapped_messages(self, client_info): maximum=60.0, multiplier=1.3, predicate=retries.if_exception_type( - core_exceptions.GoogleAPICallError, + core_exceptions.DeadlineExceeded, + core_exceptions.ServiceUnavailable, ), deadline=60.0, ), @@ -152,7 +153,8 @@ def _prep_wrapped_messages(self, client_info): maximum=60.0, multiplier=1.3, predicate=retries.if_exception_type( - core_exceptions.GoogleAPICallError, + core_exceptions.DeadlineExceeded, + core_exceptions.ServiceUnavailable, ), deadline=60.0, ), @@ -171,7 +173,8 @@ def _prep_wrapped_messages(self, client_info): maximum=60.0, multiplier=1.3, predicate=retries.if_exception_type( - core_exceptions.GoogleAPICallError, + core_exceptions.DeadlineExceeded, + core_exceptions.ServiceUnavailable, ), deadline=60.0, ), @@ -185,7 +188,8 @@ def _prep_wrapped_messages(self, client_info): maximum=60.0, multiplier=1.3, predicate=retries.if_exception_type( - core_exceptions.GoogleAPICallError, + core_exceptions.DeadlineExceeded, + core_exceptions.ServiceUnavailable, ), deadline=60.0, ), diff --git a/packages/google-cloud-recommender/samples/generated_samples/snippet_metadata_recommender_v1.json b/packages/google-cloud-recommender/samples/generated_samples/snippet_metadata_recommender_v1.json index 5618fc0885c9..d31c4f28c0d8 100644 --- a/packages/google-cloud-recommender/samples/generated_samples/snippet_metadata_recommender_v1.json +++ b/packages/google-cloud-recommender/samples/generated_samples/snippet_metadata_recommender_v1.json @@ -1,16 +1,61 @@ { + "clientLibrary": { + "apis": [ + { + "id": "google.cloud.recommender.v1", + "version": "v1" + } + ], + "language": "PYTHON", + "name": "google-cloud-recommender" + }, "snippets": [ { + "canonical": true, "clientMethod": { "async": true, + "client": { + "fullName": "google.cloud.recommender_v1.RecommenderAsyncClient", + "shortName": "RecommenderAsyncClient" + }, + "fullName": "google.cloud.recommender_v1.RecommenderAsyncClient.get_insight", "method": { + "fullName": "google.cloud.recommender.v1.Recommender.GetInsight", "service": { + "fullName": "google.cloud.recommender.v1.Recommender", "shortName": "Recommender" }, "shortName": "GetInsight" - } + }, + "parameters": [ + { + "name": "request", + "type": "google.cloud.recommender_v1.types.GetInsightRequest" + }, + { + "name": "name", + "type": "str" + }, + { + "name": "retry", + "type": "google.api_core.retry.Retry" + }, + { + "name": "timeout", + "type": "float" + }, + { + "name": "metadata", + "type": "Sequence[Tuple[str, str]" + } + ], + "resultType": "google.cloud.recommender_v1.types.Insight", + "shortName": "get_insight" }, + "description": "Sample for GetInsight", "file": "recommender_v1_generated_recommender_get_insight_async.py", + "language": "PYTHON", + "origin": "API_DEFINITION", "regionTag": "recommender_v1_generated_Recommender_GetInsight_async", "segments": [ { @@ -43,18 +88,54 @@ "start": 42, "type": "RESPONSE_HANDLING" } - ] + ], + "title": "recommender_v1_generated_recommender_get_insight_async.py" }, { + "canonical": true, "clientMethod": { + "client": { + "fullName": "google.cloud.recommender_v1.RecommenderClient", + "shortName": "RecommenderClient" + }, + "fullName": "google.cloud.recommender_v1.RecommenderClient.get_insight", "method": { + "fullName": "google.cloud.recommender.v1.Recommender.GetInsight", "service": { + "fullName": "google.cloud.recommender.v1.Recommender", "shortName": "Recommender" }, "shortName": "GetInsight" - } + }, + "parameters": [ + { + "name": "request", + "type": "google.cloud.recommender_v1.types.GetInsightRequest" + }, + { + "name": "name", + "type": "str" + }, + { + "name": "retry", + "type": "google.api_core.retry.Retry" + }, + { + "name": "timeout", + "type": "float" + }, + { + "name": "metadata", + "type": "Sequence[Tuple[str, str]" + } + ], + "resultType": "google.cloud.recommender_v1.types.Insight", + "shortName": "get_insight" }, + "description": "Sample for GetInsight", "file": "recommender_v1_generated_recommender_get_insight_sync.py", + "language": "PYTHON", + "origin": "API_DEFINITION", "regionTag": "recommender_v1_generated_Recommender_GetInsight_sync", "segments": [ { @@ -87,19 +168,55 @@ "start": 42, "type": "RESPONSE_HANDLING" } - ] + ], + "title": "recommender_v1_generated_recommender_get_insight_sync.py" }, { + "canonical": true, "clientMethod": { "async": true, + "client": { + "fullName": "google.cloud.recommender_v1.RecommenderAsyncClient", + "shortName": "RecommenderAsyncClient" + }, + "fullName": "google.cloud.recommender_v1.RecommenderAsyncClient.get_recommendation", "method": { + "fullName": "google.cloud.recommender.v1.Recommender.GetRecommendation", "service": { + "fullName": "google.cloud.recommender.v1.Recommender", "shortName": "Recommender" }, "shortName": "GetRecommendation" - } + }, + "parameters": [ + { + "name": "request", + "type": "google.cloud.recommender_v1.types.GetRecommendationRequest" + }, + { + "name": "name", + "type": "str" + }, + { + "name": "retry", + "type": "google.api_core.retry.Retry" + }, + { + "name": "timeout", + "type": "float" + }, + { + "name": "metadata", + "type": "Sequence[Tuple[str, str]" + } + ], + "resultType": "google.cloud.recommender_v1.types.Recommendation", + "shortName": "get_recommendation" }, + "description": "Sample for GetRecommendation", "file": "recommender_v1_generated_recommender_get_recommendation_async.py", + "language": "PYTHON", + "origin": "API_DEFINITION", "regionTag": "recommender_v1_generated_Recommender_GetRecommendation_async", "segments": [ { @@ -132,18 +249,54 @@ "start": 42, "type": "RESPONSE_HANDLING" } - ] + ], + "title": "recommender_v1_generated_recommender_get_recommendation_async.py" }, { + "canonical": true, "clientMethod": { + "client": { + "fullName": "google.cloud.recommender_v1.RecommenderClient", + "shortName": "RecommenderClient" + }, + "fullName": "google.cloud.recommender_v1.RecommenderClient.get_recommendation", "method": { + "fullName": "google.cloud.recommender.v1.Recommender.GetRecommendation", "service": { + "fullName": "google.cloud.recommender.v1.Recommender", "shortName": "Recommender" }, "shortName": "GetRecommendation" - } + }, + "parameters": [ + { + "name": "request", + "type": "google.cloud.recommender_v1.types.GetRecommendationRequest" + }, + { + "name": "name", + "type": "str" + }, + { + "name": "retry", + "type": "google.api_core.retry.Retry" + }, + { + "name": "timeout", + "type": "float" + }, + { + "name": "metadata", + "type": "Sequence[Tuple[str, str]" + } + ], + "resultType": "google.cloud.recommender_v1.types.Recommendation", + "shortName": "get_recommendation" }, + "description": "Sample for GetRecommendation", "file": "recommender_v1_generated_recommender_get_recommendation_sync.py", + "language": "PYTHON", + "origin": "API_DEFINITION", "regionTag": "recommender_v1_generated_Recommender_GetRecommendation_sync", "segments": [ { @@ -176,19 +329,55 @@ "start": 42, "type": "RESPONSE_HANDLING" } - ] + ], + "title": "recommender_v1_generated_recommender_get_recommendation_sync.py" }, { + "canonical": true, "clientMethod": { "async": true, + "client": { + "fullName": "google.cloud.recommender_v1.RecommenderAsyncClient", + "shortName": "RecommenderAsyncClient" + }, + "fullName": "google.cloud.recommender_v1.RecommenderAsyncClient.list_insights", "method": { + "fullName": "google.cloud.recommender.v1.Recommender.ListInsights", "service": { + "fullName": "google.cloud.recommender.v1.Recommender", "shortName": "Recommender" }, "shortName": "ListInsights" - } + }, + "parameters": [ + { + "name": "request", + "type": "google.cloud.recommender_v1.types.ListInsightsRequest" + }, + { + "name": "parent", + "type": "str" + }, + { + "name": "retry", + "type": "google.api_core.retry.Retry" + }, + { + "name": "timeout", + "type": "float" + }, + { + "name": "metadata", + "type": "Sequence[Tuple[str, str]" + } + ], + "resultType": "google.cloud.recommender_v1.services.recommender.pagers.ListInsightsAsyncPager", + "shortName": "list_insights" }, + "description": "Sample for ListInsights", "file": "recommender_v1_generated_recommender_list_insights_async.py", + "language": "PYTHON", + "origin": "API_DEFINITION", "regionTag": "recommender_v1_generated_Recommender_ListInsights_async", "segments": [ { @@ -221,18 +410,54 @@ "start": 42, "type": "RESPONSE_HANDLING" } - ] + ], + "title": "recommender_v1_generated_recommender_list_insights_async.py" }, { + "canonical": true, "clientMethod": { + "client": { + "fullName": "google.cloud.recommender_v1.RecommenderClient", + "shortName": "RecommenderClient" + }, + "fullName": "google.cloud.recommender_v1.RecommenderClient.list_insights", "method": { + "fullName": "google.cloud.recommender.v1.Recommender.ListInsights", "service": { + "fullName": "google.cloud.recommender.v1.Recommender", "shortName": "Recommender" }, "shortName": "ListInsights" - } + }, + "parameters": [ + { + "name": "request", + "type": "google.cloud.recommender_v1.types.ListInsightsRequest" + }, + { + "name": "parent", + "type": "str" + }, + { + "name": "retry", + "type": "google.api_core.retry.Retry" + }, + { + "name": "timeout", + "type": "float" + }, + { + "name": "metadata", + "type": "Sequence[Tuple[str, str]" + } + ], + "resultType": "google.cloud.recommender_v1.services.recommender.pagers.ListInsightsPager", + "shortName": "list_insights" }, + "description": "Sample for ListInsights", "file": "recommender_v1_generated_recommender_list_insights_sync.py", + "language": "PYTHON", + "origin": "API_DEFINITION", "regionTag": "recommender_v1_generated_Recommender_ListInsights_sync", "segments": [ { @@ -265,19 +490,59 @@ "start": 42, "type": "RESPONSE_HANDLING" } - ] + ], + "title": "recommender_v1_generated_recommender_list_insights_sync.py" }, { + "canonical": true, "clientMethod": { "async": true, + "client": { + "fullName": "google.cloud.recommender_v1.RecommenderAsyncClient", + "shortName": "RecommenderAsyncClient" + }, + "fullName": "google.cloud.recommender_v1.RecommenderAsyncClient.list_recommendations", "method": { + "fullName": "google.cloud.recommender.v1.Recommender.ListRecommendations", "service": { + "fullName": "google.cloud.recommender.v1.Recommender", "shortName": "Recommender" }, "shortName": "ListRecommendations" - } + }, + "parameters": [ + { + "name": "request", + "type": "google.cloud.recommender_v1.types.ListRecommendationsRequest" + }, + { + "name": "parent", + "type": "str" + }, + { + "name": "filter", + "type": "str" + }, + { + "name": "retry", + "type": "google.api_core.retry.Retry" + }, + { + "name": "timeout", + "type": "float" + }, + { + "name": "metadata", + "type": "Sequence[Tuple[str, str]" + } + ], + "resultType": "google.cloud.recommender_v1.services.recommender.pagers.ListRecommendationsAsyncPager", + "shortName": "list_recommendations" }, + "description": "Sample for ListRecommendations", "file": "recommender_v1_generated_recommender_list_recommendations_async.py", + "language": "PYTHON", + "origin": "API_DEFINITION", "regionTag": "recommender_v1_generated_Recommender_ListRecommendations_async", "segments": [ { @@ -310,18 +575,58 @@ "start": 42, "type": "RESPONSE_HANDLING" } - ] + ], + "title": "recommender_v1_generated_recommender_list_recommendations_async.py" }, { + "canonical": true, "clientMethod": { + "client": { + "fullName": "google.cloud.recommender_v1.RecommenderClient", + "shortName": "RecommenderClient" + }, + "fullName": "google.cloud.recommender_v1.RecommenderClient.list_recommendations", "method": { + "fullName": "google.cloud.recommender.v1.Recommender.ListRecommendations", "service": { + "fullName": "google.cloud.recommender.v1.Recommender", "shortName": "Recommender" }, "shortName": "ListRecommendations" - } + }, + "parameters": [ + { + "name": "request", + "type": "google.cloud.recommender_v1.types.ListRecommendationsRequest" + }, + { + "name": "parent", + "type": "str" + }, + { + "name": "filter", + "type": "str" + }, + { + "name": "retry", + "type": "google.api_core.retry.Retry" + }, + { + "name": "timeout", + "type": "float" + }, + { + "name": "metadata", + "type": "Sequence[Tuple[str, str]" + } + ], + "resultType": "google.cloud.recommender_v1.services.recommender.pagers.ListRecommendationsPager", + "shortName": "list_recommendations" }, + "description": "Sample for ListRecommendations", "file": "recommender_v1_generated_recommender_list_recommendations_sync.py", + "language": "PYTHON", + "origin": "API_DEFINITION", "regionTag": "recommender_v1_generated_Recommender_ListRecommendations_sync", "segments": [ { @@ -354,19 +659,63 @@ "start": 42, "type": "RESPONSE_HANDLING" } - ] + ], + "title": "recommender_v1_generated_recommender_list_recommendations_sync.py" }, { + "canonical": true, "clientMethod": { "async": true, + "client": { + "fullName": "google.cloud.recommender_v1.RecommenderAsyncClient", + "shortName": "RecommenderAsyncClient" + }, + "fullName": "google.cloud.recommender_v1.RecommenderAsyncClient.mark_insight_accepted", "method": { + "fullName": "google.cloud.recommender.v1.Recommender.MarkInsightAccepted", "service": { + "fullName": "google.cloud.recommender.v1.Recommender", "shortName": "Recommender" }, "shortName": "MarkInsightAccepted" - } + }, + "parameters": [ + { + "name": "request", + "type": "google.cloud.recommender_v1.types.MarkInsightAcceptedRequest" + }, + { + "name": "name", + "type": "str" + }, + { + "name": "state_metadata", + "type": "Mapping[str, str]" + }, + { + "name": "etag", + "type": "str" + }, + { + "name": "retry", + "type": "google.api_core.retry.Retry" + }, + { + "name": "timeout", + "type": "float" + }, + { + "name": "metadata", + "type": "Sequence[Tuple[str, str]" + } + ], + "resultType": "google.cloud.recommender_v1.types.Insight", + "shortName": "mark_insight_accepted" }, + "description": "Sample for MarkInsightAccepted", "file": "recommender_v1_generated_recommender_mark_insight_accepted_async.py", + "language": "PYTHON", + "origin": "API_DEFINITION", "regionTag": "recommender_v1_generated_Recommender_MarkInsightAccepted_async", "segments": [ { @@ -399,18 +748,62 @@ "start": 43, "type": "RESPONSE_HANDLING" } - ] + ], + "title": "recommender_v1_generated_recommender_mark_insight_accepted_async.py" }, { + "canonical": true, "clientMethod": { + "client": { + "fullName": "google.cloud.recommender_v1.RecommenderClient", + "shortName": "RecommenderClient" + }, + "fullName": "google.cloud.recommender_v1.RecommenderClient.mark_insight_accepted", "method": { + "fullName": "google.cloud.recommender.v1.Recommender.MarkInsightAccepted", "service": { + "fullName": "google.cloud.recommender.v1.Recommender", "shortName": "Recommender" }, "shortName": "MarkInsightAccepted" - } + }, + "parameters": [ + { + "name": "request", + "type": "google.cloud.recommender_v1.types.MarkInsightAcceptedRequest" + }, + { + "name": "name", + "type": "str" + }, + { + "name": "state_metadata", + "type": "Mapping[str, str]" + }, + { + "name": "etag", + "type": "str" + }, + { + "name": "retry", + "type": "google.api_core.retry.Retry" + }, + { + "name": "timeout", + "type": "float" + }, + { + "name": "metadata", + "type": "Sequence[Tuple[str, str]" + } + ], + "resultType": "google.cloud.recommender_v1.types.Insight", + "shortName": "mark_insight_accepted" }, + "description": "Sample for MarkInsightAccepted", "file": "recommender_v1_generated_recommender_mark_insight_accepted_sync.py", + "language": "PYTHON", + "origin": "API_DEFINITION", "regionTag": "recommender_v1_generated_Recommender_MarkInsightAccepted_sync", "segments": [ { @@ -443,19 +836,63 @@ "start": 43, "type": "RESPONSE_HANDLING" } - ] + ], + "title": "recommender_v1_generated_recommender_mark_insight_accepted_sync.py" }, { + "canonical": true, "clientMethod": { "async": true, + "client": { + "fullName": "google.cloud.recommender_v1.RecommenderAsyncClient", + "shortName": "RecommenderAsyncClient" + }, + "fullName": "google.cloud.recommender_v1.RecommenderAsyncClient.mark_recommendation_claimed", "method": { + "fullName": "google.cloud.recommender.v1.Recommender.MarkRecommendationClaimed", "service": { + "fullName": "google.cloud.recommender.v1.Recommender", "shortName": "Recommender" }, "shortName": "MarkRecommendationClaimed" - } + }, + "parameters": [ + { + "name": "request", + "type": "google.cloud.recommender_v1.types.MarkRecommendationClaimedRequest" + }, + { + "name": "name", + "type": "str" + }, + { + "name": "state_metadata", + "type": "Mapping[str, str]" + }, + { + "name": "etag", + "type": "str" + }, + { + "name": "retry", + "type": "google.api_core.retry.Retry" + }, + { + "name": "timeout", + "type": "float" + }, + { + "name": "metadata", + "type": "Sequence[Tuple[str, str]" + } + ], + "resultType": "google.cloud.recommender_v1.types.Recommendation", + "shortName": "mark_recommendation_claimed" }, + "description": "Sample for MarkRecommendationClaimed", "file": "recommender_v1_generated_recommender_mark_recommendation_claimed_async.py", + "language": "PYTHON", + "origin": "API_DEFINITION", "regionTag": "recommender_v1_generated_Recommender_MarkRecommendationClaimed_async", "segments": [ { @@ -488,18 +925,62 @@ "start": 43, "type": "RESPONSE_HANDLING" } - ] + ], + "title": "recommender_v1_generated_recommender_mark_recommendation_claimed_async.py" }, { + "canonical": true, "clientMethod": { + "client": { + "fullName": "google.cloud.recommender_v1.RecommenderClient", + "shortName": "RecommenderClient" + }, + "fullName": "google.cloud.recommender_v1.RecommenderClient.mark_recommendation_claimed", "method": { + "fullName": "google.cloud.recommender.v1.Recommender.MarkRecommendationClaimed", "service": { + "fullName": "google.cloud.recommender.v1.Recommender", "shortName": "Recommender" }, "shortName": "MarkRecommendationClaimed" - } + }, + "parameters": [ + { + "name": "request", + "type": "google.cloud.recommender_v1.types.MarkRecommendationClaimedRequest" + }, + { + "name": "name", + "type": "str" + }, + { + "name": "state_metadata", + "type": "Mapping[str, str]" + }, + { + "name": "etag", + "type": "str" + }, + { + "name": "retry", + "type": "google.api_core.retry.Retry" + }, + { + "name": "timeout", + "type": "float" + }, + { + "name": "metadata", + "type": "Sequence[Tuple[str, str]" + } + ], + "resultType": "google.cloud.recommender_v1.types.Recommendation", + "shortName": "mark_recommendation_claimed" }, + "description": "Sample for MarkRecommendationClaimed", "file": "recommender_v1_generated_recommender_mark_recommendation_claimed_sync.py", + "language": "PYTHON", + "origin": "API_DEFINITION", "regionTag": "recommender_v1_generated_Recommender_MarkRecommendationClaimed_sync", "segments": [ { @@ -532,19 +1013,63 @@ "start": 43, "type": "RESPONSE_HANDLING" } - ] + ], + "title": "recommender_v1_generated_recommender_mark_recommendation_claimed_sync.py" }, { + "canonical": true, "clientMethod": { "async": true, + "client": { + "fullName": "google.cloud.recommender_v1.RecommenderAsyncClient", + "shortName": "RecommenderAsyncClient" + }, + "fullName": "google.cloud.recommender_v1.RecommenderAsyncClient.mark_recommendation_failed", "method": { + "fullName": "google.cloud.recommender.v1.Recommender.MarkRecommendationFailed", "service": { + "fullName": "google.cloud.recommender.v1.Recommender", "shortName": "Recommender" }, "shortName": "MarkRecommendationFailed" - } + }, + "parameters": [ + { + "name": "request", + "type": "google.cloud.recommender_v1.types.MarkRecommendationFailedRequest" + }, + { + "name": "name", + "type": "str" + }, + { + "name": "state_metadata", + "type": "Mapping[str, str]" + }, + { + "name": "etag", + "type": "str" + }, + { + "name": "retry", + "type": "google.api_core.retry.Retry" + }, + { + "name": "timeout", + "type": "float" + }, + { + "name": "metadata", + "type": "Sequence[Tuple[str, str]" + } + ], + "resultType": "google.cloud.recommender_v1.types.Recommendation", + "shortName": "mark_recommendation_failed" }, + "description": "Sample for MarkRecommendationFailed", "file": "recommender_v1_generated_recommender_mark_recommendation_failed_async.py", + "language": "PYTHON", + "origin": "API_DEFINITION", "regionTag": "recommender_v1_generated_Recommender_MarkRecommendationFailed_async", "segments": [ { @@ -577,18 +1102,62 @@ "start": 43, "type": "RESPONSE_HANDLING" } - ] + ], + "title": "recommender_v1_generated_recommender_mark_recommendation_failed_async.py" }, { + "canonical": true, "clientMethod": { + "client": { + "fullName": "google.cloud.recommender_v1.RecommenderClient", + "shortName": "RecommenderClient" + }, + "fullName": "google.cloud.recommender_v1.RecommenderClient.mark_recommendation_failed", "method": { + "fullName": "google.cloud.recommender.v1.Recommender.MarkRecommendationFailed", "service": { + "fullName": "google.cloud.recommender.v1.Recommender", "shortName": "Recommender" }, "shortName": "MarkRecommendationFailed" - } + }, + "parameters": [ + { + "name": "request", + "type": "google.cloud.recommender_v1.types.MarkRecommendationFailedRequest" + }, + { + "name": "name", + "type": "str" + }, + { + "name": "state_metadata", + "type": "Mapping[str, str]" + }, + { + "name": "etag", + "type": "str" + }, + { + "name": "retry", + "type": "google.api_core.retry.Retry" + }, + { + "name": "timeout", + "type": "float" + }, + { + "name": "metadata", + "type": "Sequence[Tuple[str, str]" + } + ], + "resultType": "google.cloud.recommender_v1.types.Recommendation", + "shortName": "mark_recommendation_failed" }, + "description": "Sample for MarkRecommendationFailed", "file": "recommender_v1_generated_recommender_mark_recommendation_failed_sync.py", + "language": "PYTHON", + "origin": "API_DEFINITION", "regionTag": "recommender_v1_generated_Recommender_MarkRecommendationFailed_sync", "segments": [ { @@ -621,19 +1190,63 @@ "start": 43, "type": "RESPONSE_HANDLING" } - ] + ], + "title": "recommender_v1_generated_recommender_mark_recommendation_failed_sync.py" }, { + "canonical": true, "clientMethod": { "async": true, + "client": { + "fullName": "google.cloud.recommender_v1.RecommenderAsyncClient", + "shortName": "RecommenderAsyncClient" + }, + "fullName": "google.cloud.recommender_v1.RecommenderAsyncClient.mark_recommendation_succeeded", "method": { + "fullName": "google.cloud.recommender.v1.Recommender.MarkRecommendationSucceeded", "service": { + "fullName": "google.cloud.recommender.v1.Recommender", "shortName": "Recommender" }, "shortName": "MarkRecommendationSucceeded" - } + }, + "parameters": [ + { + "name": "request", + "type": "google.cloud.recommender_v1.types.MarkRecommendationSucceededRequest" + }, + { + "name": "name", + "type": "str" + }, + { + "name": "state_metadata", + "type": "Mapping[str, str]" + }, + { + "name": "etag", + "type": "str" + }, + { + "name": "retry", + "type": "google.api_core.retry.Retry" + }, + { + "name": "timeout", + "type": "float" + }, + { + "name": "metadata", + "type": "Sequence[Tuple[str, str]" + } + ], + "resultType": "google.cloud.recommender_v1.types.Recommendation", + "shortName": "mark_recommendation_succeeded" }, + "description": "Sample for MarkRecommendationSucceeded", "file": "recommender_v1_generated_recommender_mark_recommendation_succeeded_async.py", + "language": "PYTHON", + "origin": "API_DEFINITION", "regionTag": "recommender_v1_generated_Recommender_MarkRecommendationSucceeded_async", "segments": [ { @@ -666,18 +1279,62 @@ "start": 43, "type": "RESPONSE_HANDLING" } - ] + ], + "title": "recommender_v1_generated_recommender_mark_recommendation_succeeded_async.py" }, { + "canonical": true, "clientMethod": { + "client": { + "fullName": "google.cloud.recommender_v1.RecommenderClient", + "shortName": "RecommenderClient" + }, + "fullName": "google.cloud.recommender_v1.RecommenderClient.mark_recommendation_succeeded", "method": { + "fullName": "google.cloud.recommender.v1.Recommender.MarkRecommendationSucceeded", "service": { + "fullName": "google.cloud.recommender.v1.Recommender", "shortName": "Recommender" }, "shortName": "MarkRecommendationSucceeded" - } + }, + "parameters": [ + { + "name": "request", + "type": "google.cloud.recommender_v1.types.MarkRecommendationSucceededRequest" + }, + { + "name": "name", + "type": "str" + }, + { + "name": "state_metadata", + "type": "Mapping[str, str]" + }, + { + "name": "etag", + "type": "str" + }, + { + "name": "retry", + "type": "google.api_core.retry.Retry" + }, + { + "name": "timeout", + "type": "float" + }, + { + "name": "metadata", + "type": "Sequence[Tuple[str, str]" + } + ], + "resultType": "google.cloud.recommender_v1.types.Recommendation", + "shortName": "mark_recommendation_succeeded" }, + "description": "Sample for MarkRecommendationSucceeded", "file": "recommender_v1_generated_recommender_mark_recommendation_succeeded_sync.py", + "language": "PYTHON", + "origin": "API_DEFINITION", "regionTag": "recommender_v1_generated_Recommender_MarkRecommendationSucceeded_sync", "segments": [ { @@ -710,7 +1367,8 @@ "start": 43, "type": "RESPONSE_HANDLING" } - ] + ], + "title": "recommender_v1_generated_recommender_mark_recommendation_succeeded_sync.py" } ] } diff --git a/packages/google-cloud-recommender/samples/generated_samples/snippet_metadata_recommender_v1beta1.json b/packages/google-cloud-recommender/samples/generated_samples/snippet_metadata_recommender_v1beta1.json index d99cbd3f6a25..f32553363564 100644 --- a/packages/google-cloud-recommender/samples/generated_samples/snippet_metadata_recommender_v1beta1.json +++ b/packages/google-cloud-recommender/samples/generated_samples/snippet_metadata_recommender_v1beta1.json @@ -1,16 +1,61 @@ { + "clientLibrary": { + "apis": [ + { + "id": "google.cloud.recommender.v1beta1", + "version": "v1beta1" + } + ], + "language": "PYTHON", + "name": "google-cloud-recommender" + }, "snippets": [ { + "canonical": true, "clientMethod": { "async": true, + "client": { + "fullName": "google.cloud.recommender_v1beta1.RecommenderAsyncClient", + "shortName": "RecommenderAsyncClient" + }, + "fullName": "google.cloud.recommender_v1beta1.RecommenderAsyncClient.get_insight_type_config", "method": { + "fullName": "google.cloud.recommender.v1beta1.Recommender.GetInsightTypeConfig", "service": { + "fullName": "google.cloud.recommender.v1beta1.Recommender", "shortName": "Recommender" }, "shortName": "GetInsightTypeConfig" - } + }, + "parameters": [ + { + "name": "request", + "type": "google.cloud.recommender_v1beta1.types.GetInsightTypeConfigRequest" + }, + { + "name": "name", + "type": "str" + }, + { + "name": "retry", + "type": "google.api_core.retry.Retry" + }, + { + "name": "timeout", + "type": "float" + }, + { + "name": "metadata", + "type": "Sequence[Tuple[str, str]" + } + ], + "resultType": "google.cloud.recommender_v1beta1.types.InsightTypeConfig", + "shortName": "get_insight_type_config" }, + "description": "Sample for GetInsightTypeConfig", "file": "recommender_v1beta1_generated_recommender_get_insight_type_config_async.py", + "language": "PYTHON", + "origin": "API_DEFINITION", "regionTag": "recommender_v1beta1_generated_Recommender_GetInsightTypeConfig_async", "segments": [ { @@ -43,18 +88,54 @@ "start": 42, "type": "RESPONSE_HANDLING" } - ] + ], + "title": "recommender_v1beta1_generated_recommender_get_insight_type_config_async.py" }, { + "canonical": true, "clientMethod": { + "client": { + "fullName": "google.cloud.recommender_v1beta1.RecommenderClient", + "shortName": "RecommenderClient" + }, + "fullName": "google.cloud.recommender_v1beta1.RecommenderClient.get_insight_type_config", "method": { + "fullName": "google.cloud.recommender.v1beta1.Recommender.GetInsightTypeConfig", "service": { + "fullName": "google.cloud.recommender.v1beta1.Recommender", "shortName": "Recommender" }, "shortName": "GetInsightTypeConfig" - } + }, + "parameters": [ + { + "name": "request", + "type": "google.cloud.recommender_v1beta1.types.GetInsightTypeConfigRequest" + }, + { + "name": "name", + "type": "str" + }, + { + "name": "retry", + "type": "google.api_core.retry.Retry" + }, + { + "name": "timeout", + "type": "float" + }, + { + "name": "metadata", + "type": "Sequence[Tuple[str, str]" + } + ], + "resultType": "google.cloud.recommender_v1beta1.types.InsightTypeConfig", + "shortName": "get_insight_type_config" }, + "description": "Sample for GetInsightTypeConfig", "file": "recommender_v1beta1_generated_recommender_get_insight_type_config_sync.py", + "language": "PYTHON", + "origin": "API_DEFINITION", "regionTag": "recommender_v1beta1_generated_Recommender_GetInsightTypeConfig_sync", "segments": [ { @@ -87,19 +168,55 @@ "start": 42, "type": "RESPONSE_HANDLING" } - ] + ], + "title": "recommender_v1beta1_generated_recommender_get_insight_type_config_sync.py" }, { + "canonical": true, "clientMethod": { "async": true, + "client": { + "fullName": "google.cloud.recommender_v1beta1.RecommenderAsyncClient", + "shortName": "RecommenderAsyncClient" + }, + "fullName": "google.cloud.recommender_v1beta1.RecommenderAsyncClient.get_insight", "method": { + "fullName": "google.cloud.recommender.v1beta1.Recommender.GetInsight", "service": { + "fullName": "google.cloud.recommender.v1beta1.Recommender", "shortName": "Recommender" }, "shortName": "GetInsight" - } + }, + "parameters": [ + { + "name": "request", + "type": "google.cloud.recommender_v1beta1.types.GetInsightRequest" + }, + { + "name": "name", + "type": "str" + }, + { + "name": "retry", + "type": "google.api_core.retry.Retry" + }, + { + "name": "timeout", + "type": "float" + }, + { + "name": "metadata", + "type": "Sequence[Tuple[str, str]" + } + ], + "resultType": "google.cloud.recommender_v1beta1.types.Insight", + "shortName": "get_insight" }, + "description": "Sample for GetInsight", "file": "recommender_v1beta1_generated_recommender_get_insight_async.py", + "language": "PYTHON", + "origin": "API_DEFINITION", "regionTag": "recommender_v1beta1_generated_Recommender_GetInsight_async", "segments": [ { @@ -132,18 +249,54 @@ "start": 42, "type": "RESPONSE_HANDLING" } - ] + ], + "title": "recommender_v1beta1_generated_recommender_get_insight_async.py" }, { + "canonical": true, "clientMethod": { + "client": { + "fullName": "google.cloud.recommender_v1beta1.RecommenderClient", + "shortName": "RecommenderClient" + }, + "fullName": "google.cloud.recommender_v1beta1.RecommenderClient.get_insight", "method": { + "fullName": "google.cloud.recommender.v1beta1.Recommender.GetInsight", "service": { + "fullName": "google.cloud.recommender.v1beta1.Recommender", "shortName": "Recommender" }, "shortName": "GetInsight" - } + }, + "parameters": [ + { + "name": "request", + "type": "google.cloud.recommender_v1beta1.types.GetInsightRequest" + }, + { + "name": "name", + "type": "str" + }, + { + "name": "retry", + "type": "google.api_core.retry.Retry" + }, + { + "name": "timeout", + "type": "float" + }, + { + "name": "metadata", + "type": "Sequence[Tuple[str, str]" + } + ], + "resultType": "google.cloud.recommender_v1beta1.types.Insight", + "shortName": "get_insight" }, + "description": "Sample for GetInsight", "file": "recommender_v1beta1_generated_recommender_get_insight_sync.py", + "language": "PYTHON", + "origin": "API_DEFINITION", "regionTag": "recommender_v1beta1_generated_Recommender_GetInsight_sync", "segments": [ { @@ -176,19 +329,55 @@ "start": 42, "type": "RESPONSE_HANDLING" } - ] + ], + "title": "recommender_v1beta1_generated_recommender_get_insight_sync.py" }, { + "canonical": true, "clientMethod": { "async": true, + "client": { + "fullName": "google.cloud.recommender_v1beta1.RecommenderAsyncClient", + "shortName": "RecommenderAsyncClient" + }, + "fullName": "google.cloud.recommender_v1beta1.RecommenderAsyncClient.get_recommendation", "method": { + "fullName": "google.cloud.recommender.v1beta1.Recommender.GetRecommendation", "service": { + "fullName": "google.cloud.recommender.v1beta1.Recommender", "shortName": "Recommender" }, "shortName": "GetRecommendation" - } + }, + "parameters": [ + { + "name": "request", + "type": "google.cloud.recommender_v1beta1.types.GetRecommendationRequest" + }, + { + "name": "name", + "type": "str" + }, + { + "name": "retry", + "type": "google.api_core.retry.Retry" + }, + { + "name": "timeout", + "type": "float" + }, + { + "name": "metadata", + "type": "Sequence[Tuple[str, str]" + } + ], + "resultType": "google.cloud.recommender_v1beta1.types.Recommendation", + "shortName": "get_recommendation" }, + "description": "Sample for GetRecommendation", "file": "recommender_v1beta1_generated_recommender_get_recommendation_async.py", + "language": "PYTHON", + "origin": "API_DEFINITION", "regionTag": "recommender_v1beta1_generated_Recommender_GetRecommendation_async", "segments": [ { @@ -221,18 +410,54 @@ "start": 42, "type": "RESPONSE_HANDLING" } - ] + ], + "title": "recommender_v1beta1_generated_recommender_get_recommendation_async.py" }, { + "canonical": true, "clientMethod": { + "client": { + "fullName": "google.cloud.recommender_v1beta1.RecommenderClient", + "shortName": "RecommenderClient" + }, + "fullName": "google.cloud.recommender_v1beta1.RecommenderClient.get_recommendation", "method": { + "fullName": "google.cloud.recommender.v1beta1.Recommender.GetRecommendation", "service": { + "fullName": "google.cloud.recommender.v1beta1.Recommender", "shortName": "Recommender" }, "shortName": "GetRecommendation" - } + }, + "parameters": [ + { + "name": "request", + "type": "google.cloud.recommender_v1beta1.types.GetRecommendationRequest" + }, + { + "name": "name", + "type": "str" + }, + { + "name": "retry", + "type": "google.api_core.retry.Retry" + }, + { + "name": "timeout", + "type": "float" + }, + { + "name": "metadata", + "type": "Sequence[Tuple[str, str]" + } + ], + "resultType": "google.cloud.recommender_v1beta1.types.Recommendation", + "shortName": "get_recommendation" }, + "description": "Sample for GetRecommendation", "file": "recommender_v1beta1_generated_recommender_get_recommendation_sync.py", + "language": "PYTHON", + "origin": "API_DEFINITION", "regionTag": "recommender_v1beta1_generated_Recommender_GetRecommendation_sync", "segments": [ { @@ -265,19 +490,55 @@ "start": 42, "type": "RESPONSE_HANDLING" } - ] + ], + "title": "recommender_v1beta1_generated_recommender_get_recommendation_sync.py" }, { + "canonical": true, "clientMethod": { "async": true, + "client": { + "fullName": "google.cloud.recommender_v1beta1.RecommenderAsyncClient", + "shortName": "RecommenderAsyncClient" + }, + "fullName": "google.cloud.recommender_v1beta1.RecommenderAsyncClient.get_recommender_config", "method": { + "fullName": "google.cloud.recommender.v1beta1.Recommender.GetRecommenderConfig", "service": { + "fullName": "google.cloud.recommender.v1beta1.Recommender", "shortName": "Recommender" }, "shortName": "GetRecommenderConfig" - } + }, + "parameters": [ + { + "name": "request", + "type": "google.cloud.recommender_v1beta1.types.GetRecommenderConfigRequest" + }, + { + "name": "name", + "type": "str" + }, + { + "name": "retry", + "type": "google.api_core.retry.Retry" + }, + { + "name": "timeout", + "type": "float" + }, + { + "name": "metadata", + "type": "Sequence[Tuple[str, str]" + } + ], + "resultType": "google.cloud.recommender_v1beta1.types.RecommenderConfig", + "shortName": "get_recommender_config" }, + "description": "Sample for GetRecommenderConfig", "file": "recommender_v1beta1_generated_recommender_get_recommender_config_async.py", + "language": "PYTHON", + "origin": "API_DEFINITION", "regionTag": "recommender_v1beta1_generated_Recommender_GetRecommenderConfig_async", "segments": [ { @@ -310,18 +571,54 @@ "start": 42, "type": "RESPONSE_HANDLING" } - ] + ], + "title": "recommender_v1beta1_generated_recommender_get_recommender_config_async.py" }, { + "canonical": true, "clientMethod": { + "client": { + "fullName": "google.cloud.recommender_v1beta1.RecommenderClient", + "shortName": "RecommenderClient" + }, + "fullName": "google.cloud.recommender_v1beta1.RecommenderClient.get_recommender_config", "method": { + "fullName": "google.cloud.recommender.v1beta1.Recommender.GetRecommenderConfig", "service": { + "fullName": "google.cloud.recommender.v1beta1.Recommender", "shortName": "Recommender" }, "shortName": "GetRecommenderConfig" - } + }, + "parameters": [ + { + "name": "request", + "type": "google.cloud.recommender_v1beta1.types.GetRecommenderConfigRequest" + }, + { + "name": "name", + "type": "str" + }, + { + "name": "retry", + "type": "google.api_core.retry.Retry" + }, + { + "name": "timeout", + "type": "float" + }, + { + "name": "metadata", + "type": "Sequence[Tuple[str, str]" + } + ], + "resultType": "google.cloud.recommender_v1beta1.types.RecommenderConfig", + "shortName": "get_recommender_config" }, + "description": "Sample for GetRecommenderConfig", "file": "recommender_v1beta1_generated_recommender_get_recommender_config_sync.py", + "language": "PYTHON", + "origin": "API_DEFINITION", "regionTag": "recommender_v1beta1_generated_Recommender_GetRecommenderConfig_sync", "segments": [ { @@ -354,19 +651,55 @@ "start": 42, "type": "RESPONSE_HANDLING" } - ] + ], + "title": "recommender_v1beta1_generated_recommender_get_recommender_config_sync.py" }, { + "canonical": true, "clientMethod": { "async": true, + "client": { + "fullName": "google.cloud.recommender_v1beta1.RecommenderAsyncClient", + "shortName": "RecommenderAsyncClient" + }, + "fullName": "google.cloud.recommender_v1beta1.RecommenderAsyncClient.list_insights", "method": { + "fullName": "google.cloud.recommender.v1beta1.Recommender.ListInsights", "service": { + "fullName": "google.cloud.recommender.v1beta1.Recommender", "shortName": "Recommender" }, "shortName": "ListInsights" - } + }, + "parameters": [ + { + "name": "request", + "type": "google.cloud.recommender_v1beta1.types.ListInsightsRequest" + }, + { + "name": "parent", + "type": "str" + }, + { + "name": "retry", + "type": "google.api_core.retry.Retry" + }, + { + "name": "timeout", + "type": "float" + }, + { + "name": "metadata", + "type": "Sequence[Tuple[str, str]" + } + ], + "resultType": "google.cloud.recommender_v1beta1.services.recommender.pagers.ListInsightsAsyncPager", + "shortName": "list_insights" }, + "description": "Sample for ListInsights", "file": "recommender_v1beta1_generated_recommender_list_insights_async.py", + "language": "PYTHON", + "origin": "API_DEFINITION", "regionTag": "recommender_v1beta1_generated_Recommender_ListInsights_async", "segments": [ { @@ -399,18 +732,54 @@ "start": 42, "type": "RESPONSE_HANDLING" } - ] + ], + "title": "recommender_v1beta1_generated_recommender_list_insights_async.py" }, { + "canonical": true, "clientMethod": { + "client": { + "fullName": "google.cloud.recommender_v1beta1.RecommenderClient", + "shortName": "RecommenderClient" + }, + "fullName": "google.cloud.recommender_v1beta1.RecommenderClient.list_insights", "method": { + "fullName": "google.cloud.recommender.v1beta1.Recommender.ListInsights", "service": { + "fullName": "google.cloud.recommender.v1beta1.Recommender", "shortName": "Recommender" }, "shortName": "ListInsights" - } + }, + "parameters": [ + { + "name": "request", + "type": "google.cloud.recommender_v1beta1.types.ListInsightsRequest" + }, + { + "name": "parent", + "type": "str" + }, + { + "name": "retry", + "type": "google.api_core.retry.Retry" + }, + { + "name": "timeout", + "type": "float" + }, + { + "name": "metadata", + "type": "Sequence[Tuple[str, str]" + } + ], + "resultType": "google.cloud.recommender_v1beta1.services.recommender.pagers.ListInsightsPager", + "shortName": "list_insights" }, + "description": "Sample for ListInsights", "file": "recommender_v1beta1_generated_recommender_list_insights_sync.py", + "language": "PYTHON", + "origin": "API_DEFINITION", "regionTag": "recommender_v1beta1_generated_Recommender_ListInsights_sync", "segments": [ { @@ -443,19 +812,59 @@ "start": 42, "type": "RESPONSE_HANDLING" } - ] + ], + "title": "recommender_v1beta1_generated_recommender_list_insights_sync.py" }, { + "canonical": true, "clientMethod": { "async": true, + "client": { + "fullName": "google.cloud.recommender_v1beta1.RecommenderAsyncClient", + "shortName": "RecommenderAsyncClient" + }, + "fullName": "google.cloud.recommender_v1beta1.RecommenderAsyncClient.list_recommendations", "method": { + "fullName": "google.cloud.recommender.v1beta1.Recommender.ListRecommendations", "service": { + "fullName": "google.cloud.recommender.v1beta1.Recommender", "shortName": "Recommender" }, "shortName": "ListRecommendations" - } + }, + "parameters": [ + { + "name": "request", + "type": "google.cloud.recommender_v1beta1.types.ListRecommendationsRequest" + }, + { + "name": "parent", + "type": "str" + }, + { + "name": "filter", + "type": "str" + }, + { + "name": "retry", + "type": "google.api_core.retry.Retry" + }, + { + "name": "timeout", + "type": "float" + }, + { + "name": "metadata", + "type": "Sequence[Tuple[str, str]" + } + ], + "resultType": "google.cloud.recommender_v1beta1.services.recommender.pagers.ListRecommendationsAsyncPager", + "shortName": "list_recommendations" }, + "description": "Sample for ListRecommendations", "file": "recommender_v1beta1_generated_recommender_list_recommendations_async.py", + "language": "PYTHON", + "origin": "API_DEFINITION", "regionTag": "recommender_v1beta1_generated_Recommender_ListRecommendations_async", "segments": [ { @@ -488,18 +897,58 @@ "start": 42, "type": "RESPONSE_HANDLING" } - ] + ], + "title": "recommender_v1beta1_generated_recommender_list_recommendations_async.py" }, { + "canonical": true, "clientMethod": { + "client": { + "fullName": "google.cloud.recommender_v1beta1.RecommenderClient", + "shortName": "RecommenderClient" + }, + "fullName": "google.cloud.recommender_v1beta1.RecommenderClient.list_recommendations", "method": { + "fullName": "google.cloud.recommender.v1beta1.Recommender.ListRecommendations", "service": { + "fullName": "google.cloud.recommender.v1beta1.Recommender", "shortName": "Recommender" }, "shortName": "ListRecommendations" - } + }, + "parameters": [ + { + "name": "request", + "type": "google.cloud.recommender_v1beta1.types.ListRecommendationsRequest" + }, + { + "name": "parent", + "type": "str" + }, + { + "name": "filter", + "type": "str" + }, + { + "name": "retry", + "type": "google.api_core.retry.Retry" + }, + { + "name": "timeout", + "type": "float" + }, + { + "name": "metadata", + "type": "Sequence[Tuple[str, str]" + } + ], + "resultType": "google.cloud.recommender_v1beta1.services.recommender.pagers.ListRecommendationsPager", + "shortName": "list_recommendations" }, + "description": "Sample for ListRecommendations", "file": "recommender_v1beta1_generated_recommender_list_recommendations_sync.py", + "language": "PYTHON", + "origin": "API_DEFINITION", "regionTag": "recommender_v1beta1_generated_Recommender_ListRecommendations_sync", "segments": [ { @@ -532,19 +981,63 @@ "start": 42, "type": "RESPONSE_HANDLING" } - ] + ], + "title": "recommender_v1beta1_generated_recommender_list_recommendations_sync.py" }, { + "canonical": true, "clientMethod": { "async": true, + "client": { + "fullName": "google.cloud.recommender_v1beta1.RecommenderAsyncClient", + "shortName": "RecommenderAsyncClient" + }, + "fullName": "google.cloud.recommender_v1beta1.RecommenderAsyncClient.mark_insight_accepted", "method": { + "fullName": "google.cloud.recommender.v1beta1.Recommender.MarkInsightAccepted", "service": { + "fullName": "google.cloud.recommender.v1beta1.Recommender", "shortName": "Recommender" }, "shortName": "MarkInsightAccepted" - } + }, + "parameters": [ + { + "name": "request", + "type": "google.cloud.recommender_v1beta1.types.MarkInsightAcceptedRequest" + }, + { + "name": "name", + "type": "str" + }, + { + "name": "state_metadata", + "type": "Mapping[str, str]" + }, + { + "name": "etag", + "type": "str" + }, + { + "name": "retry", + "type": "google.api_core.retry.Retry" + }, + { + "name": "timeout", + "type": "float" + }, + { + "name": "metadata", + "type": "Sequence[Tuple[str, str]" + } + ], + "resultType": "google.cloud.recommender_v1beta1.types.Insight", + "shortName": "mark_insight_accepted" }, + "description": "Sample for MarkInsightAccepted", "file": "recommender_v1beta1_generated_recommender_mark_insight_accepted_async.py", + "language": "PYTHON", + "origin": "API_DEFINITION", "regionTag": "recommender_v1beta1_generated_Recommender_MarkInsightAccepted_async", "segments": [ { @@ -577,18 +1070,62 @@ "start": 43, "type": "RESPONSE_HANDLING" } - ] + ], + "title": "recommender_v1beta1_generated_recommender_mark_insight_accepted_async.py" }, { + "canonical": true, "clientMethod": { + "client": { + "fullName": "google.cloud.recommender_v1beta1.RecommenderClient", + "shortName": "RecommenderClient" + }, + "fullName": "google.cloud.recommender_v1beta1.RecommenderClient.mark_insight_accepted", "method": { + "fullName": "google.cloud.recommender.v1beta1.Recommender.MarkInsightAccepted", "service": { + "fullName": "google.cloud.recommender.v1beta1.Recommender", "shortName": "Recommender" }, "shortName": "MarkInsightAccepted" - } + }, + "parameters": [ + { + "name": "request", + "type": "google.cloud.recommender_v1beta1.types.MarkInsightAcceptedRequest" + }, + { + "name": "name", + "type": "str" + }, + { + "name": "state_metadata", + "type": "Mapping[str, str]" + }, + { + "name": "etag", + "type": "str" + }, + { + "name": "retry", + "type": "google.api_core.retry.Retry" + }, + { + "name": "timeout", + "type": "float" + }, + { + "name": "metadata", + "type": "Sequence[Tuple[str, str]" + } + ], + "resultType": "google.cloud.recommender_v1beta1.types.Insight", + "shortName": "mark_insight_accepted" }, + "description": "Sample for MarkInsightAccepted", "file": "recommender_v1beta1_generated_recommender_mark_insight_accepted_sync.py", + "language": "PYTHON", + "origin": "API_DEFINITION", "regionTag": "recommender_v1beta1_generated_Recommender_MarkInsightAccepted_sync", "segments": [ { @@ -621,19 +1158,63 @@ "start": 43, "type": "RESPONSE_HANDLING" } - ] + ], + "title": "recommender_v1beta1_generated_recommender_mark_insight_accepted_sync.py" }, { + "canonical": true, "clientMethod": { "async": true, + "client": { + "fullName": "google.cloud.recommender_v1beta1.RecommenderAsyncClient", + "shortName": "RecommenderAsyncClient" + }, + "fullName": "google.cloud.recommender_v1beta1.RecommenderAsyncClient.mark_recommendation_claimed", "method": { + "fullName": "google.cloud.recommender.v1beta1.Recommender.MarkRecommendationClaimed", "service": { + "fullName": "google.cloud.recommender.v1beta1.Recommender", "shortName": "Recommender" }, "shortName": "MarkRecommendationClaimed" - } + }, + "parameters": [ + { + "name": "request", + "type": "google.cloud.recommender_v1beta1.types.MarkRecommendationClaimedRequest" + }, + { + "name": "name", + "type": "str" + }, + { + "name": "state_metadata", + "type": "Mapping[str, str]" + }, + { + "name": "etag", + "type": "str" + }, + { + "name": "retry", + "type": "google.api_core.retry.Retry" + }, + { + "name": "timeout", + "type": "float" + }, + { + "name": "metadata", + "type": "Sequence[Tuple[str, str]" + } + ], + "resultType": "google.cloud.recommender_v1beta1.types.Recommendation", + "shortName": "mark_recommendation_claimed" }, + "description": "Sample for MarkRecommendationClaimed", "file": "recommender_v1beta1_generated_recommender_mark_recommendation_claimed_async.py", + "language": "PYTHON", + "origin": "API_DEFINITION", "regionTag": "recommender_v1beta1_generated_Recommender_MarkRecommendationClaimed_async", "segments": [ { @@ -666,18 +1247,62 @@ "start": 43, "type": "RESPONSE_HANDLING" } - ] + ], + "title": "recommender_v1beta1_generated_recommender_mark_recommendation_claimed_async.py" }, { + "canonical": true, "clientMethod": { + "client": { + "fullName": "google.cloud.recommender_v1beta1.RecommenderClient", + "shortName": "RecommenderClient" + }, + "fullName": "google.cloud.recommender_v1beta1.RecommenderClient.mark_recommendation_claimed", "method": { + "fullName": "google.cloud.recommender.v1beta1.Recommender.MarkRecommendationClaimed", "service": { + "fullName": "google.cloud.recommender.v1beta1.Recommender", "shortName": "Recommender" }, "shortName": "MarkRecommendationClaimed" - } + }, + "parameters": [ + { + "name": "request", + "type": "google.cloud.recommender_v1beta1.types.MarkRecommendationClaimedRequest" + }, + { + "name": "name", + "type": "str" + }, + { + "name": "state_metadata", + "type": "Mapping[str, str]" + }, + { + "name": "etag", + "type": "str" + }, + { + "name": "retry", + "type": "google.api_core.retry.Retry" + }, + { + "name": "timeout", + "type": "float" + }, + { + "name": "metadata", + "type": "Sequence[Tuple[str, str]" + } + ], + "resultType": "google.cloud.recommender_v1beta1.types.Recommendation", + "shortName": "mark_recommendation_claimed" }, + "description": "Sample for MarkRecommendationClaimed", "file": "recommender_v1beta1_generated_recommender_mark_recommendation_claimed_sync.py", + "language": "PYTHON", + "origin": "API_DEFINITION", "regionTag": "recommender_v1beta1_generated_Recommender_MarkRecommendationClaimed_sync", "segments": [ { @@ -710,19 +1335,63 @@ "start": 43, "type": "RESPONSE_HANDLING" } - ] + ], + "title": "recommender_v1beta1_generated_recommender_mark_recommendation_claimed_sync.py" }, { + "canonical": true, "clientMethod": { "async": true, + "client": { + "fullName": "google.cloud.recommender_v1beta1.RecommenderAsyncClient", + "shortName": "RecommenderAsyncClient" + }, + "fullName": "google.cloud.recommender_v1beta1.RecommenderAsyncClient.mark_recommendation_failed", "method": { + "fullName": "google.cloud.recommender.v1beta1.Recommender.MarkRecommendationFailed", "service": { + "fullName": "google.cloud.recommender.v1beta1.Recommender", "shortName": "Recommender" }, "shortName": "MarkRecommendationFailed" - } + }, + "parameters": [ + { + "name": "request", + "type": "google.cloud.recommender_v1beta1.types.MarkRecommendationFailedRequest" + }, + { + "name": "name", + "type": "str" + }, + { + "name": "state_metadata", + "type": "Mapping[str, str]" + }, + { + "name": "etag", + "type": "str" + }, + { + "name": "retry", + "type": "google.api_core.retry.Retry" + }, + { + "name": "timeout", + "type": "float" + }, + { + "name": "metadata", + "type": "Sequence[Tuple[str, str]" + } + ], + "resultType": "google.cloud.recommender_v1beta1.types.Recommendation", + "shortName": "mark_recommendation_failed" }, + "description": "Sample for MarkRecommendationFailed", "file": "recommender_v1beta1_generated_recommender_mark_recommendation_failed_async.py", + "language": "PYTHON", + "origin": "API_DEFINITION", "regionTag": "recommender_v1beta1_generated_Recommender_MarkRecommendationFailed_async", "segments": [ { @@ -755,18 +1424,62 @@ "start": 43, "type": "RESPONSE_HANDLING" } - ] + ], + "title": "recommender_v1beta1_generated_recommender_mark_recommendation_failed_async.py" }, { + "canonical": true, "clientMethod": { + "client": { + "fullName": "google.cloud.recommender_v1beta1.RecommenderClient", + "shortName": "RecommenderClient" + }, + "fullName": "google.cloud.recommender_v1beta1.RecommenderClient.mark_recommendation_failed", "method": { + "fullName": "google.cloud.recommender.v1beta1.Recommender.MarkRecommendationFailed", "service": { + "fullName": "google.cloud.recommender.v1beta1.Recommender", "shortName": "Recommender" }, "shortName": "MarkRecommendationFailed" - } + }, + "parameters": [ + { + "name": "request", + "type": "google.cloud.recommender_v1beta1.types.MarkRecommendationFailedRequest" + }, + { + "name": "name", + "type": "str" + }, + { + "name": "state_metadata", + "type": "Mapping[str, str]" + }, + { + "name": "etag", + "type": "str" + }, + { + "name": "retry", + "type": "google.api_core.retry.Retry" + }, + { + "name": "timeout", + "type": "float" + }, + { + "name": "metadata", + "type": "Sequence[Tuple[str, str]" + } + ], + "resultType": "google.cloud.recommender_v1beta1.types.Recommendation", + "shortName": "mark_recommendation_failed" }, + "description": "Sample for MarkRecommendationFailed", "file": "recommender_v1beta1_generated_recommender_mark_recommendation_failed_sync.py", + "language": "PYTHON", + "origin": "API_DEFINITION", "regionTag": "recommender_v1beta1_generated_Recommender_MarkRecommendationFailed_sync", "segments": [ { @@ -799,19 +1512,63 @@ "start": 43, "type": "RESPONSE_HANDLING" } - ] + ], + "title": "recommender_v1beta1_generated_recommender_mark_recommendation_failed_sync.py" }, { + "canonical": true, "clientMethod": { "async": true, + "client": { + "fullName": "google.cloud.recommender_v1beta1.RecommenderAsyncClient", + "shortName": "RecommenderAsyncClient" + }, + "fullName": "google.cloud.recommender_v1beta1.RecommenderAsyncClient.mark_recommendation_succeeded", "method": { + "fullName": "google.cloud.recommender.v1beta1.Recommender.MarkRecommendationSucceeded", "service": { + "fullName": "google.cloud.recommender.v1beta1.Recommender", "shortName": "Recommender" }, "shortName": "MarkRecommendationSucceeded" - } + }, + "parameters": [ + { + "name": "request", + "type": "google.cloud.recommender_v1beta1.types.MarkRecommendationSucceededRequest" + }, + { + "name": "name", + "type": "str" + }, + { + "name": "state_metadata", + "type": "Mapping[str, str]" + }, + { + "name": "etag", + "type": "str" + }, + { + "name": "retry", + "type": "google.api_core.retry.Retry" + }, + { + "name": "timeout", + "type": "float" + }, + { + "name": "metadata", + "type": "Sequence[Tuple[str, str]" + } + ], + "resultType": "google.cloud.recommender_v1beta1.types.Recommendation", + "shortName": "mark_recommendation_succeeded" }, + "description": "Sample for MarkRecommendationSucceeded", "file": "recommender_v1beta1_generated_recommender_mark_recommendation_succeeded_async.py", + "language": "PYTHON", + "origin": "API_DEFINITION", "regionTag": "recommender_v1beta1_generated_Recommender_MarkRecommendationSucceeded_async", "segments": [ { @@ -844,18 +1601,62 @@ "start": 43, "type": "RESPONSE_HANDLING" } - ] + ], + "title": "recommender_v1beta1_generated_recommender_mark_recommendation_succeeded_async.py" }, { + "canonical": true, "clientMethod": { + "client": { + "fullName": "google.cloud.recommender_v1beta1.RecommenderClient", + "shortName": "RecommenderClient" + }, + "fullName": "google.cloud.recommender_v1beta1.RecommenderClient.mark_recommendation_succeeded", "method": { + "fullName": "google.cloud.recommender.v1beta1.Recommender.MarkRecommendationSucceeded", "service": { + "fullName": "google.cloud.recommender.v1beta1.Recommender", "shortName": "Recommender" }, "shortName": "MarkRecommendationSucceeded" - } + }, + "parameters": [ + { + "name": "request", + "type": "google.cloud.recommender_v1beta1.types.MarkRecommendationSucceededRequest" + }, + { + "name": "name", + "type": "str" + }, + { + "name": "state_metadata", + "type": "Mapping[str, str]" + }, + { + "name": "etag", + "type": "str" + }, + { + "name": "retry", + "type": "google.api_core.retry.Retry" + }, + { + "name": "timeout", + "type": "float" + }, + { + "name": "metadata", + "type": "Sequence[Tuple[str, str]" + } + ], + "resultType": "google.cloud.recommender_v1beta1.types.Recommendation", + "shortName": "mark_recommendation_succeeded" }, + "description": "Sample for MarkRecommendationSucceeded", "file": "recommender_v1beta1_generated_recommender_mark_recommendation_succeeded_sync.py", + "language": "PYTHON", + "origin": "API_DEFINITION", "regionTag": "recommender_v1beta1_generated_Recommender_MarkRecommendationSucceeded_sync", "segments": [ { @@ -888,19 +1689,59 @@ "start": 43, "type": "RESPONSE_HANDLING" } - ] + ], + "title": "recommender_v1beta1_generated_recommender_mark_recommendation_succeeded_sync.py" }, { + "canonical": true, "clientMethod": { "async": true, + "client": { + "fullName": "google.cloud.recommender_v1beta1.RecommenderAsyncClient", + "shortName": "RecommenderAsyncClient" + }, + "fullName": "google.cloud.recommender_v1beta1.RecommenderAsyncClient.update_insight_type_config", "method": { + "fullName": "google.cloud.recommender.v1beta1.Recommender.UpdateInsightTypeConfig", "service": { + "fullName": "google.cloud.recommender.v1beta1.Recommender", "shortName": "Recommender" }, "shortName": "UpdateInsightTypeConfig" - } + }, + "parameters": [ + { + "name": "request", + "type": "google.cloud.recommender_v1beta1.types.UpdateInsightTypeConfigRequest" + }, + { + "name": "insight_type_config", + "type": "google.cloud.recommender_v1beta1.types.InsightTypeConfig" + }, + { + "name": "update_mask", + "type": "google.protobuf.field_mask_pb2.FieldMask" + }, + { + "name": "retry", + "type": "google.api_core.retry.Retry" + }, + { + "name": "timeout", + "type": "float" + }, + { + "name": "metadata", + "type": "Sequence[Tuple[str, str]" + } + ], + "resultType": "google.cloud.recommender_v1beta1.types.InsightTypeConfig", + "shortName": "update_insight_type_config" }, + "description": "Sample for UpdateInsightTypeConfig", "file": "recommender_v1beta1_generated_recommender_update_insight_type_config_async.py", + "language": "PYTHON", + "origin": "API_DEFINITION", "regionTag": "recommender_v1beta1_generated_Recommender_UpdateInsightTypeConfig_async", "segments": [ { @@ -933,18 +1774,58 @@ "start": 41, "type": "RESPONSE_HANDLING" } - ] + ], + "title": "recommender_v1beta1_generated_recommender_update_insight_type_config_async.py" }, { + "canonical": true, "clientMethod": { + "client": { + "fullName": "google.cloud.recommender_v1beta1.RecommenderClient", + "shortName": "RecommenderClient" + }, + "fullName": "google.cloud.recommender_v1beta1.RecommenderClient.update_insight_type_config", "method": { + "fullName": "google.cloud.recommender.v1beta1.Recommender.UpdateInsightTypeConfig", "service": { + "fullName": "google.cloud.recommender.v1beta1.Recommender", "shortName": "Recommender" }, "shortName": "UpdateInsightTypeConfig" - } + }, + "parameters": [ + { + "name": "request", + "type": "google.cloud.recommender_v1beta1.types.UpdateInsightTypeConfigRequest" + }, + { + "name": "insight_type_config", + "type": "google.cloud.recommender_v1beta1.types.InsightTypeConfig" + }, + { + "name": "update_mask", + "type": "google.protobuf.field_mask_pb2.FieldMask" + }, + { + "name": "retry", + "type": "google.api_core.retry.Retry" + }, + { + "name": "timeout", + "type": "float" + }, + { + "name": "metadata", + "type": "Sequence[Tuple[str, str]" + } + ], + "resultType": "google.cloud.recommender_v1beta1.types.InsightTypeConfig", + "shortName": "update_insight_type_config" }, + "description": "Sample for UpdateInsightTypeConfig", "file": "recommender_v1beta1_generated_recommender_update_insight_type_config_sync.py", + "language": "PYTHON", + "origin": "API_DEFINITION", "regionTag": "recommender_v1beta1_generated_Recommender_UpdateInsightTypeConfig_sync", "segments": [ { @@ -977,19 +1858,59 @@ "start": 41, "type": "RESPONSE_HANDLING" } - ] + ], + "title": "recommender_v1beta1_generated_recommender_update_insight_type_config_sync.py" }, { + "canonical": true, "clientMethod": { "async": true, + "client": { + "fullName": "google.cloud.recommender_v1beta1.RecommenderAsyncClient", + "shortName": "RecommenderAsyncClient" + }, + "fullName": "google.cloud.recommender_v1beta1.RecommenderAsyncClient.update_recommender_config", "method": { + "fullName": "google.cloud.recommender.v1beta1.Recommender.UpdateRecommenderConfig", "service": { + "fullName": "google.cloud.recommender.v1beta1.Recommender", "shortName": "Recommender" }, "shortName": "UpdateRecommenderConfig" - } + }, + "parameters": [ + { + "name": "request", + "type": "google.cloud.recommender_v1beta1.types.UpdateRecommenderConfigRequest" + }, + { + "name": "recommender_config", + "type": "google.cloud.recommender_v1beta1.types.RecommenderConfig" + }, + { + "name": "update_mask", + "type": "google.protobuf.field_mask_pb2.FieldMask" + }, + { + "name": "retry", + "type": "google.api_core.retry.Retry" + }, + { + "name": "timeout", + "type": "float" + }, + { + "name": "metadata", + "type": "Sequence[Tuple[str, str]" + } + ], + "resultType": "google.cloud.recommender_v1beta1.types.RecommenderConfig", + "shortName": "update_recommender_config" }, + "description": "Sample for UpdateRecommenderConfig", "file": "recommender_v1beta1_generated_recommender_update_recommender_config_async.py", + "language": "PYTHON", + "origin": "API_DEFINITION", "regionTag": "recommender_v1beta1_generated_Recommender_UpdateRecommenderConfig_async", "segments": [ { @@ -1022,18 +1943,58 @@ "start": 41, "type": "RESPONSE_HANDLING" } - ] + ], + "title": "recommender_v1beta1_generated_recommender_update_recommender_config_async.py" }, { + "canonical": true, "clientMethod": { + "client": { + "fullName": "google.cloud.recommender_v1beta1.RecommenderClient", + "shortName": "RecommenderClient" + }, + "fullName": "google.cloud.recommender_v1beta1.RecommenderClient.update_recommender_config", "method": { + "fullName": "google.cloud.recommender.v1beta1.Recommender.UpdateRecommenderConfig", "service": { + "fullName": "google.cloud.recommender.v1beta1.Recommender", "shortName": "Recommender" }, "shortName": "UpdateRecommenderConfig" - } + }, + "parameters": [ + { + "name": "request", + "type": "google.cloud.recommender_v1beta1.types.UpdateRecommenderConfigRequest" + }, + { + "name": "recommender_config", + "type": "google.cloud.recommender_v1beta1.types.RecommenderConfig" + }, + { + "name": "update_mask", + "type": "google.protobuf.field_mask_pb2.FieldMask" + }, + { + "name": "retry", + "type": "google.api_core.retry.Retry" + }, + { + "name": "timeout", + "type": "float" + }, + { + "name": "metadata", + "type": "Sequence[Tuple[str, str]" + } + ], + "resultType": "google.cloud.recommender_v1beta1.types.RecommenderConfig", + "shortName": "update_recommender_config" }, + "description": "Sample for UpdateRecommenderConfig", "file": "recommender_v1beta1_generated_recommender_update_recommender_config_sync.py", + "language": "PYTHON", + "origin": "API_DEFINITION", "regionTag": "recommender_v1beta1_generated_Recommender_UpdateRecommenderConfig_sync", "segments": [ { @@ -1066,7 +2027,8 @@ "start": 41, "type": "RESPONSE_HANDLING" } - ] + ], + "title": "recommender_v1beta1_generated_recommender_update_recommender_config_sync.py" } ] }