anyscale 0.26.45__py3-none-any.whl → 0.26.47__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/anyscale_client/anyscale_client.py +4 -2
- anyscale/_private/anyscale_client/common.py +2 -0
- anyscale/_private/anyscale_client/fake_anyscale_client.py +4 -1
- anyscale/client/README.md +4 -0
- anyscale/client/openapi_client/__init__.py +2 -0
- anyscale/client/openapi_client/api/default_api.py +247 -0
- anyscale/client/openapi_client/models/__init__.py +2 -0
- anyscale/client/openapi_client/models/clouddeployment_response.py +121 -0
- anyscale/client/openapi_client/models/collaborator_type.py +101 -0
- anyscale/client/openapi_client/models/task_table_row.py +29 -3
- anyscale/cloud_resource.py +120 -150
- anyscale/commands/cloud_commands.py +46 -3
- anyscale/commands/command_examples.py +8 -0
- anyscale/controllers/cloud_controller.py +361 -76
- anyscale/gcp_verification.py +51 -38
- anyscale/utils/s3.py +2 -2
- anyscale/utils/user_utils.py +2 -1
- anyscale/version.py +1 -1
- {anyscale-0.26.45.dist-info → anyscale-0.26.47.dist-info}/METADATA +11 -2
- {anyscale-0.26.45.dist-info → anyscale-0.26.47.dist-info}/RECORD +25 -23
- {anyscale-0.26.45.dist-info → anyscale-0.26.47.dist-info}/WHEEL +1 -1
- {anyscale-0.26.45.dist-info → anyscale-0.26.47.dist-info}/entry_points.txt +0 -0
- {anyscale-0.26.45.dist-info → anyscale-0.26.47.dist-info/licenses}/LICENSE +0 -0
- {anyscale-0.26.45.dist-info → anyscale-0.26.47.dist-info/licenses}/NOTICE +0 -0
- {anyscale-0.26.45.dist-info → anyscale-0.26.47.dist-info}/top_level.txt +0 -0
|
@@ -47,6 +47,7 @@ from anyscale.client.openapi_client.models import (
|
|
|
47
47
|
CloudDataBucketPresignedUrlScheme,
|
|
48
48
|
CloudNameOptions,
|
|
49
49
|
ClusteroperationResponse,
|
|
50
|
+
CollaboratorType,
|
|
50
51
|
ComputeTemplate,
|
|
51
52
|
ComputeTemplateConfig,
|
|
52
53
|
ComputeTemplateQuery,
|
|
@@ -2078,10 +2079,11 @@ class AnyscaleClient(AnyscaleClientInterface):
|
|
|
2078
2079
|
self,
|
|
2079
2080
|
email: Optional[str] = None,
|
|
2080
2081
|
name: Optional[str] = None,
|
|
2081
|
-
|
|
2082
|
+
collaborator_type: Optional[CollaboratorType] = None,
|
|
2083
|
+
is_service_account: Optional[bool] = None, # noqa: ARG002
|
|
2082
2084
|
) -> List[OrganizationCollaborator]:
|
|
2083
2085
|
results = self._internal_api_client.list_organization_collaborators_api_v2_organization_collaborators_get(
|
|
2084
|
-
email=email, name=name,
|
|
2086
|
+
email=email, name=name, collaborator_type=collaborator_type
|
|
2085
2087
|
).results
|
|
2086
2088
|
|
|
2087
2089
|
return results
|
|
@@ -9,6 +9,7 @@ from anyscale.client.openapi_client.models import (
|
|
|
9
9
|
AnyscaleServiceAccount,
|
|
10
10
|
Cloud,
|
|
11
11
|
ClusteroperationResponse,
|
|
12
|
+
CollaboratorType,
|
|
12
13
|
ComputeTemplateConfig,
|
|
13
14
|
CreateCloudCollaborator,
|
|
14
15
|
CreateExperimentalWorkspace,
|
|
@@ -770,6 +771,7 @@ class AnyscaleClientInterface(ABC):
|
|
|
770
771
|
self,
|
|
771
772
|
email: Optional[str] = None,
|
|
772
773
|
name: Optional[str] = None,
|
|
774
|
+
collaborator_type: Optional[CollaboratorType] = None,
|
|
773
775
|
is_service_account: Optional[bool] = None,
|
|
774
776
|
) -> List[OrganizationCollaborator]:
|
|
775
777
|
"""Get organization collaborators."""
|
|
@@ -22,6 +22,7 @@ from anyscale.client.openapi_client.models import (
|
|
|
22
22
|
ClusterOperation,
|
|
23
23
|
ClusteroperationResponse,
|
|
24
24
|
ClusterState,
|
|
25
|
+
CollaboratorType,
|
|
25
26
|
ComputeTemplateConfig,
|
|
26
27
|
CreateCloudCollaborator,
|
|
27
28
|
CreateExperimentalWorkspace,
|
|
@@ -934,7 +935,7 @@ class FakeAnyscaleClient(AnyscaleClientInterface):
|
|
|
934
935
|
def get_schedule(
|
|
935
936
|
self,
|
|
936
937
|
*,
|
|
937
|
-
name: Optional[str],
|
|
938
|
+
name: Optional[str] = None,
|
|
938
939
|
id: Optional[str], # noqa: A002
|
|
939
940
|
cloud: Optional[str],
|
|
940
941
|
project: Optional[str],
|
|
@@ -1305,8 +1306,10 @@ class FakeAnyscaleClient(AnyscaleClientInterface):
|
|
|
1305
1306
|
self,
|
|
1306
1307
|
email: Optional[str] = None,
|
|
1307
1308
|
name: Optional[str] = None,
|
|
1309
|
+
collaborator_type: Optional[CollaboratorType] = None, # noqa: ARG002
|
|
1308
1310
|
is_service_account: Optional[bool] = None, # noqa: ARG002
|
|
1309
1311
|
) -> List[OrganizationCollaborator]:
|
|
1312
|
+
"""Give the list of collaborators for the organization."""
|
|
1310
1313
|
# Since organization collaborator doesn't include whether it's a service account or not, we'll just return all
|
|
1311
1314
|
results = []
|
|
1312
1315
|
for organization_collaborator in self._organization_collaborators:
|
anyscale/client/README.md
CHANGED
|
@@ -174,6 +174,7 @@ Class | Method | HTTP request | Description
|
|
|
174
174
|
*DefaultApi* | [**get_build_api_v2_builds_build_id_get**](docs/DefaultApi.md#get_build_api_v2_builds_build_id_get) | **GET** /api/v2/builds/{build_id} | Get Build
|
|
175
175
|
*DefaultApi* | [**get_build_logs_api_v2_builds_build_id_logs_get**](docs/DefaultApi.md#get_build_logs_api_v2_builds_build_id_logs_get) | **GET** /api/v2/builds/{build_id}/logs | Get Build Logs
|
|
176
176
|
*DefaultApi* | [**get_cloud_api_v2_clouds_cloud_id_get**](docs/DefaultApi.md#get_cloud_api_v2_clouds_cloud_id_get) | **GET** /api/v2/clouds/{cloud_id} | Get Cloud
|
|
177
|
+
*DefaultApi* | [**get_cloud_deployment_api_v2_clouds_cloud_id_deployment_get**](docs/DefaultApi.md#get_cloud_deployment_api_v2_clouds_cloud_id_deployment_get) | **GET** /api/v2/clouds/{cloud_id}/deployment | Get Cloud Deployment
|
|
177
178
|
*DefaultApi* | [**get_cloud_deployment_config_api_v2_clouds_cloud_id_deployment_cloud_deployment_id_config_get**](docs/DefaultApi.md#get_cloud_deployment_config_api_v2_clouds_cloud_id_deployment_cloud_deployment_id_config_get) | **GET** /api/v2/clouds/{cloud_id}/deployment/{cloud_deployment_id}/config | Get Cloud Deployment Config
|
|
178
179
|
*DefaultApi* | [**get_cloud_deployments_api_v2_clouds_cloud_id_deployments_get**](docs/DefaultApi.md#get_cloud_deployments_api_v2_clouds_cloud_id_deployments_get) | **GET** /api/v2/clouds/{cloud_id}/deployments | Get Cloud Deployments
|
|
179
180
|
*DefaultApi* | [**get_cloud_overview_dashboard_api_v2_clouds_cloud_id_cloud_overview_dashboard_get**](docs/DefaultApi.md#get_cloud_overview_dashboard_api_v2_clouds_cloud_id_cloud_overview_dashboard_get) | **GET** /api/v2/clouds/{cloud_id}/cloud-overview-dashboard | Get Cloud Overview Dashboard
|
|
@@ -315,6 +316,7 @@ Class | Method | HTTP request | Description
|
|
|
315
316
|
*DefaultApi* | [**register_machine_api_v2_anyscaled_register_machine_post**](docs/DefaultApi.md#register_machine_api_v2_anyscaled_register_machine_post) | **POST** /api/v2/anyscaled/register_machine | Register Machine
|
|
316
317
|
*DefaultApi* | [**register_user_api_v2_users_post**](docs/DefaultApi.md#register_user_api_v2_users_post) | **POST** /api/v2/users/ | Register User
|
|
317
318
|
*DefaultApi* | [**register_v2_api_v2_anyscaled_register_v2_post**](docs/DefaultApi.md#register_v2_api_v2_anyscaled_register_v2_post) | **POST** /api/v2/anyscaled/register_v2 | Register V2
|
|
319
|
+
*DefaultApi* | [**remove_cloud_deployment_api_v2_clouds_cloud_id_remove_deployment_delete**](docs/DefaultApi.md#remove_cloud_deployment_api_v2_clouds_cloud_id_remove_deployment_delete) | **DELETE** /api/v2/clouds/{cloud_id}/remove_deployment | Remove Cloud Deployment
|
|
318
320
|
*DefaultApi* | [**remove_organization_collaborator_api_v2_organization_collaborators_identity_id_delete**](docs/DefaultApi.md#remove_organization_collaborator_api_v2_organization_collaborators_identity_id_delete) | **DELETE** /api/v2/organization_collaborators/{identity_id} | Remove Organization Collaborator
|
|
319
321
|
*DefaultApi* | [**request_email_magic_link_api_v2_users_email_magic_link_post**](docs/DefaultApi.md#request_email_magic_link_api_v2_users_email_magic_link_post) | **POST** /api/v2/users/email_magic_link | Request Email Magic Link
|
|
320
322
|
*DefaultApi* | [**request_password_reset_api_v2_users_request_password_reset_post**](docs/DefaultApi.md#request_password_reset_api_v2_users_request_password_reset_post) | **POST** /api/v2/users/request_password_reset | Request Password Reset
|
|
@@ -480,6 +482,7 @@ Class | Method | HTTP request | Description
|
|
|
480
482
|
- [ClouddatabucketpresigneduploadinfoResponse](docs/ClouddatabucketpresigneduploadinfoResponse.md)
|
|
481
483
|
- [ClouddatabucketpresignedurlresponseResponse](docs/ClouddatabucketpresignedurlresponseResponse.md)
|
|
482
484
|
- [ClouddeploymentListResponse](docs/ClouddeploymentListResponse.md)
|
|
485
|
+
- [ClouddeploymentResponse](docs/ClouddeploymentResponse.md)
|
|
483
486
|
- [ClouddeploymentconfigResponse](docs/ClouddeploymentconfigResponse.md)
|
|
484
487
|
- [CloudoverviewdashboardResponse](docs/CloudoverviewdashboardResponse.md)
|
|
485
488
|
- [CloudregionandzonesResponse](docs/CloudregionandzonesResponse.md)
|
|
@@ -502,6 +505,7 @@ Class | Method | HTTP request | Description
|
|
|
502
505
|
- [ClustereventListResponse](docs/ClustereventListResponse.md)
|
|
503
506
|
- [ClustereventsoutputResponse](docs/ClustereventsoutputResponse.md)
|
|
504
507
|
- [ClusteroperationResponse](docs/ClusteroperationResponse.md)
|
|
508
|
+
- [CollaboratorType](docs/CollaboratorType.md)
|
|
505
509
|
- [CommitLedgerItemType](docs/CommitLedgerItemType.md)
|
|
506
510
|
- [CommitLedgerRecordV2](docs/CommitLedgerRecordV2.md)
|
|
507
511
|
- [ComplexityLevel](docs/ComplexityLevel.md)
|
|
@@ -130,6 +130,7 @@ from openapi_client.models.cloudcollaborator_list_response import Cloudcollabora
|
|
|
130
130
|
from openapi_client.models.clouddatabucketpresigneduploadinfo_response import ClouddatabucketpresigneduploadinfoResponse
|
|
131
131
|
from openapi_client.models.clouddatabucketpresignedurlresponse_response import ClouddatabucketpresignedurlresponseResponse
|
|
132
132
|
from openapi_client.models.clouddeployment_list_response import ClouddeploymentListResponse
|
|
133
|
+
from openapi_client.models.clouddeployment_response import ClouddeploymentResponse
|
|
133
134
|
from openapi_client.models.clouddeploymentconfig_response import ClouddeploymentconfigResponse
|
|
134
135
|
from openapi_client.models.cloudoverviewdashboard_response import CloudoverviewdashboardResponse
|
|
135
136
|
from openapi_client.models.cloudregionandzones_response import CloudregionandzonesResponse
|
|
@@ -152,6 +153,7 @@ from openapi_client.models.clusterauthresponse_response import Clusterauthrespon
|
|
|
152
153
|
from openapi_client.models.clusterevent_list_response import ClustereventListResponse
|
|
153
154
|
from openapi_client.models.clustereventsoutput_response import ClustereventsoutputResponse
|
|
154
155
|
from openapi_client.models.clusteroperation_response import ClusteroperationResponse
|
|
156
|
+
from openapi_client.models.collaborator_type import CollaboratorType
|
|
155
157
|
from openapi_client.models.commit_ledger_item_type import CommitLedgerItemType
|
|
156
158
|
from openapi_client.models.commit_ledger_record_v2 import CommitLedgerRecordV2
|
|
157
159
|
from openapi_client.models.complexity_level import ComplexityLevel
|
|
@@ -11730,6 +11730,127 @@ class DefaultApi(object):
|
|
|
11730
11730
|
_request_timeout=local_var_params.get('_request_timeout'),
|
|
11731
11731
|
collection_formats=collection_formats)
|
|
11732
11732
|
|
|
11733
|
+
def get_cloud_deployment_api_v2_clouds_cloud_id_deployment_get(self, cloud_id, cloud_deployment_id, **kwargs): # noqa: E501
|
|
11734
|
+
"""Get Cloud Deployment # noqa: E501
|
|
11735
|
+
|
|
11736
|
+
This method makes a synchronous HTTP request by default. To make an
|
|
11737
|
+
asynchronous HTTP request, please pass async_req=True
|
|
11738
|
+
>>> thread = api.get_cloud_deployment_api_v2_clouds_cloud_id_deployment_get(cloud_id, cloud_deployment_id, async_req=True)
|
|
11739
|
+
>>> result = thread.get()
|
|
11740
|
+
|
|
11741
|
+
:param async_req bool: execute request asynchronously
|
|
11742
|
+
:param str cloud_id: (required)
|
|
11743
|
+
:param str cloud_deployment_id: (required)
|
|
11744
|
+
:param _preload_content: if False, the urllib3.HTTPResponse object will
|
|
11745
|
+
be returned without reading/decoding response
|
|
11746
|
+
data. Default is True.
|
|
11747
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
11748
|
+
number provided, it will be total request
|
|
11749
|
+
timeout. It can also be a pair (tuple) of
|
|
11750
|
+
(connection, read) timeouts.
|
|
11751
|
+
:return: ClouddeploymentResponse
|
|
11752
|
+
If the method is called asynchronously,
|
|
11753
|
+
returns the request thread.
|
|
11754
|
+
"""
|
|
11755
|
+
kwargs['_return_http_data_only'] = True
|
|
11756
|
+
return self.get_cloud_deployment_api_v2_clouds_cloud_id_deployment_get_with_http_info(cloud_id, cloud_deployment_id, **kwargs) # noqa: E501
|
|
11757
|
+
|
|
11758
|
+
def get_cloud_deployment_api_v2_clouds_cloud_id_deployment_get_with_http_info(self, cloud_id, cloud_deployment_id, **kwargs): # noqa: E501
|
|
11759
|
+
"""Get Cloud Deployment # noqa: E501
|
|
11760
|
+
|
|
11761
|
+
This method makes a synchronous HTTP request by default. To make an
|
|
11762
|
+
asynchronous HTTP request, please pass async_req=True
|
|
11763
|
+
>>> thread = api.get_cloud_deployment_api_v2_clouds_cloud_id_deployment_get_with_http_info(cloud_id, cloud_deployment_id, async_req=True)
|
|
11764
|
+
>>> result = thread.get()
|
|
11765
|
+
|
|
11766
|
+
:param async_req bool: execute request asynchronously
|
|
11767
|
+
:param str cloud_id: (required)
|
|
11768
|
+
:param str cloud_deployment_id: (required)
|
|
11769
|
+
:param _return_http_data_only: response data without head status code
|
|
11770
|
+
and headers
|
|
11771
|
+
:param _preload_content: if False, the urllib3.HTTPResponse object will
|
|
11772
|
+
be returned without reading/decoding response
|
|
11773
|
+
data. Default is True.
|
|
11774
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
11775
|
+
number provided, it will be total request
|
|
11776
|
+
timeout. It can also be a pair (tuple) of
|
|
11777
|
+
(connection, read) timeouts.
|
|
11778
|
+
:return: tuple(ClouddeploymentResponse, status_code(int), headers(HTTPHeaderDict))
|
|
11779
|
+
If the method is called asynchronously,
|
|
11780
|
+
returns the request thread.
|
|
11781
|
+
"""
|
|
11782
|
+
|
|
11783
|
+
local_var_params = locals()
|
|
11784
|
+
|
|
11785
|
+
all_params = [
|
|
11786
|
+
'cloud_id',
|
|
11787
|
+
'cloud_deployment_id'
|
|
11788
|
+
]
|
|
11789
|
+
all_params.extend(
|
|
11790
|
+
[
|
|
11791
|
+
'async_req',
|
|
11792
|
+
'_return_http_data_only',
|
|
11793
|
+
'_preload_content',
|
|
11794
|
+
'_request_timeout'
|
|
11795
|
+
]
|
|
11796
|
+
)
|
|
11797
|
+
|
|
11798
|
+
for key, val in six.iteritems(local_var_params['kwargs']):
|
|
11799
|
+
if key not in all_params:
|
|
11800
|
+
raise ApiTypeError(
|
|
11801
|
+
"Got an unexpected keyword argument '%s'"
|
|
11802
|
+
" to method get_cloud_deployment_api_v2_clouds_cloud_id_deployment_get" % key
|
|
11803
|
+
)
|
|
11804
|
+
local_var_params[key] = val
|
|
11805
|
+
del local_var_params['kwargs']
|
|
11806
|
+
# verify the required parameter 'cloud_id' is set
|
|
11807
|
+
if self.api_client.client_side_validation and ('cloud_id' not in local_var_params or # noqa: E501
|
|
11808
|
+
local_var_params['cloud_id'] is None): # noqa: E501
|
|
11809
|
+
raise ApiValueError("Missing the required parameter `cloud_id` when calling `get_cloud_deployment_api_v2_clouds_cloud_id_deployment_get`") # noqa: E501
|
|
11810
|
+
# verify the required parameter 'cloud_deployment_id' is set
|
|
11811
|
+
if self.api_client.client_side_validation and ('cloud_deployment_id' not in local_var_params or # noqa: E501
|
|
11812
|
+
local_var_params['cloud_deployment_id'] is None): # noqa: E501
|
|
11813
|
+
raise ApiValueError("Missing the required parameter `cloud_deployment_id` when calling `get_cloud_deployment_api_v2_clouds_cloud_id_deployment_get`") # noqa: E501
|
|
11814
|
+
|
|
11815
|
+
collection_formats = {}
|
|
11816
|
+
|
|
11817
|
+
path_params = {}
|
|
11818
|
+
if 'cloud_id' in local_var_params:
|
|
11819
|
+
path_params['cloud_id'] = local_var_params['cloud_id'] # noqa: E501
|
|
11820
|
+
|
|
11821
|
+
query_params = []
|
|
11822
|
+
if 'cloud_deployment_id' in local_var_params and local_var_params['cloud_deployment_id'] is not None: # noqa: E501
|
|
11823
|
+
query_params.append(('cloud_deployment_id', local_var_params['cloud_deployment_id'])) # noqa: E501
|
|
11824
|
+
|
|
11825
|
+
header_params = {}
|
|
11826
|
+
|
|
11827
|
+
form_params = []
|
|
11828
|
+
local_var_files = {}
|
|
11829
|
+
|
|
11830
|
+
body_params = None
|
|
11831
|
+
# HTTP header `Accept`
|
|
11832
|
+
header_params['Accept'] = self.api_client.select_header_accept(
|
|
11833
|
+
['application/json']) # noqa: E501
|
|
11834
|
+
|
|
11835
|
+
# Authentication setting
|
|
11836
|
+
auth_settings = [] # noqa: E501
|
|
11837
|
+
|
|
11838
|
+
return self.api_client.call_api(
|
|
11839
|
+
'/api/v2/clouds/{cloud_id}/deployment', 'GET',
|
|
11840
|
+
path_params,
|
|
11841
|
+
query_params,
|
|
11842
|
+
header_params,
|
|
11843
|
+
body=body_params,
|
|
11844
|
+
post_params=form_params,
|
|
11845
|
+
files=local_var_files,
|
|
11846
|
+
response_type='ClouddeploymentResponse', # noqa: E501
|
|
11847
|
+
auth_settings=auth_settings,
|
|
11848
|
+
async_req=local_var_params.get('async_req'),
|
|
11849
|
+
_return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501
|
|
11850
|
+
_preload_content=local_var_params.get('_preload_content', True),
|
|
11851
|
+
_request_timeout=local_var_params.get('_request_timeout'),
|
|
11852
|
+
collection_formats=collection_formats)
|
|
11853
|
+
|
|
11733
11854
|
def get_cloud_deployment_config_api_v2_clouds_cloud_id_deployment_cloud_deployment_id_config_get(self, cloud_id, cloud_deployment_id, **kwargs): # noqa: E501
|
|
11734
11855
|
"""Get Cloud Deployment Config # noqa: E501
|
|
11735
11856
|
|
|
@@ -25216,6 +25337,7 @@ class DefaultApi(object):
|
|
|
25216
25337
|
:param async_req bool: execute request asynchronously
|
|
25217
25338
|
:param str email:
|
|
25218
25339
|
:param str name:
|
|
25340
|
+
:param CollaboratorType collaborator_type:
|
|
25219
25341
|
:param bool is_service_account:
|
|
25220
25342
|
:param str paging_token:
|
|
25221
25343
|
:param int count:
|
|
@@ -25245,6 +25367,7 @@ class DefaultApi(object):
|
|
|
25245
25367
|
:param async_req bool: execute request asynchronously
|
|
25246
25368
|
:param str email:
|
|
25247
25369
|
:param str name:
|
|
25370
|
+
:param CollaboratorType collaborator_type:
|
|
25248
25371
|
:param bool is_service_account:
|
|
25249
25372
|
:param str paging_token:
|
|
25250
25373
|
:param int count:
|
|
@@ -25267,6 +25390,7 @@ class DefaultApi(object):
|
|
|
25267
25390
|
all_params = [
|
|
25268
25391
|
'email',
|
|
25269
25392
|
'name',
|
|
25393
|
+
'collaborator_type',
|
|
25270
25394
|
'is_service_account',
|
|
25271
25395
|
'paging_token',
|
|
25272
25396
|
'count'
|
|
@@ -25302,6 +25426,8 @@ class DefaultApi(object):
|
|
|
25302
25426
|
query_params.append(('email', local_var_params['email'])) # noqa: E501
|
|
25303
25427
|
if 'name' in local_var_params and local_var_params['name'] is not None: # noqa: E501
|
|
25304
25428
|
query_params.append(('name', local_var_params['name'])) # noqa: E501
|
|
25429
|
+
if 'collaborator_type' in local_var_params and local_var_params['collaborator_type'] is not None: # noqa: E501
|
|
25430
|
+
query_params.append(('collaborator_type', local_var_params['collaborator_type'])) # noqa: E501
|
|
25305
25431
|
if 'is_service_account' in local_var_params and local_var_params['is_service_account'] is not None: # noqa: E501
|
|
25306
25432
|
query_params.append(('is_service_account', local_var_params['is_service_account'])) # noqa: E501
|
|
25307
25433
|
if 'paging_token' in local_var_params and local_var_params['paging_token'] is not None: # noqa: E501
|
|
@@ -29035,6 +29161,127 @@ class DefaultApi(object):
|
|
|
29035
29161
|
_request_timeout=local_var_params.get('_request_timeout'),
|
|
29036
29162
|
collection_formats=collection_formats)
|
|
29037
29163
|
|
|
29164
|
+
def remove_cloud_deployment_api_v2_clouds_cloud_id_remove_deployment_delete(self, cloud_id, cloud_deployment_name, **kwargs): # noqa: E501
|
|
29165
|
+
"""Remove Cloud Deployment # noqa: E501
|
|
29166
|
+
|
|
29167
|
+
This method makes a synchronous HTTP request by default. To make an
|
|
29168
|
+
asynchronous HTTP request, please pass async_req=True
|
|
29169
|
+
>>> thread = api.remove_cloud_deployment_api_v2_clouds_cloud_id_remove_deployment_delete(cloud_id, cloud_deployment_name, async_req=True)
|
|
29170
|
+
>>> result = thread.get()
|
|
29171
|
+
|
|
29172
|
+
:param async_req bool: execute request asynchronously
|
|
29173
|
+
:param str cloud_id: (required)
|
|
29174
|
+
:param str cloud_deployment_name: (required)
|
|
29175
|
+
:param _preload_content: if False, the urllib3.HTTPResponse object will
|
|
29176
|
+
be returned without reading/decoding response
|
|
29177
|
+
data. Default is True.
|
|
29178
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
29179
|
+
number provided, it will be total request
|
|
29180
|
+
timeout. It can also be a pair (tuple) of
|
|
29181
|
+
(connection, read) timeouts.
|
|
29182
|
+
:return: None
|
|
29183
|
+
If the method is called asynchronously,
|
|
29184
|
+
returns the request thread.
|
|
29185
|
+
"""
|
|
29186
|
+
kwargs['_return_http_data_only'] = True
|
|
29187
|
+
return self.remove_cloud_deployment_api_v2_clouds_cloud_id_remove_deployment_delete_with_http_info(cloud_id, cloud_deployment_name, **kwargs) # noqa: E501
|
|
29188
|
+
|
|
29189
|
+
def remove_cloud_deployment_api_v2_clouds_cloud_id_remove_deployment_delete_with_http_info(self, cloud_id, cloud_deployment_name, **kwargs): # noqa: E501
|
|
29190
|
+
"""Remove Cloud Deployment # noqa: E501
|
|
29191
|
+
|
|
29192
|
+
This method makes a synchronous HTTP request by default. To make an
|
|
29193
|
+
asynchronous HTTP request, please pass async_req=True
|
|
29194
|
+
>>> thread = api.remove_cloud_deployment_api_v2_clouds_cloud_id_remove_deployment_delete_with_http_info(cloud_id, cloud_deployment_name, async_req=True)
|
|
29195
|
+
>>> result = thread.get()
|
|
29196
|
+
|
|
29197
|
+
:param async_req bool: execute request asynchronously
|
|
29198
|
+
:param str cloud_id: (required)
|
|
29199
|
+
:param str cloud_deployment_name: (required)
|
|
29200
|
+
:param _return_http_data_only: response data without head status code
|
|
29201
|
+
and headers
|
|
29202
|
+
:param _preload_content: if False, the urllib3.HTTPResponse object will
|
|
29203
|
+
be returned without reading/decoding response
|
|
29204
|
+
data. Default is True.
|
|
29205
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
29206
|
+
number provided, it will be total request
|
|
29207
|
+
timeout. It can also be a pair (tuple) of
|
|
29208
|
+
(connection, read) timeouts.
|
|
29209
|
+
:return: None
|
|
29210
|
+
If the method is called asynchronously,
|
|
29211
|
+
returns the request thread.
|
|
29212
|
+
"""
|
|
29213
|
+
|
|
29214
|
+
local_var_params = locals()
|
|
29215
|
+
|
|
29216
|
+
all_params = [
|
|
29217
|
+
'cloud_id',
|
|
29218
|
+
'cloud_deployment_name'
|
|
29219
|
+
]
|
|
29220
|
+
all_params.extend(
|
|
29221
|
+
[
|
|
29222
|
+
'async_req',
|
|
29223
|
+
'_return_http_data_only',
|
|
29224
|
+
'_preload_content',
|
|
29225
|
+
'_request_timeout'
|
|
29226
|
+
]
|
|
29227
|
+
)
|
|
29228
|
+
|
|
29229
|
+
for key, val in six.iteritems(local_var_params['kwargs']):
|
|
29230
|
+
if key not in all_params:
|
|
29231
|
+
raise ApiTypeError(
|
|
29232
|
+
"Got an unexpected keyword argument '%s'"
|
|
29233
|
+
" to method remove_cloud_deployment_api_v2_clouds_cloud_id_remove_deployment_delete" % key
|
|
29234
|
+
)
|
|
29235
|
+
local_var_params[key] = val
|
|
29236
|
+
del local_var_params['kwargs']
|
|
29237
|
+
# verify the required parameter 'cloud_id' is set
|
|
29238
|
+
if self.api_client.client_side_validation and ('cloud_id' not in local_var_params or # noqa: E501
|
|
29239
|
+
local_var_params['cloud_id'] is None): # noqa: E501
|
|
29240
|
+
raise ApiValueError("Missing the required parameter `cloud_id` when calling `remove_cloud_deployment_api_v2_clouds_cloud_id_remove_deployment_delete`") # noqa: E501
|
|
29241
|
+
# verify the required parameter 'cloud_deployment_name' is set
|
|
29242
|
+
if self.api_client.client_side_validation and ('cloud_deployment_name' not in local_var_params or # noqa: E501
|
|
29243
|
+
local_var_params['cloud_deployment_name'] is None): # noqa: E501
|
|
29244
|
+
raise ApiValueError("Missing the required parameter `cloud_deployment_name` when calling `remove_cloud_deployment_api_v2_clouds_cloud_id_remove_deployment_delete`") # noqa: E501
|
|
29245
|
+
|
|
29246
|
+
collection_formats = {}
|
|
29247
|
+
|
|
29248
|
+
path_params = {}
|
|
29249
|
+
if 'cloud_id' in local_var_params:
|
|
29250
|
+
path_params['cloud_id'] = local_var_params['cloud_id'] # noqa: E501
|
|
29251
|
+
|
|
29252
|
+
query_params = []
|
|
29253
|
+
if 'cloud_deployment_name' in local_var_params and local_var_params['cloud_deployment_name'] is not None: # noqa: E501
|
|
29254
|
+
query_params.append(('cloud_deployment_name', local_var_params['cloud_deployment_name'])) # noqa: E501
|
|
29255
|
+
|
|
29256
|
+
header_params = {}
|
|
29257
|
+
|
|
29258
|
+
form_params = []
|
|
29259
|
+
local_var_files = {}
|
|
29260
|
+
|
|
29261
|
+
body_params = None
|
|
29262
|
+
# HTTP header `Accept`
|
|
29263
|
+
header_params['Accept'] = self.api_client.select_header_accept(
|
|
29264
|
+
['application/json']) # noqa: E501
|
|
29265
|
+
|
|
29266
|
+
# Authentication setting
|
|
29267
|
+
auth_settings = [] # noqa: E501
|
|
29268
|
+
|
|
29269
|
+
return self.api_client.call_api(
|
|
29270
|
+
'/api/v2/clouds/{cloud_id}/remove_deployment', 'DELETE',
|
|
29271
|
+
path_params,
|
|
29272
|
+
query_params,
|
|
29273
|
+
header_params,
|
|
29274
|
+
body=body_params,
|
|
29275
|
+
post_params=form_params,
|
|
29276
|
+
files=local_var_files,
|
|
29277
|
+
response_type=None, # noqa: E501
|
|
29278
|
+
auth_settings=auth_settings,
|
|
29279
|
+
async_req=local_var_params.get('async_req'),
|
|
29280
|
+
_return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501
|
|
29281
|
+
_preload_content=local_var_params.get('_preload_content', True),
|
|
29282
|
+
_request_timeout=local_var_params.get('_request_timeout'),
|
|
29283
|
+
collection_formats=collection_formats)
|
|
29284
|
+
|
|
29038
29285
|
def remove_organization_collaborator_api_v2_organization_collaborators_identity_id_delete(self, identity_id, **kwargs): # noqa: E501
|
|
29039
29286
|
"""Remove Organization Collaborator # noqa: E501
|
|
29040
29287
|
|
|
@@ -116,6 +116,7 @@ from openapi_client.models.cloudcollaborator_list_response import Cloudcollabora
|
|
|
116
116
|
from openapi_client.models.clouddatabucketpresigneduploadinfo_response import ClouddatabucketpresigneduploadinfoResponse
|
|
117
117
|
from openapi_client.models.clouddatabucketpresignedurlresponse_response import ClouddatabucketpresignedurlresponseResponse
|
|
118
118
|
from openapi_client.models.clouddeployment_list_response import ClouddeploymentListResponse
|
|
119
|
+
from openapi_client.models.clouddeployment_response import ClouddeploymentResponse
|
|
119
120
|
from openapi_client.models.clouddeploymentconfig_response import ClouddeploymentconfigResponse
|
|
120
121
|
from openapi_client.models.cloudoverviewdashboard_response import CloudoverviewdashboardResponse
|
|
121
122
|
from openapi_client.models.cloudregionandzones_response import CloudregionandzonesResponse
|
|
@@ -138,6 +139,7 @@ from openapi_client.models.clusterauthresponse_response import Clusterauthrespon
|
|
|
138
139
|
from openapi_client.models.clusterevent_list_response import ClustereventListResponse
|
|
139
140
|
from openapi_client.models.clustereventsoutput_response import ClustereventsoutputResponse
|
|
140
141
|
from openapi_client.models.clusteroperation_response import ClusteroperationResponse
|
|
142
|
+
from openapi_client.models.collaborator_type import CollaboratorType
|
|
141
143
|
from openapi_client.models.commit_ledger_item_type import CommitLedgerItemType
|
|
142
144
|
from openapi_client.models.commit_ledger_record_v2 import CommitLedgerRecordV2
|
|
143
145
|
from openapi_client.models.complexity_level import ComplexityLevel
|
|
@@ -0,0 +1,121 @@
|
|
|
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 ClouddeploymentResponse(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
|
+
'result': 'CloudDeployment'
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
attribute_map = {
|
|
40
|
+
'result': 'result'
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
def __init__(self, result=None, local_vars_configuration=None): # noqa: E501
|
|
44
|
+
"""ClouddeploymentResponse - 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._result = None
|
|
50
|
+
self.discriminator = None
|
|
51
|
+
|
|
52
|
+
self.result = result
|
|
53
|
+
|
|
54
|
+
@property
|
|
55
|
+
def result(self):
|
|
56
|
+
"""Gets the result of this ClouddeploymentResponse. # noqa: E501
|
|
57
|
+
|
|
58
|
+
|
|
59
|
+
:return: The result of this ClouddeploymentResponse. # noqa: E501
|
|
60
|
+
:rtype: CloudDeployment
|
|
61
|
+
"""
|
|
62
|
+
return self._result
|
|
63
|
+
|
|
64
|
+
@result.setter
|
|
65
|
+
def result(self, result):
|
|
66
|
+
"""Sets the result of this ClouddeploymentResponse.
|
|
67
|
+
|
|
68
|
+
|
|
69
|
+
:param result: The result of this ClouddeploymentResponse. # noqa: E501
|
|
70
|
+
:type: CloudDeployment
|
|
71
|
+
"""
|
|
72
|
+
if self.local_vars_configuration.client_side_validation and result is None: # noqa: E501
|
|
73
|
+
raise ValueError("Invalid value for `result`, must not be `None`") # noqa: E501
|
|
74
|
+
|
|
75
|
+
self._result = result
|
|
76
|
+
|
|
77
|
+
def to_dict(self):
|
|
78
|
+
"""Returns the model properties as a dict"""
|
|
79
|
+
result = {}
|
|
80
|
+
|
|
81
|
+
for attr, _ in six.iteritems(self.openapi_types):
|
|
82
|
+
value = getattr(self, attr)
|
|
83
|
+
if isinstance(value, list):
|
|
84
|
+
result[attr] = list(map(
|
|
85
|
+
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
|
86
|
+
value
|
|
87
|
+
))
|
|
88
|
+
elif hasattr(value, "to_dict"):
|
|
89
|
+
result[attr] = value.to_dict()
|
|
90
|
+
elif isinstance(value, dict):
|
|
91
|
+
result[attr] = dict(map(
|
|
92
|
+
lambda item: (item[0], item[1].to_dict())
|
|
93
|
+
if hasattr(item[1], "to_dict") else item,
|
|
94
|
+
value.items()
|
|
95
|
+
))
|
|
96
|
+
else:
|
|
97
|
+
result[attr] = value
|
|
98
|
+
|
|
99
|
+
return result
|
|
100
|
+
|
|
101
|
+
def to_str(self):
|
|
102
|
+
"""Returns the string representation of the model"""
|
|
103
|
+
return pprint.pformat(self.to_dict())
|
|
104
|
+
|
|
105
|
+
def __repr__(self):
|
|
106
|
+
"""For `print` and `pprint`"""
|
|
107
|
+
return self.to_str()
|
|
108
|
+
|
|
109
|
+
def __eq__(self, other):
|
|
110
|
+
"""Returns true if both objects are equal"""
|
|
111
|
+
if not isinstance(other, ClouddeploymentResponse):
|
|
112
|
+
return False
|
|
113
|
+
|
|
114
|
+
return self.to_dict() == other.to_dict()
|
|
115
|
+
|
|
116
|
+
def __ne__(self, other):
|
|
117
|
+
"""Returns true if both objects are not equal"""
|
|
118
|
+
if not isinstance(other, ClouddeploymentResponse):
|
|
119
|
+
return True
|
|
120
|
+
|
|
121
|
+
return self.to_dict() != other.to_dict()
|
|
@@ -0,0 +1,101 @@
|
|
|
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 CollaboratorType(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
|
+
allowed enum values
|
|
30
|
+
"""
|
|
31
|
+
ALL_ACCOUNTS = "all_accounts"
|
|
32
|
+
ONLY_SERVICE_ACCOUNTS = "only_service_accounts"
|
|
33
|
+
ONLY_USER_ACCOUNTS = "only_user_accounts"
|
|
34
|
+
|
|
35
|
+
allowable_values = [ALL_ACCOUNTS, ONLY_SERVICE_ACCOUNTS, ONLY_USER_ACCOUNTS] # noqa: E501
|
|
36
|
+
|
|
37
|
+
"""
|
|
38
|
+
Attributes:
|
|
39
|
+
openapi_types (dict): The key is attribute name
|
|
40
|
+
and the value is attribute type.
|
|
41
|
+
attribute_map (dict): The key is attribute name
|
|
42
|
+
and the value is json key in definition.
|
|
43
|
+
"""
|
|
44
|
+
openapi_types = {
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
attribute_map = {
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
def __init__(self, local_vars_configuration=None): # noqa: E501
|
|
51
|
+
"""CollaboratorType - a model defined in OpenAPI""" # noqa: E501
|
|
52
|
+
if local_vars_configuration is None:
|
|
53
|
+
local_vars_configuration = Configuration()
|
|
54
|
+
self.local_vars_configuration = local_vars_configuration
|
|
55
|
+
self.discriminator = None
|
|
56
|
+
|
|
57
|
+
def to_dict(self):
|
|
58
|
+
"""Returns the model properties as a dict"""
|
|
59
|
+
result = {}
|
|
60
|
+
|
|
61
|
+
for attr, _ in six.iteritems(self.openapi_types):
|
|
62
|
+
value = getattr(self, attr)
|
|
63
|
+
if isinstance(value, list):
|
|
64
|
+
result[attr] = list(map(
|
|
65
|
+
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
|
66
|
+
value
|
|
67
|
+
))
|
|
68
|
+
elif hasattr(value, "to_dict"):
|
|
69
|
+
result[attr] = value.to_dict()
|
|
70
|
+
elif isinstance(value, dict):
|
|
71
|
+
result[attr] = dict(map(
|
|
72
|
+
lambda item: (item[0], item[1].to_dict())
|
|
73
|
+
if hasattr(item[1], "to_dict") else item,
|
|
74
|
+
value.items()
|
|
75
|
+
))
|
|
76
|
+
else:
|
|
77
|
+
result[attr] = value
|
|
78
|
+
|
|
79
|
+
return result
|
|
80
|
+
|
|
81
|
+
def to_str(self):
|
|
82
|
+
"""Returns the string representation of the model"""
|
|
83
|
+
return pprint.pformat(self.to_dict())
|
|
84
|
+
|
|
85
|
+
def __repr__(self):
|
|
86
|
+
"""For `print` and `pprint`"""
|
|
87
|
+
return self.to_str()
|
|
88
|
+
|
|
89
|
+
def __eq__(self, other):
|
|
90
|
+
"""Returns true if both objects are equal"""
|
|
91
|
+
if not isinstance(other, CollaboratorType):
|
|
92
|
+
return False
|
|
93
|
+
|
|
94
|
+
return self.to_dict() == other.to_dict()
|
|
95
|
+
|
|
96
|
+
def __ne__(self, other):
|
|
97
|
+
"""Returns true if both objects are not equal"""
|
|
98
|
+
if not isinstance(other, CollaboratorType):
|
|
99
|
+
return True
|
|
100
|
+
|
|
101
|
+
return self.to_dict() != other.to_dict()
|