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.
Files changed (113) hide show
  1. anyscale/_private/anyscale_client/anyscale_client.py +126 -3
  2. anyscale/_private/anyscale_client/common.py +51 -2
  3. anyscale/_private/anyscale_client/fake_anyscale_client.py +103 -11
  4. anyscale/client/README.md +43 -4
  5. anyscale/client/openapi_client/__init__.py +30 -4
  6. anyscale/client/openapi_client/api/default_api.py +1769 -27
  7. anyscale/client/openapi_client/models/__init__.py +30 -4
  8. anyscale/client/openapi_client/models/api_key_info.py +29 -3
  9. anyscale/client/openapi_client/models/apply_autoscaling_config_update_model.py +350 -0
  10. anyscale/client/openapi_client/models/apply_multi_version_update_weights_update_model.py +152 -0
  11. anyscale/client/openapi_client/models/apply_production_service_multi_version_v2_model.py +207 -0
  12. anyscale/client/openapi_client/models/apply_production_service_v2_model.py +31 -3
  13. anyscale/client/openapi_client/models/apply_version_weight_update_model.py +181 -0
  14. anyscale/client/openapi_client/models/backend_server_api_product_models_catalog_client_models_table_metadata.py +546 -0
  15. anyscale/client/openapi_client/models/backend_server_api_product_models_data_catalogs_table_metadata.py +178 -0
  16. anyscale/client/openapi_client/models/baseimagesenum.py +139 -1
  17. anyscale/client/openapi_client/models/catalog_metadata.py +150 -0
  18. anyscale/client/openapi_client/models/cloud_data_bucket_file_type.py +2 -1
  19. anyscale/client/openapi_client/models/{oauthconnectionresponse_response.py → clouddeployment_response.py} +11 -11
  20. anyscale/client/openapi_client/models/column_info.py +265 -0
  21. anyscale/client/openapi_client/models/compute_node_type.py +29 -1
  22. anyscale/client/openapi_client/models/connection_metadata.py +206 -0
  23. anyscale/client/openapi_client/models/create_experimental_workspace.py +29 -1
  24. anyscale/client/openapi_client/models/create_workspace_from_template.py +29 -1
  25. anyscale/client/openapi_client/models/create_workspace_template_version.py +59 -3
  26. anyscale/client/openapi_client/models/data_catalog.py +45 -31
  27. anyscale/client/openapi_client/models/data_catalog_connection.py +74 -58
  28. anyscale/client/openapi_client/models/{ha_job_event_level.py → data_catalog_object_type.py} +7 -8
  29. anyscale/client/openapi_client/models/data_catalog_schema.py +324 -0
  30. anyscale/client/openapi_client/models/data_catalog_table.py +437 -0
  31. anyscale/client/openapi_client/models/data_catalog_volume.py +437 -0
  32. anyscale/client/openapi_client/models/datacatalogschema_list_response.py +147 -0
  33. anyscale/client/openapi_client/models/datacatalogtable_list_response.py +147 -0
  34. anyscale/client/openapi_client/models/datacatalogvolume_list_response.py +147 -0
  35. anyscale/client/openapi_client/models/decorated_list_service_api_model.py +58 -1
  36. anyscale/client/openapi_client/models/decorated_production_service_v2_api_model.py +60 -3
  37. anyscale/client/openapi_client/models/decorated_serve_deployment.py +27 -1
  38. anyscale/client/openapi_client/models/decorated_service_event_api_model.py +3 -3
  39. anyscale/client/openapi_client/models/decoratedproductionservicev2_versionapimodel_response.py +121 -0
  40. anyscale/client/openapi_client/models/describe_machine_pool_machines_filters.py +33 -5
  41. anyscale/client/openapi_client/models/describe_machine_pool_requests_filters.py +33 -5
  42. anyscale/client/openapi_client/models/describe_machine_pool_workloads_filters.py +33 -5
  43. anyscale/client/openapi_client/models/{service_event_level.py → entity_type.py} +9 -9
  44. anyscale/client/openapi_client/models/event_level.py +2 -1
  45. anyscale/client/openapi_client/models/job_event_fields.py +206 -0
  46. anyscale/client/openapi_client/models/machine_type_partition_filter.py +152 -0
  47. anyscale/client/openapi_client/models/partition_info.py +30 -1
  48. anyscale/client/openapi_client/models/physical_resources.py +178 -0
  49. anyscale/client/openapi_client/models/production_job_event.py +3 -3
  50. anyscale/client/openapi_client/models/rollout_strategy.py +2 -1
  51. anyscale/client/openapi_client/models/schema_metadata.py +150 -0
  52. anyscale/client/openapi_client/models/service_event_fields.py +318 -0
  53. anyscale/client/openapi_client/models/sso_config.py +18 -18
  54. anyscale/client/openapi_client/models/supportedbaseimagesenum.py +139 -1
  55. anyscale/client/openapi_client/models/table_data_preview.py +209 -0
  56. anyscale/client/openapi_client/models/task_summary_config.py +29 -3
  57. anyscale/client/openapi_client/models/task_table_config.py +29 -3
  58. anyscale/client/openapi_client/models/unified_event.py +377 -0
  59. anyscale/client/openapi_client/models/unified_origin_filter.py +113 -0
  60. anyscale/client/openapi_client/models/unifiedevent_list_response.py +147 -0
  61. anyscale/client/openapi_client/models/volume_metadata.py +150 -0
  62. anyscale/client/openapi_client/models/worker_node_type.py +29 -1
  63. anyscale/client/openapi_client/models/workspace_event_fields.py +122 -0
  64. anyscale/client/openapi_client/models/workspace_template_version.py +58 -1
  65. anyscale/client/openapi_client/models/workspace_template_version_data_object.py +58 -1
  66. anyscale/cloud/models.py +2 -2
  67. anyscale/commands/cloud_commands.py +133 -2
  68. anyscale/commands/job_commands.py +121 -1
  69. anyscale/commands/job_queue_commands.py +99 -2
  70. anyscale/commands/service_commands.py +267 -67
  71. anyscale/commands/setup_k8s.py +546 -31
  72. anyscale/commands/util.py +104 -1
  73. anyscale/commands/workspace_commands.py +123 -5
  74. anyscale/commands/workspace_commands_v2.py +17 -1
  75. anyscale/compute_config/_private/compute_config_sdk.py +25 -12
  76. anyscale/compute_config/models.py +15 -0
  77. anyscale/controllers/cloud_controller.py +15 -2
  78. anyscale/controllers/job_controller.py +12 -0
  79. anyscale/controllers/kubernetes_verifier.py +80 -66
  80. anyscale/controllers/workspace_controller.py +67 -5
  81. anyscale/job/_private/job_sdk.py +50 -2
  82. anyscale/job/commands.py +3 -0
  83. anyscale/job/models.py +16 -0
  84. anyscale/job_queue/__init__.py +37 -1
  85. anyscale/job_queue/_private/job_queue_sdk.py +28 -1
  86. anyscale/job_queue/commands.py +61 -1
  87. anyscale/sdk/anyscale_client/__init__.py +1 -0
  88. anyscale/sdk/anyscale_client/api/default_api.py +12 -2
  89. anyscale/sdk/anyscale_client/models/__init__.py +1 -0
  90. anyscale/sdk/anyscale_client/models/apply_production_service_v2_model.py +31 -3
  91. anyscale/sdk/anyscale_client/models/apply_service_model.py +31 -3
  92. anyscale/sdk/anyscale_client/models/baseimagesenum.py +139 -1
  93. anyscale/sdk/anyscale_client/models/compute_node_type.py +29 -1
  94. anyscale/sdk/anyscale_client/models/physical_resources.py +178 -0
  95. anyscale/sdk/anyscale_client/models/rollout_strategy.py +2 -1
  96. anyscale/sdk/anyscale_client/models/supportedbaseimagesenum.py +139 -1
  97. anyscale/sdk/anyscale_client/models/worker_node_type.py +29 -1
  98. anyscale/service/__init__.py +51 -3
  99. anyscale/service/_private/service_sdk.py +481 -58
  100. anyscale/service/commands.py +90 -4
  101. anyscale/service/models.py +56 -0
  102. anyscale/shared_anyscale_utils/latest_ray_version.py +1 -1
  103. anyscale/version.py +1 -1
  104. anyscale/workspace/_private/workspace_sdk.py +1 -0
  105. anyscale/workspace/models.py +19 -0
  106. {anyscale-0.26.69.dist-info → anyscale-0.26.71.dist-info}/METADATA +1 -1
  107. {anyscale-0.26.69.dist-info → anyscale-0.26.71.dist-info}/RECORD +112 -85
  108. anyscale/client/openapi_client/models/o_auth_connection_response.py +0 -229
  109. {anyscale-0.26.69.dist-info → anyscale-0.26.71.dist-info}/WHEEL +0 -0
  110. {anyscale-0.26.69.dist-info → anyscale-0.26.71.dist-info}/entry_points.txt +0 -0
  111. {anyscale-0.26.69.dist-info → anyscale-0.26.71.dist-info}/licenses/LICENSE +0 -0
  112. {anyscale-0.26.69.dist-info → anyscale-0.26.71.dist-info}/licenses/NOTICE +0 -0
  113. {anyscale-0.26.69.dist-info → anyscale-0.26.71.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 DataCatalogVolume(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
+ 'volume_type': 'str',
46
+ 'storage_location': 'str',
47
+ 'metadata': 'VolumeMetadata'
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
+ 'volume_type': 'volume_type',
61
+ 'storage_location': 'storage_location',
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, volume_type=None, storage_location=None, metadata=None, local_vars_configuration=None): # noqa: E501
66
+ """DataCatalogVolume - 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._volume_type = None
81
+ self._storage_location = 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 volume_type is not None:
97
+ self.volume_type = volume_type
98
+ if storage_location is not None:
99
+ self.storage_location = storage_location
100
+ if metadata is not None:
101
+ self.metadata = metadata
102
+
103
+ @property
104
+ def id(self):
105
+ """Gets the id of this DataCatalogVolume. # noqa: E501
106
+
107
+ Unique identifier # noqa: E501
108
+
109
+ :return: The id of this DataCatalogVolume. # 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 DataCatalogVolume.
117
+
118
+ Unique identifier # noqa: E501
119
+
120
+ :param id: The id of this DataCatalogVolume. # 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 DataCatalogVolume. # noqa: E501
131
+
132
+ Display name # noqa: E501
133
+
134
+ :return: The name of this DataCatalogVolume. # 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 DataCatalogVolume.
142
+
143
+ Display name # noqa: E501
144
+
145
+ :param name: The name of this DataCatalogVolume. # 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 DataCatalogVolume. # noqa: E501
156
+
157
+ Description # noqa: E501
158
+
159
+ :return: The description of this DataCatalogVolume. # 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 DataCatalogVolume.
167
+
168
+ Description # noqa: E501
169
+
170
+ :param description: The description of this DataCatalogVolume. # 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 DataCatalogVolume. # noqa: E501
179
+
180
+ Creation timestamp in ISO 8601 format # noqa: E501
181
+
182
+ :return: The created_at of this DataCatalogVolume. # 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 DataCatalogVolume.
190
+
191
+ Creation timestamp in ISO 8601 format # noqa: E501
192
+
193
+ :param created_at: The created_at of this DataCatalogVolume. # 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 DataCatalogVolume. # noqa: E501
204
+
205
+ Last update timestamp in ISO 8601 format # noqa: E501
206
+
207
+ :return: The updated_at of this DataCatalogVolume. # 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 DataCatalogVolume.
215
+
216
+ Last update timestamp in ISO 8601 format # noqa: E501
217
+
218
+ :param updated_at: The updated_at of this DataCatalogVolume. # 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 DataCatalogVolume. # noqa: E501
229
+
230
+ ID of the parent schema # noqa: E501
231
+
232
+ :return: The schema_id of this DataCatalogVolume. # 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 DataCatalogVolume.
240
+
241
+ ID of the parent schema # noqa: E501
242
+
243
+ :param schema_id: The schema_id of this DataCatalogVolume. # 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 DataCatalogVolume. # noqa: E501
254
+
255
+ ID of the parent catalog # noqa: E501
256
+
257
+ :return: The catalog_id of this DataCatalogVolume. # 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 DataCatalogVolume.
265
+
266
+ ID of the parent catalog # noqa: E501
267
+
268
+ :param catalog_id: The catalog_id of this DataCatalogVolume. # 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 DataCatalogVolume. # noqa: E501
279
+
280
+ ID of the parent data catalog connection # noqa: E501
281
+
282
+ :return: The connection_id of this DataCatalogVolume. # 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 DataCatalogVolume.
290
+
291
+ ID of the parent data catalog connection # noqa: E501
292
+
293
+ :param connection_id: The connection_id of this DataCatalogVolume. # 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 DataCatalogVolume. # noqa: E501
304
+
305
+ Type of catalog object (always 'volume' for this model) # noqa: E501
306
+
307
+ :return: The object_type of this DataCatalogVolume. # 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 DataCatalogVolume.
315
+
316
+ Type of catalog object (always 'volume' for this model) # noqa: E501
317
+
318
+ :param object_type: The object_type of this DataCatalogVolume. # noqa: E501
319
+ :type: DataCatalogObjectType
320
+ """
321
+
322
+ self._object_type = object_type
323
+
324
+ @property
325
+ def volume_type(self):
326
+ """Gets the volume_type of this DataCatalogVolume. # noqa: E501
327
+
328
+ Type of volume (e.g., 'MANAGED', 'EXTERNAL') # noqa: E501
329
+
330
+ :return: The volume_type of this DataCatalogVolume. # noqa: E501
331
+ :rtype: str
332
+ """
333
+ return self._volume_type
334
+
335
+ @volume_type.setter
336
+ def volume_type(self, volume_type):
337
+ """Sets the volume_type of this DataCatalogVolume.
338
+
339
+ Type of volume (e.g., 'MANAGED', 'EXTERNAL') # noqa: E501
340
+
341
+ :param volume_type: The volume_type of this DataCatalogVolume. # noqa: E501
342
+ :type: str
343
+ """
344
+
345
+ self._volume_type = volume_type
346
+
347
+ @property
348
+ def storage_location(self):
349
+ """Gets the storage_location of this DataCatalogVolume. # noqa: E501
350
+
351
+ Physical storage location for the volume # noqa: E501
352
+
353
+ :return: The storage_location of this DataCatalogVolume. # noqa: E501
354
+ :rtype: str
355
+ """
356
+ return self._storage_location
357
+
358
+ @storage_location.setter
359
+ def storage_location(self, storage_location):
360
+ """Sets the storage_location of this DataCatalogVolume.
361
+
362
+ Physical storage location for the volume # noqa: E501
363
+
364
+ :param storage_location: The storage_location of this DataCatalogVolume. # noqa: E501
365
+ :type: str
366
+ """
367
+
368
+ self._storage_location = storage_location
369
+
370
+ @property
371
+ def metadata(self):
372
+ """Gets the metadata of this DataCatalogVolume. # noqa: E501
373
+
374
+ Volume-specific metadata including owner and full_name # noqa: E501
375
+
376
+ :return: The metadata of this DataCatalogVolume. # noqa: E501
377
+ :rtype: VolumeMetadata
378
+ """
379
+ return self._metadata
380
+
381
+ @metadata.setter
382
+ def metadata(self, metadata):
383
+ """Sets the metadata of this DataCatalogVolume.
384
+
385
+ Volume-specific metadata including owner and full_name # noqa: E501
386
+
387
+ :param metadata: The metadata of this DataCatalogVolume. # noqa: E501
388
+ :type: VolumeMetadata
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, DataCatalogVolume):
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, DataCatalogVolume):
435
+ return True
436
+
437
+ return self.to_dict() != other.to_dict()
@@ -0,0 +1,147 @@
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 DatacatalogschemaListResponse(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
+ 'results': 'list[DataCatalogSchema]',
37
+ 'metadata': 'ListResponseMetadata'
38
+ }
39
+
40
+ attribute_map = {
41
+ 'results': 'results',
42
+ 'metadata': 'metadata'
43
+ }
44
+
45
+ def __init__(self, results=None, metadata=None, local_vars_configuration=None): # noqa: E501
46
+ """DatacatalogschemaListResponse - 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._results = None
52
+ self._metadata = None
53
+ self.discriminator = None
54
+
55
+ self.results = results
56
+ if metadata is not None:
57
+ self.metadata = metadata
58
+
59
+ @property
60
+ def results(self):
61
+ """Gets the results of this DatacatalogschemaListResponse. # noqa: E501
62
+
63
+
64
+ :return: The results of this DatacatalogschemaListResponse. # noqa: E501
65
+ :rtype: list[DataCatalogSchema]
66
+ """
67
+ return self._results
68
+
69
+ @results.setter
70
+ def results(self, results):
71
+ """Sets the results of this DatacatalogschemaListResponse.
72
+
73
+
74
+ :param results: The results of this DatacatalogschemaListResponse. # noqa: E501
75
+ :type: list[DataCatalogSchema]
76
+ """
77
+ if self.local_vars_configuration.client_side_validation and results is None: # noqa: E501
78
+ raise ValueError("Invalid value for `results`, must not be `None`") # noqa: E501
79
+
80
+ self._results = results
81
+
82
+ @property
83
+ def metadata(self):
84
+ """Gets the metadata of this DatacatalogschemaListResponse. # noqa: E501
85
+
86
+
87
+ :return: The metadata of this DatacatalogschemaListResponse. # noqa: E501
88
+ :rtype: ListResponseMetadata
89
+ """
90
+ return self._metadata
91
+
92
+ @metadata.setter
93
+ def metadata(self, metadata):
94
+ """Sets the metadata of this DatacatalogschemaListResponse.
95
+
96
+
97
+ :param metadata: The metadata of this DatacatalogschemaListResponse. # noqa: E501
98
+ :type: ListResponseMetadata
99
+ """
100
+
101
+ self._metadata = metadata
102
+
103
+ def to_dict(self):
104
+ """Returns the model properties as a dict"""
105
+ result = {}
106
+
107
+ for attr, _ in six.iteritems(self.openapi_types):
108
+ value = getattr(self, attr)
109
+ if isinstance(value, list):
110
+ result[attr] = list(map(
111
+ lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
112
+ value
113
+ ))
114
+ elif hasattr(value, "to_dict"):
115
+ result[attr] = value.to_dict()
116
+ elif isinstance(value, dict):
117
+ result[attr] = dict(map(
118
+ lambda item: (item[0], item[1].to_dict())
119
+ if hasattr(item[1], "to_dict") else item,
120
+ value.items()
121
+ ))
122
+ else:
123
+ result[attr] = value
124
+
125
+ return result
126
+
127
+ def to_str(self):
128
+ """Returns the string representation of the model"""
129
+ return pprint.pformat(self.to_dict())
130
+
131
+ def __repr__(self):
132
+ """For `print` and `pprint`"""
133
+ return self.to_str()
134
+
135
+ def __eq__(self, other):
136
+ """Returns true if both objects are equal"""
137
+ if not isinstance(other, DatacatalogschemaListResponse):
138
+ return False
139
+
140
+ return self.to_dict() == other.to_dict()
141
+
142
+ def __ne__(self, other):
143
+ """Returns true if both objects are not equal"""
144
+ if not isinstance(other, DatacatalogschemaListResponse):
145
+ return True
146
+
147
+ return self.to_dict() != other.to_dict()