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
|
@@ -35,26 +35,26 @@ class DataCatalogConnection(object):
|
|
|
35
35
|
openapi_types = {
|
|
36
36
|
'id': 'str',
|
|
37
37
|
'name': 'str',
|
|
38
|
-
'provider': 'DataCatalogProvider',
|
|
39
|
-
'connection_status': 'DataCatalogConnectionStatus',
|
|
40
38
|
'description': 'str',
|
|
41
39
|
'created_at': 'str',
|
|
42
40
|
'updated_at': 'str',
|
|
43
|
-
'
|
|
41
|
+
'provider': 'DataCatalogProvider',
|
|
42
|
+
'connection_status': 'DataCatalogConnectionStatus',
|
|
43
|
+
'metadata': 'ConnectionMetadata'
|
|
44
44
|
}
|
|
45
45
|
|
|
46
46
|
attribute_map = {
|
|
47
47
|
'id': 'id',
|
|
48
48
|
'name': 'name',
|
|
49
|
-
'provider': 'provider',
|
|
50
|
-
'connection_status': 'connection_status',
|
|
51
49
|
'description': 'description',
|
|
52
50
|
'created_at': 'created_at',
|
|
53
51
|
'updated_at': 'updated_at',
|
|
52
|
+
'provider': 'provider',
|
|
53
|
+
'connection_status': 'connection_status',
|
|
54
54
|
'metadata': 'metadata'
|
|
55
55
|
}
|
|
56
56
|
|
|
57
|
-
def __init__(self, id=None, name=None,
|
|
57
|
+
def __init__(self, id=None, name=None, description=None, created_at=None, updated_at=None, provider=None, connection_status=None, metadata=None, local_vars_configuration=None): # noqa: E501
|
|
58
58
|
"""DataCatalogConnection - a model defined in OpenAPI""" # noqa: E501
|
|
59
59
|
if local_vars_configuration is None:
|
|
60
60
|
local_vars_configuration = Configuration()
|
|
@@ -62,22 +62,22 @@ class DataCatalogConnection(object):
|
|
|
62
62
|
|
|
63
63
|
self._id = None
|
|
64
64
|
self._name = None
|
|
65
|
-
self._provider = None
|
|
66
|
-
self._connection_status = None
|
|
67
65
|
self._description = None
|
|
68
66
|
self._created_at = None
|
|
69
67
|
self._updated_at = None
|
|
68
|
+
self._provider = None
|
|
69
|
+
self._connection_status = None
|
|
70
70
|
self._metadata = None
|
|
71
71
|
self.discriminator = None
|
|
72
72
|
|
|
73
73
|
self.id = id
|
|
74
74
|
self.name = name
|
|
75
|
-
self.provider = provider
|
|
76
|
-
self.connection_status = connection_status
|
|
77
75
|
if description is not None:
|
|
78
76
|
self.description = description
|
|
79
77
|
self.created_at = created_at
|
|
80
78
|
self.updated_at = updated_at
|
|
79
|
+
self.provider = provider
|
|
80
|
+
self.connection_status = connection_status
|
|
81
81
|
if metadata is not None:
|
|
82
82
|
self.metadata = metadata
|
|
83
83
|
|
|
@@ -85,6 +85,7 @@ class DataCatalogConnection(object):
|
|
|
85
85
|
def id(self):
|
|
86
86
|
"""Gets the id of this DataCatalogConnection. # noqa: E501
|
|
87
87
|
|
|
88
|
+
Unique identifier # noqa: E501
|
|
88
89
|
|
|
89
90
|
:return: The id of this DataCatalogConnection. # noqa: E501
|
|
90
91
|
:rtype: str
|
|
@@ -95,6 +96,7 @@ class DataCatalogConnection(object):
|
|
|
95
96
|
def id(self, id):
|
|
96
97
|
"""Sets the id of this DataCatalogConnection.
|
|
97
98
|
|
|
99
|
+
Unique identifier # noqa: E501
|
|
98
100
|
|
|
99
101
|
:param id: The id of this DataCatalogConnection. # noqa: E501
|
|
100
102
|
:type: str
|
|
@@ -108,6 +110,7 @@ class DataCatalogConnection(object):
|
|
|
108
110
|
def name(self):
|
|
109
111
|
"""Gets the name of this DataCatalogConnection. # noqa: E501
|
|
110
112
|
|
|
113
|
+
Display name # noqa: E501
|
|
111
114
|
|
|
112
115
|
:return: The name of this DataCatalogConnection. # noqa: E501
|
|
113
116
|
:rtype: str
|
|
@@ -118,6 +121,7 @@ class DataCatalogConnection(object):
|
|
|
118
121
|
def name(self, name):
|
|
119
122
|
"""Sets the name of this DataCatalogConnection.
|
|
120
123
|
|
|
124
|
+
Display name # noqa: E501
|
|
121
125
|
|
|
122
126
|
:param name: The name of this DataCatalogConnection. # noqa: E501
|
|
123
127
|
:type: str
|
|
@@ -127,56 +131,11 @@ class DataCatalogConnection(object):
|
|
|
127
131
|
|
|
128
132
|
self._name = name
|
|
129
133
|
|
|
130
|
-
@property
|
|
131
|
-
def provider(self):
|
|
132
|
-
"""Gets the provider of this DataCatalogConnection. # noqa: E501
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
:return: The provider of this DataCatalogConnection. # noqa: E501
|
|
136
|
-
:rtype: DataCatalogProvider
|
|
137
|
-
"""
|
|
138
|
-
return self._provider
|
|
139
|
-
|
|
140
|
-
@provider.setter
|
|
141
|
-
def provider(self, provider):
|
|
142
|
-
"""Sets the provider of this DataCatalogConnection.
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
:param provider: The provider of this DataCatalogConnection. # noqa: E501
|
|
146
|
-
:type: DataCatalogProvider
|
|
147
|
-
"""
|
|
148
|
-
if self.local_vars_configuration.client_side_validation and provider is None: # noqa: E501
|
|
149
|
-
raise ValueError("Invalid value for `provider`, must not be `None`") # noqa: E501
|
|
150
|
-
|
|
151
|
-
self._provider = provider
|
|
152
|
-
|
|
153
|
-
@property
|
|
154
|
-
def connection_status(self):
|
|
155
|
-
"""Gets the connection_status of this DataCatalogConnection. # noqa: E501
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
:return: The connection_status of this DataCatalogConnection. # noqa: E501
|
|
159
|
-
:rtype: DataCatalogConnectionStatus
|
|
160
|
-
"""
|
|
161
|
-
return self._connection_status
|
|
162
|
-
|
|
163
|
-
@connection_status.setter
|
|
164
|
-
def connection_status(self, connection_status):
|
|
165
|
-
"""Sets the connection_status of this DataCatalogConnection.
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
:param connection_status: The connection_status of this DataCatalogConnection. # noqa: E501
|
|
169
|
-
:type: DataCatalogConnectionStatus
|
|
170
|
-
"""
|
|
171
|
-
if self.local_vars_configuration.client_side_validation and connection_status is None: # noqa: E501
|
|
172
|
-
raise ValueError("Invalid value for `connection_status`, must not be `None`") # noqa: E501
|
|
173
|
-
|
|
174
|
-
self._connection_status = connection_status
|
|
175
|
-
|
|
176
134
|
@property
|
|
177
135
|
def description(self):
|
|
178
136
|
"""Gets the description of this DataCatalogConnection. # noqa: E501
|
|
179
137
|
|
|
138
|
+
Description # noqa: E501
|
|
180
139
|
|
|
181
140
|
:return: The description of this DataCatalogConnection. # noqa: E501
|
|
182
141
|
:rtype: str
|
|
@@ -187,6 +146,7 @@ class DataCatalogConnection(object):
|
|
|
187
146
|
def description(self, description):
|
|
188
147
|
"""Sets the description of this DataCatalogConnection.
|
|
189
148
|
|
|
149
|
+
Description # noqa: E501
|
|
190
150
|
|
|
191
151
|
:param description: The description of this DataCatalogConnection. # noqa: E501
|
|
192
152
|
:type: str
|
|
@@ -198,6 +158,7 @@ class DataCatalogConnection(object):
|
|
|
198
158
|
def created_at(self):
|
|
199
159
|
"""Gets the created_at of this DataCatalogConnection. # noqa: E501
|
|
200
160
|
|
|
161
|
+
Creation timestamp in ISO 8601 format # noqa: E501
|
|
201
162
|
|
|
202
163
|
:return: The created_at of this DataCatalogConnection. # noqa: E501
|
|
203
164
|
:rtype: str
|
|
@@ -208,6 +169,7 @@ class DataCatalogConnection(object):
|
|
|
208
169
|
def created_at(self, created_at):
|
|
209
170
|
"""Sets the created_at of this DataCatalogConnection.
|
|
210
171
|
|
|
172
|
+
Creation timestamp in ISO 8601 format # noqa: E501
|
|
211
173
|
|
|
212
174
|
:param created_at: The created_at of this DataCatalogConnection. # noqa: E501
|
|
213
175
|
:type: str
|
|
@@ -221,6 +183,7 @@ class DataCatalogConnection(object):
|
|
|
221
183
|
def updated_at(self):
|
|
222
184
|
"""Gets the updated_at of this DataCatalogConnection. # noqa: E501
|
|
223
185
|
|
|
186
|
+
Last update timestamp in ISO 8601 format # noqa: E501
|
|
224
187
|
|
|
225
188
|
:return: The updated_at of this DataCatalogConnection. # noqa: E501
|
|
226
189
|
:rtype: str
|
|
@@ -231,6 +194,7 @@ class DataCatalogConnection(object):
|
|
|
231
194
|
def updated_at(self, updated_at):
|
|
232
195
|
"""Sets the updated_at of this DataCatalogConnection.
|
|
233
196
|
|
|
197
|
+
Last update timestamp in ISO 8601 format # noqa: E501
|
|
234
198
|
|
|
235
199
|
:param updated_at: The updated_at of this DataCatalogConnection. # noqa: E501
|
|
236
200
|
:type: str
|
|
@@ -240,13 +204,64 @@ class DataCatalogConnection(object):
|
|
|
240
204
|
|
|
241
205
|
self._updated_at = updated_at
|
|
242
206
|
|
|
207
|
+
@property
|
|
208
|
+
def provider(self):
|
|
209
|
+
"""Gets the provider of this DataCatalogConnection. # noqa: E501
|
|
210
|
+
|
|
211
|
+
Type of catalog provider (e.g., Databricks, AWS Glue) # noqa: E501
|
|
212
|
+
|
|
213
|
+
:return: The provider of this DataCatalogConnection. # noqa: E501
|
|
214
|
+
:rtype: DataCatalogProvider
|
|
215
|
+
"""
|
|
216
|
+
return self._provider
|
|
217
|
+
|
|
218
|
+
@provider.setter
|
|
219
|
+
def provider(self, provider):
|
|
220
|
+
"""Sets the provider of this DataCatalogConnection.
|
|
221
|
+
|
|
222
|
+
Type of catalog provider (e.g., Databricks, AWS Glue) # noqa: E501
|
|
223
|
+
|
|
224
|
+
:param provider: The provider of this DataCatalogConnection. # noqa: E501
|
|
225
|
+
:type: DataCatalogProvider
|
|
226
|
+
"""
|
|
227
|
+
if self.local_vars_configuration.client_side_validation and provider is None: # noqa: E501
|
|
228
|
+
raise ValueError("Invalid value for `provider`, must not be `None`") # noqa: E501
|
|
229
|
+
|
|
230
|
+
self._provider = provider
|
|
231
|
+
|
|
232
|
+
@property
|
|
233
|
+
def connection_status(self):
|
|
234
|
+
"""Gets the connection_status of this DataCatalogConnection. # noqa: E501
|
|
235
|
+
|
|
236
|
+
Current status of the connection # noqa: E501
|
|
237
|
+
|
|
238
|
+
:return: The connection_status of this DataCatalogConnection. # noqa: E501
|
|
239
|
+
:rtype: DataCatalogConnectionStatus
|
|
240
|
+
"""
|
|
241
|
+
return self._connection_status
|
|
242
|
+
|
|
243
|
+
@connection_status.setter
|
|
244
|
+
def connection_status(self, connection_status):
|
|
245
|
+
"""Sets the connection_status of this DataCatalogConnection.
|
|
246
|
+
|
|
247
|
+
Current status of the connection # noqa: E501
|
|
248
|
+
|
|
249
|
+
:param connection_status: The connection_status of this DataCatalogConnection. # noqa: E501
|
|
250
|
+
:type: DataCatalogConnectionStatus
|
|
251
|
+
"""
|
|
252
|
+
if self.local_vars_configuration.client_side_validation and connection_status is None: # noqa: E501
|
|
253
|
+
raise ValueError("Invalid value for `connection_status`, must not be `None`") # noqa: E501
|
|
254
|
+
|
|
255
|
+
self._connection_status = connection_status
|
|
256
|
+
|
|
243
257
|
@property
|
|
244
258
|
def metadata(self):
|
|
245
259
|
"""Gets the metadata of this DataCatalogConnection. # noqa: E501
|
|
246
260
|
|
|
261
|
+
Connection-specific metadata # noqa: E501
|
|
247
262
|
|
|
248
263
|
:return: The metadata of this DataCatalogConnection. # noqa: E501
|
|
249
|
-
:rtype:
|
|
264
|
+
:rtype: ConnectionMetadata
|
|
250
265
|
"""
|
|
251
266
|
return self._metadata
|
|
252
267
|
|
|
@@ -254,9 +269,10 @@ class DataCatalogConnection(object):
|
|
|
254
269
|
def metadata(self, metadata):
|
|
255
270
|
"""Sets the metadata of this DataCatalogConnection.
|
|
256
271
|
|
|
272
|
+
Connection-specific metadata # noqa: E501
|
|
257
273
|
|
|
258
274
|
:param metadata: The metadata of this DataCatalogConnection. # noqa: E501
|
|
259
|
-
:type:
|
|
275
|
+
:type: ConnectionMetadata
|
|
260
276
|
"""
|
|
261
277
|
|
|
262
278
|
self._metadata = metadata
|
|
@@ -18,7 +18,7 @@ import six
|
|
|
18
18
|
from openapi_client.configuration import Configuration
|
|
19
19
|
|
|
20
20
|
|
|
21
|
-
class
|
|
21
|
+
class DataCatalogObjectType(object):
|
|
22
22
|
"""NOTE: This class is auto generated by OpenAPI Generator.
|
|
23
23
|
Ref: https://openapi-generator.tech
|
|
24
24
|
|
|
@@ -28,11 +28,10 @@ class HaJobEventLevel(object):
|
|
|
28
28
|
"""
|
|
29
29
|
allowed enum values
|
|
30
30
|
"""
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
ERROR = "ERROR"
|
|
31
|
+
TABLE = "table"
|
|
32
|
+
VOLUME = "volume"
|
|
34
33
|
|
|
35
|
-
allowable_values = [
|
|
34
|
+
allowable_values = [TABLE, VOLUME] # noqa: E501
|
|
36
35
|
|
|
37
36
|
"""
|
|
38
37
|
Attributes:
|
|
@@ -48,7 +47,7 @@ class HaJobEventLevel(object):
|
|
|
48
47
|
}
|
|
49
48
|
|
|
50
49
|
def __init__(self, local_vars_configuration=None): # noqa: E501
|
|
51
|
-
"""
|
|
50
|
+
"""DataCatalogObjectType - a model defined in OpenAPI""" # noqa: E501
|
|
52
51
|
if local_vars_configuration is None:
|
|
53
52
|
local_vars_configuration = Configuration()
|
|
54
53
|
self.local_vars_configuration = local_vars_configuration
|
|
@@ -88,14 +87,14 @@ class HaJobEventLevel(object):
|
|
|
88
87
|
|
|
89
88
|
def __eq__(self, other):
|
|
90
89
|
"""Returns true if both objects are equal"""
|
|
91
|
-
if not isinstance(other,
|
|
90
|
+
if not isinstance(other, DataCatalogObjectType):
|
|
92
91
|
return False
|
|
93
92
|
|
|
94
93
|
return self.to_dict() == other.to_dict()
|
|
95
94
|
|
|
96
95
|
def __ne__(self, other):
|
|
97
96
|
"""Returns true if both objects are not equal"""
|
|
98
|
-
if not isinstance(other,
|
|
97
|
+
if not isinstance(other, DataCatalogObjectType):
|
|
99
98
|
return True
|
|
100
99
|
|
|
101
100
|
return self.to_dict() != other.to_dict()
|
|
@@ -0,0 +1,324 @@
|
|
|
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 DataCatalogSchema(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
|
+
'id': 'str',
|
|
37
|
+
'name': 'str',
|
|
38
|
+
'description': 'str',
|
|
39
|
+
'created_at': 'str',
|
|
40
|
+
'updated_at': 'str',
|
|
41
|
+
'catalog_id': 'str',
|
|
42
|
+
'connection_id': 'str',
|
|
43
|
+
'metadata': 'SchemaMetadata'
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
attribute_map = {
|
|
47
|
+
'id': 'id',
|
|
48
|
+
'name': 'name',
|
|
49
|
+
'description': 'description',
|
|
50
|
+
'created_at': 'created_at',
|
|
51
|
+
'updated_at': 'updated_at',
|
|
52
|
+
'catalog_id': 'catalog_id',
|
|
53
|
+
'connection_id': 'connection_id',
|
|
54
|
+
'metadata': 'metadata'
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
def __init__(self, id=None, name=None, description=None, created_at=None, updated_at=None, catalog_id=None, connection_id=None, metadata=None, local_vars_configuration=None): # noqa: E501
|
|
58
|
+
"""DataCatalogSchema - a model defined in OpenAPI""" # noqa: E501
|
|
59
|
+
if local_vars_configuration is None:
|
|
60
|
+
local_vars_configuration = Configuration()
|
|
61
|
+
self.local_vars_configuration = local_vars_configuration
|
|
62
|
+
|
|
63
|
+
self._id = None
|
|
64
|
+
self._name = None
|
|
65
|
+
self._description = None
|
|
66
|
+
self._created_at = None
|
|
67
|
+
self._updated_at = None
|
|
68
|
+
self._catalog_id = None
|
|
69
|
+
self._connection_id = None
|
|
70
|
+
self._metadata = None
|
|
71
|
+
self.discriminator = None
|
|
72
|
+
|
|
73
|
+
self.id = id
|
|
74
|
+
self.name = name
|
|
75
|
+
if description is not None:
|
|
76
|
+
self.description = description
|
|
77
|
+
self.created_at = created_at
|
|
78
|
+
self.updated_at = updated_at
|
|
79
|
+
self.catalog_id = catalog_id
|
|
80
|
+
self.connection_id = connection_id
|
|
81
|
+
if metadata is not None:
|
|
82
|
+
self.metadata = metadata
|
|
83
|
+
|
|
84
|
+
@property
|
|
85
|
+
def id(self):
|
|
86
|
+
"""Gets the id of this DataCatalogSchema. # noqa: E501
|
|
87
|
+
|
|
88
|
+
Unique identifier # noqa: E501
|
|
89
|
+
|
|
90
|
+
:return: The id of this DataCatalogSchema. # noqa: E501
|
|
91
|
+
:rtype: str
|
|
92
|
+
"""
|
|
93
|
+
return self._id
|
|
94
|
+
|
|
95
|
+
@id.setter
|
|
96
|
+
def id(self, id):
|
|
97
|
+
"""Sets the id of this DataCatalogSchema.
|
|
98
|
+
|
|
99
|
+
Unique identifier # noqa: E501
|
|
100
|
+
|
|
101
|
+
:param id: The id of this DataCatalogSchema. # noqa: E501
|
|
102
|
+
:type: str
|
|
103
|
+
"""
|
|
104
|
+
if self.local_vars_configuration.client_side_validation and id is None: # noqa: E501
|
|
105
|
+
raise ValueError("Invalid value for `id`, must not be `None`") # noqa: E501
|
|
106
|
+
|
|
107
|
+
self._id = id
|
|
108
|
+
|
|
109
|
+
@property
|
|
110
|
+
def name(self):
|
|
111
|
+
"""Gets the name of this DataCatalogSchema. # noqa: E501
|
|
112
|
+
|
|
113
|
+
Display name # noqa: E501
|
|
114
|
+
|
|
115
|
+
:return: The name of this DataCatalogSchema. # noqa: E501
|
|
116
|
+
:rtype: str
|
|
117
|
+
"""
|
|
118
|
+
return self._name
|
|
119
|
+
|
|
120
|
+
@name.setter
|
|
121
|
+
def name(self, name):
|
|
122
|
+
"""Sets the name of this DataCatalogSchema.
|
|
123
|
+
|
|
124
|
+
Display name # noqa: E501
|
|
125
|
+
|
|
126
|
+
:param name: The name of this DataCatalogSchema. # noqa: E501
|
|
127
|
+
:type: str
|
|
128
|
+
"""
|
|
129
|
+
if self.local_vars_configuration.client_side_validation and name is None: # noqa: E501
|
|
130
|
+
raise ValueError("Invalid value for `name`, must not be `None`") # noqa: E501
|
|
131
|
+
|
|
132
|
+
self._name = name
|
|
133
|
+
|
|
134
|
+
@property
|
|
135
|
+
def description(self):
|
|
136
|
+
"""Gets the description of this DataCatalogSchema. # noqa: E501
|
|
137
|
+
|
|
138
|
+
Description # noqa: E501
|
|
139
|
+
|
|
140
|
+
:return: The description of this DataCatalogSchema. # noqa: E501
|
|
141
|
+
:rtype: str
|
|
142
|
+
"""
|
|
143
|
+
return self._description
|
|
144
|
+
|
|
145
|
+
@description.setter
|
|
146
|
+
def description(self, description):
|
|
147
|
+
"""Sets the description of this DataCatalogSchema.
|
|
148
|
+
|
|
149
|
+
Description # noqa: E501
|
|
150
|
+
|
|
151
|
+
:param description: The description of this DataCatalogSchema. # noqa: E501
|
|
152
|
+
:type: str
|
|
153
|
+
"""
|
|
154
|
+
|
|
155
|
+
self._description = description
|
|
156
|
+
|
|
157
|
+
@property
|
|
158
|
+
def created_at(self):
|
|
159
|
+
"""Gets the created_at of this DataCatalogSchema. # noqa: E501
|
|
160
|
+
|
|
161
|
+
Creation timestamp in ISO 8601 format # noqa: E501
|
|
162
|
+
|
|
163
|
+
:return: The created_at of this DataCatalogSchema. # noqa: E501
|
|
164
|
+
:rtype: str
|
|
165
|
+
"""
|
|
166
|
+
return self._created_at
|
|
167
|
+
|
|
168
|
+
@created_at.setter
|
|
169
|
+
def created_at(self, created_at):
|
|
170
|
+
"""Sets the created_at of this DataCatalogSchema.
|
|
171
|
+
|
|
172
|
+
Creation timestamp in ISO 8601 format # noqa: E501
|
|
173
|
+
|
|
174
|
+
:param created_at: The created_at of this DataCatalogSchema. # noqa: E501
|
|
175
|
+
:type: str
|
|
176
|
+
"""
|
|
177
|
+
if self.local_vars_configuration.client_side_validation and created_at is None: # noqa: E501
|
|
178
|
+
raise ValueError("Invalid value for `created_at`, must not be `None`") # noqa: E501
|
|
179
|
+
|
|
180
|
+
self._created_at = created_at
|
|
181
|
+
|
|
182
|
+
@property
|
|
183
|
+
def updated_at(self):
|
|
184
|
+
"""Gets the updated_at of this DataCatalogSchema. # noqa: E501
|
|
185
|
+
|
|
186
|
+
Last update timestamp in ISO 8601 format # noqa: E501
|
|
187
|
+
|
|
188
|
+
:return: The updated_at of this DataCatalogSchema. # noqa: E501
|
|
189
|
+
:rtype: str
|
|
190
|
+
"""
|
|
191
|
+
return self._updated_at
|
|
192
|
+
|
|
193
|
+
@updated_at.setter
|
|
194
|
+
def updated_at(self, updated_at):
|
|
195
|
+
"""Sets the updated_at of this DataCatalogSchema.
|
|
196
|
+
|
|
197
|
+
Last update timestamp in ISO 8601 format # noqa: E501
|
|
198
|
+
|
|
199
|
+
:param updated_at: The updated_at of this DataCatalogSchema. # noqa: E501
|
|
200
|
+
:type: str
|
|
201
|
+
"""
|
|
202
|
+
if self.local_vars_configuration.client_side_validation and updated_at is None: # noqa: E501
|
|
203
|
+
raise ValueError("Invalid value for `updated_at`, must not be `None`") # noqa: E501
|
|
204
|
+
|
|
205
|
+
self._updated_at = updated_at
|
|
206
|
+
|
|
207
|
+
@property
|
|
208
|
+
def catalog_id(self):
|
|
209
|
+
"""Gets the catalog_id of this DataCatalogSchema. # noqa: E501
|
|
210
|
+
|
|
211
|
+
ID of the parent catalog # noqa: E501
|
|
212
|
+
|
|
213
|
+
:return: The catalog_id of this DataCatalogSchema. # noqa: E501
|
|
214
|
+
:rtype: str
|
|
215
|
+
"""
|
|
216
|
+
return self._catalog_id
|
|
217
|
+
|
|
218
|
+
@catalog_id.setter
|
|
219
|
+
def catalog_id(self, catalog_id):
|
|
220
|
+
"""Sets the catalog_id of this DataCatalogSchema.
|
|
221
|
+
|
|
222
|
+
ID of the parent catalog # noqa: E501
|
|
223
|
+
|
|
224
|
+
:param catalog_id: The catalog_id of this DataCatalogSchema. # noqa: E501
|
|
225
|
+
:type: str
|
|
226
|
+
"""
|
|
227
|
+
if self.local_vars_configuration.client_side_validation and catalog_id is None: # noqa: E501
|
|
228
|
+
raise ValueError("Invalid value for `catalog_id`, must not be `None`") # noqa: E501
|
|
229
|
+
|
|
230
|
+
self._catalog_id = catalog_id
|
|
231
|
+
|
|
232
|
+
@property
|
|
233
|
+
def connection_id(self):
|
|
234
|
+
"""Gets the connection_id of this DataCatalogSchema. # noqa: E501
|
|
235
|
+
|
|
236
|
+
ID of the parent data catalog connection # noqa: E501
|
|
237
|
+
|
|
238
|
+
:return: The connection_id of this DataCatalogSchema. # noqa: E501
|
|
239
|
+
:rtype: str
|
|
240
|
+
"""
|
|
241
|
+
return self._connection_id
|
|
242
|
+
|
|
243
|
+
@connection_id.setter
|
|
244
|
+
def connection_id(self, connection_id):
|
|
245
|
+
"""Sets the connection_id of this DataCatalogSchema.
|
|
246
|
+
|
|
247
|
+
ID of the parent data catalog connection # noqa: E501
|
|
248
|
+
|
|
249
|
+
:param connection_id: The connection_id of this DataCatalogSchema. # noqa: E501
|
|
250
|
+
:type: str
|
|
251
|
+
"""
|
|
252
|
+
if self.local_vars_configuration.client_side_validation and connection_id is None: # noqa: E501
|
|
253
|
+
raise ValueError("Invalid value for `connection_id`, must not be `None`") # noqa: E501
|
|
254
|
+
|
|
255
|
+
self._connection_id = connection_id
|
|
256
|
+
|
|
257
|
+
@property
|
|
258
|
+
def metadata(self):
|
|
259
|
+
"""Gets the metadata of this DataCatalogSchema. # noqa: E501
|
|
260
|
+
|
|
261
|
+
Schema-specific metadata # noqa: E501
|
|
262
|
+
|
|
263
|
+
:return: The metadata of this DataCatalogSchema. # noqa: E501
|
|
264
|
+
:rtype: SchemaMetadata
|
|
265
|
+
"""
|
|
266
|
+
return self._metadata
|
|
267
|
+
|
|
268
|
+
@metadata.setter
|
|
269
|
+
def metadata(self, metadata):
|
|
270
|
+
"""Sets the metadata of this DataCatalogSchema.
|
|
271
|
+
|
|
272
|
+
Schema-specific metadata # noqa: E501
|
|
273
|
+
|
|
274
|
+
:param metadata: The metadata of this DataCatalogSchema. # noqa: E501
|
|
275
|
+
:type: SchemaMetadata
|
|
276
|
+
"""
|
|
277
|
+
|
|
278
|
+
self._metadata = metadata
|
|
279
|
+
|
|
280
|
+
def to_dict(self):
|
|
281
|
+
"""Returns the model properties as a dict"""
|
|
282
|
+
result = {}
|
|
283
|
+
|
|
284
|
+
for attr, _ in six.iteritems(self.openapi_types):
|
|
285
|
+
value = getattr(self, attr)
|
|
286
|
+
if isinstance(value, list):
|
|
287
|
+
result[attr] = list(map(
|
|
288
|
+
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
|
289
|
+
value
|
|
290
|
+
))
|
|
291
|
+
elif hasattr(value, "to_dict"):
|
|
292
|
+
result[attr] = value.to_dict()
|
|
293
|
+
elif isinstance(value, dict):
|
|
294
|
+
result[attr] = dict(map(
|
|
295
|
+
lambda item: (item[0], item[1].to_dict())
|
|
296
|
+
if hasattr(item[1], "to_dict") else item,
|
|
297
|
+
value.items()
|
|
298
|
+
))
|
|
299
|
+
else:
|
|
300
|
+
result[attr] = value
|
|
301
|
+
|
|
302
|
+
return result
|
|
303
|
+
|
|
304
|
+
def to_str(self):
|
|
305
|
+
"""Returns the string representation of the model"""
|
|
306
|
+
return pprint.pformat(self.to_dict())
|
|
307
|
+
|
|
308
|
+
def __repr__(self):
|
|
309
|
+
"""For `print` and `pprint`"""
|
|
310
|
+
return self.to_str()
|
|
311
|
+
|
|
312
|
+
def __eq__(self, other):
|
|
313
|
+
"""Returns true if both objects are equal"""
|
|
314
|
+
if not isinstance(other, DataCatalogSchema):
|
|
315
|
+
return False
|
|
316
|
+
|
|
317
|
+
return self.to_dict() == other.to_dict()
|
|
318
|
+
|
|
319
|
+
def __ne__(self, other):
|
|
320
|
+
"""Returns true if both objects are not equal"""
|
|
321
|
+
if not isinstance(other, DataCatalogSchema):
|
|
322
|
+
return True
|
|
323
|
+
|
|
324
|
+
return self.to_dict() != other.to_dict()
|