anyscale 0.26.32__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 (32) hide show
  1. anyscale/api.py +22 -0
  2. anyscale/aws_iam_policies.py +0 -3
  3. anyscale/client/README.md +15 -1
  4. anyscale/client/openapi_client/__init__.py +11 -0
  5. anyscale/client/openapi_client/api/default_api.py +454 -114
  6. anyscale/client/openapi_client/models/__init__.py +11 -0
  7. anyscale/client/openapi_client/models/cli_usage_payload.py +440 -0
  8. anyscale/client/openapi_client/models/commit_ledger_item_type.py +111 -0
  9. anyscale/client/openapi_client/models/commit_ledger_record_v2.py +207 -0
  10. anyscale/client/openapi_client/models/complexity_level.py +101 -0
  11. anyscale/client/openapi_client/models/credit_grant_record_v2.py +181 -0
  12. anyscale/client/openapi_client/models/credit_ledger_item_type.py +104 -0
  13. anyscale/client/openapi_client/models/credit_ledger_record_v2.py +207 -0
  14. anyscale/client/openapi_client/models/credit_record_commit_v2.py +410 -0
  15. anyscale/client/openapi_client/models/credit_record_credit_v2.py +410 -0
  16. anyscale/client/openapi_client/models/credit_type.py +100 -0
  17. anyscale/client/openapi_client/models/credits_v2.py +355 -0
  18. anyscale/client/openapi_client/models/workspace_template.py +115 -3
  19. anyscale/client/openapi_client/models/workspace_template_readme.py +59 -3
  20. anyscale/commands/list_util.py +100 -38
  21. anyscale/integrations.py +0 -20
  22. anyscale/scripts.py +1 -0
  23. anyscale/shared_anyscale_utils/headers.py +4 -0
  24. anyscale/telemetry.py +424 -0
  25. anyscale/version.py +1 -1
  26. {anyscale-0.26.32.dist-info → anyscale-0.26.33.dist-info}/METADATA +1 -1
  27. {anyscale-0.26.32.dist-info → anyscale-0.26.33.dist-info}/RECORD +32 -20
  28. {anyscale-0.26.32.dist-info → anyscale-0.26.33.dist-info}/LICENSE +0 -0
  29. {anyscale-0.26.32.dist-info → anyscale-0.26.33.dist-info}/NOTICE +0 -0
  30. {anyscale-0.26.32.dist-info → anyscale-0.26.33.dist-info}/WHEEL +0 -0
  31. {anyscale-0.26.32.dist-info → anyscale-0.26.33.dist-info}/entry_points.txt +0 -0
  32. {anyscale-0.26.32.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
 
@@ -16440,6 +16547,111 @@ class DefaultApi(object):
16440
16547
  _request_timeout=local_var_params.get('_request_timeout'),
16441
16548
  collection_formats=collection_formats)
16442
16549
 
16550
+ def get_plan_status_api_v2_organization_billing_plan_status_get(self, **kwargs): # noqa: E501
16551
+ """Get Plan Status # noqa: E501
16552
+
16553
+ Returns the plan status for this user: True if the organization has ever been on a plan, False otherwise. # noqa: E501
16554
+ This method makes a synchronous HTTP request by default. To make an
16555
+ asynchronous HTTP request, please pass async_req=True
16556
+ >>> thread = api.get_plan_status_api_v2_organization_billing_plan_status_get(async_req=True)
16557
+ >>> result = thread.get()
16558
+
16559
+ :param async_req bool: execute request asynchronously
16560
+ :param _preload_content: if False, the urllib3.HTTPResponse object will
16561
+ be returned without reading/decoding response
16562
+ data. Default is True.
16563
+ :param _request_timeout: timeout setting for this request. If one
16564
+ number provided, it will be total request
16565
+ timeout. It can also be a pair (tuple) of
16566
+ (connection, read) timeouts.
16567
+ :return: bool
16568
+ If the method is called asynchronously,
16569
+ returns the request thread.
16570
+ """
16571
+ kwargs['_return_http_data_only'] = True
16572
+ return self.get_plan_status_api_v2_organization_billing_plan_status_get_with_http_info(**kwargs) # noqa: E501
16573
+
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
16576
+
16577
+ Returns the plan status for this user: True if the organization has ever been on a plan, False otherwise. # noqa: E501
16578
+ This method makes a synchronous HTTP request by default. To make an
16579
+ asynchronous HTTP request, please pass async_req=True
16580
+ >>> thread = api.get_plan_status_api_v2_organization_billing_plan_status_get_with_http_info(async_req=True)
16581
+ >>> result = thread.get()
16582
+
16583
+ :param async_req bool: execute request asynchronously
16584
+ :param _return_http_data_only: response data without head status code
16585
+ and headers
16586
+ :param _preload_content: if False, the urllib3.HTTPResponse object will
16587
+ be returned without reading/decoding response
16588
+ data. Default is True.
16589
+ :param _request_timeout: timeout setting for this request. If one
16590
+ number provided, it will be total request
16591
+ timeout. It can also be a pair (tuple) of
16592
+ (connection, read) timeouts.
16593
+ :return: tuple(bool, status_code(int), headers(HTTPHeaderDict))
16594
+ If the method is called asynchronously,
16595
+ returns the request thread.
16596
+ """
16597
+
16598
+ local_var_params = locals()
16599
+
16600
+ all_params = [
16601
+ ]
16602
+ all_params.extend(
16603
+ [
16604
+ 'async_req',
16605
+ '_return_http_data_only',
16606
+ '_preload_content',
16607
+ '_request_timeout'
16608
+ ]
16609
+ )
16610
+
16611
+ for key, val in six.iteritems(local_var_params['kwargs']):
16612
+ if key not in all_params:
16613
+ raise ApiTypeError(
16614
+ "Got an unexpected keyword argument '%s'"
16615
+ " to method get_plan_status_api_v2_organization_billing_plan_status_get" % key
16616
+ )
16617
+ local_var_params[key] = val
16618
+ del local_var_params['kwargs']
16619
+
16620
+ collection_formats = {}
16621
+
16622
+ path_params = {}
16623
+
16624
+ query_params = []
16625
+
16626
+ header_params = {}
16627
+
16628
+ form_params = []
16629
+ local_var_files = {}
16630
+
16631
+ body_params = None
16632
+ # HTTP header `Accept`
16633
+ header_params['Accept'] = self.api_client.select_header_accept(
16634
+ ['application/json']) # noqa: E501
16635
+
16636
+ # Authentication setting
16637
+ auth_settings = [] # noqa: E501
16638
+
16639
+ return self.api_client.call_api(
16640
+ '/api/v2/organization_billing/plan_status', 'GET',
16641
+ path_params,
16642
+ query_params,
16643
+ header_params,
16644
+ body=body_params,
16645
+ post_params=form_params,
16646
+ files=local_var_files,
16647
+ response_type='bool', # noqa: E501
16648
+ auth_settings=auth_settings,
16649
+ async_req=local_var_params.get('async_req'),
16650
+ _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501
16651
+ _preload_content=local_var_params.get('_preload_content', True),
16652
+ _request_timeout=local_var_params.get('_request_timeout'),
16653
+ collection_formats=collection_formats)
16654
+
16443
16655
  def get_project_api_v2_projects_project_id_get(self, project_id, **kwargs): # noqa: E501
16444
16656
  """Get Project # noqa: E501
16445
16657
 
@@ -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
 
@@ -63,6 +63,7 @@ from openapi_client.models.build_registration import BuildRegistration
63
63
  from openapi_client.models.build_response import BuildResponse
64
64
  from openapi_client.models.build_status import BuildStatus
65
65
  from openapi_client.models.buildlogresponse_response import BuildlogresponseResponse
66
+ from openapi_client.models.cli_usage_payload import CLIUsagePayload
66
67
  from openapi_client.models.change_password_params import ChangePasswordParams
67
68
  from openapi_client.models.cleanup_leaked_grafana_dashboard_response import CleanupLeakedGrafanaDashboardResponse
68
69
  from openapi_client.models.cleanupleakedgrafanadashboardresponse_response import CleanupleakedgrafanadashboardresponseResponse
@@ -138,6 +139,9 @@ from openapi_client.models.clusterauthresponse_response import Clusterauthrespon
138
139
  from openapi_client.models.clusterevent_list_response import ClustereventListResponse
139
140
  from openapi_client.models.clustereventsoutput_response import ClustereventsoutputResponse
140
141
  from openapi_client.models.clusteroperation_response import ClusteroperationResponse
142
+ from openapi_client.models.commit_ledger_item_type import CommitLedgerItemType
143
+ from openapi_client.models.commit_ledger_record_v2 import CommitLedgerRecordV2
144
+ from openapi_client.models.complexity_level import ComplexityLevel
141
145
  from openapi_client.models.compute_node_type import ComputeNodeType
142
146
  from openapi_client.models.compute_stack import ComputeStack
143
147
  from openapi_client.models.compute_template import ComputeTemplate
@@ -189,6 +193,13 @@ from openapi_client.models.createcomputetemplateconfig_response import Createcom
189
193
  from openapi_client.models.createmachinepoolresponse_response import CreatemachinepoolresponseResponse
190
194
  from openapi_client.models.createmachineresponse_response import CreatemachineresponseResponse
191
195
  from openapi_client.models.createotpreturnapimodel_response import CreateotpreturnapimodelResponse
196
+ from openapi_client.models.credit_grant_record_v2 import CreditGrantRecordV2
197
+ from openapi_client.models.credit_ledger_item_type import CreditLedgerItemType
198
+ from openapi_client.models.credit_ledger_record_v2 import CreditLedgerRecordV2
199
+ from openapi_client.models.credit_record_commit_v2 import CreditRecordCommitV2
200
+ from openapi_client.models.credit_record_credit_v2 import CreditRecordCreditV2
201
+ from openapi_client.models.credit_type import CreditType
202
+ from openapi_client.models.credits_v2 import CreditsV2
192
203
  from openapi_client.models.customer_alert_status import CustomerAlertStatus
193
204
  from openapi_client.models.dataplane_services import DataplaneServices
194
205
  from openapi_client.models.dataset import Dataset