anyscale 0.26.47__py3-none-any.whl → 0.26.48__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/__init__.py +0 -7
- anyscale/_private/anyscale_client/anyscale_client.py +1 -208
- anyscale/_private/anyscale_client/common.py +0 -55
- anyscale/_private/anyscale_client/fake_anyscale_client.py +19 -46
- anyscale/_private/docgen/__main__.py +24 -45
- anyscale/_private/docgen/generator.py +32 -16
- anyscale/_private/docgen/generator_legacy.py +58 -6
- anyscale/_private/docgen/models.md +3 -2
- anyscale/_private/workload/workload_config.py +16 -8
- anyscale/_private/workload/workload_sdk.py +22 -5
- anyscale/client/README.md +4 -1
- anyscale/client/openapi_client/__init__.py +2 -1
- anyscale/client/openapi_client/api/default_api.py +253 -4
- anyscale/client/openapi_client/models/__init__.py +2 -1
- anyscale/client/openapi_client/models/{alert_type.py → alert_issue_type.py} +8 -20
- anyscale/client/openapi_client/models/baseimagesenum.py +1 -2
- anyscale/client/openapi_client/models/cloud.py +31 -3
- anyscale/client/openapi_client/models/cloud_deployment.py +30 -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 +6 -6
- anyscale/client/openapi_client/models/dataset_state.py +2 -1
- anyscale/client/openapi_client/models/describe_system_workload_response.py +32 -6
- anyscale/client/openapi_client/models/experimental_workspace.py +29 -1
- anyscale/client/openapi_client/models/experimental_workspaces_sort_field.py +2 -1
- anyscale/client/openapi_client/models/operator_metrics.py +8 -9
- anyscale/client/openapi_client/models/operator_status.py +102 -0
- anyscale/client/openapi_client/models/organization_usage_alert.py +20 -20
- anyscale/client/openapi_client/models/supportedbaseimagesenum.py +1 -2
- anyscale/cloud/models.py +330 -0
- anyscale/commands/cloud_commands.py +132 -43
- anyscale/commands/command_examples.py +54 -134
- anyscale/commands/compute_config_commands.py +7 -11
- anyscale/compute_config/__init__.py +2 -16
- anyscale/compute_config/_private/compute_config_sdk.py +27 -17
- anyscale/compute_config/commands.py +14 -44
- anyscale/compute_config/models.py +49 -26
- anyscale/controllers/cloud_controller.py +289 -171
- anyscale/controllers/cloud_file_storage_utils.py +204 -0
- anyscale/controllers/kubernetes_verifier.py +1567 -0
- anyscale/job/_private/job_sdk.py +17 -8
- anyscale/job/models.py +1 -1
- anyscale/scripts.py +0 -2
- anyscale/sdk/anyscale_client/models/baseimagesenum.py +1 -2
- anyscale/sdk/anyscale_client/models/cloud.py +31 -3
- anyscale/sdk/anyscale_client/models/supportedbaseimagesenum.py +1 -2
- anyscale/shared_anyscale_utils/utils/id_gen.py +1 -0
- anyscale/version.py +1 -1
- anyscale/workspace/models.py +14 -7
- {anyscale-0.26.47.dist-info → anyscale-0.26.48.dist-info}/METADATA +1 -1
- {anyscale-0.26.47.dist-info → anyscale-0.26.48.dist-info}/RECORD +56 -70
- anyscale/commands/llm/dataset_commands.py +0 -269
- anyscale/commands/llm/group.py +0 -15
- anyscale/commands/llm/models_commands.py +0 -123
- anyscale/controllers/llm/__init__.py +0 -0
- anyscale/controllers/llm/models_controller.py +0 -144
- anyscale/llm/__init__.py +0 -2
- anyscale/llm/dataset/__init__.py +0 -2
- anyscale/llm/dataset/_private/__init__.py +0 -0
- anyscale/llm/dataset/_private/docs.py +0 -63
- anyscale/llm/dataset/_private/models.py +0 -71
- anyscale/llm/dataset/_private/sdk.py +0 -147
- anyscale/llm/model/__init__.py +0 -2
- anyscale/llm/model/_private/models_sdk.py +0 -62
- anyscale/llm/model/commands.py +0 -93
- anyscale/llm/model/models.py +0 -171
- anyscale/llm/model/sdk.py +0 -62
- anyscale/llm/sdk.py +0 -27
- {anyscale-0.26.47.dist-info → anyscale-0.26.48.dist-info}/WHEEL +0 -0
- {anyscale-0.26.47.dist-info → anyscale-0.26.48.dist-info}/entry_points.txt +0 -0
- {anyscale-0.26.47.dist-info → anyscale-0.26.48.dist-info}/licenses/LICENSE +0 -0
- {anyscale-0.26.47.dist-info → anyscale-0.26.48.dist-info}/licenses/NOTICE +0 -0
- {anyscale-0.26.47.dist-info → anyscale-0.26.48.dist-info}/top_level.txt +0 -0
@@ -59,6 +59,7 @@ class CloudWithCloudResource(object):
|
|
59
59
|
'customer_aggregated_logs_config_id': 'str',
|
60
60
|
'additional_instance_types': 'list[UXInstance]',
|
61
61
|
'is_aggregated_logs_enabled': 'bool',
|
62
|
+
'system_cluster_config_id': 'str',
|
62
63
|
'cloud_resource': 'CloudResource'
|
63
64
|
}
|
64
65
|
|
@@ -89,10 +90,11 @@ class CloudWithCloudResource(object):
|
|
89
90
|
'customer_aggregated_logs_config_id': 'customer_aggregated_logs_config_id',
|
90
91
|
'additional_instance_types': 'additional_instance_types',
|
91
92
|
'is_aggregated_logs_enabled': 'is_aggregated_logs_enabled',
|
93
|
+
'system_cluster_config_id': 'system_cluster_config_id',
|
92
94
|
'cloud_resource': 'cloud_resource'
|
93
95
|
}
|
94
96
|
|
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
|
97
|
+
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, system_cluster_config_id=None, cloud_resource=None, local_vars_configuration=None): # noqa: E501
|
96
98
|
"""CloudWithCloudResource - a model defined in OpenAPI""" # noqa: E501
|
97
99
|
if local_vars_configuration is None:
|
98
100
|
local_vars_configuration = Configuration()
|
@@ -124,6 +126,7 @@ class CloudWithCloudResource(object):
|
|
124
126
|
self._customer_aggregated_logs_config_id = None
|
125
127
|
self._additional_instance_types = None
|
126
128
|
self._is_aggregated_logs_enabled = None
|
129
|
+
self._system_cluster_config_id = None
|
127
130
|
self._cloud_resource = None
|
128
131
|
self.discriminator = None
|
129
132
|
|
@@ -169,6 +172,8 @@ class CloudWithCloudResource(object):
|
|
169
172
|
self.additional_instance_types = additional_instance_types
|
170
173
|
if is_aggregated_logs_enabled is not None:
|
171
174
|
self.is_aggregated_logs_enabled = is_aggregated_logs_enabled
|
175
|
+
if system_cluster_config_id is not None:
|
176
|
+
self.system_cluster_config_id = system_cluster_config_id
|
172
177
|
if cloud_resource is not None:
|
173
178
|
self.cloud_resource = cloud_resource
|
174
179
|
|
@@ -788,6 +793,29 @@ class CloudWithCloudResource(object):
|
|
788
793
|
|
789
794
|
self._is_aggregated_logs_enabled = is_aggregated_logs_enabled
|
790
795
|
|
796
|
+
@property
|
797
|
+
def system_cluster_config_id(self):
|
798
|
+
"""Gets the system_cluster_config_id of this CloudWithCloudResource. # noqa: E501
|
799
|
+
|
800
|
+
the id of the system cluster config associated with this cloud. # noqa: E501
|
801
|
+
|
802
|
+
:return: The system_cluster_config_id of this CloudWithCloudResource. # noqa: E501
|
803
|
+
:rtype: str
|
804
|
+
"""
|
805
|
+
return self._system_cluster_config_id
|
806
|
+
|
807
|
+
@system_cluster_config_id.setter
|
808
|
+
def system_cluster_config_id(self, system_cluster_config_id):
|
809
|
+
"""Sets the system_cluster_config_id of this CloudWithCloudResource.
|
810
|
+
|
811
|
+
the id of the system cluster config associated with this cloud. # noqa: E501
|
812
|
+
|
813
|
+
:param system_cluster_config_id: The system_cluster_config_id of this CloudWithCloudResource. # noqa: E501
|
814
|
+
:type: str
|
815
|
+
"""
|
816
|
+
|
817
|
+
self._system_cluster_config_id = system_cluster_config_id
|
818
|
+
|
791
819
|
@property
|
792
820
|
def cloud_resource(self):
|
793
821
|
"""Gets the cloud_resource of this CloudWithCloudResource. # noqa: E501
|
@@ -59,6 +59,7 @@ class CloudWithCloudResourceGCP(object):
|
|
59
59
|
'customer_aggregated_logs_config_id': 'str',
|
60
60
|
'additional_instance_types': 'list[UXInstance]',
|
61
61
|
'is_aggregated_logs_enabled': 'bool',
|
62
|
+
'system_cluster_config_id': 'str',
|
62
63
|
'cloud_resource': 'CloudResourceGCP'
|
63
64
|
}
|
64
65
|
|
@@ -89,10 +90,11 @@ class CloudWithCloudResourceGCP(object):
|
|
89
90
|
'customer_aggregated_logs_config_id': 'customer_aggregated_logs_config_id',
|
90
91
|
'additional_instance_types': 'additional_instance_types',
|
91
92
|
'is_aggregated_logs_enabled': 'is_aggregated_logs_enabled',
|
93
|
+
'system_cluster_config_id': 'system_cluster_config_id',
|
92
94
|
'cloud_resource': 'cloud_resource'
|
93
95
|
}
|
94
96
|
|
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
|
97
|
+
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, system_cluster_config_id=None, cloud_resource=None, local_vars_configuration=None): # noqa: E501
|
96
98
|
"""CloudWithCloudResourceGCP - a model defined in OpenAPI""" # noqa: E501
|
97
99
|
if local_vars_configuration is None:
|
98
100
|
local_vars_configuration = Configuration()
|
@@ -124,6 +126,7 @@ class CloudWithCloudResourceGCP(object):
|
|
124
126
|
self._customer_aggregated_logs_config_id = None
|
125
127
|
self._additional_instance_types = None
|
126
128
|
self._is_aggregated_logs_enabled = None
|
129
|
+
self._system_cluster_config_id = None
|
127
130
|
self._cloud_resource = None
|
128
131
|
self.discriminator = None
|
129
132
|
|
@@ -169,6 +172,8 @@ class CloudWithCloudResourceGCP(object):
|
|
169
172
|
self.additional_instance_types = additional_instance_types
|
170
173
|
if is_aggregated_logs_enabled is not None:
|
171
174
|
self.is_aggregated_logs_enabled = is_aggregated_logs_enabled
|
175
|
+
if system_cluster_config_id is not None:
|
176
|
+
self.system_cluster_config_id = system_cluster_config_id
|
172
177
|
if cloud_resource is not None:
|
173
178
|
self.cloud_resource = cloud_resource
|
174
179
|
|
@@ -788,6 +793,29 @@ class CloudWithCloudResourceGCP(object):
|
|
788
793
|
|
789
794
|
self._is_aggregated_logs_enabled = is_aggregated_logs_enabled
|
790
795
|
|
796
|
+
@property
|
797
|
+
def system_cluster_config_id(self):
|
798
|
+
"""Gets the system_cluster_config_id of this CloudWithCloudResourceGCP. # noqa: E501
|
799
|
+
|
800
|
+
the id of the system cluster config associated with this cloud. # noqa: E501
|
801
|
+
|
802
|
+
:return: The system_cluster_config_id of this CloudWithCloudResourceGCP. # noqa: E501
|
803
|
+
:rtype: str
|
804
|
+
"""
|
805
|
+
return self._system_cluster_config_id
|
806
|
+
|
807
|
+
@system_cluster_config_id.setter
|
808
|
+
def system_cluster_config_id(self, system_cluster_config_id):
|
809
|
+
"""Sets the system_cluster_config_id of this CloudWithCloudResourceGCP.
|
810
|
+
|
811
|
+
the id of the system cluster config associated with this cloud. # noqa: E501
|
812
|
+
|
813
|
+
:param system_cluster_config_id: The system_cluster_config_id of this CloudWithCloudResourceGCP. # noqa: E501
|
814
|
+
:type: str
|
815
|
+
"""
|
816
|
+
|
817
|
+
self._system_cluster_config_id = system_cluster_config_id
|
818
|
+
|
791
819
|
@property
|
792
820
|
def cloud_resource(self):
|
793
821
|
"""Gets the cloud_resource of this CloudWithCloudResourceGCP. # noqa: E501
|
@@ -40,8 +40,8 @@ class DatasetMetrics(object):
|
|
40
40
|
'state': 'DatasetState',
|
41
41
|
'progress': 'int',
|
42
42
|
'total': 'int',
|
43
|
-
'start_time': '
|
44
|
-
'end_time': '
|
43
|
+
'start_time': 'float',
|
44
|
+
'end_time': 'float',
|
45
45
|
'operator_metrics': 'list[OperatorMetrics]',
|
46
46
|
'metrics': 'dict(str, Metric)'
|
47
47
|
}
|
@@ -258,7 +258,7 @@ class DatasetMetrics(object):
|
|
258
258
|
|
259
259
|
|
260
260
|
:return: The start_time of this DatasetMetrics. # noqa: E501
|
261
|
-
:rtype:
|
261
|
+
:rtype: float
|
262
262
|
"""
|
263
263
|
return self._start_time
|
264
264
|
|
@@ -268,7 +268,7 @@ class DatasetMetrics(object):
|
|
268
268
|
|
269
269
|
|
270
270
|
:param start_time: The start_time of this DatasetMetrics. # noqa: E501
|
271
|
-
:type:
|
271
|
+
:type: float
|
272
272
|
"""
|
273
273
|
if self.local_vars_configuration.client_side_validation and start_time is None: # noqa: E501
|
274
274
|
raise ValueError("Invalid value for `start_time`, must not be `None`") # noqa: E501
|
@@ -281,7 +281,7 @@ class DatasetMetrics(object):
|
|
281
281
|
|
282
282
|
|
283
283
|
:return: The end_time of this DatasetMetrics. # noqa: E501
|
284
|
-
:rtype:
|
284
|
+
:rtype: float
|
285
285
|
"""
|
286
286
|
return self._end_time
|
287
287
|
|
@@ -291,7 +291,7 @@ class DatasetMetrics(object):
|
|
291
291
|
|
292
292
|
|
293
293
|
:param end_time: The end_time of this DatasetMetrics. # noqa: E501
|
294
|
-
:type:
|
294
|
+
:type: float
|
295
295
|
"""
|
296
296
|
|
297
297
|
self._end_time = end_time
|
@@ -32,8 +32,9 @@ class DatasetState(object):
|
|
32
32
|
RUNNING = "RUNNING"
|
33
33
|
FAILED = "FAILED"
|
34
34
|
FINISHED = "FINISHED"
|
35
|
+
PENDING = "PENDING"
|
35
36
|
|
36
|
-
allowable_values = [UNKNOWN, RUNNING, FAILED, FINISHED] # noqa: E501
|
37
|
+
allowable_values = [UNKNOWN, RUNNING, FAILED, FINISHED, PENDING] # noqa: E501
|
37
38
|
|
38
39
|
"""
|
39
40
|
Attributes:
|
@@ -37,7 +37,8 @@ class DescribeSystemWorkloadResponse(object):
|
|
37
37
|
'workload_names': 'list[SystemWorkloadName]',
|
38
38
|
'workload_service_url': 'str',
|
39
39
|
'workload_service_url_auth': 'str',
|
40
|
-
'status': 'ClusterState'
|
40
|
+
'status': 'ClusterState',
|
41
|
+
'is_enabled': 'bool'
|
41
42
|
}
|
42
43
|
|
43
44
|
attribute_map = {
|
@@ -45,10 +46,11 @@ class DescribeSystemWorkloadResponse(object):
|
|
45
46
|
'workload_names': 'workload_names',
|
46
47
|
'workload_service_url': 'workload_service_url',
|
47
48
|
'workload_service_url_auth': 'workload_service_url_auth',
|
48
|
-
'status': 'status'
|
49
|
+
'status': 'status',
|
50
|
+
'is_enabled': 'is_enabled'
|
49
51
|
}
|
50
52
|
|
51
|
-
def __init__(self, cluster_id=None, workload_names=None, workload_service_url=None, workload_service_url_auth=None, status=None, local_vars_configuration=None): # noqa: E501
|
53
|
+
def __init__(self, cluster_id=None, workload_names=None, workload_service_url=None, workload_service_url_auth=None, status=None, is_enabled=None, local_vars_configuration=None): # noqa: E501
|
52
54
|
"""DescribeSystemWorkloadResponse - a model defined in OpenAPI""" # noqa: E501
|
53
55
|
if local_vars_configuration is None:
|
54
56
|
local_vars_configuration = Configuration()
|
@@ -59,9 +61,11 @@ class DescribeSystemWorkloadResponse(object):
|
|
59
61
|
self._workload_service_url = None
|
60
62
|
self._workload_service_url_auth = None
|
61
63
|
self._status = None
|
64
|
+
self._is_enabled = None
|
62
65
|
self.discriminator = None
|
63
66
|
|
64
|
-
|
67
|
+
if cluster_id is not None:
|
68
|
+
self.cluster_id = cluster_id
|
65
69
|
self.workload_names = workload_names
|
66
70
|
if workload_service_url is not None:
|
67
71
|
self.workload_service_url = workload_service_url
|
@@ -69,6 +73,7 @@ class DescribeSystemWorkloadResponse(object):
|
|
69
73
|
self.workload_service_url_auth = workload_service_url_auth
|
70
74
|
if status is not None:
|
71
75
|
self.status = status
|
76
|
+
self.is_enabled = is_enabled
|
72
77
|
|
73
78
|
@property
|
74
79
|
def cluster_id(self):
|
@@ -88,8 +93,6 @@ class DescribeSystemWorkloadResponse(object):
|
|
88
93
|
:param cluster_id: The cluster_id of this DescribeSystemWorkloadResponse. # noqa: E501
|
89
94
|
:type: str
|
90
95
|
"""
|
91
|
-
if self.local_vars_configuration.client_side_validation and cluster_id is None: # noqa: E501
|
92
|
-
raise ValueError("Invalid value for `cluster_id`, must not be `None`") # noqa: E501
|
93
96
|
|
94
97
|
self._cluster_id = cluster_id
|
95
98
|
|
@@ -179,6 +182,29 @@ class DescribeSystemWorkloadResponse(object):
|
|
179
182
|
|
180
183
|
self._status = status
|
181
184
|
|
185
|
+
@property
|
186
|
+
def is_enabled(self):
|
187
|
+
"""Gets the is_enabled of this DescribeSystemWorkloadResponse. # noqa: E501
|
188
|
+
|
189
|
+
|
190
|
+
:return: The is_enabled of this DescribeSystemWorkloadResponse. # noqa: E501
|
191
|
+
:rtype: bool
|
192
|
+
"""
|
193
|
+
return self._is_enabled
|
194
|
+
|
195
|
+
@is_enabled.setter
|
196
|
+
def is_enabled(self, is_enabled):
|
197
|
+
"""Sets the is_enabled of this DescribeSystemWorkloadResponse.
|
198
|
+
|
199
|
+
|
200
|
+
:param is_enabled: The is_enabled of this DescribeSystemWorkloadResponse. # noqa: E501
|
201
|
+
:type: bool
|
202
|
+
"""
|
203
|
+
if self.local_vars_configuration.client_side_validation and is_enabled is None: # noqa: E501
|
204
|
+
raise ValueError("Invalid value for `is_enabled`, must not be `None`") # noqa: E501
|
205
|
+
|
206
|
+
self._is_enabled = is_enabled
|
207
|
+
|
182
208
|
def to_dict(self):
|
183
209
|
"""Returns the model properties as a dict"""
|
184
210
|
result = {}
|
@@ -54,6 +54,7 @@ class ExperimentalWorkspace(object):
|
|
54
54
|
'template_url': 'str',
|
55
55
|
'snapshot_error_at': 'datetime',
|
56
56
|
'snapshot_state': 'WorkspaceSnapshotStates',
|
57
|
+
'latest_started_at': 'datetime',
|
57
58
|
'state': 'SessionState',
|
58
59
|
'integration_details': 'IntegrationDetails'
|
59
60
|
}
|
@@ -80,11 +81,12 @@ class ExperimentalWorkspace(object):
|
|
80
81
|
'template_url': 'template_url',
|
81
82
|
'snapshot_error_at': 'snapshot_error_at',
|
82
83
|
'snapshot_state': 'snapshot_state',
|
84
|
+
'latest_started_at': 'latest_started_at',
|
83
85
|
'state': 'state',
|
84
86
|
'integration_details': 'integration_details'
|
85
87
|
}
|
86
88
|
|
87
|
-
def __init__(self, name=None, description=None, project_id=None, cloud_id=None, compute_config_id=None, base_snapshot=None, id=None, created_at=None, creator_id=None, creator_email=None, creator_deleted_at=None, organization_id=None, is_deleted=None, cluster_id=None, environment_id=None, cluster_environment_build_id=None, current_state=None, integration_execution_details_id=None, template_url=None, snapshot_error_at=None, snapshot_state=None, state=None, integration_details=None, local_vars_configuration=None): # noqa: E501
|
89
|
+
def __init__(self, name=None, description=None, project_id=None, cloud_id=None, compute_config_id=None, base_snapshot=None, id=None, created_at=None, creator_id=None, creator_email=None, creator_deleted_at=None, organization_id=None, is_deleted=None, cluster_id=None, environment_id=None, cluster_environment_build_id=None, current_state=None, integration_execution_details_id=None, template_url=None, snapshot_error_at=None, snapshot_state=None, latest_started_at=None, state=None, integration_details=None, local_vars_configuration=None): # noqa: E501
|
88
90
|
"""ExperimentalWorkspace - a model defined in OpenAPI""" # noqa: E501
|
89
91
|
if local_vars_configuration is None:
|
90
92
|
local_vars_configuration = Configuration()
|
@@ -111,6 +113,7 @@ class ExperimentalWorkspace(object):
|
|
111
113
|
self._template_url = None
|
112
114
|
self._snapshot_error_at = None
|
113
115
|
self._snapshot_state = None
|
116
|
+
self._latest_started_at = None
|
114
117
|
self._state = None
|
115
118
|
self._integration_details = None
|
116
119
|
self.discriminator = None
|
@@ -147,6 +150,8 @@ class ExperimentalWorkspace(object):
|
|
147
150
|
self.snapshot_error_at = snapshot_error_at
|
148
151
|
if snapshot_state is not None:
|
149
152
|
self.snapshot_state = snapshot_state
|
153
|
+
if latest_started_at is not None:
|
154
|
+
self.latest_started_at = latest_started_at
|
150
155
|
if state is not None:
|
151
156
|
self.state = state
|
152
157
|
if integration_details is not None:
|
@@ -655,6 +660,29 @@ class ExperimentalWorkspace(object):
|
|
655
660
|
|
656
661
|
self._snapshot_state = snapshot_state
|
657
662
|
|
663
|
+
@property
|
664
|
+
def latest_started_at(self):
|
665
|
+
"""Gets the latest_started_at of this ExperimentalWorkspace. # noqa: E501
|
666
|
+
|
667
|
+
The time at which the workspace was last started. # noqa: E501
|
668
|
+
|
669
|
+
:return: The latest_started_at of this ExperimentalWorkspace. # noqa: E501
|
670
|
+
:rtype: datetime
|
671
|
+
"""
|
672
|
+
return self._latest_started_at
|
673
|
+
|
674
|
+
@latest_started_at.setter
|
675
|
+
def latest_started_at(self, latest_started_at):
|
676
|
+
"""Sets the latest_started_at of this ExperimentalWorkspace.
|
677
|
+
|
678
|
+
The time at which the workspace was last started. # noqa: E501
|
679
|
+
|
680
|
+
:param latest_started_at: The latest_started_at of this ExperimentalWorkspace. # noqa: E501
|
681
|
+
:type: datetime
|
682
|
+
"""
|
683
|
+
|
684
|
+
self._latest_started_at = latest_started_at
|
685
|
+
|
658
686
|
@property
|
659
687
|
def state(self):
|
660
688
|
"""Gets the state of this ExperimentalWorkspace. # noqa: E501
|
@@ -30,8 +30,9 @@ class ExperimentalWorkspacesSortField(object):
|
|
30
30
|
"""
|
31
31
|
STATUS = "STATUS"
|
32
32
|
CREATED_AT = "CREATED_AT"
|
33
|
+
LATEST_STARTED_AT = "LATEST_STARTED_AT"
|
33
34
|
|
34
|
-
allowable_values = [STATUS, CREATED_AT] # noqa: E501
|
35
|
+
allowable_values = [STATUS, CREATED_AT, LATEST_STARTED_AT] # noqa: E501
|
35
36
|
|
36
37
|
"""
|
37
38
|
Attributes:
|
@@ -38,8 +38,8 @@ class OperatorMetrics(object):
|
|
38
38
|
'state': 'DatasetState',
|
39
39
|
'progress': 'int',
|
40
40
|
'total': 'int',
|
41
|
-
'start_time': '
|
42
|
-
'end_time': '
|
41
|
+
'start_time': 'float',
|
42
|
+
'end_time': 'float',
|
43
43
|
'metrics': 'dict(str, Metric)'
|
44
44
|
}
|
45
45
|
|
@@ -76,7 +76,8 @@ class OperatorMetrics(object):
|
|
76
76
|
self.progress = progress
|
77
77
|
if total is not None:
|
78
78
|
self.total = total
|
79
|
-
|
79
|
+
if start_time is not None:
|
80
|
+
self.start_time = start_time
|
80
81
|
if end_time is not None:
|
81
82
|
self.end_time = end_time
|
82
83
|
self.metrics = metrics
|
@@ -200,7 +201,7 @@ class OperatorMetrics(object):
|
|
200
201
|
|
201
202
|
|
202
203
|
:return: The start_time of this OperatorMetrics. # noqa: E501
|
203
|
-
:rtype:
|
204
|
+
:rtype: float
|
204
205
|
"""
|
205
206
|
return self._start_time
|
206
207
|
|
@@ -210,10 +211,8 @@ class OperatorMetrics(object):
|
|
210
211
|
|
211
212
|
|
212
213
|
:param start_time: The start_time of this OperatorMetrics. # noqa: E501
|
213
|
-
:type:
|
214
|
+
:type: float
|
214
215
|
"""
|
215
|
-
if self.local_vars_configuration.client_side_validation and start_time is None: # noqa: E501
|
216
|
-
raise ValueError("Invalid value for `start_time`, must not be `None`") # noqa: E501
|
217
216
|
|
218
217
|
self._start_time = start_time
|
219
218
|
|
@@ -223,7 +222,7 @@ class OperatorMetrics(object):
|
|
223
222
|
|
224
223
|
|
225
224
|
:return: The end_time of this OperatorMetrics. # noqa: E501
|
226
|
-
:rtype:
|
225
|
+
:rtype: float
|
227
226
|
"""
|
228
227
|
return self._end_time
|
229
228
|
|
@@ -233,7 +232,7 @@ class OperatorMetrics(object):
|
|
233
232
|
|
234
233
|
|
235
234
|
:param end_time: The end_time of this OperatorMetrics. # noqa: E501
|
236
|
-
:type:
|
235
|
+
:type: float
|
237
236
|
"""
|
238
237
|
|
239
238
|
self._end_time = end_time
|
@@ -0,0 +1,102 @@
|
|
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 OperatorStatus(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
|
+
UNSPECIFIED = "OPERATOR_STATUS_UNSPECIFIED"
|
32
|
+
HEALTHY = "OPERATOR_STATUS_HEALTHY"
|
33
|
+
UNHEALTHY = "OPERATOR_STATUS_UNHEALTHY"
|
34
|
+
DISCONNECTED = "OPERATOR_STATUS_DISCONNECTED"
|
35
|
+
|
36
|
+
allowable_values = [UNSPECIFIED, HEALTHY, UNHEALTHY, DISCONNECTED] # noqa: E501
|
37
|
+
|
38
|
+
"""
|
39
|
+
Attributes:
|
40
|
+
openapi_types (dict): The key is attribute name
|
41
|
+
and the value is attribute type.
|
42
|
+
attribute_map (dict): The key is attribute name
|
43
|
+
and the value is json key in definition.
|
44
|
+
"""
|
45
|
+
openapi_types = {
|
46
|
+
}
|
47
|
+
|
48
|
+
attribute_map = {
|
49
|
+
}
|
50
|
+
|
51
|
+
def __init__(self, local_vars_configuration=None): # noqa: E501
|
52
|
+
"""OperatorStatus - a model defined in OpenAPI""" # noqa: E501
|
53
|
+
if local_vars_configuration is None:
|
54
|
+
local_vars_configuration = Configuration()
|
55
|
+
self.local_vars_configuration = local_vars_configuration
|
56
|
+
self.discriminator = None
|
57
|
+
|
58
|
+
def to_dict(self):
|
59
|
+
"""Returns the model properties as a dict"""
|
60
|
+
result = {}
|
61
|
+
|
62
|
+
for attr, _ in six.iteritems(self.openapi_types):
|
63
|
+
value = getattr(self, attr)
|
64
|
+
if isinstance(value, list):
|
65
|
+
result[attr] = list(map(
|
66
|
+
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
67
|
+
value
|
68
|
+
))
|
69
|
+
elif hasattr(value, "to_dict"):
|
70
|
+
result[attr] = value.to_dict()
|
71
|
+
elif isinstance(value, dict):
|
72
|
+
result[attr] = dict(map(
|
73
|
+
lambda item: (item[0], item[1].to_dict())
|
74
|
+
if hasattr(item[1], "to_dict") else item,
|
75
|
+
value.items()
|
76
|
+
))
|
77
|
+
else:
|
78
|
+
result[attr] = value
|
79
|
+
|
80
|
+
return result
|
81
|
+
|
82
|
+
def to_str(self):
|
83
|
+
"""Returns the string representation of the model"""
|
84
|
+
return pprint.pformat(self.to_dict())
|
85
|
+
|
86
|
+
def __repr__(self):
|
87
|
+
"""For `print` and `pprint`"""
|
88
|
+
return self.to_str()
|
89
|
+
|
90
|
+
def __eq__(self, other):
|
91
|
+
"""Returns true if both objects are equal"""
|
92
|
+
if not isinstance(other, OperatorStatus):
|
93
|
+
return False
|
94
|
+
|
95
|
+
return self.to_dict() == other.to_dict()
|
96
|
+
|
97
|
+
def __ne__(self, other):
|
98
|
+
"""Returns true if both objects are not equal"""
|
99
|
+
if not isinstance(other, OperatorStatus):
|
100
|
+
return True
|
101
|
+
|
102
|
+
return self.to_dict() != other.to_dict()
|
@@ -33,60 +33,60 @@ class OrganizationUsageAlert(object):
|
|
33
33
|
and the value is json key in definition.
|
34
34
|
"""
|
35
35
|
openapi_types = {
|
36
|
-
'
|
36
|
+
'issue_type': 'AlertIssueType',
|
37
37
|
'severity': 'OrganizationUsageAlertSeverity',
|
38
38
|
'status': 'CustomerAlertStatus',
|
39
39
|
'permission_level': 'OrganizationPermissionLevel'
|
40
40
|
}
|
41
41
|
|
42
42
|
attribute_map = {
|
43
|
-
'
|
43
|
+
'issue_type': 'issueType',
|
44
44
|
'severity': 'severity',
|
45
45
|
'status': 'status',
|
46
46
|
'permission_level': 'permission_level'
|
47
47
|
}
|
48
48
|
|
49
|
-
def __init__(self,
|
49
|
+
def __init__(self, issue_type=None, severity=None, status=None, permission_level=None, local_vars_configuration=None): # noqa: E501
|
50
50
|
"""OrganizationUsageAlert - a model defined in OpenAPI""" # noqa: E501
|
51
51
|
if local_vars_configuration is None:
|
52
52
|
local_vars_configuration = Configuration()
|
53
53
|
self.local_vars_configuration = local_vars_configuration
|
54
54
|
|
55
|
-
self.
|
55
|
+
self._issue_type = None
|
56
56
|
self._severity = None
|
57
57
|
self._status = None
|
58
58
|
self._permission_level = None
|
59
59
|
self.discriminator = None
|
60
60
|
|
61
|
-
self.
|
61
|
+
self.issue_type = issue_type
|
62
62
|
self.severity = severity
|
63
63
|
self.status = status
|
64
64
|
self.permission_level = permission_level
|
65
65
|
|
66
66
|
@property
|
67
|
-
def
|
68
|
-
"""Gets the
|
67
|
+
def issue_type(self):
|
68
|
+
"""Gets the issue_type of this OrganizationUsageAlert. # noqa: E501
|
69
69
|
|
70
|
-
Type of the alert # noqa: E501
|
70
|
+
Type of the issue for the alert # noqa: E501
|
71
71
|
|
72
|
-
:return: The
|
73
|
-
:rtype:
|
72
|
+
:return: The issue_type of this OrganizationUsageAlert. # noqa: E501
|
73
|
+
:rtype: AlertIssueType
|
74
74
|
"""
|
75
|
-
return self.
|
75
|
+
return self._issue_type
|
76
76
|
|
77
|
-
@
|
78
|
-
def
|
79
|
-
"""Sets the
|
77
|
+
@issue_type.setter
|
78
|
+
def issue_type(self, issue_type):
|
79
|
+
"""Sets the issue_type of this OrganizationUsageAlert.
|
80
80
|
|
81
|
-
Type of the alert # noqa: E501
|
81
|
+
Type of the issue for the alert # noqa: E501
|
82
82
|
|
83
|
-
:param
|
84
|
-
:type:
|
83
|
+
:param issue_type: The issue_type of this OrganizationUsageAlert. # noqa: E501
|
84
|
+
:type: AlertIssueType
|
85
85
|
"""
|
86
|
-
if self.local_vars_configuration.client_side_validation and
|
87
|
-
raise ValueError("Invalid value for `
|
86
|
+
if self.local_vars_configuration.client_side_validation and issue_type is None: # noqa: E501
|
87
|
+
raise ValueError("Invalid value for `issue_type`, must not be `None`") # noqa: E501
|
88
88
|
|
89
|
-
self.
|
89
|
+
self._issue_type = issue_type
|
90
90
|
|
91
91
|
@property
|
92
92
|
def severity(self):
|