anyscale 0.24.88__py3-none-any.whl → 0.25.5__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 (148) hide show
  1. anyscale/__init__.py +56 -0
  2. anyscale/_private/anyscale_client/anyscale_client.py +179 -28
  3. anyscale/_private/anyscale_client/common.py +109 -2
  4. anyscale/_private/anyscale_client/fake_anyscale_client.py +239 -1
  5. anyscale/_private/docgen/README.md +1 -1
  6. anyscale/_private/docgen/__main__.py +71 -21
  7. anyscale/_private/docgen/api.md +13 -20
  8. anyscale/_private/docgen/generator.py +3 -2
  9. anyscale/_private/docgen/models.md +4 -49
  10. anyscale/_private/workload/workload_config.py +21 -7
  11. anyscale/aggregated_instance_usage/__init__.py +1 -1
  12. anyscale/aggregated_instance_usage/commands.py +2 -4
  13. anyscale/aggregated_instance_usage/models.py +8 -8
  14. anyscale/client/README.md +25 -22
  15. anyscale/client/openapi_client/__init__.py +16 -14
  16. anyscale/client/openapi_client/api/default_api.py +1139 -959
  17. anyscale/client/openapi_client/models/__init__.py +16 -14
  18. anyscale/client/openapi_client/models/baseimagesenum.py +43 -1
  19. anyscale/client/openapi_client/models/{session_event_types.py → cloud_deployment_config.py} +35 -24
  20. anyscale/client/openapi_client/models/{platformfinetuningjob_response.py → clouddeploymentconfig_response.py} +11 -11
  21. anyscale/client/openapi_client/models/{log_level_types.py → cluster_event_source.py} +12 -7
  22. anyscale/client/openapi_client/models/{company_size.py → cluster_size.py} +10 -10
  23. anyscale/client/openapi_client/models/cluster_status_details.py +2 -1
  24. anyscale/client/openapi_client/models/{sessionevent_list_response.py → clusterevent_list_response.py} +15 -15
  25. anyscale/client/openapi_client/models/create_experimental_workspace.py +29 -1
  26. anyscale/client/openapi_client/models/create_notification_channel_record.py +29 -3
  27. anyscale/client/openapi_client/models/decorated_interactive_session.py +1 -57
  28. anyscale/client/openapi_client/models/decorated_job.py +1 -57
  29. anyscale/client/openapi_client/models/decorated_job_submission.py +1 -29
  30. anyscale/client/openapi_client/models/decorated_production_job.py +1 -29
  31. anyscale/client/openapi_client/models/decorated_session.py +1 -57
  32. anyscale/client/openapi_client/models/decorated_unified_job.py +1 -30
  33. anyscale/client/openapi_client/models/{resubmit_ft_job_request.py → describe_machine_pool_request.py} +21 -20
  34. anyscale/client/openapi_client/models/describe_machine_pool_response.py +123 -0
  35. anyscale/client/openapi_client/models/describemachinepoolresponse_response.py +121 -0
  36. anyscale/client/openapi_client/models/ha_jobs_sort_field.py +1 -2
  37. anyscale/client/openapi_client/models/internal_production_job.py +1 -29
  38. anyscale/client/openapi_client/models/jobs_sort_field.py +1 -2
  39. anyscale/client/openapi_client/models/machine_allocation_state.py +3 -1
  40. anyscale/client/openapi_client/models/machine_state_info.py +326 -0
  41. anyscale/client/openapi_client/models/{fine_tuning_job_status.py → notification_channel_slack_config.py} +34 -16
  42. anyscale/client/openapi_client/models/organization_marketing_questions.py +80 -54
  43. anyscale/client/openapi_client/models/request_state_info.py +210 -0
  44. anyscale/client/openapi_client/models/{platformfinetuningjob_list_response.py → scheduler_info.py} +43 -38
  45. anyscale/client/openapi_client/models/serve_deployment_fast_api_docs_status.py +123 -0
  46. anyscale/client/openapi_client/models/serve_deployment_state.py +2 -1
  47. anyscale/client/openapi_client/models/servedeploymentfastapidocsstatus_response.py +121 -0
  48. anyscale/client/openapi_client/models/sessions_sort_field.py +1 -2
  49. anyscale/client/openapi_client/models/supportedbaseimagesenum.py +43 -1
  50. anyscale/client/openapi_client/models/unified_job_sort_field.py +1 -2
  51. anyscale/client/openapi_client/models/update_cloud_collaborator.py +121 -0
  52. anyscale/client/openapi_client/models/usage_by_cluster.py +28 -1
  53. anyscale/client/openapi_client/models/usage_by_user.py +30 -3
  54. anyscale/client/openapi_client/models/workload_info.py +210 -0
  55. anyscale/cloud/__init__.py +83 -0
  56. anyscale/cloud/_private/cloud_sdk.py +25 -0
  57. anyscale/cloud/commands.py +45 -0
  58. anyscale/cloud/models.py +91 -0
  59. anyscale/cluster_compute.py +1 -1
  60. anyscale/commands/aggregated_instance_usage_commands.py +4 -4
  61. anyscale/commands/cloud_commands.py +87 -14
  62. anyscale/commands/command_examples.py +65 -0
  63. anyscale/commands/job_commands.py +15 -3
  64. anyscale/commands/machine_pool_commands.py +113 -1
  65. anyscale/commands/organization_invitation_commands.py +98 -0
  66. anyscale/commands/project_commands.py +52 -2
  67. anyscale/commands/resource_quota_commands.py +98 -11
  68. anyscale/commands/service_account_commands.py +65 -8
  69. anyscale/commands/service_commands.py +61 -1
  70. anyscale/commands/session_commands_hidden.py +5 -1
  71. anyscale/commands/user_commands.py +1 -1
  72. anyscale/commands/util.py +2 -2
  73. anyscale/commands/workspace_commands.py +1 -1
  74. anyscale/connect.py +1 -1
  75. anyscale/connect_utils/project.py +7 -4
  76. anyscale/controllers/cloud_controller.py +63 -30
  77. anyscale/controllers/cloud_functional_verification_controller.py +1 -1
  78. anyscale/controllers/cluster_controller.py +3 -11
  79. anyscale/controllers/compute_config_controller.py +1 -1
  80. anyscale/controllers/experimental_integrations_controller.py +1 -1
  81. anyscale/controllers/job_controller.py +8 -6
  82. anyscale/controllers/list_controller.py +2 -2
  83. anyscale/controllers/machine_pool_controller.py +12 -1
  84. anyscale/controllers/project_controller.py +4 -3
  85. anyscale/controllers/schedule_controller.py +1 -1
  86. anyscale/controllers/service_controller.py +1 -1
  87. anyscale/controllers/workspace_controller.py +1 -1
  88. anyscale/models/job_model.py +1 -1
  89. anyscale/organization_invitation/__init__.py +61 -0
  90. anyscale/organization_invitation/_private/organization_invitation_sdk.py +24 -0
  91. anyscale/organization_invitation/commands.py +84 -0
  92. anyscale/organization_invitation/models.py +45 -0
  93. anyscale/project/__init__.py +35 -0
  94. anyscale/project/_private/project_sdk.py +27 -0
  95. anyscale/project/commands.py +56 -0
  96. anyscale/project/models.py +91 -0
  97. anyscale/{project.py → project_utils.py} +3 -4
  98. anyscale/resource_quota/__init__.py +99 -0
  99. anyscale/resource_quota/_private/resource_quota_sdk.py +120 -0
  100. anyscale/resource_quota/commands.py +150 -0
  101. anyscale/resource_quota/models.py +303 -0
  102. anyscale/scripts.py +4 -0
  103. anyscale/sdk/anyscale_client/__init__.py +0 -5
  104. anyscale/sdk/anyscale_client/api/default_api.py +119 -150
  105. anyscale/sdk/anyscale_client/models/__init__.py +0 -5
  106. anyscale/sdk/anyscale_client/models/baseimagesenum.py +43 -1
  107. anyscale/sdk/anyscale_client/models/cluster_status_details.py +2 -1
  108. anyscale/sdk/anyscale_client/models/jobs_sort_field.py +1 -2
  109. anyscale/sdk/anyscale_client/models/supportedbaseimagesenum.py +43 -1
  110. anyscale/sdk/anyscale_client/sdk.py +1 -1
  111. anyscale/service/__init__.py +21 -0
  112. anyscale/service/_private/service_sdk.py +13 -0
  113. anyscale/service/commands.py +35 -0
  114. anyscale/service_account/__init__.py +88 -0
  115. anyscale/service_account/_private/service_account_sdk.py +101 -0
  116. anyscale/service_account/commands.py +147 -0
  117. anyscale/service_account/models.py +66 -0
  118. anyscale/shared_anyscale_utils/latest_ray_version.py +1 -1
  119. anyscale/shared_anyscale_utils/utils/id_gen.py +2 -0
  120. anyscale/user/__init__.py +1 -1
  121. anyscale/user/commands.py +1 -1
  122. anyscale/user/models.py +25 -15
  123. anyscale/util.py +23 -0
  124. anyscale/utils/cloud_utils.py +1 -1
  125. anyscale/version.py +1 -1
  126. anyscale/workspace_utils.py +1 -1
  127. {anyscale-0.24.88.dist-info → anyscale-0.25.5.dist-info}/METADATA +1 -5
  128. {anyscale-0.24.88.dist-info → anyscale-0.25.5.dist-info}/RECORD +134 -119
  129. anyscale/client/openapi_client/models/create_fine_tuning_hyperparameters.py +0 -156
  130. anyscale/client/openapi_client/models/create_fine_tuning_job_product_request.py +0 -353
  131. anyscale/client/openapi_client/models/finish_ft_job_request.py +0 -204
  132. anyscale/client/openapi_client/models/platform_fine_tuning_job.py +0 -577
  133. anyscale/client/openapi_client/models/session_event.py +0 -267
  134. anyscale/client/openapi_client/models/session_event_cause.py +0 -150
  135. anyscale/controllers/resource_quota_controller.py +0 -183
  136. anyscale/controllers/service_account_controller.py +0 -168
  137. anyscale/sdk/anyscale_client/models/log_level_types.py +0 -100
  138. anyscale/sdk/anyscale_client/models/session_event.py +0 -267
  139. anyscale/sdk/anyscale_client/models/session_event_cause.py +0 -150
  140. anyscale/sdk/anyscale_client/models/session_event_types.py +0 -111
  141. anyscale/sdk/anyscale_client/models/sessionevent_list_response.py +0 -147
  142. anyscale/utils/imports/azure.py +0 -14
  143. /anyscale/{cloud.py → cloud_utils.py} +0 -0
  144. {anyscale-0.24.88.dist-info → anyscale-0.25.5.dist-info}/LICENSE +0 -0
  145. {anyscale-0.24.88.dist-info → anyscale-0.25.5.dist-info}/NOTICE +0 -0
  146. {anyscale-0.24.88.dist-info → anyscale-0.25.5.dist-info}/WHEEL +0 -0
  147. {anyscale-0.24.88.dist-info → anyscale-0.25.5.dist-info}/entry_points.txt +0 -0
  148. {anyscale-0.24.88.dist-info → anyscale-0.25.5.dist-info}/top_level.txt +0 -0
@@ -382,6 +382,140 @@ class DefaultApi(object):
382
382
  _request_timeout=local_var_params.get('_request_timeout'),
383
383
  collection_formats=collection_formats)
384
384
 
385
+ def alter_cloud_collaborator_api_v2_clouds_cloud_id_collaborators_users_identity_id_put(self, cloud_id, identity_id, update_cloud_collaborator, **kwargs): # noqa: E501
386
+ """Alter Cloud Collaborator # noqa: E501
387
+
388
+ This method makes a synchronous HTTP request by default. To make an
389
+ asynchronous HTTP request, please pass async_req=True
390
+ >>> thread = api.alter_cloud_collaborator_api_v2_clouds_cloud_id_collaborators_users_identity_id_put(cloud_id, identity_id, update_cloud_collaborator, async_req=True)
391
+ >>> result = thread.get()
392
+
393
+ :param async_req bool: execute request asynchronously
394
+ :param str cloud_id: (required)
395
+ :param str identity_id: (required)
396
+ :param UpdateCloudCollaborator update_cloud_collaborator: (required)
397
+ :param _preload_content: if False, the urllib3.HTTPResponse object will
398
+ be returned without reading/decoding response
399
+ data. Default is True.
400
+ :param _request_timeout: timeout setting for this request. If one
401
+ number provided, it will be total request
402
+ timeout. It can also be a pair (tuple) of
403
+ (connection, read) timeouts.
404
+ :return: None
405
+ If the method is called asynchronously,
406
+ returns the request thread.
407
+ """
408
+ kwargs['_return_http_data_only'] = True
409
+ return self.alter_cloud_collaborator_api_v2_clouds_cloud_id_collaborators_users_identity_id_put_with_http_info(cloud_id, identity_id, update_cloud_collaborator, **kwargs) # noqa: E501
410
+
411
+ def alter_cloud_collaborator_api_v2_clouds_cloud_id_collaborators_users_identity_id_put_with_http_info(self, cloud_id, identity_id, update_cloud_collaborator, **kwargs): # noqa: E501
412
+ """Alter Cloud Collaborator # noqa: E501
413
+
414
+ This method makes a synchronous HTTP request by default. To make an
415
+ asynchronous HTTP request, please pass async_req=True
416
+ >>> thread = api.alter_cloud_collaborator_api_v2_clouds_cloud_id_collaborators_users_identity_id_put_with_http_info(cloud_id, identity_id, update_cloud_collaborator, async_req=True)
417
+ >>> result = thread.get()
418
+
419
+ :param async_req bool: execute request asynchronously
420
+ :param str cloud_id: (required)
421
+ :param str identity_id: (required)
422
+ :param UpdateCloudCollaborator update_cloud_collaborator: (required)
423
+ :param _return_http_data_only: response data without head status code
424
+ and headers
425
+ :param _preload_content: if False, the urllib3.HTTPResponse object will
426
+ be returned without reading/decoding response
427
+ data. Default is True.
428
+ :param _request_timeout: timeout setting for this request. If one
429
+ number provided, it will be total request
430
+ timeout. It can also be a pair (tuple) of
431
+ (connection, read) timeouts.
432
+ :return: None
433
+ If the method is called asynchronously,
434
+ returns the request thread.
435
+ """
436
+
437
+ local_var_params = locals()
438
+
439
+ all_params = [
440
+ 'cloud_id',
441
+ 'identity_id',
442
+ 'update_cloud_collaborator'
443
+ ]
444
+ all_params.extend(
445
+ [
446
+ 'async_req',
447
+ '_return_http_data_only',
448
+ '_preload_content',
449
+ '_request_timeout'
450
+ ]
451
+ )
452
+
453
+ for key, val in six.iteritems(local_var_params['kwargs']):
454
+ if key not in all_params:
455
+ raise ApiTypeError(
456
+ "Got an unexpected keyword argument '%s'"
457
+ " to method alter_cloud_collaborator_api_v2_clouds_cloud_id_collaborators_users_identity_id_put" % key
458
+ )
459
+ local_var_params[key] = val
460
+ del local_var_params['kwargs']
461
+ # verify the required parameter 'cloud_id' is set
462
+ if self.api_client.client_side_validation and ('cloud_id' not in local_var_params or # noqa: E501
463
+ local_var_params['cloud_id'] is None): # noqa: E501
464
+ raise ApiValueError("Missing the required parameter `cloud_id` when calling `alter_cloud_collaborator_api_v2_clouds_cloud_id_collaborators_users_identity_id_put`") # noqa: E501
465
+ # verify the required parameter 'identity_id' is set
466
+ if self.api_client.client_side_validation and ('identity_id' not in local_var_params or # noqa: E501
467
+ local_var_params['identity_id'] is None): # noqa: E501
468
+ raise ApiValueError("Missing the required parameter `identity_id` when calling `alter_cloud_collaborator_api_v2_clouds_cloud_id_collaborators_users_identity_id_put`") # noqa: E501
469
+ # verify the required parameter 'update_cloud_collaborator' is set
470
+ if self.api_client.client_side_validation and ('update_cloud_collaborator' not in local_var_params or # noqa: E501
471
+ local_var_params['update_cloud_collaborator'] is None): # noqa: E501
472
+ raise ApiValueError("Missing the required parameter `update_cloud_collaborator` when calling `alter_cloud_collaborator_api_v2_clouds_cloud_id_collaborators_users_identity_id_put`") # noqa: E501
473
+
474
+ collection_formats = {}
475
+
476
+ path_params = {}
477
+ if 'cloud_id' in local_var_params:
478
+ path_params['cloud_id'] = local_var_params['cloud_id'] # noqa: E501
479
+ if 'identity_id' in local_var_params:
480
+ path_params['identity_id'] = local_var_params['identity_id'] # noqa: E501
481
+
482
+ query_params = []
483
+
484
+ header_params = {}
485
+
486
+ form_params = []
487
+ local_var_files = {}
488
+
489
+ body_params = None
490
+ if 'update_cloud_collaborator' in local_var_params:
491
+ body_params = local_var_params['update_cloud_collaborator']
492
+ # HTTP header `Accept`
493
+ header_params['Accept'] = self.api_client.select_header_accept(
494
+ ['application/json']) # noqa: E501
495
+
496
+ # HTTP header `Content-Type`
497
+ header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501
498
+ ['application/json']) # noqa: E501
499
+
500
+ # Authentication setting
501
+ auth_settings = [] # noqa: E501
502
+
503
+ return self.api_client.call_api(
504
+ '/api/v2/clouds/{cloud_id}/collaborators/users/{identity_id}', 'PUT',
505
+ path_params,
506
+ query_params,
507
+ header_params,
508
+ body=body_params,
509
+ post_params=form_params,
510
+ files=local_var_files,
511
+ response_type=None, # noqa: E501
512
+ auth_settings=auth_settings,
513
+ async_req=local_var_params.get('async_req'),
514
+ _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501
515
+ _preload_content=local_var_params.get('_preload_content', True),
516
+ _request_timeout=local_var_params.get('_request_timeout'),
517
+ collection_formats=collection_formats)
518
+
385
519
  def alter_organization_collaborator_api_v2_organization_collaborators_identity_id_put(self, identity_id, update_organization_collaborator, **kwargs): # noqa: E501
386
520
  """Alter Organization Collaborator # noqa: E501
387
521
 
@@ -1331,6 +1465,120 @@ class DefaultApi(object):
1331
1465
  _request_timeout=local_var_params.get('_request_timeout'),
1332
1466
  collection_formats=collection_formats)
1333
1467
 
1468
+ def archive_service_api_v2_services_v2_service_id_archive_post(self, service_id, **kwargs): # noqa: E501
1469
+ """Archive Service # noqa: E501
1470
+
1471
+ Archives a Service. It is a no-op if already archived. # noqa: E501
1472
+ This method makes a synchronous HTTP request by default. To make an
1473
+ asynchronous HTTP request, please pass async_req=True
1474
+ >>> thread = api.archive_service_api_v2_services_v2_service_id_archive_post(service_id, async_req=True)
1475
+ >>> result = thread.get()
1476
+
1477
+ :param async_req bool: execute request asynchronously
1478
+ :param str service_id: (required)
1479
+ :param _preload_content: if False, the urllib3.HTTPResponse object will
1480
+ be returned without reading/decoding response
1481
+ data. Default is True.
1482
+ :param _request_timeout: timeout setting for this request. If one
1483
+ number provided, it will be total request
1484
+ timeout. It can also be a pair (tuple) of
1485
+ (connection, read) timeouts.
1486
+ :return: None
1487
+ If the method is called asynchronously,
1488
+ returns the request thread.
1489
+ """
1490
+ kwargs['_return_http_data_only'] = True
1491
+ return self.archive_service_api_v2_services_v2_service_id_archive_post_with_http_info(service_id, **kwargs) # noqa: E501
1492
+
1493
+ def archive_service_api_v2_services_v2_service_id_archive_post_with_http_info(self, service_id, **kwargs): # noqa: E501
1494
+ """Archive Service # noqa: E501
1495
+
1496
+ Archives a Service. It is a no-op if already archived. # noqa: E501
1497
+ This method makes a synchronous HTTP request by default. To make an
1498
+ asynchronous HTTP request, please pass async_req=True
1499
+ >>> thread = api.archive_service_api_v2_services_v2_service_id_archive_post_with_http_info(service_id, async_req=True)
1500
+ >>> result = thread.get()
1501
+
1502
+ :param async_req bool: execute request asynchronously
1503
+ :param str service_id: (required)
1504
+ :param _return_http_data_only: response data without head status code
1505
+ and headers
1506
+ :param _preload_content: if False, the urllib3.HTTPResponse object will
1507
+ be returned without reading/decoding response
1508
+ data. Default is True.
1509
+ :param _request_timeout: timeout setting for this request. If one
1510
+ number provided, it will be total request
1511
+ timeout. It can also be a pair (tuple) of
1512
+ (connection, read) timeouts.
1513
+ :return: None
1514
+ If the method is called asynchronously,
1515
+ returns the request thread.
1516
+ """
1517
+
1518
+ local_var_params = locals()
1519
+
1520
+ all_params = [
1521
+ 'service_id'
1522
+ ]
1523
+ all_params.extend(
1524
+ [
1525
+ 'async_req',
1526
+ '_return_http_data_only',
1527
+ '_preload_content',
1528
+ '_request_timeout'
1529
+ ]
1530
+ )
1531
+
1532
+ for key, val in six.iteritems(local_var_params['kwargs']):
1533
+ if key not in all_params:
1534
+ raise ApiTypeError(
1535
+ "Got an unexpected keyword argument '%s'"
1536
+ " to method archive_service_api_v2_services_v2_service_id_archive_post" % key
1537
+ )
1538
+ local_var_params[key] = val
1539
+ del local_var_params['kwargs']
1540
+ # verify the required parameter 'service_id' is set
1541
+ if self.api_client.client_side_validation and ('service_id' not in local_var_params or # noqa: E501
1542
+ local_var_params['service_id'] is None): # noqa: E501
1543
+ raise ApiValueError("Missing the required parameter `service_id` when calling `archive_service_api_v2_services_v2_service_id_archive_post`") # noqa: E501
1544
+
1545
+ collection_formats = {}
1546
+
1547
+ path_params = {}
1548
+ if 'service_id' in local_var_params:
1549
+ path_params['service_id'] = local_var_params['service_id'] # noqa: E501
1550
+
1551
+ query_params = []
1552
+
1553
+ header_params = {}
1554
+
1555
+ form_params = []
1556
+ local_var_files = {}
1557
+
1558
+ body_params = None
1559
+ # HTTP header `Accept`
1560
+ header_params['Accept'] = self.api_client.select_header_accept(
1561
+ ['application/json']) # noqa: E501
1562
+
1563
+ # Authentication setting
1564
+ auth_settings = [] # noqa: E501
1565
+
1566
+ return self.api_client.call_api(
1567
+ '/api/v2/services-v2/{service_id}/archive', 'POST',
1568
+ path_params,
1569
+ query_params,
1570
+ header_params,
1571
+ body=body_params,
1572
+ post_params=form_params,
1573
+ files=local_var_files,
1574
+ response_type=None, # noqa: E501
1575
+ auth_settings=auth_settings,
1576
+ async_req=local_var_params.get('async_req'),
1577
+ _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501
1578
+ _preload_content=local_var_params.get('_preload_content', True),
1579
+ _request_timeout=local_var_params.get('_request_timeout'),
1580
+ collection_formats=collection_formats)
1581
+
1334
1582
  def attach_machine_pool_to_cloud_api_v2_machine_pools_attach_post(self, attach_machine_pool_to_cloud_request, **kwargs): # noqa: E501
1335
1583
  """Attach Machine Pool To Cloud # noqa: E501
1336
1584
 
@@ -1679,6 +1927,133 @@ class DefaultApi(object):
1679
1927
  _request_timeout=local_var_params.get('_request_timeout'),
1680
1928
  collection_formats=collection_formats)
1681
1929
 
1930
+ def batch_create_cloud_collaborators_api_v2_clouds_cloud_id_collaborators_users_batch_create_post(self, cloud_id, create_cloud_collaborator, **kwargs): # noqa: E501
1931
+ """Batch Create Cloud Collaborators # noqa: E501
1932
+
1933
+ Give users in the same organization as auth context who previously did not have any individual permissions for this cloud the designated permissions. An error will be raised if any of the users already has permissions # noqa: E501
1934
+ This method makes a synchronous HTTP request by default. To make an
1935
+ asynchronous HTTP request, please pass async_req=True
1936
+ >>> thread = api.batch_create_cloud_collaborators_api_v2_clouds_cloud_id_collaborators_users_batch_create_post(cloud_id, create_cloud_collaborator, async_req=True)
1937
+ >>> result = thread.get()
1938
+
1939
+ :param async_req bool: execute request asynchronously
1940
+ :param str cloud_id: (required)
1941
+ :param list[CreateCloudCollaborator] create_cloud_collaborator: (required)
1942
+ :param _preload_content: if False, the urllib3.HTTPResponse object will
1943
+ be returned without reading/decoding response
1944
+ data. Default is True.
1945
+ :param _request_timeout: timeout setting for this request. If one
1946
+ number provided, it will be total request
1947
+ timeout. It can also be a pair (tuple) of
1948
+ (connection, read) timeouts.
1949
+ :return: None
1950
+ If the method is called asynchronously,
1951
+ returns the request thread.
1952
+ """
1953
+ kwargs['_return_http_data_only'] = True
1954
+ return self.batch_create_cloud_collaborators_api_v2_clouds_cloud_id_collaborators_users_batch_create_post_with_http_info(cloud_id, create_cloud_collaborator, **kwargs) # noqa: E501
1955
+
1956
+ def batch_create_cloud_collaborators_api_v2_clouds_cloud_id_collaborators_users_batch_create_post_with_http_info(self, cloud_id, create_cloud_collaborator, **kwargs): # noqa: E501
1957
+ """Batch Create Cloud Collaborators # noqa: E501
1958
+
1959
+ Give users in the same organization as auth context who previously did not have any individual permissions for this cloud the designated permissions. An error will be raised if any of the users already has permissions # noqa: E501
1960
+ This method makes a synchronous HTTP request by default. To make an
1961
+ asynchronous HTTP request, please pass async_req=True
1962
+ >>> thread = api.batch_create_cloud_collaborators_api_v2_clouds_cloud_id_collaborators_users_batch_create_post_with_http_info(cloud_id, create_cloud_collaborator, async_req=True)
1963
+ >>> result = thread.get()
1964
+
1965
+ :param async_req bool: execute request asynchronously
1966
+ :param str cloud_id: (required)
1967
+ :param list[CreateCloudCollaborator] create_cloud_collaborator: (required)
1968
+ :param _return_http_data_only: response data without head status code
1969
+ and headers
1970
+ :param _preload_content: if False, the urllib3.HTTPResponse object will
1971
+ be returned without reading/decoding response
1972
+ data. Default is True.
1973
+ :param _request_timeout: timeout setting for this request. If one
1974
+ number provided, it will be total request
1975
+ timeout. It can also be a pair (tuple) of
1976
+ (connection, read) timeouts.
1977
+ :return: None
1978
+ If the method is called asynchronously,
1979
+ returns the request thread.
1980
+ """
1981
+
1982
+ local_var_params = locals()
1983
+
1984
+ all_params = [
1985
+ 'cloud_id',
1986
+ 'create_cloud_collaborator'
1987
+ ]
1988
+ all_params.extend(
1989
+ [
1990
+ 'async_req',
1991
+ '_return_http_data_only',
1992
+ '_preload_content',
1993
+ '_request_timeout'
1994
+ ]
1995
+ )
1996
+
1997
+ for key, val in six.iteritems(local_var_params['kwargs']):
1998
+ if key not in all_params:
1999
+ raise ApiTypeError(
2000
+ "Got an unexpected keyword argument '%s'"
2001
+ " to method batch_create_cloud_collaborators_api_v2_clouds_cloud_id_collaborators_users_batch_create_post" % key
2002
+ )
2003
+ local_var_params[key] = val
2004
+ del local_var_params['kwargs']
2005
+ # verify the required parameter 'cloud_id' is set
2006
+ if self.api_client.client_side_validation and ('cloud_id' not in local_var_params or # noqa: E501
2007
+ local_var_params['cloud_id'] is None): # noqa: E501
2008
+ raise ApiValueError("Missing the required parameter `cloud_id` when calling `batch_create_cloud_collaborators_api_v2_clouds_cloud_id_collaborators_users_batch_create_post`") # noqa: E501
2009
+ # verify the required parameter 'create_cloud_collaborator' is set
2010
+ if self.api_client.client_side_validation and ('create_cloud_collaborator' not in local_var_params or # noqa: E501
2011
+ local_var_params['create_cloud_collaborator'] is None): # noqa: E501
2012
+ raise ApiValueError("Missing the required parameter `create_cloud_collaborator` when calling `batch_create_cloud_collaborators_api_v2_clouds_cloud_id_collaborators_users_batch_create_post`") # noqa: E501
2013
+
2014
+ collection_formats = {}
2015
+
2016
+ path_params = {}
2017
+ if 'cloud_id' in local_var_params:
2018
+ path_params['cloud_id'] = local_var_params['cloud_id'] # noqa: E501
2019
+
2020
+ query_params = []
2021
+
2022
+ header_params = {}
2023
+
2024
+ form_params = []
2025
+ local_var_files = {}
2026
+
2027
+ body_params = None
2028
+ if 'create_cloud_collaborator' in local_var_params:
2029
+ body_params = local_var_params['create_cloud_collaborator']
2030
+ # HTTP header `Accept`
2031
+ header_params['Accept'] = self.api_client.select_header_accept(
2032
+ ['application/json']) # noqa: E501
2033
+
2034
+ # HTTP header `Content-Type`
2035
+ header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501
2036
+ ['application/json']) # noqa: E501
2037
+
2038
+ # Authentication setting
2039
+ auth_settings = [] # noqa: E501
2040
+
2041
+ return self.api_client.call_api(
2042
+ '/api/v2/clouds/{cloud_id}/collaborators/users/batch_create', 'POST',
2043
+ path_params,
2044
+ query_params,
2045
+ header_params,
2046
+ body=body_params,
2047
+ post_params=form_params,
2048
+ files=local_var_files,
2049
+ response_type=None, # noqa: E501
2050
+ auth_settings=auth_settings,
2051
+ async_req=local_var_params.get('async_req'),
2052
+ _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501
2053
+ _preload_content=local_var_params.get('_preload_content', True),
2054
+ _request_timeout=local_var_params.get('_request_timeout'),
2055
+ collection_formats=collection_formats)
2056
+
1682
2057
  def batch_create_invitations_api_v2_organization_invitations_batch_create_post(self, create_organization_invitation, **kwargs): # noqa: E501
1683
2058
  """Batch Create Invitations # noqa: E501
1684
2059
 
@@ -1795,6 +2170,131 @@ class DefaultApi(object):
1795
2170
  _request_timeout=local_var_params.get('_request_timeout'),
1796
2171
  collection_formats=collection_formats)
1797
2172
 
2173
+ def batch_create_project_collaborators_api_v2_projects_project_id_collaborators_users_batch_create_post(self, project_id, create_user_project_collaborator, **kwargs): # noqa: E501
2174
+ """Batch Create Project Collaborators # noqa: E501
2175
+
2176
+ This method makes a synchronous HTTP request by default. To make an
2177
+ asynchronous HTTP request, please pass async_req=True
2178
+ >>> thread = api.batch_create_project_collaborators_api_v2_projects_project_id_collaborators_users_batch_create_post(project_id, create_user_project_collaborator, async_req=True)
2179
+ >>> result = thread.get()
2180
+
2181
+ :param async_req bool: execute request asynchronously
2182
+ :param str project_id: (required)
2183
+ :param list[CreateUserProjectCollaborator] create_user_project_collaborator: (required)
2184
+ :param _preload_content: if False, the urllib3.HTTPResponse object will
2185
+ be returned without reading/decoding response
2186
+ data. Default is True.
2187
+ :param _request_timeout: timeout setting for this request. If one
2188
+ number provided, it will be total request
2189
+ timeout. It can also be a pair (tuple) of
2190
+ (connection, read) timeouts.
2191
+ :return: None
2192
+ If the method is called asynchronously,
2193
+ returns the request thread.
2194
+ """
2195
+ kwargs['_return_http_data_only'] = True
2196
+ return self.batch_create_project_collaborators_api_v2_projects_project_id_collaborators_users_batch_create_post_with_http_info(project_id, create_user_project_collaborator, **kwargs) # noqa: E501
2197
+
2198
+ def batch_create_project_collaborators_api_v2_projects_project_id_collaborators_users_batch_create_post_with_http_info(self, project_id, create_user_project_collaborator, **kwargs): # noqa: E501
2199
+ """Batch Create Project Collaborators # noqa: E501
2200
+
2201
+ This method makes a synchronous HTTP request by default. To make an
2202
+ asynchronous HTTP request, please pass async_req=True
2203
+ >>> thread = api.batch_create_project_collaborators_api_v2_projects_project_id_collaborators_users_batch_create_post_with_http_info(project_id, create_user_project_collaborator, async_req=True)
2204
+ >>> result = thread.get()
2205
+
2206
+ :param async_req bool: execute request asynchronously
2207
+ :param str project_id: (required)
2208
+ :param list[CreateUserProjectCollaborator] create_user_project_collaborator: (required)
2209
+ :param _return_http_data_only: response data without head status code
2210
+ and headers
2211
+ :param _preload_content: if False, the urllib3.HTTPResponse object will
2212
+ be returned without reading/decoding response
2213
+ data. Default is True.
2214
+ :param _request_timeout: timeout setting for this request. If one
2215
+ number provided, it will be total request
2216
+ timeout. It can also be a pair (tuple) of
2217
+ (connection, read) timeouts.
2218
+ :return: None
2219
+ If the method is called asynchronously,
2220
+ returns the request thread.
2221
+ """
2222
+
2223
+ local_var_params = locals()
2224
+
2225
+ all_params = [
2226
+ 'project_id',
2227
+ 'create_user_project_collaborator'
2228
+ ]
2229
+ all_params.extend(
2230
+ [
2231
+ 'async_req',
2232
+ '_return_http_data_only',
2233
+ '_preload_content',
2234
+ '_request_timeout'
2235
+ ]
2236
+ )
2237
+
2238
+ for key, val in six.iteritems(local_var_params['kwargs']):
2239
+ if key not in all_params:
2240
+ raise ApiTypeError(
2241
+ "Got an unexpected keyword argument '%s'"
2242
+ " to method batch_create_project_collaborators_api_v2_projects_project_id_collaborators_users_batch_create_post" % key
2243
+ )
2244
+ local_var_params[key] = val
2245
+ del local_var_params['kwargs']
2246
+ # verify the required parameter 'project_id' is set
2247
+ if self.api_client.client_side_validation and ('project_id' not in local_var_params or # noqa: E501
2248
+ local_var_params['project_id'] is None): # noqa: E501
2249
+ raise ApiValueError("Missing the required parameter `project_id` when calling `batch_create_project_collaborators_api_v2_projects_project_id_collaborators_users_batch_create_post`") # noqa: E501
2250
+ # verify the required parameter 'create_user_project_collaborator' is set
2251
+ if self.api_client.client_side_validation and ('create_user_project_collaborator' not in local_var_params or # noqa: E501
2252
+ local_var_params['create_user_project_collaborator'] is None): # noqa: E501
2253
+ raise ApiValueError("Missing the required parameter `create_user_project_collaborator` when calling `batch_create_project_collaborators_api_v2_projects_project_id_collaborators_users_batch_create_post`") # noqa: E501
2254
+
2255
+ collection_formats = {}
2256
+
2257
+ path_params = {}
2258
+ if 'project_id' in local_var_params:
2259
+ path_params['project_id'] = local_var_params['project_id'] # noqa: E501
2260
+
2261
+ query_params = []
2262
+
2263
+ header_params = {}
2264
+
2265
+ form_params = []
2266
+ local_var_files = {}
2267
+
2268
+ body_params = None
2269
+ if 'create_user_project_collaborator' in local_var_params:
2270
+ body_params = local_var_params['create_user_project_collaborator']
2271
+ # HTTP header `Accept`
2272
+ header_params['Accept'] = self.api_client.select_header_accept(
2273
+ ['application/json']) # noqa: E501
2274
+
2275
+ # HTTP header `Content-Type`
2276
+ header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501
2277
+ ['application/json']) # noqa: E501
2278
+
2279
+ # Authentication setting
2280
+ auth_settings = [] # noqa: E501
2281
+
2282
+ return self.api_client.call_api(
2283
+ '/api/v2/projects/{project_id}/collaborators/users/batch_create', 'POST',
2284
+ path_params,
2285
+ query_params,
2286
+ header_params,
2287
+ body=body_params,
2288
+ post_params=form_params,
2289
+ files=local_var_files,
2290
+ response_type=None, # noqa: E501
2291
+ auth_settings=auth_settings,
2292
+ async_req=local_var_params.get('async_req'),
2293
+ _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501
2294
+ _preload_content=local_var_params.get('_preload_content', True),
2295
+ _request_timeout=local_var_params.get('_request_timeout'),
2296
+ collection_formats=collection_formats)
2297
+
1798
2298
  def batch_get_job_api_v2_decorated_ha_jobs_batch_get_post(self, request_body, **kwargs): # noqa: E501
1799
2299
  """Batch Get Job # noqa: E501
1800
2300
 
@@ -3876,7 +4376,7 @@ class DefaultApi(object):
3876
4376
  def create_cloud_collaborator_api_v2_clouds_cloud_id_collaborators_users_post(self, cloud_id, create_cloud_collaborator, **kwargs): # noqa: E501
3877
4377
  """Create Cloud Collaborator # noqa: E501
3878
4378
 
3879
- Give a user in the same organization as auth context who previously did not have any individual permissions for this cloud the designated permissions. # noqa: E501
4379
+ Give a user in the same organization as auth context who previously did not have any individual permissions for this cloud the designated permissions. An error will be raised if the user already has permissions # noqa: E501
3880
4380
  This method makes a synchronous HTTP request by default. To make an
3881
4381
  asynchronous HTTP request, please pass async_req=True
3882
4382
  >>> thread = api.create_cloud_collaborator_api_v2_clouds_cloud_id_collaborators_users_post(cloud_id, create_cloud_collaborator, async_req=True)
@@ -3902,7 +4402,7 @@ class DefaultApi(object):
3902
4402
  def create_cloud_collaborator_api_v2_clouds_cloud_id_collaborators_users_post_with_http_info(self, cloud_id, create_cloud_collaborator, **kwargs): # noqa: E501
3903
4403
  """Create Cloud Collaborator # noqa: E501
3904
4404
 
3905
- Give a user in the same organization as auth context who previously did not have any individual permissions for this cloud the designated permissions. # noqa: E501
4405
+ Give a user in the same organization as auth context who previously did not have any individual permissions for this cloud the designated permissions. An error will be raised if the user already has permissions # noqa: E501
3906
4406
  This method makes a synchronous HTTP request by default. To make an
3907
4407
  asynchronous HTTP request, please pass async_req=True
3908
4408
  >>> thread = api.create_cloud_collaborator_api_v2_clouds_cloud_id_collaborators_users_post_with_http_info(cloud_id, create_cloud_collaborator, async_req=True)
@@ -4943,122 +5443,6 @@ class DefaultApi(object):
4943
5443
  _request_timeout=local_var_params.get('_request_timeout'),
4944
5444
  collection_formats=collection_formats)
4945
5445
 
4946
- def create_fine_tuning_job_api_v2_fine_tuning_jobs_create_post(self, create_fine_tuning_job_product_request, **kwargs): # noqa: E501
4947
- """Create Fine Tuning Job # noqa: E501
4948
-
4949
- This method makes a synchronous HTTP request by default. To make an
4950
- asynchronous HTTP request, please pass async_req=True
4951
- >>> thread = api.create_fine_tuning_job_api_v2_fine_tuning_jobs_create_post(create_fine_tuning_job_product_request, async_req=True)
4952
- >>> result = thread.get()
4953
-
4954
- :param async_req bool: execute request asynchronously
4955
- :param CreateFineTuningJobProductRequest create_fine_tuning_job_product_request: (required)
4956
- :param _preload_content: if False, the urllib3.HTTPResponse object will
4957
- be returned without reading/decoding response
4958
- data. Default is True.
4959
- :param _request_timeout: timeout setting for this request. If one
4960
- number provided, it will be total request
4961
- timeout. It can also be a pair (tuple) of
4962
- (connection, read) timeouts.
4963
- :return: PlatformfinetuningjobResponse
4964
- If the method is called asynchronously,
4965
- returns the request thread.
4966
- """
4967
- kwargs['_return_http_data_only'] = True
4968
- return self.create_fine_tuning_job_api_v2_fine_tuning_jobs_create_post_with_http_info(create_fine_tuning_job_product_request, **kwargs) # noqa: E501
4969
-
4970
- def create_fine_tuning_job_api_v2_fine_tuning_jobs_create_post_with_http_info(self, create_fine_tuning_job_product_request, **kwargs): # noqa: E501
4971
- """Create Fine Tuning Job # noqa: E501
4972
-
4973
- This method makes a synchronous HTTP request by default. To make an
4974
- asynchronous HTTP request, please pass async_req=True
4975
- >>> thread = api.create_fine_tuning_job_api_v2_fine_tuning_jobs_create_post_with_http_info(create_fine_tuning_job_product_request, async_req=True)
4976
- >>> result = thread.get()
4977
-
4978
- :param async_req bool: execute request asynchronously
4979
- :param CreateFineTuningJobProductRequest create_fine_tuning_job_product_request: (required)
4980
- :param _return_http_data_only: response data without head status code
4981
- and headers
4982
- :param _preload_content: if False, the urllib3.HTTPResponse object will
4983
- be returned without reading/decoding response
4984
- data. Default is True.
4985
- :param _request_timeout: timeout setting for this request. If one
4986
- number provided, it will be total request
4987
- timeout. It can also be a pair (tuple) of
4988
- (connection, read) timeouts.
4989
- :return: tuple(PlatformfinetuningjobResponse, status_code(int), headers(HTTPHeaderDict))
4990
- If the method is called asynchronously,
4991
- returns the request thread.
4992
- """
4993
-
4994
- local_var_params = locals()
4995
-
4996
- all_params = [
4997
- 'create_fine_tuning_job_product_request'
4998
- ]
4999
- all_params.extend(
5000
- [
5001
- 'async_req',
5002
- '_return_http_data_only',
5003
- '_preload_content',
5004
- '_request_timeout'
5005
- ]
5006
- )
5007
-
5008
- for key, val in six.iteritems(local_var_params['kwargs']):
5009
- if key not in all_params:
5010
- raise ApiTypeError(
5011
- "Got an unexpected keyword argument '%s'"
5012
- " to method create_fine_tuning_job_api_v2_fine_tuning_jobs_create_post" % key
5013
- )
5014
- local_var_params[key] = val
5015
- del local_var_params['kwargs']
5016
- # verify the required parameter 'create_fine_tuning_job_product_request' is set
5017
- if self.api_client.client_side_validation and ('create_fine_tuning_job_product_request' not in local_var_params or # noqa: E501
5018
- local_var_params['create_fine_tuning_job_product_request'] is None): # noqa: E501
5019
- raise ApiValueError("Missing the required parameter `create_fine_tuning_job_product_request` when calling `create_fine_tuning_job_api_v2_fine_tuning_jobs_create_post`") # noqa: E501
5020
-
5021
- collection_formats = {}
5022
-
5023
- path_params = {}
5024
-
5025
- query_params = []
5026
-
5027
- header_params = {}
5028
-
5029
- form_params = []
5030
- local_var_files = {}
5031
-
5032
- body_params = None
5033
- if 'create_fine_tuning_job_product_request' in local_var_params:
5034
- body_params = local_var_params['create_fine_tuning_job_product_request']
5035
- # HTTP header `Accept`
5036
- header_params['Accept'] = self.api_client.select_header_accept(
5037
- ['application/json']) # noqa: E501
5038
-
5039
- # HTTP header `Content-Type`
5040
- header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501
5041
- ['application/json']) # noqa: E501
5042
-
5043
- # Authentication setting
5044
- auth_settings = [] # noqa: E501
5045
-
5046
- return self.api_client.call_api(
5047
- '/api/v2/fine_tuning/jobs/create', 'POST',
5048
- path_params,
5049
- query_params,
5050
- header_params,
5051
- body=body_params,
5052
- post_params=form_params,
5053
- files=local_var_files,
5054
- response_type='PlatformfinetuningjobResponse', # noqa: E501
5055
- auth_settings=auth_settings,
5056
- async_req=local_var_params.get('async_req'),
5057
- _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501
5058
- _preload_content=local_var_params.get('_preload_content', True),
5059
- _request_timeout=local_var_params.get('_request_timeout'),
5060
- collection_formats=collection_formats)
5061
-
5062
5446
  def create_instance_usage_budget_api_v2_instance_usage_budgets_post(self, create_instance_usage_budget, **kwargs): # noqa: E501
5063
5447
  """Create Instance Usage Budget # noqa: E501
5064
5448
 
@@ -9136,6 +9520,124 @@ class DefaultApi(object):
9136
9520
  _request_timeout=local_var_params.get('_request_timeout'),
9137
9521
  collection_formats=collection_formats)
9138
9522
 
9523
+ def describe_machine_pool_api_v2_machine_pools_describe_post(self, describe_machine_pool_request, **kwargs): # noqa: E501
9524
+ """Describe Machine Pool # noqa: E501
9525
+
9526
+ Describe the current state of a machine pool. # noqa: E501
9527
+ This method makes a synchronous HTTP request by default. To make an
9528
+ asynchronous HTTP request, please pass async_req=True
9529
+ >>> thread = api.describe_machine_pool_api_v2_machine_pools_describe_post(describe_machine_pool_request, async_req=True)
9530
+ >>> result = thread.get()
9531
+
9532
+ :param async_req bool: execute request asynchronously
9533
+ :param DescribeMachinePoolRequest describe_machine_pool_request: (required)
9534
+ :param _preload_content: if False, the urllib3.HTTPResponse object will
9535
+ be returned without reading/decoding response
9536
+ data. Default is True.
9537
+ :param _request_timeout: timeout setting for this request. If one
9538
+ number provided, it will be total request
9539
+ timeout. It can also be a pair (tuple) of
9540
+ (connection, read) timeouts.
9541
+ :return: DescribemachinepoolresponseResponse
9542
+ If the method is called asynchronously,
9543
+ returns the request thread.
9544
+ """
9545
+ kwargs['_return_http_data_only'] = True
9546
+ return self.describe_machine_pool_api_v2_machine_pools_describe_post_with_http_info(describe_machine_pool_request, **kwargs) # noqa: E501
9547
+
9548
+ def describe_machine_pool_api_v2_machine_pools_describe_post_with_http_info(self, describe_machine_pool_request, **kwargs): # noqa: E501
9549
+ """Describe Machine Pool # noqa: E501
9550
+
9551
+ Describe the current state of a machine pool. # noqa: E501
9552
+ This method makes a synchronous HTTP request by default. To make an
9553
+ asynchronous HTTP request, please pass async_req=True
9554
+ >>> thread = api.describe_machine_pool_api_v2_machine_pools_describe_post_with_http_info(describe_machine_pool_request, async_req=True)
9555
+ >>> result = thread.get()
9556
+
9557
+ :param async_req bool: execute request asynchronously
9558
+ :param DescribeMachinePoolRequest describe_machine_pool_request: (required)
9559
+ :param _return_http_data_only: response data without head status code
9560
+ and headers
9561
+ :param _preload_content: if False, the urllib3.HTTPResponse object will
9562
+ be returned without reading/decoding response
9563
+ data. Default is True.
9564
+ :param _request_timeout: timeout setting for this request. If one
9565
+ number provided, it will be total request
9566
+ timeout. It can also be a pair (tuple) of
9567
+ (connection, read) timeouts.
9568
+ :return: tuple(DescribemachinepoolresponseResponse, status_code(int), headers(HTTPHeaderDict))
9569
+ If the method is called asynchronously,
9570
+ returns the request thread.
9571
+ """
9572
+
9573
+ local_var_params = locals()
9574
+
9575
+ all_params = [
9576
+ 'describe_machine_pool_request'
9577
+ ]
9578
+ all_params.extend(
9579
+ [
9580
+ 'async_req',
9581
+ '_return_http_data_only',
9582
+ '_preload_content',
9583
+ '_request_timeout'
9584
+ ]
9585
+ )
9586
+
9587
+ for key, val in six.iteritems(local_var_params['kwargs']):
9588
+ if key not in all_params:
9589
+ raise ApiTypeError(
9590
+ "Got an unexpected keyword argument '%s'"
9591
+ " to method describe_machine_pool_api_v2_machine_pools_describe_post" % key
9592
+ )
9593
+ local_var_params[key] = val
9594
+ del local_var_params['kwargs']
9595
+ # verify the required parameter 'describe_machine_pool_request' is set
9596
+ if self.api_client.client_side_validation and ('describe_machine_pool_request' not in local_var_params or # noqa: E501
9597
+ local_var_params['describe_machine_pool_request'] is None): # noqa: E501
9598
+ raise ApiValueError("Missing the required parameter `describe_machine_pool_request` when calling `describe_machine_pool_api_v2_machine_pools_describe_post`") # noqa: E501
9599
+
9600
+ collection_formats = {}
9601
+
9602
+ path_params = {}
9603
+
9604
+ query_params = []
9605
+
9606
+ header_params = {}
9607
+
9608
+ form_params = []
9609
+ local_var_files = {}
9610
+
9611
+ body_params = None
9612
+ if 'describe_machine_pool_request' in local_var_params:
9613
+ body_params = local_var_params['describe_machine_pool_request']
9614
+ # HTTP header `Accept`
9615
+ header_params['Accept'] = self.api_client.select_header_accept(
9616
+ ['application/json']) # noqa: E501
9617
+
9618
+ # HTTP header `Content-Type`
9619
+ header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501
9620
+ ['application/json']) # noqa: E501
9621
+
9622
+ # Authentication setting
9623
+ auth_settings = [] # noqa: E501
9624
+
9625
+ return self.api_client.call_api(
9626
+ '/api/v2/machine_pools/describe', 'POST',
9627
+ path_params,
9628
+ query_params,
9629
+ header_params,
9630
+ body=body_params,
9631
+ post_params=form_params,
9632
+ files=local_var_files,
9633
+ response_type='DescribemachinepoolresponseResponse', # noqa: E501
9634
+ auth_settings=auth_settings,
9635
+ async_req=local_var_params.get('async_req'),
9636
+ _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501
9637
+ _preload_content=local_var_params.get('_preload_content', True),
9638
+ _request_timeout=local_var_params.get('_request_timeout'),
9639
+ collection_formats=collection_formats)
9640
+
9139
9641
  def describe_session_api_v2_sessions_session_id_describe_get(self, session_id, **kwargs): # noqa: E501
9140
9642
  """Describe Session # noqa: E501
9141
9643
 
@@ -11723,122 +12225,6 @@ class DefaultApi(object):
11723
12225
  _request_timeout=local_var_params.get('_request_timeout'),
11724
12226
  collection_formats=collection_formats)
11725
12227
 
11726
- def fine_tuning_job_callback_api_v2_fine_tuning_jobs_internal_finish_post(self, finish_ft_job_request, **kwargs): # noqa: E501
11727
- """Fine Tuning Job Callback # noqa: E501
11728
-
11729
- This method makes a synchronous HTTP request by default. To make an
11730
- asynchronous HTTP request, please pass async_req=True
11731
- >>> thread = api.fine_tuning_job_callback_api_v2_fine_tuning_jobs_internal_finish_post(finish_ft_job_request, async_req=True)
11732
- >>> result = thread.get()
11733
-
11734
- :param async_req bool: execute request asynchronously
11735
- :param FinishFTJobRequest finish_ft_job_request: (required)
11736
- :param _preload_content: if False, the urllib3.HTTPResponse object will
11737
- be returned without reading/decoding response
11738
- data. Default is True.
11739
- :param _request_timeout: timeout setting for this request. If one
11740
- number provided, it will be total request
11741
- timeout. It can also be a pair (tuple) of
11742
- (connection, read) timeouts.
11743
- :return: None
11744
- If the method is called asynchronously,
11745
- returns the request thread.
11746
- """
11747
- kwargs['_return_http_data_only'] = True
11748
- return self.fine_tuning_job_callback_api_v2_fine_tuning_jobs_internal_finish_post_with_http_info(finish_ft_job_request, **kwargs) # noqa: E501
11749
-
11750
- def fine_tuning_job_callback_api_v2_fine_tuning_jobs_internal_finish_post_with_http_info(self, finish_ft_job_request, **kwargs): # noqa: E501
11751
- """Fine Tuning Job Callback # noqa: E501
11752
-
11753
- This method makes a synchronous HTTP request by default. To make an
11754
- asynchronous HTTP request, please pass async_req=True
11755
- >>> thread = api.fine_tuning_job_callback_api_v2_fine_tuning_jobs_internal_finish_post_with_http_info(finish_ft_job_request, async_req=True)
11756
- >>> result = thread.get()
11757
-
11758
- :param async_req bool: execute request asynchronously
11759
- :param FinishFTJobRequest finish_ft_job_request: (required)
11760
- :param _return_http_data_only: response data without head status code
11761
- and headers
11762
- :param _preload_content: if False, the urllib3.HTTPResponse object will
11763
- be returned without reading/decoding response
11764
- data. Default is True.
11765
- :param _request_timeout: timeout setting for this request. If one
11766
- number provided, it will be total request
11767
- timeout. It can also be a pair (tuple) of
11768
- (connection, read) timeouts.
11769
- :return: None
11770
- If the method is called asynchronously,
11771
- returns the request thread.
11772
- """
11773
-
11774
- local_var_params = locals()
11775
-
11776
- all_params = [
11777
- 'finish_ft_job_request'
11778
- ]
11779
- all_params.extend(
11780
- [
11781
- 'async_req',
11782
- '_return_http_data_only',
11783
- '_preload_content',
11784
- '_request_timeout'
11785
- ]
11786
- )
11787
-
11788
- for key, val in six.iteritems(local_var_params['kwargs']):
11789
- if key not in all_params:
11790
- raise ApiTypeError(
11791
- "Got an unexpected keyword argument '%s'"
11792
- " to method fine_tuning_job_callback_api_v2_fine_tuning_jobs_internal_finish_post" % key
11793
- )
11794
- local_var_params[key] = val
11795
- del local_var_params['kwargs']
11796
- # verify the required parameter 'finish_ft_job_request' is set
11797
- if self.api_client.client_side_validation and ('finish_ft_job_request' not in local_var_params or # noqa: E501
11798
- local_var_params['finish_ft_job_request'] is None): # noqa: E501
11799
- raise ApiValueError("Missing the required parameter `finish_ft_job_request` when calling `fine_tuning_job_callback_api_v2_fine_tuning_jobs_internal_finish_post`") # noqa: E501
11800
-
11801
- collection_formats = {}
11802
-
11803
- path_params = {}
11804
-
11805
- query_params = []
11806
-
11807
- header_params = {}
11808
-
11809
- form_params = []
11810
- local_var_files = {}
11811
-
11812
- body_params = None
11813
- if 'finish_ft_job_request' in local_var_params:
11814
- body_params = local_var_params['finish_ft_job_request']
11815
- # HTTP header `Accept`
11816
- header_params['Accept'] = self.api_client.select_header_accept(
11817
- ['application/json']) # noqa: E501
11818
-
11819
- # HTTP header `Content-Type`
11820
- header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501
11821
- ['application/json']) # noqa: E501
11822
-
11823
- # Authentication setting
11824
- auth_settings = [] # noqa: E501
11825
-
11826
- return self.api_client.call_api(
11827
- '/api/v2/fine_tuning/jobs/internal/finish', 'POST',
11828
- path_params,
11829
- query_params,
11830
- header_params,
11831
- body=body_params,
11832
- post_params=form_params,
11833
- files=local_var_files,
11834
- response_type=None, # noqa: E501
11835
- auth_settings=auth_settings,
11836
- async_req=local_var_params.get('async_req'),
11837
- _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501
11838
- _preload_content=local_var_params.get('_preload_content', True),
11839
- _request_timeout=local_var_params.get('_request_timeout'),
11840
- collection_formats=collection_formats)
11841
-
11842
12228
  def fine_tuning_job_callback_v2_api_v2_fine_tuning_v2_jobs_internal_finish_post(self, finish_ft_job_request_v2, **kwargs): # noqa: E501
11843
12229
  """Fine Tuning Job Callback V2 # noqa: E501
11844
12230
 
@@ -13318,6 +13704,127 @@ class DefaultApi(object):
13318
13704
  _request_timeout=local_var_params.get('_request_timeout'),
13319
13705
  collection_formats=collection_formats)
13320
13706
 
13707
+ def get_cloud_deployment_config_api_v2_clouds_cloud_id_deployment_cloud_deployment_id_config_get(self, cloud_id, cloud_deployment_id, **kwargs): # noqa: E501
13708
+ """Get Cloud Deployment Config # noqa: E501
13709
+
13710
+ This method makes a synchronous HTTP request by default. To make an
13711
+ asynchronous HTTP request, please pass async_req=True
13712
+ >>> thread = api.get_cloud_deployment_config_api_v2_clouds_cloud_id_deployment_cloud_deployment_id_config_get(cloud_id, cloud_deployment_id, async_req=True)
13713
+ >>> result = thread.get()
13714
+
13715
+ :param async_req bool: execute request asynchronously
13716
+ :param str cloud_id: (required)
13717
+ :param str cloud_deployment_id: (required)
13718
+ :param _preload_content: if False, the urllib3.HTTPResponse object will
13719
+ be returned without reading/decoding response
13720
+ data. Default is True.
13721
+ :param _request_timeout: timeout setting for this request. If one
13722
+ number provided, it will be total request
13723
+ timeout. It can also be a pair (tuple) of
13724
+ (connection, read) timeouts.
13725
+ :return: ClouddeploymentconfigResponse
13726
+ If the method is called asynchronously,
13727
+ returns the request thread.
13728
+ """
13729
+ kwargs['_return_http_data_only'] = True
13730
+ return self.get_cloud_deployment_config_api_v2_clouds_cloud_id_deployment_cloud_deployment_id_config_get_with_http_info(cloud_id, cloud_deployment_id, **kwargs) # noqa: E501
13731
+
13732
+ def get_cloud_deployment_config_api_v2_clouds_cloud_id_deployment_cloud_deployment_id_config_get_with_http_info(self, cloud_id, cloud_deployment_id, **kwargs): # noqa: E501
13733
+ """Get Cloud Deployment Config # noqa: E501
13734
+
13735
+ This method makes a synchronous HTTP request by default. To make an
13736
+ asynchronous HTTP request, please pass async_req=True
13737
+ >>> thread = api.get_cloud_deployment_config_api_v2_clouds_cloud_id_deployment_cloud_deployment_id_config_get_with_http_info(cloud_id, cloud_deployment_id, async_req=True)
13738
+ >>> result = thread.get()
13739
+
13740
+ :param async_req bool: execute request asynchronously
13741
+ :param str cloud_id: (required)
13742
+ :param str cloud_deployment_id: (required)
13743
+ :param _return_http_data_only: response data without head status code
13744
+ and headers
13745
+ :param _preload_content: if False, the urllib3.HTTPResponse object will
13746
+ be returned without reading/decoding response
13747
+ data. Default is True.
13748
+ :param _request_timeout: timeout setting for this request. If one
13749
+ number provided, it will be total request
13750
+ timeout. It can also be a pair (tuple) of
13751
+ (connection, read) timeouts.
13752
+ :return: tuple(ClouddeploymentconfigResponse, status_code(int), headers(HTTPHeaderDict))
13753
+ If the method is called asynchronously,
13754
+ returns the request thread.
13755
+ """
13756
+
13757
+ local_var_params = locals()
13758
+
13759
+ all_params = [
13760
+ 'cloud_id',
13761
+ 'cloud_deployment_id'
13762
+ ]
13763
+ all_params.extend(
13764
+ [
13765
+ 'async_req',
13766
+ '_return_http_data_only',
13767
+ '_preload_content',
13768
+ '_request_timeout'
13769
+ ]
13770
+ )
13771
+
13772
+ for key, val in six.iteritems(local_var_params['kwargs']):
13773
+ if key not in all_params:
13774
+ raise ApiTypeError(
13775
+ "Got an unexpected keyword argument '%s'"
13776
+ " to method get_cloud_deployment_config_api_v2_clouds_cloud_id_deployment_cloud_deployment_id_config_get" % key
13777
+ )
13778
+ local_var_params[key] = val
13779
+ del local_var_params['kwargs']
13780
+ # verify the required parameter 'cloud_id' is set
13781
+ if self.api_client.client_side_validation and ('cloud_id' not in local_var_params or # noqa: E501
13782
+ local_var_params['cloud_id'] is None): # noqa: E501
13783
+ raise ApiValueError("Missing the required parameter `cloud_id` when calling `get_cloud_deployment_config_api_v2_clouds_cloud_id_deployment_cloud_deployment_id_config_get`") # noqa: E501
13784
+ # verify the required parameter 'cloud_deployment_id' is set
13785
+ if self.api_client.client_side_validation and ('cloud_deployment_id' not in local_var_params or # noqa: E501
13786
+ local_var_params['cloud_deployment_id'] is None): # noqa: E501
13787
+ raise ApiValueError("Missing the required parameter `cloud_deployment_id` when calling `get_cloud_deployment_config_api_v2_clouds_cloud_id_deployment_cloud_deployment_id_config_get`") # noqa: E501
13788
+
13789
+ collection_formats = {}
13790
+
13791
+ path_params = {}
13792
+ if 'cloud_id' in local_var_params:
13793
+ path_params['cloud_id'] = local_var_params['cloud_id'] # noqa: E501
13794
+ if 'cloud_deployment_id' in local_var_params:
13795
+ path_params['cloud_deployment_id'] = local_var_params['cloud_deployment_id'] # noqa: E501
13796
+
13797
+ query_params = []
13798
+
13799
+ header_params = {}
13800
+
13801
+ form_params = []
13802
+ local_var_files = {}
13803
+
13804
+ body_params = None
13805
+ # HTTP header `Accept`
13806
+ header_params['Accept'] = self.api_client.select_header_accept(
13807
+ ['application/json']) # noqa: E501
13808
+
13809
+ # Authentication setting
13810
+ auth_settings = [] # noqa: E501
13811
+
13812
+ return self.api_client.call_api(
13813
+ '/api/v2/clouds/{cloud_id}/deployment/{cloud_deployment_id}/config', 'GET',
13814
+ path_params,
13815
+ query_params,
13816
+ header_params,
13817
+ body=body_params,
13818
+ post_params=form_params,
13819
+ files=local_var_files,
13820
+ response_type='ClouddeploymentconfigResponse', # noqa: E501
13821
+ auth_settings=auth_settings,
13822
+ async_req=local_var_params.get('async_req'),
13823
+ _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501
13824
+ _preload_content=local_var_params.get('_preload_content', True),
13825
+ _request_timeout=local_var_params.get('_request_timeout'),
13826
+ collection_formats=collection_formats)
13827
+
13321
13828
  def get_cloud_overview_dashboard_api_v2_clouds_cloud_id_cloud_overview_dashboard_get(self, cloud_id, **kwargs): # noqa: E501
13322
13829
  """Get Cloud Overview Dashboard # noqa: E501
13323
13830
 
@@ -13774,6 +14281,142 @@ class DefaultApi(object):
13774
14281
  _request_timeout=local_var_params.get('_request_timeout'),
13775
14282
  collection_formats=collection_formats)
13776
14283
 
14284
+ def get_cluster_events_api_v2_sessions_session_id_cluster_events_get(self, session_id, **kwargs): # noqa: E501
14285
+ """Get Cluster Events # noqa: E501
14286
+
14287
+ Return events for this cluster. There are multiple endpoints to return events. This endpoint is for the UI to fetch events. This should power general observability event views shared by different workload types. Like the task view or the Train dashboard view. The /events endpoint is used by the dataplane to fetch events and has cluster auth requirements. Finally, there are events endpoints for each workload type (workspaces, jobs, services). Those endpoints have some additional logic to stitch together cluster events with workload-specific events. # noqa: E501
14288
+ This method makes a synchronous HTTP request by default. To make an
14289
+ asynchronous HTTP request, please pass async_req=True
14290
+ >>> thread = api.get_cluster_events_api_v2_sessions_session_id_cluster_events_get(session_id, async_req=True)
14291
+ >>> result = thread.get()
14292
+
14293
+ :param async_req bool: execute request asynchronously
14294
+ :param str session_id: (required)
14295
+ :param datetime start_time: Filter for events that have occurred since this value
14296
+ :param datetime end_time: Filter for events that have occurred before this value
14297
+ :param list[ClusterEventSource] sources: Filter for events from these sources
14298
+ :param list[str] autoscaler_resource_bundles: Filter for autoscaler events relevant to specific resource bundles.Each string should be a JSON-encoded resource bundle. We accept a string here because query params do not support dictionaries. Ex: ['{\"CPU\": 1, \"GPU\": 1}', '{\"GPU\": 1}']
14299
+ :param _preload_content: if False, the urllib3.HTTPResponse object will
14300
+ be returned without reading/decoding response
14301
+ data. Default is True.
14302
+ :param _request_timeout: timeout setting for this request. If one
14303
+ number provided, it will be total request
14304
+ timeout. It can also be a pair (tuple) of
14305
+ (connection, read) timeouts.
14306
+ :return: ClustereventListResponse
14307
+ If the method is called asynchronously,
14308
+ returns the request thread.
14309
+ """
14310
+ kwargs['_return_http_data_only'] = True
14311
+ return self.get_cluster_events_api_v2_sessions_session_id_cluster_events_get_with_http_info(session_id, **kwargs) # noqa: E501
14312
+
14313
+ def get_cluster_events_api_v2_sessions_session_id_cluster_events_get_with_http_info(self, session_id, **kwargs): # noqa: E501
14314
+ """Get Cluster Events # noqa: E501
14315
+
14316
+ Return events for this cluster. There are multiple endpoints to return events. This endpoint is for the UI to fetch events. This should power general observability event views shared by different workload types. Like the task view or the Train dashboard view. The /events endpoint is used by the dataplane to fetch events and has cluster auth requirements. Finally, there are events endpoints for each workload type (workspaces, jobs, services). Those endpoints have some additional logic to stitch together cluster events with workload-specific events. # noqa: E501
14317
+ This method makes a synchronous HTTP request by default. To make an
14318
+ asynchronous HTTP request, please pass async_req=True
14319
+ >>> thread = api.get_cluster_events_api_v2_sessions_session_id_cluster_events_get_with_http_info(session_id, async_req=True)
14320
+ >>> result = thread.get()
14321
+
14322
+ :param async_req bool: execute request asynchronously
14323
+ :param str session_id: (required)
14324
+ :param datetime start_time: Filter for events that have occurred since this value
14325
+ :param datetime end_time: Filter for events that have occurred before this value
14326
+ :param list[ClusterEventSource] sources: Filter for events from these sources
14327
+ :param list[str] autoscaler_resource_bundles: Filter for autoscaler events relevant to specific resource bundles.Each string should be a JSON-encoded resource bundle. We accept a string here because query params do not support dictionaries. Ex: ['{\"CPU\": 1, \"GPU\": 1}', '{\"GPU\": 1}']
14328
+ :param _return_http_data_only: response data without head status code
14329
+ and headers
14330
+ :param _preload_content: if False, the urllib3.HTTPResponse object will
14331
+ be returned without reading/decoding response
14332
+ data. Default is True.
14333
+ :param _request_timeout: timeout setting for this request. If one
14334
+ number provided, it will be total request
14335
+ timeout. It can also be a pair (tuple) of
14336
+ (connection, read) timeouts.
14337
+ :return: tuple(ClustereventListResponse, status_code(int), headers(HTTPHeaderDict))
14338
+ If the method is called asynchronously,
14339
+ returns the request thread.
14340
+ """
14341
+
14342
+ local_var_params = locals()
14343
+
14344
+ all_params = [
14345
+ 'session_id',
14346
+ 'start_time',
14347
+ 'end_time',
14348
+ 'sources',
14349
+ 'autoscaler_resource_bundles'
14350
+ ]
14351
+ all_params.extend(
14352
+ [
14353
+ 'async_req',
14354
+ '_return_http_data_only',
14355
+ '_preload_content',
14356
+ '_request_timeout'
14357
+ ]
14358
+ )
14359
+
14360
+ for key, val in six.iteritems(local_var_params['kwargs']):
14361
+ if key not in all_params:
14362
+ raise ApiTypeError(
14363
+ "Got an unexpected keyword argument '%s'"
14364
+ " to method get_cluster_events_api_v2_sessions_session_id_cluster_events_get" % key
14365
+ )
14366
+ local_var_params[key] = val
14367
+ del local_var_params['kwargs']
14368
+ # verify the required parameter 'session_id' is set
14369
+ if self.api_client.client_side_validation and ('session_id' not in local_var_params or # noqa: E501
14370
+ local_var_params['session_id'] is None): # noqa: E501
14371
+ raise ApiValueError("Missing the required parameter `session_id` when calling `get_cluster_events_api_v2_sessions_session_id_cluster_events_get`") # noqa: E501
14372
+
14373
+ collection_formats = {}
14374
+
14375
+ path_params = {}
14376
+ if 'session_id' in local_var_params:
14377
+ path_params['session_id'] = local_var_params['session_id'] # noqa: E501
14378
+
14379
+ query_params = []
14380
+ if 'start_time' in local_var_params and local_var_params['start_time'] is not None: # noqa: E501
14381
+ query_params.append(('start_time', local_var_params['start_time'])) # noqa: E501
14382
+ if 'end_time' in local_var_params and local_var_params['end_time'] is not None: # noqa: E501
14383
+ query_params.append(('end_time', local_var_params['end_time'])) # noqa: E501
14384
+ if 'sources' in local_var_params and local_var_params['sources'] is not None: # noqa: E501
14385
+ query_params.append(('sources', local_var_params['sources'])) # noqa: E501
14386
+ collection_formats['sources'] = 'multi' # noqa: E501
14387
+ if 'autoscaler_resource_bundles' in local_var_params and local_var_params['autoscaler_resource_bundles'] is not None: # noqa: E501
14388
+ query_params.append(('autoscaler_resource_bundles', local_var_params['autoscaler_resource_bundles'])) # noqa: E501
14389
+ collection_formats['autoscaler_resource_bundles'] = 'multi' # noqa: E501
14390
+
14391
+ header_params = {}
14392
+
14393
+ form_params = []
14394
+ local_var_files = {}
14395
+
14396
+ body_params = None
14397
+ # HTTP header `Accept`
14398
+ header_params['Accept'] = self.api_client.select_header_accept(
14399
+ ['application/json']) # noqa: E501
14400
+
14401
+ # Authentication setting
14402
+ auth_settings = [] # noqa: E501
14403
+
14404
+ return self.api_client.call_api(
14405
+ '/api/v2/sessions/{session_id}/cluster_events', 'GET',
14406
+ path_params,
14407
+ query_params,
14408
+ header_params,
14409
+ body=body_params,
14410
+ post_params=form_params,
14411
+ files=local_var_files,
14412
+ response_type='ClustereventListResponse', # noqa: E501
14413
+ auth_settings=auth_settings,
14414
+ async_req=local_var_params.get('async_req'),
14415
+ _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501
14416
+ _preload_content=local_var_params.get('_preload_content', True),
14417
+ _request_timeout=local_var_params.get('_request_timeout'),
14418
+ collection_formats=collection_formats)
14419
+
13777
14420
  def get_cluster_product_autoscaler_flag_api_v2_logs_cluster_product_autoscaler_flag_session_id_get(self, session_id, **kwargs): # noqa: E501
13778
14421
  """Get Cluster Product Autoscaler Flag # noqa: E501
13779
14422
 
@@ -15502,6 +16145,120 @@ class DefaultApi(object):
15502
16145
  _request_timeout=local_var_params.get('_request_timeout'),
15503
16146
  collection_formats=collection_formats)
15504
16147
 
16148
+ def get_decorated_serve_deployment_fast_api_docs_status_api_v2_decorated_serve_deployments_serve_deployment_id_fast_api_docs_status_get(self, serve_deployment_id, **kwargs): # noqa: E501
16149
+ """Get Decorated Serve Deployment Fast Api Docs Status # noqa: E501
16150
+
16151
+ Check if the fast api docs url is healthy # noqa: E501
16152
+ This method makes a synchronous HTTP request by default. To make an
16153
+ asynchronous HTTP request, please pass async_req=True
16154
+ >>> thread = api.get_decorated_serve_deployment_fast_api_docs_status_api_v2_decorated_serve_deployments_serve_deployment_id_fast_api_docs_status_get(serve_deployment_id, async_req=True)
16155
+ >>> result = thread.get()
16156
+
16157
+ :param async_req bool: execute request asynchronously
16158
+ :param str serve_deployment_id: (required)
16159
+ :param _preload_content: if False, the urllib3.HTTPResponse object will
16160
+ be returned without reading/decoding response
16161
+ data. Default is True.
16162
+ :param _request_timeout: timeout setting for this request. If one
16163
+ number provided, it will be total request
16164
+ timeout. It can also be a pair (tuple) of
16165
+ (connection, read) timeouts.
16166
+ :return: ServedeploymentfastapidocsstatusResponse
16167
+ If the method is called asynchronously,
16168
+ returns the request thread.
16169
+ """
16170
+ kwargs['_return_http_data_only'] = True
16171
+ return self.get_decorated_serve_deployment_fast_api_docs_status_api_v2_decorated_serve_deployments_serve_deployment_id_fast_api_docs_status_get_with_http_info(serve_deployment_id, **kwargs) # noqa: E501
16172
+
16173
+ def get_decorated_serve_deployment_fast_api_docs_status_api_v2_decorated_serve_deployments_serve_deployment_id_fast_api_docs_status_get_with_http_info(self, serve_deployment_id, **kwargs): # noqa: E501
16174
+ """Get Decorated Serve Deployment Fast Api Docs Status # noqa: E501
16175
+
16176
+ Check if the fast api docs url is healthy # noqa: E501
16177
+ This method makes a synchronous HTTP request by default. To make an
16178
+ asynchronous HTTP request, please pass async_req=True
16179
+ >>> thread = api.get_decorated_serve_deployment_fast_api_docs_status_api_v2_decorated_serve_deployments_serve_deployment_id_fast_api_docs_status_get_with_http_info(serve_deployment_id, async_req=True)
16180
+ >>> result = thread.get()
16181
+
16182
+ :param async_req bool: execute request asynchronously
16183
+ :param str serve_deployment_id: (required)
16184
+ :param _return_http_data_only: response data without head status code
16185
+ and headers
16186
+ :param _preload_content: if False, the urllib3.HTTPResponse object will
16187
+ be returned without reading/decoding response
16188
+ data. Default is True.
16189
+ :param _request_timeout: timeout setting for this request. If one
16190
+ number provided, it will be total request
16191
+ timeout. It can also be a pair (tuple) of
16192
+ (connection, read) timeouts.
16193
+ :return: tuple(ServedeploymentfastapidocsstatusResponse, status_code(int), headers(HTTPHeaderDict))
16194
+ If the method is called asynchronously,
16195
+ returns the request thread.
16196
+ """
16197
+
16198
+ local_var_params = locals()
16199
+
16200
+ all_params = [
16201
+ 'serve_deployment_id'
16202
+ ]
16203
+ all_params.extend(
16204
+ [
16205
+ 'async_req',
16206
+ '_return_http_data_only',
16207
+ '_preload_content',
16208
+ '_request_timeout'
16209
+ ]
16210
+ )
16211
+
16212
+ for key, val in six.iteritems(local_var_params['kwargs']):
16213
+ if key not in all_params:
16214
+ raise ApiTypeError(
16215
+ "Got an unexpected keyword argument '%s'"
16216
+ " to method get_decorated_serve_deployment_fast_api_docs_status_api_v2_decorated_serve_deployments_serve_deployment_id_fast_api_docs_status_get" % key
16217
+ )
16218
+ local_var_params[key] = val
16219
+ del local_var_params['kwargs']
16220
+ # verify the required parameter 'serve_deployment_id' is set
16221
+ if self.api_client.client_side_validation and ('serve_deployment_id' not in local_var_params or # noqa: E501
16222
+ local_var_params['serve_deployment_id'] is None): # noqa: E501
16223
+ raise ApiValueError("Missing the required parameter `serve_deployment_id` when calling `get_decorated_serve_deployment_fast_api_docs_status_api_v2_decorated_serve_deployments_serve_deployment_id_fast_api_docs_status_get`") # noqa: E501
16224
+
16225
+ collection_formats = {}
16226
+
16227
+ path_params = {}
16228
+ if 'serve_deployment_id' in local_var_params:
16229
+ path_params['serve_deployment_id'] = local_var_params['serve_deployment_id'] # noqa: E501
16230
+
16231
+ query_params = []
16232
+
16233
+ header_params = {}
16234
+
16235
+ form_params = []
16236
+ local_var_files = {}
16237
+
16238
+ body_params = None
16239
+ # HTTP header `Accept`
16240
+ header_params['Accept'] = self.api_client.select_header_accept(
16241
+ ['application/json']) # noqa: E501
16242
+
16243
+ # Authentication setting
16244
+ auth_settings = [] # noqa: E501
16245
+
16246
+ return self.api_client.call_api(
16247
+ '/api/v2/decorated_serve_deployments/{serve_deployment_id}/fast_api_docs_status', 'GET',
16248
+ path_params,
16249
+ query_params,
16250
+ header_params,
16251
+ body=body_params,
16252
+ post_params=form_params,
16253
+ files=local_var_files,
16254
+ response_type='ServedeploymentfastapidocsstatusResponse', # noqa: E501
16255
+ auth_settings=auth_settings,
16256
+ async_req=local_var_params.get('async_req'),
16257
+ _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501
16258
+ _preload_content=local_var_params.get('_preload_content', True),
16259
+ _request_timeout=local_var_params.get('_request_timeout'),
16260
+ collection_formats=collection_formats)
16261
+
15505
16262
  def get_decorated_serve_deployment_logs_api_v2_decorated_serve_deployments_serve_deployment_id_logs_get(self, serve_deployment_id, **kwargs): # noqa: E501
15506
16263
  """Get Decorated Serve Deployment Logs # noqa: E501
15507
16264
 
@@ -16296,7 +17053,7 @@ class DefaultApi(object):
16296
17053
  def get_events_api_v2_sessions_session_id_events_get(self, session_id, start_index, end_index, **kwargs): # noqa: E501
16297
17054
  """Get Events # noqa: E501
16298
17055
 
16299
- Return events for this cluster. # noqa: E501
17056
+ Return events for this cluster. There are multiple endpoints to return events. This endpoint is for the dataplane to fetch events to power the oss ray dashboard. The /cluster_events endpoint is used by the UI to fetch events to power general debugging UI features like train dashboard. Finally, there are events endpoints for each workload type (workspaces, jobs, services). Those endpoints have some additional logic to stitch together cluster events with workload-specific events. # noqa: E501
16300
17057
  This method makes a synchronous HTTP request by default. To make an
16301
17058
  asynchronous HTTP request, please pass async_req=True
16302
17059
  >>> thread = api.get_events_api_v2_sessions_session_id_events_get(session_id, start_index, end_index, async_req=True)
@@ -16324,7 +17081,7 @@ class DefaultApi(object):
16324
17081
  def get_events_api_v2_sessions_session_id_events_get_with_http_info(self, session_id, start_index, end_index, **kwargs): # noqa: E501
16325
17082
  """Get Events # noqa: E501
16326
17083
 
16327
- Return events for this cluster. # noqa: E501
17084
+ Return events for this cluster. There are multiple endpoints to return events. This endpoint is for the dataplane to fetch events to power the oss ray dashboard. The /cluster_events endpoint is used by the UI to fetch events to power general debugging UI features like train dashboard. Finally, there are events endpoints for each workload type (workspaces, jobs, services). Those endpoints have some additional logic to stitch together cluster events with workload-specific events. # noqa: E501
16328
17085
  This method makes a synchronous HTTP request by default. To make an
16329
17086
  asynchronous HTTP request, please pass async_req=True
16330
17087
  >>> thread = api.get_events_api_v2_sessions_session_id_events_get_with_http_info(session_id, start_index, end_index, async_req=True)
@@ -16794,118 +17551,6 @@ class DefaultApi(object):
16794
17551
  _request_timeout=local_var_params.get('_request_timeout'),
16795
17552
  collection_formats=collection_formats)
16796
17553
 
16797
- def get_fine_tuning_job_api_v2_fine_tuning_jobs_fine_tuning_job_id_get(self, fine_tuning_job_id, **kwargs): # noqa: E501
16798
- """Get Fine Tuning Job # noqa: E501
16799
-
16800
- This method makes a synchronous HTTP request by default. To make an
16801
- asynchronous HTTP request, please pass async_req=True
16802
- >>> thread = api.get_fine_tuning_job_api_v2_fine_tuning_jobs_fine_tuning_job_id_get(fine_tuning_job_id, async_req=True)
16803
- >>> result = thread.get()
16804
-
16805
- :param async_req bool: execute request asynchronously
16806
- :param str fine_tuning_job_id: (required)
16807
- :param _preload_content: if False, the urllib3.HTTPResponse object will
16808
- be returned without reading/decoding response
16809
- data. Default is True.
16810
- :param _request_timeout: timeout setting for this request. If one
16811
- number provided, it will be total request
16812
- timeout. It can also be a pair (tuple) of
16813
- (connection, read) timeouts.
16814
- :return: PlatformfinetuningjobResponse
16815
- If the method is called asynchronously,
16816
- returns the request thread.
16817
- """
16818
- kwargs['_return_http_data_only'] = True
16819
- return self.get_fine_tuning_job_api_v2_fine_tuning_jobs_fine_tuning_job_id_get_with_http_info(fine_tuning_job_id, **kwargs) # noqa: E501
16820
-
16821
- def get_fine_tuning_job_api_v2_fine_tuning_jobs_fine_tuning_job_id_get_with_http_info(self, fine_tuning_job_id, **kwargs): # noqa: E501
16822
- """Get Fine Tuning Job # noqa: E501
16823
-
16824
- This method makes a synchronous HTTP request by default. To make an
16825
- asynchronous HTTP request, please pass async_req=True
16826
- >>> thread = api.get_fine_tuning_job_api_v2_fine_tuning_jobs_fine_tuning_job_id_get_with_http_info(fine_tuning_job_id, async_req=True)
16827
- >>> result = thread.get()
16828
-
16829
- :param async_req bool: execute request asynchronously
16830
- :param str fine_tuning_job_id: (required)
16831
- :param _return_http_data_only: response data without head status code
16832
- and headers
16833
- :param _preload_content: if False, the urllib3.HTTPResponse object will
16834
- be returned without reading/decoding response
16835
- data. Default is True.
16836
- :param _request_timeout: timeout setting for this request. If one
16837
- number provided, it will be total request
16838
- timeout. It can also be a pair (tuple) of
16839
- (connection, read) timeouts.
16840
- :return: tuple(PlatformfinetuningjobResponse, status_code(int), headers(HTTPHeaderDict))
16841
- If the method is called asynchronously,
16842
- returns the request thread.
16843
- """
16844
-
16845
- local_var_params = locals()
16846
-
16847
- all_params = [
16848
- 'fine_tuning_job_id'
16849
- ]
16850
- all_params.extend(
16851
- [
16852
- 'async_req',
16853
- '_return_http_data_only',
16854
- '_preload_content',
16855
- '_request_timeout'
16856
- ]
16857
- )
16858
-
16859
- for key, val in six.iteritems(local_var_params['kwargs']):
16860
- if key not in all_params:
16861
- raise ApiTypeError(
16862
- "Got an unexpected keyword argument '%s'"
16863
- " to method get_fine_tuning_job_api_v2_fine_tuning_jobs_fine_tuning_job_id_get" % key
16864
- )
16865
- local_var_params[key] = val
16866
- del local_var_params['kwargs']
16867
- # verify the required parameter 'fine_tuning_job_id' is set
16868
- if self.api_client.client_side_validation and ('fine_tuning_job_id' not in local_var_params or # noqa: E501
16869
- local_var_params['fine_tuning_job_id'] is None): # noqa: E501
16870
- raise ApiValueError("Missing the required parameter `fine_tuning_job_id` when calling `get_fine_tuning_job_api_v2_fine_tuning_jobs_fine_tuning_job_id_get`") # noqa: E501
16871
-
16872
- collection_formats = {}
16873
-
16874
- path_params = {}
16875
- if 'fine_tuning_job_id' in local_var_params:
16876
- path_params['fine_tuning_job_id'] = local_var_params['fine_tuning_job_id'] # noqa: E501
16877
-
16878
- query_params = []
16879
-
16880
- header_params = {}
16881
-
16882
- form_params = []
16883
- local_var_files = {}
16884
-
16885
- body_params = None
16886
- # HTTP header `Accept`
16887
- header_params['Accept'] = self.api_client.select_header_accept(
16888
- ['application/json']) # noqa: E501
16889
-
16890
- # Authentication setting
16891
- auth_settings = [] # noqa: E501
16892
-
16893
- return self.api_client.call_api(
16894
- '/api/v2/fine_tuning/jobs/{fine_tuning_job_id}', 'GET',
16895
- path_params,
16896
- query_params,
16897
- header_params,
16898
- body=body_params,
16899
- post_params=form_params,
16900
- files=local_var_files,
16901
- response_type='PlatformfinetuningjobResponse', # noqa: E501
16902
- auth_settings=auth_settings,
16903
- async_req=local_var_params.get('async_req'),
16904
- _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501
16905
- _preload_content=local_var_params.get('_preload_content', True),
16906
- _request_timeout=local_var_params.get('_request_timeout'),
16907
- collection_formats=collection_formats)
16908
-
16909
17554
  def get_instance_usage_budget_api_v2_instance_usage_budgets_instance_usage_budget_id_get(self, instance_usage_budget_id, **kwargs): # noqa: E501
16910
17555
  """Get Instance Usage Budget # noqa: E501
16911
17556
 
@@ -23131,156 +23776,6 @@ class DefaultApi(object):
23131
23776
  _request_timeout=local_var_params.get('_request_timeout'),
23132
23777
  collection_formats=collection_formats)
23133
23778
 
23134
- def get_session_event_log_api_v2_session_events_get(self, session_id, **kwargs): # noqa: E501
23135
- """Get Session Event Log # noqa: E501
23136
-
23137
- Retrieves a session's event log. # noqa: E501
23138
- This method makes a synchronous HTTP request by default. To make an
23139
- asynchronous HTTP request, please pass async_req=True
23140
- >>> thread = api.get_session_event_log_api_v2_session_events_get(session_id, async_req=True)
23141
- >>> result = thread.get()
23142
-
23143
- :param async_req bool: execute request asynchronously
23144
- :param str session_id: (required)
23145
- :param datetime before:
23146
- :param datetime after:
23147
- :param list[SessionEventTypes] event_types:
23148
- :param list[LogLevelTypes] log_level_types:
23149
- :param str paging_token:
23150
- :param int count:
23151
- :param _preload_content: if False, the urllib3.HTTPResponse object will
23152
- be returned without reading/decoding response
23153
- data. Default is True.
23154
- :param _request_timeout: timeout setting for this request. If one
23155
- number provided, it will be total request
23156
- timeout. It can also be a pair (tuple) of
23157
- (connection, read) timeouts.
23158
- :return: SessioneventListResponse
23159
- If the method is called asynchronously,
23160
- returns the request thread.
23161
- """
23162
- kwargs['_return_http_data_only'] = True
23163
- return self.get_session_event_log_api_v2_session_events_get_with_http_info(session_id, **kwargs) # noqa: E501
23164
-
23165
- def get_session_event_log_api_v2_session_events_get_with_http_info(self, session_id, **kwargs): # noqa: E501
23166
- """Get Session Event Log # noqa: E501
23167
-
23168
- Retrieves a session's event log. # noqa: E501
23169
- This method makes a synchronous HTTP request by default. To make an
23170
- asynchronous HTTP request, please pass async_req=True
23171
- >>> thread = api.get_session_event_log_api_v2_session_events_get_with_http_info(session_id, async_req=True)
23172
- >>> result = thread.get()
23173
-
23174
- :param async_req bool: execute request asynchronously
23175
- :param str session_id: (required)
23176
- :param datetime before:
23177
- :param datetime after:
23178
- :param list[SessionEventTypes] event_types:
23179
- :param list[LogLevelTypes] log_level_types:
23180
- :param str paging_token:
23181
- :param int count:
23182
- :param _return_http_data_only: response data without head status code
23183
- and headers
23184
- :param _preload_content: if False, the urllib3.HTTPResponse object will
23185
- be returned without reading/decoding response
23186
- data. Default is True.
23187
- :param _request_timeout: timeout setting for this request. If one
23188
- number provided, it will be total request
23189
- timeout. It can also be a pair (tuple) of
23190
- (connection, read) timeouts.
23191
- :return: tuple(SessioneventListResponse, status_code(int), headers(HTTPHeaderDict))
23192
- If the method is called asynchronously,
23193
- returns the request thread.
23194
- """
23195
-
23196
- local_var_params = locals()
23197
-
23198
- all_params = [
23199
- 'session_id',
23200
- 'before',
23201
- 'after',
23202
- 'event_types',
23203
- 'log_level_types',
23204
- 'paging_token',
23205
- 'count'
23206
- ]
23207
- all_params.extend(
23208
- [
23209
- 'async_req',
23210
- '_return_http_data_only',
23211
- '_preload_content',
23212
- '_request_timeout'
23213
- ]
23214
- )
23215
-
23216
- for key, val in six.iteritems(local_var_params['kwargs']):
23217
- if key not in all_params:
23218
- raise ApiTypeError(
23219
- "Got an unexpected keyword argument '%s'"
23220
- " to method get_session_event_log_api_v2_session_events_get" % key
23221
- )
23222
- local_var_params[key] = val
23223
- del local_var_params['kwargs']
23224
- # verify the required parameter 'session_id' is set
23225
- if self.api_client.client_side_validation and ('session_id' not in local_var_params or # noqa: E501
23226
- local_var_params['session_id'] is None): # noqa: E501
23227
- raise ApiValueError("Missing the required parameter `session_id` when calling `get_session_event_log_api_v2_session_events_get`") # noqa: E501
23228
-
23229
- if self.api_client.client_side_validation and 'count' in local_var_params and local_var_params['count'] > 1000: # noqa: E501
23230
- raise ApiValueError("Invalid value for parameter `count` when calling `get_session_event_log_api_v2_session_events_get`, must be a value less than or equal to `1000`") # noqa: E501
23231
- if self.api_client.client_side_validation and 'count' in local_var_params and local_var_params['count'] < 0: # noqa: E501
23232
- raise ApiValueError("Invalid value for parameter `count` when calling `get_session_event_log_api_v2_session_events_get`, must be a value greater than or equal to `0`") # noqa: E501
23233
- collection_formats = {}
23234
-
23235
- path_params = {}
23236
-
23237
- query_params = []
23238
- if 'session_id' in local_var_params and local_var_params['session_id'] is not None: # noqa: E501
23239
- query_params.append(('session_id', local_var_params['session_id'])) # noqa: E501
23240
- if 'before' in local_var_params and local_var_params['before'] is not None: # noqa: E501
23241
- query_params.append(('before', local_var_params['before'])) # noqa: E501
23242
- if 'after' in local_var_params and local_var_params['after'] is not None: # noqa: E501
23243
- query_params.append(('after', local_var_params['after'])) # noqa: E501
23244
- if 'event_types' in local_var_params and local_var_params['event_types'] is not None: # noqa: E501
23245
- query_params.append(('event_types', local_var_params['event_types'])) # noqa: E501
23246
- collection_formats['event_types'] = 'multi' # noqa: E501
23247
- if 'log_level_types' in local_var_params and local_var_params['log_level_types'] is not None: # noqa: E501
23248
- query_params.append(('log_level_types', local_var_params['log_level_types'])) # noqa: E501
23249
- collection_formats['log_level_types'] = 'multi' # noqa: E501
23250
- if 'paging_token' in local_var_params and local_var_params['paging_token'] is not None: # noqa: E501
23251
- query_params.append(('paging_token', local_var_params['paging_token'])) # noqa: E501
23252
- if 'count' in local_var_params and local_var_params['count'] is not None: # noqa: E501
23253
- query_params.append(('count', local_var_params['count'])) # noqa: E501
23254
-
23255
- header_params = {}
23256
-
23257
- form_params = []
23258
- local_var_files = {}
23259
-
23260
- body_params = None
23261
- # HTTP header `Accept`
23262
- header_params['Accept'] = self.api_client.select_header_accept(
23263
- ['application/json']) # noqa: E501
23264
-
23265
- # Authentication setting
23266
- auth_settings = [] # noqa: E501
23267
-
23268
- return self.api_client.call_api(
23269
- '/api/v2/session_events/', 'GET',
23270
- path_params,
23271
- query_params,
23272
- header_params,
23273
- body=body_params,
23274
- post_params=form_params,
23275
- files=local_var_files,
23276
- response_type='SessioneventListResponse', # noqa: E501
23277
- auth_settings=auth_settings,
23278
- async_req=local_var_params.get('async_req'),
23279
- _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501
23280
- _preload_content=local_var_params.get('_preload_content', True),
23281
- _request_timeout=local_var_params.get('_request_timeout'),
23282
- collection_formats=collection_formats)
23283
-
23284
23779
  def get_session_head_ip_api_v2_sessions_session_id_head_ip_get(self, session_id, **kwargs): # noqa: E501
23285
23780
  """Get Session Head Ip # noqa: E501
23286
23781
 
@@ -28167,8 +28662,8 @@ class DefaultApi(object):
28167
28662
  local_var_params[key] = val
28168
28663
  del local_var_params['kwargs']
28169
28664
 
28170
- if self.api_client.client_side_validation and 'count' in local_var_params and local_var_params['count'] > 50: # noqa: E501
28171
- raise ApiValueError("Invalid value for parameter `count` when calling `list_decorated_jobs_api_v2_decorated_ha_jobs_get`, must be a value less than or equal to `50`") # noqa: E501
28665
+ if self.api_client.client_side_validation and 'count' in local_var_params and local_var_params['count'] > 1000: # noqa: E501
28666
+ raise ApiValueError("Invalid value for parameter `count` when calling `list_decorated_jobs_api_v2_decorated_ha_jobs_get`, must be a value less than or equal to `1000`") # noqa: E501
28172
28667
  if self.api_client.client_side_validation and 'count' in local_var_params and local_var_params['count'] < 0: # noqa: E501
28173
28668
  raise ApiValueError("Invalid value for parameter `count` when calling `list_decorated_jobs_api_v2_decorated_ha_jobs_get`, must be a value greater than or equal to `0`") # noqa: E501
28174
28669
  collection_formats = {}
@@ -28652,133 +29147,6 @@ class DefaultApi(object):
28652
29147
  _request_timeout=local_var_params.get('_request_timeout'),
28653
29148
  collection_formats=collection_formats)
28654
29149
 
28655
- def list_fine_tuning_jobs_api_v2_fine_tuning_jobs_get(self, **kwargs): # noqa: E501
28656
- """List Fine Tuning Jobs # noqa: E501
28657
-
28658
- This method makes a synchronous HTTP request by default. To make an
28659
- asynchronous HTTP request, please pass async_req=True
28660
- >>> thread = api.list_fine_tuning_jobs_api_v2_fine_tuning_jobs_get(async_req=True)
28661
- >>> result = thread.get()
28662
-
28663
- :param async_req bool: execute request asynchronously
28664
- :param str ft_job_id_contains: id to filter by
28665
- :param str creator_id: filter by creator id
28666
- :param str paging_token:
28667
- :param int count:
28668
- :param _preload_content: if False, the urllib3.HTTPResponse object will
28669
- be returned without reading/decoding response
28670
- data. Default is True.
28671
- :param _request_timeout: timeout setting for this request. If one
28672
- number provided, it will be total request
28673
- timeout. It can also be a pair (tuple) of
28674
- (connection, read) timeouts.
28675
- :return: PlatformfinetuningjobListResponse
28676
- If the method is called asynchronously,
28677
- returns the request thread.
28678
- """
28679
- kwargs['_return_http_data_only'] = True
28680
- return self.list_fine_tuning_jobs_api_v2_fine_tuning_jobs_get_with_http_info(**kwargs) # noqa: E501
28681
-
28682
- def list_fine_tuning_jobs_api_v2_fine_tuning_jobs_get_with_http_info(self, **kwargs): # noqa: E501
28683
- """List Fine Tuning Jobs # noqa: E501
28684
-
28685
- This method makes a synchronous HTTP request by default. To make an
28686
- asynchronous HTTP request, please pass async_req=True
28687
- >>> thread = api.list_fine_tuning_jobs_api_v2_fine_tuning_jobs_get_with_http_info(async_req=True)
28688
- >>> result = thread.get()
28689
-
28690
- :param async_req bool: execute request asynchronously
28691
- :param str ft_job_id_contains: id to filter by
28692
- :param str creator_id: filter by creator id
28693
- :param str paging_token:
28694
- :param int count:
28695
- :param _return_http_data_only: response data without head status code
28696
- and headers
28697
- :param _preload_content: if False, the urllib3.HTTPResponse object will
28698
- be returned without reading/decoding response
28699
- data. Default is True.
28700
- :param _request_timeout: timeout setting for this request. If one
28701
- number provided, it will be total request
28702
- timeout. It can also be a pair (tuple) of
28703
- (connection, read) timeouts.
28704
- :return: tuple(PlatformfinetuningjobListResponse, status_code(int), headers(HTTPHeaderDict))
28705
- If the method is called asynchronously,
28706
- returns the request thread.
28707
- """
28708
-
28709
- local_var_params = locals()
28710
-
28711
- all_params = [
28712
- 'ft_job_id_contains',
28713
- 'creator_id',
28714
- 'paging_token',
28715
- 'count'
28716
- ]
28717
- all_params.extend(
28718
- [
28719
- 'async_req',
28720
- '_return_http_data_only',
28721
- '_preload_content',
28722
- '_request_timeout'
28723
- ]
28724
- )
28725
-
28726
- for key, val in six.iteritems(local_var_params['kwargs']):
28727
- if key not in all_params:
28728
- raise ApiTypeError(
28729
- "Got an unexpected keyword argument '%s'"
28730
- " to method list_fine_tuning_jobs_api_v2_fine_tuning_jobs_get" % key
28731
- )
28732
- local_var_params[key] = val
28733
- del local_var_params['kwargs']
28734
-
28735
- if self.api_client.client_side_validation and 'count' in local_var_params and local_var_params['count'] > 50: # noqa: E501
28736
- raise ApiValueError("Invalid value for parameter `count` when calling `list_fine_tuning_jobs_api_v2_fine_tuning_jobs_get`, must be a value less than or equal to `50`") # noqa: E501
28737
- if self.api_client.client_side_validation and 'count' in local_var_params and local_var_params['count'] < 0: # noqa: E501
28738
- raise ApiValueError("Invalid value for parameter `count` when calling `list_fine_tuning_jobs_api_v2_fine_tuning_jobs_get`, must be a value greater than or equal to `0`") # noqa: E501
28739
- collection_formats = {}
28740
-
28741
- path_params = {}
28742
-
28743
- query_params = []
28744
- if 'ft_job_id_contains' in local_var_params and local_var_params['ft_job_id_contains'] is not None: # noqa: E501
28745
- query_params.append(('ft_job_id_contains', local_var_params['ft_job_id_contains'])) # noqa: E501
28746
- if 'creator_id' in local_var_params and local_var_params['creator_id'] is not None: # noqa: E501
28747
- query_params.append(('creator_id', local_var_params['creator_id'])) # noqa: E501
28748
- if 'paging_token' in local_var_params and local_var_params['paging_token'] is not None: # noqa: E501
28749
- query_params.append(('paging_token', local_var_params['paging_token'])) # noqa: E501
28750
- if 'count' in local_var_params and local_var_params['count'] is not None: # noqa: E501
28751
- query_params.append(('count', local_var_params['count'])) # noqa: E501
28752
-
28753
- header_params = {}
28754
-
28755
- form_params = []
28756
- local_var_files = {}
28757
-
28758
- body_params = None
28759
- # HTTP header `Accept`
28760
- header_params['Accept'] = self.api_client.select_header_accept(
28761
- ['application/json']) # noqa: E501
28762
-
28763
- # Authentication setting
28764
- auth_settings = [] # noqa: E501
28765
-
28766
- return self.api_client.call_api(
28767
- '/api/v2/fine_tuning/jobs', 'GET',
28768
- path_params,
28769
- query_params,
28770
- header_params,
28771
- body=body_params,
28772
- post_params=form_params,
28773
- files=local_var_files,
28774
- response_type='PlatformfinetuningjobListResponse', # noqa: E501
28775
- auth_settings=auth_settings,
28776
- async_req=local_var_params.get('async_req'),
28777
- _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501
28778
- _preload_content=local_var_params.get('_preload_content', True),
28779
- _request_timeout=local_var_params.get('_request_timeout'),
28780
- collection_formats=collection_formats)
28781
-
28782
29150
  def list_instance_usage_budgets_api_v2_instance_usage_budgets_get(self, **kwargs): # noqa: E501
28783
29151
  """List Instance Usage Budgets # noqa: E501
28784
29152
 
@@ -28916,6 +29284,7 @@ class DefaultApi(object):
28916
29284
  >>> result = thread.get()
28917
29285
 
28918
29286
  :param async_req bool: execute request asynchronously
29287
+ :param str email:
28919
29288
  :param str paging_token:
28920
29289
  :param int count:
28921
29290
  :param _preload_content: if False, the urllib3.HTTPResponse object will
@@ -28942,6 +29311,7 @@ class DefaultApi(object):
28942
29311
  >>> result = thread.get()
28943
29312
 
28944
29313
  :param async_req bool: execute request asynchronously
29314
+ :param str email:
28945
29315
  :param str paging_token:
28946
29316
  :param int count:
28947
29317
  :param _return_http_data_only: response data without head status code
@@ -28961,6 +29331,7 @@ class DefaultApi(object):
28961
29331
  local_var_params = locals()
28962
29332
 
28963
29333
  all_params = [
29334
+ 'email',
28964
29335
  'paging_token',
28965
29336
  'count'
28966
29337
  ]
@@ -28991,6 +29362,8 @@ class DefaultApi(object):
28991
29362
  path_params = {}
28992
29363
 
28993
29364
  query_params = []
29365
+ if 'email' in local_var_params and local_var_params['email'] is not None: # noqa: E501
29366
+ query_params.append(('email', local_var_params['email'])) # noqa: E501
28994
29367
  if 'paging_token' in local_var_params and local_var_params['paging_token'] is not None: # noqa: E501
28995
29368
  query_params.append(('paging_token', local_var_params['paging_token'])) # noqa: E501
28996
29369
  if 'count' in local_var_params and local_var_params['count'] is not None: # noqa: E501
@@ -30720,6 +31093,7 @@ class DefaultApi(object):
30720
31093
  :param str project_id: project_id to filter by
30721
31094
  :param str name: name to filter by
30722
31095
  :param list[ServiceEventCurrentState] state_filter: A list of Service states to filter by
31096
+ :param ArchiveStatus archive_status: The archive status to filter by. Defaults to unarchived.
30723
31097
  :param str creator_id: creator_id to filter by
30724
31098
  :param str cloud_id: cloud_id to filter by
30725
31099
  :param list[ApplicationType] application_type: Application type to filter by
@@ -30753,6 +31127,7 @@ class DefaultApi(object):
30753
31127
  :param str project_id: project_id to filter by
30754
31128
  :param str name: name to filter by
30755
31129
  :param list[ServiceEventCurrentState] state_filter: A list of Service states to filter by
31130
+ :param ArchiveStatus archive_status: The archive status to filter by. Defaults to unarchived.
30756
31131
  :param str creator_id: creator_id to filter by
30757
31132
  :param str cloud_id: cloud_id to filter by
30758
31133
  :param list[ApplicationType] application_type: Application type to filter by
@@ -30780,6 +31155,7 @@ class DefaultApi(object):
30780
31155
  'project_id',
30781
31156
  'name',
30782
31157
  'state_filter',
31158
+ 'archive_status',
30783
31159
  'creator_id',
30784
31160
  'cloud_id',
30785
31161
  'application_type',
@@ -30822,6 +31198,8 @@ class DefaultApi(object):
30822
31198
  if 'state_filter' in local_var_params and local_var_params['state_filter'] is not None: # noqa: E501
30823
31199
  query_params.append(('state_filter', local_var_params['state_filter'])) # noqa: E501
30824
31200
  collection_formats['state_filter'] = 'multi' # noqa: E501
31201
+ if 'archive_status' in local_var_params and local_var_params['archive_status'] is not None: # noqa: E501
31202
+ query_params.append(('archive_status', local_var_params['archive_status'])) # noqa: E501
30825
31203
  if 'creator_id' in local_var_params and local_var_params['creator_id'] is not None: # noqa: E501
30826
31204
  query_params.append(('creator_id', local_var_params['creator_id'])) # noqa: E501
30827
31205
  if 'cloud_id' in local_var_params and local_var_params['cloud_id'] is not None: # noqa: E501
@@ -34828,7 +35206,6 @@ class DefaultApi(object):
34828
35206
  :param str redirect_to: A path within Anyscale console to redirect to after the user logs in. This only supports paths and not full urls.
34829
35207
  :param bool no_sso: If true, do not use SSO to log in.
34830
35208
  :param bool force_send: If true, we always send a magic link. Even if there is only one org the user belongs to.
34831
- :param bool is_oa: If true, we use to the OA registration flow, where self-service is enabled.
34832
35209
  :param str invite_code:
34833
35210
  :param UtmFields utm_fields:
34834
35211
  :param _preload_content: if False, the urllib3.HTTPResponse object will
@@ -34859,7 +35236,6 @@ class DefaultApi(object):
34859
35236
  :param str redirect_to: A path within Anyscale console to redirect to after the user logs in. This only supports paths and not full urls.
34860
35237
  :param bool no_sso: If true, do not use SSO to log in.
34861
35238
  :param bool force_send: If true, we always send a magic link. Even if there is only one org the user belongs to.
34862
- :param bool is_oa: If true, we use to the OA registration flow, where self-service is enabled.
34863
35239
  :param str invite_code:
34864
35240
  :param UtmFields utm_fields:
34865
35241
  :param _return_http_data_only: response data without head status code
@@ -34883,7 +35259,6 @@ class DefaultApi(object):
34883
35259
  'redirect_to',
34884
35260
  'no_sso',
34885
35261
  'force_send',
34886
- 'is_oa',
34887
35262
  'invite_code',
34888
35263
  'utm_fields'
34889
35264
  ]
@@ -34922,8 +35297,6 @@ class DefaultApi(object):
34922
35297
  query_params.append(('no_sso', local_var_params['no_sso'])) # noqa: E501
34923
35298
  if 'force_send' in local_var_params and local_var_params['force_send'] is not None: # noqa: E501
34924
35299
  query_params.append(('force_send', local_var_params['force_send'])) # noqa: E501
34925
- if 'is_oa' in local_var_params and local_var_params['is_oa'] is not None: # noqa: E501
34926
- query_params.append(('is_oa', local_var_params['is_oa'])) # noqa: E501
34927
35300
  if 'invite_code' in local_var_params and local_var_params['invite_code'] is not None: # noqa: E501
34928
35301
  query_params.append(('invite_code', local_var_params['invite_code'])) # noqa: E501
34929
35302
 
@@ -35317,122 +35690,6 @@ class DefaultApi(object):
35317
35690
  _request_timeout=local_var_params.get('_request_timeout'),
35318
35691
  collection_formats=collection_formats)
35319
35692
 
35320
- def resubmit_fine_tuning_job_api_v2_fine_tuning_jobs_internal_resubmit_post(self, resubmit_ft_job_request, **kwargs): # noqa: E501
35321
- """Resubmit Fine Tuning Job # noqa: E501
35322
-
35323
- This method makes a synchronous HTTP request by default. To make an
35324
- asynchronous HTTP request, please pass async_req=True
35325
- >>> thread = api.resubmit_fine_tuning_job_api_v2_fine_tuning_jobs_internal_resubmit_post(resubmit_ft_job_request, async_req=True)
35326
- >>> result = thread.get()
35327
-
35328
- :param async_req bool: execute request asynchronously
35329
- :param ResubmitFTJobRequest resubmit_ft_job_request: (required)
35330
- :param _preload_content: if False, the urllib3.HTTPResponse object will
35331
- be returned without reading/decoding response
35332
- data. Default is True.
35333
- :param _request_timeout: timeout setting for this request. If one
35334
- number provided, it will be total request
35335
- timeout. It can also be a pair (tuple) of
35336
- (connection, read) timeouts.
35337
- :return: object
35338
- If the method is called asynchronously,
35339
- returns the request thread.
35340
- """
35341
- kwargs['_return_http_data_only'] = True
35342
- return self.resubmit_fine_tuning_job_api_v2_fine_tuning_jobs_internal_resubmit_post_with_http_info(resubmit_ft_job_request, **kwargs) # noqa: E501
35343
-
35344
- def resubmit_fine_tuning_job_api_v2_fine_tuning_jobs_internal_resubmit_post_with_http_info(self, resubmit_ft_job_request, **kwargs): # noqa: E501
35345
- """Resubmit Fine Tuning Job # noqa: E501
35346
-
35347
- This method makes a synchronous HTTP request by default. To make an
35348
- asynchronous HTTP request, please pass async_req=True
35349
- >>> thread = api.resubmit_fine_tuning_job_api_v2_fine_tuning_jobs_internal_resubmit_post_with_http_info(resubmit_ft_job_request, async_req=True)
35350
- >>> result = thread.get()
35351
-
35352
- :param async_req bool: execute request asynchronously
35353
- :param ResubmitFTJobRequest resubmit_ft_job_request: (required)
35354
- :param _return_http_data_only: response data without head status code
35355
- and headers
35356
- :param _preload_content: if False, the urllib3.HTTPResponse object will
35357
- be returned without reading/decoding response
35358
- data. Default is True.
35359
- :param _request_timeout: timeout setting for this request. If one
35360
- number provided, it will be total request
35361
- timeout. It can also be a pair (tuple) of
35362
- (connection, read) timeouts.
35363
- :return: tuple(object, status_code(int), headers(HTTPHeaderDict))
35364
- If the method is called asynchronously,
35365
- returns the request thread.
35366
- """
35367
-
35368
- local_var_params = locals()
35369
-
35370
- all_params = [
35371
- 'resubmit_ft_job_request'
35372
- ]
35373
- all_params.extend(
35374
- [
35375
- 'async_req',
35376
- '_return_http_data_only',
35377
- '_preload_content',
35378
- '_request_timeout'
35379
- ]
35380
- )
35381
-
35382
- for key, val in six.iteritems(local_var_params['kwargs']):
35383
- if key not in all_params:
35384
- raise ApiTypeError(
35385
- "Got an unexpected keyword argument '%s'"
35386
- " to method resubmit_fine_tuning_job_api_v2_fine_tuning_jobs_internal_resubmit_post" % key
35387
- )
35388
- local_var_params[key] = val
35389
- del local_var_params['kwargs']
35390
- # verify the required parameter 'resubmit_ft_job_request' is set
35391
- if self.api_client.client_side_validation and ('resubmit_ft_job_request' not in local_var_params or # noqa: E501
35392
- local_var_params['resubmit_ft_job_request'] is None): # noqa: E501
35393
- raise ApiValueError("Missing the required parameter `resubmit_ft_job_request` when calling `resubmit_fine_tuning_job_api_v2_fine_tuning_jobs_internal_resubmit_post`") # noqa: E501
35394
-
35395
- collection_formats = {}
35396
-
35397
- path_params = {}
35398
-
35399
- query_params = []
35400
-
35401
- header_params = {}
35402
-
35403
- form_params = []
35404
- local_var_files = {}
35405
-
35406
- body_params = None
35407
- if 'resubmit_ft_job_request' in local_var_params:
35408
- body_params = local_var_params['resubmit_ft_job_request']
35409
- # HTTP header `Accept`
35410
- header_params['Accept'] = self.api_client.select_header_accept(
35411
- ['application/json']) # noqa: E501
35412
-
35413
- # HTTP header `Content-Type`
35414
- header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501
35415
- ['application/json']) # noqa: E501
35416
-
35417
- # Authentication setting
35418
- auth_settings = [] # noqa: E501
35419
-
35420
- return self.api_client.call_api(
35421
- '/api/v2/fine_tuning/jobs/internal/resubmit', 'POST',
35422
- path_params,
35423
- query_params,
35424
- header_params,
35425
- body=body_params,
35426
- post_params=form_params,
35427
- files=local_var_files,
35428
- response_type='object', # noqa: E501
35429
- auth_settings=auth_settings,
35430
- async_req=local_var_params.get('async_req'),
35431
- _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501
35432
- _preload_content=local_var_params.get('_preload_content', True),
35433
- _request_timeout=local_var_params.get('_request_timeout'),
35434
- collection_formats=collection_formats)
35435
-
35436
35693
  def rollback_service_api_v2_services_v2_service_id_rollback_post(self, service_id, **kwargs): # noqa: E501
35437
35694
  """Rollback Service # noqa: E501
35438
35695
 
@@ -36746,217 +37003,6 @@ class DefaultApi(object):
36746
37003
  _request_timeout=local_var_params.get('_request_timeout'),
36747
37004
  collection_formats=collection_formats)
36748
37005
 
36749
- def set_organization_to_be_blocked_api_v2_organizations_block_post(self, **kwargs): # noqa: E501
36750
- """Set Organization To Be Blocked # noqa: E501
36751
-
36752
- This method makes a synchronous HTTP request by default. To make an
36753
- asynchronous HTTP request, please pass async_req=True
36754
- >>> thread = api.set_organization_to_be_blocked_api_v2_organizations_block_post(async_req=True)
36755
- >>> result = thread.get()
36756
-
36757
- :param async_req bool: execute request asynchronously
36758
- :param _preload_content: if False, the urllib3.HTTPResponse object will
36759
- be returned without reading/decoding response
36760
- data. Default is True.
36761
- :param _request_timeout: timeout setting for this request. If one
36762
- number provided, it will be total request
36763
- timeout. It can also be a pair (tuple) of
36764
- (connection, read) timeouts.
36765
- :return: None
36766
- If the method is called asynchronously,
36767
- returns the request thread.
36768
- """
36769
- kwargs['_return_http_data_only'] = True
36770
- return self.set_organization_to_be_blocked_api_v2_organizations_block_post_with_http_info(**kwargs) # noqa: E501
36771
-
36772
- def set_organization_to_be_blocked_api_v2_organizations_block_post_with_http_info(self, **kwargs): # noqa: E501
36773
- """Set Organization To Be Blocked # noqa: E501
36774
-
36775
- This method makes a synchronous HTTP request by default. To make an
36776
- asynchronous HTTP request, please pass async_req=True
36777
- >>> thread = api.set_organization_to_be_blocked_api_v2_organizations_block_post_with_http_info(async_req=True)
36778
- >>> result = thread.get()
36779
-
36780
- :param async_req bool: execute request asynchronously
36781
- :param _return_http_data_only: response data without head status code
36782
- and headers
36783
- :param _preload_content: if False, the urllib3.HTTPResponse object will
36784
- be returned without reading/decoding response
36785
- data. Default is True.
36786
- :param _request_timeout: timeout setting for this request. If one
36787
- number provided, it will be total request
36788
- timeout. It can also be a pair (tuple) of
36789
- (connection, read) timeouts.
36790
- :return: None
36791
- If the method is called asynchronously,
36792
- returns the request thread.
36793
- """
36794
-
36795
- local_var_params = locals()
36796
-
36797
- all_params = [
36798
- ]
36799
- all_params.extend(
36800
- [
36801
- 'async_req',
36802
- '_return_http_data_only',
36803
- '_preload_content',
36804
- '_request_timeout'
36805
- ]
36806
- )
36807
-
36808
- for key, val in six.iteritems(local_var_params['kwargs']):
36809
- if key not in all_params:
36810
- raise ApiTypeError(
36811
- "Got an unexpected keyword argument '%s'"
36812
- " to method set_organization_to_be_blocked_api_v2_organizations_block_post" % key
36813
- )
36814
- local_var_params[key] = val
36815
- del local_var_params['kwargs']
36816
-
36817
- collection_formats = {}
36818
-
36819
- path_params = {}
36820
-
36821
- query_params = []
36822
-
36823
- header_params = {}
36824
-
36825
- form_params = []
36826
- local_var_files = {}
36827
-
36828
- body_params = None
36829
- # Authentication setting
36830
- auth_settings = [] # noqa: E501
36831
-
36832
- return self.api_client.call_api(
36833
- '/api/v2/organizations/block', 'POST',
36834
- path_params,
36835
- query_params,
36836
- header_params,
36837
- body=body_params,
36838
- post_params=form_params,
36839
- files=local_var_files,
36840
- response_type=None, # noqa: E501
36841
- auth_settings=auth_settings,
36842
- async_req=local_var_params.get('async_req'),
36843
- _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501
36844
- _preload_content=local_var_params.get('_preload_content', True),
36845
- _request_timeout=local_var_params.get('_request_timeout'),
36846
- collection_formats=collection_formats)
36847
-
36848
- def set_organization_to_be_unblocked_api_v2_organizations_organization_id_unblock_post(self, organization_id, **kwargs): # noqa: E501
36849
- """Set Organization To Be Unblocked # noqa: E501
36850
-
36851
- This method makes a synchronous HTTP request by default. To make an
36852
- asynchronous HTTP request, please pass async_req=True
36853
- >>> thread = api.set_organization_to_be_unblocked_api_v2_organizations_organization_id_unblock_post(organization_id, async_req=True)
36854
- >>> result = thread.get()
36855
-
36856
- :param async_req bool: execute request asynchronously
36857
- :param str organization_id: (required)
36858
- :param _preload_content: if False, the urllib3.HTTPResponse object will
36859
- be returned without reading/decoding response
36860
- data. Default is True.
36861
- :param _request_timeout: timeout setting for this request. If one
36862
- number provided, it will be total request
36863
- timeout. It can also be a pair (tuple) of
36864
- (connection, read) timeouts.
36865
- :return: object
36866
- If the method is called asynchronously,
36867
- returns the request thread.
36868
- """
36869
- kwargs['_return_http_data_only'] = True
36870
- return self.set_organization_to_be_unblocked_api_v2_organizations_organization_id_unblock_post_with_http_info(organization_id, **kwargs) # noqa: E501
36871
-
36872
- def set_organization_to_be_unblocked_api_v2_organizations_organization_id_unblock_post_with_http_info(self, organization_id, **kwargs): # noqa: E501
36873
- """Set Organization To Be Unblocked # noqa: E501
36874
-
36875
- This method makes a synchronous HTTP request by default. To make an
36876
- asynchronous HTTP request, please pass async_req=True
36877
- >>> thread = api.set_organization_to_be_unblocked_api_v2_organizations_organization_id_unblock_post_with_http_info(organization_id, async_req=True)
36878
- >>> result = thread.get()
36879
-
36880
- :param async_req bool: execute request asynchronously
36881
- :param str organization_id: (required)
36882
- :param _return_http_data_only: response data without head status code
36883
- and headers
36884
- :param _preload_content: if False, the urllib3.HTTPResponse object will
36885
- be returned without reading/decoding response
36886
- data. Default is True.
36887
- :param _request_timeout: timeout setting for this request. If one
36888
- number provided, it will be total request
36889
- timeout. It can also be a pair (tuple) of
36890
- (connection, read) timeouts.
36891
- :return: tuple(object, status_code(int), headers(HTTPHeaderDict))
36892
- If the method is called asynchronously,
36893
- returns the request thread.
36894
- """
36895
-
36896
- local_var_params = locals()
36897
-
36898
- all_params = [
36899
- 'organization_id'
36900
- ]
36901
- all_params.extend(
36902
- [
36903
- 'async_req',
36904
- '_return_http_data_only',
36905
- '_preload_content',
36906
- '_request_timeout'
36907
- ]
36908
- )
36909
-
36910
- for key, val in six.iteritems(local_var_params['kwargs']):
36911
- if key not in all_params:
36912
- raise ApiTypeError(
36913
- "Got an unexpected keyword argument '%s'"
36914
- " to method set_organization_to_be_unblocked_api_v2_organizations_organization_id_unblock_post" % key
36915
- )
36916
- local_var_params[key] = val
36917
- del local_var_params['kwargs']
36918
- # verify the required parameter 'organization_id' is set
36919
- if self.api_client.client_side_validation and ('organization_id' not in local_var_params or # noqa: E501
36920
- local_var_params['organization_id'] is None): # noqa: E501
36921
- raise ApiValueError("Missing the required parameter `organization_id` when calling `set_organization_to_be_unblocked_api_v2_organizations_organization_id_unblock_post`") # noqa: E501
36922
-
36923
- collection_formats = {}
36924
-
36925
- path_params = {}
36926
- if 'organization_id' in local_var_params:
36927
- path_params['organization_id'] = local_var_params['organization_id'] # noqa: E501
36928
-
36929
- query_params = []
36930
-
36931
- header_params = {}
36932
-
36933
- form_params = []
36934
- local_var_files = {}
36935
-
36936
- body_params = None
36937
- # HTTP header `Accept`
36938
- header_params['Accept'] = self.api_client.select_header_accept(
36939
- ['application/json']) # noqa: E501
36940
-
36941
- # Authentication setting
36942
- auth_settings = [] # noqa: E501
36943
-
36944
- return self.api_client.call_api(
36945
- '/api/v2/organizations/{organization_id}/unblock', 'POST',
36946
- path_params,
36947
- query_params,
36948
- header_params,
36949
- body=body_params,
36950
- post_params=form_params,
36951
- files=local_var_files,
36952
- response_type='object', # noqa: E501
36953
- auth_settings=auth_settings,
36954
- async_req=local_var_params.get('async_req'),
36955
- _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501
36956
- _preload_content=local_var_params.get('_preload_content', True),
36957
- _request_timeout=local_var_params.get('_request_timeout'),
36958
- collection_formats=collection_formats)
36959
-
36960
37006
  def set_resource_quota_status_api_v2_resource_quotas_resource_quota_id_status_patch(self, resource_quota_id, resource_quota_status, **kwargs): # noqa: E501
36961
37007
  """Set Resource Quota Status # noqa: E501
36962
37008
 
@@ -39318,6 +39364,140 @@ class DefaultApi(object):
39318
39364
  _request_timeout=local_var_params.get('_request_timeout'),
39319
39365
  collection_formats=collection_formats)
39320
39366
 
39367
+ def update_cloud_deployment_config_api_v2_clouds_cloud_id_deployment_cloud_deployment_id_config_put(self, cloud_id, cloud_deployment_id, cloud_deployment_config, **kwargs): # noqa: E501
39368
+ """Update Cloud Deployment Config # noqa: E501
39369
+
39370
+ This method makes a synchronous HTTP request by default. To make an
39371
+ asynchronous HTTP request, please pass async_req=True
39372
+ >>> thread = api.update_cloud_deployment_config_api_v2_clouds_cloud_id_deployment_cloud_deployment_id_config_put(cloud_id, cloud_deployment_id, cloud_deployment_config, async_req=True)
39373
+ >>> result = thread.get()
39374
+
39375
+ :param async_req bool: execute request asynchronously
39376
+ :param str cloud_id: (required)
39377
+ :param str cloud_deployment_id: (required)
39378
+ :param CloudDeploymentConfig cloud_deployment_config: (required)
39379
+ :param _preload_content: if False, the urllib3.HTTPResponse object will
39380
+ be returned without reading/decoding response
39381
+ data. Default is True.
39382
+ :param _request_timeout: timeout setting for this request. If one
39383
+ number provided, it will be total request
39384
+ timeout. It can also be a pair (tuple) of
39385
+ (connection, read) timeouts.
39386
+ :return: ClouddeploymentconfigResponse
39387
+ If the method is called asynchronously,
39388
+ returns the request thread.
39389
+ """
39390
+ kwargs['_return_http_data_only'] = True
39391
+ return self.update_cloud_deployment_config_api_v2_clouds_cloud_id_deployment_cloud_deployment_id_config_put_with_http_info(cloud_id, cloud_deployment_id, cloud_deployment_config, **kwargs) # noqa: E501
39392
+
39393
+ def update_cloud_deployment_config_api_v2_clouds_cloud_id_deployment_cloud_deployment_id_config_put_with_http_info(self, cloud_id, cloud_deployment_id, cloud_deployment_config, **kwargs): # noqa: E501
39394
+ """Update Cloud Deployment Config # noqa: E501
39395
+
39396
+ This method makes a synchronous HTTP request by default. To make an
39397
+ asynchronous HTTP request, please pass async_req=True
39398
+ >>> thread = api.update_cloud_deployment_config_api_v2_clouds_cloud_id_deployment_cloud_deployment_id_config_put_with_http_info(cloud_id, cloud_deployment_id, cloud_deployment_config, async_req=True)
39399
+ >>> result = thread.get()
39400
+
39401
+ :param async_req bool: execute request asynchronously
39402
+ :param str cloud_id: (required)
39403
+ :param str cloud_deployment_id: (required)
39404
+ :param CloudDeploymentConfig cloud_deployment_config: (required)
39405
+ :param _return_http_data_only: response data without head status code
39406
+ and headers
39407
+ :param _preload_content: if False, the urllib3.HTTPResponse object will
39408
+ be returned without reading/decoding response
39409
+ data. Default is True.
39410
+ :param _request_timeout: timeout setting for this request. If one
39411
+ number provided, it will be total request
39412
+ timeout. It can also be a pair (tuple) of
39413
+ (connection, read) timeouts.
39414
+ :return: tuple(ClouddeploymentconfigResponse, status_code(int), headers(HTTPHeaderDict))
39415
+ If the method is called asynchronously,
39416
+ returns the request thread.
39417
+ """
39418
+
39419
+ local_var_params = locals()
39420
+
39421
+ all_params = [
39422
+ 'cloud_id',
39423
+ 'cloud_deployment_id',
39424
+ 'cloud_deployment_config'
39425
+ ]
39426
+ all_params.extend(
39427
+ [
39428
+ 'async_req',
39429
+ '_return_http_data_only',
39430
+ '_preload_content',
39431
+ '_request_timeout'
39432
+ ]
39433
+ )
39434
+
39435
+ for key, val in six.iteritems(local_var_params['kwargs']):
39436
+ if key not in all_params:
39437
+ raise ApiTypeError(
39438
+ "Got an unexpected keyword argument '%s'"
39439
+ " to method update_cloud_deployment_config_api_v2_clouds_cloud_id_deployment_cloud_deployment_id_config_put" % key
39440
+ )
39441
+ local_var_params[key] = val
39442
+ del local_var_params['kwargs']
39443
+ # verify the required parameter 'cloud_id' is set
39444
+ if self.api_client.client_side_validation and ('cloud_id' not in local_var_params or # noqa: E501
39445
+ local_var_params['cloud_id'] is None): # noqa: E501
39446
+ raise ApiValueError("Missing the required parameter `cloud_id` when calling `update_cloud_deployment_config_api_v2_clouds_cloud_id_deployment_cloud_deployment_id_config_put`") # noqa: E501
39447
+ # verify the required parameter 'cloud_deployment_id' is set
39448
+ if self.api_client.client_side_validation and ('cloud_deployment_id' not in local_var_params or # noqa: E501
39449
+ local_var_params['cloud_deployment_id'] is None): # noqa: E501
39450
+ raise ApiValueError("Missing the required parameter `cloud_deployment_id` when calling `update_cloud_deployment_config_api_v2_clouds_cloud_id_deployment_cloud_deployment_id_config_put`") # noqa: E501
39451
+ # verify the required parameter 'cloud_deployment_config' is set
39452
+ if self.api_client.client_side_validation and ('cloud_deployment_config' not in local_var_params or # noqa: E501
39453
+ local_var_params['cloud_deployment_config'] is None): # noqa: E501
39454
+ raise ApiValueError("Missing the required parameter `cloud_deployment_config` when calling `update_cloud_deployment_config_api_v2_clouds_cloud_id_deployment_cloud_deployment_id_config_put`") # noqa: E501
39455
+
39456
+ collection_formats = {}
39457
+
39458
+ path_params = {}
39459
+ if 'cloud_id' in local_var_params:
39460
+ path_params['cloud_id'] = local_var_params['cloud_id'] # noqa: E501
39461
+ if 'cloud_deployment_id' in local_var_params:
39462
+ path_params['cloud_deployment_id'] = local_var_params['cloud_deployment_id'] # noqa: E501
39463
+
39464
+ query_params = []
39465
+
39466
+ header_params = {}
39467
+
39468
+ form_params = []
39469
+ local_var_files = {}
39470
+
39471
+ body_params = None
39472
+ if 'cloud_deployment_config' in local_var_params:
39473
+ body_params = local_var_params['cloud_deployment_config']
39474
+ # HTTP header `Accept`
39475
+ header_params['Accept'] = self.api_client.select_header_accept(
39476
+ ['application/json']) # noqa: E501
39477
+
39478
+ # HTTP header `Content-Type`
39479
+ header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501
39480
+ ['application/json']) # noqa: E501
39481
+
39482
+ # Authentication setting
39483
+ auth_settings = [] # noqa: E501
39484
+
39485
+ return self.api_client.call_api(
39486
+ '/api/v2/clouds/{cloud_id}/deployment/{cloud_deployment_id}/config', 'PUT',
39487
+ path_params,
39488
+ query_params,
39489
+ header_params,
39490
+ body=body_params,
39491
+ post_params=form_params,
39492
+ files=local_var_files,
39493
+ response_type='ClouddeploymentconfigResponse', # noqa: E501
39494
+ auth_settings=auth_settings,
39495
+ async_req=local_var_params.get('async_req'),
39496
+ _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501
39497
+ _preload_content=local_var_params.get('_preload_content', True),
39498
+ _request_timeout=local_var_params.get('_request_timeout'),
39499
+ collection_formats=collection_formats)
39500
+
39321
39501
  def update_cloud_with_cloud_resource_api_v2_clouds_with_cloud_resource_gcp_router_cloud_id_put(self, cloud_id, update_cloud_with_cloud_resource_gcp, **kwargs): # noqa: E501
39322
39502
  """Update Cloud With Cloud Resource # noqa: E501
39323
39503