anyscale 0.26.69__py3-none-any.whl → 0.26.71__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- anyscale/_private/anyscale_client/anyscale_client.py +126 -3
- anyscale/_private/anyscale_client/common.py +51 -2
- anyscale/_private/anyscale_client/fake_anyscale_client.py +103 -11
- anyscale/client/README.md +43 -4
- anyscale/client/openapi_client/__init__.py +30 -4
- anyscale/client/openapi_client/api/default_api.py +1769 -27
- anyscale/client/openapi_client/models/__init__.py +30 -4
- anyscale/client/openapi_client/models/api_key_info.py +29 -3
- anyscale/client/openapi_client/models/apply_autoscaling_config_update_model.py +350 -0
- anyscale/client/openapi_client/models/apply_multi_version_update_weights_update_model.py +152 -0
- anyscale/client/openapi_client/models/apply_production_service_multi_version_v2_model.py +207 -0
- anyscale/client/openapi_client/models/apply_production_service_v2_model.py +31 -3
- anyscale/client/openapi_client/models/apply_version_weight_update_model.py +181 -0
- anyscale/client/openapi_client/models/backend_server_api_product_models_catalog_client_models_table_metadata.py +546 -0
- anyscale/client/openapi_client/models/backend_server_api_product_models_data_catalogs_table_metadata.py +178 -0
- anyscale/client/openapi_client/models/baseimagesenum.py +139 -1
- anyscale/client/openapi_client/models/catalog_metadata.py +150 -0
- anyscale/client/openapi_client/models/cloud_data_bucket_file_type.py +2 -1
- anyscale/client/openapi_client/models/{oauthconnectionresponse_response.py → clouddeployment_response.py} +11 -11
- anyscale/client/openapi_client/models/column_info.py +265 -0
- anyscale/client/openapi_client/models/compute_node_type.py +29 -1
- anyscale/client/openapi_client/models/connection_metadata.py +206 -0
- anyscale/client/openapi_client/models/create_experimental_workspace.py +29 -1
- anyscale/client/openapi_client/models/create_workspace_from_template.py +29 -1
- anyscale/client/openapi_client/models/create_workspace_template_version.py +59 -3
- anyscale/client/openapi_client/models/data_catalog.py +45 -31
- anyscale/client/openapi_client/models/data_catalog_connection.py +74 -58
- anyscale/client/openapi_client/models/{ha_job_event_level.py → data_catalog_object_type.py} +7 -8
- anyscale/client/openapi_client/models/data_catalog_schema.py +324 -0
- anyscale/client/openapi_client/models/data_catalog_table.py +437 -0
- anyscale/client/openapi_client/models/data_catalog_volume.py +437 -0
- anyscale/client/openapi_client/models/datacatalogschema_list_response.py +147 -0
- anyscale/client/openapi_client/models/datacatalogtable_list_response.py +147 -0
- anyscale/client/openapi_client/models/datacatalogvolume_list_response.py +147 -0
- anyscale/client/openapi_client/models/decorated_list_service_api_model.py +58 -1
- anyscale/client/openapi_client/models/decorated_production_service_v2_api_model.py +60 -3
- anyscale/client/openapi_client/models/decorated_serve_deployment.py +27 -1
- anyscale/client/openapi_client/models/decorated_service_event_api_model.py +3 -3
- anyscale/client/openapi_client/models/decoratedproductionservicev2_versionapimodel_response.py +121 -0
- anyscale/client/openapi_client/models/describe_machine_pool_machines_filters.py +33 -5
- anyscale/client/openapi_client/models/describe_machine_pool_requests_filters.py +33 -5
- anyscale/client/openapi_client/models/describe_machine_pool_workloads_filters.py +33 -5
- anyscale/client/openapi_client/models/{service_event_level.py → entity_type.py} +9 -9
- anyscale/client/openapi_client/models/event_level.py +2 -1
- anyscale/client/openapi_client/models/job_event_fields.py +206 -0
- anyscale/client/openapi_client/models/machine_type_partition_filter.py +152 -0
- anyscale/client/openapi_client/models/partition_info.py +30 -1
- anyscale/client/openapi_client/models/physical_resources.py +178 -0
- anyscale/client/openapi_client/models/production_job_event.py +3 -3
- anyscale/client/openapi_client/models/rollout_strategy.py +2 -1
- anyscale/client/openapi_client/models/schema_metadata.py +150 -0
- anyscale/client/openapi_client/models/service_event_fields.py +318 -0
- anyscale/client/openapi_client/models/sso_config.py +18 -18
- anyscale/client/openapi_client/models/supportedbaseimagesenum.py +139 -1
- anyscale/client/openapi_client/models/table_data_preview.py +209 -0
- anyscale/client/openapi_client/models/task_summary_config.py +29 -3
- anyscale/client/openapi_client/models/task_table_config.py +29 -3
- anyscale/client/openapi_client/models/unified_event.py +377 -0
- anyscale/client/openapi_client/models/unified_origin_filter.py +113 -0
- anyscale/client/openapi_client/models/unifiedevent_list_response.py +147 -0
- anyscale/client/openapi_client/models/volume_metadata.py +150 -0
- anyscale/client/openapi_client/models/worker_node_type.py +29 -1
- anyscale/client/openapi_client/models/workspace_event_fields.py +122 -0
- anyscale/client/openapi_client/models/workspace_template_version.py +58 -1
- anyscale/client/openapi_client/models/workspace_template_version_data_object.py +58 -1
- anyscale/cloud/models.py +2 -2
- anyscale/commands/cloud_commands.py +133 -2
- anyscale/commands/job_commands.py +121 -1
- anyscale/commands/job_queue_commands.py +99 -2
- anyscale/commands/service_commands.py +267 -67
- anyscale/commands/setup_k8s.py +546 -31
- anyscale/commands/util.py +104 -1
- anyscale/commands/workspace_commands.py +123 -5
- anyscale/commands/workspace_commands_v2.py +17 -1
- anyscale/compute_config/_private/compute_config_sdk.py +25 -12
- anyscale/compute_config/models.py +15 -0
- anyscale/controllers/cloud_controller.py +15 -2
- anyscale/controllers/job_controller.py +12 -0
- anyscale/controllers/kubernetes_verifier.py +80 -66
- anyscale/controllers/workspace_controller.py +67 -5
- anyscale/job/_private/job_sdk.py +50 -2
- anyscale/job/commands.py +3 -0
- anyscale/job/models.py +16 -0
- anyscale/job_queue/__init__.py +37 -1
- anyscale/job_queue/_private/job_queue_sdk.py +28 -1
- anyscale/job_queue/commands.py +61 -1
- anyscale/sdk/anyscale_client/__init__.py +1 -0
- anyscale/sdk/anyscale_client/api/default_api.py +12 -2
- anyscale/sdk/anyscale_client/models/__init__.py +1 -0
- anyscale/sdk/anyscale_client/models/apply_production_service_v2_model.py +31 -3
- anyscale/sdk/anyscale_client/models/apply_service_model.py +31 -3
- anyscale/sdk/anyscale_client/models/baseimagesenum.py +139 -1
- anyscale/sdk/anyscale_client/models/compute_node_type.py +29 -1
- anyscale/sdk/anyscale_client/models/physical_resources.py +178 -0
- anyscale/sdk/anyscale_client/models/rollout_strategy.py +2 -1
- anyscale/sdk/anyscale_client/models/supportedbaseimagesenum.py +139 -1
- anyscale/sdk/anyscale_client/models/worker_node_type.py +29 -1
- anyscale/service/__init__.py +51 -3
- anyscale/service/_private/service_sdk.py +481 -58
- anyscale/service/commands.py +90 -4
- anyscale/service/models.py +56 -0
- anyscale/shared_anyscale_utils/latest_ray_version.py +1 -1
- anyscale/version.py +1 -1
- anyscale/workspace/_private/workspace_sdk.py +1 -0
- anyscale/workspace/models.py +19 -0
- {anyscale-0.26.69.dist-info → anyscale-0.26.71.dist-info}/METADATA +1 -1
- {anyscale-0.26.69.dist-info → anyscale-0.26.71.dist-info}/RECORD +112 -85
- anyscale/client/openapi_client/models/o_auth_connection_response.py +0 -229
- {anyscale-0.26.69.dist-info → anyscale-0.26.71.dist-info}/WHEEL +0 -0
- {anyscale-0.26.69.dist-info → anyscale-0.26.71.dist-info}/entry_points.txt +0 -0
- {anyscale-0.26.69.dist-info → anyscale-0.26.71.dist-info}/licenses/LICENSE +0 -0
- {anyscale-0.26.69.dist-info → anyscale-0.26.71.dist-info}/licenses/NOTICE +0 -0
- {anyscale-0.26.69.dist-info → anyscale-0.26.71.dist-info}/top_level.txt +0 -0
|
@@ -0,0 +1,150 @@
|
|
|
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 VolumeMetadata(object):
|
|
22
|
+
"""NOTE: This class is auto generated by OpenAPI Generator.
|
|
23
|
+
Ref: https://openapi-generator.tech
|
|
24
|
+
|
|
25
|
+
Do not edit the class manually.
|
|
26
|
+
"""
|
|
27
|
+
|
|
28
|
+
"""
|
|
29
|
+
Attributes:
|
|
30
|
+
openapi_types (dict): The key is attribute name
|
|
31
|
+
and the value is attribute type.
|
|
32
|
+
attribute_map (dict): The key is attribute name
|
|
33
|
+
and the value is json key in definition.
|
|
34
|
+
"""
|
|
35
|
+
openapi_types = {
|
|
36
|
+
'owner': 'str',
|
|
37
|
+
'full_name': 'str'
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
attribute_map = {
|
|
41
|
+
'owner': 'owner',
|
|
42
|
+
'full_name': 'full_name'
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
def __init__(self, owner=None, full_name=None, local_vars_configuration=None): # noqa: E501
|
|
46
|
+
"""VolumeMetadata - a model defined in OpenAPI""" # noqa: E501
|
|
47
|
+
if local_vars_configuration is None:
|
|
48
|
+
local_vars_configuration = Configuration()
|
|
49
|
+
self.local_vars_configuration = local_vars_configuration
|
|
50
|
+
|
|
51
|
+
self._owner = None
|
|
52
|
+
self._full_name = None
|
|
53
|
+
self.discriminator = None
|
|
54
|
+
|
|
55
|
+
if owner is not None:
|
|
56
|
+
self.owner = owner
|
|
57
|
+
if full_name is not None:
|
|
58
|
+
self.full_name = full_name
|
|
59
|
+
|
|
60
|
+
@property
|
|
61
|
+
def owner(self):
|
|
62
|
+
"""Gets the owner of this VolumeMetadata. # noqa: E501
|
|
63
|
+
|
|
64
|
+
Owner of the entity # noqa: E501
|
|
65
|
+
|
|
66
|
+
:return: The owner of this VolumeMetadata. # noqa: E501
|
|
67
|
+
:rtype: str
|
|
68
|
+
"""
|
|
69
|
+
return self._owner
|
|
70
|
+
|
|
71
|
+
@owner.setter
|
|
72
|
+
def owner(self, owner):
|
|
73
|
+
"""Sets the owner of this VolumeMetadata.
|
|
74
|
+
|
|
75
|
+
Owner of the entity # noqa: E501
|
|
76
|
+
|
|
77
|
+
:param owner: The owner of this VolumeMetadata. # noqa: E501
|
|
78
|
+
:type: str
|
|
79
|
+
"""
|
|
80
|
+
|
|
81
|
+
self._owner = owner
|
|
82
|
+
|
|
83
|
+
@property
|
|
84
|
+
def full_name(self):
|
|
85
|
+
"""Gets the full_name of this VolumeMetadata. # noqa: E501
|
|
86
|
+
|
|
87
|
+
Fully qualified name of the entity # noqa: E501
|
|
88
|
+
|
|
89
|
+
:return: The full_name of this VolumeMetadata. # noqa: E501
|
|
90
|
+
:rtype: str
|
|
91
|
+
"""
|
|
92
|
+
return self._full_name
|
|
93
|
+
|
|
94
|
+
@full_name.setter
|
|
95
|
+
def full_name(self, full_name):
|
|
96
|
+
"""Sets the full_name of this VolumeMetadata.
|
|
97
|
+
|
|
98
|
+
Fully qualified name of the entity # noqa: E501
|
|
99
|
+
|
|
100
|
+
:param full_name: The full_name of this VolumeMetadata. # noqa: E501
|
|
101
|
+
:type: str
|
|
102
|
+
"""
|
|
103
|
+
|
|
104
|
+
self._full_name = full_name
|
|
105
|
+
|
|
106
|
+
def to_dict(self):
|
|
107
|
+
"""Returns the model properties as a dict"""
|
|
108
|
+
result = {}
|
|
109
|
+
|
|
110
|
+
for attr, _ in six.iteritems(self.openapi_types):
|
|
111
|
+
value = getattr(self, attr)
|
|
112
|
+
if isinstance(value, list):
|
|
113
|
+
result[attr] = list(map(
|
|
114
|
+
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
|
115
|
+
value
|
|
116
|
+
))
|
|
117
|
+
elif hasattr(value, "to_dict"):
|
|
118
|
+
result[attr] = value.to_dict()
|
|
119
|
+
elif isinstance(value, dict):
|
|
120
|
+
result[attr] = dict(map(
|
|
121
|
+
lambda item: (item[0], item[1].to_dict())
|
|
122
|
+
if hasattr(item[1], "to_dict") else item,
|
|
123
|
+
value.items()
|
|
124
|
+
))
|
|
125
|
+
else:
|
|
126
|
+
result[attr] = value
|
|
127
|
+
|
|
128
|
+
return result
|
|
129
|
+
|
|
130
|
+
def to_str(self):
|
|
131
|
+
"""Returns the string representation of the model"""
|
|
132
|
+
return pprint.pformat(self.to_dict())
|
|
133
|
+
|
|
134
|
+
def __repr__(self):
|
|
135
|
+
"""For `print` and `pprint`"""
|
|
136
|
+
return self.to_str()
|
|
137
|
+
|
|
138
|
+
def __eq__(self, other):
|
|
139
|
+
"""Returns true if both objects are equal"""
|
|
140
|
+
if not isinstance(other, VolumeMetadata):
|
|
141
|
+
return False
|
|
142
|
+
|
|
143
|
+
return self.to_dict() == other.to_dict()
|
|
144
|
+
|
|
145
|
+
def __ne__(self, other):
|
|
146
|
+
"""Returns true if both objects are not equal"""
|
|
147
|
+
if not isinstance(other, VolumeMetadata):
|
|
148
|
+
return True
|
|
149
|
+
|
|
150
|
+
return self.to_dict() != other.to_dict()
|
|
@@ -36,6 +36,7 @@ class WorkerNodeType(object):
|
|
|
36
36
|
'name': 'str',
|
|
37
37
|
'instance_type': 'str',
|
|
38
38
|
'resources': 'Resources',
|
|
39
|
+
'physical_resources': 'PhysicalResources',
|
|
39
40
|
'labels': 'dict(str, str)',
|
|
40
41
|
'aws_advanced_configurations_json': 'object',
|
|
41
42
|
'gcp_advanced_configurations_json': 'object',
|
|
@@ -51,6 +52,7 @@ class WorkerNodeType(object):
|
|
|
51
52
|
'name': 'name',
|
|
52
53
|
'instance_type': 'instance_type',
|
|
53
54
|
'resources': 'resources',
|
|
55
|
+
'physical_resources': 'physical_resources',
|
|
54
56
|
'labels': 'labels',
|
|
55
57
|
'aws_advanced_configurations_json': 'aws_advanced_configurations_json',
|
|
56
58
|
'gcp_advanced_configurations_json': 'gcp_advanced_configurations_json',
|
|
@@ -62,7 +64,7 @@ class WorkerNodeType(object):
|
|
|
62
64
|
'fallback_to_ondemand': 'fallback_to_ondemand'
|
|
63
65
|
}
|
|
64
66
|
|
|
65
|
-
def __init__(self, name=None, instance_type=None, resources=None, labels=None, aws_advanced_configurations_json=None, gcp_advanced_configurations_json=None, advanced_configurations_json=None, flags=None, min_workers=None, max_workers=None, use_spot=False, fallback_to_ondemand=False, local_vars_configuration=None): # noqa: E501
|
|
67
|
+
def __init__(self, name=None, instance_type=None, resources=None, physical_resources=None, labels=None, aws_advanced_configurations_json=None, gcp_advanced_configurations_json=None, advanced_configurations_json=None, flags=None, min_workers=None, max_workers=None, use_spot=False, fallback_to_ondemand=False, local_vars_configuration=None): # noqa: E501
|
|
66
68
|
"""WorkerNodeType - a model defined in OpenAPI""" # noqa: E501
|
|
67
69
|
if local_vars_configuration is None:
|
|
68
70
|
local_vars_configuration = Configuration()
|
|
@@ -71,6 +73,7 @@ class WorkerNodeType(object):
|
|
|
71
73
|
self._name = None
|
|
72
74
|
self._instance_type = None
|
|
73
75
|
self._resources = None
|
|
76
|
+
self._physical_resources = None
|
|
74
77
|
self._labels = None
|
|
75
78
|
self._aws_advanced_configurations_json = None
|
|
76
79
|
self._gcp_advanced_configurations_json = None
|
|
@@ -86,6 +89,8 @@ class WorkerNodeType(object):
|
|
|
86
89
|
self.instance_type = instance_type
|
|
87
90
|
if resources is not None:
|
|
88
91
|
self.resources = resources
|
|
92
|
+
if physical_resources is not None:
|
|
93
|
+
self.physical_resources = physical_resources
|
|
89
94
|
if labels is not None:
|
|
90
95
|
self.labels = labels
|
|
91
96
|
if aws_advanced_configurations_json is not None:
|
|
@@ -178,6 +183,29 @@ class WorkerNodeType(object):
|
|
|
178
183
|
|
|
179
184
|
self._resources = resources
|
|
180
185
|
|
|
186
|
+
@property
|
|
187
|
+
def physical_resources(self):
|
|
188
|
+
"""Gets the physical_resources of this WorkerNodeType. # noqa: E501
|
|
189
|
+
|
|
190
|
+
Physical resources for compute node type which specifies the actual CPU, memory, and GPU resources that should be allocated for this node type. # noqa: E501
|
|
191
|
+
|
|
192
|
+
:return: The physical_resources of this WorkerNodeType. # noqa: E501
|
|
193
|
+
:rtype: PhysicalResources
|
|
194
|
+
"""
|
|
195
|
+
return self._physical_resources
|
|
196
|
+
|
|
197
|
+
@physical_resources.setter
|
|
198
|
+
def physical_resources(self, physical_resources):
|
|
199
|
+
"""Sets the physical_resources of this WorkerNodeType.
|
|
200
|
+
|
|
201
|
+
Physical resources for compute node type which specifies the actual CPU, memory, and GPU resources that should be allocated for this node type. # noqa: E501
|
|
202
|
+
|
|
203
|
+
:param physical_resources: The physical_resources of this WorkerNodeType. # noqa: E501
|
|
204
|
+
:type: PhysicalResources
|
|
205
|
+
"""
|
|
206
|
+
|
|
207
|
+
self._physical_resources = physical_resources
|
|
208
|
+
|
|
181
209
|
@property
|
|
182
210
|
def labels(self):
|
|
183
211
|
"""Gets the labels of this WorkerNodeType. # noqa: E501
|
|
@@ -0,0 +1,122 @@
|
|
|
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 WorkspaceEventFields(object):
|
|
22
|
+
"""NOTE: This class is auto generated by OpenAPI Generator.
|
|
23
|
+
Ref: https://openapi-generator.tech
|
|
24
|
+
|
|
25
|
+
Do not edit the class manually.
|
|
26
|
+
"""
|
|
27
|
+
|
|
28
|
+
"""
|
|
29
|
+
Attributes:
|
|
30
|
+
openapi_types (dict): The key is attribute name
|
|
31
|
+
and the value is attribute type.
|
|
32
|
+
attribute_map (dict): The key is attribute name
|
|
33
|
+
and the value is json key in definition.
|
|
34
|
+
"""
|
|
35
|
+
openapi_types = {
|
|
36
|
+
'workspace_id': 'str'
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
attribute_map = {
|
|
40
|
+
'workspace_id': 'workspace_id'
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
def __init__(self, workspace_id=None, local_vars_configuration=None): # noqa: E501
|
|
44
|
+
"""WorkspaceEventFields - a model defined in OpenAPI""" # noqa: E501
|
|
45
|
+
if local_vars_configuration is None:
|
|
46
|
+
local_vars_configuration = Configuration()
|
|
47
|
+
self.local_vars_configuration = local_vars_configuration
|
|
48
|
+
|
|
49
|
+
self._workspace_id = None
|
|
50
|
+
self.discriminator = None
|
|
51
|
+
|
|
52
|
+
if workspace_id is not None:
|
|
53
|
+
self.workspace_id = workspace_id
|
|
54
|
+
|
|
55
|
+
@property
|
|
56
|
+
def workspace_id(self):
|
|
57
|
+
"""Gets the workspace_id of this WorkspaceEventFields. # noqa: E501
|
|
58
|
+
|
|
59
|
+
The workspace the event originated from # noqa: E501
|
|
60
|
+
|
|
61
|
+
:return: The workspace_id of this WorkspaceEventFields. # noqa: E501
|
|
62
|
+
:rtype: str
|
|
63
|
+
"""
|
|
64
|
+
return self._workspace_id
|
|
65
|
+
|
|
66
|
+
@workspace_id.setter
|
|
67
|
+
def workspace_id(self, workspace_id):
|
|
68
|
+
"""Sets the workspace_id of this WorkspaceEventFields.
|
|
69
|
+
|
|
70
|
+
The workspace the event originated from # noqa: E501
|
|
71
|
+
|
|
72
|
+
:param workspace_id: The workspace_id of this WorkspaceEventFields. # noqa: E501
|
|
73
|
+
:type: str
|
|
74
|
+
"""
|
|
75
|
+
|
|
76
|
+
self._workspace_id = workspace_id
|
|
77
|
+
|
|
78
|
+
def to_dict(self):
|
|
79
|
+
"""Returns the model properties as a dict"""
|
|
80
|
+
result = {}
|
|
81
|
+
|
|
82
|
+
for attr, _ in six.iteritems(self.openapi_types):
|
|
83
|
+
value = getattr(self, attr)
|
|
84
|
+
if isinstance(value, list):
|
|
85
|
+
result[attr] = list(map(
|
|
86
|
+
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
|
87
|
+
value
|
|
88
|
+
))
|
|
89
|
+
elif hasattr(value, "to_dict"):
|
|
90
|
+
result[attr] = value.to_dict()
|
|
91
|
+
elif isinstance(value, dict):
|
|
92
|
+
result[attr] = dict(map(
|
|
93
|
+
lambda item: (item[0], item[1].to_dict())
|
|
94
|
+
if hasattr(item[1], "to_dict") else item,
|
|
95
|
+
value.items()
|
|
96
|
+
))
|
|
97
|
+
else:
|
|
98
|
+
result[attr] = value
|
|
99
|
+
|
|
100
|
+
return result
|
|
101
|
+
|
|
102
|
+
def to_str(self):
|
|
103
|
+
"""Returns the string representation of the model"""
|
|
104
|
+
return pprint.pformat(self.to_dict())
|
|
105
|
+
|
|
106
|
+
def __repr__(self):
|
|
107
|
+
"""For `print` and `pprint`"""
|
|
108
|
+
return self.to_str()
|
|
109
|
+
|
|
110
|
+
def __eq__(self, other):
|
|
111
|
+
"""Returns true if both objects are equal"""
|
|
112
|
+
if not isinstance(other, WorkspaceEventFields):
|
|
113
|
+
return False
|
|
114
|
+
|
|
115
|
+
return self.to_dict() == other.to_dict()
|
|
116
|
+
|
|
117
|
+
def __ne__(self, other):
|
|
118
|
+
"""Returns true if both objects are not equal"""
|
|
119
|
+
if not isinstance(other, WorkspaceEventFields):
|
|
120
|
+
return True
|
|
121
|
+
|
|
122
|
+
return self.to_dict() != other.to_dict()
|
|
@@ -37,9 +37,11 @@ class WorkspaceTemplateVersion(object):
|
|
|
37
37
|
'image_uri': 'str',
|
|
38
38
|
'compute_configs': 'dict(str, str)',
|
|
39
39
|
'artifacts': 'WorkspaceSystemArtifacts',
|
|
40
|
+
'idle_termination_minutes': 'int',
|
|
40
41
|
'id': 'str',
|
|
41
42
|
'version': 'int',
|
|
42
43
|
'creator_id': 'str',
|
|
44
|
+
'creator_email': 'str',
|
|
43
45
|
'created_at': 'datetime'
|
|
44
46
|
}
|
|
45
47
|
|
|
@@ -48,13 +50,15 @@ class WorkspaceTemplateVersion(object):
|
|
|
48
50
|
'image_uri': 'image_uri',
|
|
49
51
|
'compute_configs': 'compute_configs',
|
|
50
52
|
'artifacts': 'artifacts',
|
|
53
|
+
'idle_termination_minutes': 'idle_termination_minutes',
|
|
51
54
|
'id': 'id',
|
|
52
55
|
'version': 'version',
|
|
53
56
|
'creator_id': 'creator_id',
|
|
57
|
+
'creator_email': 'creator_email',
|
|
54
58
|
'created_at': 'created_at'
|
|
55
59
|
}
|
|
56
60
|
|
|
57
|
-
def __init__(self, template_id=None, image_uri=None, compute_configs=None, artifacts=None, id=None, version=None, creator_id=None, created_at=None, local_vars_configuration=None): # noqa: E501
|
|
61
|
+
def __init__(self, template_id=None, image_uri=None, compute_configs=None, artifacts=None, idle_termination_minutes=None, id=None, version=None, creator_id=None, creator_email=None, created_at=None, local_vars_configuration=None): # noqa: E501
|
|
58
62
|
"""WorkspaceTemplateVersion - a model defined in OpenAPI""" # noqa: E501
|
|
59
63
|
if local_vars_configuration is None:
|
|
60
64
|
local_vars_configuration = Configuration()
|
|
@@ -64,9 +68,11 @@ class WorkspaceTemplateVersion(object):
|
|
|
64
68
|
self._image_uri = None
|
|
65
69
|
self._compute_configs = None
|
|
66
70
|
self._artifacts = None
|
|
71
|
+
self._idle_termination_minutes = None
|
|
67
72
|
self._id = None
|
|
68
73
|
self._version = None
|
|
69
74
|
self._creator_id = None
|
|
75
|
+
self._creator_email = None
|
|
70
76
|
self._created_at = None
|
|
71
77
|
self.discriminator = None
|
|
72
78
|
|
|
@@ -77,9 +83,12 @@ class WorkspaceTemplateVersion(object):
|
|
|
77
83
|
self.compute_configs = compute_configs
|
|
78
84
|
if artifacts is not None:
|
|
79
85
|
self.artifacts = artifacts
|
|
86
|
+
if idle_termination_minutes is not None:
|
|
87
|
+
self.idle_termination_minutes = idle_termination_minutes
|
|
80
88
|
self.id = id
|
|
81
89
|
self.version = version
|
|
82
90
|
self.creator_id = creator_id
|
|
91
|
+
self.creator_email = creator_email
|
|
83
92
|
self.created_at = created_at
|
|
84
93
|
|
|
85
94
|
@property
|
|
@@ -176,6 +185,29 @@ class WorkspaceTemplateVersion(object):
|
|
|
176
185
|
|
|
177
186
|
self._artifacts = artifacts
|
|
178
187
|
|
|
188
|
+
@property
|
|
189
|
+
def idle_termination_minutes(self):
|
|
190
|
+
"""Gets the idle_termination_minutes of this WorkspaceTemplateVersion. # noqa: E501
|
|
191
|
+
|
|
192
|
+
Idle termination minutes for this version # noqa: E501
|
|
193
|
+
|
|
194
|
+
:return: The idle_termination_minutes of this WorkspaceTemplateVersion. # noqa: E501
|
|
195
|
+
:rtype: int
|
|
196
|
+
"""
|
|
197
|
+
return self._idle_termination_minutes
|
|
198
|
+
|
|
199
|
+
@idle_termination_minutes.setter
|
|
200
|
+
def idle_termination_minutes(self, idle_termination_minutes):
|
|
201
|
+
"""Sets the idle_termination_minutes of this WorkspaceTemplateVersion.
|
|
202
|
+
|
|
203
|
+
Idle termination minutes for this version # noqa: E501
|
|
204
|
+
|
|
205
|
+
:param idle_termination_minutes: The idle_termination_minutes of this WorkspaceTemplateVersion. # noqa: E501
|
|
206
|
+
:type: int
|
|
207
|
+
"""
|
|
208
|
+
|
|
209
|
+
self._idle_termination_minutes = idle_termination_minutes
|
|
210
|
+
|
|
179
211
|
@property
|
|
180
212
|
def id(self):
|
|
181
213
|
"""Gets the id of this WorkspaceTemplateVersion. # noqa: E501
|
|
@@ -251,6 +283,31 @@ class WorkspaceTemplateVersion(object):
|
|
|
251
283
|
|
|
252
284
|
self._creator_id = creator_id
|
|
253
285
|
|
|
286
|
+
@property
|
|
287
|
+
def creator_email(self):
|
|
288
|
+
"""Gets the creator_email of this WorkspaceTemplateVersion. # noqa: E501
|
|
289
|
+
|
|
290
|
+
Email of the creator # noqa: E501
|
|
291
|
+
|
|
292
|
+
:return: The creator_email of this WorkspaceTemplateVersion. # noqa: E501
|
|
293
|
+
:rtype: str
|
|
294
|
+
"""
|
|
295
|
+
return self._creator_email
|
|
296
|
+
|
|
297
|
+
@creator_email.setter
|
|
298
|
+
def creator_email(self, creator_email):
|
|
299
|
+
"""Sets the creator_email of this WorkspaceTemplateVersion.
|
|
300
|
+
|
|
301
|
+
Email of the creator # noqa: E501
|
|
302
|
+
|
|
303
|
+
:param creator_email: The creator_email of this WorkspaceTemplateVersion. # noqa: E501
|
|
304
|
+
:type: str
|
|
305
|
+
"""
|
|
306
|
+
if self.local_vars_configuration.client_side_validation and creator_email is None: # noqa: E501
|
|
307
|
+
raise ValueError("Invalid value for `creator_email`, must not be `None`") # noqa: E501
|
|
308
|
+
|
|
309
|
+
self._creator_email = creator_email
|
|
310
|
+
|
|
254
311
|
@property
|
|
255
312
|
def created_at(self):
|
|
256
313
|
"""Gets the created_at of this WorkspaceTemplateVersion. # noqa: E501
|
|
@@ -37,9 +37,11 @@ class WorkspaceTemplateVersionDataObject(object):
|
|
|
37
37
|
'image_uri': 'str',
|
|
38
38
|
'compute_configs': 'dict(str, str)',
|
|
39
39
|
'artifacts': 'WorkspaceSystemArtifacts',
|
|
40
|
+
'idle_termination_minutes': 'int',
|
|
40
41
|
'id': 'str',
|
|
41
42
|
'version': 'int',
|
|
42
43
|
'creator_id': 'str',
|
|
44
|
+
'creator_email': 'str',
|
|
43
45
|
'created_at': 'datetime'
|
|
44
46
|
}
|
|
45
47
|
|
|
@@ -48,13 +50,15 @@ class WorkspaceTemplateVersionDataObject(object):
|
|
|
48
50
|
'image_uri': 'image_uri',
|
|
49
51
|
'compute_configs': 'compute_configs',
|
|
50
52
|
'artifacts': 'artifacts',
|
|
53
|
+
'idle_termination_minutes': 'idle_termination_minutes',
|
|
51
54
|
'id': 'id',
|
|
52
55
|
'version': 'version',
|
|
53
56
|
'creator_id': 'creator_id',
|
|
57
|
+
'creator_email': 'creator_email',
|
|
54
58
|
'created_at': 'created_at'
|
|
55
59
|
}
|
|
56
60
|
|
|
57
|
-
def __init__(self, template_id=None, image_uri=None, compute_configs=None, artifacts=None, id=None, version=None, creator_id=None, created_at=None, local_vars_configuration=None): # noqa: E501
|
|
61
|
+
def __init__(self, template_id=None, image_uri=None, compute_configs=None, artifacts=None, idle_termination_minutes=None, id=None, version=None, creator_id=None, creator_email=None, created_at=None, local_vars_configuration=None): # noqa: E501
|
|
58
62
|
"""WorkspaceTemplateVersionDataObject - a model defined in OpenAPI""" # noqa: E501
|
|
59
63
|
if local_vars_configuration is None:
|
|
60
64
|
local_vars_configuration = Configuration()
|
|
@@ -64,9 +68,11 @@ class WorkspaceTemplateVersionDataObject(object):
|
|
|
64
68
|
self._image_uri = None
|
|
65
69
|
self._compute_configs = None
|
|
66
70
|
self._artifacts = None
|
|
71
|
+
self._idle_termination_minutes = None
|
|
67
72
|
self._id = None
|
|
68
73
|
self._version = None
|
|
69
74
|
self._creator_id = None
|
|
75
|
+
self._creator_email = None
|
|
70
76
|
self._created_at = None
|
|
71
77
|
self.discriminator = None
|
|
72
78
|
|
|
@@ -77,9 +83,12 @@ class WorkspaceTemplateVersionDataObject(object):
|
|
|
77
83
|
self.compute_configs = compute_configs
|
|
78
84
|
if artifacts is not None:
|
|
79
85
|
self.artifacts = artifacts
|
|
86
|
+
if idle_termination_minutes is not None:
|
|
87
|
+
self.idle_termination_minutes = idle_termination_minutes
|
|
80
88
|
self.id = id
|
|
81
89
|
self.version = version
|
|
82
90
|
self.creator_id = creator_id
|
|
91
|
+
self.creator_email = creator_email
|
|
83
92
|
self.created_at = created_at
|
|
84
93
|
|
|
85
94
|
@property
|
|
@@ -176,6 +185,29 @@ class WorkspaceTemplateVersionDataObject(object):
|
|
|
176
185
|
|
|
177
186
|
self._artifacts = artifacts
|
|
178
187
|
|
|
188
|
+
@property
|
|
189
|
+
def idle_termination_minutes(self):
|
|
190
|
+
"""Gets the idle_termination_minutes of this WorkspaceTemplateVersionDataObject. # noqa: E501
|
|
191
|
+
|
|
192
|
+
Idle termination minutes for this version # noqa: E501
|
|
193
|
+
|
|
194
|
+
:return: The idle_termination_minutes of this WorkspaceTemplateVersionDataObject. # noqa: E501
|
|
195
|
+
:rtype: int
|
|
196
|
+
"""
|
|
197
|
+
return self._idle_termination_minutes
|
|
198
|
+
|
|
199
|
+
@idle_termination_minutes.setter
|
|
200
|
+
def idle_termination_minutes(self, idle_termination_minutes):
|
|
201
|
+
"""Sets the idle_termination_minutes of this WorkspaceTemplateVersionDataObject.
|
|
202
|
+
|
|
203
|
+
Idle termination minutes for this version # noqa: E501
|
|
204
|
+
|
|
205
|
+
:param idle_termination_minutes: The idle_termination_minutes of this WorkspaceTemplateVersionDataObject. # noqa: E501
|
|
206
|
+
:type: int
|
|
207
|
+
"""
|
|
208
|
+
|
|
209
|
+
self._idle_termination_minutes = idle_termination_minutes
|
|
210
|
+
|
|
179
211
|
@property
|
|
180
212
|
def id(self):
|
|
181
213
|
"""Gets the id of this WorkspaceTemplateVersionDataObject. # noqa: E501
|
|
@@ -251,6 +283,31 @@ class WorkspaceTemplateVersionDataObject(object):
|
|
|
251
283
|
|
|
252
284
|
self._creator_id = creator_id
|
|
253
285
|
|
|
286
|
+
@property
|
|
287
|
+
def creator_email(self):
|
|
288
|
+
"""Gets the creator_email of this WorkspaceTemplateVersionDataObject. # noqa: E501
|
|
289
|
+
|
|
290
|
+
Email of the creator # noqa: E501
|
|
291
|
+
|
|
292
|
+
:return: The creator_email of this WorkspaceTemplateVersionDataObject. # noqa: E501
|
|
293
|
+
:rtype: str
|
|
294
|
+
"""
|
|
295
|
+
return self._creator_email
|
|
296
|
+
|
|
297
|
+
@creator_email.setter
|
|
298
|
+
def creator_email(self, creator_email):
|
|
299
|
+
"""Sets the creator_email of this WorkspaceTemplateVersionDataObject.
|
|
300
|
+
|
|
301
|
+
Email of the creator # noqa: E501
|
|
302
|
+
|
|
303
|
+
:param creator_email: The creator_email of this WorkspaceTemplateVersionDataObject. # noqa: E501
|
|
304
|
+
:type: str
|
|
305
|
+
"""
|
|
306
|
+
if self.local_vars_configuration.client_side_validation and creator_email is None: # noqa: E501
|
|
307
|
+
raise ValueError("Invalid value for `creator_email`, must not be `None`") # noqa: E501
|
|
308
|
+
|
|
309
|
+
self._creator_email = creator_email
|
|
310
|
+
|
|
254
311
|
@property
|
|
255
312
|
def created_at(self):
|
|
256
313
|
"""Gets the created_at of this WorkspaceTemplateVersionDataObject. # noqa: E501
|
anyscale/cloud/models.py
CHANGED
|
@@ -497,9 +497,9 @@ compute_stack: VM
|
|
|
497
497
|
region: us-west-2
|
|
498
498
|
networking_mode: PUBLIC
|
|
499
499
|
object_storage:
|
|
500
|
-
bucket_name: s3://my-bucket
|
|
500
|
+
bucket_name: s3://my-bucket
|
|
501
501
|
file_storage:
|
|
502
|
-
file_storage_id: fs-12345678901234567
|
|
502
|
+
file_storage_id: fs-12345678901234567
|
|
503
503
|
aws_config:
|
|
504
504
|
vpc_id: vpc-12345678901234567
|
|
505
505
|
subnet_ids:
|