anyscale 0.26.14__py3-none-any.whl → 0.26.15__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/fake_anyscale_client.py +1 -1
- anyscale/_private/models/model_base.py +5 -2
- anyscale/_private/utils/progress_util.py +2 -2
- anyscale/_private/workload/workload_sdk.py +4 -3
- anyscale/anyscale-cloud-setup.yaml +4 -0
- anyscale/client/README.md +4 -5
- anyscale/client/openapi_client/__init__.py +3 -4
- anyscale/client/openapi_client/api/default_api.py +158 -127
- anyscale/client/openapi_client/models/__init__.py +3 -4
- anyscale/client/openapi_client/models/task_exception_group_aggregate.py +28 -1
- anyscale/client/openapi_client/models/{taskexceptiongroupaggregate_list_response.py → task_exception_group_aggregate_response.py} +52 -25
- anyscale/client/openapi_client/models/task_function_name_group_aggregate.py +28 -1
- anyscale/client/openapi_client/models/{taskfunctionnamegroupaggregate_list_response.py → task_function_name_group_aggregate_response.py} +52 -25
- anyscale/client/openapi_client/models/task_job_group_aggregate.py +28 -1
- anyscale/client/openapi_client/models/{taskjobgroupaggregate_list_response.py → task_job_group_aggregate_response.py} +52 -25
- anyscale/client/openapi_client/models/task_table_row.py +19 -19
- anyscale/cloud_resource.py +1 -1
- anyscale/cloud_utils.py +6 -2
- anyscale/cluster_compute.py +4 -3
- anyscale/cluster_env.py +8 -5
- anyscale/compute_config/_private/compute_config_sdk.py +1 -1
- anyscale/connect_utils/prepare_cluster.py +14 -4
- anyscale/controllers/cloud_controller.py +2 -2
- anyscale/controllers/cloud_functional_verification_controller.py +4 -2
- anyscale/controllers/service_controller.py +1 -1
- anyscale/project_utils.py +4 -3
- anyscale/sdk/anyscale_client/sdk.py +4 -4
- anyscale/utils/connect_helpers.py +16 -3
- anyscale/utils/runtime_env.py +3 -1
- anyscale/version.py +1 -1
- anyscale/workspace/__init__.py +10 -5
- anyscale/workspace/_private/workspace_sdk.py +4 -4
- anyscale/workspace/commands.py +1 -1
- {anyscale-0.26.14.dist-info → anyscale-0.26.15.dist-info}/METADATA +1 -1
- {anyscale-0.26.14.dist-info → anyscale-0.26.15.dist-info}/RECORD +40 -41
- anyscale/client/openapi_client/models/buffer_registration.py +0 -285
- {anyscale-0.26.14.dist-info → anyscale-0.26.15.dist-info}/LICENSE +0 -0
- {anyscale-0.26.14.dist-info → anyscale-0.26.15.dist-info}/NOTICE +0 -0
- {anyscale-0.26.14.dist-info → anyscale-0.26.15.dist-info}/WHEEL +0 -0
- {anyscale-0.26.14.dist-info → anyscale-0.26.15.dist-info}/entry_points.txt +0 -0
- {anyscale-0.26.14.dist-info → anyscale-0.26.15.dist-info}/top_level.txt +0 -0
@@ -1102,7 +1102,7 @@ class FakeAnyscaleClient(AnyscaleClientInterface):
|
|
1102
1102
|
return self._clusters_headnode_ip.get(cluster_id, "")
|
1103
1103
|
|
1104
1104
|
def get_cluster_ssh_key(self, cluster_id: str) -> SessionSshKey:
|
1105
|
-
return self._clusters_ssh_key.get(cluster_id, None)
|
1105
|
+
return self._clusters_ssh_key.get(cluster_id, None) # type: ignore
|
1106
1106
|
|
1107
1107
|
def get_workspace_default_dir_name(self, workspace_id) -> str:
|
1108
1108
|
workspace = self._workspaces.get(workspace_id, None)
|
@@ -50,15 +50,18 @@ class ModelEnumType(EnumMeta):
|
|
50
50
|
return cls
|
51
51
|
|
52
52
|
|
53
|
+
M = TypeVar("M", bound="ModelEnum")
|
54
|
+
|
55
|
+
|
53
56
|
class ModelEnum(str, Enum, metaclass=ModelEnumType):
|
54
57
|
# Must be populated by subclasses to document every value.
|
55
|
-
__docstrings__: Dict[
|
58
|
+
__docstrings__: Dict[str, str] = {}
|
56
59
|
|
57
60
|
def __str__(self):
|
58
61
|
return self.name
|
59
62
|
|
60
63
|
@classmethod
|
61
|
-
def validate(cls, value: Union[str,
|
64
|
+
def validate(cls: Type[M], value: Union[str, M]) -> M:
|
62
65
|
allowed_values = [str(s) for s in cls.__members__ if not str(s).startswith("_")]
|
63
66
|
if value.upper() in allowed_values:
|
64
67
|
return cls(value.upper())
|
@@ -1,4 +1,4 @@
|
|
1
|
-
from io import
|
1
|
+
from io import BufferedReader
|
2
2
|
import os
|
3
3
|
|
4
4
|
from rich.progress import (
|
@@ -57,7 +57,7 @@ class ProgressFileReader:
|
|
57
57
|
"""
|
58
58
|
|
59
59
|
def __init__(
|
60
|
-
self, file:
|
60
|
+
self, file: BufferedReader, progress: Progress, task_id: TaskID,
|
61
61
|
):
|
62
62
|
self.file = file
|
63
63
|
self.progress = progress
|
@@ -138,6 +138,7 @@ class WorkloadSDK(BaseSDK):
|
|
138
138
|
return local_path_to_uri[target]
|
139
139
|
|
140
140
|
self.logger.info(f"Uploading local dir '{target}' to cloud storage.")
|
141
|
+
assert cloud_id is not None
|
141
142
|
uri = self._client.upload_local_dir_to_cloud_storage(
|
142
143
|
target, cloud_id=cloud_id, excludes=excludes,
|
143
144
|
)
|
@@ -229,11 +230,11 @@ class WorkloadSDK(BaseSDK):
|
|
229
230
|
self.client.get_cloud_id(compute_config_id=compute_config_id),
|
230
231
|
)
|
231
232
|
elif compute_config is None:
|
232
|
-
cloud_id = self.client.get_cloud_id(cloud_name=cloud)
|
233
|
+
cloud_id = self.client.get_cloud_id(cloud_name=cloud) # type: ignore
|
233
234
|
compute_config_id = self._client.get_default_compute_config(
|
234
235
|
cloud_id=cloud_id
|
235
236
|
).id
|
236
|
-
return (compute_config_id, cloud_id)
|
237
|
+
return (compute_config_id, cloud_id) # type: ignore
|
237
238
|
elif cloud is None:
|
238
239
|
compute_config_id = self._resolve_compute_config_id(
|
239
240
|
compute_config=compute_config
|
@@ -256,7 +257,7 @@ class WorkloadSDK(BaseSDK):
|
|
256
257
|
cloud_id_from_cc = self.client.get_cloud_id(
|
257
258
|
compute_config_id=compute_config_id
|
258
259
|
)
|
259
|
-
cloud_id_from_cloud = self.client.get_cloud_id(cloud_name=cloud)
|
260
|
+
cloud_id_from_cloud = self.client.get_cloud_id(cloud_name=cloud) # type: ignore
|
260
261
|
if cloud_id_from_cc != cloud_id_from_cloud:
|
261
262
|
raise ValueError(
|
262
263
|
"Cloud does not match from provided `cloud` and `compute_config`. Either pass one of these or ensure they match."
|
@@ -193,6 +193,10 @@ $SUBNETS_ROUTE_TABLE_ASSOCIATION
|
|
193
193
|
- "s3:DeleteObject"
|
194
194
|
- "s3:GetObject"
|
195
195
|
- "s3:ListBucket"
|
196
|
+
- "s3:ListBucketMultipartUploads"
|
197
|
+
- "s3:ListMultipartUploadParts"
|
198
|
+
- "s3:AbortMultipartUpload"
|
199
|
+
- "s3:GetBucketLocation"
|
196
200
|
Effect: Allow
|
197
201
|
Resource:
|
198
202
|
- !Sub arn:aws:s3:::${S3Bucket}
|
anyscale/client/README.md
CHANGED
@@ -199,6 +199,7 @@ Class | Method | HTTP request | Description
|
|
199
199
|
*DefaultApi* | [**get_dataset_api_v2_datasets_dataset_id_get**](docs/DefaultApi.md#get_dataset_api_v2_datasets_dataset_id_get) | **GET** /api/v2/datasets/{dataset_id} | Get Dataset
|
200
200
|
*DefaultApi* | [**get_dataset_download_info_api_v2_datasets_download_info_get**](docs/DefaultApi.md#get_dataset_download_info_api_v2_datasets_download_info_get) | **GET** /api/v2/datasets/download_info | Get Dataset Download Info
|
201
201
|
*DefaultApi* | [**get_dataset_download_url_api_v2_datasets_download_get**](docs/DefaultApi.md#get_dataset_download_url_api_v2_datasets_download_get) | **GET** /api/v2/datasets/download | Get Dataset Download Url
|
202
|
+
*DefaultApi* | [**get_dataset_logs_download_api_v2_dataset_runs_dataset_logs_get**](docs/DefaultApi.md#get_dataset_logs_download_api_v2_dataset_runs_dataset_logs_get) | **GET** /api/v2/dataset_runs/dataset_logs | Get Dataset Logs Download
|
202
203
|
*DefaultApi* | [**get_decorated_cluster_api_v2_decorated_sessions_cluster_id_get**](docs/DefaultApi.md#get_decorated_cluster_api_v2_decorated_sessions_cluster_id_get) | **GET** /api/v2/decorated_sessions/{cluster_id} | Get Decorated Cluster
|
203
204
|
*DefaultApi* | [**get_decorated_interactive_session_api_v2_decorated_interactive_sessions_interactive_session_id_get**](docs/DefaultApi.md#get_decorated_interactive_session_api_v2_decorated_interactive_sessions_interactive_session_id_get) | **GET** /api/v2/decorated_interactive_sessions/{interactive_session_id} | Get Decorated Interactive Session
|
204
205
|
*DefaultApi* | [**get_decorated_job_api_v2_decorated_jobs_job_id_get**](docs/DefaultApi.md#get_decorated_job_api_v2_decorated_jobs_job_id_get) | **GET** /api/v2/decorated_jobs/{job_id} | Get Decorated Job
|
@@ -334,7 +335,6 @@ Class | Method | HTTP request | Description
|
|
334
335
|
*DefaultApi* | [**redirect_to_service_api_v2_sessions_cluster_id_services_get**](docs/DefaultApi.md#redirect_to_service_api_v2_sessions_cluster_id_services_get) | **GET** /api/v2/sessions/{cluster_id}/services | Redirect To Service
|
335
336
|
*DefaultApi* | [**redirect_to_tools_api_v2_services_v2_service_id_tools_get**](docs/DefaultApi.md#redirect_to_tools_api_v2_services_v2_service_id_tools_get) | **GET** /api/v2/services-v2/{service_id}/tools | Redirect To Tools
|
336
337
|
*DefaultApi* | [**register_api_v2_kubernetes_manager_register_post**](docs/DefaultApi.md#register_api_v2_kubernetes_manager_register_post) | **POST** /api/v2/kubernetes_manager/register | Register
|
337
|
-
*DefaultApi* | [**register_buffer_api_v2_anyscaled_register_buffer_post**](docs/DefaultApi.md#register_buffer_api_v2_anyscaled_register_buffer_post) | **POST** /api/v2/anyscaled/register_buffer | Register Buffer
|
338
338
|
*DefaultApi* | [**register_build_api_v2_anyscaled_register_build_post**](docs/DefaultApi.md#register_build_api_v2_anyscaled_register_build_post) | **POST** /api/v2/anyscaled/register_build | Register Build
|
339
339
|
*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
|
340
340
|
*DefaultApi* | [**register_user_api_v2_users_post**](docs/DefaultApi.md#register_user_api_v2_users_post) | **POST** /api/v2/users/ | Register User
|
@@ -444,7 +444,6 @@ Class | Method | HTTP request | Description
|
|
444
444
|
- [BillingInformation](docs/BillingInformation.md)
|
445
445
|
- [BillingVersionCode](docs/BillingVersionCode.md)
|
446
446
|
- [BodyAwsMarketplaceRegistrationApiV2OrganizationBillingAwsMarketplaceRegistrationPost](docs/BodyAwsMarketplaceRegistrationApiV2OrganizationBillingAwsMarketplaceRegistrationPost.md)
|
447
|
-
- [BufferRegistration](docs/BufferRegistration.md)
|
448
447
|
- [Build](docs/Build.md)
|
449
448
|
- [BuildLogResponse](docs/BuildLogResponse.md)
|
450
449
|
- [BuildRegistration](docs/BuildRegistration.md)
|
@@ -913,18 +912,18 @@ Class | Method | HTTP request | Description
|
|
913
912
|
- [SupportRequestsQuery](docs/SupportRequestsQuery.md)
|
914
913
|
- [SystemWorkloadName](docs/SystemWorkloadName.md)
|
915
914
|
- [TaskExceptionGroupAggregate](docs/TaskExceptionGroupAggregate.md)
|
915
|
+
- [TaskExceptionGroupAggregateResponse](docs/TaskExceptionGroupAggregateResponse.md)
|
916
916
|
- [TaskFunctionNameGroupAggregate](docs/TaskFunctionNameGroupAggregate.md)
|
917
|
+
- [TaskFunctionNameGroupAggregateResponse](docs/TaskFunctionNameGroupAggregateResponse.md)
|
917
918
|
- [TaskGroupedAggregateMetrics](docs/TaskGroupedAggregateMetrics.md)
|
918
919
|
- [TaskJobGroupAggregate](docs/TaskJobGroupAggregate.md)
|
920
|
+
- [TaskJobGroupAggregateResponse](docs/TaskJobGroupAggregateResponse.md)
|
919
921
|
- [TaskState](docs/TaskState.md)
|
920
922
|
- [TaskSummary](docs/TaskSummary.md)
|
921
923
|
- [TaskTableConfig](docs/TaskTableConfig.md)
|
922
924
|
- [TaskTableResponse](docs/TaskTableResponse.md)
|
923
925
|
- [TaskTableRow](docs/TaskTableRow.md)
|
924
926
|
- [TaskType](docs/TaskType.md)
|
925
|
-
- [TaskexceptiongroupaggregateListResponse](docs/TaskexceptiongroupaggregateListResponse.md)
|
926
|
-
- [TaskfunctionnamegroupaggregateListResponse](docs/TaskfunctionnamegroupaggregateListResponse.md)
|
927
|
-
- [TaskjobgroupaggregateListResponse](docs/TaskjobgroupaggregateListResponse.md)
|
928
927
|
- [TasksummaryResponse](docs/TasksummaryResponse.md)
|
929
928
|
- [TemplatizedComputeConfigs](docs/TemplatizedComputeConfigs.md)
|
930
929
|
- [TemplatizedDecoratedApplicationTemplates](docs/TemplatizedDecoratedApplicationTemplates.md)
|
@@ -75,7 +75,6 @@ from openapi_client.models.batched_result_organization_invitation_base import Ba
|
|
75
75
|
from openapi_client.models.billing_information import BillingInformation
|
76
76
|
from openapi_client.models.billing_version_code import BillingVersionCode
|
77
77
|
from openapi_client.models.body_aws_marketplace_registration_api_v2_organization_billing_aws_marketplace_registration_post import BodyAwsMarketplaceRegistrationApiV2OrganizationBillingAwsMarketplaceRegistrationPost
|
78
|
-
from openapi_client.models.buffer_registration import BufferRegistration
|
79
78
|
from openapi_client.models.build import Build
|
80
79
|
from openapi_client.models.build_log_response import BuildLogResponse
|
81
80
|
from openapi_client.models.build_registration import BuildRegistration
|
@@ -544,18 +543,18 @@ from openapi_client.models.subnet_id_with_availability_zone_aws import SubnetIdW
|
|
544
543
|
from openapi_client.models.support_requests_query import SupportRequestsQuery
|
545
544
|
from openapi_client.models.system_workload_name import SystemWorkloadName
|
546
545
|
from openapi_client.models.task_exception_group_aggregate import TaskExceptionGroupAggregate
|
546
|
+
from openapi_client.models.task_exception_group_aggregate_response import TaskExceptionGroupAggregateResponse
|
547
547
|
from openapi_client.models.task_function_name_group_aggregate import TaskFunctionNameGroupAggregate
|
548
|
+
from openapi_client.models.task_function_name_group_aggregate_response import TaskFunctionNameGroupAggregateResponse
|
548
549
|
from openapi_client.models.task_grouped_aggregate_metrics import TaskGroupedAggregateMetrics
|
549
550
|
from openapi_client.models.task_job_group_aggregate import TaskJobGroupAggregate
|
551
|
+
from openapi_client.models.task_job_group_aggregate_response import TaskJobGroupAggregateResponse
|
550
552
|
from openapi_client.models.task_state import TaskState
|
551
553
|
from openapi_client.models.task_summary import TaskSummary
|
552
554
|
from openapi_client.models.task_table_config import TaskTableConfig
|
553
555
|
from openapi_client.models.task_table_response import TaskTableResponse
|
554
556
|
from openapi_client.models.task_table_row import TaskTableRow
|
555
557
|
from openapi_client.models.task_type import TaskType
|
556
|
-
from openapi_client.models.taskexceptiongroupaggregate_list_response import TaskexceptiongroupaggregateListResponse
|
557
|
-
from openapi_client.models.taskfunctionnamegroupaggregate_list_response import TaskfunctionnamegroupaggregateListResponse
|
558
|
-
from openapi_client.models.taskjobgroupaggregate_list_response import TaskjobgroupaggregateListResponse
|
559
558
|
from openapi_client.models.tasksummary_response import TasksummaryResponse
|
560
559
|
from openapi_client.models.templatized_compute_configs import TemplatizedComputeConfigs
|
561
560
|
from openapi_client.models.templatized_decorated_application_templates import TemplatizedDecoratedApplicationTemplates
|
@@ -14694,6 +14694,155 @@ class DefaultApi(object):
|
|
14694
14694
|
_request_timeout=local_var_params.get('_request_timeout'),
|
14695
14695
|
collection_formats=collection_formats)
|
14696
14696
|
|
14697
|
+
def get_dataset_logs_download_api_v2_dataset_runs_dataset_logs_get(self, cluster_id, session_name, dataset_id, **kwargs): # noqa: E501
|
14698
|
+
"""Get Dataset Logs Download # noqa: E501
|
14699
|
+
|
14700
|
+
Fetches logs of the dataset. The logs will be fetched from the streaming logs s3 bucket. If a pagination token is provided, we use the streaming logs or downloaded logs bucket depending on the format of the pagination token. # noqa: E501
|
14701
|
+
This method makes a synchronous HTTP request by default. To make an
|
14702
|
+
asynchronous HTTP request, please pass async_req=True
|
14703
|
+
>>> thread = api.get_dataset_logs_download_api_v2_dataset_runs_dataset_logs_get(cluster_id, session_name, dataset_id, async_req=True)
|
14704
|
+
>>> result = thread.get()
|
14705
|
+
|
14706
|
+
:param async_req bool: execute request asynchronously
|
14707
|
+
:param str cluster_id: (required)
|
14708
|
+
:param str session_name: (required)
|
14709
|
+
:param str dataset_id: (required)
|
14710
|
+
:param int page_size: Number of chunks to fetch. Defaults to 400. Max of 1000.
|
14711
|
+
:param str next_page_token: Pagination token for getting newer logs.
|
14712
|
+
:param str previous_page_token: Pagination token for getting older logs.
|
14713
|
+
:param _preload_content: if False, the urllib3.HTTPResponse object will
|
14714
|
+
be returned without reading/decoding response
|
14715
|
+
data. Default is True.
|
14716
|
+
:param _request_timeout: timeout setting for this request. If one
|
14717
|
+
number provided, it will be total request
|
14718
|
+
timeout. It can also be a pair (tuple) of
|
14719
|
+
(connection, read) timeouts.
|
14720
|
+
:return: LogdownloadresultResponse
|
14721
|
+
If the method is called asynchronously,
|
14722
|
+
returns the request thread.
|
14723
|
+
"""
|
14724
|
+
kwargs['_return_http_data_only'] = True
|
14725
|
+
return self.get_dataset_logs_download_api_v2_dataset_runs_dataset_logs_get_with_http_info(cluster_id, session_name, dataset_id, **kwargs) # noqa: E501
|
14726
|
+
|
14727
|
+
def get_dataset_logs_download_api_v2_dataset_runs_dataset_logs_get_with_http_info(self, cluster_id, session_name, dataset_id, **kwargs): # noqa: E501
|
14728
|
+
"""Get Dataset Logs Download # noqa: E501
|
14729
|
+
|
14730
|
+
Fetches logs of the dataset. The logs will be fetched from the streaming logs s3 bucket. If a pagination token is provided, we use the streaming logs or downloaded logs bucket depending on the format of the pagination token. # noqa: E501
|
14731
|
+
This method makes a synchronous HTTP request by default. To make an
|
14732
|
+
asynchronous HTTP request, please pass async_req=True
|
14733
|
+
>>> thread = api.get_dataset_logs_download_api_v2_dataset_runs_dataset_logs_get_with_http_info(cluster_id, session_name, dataset_id, async_req=True)
|
14734
|
+
>>> result = thread.get()
|
14735
|
+
|
14736
|
+
:param async_req bool: execute request asynchronously
|
14737
|
+
:param str cluster_id: (required)
|
14738
|
+
:param str session_name: (required)
|
14739
|
+
:param str dataset_id: (required)
|
14740
|
+
:param int page_size: Number of chunks to fetch. Defaults to 400. Max of 1000.
|
14741
|
+
:param str next_page_token: Pagination token for getting newer logs.
|
14742
|
+
:param str previous_page_token: Pagination token for getting older logs.
|
14743
|
+
:param _return_http_data_only: response data without head status code
|
14744
|
+
and headers
|
14745
|
+
:param _preload_content: if False, the urllib3.HTTPResponse object will
|
14746
|
+
be returned without reading/decoding response
|
14747
|
+
data. Default is True.
|
14748
|
+
:param _request_timeout: timeout setting for this request. If one
|
14749
|
+
number provided, it will be total request
|
14750
|
+
timeout. It can also be a pair (tuple) of
|
14751
|
+
(connection, read) timeouts.
|
14752
|
+
:return: tuple(LogdownloadresultResponse, status_code(int), headers(HTTPHeaderDict))
|
14753
|
+
If the method is called asynchronously,
|
14754
|
+
returns the request thread.
|
14755
|
+
"""
|
14756
|
+
|
14757
|
+
local_var_params = locals()
|
14758
|
+
|
14759
|
+
all_params = [
|
14760
|
+
'cluster_id',
|
14761
|
+
'session_name',
|
14762
|
+
'dataset_id',
|
14763
|
+
'page_size',
|
14764
|
+
'next_page_token',
|
14765
|
+
'previous_page_token'
|
14766
|
+
]
|
14767
|
+
all_params.extend(
|
14768
|
+
[
|
14769
|
+
'async_req',
|
14770
|
+
'_return_http_data_only',
|
14771
|
+
'_preload_content',
|
14772
|
+
'_request_timeout'
|
14773
|
+
]
|
14774
|
+
)
|
14775
|
+
|
14776
|
+
for key, val in six.iteritems(local_var_params['kwargs']):
|
14777
|
+
if key not in all_params:
|
14778
|
+
raise ApiTypeError(
|
14779
|
+
"Got an unexpected keyword argument '%s'"
|
14780
|
+
" to method get_dataset_logs_download_api_v2_dataset_runs_dataset_logs_get" % key
|
14781
|
+
)
|
14782
|
+
local_var_params[key] = val
|
14783
|
+
del local_var_params['kwargs']
|
14784
|
+
# verify the required parameter 'cluster_id' is set
|
14785
|
+
if self.api_client.client_side_validation and ('cluster_id' not in local_var_params or # noqa: E501
|
14786
|
+
local_var_params['cluster_id'] is None): # noqa: E501
|
14787
|
+
raise ApiValueError("Missing the required parameter `cluster_id` when calling `get_dataset_logs_download_api_v2_dataset_runs_dataset_logs_get`") # noqa: E501
|
14788
|
+
# verify the required parameter 'session_name' is set
|
14789
|
+
if self.api_client.client_side_validation and ('session_name' not in local_var_params or # noqa: E501
|
14790
|
+
local_var_params['session_name'] is None): # noqa: E501
|
14791
|
+
raise ApiValueError("Missing the required parameter `session_name` when calling `get_dataset_logs_download_api_v2_dataset_runs_dataset_logs_get`") # noqa: E501
|
14792
|
+
# verify the required parameter 'dataset_id' is set
|
14793
|
+
if self.api_client.client_side_validation and ('dataset_id' not in local_var_params or # noqa: E501
|
14794
|
+
local_var_params['dataset_id'] is None): # noqa: E501
|
14795
|
+
raise ApiValueError("Missing the required parameter `dataset_id` when calling `get_dataset_logs_download_api_v2_dataset_runs_dataset_logs_get`") # noqa: E501
|
14796
|
+
|
14797
|
+
if self.api_client.client_side_validation and 'page_size' in local_var_params and local_var_params['page_size'] > 1000: # noqa: E501
|
14798
|
+
raise ApiValueError("Invalid value for parameter `page_size` when calling `get_dataset_logs_download_api_v2_dataset_runs_dataset_logs_get`, must be a value less than or equal to `1000`") # noqa: E501
|
14799
|
+
collection_formats = {}
|
14800
|
+
|
14801
|
+
path_params = {}
|
14802
|
+
|
14803
|
+
query_params = []
|
14804
|
+
if 'cluster_id' in local_var_params and local_var_params['cluster_id'] is not None: # noqa: E501
|
14805
|
+
query_params.append(('cluster_id', local_var_params['cluster_id'])) # noqa: E501
|
14806
|
+
if 'session_name' in local_var_params and local_var_params['session_name'] is not None: # noqa: E501
|
14807
|
+
query_params.append(('session_name', local_var_params['session_name'])) # noqa: E501
|
14808
|
+
if 'dataset_id' in local_var_params and local_var_params['dataset_id'] is not None: # noqa: E501
|
14809
|
+
query_params.append(('dataset_id', local_var_params['dataset_id'])) # noqa: E501
|
14810
|
+
if 'page_size' in local_var_params and local_var_params['page_size'] is not None: # noqa: E501
|
14811
|
+
query_params.append(('page_size', local_var_params['page_size'])) # noqa: E501
|
14812
|
+
if 'next_page_token' in local_var_params and local_var_params['next_page_token'] is not None: # noqa: E501
|
14813
|
+
query_params.append(('next_page_token', local_var_params['next_page_token'])) # noqa: E501
|
14814
|
+
if 'previous_page_token' in local_var_params and local_var_params['previous_page_token'] is not None: # noqa: E501
|
14815
|
+
query_params.append(('previous_page_token', local_var_params['previous_page_token'])) # noqa: E501
|
14816
|
+
|
14817
|
+
header_params = {}
|
14818
|
+
|
14819
|
+
form_params = []
|
14820
|
+
local_var_files = {}
|
14821
|
+
|
14822
|
+
body_params = None
|
14823
|
+
# HTTP header `Accept`
|
14824
|
+
header_params['Accept'] = self.api_client.select_header_accept(
|
14825
|
+
['application/json']) # noqa: E501
|
14826
|
+
|
14827
|
+
# Authentication setting
|
14828
|
+
auth_settings = [] # noqa: E501
|
14829
|
+
|
14830
|
+
return self.api_client.call_api(
|
14831
|
+
'/api/v2/dataset_runs/dataset_logs', 'GET',
|
14832
|
+
path_params,
|
14833
|
+
query_params,
|
14834
|
+
header_params,
|
14835
|
+
body=body_params,
|
14836
|
+
post_params=form_params,
|
14837
|
+
files=local_var_files,
|
14838
|
+
response_type='LogdownloadresultResponse', # noqa: E501
|
14839
|
+
auth_settings=auth_settings,
|
14840
|
+
async_req=local_var_params.get('async_req'),
|
14841
|
+
_return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501
|
14842
|
+
_preload_content=local_var_params.get('_preload_content', True),
|
14843
|
+
_request_timeout=local_var_params.get('_request_timeout'),
|
14844
|
+
collection_formats=collection_formats)
|
14845
|
+
|
14697
14846
|
def get_decorated_cluster_api_v2_decorated_sessions_cluster_id_get(self, cluster_id, **kwargs): # noqa: E501
|
14698
14847
|
"""Get Decorated Cluster # noqa: E501
|
14699
14848
|
|
@@ -21881,7 +22030,7 @@ class DefaultApi(object):
|
|
21881
22030
|
number provided, it will be total request
|
21882
22031
|
timeout. It can also be a pair (tuple) of
|
21883
22032
|
(connection, read) timeouts.
|
21884
|
-
:return:
|
22033
|
+
:return: TaskExceptionGroupAggregateResponse
|
21885
22034
|
If the method is called asynchronously,
|
21886
22035
|
returns the request thread.
|
21887
22036
|
"""
|
@@ -21907,7 +22056,7 @@ class DefaultApi(object):
|
|
21907
22056
|
number provided, it will be total request
|
21908
22057
|
timeout. It can also be a pair (tuple) of
|
21909
22058
|
(connection, read) timeouts.
|
21910
|
-
:return: tuple(
|
22059
|
+
:return: tuple(TaskExceptionGroupAggregateResponse, status_code(int), headers(HTTPHeaderDict))
|
21911
22060
|
If the method is called asynchronously,
|
21912
22061
|
returns the request thread.
|
21913
22062
|
"""
|
@@ -21968,7 +22117,7 @@ class DefaultApi(object):
|
|
21968
22117
|
body=body_params,
|
21969
22118
|
post_params=form_params,
|
21970
22119
|
files=local_var_files,
|
21971
|
-
response_type='
|
22120
|
+
response_type='TaskExceptionGroupAggregateResponse', # noqa: E501
|
21972
22121
|
auth_settings=auth_settings,
|
21973
22122
|
async_req=local_var_params.get('async_req'),
|
21974
22123
|
_return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501
|
@@ -21993,7 +22142,7 @@ class DefaultApi(object):
|
|
21993
22142
|
number provided, it will be total request
|
21994
22143
|
timeout. It can also be a pair (tuple) of
|
21995
22144
|
(connection, read) timeouts.
|
21996
|
-
:return:
|
22145
|
+
:return: TaskFunctionNameGroupAggregateResponse
|
21997
22146
|
If the method is called asynchronously,
|
21998
22147
|
returns the request thread.
|
21999
22148
|
"""
|
@@ -22019,7 +22168,7 @@ class DefaultApi(object):
|
|
22019
22168
|
number provided, it will be total request
|
22020
22169
|
timeout. It can also be a pair (tuple) of
|
22021
22170
|
(connection, read) timeouts.
|
22022
|
-
:return: tuple(
|
22171
|
+
:return: tuple(TaskFunctionNameGroupAggregateResponse, status_code(int), headers(HTTPHeaderDict))
|
22023
22172
|
If the method is called asynchronously,
|
22024
22173
|
returns the request thread.
|
22025
22174
|
"""
|
@@ -22080,7 +22229,7 @@ class DefaultApi(object):
|
|
22080
22229
|
body=body_params,
|
22081
22230
|
post_params=form_params,
|
22082
22231
|
files=local_var_files,
|
22083
|
-
response_type='
|
22232
|
+
response_type='TaskFunctionNameGroupAggregateResponse', # noqa: E501
|
22084
22233
|
auth_settings=auth_settings,
|
22085
22234
|
async_req=local_var_params.get('async_req'),
|
22086
22235
|
_return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501
|
@@ -22105,7 +22254,7 @@ class DefaultApi(object):
|
|
22105
22254
|
number provided, it will be total request
|
22106
22255
|
timeout. It can also be a pair (tuple) of
|
22107
22256
|
(connection, read) timeouts.
|
22108
|
-
:return:
|
22257
|
+
:return: TaskJobGroupAggregateResponse
|
22109
22258
|
If the method is called asynchronously,
|
22110
22259
|
returns the request thread.
|
22111
22260
|
"""
|
@@ -22131,7 +22280,7 @@ class DefaultApi(object):
|
|
22131
22280
|
number provided, it will be total request
|
22132
22281
|
timeout. It can also be a pair (tuple) of
|
22133
22282
|
(connection, read) timeouts.
|
22134
|
-
:return: tuple(
|
22283
|
+
:return: tuple(TaskJobGroupAggregateResponse, status_code(int), headers(HTTPHeaderDict))
|
22135
22284
|
If the method is called asynchronously,
|
22136
22285
|
returns the request thread.
|
22137
22286
|
"""
|
@@ -22192,7 +22341,7 @@ class DefaultApi(object):
|
|
22192
22341
|
body=body_params,
|
22193
22342
|
post_params=form_params,
|
22194
22343
|
files=local_var_files,
|
22195
|
-
response_type='
|
22344
|
+
response_type='TaskJobGroupAggregateResponse', # noqa: E501
|
22196
22345
|
auth_settings=auth_settings,
|
22197
22346
|
async_req=local_var_params.get('async_req'),
|
22198
22347
|
_return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501
|
@@ -31209,124 +31358,6 @@ class DefaultApi(object):
|
|
31209
31358
|
_request_timeout=local_var_params.get('_request_timeout'),
|
31210
31359
|
collection_formats=collection_formats)
|
31211
31360
|
|
31212
|
-
def register_buffer_api_v2_anyscaled_register_buffer_post(self, buffer_registration, **kwargs): # noqa: E501
|
31213
|
-
"""Register Buffer # noqa: E501
|
31214
|
-
|
31215
|
-
Register a node to receive a per-buffer token. # noqa: E501
|
31216
|
-
This method makes a synchronous HTTP request by default. To make an
|
31217
|
-
asynchronous HTTP request, please pass async_req=True
|
31218
|
-
>>> thread = api.register_buffer_api_v2_anyscaled_register_buffer_post(buffer_registration, async_req=True)
|
31219
|
-
>>> result = thread.get()
|
31220
|
-
|
31221
|
-
:param async_req bool: execute request asynchronously
|
31222
|
-
:param BufferRegistration buffer_registration: (required)
|
31223
|
-
:param _preload_content: if False, the urllib3.HTTPResponse object will
|
31224
|
-
be returned without reading/decoding response
|
31225
|
-
data. Default is True.
|
31226
|
-
:param _request_timeout: timeout setting for this request. If one
|
31227
|
-
number provided, it will be total request
|
31228
|
-
timeout. It can also be a pair (tuple) of
|
31229
|
-
(connection, read) timeouts.
|
31230
|
-
:return: AnyscaledcredentialresponseResponse
|
31231
|
-
If the method is called asynchronously,
|
31232
|
-
returns the request thread.
|
31233
|
-
"""
|
31234
|
-
kwargs['_return_http_data_only'] = True
|
31235
|
-
return self.register_buffer_api_v2_anyscaled_register_buffer_post_with_http_info(buffer_registration, **kwargs) # noqa: E501
|
31236
|
-
|
31237
|
-
def register_buffer_api_v2_anyscaled_register_buffer_post_with_http_info(self, buffer_registration, **kwargs): # noqa: E501
|
31238
|
-
"""Register Buffer # noqa: E501
|
31239
|
-
|
31240
|
-
Register a node to receive a per-buffer token. # noqa: E501
|
31241
|
-
This method makes a synchronous HTTP request by default. To make an
|
31242
|
-
asynchronous HTTP request, please pass async_req=True
|
31243
|
-
>>> thread = api.register_buffer_api_v2_anyscaled_register_buffer_post_with_http_info(buffer_registration, async_req=True)
|
31244
|
-
>>> result = thread.get()
|
31245
|
-
|
31246
|
-
:param async_req bool: execute request asynchronously
|
31247
|
-
:param BufferRegistration buffer_registration: (required)
|
31248
|
-
:param _return_http_data_only: response data without head status code
|
31249
|
-
and headers
|
31250
|
-
:param _preload_content: if False, the urllib3.HTTPResponse object will
|
31251
|
-
be returned without reading/decoding response
|
31252
|
-
data. Default is True.
|
31253
|
-
:param _request_timeout: timeout setting for this request. If one
|
31254
|
-
number provided, it will be total request
|
31255
|
-
timeout. It can also be a pair (tuple) of
|
31256
|
-
(connection, read) timeouts.
|
31257
|
-
:return: tuple(AnyscaledcredentialresponseResponse, status_code(int), headers(HTTPHeaderDict))
|
31258
|
-
If the method is called asynchronously,
|
31259
|
-
returns the request thread.
|
31260
|
-
"""
|
31261
|
-
|
31262
|
-
local_var_params = locals()
|
31263
|
-
|
31264
|
-
all_params = [
|
31265
|
-
'buffer_registration'
|
31266
|
-
]
|
31267
|
-
all_params.extend(
|
31268
|
-
[
|
31269
|
-
'async_req',
|
31270
|
-
'_return_http_data_only',
|
31271
|
-
'_preload_content',
|
31272
|
-
'_request_timeout'
|
31273
|
-
]
|
31274
|
-
)
|
31275
|
-
|
31276
|
-
for key, val in six.iteritems(local_var_params['kwargs']):
|
31277
|
-
if key not in all_params:
|
31278
|
-
raise ApiTypeError(
|
31279
|
-
"Got an unexpected keyword argument '%s'"
|
31280
|
-
" to method register_buffer_api_v2_anyscaled_register_buffer_post" % key
|
31281
|
-
)
|
31282
|
-
local_var_params[key] = val
|
31283
|
-
del local_var_params['kwargs']
|
31284
|
-
# verify the required parameter 'buffer_registration' is set
|
31285
|
-
if self.api_client.client_side_validation and ('buffer_registration' not in local_var_params or # noqa: E501
|
31286
|
-
local_var_params['buffer_registration'] is None): # noqa: E501
|
31287
|
-
raise ApiValueError("Missing the required parameter `buffer_registration` when calling `register_buffer_api_v2_anyscaled_register_buffer_post`") # noqa: E501
|
31288
|
-
|
31289
|
-
collection_formats = {}
|
31290
|
-
|
31291
|
-
path_params = {}
|
31292
|
-
|
31293
|
-
query_params = []
|
31294
|
-
|
31295
|
-
header_params = {}
|
31296
|
-
|
31297
|
-
form_params = []
|
31298
|
-
local_var_files = {}
|
31299
|
-
|
31300
|
-
body_params = None
|
31301
|
-
if 'buffer_registration' in local_var_params:
|
31302
|
-
body_params = local_var_params['buffer_registration']
|
31303
|
-
# HTTP header `Accept`
|
31304
|
-
header_params['Accept'] = self.api_client.select_header_accept(
|
31305
|
-
['application/json']) # noqa: E501
|
31306
|
-
|
31307
|
-
# HTTP header `Content-Type`
|
31308
|
-
header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501
|
31309
|
-
['application/json']) # noqa: E501
|
31310
|
-
|
31311
|
-
# Authentication setting
|
31312
|
-
auth_settings = [] # noqa: E501
|
31313
|
-
|
31314
|
-
return self.api_client.call_api(
|
31315
|
-
'/api/v2/anyscaled/register_buffer', 'POST',
|
31316
|
-
path_params,
|
31317
|
-
query_params,
|
31318
|
-
header_params,
|
31319
|
-
body=body_params,
|
31320
|
-
post_params=form_params,
|
31321
|
-
files=local_var_files,
|
31322
|
-
response_type='AnyscaledcredentialresponseResponse', # noqa: E501
|
31323
|
-
auth_settings=auth_settings,
|
31324
|
-
async_req=local_var_params.get('async_req'),
|
31325
|
-
_return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501
|
31326
|
-
_preload_content=local_var_params.get('_preload_content', True),
|
31327
|
-
_request_timeout=local_var_params.get('_request_timeout'),
|
31328
|
-
collection_formats=collection_formats)
|
31329
|
-
|
31330
31361
|
def register_build_api_v2_anyscaled_register_build_post(self, build_registration, **kwargs): # noqa: E501
|
31331
31362
|
"""Register Build # noqa: E501
|
31332
31363
|
|
@@ -61,7 +61,6 @@ from openapi_client.models.batched_result_organization_invitation_base import Ba
|
|
61
61
|
from openapi_client.models.billing_information import BillingInformation
|
62
62
|
from openapi_client.models.billing_version_code import BillingVersionCode
|
63
63
|
from openapi_client.models.body_aws_marketplace_registration_api_v2_organization_billing_aws_marketplace_registration_post import BodyAwsMarketplaceRegistrationApiV2OrganizationBillingAwsMarketplaceRegistrationPost
|
64
|
-
from openapi_client.models.buffer_registration import BufferRegistration
|
65
64
|
from openapi_client.models.build import Build
|
66
65
|
from openapi_client.models.build_log_response import BuildLogResponse
|
67
66
|
from openapi_client.models.build_registration import BuildRegistration
|
@@ -530,18 +529,18 @@ from openapi_client.models.subnet_id_with_availability_zone_aws import SubnetIdW
|
|
530
529
|
from openapi_client.models.support_requests_query import SupportRequestsQuery
|
531
530
|
from openapi_client.models.system_workload_name import SystemWorkloadName
|
532
531
|
from openapi_client.models.task_exception_group_aggregate import TaskExceptionGroupAggregate
|
532
|
+
from openapi_client.models.task_exception_group_aggregate_response import TaskExceptionGroupAggregateResponse
|
533
533
|
from openapi_client.models.task_function_name_group_aggregate import TaskFunctionNameGroupAggregate
|
534
|
+
from openapi_client.models.task_function_name_group_aggregate_response import TaskFunctionNameGroupAggregateResponse
|
534
535
|
from openapi_client.models.task_grouped_aggregate_metrics import TaskGroupedAggregateMetrics
|
535
536
|
from openapi_client.models.task_job_group_aggregate import TaskJobGroupAggregate
|
537
|
+
from openapi_client.models.task_job_group_aggregate_response import TaskJobGroupAggregateResponse
|
536
538
|
from openapi_client.models.task_state import TaskState
|
537
539
|
from openapi_client.models.task_summary import TaskSummary
|
538
540
|
from openapi_client.models.task_table_config import TaskTableConfig
|
539
541
|
from openapi_client.models.task_table_response import TaskTableResponse
|
540
542
|
from openapi_client.models.task_table_row import TaskTableRow
|
541
543
|
from openapi_client.models.task_type import TaskType
|
542
|
-
from openapi_client.models.taskexceptiongroupaggregate_list_response import TaskexceptiongroupaggregateListResponse
|
543
|
-
from openapi_client.models.taskfunctionnamegroupaggregate_list_response import TaskfunctionnamegroupaggregateListResponse
|
544
|
-
from openapi_client.models.taskjobgroupaggregate_list_response import TaskjobgroupaggregateListResponse
|
545
544
|
from openapi_client.models.tasksummary_response import TasksummaryResponse
|
546
545
|
from openapi_client.models.templatized_compute_configs import TemplatizedComputeConfigs
|
547
546
|
from openapi_client.models.templatized_decorated_application_templates import TemplatizedDecoratedApplicationTemplates
|
@@ -34,25 +34,29 @@ class TaskExceptionGroupAggregate(object):
|
|
34
34
|
"""
|
35
35
|
openapi_types = {
|
36
36
|
'exception_type': 'str',
|
37
|
+
'ray_session_name': 'str',
|
37
38
|
'metrics': 'TaskGroupedAggregateMetrics'
|
38
39
|
}
|
39
40
|
|
40
41
|
attribute_map = {
|
41
42
|
'exception_type': 'exception_type',
|
43
|
+
'ray_session_name': 'ray_session_name',
|
42
44
|
'metrics': 'metrics'
|
43
45
|
}
|
44
46
|
|
45
|
-
def __init__(self, exception_type=None, metrics=None, local_vars_configuration=None): # noqa: E501
|
47
|
+
def __init__(self, exception_type=None, ray_session_name=None, metrics=None, local_vars_configuration=None): # noqa: E501
|
46
48
|
"""TaskExceptionGroupAggregate - a model defined in OpenAPI""" # noqa: E501
|
47
49
|
if local_vars_configuration is None:
|
48
50
|
local_vars_configuration = Configuration()
|
49
51
|
self.local_vars_configuration = local_vars_configuration
|
50
52
|
|
51
53
|
self._exception_type = None
|
54
|
+
self._ray_session_name = None
|
52
55
|
self._metrics = None
|
53
56
|
self.discriminator = None
|
54
57
|
|
55
58
|
self.exception_type = exception_type
|
59
|
+
self.ray_session_name = ray_session_name
|
56
60
|
self.metrics = metrics
|
57
61
|
|
58
62
|
@property
|
@@ -78,6 +82,29 @@ class TaskExceptionGroupAggregate(object):
|
|
78
82
|
|
79
83
|
self._exception_type = exception_type
|
80
84
|
|
85
|
+
@property
|
86
|
+
def ray_session_name(self):
|
87
|
+
"""Gets the ray_session_name of this TaskExceptionGroupAggregate. # noqa: E501
|
88
|
+
|
89
|
+
|
90
|
+
:return: The ray_session_name of this TaskExceptionGroupAggregate. # noqa: E501
|
91
|
+
:rtype: str
|
92
|
+
"""
|
93
|
+
return self._ray_session_name
|
94
|
+
|
95
|
+
@ray_session_name.setter
|
96
|
+
def ray_session_name(self, ray_session_name):
|
97
|
+
"""Sets the ray_session_name of this TaskExceptionGroupAggregate.
|
98
|
+
|
99
|
+
|
100
|
+
:param ray_session_name: The ray_session_name of this TaskExceptionGroupAggregate. # noqa: E501
|
101
|
+
:type: str
|
102
|
+
"""
|
103
|
+
if self.local_vars_configuration.client_side_validation and ray_session_name is None: # noqa: E501
|
104
|
+
raise ValueError("Invalid value for `ray_session_name`, must not be `None`") # noqa: E501
|
105
|
+
|
106
|
+
self._ray_session_name = ray_session_name
|
107
|
+
|
81
108
|
@property
|
82
109
|
def metrics(self):
|
83
110
|
"""Gets the metrics of this TaskExceptionGroupAggregate. # noqa: E501
|