anyscale 0.26.31__py3-none-any.whl → 0.26.33__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (53) hide show
  1. anyscale/_private/anyscale_client/anyscale_client.py +15 -0
  2. anyscale/_private/anyscale_client/common.py +12 -1
  3. anyscale/_private/anyscale_client/fake_anyscale_client.py +24 -0
  4. anyscale/_private/docgen/__main__.py +2 -0
  5. anyscale/_private/docgen/models.md +2 -2
  6. anyscale/api.py +22 -0
  7. anyscale/aws_iam_policies.py +0 -3
  8. anyscale/client/README.md +22 -1
  9. anyscale/client/openapi_client/__init__.py +17 -0
  10. anyscale/client/openapi_client/api/default_api.py +611 -157
  11. anyscale/client/openapi_client/models/__init__.py +17 -0
  12. anyscale/client/openapi_client/models/baseimagesenum.py +68 -1
  13. anyscale/client/openapi_client/models/cli_usage_payload.py +440 -0
  14. anyscale/client/openapi_client/models/cluster_operation.py +266 -0
  15. anyscale/client/openapi_client/models/cluster_operation_type.py +101 -0
  16. anyscale/client/openapi_client/models/clusteroperation_response.py +121 -0
  17. anyscale/client/openapi_client/models/commit_ledger_item_type.py +111 -0
  18. anyscale/client/openapi_client/models/commit_ledger_record_v2.py +207 -0
  19. anyscale/client/openapi_client/models/complexity_level.py +101 -0
  20. anyscale/client/openapi_client/models/credit_grant_record_v2.py +181 -0
  21. anyscale/client/openapi_client/models/credit_ledger_item_type.py +104 -0
  22. anyscale/client/openapi_client/models/credit_ledger_record_v2.py +207 -0
  23. anyscale/client/openapi_client/models/credit_record_commit_v2.py +410 -0
  24. anyscale/client/openapi_client/models/credit_record_credit_v2.py +410 -0
  25. anyscale/client/openapi_client/models/credit_type.py +100 -0
  26. anyscale/client/openapi_client/models/credits_v2.py +355 -0
  27. anyscale/client/openapi_client/models/operation_error.py +123 -0
  28. anyscale/client/openapi_client/models/operation_progress.py +123 -0
  29. anyscale/client/openapi_client/models/operation_result.py +150 -0
  30. anyscale/client/openapi_client/models/supportedbaseimagesenum.py +68 -1
  31. anyscale/client/openapi_client/models/workspace_template.py +115 -3
  32. anyscale/client/openapi_client/models/workspace_template_readme.py +59 -3
  33. anyscale/cloud/__init__.py +16 -0
  34. anyscale/cloud/_private/cloud_sdk.py +33 -0
  35. anyscale/cloud/commands.py +35 -0
  36. anyscale/commands/cloud_commands.py +35 -0
  37. anyscale/commands/command_examples.py +6 -0
  38. anyscale/commands/list_util.py +100 -38
  39. anyscale/integrations.py +0 -20
  40. anyscale/scripts.py +1 -0
  41. anyscale/sdk/anyscale_client/models/baseimagesenum.py +68 -1
  42. anyscale/sdk/anyscale_client/models/supportedbaseimagesenum.py +68 -1
  43. anyscale/shared_anyscale_utils/headers.py +4 -0
  44. anyscale/shared_anyscale_utils/latest_ray_version.py +1 -1
  45. anyscale/telemetry.py +424 -0
  46. anyscale/version.py +1 -1
  47. {anyscale-0.26.31.dist-info → anyscale-0.26.33.dist-info}/METADATA +1 -1
  48. {anyscale-0.26.31.dist-info → anyscale-0.26.33.dist-info}/RECORD +53 -35
  49. {anyscale-0.26.31.dist-info → anyscale-0.26.33.dist-info}/LICENSE +0 -0
  50. {anyscale-0.26.31.dist-info → anyscale-0.26.33.dist-info}/NOTICE +0 -0
  51. {anyscale-0.26.31.dist-info → anyscale-0.26.33.dist-info}/WHEEL +0 -0
  52. {anyscale-0.26.31.dist-info → anyscale-0.26.33.dist-info}/entry_points.txt +0 -0
  53. {anyscale-0.26.31.dist-info → anyscale-0.26.33.dist-info}/top_level.txt +0 -0
@@ -1587,118 +1587,6 @@ class DefaultApi(object):
1587
1587
  _request_timeout=local_var_params.get('_request_timeout'),
1588
1588
  collection_formats=collection_formats)
1589
1589
 
1590
- def ban_organization_api_v2_organizations_organization_id_ban_put(self, organization_id, **kwargs): # noqa: E501
1591
- """Ban Organization # noqa: E501
1592
-
1593
- This method makes a synchronous HTTP request by default. To make an
1594
- asynchronous HTTP request, please pass async_req=True
1595
- >>> thread = api.ban_organization_api_v2_organizations_organization_id_ban_put(organization_id, async_req=True)
1596
- >>> result = thread.get()
1597
-
1598
- :param async_req bool: execute request asynchronously
1599
- :param str organization_id: (required)
1600
- :param _preload_content: if False, the urllib3.HTTPResponse object will
1601
- be returned without reading/decoding response
1602
- data. Default is True.
1603
- :param _request_timeout: timeout setting for this request. If one
1604
- number provided, it will be total request
1605
- timeout. It can also be a pair (tuple) of
1606
- (connection, read) timeouts.
1607
- :return: object
1608
- If the method is called asynchronously,
1609
- returns the request thread.
1610
- """
1611
- kwargs['_return_http_data_only'] = True
1612
- return self.ban_organization_api_v2_organizations_organization_id_ban_put_with_http_info(organization_id, **kwargs) # noqa: E501
1613
-
1614
- def ban_organization_api_v2_organizations_organization_id_ban_put_with_http_info(self, organization_id, **kwargs): # noqa: E501
1615
- """Ban Organization # noqa: E501
1616
-
1617
- This method makes a synchronous HTTP request by default. To make an
1618
- asynchronous HTTP request, please pass async_req=True
1619
- >>> thread = api.ban_organization_api_v2_organizations_organization_id_ban_put_with_http_info(organization_id, async_req=True)
1620
- >>> result = thread.get()
1621
-
1622
- :param async_req bool: execute request asynchronously
1623
- :param str organization_id: (required)
1624
- :param _return_http_data_only: response data without head status code
1625
- and headers
1626
- :param _preload_content: if False, the urllib3.HTTPResponse object will
1627
- be returned without reading/decoding response
1628
- data. Default is True.
1629
- :param _request_timeout: timeout setting for this request. If one
1630
- number provided, it will be total request
1631
- timeout. It can also be a pair (tuple) of
1632
- (connection, read) timeouts.
1633
- :return: tuple(object, status_code(int), headers(HTTPHeaderDict))
1634
- If the method is called asynchronously,
1635
- returns the request thread.
1636
- """
1637
-
1638
- local_var_params = locals()
1639
-
1640
- all_params = [
1641
- 'organization_id'
1642
- ]
1643
- all_params.extend(
1644
- [
1645
- 'async_req',
1646
- '_return_http_data_only',
1647
- '_preload_content',
1648
- '_request_timeout'
1649
- ]
1650
- )
1651
-
1652
- for key, val in six.iteritems(local_var_params['kwargs']):
1653
- if key not in all_params:
1654
- raise ApiTypeError(
1655
- "Got an unexpected keyword argument '%s'"
1656
- " to method ban_organization_api_v2_organizations_organization_id_ban_put" % key
1657
- )
1658
- local_var_params[key] = val
1659
- del local_var_params['kwargs']
1660
- # verify the required parameter 'organization_id' is set
1661
- if self.api_client.client_side_validation and ('organization_id' not in local_var_params or # noqa: E501
1662
- local_var_params['organization_id'] is None): # noqa: E501
1663
- raise ApiValueError("Missing the required parameter `organization_id` when calling `ban_organization_api_v2_organizations_organization_id_ban_put`") # noqa: E501
1664
-
1665
- collection_formats = {}
1666
-
1667
- path_params = {}
1668
- if 'organization_id' in local_var_params:
1669
- path_params['organization_id'] = local_var_params['organization_id'] # noqa: E501
1670
-
1671
- query_params = []
1672
-
1673
- header_params = {}
1674
-
1675
- form_params = []
1676
- local_var_files = {}
1677
-
1678
- body_params = None
1679
- # HTTP header `Accept`
1680
- header_params['Accept'] = self.api_client.select_header_accept(
1681
- ['application/json']) # noqa: E501
1682
-
1683
- # Authentication setting
1684
- auth_settings = [] # noqa: E501
1685
-
1686
- return self.api_client.call_api(
1687
- '/api/v2/organizations/{organization_id}/ban', 'PUT',
1688
- path_params,
1689
- query_params,
1690
- header_params,
1691
- body=body_params,
1692
- post_params=form_params,
1693
- files=local_var_files,
1694
- response_type='object', # noqa: E501
1695
- auth_settings=auth_settings,
1696
- async_req=local_var_params.get('async_req'),
1697
- _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501
1698
- _preload_content=local_var_params.get('_preload_content', True),
1699
- _request_timeout=local_var_params.get('_request_timeout'),
1700
- collection_formats=collection_formats)
1701
-
1702
1590
  def batch_create_cloud_collaborators_api_v2_clouds_cloud_id_collaborators_users_batch_create_post(self, cloud_id, create_cloud_collaborator, **kwargs): # noqa: E501
1703
1591
  """Batch Create Cloud Collaborators # noqa: E501
1704
1592
 
@@ -12404,6 +12292,225 @@ class DefaultApi(object):
12404
12292
  _request_timeout=local_var_params.get('_request_timeout'),
12405
12293
  collection_formats=collection_formats)
12406
12294
 
12295
+ def get_credits_v2_api_v2_organization_billing_credits_v2_get(self, **kwargs): # noqa: E501
12296
+ """Get Credits V2 # noqa: E501
12297
+
12298
+ Returns the credits v2 data for this user. # noqa: E501
12299
+ This method makes a synchronous HTTP request by default. To make an
12300
+ asynchronous HTTP request, please pass async_req=True
12301
+ >>> thread = api.get_credits_v2_api_v2_organization_billing_credits_v2_get(async_req=True)
12302
+ >>> result = thread.get()
12303
+
12304
+ :param async_req bool: execute request asynchronously
12305
+ :param _preload_content: if False, the urllib3.HTTPResponse object will
12306
+ be returned without reading/decoding response
12307
+ data. Default is True.
12308
+ :param _request_timeout: timeout setting for this request. If one
12309
+ number provided, it will be total request
12310
+ timeout. It can also be a pair (tuple) of
12311
+ (connection, read) timeouts.
12312
+ :return: CreditsV2
12313
+ If the method is called asynchronously,
12314
+ returns the request thread.
12315
+ """
12316
+ kwargs['_return_http_data_only'] = True
12317
+ return self.get_credits_v2_api_v2_organization_billing_credits_v2_get_with_http_info(**kwargs) # noqa: E501
12318
+
12319
+ def get_credits_v2_api_v2_organization_billing_credits_v2_get_with_http_info(self, **kwargs): # noqa: E501
12320
+ """Get Credits V2 # noqa: E501
12321
+
12322
+ Returns the credits v2 data for this user. # noqa: E501
12323
+ This method makes a synchronous HTTP request by default. To make an
12324
+ asynchronous HTTP request, please pass async_req=True
12325
+ >>> thread = api.get_credits_v2_api_v2_organization_billing_credits_v2_get_with_http_info(async_req=True)
12326
+ >>> result = thread.get()
12327
+
12328
+ :param async_req bool: execute request asynchronously
12329
+ :param _return_http_data_only: response data without head status code
12330
+ and headers
12331
+ :param _preload_content: if False, the urllib3.HTTPResponse object will
12332
+ be returned without reading/decoding response
12333
+ data. Default is True.
12334
+ :param _request_timeout: timeout setting for this request. If one
12335
+ number provided, it will be total request
12336
+ timeout. It can also be a pair (tuple) of
12337
+ (connection, read) timeouts.
12338
+ :return: tuple(CreditsV2, status_code(int), headers(HTTPHeaderDict))
12339
+ If the method is called asynchronously,
12340
+ returns the request thread.
12341
+ """
12342
+
12343
+ local_var_params = locals()
12344
+
12345
+ all_params = [
12346
+ ]
12347
+ all_params.extend(
12348
+ [
12349
+ 'async_req',
12350
+ '_return_http_data_only',
12351
+ '_preload_content',
12352
+ '_request_timeout'
12353
+ ]
12354
+ )
12355
+
12356
+ for key, val in six.iteritems(local_var_params['kwargs']):
12357
+ if key not in all_params:
12358
+ raise ApiTypeError(
12359
+ "Got an unexpected keyword argument '%s'"
12360
+ " to method get_credits_v2_api_v2_organization_billing_credits_v2_get" % key
12361
+ )
12362
+ local_var_params[key] = val
12363
+ del local_var_params['kwargs']
12364
+
12365
+ collection_formats = {}
12366
+
12367
+ path_params = {}
12368
+
12369
+ query_params = []
12370
+
12371
+ header_params = {}
12372
+
12373
+ form_params = []
12374
+ local_var_files = {}
12375
+
12376
+ body_params = None
12377
+ # HTTP header `Accept`
12378
+ header_params['Accept'] = self.api_client.select_header_accept(
12379
+ ['application/json']) # noqa: E501
12380
+
12381
+ # Authentication setting
12382
+ auth_settings = [] # noqa: E501
12383
+
12384
+ return self.api_client.call_api(
12385
+ '/api/v2/organization_billing/credits_v2', 'GET',
12386
+ path_params,
12387
+ query_params,
12388
+ header_params,
12389
+ body=body_params,
12390
+ post_params=form_params,
12391
+ files=local_var_files,
12392
+ response_type='CreditsV2', # noqa: E501
12393
+ auth_settings=auth_settings,
12394
+ async_req=local_var_params.get('async_req'),
12395
+ _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501
12396
+ _preload_content=local_var_params.get('_preload_content', True),
12397
+ _request_timeout=local_var_params.get('_request_timeout'),
12398
+ collection_formats=collection_formats)
12399
+
12400
+ def get_credits_v2_by_organization_api_v2_organization_billing_credits_v2_organization_id_get(self, organization_id, **kwargs): # noqa: E501
12401
+ """Get Credits V2 By Organization # noqa: E501
12402
+
12403
+ Returns the credits v2 data for a given organization. # noqa: E501
12404
+ This method makes a synchronous HTTP request by default. To make an
12405
+ asynchronous HTTP request, please pass async_req=True
12406
+ >>> thread = api.get_credits_v2_by_organization_api_v2_organization_billing_credits_v2_organization_id_get(organization_id, async_req=True)
12407
+ >>> result = thread.get()
12408
+
12409
+ :param async_req bool: execute request asynchronously
12410
+ :param str organization_id: (required)
12411
+ :param _preload_content: if False, the urllib3.HTTPResponse object will
12412
+ be returned without reading/decoding response
12413
+ data. Default is True.
12414
+ :param _request_timeout: timeout setting for this request. If one
12415
+ number provided, it will be total request
12416
+ timeout. It can also be a pair (tuple) of
12417
+ (connection, read) timeouts.
12418
+ :return: CreditsV2
12419
+ If the method is called asynchronously,
12420
+ returns the request thread.
12421
+ """
12422
+ kwargs['_return_http_data_only'] = True
12423
+ return self.get_credits_v2_by_organization_api_v2_organization_billing_credits_v2_organization_id_get_with_http_info(organization_id, **kwargs) # noqa: E501
12424
+
12425
+ def get_credits_v2_by_organization_api_v2_organization_billing_credits_v2_organization_id_get_with_http_info(self, organization_id, **kwargs): # noqa: E501
12426
+ """Get Credits V2 By Organization # noqa: E501
12427
+
12428
+ Returns the credits v2 data for a given organization. # noqa: E501
12429
+ This method makes a synchronous HTTP request by default. To make an
12430
+ asynchronous HTTP request, please pass async_req=True
12431
+ >>> thread = api.get_credits_v2_by_organization_api_v2_organization_billing_credits_v2_organization_id_get_with_http_info(organization_id, async_req=True)
12432
+ >>> result = thread.get()
12433
+
12434
+ :param async_req bool: execute request asynchronously
12435
+ :param str organization_id: (required)
12436
+ :param _return_http_data_only: response data without head status code
12437
+ and headers
12438
+ :param _preload_content: if False, the urllib3.HTTPResponse object will
12439
+ be returned without reading/decoding response
12440
+ data. Default is True.
12441
+ :param _request_timeout: timeout setting for this request. If one
12442
+ number provided, it will be total request
12443
+ timeout. It can also be a pair (tuple) of
12444
+ (connection, read) timeouts.
12445
+ :return: tuple(CreditsV2, status_code(int), headers(HTTPHeaderDict))
12446
+ If the method is called asynchronously,
12447
+ returns the request thread.
12448
+ """
12449
+
12450
+ local_var_params = locals()
12451
+
12452
+ all_params = [
12453
+ 'organization_id'
12454
+ ]
12455
+ all_params.extend(
12456
+ [
12457
+ 'async_req',
12458
+ '_return_http_data_only',
12459
+ '_preload_content',
12460
+ '_request_timeout'
12461
+ ]
12462
+ )
12463
+
12464
+ for key, val in six.iteritems(local_var_params['kwargs']):
12465
+ if key not in all_params:
12466
+ raise ApiTypeError(
12467
+ "Got an unexpected keyword argument '%s'"
12468
+ " to method get_credits_v2_by_organization_api_v2_organization_billing_credits_v2_organization_id_get" % key
12469
+ )
12470
+ local_var_params[key] = val
12471
+ del local_var_params['kwargs']
12472
+ # verify the required parameter 'organization_id' is set
12473
+ if self.api_client.client_side_validation and ('organization_id' not in local_var_params or # noqa: E501
12474
+ local_var_params['organization_id'] is None): # noqa: E501
12475
+ raise ApiValueError("Missing the required parameter `organization_id` when calling `get_credits_v2_by_organization_api_v2_organization_billing_credits_v2_organization_id_get`") # noqa: E501
12476
+
12477
+ collection_formats = {}
12478
+
12479
+ path_params = {}
12480
+ if 'organization_id' in local_var_params:
12481
+ path_params['organization_id'] = local_var_params['organization_id'] # noqa: E501
12482
+
12483
+ query_params = []
12484
+
12485
+ header_params = {}
12486
+
12487
+ form_params = []
12488
+ local_var_files = {}
12489
+
12490
+ body_params = None
12491
+ # HTTP header `Accept`
12492
+ header_params['Accept'] = self.api_client.select_header_accept(
12493
+ ['application/json']) # noqa: E501
12494
+
12495
+ # Authentication setting
12496
+ auth_settings = [] # noqa: E501
12497
+
12498
+ return self.api_client.call_api(
12499
+ '/api/v2/organization_billing/credits_v2/{organization_id}', 'GET',
12500
+ path_params,
12501
+ query_params,
12502
+ header_params,
12503
+ body=body_params,
12504
+ post_params=form_params,
12505
+ files=local_var_files,
12506
+ response_type='CreditsV2', # noqa: E501
12507
+ auth_settings=auth_settings,
12508
+ async_req=local_var_params.get('async_req'),
12509
+ _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501
12510
+ _preload_content=local_var_params.get('_preload_content', True),
12511
+ _request_timeout=local_var_params.get('_request_timeout'),
12512
+ collection_formats=collection_formats)
12513
+
12407
12514
  def get_cron_job_api_v2_experimental_cron_jobs_cron_job_id_get(self, cron_job_id, **kwargs): # noqa: E501
12408
12515
  """Get Cron Job # noqa: E501
12409
12516
 
@@ -16202,14 +16309,132 @@ class DefaultApi(object):
16202
16309
  auth_settings = [] # noqa: E501
16203
16310
 
16204
16311
  return self.api_client.call_api(
16205
- '/api/v2/dataset_runs/operator', 'GET',
16312
+ '/api/v2/dataset_runs/operator', 'GET',
16313
+ path_params,
16314
+ query_params,
16315
+ header_params,
16316
+ body=body_params,
16317
+ post_params=form_params,
16318
+ files=local_var_files,
16319
+ response_type='OperatorMetrics', # noqa: E501
16320
+ auth_settings=auth_settings,
16321
+ async_req=local_var_params.get('async_req'),
16322
+ _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501
16323
+ _preload_content=local_var_params.get('_preload_content', True),
16324
+ _request_timeout=local_var_params.get('_request_timeout'),
16325
+ collection_formats=collection_formats)
16326
+
16327
+ def get_or_create_build_from_image_uri_api_v2_builds_get_or_create_build_from_image_uri_post(self, get_or_create_build_from_image_uri_request, **kwargs): # noqa: E501
16328
+ """Get Or Create Build From Image Uri # noqa: E501
16329
+
16330
+ Gets or creates a build from an image uri. # noqa: E501
16331
+ This method makes a synchronous HTTP request by default. To make an
16332
+ asynchronous HTTP request, please pass async_req=True
16333
+ >>> thread = api.get_or_create_build_from_image_uri_api_v2_builds_get_or_create_build_from_image_uri_post(get_or_create_build_from_image_uri_request, async_req=True)
16334
+ >>> result = thread.get()
16335
+
16336
+ :param async_req bool: execute request asynchronously
16337
+ :param GetOrCreateBuildFromImageUriRequest get_or_create_build_from_image_uri_request: (required)
16338
+ :param _preload_content: if False, the urllib3.HTTPResponse object will
16339
+ be returned without reading/decoding response
16340
+ data. Default is True.
16341
+ :param _request_timeout: timeout setting for this request. If one
16342
+ number provided, it will be total request
16343
+ timeout. It can also be a pair (tuple) of
16344
+ (connection, read) timeouts.
16345
+ :return: DecoratedbuildResponse
16346
+ If the method is called asynchronously,
16347
+ returns the request thread.
16348
+ """
16349
+ kwargs['_return_http_data_only'] = True
16350
+ return self.get_or_create_build_from_image_uri_api_v2_builds_get_or_create_build_from_image_uri_post_with_http_info(get_or_create_build_from_image_uri_request, **kwargs) # noqa: E501
16351
+
16352
+ def get_or_create_build_from_image_uri_api_v2_builds_get_or_create_build_from_image_uri_post_with_http_info(self, get_or_create_build_from_image_uri_request, **kwargs): # noqa: E501
16353
+ """Get Or Create Build From Image Uri # noqa: E501
16354
+
16355
+ Gets or creates a build from an image uri. # noqa: E501
16356
+ This method makes a synchronous HTTP request by default. To make an
16357
+ asynchronous HTTP request, please pass async_req=True
16358
+ >>> thread = api.get_or_create_build_from_image_uri_api_v2_builds_get_or_create_build_from_image_uri_post_with_http_info(get_or_create_build_from_image_uri_request, async_req=True)
16359
+ >>> result = thread.get()
16360
+
16361
+ :param async_req bool: execute request asynchronously
16362
+ :param GetOrCreateBuildFromImageUriRequest get_or_create_build_from_image_uri_request: (required)
16363
+ :param _return_http_data_only: response data without head status code
16364
+ and headers
16365
+ :param _preload_content: if False, the urllib3.HTTPResponse object will
16366
+ be returned without reading/decoding response
16367
+ data. Default is True.
16368
+ :param _request_timeout: timeout setting for this request. If one
16369
+ number provided, it will be total request
16370
+ timeout. It can also be a pair (tuple) of
16371
+ (connection, read) timeouts.
16372
+ :return: tuple(DecoratedbuildResponse, status_code(int), headers(HTTPHeaderDict))
16373
+ If the method is called asynchronously,
16374
+ returns the request thread.
16375
+ """
16376
+
16377
+ local_var_params = locals()
16378
+
16379
+ all_params = [
16380
+ 'get_or_create_build_from_image_uri_request'
16381
+ ]
16382
+ all_params.extend(
16383
+ [
16384
+ 'async_req',
16385
+ '_return_http_data_only',
16386
+ '_preload_content',
16387
+ '_request_timeout'
16388
+ ]
16389
+ )
16390
+
16391
+ for key, val in six.iteritems(local_var_params['kwargs']):
16392
+ if key not in all_params:
16393
+ raise ApiTypeError(
16394
+ "Got an unexpected keyword argument '%s'"
16395
+ " to method get_or_create_build_from_image_uri_api_v2_builds_get_or_create_build_from_image_uri_post" % key
16396
+ )
16397
+ local_var_params[key] = val
16398
+ del local_var_params['kwargs']
16399
+ # verify the required parameter 'get_or_create_build_from_image_uri_request' is set
16400
+ if self.api_client.client_side_validation and ('get_or_create_build_from_image_uri_request' not in local_var_params or # noqa: E501
16401
+ local_var_params['get_or_create_build_from_image_uri_request'] is None): # noqa: E501
16402
+ raise ApiValueError("Missing the required parameter `get_or_create_build_from_image_uri_request` when calling `get_or_create_build_from_image_uri_api_v2_builds_get_or_create_build_from_image_uri_post`") # noqa: E501
16403
+
16404
+ collection_formats = {}
16405
+
16406
+ path_params = {}
16407
+
16408
+ query_params = []
16409
+
16410
+ header_params = {}
16411
+
16412
+ form_params = []
16413
+ local_var_files = {}
16414
+
16415
+ body_params = None
16416
+ if 'get_or_create_build_from_image_uri_request' in local_var_params:
16417
+ body_params = local_var_params['get_or_create_build_from_image_uri_request']
16418
+ # HTTP header `Accept`
16419
+ header_params['Accept'] = self.api_client.select_header_accept(
16420
+ ['application/json']) # noqa: E501
16421
+
16422
+ # HTTP header `Content-Type`
16423
+ header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501
16424
+ ['application/json']) # noqa: E501
16425
+
16426
+ # Authentication setting
16427
+ auth_settings = [] # noqa: E501
16428
+
16429
+ return self.api_client.call_api(
16430
+ '/api/v2/builds/get_or_create_build_from_image_uri', 'POST',
16206
16431
  path_params,
16207
16432
  query_params,
16208
16433
  header_params,
16209
16434
  body=body_params,
16210
16435
  post_params=form_params,
16211
16436
  files=local_var_files,
16212
- response_type='OperatorMetrics', # noqa: E501
16437
+ response_type='DecoratedbuildResponse', # noqa: E501
16213
16438
  auth_settings=auth_settings,
16214
16439
  async_req=local_var_params.get('async_req'),
16215
16440
  _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501
@@ -16217,17 +16442,16 @@ class DefaultApi(object):
16217
16442
  _request_timeout=local_var_params.get('_request_timeout'),
16218
16443
  collection_formats=collection_formats)
16219
16444
 
16220
- def get_or_create_build_from_image_uri_api_v2_builds_get_or_create_build_from_image_uri_post(self, get_or_create_build_from_image_uri_request, **kwargs): # noqa: E501
16221
- """Get Or Create Build From Image Uri # noqa: E501
16445
+ def get_organization_metronome_usage_alerts_api_v2_organization_billing_alerts_get(self, **kwargs): # noqa: E501
16446
+ """Get Organization Metronome Usage Alerts # noqa: E501
16222
16447
 
16223
- Gets or creates a build from an image uri. # noqa: E501
16448
+ Return the current status of alerts regarding organization's usage # noqa: E501
16224
16449
  This method makes a synchronous HTTP request by default. To make an
16225
16450
  asynchronous HTTP request, please pass async_req=True
16226
- >>> thread = api.get_or_create_build_from_image_uri_api_v2_builds_get_or_create_build_from_image_uri_post(get_or_create_build_from_image_uri_request, async_req=True)
16451
+ >>> thread = api.get_organization_metronome_usage_alerts_api_v2_organization_billing_alerts_get(async_req=True)
16227
16452
  >>> result = thread.get()
16228
16453
 
16229
16454
  :param async_req bool: execute request asynchronously
16230
- :param GetOrCreateBuildFromImageUriRequest get_or_create_build_from_image_uri_request: (required)
16231
16455
  :param _preload_content: if False, the urllib3.HTTPResponse object will
16232
16456
  be returned without reading/decoding response
16233
16457
  data. Default is True.
@@ -16235,24 +16459,23 @@ class DefaultApi(object):
16235
16459
  number provided, it will be total request
16236
16460
  timeout. It can also be a pair (tuple) of
16237
16461
  (connection, read) timeouts.
16238
- :return: DecoratedbuildResponse
16462
+ :return: OrganizationusagealertListResponse
16239
16463
  If the method is called asynchronously,
16240
16464
  returns the request thread.
16241
16465
  """
16242
16466
  kwargs['_return_http_data_only'] = True
16243
- return self.get_or_create_build_from_image_uri_api_v2_builds_get_or_create_build_from_image_uri_post_with_http_info(get_or_create_build_from_image_uri_request, **kwargs) # noqa: E501
16467
+ return self.get_organization_metronome_usage_alerts_api_v2_organization_billing_alerts_get_with_http_info(**kwargs) # noqa: E501
16244
16468
 
16245
- def get_or_create_build_from_image_uri_api_v2_builds_get_or_create_build_from_image_uri_post_with_http_info(self, get_or_create_build_from_image_uri_request, **kwargs): # noqa: E501
16246
- """Get Or Create Build From Image Uri # noqa: E501
16469
+ def get_organization_metronome_usage_alerts_api_v2_organization_billing_alerts_get_with_http_info(self, **kwargs): # noqa: E501
16470
+ """Get Organization Metronome Usage Alerts # noqa: E501
16247
16471
 
16248
- Gets or creates a build from an image uri. # noqa: E501
16472
+ Return the current status of alerts regarding organization's usage # noqa: E501
16249
16473
  This method makes a synchronous HTTP request by default. To make an
16250
16474
  asynchronous HTTP request, please pass async_req=True
16251
- >>> thread = api.get_or_create_build_from_image_uri_api_v2_builds_get_or_create_build_from_image_uri_post_with_http_info(get_or_create_build_from_image_uri_request, async_req=True)
16475
+ >>> thread = api.get_organization_metronome_usage_alerts_api_v2_organization_billing_alerts_get_with_http_info(async_req=True)
16252
16476
  >>> result = thread.get()
16253
16477
 
16254
16478
  :param async_req bool: execute request asynchronously
16255
- :param GetOrCreateBuildFromImageUriRequest get_or_create_build_from_image_uri_request: (required)
16256
16479
  :param _return_http_data_only: response data without head status code
16257
16480
  and headers
16258
16481
  :param _preload_content: if False, the urllib3.HTTPResponse object will
@@ -16262,7 +16485,7 @@ class DefaultApi(object):
16262
16485
  number provided, it will be total request
16263
16486
  timeout. It can also be a pair (tuple) of
16264
16487
  (connection, read) timeouts.
16265
- :return: tuple(DecoratedbuildResponse, status_code(int), headers(HTTPHeaderDict))
16488
+ :return: tuple(OrganizationusagealertListResponse, status_code(int), headers(HTTPHeaderDict))
16266
16489
  If the method is called asynchronously,
16267
16490
  returns the request thread.
16268
16491
  """
@@ -16270,7 +16493,6 @@ class DefaultApi(object):
16270
16493
  local_var_params = locals()
16271
16494
 
16272
16495
  all_params = [
16273
- 'get_or_create_build_from_image_uri_request'
16274
16496
  ]
16275
16497
  all_params.extend(
16276
16498
  [
@@ -16285,14 +16507,10 @@ class DefaultApi(object):
16285
16507
  if key not in all_params:
16286
16508
  raise ApiTypeError(
16287
16509
  "Got an unexpected keyword argument '%s'"
16288
- " to method get_or_create_build_from_image_uri_api_v2_builds_get_or_create_build_from_image_uri_post" % key
16510
+ " to method get_organization_metronome_usage_alerts_api_v2_organization_billing_alerts_get" % key
16289
16511
  )
16290
16512
  local_var_params[key] = val
16291
16513
  del local_var_params['kwargs']
16292
- # verify the required parameter 'get_or_create_build_from_image_uri_request' is set
16293
- if self.api_client.client_side_validation and ('get_or_create_build_from_image_uri_request' not in local_var_params or # noqa: E501
16294
- local_var_params['get_or_create_build_from_image_uri_request'] is None): # noqa: E501
16295
- raise ApiValueError("Missing the required parameter `get_or_create_build_from_image_uri_request` when calling `get_or_create_build_from_image_uri_api_v2_builds_get_or_create_build_from_image_uri_post`") # noqa: E501
16296
16514
 
16297
16515
  collection_formats = {}
16298
16516
 
@@ -16306,28 +16524,22 @@ class DefaultApi(object):
16306
16524
  local_var_files = {}
16307
16525
 
16308
16526
  body_params = None
16309
- if 'get_or_create_build_from_image_uri_request' in local_var_params:
16310
- body_params = local_var_params['get_or_create_build_from_image_uri_request']
16311
16527
  # HTTP header `Accept`
16312
16528
  header_params['Accept'] = self.api_client.select_header_accept(
16313
16529
  ['application/json']) # noqa: E501
16314
16530
 
16315
- # HTTP header `Content-Type`
16316
- header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501
16317
- ['application/json']) # noqa: E501
16318
-
16319
16531
  # Authentication setting
16320
16532
  auth_settings = [] # noqa: E501
16321
16533
 
16322
16534
  return self.api_client.call_api(
16323
- '/api/v2/builds/get_or_create_build_from_image_uri', 'POST',
16535
+ '/api/v2/organization_billing/alerts', 'GET',
16324
16536
  path_params,
16325
16537
  query_params,
16326
16538
  header_params,
16327
16539
  body=body_params,
16328
16540
  post_params=form_params,
16329
16541
  files=local_var_files,
16330
- response_type='DecoratedbuildResponse', # noqa: E501
16542
+ response_type='OrganizationusagealertListResponse', # noqa: E501
16331
16543
  auth_settings=auth_settings,
16332
16544
  async_req=local_var_params.get('async_req'),
16333
16545
  _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501
@@ -16335,13 +16547,13 @@ class DefaultApi(object):
16335
16547
  _request_timeout=local_var_params.get('_request_timeout'),
16336
16548
  collection_formats=collection_formats)
16337
16549
 
16338
- def get_organization_metronome_usage_alerts_api_v2_organization_billing_alerts_get(self, **kwargs): # noqa: E501
16339
- """Get Organization Metronome Usage Alerts # noqa: E501
16550
+ def get_plan_status_api_v2_organization_billing_plan_status_get(self, **kwargs): # noqa: E501
16551
+ """Get Plan Status # noqa: E501
16340
16552
 
16341
- Return the current status of alerts regarding organization's usage # noqa: E501
16553
+ Returns the plan status for this user: True if the organization has ever been on a plan, False otherwise. # noqa: E501
16342
16554
  This method makes a synchronous HTTP request by default. To make an
16343
16555
  asynchronous HTTP request, please pass async_req=True
16344
- >>> thread = api.get_organization_metronome_usage_alerts_api_v2_organization_billing_alerts_get(async_req=True)
16556
+ >>> thread = api.get_plan_status_api_v2_organization_billing_plan_status_get(async_req=True)
16345
16557
  >>> result = thread.get()
16346
16558
 
16347
16559
  :param async_req bool: execute request asynchronously
@@ -16352,20 +16564,20 @@ class DefaultApi(object):
16352
16564
  number provided, it will be total request
16353
16565
  timeout. It can also be a pair (tuple) of
16354
16566
  (connection, read) timeouts.
16355
- :return: OrganizationusagealertListResponse
16567
+ :return: bool
16356
16568
  If the method is called asynchronously,
16357
16569
  returns the request thread.
16358
16570
  """
16359
16571
  kwargs['_return_http_data_only'] = True
16360
- return self.get_organization_metronome_usage_alerts_api_v2_organization_billing_alerts_get_with_http_info(**kwargs) # noqa: E501
16572
+ return self.get_plan_status_api_v2_organization_billing_plan_status_get_with_http_info(**kwargs) # noqa: E501
16361
16573
 
16362
- def get_organization_metronome_usage_alerts_api_v2_organization_billing_alerts_get_with_http_info(self, **kwargs): # noqa: E501
16363
- """Get Organization Metronome Usage Alerts # noqa: E501
16574
+ def get_plan_status_api_v2_organization_billing_plan_status_get_with_http_info(self, **kwargs): # noqa: E501
16575
+ """Get Plan Status # noqa: E501
16364
16576
 
16365
- Return the current status of alerts regarding organization's usage # noqa: E501
16577
+ Returns the plan status for this user: True if the organization has ever been on a plan, False otherwise. # noqa: E501
16366
16578
  This method makes a synchronous HTTP request by default. To make an
16367
16579
  asynchronous HTTP request, please pass async_req=True
16368
- >>> thread = api.get_organization_metronome_usage_alerts_api_v2_organization_billing_alerts_get_with_http_info(async_req=True)
16580
+ >>> thread = api.get_plan_status_api_v2_organization_billing_plan_status_get_with_http_info(async_req=True)
16369
16581
  >>> result = thread.get()
16370
16582
 
16371
16583
  :param async_req bool: execute request asynchronously
@@ -16378,7 +16590,7 @@ class DefaultApi(object):
16378
16590
  number provided, it will be total request
16379
16591
  timeout. It can also be a pair (tuple) of
16380
16592
  (connection, read) timeouts.
16381
- :return: tuple(OrganizationusagealertListResponse, status_code(int), headers(HTTPHeaderDict))
16593
+ :return: tuple(bool, status_code(int), headers(HTTPHeaderDict))
16382
16594
  If the method is called asynchronously,
16383
16595
  returns the request thread.
16384
16596
  """
@@ -16400,7 +16612,7 @@ class DefaultApi(object):
16400
16612
  if key not in all_params:
16401
16613
  raise ApiTypeError(
16402
16614
  "Got an unexpected keyword argument '%s'"
16403
- " to method get_organization_metronome_usage_alerts_api_v2_organization_billing_alerts_get" % key
16615
+ " to method get_plan_status_api_v2_organization_billing_plan_status_get" % key
16404
16616
  )
16405
16617
  local_var_params[key] = val
16406
16618
  del local_var_params['kwargs']
@@ -16425,14 +16637,14 @@ class DefaultApi(object):
16425
16637
  auth_settings = [] # noqa: E501
16426
16638
 
16427
16639
  return self.api_client.call_api(
16428
- '/api/v2/organization_billing/alerts', 'GET',
16640
+ '/api/v2/organization_billing/plan_status', 'GET',
16429
16641
  path_params,
16430
16642
  query_params,
16431
16643
  header_params,
16432
16644
  body=body_params,
16433
16645
  post_params=form_params,
16434
16646
  files=local_var_files,
16435
- response_type='OrganizationusagealertListResponse', # noqa: E501
16647
+ response_type='bool', # noqa: E501
16436
16648
  auth_settings=auth_settings,
16437
16649
  async_req=local_var_params.get('async_req'),
16438
16650
  _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501
@@ -25004,6 +25216,7 @@ class DefaultApi(object):
25004
25216
  :param async_req bool: execute request asynchronously
25005
25217
  :param int count: Maximum number of templates to return
25006
25218
  :param list[str] oa_group_names: Search for templates that belong to the provided group name
25219
+ :param bool for_gallery: Filters the list to show the ones expected for gallery section
25007
25220
  :param _preload_content: if False, the urllib3.HTTPResponse object will
25008
25221
  be returned without reading/decoding response
25009
25222
  data. Default is True.
@@ -25030,6 +25243,7 @@ class DefaultApi(object):
25030
25243
  :param async_req bool: execute request asynchronously
25031
25244
  :param int count: Maximum number of templates to return
25032
25245
  :param list[str] oa_group_names: Search for templates that belong to the provided group name
25246
+ :param bool for_gallery: Filters the list to show the ones expected for gallery section
25033
25247
  :param _return_http_data_only: response data without head status code
25034
25248
  and headers
25035
25249
  :param _preload_content: if False, the urllib3.HTTPResponse object will
@@ -25048,7 +25262,8 @@ class DefaultApi(object):
25048
25262
 
25049
25263
  all_params = [
25050
25264
  'count',
25051
- 'oa_group_names'
25265
+ 'oa_group_names',
25266
+ 'for_gallery'
25052
25267
  ]
25053
25268
  all_params.extend(
25054
25269
  [
@@ -25078,6 +25293,8 @@ class DefaultApi(object):
25078
25293
  if 'oa_group_names' in local_var_params and local_var_params['oa_group_names'] is not None: # noqa: E501
25079
25294
  query_params.append(('oa_group_names', local_var_params['oa_group_names'])) # noqa: E501
25080
25295
  collection_formats['oa_group_names'] = 'multi' # noqa: E501
25296
+ if 'for_gallery' in local_var_params and local_var_params['for_gallery'] is not None: # noqa: E501
25297
+ query_params.append(('for_gallery', local_var_params['for_gallery'])) # noqa: E501
25081
25298
 
25082
25299
  header_params = {}
25083
25300
 
@@ -25435,6 +25652,7 @@ class DefaultApi(object):
25435
25652
  :param bool for_private_endpoints_homepage: Filters the list to be ones expected for private endpoints home page
25436
25653
  :param bool for_fine_tuning: Filters the list to be ones expected for fine tuning tutorial section
25437
25654
  :param bool for_ai_apps_section: Filters the list to show the ones expected for ai apps section
25655
+ :param bool for_gallery: Filters the list to show the ones expected for gallery section
25438
25656
  :param _preload_content: if False, the urllib3.HTTPResponse object will
25439
25657
  be returned without reading/decoding response
25440
25658
  data. Default is True.
@@ -25463,6 +25681,7 @@ class DefaultApi(object):
25463
25681
  :param bool for_private_endpoints_homepage: Filters the list to be ones expected for private endpoints home page
25464
25682
  :param bool for_fine_tuning: Filters the list to be ones expected for fine tuning tutorial section
25465
25683
  :param bool for_ai_apps_section: Filters the list to show the ones expected for ai apps section
25684
+ :param bool for_gallery: Filters the list to show the ones expected for gallery section
25466
25685
  :param _return_http_data_only: response data without head status code
25467
25686
  and headers
25468
25687
  :param _preload_content: if False, the urllib3.HTTPResponse object will
@@ -25483,7 +25702,8 @@ class DefaultApi(object):
25483
25702
  'oa_group_names',
25484
25703
  'for_private_endpoints_homepage',
25485
25704
  'for_fine_tuning',
25486
- 'for_ai_apps_section'
25705
+ 'for_ai_apps_section',
25706
+ 'for_gallery'
25487
25707
  ]
25488
25708
  all_params.extend(
25489
25709
  [
@@ -25517,6 +25737,8 @@ class DefaultApi(object):
25517
25737
  query_params.append(('for_fine_tuning', local_var_params['for_fine_tuning'])) # noqa: E501
25518
25738
  if 'for_ai_apps_section' in local_var_params and local_var_params['for_ai_apps_section'] is not None: # noqa: E501
25519
25739
  query_params.append(('for_ai_apps_section', local_var_params['for_ai_apps_section'])) # noqa: E501
25740
+ if 'for_gallery' in local_var_params and local_var_params['for_gallery'] is not None: # noqa: E501
25741
+ query_params.append(('for_gallery', local_var_params['for_gallery'])) # noqa: E501
25520
25742
 
25521
25743
  header_params = {}
25522
25744
 
@@ -27340,6 +27562,124 @@ class DefaultApi(object):
27340
27562
  _request_timeout=local_var_params.get('_request_timeout'),
27341
27563
  collection_formats=collection_formats)
27342
27564
 
27565
+ def receive_cli_usage_api_v2_cli_usage_post(self, cli_usage_payload, **kwargs): # noqa: E501
27566
+ """Receive Cli Usage # noqa: E501
27567
+
27568
+ Record CLI usage metrics for observability and analytics. # noqa: E501
27569
+ This method makes a synchronous HTTP request by default. To make an
27570
+ asynchronous HTTP request, please pass async_req=True
27571
+ >>> thread = api.receive_cli_usage_api_v2_cli_usage_post(cli_usage_payload, async_req=True)
27572
+ >>> result = thread.get()
27573
+
27574
+ :param async_req bool: execute request asynchronously
27575
+ :param CLIUsagePayload cli_usage_payload: (required)
27576
+ :param _preload_content: if False, the urllib3.HTTPResponse object will
27577
+ be returned without reading/decoding response
27578
+ data. Default is True.
27579
+ :param _request_timeout: timeout setting for this request. If one
27580
+ number provided, it will be total request
27581
+ timeout. It can also be a pair (tuple) of
27582
+ (connection, read) timeouts.
27583
+ :return: None
27584
+ If the method is called asynchronously,
27585
+ returns the request thread.
27586
+ """
27587
+ kwargs['_return_http_data_only'] = True
27588
+ return self.receive_cli_usage_api_v2_cli_usage_post_with_http_info(cli_usage_payload, **kwargs) # noqa: E501
27589
+
27590
+ def receive_cli_usage_api_v2_cli_usage_post_with_http_info(self, cli_usage_payload, **kwargs): # noqa: E501
27591
+ """Receive Cli Usage # noqa: E501
27592
+
27593
+ Record CLI usage metrics for observability and analytics. # noqa: E501
27594
+ This method makes a synchronous HTTP request by default. To make an
27595
+ asynchronous HTTP request, please pass async_req=True
27596
+ >>> thread = api.receive_cli_usage_api_v2_cli_usage_post_with_http_info(cli_usage_payload, async_req=True)
27597
+ >>> result = thread.get()
27598
+
27599
+ :param async_req bool: execute request asynchronously
27600
+ :param CLIUsagePayload cli_usage_payload: (required)
27601
+ :param _return_http_data_only: response data without head status code
27602
+ and headers
27603
+ :param _preload_content: if False, the urllib3.HTTPResponse object will
27604
+ be returned without reading/decoding response
27605
+ data. Default is True.
27606
+ :param _request_timeout: timeout setting for this request. If one
27607
+ number provided, it will be total request
27608
+ timeout. It can also be a pair (tuple) of
27609
+ (connection, read) timeouts.
27610
+ :return: None
27611
+ If the method is called asynchronously,
27612
+ returns the request thread.
27613
+ """
27614
+
27615
+ local_var_params = locals()
27616
+
27617
+ all_params = [
27618
+ 'cli_usage_payload'
27619
+ ]
27620
+ all_params.extend(
27621
+ [
27622
+ 'async_req',
27623
+ '_return_http_data_only',
27624
+ '_preload_content',
27625
+ '_request_timeout'
27626
+ ]
27627
+ )
27628
+
27629
+ for key, val in six.iteritems(local_var_params['kwargs']):
27630
+ if key not in all_params:
27631
+ raise ApiTypeError(
27632
+ "Got an unexpected keyword argument '%s'"
27633
+ " to method receive_cli_usage_api_v2_cli_usage_post" % key
27634
+ )
27635
+ local_var_params[key] = val
27636
+ del local_var_params['kwargs']
27637
+ # verify the required parameter 'cli_usage_payload' is set
27638
+ if self.api_client.client_side_validation and ('cli_usage_payload' not in local_var_params or # noqa: E501
27639
+ local_var_params['cli_usage_payload'] is None): # noqa: E501
27640
+ raise ApiValueError("Missing the required parameter `cli_usage_payload` when calling `receive_cli_usage_api_v2_cli_usage_post`") # noqa: E501
27641
+
27642
+ collection_formats = {}
27643
+
27644
+ path_params = {}
27645
+
27646
+ query_params = []
27647
+
27648
+ header_params = {}
27649
+
27650
+ form_params = []
27651
+ local_var_files = {}
27652
+
27653
+ body_params = None
27654
+ if 'cli_usage_payload' in local_var_params:
27655
+ body_params = local_var_params['cli_usage_payload']
27656
+ # HTTP header `Accept`
27657
+ header_params['Accept'] = self.api_client.select_header_accept(
27658
+ ['application/json']) # noqa: E501
27659
+
27660
+ # HTTP header `Content-Type`
27661
+ header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501
27662
+ ['application/json']) # noqa: E501
27663
+
27664
+ # Authentication setting
27665
+ auth_settings = [] # noqa: E501
27666
+
27667
+ return self.api_client.call_api(
27668
+ '/api/v2/cli_usage/', 'POST',
27669
+ path_params,
27670
+ query_params,
27671
+ header_params,
27672
+ body=body_params,
27673
+ post_params=form_params,
27674
+ files=local_var_files,
27675
+ response_type=None, # noqa: E501
27676
+ auth_settings=auth_settings,
27677
+ async_req=local_var_params.get('async_req'),
27678
+ _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501
27679
+ _preload_content=local_var_params.get('_preload_content', True),
27680
+ _request_timeout=local_var_params.get('_request_timeout'),
27681
+ collection_formats=collection_formats)
27682
+
27343
27683
  def redirect_to_service_api_v2_sessions_cluster_id_services_get(self, cluster_id, redirect_to, **kwargs): # noqa: E501
27344
27684
  """Redirect To Service # noqa: E501
27345
27685
 
@@ -31057,6 +31397,120 @@ class DefaultApi(object):
31057
31397
  _request_timeout=local_var_params.get('_request_timeout'),
31058
31398
  collection_formats=collection_formats)
31059
31399
 
31400
+ def terminate_system_cluster_api_v2_system_workload_cloud_id_terminate_post(self, cloud_id, **kwargs): # noqa: E501
31401
+ """Terminate System Cluster # noqa: E501
31402
+
31403
+ Initializes workflow to transition the System Cluster of a given cloud into the Terminated state. This is a long running operation. Clients will need to poll the operation's status to determine completion. # noqa: E501
31404
+ This method makes a synchronous HTTP request by default. To make an
31405
+ asynchronous HTTP request, please pass async_req=True
31406
+ >>> thread = api.terminate_system_cluster_api_v2_system_workload_cloud_id_terminate_post(cloud_id, async_req=True)
31407
+ >>> result = thread.get()
31408
+
31409
+ :param async_req bool: execute request asynchronously
31410
+ :param str cloud_id: ID of the Cloud to terminate the System Cluster in. (required)
31411
+ :param _preload_content: if False, the urllib3.HTTPResponse object will
31412
+ be returned without reading/decoding response
31413
+ data. Default is True.
31414
+ :param _request_timeout: timeout setting for this request. If one
31415
+ number provided, it will be total request
31416
+ timeout. It can also be a pair (tuple) of
31417
+ (connection, read) timeouts.
31418
+ :return: ClusteroperationResponse
31419
+ If the method is called asynchronously,
31420
+ returns the request thread.
31421
+ """
31422
+ kwargs['_return_http_data_only'] = True
31423
+ return self.terminate_system_cluster_api_v2_system_workload_cloud_id_terminate_post_with_http_info(cloud_id, **kwargs) # noqa: E501
31424
+
31425
+ def terminate_system_cluster_api_v2_system_workload_cloud_id_terminate_post_with_http_info(self, cloud_id, **kwargs): # noqa: E501
31426
+ """Terminate System Cluster # noqa: E501
31427
+
31428
+ Initializes workflow to transition the System Cluster of a given cloud into the Terminated state. This is a long running operation. Clients will need to poll the operation's status to determine completion. # noqa: E501
31429
+ This method makes a synchronous HTTP request by default. To make an
31430
+ asynchronous HTTP request, please pass async_req=True
31431
+ >>> thread = api.terminate_system_cluster_api_v2_system_workload_cloud_id_terminate_post_with_http_info(cloud_id, async_req=True)
31432
+ >>> result = thread.get()
31433
+
31434
+ :param async_req bool: execute request asynchronously
31435
+ :param str cloud_id: ID of the Cloud to terminate the System Cluster in. (required)
31436
+ :param _return_http_data_only: response data without head status code
31437
+ and headers
31438
+ :param _preload_content: if False, the urllib3.HTTPResponse object will
31439
+ be returned without reading/decoding response
31440
+ data. Default is True.
31441
+ :param _request_timeout: timeout setting for this request. If one
31442
+ number provided, it will be total request
31443
+ timeout. It can also be a pair (tuple) of
31444
+ (connection, read) timeouts.
31445
+ :return: tuple(ClusteroperationResponse, status_code(int), headers(HTTPHeaderDict))
31446
+ If the method is called asynchronously,
31447
+ returns the request thread.
31448
+ """
31449
+
31450
+ local_var_params = locals()
31451
+
31452
+ all_params = [
31453
+ 'cloud_id'
31454
+ ]
31455
+ all_params.extend(
31456
+ [
31457
+ 'async_req',
31458
+ '_return_http_data_only',
31459
+ '_preload_content',
31460
+ '_request_timeout'
31461
+ ]
31462
+ )
31463
+
31464
+ for key, val in six.iteritems(local_var_params['kwargs']):
31465
+ if key not in all_params:
31466
+ raise ApiTypeError(
31467
+ "Got an unexpected keyword argument '%s'"
31468
+ " to method terminate_system_cluster_api_v2_system_workload_cloud_id_terminate_post" % key
31469
+ )
31470
+ local_var_params[key] = val
31471
+ del local_var_params['kwargs']
31472
+ # verify the required parameter 'cloud_id' is set
31473
+ if self.api_client.client_side_validation and ('cloud_id' not in local_var_params or # noqa: E501
31474
+ local_var_params['cloud_id'] is None): # noqa: E501
31475
+ raise ApiValueError("Missing the required parameter `cloud_id` when calling `terminate_system_cluster_api_v2_system_workload_cloud_id_terminate_post`") # noqa: E501
31476
+
31477
+ collection_formats = {}
31478
+
31479
+ path_params = {}
31480
+ if 'cloud_id' in local_var_params:
31481
+ path_params['cloud_id'] = local_var_params['cloud_id'] # noqa: E501
31482
+
31483
+ query_params = []
31484
+
31485
+ header_params = {}
31486
+
31487
+ form_params = []
31488
+ local_var_files = {}
31489
+
31490
+ body_params = None
31491
+ # HTTP header `Accept`
31492
+ header_params['Accept'] = self.api_client.select_header_accept(
31493
+ ['application/json']) # noqa: E501
31494
+
31495
+ # Authentication setting
31496
+ auth_settings = [] # noqa: E501
31497
+
31498
+ return self.api_client.call_api(
31499
+ '/api/v2/system_workload/{cloud_id}/terminate', 'POST',
31500
+ path_params,
31501
+ query_params,
31502
+ header_params,
31503
+ body=body_params,
31504
+ post_params=form_params,
31505
+ files=local_var_files,
31506
+ response_type='ClusteroperationResponse', # noqa: E501
31507
+ auth_settings=auth_settings,
31508
+ async_req=local_var_params.get('async_req'),
31509
+ _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501
31510
+ _preload_content=local_var_params.get('_preload_content', True),
31511
+ _request_timeout=local_var_params.get('_request_timeout'),
31512
+ collection_formats=collection_formats)
31513
+
31060
31514
  def test_saml_acs_api_v2_organizations_organization_id_test_saml_acs_post(self, organization_id, **kwargs): # noqa: E501
31061
31515
  """Test Saml Acs # noqa: E501
31062
31516