anyscale 0.26.70__py3-none-any.whl → 0.26.72__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.72.dist-info}/METADATA +1 -1
- {anyscale-0.26.70.dist-info → anyscale-0.26.72.dist-info}/RECORD +78 -58
- {anyscale-0.26.70.dist-info → anyscale-0.26.72.dist-info}/WHEEL +0 -0
- {anyscale-0.26.70.dist-info → anyscale-0.26.72.dist-info}/entry_points.txt +0 -0
- {anyscale-0.26.70.dist-info → anyscale-0.26.72.dist-info}/licenses/LICENSE +0 -0
- {anyscale-0.26.70.dist-info → anyscale-0.26.72.dist-info}/licenses/NOTICE +0 -0
- {anyscale-0.26.70.dist-info → anyscale-0.26.72.dist-info}/top_level.txt +0 -0
|
@@ -0,0 +1,437 @@
|
|
|
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 DataCatalogTable(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
|
+
'schema_id': 'str',
|
|
42
|
+
'catalog_id': 'str',
|
|
43
|
+
'connection_id': 'str',
|
|
44
|
+
'object_type': 'DataCatalogObjectType',
|
|
45
|
+
'table_type': 'str',
|
|
46
|
+
'data_format': 'str',
|
|
47
|
+
'metadata': 'BackendServerApiProductModelsDataCatalogsTableMetadata'
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
attribute_map = {
|
|
51
|
+
'id': 'id',
|
|
52
|
+
'name': 'name',
|
|
53
|
+
'description': 'description',
|
|
54
|
+
'created_at': 'created_at',
|
|
55
|
+
'updated_at': 'updated_at',
|
|
56
|
+
'schema_id': 'schema_id',
|
|
57
|
+
'catalog_id': 'catalog_id',
|
|
58
|
+
'connection_id': 'connection_id',
|
|
59
|
+
'object_type': 'object_type',
|
|
60
|
+
'table_type': 'table_type',
|
|
61
|
+
'data_format': 'data_format',
|
|
62
|
+
'metadata': 'metadata'
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
def __init__(self, id=None, name=None, description=None, created_at=None, updated_at=None, schema_id=None, catalog_id=None, connection_id=None, object_type=None, table_type=None, data_format=None, metadata=None, local_vars_configuration=None): # noqa: E501
|
|
66
|
+
"""DataCatalogTable - a model defined in OpenAPI""" # noqa: E501
|
|
67
|
+
if local_vars_configuration is None:
|
|
68
|
+
local_vars_configuration = Configuration()
|
|
69
|
+
self.local_vars_configuration = local_vars_configuration
|
|
70
|
+
|
|
71
|
+
self._id = None
|
|
72
|
+
self._name = None
|
|
73
|
+
self._description = None
|
|
74
|
+
self._created_at = None
|
|
75
|
+
self._updated_at = None
|
|
76
|
+
self._schema_id = None
|
|
77
|
+
self._catalog_id = None
|
|
78
|
+
self._connection_id = None
|
|
79
|
+
self._object_type = None
|
|
80
|
+
self._table_type = None
|
|
81
|
+
self._data_format = None
|
|
82
|
+
self._metadata = None
|
|
83
|
+
self.discriminator = None
|
|
84
|
+
|
|
85
|
+
self.id = id
|
|
86
|
+
self.name = name
|
|
87
|
+
if description is not None:
|
|
88
|
+
self.description = description
|
|
89
|
+
self.created_at = created_at
|
|
90
|
+
self.updated_at = updated_at
|
|
91
|
+
self.schema_id = schema_id
|
|
92
|
+
self.catalog_id = catalog_id
|
|
93
|
+
self.connection_id = connection_id
|
|
94
|
+
if object_type is not None:
|
|
95
|
+
self.object_type = object_type
|
|
96
|
+
if table_type is not None:
|
|
97
|
+
self.table_type = table_type
|
|
98
|
+
if data_format is not None:
|
|
99
|
+
self.data_format = data_format
|
|
100
|
+
if metadata is not None:
|
|
101
|
+
self.metadata = metadata
|
|
102
|
+
|
|
103
|
+
@property
|
|
104
|
+
def id(self):
|
|
105
|
+
"""Gets the id of this DataCatalogTable. # noqa: E501
|
|
106
|
+
|
|
107
|
+
Unique identifier # noqa: E501
|
|
108
|
+
|
|
109
|
+
:return: The id of this DataCatalogTable. # noqa: E501
|
|
110
|
+
:rtype: str
|
|
111
|
+
"""
|
|
112
|
+
return self._id
|
|
113
|
+
|
|
114
|
+
@id.setter
|
|
115
|
+
def id(self, id):
|
|
116
|
+
"""Sets the id of this DataCatalogTable.
|
|
117
|
+
|
|
118
|
+
Unique identifier # noqa: E501
|
|
119
|
+
|
|
120
|
+
:param id: The id of this DataCatalogTable. # noqa: E501
|
|
121
|
+
:type: str
|
|
122
|
+
"""
|
|
123
|
+
if self.local_vars_configuration.client_side_validation and id is None: # noqa: E501
|
|
124
|
+
raise ValueError("Invalid value for `id`, must not be `None`") # noqa: E501
|
|
125
|
+
|
|
126
|
+
self._id = id
|
|
127
|
+
|
|
128
|
+
@property
|
|
129
|
+
def name(self):
|
|
130
|
+
"""Gets the name of this DataCatalogTable. # noqa: E501
|
|
131
|
+
|
|
132
|
+
Display name # noqa: E501
|
|
133
|
+
|
|
134
|
+
:return: The name of this DataCatalogTable. # noqa: E501
|
|
135
|
+
:rtype: str
|
|
136
|
+
"""
|
|
137
|
+
return self._name
|
|
138
|
+
|
|
139
|
+
@name.setter
|
|
140
|
+
def name(self, name):
|
|
141
|
+
"""Sets the name of this DataCatalogTable.
|
|
142
|
+
|
|
143
|
+
Display name # noqa: E501
|
|
144
|
+
|
|
145
|
+
:param name: The name of this DataCatalogTable. # noqa: E501
|
|
146
|
+
:type: str
|
|
147
|
+
"""
|
|
148
|
+
if self.local_vars_configuration.client_side_validation and name is None: # noqa: E501
|
|
149
|
+
raise ValueError("Invalid value for `name`, must not be `None`") # noqa: E501
|
|
150
|
+
|
|
151
|
+
self._name = name
|
|
152
|
+
|
|
153
|
+
@property
|
|
154
|
+
def description(self):
|
|
155
|
+
"""Gets the description of this DataCatalogTable. # noqa: E501
|
|
156
|
+
|
|
157
|
+
Description # noqa: E501
|
|
158
|
+
|
|
159
|
+
:return: The description of this DataCatalogTable. # noqa: E501
|
|
160
|
+
:rtype: str
|
|
161
|
+
"""
|
|
162
|
+
return self._description
|
|
163
|
+
|
|
164
|
+
@description.setter
|
|
165
|
+
def description(self, description):
|
|
166
|
+
"""Sets the description of this DataCatalogTable.
|
|
167
|
+
|
|
168
|
+
Description # noqa: E501
|
|
169
|
+
|
|
170
|
+
:param description: The description of this DataCatalogTable. # noqa: E501
|
|
171
|
+
:type: str
|
|
172
|
+
"""
|
|
173
|
+
|
|
174
|
+
self._description = description
|
|
175
|
+
|
|
176
|
+
@property
|
|
177
|
+
def created_at(self):
|
|
178
|
+
"""Gets the created_at of this DataCatalogTable. # noqa: E501
|
|
179
|
+
|
|
180
|
+
Creation timestamp in ISO 8601 format # noqa: E501
|
|
181
|
+
|
|
182
|
+
:return: The created_at of this DataCatalogTable. # noqa: E501
|
|
183
|
+
:rtype: str
|
|
184
|
+
"""
|
|
185
|
+
return self._created_at
|
|
186
|
+
|
|
187
|
+
@created_at.setter
|
|
188
|
+
def created_at(self, created_at):
|
|
189
|
+
"""Sets the created_at of this DataCatalogTable.
|
|
190
|
+
|
|
191
|
+
Creation timestamp in ISO 8601 format # noqa: E501
|
|
192
|
+
|
|
193
|
+
:param created_at: The created_at of this DataCatalogTable. # noqa: E501
|
|
194
|
+
:type: str
|
|
195
|
+
"""
|
|
196
|
+
if self.local_vars_configuration.client_side_validation and created_at is None: # noqa: E501
|
|
197
|
+
raise ValueError("Invalid value for `created_at`, must not be `None`") # noqa: E501
|
|
198
|
+
|
|
199
|
+
self._created_at = created_at
|
|
200
|
+
|
|
201
|
+
@property
|
|
202
|
+
def updated_at(self):
|
|
203
|
+
"""Gets the updated_at of this DataCatalogTable. # noqa: E501
|
|
204
|
+
|
|
205
|
+
Last update timestamp in ISO 8601 format # noqa: E501
|
|
206
|
+
|
|
207
|
+
:return: The updated_at of this DataCatalogTable. # noqa: E501
|
|
208
|
+
:rtype: str
|
|
209
|
+
"""
|
|
210
|
+
return self._updated_at
|
|
211
|
+
|
|
212
|
+
@updated_at.setter
|
|
213
|
+
def updated_at(self, updated_at):
|
|
214
|
+
"""Sets the updated_at of this DataCatalogTable.
|
|
215
|
+
|
|
216
|
+
Last update timestamp in ISO 8601 format # noqa: E501
|
|
217
|
+
|
|
218
|
+
:param updated_at: The updated_at of this DataCatalogTable. # noqa: E501
|
|
219
|
+
:type: str
|
|
220
|
+
"""
|
|
221
|
+
if self.local_vars_configuration.client_side_validation and updated_at is None: # noqa: E501
|
|
222
|
+
raise ValueError("Invalid value for `updated_at`, must not be `None`") # noqa: E501
|
|
223
|
+
|
|
224
|
+
self._updated_at = updated_at
|
|
225
|
+
|
|
226
|
+
@property
|
|
227
|
+
def schema_id(self):
|
|
228
|
+
"""Gets the schema_id of this DataCatalogTable. # noqa: E501
|
|
229
|
+
|
|
230
|
+
ID of the parent schema # noqa: E501
|
|
231
|
+
|
|
232
|
+
:return: The schema_id of this DataCatalogTable. # noqa: E501
|
|
233
|
+
:rtype: str
|
|
234
|
+
"""
|
|
235
|
+
return self._schema_id
|
|
236
|
+
|
|
237
|
+
@schema_id.setter
|
|
238
|
+
def schema_id(self, schema_id):
|
|
239
|
+
"""Sets the schema_id of this DataCatalogTable.
|
|
240
|
+
|
|
241
|
+
ID of the parent schema # noqa: E501
|
|
242
|
+
|
|
243
|
+
:param schema_id: The schema_id of this DataCatalogTable. # noqa: E501
|
|
244
|
+
:type: str
|
|
245
|
+
"""
|
|
246
|
+
if self.local_vars_configuration.client_side_validation and schema_id is None: # noqa: E501
|
|
247
|
+
raise ValueError("Invalid value for `schema_id`, must not be `None`") # noqa: E501
|
|
248
|
+
|
|
249
|
+
self._schema_id = schema_id
|
|
250
|
+
|
|
251
|
+
@property
|
|
252
|
+
def catalog_id(self):
|
|
253
|
+
"""Gets the catalog_id of this DataCatalogTable. # noqa: E501
|
|
254
|
+
|
|
255
|
+
ID of the parent catalog # noqa: E501
|
|
256
|
+
|
|
257
|
+
:return: The catalog_id of this DataCatalogTable. # noqa: E501
|
|
258
|
+
:rtype: str
|
|
259
|
+
"""
|
|
260
|
+
return self._catalog_id
|
|
261
|
+
|
|
262
|
+
@catalog_id.setter
|
|
263
|
+
def catalog_id(self, catalog_id):
|
|
264
|
+
"""Sets the catalog_id of this DataCatalogTable.
|
|
265
|
+
|
|
266
|
+
ID of the parent catalog # noqa: E501
|
|
267
|
+
|
|
268
|
+
:param catalog_id: The catalog_id of this DataCatalogTable. # noqa: E501
|
|
269
|
+
:type: str
|
|
270
|
+
"""
|
|
271
|
+
if self.local_vars_configuration.client_side_validation and catalog_id is None: # noqa: E501
|
|
272
|
+
raise ValueError("Invalid value for `catalog_id`, must not be `None`") # noqa: E501
|
|
273
|
+
|
|
274
|
+
self._catalog_id = catalog_id
|
|
275
|
+
|
|
276
|
+
@property
|
|
277
|
+
def connection_id(self):
|
|
278
|
+
"""Gets the connection_id of this DataCatalogTable. # noqa: E501
|
|
279
|
+
|
|
280
|
+
ID of the parent data catalog connection # noqa: E501
|
|
281
|
+
|
|
282
|
+
:return: The connection_id of this DataCatalogTable. # noqa: E501
|
|
283
|
+
:rtype: str
|
|
284
|
+
"""
|
|
285
|
+
return self._connection_id
|
|
286
|
+
|
|
287
|
+
@connection_id.setter
|
|
288
|
+
def connection_id(self, connection_id):
|
|
289
|
+
"""Sets the connection_id of this DataCatalogTable.
|
|
290
|
+
|
|
291
|
+
ID of the parent data catalog connection # noqa: E501
|
|
292
|
+
|
|
293
|
+
:param connection_id: The connection_id of this DataCatalogTable. # noqa: E501
|
|
294
|
+
:type: str
|
|
295
|
+
"""
|
|
296
|
+
if self.local_vars_configuration.client_side_validation and connection_id is None: # noqa: E501
|
|
297
|
+
raise ValueError("Invalid value for `connection_id`, must not be `None`") # noqa: E501
|
|
298
|
+
|
|
299
|
+
self._connection_id = connection_id
|
|
300
|
+
|
|
301
|
+
@property
|
|
302
|
+
def object_type(self):
|
|
303
|
+
"""Gets the object_type of this DataCatalogTable. # noqa: E501
|
|
304
|
+
|
|
305
|
+
Type of catalog object (always 'table' for this model) # noqa: E501
|
|
306
|
+
|
|
307
|
+
:return: The object_type of this DataCatalogTable. # noqa: E501
|
|
308
|
+
:rtype: DataCatalogObjectType
|
|
309
|
+
"""
|
|
310
|
+
return self._object_type
|
|
311
|
+
|
|
312
|
+
@object_type.setter
|
|
313
|
+
def object_type(self, object_type):
|
|
314
|
+
"""Sets the object_type of this DataCatalogTable.
|
|
315
|
+
|
|
316
|
+
Type of catalog object (always 'table' for this model) # noqa: E501
|
|
317
|
+
|
|
318
|
+
:param object_type: The object_type of this DataCatalogTable. # noqa: E501
|
|
319
|
+
:type: DataCatalogObjectType
|
|
320
|
+
"""
|
|
321
|
+
|
|
322
|
+
self._object_type = object_type
|
|
323
|
+
|
|
324
|
+
@property
|
|
325
|
+
def table_type(self):
|
|
326
|
+
"""Gets the table_type of this DataCatalogTable. # noqa: E501
|
|
327
|
+
|
|
328
|
+
Type of table (e.g., 'MANAGED', 'EXTERNAL', 'VIEW') # noqa: E501
|
|
329
|
+
|
|
330
|
+
:return: The table_type of this DataCatalogTable. # noqa: E501
|
|
331
|
+
:rtype: str
|
|
332
|
+
"""
|
|
333
|
+
return self._table_type
|
|
334
|
+
|
|
335
|
+
@table_type.setter
|
|
336
|
+
def table_type(self, table_type):
|
|
337
|
+
"""Sets the table_type of this DataCatalogTable.
|
|
338
|
+
|
|
339
|
+
Type of table (e.g., 'MANAGED', 'EXTERNAL', 'VIEW') # noqa: E501
|
|
340
|
+
|
|
341
|
+
:param table_type: The table_type of this DataCatalogTable. # noqa: E501
|
|
342
|
+
:type: str
|
|
343
|
+
"""
|
|
344
|
+
|
|
345
|
+
self._table_type = table_type
|
|
346
|
+
|
|
347
|
+
@property
|
|
348
|
+
def data_format(self):
|
|
349
|
+
"""Gets the data_format of this DataCatalogTable. # noqa: E501
|
|
350
|
+
|
|
351
|
+
Data format (e.g., 'DELTA', 'PARQUET') # noqa: E501
|
|
352
|
+
|
|
353
|
+
:return: The data_format of this DataCatalogTable. # noqa: E501
|
|
354
|
+
:rtype: str
|
|
355
|
+
"""
|
|
356
|
+
return self._data_format
|
|
357
|
+
|
|
358
|
+
@data_format.setter
|
|
359
|
+
def data_format(self, data_format):
|
|
360
|
+
"""Sets the data_format of this DataCatalogTable.
|
|
361
|
+
|
|
362
|
+
Data format (e.g., 'DELTA', 'PARQUET') # noqa: E501
|
|
363
|
+
|
|
364
|
+
:param data_format: The data_format of this DataCatalogTable. # noqa: E501
|
|
365
|
+
:type: str
|
|
366
|
+
"""
|
|
367
|
+
|
|
368
|
+
self._data_format = data_format
|
|
369
|
+
|
|
370
|
+
@property
|
|
371
|
+
def metadata(self):
|
|
372
|
+
"""Gets the metadata of this DataCatalogTable. # noqa: E501
|
|
373
|
+
|
|
374
|
+
Table-specific metadata including owner, full_name, and column_count # noqa: E501
|
|
375
|
+
|
|
376
|
+
:return: The metadata of this DataCatalogTable. # noqa: E501
|
|
377
|
+
:rtype: BackendServerApiProductModelsDataCatalogsTableMetadata
|
|
378
|
+
"""
|
|
379
|
+
return self._metadata
|
|
380
|
+
|
|
381
|
+
@metadata.setter
|
|
382
|
+
def metadata(self, metadata):
|
|
383
|
+
"""Sets the metadata of this DataCatalogTable.
|
|
384
|
+
|
|
385
|
+
Table-specific metadata including owner, full_name, and column_count # noqa: E501
|
|
386
|
+
|
|
387
|
+
:param metadata: The metadata of this DataCatalogTable. # noqa: E501
|
|
388
|
+
:type: BackendServerApiProductModelsDataCatalogsTableMetadata
|
|
389
|
+
"""
|
|
390
|
+
|
|
391
|
+
self._metadata = metadata
|
|
392
|
+
|
|
393
|
+
def to_dict(self):
|
|
394
|
+
"""Returns the model properties as a dict"""
|
|
395
|
+
result = {}
|
|
396
|
+
|
|
397
|
+
for attr, _ in six.iteritems(self.openapi_types):
|
|
398
|
+
value = getattr(self, attr)
|
|
399
|
+
if isinstance(value, list):
|
|
400
|
+
result[attr] = list(map(
|
|
401
|
+
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
|
402
|
+
value
|
|
403
|
+
))
|
|
404
|
+
elif hasattr(value, "to_dict"):
|
|
405
|
+
result[attr] = value.to_dict()
|
|
406
|
+
elif isinstance(value, dict):
|
|
407
|
+
result[attr] = dict(map(
|
|
408
|
+
lambda item: (item[0], item[1].to_dict())
|
|
409
|
+
if hasattr(item[1], "to_dict") else item,
|
|
410
|
+
value.items()
|
|
411
|
+
))
|
|
412
|
+
else:
|
|
413
|
+
result[attr] = value
|
|
414
|
+
|
|
415
|
+
return result
|
|
416
|
+
|
|
417
|
+
def to_str(self):
|
|
418
|
+
"""Returns the string representation of the model"""
|
|
419
|
+
return pprint.pformat(self.to_dict())
|
|
420
|
+
|
|
421
|
+
def __repr__(self):
|
|
422
|
+
"""For `print` and `pprint`"""
|
|
423
|
+
return self.to_str()
|
|
424
|
+
|
|
425
|
+
def __eq__(self, other):
|
|
426
|
+
"""Returns true if both objects are equal"""
|
|
427
|
+
if not isinstance(other, DataCatalogTable):
|
|
428
|
+
return False
|
|
429
|
+
|
|
430
|
+
return self.to_dict() == other.to_dict()
|
|
431
|
+
|
|
432
|
+
def __ne__(self, other):
|
|
433
|
+
"""Returns true if both objects are not equal"""
|
|
434
|
+
if not isinstance(other, DataCatalogTable):
|
|
435
|
+
return True
|
|
436
|
+
|
|
437
|
+
return self.to_dict() != other.to_dict()
|