anyscale 0.26.27__py3-none-any.whl → 0.26.29__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 +0 -18
- anyscale/_private/docgen/api.md +0 -125
- anyscale/_private/docgen/models.md +1 -111
- anyscale/client/README.md +0 -6
- anyscale/client/openapi_client/__init__.py +0 -4
- anyscale/client/openapi_client/api/default_api.py +0 -228
- anyscale/client/openapi_client/models/__init__.py +0 -4
- anyscale/client/openapi_client/models/cloud.py +31 -3
- anyscale/client/openapi_client/models/cloud_with_cloud_resource.py +29 -1
- anyscale/client/openapi_client/models/cloud_with_cloud_resource_gcp.py +29 -1
- anyscale/client/openapi_client/models/dataset_metrics.py +2 -3
- anyscale/client/openapi_client/models/operator_metrics.py +2 -3
- anyscale/client/openapi_client/models/workload_info.py +59 -3
- anyscale/cloud/models.py +13 -0
- anyscale/commands/machine_pool_commands.py +11 -9
- anyscale/commands/service_commands.py +4 -2
- anyscale/controllers/cloud_controller.py +0 -1
- anyscale/formatters/clouds_formatter.py +8 -0
- anyscale/sdk/anyscale_client/__init__.py +0 -11
- anyscale/sdk/anyscale_client/api/default_api.py +140 -1433
- anyscale/sdk/anyscale_client/models/__init__.py +0 -11
- anyscale/sdk/anyscale_client/models/cloud.py +31 -3
- anyscale/service/__init__.py +4 -1
- anyscale/service/_private/service_sdk.py +5 -0
- anyscale/service/commands.py +4 -2
- anyscale/version.py +1 -1
- {anyscale-0.26.27.dist-info → anyscale-0.26.29.dist-info}/METADATA +1 -1
- {anyscale-0.26.27.dist-info → anyscale-0.26.29.dist-info}/RECORD +33 -48
- anyscale/client/openapi_client/models/serve_deployment_fast_api_docs_status.py +0 -123
- anyscale/client/openapi_client/models/servedeploymentfastapidocsstatus_response.py +0 -121
- anyscale/client/openapi_client/models/web_terminal.py +0 -121
- anyscale/client/openapi_client/models/webterminal_response.py +0 -121
- anyscale/sdk/anyscale_client/models/cluster_environment_build_log_response.py +0 -123
- anyscale/sdk/anyscale_client/models/clusterenvironmentbuildlogresponse_response.py +0 -121
- anyscale/sdk/anyscale_client/models/create_cloud.py +0 -518
- anyscale/sdk/anyscale_client/models/object_storage_config.py +0 -122
- anyscale/sdk/anyscale_client/models/object_storage_config_s3.py +0 -256
- anyscale/sdk/anyscale_client/models/objectstorageconfig_response.py +0 -121
- anyscale/sdk/anyscale_client/models/session_operation.py +0 -266
- anyscale/sdk/anyscale_client/models/session_operation_type.py +0 -101
- anyscale/sdk/anyscale_client/models/sessionoperation_response.py +0 -121
- anyscale/sdk/anyscale_client/models/update_cloud.py +0 -150
- anyscale/sdk/anyscale_client/models/update_project.py +0 -150
- {anyscale-0.26.27.dist-info → anyscale-0.26.29.dist-info}/LICENSE +0 -0
- {anyscale-0.26.27.dist-info → anyscale-0.26.29.dist-info}/NOTICE +0 -0
- {anyscale-0.26.27.dist-info → anyscale-0.26.29.dist-info}/WHEEL +0 -0
- {anyscale-0.26.27.dist-info → anyscale-0.26.29.dist-info}/entry_points.txt +0 -0
- {anyscale-0.26.27.dist-info → anyscale-0.26.29.dist-info}/top_level.txt +0 -0
@@ -6290,120 +6290,6 @@ class DefaultApi(object):
|
|
6290
6290
|
_request_timeout=local_var_params.get('_request_timeout'),
|
6291
6291
|
collection_formats=collection_formats)
|
6292
6292
|
|
6293
|
-
def create_web_terminal_api_v2_sessions_session_id_web_terminals_post(self, session_id, **kwargs): # noqa: E501
|
6294
|
-
"""Create Web Terminal # noqa: E501
|
6295
|
-
|
6296
|
-
DEPRECATED: This API is no deprecated and will not be supported in Anyscale 2.0 # noqa: E501
|
6297
|
-
This method makes a synchronous HTTP request by default. To make an
|
6298
|
-
asynchronous HTTP request, please pass async_req=True
|
6299
|
-
>>> thread = api.create_web_terminal_api_v2_sessions_session_id_web_terminals_post(session_id, async_req=True)
|
6300
|
-
>>> result = thread.get()
|
6301
|
-
|
6302
|
-
:param async_req bool: execute request asynchronously
|
6303
|
-
:param str session_id: (required)
|
6304
|
-
:param _preload_content: if False, the urllib3.HTTPResponse object will
|
6305
|
-
be returned without reading/decoding response
|
6306
|
-
data. Default is True.
|
6307
|
-
:param _request_timeout: timeout setting for this request. If one
|
6308
|
-
number provided, it will be total request
|
6309
|
-
timeout. It can also be a pair (tuple) of
|
6310
|
-
(connection, read) timeouts.
|
6311
|
-
:return: WebterminalResponse
|
6312
|
-
If the method is called asynchronously,
|
6313
|
-
returns the request thread.
|
6314
|
-
"""
|
6315
|
-
kwargs['_return_http_data_only'] = True
|
6316
|
-
return self.create_web_terminal_api_v2_sessions_session_id_web_terminals_post_with_http_info(session_id, **kwargs) # noqa: E501
|
6317
|
-
|
6318
|
-
def create_web_terminal_api_v2_sessions_session_id_web_terminals_post_with_http_info(self, session_id, **kwargs): # noqa: E501
|
6319
|
-
"""Create Web Terminal # noqa: E501
|
6320
|
-
|
6321
|
-
DEPRECATED: This API is no deprecated and will not be supported in Anyscale 2.0 # noqa: E501
|
6322
|
-
This method makes a synchronous HTTP request by default. To make an
|
6323
|
-
asynchronous HTTP request, please pass async_req=True
|
6324
|
-
>>> thread = api.create_web_terminal_api_v2_sessions_session_id_web_terminals_post_with_http_info(session_id, async_req=True)
|
6325
|
-
>>> result = thread.get()
|
6326
|
-
|
6327
|
-
:param async_req bool: execute request asynchronously
|
6328
|
-
:param str session_id: (required)
|
6329
|
-
:param _return_http_data_only: response data without head status code
|
6330
|
-
and headers
|
6331
|
-
:param _preload_content: if False, the urllib3.HTTPResponse object will
|
6332
|
-
be returned without reading/decoding response
|
6333
|
-
data. Default is True.
|
6334
|
-
:param _request_timeout: timeout setting for this request. If one
|
6335
|
-
number provided, it will be total request
|
6336
|
-
timeout. It can also be a pair (tuple) of
|
6337
|
-
(connection, read) timeouts.
|
6338
|
-
:return: tuple(WebterminalResponse, status_code(int), headers(HTTPHeaderDict))
|
6339
|
-
If the method is called asynchronously,
|
6340
|
-
returns the request thread.
|
6341
|
-
"""
|
6342
|
-
|
6343
|
-
local_var_params = locals()
|
6344
|
-
|
6345
|
-
all_params = [
|
6346
|
-
'session_id'
|
6347
|
-
]
|
6348
|
-
all_params.extend(
|
6349
|
-
[
|
6350
|
-
'async_req',
|
6351
|
-
'_return_http_data_only',
|
6352
|
-
'_preload_content',
|
6353
|
-
'_request_timeout'
|
6354
|
-
]
|
6355
|
-
)
|
6356
|
-
|
6357
|
-
for key, val in six.iteritems(local_var_params['kwargs']):
|
6358
|
-
if key not in all_params:
|
6359
|
-
raise ApiTypeError(
|
6360
|
-
"Got an unexpected keyword argument '%s'"
|
6361
|
-
" to method create_web_terminal_api_v2_sessions_session_id_web_terminals_post" % key
|
6362
|
-
)
|
6363
|
-
local_var_params[key] = val
|
6364
|
-
del local_var_params['kwargs']
|
6365
|
-
# verify the required parameter 'session_id' is set
|
6366
|
-
if self.api_client.client_side_validation and ('session_id' not in local_var_params or # noqa: E501
|
6367
|
-
local_var_params['session_id'] is None): # noqa: E501
|
6368
|
-
raise ApiValueError("Missing the required parameter `session_id` when calling `create_web_terminal_api_v2_sessions_session_id_web_terminals_post`") # noqa: E501
|
6369
|
-
|
6370
|
-
collection_formats = {}
|
6371
|
-
|
6372
|
-
path_params = {}
|
6373
|
-
if 'session_id' in local_var_params:
|
6374
|
-
path_params['session_id'] = local_var_params['session_id'] # noqa: E501
|
6375
|
-
|
6376
|
-
query_params = []
|
6377
|
-
|
6378
|
-
header_params = {}
|
6379
|
-
|
6380
|
-
form_params = []
|
6381
|
-
local_var_files = {}
|
6382
|
-
|
6383
|
-
body_params = None
|
6384
|
-
# HTTP header `Accept`
|
6385
|
-
header_params['Accept'] = self.api_client.select_header_accept(
|
6386
|
-
['application/json']) # noqa: E501
|
6387
|
-
|
6388
|
-
# Authentication setting
|
6389
|
-
auth_settings = [] # noqa: E501
|
6390
|
-
|
6391
|
-
return self.api_client.call_api(
|
6392
|
-
'/api/v2/sessions/{session_id}/web_terminals', 'POST',
|
6393
|
-
path_params,
|
6394
|
-
query_params,
|
6395
|
-
header_params,
|
6396
|
-
body=body_params,
|
6397
|
-
post_params=form_params,
|
6398
|
-
files=local_var_files,
|
6399
|
-
response_type='WebterminalResponse', # noqa: E501
|
6400
|
-
auth_settings=auth_settings,
|
6401
|
-
async_req=local_var_params.get('async_req'),
|
6402
|
-
_return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501
|
6403
|
-
_preload_content=local_var_params.get('_preload_content', True),
|
6404
|
-
_request_timeout=local_var_params.get('_request_timeout'),
|
6405
|
-
collection_formats=collection_formats)
|
6406
|
-
|
6407
6293
|
def create_workspace_api_v2_experimental_workspaces_post(self, create_experimental_workspace, **kwargs): # noqa: E501
|
6408
6294
|
"""Create Workspace # noqa: E501
|
6409
6295
|
|
@@ -13823,120 +13709,6 @@ class DefaultApi(object):
|
|
13823
13709
|
_request_timeout=local_var_params.get('_request_timeout'),
|
13824
13710
|
collection_formats=collection_formats)
|
13825
13711
|
|
13826
|
-
def get_decorated_serve_deployment_fast_api_docs_status_api_v2_decorated_serve_deployments_serve_deployment_id_fast_api_docs_status_get(self, serve_deployment_id, **kwargs): # noqa: E501
|
13827
|
-
"""Get Decorated Serve Deployment Fast Api Docs Status # noqa: E501
|
13828
|
-
|
13829
|
-
Check if the fast api docs url is healthy # noqa: E501
|
13830
|
-
This method makes a synchronous HTTP request by default. To make an
|
13831
|
-
asynchronous HTTP request, please pass async_req=True
|
13832
|
-
>>> thread = api.get_decorated_serve_deployment_fast_api_docs_status_api_v2_decorated_serve_deployments_serve_deployment_id_fast_api_docs_status_get(serve_deployment_id, async_req=True)
|
13833
|
-
>>> result = thread.get()
|
13834
|
-
|
13835
|
-
:param async_req bool: execute request asynchronously
|
13836
|
-
:param str serve_deployment_id: (required)
|
13837
|
-
:param _preload_content: if False, the urllib3.HTTPResponse object will
|
13838
|
-
be returned without reading/decoding response
|
13839
|
-
data. Default is True.
|
13840
|
-
:param _request_timeout: timeout setting for this request. If one
|
13841
|
-
number provided, it will be total request
|
13842
|
-
timeout. It can also be a pair (tuple) of
|
13843
|
-
(connection, read) timeouts.
|
13844
|
-
:return: ServedeploymentfastapidocsstatusResponse
|
13845
|
-
If the method is called asynchronously,
|
13846
|
-
returns the request thread.
|
13847
|
-
"""
|
13848
|
-
kwargs['_return_http_data_only'] = True
|
13849
|
-
return self.get_decorated_serve_deployment_fast_api_docs_status_api_v2_decorated_serve_deployments_serve_deployment_id_fast_api_docs_status_get_with_http_info(serve_deployment_id, **kwargs) # noqa: E501
|
13850
|
-
|
13851
|
-
def get_decorated_serve_deployment_fast_api_docs_status_api_v2_decorated_serve_deployments_serve_deployment_id_fast_api_docs_status_get_with_http_info(self, serve_deployment_id, **kwargs): # noqa: E501
|
13852
|
-
"""Get Decorated Serve Deployment Fast Api Docs Status # noqa: E501
|
13853
|
-
|
13854
|
-
Check if the fast api docs url is healthy # noqa: E501
|
13855
|
-
This method makes a synchronous HTTP request by default. To make an
|
13856
|
-
asynchronous HTTP request, please pass async_req=True
|
13857
|
-
>>> thread = api.get_decorated_serve_deployment_fast_api_docs_status_api_v2_decorated_serve_deployments_serve_deployment_id_fast_api_docs_status_get_with_http_info(serve_deployment_id, async_req=True)
|
13858
|
-
>>> result = thread.get()
|
13859
|
-
|
13860
|
-
:param async_req bool: execute request asynchronously
|
13861
|
-
:param str serve_deployment_id: (required)
|
13862
|
-
:param _return_http_data_only: response data without head status code
|
13863
|
-
and headers
|
13864
|
-
:param _preload_content: if False, the urllib3.HTTPResponse object will
|
13865
|
-
be returned without reading/decoding response
|
13866
|
-
data. Default is True.
|
13867
|
-
:param _request_timeout: timeout setting for this request. If one
|
13868
|
-
number provided, it will be total request
|
13869
|
-
timeout. It can also be a pair (tuple) of
|
13870
|
-
(connection, read) timeouts.
|
13871
|
-
:return: tuple(ServedeploymentfastapidocsstatusResponse, status_code(int), headers(HTTPHeaderDict))
|
13872
|
-
If the method is called asynchronously,
|
13873
|
-
returns the request thread.
|
13874
|
-
"""
|
13875
|
-
|
13876
|
-
local_var_params = locals()
|
13877
|
-
|
13878
|
-
all_params = [
|
13879
|
-
'serve_deployment_id'
|
13880
|
-
]
|
13881
|
-
all_params.extend(
|
13882
|
-
[
|
13883
|
-
'async_req',
|
13884
|
-
'_return_http_data_only',
|
13885
|
-
'_preload_content',
|
13886
|
-
'_request_timeout'
|
13887
|
-
]
|
13888
|
-
)
|
13889
|
-
|
13890
|
-
for key, val in six.iteritems(local_var_params['kwargs']):
|
13891
|
-
if key not in all_params:
|
13892
|
-
raise ApiTypeError(
|
13893
|
-
"Got an unexpected keyword argument '%s'"
|
13894
|
-
" to method get_decorated_serve_deployment_fast_api_docs_status_api_v2_decorated_serve_deployments_serve_deployment_id_fast_api_docs_status_get" % key
|
13895
|
-
)
|
13896
|
-
local_var_params[key] = val
|
13897
|
-
del local_var_params['kwargs']
|
13898
|
-
# verify the required parameter 'serve_deployment_id' is set
|
13899
|
-
if self.api_client.client_side_validation and ('serve_deployment_id' not in local_var_params or # noqa: E501
|
13900
|
-
local_var_params['serve_deployment_id'] is None): # noqa: E501
|
13901
|
-
raise ApiValueError("Missing the required parameter `serve_deployment_id` when calling `get_decorated_serve_deployment_fast_api_docs_status_api_v2_decorated_serve_deployments_serve_deployment_id_fast_api_docs_status_get`") # noqa: E501
|
13902
|
-
|
13903
|
-
collection_formats = {}
|
13904
|
-
|
13905
|
-
path_params = {}
|
13906
|
-
if 'serve_deployment_id' in local_var_params:
|
13907
|
-
path_params['serve_deployment_id'] = local_var_params['serve_deployment_id'] # noqa: E501
|
13908
|
-
|
13909
|
-
query_params = []
|
13910
|
-
|
13911
|
-
header_params = {}
|
13912
|
-
|
13913
|
-
form_params = []
|
13914
|
-
local_var_files = {}
|
13915
|
-
|
13916
|
-
body_params = None
|
13917
|
-
# HTTP header `Accept`
|
13918
|
-
header_params['Accept'] = self.api_client.select_header_accept(
|
13919
|
-
['application/json']) # noqa: E501
|
13920
|
-
|
13921
|
-
# Authentication setting
|
13922
|
-
auth_settings = [] # noqa: E501
|
13923
|
-
|
13924
|
-
return self.api_client.call_api(
|
13925
|
-
'/api/v2/decorated_serve_deployments/{serve_deployment_id}/fast_api_docs_status', 'GET',
|
13926
|
-
path_params,
|
13927
|
-
query_params,
|
13928
|
-
header_params,
|
13929
|
-
body=body_params,
|
13930
|
-
post_params=form_params,
|
13931
|
-
files=local_var_files,
|
13932
|
-
response_type='ServedeploymentfastapidocsstatusResponse', # noqa: E501
|
13933
|
-
auth_settings=auth_settings,
|
13934
|
-
async_req=local_var_params.get('async_req'),
|
13935
|
-
_return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501
|
13936
|
-
_preload_content=local_var_params.get('_preload_content', True),
|
13937
|
-
_request_timeout=local_var_params.get('_request_timeout'),
|
13938
|
-
collection_formats=collection_formats)
|
13939
|
-
|
13940
13712
|
def get_decorated_support_request_for_user_organization_api_v2_support_requests_get(self, **kwargs): # noqa: E501
|
13941
13713
|
"""Get Decorated Support Request For User Organization # noqa: E501
|
13942
13714
|
|
@@ -463,10 +463,8 @@ from openapi_client.models.sso_mode import SSOMode
|
|
463
463
|
from openapi_client.models.supportedbaseimagesenum import SUPPORTEDBASEIMAGESENUM
|
464
464
|
from openapi_client.models.schedule_config import ScheduleConfig
|
465
465
|
from openapi_client.models.scheduler_info import SchedulerInfo
|
466
|
-
from openapi_client.models.serve_deployment_fast_api_docs_status import ServeDeploymentFastApiDocsStatus
|
467
466
|
from openapi_client.models.serve_deployment_grafana_dashboard_status import ServeDeploymentGrafanaDashboardStatus
|
468
467
|
from openapi_client.models.serve_deployment_state import ServeDeploymentState
|
469
|
-
from openapi_client.models.servedeploymentfastapidocsstatus_response import ServedeploymentfastapidocsstatusResponse
|
470
468
|
from openapi_client.models.server_session_token import ServerSessionToken
|
471
469
|
from openapi_client.models.serversessiontoken_response import ServersessiontokenResponse
|
472
470
|
from openapi_client.models.service_config import ServiceConfig
|
@@ -571,8 +569,6 @@ from openapi_client.models.waitlist_status_response import WaitlistStatusRespons
|
|
571
569
|
from openapi_client.models.waitlist_status_type import WaitlistStatusType
|
572
570
|
from openapi_client.models.waitliststatusresponse_response import WaitliststatusresponseResponse
|
573
571
|
from openapi_client.models.wand_b_run_details import WandBRunDetails
|
574
|
-
from openapi_client.models.web_terminal import WebTerminal
|
575
|
-
from openapi_client.models.webterminal_response import WebterminalResponse
|
576
572
|
from openapi_client.models.worker_node_type import WorkerNodeType
|
577
573
|
from openapi_client.models.workload_info import WorkloadInfo
|
578
574
|
from openapi_client.models.workload_type import WorkloadType
|
@@ -57,7 +57,8 @@ class Cloud(object):
|
|
57
57
|
'version': 'CloudVersion',
|
58
58
|
'is_default': 'bool',
|
59
59
|
'customer_aggregated_logs_config_id': 'str',
|
60
|
-
'additional_instance_types': 'list[UXInstance]'
|
60
|
+
'additional_instance_types': 'list[UXInstance]',
|
61
|
+
'is_aggregated_logs_enabled': 'bool'
|
61
62
|
}
|
62
63
|
|
63
64
|
attribute_map = {
|
@@ -85,10 +86,11 @@ class Cloud(object):
|
|
85
86
|
'version': 'version',
|
86
87
|
'is_default': 'is_default',
|
87
88
|
'customer_aggregated_logs_config_id': 'customer_aggregated_logs_config_id',
|
88
|
-
'additional_instance_types': 'additional_instance_types'
|
89
|
+
'additional_instance_types': 'additional_instance_types',
|
90
|
+
'is_aggregated_logs_enabled': 'is_aggregated_logs_enabled'
|
89
91
|
}
|
90
92
|
|
91
|
-
def __init__(self, name=None, provider=None, compute_stack=None, region=None, credentials=None, config=None, is_k8s=False, is_aioa=False, availability_zones=None, is_bring_your_own_resource=None, is_private_cloud=False, cluster_management_stack_version=None, is_private_service_cloud=None, auto_add_user=False, external_id=None, id=None, type=None, creator_id=None, created_at=None, status=None, state=None, version=None, is_default=None, customer_aggregated_logs_config_id=None, additional_instance_types=None, local_vars_configuration=None): # noqa: E501
|
93
|
+
def __init__(self, name=None, provider=None, compute_stack=None, region=None, credentials=None, config=None, is_k8s=False, is_aioa=False, availability_zones=None, is_bring_your_own_resource=None, is_private_cloud=False, cluster_management_stack_version=None, is_private_service_cloud=None, auto_add_user=False, external_id=None, id=None, type=None, creator_id=None, created_at=None, status=None, state=None, version=None, is_default=None, customer_aggregated_logs_config_id=None, additional_instance_types=None, is_aggregated_logs_enabled=None, local_vars_configuration=None): # noqa: E501
|
92
94
|
"""Cloud - a model defined in OpenAPI""" # noqa: E501
|
93
95
|
if local_vars_configuration is None:
|
94
96
|
local_vars_configuration = Configuration()
|
@@ -119,6 +121,7 @@ class Cloud(object):
|
|
119
121
|
self._is_default = None
|
120
122
|
self._customer_aggregated_logs_config_id = None
|
121
123
|
self._additional_instance_types = None
|
124
|
+
self._is_aggregated_logs_enabled = None
|
122
125
|
self.discriminator = None
|
123
126
|
|
124
127
|
self.name = name
|
@@ -161,6 +164,8 @@ class Cloud(object):
|
|
161
164
|
self.customer_aggregated_logs_config_id = customer_aggregated_logs_config_id
|
162
165
|
if additional_instance_types is not None:
|
163
166
|
self.additional_instance_types = additional_instance_types
|
167
|
+
if is_aggregated_logs_enabled is not None:
|
168
|
+
self.is_aggregated_logs_enabled = is_aggregated_logs_enabled
|
164
169
|
|
165
170
|
@property
|
166
171
|
def name(self):
|
@@ -755,6 +760,29 @@ class Cloud(object):
|
|
755
760
|
|
756
761
|
self._additional_instance_types = additional_instance_types
|
757
762
|
|
763
|
+
@property
|
764
|
+
def is_aggregated_logs_enabled(self):
|
765
|
+
"""Gets the is_aggregated_logs_enabled of this Cloud. # noqa: E501
|
766
|
+
|
767
|
+
Whether the aggregated logs are enabled for this cloud. # noqa: E501
|
768
|
+
|
769
|
+
:return: The is_aggregated_logs_enabled of this Cloud. # noqa: E501
|
770
|
+
:rtype: bool
|
771
|
+
"""
|
772
|
+
return self._is_aggregated_logs_enabled
|
773
|
+
|
774
|
+
@is_aggregated_logs_enabled.setter
|
775
|
+
def is_aggregated_logs_enabled(self, is_aggregated_logs_enabled):
|
776
|
+
"""Sets the is_aggregated_logs_enabled of this Cloud.
|
777
|
+
|
778
|
+
Whether the aggregated logs are enabled for this cloud. # noqa: E501
|
779
|
+
|
780
|
+
:param is_aggregated_logs_enabled: The is_aggregated_logs_enabled of this Cloud. # noqa: E501
|
781
|
+
:type: bool
|
782
|
+
"""
|
783
|
+
|
784
|
+
self._is_aggregated_logs_enabled = is_aggregated_logs_enabled
|
785
|
+
|
758
786
|
def to_dict(self):
|
759
787
|
"""Returns the model properties as a dict"""
|
760
788
|
result = {}
|
@@ -58,6 +58,7 @@ class CloudWithCloudResource(object):
|
|
58
58
|
'is_default': 'bool',
|
59
59
|
'customer_aggregated_logs_config_id': 'str',
|
60
60
|
'additional_instance_types': 'list[UXInstance]',
|
61
|
+
'is_aggregated_logs_enabled': 'bool',
|
61
62
|
'cloud_resource': 'CloudResource'
|
62
63
|
}
|
63
64
|
|
@@ -87,10 +88,11 @@ class CloudWithCloudResource(object):
|
|
87
88
|
'is_default': 'is_default',
|
88
89
|
'customer_aggregated_logs_config_id': 'customer_aggregated_logs_config_id',
|
89
90
|
'additional_instance_types': 'additional_instance_types',
|
91
|
+
'is_aggregated_logs_enabled': 'is_aggregated_logs_enabled',
|
90
92
|
'cloud_resource': 'cloud_resource'
|
91
93
|
}
|
92
94
|
|
93
|
-
def __init__(self, name=None, provider=None, compute_stack=None, region=None, credentials=None, config=None, is_k8s=False, is_aioa=False, availability_zones=None, is_bring_your_own_resource=None, is_private_cloud=False, cluster_management_stack_version=None, is_private_service_cloud=None, auto_add_user=False, external_id=None, id=None, type=None, creator_id=None, created_at=None, status=None, state=None, version=None, is_default=None, customer_aggregated_logs_config_id=None, additional_instance_types=None, cloud_resource=None, local_vars_configuration=None): # noqa: E501
|
95
|
+
def __init__(self, name=None, provider=None, compute_stack=None, region=None, credentials=None, config=None, is_k8s=False, is_aioa=False, availability_zones=None, is_bring_your_own_resource=None, is_private_cloud=False, cluster_management_stack_version=None, is_private_service_cloud=None, auto_add_user=False, external_id=None, id=None, type=None, creator_id=None, created_at=None, status=None, state=None, version=None, is_default=None, customer_aggregated_logs_config_id=None, additional_instance_types=None, is_aggregated_logs_enabled=None, cloud_resource=None, local_vars_configuration=None): # noqa: E501
|
94
96
|
"""CloudWithCloudResource - a model defined in OpenAPI""" # noqa: E501
|
95
97
|
if local_vars_configuration is None:
|
96
98
|
local_vars_configuration = Configuration()
|
@@ -121,6 +123,7 @@ class CloudWithCloudResource(object):
|
|
121
123
|
self._is_default = None
|
122
124
|
self._customer_aggregated_logs_config_id = None
|
123
125
|
self._additional_instance_types = None
|
126
|
+
self._is_aggregated_logs_enabled = None
|
124
127
|
self._cloud_resource = None
|
125
128
|
self.discriminator = None
|
126
129
|
|
@@ -164,6 +167,8 @@ class CloudWithCloudResource(object):
|
|
164
167
|
self.customer_aggregated_logs_config_id = customer_aggregated_logs_config_id
|
165
168
|
if additional_instance_types is not None:
|
166
169
|
self.additional_instance_types = additional_instance_types
|
170
|
+
if is_aggregated_logs_enabled is not None:
|
171
|
+
self.is_aggregated_logs_enabled = is_aggregated_logs_enabled
|
167
172
|
if cloud_resource is not None:
|
168
173
|
self.cloud_resource = cloud_resource
|
169
174
|
|
@@ -760,6 +765,29 @@ class CloudWithCloudResource(object):
|
|
760
765
|
|
761
766
|
self._additional_instance_types = additional_instance_types
|
762
767
|
|
768
|
+
@property
|
769
|
+
def is_aggregated_logs_enabled(self):
|
770
|
+
"""Gets the is_aggregated_logs_enabled of this CloudWithCloudResource. # noqa: E501
|
771
|
+
|
772
|
+
Whether the aggregated logs are enabled for this cloud. # noqa: E501
|
773
|
+
|
774
|
+
:return: The is_aggregated_logs_enabled of this CloudWithCloudResource. # noqa: E501
|
775
|
+
:rtype: bool
|
776
|
+
"""
|
777
|
+
return self._is_aggregated_logs_enabled
|
778
|
+
|
779
|
+
@is_aggregated_logs_enabled.setter
|
780
|
+
def is_aggregated_logs_enabled(self, is_aggregated_logs_enabled):
|
781
|
+
"""Sets the is_aggregated_logs_enabled of this CloudWithCloudResource.
|
782
|
+
|
783
|
+
Whether the aggregated logs are enabled for this cloud. # noqa: E501
|
784
|
+
|
785
|
+
:param is_aggregated_logs_enabled: The is_aggregated_logs_enabled of this CloudWithCloudResource. # noqa: E501
|
786
|
+
:type: bool
|
787
|
+
"""
|
788
|
+
|
789
|
+
self._is_aggregated_logs_enabled = is_aggregated_logs_enabled
|
790
|
+
|
763
791
|
@property
|
764
792
|
def cloud_resource(self):
|
765
793
|
"""Gets the cloud_resource of this CloudWithCloudResource. # noqa: E501
|
@@ -58,6 +58,7 @@ class CloudWithCloudResourceGCP(object):
|
|
58
58
|
'is_default': 'bool',
|
59
59
|
'customer_aggregated_logs_config_id': 'str',
|
60
60
|
'additional_instance_types': 'list[UXInstance]',
|
61
|
+
'is_aggregated_logs_enabled': 'bool',
|
61
62
|
'cloud_resource': 'CloudResourceGCP'
|
62
63
|
}
|
63
64
|
|
@@ -87,10 +88,11 @@ class CloudWithCloudResourceGCP(object):
|
|
87
88
|
'is_default': 'is_default',
|
88
89
|
'customer_aggregated_logs_config_id': 'customer_aggregated_logs_config_id',
|
89
90
|
'additional_instance_types': 'additional_instance_types',
|
91
|
+
'is_aggregated_logs_enabled': 'is_aggregated_logs_enabled',
|
90
92
|
'cloud_resource': 'cloud_resource'
|
91
93
|
}
|
92
94
|
|
93
|
-
def __init__(self, name=None, provider=None, compute_stack=None, region=None, credentials=None, config=None, is_k8s=False, is_aioa=False, availability_zones=None, is_bring_your_own_resource=None, is_private_cloud=False, cluster_management_stack_version=None, is_private_service_cloud=None, auto_add_user=False, external_id=None, id=None, type=None, creator_id=None, created_at=None, status=None, state=None, version=None, is_default=None, customer_aggregated_logs_config_id=None, additional_instance_types=None, cloud_resource=None, local_vars_configuration=None): # noqa: E501
|
95
|
+
def __init__(self, name=None, provider=None, compute_stack=None, region=None, credentials=None, config=None, is_k8s=False, is_aioa=False, availability_zones=None, is_bring_your_own_resource=None, is_private_cloud=False, cluster_management_stack_version=None, is_private_service_cloud=None, auto_add_user=False, external_id=None, id=None, type=None, creator_id=None, created_at=None, status=None, state=None, version=None, is_default=None, customer_aggregated_logs_config_id=None, additional_instance_types=None, is_aggregated_logs_enabled=None, cloud_resource=None, local_vars_configuration=None): # noqa: E501
|
94
96
|
"""CloudWithCloudResourceGCP - a model defined in OpenAPI""" # noqa: E501
|
95
97
|
if local_vars_configuration is None:
|
96
98
|
local_vars_configuration = Configuration()
|
@@ -121,6 +123,7 @@ class CloudWithCloudResourceGCP(object):
|
|
121
123
|
self._is_default = None
|
122
124
|
self._customer_aggregated_logs_config_id = None
|
123
125
|
self._additional_instance_types = None
|
126
|
+
self._is_aggregated_logs_enabled = None
|
124
127
|
self._cloud_resource = None
|
125
128
|
self.discriminator = None
|
126
129
|
|
@@ -164,6 +167,8 @@ class CloudWithCloudResourceGCP(object):
|
|
164
167
|
self.customer_aggregated_logs_config_id = customer_aggregated_logs_config_id
|
165
168
|
if additional_instance_types is not None:
|
166
169
|
self.additional_instance_types = additional_instance_types
|
170
|
+
if is_aggregated_logs_enabled is not None:
|
171
|
+
self.is_aggregated_logs_enabled = is_aggregated_logs_enabled
|
167
172
|
if cloud_resource is not None:
|
168
173
|
self.cloud_resource = cloud_resource
|
169
174
|
|
@@ -760,6 +765,29 @@ class CloudWithCloudResourceGCP(object):
|
|
760
765
|
|
761
766
|
self._additional_instance_types = additional_instance_types
|
762
767
|
|
768
|
+
@property
|
769
|
+
def is_aggregated_logs_enabled(self):
|
770
|
+
"""Gets the is_aggregated_logs_enabled of this CloudWithCloudResourceGCP. # noqa: E501
|
771
|
+
|
772
|
+
Whether the aggregated logs are enabled for this cloud. # noqa: E501
|
773
|
+
|
774
|
+
:return: The is_aggregated_logs_enabled of this CloudWithCloudResourceGCP. # noqa: E501
|
775
|
+
:rtype: bool
|
776
|
+
"""
|
777
|
+
return self._is_aggregated_logs_enabled
|
778
|
+
|
779
|
+
@is_aggregated_logs_enabled.setter
|
780
|
+
def is_aggregated_logs_enabled(self, is_aggregated_logs_enabled):
|
781
|
+
"""Sets the is_aggregated_logs_enabled of this CloudWithCloudResourceGCP.
|
782
|
+
|
783
|
+
Whether the aggregated logs are enabled for this cloud. # noqa: E501
|
784
|
+
|
785
|
+
:param is_aggregated_logs_enabled: The is_aggregated_logs_enabled of this CloudWithCloudResourceGCP. # noqa: E501
|
786
|
+
:type: bool
|
787
|
+
"""
|
788
|
+
|
789
|
+
self._is_aggregated_logs_enabled = is_aggregated_logs_enabled
|
790
|
+
|
763
791
|
@property
|
764
792
|
def cloud_resource(self):
|
765
793
|
"""Gets the cloud_resource of this CloudWithCloudResourceGCP. # noqa: E501
|
@@ -85,7 +85,8 @@ class DatasetMetrics(object):
|
|
85
85
|
self.session_name = session_name
|
86
86
|
self.state = state
|
87
87
|
self.progress = progress
|
88
|
-
|
88
|
+
if total is not None:
|
89
|
+
self.total = total
|
89
90
|
self.start_time = start_time
|
90
91
|
if end_time is not None:
|
91
92
|
self.end_time = end_time
|
@@ -248,8 +249,6 @@ class DatasetMetrics(object):
|
|
248
249
|
:param total: The total of this DatasetMetrics. # noqa: E501
|
249
250
|
:type: int
|
250
251
|
"""
|
251
|
-
if self.local_vars_configuration.client_side_validation and total is None: # noqa: E501
|
252
|
-
raise ValueError("Invalid value for `total`, must not be `None`") # noqa: E501
|
253
252
|
|
254
253
|
self._total = total
|
255
254
|
|
@@ -74,7 +74,8 @@ class OperatorMetrics(object):
|
|
74
74
|
self.name = name
|
75
75
|
self.state = state
|
76
76
|
self.progress = progress
|
77
|
-
|
77
|
+
if total is not None:
|
78
|
+
self.total = total
|
78
79
|
self.start_time = start_time
|
79
80
|
if end_time is not None:
|
80
81
|
self.end_time = end_time
|
@@ -190,8 +191,6 @@ class OperatorMetrics(object):
|
|
190
191
|
:param total: The total of this OperatorMetrics. # noqa: E501
|
191
192
|
:type: int
|
192
193
|
"""
|
193
|
-
if self.local_vars_configuration.client_side_validation and total is None: # noqa: E501
|
194
|
-
raise ValueError("Invalid value for `total`, must not be `None`") # noqa: E501
|
195
194
|
|
196
195
|
self._total = total
|
197
196
|
|
@@ -36,17 +36,21 @@ class WorkloadInfo(object):
|
|
36
36
|
'workload_name': 'str',
|
37
37
|
'workload_type': 'str',
|
38
38
|
'workload_start_time': 'datetime',
|
39
|
-
'workload_cloud': 'str'
|
39
|
+
'workload_cloud': 'str',
|
40
|
+
'workload_project': 'str',
|
41
|
+
'workload_creator': 'str'
|
40
42
|
}
|
41
43
|
|
42
44
|
attribute_map = {
|
43
45
|
'workload_name': 'workload_name',
|
44
46
|
'workload_type': 'workload_type',
|
45
47
|
'workload_start_time': 'workload_start_time',
|
46
|
-
'workload_cloud': 'workload_cloud'
|
48
|
+
'workload_cloud': 'workload_cloud',
|
49
|
+
'workload_project': 'workload_project',
|
50
|
+
'workload_creator': 'workload_creator'
|
47
51
|
}
|
48
52
|
|
49
|
-
def __init__(self, workload_name=None, workload_type=None, workload_start_time=None, workload_cloud=None, local_vars_configuration=None): # noqa: E501
|
53
|
+
def __init__(self, workload_name=None, workload_type=None, workload_start_time=None, workload_cloud=None, workload_project='', workload_creator='', local_vars_configuration=None): # noqa: E501
|
50
54
|
"""WorkloadInfo - a model defined in OpenAPI""" # noqa: E501
|
51
55
|
if local_vars_configuration is None:
|
52
56
|
local_vars_configuration = Configuration()
|
@@ -56,12 +60,18 @@ class WorkloadInfo(object):
|
|
56
60
|
self._workload_type = None
|
57
61
|
self._workload_start_time = None
|
58
62
|
self._workload_cloud = None
|
63
|
+
self._workload_project = None
|
64
|
+
self._workload_creator = None
|
59
65
|
self.discriminator = None
|
60
66
|
|
61
67
|
self.workload_name = workload_name
|
62
68
|
self.workload_type = workload_type
|
63
69
|
self.workload_start_time = workload_start_time
|
64
70
|
self.workload_cloud = workload_cloud
|
71
|
+
if workload_project is not None:
|
72
|
+
self.workload_project = workload_project
|
73
|
+
if workload_creator is not None:
|
74
|
+
self.workload_creator = workload_creator
|
65
75
|
|
66
76
|
@property
|
67
77
|
def workload_name(self):
|
@@ -163,6 +173,52 @@ class WorkloadInfo(object):
|
|
163
173
|
|
164
174
|
self._workload_cloud = workload_cloud
|
165
175
|
|
176
|
+
@property
|
177
|
+
def workload_project(self):
|
178
|
+
"""Gets the workload_project of this WorkloadInfo. # noqa: E501
|
179
|
+
|
180
|
+
The project of the workload. # noqa: E501
|
181
|
+
|
182
|
+
:return: The workload_project of this WorkloadInfo. # noqa: E501
|
183
|
+
:rtype: str
|
184
|
+
"""
|
185
|
+
return self._workload_project
|
186
|
+
|
187
|
+
@workload_project.setter
|
188
|
+
def workload_project(self, workload_project):
|
189
|
+
"""Sets the workload_project of this WorkloadInfo.
|
190
|
+
|
191
|
+
The project of the workload. # noqa: E501
|
192
|
+
|
193
|
+
:param workload_project: The workload_project of this WorkloadInfo. # noqa: E501
|
194
|
+
:type: str
|
195
|
+
"""
|
196
|
+
|
197
|
+
self._workload_project = workload_project
|
198
|
+
|
199
|
+
@property
|
200
|
+
def workload_creator(self):
|
201
|
+
"""Gets the workload_creator of this WorkloadInfo. # noqa: E501
|
202
|
+
|
203
|
+
The creator of the workload. # noqa: E501
|
204
|
+
|
205
|
+
:return: The workload_creator of this WorkloadInfo. # noqa: E501
|
206
|
+
:rtype: str
|
207
|
+
"""
|
208
|
+
return self._workload_creator
|
209
|
+
|
210
|
+
@workload_creator.setter
|
211
|
+
def workload_creator(self, workload_creator):
|
212
|
+
"""Sets the workload_creator of this WorkloadInfo.
|
213
|
+
|
214
|
+
The creator of the workload. # noqa: E501
|
215
|
+
|
216
|
+
:param workload_creator: The workload_creator of this WorkloadInfo. # noqa: E501
|
217
|
+
:type: str
|
218
|
+
"""
|
219
|
+
|
220
|
+
self._workload_creator = workload_creator
|
221
|
+
|
166
222
|
def to_dict(self):
|
167
223
|
"""Returns the model properties as a dict"""
|
168
224
|
result = {}
|
anyscale/cloud/models.py
CHANGED
@@ -158,6 +158,10 @@ cloud = Cloud(
|
|
158
158
|
is_default: Optional[bool] = field(
|
159
159
|
default=None, metadata={"docstring": "Whether this is the default cloud."}
|
160
160
|
)
|
161
|
+
is_aggregated_logs_enabled: Optional[bool] = field(
|
162
|
+
default=None,
|
163
|
+
metadata={"docstring": "Whether aggregated logs are enabled for this cloud."},
|
164
|
+
)
|
161
165
|
|
162
166
|
def _validate_name(self, name: str) -> str:
|
163
167
|
if not isinstance(name, str) or not name.strip():
|
@@ -207,3 +211,12 @@ cloud = Cloud(
|
|
207
211
|
raise TypeError("'compute_stack' must be a ComputeStack.")
|
208
212
|
|
209
213
|
return compute_stack
|
214
|
+
|
215
|
+
def _validate_is_aggregated_logs_enabled(
|
216
|
+
self, is_aggregated_logs_enabled: Optional[bool]
|
217
|
+
) -> Optional[bool]:
|
218
|
+
if is_aggregated_logs_enabled is not None and not isinstance(
|
219
|
+
is_aggregated_logs_enabled, bool
|
220
|
+
):
|
221
|
+
raise TypeError("is_aggregated_logs_enabled must be a bool")
|
222
|
+
return is_aggregated_logs_enabled
|