anyscale 0.26.19__py3-none-any.whl → 0.26.20__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- anyscale/_private/docgen/models.md +1 -1
- anyscale/client/README.md +6 -1
- anyscale/client/openapi_client/__init__.py +3 -0
- anyscale/client/openapi_client/api/default_api.py +269 -17
- anyscale/client/openapi_client/models/__init__.py +3 -0
- anyscale/client/openapi_client/models/decorated_production_job_state_transition.py +2 -2
- anyscale/client/openapi_client/models/job_queue_sort_directive.py +148 -0
- anyscale/client/openapi_client/models/job_queue_sort_field.py +107 -0
- anyscale/client/openapi_client/models/job_queues_query.py +31 -3
- anyscale/client/openapi_client/models/production_job_state_transition.py +2 -2
- anyscale/client/openapi_client/models/update_job_queue_request.py +150 -0
- anyscale/commands/command_examples.py +58 -0
- anyscale/commands/job_commands.py +2 -2
- anyscale/commands/job_queue_commands.py +172 -0
- anyscale/controllers/job_controller.py +215 -3
- anyscale/scripts.py +3 -0
- anyscale/sdk/anyscale_client/models/production_job_state_transition.py +2 -2
- anyscale/util.py +3 -1
- anyscale/utils/connect_helpers.py +34 -0
- anyscale/version.py +1 -1
- anyscale/workspace/_private/workspace_sdk.py +19 -6
- {anyscale-0.26.19.dist-info → anyscale-0.26.20.dist-info}/METADATA +1 -1
- {anyscale-0.26.19.dist-info → anyscale-0.26.20.dist-info}/RECORD +28 -24
- {anyscale-0.26.19.dist-info → anyscale-0.26.20.dist-info}/LICENSE +0 -0
- {anyscale-0.26.19.dist-info → anyscale-0.26.20.dist-info}/NOTICE +0 -0
- {anyscale-0.26.19.dist-info → anyscale-0.26.20.dist-info}/WHEEL +0 -0
- {anyscale-0.26.19.dist-info → anyscale-0.26.20.dist-info}/entry_points.txt +0 -0
- {anyscale-0.26.19.dist-info → anyscale-0.26.20.dist-info}/top_level.txt +0 -0
@@ -1355,7 +1355,7 @@ Name | Type | Description | Notes
|
|
1355
1355
|
Name | Type | Description | Notes
|
1356
1356
|
------------ | ------------- | ------------- | -------------
|
1357
1357
|
**id** | **str** | The id of this job state transition | [default to null]
|
1358
|
-
**state_transitioned_at** | **datetime** | The last time the state of this job was updated
|
1358
|
+
**state_transitioned_at** | **datetime** | The last time the state of this job was updated | [default to null]
|
1359
1359
|
**current_state** | [**HaJobStates**](#hajobstates) | The current state of the job | [default to null]
|
1360
1360
|
**goal_state** | [**HaJobGoalStates**](#hajobgoalstates) | The goal state of the job | [optional] [default to null]
|
1361
1361
|
**error** | **str** | An error message that occurred in this job state transition | [optional] [default to null]
|
anyscale/client/README.md
CHANGED
@@ -234,7 +234,7 @@ Class | Method | HTTP request | Description
|
|
234
234
|
*DefaultApi* | [**get_regions_and_zones_api_v2_clouds_gcp_regions_and_zones_get**](docs/DefaultApi.md#get_regions_and_zones_api_v2_clouds_gcp_regions_and_zones_get) | **GET** /api/v2/clouds/gcp/regions_and_zones | Get Regions And Zones
|
235
235
|
*DefaultApi* | [**get_resource_notification_api_v2_resource_notifications_resource_notification_id_get**](docs/DefaultApi.md#get_resource_notification_api_v2_resource_notifications_resource_notification_id_get) | **GET** /api/v2/resource_notifications/{resource_notification_id} | Get Resource Notification
|
236
236
|
*DefaultApi* | [**get_resource_quota_api_v2_resource_quotas_resource_quota_id_get**](docs/DefaultApi.md#get_resource_quota_api_v2_resource_quotas_resource_quota_id_get) | **GET** /api/v2/resource_quotas/{resource_quota_id} | Get Resource Quota
|
237
|
-
*DefaultApi* | [**
|
237
|
+
*DefaultApi* | [**get_root_cause_for_job_api_v2_iknow_get**](docs/DefaultApi.md#get_root_cause_for_job_api_v2_iknow_get) | **GET** /api/v2/iknow/ | Get Root Cause For Job
|
238
238
|
*DefaultApi* | [**get_runtime_env_logs_download_api_v2_logs_runtime_env_logs_download_session_id_get**](docs/DefaultApi.md#get_runtime_env_logs_download_api_v2_logs_runtime_env_logs_download_session_id_get) | **GET** /api/v2/logs/runtime_env_logs_download/{session_id} | Get Runtime Env Logs Download
|
239
239
|
*DefaultApi* | [**get_serve_logs_download_api_v2_logs_serve_logs_download_cluster_id_get**](docs/DefaultApi.md#get_serve_logs_download_api_v2_logs_serve_logs_download_cluster_id_get) | **GET** /api/v2/logs/serve_logs_download/{cluster_id} | Get Serve Logs Download
|
240
240
|
*DefaultApi* | [**get_service_api_v2_services_v2_service_id_get**](docs/DefaultApi.md#get_service_api_v2_services_v2_service_id_get) | **GET** /api/v2/services-v2/{service_id} | Get Service
|
@@ -358,12 +358,14 @@ Class | Method | HTTP request | Description
|
|
358
358
|
*DefaultApi* | [**update_cloud_auto_add_user_api_v2_clouds_cloud_id_auto_add_user_put**](docs/DefaultApi.md#update_cloud_auto_add_user_api_v2_clouds_cloud_id_auto_add_user_put) | **PUT** /api/v2/clouds/{cloud_id}/auto_add_user | Update Cloud Auto Add User
|
359
359
|
*DefaultApi* | [**update_cloud_config_api_v2_clouds_cloud_id_config_put**](docs/DefaultApi.md#update_cloud_config_api_v2_clouds_cloud_id_config_put) | **PUT** /api/v2/clouds/{cloud_id}/config | Update Cloud Config
|
360
360
|
*DefaultApi* | [**update_cloud_deployment_config_api_v2_clouds_cloud_id_deployment_cloud_deployment_id_config_put**](docs/DefaultApi.md#update_cloud_deployment_config_api_v2_clouds_cloud_id_deployment_cloud_deployment_id_config_put) | **PUT** /api/v2/clouds/{cloud_id}/deployment/{cloud_deployment_id}/config | Update Cloud Deployment Config
|
361
|
+
*DefaultApi* | [**update_cloud_deployments_api_v2_clouds_cloud_id_deployments_put**](docs/DefaultApi.md#update_cloud_deployments_api_v2_clouds_cloud_id_deployments_put) | **PUT** /api/v2/clouds/{cloud_id}/deployments | Update Cloud Deployments
|
361
362
|
*DefaultApi* | [**update_cloud_with_cloud_resource_api_v2_clouds_with_cloud_resource_gcp_router_cloud_id_put**](docs/DefaultApi.md#update_cloud_with_cloud_resource_api_v2_clouds_with_cloud_resource_gcp_router_cloud_id_put) | **PUT** /api/v2/clouds_with_cloud_resource_gcp_router/{cloud_id} | Update Cloud With Cloud Resource
|
362
363
|
*DefaultApi* | [**update_cloud_with_cloud_resource_api_v2_clouds_with_cloud_resource_router_cloud_id_put**](docs/DefaultApi.md#update_cloud_with_cloud_resource_api_v2_clouds_with_cloud_resource_router_cloud_id_put) | **PUT** /api/v2/clouds_with_cloud_resource_router/{cloud_id} | Update Cloud With Cloud Resource
|
363
364
|
*DefaultApi* | [**update_customer_aggregated_logs_config_api_v2_clouds_cloud_id_update_customer_aggregated_logs_config_put**](docs/DefaultApi.md#update_customer_aggregated_logs_config_api_v2_clouds_cloud_id_update_customer_aggregated_logs_config_put) | **PUT** /api/v2/clouds/{cloud_id}/update_customer_aggregated_logs_config | Update Customer Aggregated Logs Config
|
364
365
|
*DefaultApi* | [**update_default_cloud_api_v2_organizations_update_default_cloud_post**](docs/DefaultApi.md#update_default_cloud_api_v2_organizations_update_default_cloud_post) | **POST** /api/v2/organizations/update_default_cloud | Update Default Cloud
|
365
366
|
*DefaultApi* | [**update_dns_api_v2_dns_post**](docs/DefaultApi.md#update_dns_api_v2_dns_post) | **POST** /api/v2/dns/ | Update Dns
|
366
367
|
*DefaultApi* | [**update_instance_usage_budget_api_v2_instance_usage_budgets_instance_usage_budget_id_put**](docs/DefaultApi.md#update_instance_usage_budget_api_v2_instance_usage_budgets_instance_usage_budget_id_put) | **PUT** /api/v2/instance_usage_budgets/{instance_usage_budget_id} | Update Instance Usage Budget
|
368
|
+
*DefaultApi* | [**update_job_queue_api_v2_job_queues_job_queue_id_put**](docs/DefaultApi.md#update_job_queue_api_v2_job_queues_job_queue_id_put) | **PUT** /api/v2/job_queues/{job_queue_id} | Update Job Queue
|
367
369
|
*DefaultApi* | [**update_job_queue_config_api_v2_decorated_ha_jobs_production_job_id_update_job_queue_config_put**](docs/DefaultApi.md#update_job_queue_config_api_v2_decorated_ha_jobs_production_job_id_update_job_queue_config_put) | **PUT** /api/v2/decorated_ha_jobs/{production_job_id}/update_job_queue_config | Update Job Queue Config
|
368
370
|
*DefaultApi* | [**update_machine_pool_api_v2_machine_pools_update_post**](docs/DefaultApi.md#update_machine_pool_api_v2_machine_pools_update_post) | **POST** /api/v2/machine_pools/update | Update Machine Pool
|
369
371
|
*DefaultApi* | [**update_resource_notification_api_v2_resource_notifications_resource_notification_id_put**](docs/DefaultApi.md#update_resource_notification_api_v2_resource_notifications_resource_notification_id_put) | **PUT** /api/v2/resource_notifications/{resource_notification_id} | Update Resource Notification
|
@@ -678,6 +680,8 @@ Class | Method | HTTP request | Description
|
|
678
680
|
- [JobQueue](docs/JobQueue.md)
|
679
681
|
- [JobQueueConfig](docs/JobQueueConfig.md)
|
680
682
|
- [JobQueueExecutionMode](docs/JobQueueExecutionMode.md)
|
683
|
+
- [JobQueueSortDirective](docs/JobQueueSortDirective.md)
|
684
|
+
- [JobQueueSortField](docs/JobQueueSortField.md)
|
681
685
|
- [JobQueueSpec](docs/JobQueueSpec.md)
|
682
686
|
- [JobQueueState](docs/JobQueueState.md)
|
683
687
|
- [JobQueuesQuery](docs/JobQueuesQuery.md)
|
@@ -928,6 +932,7 @@ Class | Method | HTTP request | Description
|
|
928
932
|
- [UpdateCloudWithCloudResource](docs/UpdateCloudWithCloudResource.md)
|
929
933
|
- [UpdateCloudWithCloudResourceGCP](docs/UpdateCloudWithCloudResourceGCP.md)
|
930
934
|
- [UpdateClusterDns](docs/UpdateClusterDns.md)
|
935
|
+
- [UpdateJobQueueRequest](docs/UpdateJobQueueRequest.md)
|
931
936
|
- [UpdateMachinePoolRequest](docs/UpdateMachinePoolRequest.md)
|
932
937
|
- [UpdateOrganizationCollaborator](docs/UpdateOrganizationCollaborator.md)
|
933
938
|
- [UpdateProjectCollaborator](docs/UpdateProjectCollaborator.md)
|
@@ -324,6 +324,8 @@ from openapi_client.models.job_details import JobDetails
|
|
324
324
|
from openapi_client.models.job_queue import JobQueue
|
325
325
|
from openapi_client.models.job_queue_config import JobQueueConfig
|
326
326
|
from openapi_client.models.job_queue_execution_mode import JobQueueExecutionMode
|
327
|
+
from openapi_client.models.job_queue_sort_directive import JobQueueSortDirective
|
328
|
+
from openapi_client.models.job_queue_sort_field import JobQueueSortField
|
327
329
|
from openapi_client.models.job_queue_spec import JobQueueSpec
|
328
330
|
from openapi_client.models.job_queue_state import JobQueueState
|
329
331
|
from openapi_client.models.job_queues_query import JobQueuesQuery
|
@@ -574,6 +576,7 @@ from openapi_client.models.update_cloud_collaborator import UpdateCloudCollabora
|
|
574
576
|
from openapi_client.models.update_cloud_with_cloud_resource import UpdateCloudWithCloudResource
|
575
577
|
from openapi_client.models.update_cloud_with_cloud_resource_gcp import UpdateCloudWithCloudResourceGCP
|
576
578
|
from openapi_client.models.update_cluster_dns import UpdateClusterDns
|
579
|
+
from openapi_client.models.update_job_queue_request import UpdateJobQueueRequest
|
577
580
|
from openapi_client.models.update_machine_pool_request import UpdateMachinePoolRequest
|
578
581
|
from openapi_client.models.update_organization_collaborator import UpdateOrganizationCollaborator
|
579
582
|
from openapi_client.models.update_project_collaborator import UpdateProjectCollaborator
|
@@ -18752,16 +18752,16 @@ class DefaultApi(object):
|
|
18752
18752
|
_request_timeout=local_var_params.get('_request_timeout'),
|
18753
18753
|
collection_formats=collection_formats)
|
18754
18754
|
|
18755
|
-
def
|
18756
|
-
"""Get Root Cause # noqa: E501
|
18755
|
+
def get_root_cause_for_job_api_v2_iknow_get(self, ha_job_id, **kwargs): # noqa: E501
|
18756
|
+
"""Get Root Cause For Job # noqa: E501
|
18757
18757
|
|
18758
18758
|
This method makes a synchronous HTTP request by default. To make an
|
18759
18759
|
asynchronous HTTP request, please pass async_req=True
|
18760
|
-
>>> thread = api.
|
18760
|
+
>>> thread = api.get_root_cause_for_job_api_v2_iknow_get(ha_job_id, async_req=True)
|
18761
18761
|
>>> result = thread.get()
|
18762
18762
|
|
18763
18763
|
:param async_req bool: execute request asynchronously
|
18764
|
-
:param str
|
18764
|
+
:param str ha_job_id: (required)
|
18765
18765
|
:param _preload_content: if False, the urllib3.HTTPResponse object will
|
18766
18766
|
be returned without reading/decoding response
|
18767
18767
|
data. Default is True.
|
@@ -18774,18 +18774,18 @@ class DefaultApi(object):
|
|
18774
18774
|
returns the request thread.
|
18775
18775
|
"""
|
18776
18776
|
kwargs['_return_http_data_only'] = True
|
18777
|
-
return self.
|
18777
|
+
return self.get_root_cause_for_job_api_v2_iknow_get_with_http_info(ha_job_id, **kwargs) # noqa: E501
|
18778
18778
|
|
18779
|
-
def
|
18780
|
-
"""Get Root Cause # noqa: E501
|
18779
|
+
def get_root_cause_for_job_api_v2_iknow_get_with_http_info(self, ha_job_id, **kwargs): # noqa: E501
|
18780
|
+
"""Get Root Cause For Job # noqa: E501
|
18781
18781
|
|
18782
18782
|
This method makes a synchronous HTTP request by default. To make an
|
18783
18783
|
asynchronous HTTP request, please pass async_req=True
|
18784
|
-
>>> thread = api.
|
18784
|
+
>>> thread = api.get_root_cause_for_job_api_v2_iknow_get_with_http_info(ha_job_id, async_req=True)
|
18785
18785
|
>>> result = thread.get()
|
18786
18786
|
|
18787
18787
|
:param async_req bool: execute request asynchronously
|
18788
|
-
:param str
|
18788
|
+
:param str ha_job_id: (required)
|
18789
18789
|
:param _return_http_data_only: response data without head status code
|
18790
18790
|
and headers
|
18791
18791
|
:param _preload_content: if False, the urllib3.HTTPResponse object will
|
@@ -18803,7 +18803,7 @@ class DefaultApi(object):
|
|
18803
18803
|
local_var_params = locals()
|
18804
18804
|
|
18805
18805
|
all_params = [
|
18806
|
-
'
|
18806
|
+
'ha_job_id'
|
18807
18807
|
]
|
18808
18808
|
all_params.extend(
|
18809
18809
|
[
|
@@ -18818,22 +18818,22 @@ class DefaultApi(object):
|
|
18818
18818
|
if key not in all_params:
|
18819
18819
|
raise ApiTypeError(
|
18820
18820
|
"Got an unexpected keyword argument '%s'"
|
18821
|
-
" to method
|
18821
|
+
" to method get_root_cause_for_job_api_v2_iknow_get" % key
|
18822
18822
|
)
|
18823
18823
|
local_var_params[key] = val
|
18824
18824
|
del local_var_params['kwargs']
|
18825
|
-
# verify the required parameter '
|
18826
|
-
if self.api_client.client_side_validation and ('
|
18827
|
-
local_var_params['
|
18828
|
-
raise ApiValueError("Missing the required parameter `
|
18825
|
+
# verify the required parameter 'ha_job_id' is set
|
18826
|
+
if self.api_client.client_side_validation and ('ha_job_id' not in local_var_params or # noqa: E501
|
18827
|
+
local_var_params['ha_job_id'] is None): # noqa: E501
|
18828
|
+
raise ApiValueError("Missing the required parameter `ha_job_id` when calling `get_root_cause_for_job_api_v2_iknow_get`") # noqa: E501
|
18829
18829
|
|
18830
18830
|
collection_formats = {}
|
18831
18831
|
|
18832
18832
|
path_params = {}
|
18833
18833
|
|
18834
18834
|
query_params = []
|
18835
|
-
if '
|
18836
|
-
query_params.append(('
|
18835
|
+
if 'ha_job_id' in local_var_params and local_var_params['ha_job_id'] is not None: # noqa: E501
|
18836
|
+
query_params.append(('ha_job_id', local_var_params['ha_job_id'])) # noqa: E501
|
18837
18837
|
|
18838
18838
|
header_params = {}
|
18839
18839
|
|
@@ -34143,6 +34143,131 @@ class DefaultApi(object):
|
|
34143
34143
|
_request_timeout=local_var_params.get('_request_timeout'),
|
34144
34144
|
collection_formats=collection_formats)
|
34145
34145
|
|
34146
|
+
def update_cloud_deployments_api_v2_clouds_cloud_id_deployments_put(self, cloud_id, cloud_deployment, **kwargs): # noqa: E501
|
34147
|
+
"""Update Cloud Deployments # noqa: E501
|
34148
|
+
|
34149
|
+
This method makes a synchronous HTTP request by default. To make an
|
34150
|
+
asynchronous HTTP request, please pass async_req=True
|
34151
|
+
>>> thread = api.update_cloud_deployments_api_v2_clouds_cloud_id_deployments_put(cloud_id, cloud_deployment, async_req=True)
|
34152
|
+
>>> result = thread.get()
|
34153
|
+
|
34154
|
+
:param async_req bool: execute request asynchronously
|
34155
|
+
:param str cloud_id: (required)
|
34156
|
+
:param list[CloudDeployment] cloud_deployment: (required)
|
34157
|
+
:param _preload_content: if False, the urllib3.HTTPResponse object will
|
34158
|
+
be returned without reading/decoding response
|
34159
|
+
data. Default is True.
|
34160
|
+
:param _request_timeout: timeout setting for this request. If one
|
34161
|
+
number provided, it will be total request
|
34162
|
+
timeout. It can also be a pair (tuple) of
|
34163
|
+
(connection, read) timeouts.
|
34164
|
+
:return: object
|
34165
|
+
If the method is called asynchronously,
|
34166
|
+
returns the request thread.
|
34167
|
+
"""
|
34168
|
+
kwargs['_return_http_data_only'] = True
|
34169
|
+
return self.update_cloud_deployments_api_v2_clouds_cloud_id_deployments_put_with_http_info(cloud_id, cloud_deployment, **kwargs) # noqa: E501
|
34170
|
+
|
34171
|
+
def update_cloud_deployments_api_v2_clouds_cloud_id_deployments_put_with_http_info(self, cloud_id, cloud_deployment, **kwargs): # noqa: E501
|
34172
|
+
"""Update Cloud Deployments # noqa: E501
|
34173
|
+
|
34174
|
+
This method makes a synchronous HTTP request by default. To make an
|
34175
|
+
asynchronous HTTP request, please pass async_req=True
|
34176
|
+
>>> thread = api.update_cloud_deployments_api_v2_clouds_cloud_id_deployments_put_with_http_info(cloud_id, cloud_deployment, async_req=True)
|
34177
|
+
>>> result = thread.get()
|
34178
|
+
|
34179
|
+
:param async_req bool: execute request asynchronously
|
34180
|
+
:param str cloud_id: (required)
|
34181
|
+
:param list[CloudDeployment] cloud_deployment: (required)
|
34182
|
+
:param _return_http_data_only: response data without head status code
|
34183
|
+
and headers
|
34184
|
+
:param _preload_content: if False, the urllib3.HTTPResponse object will
|
34185
|
+
be returned without reading/decoding response
|
34186
|
+
data. Default is True.
|
34187
|
+
:param _request_timeout: timeout setting for this request. If one
|
34188
|
+
number provided, it will be total request
|
34189
|
+
timeout. It can also be a pair (tuple) of
|
34190
|
+
(connection, read) timeouts.
|
34191
|
+
:return: tuple(object, status_code(int), headers(HTTPHeaderDict))
|
34192
|
+
If the method is called asynchronously,
|
34193
|
+
returns the request thread.
|
34194
|
+
"""
|
34195
|
+
|
34196
|
+
local_var_params = locals()
|
34197
|
+
|
34198
|
+
all_params = [
|
34199
|
+
'cloud_id',
|
34200
|
+
'cloud_deployment'
|
34201
|
+
]
|
34202
|
+
all_params.extend(
|
34203
|
+
[
|
34204
|
+
'async_req',
|
34205
|
+
'_return_http_data_only',
|
34206
|
+
'_preload_content',
|
34207
|
+
'_request_timeout'
|
34208
|
+
]
|
34209
|
+
)
|
34210
|
+
|
34211
|
+
for key, val in six.iteritems(local_var_params['kwargs']):
|
34212
|
+
if key not in all_params:
|
34213
|
+
raise ApiTypeError(
|
34214
|
+
"Got an unexpected keyword argument '%s'"
|
34215
|
+
" to method update_cloud_deployments_api_v2_clouds_cloud_id_deployments_put" % key
|
34216
|
+
)
|
34217
|
+
local_var_params[key] = val
|
34218
|
+
del local_var_params['kwargs']
|
34219
|
+
# verify the required parameter 'cloud_id' is set
|
34220
|
+
if self.api_client.client_side_validation and ('cloud_id' not in local_var_params or # noqa: E501
|
34221
|
+
local_var_params['cloud_id'] is None): # noqa: E501
|
34222
|
+
raise ApiValueError("Missing the required parameter `cloud_id` when calling `update_cloud_deployments_api_v2_clouds_cloud_id_deployments_put`") # noqa: E501
|
34223
|
+
# verify the required parameter 'cloud_deployment' is set
|
34224
|
+
if self.api_client.client_side_validation and ('cloud_deployment' not in local_var_params or # noqa: E501
|
34225
|
+
local_var_params['cloud_deployment'] is None): # noqa: E501
|
34226
|
+
raise ApiValueError("Missing the required parameter `cloud_deployment` when calling `update_cloud_deployments_api_v2_clouds_cloud_id_deployments_put`") # noqa: E501
|
34227
|
+
|
34228
|
+
collection_formats = {}
|
34229
|
+
|
34230
|
+
path_params = {}
|
34231
|
+
if 'cloud_id' in local_var_params:
|
34232
|
+
path_params['cloud_id'] = local_var_params['cloud_id'] # noqa: E501
|
34233
|
+
|
34234
|
+
query_params = []
|
34235
|
+
|
34236
|
+
header_params = {}
|
34237
|
+
|
34238
|
+
form_params = []
|
34239
|
+
local_var_files = {}
|
34240
|
+
|
34241
|
+
body_params = None
|
34242
|
+
if 'cloud_deployment' in local_var_params:
|
34243
|
+
body_params = local_var_params['cloud_deployment']
|
34244
|
+
# HTTP header `Accept`
|
34245
|
+
header_params['Accept'] = self.api_client.select_header_accept(
|
34246
|
+
['application/json']) # noqa: E501
|
34247
|
+
|
34248
|
+
# HTTP header `Content-Type`
|
34249
|
+
header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501
|
34250
|
+
['application/json']) # noqa: E501
|
34251
|
+
|
34252
|
+
# Authentication setting
|
34253
|
+
auth_settings = [] # noqa: E501
|
34254
|
+
|
34255
|
+
return self.api_client.call_api(
|
34256
|
+
'/api/v2/clouds/{cloud_id}/deployments', 'PUT',
|
34257
|
+
path_params,
|
34258
|
+
query_params,
|
34259
|
+
header_params,
|
34260
|
+
body=body_params,
|
34261
|
+
post_params=form_params,
|
34262
|
+
files=local_var_files,
|
34263
|
+
response_type='object', # noqa: E501
|
34264
|
+
auth_settings=auth_settings,
|
34265
|
+
async_req=local_var_params.get('async_req'),
|
34266
|
+
_return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501
|
34267
|
+
_preload_content=local_var_params.get('_preload_content', True),
|
34268
|
+
_request_timeout=local_var_params.get('_request_timeout'),
|
34269
|
+
collection_formats=collection_formats)
|
34270
|
+
|
34146
34271
|
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
|
34147
34272
|
"""Update Cloud With Cloud Resource # noqa: E501
|
34148
34273
|
|
@@ -34872,6 +34997,133 @@ class DefaultApi(object):
|
|
34872
34997
|
_request_timeout=local_var_params.get('_request_timeout'),
|
34873
34998
|
collection_formats=collection_formats)
|
34874
34999
|
|
35000
|
+
def update_job_queue_api_v2_job_queues_job_queue_id_put(self, job_queue_id, update_job_queue_request, **kwargs): # noqa: E501
|
35001
|
+
"""Update Job Queue # noqa: E501
|
35002
|
+
|
35003
|
+
Update a job queue. # noqa: E501
|
35004
|
+
This method makes a synchronous HTTP request by default. To make an
|
35005
|
+
asynchronous HTTP request, please pass async_req=True
|
35006
|
+
>>> thread = api.update_job_queue_api_v2_job_queues_job_queue_id_put(job_queue_id, update_job_queue_request, async_req=True)
|
35007
|
+
>>> result = thread.get()
|
35008
|
+
|
35009
|
+
:param async_req bool: execute request asynchronously
|
35010
|
+
:param str job_queue_id: (required)
|
35011
|
+
:param UpdateJobQueueRequest update_job_queue_request: (required)
|
35012
|
+
:param _preload_content: if False, the urllib3.HTTPResponse object will
|
35013
|
+
be returned without reading/decoding response
|
35014
|
+
data. Default is True.
|
35015
|
+
:param _request_timeout: timeout setting for this request. If one
|
35016
|
+
number provided, it will be total request
|
35017
|
+
timeout. It can also be a pair (tuple) of
|
35018
|
+
(connection, read) timeouts.
|
35019
|
+
:return: DecoratedjobqueueResponse
|
35020
|
+
If the method is called asynchronously,
|
35021
|
+
returns the request thread.
|
35022
|
+
"""
|
35023
|
+
kwargs['_return_http_data_only'] = True
|
35024
|
+
return self.update_job_queue_api_v2_job_queues_job_queue_id_put_with_http_info(job_queue_id, update_job_queue_request, **kwargs) # noqa: E501
|
35025
|
+
|
35026
|
+
def update_job_queue_api_v2_job_queues_job_queue_id_put_with_http_info(self, job_queue_id, update_job_queue_request, **kwargs): # noqa: E501
|
35027
|
+
"""Update Job Queue # noqa: E501
|
35028
|
+
|
35029
|
+
Update a job queue. # noqa: E501
|
35030
|
+
This method makes a synchronous HTTP request by default. To make an
|
35031
|
+
asynchronous HTTP request, please pass async_req=True
|
35032
|
+
>>> thread = api.update_job_queue_api_v2_job_queues_job_queue_id_put_with_http_info(job_queue_id, update_job_queue_request, async_req=True)
|
35033
|
+
>>> result = thread.get()
|
35034
|
+
|
35035
|
+
:param async_req bool: execute request asynchronously
|
35036
|
+
:param str job_queue_id: (required)
|
35037
|
+
:param UpdateJobQueueRequest update_job_queue_request: (required)
|
35038
|
+
:param _return_http_data_only: response data without head status code
|
35039
|
+
and headers
|
35040
|
+
:param _preload_content: if False, the urllib3.HTTPResponse object will
|
35041
|
+
be returned without reading/decoding response
|
35042
|
+
data. Default is True.
|
35043
|
+
:param _request_timeout: timeout setting for this request. If one
|
35044
|
+
number provided, it will be total request
|
35045
|
+
timeout. It can also be a pair (tuple) of
|
35046
|
+
(connection, read) timeouts.
|
35047
|
+
:return: tuple(DecoratedjobqueueResponse, status_code(int), headers(HTTPHeaderDict))
|
35048
|
+
If the method is called asynchronously,
|
35049
|
+
returns the request thread.
|
35050
|
+
"""
|
35051
|
+
|
35052
|
+
local_var_params = locals()
|
35053
|
+
|
35054
|
+
all_params = [
|
35055
|
+
'job_queue_id',
|
35056
|
+
'update_job_queue_request'
|
35057
|
+
]
|
35058
|
+
all_params.extend(
|
35059
|
+
[
|
35060
|
+
'async_req',
|
35061
|
+
'_return_http_data_only',
|
35062
|
+
'_preload_content',
|
35063
|
+
'_request_timeout'
|
35064
|
+
]
|
35065
|
+
)
|
35066
|
+
|
35067
|
+
for key, val in six.iteritems(local_var_params['kwargs']):
|
35068
|
+
if key not in all_params:
|
35069
|
+
raise ApiTypeError(
|
35070
|
+
"Got an unexpected keyword argument '%s'"
|
35071
|
+
" to method update_job_queue_api_v2_job_queues_job_queue_id_put" % key
|
35072
|
+
)
|
35073
|
+
local_var_params[key] = val
|
35074
|
+
del local_var_params['kwargs']
|
35075
|
+
# verify the required parameter 'job_queue_id' is set
|
35076
|
+
if self.api_client.client_side_validation and ('job_queue_id' not in local_var_params or # noqa: E501
|
35077
|
+
local_var_params['job_queue_id'] is None): # noqa: E501
|
35078
|
+
raise ApiValueError("Missing the required parameter `job_queue_id` when calling `update_job_queue_api_v2_job_queues_job_queue_id_put`") # noqa: E501
|
35079
|
+
# verify the required parameter 'update_job_queue_request' is set
|
35080
|
+
if self.api_client.client_side_validation and ('update_job_queue_request' not in local_var_params or # noqa: E501
|
35081
|
+
local_var_params['update_job_queue_request'] is None): # noqa: E501
|
35082
|
+
raise ApiValueError("Missing the required parameter `update_job_queue_request` when calling `update_job_queue_api_v2_job_queues_job_queue_id_put`") # noqa: E501
|
35083
|
+
|
35084
|
+
collection_formats = {}
|
35085
|
+
|
35086
|
+
path_params = {}
|
35087
|
+
if 'job_queue_id' in local_var_params:
|
35088
|
+
path_params['job_queue_id'] = local_var_params['job_queue_id'] # noqa: E501
|
35089
|
+
|
35090
|
+
query_params = []
|
35091
|
+
|
35092
|
+
header_params = {}
|
35093
|
+
|
35094
|
+
form_params = []
|
35095
|
+
local_var_files = {}
|
35096
|
+
|
35097
|
+
body_params = None
|
35098
|
+
if 'update_job_queue_request' in local_var_params:
|
35099
|
+
body_params = local_var_params['update_job_queue_request']
|
35100
|
+
# HTTP header `Accept`
|
35101
|
+
header_params['Accept'] = self.api_client.select_header_accept(
|
35102
|
+
['application/json']) # noqa: E501
|
35103
|
+
|
35104
|
+
# HTTP header `Content-Type`
|
35105
|
+
header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501
|
35106
|
+
['application/json']) # noqa: E501
|
35107
|
+
|
35108
|
+
# Authentication setting
|
35109
|
+
auth_settings = [] # noqa: E501
|
35110
|
+
|
35111
|
+
return self.api_client.call_api(
|
35112
|
+
'/api/v2/job_queues/{job_queue_id}', 'PUT',
|
35113
|
+
path_params,
|
35114
|
+
query_params,
|
35115
|
+
header_params,
|
35116
|
+
body=body_params,
|
35117
|
+
post_params=form_params,
|
35118
|
+
files=local_var_files,
|
35119
|
+
response_type='DecoratedjobqueueResponse', # noqa: E501
|
35120
|
+
auth_settings=auth_settings,
|
35121
|
+
async_req=local_var_params.get('async_req'),
|
35122
|
+
_return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501
|
35123
|
+
_preload_content=local_var_params.get('_preload_content', True),
|
35124
|
+
_request_timeout=local_var_params.get('_request_timeout'),
|
35125
|
+
collection_formats=collection_formats)
|
35126
|
+
|
34875
35127
|
def update_job_queue_config_api_v2_decorated_ha_jobs_production_job_id_update_job_queue_config_put(self, production_job_id, job_queue_config, **kwargs): # noqa: E501
|
34876
35128
|
"""Update Job Queue Config # noqa: E501
|
34877
35129
|
|
@@ -310,6 +310,8 @@ from openapi_client.models.job_details import JobDetails
|
|
310
310
|
from openapi_client.models.job_queue import JobQueue
|
311
311
|
from openapi_client.models.job_queue_config import JobQueueConfig
|
312
312
|
from openapi_client.models.job_queue_execution_mode import JobQueueExecutionMode
|
313
|
+
from openapi_client.models.job_queue_sort_directive import JobQueueSortDirective
|
314
|
+
from openapi_client.models.job_queue_sort_field import JobQueueSortField
|
313
315
|
from openapi_client.models.job_queue_spec import JobQueueSpec
|
314
316
|
from openapi_client.models.job_queue_state import JobQueueState
|
315
317
|
from openapi_client.models.job_queues_query import JobQueuesQuery
|
@@ -560,6 +562,7 @@ from openapi_client.models.update_cloud_collaborator import UpdateCloudCollabora
|
|
560
562
|
from openapi_client.models.update_cloud_with_cloud_resource import UpdateCloudWithCloudResource
|
561
563
|
from openapi_client.models.update_cloud_with_cloud_resource_gcp import UpdateCloudWithCloudResourceGCP
|
562
564
|
from openapi_client.models.update_cluster_dns import UpdateClusterDns
|
565
|
+
from openapi_client.models.update_job_queue_request import UpdateJobQueueRequest
|
563
566
|
from openapi_client.models.update_machine_pool_request import UpdateMachinePoolRequest
|
564
567
|
from openapi_client.models.update_organization_collaborator import UpdateOrganizationCollaborator
|
565
568
|
from openapi_client.models.update_project_collaborator import UpdateProjectCollaborator
|
@@ -113,7 +113,7 @@ class DecoratedProductionJobStateTransition(object):
|
|
113
113
|
def state_transitioned_at(self):
|
114
114
|
"""Gets the state_transitioned_at of this DecoratedProductionJobStateTransition. # noqa: E501
|
115
115
|
|
116
|
-
The last time the state of this job was updated
|
116
|
+
The last time the state of this job was updated # noqa: E501
|
117
117
|
|
118
118
|
:return: The state_transitioned_at of this DecoratedProductionJobStateTransition. # noqa: E501
|
119
119
|
:rtype: datetime
|
@@ -124,7 +124,7 @@ class DecoratedProductionJobStateTransition(object):
|
|
124
124
|
def state_transitioned_at(self, state_transitioned_at):
|
125
125
|
"""Sets the state_transitioned_at of this DecoratedProductionJobStateTransition.
|
126
126
|
|
127
|
-
The last time the state of this job was updated
|
127
|
+
The last time the state of this job was updated # noqa: E501
|
128
128
|
|
129
129
|
:param state_transitioned_at: The state_transitioned_at of this DecoratedProductionJobStateTransition. # noqa: E501
|
130
130
|
:type: datetime
|
@@ -0,0 +1,148 @@
|
|
1
|
+
# coding: utf-8
|
2
|
+
|
3
|
+
"""
|
4
|
+
Managed Ray API
|
5
|
+
|
6
|
+
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
|
7
|
+
|
8
|
+
The version of the OpenAPI document: 0.1.0
|
9
|
+
Generated by: https://openapi-generator.tech
|
10
|
+
"""
|
11
|
+
|
12
|
+
|
13
|
+
import pprint
|
14
|
+
import re # noqa: F401
|
15
|
+
|
16
|
+
import six
|
17
|
+
|
18
|
+
from openapi_client.configuration import Configuration
|
19
|
+
|
20
|
+
|
21
|
+
class JobQueueSortDirective(object):
|
22
|
+
"""NOTE: This class is auto generated by OpenAPI Generator.
|
23
|
+
Ref: https://openapi-generator.tech
|
24
|
+
|
25
|
+
Do not edit the class manually.
|
26
|
+
"""
|
27
|
+
|
28
|
+
"""
|
29
|
+
Attributes:
|
30
|
+
openapi_types (dict): The key is attribute name
|
31
|
+
and the value is attribute type.
|
32
|
+
attribute_map (dict): The key is attribute name
|
33
|
+
and the value is json key in definition.
|
34
|
+
"""
|
35
|
+
openapi_types = {
|
36
|
+
'sort_field': 'JobQueueSortField',
|
37
|
+
'sort_order': 'SortOrder'
|
38
|
+
}
|
39
|
+
|
40
|
+
attribute_map = {
|
41
|
+
'sort_field': 'sort_field',
|
42
|
+
'sort_order': 'sort_order'
|
43
|
+
}
|
44
|
+
|
45
|
+
def __init__(self, sort_field=None, sort_order=None, local_vars_configuration=None): # noqa: E501
|
46
|
+
"""JobQueueSortDirective - a model defined in OpenAPI""" # noqa: E501
|
47
|
+
if local_vars_configuration is None:
|
48
|
+
local_vars_configuration = Configuration()
|
49
|
+
self.local_vars_configuration = local_vars_configuration
|
50
|
+
|
51
|
+
self._sort_field = None
|
52
|
+
self._sort_order = None
|
53
|
+
self.discriminator = None
|
54
|
+
|
55
|
+
self.sort_field = sort_field
|
56
|
+
self.sort_order = sort_order
|
57
|
+
|
58
|
+
@property
|
59
|
+
def sort_field(self):
|
60
|
+
"""Gets the sort_field of this JobQueueSortDirective. # noqa: E501
|
61
|
+
|
62
|
+
|
63
|
+
:return: The sort_field of this JobQueueSortDirective. # noqa: E501
|
64
|
+
:rtype: JobQueueSortField
|
65
|
+
"""
|
66
|
+
return self._sort_field
|
67
|
+
|
68
|
+
@sort_field.setter
|
69
|
+
def sort_field(self, sort_field):
|
70
|
+
"""Sets the sort_field of this JobQueueSortDirective.
|
71
|
+
|
72
|
+
|
73
|
+
:param sort_field: The sort_field of this JobQueueSortDirective. # noqa: E501
|
74
|
+
:type: JobQueueSortField
|
75
|
+
"""
|
76
|
+
if self.local_vars_configuration.client_side_validation and sort_field is None: # noqa: E501
|
77
|
+
raise ValueError("Invalid value for `sort_field`, must not be `None`") # noqa: E501
|
78
|
+
|
79
|
+
self._sort_field = sort_field
|
80
|
+
|
81
|
+
@property
|
82
|
+
def sort_order(self):
|
83
|
+
"""Gets the sort_order of this JobQueueSortDirective. # noqa: E501
|
84
|
+
|
85
|
+
|
86
|
+
:return: The sort_order of this JobQueueSortDirective. # noqa: E501
|
87
|
+
:rtype: SortOrder
|
88
|
+
"""
|
89
|
+
return self._sort_order
|
90
|
+
|
91
|
+
@sort_order.setter
|
92
|
+
def sort_order(self, sort_order):
|
93
|
+
"""Sets the sort_order of this JobQueueSortDirective.
|
94
|
+
|
95
|
+
|
96
|
+
:param sort_order: The sort_order of this JobQueueSortDirective. # noqa: E501
|
97
|
+
:type: SortOrder
|
98
|
+
"""
|
99
|
+
if self.local_vars_configuration.client_side_validation and sort_order is None: # noqa: E501
|
100
|
+
raise ValueError("Invalid value for `sort_order`, must not be `None`") # noqa: E501
|
101
|
+
|
102
|
+
self._sort_order = sort_order
|
103
|
+
|
104
|
+
def to_dict(self):
|
105
|
+
"""Returns the model properties as a dict"""
|
106
|
+
result = {}
|
107
|
+
|
108
|
+
for attr, _ in six.iteritems(self.openapi_types):
|
109
|
+
value = getattr(self, attr)
|
110
|
+
if isinstance(value, list):
|
111
|
+
result[attr] = list(map(
|
112
|
+
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
113
|
+
value
|
114
|
+
))
|
115
|
+
elif hasattr(value, "to_dict"):
|
116
|
+
result[attr] = value.to_dict()
|
117
|
+
elif isinstance(value, dict):
|
118
|
+
result[attr] = dict(map(
|
119
|
+
lambda item: (item[0], item[1].to_dict())
|
120
|
+
if hasattr(item[1], "to_dict") else item,
|
121
|
+
value.items()
|
122
|
+
))
|
123
|
+
else:
|
124
|
+
result[attr] = value
|
125
|
+
|
126
|
+
return result
|
127
|
+
|
128
|
+
def to_str(self):
|
129
|
+
"""Returns the string representation of the model"""
|
130
|
+
return pprint.pformat(self.to_dict())
|
131
|
+
|
132
|
+
def __repr__(self):
|
133
|
+
"""For `print` and `pprint`"""
|
134
|
+
return self.to_str()
|
135
|
+
|
136
|
+
def __eq__(self, other):
|
137
|
+
"""Returns true if both objects are equal"""
|
138
|
+
if not isinstance(other, JobQueueSortDirective):
|
139
|
+
return False
|
140
|
+
|
141
|
+
return self.to_dict() == other.to_dict()
|
142
|
+
|
143
|
+
def __ne__(self, other):
|
144
|
+
"""Returns true if both objects are not equal"""
|
145
|
+
if not isinstance(other, JobQueueSortDirective):
|
146
|
+
return True
|
147
|
+
|
148
|
+
return self.to_dict() != other.to_dict()
|