1"""Generated client library for recommender version v1beta1.""" 2# NOTE: This file is autogenerated and should not be edited by hand. 3 4from __future__ import absolute_import 5 6from apitools.base.py import base_api 7from googlecloudsdk.third_party.apis.recommender.v1beta1 import recommender_v1beta1_messages as messages 8 9 10class RecommenderV1beta1(base_api.BaseApiClient): 11 """Generated client library for service recommender version v1beta1.""" 12 13 MESSAGES_MODULE = messages 14 BASE_URL = 'https://recommender.googleapis.com/' 15 MTLS_BASE_URL = 'https://recommender.mtls.googleapis.com/' 16 17 _PACKAGE = 'recommender' 18 _SCOPES = ['https://www.googleapis.com/auth/cloud-platform'] 19 _VERSION = 'v1beta1' 20 _CLIENT_ID = '1042881264118.apps.googleusercontent.com' 21 _CLIENT_SECRET = 'x_Tw5K8nnjoRAqULM9PFAC2b' 22 _USER_AGENT = 'google-cloud-sdk' 23 _CLIENT_CLASS_NAME = 'RecommenderV1beta1' 24 _URL_VERSION = 'v1beta1' 25 _API_KEY = None 26 27 def __init__(self, url='', credentials=None, 28 get_credentials=True, http=None, model=None, 29 log_request=False, log_response=False, 30 credentials_args=None, default_global_params=None, 31 additional_http_headers=None, response_encoding=None): 32 """Create a new recommender handle.""" 33 url = url or self.BASE_URL 34 super(RecommenderV1beta1, self).__init__( 35 url, credentials=credentials, 36 get_credentials=get_credentials, http=http, model=model, 37 log_request=log_request, log_response=log_response, 38 credentials_args=credentials_args, 39 default_global_params=default_global_params, 40 additional_http_headers=additional_http_headers, 41 response_encoding=response_encoding) 42 self.billingAccounts_locations_insightTypes_insights = self.BillingAccountsLocationsInsightTypesInsightsService(self) 43 self.billingAccounts_locations_insightTypes = self.BillingAccountsLocationsInsightTypesService(self) 44 self.billingAccounts_locations_recommenders_recommendations = self.BillingAccountsLocationsRecommendersRecommendationsService(self) 45 self.billingAccounts_locations_recommenders = self.BillingAccountsLocationsRecommendersService(self) 46 self.billingAccounts_locations = self.BillingAccountsLocationsService(self) 47 self.billingAccounts = self.BillingAccountsService(self) 48 self.folders_locations_insightTypes_insights = self.FoldersLocationsInsightTypesInsightsService(self) 49 self.folders_locations_insightTypes = self.FoldersLocationsInsightTypesService(self) 50 self.folders_locations_recommenders_recommendations = self.FoldersLocationsRecommendersRecommendationsService(self) 51 self.folders_locations_recommenders = self.FoldersLocationsRecommendersService(self) 52 self.folders_locations = self.FoldersLocationsService(self) 53 self.folders = self.FoldersService(self) 54 self.organizations_locations_insightTypes_insights = self.OrganizationsLocationsInsightTypesInsightsService(self) 55 self.organizations_locations_insightTypes = self.OrganizationsLocationsInsightTypesService(self) 56 self.organizations_locations_recommenders_recommendations = self.OrganizationsLocationsRecommendersRecommendationsService(self) 57 self.organizations_locations_recommenders = self.OrganizationsLocationsRecommendersService(self) 58 self.organizations_locations = self.OrganizationsLocationsService(self) 59 self.organizations = self.OrganizationsService(self) 60 self.projects_locations_insightTypes_insights = self.ProjectsLocationsInsightTypesInsightsService(self) 61 self.projects_locations_insightTypes = self.ProjectsLocationsInsightTypesService(self) 62 self.projects_locations_recommenders_recommendations = self.ProjectsLocationsRecommendersRecommendationsService(self) 63 self.projects_locations_recommenders = self.ProjectsLocationsRecommendersService(self) 64 self.projects_locations = self.ProjectsLocationsService(self) 65 self.projects = self.ProjectsService(self) 66 67 class BillingAccountsLocationsInsightTypesInsightsService(base_api.BaseApiService): 68 """Service class for the billingAccounts_locations_insightTypes_insights resource.""" 69 70 _NAME = 'billingAccounts_locations_insightTypes_insights' 71 72 def __init__(self, client): 73 super(RecommenderV1beta1.BillingAccountsLocationsInsightTypesInsightsService, self).__init__(client) 74 self._upload_configs = { 75 } 76 77 def Get(self, request, global_params=None): 78 r"""Gets the requested insight. Requires the recommender.*.get IAM permission for the specified insight type. 79 80 Args: 81 request: (RecommenderBillingAccountsLocationsInsightTypesInsightsGetRequest) input message 82 global_params: (StandardQueryParameters, default: None) global arguments 83 Returns: 84 (GoogleCloudRecommenderV1beta1Insight) The response message. 85 """ 86 config = self.GetMethodConfig('Get') 87 return self._RunMethod( 88 config, request, global_params=global_params) 89 90 Get.method_config = lambda: base_api.ApiMethodInfo( 91 flat_path='v1beta1/billingAccounts/{billingAccountsId}/locations/{locationsId}/insightTypes/{insightTypesId}/insights/{insightsId}', 92 http_method='GET', 93 method_id='recommender.billingAccounts.locations.insightTypes.insights.get', 94 ordered_params=['name'], 95 path_params=['name'], 96 query_params=[], 97 relative_path='v1beta1/{+name}', 98 request_field='', 99 request_type_name='RecommenderBillingAccountsLocationsInsightTypesInsightsGetRequest', 100 response_type_name='GoogleCloudRecommenderV1beta1Insight', 101 supports_download=False, 102 ) 103 104 def List(self, request, global_params=None): 105 r"""Lists insights for a Cloud project. Requires the recommender.*.list IAM permission for the specified insight type. 106 107 Args: 108 request: (RecommenderBillingAccountsLocationsInsightTypesInsightsListRequest) input message 109 global_params: (StandardQueryParameters, default: None) global arguments 110 Returns: 111 (GoogleCloudRecommenderV1beta1ListInsightsResponse) The response message. 112 """ 113 config = self.GetMethodConfig('List') 114 return self._RunMethod( 115 config, request, global_params=global_params) 116 117 List.method_config = lambda: base_api.ApiMethodInfo( 118 flat_path='v1beta1/billingAccounts/{billingAccountsId}/locations/{locationsId}/insightTypes/{insightTypesId}/insights', 119 http_method='GET', 120 method_id='recommender.billingAccounts.locations.insightTypes.insights.list', 121 ordered_params=['parent'], 122 path_params=['parent'], 123 query_params=['filter', 'pageSize', 'pageToken'], 124 relative_path='v1beta1/{+parent}/insights', 125 request_field='', 126 request_type_name='RecommenderBillingAccountsLocationsInsightTypesInsightsListRequest', 127 response_type_name='GoogleCloudRecommenderV1beta1ListInsightsResponse', 128 supports_download=False, 129 ) 130 131 def MarkAccepted(self, request, global_params=None): 132 r"""Marks the Insight State as Accepted. Users can use this method to indicate to the Recommender API that they have applied some action based on the insight. This stops the insight content from being updated. MarkInsightAccepted can be applied to insights in ACTIVE state. Requires the recommender.*.update IAM permission for the specified insight. 133 134 Args: 135 request: (RecommenderBillingAccountsLocationsInsightTypesInsightsMarkAcceptedRequest) input message 136 global_params: (StandardQueryParameters, default: None) global arguments 137 Returns: 138 (GoogleCloudRecommenderV1beta1Insight) The response message. 139 """ 140 config = self.GetMethodConfig('MarkAccepted') 141 return self._RunMethod( 142 config, request, global_params=global_params) 143 144 MarkAccepted.method_config = lambda: base_api.ApiMethodInfo( 145 flat_path='v1beta1/billingAccounts/{billingAccountsId}/locations/{locationsId}/insightTypes/{insightTypesId}/insights/{insightsId}:markAccepted', 146 http_method='POST', 147 method_id='recommender.billingAccounts.locations.insightTypes.insights.markAccepted', 148 ordered_params=['name'], 149 path_params=['name'], 150 query_params=[], 151 relative_path='v1beta1/{+name}:markAccepted', 152 request_field='googleCloudRecommenderV1beta1MarkInsightAcceptedRequest', 153 request_type_name='RecommenderBillingAccountsLocationsInsightTypesInsightsMarkAcceptedRequest', 154 response_type_name='GoogleCloudRecommenderV1beta1Insight', 155 supports_download=False, 156 ) 157 158 class BillingAccountsLocationsInsightTypesService(base_api.BaseApiService): 159 """Service class for the billingAccounts_locations_insightTypes resource.""" 160 161 _NAME = 'billingAccounts_locations_insightTypes' 162 163 def __init__(self, client): 164 super(RecommenderV1beta1.BillingAccountsLocationsInsightTypesService, self).__init__(client) 165 self._upload_configs = { 166 } 167 168 class BillingAccountsLocationsRecommendersRecommendationsService(base_api.BaseApiService): 169 """Service class for the billingAccounts_locations_recommenders_recommendations resource.""" 170 171 _NAME = 'billingAccounts_locations_recommenders_recommendations' 172 173 def __init__(self, client): 174 super(RecommenderV1beta1.BillingAccountsLocationsRecommendersRecommendationsService, self).__init__(client) 175 self._upload_configs = { 176 } 177 178 def Get(self, request, global_params=None): 179 r"""Gets the requested recommendation. Requires the recommender.*.get IAM permission for the specified recommender. 180 181 Args: 182 request: (RecommenderBillingAccountsLocationsRecommendersRecommendationsGetRequest) input message 183 global_params: (StandardQueryParameters, default: None) global arguments 184 Returns: 185 (GoogleCloudRecommenderV1beta1Recommendation) The response message. 186 """ 187 config = self.GetMethodConfig('Get') 188 return self._RunMethod( 189 config, request, global_params=global_params) 190 191 Get.method_config = lambda: base_api.ApiMethodInfo( 192 flat_path='v1beta1/billingAccounts/{billingAccountsId}/locations/{locationsId}/recommenders/{recommendersId}/recommendations/{recommendationsId}', 193 http_method='GET', 194 method_id='recommender.billingAccounts.locations.recommenders.recommendations.get', 195 ordered_params=['name'], 196 path_params=['name'], 197 query_params=[], 198 relative_path='v1beta1/{+name}', 199 request_field='', 200 request_type_name='RecommenderBillingAccountsLocationsRecommendersRecommendationsGetRequest', 201 response_type_name='GoogleCloudRecommenderV1beta1Recommendation', 202 supports_download=False, 203 ) 204 205 def List(self, request, global_params=None): 206 r"""Lists recommendations for a Cloud project. Requires the recommender.*.list IAM permission for the specified recommender. 207 208 Args: 209 request: (RecommenderBillingAccountsLocationsRecommendersRecommendationsListRequest) input message 210 global_params: (StandardQueryParameters, default: None) global arguments 211 Returns: 212 (GoogleCloudRecommenderV1beta1ListRecommendationsResponse) The response message. 213 """ 214 config = self.GetMethodConfig('List') 215 return self._RunMethod( 216 config, request, global_params=global_params) 217 218 List.method_config = lambda: base_api.ApiMethodInfo( 219 flat_path='v1beta1/billingAccounts/{billingAccountsId}/locations/{locationsId}/recommenders/{recommendersId}/recommendations', 220 http_method='GET', 221 method_id='recommender.billingAccounts.locations.recommenders.recommendations.list', 222 ordered_params=['parent'], 223 path_params=['parent'], 224 query_params=['filter', 'pageSize', 'pageToken'], 225 relative_path='v1beta1/{+parent}/recommendations', 226 request_field='', 227 request_type_name='RecommenderBillingAccountsLocationsRecommendersRecommendationsListRequest', 228 response_type_name='GoogleCloudRecommenderV1beta1ListRecommendationsResponse', 229 supports_download=False, 230 ) 231 232 def MarkClaimed(self, request, global_params=None): 233 r"""Marks the Recommendation State as Claimed. Users can use this method to indicate to the Recommender API that they are starting to apply the recommendation themselves. This stops the recommendation content from being updated. Associated insights are frozen and placed in the ACCEPTED state. MarkRecommendationClaimed can be applied to recommendations in CLAIMED or ACTIVE state. Requires the recommender.*.update IAM permission for the specified recommender. 234 235 Args: 236 request: (RecommenderBillingAccountsLocationsRecommendersRecommendationsMarkClaimedRequest) input message 237 global_params: (StandardQueryParameters, default: None) global arguments 238 Returns: 239 (GoogleCloudRecommenderV1beta1Recommendation) The response message. 240 """ 241 config = self.GetMethodConfig('MarkClaimed') 242 return self._RunMethod( 243 config, request, global_params=global_params) 244 245 MarkClaimed.method_config = lambda: base_api.ApiMethodInfo( 246 flat_path='v1beta1/billingAccounts/{billingAccountsId}/locations/{locationsId}/recommenders/{recommendersId}/recommendations/{recommendationsId}:markClaimed', 247 http_method='POST', 248 method_id='recommender.billingAccounts.locations.recommenders.recommendations.markClaimed', 249 ordered_params=['name'], 250 path_params=['name'], 251 query_params=[], 252 relative_path='v1beta1/{+name}:markClaimed', 253 request_field='googleCloudRecommenderV1beta1MarkRecommendationClaimedRequest', 254 request_type_name='RecommenderBillingAccountsLocationsRecommendersRecommendationsMarkClaimedRequest', 255 response_type_name='GoogleCloudRecommenderV1beta1Recommendation', 256 supports_download=False, 257 ) 258 259 def MarkFailed(self, request, global_params=None): 260 r"""Marks the Recommendation State as Failed. Users can use this method to indicate to the Recommender API that they have applied the recommendation themselves, and the operation failed. This stops the recommendation content from being updated. Associated insights are frozen and placed in the ACCEPTED state. MarkRecommendationFailed can be applied to recommendations in ACTIVE, CLAIMED, SUCCEEDED, or FAILED state. Requires the recommender.*.update IAM permission for the specified recommender. 261 262 Args: 263 request: (RecommenderBillingAccountsLocationsRecommendersRecommendationsMarkFailedRequest) input message 264 global_params: (StandardQueryParameters, default: None) global arguments 265 Returns: 266 (GoogleCloudRecommenderV1beta1Recommendation) The response message. 267 """ 268 config = self.GetMethodConfig('MarkFailed') 269 return self._RunMethod( 270 config, request, global_params=global_params) 271 272 MarkFailed.method_config = lambda: base_api.ApiMethodInfo( 273 flat_path='v1beta1/billingAccounts/{billingAccountsId}/locations/{locationsId}/recommenders/{recommendersId}/recommendations/{recommendationsId}:markFailed', 274 http_method='POST', 275 method_id='recommender.billingAccounts.locations.recommenders.recommendations.markFailed', 276 ordered_params=['name'], 277 path_params=['name'], 278 query_params=[], 279 relative_path='v1beta1/{+name}:markFailed', 280 request_field='googleCloudRecommenderV1beta1MarkRecommendationFailedRequest', 281 request_type_name='RecommenderBillingAccountsLocationsRecommendersRecommendationsMarkFailedRequest', 282 response_type_name='GoogleCloudRecommenderV1beta1Recommendation', 283 supports_download=False, 284 ) 285 286 def MarkSucceeded(self, request, global_params=None): 287 r"""Marks the Recommendation State as Succeeded. Users can use this method to indicate to the Recommender API that they have applied the recommendation themselves, and the operation was successful. This stops the recommendation content from being updated. Associated insights are frozen and placed in the ACCEPTED state. MarkRecommendationSucceeded can be applied to recommendations in ACTIVE, CLAIMED, SUCCEEDED, or FAILED state. Requires the recommender.*.update IAM permission for the specified recommender. 288 289 Args: 290 request: (RecommenderBillingAccountsLocationsRecommendersRecommendationsMarkSucceededRequest) input message 291 global_params: (StandardQueryParameters, default: None) global arguments 292 Returns: 293 (GoogleCloudRecommenderV1beta1Recommendation) The response message. 294 """ 295 config = self.GetMethodConfig('MarkSucceeded') 296 return self._RunMethod( 297 config, request, global_params=global_params) 298 299 MarkSucceeded.method_config = lambda: base_api.ApiMethodInfo( 300 flat_path='v1beta1/billingAccounts/{billingAccountsId}/locations/{locationsId}/recommenders/{recommendersId}/recommendations/{recommendationsId}:markSucceeded', 301 http_method='POST', 302 method_id='recommender.billingAccounts.locations.recommenders.recommendations.markSucceeded', 303 ordered_params=['name'], 304 path_params=['name'], 305 query_params=[], 306 relative_path='v1beta1/{+name}:markSucceeded', 307 request_field='googleCloudRecommenderV1beta1MarkRecommendationSucceededRequest', 308 request_type_name='RecommenderBillingAccountsLocationsRecommendersRecommendationsMarkSucceededRequest', 309 response_type_name='GoogleCloudRecommenderV1beta1Recommendation', 310 supports_download=False, 311 ) 312 313 class BillingAccountsLocationsRecommendersService(base_api.BaseApiService): 314 """Service class for the billingAccounts_locations_recommenders resource.""" 315 316 _NAME = 'billingAccounts_locations_recommenders' 317 318 def __init__(self, client): 319 super(RecommenderV1beta1.BillingAccountsLocationsRecommendersService, self).__init__(client) 320 self._upload_configs = { 321 } 322 323 class BillingAccountsLocationsService(base_api.BaseApiService): 324 """Service class for the billingAccounts_locations resource.""" 325 326 _NAME = 'billingAccounts_locations' 327 328 def __init__(self, client): 329 super(RecommenderV1beta1.BillingAccountsLocationsService, self).__init__(client) 330 self._upload_configs = { 331 } 332 333 class BillingAccountsService(base_api.BaseApiService): 334 """Service class for the billingAccounts resource.""" 335 336 _NAME = 'billingAccounts' 337 338 def __init__(self, client): 339 super(RecommenderV1beta1.BillingAccountsService, self).__init__(client) 340 self._upload_configs = { 341 } 342 343 class FoldersLocationsInsightTypesInsightsService(base_api.BaseApiService): 344 """Service class for the folders_locations_insightTypes_insights resource.""" 345 346 _NAME = 'folders_locations_insightTypes_insights' 347 348 def __init__(self, client): 349 super(RecommenderV1beta1.FoldersLocationsInsightTypesInsightsService, self).__init__(client) 350 self._upload_configs = { 351 } 352 353 def Get(self, request, global_params=None): 354 r"""Gets the requested insight. Requires the recommender.*.get IAM permission for the specified insight type. 355 356 Args: 357 request: (RecommenderFoldersLocationsInsightTypesInsightsGetRequest) input message 358 global_params: (StandardQueryParameters, default: None) global arguments 359 Returns: 360 (GoogleCloudRecommenderV1beta1Insight) The response message. 361 """ 362 config = self.GetMethodConfig('Get') 363 return self._RunMethod( 364 config, request, global_params=global_params) 365 366 Get.method_config = lambda: base_api.ApiMethodInfo( 367 flat_path='v1beta1/folders/{foldersId}/locations/{locationsId}/insightTypes/{insightTypesId}/insights/{insightsId}', 368 http_method='GET', 369 method_id='recommender.folders.locations.insightTypes.insights.get', 370 ordered_params=['name'], 371 path_params=['name'], 372 query_params=[], 373 relative_path='v1beta1/{+name}', 374 request_field='', 375 request_type_name='RecommenderFoldersLocationsInsightTypesInsightsGetRequest', 376 response_type_name='GoogleCloudRecommenderV1beta1Insight', 377 supports_download=False, 378 ) 379 380 def List(self, request, global_params=None): 381 r"""Lists insights for a Cloud project. Requires the recommender.*.list IAM permission for the specified insight type. 382 383 Args: 384 request: (RecommenderFoldersLocationsInsightTypesInsightsListRequest) input message 385 global_params: (StandardQueryParameters, default: None) global arguments 386 Returns: 387 (GoogleCloudRecommenderV1beta1ListInsightsResponse) The response message. 388 """ 389 config = self.GetMethodConfig('List') 390 return self._RunMethod( 391 config, request, global_params=global_params) 392 393 List.method_config = lambda: base_api.ApiMethodInfo( 394 flat_path='v1beta1/folders/{foldersId}/locations/{locationsId}/insightTypes/{insightTypesId}/insights', 395 http_method='GET', 396 method_id='recommender.folders.locations.insightTypes.insights.list', 397 ordered_params=['parent'], 398 path_params=['parent'], 399 query_params=['filter', 'pageSize', 'pageToken'], 400 relative_path='v1beta1/{+parent}/insights', 401 request_field='', 402 request_type_name='RecommenderFoldersLocationsInsightTypesInsightsListRequest', 403 response_type_name='GoogleCloudRecommenderV1beta1ListInsightsResponse', 404 supports_download=False, 405 ) 406 407 def MarkAccepted(self, request, global_params=None): 408 r"""Marks the Insight State as Accepted. Users can use this method to indicate to the Recommender API that they have applied some action based on the insight. This stops the insight content from being updated. MarkInsightAccepted can be applied to insights in ACTIVE state. Requires the recommender.*.update IAM permission for the specified insight. 409 410 Args: 411 request: (RecommenderFoldersLocationsInsightTypesInsightsMarkAcceptedRequest) input message 412 global_params: (StandardQueryParameters, default: None) global arguments 413 Returns: 414 (GoogleCloudRecommenderV1beta1Insight) The response message. 415 """ 416 config = self.GetMethodConfig('MarkAccepted') 417 return self._RunMethod( 418 config, request, global_params=global_params) 419 420 MarkAccepted.method_config = lambda: base_api.ApiMethodInfo( 421 flat_path='v1beta1/folders/{foldersId}/locations/{locationsId}/insightTypes/{insightTypesId}/insights/{insightsId}:markAccepted', 422 http_method='POST', 423 method_id='recommender.folders.locations.insightTypes.insights.markAccepted', 424 ordered_params=['name'], 425 path_params=['name'], 426 query_params=[], 427 relative_path='v1beta1/{+name}:markAccepted', 428 request_field='googleCloudRecommenderV1beta1MarkInsightAcceptedRequest', 429 request_type_name='RecommenderFoldersLocationsInsightTypesInsightsMarkAcceptedRequest', 430 response_type_name='GoogleCloudRecommenderV1beta1Insight', 431 supports_download=False, 432 ) 433 434 class FoldersLocationsInsightTypesService(base_api.BaseApiService): 435 """Service class for the folders_locations_insightTypes resource.""" 436 437 _NAME = 'folders_locations_insightTypes' 438 439 def __init__(self, client): 440 super(RecommenderV1beta1.FoldersLocationsInsightTypesService, self).__init__(client) 441 self._upload_configs = { 442 } 443 444 class FoldersLocationsRecommendersRecommendationsService(base_api.BaseApiService): 445 """Service class for the folders_locations_recommenders_recommendations resource.""" 446 447 _NAME = 'folders_locations_recommenders_recommendations' 448 449 def __init__(self, client): 450 super(RecommenderV1beta1.FoldersLocationsRecommendersRecommendationsService, self).__init__(client) 451 self._upload_configs = { 452 } 453 454 def Get(self, request, global_params=None): 455 r"""Gets the requested recommendation. Requires the recommender.*.get IAM permission for the specified recommender. 456 457 Args: 458 request: (RecommenderFoldersLocationsRecommendersRecommendationsGetRequest) input message 459 global_params: (StandardQueryParameters, default: None) global arguments 460 Returns: 461 (GoogleCloudRecommenderV1beta1Recommendation) The response message. 462 """ 463 config = self.GetMethodConfig('Get') 464 return self._RunMethod( 465 config, request, global_params=global_params) 466 467 Get.method_config = lambda: base_api.ApiMethodInfo( 468 flat_path='v1beta1/folders/{foldersId}/locations/{locationsId}/recommenders/{recommendersId}/recommendations/{recommendationsId}', 469 http_method='GET', 470 method_id='recommender.folders.locations.recommenders.recommendations.get', 471 ordered_params=['name'], 472 path_params=['name'], 473 query_params=[], 474 relative_path='v1beta1/{+name}', 475 request_field='', 476 request_type_name='RecommenderFoldersLocationsRecommendersRecommendationsGetRequest', 477 response_type_name='GoogleCloudRecommenderV1beta1Recommendation', 478 supports_download=False, 479 ) 480 481 def List(self, request, global_params=None): 482 r"""Lists recommendations for a Cloud project. Requires the recommender.*.list IAM permission for the specified recommender. 483 484 Args: 485 request: (RecommenderFoldersLocationsRecommendersRecommendationsListRequest) input message 486 global_params: (StandardQueryParameters, default: None) global arguments 487 Returns: 488 (GoogleCloudRecommenderV1beta1ListRecommendationsResponse) The response message. 489 """ 490 config = self.GetMethodConfig('List') 491 return self._RunMethod( 492 config, request, global_params=global_params) 493 494 List.method_config = lambda: base_api.ApiMethodInfo( 495 flat_path='v1beta1/folders/{foldersId}/locations/{locationsId}/recommenders/{recommendersId}/recommendations', 496 http_method='GET', 497 method_id='recommender.folders.locations.recommenders.recommendations.list', 498 ordered_params=['parent'], 499 path_params=['parent'], 500 query_params=['filter', 'pageSize', 'pageToken'], 501 relative_path='v1beta1/{+parent}/recommendations', 502 request_field='', 503 request_type_name='RecommenderFoldersLocationsRecommendersRecommendationsListRequest', 504 response_type_name='GoogleCloudRecommenderV1beta1ListRecommendationsResponse', 505 supports_download=False, 506 ) 507 508 def MarkClaimed(self, request, global_params=None): 509 r"""Marks the Recommendation State as Claimed. Users can use this method to indicate to the Recommender API that they are starting to apply the recommendation themselves. This stops the recommendation content from being updated. Associated insights are frozen and placed in the ACCEPTED state. MarkRecommendationClaimed can be applied to recommendations in CLAIMED or ACTIVE state. Requires the recommender.*.update IAM permission for the specified recommender. 510 511 Args: 512 request: (RecommenderFoldersLocationsRecommendersRecommendationsMarkClaimedRequest) input message 513 global_params: (StandardQueryParameters, default: None) global arguments 514 Returns: 515 (GoogleCloudRecommenderV1beta1Recommendation) The response message. 516 """ 517 config = self.GetMethodConfig('MarkClaimed') 518 return self._RunMethod( 519 config, request, global_params=global_params) 520 521 MarkClaimed.method_config = lambda: base_api.ApiMethodInfo( 522 flat_path='v1beta1/folders/{foldersId}/locations/{locationsId}/recommenders/{recommendersId}/recommendations/{recommendationsId}:markClaimed', 523 http_method='POST', 524 method_id='recommender.folders.locations.recommenders.recommendations.markClaimed', 525 ordered_params=['name'], 526 path_params=['name'], 527 query_params=[], 528 relative_path='v1beta1/{+name}:markClaimed', 529 request_field='googleCloudRecommenderV1beta1MarkRecommendationClaimedRequest', 530 request_type_name='RecommenderFoldersLocationsRecommendersRecommendationsMarkClaimedRequest', 531 response_type_name='GoogleCloudRecommenderV1beta1Recommendation', 532 supports_download=False, 533 ) 534 535 def MarkFailed(self, request, global_params=None): 536 r"""Marks the Recommendation State as Failed. Users can use this method to indicate to the Recommender API that they have applied the recommendation themselves, and the operation failed. This stops the recommendation content from being updated. Associated insights are frozen and placed in the ACCEPTED state. MarkRecommendationFailed can be applied to recommendations in ACTIVE, CLAIMED, SUCCEEDED, or FAILED state. Requires the recommender.*.update IAM permission for the specified recommender. 537 538 Args: 539 request: (RecommenderFoldersLocationsRecommendersRecommendationsMarkFailedRequest) input message 540 global_params: (StandardQueryParameters, default: None) global arguments 541 Returns: 542 (GoogleCloudRecommenderV1beta1Recommendation) The response message. 543 """ 544 config = self.GetMethodConfig('MarkFailed') 545 return self._RunMethod( 546 config, request, global_params=global_params) 547 548 MarkFailed.method_config = lambda: base_api.ApiMethodInfo( 549 flat_path='v1beta1/folders/{foldersId}/locations/{locationsId}/recommenders/{recommendersId}/recommendations/{recommendationsId}:markFailed', 550 http_method='POST', 551 method_id='recommender.folders.locations.recommenders.recommendations.markFailed', 552 ordered_params=['name'], 553 path_params=['name'], 554 query_params=[], 555 relative_path='v1beta1/{+name}:markFailed', 556 request_field='googleCloudRecommenderV1beta1MarkRecommendationFailedRequest', 557 request_type_name='RecommenderFoldersLocationsRecommendersRecommendationsMarkFailedRequest', 558 response_type_name='GoogleCloudRecommenderV1beta1Recommendation', 559 supports_download=False, 560 ) 561 562 def MarkSucceeded(self, request, global_params=None): 563 r"""Marks the Recommendation State as Succeeded. Users can use this method to indicate to the Recommender API that they have applied the recommendation themselves, and the operation was successful. This stops the recommendation content from being updated. Associated insights are frozen and placed in the ACCEPTED state. MarkRecommendationSucceeded can be applied to recommendations in ACTIVE, CLAIMED, SUCCEEDED, or FAILED state. Requires the recommender.*.update IAM permission for the specified recommender. 564 565 Args: 566 request: (RecommenderFoldersLocationsRecommendersRecommendationsMarkSucceededRequest) input message 567 global_params: (StandardQueryParameters, default: None) global arguments 568 Returns: 569 (GoogleCloudRecommenderV1beta1Recommendation) The response message. 570 """ 571 config = self.GetMethodConfig('MarkSucceeded') 572 return self._RunMethod( 573 config, request, global_params=global_params) 574 575 MarkSucceeded.method_config = lambda: base_api.ApiMethodInfo( 576 flat_path='v1beta1/folders/{foldersId}/locations/{locationsId}/recommenders/{recommendersId}/recommendations/{recommendationsId}:markSucceeded', 577 http_method='POST', 578 method_id='recommender.folders.locations.recommenders.recommendations.markSucceeded', 579 ordered_params=['name'], 580 path_params=['name'], 581 query_params=[], 582 relative_path='v1beta1/{+name}:markSucceeded', 583 request_field='googleCloudRecommenderV1beta1MarkRecommendationSucceededRequest', 584 request_type_name='RecommenderFoldersLocationsRecommendersRecommendationsMarkSucceededRequest', 585 response_type_name='GoogleCloudRecommenderV1beta1Recommendation', 586 supports_download=False, 587 ) 588 589 class FoldersLocationsRecommendersService(base_api.BaseApiService): 590 """Service class for the folders_locations_recommenders resource.""" 591 592 _NAME = 'folders_locations_recommenders' 593 594 def __init__(self, client): 595 super(RecommenderV1beta1.FoldersLocationsRecommendersService, self).__init__(client) 596 self._upload_configs = { 597 } 598 599 class FoldersLocationsService(base_api.BaseApiService): 600 """Service class for the folders_locations resource.""" 601 602 _NAME = 'folders_locations' 603 604 def __init__(self, client): 605 super(RecommenderV1beta1.FoldersLocationsService, self).__init__(client) 606 self._upload_configs = { 607 } 608 609 class FoldersService(base_api.BaseApiService): 610 """Service class for the folders resource.""" 611 612 _NAME = 'folders' 613 614 def __init__(self, client): 615 super(RecommenderV1beta1.FoldersService, self).__init__(client) 616 self._upload_configs = { 617 } 618 619 class OrganizationsLocationsInsightTypesInsightsService(base_api.BaseApiService): 620 """Service class for the organizations_locations_insightTypes_insights resource.""" 621 622 _NAME = 'organizations_locations_insightTypes_insights' 623 624 def __init__(self, client): 625 super(RecommenderV1beta1.OrganizationsLocationsInsightTypesInsightsService, self).__init__(client) 626 self._upload_configs = { 627 } 628 629 def Get(self, request, global_params=None): 630 r"""Gets the requested insight. Requires the recommender.*.get IAM permission for the specified insight type. 631 632 Args: 633 request: (RecommenderOrganizationsLocationsInsightTypesInsightsGetRequest) input message 634 global_params: (StandardQueryParameters, default: None) global arguments 635 Returns: 636 (GoogleCloudRecommenderV1beta1Insight) The response message. 637 """ 638 config = self.GetMethodConfig('Get') 639 return self._RunMethod( 640 config, request, global_params=global_params) 641 642 Get.method_config = lambda: base_api.ApiMethodInfo( 643 flat_path='v1beta1/organizations/{organizationsId}/locations/{locationsId}/insightTypes/{insightTypesId}/insights/{insightsId}', 644 http_method='GET', 645 method_id='recommender.organizations.locations.insightTypes.insights.get', 646 ordered_params=['name'], 647 path_params=['name'], 648 query_params=[], 649 relative_path='v1beta1/{+name}', 650 request_field='', 651 request_type_name='RecommenderOrganizationsLocationsInsightTypesInsightsGetRequest', 652 response_type_name='GoogleCloudRecommenderV1beta1Insight', 653 supports_download=False, 654 ) 655 656 def List(self, request, global_params=None): 657 r"""Lists insights for a Cloud project. Requires the recommender.*.list IAM permission for the specified insight type. 658 659 Args: 660 request: (RecommenderOrganizationsLocationsInsightTypesInsightsListRequest) input message 661 global_params: (StandardQueryParameters, default: None) global arguments 662 Returns: 663 (GoogleCloudRecommenderV1beta1ListInsightsResponse) The response message. 664 """ 665 config = self.GetMethodConfig('List') 666 return self._RunMethod( 667 config, request, global_params=global_params) 668 669 List.method_config = lambda: base_api.ApiMethodInfo( 670 flat_path='v1beta1/organizations/{organizationsId}/locations/{locationsId}/insightTypes/{insightTypesId}/insights', 671 http_method='GET', 672 method_id='recommender.organizations.locations.insightTypes.insights.list', 673 ordered_params=['parent'], 674 path_params=['parent'], 675 query_params=['filter', 'pageSize', 'pageToken'], 676 relative_path='v1beta1/{+parent}/insights', 677 request_field='', 678 request_type_name='RecommenderOrganizationsLocationsInsightTypesInsightsListRequest', 679 response_type_name='GoogleCloudRecommenderV1beta1ListInsightsResponse', 680 supports_download=False, 681 ) 682 683 def MarkAccepted(self, request, global_params=None): 684 r"""Marks the Insight State as Accepted. Users can use this method to indicate to the Recommender API that they have applied some action based on the insight. This stops the insight content from being updated. MarkInsightAccepted can be applied to insights in ACTIVE state. Requires the recommender.*.update IAM permission for the specified insight. 685 686 Args: 687 request: (RecommenderOrganizationsLocationsInsightTypesInsightsMarkAcceptedRequest) input message 688 global_params: (StandardQueryParameters, default: None) global arguments 689 Returns: 690 (GoogleCloudRecommenderV1beta1Insight) The response message. 691 """ 692 config = self.GetMethodConfig('MarkAccepted') 693 return self._RunMethod( 694 config, request, global_params=global_params) 695 696 MarkAccepted.method_config = lambda: base_api.ApiMethodInfo( 697 flat_path='v1beta1/organizations/{organizationsId}/locations/{locationsId}/insightTypes/{insightTypesId}/insights/{insightsId}:markAccepted', 698 http_method='POST', 699 method_id='recommender.organizations.locations.insightTypes.insights.markAccepted', 700 ordered_params=['name'], 701 path_params=['name'], 702 query_params=[], 703 relative_path='v1beta1/{+name}:markAccepted', 704 request_field='googleCloudRecommenderV1beta1MarkInsightAcceptedRequest', 705 request_type_name='RecommenderOrganizationsLocationsInsightTypesInsightsMarkAcceptedRequest', 706 response_type_name='GoogleCloudRecommenderV1beta1Insight', 707 supports_download=False, 708 ) 709 710 class OrganizationsLocationsInsightTypesService(base_api.BaseApiService): 711 """Service class for the organizations_locations_insightTypes resource.""" 712 713 _NAME = 'organizations_locations_insightTypes' 714 715 def __init__(self, client): 716 super(RecommenderV1beta1.OrganizationsLocationsInsightTypesService, self).__init__(client) 717 self._upload_configs = { 718 } 719 720 class OrganizationsLocationsRecommendersRecommendationsService(base_api.BaseApiService): 721 """Service class for the organizations_locations_recommenders_recommendations resource.""" 722 723 _NAME = 'organizations_locations_recommenders_recommendations' 724 725 def __init__(self, client): 726 super(RecommenderV1beta1.OrganizationsLocationsRecommendersRecommendationsService, self).__init__(client) 727 self._upload_configs = { 728 } 729 730 def Get(self, request, global_params=None): 731 r"""Gets the requested recommendation. Requires the recommender.*.get IAM permission for the specified recommender. 732 733 Args: 734 request: (RecommenderOrganizationsLocationsRecommendersRecommendationsGetRequest) input message 735 global_params: (StandardQueryParameters, default: None) global arguments 736 Returns: 737 (GoogleCloudRecommenderV1beta1Recommendation) The response message. 738 """ 739 config = self.GetMethodConfig('Get') 740 return self._RunMethod( 741 config, request, global_params=global_params) 742 743 Get.method_config = lambda: base_api.ApiMethodInfo( 744 flat_path='v1beta1/organizations/{organizationsId}/locations/{locationsId}/recommenders/{recommendersId}/recommendations/{recommendationsId}', 745 http_method='GET', 746 method_id='recommender.organizations.locations.recommenders.recommendations.get', 747 ordered_params=['name'], 748 path_params=['name'], 749 query_params=[], 750 relative_path='v1beta1/{+name}', 751 request_field='', 752 request_type_name='RecommenderOrganizationsLocationsRecommendersRecommendationsGetRequest', 753 response_type_name='GoogleCloudRecommenderV1beta1Recommendation', 754 supports_download=False, 755 ) 756 757 def List(self, request, global_params=None): 758 r"""Lists recommendations for a Cloud project. Requires the recommender.*.list IAM permission for the specified recommender. 759 760 Args: 761 request: (RecommenderOrganizationsLocationsRecommendersRecommendationsListRequest) input message 762 global_params: (StandardQueryParameters, default: None) global arguments 763 Returns: 764 (GoogleCloudRecommenderV1beta1ListRecommendationsResponse) The response message. 765 """ 766 config = self.GetMethodConfig('List') 767 return self._RunMethod( 768 config, request, global_params=global_params) 769 770 List.method_config = lambda: base_api.ApiMethodInfo( 771 flat_path='v1beta1/organizations/{organizationsId}/locations/{locationsId}/recommenders/{recommendersId}/recommendations', 772 http_method='GET', 773 method_id='recommender.organizations.locations.recommenders.recommendations.list', 774 ordered_params=['parent'], 775 path_params=['parent'], 776 query_params=['filter', 'pageSize', 'pageToken'], 777 relative_path='v1beta1/{+parent}/recommendations', 778 request_field='', 779 request_type_name='RecommenderOrganizationsLocationsRecommendersRecommendationsListRequest', 780 response_type_name='GoogleCloudRecommenderV1beta1ListRecommendationsResponse', 781 supports_download=False, 782 ) 783 784 def MarkClaimed(self, request, global_params=None): 785 r"""Marks the Recommendation State as Claimed. Users can use this method to indicate to the Recommender API that they are starting to apply the recommendation themselves. This stops the recommendation content from being updated. Associated insights are frozen and placed in the ACCEPTED state. MarkRecommendationClaimed can be applied to recommendations in CLAIMED or ACTIVE state. Requires the recommender.*.update IAM permission for the specified recommender. 786 787 Args: 788 request: (RecommenderOrganizationsLocationsRecommendersRecommendationsMarkClaimedRequest) input message 789 global_params: (StandardQueryParameters, default: None) global arguments 790 Returns: 791 (GoogleCloudRecommenderV1beta1Recommendation) The response message. 792 """ 793 config = self.GetMethodConfig('MarkClaimed') 794 return self._RunMethod( 795 config, request, global_params=global_params) 796 797 MarkClaimed.method_config = lambda: base_api.ApiMethodInfo( 798 flat_path='v1beta1/organizations/{organizationsId}/locations/{locationsId}/recommenders/{recommendersId}/recommendations/{recommendationsId}:markClaimed', 799 http_method='POST', 800 method_id='recommender.organizations.locations.recommenders.recommendations.markClaimed', 801 ordered_params=['name'], 802 path_params=['name'], 803 query_params=[], 804 relative_path='v1beta1/{+name}:markClaimed', 805 request_field='googleCloudRecommenderV1beta1MarkRecommendationClaimedRequest', 806 request_type_name='RecommenderOrganizationsLocationsRecommendersRecommendationsMarkClaimedRequest', 807 response_type_name='GoogleCloudRecommenderV1beta1Recommendation', 808 supports_download=False, 809 ) 810 811 def MarkFailed(self, request, global_params=None): 812 r"""Marks the Recommendation State as Failed. Users can use this method to indicate to the Recommender API that they have applied the recommendation themselves, and the operation failed. This stops the recommendation content from being updated. Associated insights are frozen and placed in the ACCEPTED state. MarkRecommendationFailed can be applied to recommendations in ACTIVE, CLAIMED, SUCCEEDED, or FAILED state. Requires the recommender.*.update IAM permission for the specified recommender. 813 814 Args: 815 request: (RecommenderOrganizationsLocationsRecommendersRecommendationsMarkFailedRequest) input message 816 global_params: (StandardQueryParameters, default: None) global arguments 817 Returns: 818 (GoogleCloudRecommenderV1beta1Recommendation) The response message. 819 """ 820 config = self.GetMethodConfig('MarkFailed') 821 return self._RunMethod( 822 config, request, global_params=global_params) 823 824 MarkFailed.method_config = lambda: base_api.ApiMethodInfo( 825 flat_path='v1beta1/organizations/{organizationsId}/locations/{locationsId}/recommenders/{recommendersId}/recommendations/{recommendationsId}:markFailed', 826 http_method='POST', 827 method_id='recommender.organizations.locations.recommenders.recommendations.markFailed', 828 ordered_params=['name'], 829 path_params=['name'], 830 query_params=[], 831 relative_path='v1beta1/{+name}:markFailed', 832 request_field='googleCloudRecommenderV1beta1MarkRecommendationFailedRequest', 833 request_type_name='RecommenderOrganizationsLocationsRecommendersRecommendationsMarkFailedRequest', 834 response_type_name='GoogleCloudRecommenderV1beta1Recommendation', 835 supports_download=False, 836 ) 837 838 def MarkSucceeded(self, request, global_params=None): 839 r"""Marks the Recommendation State as Succeeded. Users can use this method to indicate to the Recommender API that they have applied the recommendation themselves, and the operation was successful. This stops the recommendation content from being updated. Associated insights are frozen and placed in the ACCEPTED state. MarkRecommendationSucceeded can be applied to recommendations in ACTIVE, CLAIMED, SUCCEEDED, or FAILED state. Requires the recommender.*.update IAM permission for the specified recommender. 840 841 Args: 842 request: (RecommenderOrganizationsLocationsRecommendersRecommendationsMarkSucceededRequest) input message 843 global_params: (StandardQueryParameters, default: None) global arguments 844 Returns: 845 (GoogleCloudRecommenderV1beta1Recommendation) The response message. 846 """ 847 config = self.GetMethodConfig('MarkSucceeded') 848 return self._RunMethod( 849 config, request, global_params=global_params) 850 851 MarkSucceeded.method_config = lambda: base_api.ApiMethodInfo( 852 flat_path='v1beta1/organizations/{organizationsId}/locations/{locationsId}/recommenders/{recommendersId}/recommendations/{recommendationsId}:markSucceeded', 853 http_method='POST', 854 method_id='recommender.organizations.locations.recommenders.recommendations.markSucceeded', 855 ordered_params=['name'], 856 path_params=['name'], 857 query_params=[], 858 relative_path='v1beta1/{+name}:markSucceeded', 859 request_field='googleCloudRecommenderV1beta1MarkRecommendationSucceededRequest', 860 request_type_name='RecommenderOrganizationsLocationsRecommendersRecommendationsMarkSucceededRequest', 861 response_type_name='GoogleCloudRecommenderV1beta1Recommendation', 862 supports_download=False, 863 ) 864 865 class OrganizationsLocationsRecommendersService(base_api.BaseApiService): 866 """Service class for the organizations_locations_recommenders resource.""" 867 868 _NAME = 'organizations_locations_recommenders' 869 870 def __init__(self, client): 871 super(RecommenderV1beta1.OrganizationsLocationsRecommendersService, self).__init__(client) 872 self._upload_configs = { 873 } 874 875 class OrganizationsLocationsService(base_api.BaseApiService): 876 """Service class for the organizations_locations resource.""" 877 878 _NAME = 'organizations_locations' 879 880 def __init__(self, client): 881 super(RecommenderV1beta1.OrganizationsLocationsService, self).__init__(client) 882 self._upload_configs = { 883 } 884 885 class OrganizationsService(base_api.BaseApiService): 886 """Service class for the organizations resource.""" 887 888 _NAME = 'organizations' 889 890 def __init__(self, client): 891 super(RecommenderV1beta1.OrganizationsService, self).__init__(client) 892 self._upload_configs = { 893 } 894 895 class ProjectsLocationsInsightTypesInsightsService(base_api.BaseApiService): 896 """Service class for the projects_locations_insightTypes_insights resource.""" 897 898 _NAME = 'projects_locations_insightTypes_insights' 899 900 def __init__(self, client): 901 super(RecommenderV1beta1.ProjectsLocationsInsightTypesInsightsService, self).__init__(client) 902 self._upload_configs = { 903 } 904 905 def Get(self, request, global_params=None): 906 r"""Gets the requested insight. Requires the recommender.*.get IAM permission for the specified insight type. 907 908 Args: 909 request: (RecommenderProjectsLocationsInsightTypesInsightsGetRequest) input message 910 global_params: (StandardQueryParameters, default: None) global arguments 911 Returns: 912 (GoogleCloudRecommenderV1beta1Insight) The response message. 913 """ 914 config = self.GetMethodConfig('Get') 915 return self._RunMethod( 916 config, request, global_params=global_params) 917 918 Get.method_config = lambda: base_api.ApiMethodInfo( 919 flat_path='v1beta1/projects/{projectsId}/locations/{locationsId}/insightTypes/{insightTypesId}/insights/{insightsId}', 920 http_method='GET', 921 method_id='recommender.projects.locations.insightTypes.insights.get', 922 ordered_params=['name'], 923 path_params=['name'], 924 query_params=[], 925 relative_path='v1beta1/{+name}', 926 request_field='', 927 request_type_name='RecommenderProjectsLocationsInsightTypesInsightsGetRequest', 928 response_type_name='GoogleCloudRecommenderV1beta1Insight', 929 supports_download=False, 930 ) 931 932 def List(self, request, global_params=None): 933 r"""Lists insights for a Cloud project. Requires the recommender.*.list IAM permission for the specified insight type. 934 935 Args: 936 request: (RecommenderProjectsLocationsInsightTypesInsightsListRequest) input message 937 global_params: (StandardQueryParameters, default: None) global arguments 938 Returns: 939 (GoogleCloudRecommenderV1beta1ListInsightsResponse) The response message. 940 """ 941 config = self.GetMethodConfig('List') 942 return self._RunMethod( 943 config, request, global_params=global_params) 944 945 List.method_config = lambda: base_api.ApiMethodInfo( 946 flat_path='v1beta1/projects/{projectsId}/locations/{locationsId}/insightTypes/{insightTypesId}/insights', 947 http_method='GET', 948 method_id='recommender.projects.locations.insightTypes.insights.list', 949 ordered_params=['parent'], 950 path_params=['parent'], 951 query_params=['filter', 'pageSize', 'pageToken'], 952 relative_path='v1beta1/{+parent}/insights', 953 request_field='', 954 request_type_name='RecommenderProjectsLocationsInsightTypesInsightsListRequest', 955 response_type_name='GoogleCloudRecommenderV1beta1ListInsightsResponse', 956 supports_download=False, 957 ) 958 959 def MarkAccepted(self, request, global_params=None): 960 r"""Marks the Insight State as Accepted. Users can use this method to indicate to the Recommender API that they have applied some action based on the insight. This stops the insight content from being updated. MarkInsightAccepted can be applied to insights in ACTIVE state. Requires the recommender.*.update IAM permission for the specified insight. 961 962 Args: 963 request: (RecommenderProjectsLocationsInsightTypesInsightsMarkAcceptedRequest) input message 964 global_params: (StandardQueryParameters, default: None) global arguments 965 Returns: 966 (GoogleCloudRecommenderV1beta1Insight) The response message. 967 """ 968 config = self.GetMethodConfig('MarkAccepted') 969 return self._RunMethod( 970 config, request, global_params=global_params) 971 972 MarkAccepted.method_config = lambda: base_api.ApiMethodInfo( 973 flat_path='v1beta1/projects/{projectsId}/locations/{locationsId}/insightTypes/{insightTypesId}/insights/{insightsId}:markAccepted', 974 http_method='POST', 975 method_id='recommender.projects.locations.insightTypes.insights.markAccepted', 976 ordered_params=['name'], 977 path_params=['name'], 978 query_params=[], 979 relative_path='v1beta1/{+name}:markAccepted', 980 request_field='googleCloudRecommenderV1beta1MarkInsightAcceptedRequest', 981 request_type_name='RecommenderProjectsLocationsInsightTypesInsightsMarkAcceptedRequest', 982 response_type_name='GoogleCloudRecommenderV1beta1Insight', 983 supports_download=False, 984 ) 985 986 class ProjectsLocationsInsightTypesService(base_api.BaseApiService): 987 """Service class for the projects_locations_insightTypes resource.""" 988 989 _NAME = 'projects_locations_insightTypes' 990 991 def __init__(self, client): 992 super(RecommenderV1beta1.ProjectsLocationsInsightTypesService, self).__init__(client) 993 self._upload_configs = { 994 } 995 996 class ProjectsLocationsRecommendersRecommendationsService(base_api.BaseApiService): 997 """Service class for the projects_locations_recommenders_recommendations resource.""" 998 999 _NAME = 'projects_locations_recommenders_recommendations' 1000 1001 def __init__(self, client): 1002 super(RecommenderV1beta1.ProjectsLocationsRecommendersRecommendationsService, self).__init__(client) 1003 self._upload_configs = { 1004 } 1005 1006 def Get(self, request, global_params=None): 1007 r"""Gets the requested recommendation. Requires the recommender.*.get IAM permission for the specified recommender. 1008 1009 Args: 1010 request: (RecommenderProjectsLocationsRecommendersRecommendationsGetRequest) input message 1011 global_params: (StandardQueryParameters, default: None) global arguments 1012 Returns: 1013 (GoogleCloudRecommenderV1beta1Recommendation) The response message. 1014 """ 1015 config = self.GetMethodConfig('Get') 1016 return self._RunMethod( 1017 config, request, global_params=global_params) 1018 1019 Get.method_config = lambda: base_api.ApiMethodInfo( 1020 flat_path='v1beta1/projects/{projectsId}/locations/{locationsId}/recommenders/{recommendersId}/recommendations/{recommendationsId}', 1021 http_method='GET', 1022 method_id='recommender.projects.locations.recommenders.recommendations.get', 1023 ordered_params=['name'], 1024 path_params=['name'], 1025 query_params=[], 1026 relative_path='v1beta1/{+name}', 1027 request_field='', 1028 request_type_name='RecommenderProjectsLocationsRecommendersRecommendationsGetRequest', 1029 response_type_name='GoogleCloudRecommenderV1beta1Recommendation', 1030 supports_download=False, 1031 ) 1032 1033 def List(self, request, global_params=None): 1034 r"""Lists recommendations for a Cloud project. Requires the recommender.*.list IAM permission for the specified recommender. 1035 1036 Args: 1037 request: (RecommenderProjectsLocationsRecommendersRecommendationsListRequest) input message 1038 global_params: (StandardQueryParameters, default: None) global arguments 1039 Returns: 1040 (GoogleCloudRecommenderV1beta1ListRecommendationsResponse) The response message. 1041 """ 1042 config = self.GetMethodConfig('List') 1043 return self._RunMethod( 1044 config, request, global_params=global_params) 1045 1046 List.method_config = lambda: base_api.ApiMethodInfo( 1047 flat_path='v1beta1/projects/{projectsId}/locations/{locationsId}/recommenders/{recommendersId}/recommendations', 1048 http_method='GET', 1049 method_id='recommender.projects.locations.recommenders.recommendations.list', 1050 ordered_params=['parent'], 1051 path_params=['parent'], 1052 query_params=['filter', 'pageSize', 'pageToken'], 1053 relative_path='v1beta1/{+parent}/recommendations', 1054 request_field='', 1055 request_type_name='RecommenderProjectsLocationsRecommendersRecommendationsListRequest', 1056 response_type_name='GoogleCloudRecommenderV1beta1ListRecommendationsResponse', 1057 supports_download=False, 1058 ) 1059 1060 def MarkClaimed(self, request, global_params=None): 1061 r"""Marks the Recommendation State as Claimed. Users can use this method to indicate to the Recommender API that they are starting to apply the recommendation themselves. This stops the recommendation content from being updated. Associated insights are frozen and placed in the ACCEPTED state. MarkRecommendationClaimed can be applied to recommendations in CLAIMED or ACTIVE state. Requires the recommender.*.update IAM permission for the specified recommender. 1062 1063 Args: 1064 request: (RecommenderProjectsLocationsRecommendersRecommendationsMarkClaimedRequest) input message 1065 global_params: (StandardQueryParameters, default: None) global arguments 1066 Returns: 1067 (GoogleCloudRecommenderV1beta1Recommendation) The response message. 1068 """ 1069 config = self.GetMethodConfig('MarkClaimed') 1070 return self._RunMethod( 1071 config, request, global_params=global_params) 1072 1073 MarkClaimed.method_config = lambda: base_api.ApiMethodInfo( 1074 flat_path='v1beta1/projects/{projectsId}/locations/{locationsId}/recommenders/{recommendersId}/recommendations/{recommendationsId}:markClaimed', 1075 http_method='POST', 1076 method_id='recommender.projects.locations.recommenders.recommendations.markClaimed', 1077 ordered_params=['name'], 1078 path_params=['name'], 1079 query_params=[], 1080 relative_path='v1beta1/{+name}:markClaimed', 1081 request_field='googleCloudRecommenderV1beta1MarkRecommendationClaimedRequest', 1082 request_type_name='RecommenderProjectsLocationsRecommendersRecommendationsMarkClaimedRequest', 1083 response_type_name='GoogleCloudRecommenderV1beta1Recommendation', 1084 supports_download=False, 1085 ) 1086 1087 def MarkFailed(self, request, global_params=None): 1088 r"""Marks the Recommendation State as Failed. Users can use this method to indicate to the Recommender API that they have applied the recommendation themselves, and the operation failed. This stops the recommendation content from being updated. Associated insights are frozen and placed in the ACCEPTED state. MarkRecommendationFailed can be applied to recommendations in ACTIVE, CLAIMED, SUCCEEDED, or FAILED state. Requires the recommender.*.update IAM permission for the specified recommender. 1089 1090 Args: 1091 request: (RecommenderProjectsLocationsRecommendersRecommendationsMarkFailedRequest) input message 1092 global_params: (StandardQueryParameters, default: None) global arguments 1093 Returns: 1094 (GoogleCloudRecommenderV1beta1Recommendation) The response message. 1095 """ 1096 config = self.GetMethodConfig('MarkFailed') 1097 return self._RunMethod( 1098 config, request, global_params=global_params) 1099 1100 MarkFailed.method_config = lambda: base_api.ApiMethodInfo( 1101 flat_path='v1beta1/projects/{projectsId}/locations/{locationsId}/recommenders/{recommendersId}/recommendations/{recommendationsId}:markFailed', 1102 http_method='POST', 1103 method_id='recommender.projects.locations.recommenders.recommendations.markFailed', 1104 ordered_params=['name'], 1105 path_params=['name'], 1106 query_params=[], 1107 relative_path='v1beta1/{+name}:markFailed', 1108 request_field='googleCloudRecommenderV1beta1MarkRecommendationFailedRequest', 1109 request_type_name='RecommenderProjectsLocationsRecommendersRecommendationsMarkFailedRequest', 1110 response_type_name='GoogleCloudRecommenderV1beta1Recommendation', 1111 supports_download=False, 1112 ) 1113 1114 def MarkSucceeded(self, request, global_params=None): 1115 r"""Marks the Recommendation State as Succeeded. Users can use this method to indicate to the Recommender API that they have applied the recommendation themselves, and the operation was successful. This stops the recommendation content from being updated. Associated insights are frozen and placed in the ACCEPTED state. MarkRecommendationSucceeded can be applied to recommendations in ACTIVE, CLAIMED, SUCCEEDED, or FAILED state. Requires the recommender.*.update IAM permission for the specified recommender. 1116 1117 Args: 1118 request: (RecommenderProjectsLocationsRecommendersRecommendationsMarkSucceededRequest) input message 1119 global_params: (StandardQueryParameters, default: None) global arguments 1120 Returns: 1121 (GoogleCloudRecommenderV1beta1Recommendation) The response message. 1122 """ 1123 config = self.GetMethodConfig('MarkSucceeded') 1124 return self._RunMethod( 1125 config, request, global_params=global_params) 1126 1127 MarkSucceeded.method_config = lambda: base_api.ApiMethodInfo( 1128 flat_path='v1beta1/projects/{projectsId}/locations/{locationsId}/recommenders/{recommendersId}/recommendations/{recommendationsId}:markSucceeded', 1129 http_method='POST', 1130 method_id='recommender.projects.locations.recommenders.recommendations.markSucceeded', 1131 ordered_params=['name'], 1132 path_params=['name'], 1133 query_params=[], 1134 relative_path='v1beta1/{+name}:markSucceeded', 1135 request_field='googleCloudRecommenderV1beta1MarkRecommendationSucceededRequest', 1136 request_type_name='RecommenderProjectsLocationsRecommendersRecommendationsMarkSucceededRequest', 1137 response_type_name='GoogleCloudRecommenderV1beta1Recommendation', 1138 supports_download=False, 1139 ) 1140 1141 class ProjectsLocationsRecommendersService(base_api.BaseApiService): 1142 """Service class for the projects_locations_recommenders resource.""" 1143 1144 _NAME = 'projects_locations_recommenders' 1145 1146 def __init__(self, client): 1147 super(RecommenderV1beta1.ProjectsLocationsRecommendersService, self).__init__(client) 1148 self._upload_configs = { 1149 } 1150 1151 class ProjectsLocationsService(base_api.BaseApiService): 1152 """Service class for the projects_locations resource.""" 1153 1154 _NAME = 'projects_locations' 1155 1156 def __init__(self, client): 1157 super(RecommenderV1beta1.ProjectsLocationsService, self).__init__(client) 1158 self._upload_configs = { 1159 } 1160 1161 class ProjectsService(base_api.BaseApiService): 1162 """Service class for the projects resource.""" 1163 1164 _NAME = 'projects' 1165 1166 def __init__(self, client): 1167 super(RecommenderV1beta1.ProjectsService, self).__init__(client) 1168 self._upload_configs = { 1169 } 1170