anyscale 0.26.32__py3-none-any.whl → 0.26.34__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.
- anyscale/api.py +22 -0
- anyscale/aws_iam_policies.py +0 -3
- anyscale/client/README.md +20 -2
- anyscale/client/openapi_client/__init__.py +15 -1
- anyscale/client/openapi_client/api/default_api.py +625 -167
- anyscale/client/openapi_client/models/__init__.py +15 -1
- anyscale/client/openapi_client/models/cli_usage_payload.py +440 -0
- anyscale/client/openapi_client/models/cloud_deployment.py +31 -30
- anyscale/client/openapi_client/models/commit_ledger_item_type.py +111 -0
- anyscale/client/openapi_client/models/commit_ledger_record_v2.py +207 -0
- anyscale/client/openapi_client/models/complexity_level.py +101 -0
- anyscale/client/openapi_client/models/credit_grant_record_v2.py +181 -0
- anyscale/client/openapi_client/models/credit_ledger_item_type.py +104 -0
- anyscale/client/openapi_client/models/credit_ledger_record_v2.py +207 -0
- anyscale/client/openapi_client/models/credit_record_commit_v2.py +410 -0
- anyscale/client/openapi_client/models/credit_record_credit_v2.py +410 -0
- anyscale/client/openapi_client/models/credit_type.py +100 -0
- anyscale/client/openapi_client/models/credits_v2.py +355 -0
- anyscale/client/openapi_client/models/partition_info.py +152 -0
- anyscale/client/openapi_client/models/{pcp_config.py → summarize_machine_pool_request.py} +13 -12
- anyscale/client/openapi_client/models/summarize_machine_pool_response.py +181 -0
- anyscale/client/openapi_client/models/summarizemachinepoolresponse_response.py +121 -0
- anyscale/client/openapi_client/models/workspace_template.py +115 -3
- anyscale/client/openapi_client/models/workspace_template_readme.py +88 -3
- anyscale/commands/cloud_commands.py +12 -9
- anyscale/commands/command_examples.py +23 -6
- anyscale/commands/list_util.py +100 -38
- anyscale/integrations.py +0 -20
- anyscale/scripts.py +1 -0
- anyscale/shared_anyscale_utils/headers.py +4 -0
- anyscale/telemetry.py +424 -0
- anyscale/version.py +1 -1
- {anyscale-0.26.32.dist-info → anyscale-0.26.34.dist-info}/METADATA +1 -1
- {anyscale-0.26.32.dist-info → anyscale-0.26.34.dist-info}/RECORD +39 -24
- {anyscale-0.26.32.dist-info → anyscale-0.26.34.dist-info}/LICENSE +0 -0
- {anyscale-0.26.32.dist-info → anyscale-0.26.34.dist-info}/NOTICE +0 -0
- {anyscale-0.26.32.dist-info → anyscale-0.26.34.dist-info}/WHEEL +0 -0
- {anyscale-0.26.32.dist-info → anyscale-0.26.34.dist-info}/entry_points.txt +0 -0
- {anyscale-0.26.32.dist-info → anyscale-0.26.34.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
|
|
@@ -9226,8 +9114,8 @@ class DefaultApi(object):
|
|
9226
9114
|
local_var_params['aggregated_usage_query'] is None): # noqa: E501
|
9227
9115
|
raise ApiValueError("Missing the required parameter `aggregated_usage_query` when calling `fetch_usage_group_by_cloud_api_v2_aggregated_instance_usage_cloud_post`") # noqa: E501
|
9228
9116
|
|
9229
|
-
if self.api_client.client_side_validation and 'count' in local_var_params and local_var_params['count'] >
|
9230
|
-
raise ApiValueError("Invalid value for parameter `count` when calling `fetch_usage_group_by_cloud_api_v2_aggregated_instance_usage_cloud_post`, must be a value less than or equal to `
|
9117
|
+
if self.api_client.client_side_validation and 'count' in local_var_params and local_var_params['count'] > 1000: # noqa: E501
|
9118
|
+
raise ApiValueError("Invalid value for parameter `count` when calling `fetch_usage_group_by_cloud_api_v2_aggregated_instance_usage_cloud_post`, must be a value less than or equal to `1000`") # noqa: E501
|
9231
9119
|
if self.api_client.client_side_validation and 'count' in local_var_params and local_var_params['count'] < 0: # noqa: E501
|
9232
9120
|
raise ApiValueError("Invalid value for parameter `count` when calling `fetch_usage_group_by_cloud_api_v2_aggregated_instance_usage_cloud_post`, must be a value greater than or equal to `0`") # noqa: E501
|
9233
9121
|
collection_formats = {}
|
@@ -9356,8 +9244,8 @@ class DefaultApi(object):
|
|
9356
9244
|
local_var_params['aggregated_usage_query'] is None): # noqa: E501
|
9357
9245
|
raise ApiValueError("Missing the required parameter `aggregated_usage_query` when calling `fetch_usage_group_by_cluster_api_v2_aggregated_instance_usage_cluster_post`") # noqa: E501
|
9358
9246
|
|
9359
|
-
if self.api_client.client_side_validation and 'count' in local_var_params and local_var_params['count'] >
|
9360
|
-
raise ApiValueError("Invalid value for parameter `count` when calling `fetch_usage_group_by_cluster_api_v2_aggregated_instance_usage_cluster_post`, must be a value less than or equal to `
|
9247
|
+
if self.api_client.client_side_validation and 'count' in local_var_params and local_var_params['count'] > 1000: # noqa: E501
|
9248
|
+
raise ApiValueError("Invalid value for parameter `count` when calling `fetch_usage_group_by_cluster_api_v2_aggregated_instance_usage_cluster_post`, must be a value less than or equal to `1000`") # noqa: E501
|
9361
9249
|
if self.api_client.client_side_validation and 'count' in local_var_params and local_var_params['count'] < 0: # noqa: E501
|
9362
9250
|
raise ApiValueError("Invalid value for parameter `count` when calling `fetch_usage_group_by_cluster_api_v2_aggregated_instance_usage_cluster_post`, must be a value greater than or equal to `0`") # noqa: E501
|
9363
9251
|
collection_formats = {}
|
@@ -9486,8 +9374,8 @@ class DefaultApi(object):
|
|
9486
9374
|
local_var_params['aggregated_usage_query'] is None): # noqa: E501
|
9487
9375
|
raise ApiValueError("Missing the required parameter `aggregated_usage_query` when calling `fetch_usage_group_by_instance_type_api_v2_aggregated_instance_usage_instance_type_post`") # noqa: E501
|
9488
9376
|
|
9489
|
-
if self.api_client.client_side_validation and 'count' in local_var_params and local_var_params['count'] >
|
9490
|
-
raise ApiValueError("Invalid value for parameter `count` when calling `fetch_usage_group_by_instance_type_api_v2_aggregated_instance_usage_instance_type_post`, must be a value less than or equal to `
|
9377
|
+
if self.api_client.client_side_validation and 'count' in local_var_params and local_var_params['count'] > 1000: # noqa: E501
|
9378
|
+
raise ApiValueError("Invalid value for parameter `count` when calling `fetch_usage_group_by_instance_type_api_v2_aggregated_instance_usage_instance_type_post`, must be a value less than or equal to `1000`") # noqa: E501
|
9491
9379
|
if self.api_client.client_side_validation and 'count' in local_var_params and local_var_params['count'] < 0: # noqa: E501
|
9492
9380
|
raise ApiValueError("Invalid value for parameter `count` when calling `fetch_usage_group_by_instance_type_api_v2_aggregated_instance_usage_instance_type_post`, must be a value greater than or equal to `0`") # noqa: E501
|
9493
9381
|
collection_formats = {}
|
@@ -9616,8 +9504,8 @@ class DefaultApi(object):
|
|
9616
9504
|
local_var_params['aggregated_usage_query'] is None): # noqa: E501
|
9617
9505
|
raise ApiValueError("Missing the required parameter `aggregated_usage_query` when calling `fetch_usage_group_by_project_api_v2_aggregated_instance_usage_project_post`") # noqa: E501
|
9618
9506
|
|
9619
|
-
if self.api_client.client_side_validation and 'count' in local_var_params and local_var_params['count'] >
|
9620
|
-
raise ApiValueError("Invalid value for parameter `count` when calling `fetch_usage_group_by_project_api_v2_aggregated_instance_usage_project_post`, must be a value less than or equal to `
|
9507
|
+
if self.api_client.client_side_validation and 'count' in local_var_params and local_var_params['count'] > 1000: # noqa: E501
|
9508
|
+
raise ApiValueError("Invalid value for parameter `count` when calling `fetch_usage_group_by_project_api_v2_aggregated_instance_usage_project_post`, must be a value less than or equal to `1000`") # noqa: E501
|
9621
9509
|
if self.api_client.client_side_validation and 'count' in local_var_params and local_var_params['count'] < 0: # noqa: E501
|
9622
9510
|
raise ApiValueError("Invalid value for parameter `count` when calling `fetch_usage_group_by_project_api_v2_aggregated_instance_usage_project_post`, must be a value greater than or equal to `0`") # noqa: E501
|
9623
9511
|
collection_formats = {}
|
@@ -9746,8 +9634,8 @@ class DefaultApi(object):
|
|
9746
9634
|
local_var_params['aggregated_usage_query'] is None): # noqa: E501
|
9747
9635
|
raise ApiValueError("Missing the required parameter `aggregated_usage_query` when calling `fetch_usage_group_by_user_api_v2_aggregated_instance_usage_user_post`") # noqa: E501
|
9748
9636
|
|
9749
|
-
if self.api_client.client_side_validation and 'count' in local_var_params and local_var_params['count'] >
|
9750
|
-
raise ApiValueError("Invalid value for parameter `count` when calling `fetch_usage_group_by_user_api_v2_aggregated_instance_usage_user_post`, must be a value less than or equal to `
|
9637
|
+
if self.api_client.client_side_validation and 'count' in local_var_params and local_var_params['count'] > 1000: # noqa: E501
|
9638
|
+
raise ApiValueError("Invalid value for parameter `count` when calling `fetch_usage_group_by_user_api_v2_aggregated_instance_usage_user_post`, must be a value less than or equal to `1000`") # noqa: E501
|
9751
9639
|
if self.api_client.client_side_validation and 'count' in local_var_params and local_var_params['count'] < 0: # noqa: E501
|
9752
9640
|
raise ApiValueError("Invalid value for parameter `count` when calling `fetch_usage_group_by_user_api_v2_aggregated_instance_usage_user_post`, must be a value greater than or equal to `0`") # noqa: E501
|
9753
9641
|
collection_formats = {}
|
@@ -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='
|
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
|
16221
|
-
"""Get
|
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
|
-
|
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.
|
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:
|
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.
|
16467
|
+
return self.get_organization_metronome_usage_alerts_api_v2_organization_billing_alerts_get_with_http_info(**kwargs) # noqa: E501
|
16244
16468
|
|
16245
|
-
def
|
16246
|
-
"""Get
|
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
|
-
|
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.
|
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(
|
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
|
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/
|
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='
|
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
|
16339
|
-
"""Get
|
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
|
-
|
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.
|
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:
|
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.
|
16572
|
+
return self.get_plan_status_api_v2_organization_billing_plan_status_get_with_http_info(**kwargs) # noqa: E501
|
16361
16573
|
|
16362
|
-
def
|
16363
|
-
"""Get
|
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
|
-
|
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.
|
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(
|
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
|
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/
|
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='
|
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
|
|
@@ -30715,6 +31055,124 @@ class DefaultApi(object):
|
|
30715
31055
|
_request_timeout=local_var_params.get('_request_timeout'),
|
30716
31056
|
collection_formats=collection_formats)
|
30717
31057
|
|
31058
|
+
def summarize_machine_pool_api_v2_machine_pools_summary_post(self, summarize_machine_pool_request, **kwargs): # noqa: E501
|
31059
|
+
"""Summarize Machine Pool # noqa: E501
|
31060
|
+
|
31061
|
+
Summarize the current state of a machine pool. # noqa: E501
|
31062
|
+
This method makes a synchronous HTTP request by default. To make an
|
31063
|
+
asynchronous HTTP request, please pass async_req=True
|
31064
|
+
>>> thread = api.summarize_machine_pool_api_v2_machine_pools_summary_post(summarize_machine_pool_request, async_req=True)
|
31065
|
+
>>> result = thread.get()
|
31066
|
+
|
31067
|
+
:param async_req bool: execute request asynchronously
|
31068
|
+
:param SummarizeMachinePoolRequest summarize_machine_pool_request: (required)
|
31069
|
+
:param _preload_content: if False, the urllib3.HTTPResponse object will
|
31070
|
+
be returned without reading/decoding response
|
31071
|
+
data. Default is True.
|
31072
|
+
:param _request_timeout: timeout setting for this request. If one
|
31073
|
+
number provided, it will be total request
|
31074
|
+
timeout. It can also be a pair (tuple) of
|
31075
|
+
(connection, read) timeouts.
|
31076
|
+
:return: SummarizemachinepoolresponseResponse
|
31077
|
+
If the method is called asynchronously,
|
31078
|
+
returns the request thread.
|
31079
|
+
"""
|
31080
|
+
kwargs['_return_http_data_only'] = True
|
31081
|
+
return self.summarize_machine_pool_api_v2_machine_pools_summary_post_with_http_info(summarize_machine_pool_request, **kwargs) # noqa: E501
|
31082
|
+
|
31083
|
+
def summarize_machine_pool_api_v2_machine_pools_summary_post_with_http_info(self, summarize_machine_pool_request, **kwargs): # noqa: E501
|
31084
|
+
"""Summarize Machine Pool # noqa: E501
|
31085
|
+
|
31086
|
+
Summarize the current state of a machine pool. # noqa: E501
|
31087
|
+
This method makes a synchronous HTTP request by default. To make an
|
31088
|
+
asynchronous HTTP request, please pass async_req=True
|
31089
|
+
>>> thread = api.summarize_machine_pool_api_v2_machine_pools_summary_post_with_http_info(summarize_machine_pool_request, async_req=True)
|
31090
|
+
>>> result = thread.get()
|
31091
|
+
|
31092
|
+
:param async_req bool: execute request asynchronously
|
31093
|
+
:param SummarizeMachinePoolRequest summarize_machine_pool_request: (required)
|
31094
|
+
:param _return_http_data_only: response data without head status code
|
31095
|
+
and headers
|
31096
|
+
:param _preload_content: if False, the urllib3.HTTPResponse object will
|
31097
|
+
be returned without reading/decoding response
|
31098
|
+
data. Default is True.
|
31099
|
+
:param _request_timeout: timeout setting for this request. If one
|
31100
|
+
number provided, it will be total request
|
31101
|
+
timeout. It can also be a pair (tuple) of
|
31102
|
+
(connection, read) timeouts.
|
31103
|
+
:return: tuple(SummarizemachinepoolresponseResponse, status_code(int), headers(HTTPHeaderDict))
|
31104
|
+
If the method is called asynchronously,
|
31105
|
+
returns the request thread.
|
31106
|
+
"""
|
31107
|
+
|
31108
|
+
local_var_params = locals()
|
31109
|
+
|
31110
|
+
all_params = [
|
31111
|
+
'summarize_machine_pool_request'
|
31112
|
+
]
|
31113
|
+
all_params.extend(
|
31114
|
+
[
|
31115
|
+
'async_req',
|
31116
|
+
'_return_http_data_only',
|
31117
|
+
'_preload_content',
|
31118
|
+
'_request_timeout'
|
31119
|
+
]
|
31120
|
+
)
|
31121
|
+
|
31122
|
+
for key, val in six.iteritems(local_var_params['kwargs']):
|
31123
|
+
if key not in all_params:
|
31124
|
+
raise ApiTypeError(
|
31125
|
+
"Got an unexpected keyword argument '%s'"
|
31126
|
+
" to method summarize_machine_pool_api_v2_machine_pools_summary_post" % key
|
31127
|
+
)
|
31128
|
+
local_var_params[key] = val
|
31129
|
+
del local_var_params['kwargs']
|
31130
|
+
# verify the required parameter 'summarize_machine_pool_request' is set
|
31131
|
+
if self.api_client.client_side_validation and ('summarize_machine_pool_request' not in local_var_params or # noqa: E501
|
31132
|
+
local_var_params['summarize_machine_pool_request'] is None): # noqa: E501
|
31133
|
+
raise ApiValueError("Missing the required parameter `summarize_machine_pool_request` when calling `summarize_machine_pool_api_v2_machine_pools_summary_post`") # noqa: E501
|
31134
|
+
|
31135
|
+
collection_formats = {}
|
31136
|
+
|
31137
|
+
path_params = {}
|
31138
|
+
|
31139
|
+
query_params = []
|
31140
|
+
|
31141
|
+
header_params = {}
|
31142
|
+
|
31143
|
+
form_params = []
|
31144
|
+
local_var_files = {}
|
31145
|
+
|
31146
|
+
body_params = None
|
31147
|
+
if 'summarize_machine_pool_request' in local_var_params:
|
31148
|
+
body_params = local_var_params['summarize_machine_pool_request']
|
31149
|
+
# HTTP header `Accept`
|
31150
|
+
header_params['Accept'] = self.api_client.select_header_accept(
|
31151
|
+
['application/json']) # noqa: E501
|
31152
|
+
|
31153
|
+
# HTTP header `Content-Type`
|
31154
|
+
header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501
|
31155
|
+
['application/json']) # noqa: E501
|
31156
|
+
|
31157
|
+
# Authentication setting
|
31158
|
+
auth_settings = [] # noqa: E501
|
31159
|
+
|
31160
|
+
return self.api_client.call_api(
|
31161
|
+
'/api/v2/machine_pools/summary', 'POST',
|
31162
|
+
path_params,
|
31163
|
+
query_params,
|
31164
|
+
header_params,
|
31165
|
+
body=body_params,
|
31166
|
+
post_params=form_params,
|
31167
|
+
files=local_var_files,
|
31168
|
+
response_type='SummarizemachinepoolresponseResponse', # noqa: E501
|
31169
|
+
auth_settings=auth_settings,
|
31170
|
+
async_req=local_var_params.get('async_req'),
|
31171
|
+
_return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501
|
31172
|
+
_preload_content=local_var_params.get('_preload_content', True),
|
31173
|
+
_request_timeout=local_var_params.get('_request_timeout'),
|
31174
|
+
collection_formats=collection_formats)
|
31175
|
+
|
30718
31176
|
def sync_organization_with_metronome_api_v2_organization_billing_organization_id_sync_with_metronome_post(self, organization_id, **kwargs): # noqa: E501
|
30719
31177
|
"""Sync Organization With Metronome # noqa: E501
|
30720
31178
|
|