anyscale 0.26.70__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 +63 -6
- anyscale/_private/anyscale_client/common.py +33 -3
- anyscale/_private/anyscale_client/fake_anyscale_client.py +27 -2
- anyscale/client/README.md +29 -0
- anyscale/client/openapi_client/__init__.py +19 -0
- anyscale/client/openapi_client/api/default_api.py +1307 -4
- anyscale/client/openapi_client/models/__init__.py +19 -0
- anyscale/client/openapi_client/models/apply_multi_version_update_weights_update_model.py +152 -0
- 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 +70 -1
- anyscale/client/openapi_client/models/catalog_metadata.py +150 -0
- 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_workspace_template_version.py +31 -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/data_catalog_object_type.py +100 -0
- 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_serve_deployment.py +27 -1
- anyscale/client/openapi_client/models/decoratedproductionservicev2_versionapimodel_response.py +121 -0
- anyscale/client/openapi_client/models/describe_machine_pool_machines_filters.py +2 -2
- anyscale/client/openapi_client/models/describe_machine_pool_requests_filters.py +33 -5
- anyscale/client/openapi_client/models/describe_machine_pool_workloads_filters.py +2 -2
- anyscale/client/openapi_client/models/physical_resources.py +178 -0
- anyscale/client/openapi_client/models/schema_metadata.py +150 -0
- anyscale/client/openapi_client/models/sso_config.py +18 -18
- anyscale/client/openapi_client/models/supportedbaseimagesenum.py +70 -1
- anyscale/client/openapi_client/models/table_data_preview.py +209 -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_template_version.py +29 -1
- anyscale/client/openapi_client/models/workspace_template_version_data_object.py +29 -1
- anyscale/commands/job_commands.py +120 -0
- anyscale/commands/job_queue_commands.py +99 -2
- anyscale/commands/service_commands.py +139 -2
- 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/job_controller.py +12 -0
- anyscale/controllers/workspace_controller.py +67 -5
- anyscale/job/_private/job_sdk.py +3 -1
- 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/baseimagesenum.py +70 -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/supportedbaseimagesenum.py +70 -1
- anyscale/sdk/anyscale_client/models/worker_node_type.py +29 -1
- anyscale/service/__init__.py +40 -0
- anyscale/service/_private/service_sdk.py +121 -24
- anyscale/service/commands.py +75 -1
- anyscale/service/models.py +46 -2
- 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.70.dist-info → anyscale-0.26.71.dist-info}/METADATA +1 -1
- {anyscale-0.26.70.dist-info → anyscale-0.26.71.dist-info}/RECORD +78 -58
- {anyscale-0.26.70.dist-info → anyscale-0.26.71.dist-info}/WHEEL +0 -0
- {anyscale-0.26.70.dist-info → anyscale-0.26.71.dist-info}/entry_points.txt +0 -0
- {anyscale-0.26.70.dist-info → anyscale-0.26.71.dist-info}/licenses/LICENSE +0 -0
- {anyscale-0.26.70.dist-info → anyscale-0.26.71.dist-info}/licenses/NOTICE +0 -0
- {anyscale-0.26.70.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 CatalogMetadata(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
|
+
"""CatalogMetadata - 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 CatalogMetadata. # noqa: E501
|
|
63
|
+
|
|
64
|
+
Owner of the entity # noqa: E501
|
|
65
|
+
|
|
66
|
+
:return: The owner of this CatalogMetadata. # 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 CatalogMetadata.
|
|
74
|
+
|
|
75
|
+
Owner of the entity # noqa: E501
|
|
76
|
+
|
|
77
|
+
:param owner: The owner of this CatalogMetadata. # 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 CatalogMetadata. # noqa: E501
|
|
86
|
+
|
|
87
|
+
Fully qualified name of the entity # noqa: E501
|
|
88
|
+
|
|
89
|
+
:return: The full_name of this CatalogMetadata. # 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 CatalogMetadata.
|
|
97
|
+
|
|
98
|
+
Fully qualified name of the entity # noqa: E501
|
|
99
|
+
|
|
100
|
+
:param full_name: The full_name of this CatalogMetadata. # 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, CatalogMetadata):
|
|
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, CatalogMetadata):
|
|
148
|
+
return True
|
|
149
|
+
|
|
150
|
+
return self.to_dict() != other.to_dict()
|
|
@@ -0,0 +1,265 @@
|
|
|
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 ColumnInfo(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
|
+
'name': 'str',
|
|
37
|
+
'type_text': 'str',
|
|
38
|
+
'type_name': 'str',
|
|
39
|
+
'description': 'str',
|
|
40
|
+
'nullable': 'bool',
|
|
41
|
+
'position': 'int'
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
attribute_map = {
|
|
45
|
+
'name': 'name',
|
|
46
|
+
'type_text': 'type_text',
|
|
47
|
+
'type_name': 'type_name',
|
|
48
|
+
'description': 'description',
|
|
49
|
+
'nullable': 'nullable',
|
|
50
|
+
'position': 'position'
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
def __init__(self, name=None, type_text=None, type_name=None, description=None, nullable=True, position=0, local_vars_configuration=None): # noqa: E501
|
|
54
|
+
"""ColumnInfo - a model defined in OpenAPI""" # noqa: E501
|
|
55
|
+
if local_vars_configuration is None:
|
|
56
|
+
local_vars_configuration = Configuration()
|
|
57
|
+
self.local_vars_configuration = local_vars_configuration
|
|
58
|
+
|
|
59
|
+
self._name = None
|
|
60
|
+
self._type_text = None
|
|
61
|
+
self._type_name = None
|
|
62
|
+
self._description = None
|
|
63
|
+
self._nullable = None
|
|
64
|
+
self._position = None
|
|
65
|
+
self.discriminator = None
|
|
66
|
+
|
|
67
|
+
self.name = name
|
|
68
|
+
self.type_text = type_text
|
|
69
|
+
self.type_name = type_name
|
|
70
|
+
if description is not None:
|
|
71
|
+
self.description = description
|
|
72
|
+
if nullable is not None:
|
|
73
|
+
self.nullable = nullable
|
|
74
|
+
if position is not None:
|
|
75
|
+
self.position = position
|
|
76
|
+
|
|
77
|
+
@property
|
|
78
|
+
def name(self):
|
|
79
|
+
"""Gets the name of this ColumnInfo. # noqa: E501
|
|
80
|
+
|
|
81
|
+
Name of the column # noqa: E501
|
|
82
|
+
|
|
83
|
+
:return: The name of this ColumnInfo. # noqa: E501
|
|
84
|
+
:rtype: str
|
|
85
|
+
"""
|
|
86
|
+
return self._name
|
|
87
|
+
|
|
88
|
+
@name.setter
|
|
89
|
+
def name(self, name):
|
|
90
|
+
"""Sets the name of this ColumnInfo.
|
|
91
|
+
|
|
92
|
+
Name of the column # noqa: E501
|
|
93
|
+
|
|
94
|
+
:param name: The name of this ColumnInfo. # noqa: E501
|
|
95
|
+
:type: str
|
|
96
|
+
"""
|
|
97
|
+
if self.local_vars_configuration.client_side_validation and name is None: # noqa: E501
|
|
98
|
+
raise ValueError("Invalid value for `name`, must not be `None`") # noqa: E501
|
|
99
|
+
|
|
100
|
+
self._name = name
|
|
101
|
+
|
|
102
|
+
@property
|
|
103
|
+
def type_text(self):
|
|
104
|
+
"""Gets the type_text of this ColumnInfo. # noqa: E501
|
|
105
|
+
|
|
106
|
+
Data type in text format (e.g., 'string', 'int', 'array<string>') # noqa: E501
|
|
107
|
+
|
|
108
|
+
:return: The type_text of this ColumnInfo. # noqa: E501
|
|
109
|
+
:rtype: str
|
|
110
|
+
"""
|
|
111
|
+
return self._type_text
|
|
112
|
+
|
|
113
|
+
@type_text.setter
|
|
114
|
+
def type_text(self, type_text):
|
|
115
|
+
"""Sets the type_text of this ColumnInfo.
|
|
116
|
+
|
|
117
|
+
Data type in text format (e.g., 'string', 'int', 'array<string>') # noqa: E501
|
|
118
|
+
|
|
119
|
+
:param type_text: The type_text of this ColumnInfo. # noqa: E501
|
|
120
|
+
:type: str
|
|
121
|
+
"""
|
|
122
|
+
if self.local_vars_configuration.client_side_validation and type_text is None: # noqa: E501
|
|
123
|
+
raise ValueError("Invalid value for `type_text`, must not be `None`") # noqa: E501
|
|
124
|
+
|
|
125
|
+
self._type_text = type_text
|
|
126
|
+
|
|
127
|
+
@property
|
|
128
|
+
def type_name(self):
|
|
129
|
+
"""Gets the type_name of this ColumnInfo. # noqa: E501
|
|
130
|
+
|
|
131
|
+
Data type name in uppercase (e.g., 'STRING', 'INT') # noqa: E501
|
|
132
|
+
|
|
133
|
+
:return: The type_name of this ColumnInfo. # noqa: E501
|
|
134
|
+
:rtype: str
|
|
135
|
+
"""
|
|
136
|
+
return self._type_name
|
|
137
|
+
|
|
138
|
+
@type_name.setter
|
|
139
|
+
def type_name(self, type_name):
|
|
140
|
+
"""Sets the type_name of this ColumnInfo.
|
|
141
|
+
|
|
142
|
+
Data type name in uppercase (e.g., 'STRING', 'INT') # noqa: E501
|
|
143
|
+
|
|
144
|
+
:param type_name: The type_name of this ColumnInfo. # noqa: E501
|
|
145
|
+
:type: str
|
|
146
|
+
"""
|
|
147
|
+
if self.local_vars_configuration.client_side_validation and type_name is None: # noqa: E501
|
|
148
|
+
raise ValueError("Invalid value for `type_name`, must not be `None`") # noqa: E501
|
|
149
|
+
|
|
150
|
+
self._type_name = type_name
|
|
151
|
+
|
|
152
|
+
@property
|
|
153
|
+
def description(self):
|
|
154
|
+
"""Gets the description of this ColumnInfo. # noqa: E501
|
|
155
|
+
|
|
156
|
+
Description or comment for the column # noqa: E501
|
|
157
|
+
|
|
158
|
+
:return: The description of this ColumnInfo. # noqa: E501
|
|
159
|
+
:rtype: str
|
|
160
|
+
"""
|
|
161
|
+
return self._description
|
|
162
|
+
|
|
163
|
+
@description.setter
|
|
164
|
+
def description(self, description):
|
|
165
|
+
"""Sets the description of this ColumnInfo.
|
|
166
|
+
|
|
167
|
+
Description or comment for the column # noqa: E501
|
|
168
|
+
|
|
169
|
+
:param description: The description of this ColumnInfo. # noqa: E501
|
|
170
|
+
:type: str
|
|
171
|
+
"""
|
|
172
|
+
|
|
173
|
+
self._description = description
|
|
174
|
+
|
|
175
|
+
@property
|
|
176
|
+
def nullable(self):
|
|
177
|
+
"""Gets the nullable of this ColumnInfo. # noqa: E501
|
|
178
|
+
|
|
179
|
+
Whether the column allows NULL values # noqa: E501
|
|
180
|
+
|
|
181
|
+
:return: The nullable of this ColumnInfo. # noqa: E501
|
|
182
|
+
:rtype: bool
|
|
183
|
+
"""
|
|
184
|
+
return self._nullable
|
|
185
|
+
|
|
186
|
+
@nullable.setter
|
|
187
|
+
def nullable(self, nullable):
|
|
188
|
+
"""Sets the nullable of this ColumnInfo.
|
|
189
|
+
|
|
190
|
+
Whether the column allows NULL values # noqa: E501
|
|
191
|
+
|
|
192
|
+
:param nullable: The nullable of this ColumnInfo. # noqa: E501
|
|
193
|
+
:type: bool
|
|
194
|
+
"""
|
|
195
|
+
|
|
196
|
+
self._nullable = nullable
|
|
197
|
+
|
|
198
|
+
@property
|
|
199
|
+
def position(self):
|
|
200
|
+
"""Gets the position of this ColumnInfo. # noqa: E501
|
|
201
|
+
|
|
202
|
+
Position of the column in the table schema # noqa: E501
|
|
203
|
+
|
|
204
|
+
:return: The position of this ColumnInfo. # noqa: E501
|
|
205
|
+
:rtype: int
|
|
206
|
+
"""
|
|
207
|
+
return self._position
|
|
208
|
+
|
|
209
|
+
@position.setter
|
|
210
|
+
def position(self, position):
|
|
211
|
+
"""Sets the position of this ColumnInfo.
|
|
212
|
+
|
|
213
|
+
Position of the column in the table schema # noqa: E501
|
|
214
|
+
|
|
215
|
+
:param position: The position of this ColumnInfo. # noqa: E501
|
|
216
|
+
:type: int
|
|
217
|
+
"""
|
|
218
|
+
|
|
219
|
+
self._position = position
|
|
220
|
+
|
|
221
|
+
def to_dict(self):
|
|
222
|
+
"""Returns the model properties as a dict"""
|
|
223
|
+
result = {}
|
|
224
|
+
|
|
225
|
+
for attr, _ in six.iteritems(self.openapi_types):
|
|
226
|
+
value = getattr(self, attr)
|
|
227
|
+
if isinstance(value, list):
|
|
228
|
+
result[attr] = list(map(
|
|
229
|
+
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
|
230
|
+
value
|
|
231
|
+
))
|
|
232
|
+
elif hasattr(value, "to_dict"):
|
|
233
|
+
result[attr] = value.to_dict()
|
|
234
|
+
elif isinstance(value, dict):
|
|
235
|
+
result[attr] = dict(map(
|
|
236
|
+
lambda item: (item[0], item[1].to_dict())
|
|
237
|
+
if hasattr(item[1], "to_dict") else item,
|
|
238
|
+
value.items()
|
|
239
|
+
))
|
|
240
|
+
else:
|
|
241
|
+
result[attr] = value
|
|
242
|
+
|
|
243
|
+
return result
|
|
244
|
+
|
|
245
|
+
def to_str(self):
|
|
246
|
+
"""Returns the string representation of the model"""
|
|
247
|
+
return pprint.pformat(self.to_dict())
|
|
248
|
+
|
|
249
|
+
def __repr__(self):
|
|
250
|
+
"""For `print` and `pprint`"""
|
|
251
|
+
return self.to_str()
|
|
252
|
+
|
|
253
|
+
def __eq__(self, other):
|
|
254
|
+
"""Returns true if both objects are equal"""
|
|
255
|
+
if not isinstance(other, ColumnInfo):
|
|
256
|
+
return False
|
|
257
|
+
|
|
258
|
+
return self.to_dict() == other.to_dict()
|
|
259
|
+
|
|
260
|
+
def __ne__(self, other):
|
|
261
|
+
"""Returns true if both objects are not equal"""
|
|
262
|
+
if not isinstance(other, ColumnInfo):
|
|
263
|
+
return True
|
|
264
|
+
|
|
265
|
+
return self.to_dict() != other.to_dict()
|
|
@@ -36,6 +36,7 @@ class ComputeNodeType(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',
|
|
@@ -47,6 +48,7 @@ class ComputeNodeType(object):
|
|
|
47
48
|
'name': 'name',
|
|
48
49
|
'instance_type': 'instance_type',
|
|
49
50
|
'resources': 'resources',
|
|
51
|
+
'physical_resources': 'physical_resources',
|
|
50
52
|
'labels': 'labels',
|
|
51
53
|
'aws_advanced_configurations_json': 'aws_advanced_configurations_json',
|
|
52
54
|
'gcp_advanced_configurations_json': 'gcp_advanced_configurations_json',
|
|
@@ -54,7 +56,7 @@ class ComputeNodeType(object):
|
|
|
54
56
|
'flags': 'flags'
|
|
55
57
|
}
|
|
56
58
|
|
|
57
|
-
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, local_vars_configuration=None): # noqa: E501
|
|
59
|
+
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, local_vars_configuration=None): # noqa: E501
|
|
58
60
|
"""ComputeNodeType - a model defined in OpenAPI""" # noqa: E501
|
|
59
61
|
if local_vars_configuration is None:
|
|
60
62
|
local_vars_configuration = Configuration()
|
|
@@ -63,6 +65,7 @@ class ComputeNodeType(object):
|
|
|
63
65
|
self._name = None
|
|
64
66
|
self._instance_type = None
|
|
65
67
|
self._resources = None
|
|
68
|
+
self._physical_resources = None
|
|
66
69
|
self._labels = None
|
|
67
70
|
self._aws_advanced_configurations_json = None
|
|
68
71
|
self._gcp_advanced_configurations_json = None
|
|
@@ -74,6 +77,8 @@ class ComputeNodeType(object):
|
|
|
74
77
|
self.instance_type = instance_type
|
|
75
78
|
if resources is not None:
|
|
76
79
|
self.resources = resources
|
|
80
|
+
if physical_resources is not None:
|
|
81
|
+
self.physical_resources = physical_resources
|
|
77
82
|
if labels is not None:
|
|
78
83
|
self.labels = labels
|
|
79
84
|
if aws_advanced_configurations_json is not None:
|
|
@@ -158,6 +163,29 @@ class ComputeNodeType(object):
|
|
|
158
163
|
|
|
159
164
|
self._resources = resources
|
|
160
165
|
|
|
166
|
+
@property
|
|
167
|
+
def physical_resources(self):
|
|
168
|
+
"""Gets the physical_resources of this ComputeNodeType. # noqa: E501
|
|
169
|
+
|
|
170
|
+
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
|
|
171
|
+
|
|
172
|
+
:return: The physical_resources of this ComputeNodeType. # noqa: E501
|
|
173
|
+
:rtype: PhysicalResources
|
|
174
|
+
"""
|
|
175
|
+
return self._physical_resources
|
|
176
|
+
|
|
177
|
+
@physical_resources.setter
|
|
178
|
+
def physical_resources(self, physical_resources):
|
|
179
|
+
"""Sets the physical_resources of this ComputeNodeType.
|
|
180
|
+
|
|
181
|
+
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
|
|
182
|
+
|
|
183
|
+
:param physical_resources: The physical_resources of this ComputeNodeType. # noqa: E501
|
|
184
|
+
:type: PhysicalResources
|
|
185
|
+
"""
|
|
186
|
+
|
|
187
|
+
self._physical_resources = physical_resources
|
|
188
|
+
|
|
161
189
|
@property
|
|
162
190
|
def labels(self):
|
|
163
191
|
"""Gets the labels of this ComputeNodeType. # noqa: E501
|
|
@@ -0,0 +1,206 @@
|
|
|
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 ConnectionMetadata(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
|
+
'workspace_url': 'str',
|
|
39
|
+
'client_id': 'str'
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
attribute_map = {
|
|
43
|
+
'owner': 'owner',
|
|
44
|
+
'full_name': 'full_name',
|
|
45
|
+
'workspace_url': 'workspace_url',
|
|
46
|
+
'client_id': 'client_id'
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
def __init__(self, owner=None, full_name=None, workspace_url=None, client_id=None, local_vars_configuration=None): # noqa: E501
|
|
50
|
+
"""ConnectionMetadata - a model defined in OpenAPI""" # noqa: E501
|
|
51
|
+
if local_vars_configuration is None:
|
|
52
|
+
local_vars_configuration = Configuration()
|
|
53
|
+
self.local_vars_configuration = local_vars_configuration
|
|
54
|
+
|
|
55
|
+
self._owner = None
|
|
56
|
+
self._full_name = None
|
|
57
|
+
self._workspace_url = None
|
|
58
|
+
self._client_id = None
|
|
59
|
+
self.discriminator = None
|
|
60
|
+
|
|
61
|
+
if owner is not None:
|
|
62
|
+
self.owner = owner
|
|
63
|
+
if full_name is not None:
|
|
64
|
+
self.full_name = full_name
|
|
65
|
+
if workspace_url is not None:
|
|
66
|
+
self.workspace_url = workspace_url
|
|
67
|
+
if client_id is not None:
|
|
68
|
+
self.client_id = client_id
|
|
69
|
+
|
|
70
|
+
@property
|
|
71
|
+
def owner(self):
|
|
72
|
+
"""Gets the owner of this ConnectionMetadata. # noqa: E501
|
|
73
|
+
|
|
74
|
+
Owner of the entity # noqa: E501
|
|
75
|
+
|
|
76
|
+
:return: The owner of this ConnectionMetadata. # noqa: E501
|
|
77
|
+
:rtype: str
|
|
78
|
+
"""
|
|
79
|
+
return self._owner
|
|
80
|
+
|
|
81
|
+
@owner.setter
|
|
82
|
+
def owner(self, owner):
|
|
83
|
+
"""Sets the owner of this ConnectionMetadata.
|
|
84
|
+
|
|
85
|
+
Owner of the entity # noqa: E501
|
|
86
|
+
|
|
87
|
+
:param owner: The owner of this ConnectionMetadata. # noqa: E501
|
|
88
|
+
:type: str
|
|
89
|
+
"""
|
|
90
|
+
|
|
91
|
+
self._owner = owner
|
|
92
|
+
|
|
93
|
+
@property
|
|
94
|
+
def full_name(self):
|
|
95
|
+
"""Gets the full_name of this ConnectionMetadata. # noqa: E501
|
|
96
|
+
|
|
97
|
+
Fully qualified name of the entity # noqa: E501
|
|
98
|
+
|
|
99
|
+
:return: The full_name of this ConnectionMetadata. # noqa: E501
|
|
100
|
+
:rtype: str
|
|
101
|
+
"""
|
|
102
|
+
return self._full_name
|
|
103
|
+
|
|
104
|
+
@full_name.setter
|
|
105
|
+
def full_name(self, full_name):
|
|
106
|
+
"""Sets the full_name of this ConnectionMetadata.
|
|
107
|
+
|
|
108
|
+
Fully qualified name of the entity # noqa: E501
|
|
109
|
+
|
|
110
|
+
:param full_name: The full_name of this ConnectionMetadata. # noqa: E501
|
|
111
|
+
:type: str
|
|
112
|
+
"""
|
|
113
|
+
|
|
114
|
+
self._full_name = full_name
|
|
115
|
+
|
|
116
|
+
@property
|
|
117
|
+
def workspace_url(self):
|
|
118
|
+
"""Gets the workspace_url of this ConnectionMetadata. # noqa: E501
|
|
119
|
+
|
|
120
|
+
Workspace URL for the connection # noqa: E501
|
|
121
|
+
|
|
122
|
+
:return: The workspace_url of this ConnectionMetadata. # noqa: E501
|
|
123
|
+
:rtype: str
|
|
124
|
+
"""
|
|
125
|
+
return self._workspace_url
|
|
126
|
+
|
|
127
|
+
@workspace_url.setter
|
|
128
|
+
def workspace_url(self, workspace_url):
|
|
129
|
+
"""Sets the workspace_url of this ConnectionMetadata.
|
|
130
|
+
|
|
131
|
+
Workspace URL for the connection # noqa: E501
|
|
132
|
+
|
|
133
|
+
:param workspace_url: The workspace_url of this ConnectionMetadata. # noqa: E501
|
|
134
|
+
:type: str
|
|
135
|
+
"""
|
|
136
|
+
|
|
137
|
+
self._workspace_url = workspace_url
|
|
138
|
+
|
|
139
|
+
@property
|
|
140
|
+
def client_id(self):
|
|
141
|
+
"""Gets the client_id of this ConnectionMetadata. # noqa: E501
|
|
142
|
+
|
|
143
|
+
OAuth client ID # noqa: E501
|
|
144
|
+
|
|
145
|
+
:return: The client_id of this ConnectionMetadata. # noqa: E501
|
|
146
|
+
:rtype: str
|
|
147
|
+
"""
|
|
148
|
+
return self._client_id
|
|
149
|
+
|
|
150
|
+
@client_id.setter
|
|
151
|
+
def client_id(self, client_id):
|
|
152
|
+
"""Sets the client_id of this ConnectionMetadata.
|
|
153
|
+
|
|
154
|
+
OAuth client ID # noqa: E501
|
|
155
|
+
|
|
156
|
+
:param client_id: The client_id of this ConnectionMetadata. # noqa: E501
|
|
157
|
+
:type: str
|
|
158
|
+
"""
|
|
159
|
+
|
|
160
|
+
self._client_id = client_id
|
|
161
|
+
|
|
162
|
+
def to_dict(self):
|
|
163
|
+
"""Returns the model properties as a dict"""
|
|
164
|
+
result = {}
|
|
165
|
+
|
|
166
|
+
for attr, _ in six.iteritems(self.openapi_types):
|
|
167
|
+
value = getattr(self, attr)
|
|
168
|
+
if isinstance(value, list):
|
|
169
|
+
result[attr] = list(map(
|
|
170
|
+
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
|
171
|
+
value
|
|
172
|
+
))
|
|
173
|
+
elif hasattr(value, "to_dict"):
|
|
174
|
+
result[attr] = value.to_dict()
|
|
175
|
+
elif isinstance(value, dict):
|
|
176
|
+
result[attr] = dict(map(
|
|
177
|
+
lambda item: (item[0], item[1].to_dict())
|
|
178
|
+
if hasattr(item[1], "to_dict") else item,
|
|
179
|
+
value.items()
|
|
180
|
+
))
|
|
181
|
+
else:
|
|
182
|
+
result[attr] = value
|
|
183
|
+
|
|
184
|
+
return result
|
|
185
|
+
|
|
186
|
+
def to_str(self):
|
|
187
|
+
"""Returns the string representation of the model"""
|
|
188
|
+
return pprint.pformat(self.to_dict())
|
|
189
|
+
|
|
190
|
+
def __repr__(self):
|
|
191
|
+
"""For `print` and `pprint`"""
|
|
192
|
+
return self.to_str()
|
|
193
|
+
|
|
194
|
+
def __eq__(self, other):
|
|
195
|
+
"""Returns true if both objects are equal"""
|
|
196
|
+
if not isinstance(other, ConnectionMetadata):
|
|
197
|
+
return False
|
|
198
|
+
|
|
199
|
+
return self.to_dict() == other.to_dict()
|
|
200
|
+
|
|
201
|
+
def __ne__(self, other):
|
|
202
|
+
"""Returns true if both objects are not equal"""
|
|
203
|
+
if not isinstance(other, ConnectionMetadata):
|
|
204
|
+
return True
|
|
205
|
+
|
|
206
|
+
return self.to_dict() != other.to_dict()
|