anyscale 0.26.63__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.
- anyscale/_private/docgen/__main__.py +23 -4
- anyscale/_private/docgen/generator.py +127 -34
- anyscale/_private/docgen/generator_legacy.py +35 -12
- anyscale/client/README.md +37 -0
- anyscale/client/openapi_client/__init__.py +26 -0
- anyscale/client/openapi_client/api/default_api.py +1423 -97
- anyscale/client/openapi_client/models/__init__.py +26 -0
- anyscale/client/openapi_client/models/apply_production_service_v2_model.py +2 -2
- anyscale/client/openapi_client/models/connection_type.py +99 -0
- anyscale/client/openapi_client/models/create_experimental_workspace.py +29 -1
- anyscale/client/openapi_client/models/data_catalog.py +281 -0
- anyscale/client/openapi_client/models/data_catalog_connection.py +308 -0
- anyscale/client/openapi_client/models/data_catalog_connection_status.py +102 -0
- anyscale/client/openapi_client/models/data_catalog_provider.py +101 -0
- anyscale/client/openapi_client/models/databricks_connection_config.py +152 -0
- anyscale/client/openapi_client/models/databricks_connection_info.py +229 -0
- anyscale/client/openapi_client/models/databricks_connection_response.py +148 -0
- anyscale/client/openapi_client/models/databricks_register_request.py +187 -0
- anyscale/client/openapi_client/models/databricksconnectioninfo_response.py +121 -0
- anyscale/client/openapi_client/models/databricksconnectionresponse_response.py +121 -0
- anyscale/client/openapi_client/models/datacatalog_list_response.py +147 -0
- anyscale/client/openapi_client/models/datacatalogconnection_list_response.py +147 -0
- anyscale/client/openapi_client/models/decorated_session.py +29 -1
- anyscale/client/openapi_client/models/domain_verification.py +181 -0
- anyscale/client/openapi_client/models/list_databricks_connections.py +121 -0
- anyscale/client/openapi_client/models/o_auth_connection_response.py +229 -0
- anyscale/client/openapi_client/models/oauth_auth_url_response.py +121 -0
- anyscale/client/openapi_client/models/oauthconnectionresponse_response.py +121 -0
- anyscale/client/openapi_client/models/sso_config.py +148 -0
- anyscale/client/openapi_client/models/sso_connection.py +148 -0
- anyscale/client/openapi_client/models/sso_connection_state.py +100 -0
- anyscale/client/openapi_client/models/ssoconfig_response.py +121 -0
- anyscale/client/openapi_client/models/update_workspace_template.py +346 -0
- anyscale/client/openapi_client/models/usage_by_cluster_type.py +174 -0
- anyscale/client/openapi_client/models/usagebyclustertype_list_response.py +147 -0
- anyscale/client/openapi_client/models/validation_status.py +101 -0
- anyscale/commands/cloud_commands.py +310 -206
- anyscale/controllers/cloud_controller.py +174 -240
- anyscale/controllers/cloud_functional_verification_controller.py +6 -3
- anyscale/sdk/anyscale_client/models/apply_production_service_v2_model.py +2 -2
- anyscale/sdk/anyscale_client/models/apply_service_model.py +2 -2
- anyscale/sdk/anyscale_client/models/session.py +31 -3
- anyscale/util.py +1 -1
- anyscale/version.py +1 -1
- {anyscale-0.26.63.dist-info → anyscale-0.26.65.dist-info}/METADATA +1 -1
- {anyscale-0.26.63.dist-info → anyscale-0.26.65.dist-info}/RECORD +51 -26
- anyscale/commands/cloud_commands_util.py +0 -10
- {anyscale-0.26.63.dist-info → anyscale-0.26.65.dist-info}/WHEEL +0 -0
- {anyscale-0.26.63.dist-info → anyscale-0.26.65.dist-info}/entry_points.txt +0 -0
- {anyscale-0.26.63.dist-info → anyscale-0.26.65.dist-info}/licenses/LICENSE +0 -0
- {anyscale-0.26.63.dist-info → anyscale-0.26.65.dist-info}/licenses/NOTICE +0 -0
- {anyscale-0.26.63.dist-info → anyscale-0.26.65.dist-info}/top_level.txt +0 -0
@@ -0,0 +1,229 @@
|
|
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 DatabricksConnectionInfo(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
|
+
'connection_type': 'ConnectionType',
|
39
|
+
'connection_config': 'DatabricksConnectionConfig',
|
40
|
+
'validation_status': 'ValidationStatus'
|
41
|
+
}
|
42
|
+
|
43
|
+
attribute_map = {
|
44
|
+
'id': 'id',
|
45
|
+
'name': 'name',
|
46
|
+
'connection_type': 'connection_type',
|
47
|
+
'connection_config': 'connection_config',
|
48
|
+
'validation_status': 'validation_status'
|
49
|
+
}
|
50
|
+
|
51
|
+
def __init__(self, id=None, name=None, connection_type=None, connection_config=None, validation_status=None, local_vars_configuration=None): # noqa: E501
|
52
|
+
"""DatabricksConnectionInfo - 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
|
+
|
57
|
+
self._id = None
|
58
|
+
self._name = None
|
59
|
+
self._connection_type = None
|
60
|
+
self._connection_config = None
|
61
|
+
self._validation_status = None
|
62
|
+
self.discriminator = None
|
63
|
+
|
64
|
+
self.id = id
|
65
|
+
self.name = name
|
66
|
+
self.connection_type = connection_type
|
67
|
+
self.connection_config = connection_config
|
68
|
+
self.validation_status = validation_status
|
69
|
+
|
70
|
+
@property
|
71
|
+
def id(self):
|
72
|
+
"""Gets the id of this DatabricksConnectionInfo. # noqa: E501
|
73
|
+
|
74
|
+
|
75
|
+
:return: The id of this DatabricksConnectionInfo. # noqa: E501
|
76
|
+
:rtype: str
|
77
|
+
"""
|
78
|
+
return self._id
|
79
|
+
|
80
|
+
@id.setter
|
81
|
+
def id(self, id):
|
82
|
+
"""Sets the id of this DatabricksConnectionInfo.
|
83
|
+
|
84
|
+
|
85
|
+
:param id: The id of this DatabricksConnectionInfo. # noqa: E501
|
86
|
+
:type: str
|
87
|
+
"""
|
88
|
+
if self.local_vars_configuration.client_side_validation and id is None: # noqa: E501
|
89
|
+
raise ValueError("Invalid value for `id`, must not be `None`") # noqa: E501
|
90
|
+
|
91
|
+
self._id = id
|
92
|
+
|
93
|
+
@property
|
94
|
+
def name(self):
|
95
|
+
"""Gets the name of this DatabricksConnectionInfo. # noqa: E501
|
96
|
+
|
97
|
+
|
98
|
+
:return: The name of this DatabricksConnectionInfo. # noqa: E501
|
99
|
+
:rtype: str
|
100
|
+
"""
|
101
|
+
return self._name
|
102
|
+
|
103
|
+
@name.setter
|
104
|
+
def name(self, name):
|
105
|
+
"""Sets the name of this DatabricksConnectionInfo.
|
106
|
+
|
107
|
+
|
108
|
+
:param name: The name of this DatabricksConnectionInfo. # noqa: E501
|
109
|
+
:type: str
|
110
|
+
"""
|
111
|
+
if self.local_vars_configuration.client_side_validation and name is None: # noqa: E501
|
112
|
+
raise ValueError("Invalid value for `name`, must not be `None`") # noqa: E501
|
113
|
+
|
114
|
+
self._name = name
|
115
|
+
|
116
|
+
@property
|
117
|
+
def connection_type(self):
|
118
|
+
"""Gets the connection_type of this DatabricksConnectionInfo. # noqa: E501
|
119
|
+
|
120
|
+
|
121
|
+
:return: The connection_type of this DatabricksConnectionInfo. # noqa: E501
|
122
|
+
:rtype: ConnectionType
|
123
|
+
"""
|
124
|
+
return self._connection_type
|
125
|
+
|
126
|
+
@connection_type.setter
|
127
|
+
def connection_type(self, connection_type):
|
128
|
+
"""Sets the connection_type of this DatabricksConnectionInfo.
|
129
|
+
|
130
|
+
|
131
|
+
:param connection_type: The connection_type of this DatabricksConnectionInfo. # noqa: E501
|
132
|
+
:type: ConnectionType
|
133
|
+
"""
|
134
|
+
if self.local_vars_configuration.client_side_validation and connection_type is None: # noqa: E501
|
135
|
+
raise ValueError("Invalid value for `connection_type`, must not be `None`") # noqa: E501
|
136
|
+
|
137
|
+
self._connection_type = connection_type
|
138
|
+
|
139
|
+
@property
|
140
|
+
def connection_config(self):
|
141
|
+
"""Gets the connection_config of this DatabricksConnectionInfo. # noqa: E501
|
142
|
+
|
143
|
+
|
144
|
+
:return: The connection_config of this DatabricksConnectionInfo. # noqa: E501
|
145
|
+
:rtype: DatabricksConnectionConfig
|
146
|
+
"""
|
147
|
+
return self._connection_config
|
148
|
+
|
149
|
+
@connection_config.setter
|
150
|
+
def connection_config(self, connection_config):
|
151
|
+
"""Sets the connection_config of this DatabricksConnectionInfo.
|
152
|
+
|
153
|
+
|
154
|
+
:param connection_config: The connection_config of this DatabricksConnectionInfo. # noqa: E501
|
155
|
+
:type: DatabricksConnectionConfig
|
156
|
+
"""
|
157
|
+
if self.local_vars_configuration.client_side_validation and connection_config is None: # noqa: E501
|
158
|
+
raise ValueError("Invalid value for `connection_config`, must not be `None`") # noqa: E501
|
159
|
+
|
160
|
+
self._connection_config = connection_config
|
161
|
+
|
162
|
+
@property
|
163
|
+
def validation_status(self):
|
164
|
+
"""Gets the validation_status of this DatabricksConnectionInfo. # noqa: E501
|
165
|
+
|
166
|
+
|
167
|
+
:return: The validation_status of this DatabricksConnectionInfo. # noqa: E501
|
168
|
+
:rtype: ValidationStatus
|
169
|
+
"""
|
170
|
+
return self._validation_status
|
171
|
+
|
172
|
+
@validation_status.setter
|
173
|
+
def validation_status(self, validation_status):
|
174
|
+
"""Sets the validation_status of this DatabricksConnectionInfo.
|
175
|
+
|
176
|
+
|
177
|
+
:param validation_status: The validation_status of this DatabricksConnectionInfo. # noqa: E501
|
178
|
+
:type: ValidationStatus
|
179
|
+
"""
|
180
|
+
if self.local_vars_configuration.client_side_validation and validation_status is None: # noqa: E501
|
181
|
+
raise ValueError("Invalid value for `validation_status`, must not be `None`") # noqa: E501
|
182
|
+
|
183
|
+
self._validation_status = validation_status
|
184
|
+
|
185
|
+
def to_dict(self):
|
186
|
+
"""Returns the model properties as a dict"""
|
187
|
+
result = {}
|
188
|
+
|
189
|
+
for attr, _ in six.iteritems(self.openapi_types):
|
190
|
+
value = getattr(self, attr)
|
191
|
+
if isinstance(value, list):
|
192
|
+
result[attr] = list(map(
|
193
|
+
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
194
|
+
value
|
195
|
+
))
|
196
|
+
elif hasattr(value, "to_dict"):
|
197
|
+
result[attr] = value.to_dict()
|
198
|
+
elif isinstance(value, dict):
|
199
|
+
result[attr] = dict(map(
|
200
|
+
lambda item: (item[0], item[1].to_dict())
|
201
|
+
if hasattr(item[1], "to_dict") else item,
|
202
|
+
value.items()
|
203
|
+
))
|
204
|
+
else:
|
205
|
+
result[attr] = value
|
206
|
+
|
207
|
+
return result
|
208
|
+
|
209
|
+
def to_str(self):
|
210
|
+
"""Returns the string representation of the model"""
|
211
|
+
return pprint.pformat(self.to_dict())
|
212
|
+
|
213
|
+
def __repr__(self):
|
214
|
+
"""For `print` and `pprint`"""
|
215
|
+
return self.to_str()
|
216
|
+
|
217
|
+
def __eq__(self, other):
|
218
|
+
"""Returns true if both objects are equal"""
|
219
|
+
if not isinstance(other, DatabricksConnectionInfo):
|
220
|
+
return False
|
221
|
+
|
222
|
+
return self.to_dict() == other.to_dict()
|
223
|
+
|
224
|
+
def __ne__(self, other):
|
225
|
+
"""Returns true if both objects are not equal"""
|
226
|
+
if not isinstance(other, DatabricksConnectionInfo):
|
227
|
+
return True
|
228
|
+
|
229
|
+
return self.to_dict() != other.to_dict()
|
@@ -0,0 +1,148 @@
|
|
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 DatabricksConnectionResponse(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
|
+
'message': 'str'
|
38
|
+
}
|
39
|
+
|
40
|
+
attribute_map = {
|
41
|
+
'id': 'id',
|
42
|
+
'message': 'message'
|
43
|
+
}
|
44
|
+
|
45
|
+
def __init__(self, id=None, message=None, local_vars_configuration=None): # noqa: E501
|
46
|
+
"""DatabricksConnectionResponse - 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._id = None
|
52
|
+
self._message = None
|
53
|
+
self.discriminator = None
|
54
|
+
|
55
|
+
self.id = id
|
56
|
+
self.message = message
|
57
|
+
|
58
|
+
@property
|
59
|
+
def id(self):
|
60
|
+
"""Gets the id of this DatabricksConnectionResponse. # noqa: E501
|
61
|
+
|
62
|
+
|
63
|
+
:return: The id of this DatabricksConnectionResponse. # noqa: E501
|
64
|
+
:rtype: str
|
65
|
+
"""
|
66
|
+
return self._id
|
67
|
+
|
68
|
+
@id.setter
|
69
|
+
def id(self, id):
|
70
|
+
"""Sets the id of this DatabricksConnectionResponse.
|
71
|
+
|
72
|
+
|
73
|
+
:param id: The id of this DatabricksConnectionResponse. # noqa: E501
|
74
|
+
:type: str
|
75
|
+
"""
|
76
|
+
if self.local_vars_configuration.client_side_validation and id is None: # noqa: E501
|
77
|
+
raise ValueError("Invalid value for `id`, must not be `None`") # noqa: E501
|
78
|
+
|
79
|
+
self._id = id
|
80
|
+
|
81
|
+
@property
|
82
|
+
def message(self):
|
83
|
+
"""Gets the message of this DatabricksConnectionResponse. # noqa: E501
|
84
|
+
|
85
|
+
|
86
|
+
:return: The message of this DatabricksConnectionResponse. # noqa: E501
|
87
|
+
:rtype: str
|
88
|
+
"""
|
89
|
+
return self._message
|
90
|
+
|
91
|
+
@message.setter
|
92
|
+
def message(self, message):
|
93
|
+
"""Sets the message of this DatabricksConnectionResponse.
|
94
|
+
|
95
|
+
|
96
|
+
:param message: The message of this DatabricksConnectionResponse. # noqa: E501
|
97
|
+
:type: str
|
98
|
+
"""
|
99
|
+
if self.local_vars_configuration.client_side_validation and message is None: # noqa: E501
|
100
|
+
raise ValueError("Invalid value for `message`, must not be `None`") # noqa: E501
|
101
|
+
|
102
|
+
self._message = message
|
103
|
+
|
104
|
+
def to_dict(self):
|
105
|
+
"""Returns the model properties as a dict"""
|
106
|
+
result = {}
|
107
|
+
|
108
|
+
for attr, _ in six.iteritems(self.openapi_types):
|
109
|
+
value = getattr(self, attr)
|
110
|
+
if isinstance(value, list):
|
111
|
+
result[attr] = list(map(
|
112
|
+
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
113
|
+
value
|
114
|
+
))
|
115
|
+
elif hasattr(value, "to_dict"):
|
116
|
+
result[attr] = value.to_dict()
|
117
|
+
elif isinstance(value, dict):
|
118
|
+
result[attr] = dict(map(
|
119
|
+
lambda item: (item[0], item[1].to_dict())
|
120
|
+
if hasattr(item[1], "to_dict") else item,
|
121
|
+
value.items()
|
122
|
+
))
|
123
|
+
else:
|
124
|
+
result[attr] = value
|
125
|
+
|
126
|
+
return result
|
127
|
+
|
128
|
+
def to_str(self):
|
129
|
+
"""Returns the string representation of the model"""
|
130
|
+
return pprint.pformat(self.to_dict())
|
131
|
+
|
132
|
+
def __repr__(self):
|
133
|
+
"""For `print` and `pprint`"""
|
134
|
+
return self.to_str()
|
135
|
+
|
136
|
+
def __eq__(self, other):
|
137
|
+
"""Returns true if both objects are equal"""
|
138
|
+
if not isinstance(other, DatabricksConnectionResponse):
|
139
|
+
return False
|
140
|
+
|
141
|
+
return self.to_dict() == other.to_dict()
|
142
|
+
|
143
|
+
def __ne__(self, other):
|
144
|
+
"""Returns true if both objects are not equal"""
|
145
|
+
if not isinstance(other, DatabricksConnectionResponse):
|
146
|
+
return True
|
147
|
+
|
148
|
+
return self.to_dict() != other.to_dict()
|
@@ -0,0 +1,187 @@
|
|
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 DatabricksRegisterRequest(object):
|
22
|
+
"""NOTE: This class is auto generated by OpenAPI Generator.
|
23
|
+
Ref: https://openapi-generator.tech
|
24
|
+
|
25
|
+
Do not edit the class manually.
|
26
|
+
"""
|
27
|
+
|
28
|
+
"""
|
29
|
+
Attributes:
|
30
|
+
openapi_types (dict): The key is attribute name
|
31
|
+
and the value is attribute type.
|
32
|
+
attribute_map (dict): The key is attribute name
|
33
|
+
and the value is json key in definition.
|
34
|
+
"""
|
35
|
+
openapi_types = {
|
36
|
+
'name': 'str',
|
37
|
+
'connection_type': 'ConnectionType',
|
38
|
+
'connection_config': 'DatabricksConnectionConfig'
|
39
|
+
}
|
40
|
+
|
41
|
+
attribute_map = {
|
42
|
+
'name': 'name',
|
43
|
+
'connection_type': 'connection_type',
|
44
|
+
'connection_config': 'connection_config'
|
45
|
+
}
|
46
|
+
|
47
|
+
def __init__(self, name=None, connection_type=None, connection_config=None, local_vars_configuration=None): # noqa: E501
|
48
|
+
"""DatabricksRegisterRequest - a model defined in OpenAPI""" # noqa: E501
|
49
|
+
if local_vars_configuration is None:
|
50
|
+
local_vars_configuration = Configuration()
|
51
|
+
self.local_vars_configuration = local_vars_configuration
|
52
|
+
|
53
|
+
self._name = None
|
54
|
+
self._connection_type = None
|
55
|
+
self._connection_config = None
|
56
|
+
self.discriminator = None
|
57
|
+
|
58
|
+
self.name = name
|
59
|
+
self.connection_type = connection_type
|
60
|
+
self.connection_config = connection_config
|
61
|
+
|
62
|
+
@property
|
63
|
+
def name(self):
|
64
|
+
"""Gets the name of this DatabricksRegisterRequest. # noqa: E501
|
65
|
+
|
66
|
+
Name for the Databricks connection # noqa: E501
|
67
|
+
|
68
|
+
:return: The name of this DatabricksRegisterRequest. # noqa: E501
|
69
|
+
:rtype: str
|
70
|
+
"""
|
71
|
+
return self._name
|
72
|
+
|
73
|
+
@name.setter
|
74
|
+
def name(self, name):
|
75
|
+
"""Sets the name of this DatabricksRegisterRequest.
|
76
|
+
|
77
|
+
Name for the Databricks connection # noqa: E501
|
78
|
+
|
79
|
+
:param name: The name of this DatabricksRegisterRequest. # noqa: E501
|
80
|
+
:type: str
|
81
|
+
"""
|
82
|
+
if self.local_vars_configuration.client_side_validation and name is None: # noqa: E501
|
83
|
+
raise ValueError("Invalid value for `name`, must not be `None`") # noqa: E501
|
84
|
+
if (self.local_vars_configuration.client_side_validation and
|
85
|
+
name is not None and len(name) > 255):
|
86
|
+
raise ValueError("Invalid value for `name`, length must be less than or equal to `255`") # noqa: E501
|
87
|
+
if (self.local_vars_configuration.client_side_validation and
|
88
|
+
name is not None and len(name) < 1):
|
89
|
+
raise ValueError("Invalid value for `name`, length must be greater than or equal to `1`") # noqa: E501
|
90
|
+
|
91
|
+
self._name = name
|
92
|
+
|
93
|
+
@property
|
94
|
+
def connection_type(self):
|
95
|
+
"""Gets the connection_type of this DatabricksRegisterRequest. # noqa: E501
|
96
|
+
|
97
|
+
Databricks connection type # noqa: E501
|
98
|
+
|
99
|
+
:return: The connection_type of this DatabricksRegisterRequest. # noqa: E501
|
100
|
+
:rtype: ConnectionType
|
101
|
+
"""
|
102
|
+
return self._connection_type
|
103
|
+
|
104
|
+
@connection_type.setter
|
105
|
+
def connection_type(self, connection_type):
|
106
|
+
"""Sets the connection_type of this DatabricksRegisterRequest.
|
107
|
+
|
108
|
+
Databricks connection type # noqa: E501
|
109
|
+
|
110
|
+
:param connection_type: The connection_type of this DatabricksRegisterRequest. # noqa: E501
|
111
|
+
:type: ConnectionType
|
112
|
+
"""
|
113
|
+
if self.local_vars_configuration.client_side_validation and connection_type is None: # noqa: E501
|
114
|
+
raise ValueError("Invalid value for `connection_type`, must not be `None`") # noqa: E501
|
115
|
+
|
116
|
+
self._connection_type = connection_type
|
117
|
+
|
118
|
+
@property
|
119
|
+
def connection_config(self):
|
120
|
+
"""Gets the connection_config of this DatabricksRegisterRequest. # noqa: E501
|
121
|
+
|
122
|
+
Databricks connection configuration # noqa: E501
|
123
|
+
|
124
|
+
:return: The connection_config of this DatabricksRegisterRequest. # noqa: E501
|
125
|
+
:rtype: DatabricksConnectionConfig
|
126
|
+
"""
|
127
|
+
return self._connection_config
|
128
|
+
|
129
|
+
@connection_config.setter
|
130
|
+
def connection_config(self, connection_config):
|
131
|
+
"""Sets the connection_config of this DatabricksRegisterRequest.
|
132
|
+
|
133
|
+
Databricks connection configuration # noqa: E501
|
134
|
+
|
135
|
+
:param connection_config: The connection_config of this DatabricksRegisterRequest. # noqa: E501
|
136
|
+
:type: DatabricksConnectionConfig
|
137
|
+
"""
|
138
|
+
if self.local_vars_configuration.client_side_validation and connection_config is None: # noqa: E501
|
139
|
+
raise ValueError("Invalid value for `connection_config`, must not be `None`") # noqa: E501
|
140
|
+
|
141
|
+
self._connection_config = connection_config
|
142
|
+
|
143
|
+
def to_dict(self):
|
144
|
+
"""Returns the model properties as a dict"""
|
145
|
+
result = {}
|
146
|
+
|
147
|
+
for attr, _ in six.iteritems(self.openapi_types):
|
148
|
+
value = getattr(self, attr)
|
149
|
+
if isinstance(value, list):
|
150
|
+
result[attr] = list(map(
|
151
|
+
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
152
|
+
value
|
153
|
+
))
|
154
|
+
elif hasattr(value, "to_dict"):
|
155
|
+
result[attr] = value.to_dict()
|
156
|
+
elif isinstance(value, dict):
|
157
|
+
result[attr] = dict(map(
|
158
|
+
lambda item: (item[0], item[1].to_dict())
|
159
|
+
if hasattr(item[1], "to_dict") else item,
|
160
|
+
value.items()
|
161
|
+
))
|
162
|
+
else:
|
163
|
+
result[attr] = value
|
164
|
+
|
165
|
+
return result
|
166
|
+
|
167
|
+
def to_str(self):
|
168
|
+
"""Returns the string representation of the model"""
|
169
|
+
return pprint.pformat(self.to_dict())
|
170
|
+
|
171
|
+
def __repr__(self):
|
172
|
+
"""For `print` and `pprint`"""
|
173
|
+
return self.to_str()
|
174
|
+
|
175
|
+
def __eq__(self, other):
|
176
|
+
"""Returns true if both objects are equal"""
|
177
|
+
if not isinstance(other, DatabricksRegisterRequest):
|
178
|
+
return False
|
179
|
+
|
180
|
+
return self.to_dict() == other.to_dict()
|
181
|
+
|
182
|
+
def __ne__(self, other):
|
183
|
+
"""Returns true if both objects are not equal"""
|
184
|
+
if not isinstance(other, DatabricksRegisterRequest):
|
185
|
+
return True
|
186
|
+
|
187
|
+
return self.to_dict() != other.to_dict()
|
@@ -0,0 +1,121 @@
|
|
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 DatabricksconnectioninfoResponse(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
|
+
'result': 'DatabricksConnectionInfo'
|
37
|
+
}
|
38
|
+
|
39
|
+
attribute_map = {
|
40
|
+
'result': 'result'
|
41
|
+
}
|
42
|
+
|
43
|
+
def __init__(self, result=None, local_vars_configuration=None): # noqa: E501
|
44
|
+
"""DatabricksconnectioninfoResponse - a model defined in OpenAPI""" # noqa: E501
|
45
|
+
if local_vars_configuration is None:
|
46
|
+
local_vars_configuration = Configuration()
|
47
|
+
self.local_vars_configuration = local_vars_configuration
|
48
|
+
|
49
|
+
self._result = None
|
50
|
+
self.discriminator = None
|
51
|
+
|
52
|
+
self.result = result
|
53
|
+
|
54
|
+
@property
|
55
|
+
def result(self):
|
56
|
+
"""Gets the result of this DatabricksconnectioninfoResponse. # noqa: E501
|
57
|
+
|
58
|
+
|
59
|
+
:return: The result of this DatabricksconnectioninfoResponse. # noqa: E501
|
60
|
+
:rtype: DatabricksConnectionInfo
|
61
|
+
"""
|
62
|
+
return self._result
|
63
|
+
|
64
|
+
@result.setter
|
65
|
+
def result(self, result):
|
66
|
+
"""Sets the result of this DatabricksconnectioninfoResponse.
|
67
|
+
|
68
|
+
|
69
|
+
:param result: The result of this DatabricksconnectioninfoResponse. # noqa: E501
|
70
|
+
:type: DatabricksConnectionInfo
|
71
|
+
"""
|
72
|
+
if self.local_vars_configuration.client_side_validation and result is None: # noqa: E501
|
73
|
+
raise ValueError("Invalid value for `result`, must not be `None`") # noqa: E501
|
74
|
+
|
75
|
+
self._result = result
|
76
|
+
|
77
|
+
def to_dict(self):
|
78
|
+
"""Returns the model properties as a dict"""
|
79
|
+
result = {}
|
80
|
+
|
81
|
+
for attr, _ in six.iteritems(self.openapi_types):
|
82
|
+
value = getattr(self, attr)
|
83
|
+
if isinstance(value, list):
|
84
|
+
result[attr] = list(map(
|
85
|
+
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
86
|
+
value
|
87
|
+
))
|
88
|
+
elif hasattr(value, "to_dict"):
|
89
|
+
result[attr] = value.to_dict()
|
90
|
+
elif isinstance(value, dict):
|
91
|
+
result[attr] = dict(map(
|
92
|
+
lambda item: (item[0], item[1].to_dict())
|
93
|
+
if hasattr(item[1], "to_dict") else item,
|
94
|
+
value.items()
|
95
|
+
))
|
96
|
+
else:
|
97
|
+
result[attr] = value
|
98
|
+
|
99
|
+
return result
|
100
|
+
|
101
|
+
def to_str(self):
|
102
|
+
"""Returns the string representation of the model"""
|
103
|
+
return pprint.pformat(self.to_dict())
|
104
|
+
|
105
|
+
def __repr__(self):
|
106
|
+
"""For `print` and `pprint`"""
|
107
|
+
return self.to_str()
|
108
|
+
|
109
|
+
def __eq__(self, other):
|
110
|
+
"""Returns true if both objects are equal"""
|
111
|
+
if not isinstance(other, DatabricksconnectioninfoResponse):
|
112
|
+
return False
|
113
|
+
|
114
|
+
return self.to_dict() == other.to_dict()
|
115
|
+
|
116
|
+
def __ne__(self, other):
|
117
|
+
"""Returns true if both objects are not equal"""
|
118
|
+
if not isinstance(other, DatabricksconnectioninfoResponse):
|
119
|
+
return True
|
120
|
+
|
121
|
+
return self.to_dict() != other.to_dict()
|