anyscale 0.26.40__py3-none-any.whl → 0.26.42__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/__main__.py +1 -0
- anyscale/anyscale-cloud-setup-gcp-oa.yaml +0 -29
- anyscale/anyscale-cloud-setup-gcp.yaml +0 -16
- anyscale/anyscale-cloud-setup.yaml +12 -6
- anyscale/client/README.md +10 -5
- anyscale/client/openapi_client/__init__.py +2 -0
- anyscale/client/openapi_client/api/default_api.py +249 -10
- anyscale/client/openapi_client/models/__init__.py +2 -0
- anyscale/client/openapi_client/models/decorated_session.py +31 -3
- anyscale/client/openapi_client/models/machine_pool_search_query.py +122 -0
- anyscale/client/openapi_client/models/update_payment_info.py +123 -0
- anyscale/commands/cloud_commands.py +45 -1
- anyscale/commands/command_examples.py +25 -0
- anyscale/controllers/cloud_controller.py +108 -83
- anyscale/util.py +25 -1
- anyscale/utils/gcp_managed_setup_utils.py +66 -1
- anyscale/version.py +1 -1
- {anyscale-0.26.40.dist-info → anyscale-0.26.42.dist-info}/METADATA +1 -4
- {anyscale-0.26.40.dist-info → anyscale-0.26.42.dist-info}/RECORD +24 -22
- {anyscale-0.26.40.dist-info → anyscale-0.26.42.dist-info}/LICENSE +0 -0
- {anyscale-0.26.40.dist-info → anyscale-0.26.42.dist-info}/NOTICE +0 -0
- {anyscale-0.26.40.dist-info → anyscale-0.26.42.dist-info}/WHEEL +0 -0
- {anyscale-0.26.40.dist-info → anyscale-0.26.42.dist-info}/entry_points.txt +0 -0
- {anyscale-0.26.40.dist-info → anyscale-0.26.42.dist-info}/top_level.txt +0 -0
|
@@ -431,6 +431,7 @@ ALL_MODULES = [
|
|
|
431
431
|
cloud_commands.cloud_delete,
|
|
432
432
|
cloud_commands.cloud_verify,
|
|
433
433
|
cloud_commands.list_cloud,
|
|
434
|
+
cloud_commands.cloud_add_deployment,
|
|
434
435
|
cloud_commands.cloud_config_update,
|
|
435
436
|
cloud_commands.cloud_set_default,
|
|
436
437
|
cloud_commands.add_collaborators,
|
|
@@ -1,18 +1,5 @@
|
|
|
1
1
|
resources:
|
|
2
2
|
# No VPC/subnet creation for OA
|
|
3
|
-
- name: filestore-${CLOUD_ID}
|
|
4
|
-
type: gcp-types/file-v1beta1:projects.locations.instances
|
|
5
|
-
properties:
|
|
6
|
-
instanceId: filestore-${CLOUD_ID}
|
|
7
|
-
parent: projects/${PROJECT_ID}/locations/${REGION}-${ZONE}
|
|
8
|
-
tier: STANDARD
|
|
9
|
-
networks:
|
|
10
|
-
- network: projects/${PROJECT_ID}/global/networks/${VPC_NAME}
|
|
11
|
-
fileShares:
|
|
12
|
-
- name: anyscale_vol
|
|
13
|
-
capacityGb: ${FILESHARE_CAPACITY_GB}
|
|
14
|
-
labels:
|
|
15
|
-
anyscale-cloud-id: ${CLOUD_ID_UNDERSCORE}
|
|
16
3
|
- name: storage-bucket-${CLOUD_ID}
|
|
17
4
|
type: storage.v1.bucket
|
|
18
5
|
properties:
|
|
@@ -70,19 +57,3 @@ resources:
|
|
|
70
57
|
metadata:
|
|
71
58
|
dependsOn:
|
|
72
59
|
- ${CLOUD_ID}
|
|
73
|
-
- name: allow-filestore-${CLOUD_ID}
|
|
74
|
-
type: compute.v1.firewall
|
|
75
|
-
properties:
|
|
76
|
-
direction: EGRESS
|
|
77
|
-
network: projects/${PROJECT_ID}/global/networks/${VPC_NAME}
|
|
78
|
-
allowed:
|
|
79
|
-
- IPProtocol: all
|
|
80
|
-
targetServiceAccounts:
|
|
81
|
-
- $$(ref.${CLOUD_ID}.email)
|
|
82
|
-
destinationRanges:
|
|
83
|
-
- $$(ref.filestore-${CLOUD_ID}.networks[0].reservedIpRange)
|
|
84
|
-
priority: 1000
|
|
85
|
-
metadata:
|
|
86
|
-
dependsOn:
|
|
87
|
-
- ${CLOUD_ID}
|
|
88
|
-
- filestore-${CLOUD_ID}
|
|
@@ -20,22 +20,6 @@ resources:
|
|
|
20
20
|
parentId: projects/${PROJECT_ID}/regions/${REGION}
|
|
21
21
|
name: firewall-policy-${CLOUD_ID}
|
|
22
22
|
description: "firewall policy for Anyscale cloud ${CLOUD_ID}"
|
|
23
|
-
- name: filestore-${CLOUD_ID}
|
|
24
|
-
type: gcp-types/file-v1beta1:projects.locations.instances
|
|
25
|
-
properties:
|
|
26
|
-
instanceId: filestore-${CLOUD_ID}
|
|
27
|
-
parent: projects/${PROJECT_ID}/locations/${REGION}-${ZONE}
|
|
28
|
-
tier: STANDARD
|
|
29
|
-
networks:
|
|
30
|
-
- network: projects/${PROJECT_ID}/global/networks/$$(ref.vpc-${CLOUD_ID}.name)
|
|
31
|
-
fileShares:
|
|
32
|
-
- name: anyscale_vol
|
|
33
|
-
capacityGb: ${FILESHARE_CAPACITY_GB}
|
|
34
|
-
labels:
|
|
35
|
-
anyscale-cloud-id: ${CLOUD_ID_UNDERSCORE}
|
|
36
|
-
metadata:
|
|
37
|
-
dependsOn:
|
|
38
|
-
- vpc-${CLOUD_ID}
|
|
39
23
|
- name: storage-bucket-${CLOUD_ID}
|
|
40
24
|
type: storage.v1.bucket
|
|
41
25
|
properties:
|
|
@@ -43,6 +43,15 @@ $ANYSCALE_CROSS_ACCOUNT_IAM_POLICY_PARAMETERS
|
|
|
43
43
|
Type: String
|
|
44
44
|
Default: "6379"
|
|
45
45
|
|
|
46
|
+
EnableEFS:
|
|
47
|
+
Description: Whether to create EFS file system
|
|
48
|
+
Type: String
|
|
49
|
+
Default: "false"
|
|
50
|
+
AllowedValues: ["true", "false"]
|
|
51
|
+
|
|
52
|
+
Conditions:
|
|
53
|
+
CreateEFS: !Equals [!Ref EnableEFS, "true"]
|
|
54
|
+
|
|
46
55
|
Resources:
|
|
47
56
|
VPC:
|
|
48
57
|
Type: AWS::EC2::VPC
|
|
@@ -207,6 +216,7 @@ $SUBNETS_ROUTE_TABLE_ASSOCIATION
|
|
|
207
216
|
- Arn
|
|
208
217
|
EFS:
|
|
209
218
|
Type: AWS::EFS::FileSystem
|
|
219
|
+
Condition: CreateEFS
|
|
210
220
|
Properties:
|
|
211
221
|
BackupPolicy:
|
|
212
222
|
Status: ENABLED
|
|
@@ -214,7 +224,6 @@ $SUBNETS_ROUTE_TABLE_ASSOCIATION
|
|
|
214
224
|
LifecyclePolicies:
|
|
215
225
|
- TransitionToIA: AFTER_60_DAYS
|
|
216
226
|
PerformanceMode: generalPurpose
|
|
217
|
-
Encrypted: true
|
|
218
227
|
ThroughputMode: bursting
|
|
219
228
|
FileSystemTags:
|
|
220
229
|
- Key: anyscale-cloud-id
|
|
@@ -304,13 +313,10 @@ Outputs:
|
|
|
304
313
|
|
|
305
314
|
EFS:
|
|
306
315
|
Description: Anyscale managed EFS
|
|
316
|
+
Condition: CreateEFS
|
|
307
317
|
Value: !Ref EFS
|
|
308
318
|
|
|
309
|
-
|
|
310
|
-
Description: Anyscale managed EFS mount target
|
|
311
|
-
Value: !GetAtt
|
|
312
|
-
- EFSMountTarget0
|
|
313
|
-
- IpAddress
|
|
319
|
+
$EFS_MOUNT_TARGET_OUTPUT
|
|
314
320
|
|
|
315
321
|
AnyscaleIAMRole:
|
|
316
322
|
Description: ARN of the cross-account IAM role
|
anyscale/client/README.md
CHANGED
|
@@ -58,14 +58,15 @@ configuration.host = "http://localhost"
|
|
|
58
58
|
with openapi_client.ApiClient(configuration) as api_client:
|
|
59
59
|
# Create an instance of the API class
|
|
60
60
|
api_instance = openapi_client.DefaultApi(api_client)
|
|
61
|
-
|
|
61
|
+
cloud_id = 'cloud_id_example' # str |
|
|
62
|
+
cloud_deployment = openapi_client.CloudDeployment() # CloudDeployment |
|
|
62
63
|
|
|
63
64
|
try:
|
|
64
|
-
# Add
|
|
65
|
-
api_response = api_instance.
|
|
65
|
+
# Add Cloud Deployment
|
|
66
|
+
api_response = api_instance.add_cloud_deployment_api_v2_clouds_cloud_id_add_deployment_put(cloud_id, cloud_deployment)
|
|
66
67
|
pprint(api_response)
|
|
67
68
|
except ApiException as e:
|
|
68
|
-
print("Exception when calling DefaultApi->
|
|
69
|
+
print("Exception when calling DefaultApi->add_cloud_deployment_api_v2_clouds_cloud_id_add_deployment_put: %s\n" % e)
|
|
69
70
|
|
|
70
71
|
```
|
|
71
72
|
|
|
@@ -75,6 +76,7 @@ All URIs are relative to *http://localhost*
|
|
|
75
76
|
|
|
76
77
|
Class | Method | HTTP request | Description
|
|
77
78
|
------------ | ------------- | ------------- | -------------
|
|
79
|
+
*DefaultApi* | [**add_cloud_deployment_api_v2_clouds_cloud_id_add_deployment_put**](docs/DefaultApi.md#add_cloud_deployment_api_v2_clouds_cloud_id_add_deployment_put) | **PUT** /api/v2/clouds/{cloud_id}/add_deployment | Add Cloud Deployment
|
|
78
80
|
*DefaultApi* | [**add_to_waitlist_api_v2_aioa_cloud_waitlist_post**](docs/DefaultApi.md#add_to_waitlist_api_v2_aioa_cloud_waitlist_post) | **POST** /api/v2/aioa_cloud_waitlist/ | Add To Waitlist
|
|
79
81
|
*DefaultApi* | [**admin_batch_create_users_api_v2_users_admin_batch_create_post**](docs/DefaultApi.md#admin_batch_create_users_api_v2_users_admin_batch_create_post) | **POST** /api/v2/users/admin_batch_create | Admin Batch Create Users
|
|
80
82
|
*DefaultApi* | [**admission_api_v2_kubernetes_manager_admission_cloud_resource_id_post**](docs/DefaultApi.md#admission_api_v2_kubernetes_manager_admission_cloud_resource_id_post) | **POST** /api/v2/kubernetes_manager/admission/{cloud_resource_id} | Admission
|
|
@@ -324,7 +326,7 @@ Class | Method | HTTP request | Description
|
|
|
324
326
|
*DefaultApi* | [**search_cloud_collaborators_api_v2_clouds_cloud_id_collaborators_users_search_post**](docs/DefaultApi.md#search_cloud_collaborators_api_v2_clouds_cloud_id_collaborators_users_search_post) | **POST** /api/v2/clouds/{cloud_id}/collaborators/users/search | Search Cloud Collaborators
|
|
325
327
|
*DefaultApi* | [**search_cluster_environments_api_v2_application_templates_search_post**](docs/DefaultApi.md#search_cluster_environments_api_v2_application_templates_search_post) | **POST** /api/v2/application_templates/search | Search Cluster Environments
|
|
326
328
|
*DefaultApi* | [**search_compute_templates_api_v2_compute_templates_search_post**](docs/DefaultApi.md#search_compute_templates_api_v2_compute_templates_search_post) | **POST** /api/v2/compute_templates/search | Search Compute Templates
|
|
327
|
-
*DefaultApi* | [**
|
|
329
|
+
*DefaultApi* | [**search_machine_pools_api_v2_machine_pools_search_post**](docs/DefaultApi.md#search_machine_pools_api_v2_machine_pools_search_post) | **POST** /api/v2/machine_pools/search | Search Machine Pools
|
|
328
330
|
*DefaultApi* | [**search_resource_notifications_api_v2_resource_notifications_search_post**](docs/DefaultApi.md#search_resource_notifications_api_v2_resource_notifications_search_post) | **POST** /api/v2/resource_notifications/search | Search Resource Notifications
|
|
329
331
|
*DefaultApi* | [**search_resource_quotas_api_v2_resource_quotas_search_post**](docs/DefaultApi.md#search_resource_quotas_api_v2_resource_quotas_search_post) | **POST** /api/v2/resource_quotas/search | Search Resource Quotas
|
|
330
332
|
*DefaultApi* | [**search_support_requests_api_v2_support_requests_search_post**](docs/DefaultApi.md#search_support_requests_api_v2_support_requests_search_post) | **POST** /api/v2/support_requests/search | Search Support Requests
|
|
@@ -357,6 +359,7 @@ Class | Method | HTTP request | Description
|
|
|
357
359
|
*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
|
|
358
360
|
*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
|
|
359
361
|
*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
|
|
362
|
+
*DefaultApi* | [**update_payment_info_api_v2_organization_billing_update_payment_info_post**](docs/DefaultApi.md#update_payment_info_api_v2_organization_billing_update_payment_info_post) | **POST** /api/v2/organization_billing/update_payment_info | Update Payment Info
|
|
360
363
|
*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
|
|
361
364
|
*DefaultApi* | [**update_resource_quota_api_v2_resource_quotas_resource_quota_id_patch**](docs/DefaultApi.md#update_resource_quota_api_v2_resource_quotas_resource_quota_id_patch) | **PATCH** /api/v2/resource_quotas/{resource_quota_id} | Update Resource Quota
|
|
362
365
|
*DefaultApi* | [**upload_session_command_logs_api_v2_session_commands_session_command_id_upload_logs_post**](docs/DefaultApi.md#upload_session_command_logs_api_v2_session_commands_session_command_id_upload_logs_post) | **POST** /api/v2/session_commands/{session_command_id}/upload_logs | Upload Session Command Logs
|
|
@@ -727,6 +730,7 @@ Class | Method | HTTP request | Description
|
|
|
727
730
|
- [MachineInfo](docs/MachineInfo.md)
|
|
728
731
|
- [MachineLaunchFailure](docs/MachineLaunchFailure.md)
|
|
729
732
|
- [MachinePool](docs/MachinePool.md)
|
|
733
|
+
- [MachinePoolSearchQuery](docs/MachinePoolSearchQuery.md)
|
|
730
734
|
- [MachinePoolSearchResult](docs/MachinePoolSearchResult.md)
|
|
731
735
|
- [MachineStateInfo](docs/MachineStateInfo.md)
|
|
732
736
|
- [MachinepoolsearchresultListResponse](docs/MachinepoolsearchresultListResponse.md)
|
|
@@ -929,6 +933,7 @@ Class | Method | HTTP request | Description
|
|
|
929
933
|
- [UpdateJobQueueRequest](docs/UpdateJobQueueRequest.md)
|
|
930
934
|
- [UpdateMachinePoolRequest](docs/UpdateMachinePoolRequest.md)
|
|
931
935
|
- [UpdateOrganizationCollaborator](docs/UpdateOrganizationCollaborator.md)
|
|
936
|
+
- [UpdatePaymentInfo](docs/UpdatePaymentInfo.md)
|
|
932
937
|
- [UpdateProjectCollaborator](docs/UpdateProjectCollaborator.md)
|
|
933
938
|
- [UpdateResourceQuota](docs/UpdateResourceQuota.md)
|
|
934
939
|
- [UpdatemachinepoolresponseResponse](docs/UpdatemachinepoolresponseResponse.md)
|
|
@@ -382,6 +382,7 @@ from openapi_client.models.machine_connection_state import MachineConnectionStat
|
|
|
382
382
|
from openapi_client.models.machine_info import MachineInfo
|
|
383
383
|
from openapi_client.models.machine_launch_failure import MachineLaunchFailure
|
|
384
384
|
from openapi_client.models.machine_pool import MachinePool
|
|
385
|
+
from openapi_client.models.machine_pool_search_query import MachinePoolSearchQuery
|
|
385
386
|
from openapi_client.models.machine_pool_search_result import MachinePoolSearchResult
|
|
386
387
|
from openapi_client.models.machine_state_info import MachineStateInfo
|
|
387
388
|
from openapi_client.models.machinepoolsearchresult_list_response import MachinepoolsearchresultListResponse
|
|
@@ -584,6 +585,7 @@ from openapi_client.models.update_cluster_dns import UpdateClusterDns
|
|
|
584
585
|
from openapi_client.models.update_job_queue_request import UpdateJobQueueRequest
|
|
585
586
|
from openapi_client.models.update_machine_pool_request import UpdateMachinePoolRequest
|
|
586
587
|
from openapi_client.models.update_organization_collaborator import UpdateOrganizationCollaborator
|
|
588
|
+
from openapi_client.models.update_payment_info import UpdatePaymentInfo
|
|
587
589
|
from openapi_client.models.update_project_collaborator import UpdateProjectCollaborator
|
|
588
590
|
from openapi_client.models.update_resource_quota import UpdateResourceQuota
|
|
589
591
|
from openapi_client.models.updatemachinepoolresponse_response import UpdatemachinepoolresponseResponse
|
|
@@ -36,6 +36,131 @@ class DefaultApi(object):
|
|
|
36
36
|
api_client = ApiClient()
|
|
37
37
|
self.api_client = api_client
|
|
38
38
|
|
|
39
|
+
def add_cloud_deployment_api_v2_clouds_cloud_id_add_deployment_put(self, cloud_id, cloud_deployment, **kwargs): # noqa: E501
|
|
40
|
+
"""Add Cloud Deployment # noqa: E501
|
|
41
|
+
|
|
42
|
+
This method makes a synchronous HTTP request by default. To make an
|
|
43
|
+
asynchronous HTTP request, please pass async_req=True
|
|
44
|
+
>>> thread = api.add_cloud_deployment_api_v2_clouds_cloud_id_add_deployment_put(cloud_id, cloud_deployment, async_req=True)
|
|
45
|
+
>>> result = thread.get()
|
|
46
|
+
|
|
47
|
+
:param async_req bool: execute request asynchronously
|
|
48
|
+
:param str cloud_id: (required)
|
|
49
|
+
:param CloudDeployment cloud_deployment: (required)
|
|
50
|
+
:param _preload_content: if False, the urllib3.HTTPResponse object will
|
|
51
|
+
be returned without reading/decoding response
|
|
52
|
+
data. Default is True.
|
|
53
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
54
|
+
number provided, it will be total request
|
|
55
|
+
timeout. It can also be a pair (tuple) of
|
|
56
|
+
(connection, read) timeouts.
|
|
57
|
+
:return: object
|
|
58
|
+
If the method is called asynchronously,
|
|
59
|
+
returns the request thread.
|
|
60
|
+
"""
|
|
61
|
+
kwargs['_return_http_data_only'] = True
|
|
62
|
+
return self.add_cloud_deployment_api_v2_clouds_cloud_id_add_deployment_put_with_http_info(cloud_id, cloud_deployment, **kwargs) # noqa: E501
|
|
63
|
+
|
|
64
|
+
def add_cloud_deployment_api_v2_clouds_cloud_id_add_deployment_put_with_http_info(self, cloud_id, cloud_deployment, **kwargs): # noqa: E501
|
|
65
|
+
"""Add Cloud Deployment # noqa: E501
|
|
66
|
+
|
|
67
|
+
This method makes a synchronous HTTP request by default. To make an
|
|
68
|
+
asynchronous HTTP request, please pass async_req=True
|
|
69
|
+
>>> thread = api.add_cloud_deployment_api_v2_clouds_cloud_id_add_deployment_put_with_http_info(cloud_id, cloud_deployment, async_req=True)
|
|
70
|
+
>>> result = thread.get()
|
|
71
|
+
|
|
72
|
+
:param async_req bool: execute request asynchronously
|
|
73
|
+
:param str cloud_id: (required)
|
|
74
|
+
:param CloudDeployment cloud_deployment: (required)
|
|
75
|
+
:param _return_http_data_only: response data without head status code
|
|
76
|
+
and headers
|
|
77
|
+
:param _preload_content: if False, the urllib3.HTTPResponse object will
|
|
78
|
+
be returned without reading/decoding response
|
|
79
|
+
data. Default is True.
|
|
80
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
81
|
+
number provided, it will be total request
|
|
82
|
+
timeout. It can also be a pair (tuple) of
|
|
83
|
+
(connection, read) timeouts.
|
|
84
|
+
:return: tuple(object, status_code(int), headers(HTTPHeaderDict))
|
|
85
|
+
If the method is called asynchronously,
|
|
86
|
+
returns the request thread.
|
|
87
|
+
"""
|
|
88
|
+
|
|
89
|
+
local_var_params = locals()
|
|
90
|
+
|
|
91
|
+
all_params = [
|
|
92
|
+
'cloud_id',
|
|
93
|
+
'cloud_deployment'
|
|
94
|
+
]
|
|
95
|
+
all_params.extend(
|
|
96
|
+
[
|
|
97
|
+
'async_req',
|
|
98
|
+
'_return_http_data_only',
|
|
99
|
+
'_preload_content',
|
|
100
|
+
'_request_timeout'
|
|
101
|
+
]
|
|
102
|
+
)
|
|
103
|
+
|
|
104
|
+
for key, val in six.iteritems(local_var_params['kwargs']):
|
|
105
|
+
if key not in all_params:
|
|
106
|
+
raise ApiTypeError(
|
|
107
|
+
"Got an unexpected keyword argument '%s'"
|
|
108
|
+
" to method add_cloud_deployment_api_v2_clouds_cloud_id_add_deployment_put" % key
|
|
109
|
+
)
|
|
110
|
+
local_var_params[key] = val
|
|
111
|
+
del local_var_params['kwargs']
|
|
112
|
+
# verify the required parameter 'cloud_id' is set
|
|
113
|
+
if self.api_client.client_side_validation and ('cloud_id' not in local_var_params or # noqa: E501
|
|
114
|
+
local_var_params['cloud_id'] is None): # noqa: E501
|
|
115
|
+
raise ApiValueError("Missing the required parameter `cloud_id` when calling `add_cloud_deployment_api_v2_clouds_cloud_id_add_deployment_put`") # noqa: E501
|
|
116
|
+
# verify the required parameter 'cloud_deployment' is set
|
|
117
|
+
if self.api_client.client_side_validation and ('cloud_deployment' not in local_var_params or # noqa: E501
|
|
118
|
+
local_var_params['cloud_deployment'] is None): # noqa: E501
|
|
119
|
+
raise ApiValueError("Missing the required parameter `cloud_deployment` when calling `add_cloud_deployment_api_v2_clouds_cloud_id_add_deployment_put`") # noqa: E501
|
|
120
|
+
|
|
121
|
+
collection_formats = {}
|
|
122
|
+
|
|
123
|
+
path_params = {}
|
|
124
|
+
if 'cloud_id' in local_var_params:
|
|
125
|
+
path_params['cloud_id'] = local_var_params['cloud_id'] # noqa: E501
|
|
126
|
+
|
|
127
|
+
query_params = []
|
|
128
|
+
|
|
129
|
+
header_params = {}
|
|
130
|
+
|
|
131
|
+
form_params = []
|
|
132
|
+
local_var_files = {}
|
|
133
|
+
|
|
134
|
+
body_params = None
|
|
135
|
+
if 'cloud_deployment' in local_var_params:
|
|
136
|
+
body_params = local_var_params['cloud_deployment']
|
|
137
|
+
# HTTP header `Accept`
|
|
138
|
+
header_params['Accept'] = self.api_client.select_header_accept(
|
|
139
|
+
['application/json']) # noqa: E501
|
|
140
|
+
|
|
141
|
+
# HTTP header `Content-Type`
|
|
142
|
+
header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501
|
|
143
|
+
['application/json']) # noqa: E501
|
|
144
|
+
|
|
145
|
+
# Authentication setting
|
|
146
|
+
auth_settings = [] # noqa: E501
|
|
147
|
+
|
|
148
|
+
return self.api_client.call_api(
|
|
149
|
+
'/api/v2/clouds/{cloud_id}/add_deployment', 'PUT',
|
|
150
|
+
path_params,
|
|
151
|
+
query_params,
|
|
152
|
+
header_params,
|
|
153
|
+
body=body_params,
|
|
154
|
+
post_params=form_params,
|
|
155
|
+
files=local_var_files,
|
|
156
|
+
response_type='object', # noqa: E501
|
|
157
|
+
auth_settings=auth_settings,
|
|
158
|
+
async_req=local_var_params.get('async_req'),
|
|
159
|
+
_return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501
|
|
160
|
+
_preload_content=local_var_params.get('_preload_content', True),
|
|
161
|
+
_request_timeout=local_var_params.get('_request_timeout'),
|
|
162
|
+
collection_formats=collection_formats)
|
|
163
|
+
|
|
39
164
|
def add_to_waitlist_api_v2_aioa_cloud_waitlist_post(self, create_aioa_cloud_waitlist, **kwargs): # noqa: E501
|
|
40
165
|
"""Add To Waitlist # noqa: E501
|
|
41
166
|
|
|
@@ -30233,18 +30358,19 @@ class DefaultApi(object):
|
|
|
30233
30358
|
_request_timeout=local_var_params.get('_request_timeout'),
|
|
30234
30359
|
collection_formats=collection_formats)
|
|
30235
30360
|
|
|
30236
|
-
def
|
|
30361
|
+
def search_machine_pools_api_v2_machine_pools_search_post(self, **kwargs): # noqa: E501
|
|
30237
30362
|
"""Search Machine Pools # noqa: E501
|
|
30238
30363
|
|
|
30239
30364
|
Search machine pools. # noqa: E501
|
|
30240
30365
|
This method makes a synchronous HTTP request by default. To make an
|
|
30241
30366
|
asynchronous HTTP request, please pass async_req=True
|
|
30242
|
-
>>> thread = api.
|
|
30367
|
+
>>> thread = api.search_machine_pools_api_v2_machine_pools_search_post(async_req=True)
|
|
30243
30368
|
>>> result = thread.get()
|
|
30244
30369
|
|
|
30245
30370
|
:param async_req bool: execute request asynchronously
|
|
30246
30371
|
:param str paging_token:
|
|
30247
30372
|
:param int count:
|
|
30373
|
+
:param MachinePoolSearchQuery machine_pool_search_query:
|
|
30248
30374
|
:param _preload_content: if False, the urllib3.HTTPResponse object will
|
|
30249
30375
|
be returned without reading/decoding response
|
|
30250
30376
|
data. Default is True.
|
|
@@ -30257,20 +30383,21 @@ class DefaultApi(object):
|
|
|
30257
30383
|
returns the request thread.
|
|
30258
30384
|
"""
|
|
30259
30385
|
kwargs['_return_http_data_only'] = True
|
|
30260
|
-
return self.
|
|
30386
|
+
return self.search_machine_pools_api_v2_machine_pools_search_post_with_http_info(**kwargs) # noqa: E501
|
|
30261
30387
|
|
|
30262
|
-
def
|
|
30388
|
+
def search_machine_pools_api_v2_machine_pools_search_post_with_http_info(self, **kwargs): # noqa: E501
|
|
30263
30389
|
"""Search Machine Pools # noqa: E501
|
|
30264
30390
|
|
|
30265
30391
|
Search machine pools. # noqa: E501
|
|
30266
30392
|
This method makes a synchronous HTTP request by default. To make an
|
|
30267
30393
|
asynchronous HTTP request, please pass async_req=True
|
|
30268
|
-
>>> thread = api.
|
|
30394
|
+
>>> thread = api.search_machine_pools_api_v2_machine_pools_search_post_with_http_info(async_req=True)
|
|
30269
30395
|
>>> result = thread.get()
|
|
30270
30396
|
|
|
30271
30397
|
:param async_req bool: execute request asynchronously
|
|
30272
30398
|
:param str paging_token:
|
|
30273
30399
|
:param int count:
|
|
30400
|
+
:param MachinePoolSearchQuery machine_pool_search_query:
|
|
30274
30401
|
:param _return_http_data_only: response data without head status code
|
|
30275
30402
|
and headers
|
|
30276
30403
|
:param _preload_content: if False, the urllib3.HTTPResponse object will
|
|
@@ -30289,7 +30416,8 @@ class DefaultApi(object):
|
|
|
30289
30416
|
|
|
30290
30417
|
all_params = [
|
|
30291
30418
|
'paging_token',
|
|
30292
|
-
'count'
|
|
30419
|
+
'count',
|
|
30420
|
+
'machine_pool_search_query'
|
|
30293
30421
|
]
|
|
30294
30422
|
all_params.extend(
|
|
30295
30423
|
[
|
|
@@ -30304,15 +30432,15 @@ class DefaultApi(object):
|
|
|
30304
30432
|
if key not in all_params:
|
|
30305
30433
|
raise ApiTypeError(
|
|
30306
30434
|
"Got an unexpected keyword argument '%s'"
|
|
30307
|
-
" to method
|
|
30435
|
+
" to method search_machine_pools_api_v2_machine_pools_search_post" % key
|
|
30308
30436
|
)
|
|
30309
30437
|
local_var_params[key] = val
|
|
30310
30438
|
del local_var_params['kwargs']
|
|
30311
30439
|
|
|
30312
30440
|
if self.api_client.client_side_validation and 'count' in local_var_params and local_var_params['count'] > 1000: # noqa: E501
|
|
30313
|
-
raise ApiValueError("Invalid value for parameter `count` when calling `
|
|
30441
|
+
raise ApiValueError("Invalid value for parameter `count` when calling `search_machine_pools_api_v2_machine_pools_search_post`, must be a value less than or equal to `1000`") # noqa: E501
|
|
30314
30442
|
if self.api_client.client_side_validation and 'count' in local_var_params and local_var_params['count'] < 0: # noqa: E501
|
|
30315
|
-
raise ApiValueError("Invalid value for parameter `count` when calling `
|
|
30443
|
+
raise ApiValueError("Invalid value for parameter `count` when calling `search_machine_pools_api_v2_machine_pools_search_post`, must be a value greater than or equal to `0`") # noqa: E501
|
|
30316
30444
|
collection_formats = {}
|
|
30317
30445
|
|
|
30318
30446
|
path_params = {}
|
|
@@ -30329,15 +30457,21 @@ class DefaultApi(object):
|
|
|
30329
30457
|
local_var_files = {}
|
|
30330
30458
|
|
|
30331
30459
|
body_params = None
|
|
30460
|
+
if 'machine_pool_search_query' in local_var_params:
|
|
30461
|
+
body_params = local_var_params['machine_pool_search_query']
|
|
30332
30462
|
# HTTP header `Accept`
|
|
30333
30463
|
header_params['Accept'] = self.api_client.select_header_accept(
|
|
30334
30464
|
['application/json']) # noqa: E501
|
|
30335
30465
|
|
|
30466
|
+
# HTTP header `Content-Type`
|
|
30467
|
+
header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501
|
|
30468
|
+
['application/json']) # noqa: E501
|
|
30469
|
+
|
|
30336
30470
|
# Authentication setting
|
|
30337
30471
|
auth_settings = [] # noqa: E501
|
|
30338
30472
|
|
|
30339
30473
|
return self.api_client.call_api(
|
|
30340
|
-
'/api/v2/machine_pools/search', '
|
|
30474
|
+
'/api/v2/machine_pools/search', 'POST',
|
|
30341
30475
|
path_params,
|
|
30342
30476
|
query_params,
|
|
30343
30477
|
header_params,
|
|
@@ -34169,6 +34303,111 @@ class DefaultApi(object):
|
|
|
34169
34303
|
_request_timeout=local_var_params.get('_request_timeout'),
|
|
34170
34304
|
collection_formats=collection_formats)
|
|
34171
34305
|
|
|
34306
|
+
def update_payment_info_api_v2_organization_billing_update_payment_info_post(self, **kwargs): # noqa: E501
|
|
34307
|
+
"""Update Payment Info # noqa: E501
|
|
34308
|
+
|
|
34309
|
+
Adds payment info for the first time or updates existing payment info. # noqa: E501
|
|
34310
|
+
This method makes a synchronous HTTP request by default. To make an
|
|
34311
|
+
asynchronous HTTP request, please pass async_req=True
|
|
34312
|
+
>>> thread = api.update_payment_info_api_v2_organization_billing_update_payment_info_post(async_req=True)
|
|
34313
|
+
>>> result = thread.get()
|
|
34314
|
+
|
|
34315
|
+
:param async_req bool: execute request asynchronously
|
|
34316
|
+
:param _preload_content: if False, the urllib3.HTTPResponse object will
|
|
34317
|
+
be returned without reading/decoding response
|
|
34318
|
+
data. Default is True.
|
|
34319
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
34320
|
+
number provided, it will be total request
|
|
34321
|
+
timeout. It can also be a pair (tuple) of
|
|
34322
|
+
(connection, read) timeouts.
|
|
34323
|
+
:return: UpdatePaymentInfo
|
|
34324
|
+
If the method is called asynchronously,
|
|
34325
|
+
returns the request thread.
|
|
34326
|
+
"""
|
|
34327
|
+
kwargs['_return_http_data_only'] = True
|
|
34328
|
+
return self.update_payment_info_api_v2_organization_billing_update_payment_info_post_with_http_info(**kwargs) # noqa: E501
|
|
34329
|
+
|
|
34330
|
+
def update_payment_info_api_v2_organization_billing_update_payment_info_post_with_http_info(self, **kwargs): # noqa: E501
|
|
34331
|
+
"""Update Payment Info # noqa: E501
|
|
34332
|
+
|
|
34333
|
+
Adds payment info for the first time or updates existing payment info. # noqa: E501
|
|
34334
|
+
This method makes a synchronous HTTP request by default. To make an
|
|
34335
|
+
asynchronous HTTP request, please pass async_req=True
|
|
34336
|
+
>>> thread = api.update_payment_info_api_v2_organization_billing_update_payment_info_post_with_http_info(async_req=True)
|
|
34337
|
+
>>> result = thread.get()
|
|
34338
|
+
|
|
34339
|
+
:param async_req bool: execute request asynchronously
|
|
34340
|
+
:param _return_http_data_only: response data without head status code
|
|
34341
|
+
and headers
|
|
34342
|
+
:param _preload_content: if False, the urllib3.HTTPResponse object will
|
|
34343
|
+
be returned without reading/decoding response
|
|
34344
|
+
data. Default is True.
|
|
34345
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
34346
|
+
number provided, it will be total request
|
|
34347
|
+
timeout. It can also be a pair (tuple) of
|
|
34348
|
+
(connection, read) timeouts.
|
|
34349
|
+
:return: tuple(UpdatePaymentInfo, status_code(int), headers(HTTPHeaderDict))
|
|
34350
|
+
If the method is called asynchronously,
|
|
34351
|
+
returns the request thread.
|
|
34352
|
+
"""
|
|
34353
|
+
|
|
34354
|
+
local_var_params = locals()
|
|
34355
|
+
|
|
34356
|
+
all_params = [
|
|
34357
|
+
]
|
|
34358
|
+
all_params.extend(
|
|
34359
|
+
[
|
|
34360
|
+
'async_req',
|
|
34361
|
+
'_return_http_data_only',
|
|
34362
|
+
'_preload_content',
|
|
34363
|
+
'_request_timeout'
|
|
34364
|
+
]
|
|
34365
|
+
)
|
|
34366
|
+
|
|
34367
|
+
for key, val in six.iteritems(local_var_params['kwargs']):
|
|
34368
|
+
if key not in all_params:
|
|
34369
|
+
raise ApiTypeError(
|
|
34370
|
+
"Got an unexpected keyword argument '%s'"
|
|
34371
|
+
" to method update_payment_info_api_v2_organization_billing_update_payment_info_post" % key
|
|
34372
|
+
)
|
|
34373
|
+
local_var_params[key] = val
|
|
34374
|
+
del local_var_params['kwargs']
|
|
34375
|
+
|
|
34376
|
+
collection_formats = {}
|
|
34377
|
+
|
|
34378
|
+
path_params = {}
|
|
34379
|
+
|
|
34380
|
+
query_params = []
|
|
34381
|
+
|
|
34382
|
+
header_params = {}
|
|
34383
|
+
|
|
34384
|
+
form_params = []
|
|
34385
|
+
local_var_files = {}
|
|
34386
|
+
|
|
34387
|
+
body_params = None
|
|
34388
|
+
# HTTP header `Accept`
|
|
34389
|
+
header_params['Accept'] = self.api_client.select_header_accept(
|
|
34390
|
+
['application/json']) # noqa: E501
|
|
34391
|
+
|
|
34392
|
+
# Authentication setting
|
|
34393
|
+
auth_settings = [] # noqa: E501
|
|
34394
|
+
|
|
34395
|
+
return self.api_client.call_api(
|
|
34396
|
+
'/api/v2/organization_billing/update_payment_info', 'POST',
|
|
34397
|
+
path_params,
|
|
34398
|
+
query_params,
|
|
34399
|
+
header_params,
|
|
34400
|
+
body=body_params,
|
|
34401
|
+
post_params=form_params,
|
|
34402
|
+
files=local_var_files,
|
|
34403
|
+
response_type='UpdatePaymentInfo', # noqa: E501
|
|
34404
|
+
auth_settings=auth_settings,
|
|
34405
|
+
async_req=local_var_params.get('async_req'),
|
|
34406
|
+
_return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501
|
|
34407
|
+
_preload_content=local_var_params.get('_preload_content', True),
|
|
34408
|
+
_request_timeout=local_var_params.get('_request_timeout'),
|
|
34409
|
+
collection_formats=collection_formats)
|
|
34410
|
+
|
|
34172
34411
|
def update_resource_notification_api_v2_resource_notifications_resource_notification_id_put(self, resource_notification_id, create_resource_notification, **kwargs): # noqa: E501
|
|
34173
34412
|
"""Update Resource Notification # noqa: E501
|
|
34174
34413
|
|
|
@@ -368,6 +368,7 @@ from openapi_client.models.machine_connection_state import MachineConnectionStat
|
|
|
368
368
|
from openapi_client.models.machine_info import MachineInfo
|
|
369
369
|
from openapi_client.models.machine_launch_failure import MachineLaunchFailure
|
|
370
370
|
from openapi_client.models.machine_pool import MachinePool
|
|
371
|
+
from openapi_client.models.machine_pool_search_query import MachinePoolSearchQuery
|
|
371
372
|
from openapi_client.models.machine_pool_search_result import MachinePoolSearchResult
|
|
372
373
|
from openapi_client.models.machine_state_info import MachineStateInfo
|
|
373
374
|
from openapi_client.models.machinepoolsearchresult_list_response import MachinepoolsearchresultListResponse
|
|
@@ -570,6 +571,7 @@ from openapi_client.models.update_cluster_dns import UpdateClusterDns
|
|
|
570
571
|
from openapi_client.models.update_job_queue_request import UpdateJobQueueRequest
|
|
571
572
|
from openapi_client.models.update_machine_pool_request import UpdateMachinePoolRequest
|
|
572
573
|
from openapi_client.models.update_organization_collaborator import UpdateOrganizationCollaborator
|
|
574
|
+
from openapi_client.models.update_payment_info import UpdatePaymentInfo
|
|
573
575
|
from openapi_client.models.update_project_collaborator import UpdateProjectCollaborator
|
|
574
576
|
from openapi_client.models.update_resource_quota import UpdateResourceQuota
|
|
575
577
|
from openapi_client.models.updatemachinepoolresponse_response import UpdatemachinepoolresponseResponse
|
|
@@ -91,7 +91,8 @@ class DecoratedSession(object):
|
|
|
91
91
|
'compute_template': 'MiniComputeTemplate',
|
|
92
92
|
'idle_time_remaining_seconds': 'int',
|
|
93
93
|
'access': 'SessionAccess',
|
|
94
|
-
'project': 'MiniProject'
|
|
94
|
+
'project': 'MiniProject',
|
|
95
|
+
'latest_started_at': 'datetime'
|
|
95
96
|
}
|
|
96
97
|
|
|
97
98
|
attribute_map = {
|
|
@@ -153,10 +154,11 @@ class DecoratedSession(object):
|
|
|
153
154
|
'compute_template': 'compute_template',
|
|
154
155
|
'idle_time_remaining_seconds': 'idle_time_remaining_seconds',
|
|
155
156
|
'access': 'access',
|
|
156
|
-
'project': 'project'
|
|
157
|
+
'project': 'project',
|
|
158
|
+
'latest_started_at': 'latest_started_at'
|
|
157
159
|
}
|
|
158
160
|
|
|
159
|
-
def __init__(self, name=None, project_id=None, cloud_id=None, cluster_config=None, build_id=None, compute_template_id=None, idle_timeout=120, uses_app_config=False, allow_public_internet_traffic=False, user_service_access=None, user_service_token=None, ha_job_id=None, id=None, state=None, pending_state=None, state_data=None, status=None, status_details=None, creator_id=None, created_at=None, archived_at=None, webterminal_auth_url=None, metrics_dashboard_url=None, data_metrics_dashboard_url=None, train_metrics_dashboard_url=None, serve_metrics_dashboard_url=None, serve_deployment_metrics_dashboard_url=None, serve_llm_metrics_dashboard_url=None, persistent_metrics_url=None, connect_url=None, jupyter_notebook_url=None, ray_dashboard_url=None, access_token=None, service_proxy_url=None, tensorboard_available=None, cluster_config_last_modified_at=None, host_name=None, head_node_ip=None, ssh_authorized_keys=None, ssh_private_key=None, anyscaled_config=None, anyscaled_config_generated_at=None, default_build_id=None, idle_timeout_last_activity_at=None, ray_version=None, ray_version_last_updated_at=None, user_service_url=None, ray_component_activities_last_reported_at=None, activity_details=None, maximum_uptime_will_terminate_cluster_at=None, idle_termination_status=None, ray_dashboard_snapshot_last_reported_at=None, build=None, cloud=None, creator=None, compute_template=None, idle_time_remaining_seconds=None, access=None, project=None, local_vars_configuration=None): # noqa: E501
|
|
161
|
+
def __init__(self, name=None, project_id=None, cloud_id=None, cluster_config=None, build_id=None, compute_template_id=None, idle_timeout=120, uses_app_config=False, allow_public_internet_traffic=False, user_service_access=None, user_service_token=None, ha_job_id=None, id=None, state=None, pending_state=None, state_data=None, status=None, status_details=None, creator_id=None, created_at=None, archived_at=None, webterminal_auth_url=None, metrics_dashboard_url=None, data_metrics_dashboard_url=None, train_metrics_dashboard_url=None, serve_metrics_dashboard_url=None, serve_deployment_metrics_dashboard_url=None, serve_llm_metrics_dashboard_url=None, persistent_metrics_url=None, connect_url=None, jupyter_notebook_url=None, ray_dashboard_url=None, access_token=None, service_proxy_url=None, tensorboard_available=None, cluster_config_last_modified_at=None, host_name=None, head_node_ip=None, ssh_authorized_keys=None, ssh_private_key=None, anyscaled_config=None, anyscaled_config_generated_at=None, default_build_id=None, idle_timeout_last_activity_at=None, ray_version=None, ray_version_last_updated_at=None, user_service_url=None, ray_component_activities_last_reported_at=None, activity_details=None, maximum_uptime_will_terminate_cluster_at=None, idle_termination_status=None, ray_dashboard_snapshot_last_reported_at=None, build=None, cloud=None, creator=None, compute_template=None, idle_time_remaining_seconds=None, access=None, project=None, latest_started_at=None, local_vars_configuration=None): # noqa: E501
|
|
160
162
|
"""DecoratedSession - a model defined in OpenAPI""" # noqa: E501
|
|
161
163
|
if local_vars_configuration is None:
|
|
162
164
|
local_vars_configuration = Configuration()
|
|
@@ -221,6 +223,7 @@ class DecoratedSession(object):
|
|
|
221
223
|
self._idle_time_remaining_seconds = None
|
|
222
224
|
self._access = None
|
|
223
225
|
self._project = None
|
|
226
|
+
self._latest_started_at = None
|
|
224
227
|
self.discriminator = None
|
|
225
228
|
|
|
226
229
|
self.name = name
|
|
@@ -326,6 +329,8 @@ class DecoratedSession(object):
|
|
|
326
329
|
self.access = access
|
|
327
330
|
if project is not None:
|
|
328
331
|
self.project = project
|
|
332
|
+
if latest_started_at is not None:
|
|
333
|
+
self.latest_started_at = latest_started_at
|
|
329
334
|
|
|
330
335
|
@property
|
|
331
336
|
def name(self):
|
|
@@ -1714,6 +1719,29 @@ class DecoratedSession(object):
|
|
|
1714
1719
|
|
|
1715
1720
|
self._project = project
|
|
1716
1721
|
|
|
1722
|
+
@property
|
|
1723
|
+
def latest_started_at(self):
|
|
1724
|
+
"""Gets the latest_started_at of this DecoratedSession. # noqa: E501
|
|
1725
|
+
|
|
1726
|
+
The datetime of the latest transition to StartingUp state. # noqa: E501
|
|
1727
|
+
|
|
1728
|
+
:return: The latest_started_at of this DecoratedSession. # noqa: E501
|
|
1729
|
+
:rtype: datetime
|
|
1730
|
+
"""
|
|
1731
|
+
return self._latest_started_at
|
|
1732
|
+
|
|
1733
|
+
@latest_started_at.setter
|
|
1734
|
+
def latest_started_at(self, latest_started_at):
|
|
1735
|
+
"""Sets the latest_started_at of this DecoratedSession.
|
|
1736
|
+
|
|
1737
|
+
The datetime of the latest transition to StartingUp state. # noqa: E501
|
|
1738
|
+
|
|
1739
|
+
:param latest_started_at: The latest_started_at of this DecoratedSession. # noqa: E501
|
|
1740
|
+
:type: datetime
|
|
1741
|
+
"""
|
|
1742
|
+
|
|
1743
|
+
self._latest_started_at = latest_started_at
|
|
1744
|
+
|
|
1717
1745
|
def to_dict(self):
|
|
1718
1746
|
"""Returns the model properties as a dict"""
|
|
1719
1747
|
result = {}
|