anyscale 0.26.37__py3-none-any.whl → 0.26.38__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 -12
- anyscale/client/README.md +6 -1
- anyscale/client/openapi_client/__init__.py +4 -1
- anyscale/client/openapi_client/api/default_api.py +236 -0
- anyscale/client/openapi_client/models/__init__.py +4 -1
- anyscale/client/openapi_client/models/cloud_deployment_compute_config.py +5 -5
- anyscale/client/openapi_client/models/describe_machine_pool_machines_request.py +123 -0
- anyscale/client/openapi_client/models/describe_machine_pool_requests_request.py +123 -0
- anyscale/client/openapi_client/models/machinestateinfo_list_response.py +147 -0
- anyscale/client/openapi_client/models/requeststateinfo_list_response.py +147 -0
- anyscale/sdk/anyscale_client/__init__.py +0 -1
- anyscale/sdk/anyscale_client/models/__init__.py +0 -1
- anyscale/sdk/anyscale_client/models/cloud_deployment_compute_config.py +5 -5
- anyscale/version.py +1 -1
- {anyscale-0.26.37.dist-info → anyscale-0.26.38.dist-info}/METADATA +1 -1
- {anyscale-0.26.37.dist-info → anyscale-0.26.38.dist-info}/RECORD +21 -19
- anyscale/client/openapi_client/models/cloud_deployment_selector.py +0 -206
- anyscale/sdk/anyscale_client/models/cloud_deployment_selector.py +0 -206
- {anyscale-0.26.37.dist-info → anyscale-0.26.38.dist-info}/LICENSE +0 -0
- {anyscale-0.26.37.dist-info → anyscale-0.26.38.dist-info}/NOTICE +0 -0
- {anyscale-0.26.37.dist-info → anyscale-0.26.38.dist-info}/WHEEL +0 -0
- {anyscale-0.26.37.dist-info → anyscale-0.26.38.dist-info}/entry_points.txt +0 -0
- {anyscale-0.26.37.dist-info → anyscale-0.26.38.dist-info}/top_level.txt +0 -0
|
@@ -195,7 +195,7 @@ Name | Type | Description | Notes
|
|
|
195
195
|
|
|
196
196
|
Name | Type | Description | Notes
|
|
197
197
|
------------ | ------------- | ------------- | -------------
|
|
198
|
-
**cloud_deployment** |
|
|
198
|
+
**cloud_deployment** | **str** | The name of the cloud deployment to use for this compute config. If not specified, the primary cloud deployment for the cloud will be used. | [optional] [default to null]
|
|
199
199
|
**allowed_azs** | **List[str]** | The availability zones that sessions are allowed to be launched in, e.g. \"us-west-2a\". If not specified or \"any\" is provided as the option, any AZ may be used. If \"any\" is provided, it must be the only item in the list. | [optional] [default to null]
|
|
200
200
|
**head_node_type** | [**ComputeNodeType**](#computenodetype) | Node configuration to use for the head node. | [default to null]
|
|
201
201
|
**worker_node_types** | [**List[WorkerNodeType]**](#workernodetype) | A list of node types to use for worker nodes. | [optional] [default to null]
|
|
@@ -203,17 +203,6 @@ Name | Type | Description | Notes
|
|
|
203
203
|
**auto_select_worker_config** | **bool** | If set to true, worker node groups will automatically be selected based on workload. | [optional] [default to false]
|
|
204
204
|
**flags** | [**object**](#) | A set of advanced cluster-level flags that can be used to configure a particular workload. | [optional] [default to null]
|
|
205
205
|
|
|
206
|
-
## CloudDeploymentSelector
|
|
207
|
-
|
|
208
|
-
Cloud deployment selectors; one or more selectors may be passed to target a specific deployment from all of a cloud's deployments.
|
|
209
|
-
|
|
210
|
-
Name | Type | Description | Notes
|
|
211
|
-
------------ | ------------- | ------------- | -------------
|
|
212
|
-
**id** | **str** | Cloud deployment ID. Note that this is not the same as the cloud ID. | [optional] [default to null]
|
|
213
|
-
**compute_stack** | [**ComputeStack**](#computestack) | Cloud deployment compute stack, e.g., `VM` or `K8S`. | [optional] [default to null]
|
|
214
|
-
**provider** | [**CloudProviders**](#cloudproviders) | Cloud deployment provider name, e.g., `AWS` or `GCP`. | [optional] [default to null]
|
|
215
|
-
**region** | **str** | Cloud deployment region, e.g., `us-west-2`. | [optional] [default to null]
|
|
216
|
-
|
|
217
206
|
## CloudListResponse
|
|
218
207
|
|
|
219
208
|
A list response form the API. Contains a field \"results\" which has the contents of the response.
|
anyscale/client/README.md
CHANGED
|
@@ -143,6 +143,8 @@ Class | Method | HTTP request | Description
|
|
|
143
143
|
*DefaultApi* | [**delete_service_api_v2_services_v2_service_id_delete**](docs/DefaultApi.md#delete_service_api_v2_services_v2_service_id_delete) | **DELETE** /api/v2/services-v2/{service_id} | Delete Service
|
|
144
144
|
*DefaultApi* | [**delete_workspace_api_v2_experimental_workspaces_workspace_id_delete**](docs/DefaultApi.md#delete_workspace_api_v2_experimental_workspaces_workspace_id_delete) | **DELETE** /api/v2/experimental_workspaces/{workspace_id} | Delete Workspace
|
|
145
145
|
*DefaultApi* | [**describe_machine_pool_api_v2_machine_pools_describe_post**](docs/DefaultApi.md#describe_machine_pool_api_v2_machine_pools_describe_post) | **POST** /api/v2/machine_pools/describe | Describe Machine Pool
|
|
146
|
+
*DefaultApi* | [**describe_machine_pool_machines_api_v2_machine_pools_describe_machines_post**](docs/DefaultApi.md#describe_machine_pool_machines_api_v2_machine_pools_describe_machines_post) | **POST** /api/v2/machine_pools/describe_machines | Describe Machine Pool Machines
|
|
147
|
+
*DefaultApi* | [**describe_machine_pool_requests_api_v2_machine_pools_describe_requests_post**](docs/DefaultApi.md#describe_machine_pool_requests_api_v2_machine_pools_describe_requests_post) | **POST** /api/v2/machine_pools/describe_requests | Describe Machine Pool Requests
|
|
146
148
|
*DefaultApi* | [**describe_system_workload_api_v2_system_workload_cloud_id_describe_post**](docs/DefaultApi.md#describe_system_workload_api_v2_system_workload_cloud_id_describe_post) | **POST** /api/v2/system_workload/{cloud_id}/describe | Describe System Workload
|
|
147
149
|
*DefaultApi* | [**detach_machine_pool_from_cloud_api_v2_machine_pools_detach_post**](docs/DefaultApi.md#detach_machine_pool_from_cloud_api_v2_machine_pools_detach_post) | **POST** /api/v2/machine_pools/detach | Detach Machine Pool From Cloud
|
|
148
150
|
*DefaultApi* | [**download_aggregated_instance_usage_csv_api_v2_aggregated_instance_usage_download_csv_get**](docs/DefaultApi.md#download_aggregated_instance_usage_csv_api_v2_aggregated_instance_usage_download_csv_get) | **GET** /api/v2/aggregated_instance_usage/download_csv | Download Aggregated Instance Usage Csv
|
|
@@ -447,7 +449,6 @@ Class | Method | HTTP request | Description
|
|
|
447
449
|
- [CloudDeployment](docs/CloudDeployment.md)
|
|
448
450
|
- [CloudDeploymentComputeConfig](docs/CloudDeploymentComputeConfig.md)
|
|
449
451
|
- [CloudDeploymentConfig](docs/CloudDeploymentConfig.md)
|
|
450
|
-
- [CloudDeploymentSelector](docs/CloudDeploymentSelector.md)
|
|
451
452
|
- [CloudHostingType](docs/CloudHostingType.md)
|
|
452
453
|
- [CloudListResponse](docs/CloudListResponse.md)
|
|
453
454
|
- [CloudNameOptions](docs/CloudNameOptions.md)
|
|
@@ -618,7 +619,9 @@ Class | Method | HTTP request | Description
|
|
|
618
619
|
- [DeletedPlatformFineTunedModel](docs/DeletedPlatformFineTunedModel.md)
|
|
619
620
|
- [DeletedplatformfinetunedmodelResponse](docs/DeletedplatformfinetunedmodelResponse.md)
|
|
620
621
|
- [DeletemachinepoolresponseResponse](docs/DeletemachinepoolresponseResponse.md)
|
|
622
|
+
- [DescribeMachinePoolMachinesRequest](docs/DescribeMachinePoolMachinesRequest.md)
|
|
621
623
|
- [DescribeMachinePoolRequest](docs/DescribeMachinePoolRequest.md)
|
|
624
|
+
- [DescribeMachinePoolRequestsRequest](docs/DescribeMachinePoolRequestsRequest.md)
|
|
622
625
|
- [DescribeMachinePoolResponse](docs/DescribeMachinePoolResponse.md)
|
|
623
626
|
- [DescribeSystemWorkloadResponse](docs/DescribeSystemWorkloadResponse.md)
|
|
624
627
|
- [DescribemachinepoolresponseResponse](docs/DescribemachinepoolresponseResponse.md)
|
|
@@ -724,6 +727,7 @@ Class | Method | HTTP request | Description
|
|
|
724
727
|
- [MachineLaunchFailure](docs/MachineLaunchFailure.md)
|
|
725
728
|
- [MachinePool](docs/MachinePool.md)
|
|
726
729
|
- [MachineStateInfo](docs/MachineStateInfo.md)
|
|
730
|
+
- [MachinestateinfoListResponse](docs/MachinestateinfoListResponse.md)
|
|
727
731
|
- [Metric](docs/Metric.md)
|
|
728
732
|
- [MetronomeCustomerInfoModel](docs/MetronomeCustomerInfoModel.md)
|
|
729
733
|
- [MetronomeDashboardType](docs/MetronomeDashboardType.md)
|
|
@@ -818,6 +822,7 @@ Class | Method | HTTP request | Description
|
|
|
818
822
|
- [RequestStateInfo](docs/RequestStateInfo.md)
|
|
819
823
|
- [RequestemailmagiclinkresponseResponse](docs/RequestemailmagiclinkresponseResponse.md)
|
|
820
824
|
- [RequestotpreturnapimodelResponse](docs/RequestotpreturnapimodelResponse.md)
|
|
825
|
+
- [RequeststateinfoListResponse](docs/RequeststateinfoListResponse.md)
|
|
821
826
|
- [ResetPasswordParams](docs/ResetPasswordParams.md)
|
|
822
827
|
- [ResourceAlertEventType](docs/ResourceAlertEventType.md)
|
|
823
828
|
- [ResourceNotification](docs/ResourceNotification.md)
|
|
@@ -105,7 +105,6 @@ from openapi_client.models.cloud_data_bucket_request_scope import CloudDataBucke
|
|
|
105
105
|
from openapi_client.models.cloud_deployment import CloudDeployment
|
|
106
106
|
from openapi_client.models.cloud_deployment_compute_config import CloudDeploymentComputeConfig
|
|
107
107
|
from openapi_client.models.cloud_deployment_config import CloudDeploymentConfig
|
|
108
|
-
from openapi_client.models.cloud_deployment_selector import CloudDeploymentSelector
|
|
109
108
|
from openapi_client.models.cloud_hosting_type import CloudHostingType
|
|
110
109
|
from openapi_client.models.cloud_list_response import CloudListResponse
|
|
111
110
|
from openapi_client.models.cloud_name_options import CloudNameOptions
|
|
@@ -276,7 +275,9 @@ from openapi_client.models.delete_machine_request import DeleteMachineRequest
|
|
|
276
275
|
from openapi_client.models.deleted_platform_fine_tuned_model import DeletedPlatformFineTunedModel
|
|
277
276
|
from openapi_client.models.deletedplatformfinetunedmodel_response import DeletedplatformfinetunedmodelResponse
|
|
278
277
|
from openapi_client.models.deletemachinepoolresponse_response import DeletemachinepoolresponseResponse
|
|
278
|
+
from openapi_client.models.describe_machine_pool_machines_request import DescribeMachinePoolMachinesRequest
|
|
279
279
|
from openapi_client.models.describe_machine_pool_request import DescribeMachinePoolRequest
|
|
280
|
+
from openapi_client.models.describe_machine_pool_requests_request import DescribeMachinePoolRequestsRequest
|
|
280
281
|
from openapi_client.models.describe_machine_pool_response import DescribeMachinePoolResponse
|
|
281
282
|
from openapi_client.models.describe_system_workload_response import DescribeSystemWorkloadResponse
|
|
282
283
|
from openapi_client.models.describemachinepoolresponse_response import DescribemachinepoolresponseResponse
|
|
@@ -382,6 +383,7 @@ from openapi_client.models.machine_info import MachineInfo
|
|
|
382
383
|
from openapi_client.models.machine_launch_failure import MachineLaunchFailure
|
|
383
384
|
from openapi_client.models.machine_pool import MachinePool
|
|
384
385
|
from openapi_client.models.machine_state_info import MachineStateInfo
|
|
386
|
+
from openapi_client.models.machinestateinfo_list_response import MachinestateinfoListResponse
|
|
385
387
|
from openapi_client.models.metric import Metric
|
|
386
388
|
from openapi_client.models.metronome_customer_info_model import MetronomeCustomerInfoModel
|
|
387
389
|
from openapi_client.models.metronome_dashboard_type import MetronomeDashboardType
|
|
@@ -476,6 +478,7 @@ from openapi_client.models.request_password_reset_params import RequestPasswordR
|
|
|
476
478
|
from openapi_client.models.request_state_info import RequestStateInfo
|
|
477
479
|
from openapi_client.models.requestemailmagiclinkresponse_response import RequestemailmagiclinkresponseResponse
|
|
478
480
|
from openapi_client.models.requestotpreturnapimodel_response import RequestotpreturnapimodelResponse
|
|
481
|
+
from openapi_client.models.requeststateinfo_list_response import RequeststateinfoListResponse
|
|
479
482
|
from openapi_client.models.reset_password_params import ResetPasswordParams
|
|
480
483
|
from openapi_client.models.resource_alert_event_type import ResourceAlertEventType
|
|
481
484
|
from openapi_client.models.resource_notification import ResourceNotification
|
|
@@ -8030,6 +8030,242 @@ class DefaultApi(object):
|
|
|
8030
8030
|
_request_timeout=local_var_params.get('_request_timeout'),
|
|
8031
8031
|
collection_formats=collection_formats)
|
|
8032
8032
|
|
|
8033
|
+
def describe_machine_pool_machines_api_v2_machine_pools_describe_machines_post(self, describe_machine_pool_machines_request, **kwargs): # noqa: E501
|
|
8034
|
+
"""Describe Machine Pool Machines # noqa: E501
|
|
8035
|
+
|
|
8036
|
+
Describe the current state of the machines in a machine pool. # noqa: E501
|
|
8037
|
+
This method makes a synchronous HTTP request by default. To make an
|
|
8038
|
+
asynchronous HTTP request, please pass async_req=True
|
|
8039
|
+
>>> thread = api.describe_machine_pool_machines_api_v2_machine_pools_describe_machines_post(describe_machine_pool_machines_request, async_req=True)
|
|
8040
|
+
>>> result = thread.get()
|
|
8041
|
+
|
|
8042
|
+
:param async_req bool: execute request asynchronously
|
|
8043
|
+
:param DescribeMachinePoolMachinesRequest describe_machine_pool_machines_request: (required)
|
|
8044
|
+
:param _preload_content: if False, the urllib3.HTTPResponse object will
|
|
8045
|
+
be returned without reading/decoding response
|
|
8046
|
+
data. Default is True.
|
|
8047
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
8048
|
+
number provided, it will be total request
|
|
8049
|
+
timeout. It can also be a pair (tuple) of
|
|
8050
|
+
(connection, read) timeouts.
|
|
8051
|
+
:return: MachinestateinfoListResponse
|
|
8052
|
+
If the method is called asynchronously,
|
|
8053
|
+
returns the request thread.
|
|
8054
|
+
"""
|
|
8055
|
+
kwargs['_return_http_data_only'] = True
|
|
8056
|
+
return self.describe_machine_pool_machines_api_v2_machine_pools_describe_machines_post_with_http_info(describe_machine_pool_machines_request, **kwargs) # noqa: E501
|
|
8057
|
+
|
|
8058
|
+
def describe_machine_pool_machines_api_v2_machine_pools_describe_machines_post_with_http_info(self, describe_machine_pool_machines_request, **kwargs): # noqa: E501
|
|
8059
|
+
"""Describe Machine Pool Machines # noqa: E501
|
|
8060
|
+
|
|
8061
|
+
Describe the current state of the machines in a machine pool. # noqa: E501
|
|
8062
|
+
This method makes a synchronous HTTP request by default. To make an
|
|
8063
|
+
asynchronous HTTP request, please pass async_req=True
|
|
8064
|
+
>>> thread = api.describe_machine_pool_machines_api_v2_machine_pools_describe_machines_post_with_http_info(describe_machine_pool_machines_request, async_req=True)
|
|
8065
|
+
>>> result = thread.get()
|
|
8066
|
+
|
|
8067
|
+
:param async_req bool: execute request asynchronously
|
|
8068
|
+
:param DescribeMachinePoolMachinesRequest describe_machine_pool_machines_request: (required)
|
|
8069
|
+
:param _return_http_data_only: response data without head status code
|
|
8070
|
+
and headers
|
|
8071
|
+
:param _preload_content: if False, the urllib3.HTTPResponse object will
|
|
8072
|
+
be returned without reading/decoding response
|
|
8073
|
+
data. Default is True.
|
|
8074
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
8075
|
+
number provided, it will be total request
|
|
8076
|
+
timeout. It can also be a pair (tuple) of
|
|
8077
|
+
(connection, read) timeouts.
|
|
8078
|
+
:return: tuple(MachinestateinfoListResponse, status_code(int), headers(HTTPHeaderDict))
|
|
8079
|
+
If the method is called asynchronously,
|
|
8080
|
+
returns the request thread.
|
|
8081
|
+
"""
|
|
8082
|
+
|
|
8083
|
+
local_var_params = locals()
|
|
8084
|
+
|
|
8085
|
+
all_params = [
|
|
8086
|
+
'describe_machine_pool_machines_request'
|
|
8087
|
+
]
|
|
8088
|
+
all_params.extend(
|
|
8089
|
+
[
|
|
8090
|
+
'async_req',
|
|
8091
|
+
'_return_http_data_only',
|
|
8092
|
+
'_preload_content',
|
|
8093
|
+
'_request_timeout'
|
|
8094
|
+
]
|
|
8095
|
+
)
|
|
8096
|
+
|
|
8097
|
+
for key, val in six.iteritems(local_var_params['kwargs']):
|
|
8098
|
+
if key not in all_params:
|
|
8099
|
+
raise ApiTypeError(
|
|
8100
|
+
"Got an unexpected keyword argument '%s'"
|
|
8101
|
+
" to method describe_machine_pool_machines_api_v2_machine_pools_describe_machines_post" % key
|
|
8102
|
+
)
|
|
8103
|
+
local_var_params[key] = val
|
|
8104
|
+
del local_var_params['kwargs']
|
|
8105
|
+
# verify the required parameter 'describe_machine_pool_machines_request' is set
|
|
8106
|
+
if self.api_client.client_side_validation and ('describe_machine_pool_machines_request' not in local_var_params or # noqa: E501
|
|
8107
|
+
local_var_params['describe_machine_pool_machines_request'] is None): # noqa: E501
|
|
8108
|
+
raise ApiValueError("Missing the required parameter `describe_machine_pool_machines_request` when calling `describe_machine_pool_machines_api_v2_machine_pools_describe_machines_post`") # noqa: E501
|
|
8109
|
+
|
|
8110
|
+
collection_formats = {}
|
|
8111
|
+
|
|
8112
|
+
path_params = {}
|
|
8113
|
+
|
|
8114
|
+
query_params = []
|
|
8115
|
+
|
|
8116
|
+
header_params = {}
|
|
8117
|
+
|
|
8118
|
+
form_params = []
|
|
8119
|
+
local_var_files = {}
|
|
8120
|
+
|
|
8121
|
+
body_params = None
|
|
8122
|
+
if 'describe_machine_pool_machines_request' in local_var_params:
|
|
8123
|
+
body_params = local_var_params['describe_machine_pool_machines_request']
|
|
8124
|
+
# HTTP header `Accept`
|
|
8125
|
+
header_params['Accept'] = self.api_client.select_header_accept(
|
|
8126
|
+
['application/json']) # noqa: E501
|
|
8127
|
+
|
|
8128
|
+
# HTTP header `Content-Type`
|
|
8129
|
+
header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501
|
|
8130
|
+
['application/json']) # noqa: E501
|
|
8131
|
+
|
|
8132
|
+
# Authentication setting
|
|
8133
|
+
auth_settings = [] # noqa: E501
|
|
8134
|
+
|
|
8135
|
+
return self.api_client.call_api(
|
|
8136
|
+
'/api/v2/machine_pools/describe_machines', 'POST',
|
|
8137
|
+
path_params,
|
|
8138
|
+
query_params,
|
|
8139
|
+
header_params,
|
|
8140
|
+
body=body_params,
|
|
8141
|
+
post_params=form_params,
|
|
8142
|
+
files=local_var_files,
|
|
8143
|
+
response_type='MachinestateinfoListResponse', # noqa: E501
|
|
8144
|
+
auth_settings=auth_settings,
|
|
8145
|
+
async_req=local_var_params.get('async_req'),
|
|
8146
|
+
_return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501
|
|
8147
|
+
_preload_content=local_var_params.get('_preload_content', True),
|
|
8148
|
+
_request_timeout=local_var_params.get('_request_timeout'),
|
|
8149
|
+
collection_formats=collection_formats)
|
|
8150
|
+
|
|
8151
|
+
def describe_machine_pool_requests_api_v2_machine_pools_describe_requests_post(self, describe_machine_pool_requests_request, **kwargs): # noqa: E501
|
|
8152
|
+
"""Describe Machine Pool Requests # noqa: E501
|
|
8153
|
+
|
|
8154
|
+
Describe the current state of the requests in a machine pool. # noqa: E501
|
|
8155
|
+
This method makes a synchronous HTTP request by default. To make an
|
|
8156
|
+
asynchronous HTTP request, please pass async_req=True
|
|
8157
|
+
>>> thread = api.describe_machine_pool_requests_api_v2_machine_pools_describe_requests_post(describe_machine_pool_requests_request, async_req=True)
|
|
8158
|
+
>>> result = thread.get()
|
|
8159
|
+
|
|
8160
|
+
:param async_req bool: execute request asynchronously
|
|
8161
|
+
:param DescribeMachinePoolRequestsRequest describe_machine_pool_requests_request: (required)
|
|
8162
|
+
:param _preload_content: if False, the urllib3.HTTPResponse object will
|
|
8163
|
+
be returned without reading/decoding response
|
|
8164
|
+
data. Default is True.
|
|
8165
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
8166
|
+
number provided, it will be total request
|
|
8167
|
+
timeout. It can also be a pair (tuple) of
|
|
8168
|
+
(connection, read) timeouts.
|
|
8169
|
+
:return: RequeststateinfoListResponse
|
|
8170
|
+
If the method is called asynchronously,
|
|
8171
|
+
returns the request thread.
|
|
8172
|
+
"""
|
|
8173
|
+
kwargs['_return_http_data_only'] = True
|
|
8174
|
+
return self.describe_machine_pool_requests_api_v2_machine_pools_describe_requests_post_with_http_info(describe_machine_pool_requests_request, **kwargs) # noqa: E501
|
|
8175
|
+
|
|
8176
|
+
def describe_machine_pool_requests_api_v2_machine_pools_describe_requests_post_with_http_info(self, describe_machine_pool_requests_request, **kwargs): # noqa: E501
|
|
8177
|
+
"""Describe Machine Pool Requests # noqa: E501
|
|
8178
|
+
|
|
8179
|
+
Describe the current state of the requests in a machine pool. # noqa: E501
|
|
8180
|
+
This method makes a synchronous HTTP request by default. To make an
|
|
8181
|
+
asynchronous HTTP request, please pass async_req=True
|
|
8182
|
+
>>> thread = api.describe_machine_pool_requests_api_v2_machine_pools_describe_requests_post_with_http_info(describe_machine_pool_requests_request, async_req=True)
|
|
8183
|
+
>>> result = thread.get()
|
|
8184
|
+
|
|
8185
|
+
:param async_req bool: execute request asynchronously
|
|
8186
|
+
:param DescribeMachinePoolRequestsRequest describe_machine_pool_requests_request: (required)
|
|
8187
|
+
:param _return_http_data_only: response data without head status code
|
|
8188
|
+
and headers
|
|
8189
|
+
:param _preload_content: if False, the urllib3.HTTPResponse object will
|
|
8190
|
+
be returned without reading/decoding response
|
|
8191
|
+
data. Default is True.
|
|
8192
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
8193
|
+
number provided, it will be total request
|
|
8194
|
+
timeout. It can also be a pair (tuple) of
|
|
8195
|
+
(connection, read) timeouts.
|
|
8196
|
+
:return: tuple(RequeststateinfoListResponse, status_code(int), headers(HTTPHeaderDict))
|
|
8197
|
+
If the method is called asynchronously,
|
|
8198
|
+
returns the request thread.
|
|
8199
|
+
"""
|
|
8200
|
+
|
|
8201
|
+
local_var_params = locals()
|
|
8202
|
+
|
|
8203
|
+
all_params = [
|
|
8204
|
+
'describe_machine_pool_requests_request'
|
|
8205
|
+
]
|
|
8206
|
+
all_params.extend(
|
|
8207
|
+
[
|
|
8208
|
+
'async_req',
|
|
8209
|
+
'_return_http_data_only',
|
|
8210
|
+
'_preload_content',
|
|
8211
|
+
'_request_timeout'
|
|
8212
|
+
]
|
|
8213
|
+
)
|
|
8214
|
+
|
|
8215
|
+
for key, val in six.iteritems(local_var_params['kwargs']):
|
|
8216
|
+
if key not in all_params:
|
|
8217
|
+
raise ApiTypeError(
|
|
8218
|
+
"Got an unexpected keyword argument '%s'"
|
|
8219
|
+
" to method describe_machine_pool_requests_api_v2_machine_pools_describe_requests_post" % key
|
|
8220
|
+
)
|
|
8221
|
+
local_var_params[key] = val
|
|
8222
|
+
del local_var_params['kwargs']
|
|
8223
|
+
# verify the required parameter 'describe_machine_pool_requests_request' is set
|
|
8224
|
+
if self.api_client.client_side_validation and ('describe_machine_pool_requests_request' not in local_var_params or # noqa: E501
|
|
8225
|
+
local_var_params['describe_machine_pool_requests_request'] is None): # noqa: E501
|
|
8226
|
+
raise ApiValueError("Missing the required parameter `describe_machine_pool_requests_request` when calling `describe_machine_pool_requests_api_v2_machine_pools_describe_requests_post`") # noqa: E501
|
|
8227
|
+
|
|
8228
|
+
collection_formats = {}
|
|
8229
|
+
|
|
8230
|
+
path_params = {}
|
|
8231
|
+
|
|
8232
|
+
query_params = []
|
|
8233
|
+
|
|
8234
|
+
header_params = {}
|
|
8235
|
+
|
|
8236
|
+
form_params = []
|
|
8237
|
+
local_var_files = {}
|
|
8238
|
+
|
|
8239
|
+
body_params = None
|
|
8240
|
+
if 'describe_machine_pool_requests_request' in local_var_params:
|
|
8241
|
+
body_params = local_var_params['describe_machine_pool_requests_request']
|
|
8242
|
+
# HTTP header `Accept`
|
|
8243
|
+
header_params['Accept'] = self.api_client.select_header_accept(
|
|
8244
|
+
['application/json']) # noqa: E501
|
|
8245
|
+
|
|
8246
|
+
# HTTP header `Content-Type`
|
|
8247
|
+
header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501
|
|
8248
|
+
['application/json']) # noqa: E501
|
|
8249
|
+
|
|
8250
|
+
# Authentication setting
|
|
8251
|
+
auth_settings = [] # noqa: E501
|
|
8252
|
+
|
|
8253
|
+
return self.api_client.call_api(
|
|
8254
|
+
'/api/v2/machine_pools/describe_requests', 'POST',
|
|
8255
|
+
path_params,
|
|
8256
|
+
query_params,
|
|
8257
|
+
header_params,
|
|
8258
|
+
body=body_params,
|
|
8259
|
+
post_params=form_params,
|
|
8260
|
+
files=local_var_files,
|
|
8261
|
+
response_type='RequeststateinfoListResponse', # noqa: E501
|
|
8262
|
+
auth_settings=auth_settings,
|
|
8263
|
+
async_req=local_var_params.get('async_req'),
|
|
8264
|
+
_return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501
|
|
8265
|
+
_preload_content=local_var_params.get('_preload_content', True),
|
|
8266
|
+
_request_timeout=local_var_params.get('_request_timeout'),
|
|
8267
|
+
collection_formats=collection_formats)
|
|
8268
|
+
|
|
8033
8269
|
def describe_system_workload_api_v2_system_workload_cloud_id_describe_post(self, cloud_id, workload_name, **kwargs): # noqa: E501
|
|
8034
8270
|
"""Describe System Workload # noqa: E501
|
|
8035
8271
|
|
|
@@ -91,7 +91,6 @@ from openapi_client.models.cloud_data_bucket_request_scope import CloudDataBucke
|
|
|
91
91
|
from openapi_client.models.cloud_deployment import CloudDeployment
|
|
92
92
|
from openapi_client.models.cloud_deployment_compute_config import CloudDeploymentComputeConfig
|
|
93
93
|
from openapi_client.models.cloud_deployment_config import CloudDeploymentConfig
|
|
94
|
-
from openapi_client.models.cloud_deployment_selector import CloudDeploymentSelector
|
|
95
94
|
from openapi_client.models.cloud_hosting_type import CloudHostingType
|
|
96
95
|
from openapi_client.models.cloud_list_response import CloudListResponse
|
|
97
96
|
from openapi_client.models.cloud_name_options import CloudNameOptions
|
|
@@ -262,7 +261,9 @@ from openapi_client.models.delete_machine_request import DeleteMachineRequest
|
|
|
262
261
|
from openapi_client.models.deleted_platform_fine_tuned_model import DeletedPlatformFineTunedModel
|
|
263
262
|
from openapi_client.models.deletedplatformfinetunedmodel_response import DeletedplatformfinetunedmodelResponse
|
|
264
263
|
from openapi_client.models.deletemachinepoolresponse_response import DeletemachinepoolresponseResponse
|
|
264
|
+
from openapi_client.models.describe_machine_pool_machines_request import DescribeMachinePoolMachinesRequest
|
|
265
265
|
from openapi_client.models.describe_machine_pool_request import DescribeMachinePoolRequest
|
|
266
|
+
from openapi_client.models.describe_machine_pool_requests_request import DescribeMachinePoolRequestsRequest
|
|
266
267
|
from openapi_client.models.describe_machine_pool_response import DescribeMachinePoolResponse
|
|
267
268
|
from openapi_client.models.describe_system_workload_response import DescribeSystemWorkloadResponse
|
|
268
269
|
from openapi_client.models.describemachinepoolresponse_response import DescribemachinepoolresponseResponse
|
|
@@ -368,6 +369,7 @@ from openapi_client.models.machine_info import MachineInfo
|
|
|
368
369
|
from openapi_client.models.machine_launch_failure import MachineLaunchFailure
|
|
369
370
|
from openapi_client.models.machine_pool import MachinePool
|
|
370
371
|
from openapi_client.models.machine_state_info import MachineStateInfo
|
|
372
|
+
from openapi_client.models.machinestateinfo_list_response import MachinestateinfoListResponse
|
|
371
373
|
from openapi_client.models.metric import Metric
|
|
372
374
|
from openapi_client.models.metronome_customer_info_model import MetronomeCustomerInfoModel
|
|
373
375
|
from openapi_client.models.metronome_dashboard_type import MetronomeDashboardType
|
|
@@ -462,6 +464,7 @@ from openapi_client.models.request_password_reset_params import RequestPasswordR
|
|
|
462
464
|
from openapi_client.models.request_state_info import RequestStateInfo
|
|
463
465
|
from openapi_client.models.requestemailmagiclinkresponse_response import RequestemailmagiclinkresponseResponse
|
|
464
466
|
from openapi_client.models.requestotpreturnapimodel_response import RequestotpreturnapimodelResponse
|
|
467
|
+
from openapi_client.models.requeststateinfo_list_response import RequeststateinfoListResponse
|
|
465
468
|
from openapi_client.models.reset_password_params import ResetPasswordParams
|
|
466
469
|
from openapi_client.models.resource_alert_event_type import ResourceAlertEventType
|
|
467
470
|
from openapi_client.models.resource_notification import ResourceNotification
|
|
@@ -33,7 +33,7 @@ class CloudDeploymentComputeConfig(object):
|
|
|
33
33
|
and the value is json key in definition.
|
|
34
34
|
"""
|
|
35
35
|
openapi_types = {
|
|
36
|
-
'cloud_deployment': '
|
|
36
|
+
'cloud_deployment': 'str',
|
|
37
37
|
'allowed_azs': 'list[str]',
|
|
38
38
|
'head_node_type': 'ComputeNodeType',
|
|
39
39
|
'worker_node_types': 'list[WorkerNodeType]',
|
|
@@ -85,10 +85,10 @@ class CloudDeploymentComputeConfig(object):
|
|
|
85
85
|
def cloud_deployment(self):
|
|
86
86
|
"""Gets the cloud_deployment of this CloudDeploymentComputeConfig. # noqa: E501
|
|
87
87
|
|
|
88
|
-
The cloud deployment to use for this compute config. If not specified, the
|
|
88
|
+
The name of the cloud deployment to use for this compute config. If not specified, the primary cloud deployment for the cloud will be used. # noqa: E501
|
|
89
89
|
|
|
90
90
|
:return: The cloud_deployment of this CloudDeploymentComputeConfig. # noqa: E501
|
|
91
|
-
:rtype:
|
|
91
|
+
:rtype: str
|
|
92
92
|
"""
|
|
93
93
|
return self._cloud_deployment
|
|
94
94
|
|
|
@@ -96,10 +96,10 @@ class CloudDeploymentComputeConfig(object):
|
|
|
96
96
|
def cloud_deployment(self, cloud_deployment):
|
|
97
97
|
"""Sets the cloud_deployment of this CloudDeploymentComputeConfig.
|
|
98
98
|
|
|
99
|
-
The cloud deployment to use for this compute config. If not specified, the
|
|
99
|
+
The name of the cloud deployment to use for this compute config. If not specified, the primary cloud deployment for the cloud will be used. # noqa: E501
|
|
100
100
|
|
|
101
101
|
:param cloud_deployment: The cloud_deployment of this CloudDeploymentComputeConfig. # noqa: E501
|
|
102
|
-
:type:
|
|
102
|
+
:type: str
|
|
103
103
|
"""
|
|
104
104
|
|
|
105
105
|
self._cloud_deployment = cloud_deployment
|
|
@@ -0,0 +1,123 @@
|
|
|
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 DescribeMachinePoolMachinesRequest(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
|
+
'machine_pool_name': 'str'
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
attribute_map = {
|
|
40
|
+
'machine_pool_name': 'machine_pool_name'
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
def __init__(self, machine_pool_name=None, local_vars_configuration=None): # noqa: E501
|
|
44
|
+
"""DescribeMachinePoolMachinesRequest - a model defined in OpenAPI""" # noqa: E501
|
|
45
|
+
if local_vars_configuration is None:
|
|
46
|
+
local_vars_configuration = Configuration()
|
|
47
|
+
self.local_vars_configuration = local_vars_configuration
|
|
48
|
+
|
|
49
|
+
self._machine_pool_name = None
|
|
50
|
+
self.discriminator = None
|
|
51
|
+
|
|
52
|
+
self.machine_pool_name = machine_pool_name
|
|
53
|
+
|
|
54
|
+
@property
|
|
55
|
+
def machine_pool_name(self):
|
|
56
|
+
"""Gets the machine_pool_name of this DescribeMachinePoolMachinesRequest. # noqa: E501
|
|
57
|
+
|
|
58
|
+
The name of the machine pool to describe. # noqa: E501
|
|
59
|
+
|
|
60
|
+
:return: The machine_pool_name of this DescribeMachinePoolMachinesRequest. # noqa: E501
|
|
61
|
+
:rtype: str
|
|
62
|
+
"""
|
|
63
|
+
return self._machine_pool_name
|
|
64
|
+
|
|
65
|
+
@machine_pool_name.setter
|
|
66
|
+
def machine_pool_name(self, machine_pool_name):
|
|
67
|
+
"""Sets the machine_pool_name of this DescribeMachinePoolMachinesRequest.
|
|
68
|
+
|
|
69
|
+
The name of the machine pool to describe. # noqa: E501
|
|
70
|
+
|
|
71
|
+
:param machine_pool_name: The machine_pool_name of this DescribeMachinePoolMachinesRequest. # noqa: E501
|
|
72
|
+
:type: str
|
|
73
|
+
"""
|
|
74
|
+
if self.local_vars_configuration.client_side_validation and machine_pool_name is None: # noqa: E501
|
|
75
|
+
raise ValueError("Invalid value for `machine_pool_name`, must not be `None`") # noqa: E501
|
|
76
|
+
|
|
77
|
+
self._machine_pool_name = machine_pool_name
|
|
78
|
+
|
|
79
|
+
def to_dict(self):
|
|
80
|
+
"""Returns the model properties as a dict"""
|
|
81
|
+
result = {}
|
|
82
|
+
|
|
83
|
+
for attr, _ in six.iteritems(self.openapi_types):
|
|
84
|
+
value = getattr(self, attr)
|
|
85
|
+
if isinstance(value, list):
|
|
86
|
+
result[attr] = list(map(
|
|
87
|
+
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
|
88
|
+
value
|
|
89
|
+
))
|
|
90
|
+
elif hasattr(value, "to_dict"):
|
|
91
|
+
result[attr] = value.to_dict()
|
|
92
|
+
elif isinstance(value, dict):
|
|
93
|
+
result[attr] = dict(map(
|
|
94
|
+
lambda item: (item[0], item[1].to_dict())
|
|
95
|
+
if hasattr(item[1], "to_dict") else item,
|
|
96
|
+
value.items()
|
|
97
|
+
))
|
|
98
|
+
else:
|
|
99
|
+
result[attr] = value
|
|
100
|
+
|
|
101
|
+
return result
|
|
102
|
+
|
|
103
|
+
def to_str(self):
|
|
104
|
+
"""Returns the string representation of the model"""
|
|
105
|
+
return pprint.pformat(self.to_dict())
|
|
106
|
+
|
|
107
|
+
def __repr__(self):
|
|
108
|
+
"""For `print` and `pprint`"""
|
|
109
|
+
return self.to_str()
|
|
110
|
+
|
|
111
|
+
def __eq__(self, other):
|
|
112
|
+
"""Returns true if both objects are equal"""
|
|
113
|
+
if not isinstance(other, DescribeMachinePoolMachinesRequest):
|
|
114
|
+
return False
|
|
115
|
+
|
|
116
|
+
return self.to_dict() == other.to_dict()
|
|
117
|
+
|
|
118
|
+
def __ne__(self, other):
|
|
119
|
+
"""Returns true if both objects are not equal"""
|
|
120
|
+
if not isinstance(other, DescribeMachinePoolMachinesRequest):
|
|
121
|
+
return True
|
|
122
|
+
|
|
123
|
+
return self.to_dict() != other.to_dict()
|
|
@@ -0,0 +1,123 @@
|
|
|
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 DescribeMachinePoolRequestsRequest(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
|
+
'machine_pool_name': 'str'
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
attribute_map = {
|
|
40
|
+
'machine_pool_name': 'machine_pool_name'
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
def __init__(self, machine_pool_name=None, local_vars_configuration=None): # noqa: E501
|
|
44
|
+
"""DescribeMachinePoolRequestsRequest - a model defined in OpenAPI""" # noqa: E501
|
|
45
|
+
if local_vars_configuration is None:
|
|
46
|
+
local_vars_configuration = Configuration()
|
|
47
|
+
self.local_vars_configuration = local_vars_configuration
|
|
48
|
+
|
|
49
|
+
self._machine_pool_name = None
|
|
50
|
+
self.discriminator = None
|
|
51
|
+
|
|
52
|
+
self.machine_pool_name = machine_pool_name
|
|
53
|
+
|
|
54
|
+
@property
|
|
55
|
+
def machine_pool_name(self):
|
|
56
|
+
"""Gets the machine_pool_name of this DescribeMachinePoolRequestsRequest. # noqa: E501
|
|
57
|
+
|
|
58
|
+
The name of the machine pool to describe. # noqa: E501
|
|
59
|
+
|
|
60
|
+
:return: The machine_pool_name of this DescribeMachinePoolRequestsRequest. # noqa: E501
|
|
61
|
+
:rtype: str
|
|
62
|
+
"""
|
|
63
|
+
return self._machine_pool_name
|
|
64
|
+
|
|
65
|
+
@machine_pool_name.setter
|
|
66
|
+
def machine_pool_name(self, machine_pool_name):
|
|
67
|
+
"""Sets the machine_pool_name of this DescribeMachinePoolRequestsRequest.
|
|
68
|
+
|
|
69
|
+
The name of the machine pool to describe. # noqa: E501
|
|
70
|
+
|
|
71
|
+
:param machine_pool_name: The machine_pool_name of this DescribeMachinePoolRequestsRequest. # noqa: E501
|
|
72
|
+
:type: str
|
|
73
|
+
"""
|
|
74
|
+
if self.local_vars_configuration.client_side_validation and machine_pool_name is None: # noqa: E501
|
|
75
|
+
raise ValueError("Invalid value for `machine_pool_name`, must not be `None`") # noqa: E501
|
|
76
|
+
|
|
77
|
+
self._machine_pool_name = machine_pool_name
|
|
78
|
+
|
|
79
|
+
def to_dict(self):
|
|
80
|
+
"""Returns the model properties as a dict"""
|
|
81
|
+
result = {}
|
|
82
|
+
|
|
83
|
+
for attr, _ in six.iteritems(self.openapi_types):
|
|
84
|
+
value = getattr(self, attr)
|
|
85
|
+
if isinstance(value, list):
|
|
86
|
+
result[attr] = list(map(
|
|
87
|
+
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
|
88
|
+
value
|
|
89
|
+
))
|
|
90
|
+
elif hasattr(value, "to_dict"):
|
|
91
|
+
result[attr] = value.to_dict()
|
|
92
|
+
elif isinstance(value, dict):
|
|
93
|
+
result[attr] = dict(map(
|
|
94
|
+
lambda item: (item[0], item[1].to_dict())
|
|
95
|
+
if hasattr(item[1], "to_dict") else item,
|
|
96
|
+
value.items()
|
|
97
|
+
))
|
|
98
|
+
else:
|
|
99
|
+
result[attr] = value
|
|
100
|
+
|
|
101
|
+
return result
|
|
102
|
+
|
|
103
|
+
def to_str(self):
|
|
104
|
+
"""Returns the string representation of the model"""
|
|
105
|
+
return pprint.pformat(self.to_dict())
|
|
106
|
+
|
|
107
|
+
def __repr__(self):
|
|
108
|
+
"""For `print` and `pprint`"""
|
|
109
|
+
return self.to_str()
|
|
110
|
+
|
|
111
|
+
def __eq__(self, other):
|
|
112
|
+
"""Returns true if both objects are equal"""
|
|
113
|
+
if not isinstance(other, DescribeMachinePoolRequestsRequest):
|
|
114
|
+
return False
|
|
115
|
+
|
|
116
|
+
return self.to_dict() == other.to_dict()
|
|
117
|
+
|
|
118
|
+
def __ne__(self, other):
|
|
119
|
+
"""Returns true if both objects are not equal"""
|
|
120
|
+
if not isinstance(other, DescribeMachinePoolRequestsRequest):
|
|
121
|
+
return True
|
|
122
|
+
|
|
123
|
+
return self.to_dict() != other.to_dict()
|