anyscale 0.26.64__py3-none-any.whl → 0.26.65__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 (49) hide show
  1. anyscale/_private/docgen/__main__.py +23 -4
  2. anyscale/_private/docgen/generator.py +127 -34
  3. anyscale/_private/docgen/generator_legacy.py +35 -12
  4. anyscale/client/README.md +37 -0
  5. anyscale/client/openapi_client/__init__.py +26 -0
  6. anyscale/client/openapi_client/api/default_api.py +1423 -97
  7. anyscale/client/openapi_client/models/__init__.py +26 -0
  8. anyscale/client/openapi_client/models/connection_type.py +99 -0
  9. anyscale/client/openapi_client/models/create_experimental_workspace.py +29 -1
  10. anyscale/client/openapi_client/models/data_catalog.py +281 -0
  11. anyscale/client/openapi_client/models/data_catalog_connection.py +308 -0
  12. anyscale/client/openapi_client/models/data_catalog_connection_status.py +102 -0
  13. anyscale/client/openapi_client/models/data_catalog_provider.py +101 -0
  14. anyscale/client/openapi_client/models/databricks_connection_config.py +152 -0
  15. anyscale/client/openapi_client/models/databricks_connection_info.py +229 -0
  16. anyscale/client/openapi_client/models/databricks_connection_response.py +148 -0
  17. anyscale/client/openapi_client/models/databricks_register_request.py +187 -0
  18. anyscale/client/openapi_client/models/databricksconnectioninfo_response.py +121 -0
  19. anyscale/client/openapi_client/models/databricksconnectionresponse_response.py +121 -0
  20. anyscale/client/openapi_client/models/datacatalog_list_response.py +147 -0
  21. anyscale/client/openapi_client/models/datacatalogconnection_list_response.py +147 -0
  22. anyscale/client/openapi_client/models/decorated_session.py +29 -1
  23. anyscale/client/openapi_client/models/domain_verification.py +181 -0
  24. anyscale/client/openapi_client/models/list_databricks_connections.py +121 -0
  25. anyscale/client/openapi_client/models/o_auth_connection_response.py +229 -0
  26. anyscale/client/openapi_client/models/oauth_auth_url_response.py +121 -0
  27. anyscale/client/openapi_client/models/oauthconnectionresponse_response.py +121 -0
  28. anyscale/client/openapi_client/models/sso_config.py +148 -0
  29. anyscale/client/openapi_client/models/sso_connection.py +148 -0
  30. anyscale/client/openapi_client/models/sso_connection_state.py +100 -0
  31. anyscale/client/openapi_client/models/ssoconfig_response.py +121 -0
  32. anyscale/client/openapi_client/models/update_workspace_template.py +346 -0
  33. anyscale/client/openapi_client/models/usage_by_cluster_type.py +174 -0
  34. anyscale/client/openapi_client/models/usagebyclustertype_list_response.py +147 -0
  35. anyscale/client/openapi_client/models/validation_status.py +101 -0
  36. anyscale/commands/cloud_commands.py +310 -206
  37. anyscale/controllers/cloud_controller.py +174 -240
  38. anyscale/controllers/cloud_functional_verification_controller.py +6 -3
  39. anyscale/sdk/anyscale_client/models/session.py +31 -3
  40. anyscale/util.py +1 -1
  41. anyscale/version.py +1 -1
  42. {anyscale-0.26.64.dist-info → anyscale-0.26.65.dist-info}/METADATA +1 -1
  43. {anyscale-0.26.64.dist-info → anyscale-0.26.65.dist-info}/RECORD +48 -23
  44. anyscale/commands/cloud_commands_util.py +0 -10
  45. {anyscale-0.26.64.dist-info → anyscale-0.26.65.dist-info}/WHEEL +0 -0
  46. {anyscale-0.26.64.dist-info → anyscale-0.26.65.dist-info}/entry_points.txt +0 -0
  47. {anyscale-0.26.64.dist-info → anyscale-0.26.65.dist-info}/licenses/LICENSE +0 -0
  48. {anyscale-0.26.64.dist-info → anyscale-0.26.65.dist-info}/licenses/NOTICE +0 -0
  49. {anyscale-0.26.64.dist-info → anyscale-0.26.65.dist-info}/top_level.txt +0 -0
@@ -0,0 +1,308 @@
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 DataCatalogConnection(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
+ 'provider': 'DataCatalogProvider',
39
+ 'connection_status': 'DataCatalogConnectionStatus',
40
+ 'description': 'str',
41
+ 'created_at': 'str',
42
+ 'updated_at': 'str',
43
+ 'metadata': 'object'
44
+ }
45
+
46
+ attribute_map = {
47
+ 'id': 'id',
48
+ 'name': 'name',
49
+ 'provider': 'provider',
50
+ 'connection_status': 'connection_status',
51
+ 'description': 'description',
52
+ 'created_at': 'created_at',
53
+ 'updated_at': 'updated_at',
54
+ 'metadata': 'metadata'
55
+ }
56
+
57
+ def __init__(self, id=None, name=None, provider=None, connection_status=None, description=None, created_at=None, updated_at=None, metadata=None, local_vars_configuration=None): # noqa: E501
58
+ """DataCatalogConnection - 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._provider = None
66
+ self._connection_status = None
67
+ self._description = None
68
+ self._created_at = None
69
+ self._updated_at = None
70
+ self._metadata = None
71
+ self.discriminator = None
72
+
73
+ self.id = id
74
+ self.name = name
75
+ self.provider = provider
76
+ self.connection_status = connection_status
77
+ if description is not None:
78
+ self.description = description
79
+ self.created_at = created_at
80
+ self.updated_at = updated_at
81
+ if metadata is not None:
82
+ self.metadata = metadata
83
+
84
+ @property
85
+ def id(self):
86
+ """Gets the id of this DataCatalogConnection. # noqa: E501
87
+
88
+
89
+ :return: The id of this DataCatalogConnection. # noqa: E501
90
+ :rtype: str
91
+ """
92
+ return self._id
93
+
94
+ @id.setter
95
+ def id(self, id):
96
+ """Sets the id of this DataCatalogConnection.
97
+
98
+
99
+ :param id: The id of this DataCatalogConnection. # noqa: E501
100
+ :type: str
101
+ """
102
+ if self.local_vars_configuration.client_side_validation and id is None: # noqa: E501
103
+ raise ValueError("Invalid value for `id`, must not be `None`") # noqa: E501
104
+
105
+ self._id = id
106
+
107
+ @property
108
+ def name(self):
109
+ """Gets the name of this DataCatalogConnection. # noqa: E501
110
+
111
+
112
+ :return: The name of this DataCatalogConnection. # noqa: E501
113
+ :rtype: str
114
+ """
115
+ return self._name
116
+
117
+ @name.setter
118
+ def name(self, name):
119
+ """Sets the name of this DataCatalogConnection.
120
+
121
+
122
+ :param name: The name of this DataCatalogConnection. # noqa: E501
123
+ :type: str
124
+ """
125
+ if self.local_vars_configuration.client_side_validation and name is None: # noqa: E501
126
+ raise ValueError("Invalid value for `name`, must not be `None`") # noqa: E501
127
+
128
+ self._name = name
129
+
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
+ @property
177
+ def description(self):
178
+ """Gets the description of this DataCatalogConnection. # noqa: E501
179
+
180
+
181
+ :return: The description of this DataCatalogConnection. # noqa: E501
182
+ :rtype: str
183
+ """
184
+ return self._description
185
+
186
+ @description.setter
187
+ def description(self, description):
188
+ """Sets the description of this DataCatalogConnection.
189
+
190
+
191
+ :param description: The description of this DataCatalogConnection. # noqa: E501
192
+ :type: str
193
+ """
194
+
195
+ self._description = description
196
+
197
+ @property
198
+ def created_at(self):
199
+ """Gets the created_at of this DataCatalogConnection. # noqa: E501
200
+
201
+
202
+ :return: The created_at of this DataCatalogConnection. # noqa: E501
203
+ :rtype: str
204
+ """
205
+ return self._created_at
206
+
207
+ @created_at.setter
208
+ def created_at(self, created_at):
209
+ """Sets the created_at of this DataCatalogConnection.
210
+
211
+
212
+ :param created_at: The created_at of this DataCatalogConnection. # noqa: E501
213
+ :type: str
214
+ """
215
+ if self.local_vars_configuration.client_side_validation and created_at is None: # noqa: E501
216
+ raise ValueError("Invalid value for `created_at`, must not be `None`") # noqa: E501
217
+
218
+ self._created_at = created_at
219
+
220
+ @property
221
+ def updated_at(self):
222
+ """Gets the updated_at of this DataCatalogConnection. # noqa: E501
223
+
224
+
225
+ :return: The updated_at of this DataCatalogConnection. # noqa: E501
226
+ :rtype: str
227
+ """
228
+ return self._updated_at
229
+
230
+ @updated_at.setter
231
+ def updated_at(self, updated_at):
232
+ """Sets the updated_at of this DataCatalogConnection.
233
+
234
+
235
+ :param updated_at: The updated_at of this DataCatalogConnection. # noqa: E501
236
+ :type: str
237
+ """
238
+ if self.local_vars_configuration.client_side_validation and updated_at is None: # noqa: E501
239
+ raise ValueError("Invalid value for `updated_at`, must not be `None`") # noqa: E501
240
+
241
+ self._updated_at = updated_at
242
+
243
+ @property
244
+ def metadata(self):
245
+ """Gets the metadata of this DataCatalogConnection. # noqa: E501
246
+
247
+
248
+ :return: The metadata of this DataCatalogConnection. # noqa: E501
249
+ :rtype: object
250
+ """
251
+ return self._metadata
252
+
253
+ @metadata.setter
254
+ def metadata(self, metadata):
255
+ """Sets the metadata of this DataCatalogConnection.
256
+
257
+
258
+ :param metadata: The metadata of this DataCatalogConnection. # noqa: E501
259
+ :type: object
260
+ """
261
+
262
+ self._metadata = metadata
263
+
264
+ def to_dict(self):
265
+ """Returns the model properties as a dict"""
266
+ result = {}
267
+
268
+ for attr, _ in six.iteritems(self.openapi_types):
269
+ value = getattr(self, attr)
270
+ if isinstance(value, list):
271
+ result[attr] = list(map(
272
+ lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
273
+ value
274
+ ))
275
+ elif hasattr(value, "to_dict"):
276
+ result[attr] = value.to_dict()
277
+ elif isinstance(value, dict):
278
+ result[attr] = dict(map(
279
+ lambda item: (item[0], item[1].to_dict())
280
+ if hasattr(item[1], "to_dict") else item,
281
+ value.items()
282
+ ))
283
+ else:
284
+ result[attr] = value
285
+
286
+ return result
287
+
288
+ def to_str(self):
289
+ """Returns the string representation of the model"""
290
+ return pprint.pformat(self.to_dict())
291
+
292
+ def __repr__(self):
293
+ """For `print` and `pprint`"""
294
+ return self.to_str()
295
+
296
+ def __eq__(self, other):
297
+ """Returns true if both objects are equal"""
298
+ if not isinstance(other, DataCatalogConnection):
299
+ return False
300
+
301
+ return self.to_dict() == other.to_dict()
302
+
303
+ def __ne__(self, other):
304
+ """Returns true if both objects are not equal"""
305
+ if not isinstance(other, DataCatalogConnection):
306
+ return True
307
+
308
+ return self.to_dict() != other.to_dict()
@@ -0,0 +1,102 @@
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 DataCatalogConnectionStatus(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
+ allowed enum values
30
+ """
31
+ CONNECTED = "connected"
32
+ DISCONNECTED = "disconnected"
33
+ ERROR = "error"
34
+ CONNECTING = "connecting"
35
+
36
+ allowable_values = [CONNECTED, DISCONNECTED, ERROR, CONNECTING] # noqa: E501
37
+
38
+ """
39
+ Attributes:
40
+ openapi_types (dict): The key is attribute name
41
+ and the value is attribute type.
42
+ attribute_map (dict): The key is attribute name
43
+ and the value is json key in definition.
44
+ """
45
+ openapi_types = {
46
+ }
47
+
48
+ attribute_map = {
49
+ }
50
+
51
+ def __init__(self, local_vars_configuration=None): # noqa: E501
52
+ """DataCatalogConnectionStatus - a model defined in OpenAPI""" # noqa: E501
53
+ if local_vars_configuration is None:
54
+ local_vars_configuration = Configuration()
55
+ self.local_vars_configuration = local_vars_configuration
56
+ self.discriminator = None
57
+
58
+ def to_dict(self):
59
+ """Returns the model properties as a dict"""
60
+ result = {}
61
+
62
+ for attr, _ in six.iteritems(self.openapi_types):
63
+ value = getattr(self, attr)
64
+ if isinstance(value, list):
65
+ result[attr] = list(map(
66
+ lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
67
+ value
68
+ ))
69
+ elif hasattr(value, "to_dict"):
70
+ result[attr] = value.to_dict()
71
+ elif isinstance(value, dict):
72
+ result[attr] = dict(map(
73
+ lambda item: (item[0], item[1].to_dict())
74
+ if hasattr(item[1], "to_dict") else item,
75
+ value.items()
76
+ ))
77
+ else:
78
+ result[attr] = value
79
+
80
+ return result
81
+
82
+ def to_str(self):
83
+ """Returns the string representation of the model"""
84
+ return pprint.pformat(self.to_dict())
85
+
86
+ def __repr__(self):
87
+ """For `print` and `pprint`"""
88
+ return self.to_str()
89
+
90
+ def __eq__(self, other):
91
+ """Returns true if both objects are equal"""
92
+ if not isinstance(other, DataCatalogConnectionStatus):
93
+ return False
94
+
95
+ return self.to_dict() == other.to_dict()
96
+
97
+ def __ne__(self, other):
98
+ """Returns true if both objects are not equal"""
99
+ if not isinstance(other, DataCatalogConnectionStatus):
100
+ return True
101
+
102
+ return self.to_dict() != other.to_dict()
@@ -0,0 +1,101 @@
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 DataCatalogProvider(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
+ allowed enum values
30
+ """
31
+ DATABRICKS = "databricks"
32
+ AWS_GLUE = "aws_glue"
33
+ POLARIS = "polaris"
34
+
35
+ allowable_values = [DATABRICKS, AWS_GLUE, POLARIS] # noqa: E501
36
+
37
+ """
38
+ Attributes:
39
+ openapi_types (dict): The key is attribute name
40
+ and the value is attribute type.
41
+ attribute_map (dict): The key is attribute name
42
+ and the value is json key in definition.
43
+ """
44
+ openapi_types = {
45
+ }
46
+
47
+ attribute_map = {
48
+ }
49
+
50
+ def __init__(self, local_vars_configuration=None): # noqa: E501
51
+ """DataCatalogProvider - a model defined in OpenAPI""" # noqa: E501
52
+ if local_vars_configuration is None:
53
+ local_vars_configuration = Configuration()
54
+ self.local_vars_configuration = local_vars_configuration
55
+ self.discriminator = None
56
+
57
+ def to_dict(self):
58
+ """Returns the model properties as a dict"""
59
+ result = {}
60
+
61
+ for attr, _ in six.iteritems(self.openapi_types):
62
+ value = getattr(self, attr)
63
+ if isinstance(value, list):
64
+ result[attr] = list(map(
65
+ lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
66
+ value
67
+ ))
68
+ elif hasattr(value, "to_dict"):
69
+ result[attr] = value.to_dict()
70
+ elif isinstance(value, dict):
71
+ result[attr] = dict(map(
72
+ lambda item: (item[0], item[1].to_dict())
73
+ if hasattr(item[1], "to_dict") else item,
74
+ value.items()
75
+ ))
76
+ else:
77
+ result[attr] = value
78
+
79
+ return result
80
+
81
+ def to_str(self):
82
+ """Returns the string representation of the model"""
83
+ return pprint.pformat(self.to_dict())
84
+
85
+ def __repr__(self):
86
+ """For `print` and `pprint`"""
87
+ return self.to_str()
88
+
89
+ def __eq__(self, other):
90
+ """Returns true if both objects are equal"""
91
+ if not isinstance(other, DataCatalogProvider):
92
+ return False
93
+
94
+ return self.to_dict() == other.to_dict()
95
+
96
+ def __ne__(self, other):
97
+ """Returns true if both objects are not equal"""
98
+ if not isinstance(other, DataCatalogProvider):
99
+ return True
100
+
101
+ return self.to_dict() != other.to_dict()
@@ -0,0 +1,152 @@
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 DatabricksConnectionConfig(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
+ 'client_id': 'str',
37
+ 'workspace_url': 'str'
38
+ }
39
+
40
+ attribute_map = {
41
+ 'client_id': 'client_id',
42
+ 'workspace_url': 'workspace_url'
43
+ }
44
+
45
+ def __init__(self, client_id=None, workspace_url=None, local_vars_configuration=None): # noqa: E501
46
+ """DatabricksConnectionConfig - 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._client_id = None
52
+ self._workspace_url = None
53
+ self.discriminator = None
54
+
55
+ self.client_id = client_id
56
+ self.workspace_url = workspace_url
57
+
58
+ @property
59
+ def client_id(self):
60
+ """Gets the client_id of this DatabricksConnectionConfig. # noqa: E501
61
+
62
+ Databricks OAuth client ID # noqa: E501
63
+
64
+ :return: The client_id of this DatabricksConnectionConfig. # noqa: E501
65
+ :rtype: str
66
+ """
67
+ return self._client_id
68
+
69
+ @client_id.setter
70
+ def client_id(self, client_id):
71
+ """Sets the client_id of this DatabricksConnectionConfig.
72
+
73
+ Databricks OAuth client ID # noqa: E501
74
+
75
+ :param client_id: The client_id of this DatabricksConnectionConfig. # noqa: E501
76
+ :type: str
77
+ """
78
+ if self.local_vars_configuration.client_side_validation and client_id is None: # noqa: E501
79
+ raise ValueError("Invalid value for `client_id`, must not be `None`") # noqa: E501
80
+
81
+ self._client_id = client_id
82
+
83
+ @property
84
+ def workspace_url(self):
85
+ """Gets the workspace_url of this DatabricksConnectionConfig. # noqa: E501
86
+
87
+ Databricks workspace URL # noqa: E501
88
+
89
+ :return: The workspace_url of this DatabricksConnectionConfig. # noqa: E501
90
+ :rtype: str
91
+ """
92
+ return self._workspace_url
93
+
94
+ @workspace_url.setter
95
+ def workspace_url(self, workspace_url):
96
+ """Sets the workspace_url of this DatabricksConnectionConfig.
97
+
98
+ Databricks workspace URL # noqa: E501
99
+
100
+ :param workspace_url: The workspace_url of this DatabricksConnectionConfig. # noqa: E501
101
+ :type: str
102
+ """
103
+ if self.local_vars_configuration.client_side_validation and workspace_url is None: # noqa: E501
104
+ raise ValueError("Invalid value for `workspace_url`, must not be `None`") # noqa: E501
105
+
106
+ self._workspace_url = workspace_url
107
+
108
+ def to_dict(self):
109
+ """Returns the model properties as a dict"""
110
+ result = {}
111
+
112
+ for attr, _ in six.iteritems(self.openapi_types):
113
+ value = getattr(self, attr)
114
+ if isinstance(value, list):
115
+ result[attr] = list(map(
116
+ lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
117
+ value
118
+ ))
119
+ elif hasattr(value, "to_dict"):
120
+ result[attr] = value.to_dict()
121
+ elif isinstance(value, dict):
122
+ result[attr] = dict(map(
123
+ lambda item: (item[0], item[1].to_dict())
124
+ if hasattr(item[1], "to_dict") else item,
125
+ value.items()
126
+ ))
127
+ else:
128
+ result[attr] = value
129
+
130
+ return result
131
+
132
+ def to_str(self):
133
+ """Returns the string representation of the model"""
134
+ return pprint.pformat(self.to_dict())
135
+
136
+ def __repr__(self):
137
+ """For `print` and `pprint`"""
138
+ return self.to_str()
139
+
140
+ def __eq__(self, other):
141
+ """Returns true if both objects are equal"""
142
+ if not isinstance(other, DatabricksConnectionConfig):
143
+ return False
144
+
145
+ return self.to_dict() == other.to_dict()
146
+
147
+ def __ne__(self, other):
148
+ """Returns true if both objects are not equal"""
149
+ if not isinstance(other, DatabricksConnectionConfig):
150
+ return True
151
+
152
+ return self.to_dict() != other.to_dict()