anyscale 0.26.17__py3-none-any.whl → 0.26.19__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/models.md +2 -2
- anyscale/anyscale-cloud-setup.yaml +0 -4
- anyscale/client/README.md +12 -37
- anyscale/client/openapi_client/__init__.py +11 -20
- anyscale/client/openapi_client/api/default_api.py +115 -2004
- anyscale/client/openapi_client/models/__init__.py +11 -20
- anyscale/client/openapi_client/models/aws_config.py +402 -0
- anyscale/client/openapi_client/models/baseimagesenum.py +68 -1
- anyscale/client/openapi_client/models/cloud_deployment.py +397 -0
- anyscale/client/openapi_client/models/{webterminal_list_response.py → clouddeployment_list_response.py} +15 -15
- anyscale/client/openapi_client/models/file_storage.py +206 -0
- anyscale/client/openapi_client/models/gcp_config.py +402 -0
- anyscale/client/openapi_client/models/kubernetes_config.py +150 -0
- anyscale/client/openapi_client/models/{monitor_logs_extension.py → networking_mode.py} +7 -7
- anyscale/client/openapi_client/models/object_storage.py +178 -0
- anyscale/client/openapi_client/models/{sessiondetails_response.py → pcp_config.py} +23 -22
- anyscale/client/openapi_client/models/supportedbaseimagesenum.py +68 -1
- anyscale/client/openapi_client/models/workspace_template_readme.py +181 -0
- anyscale/client/openapi_client/models/{archivedlogsinfo_response.py → workspacetemplatereadme_response.py} +11 -11
- anyscale/commands/cloud_commands.py +55 -7
- anyscale/connect_utils/prepare_cluster.py +19 -14
- anyscale/controllers/cloud_controller.py +60 -3
- anyscale/sdk/anyscale_client/models/baseimagesenum.py +68 -1
- anyscale/sdk/anyscale_client/models/supportedbaseimagesenum.py +68 -1
- anyscale/shared_anyscale_utils/latest_ray_version.py +1 -1
- anyscale/version.py +1 -1
- {anyscale-0.26.17.dist-info → anyscale-0.26.19.dist-info}/METADATA +1 -1
- {anyscale-0.26.17.dist-info → anyscale-0.26.19.dist-info}/RECORD +33 -42
- anyscale/client/openapi_client/models/archived_logs_info.py +0 -164
- anyscale/client/openapi_client/models/create_experimental_workspace_from_job.py +0 -123
- anyscale/client/openapi_client/models/create_session_from_snapshot_options.py +0 -538
- anyscale/client/openapi_client/models/create_session_in_db.py +0 -434
- anyscale/client/openapi_client/models/create_session_response.py +0 -174
- anyscale/client/openapi_client/models/createsessionresponse_response.py +0 -121
- anyscale/client/openapi_client/models/external_service_status.py +0 -147
- anyscale/client/openapi_client/models/external_service_status_response.py +0 -250
- anyscale/client/openapi_client/models/externalservicestatusresponse_response.py +0 -121
- anyscale/client/openapi_client/models/session_describe.py +0 -175
- anyscale/client/openapi_client/models/session_details.py +0 -148
- anyscale/client/openapi_client/models/session_history_item.py +0 -146
- anyscale/client/openapi_client/models/sessiondescribe_response.py +0 -121
- anyscale/client/openapi_client/models/sessionhistoryitem_list_response.py +0 -147
- anyscale/client/openapi_client/models/update_compute_template.py +0 -146
- anyscale/client/openapi_client/models/update_compute_template_config.py +0 -464
- {anyscale-0.26.17.dist-info → anyscale-0.26.19.dist-info}/LICENSE +0 -0
- {anyscale-0.26.17.dist-info → anyscale-0.26.19.dist-info}/NOTICE +0 -0
- {anyscale-0.26.17.dist-info → anyscale-0.26.19.dist-info}/WHEEL +0 -0
- {anyscale-0.26.17.dist-info → anyscale-0.26.19.dist-info}/entry_points.txt +0 -0
- {anyscale-0.26.17.dist-info → anyscale-0.26.19.dist-info}/top_level.txt +0 -0
@@ -0,0 +1,402 @@
|
|
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 GCPConfig(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
|
+
'project_id': 'str',
|
37
|
+
'host_project_id': 'str',
|
38
|
+
'provider_name': 'str',
|
39
|
+
'vpc_name': 'str',
|
40
|
+
'subnet_names': 'list[str]',
|
41
|
+
'firewall_policy_names': 'list[str]',
|
42
|
+
'anyscale_service_account_email': 'str',
|
43
|
+
'cluster_service_account_email': 'str',
|
44
|
+
'memorystore_instance_name': 'str',
|
45
|
+
'memorystore_endpoint': 'str',
|
46
|
+
'deployment_manager_id': 'str'
|
47
|
+
}
|
48
|
+
|
49
|
+
attribute_map = {
|
50
|
+
'project_id': 'project_id',
|
51
|
+
'host_project_id': 'host_project_id',
|
52
|
+
'provider_name': 'provider_name',
|
53
|
+
'vpc_name': 'vpc_name',
|
54
|
+
'subnet_names': 'subnet_names',
|
55
|
+
'firewall_policy_names': 'firewall_policy_names',
|
56
|
+
'anyscale_service_account_email': 'anyscale_service_account_email',
|
57
|
+
'cluster_service_account_email': 'cluster_service_account_email',
|
58
|
+
'memorystore_instance_name': 'memorystore_instance_name',
|
59
|
+
'memorystore_endpoint': 'memorystore_endpoint',
|
60
|
+
'deployment_manager_id': 'deployment_manager_id'
|
61
|
+
}
|
62
|
+
|
63
|
+
def __init__(self, project_id=None, host_project_id=None, provider_name=None, vpc_name=None, subnet_names=None, firewall_policy_names=None, anyscale_service_account_email=None, cluster_service_account_email=None, memorystore_instance_name=None, memorystore_endpoint=None, deployment_manager_id=None, local_vars_configuration=None): # noqa: E501
|
64
|
+
"""GCPConfig - a model defined in OpenAPI""" # noqa: E501
|
65
|
+
if local_vars_configuration is None:
|
66
|
+
local_vars_configuration = Configuration()
|
67
|
+
self.local_vars_configuration = local_vars_configuration
|
68
|
+
|
69
|
+
self._project_id = None
|
70
|
+
self._host_project_id = None
|
71
|
+
self._provider_name = None
|
72
|
+
self._vpc_name = None
|
73
|
+
self._subnet_names = None
|
74
|
+
self._firewall_policy_names = None
|
75
|
+
self._anyscale_service_account_email = None
|
76
|
+
self._cluster_service_account_email = None
|
77
|
+
self._memorystore_instance_name = None
|
78
|
+
self._memorystore_endpoint = None
|
79
|
+
self._deployment_manager_id = None
|
80
|
+
self.discriminator = None
|
81
|
+
|
82
|
+
if project_id is not None:
|
83
|
+
self.project_id = project_id
|
84
|
+
if host_project_id is not None:
|
85
|
+
self.host_project_id = host_project_id
|
86
|
+
if provider_name is not None:
|
87
|
+
self.provider_name = provider_name
|
88
|
+
if vpc_name is not None:
|
89
|
+
self.vpc_name = vpc_name
|
90
|
+
if subnet_names is not None:
|
91
|
+
self.subnet_names = subnet_names
|
92
|
+
if firewall_policy_names is not None:
|
93
|
+
self.firewall_policy_names = firewall_policy_names
|
94
|
+
if anyscale_service_account_email is not None:
|
95
|
+
self.anyscale_service_account_email = anyscale_service_account_email
|
96
|
+
if cluster_service_account_email is not None:
|
97
|
+
self.cluster_service_account_email = cluster_service_account_email
|
98
|
+
if memorystore_instance_name is not None:
|
99
|
+
self.memorystore_instance_name = memorystore_instance_name
|
100
|
+
if memorystore_endpoint is not None:
|
101
|
+
self.memorystore_endpoint = memorystore_endpoint
|
102
|
+
if deployment_manager_id is not None:
|
103
|
+
self.deployment_manager_id = deployment_manager_id
|
104
|
+
|
105
|
+
@property
|
106
|
+
def project_id(self):
|
107
|
+
"""Gets the project_id of this GCPConfig. # noqa: E501
|
108
|
+
|
109
|
+
The GCP project ID. # noqa: E501
|
110
|
+
|
111
|
+
:return: The project_id of this GCPConfig. # noqa: E501
|
112
|
+
:rtype: str
|
113
|
+
"""
|
114
|
+
return self._project_id
|
115
|
+
|
116
|
+
@project_id.setter
|
117
|
+
def project_id(self, project_id):
|
118
|
+
"""Sets the project_id of this GCPConfig.
|
119
|
+
|
120
|
+
The GCP project ID. # noqa: E501
|
121
|
+
|
122
|
+
:param project_id: The project_id of this GCPConfig. # noqa: E501
|
123
|
+
:type: str
|
124
|
+
"""
|
125
|
+
|
126
|
+
self._project_id = project_id
|
127
|
+
|
128
|
+
@property
|
129
|
+
def host_project_id(self):
|
130
|
+
"""Gets the host_project_id of this GCPConfig. # noqa: E501
|
131
|
+
|
132
|
+
The host project ID for shared VPCs. # noqa: E501
|
133
|
+
|
134
|
+
:return: The host_project_id of this GCPConfig. # noqa: E501
|
135
|
+
:rtype: str
|
136
|
+
"""
|
137
|
+
return self._host_project_id
|
138
|
+
|
139
|
+
@host_project_id.setter
|
140
|
+
def host_project_id(self, host_project_id):
|
141
|
+
"""Sets the host_project_id of this GCPConfig.
|
142
|
+
|
143
|
+
The host project ID for shared VPCs. # noqa: E501
|
144
|
+
|
145
|
+
:param host_project_id: The host_project_id of this GCPConfig. # noqa: E501
|
146
|
+
:type: str
|
147
|
+
"""
|
148
|
+
|
149
|
+
self._host_project_id = host_project_id
|
150
|
+
|
151
|
+
@property
|
152
|
+
def provider_name(self):
|
153
|
+
"""Gets the provider_name of this GCPConfig. # noqa: E501
|
154
|
+
|
155
|
+
Workload Identity Federation provider name for Anyscale access. # noqa: E501
|
156
|
+
|
157
|
+
:return: The provider_name of this GCPConfig. # noqa: E501
|
158
|
+
:rtype: str
|
159
|
+
"""
|
160
|
+
return self._provider_name
|
161
|
+
|
162
|
+
@provider_name.setter
|
163
|
+
def provider_name(self, provider_name):
|
164
|
+
"""Sets the provider_name of this GCPConfig.
|
165
|
+
|
166
|
+
Workload Identity Federation provider name for Anyscale access. # noqa: E501
|
167
|
+
|
168
|
+
:param provider_name: The provider_name of this GCPConfig. # noqa: E501
|
169
|
+
:type: str
|
170
|
+
"""
|
171
|
+
|
172
|
+
self._provider_name = provider_name
|
173
|
+
|
174
|
+
@property
|
175
|
+
def vpc_name(self):
|
176
|
+
"""Gets the vpc_name of this GCPConfig. # noqa: E501
|
177
|
+
|
178
|
+
VPC name. # noqa: E501
|
179
|
+
|
180
|
+
:return: The vpc_name of this GCPConfig. # noqa: E501
|
181
|
+
:rtype: str
|
182
|
+
"""
|
183
|
+
return self._vpc_name
|
184
|
+
|
185
|
+
@vpc_name.setter
|
186
|
+
def vpc_name(self, vpc_name):
|
187
|
+
"""Sets the vpc_name of this GCPConfig.
|
188
|
+
|
189
|
+
VPC name. # noqa: E501
|
190
|
+
|
191
|
+
:param vpc_name: The vpc_name of this GCPConfig. # noqa: E501
|
192
|
+
:type: str
|
193
|
+
"""
|
194
|
+
|
195
|
+
self._vpc_name = vpc_name
|
196
|
+
|
197
|
+
@property
|
198
|
+
def subnet_names(self):
|
199
|
+
"""Gets the subnet_names of this GCPConfig. # noqa: E501
|
200
|
+
|
201
|
+
List of GCP subnet names. # noqa: E501
|
202
|
+
|
203
|
+
:return: The subnet_names of this GCPConfig. # noqa: E501
|
204
|
+
:rtype: list[str]
|
205
|
+
"""
|
206
|
+
return self._subnet_names
|
207
|
+
|
208
|
+
@subnet_names.setter
|
209
|
+
def subnet_names(self, subnet_names):
|
210
|
+
"""Sets the subnet_names of this GCPConfig.
|
211
|
+
|
212
|
+
List of GCP subnet names. # noqa: E501
|
213
|
+
|
214
|
+
:param subnet_names: The subnet_names of this GCPConfig. # noqa: E501
|
215
|
+
:type: list[str]
|
216
|
+
"""
|
217
|
+
|
218
|
+
self._subnet_names = subnet_names
|
219
|
+
|
220
|
+
@property
|
221
|
+
def firewall_policy_names(self):
|
222
|
+
"""Gets the firewall_policy_names of this GCPConfig. # noqa: E501
|
223
|
+
|
224
|
+
List of GCP firewall policy names. # noqa: E501
|
225
|
+
|
226
|
+
:return: The firewall_policy_names of this GCPConfig. # noqa: E501
|
227
|
+
:rtype: list[str]
|
228
|
+
"""
|
229
|
+
return self._firewall_policy_names
|
230
|
+
|
231
|
+
@firewall_policy_names.setter
|
232
|
+
def firewall_policy_names(self, firewall_policy_names):
|
233
|
+
"""Sets the firewall_policy_names of this GCPConfig.
|
234
|
+
|
235
|
+
List of GCP firewall policy names. # noqa: E501
|
236
|
+
|
237
|
+
:param firewall_policy_names: The firewall_policy_names of this GCPConfig. # noqa: E501
|
238
|
+
:type: list[str]
|
239
|
+
"""
|
240
|
+
|
241
|
+
self._firewall_policy_names = firewall_policy_names
|
242
|
+
|
243
|
+
@property
|
244
|
+
def anyscale_service_account_email(self):
|
245
|
+
"""Gets the anyscale_service_account_email of this GCPConfig. # noqa: E501
|
246
|
+
|
247
|
+
The Anyscale service account email. # noqa: E501
|
248
|
+
|
249
|
+
:return: The anyscale_service_account_email of this GCPConfig. # noqa: E501
|
250
|
+
:rtype: str
|
251
|
+
"""
|
252
|
+
return self._anyscale_service_account_email
|
253
|
+
|
254
|
+
@anyscale_service_account_email.setter
|
255
|
+
def anyscale_service_account_email(self, anyscale_service_account_email):
|
256
|
+
"""Sets the anyscale_service_account_email of this GCPConfig.
|
257
|
+
|
258
|
+
The Anyscale service account email. # noqa: E501
|
259
|
+
|
260
|
+
:param anyscale_service_account_email: The anyscale_service_account_email of this GCPConfig. # noqa: E501
|
261
|
+
:type: str
|
262
|
+
"""
|
263
|
+
|
264
|
+
self._anyscale_service_account_email = anyscale_service_account_email
|
265
|
+
|
266
|
+
@property
|
267
|
+
def cluster_service_account_email(self):
|
268
|
+
"""Gets the cluster_service_account_email of this GCPConfig. # noqa: E501
|
269
|
+
|
270
|
+
The service account email attached to Ray clusters. # noqa: E501
|
271
|
+
|
272
|
+
:return: The cluster_service_account_email of this GCPConfig. # noqa: E501
|
273
|
+
:rtype: str
|
274
|
+
"""
|
275
|
+
return self._cluster_service_account_email
|
276
|
+
|
277
|
+
@cluster_service_account_email.setter
|
278
|
+
def cluster_service_account_email(self, cluster_service_account_email):
|
279
|
+
"""Sets the cluster_service_account_email of this GCPConfig.
|
280
|
+
|
281
|
+
The service account email attached to Ray clusters. # noqa: E501
|
282
|
+
|
283
|
+
:param cluster_service_account_email: The cluster_service_account_email of this GCPConfig. # noqa: E501
|
284
|
+
:type: str
|
285
|
+
"""
|
286
|
+
|
287
|
+
self._cluster_service_account_email = cluster_service_account_email
|
288
|
+
|
289
|
+
@property
|
290
|
+
def memorystore_instance_name(self):
|
291
|
+
"""Gets the memorystore_instance_name of this GCPConfig. # noqa: E501
|
292
|
+
|
293
|
+
The Memorystore instance name. # noqa: E501
|
294
|
+
|
295
|
+
:return: The memorystore_instance_name of this GCPConfig. # noqa: E501
|
296
|
+
:rtype: str
|
297
|
+
"""
|
298
|
+
return self._memorystore_instance_name
|
299
|
+
|
300
|
+
@memorystore_instance_name.setter
|
301
|
+
def memorystore_instance_name(self, memorystore_instance_name):
|
302
|
+
"""Sets the memorystore_instance_name of this GCPConfig.
|
303
|
+
|
304
|
+
The Memorystore instance name. # noqa: E501
|
305
|
+
|
306
|
+
:param memorystore_instance_name: The memorystore_instance_name of this GCPConfig. # noqa: E501
|
307
|
+
:type: str
|
308
|
+
"""
|
309
|
+
|
310
|
+
self._memorystore_instance_name = memorystore_instance_name
|
311
|
+
|
312
|
+
@property
|
313
|
+
def memorystore_endpoint(self):
|
314
|
+
"""Gets the memorystore_endpoint of this GCPConfig. # noqa: E501
|
315
|
+
|
316
|
+
The Memorystore instance endpoint. # noqa: E501
|
317
|
+
|
318
|
+
:return: The memorystore_endpoint of this GCPConfig. # noqa: E501
|
319
|
+
:rtype: str
|
320
|
+
"""
|
321
|
+
return self._memorystore_endpoint
|
322
|
+
|
323
|
+
@memorystore_endpoint.setter
|
324
|
+
def memorystore_endpoint(self, memorystore_endpoint):
|
325
|
+
"""Sets the memorystore_endpoint of this GCPConfig.
|
326
|
+
|
327
|
+
The Memorystore instance endpoint. # noqa: E501
|
328
|
+
|
329
|
+
:param memorystore_endpoint: The memorystore_endpoint of this GCPConfig. # noqa: E501
|
330
|
+
:type: str
|
331
|
+
"""
|
332
|
+
|
333
|
+
self._memorystore_endpoint = memorystore_endpoint
|
334
|
+
|
335
|
+
@property
|
336
|
+
def deployment_manager_id(self):
|
337
|
+
"""Gets the deployment_manager_id of this GCPConfig. # noqa: E501
|
338
|
+
|
339
|
+
The deployment manager deployment ID, for deployments with Anyscale-managed resources. # noqa: E501
|
340
|
+
|
341
|
+
:return: The deployment_manager_id of this GCPConfig. # noqa: E501
|
342
|
+
:rtype: str
|
343
|
+
"""
|
344
|
+
return self._deployment_manager_id
|
345
|
+
|
346
|
+
@deployment_manager_id.setter
|
347
|
+
def deployment_manager_id(self, deployment_manager_id):
|
348
|
+
"""Sets the deployment_manager_id of this GCPConfig.
|
349
|
+
|
350
|
+
The deployment manager deployment ID, for deployments with Anyscale-managed resources. # noqa: E501
|
351
|
+
|
352
|
+
:param deployment_manager_id: The deployment_manager_id of this GCPConfig. # noqa: E501
|
353
|
+
:type: str
|
354
|
+
"""
|
355
|
+
|
356
|
+
self._deployment_manager_id = deployment_manager_id
|
357
|
+
|
358
|
+
def to_dict(self):
|
359
|
+
"""Returns the model properties as a dict"""
|
360
|
+
result = {}
|
361
|
+
|
362
|
+
for attr, _ in six.iteritems(self.openapi_types):
|
363
|
+
value = getattr(self, attr)
|
364
|
+
if isinstance(value, list):
|
365
|
+
result[attr] = list(map(
|
366
|
+
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
367
|
+
value
|
368
|
+
))
|
369
|
+
elif hasattr(value, "to_dict"):
|
370
|
+
result[attr] = value.to_dict()
|
371
|
+
elif isinstance(value, dict):
|
372
|
+
result[attr] = dict(map(
|
373
|
+
lambda item: (item[0], item[1].to_dict())
|
374
|
+
if hasattr(item[1], "to_dict") else item,
|
375
|
+
value.items()
|
376
|
+
))
|
377
|
+
else:
|
378
|
+
result[attr] = value
|
379
|
+
|
380
|
+
return result
|
381
|
+
|
382
|
+
def to_str(self):
|
383
|
+
"""Returns the string representation of the model"""
|
384
|
+
return pprint.pformat(self.to_dict())
|
385
|
+
|
386
|
+
def __repr__(self):
|
387
|
+
"""For `print` and `pprint`"""
|
388
|
+
return self.to_str()
|
389
|
+
|
390
|
+
def __eq__(self, other):
|
391
|
+
"""Returns true if both objects are equal"""
|
392
|
+
if not isinstance(other, GCPConfig):
|
393
|
+
return False
|
394
|
+
|
395
|
+
return self.to_dict() == other.to_dict()
|
396
|
+
|
397
|
+
def __ne__(self, other):
|
398
|
+
"""Returns true if both objects are not equal"""
|
399
|
+
if not isinstance(other, GCPConfig):
|
400
|
+
return True
|
401
|
+
|
402
|
+
return self.to_dict() != other.to_dict()
|
@@ -0,0 +1,150 @@
|
|
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 KubernetesConfig(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
|
+
'anyscale_operator_iam_identity': 'str',
|
37
|
+
'zones': 'list[str]'
|
38
|
+
}
|
39
|
+
|
40
|
+
attribute_map = {
|
41
|
+
'anyscale_operator_iam_identity': 'anyscale_operator_iam_identity',
|
42
|
+
'zones': 'zones'
|
43
|
+
}
|
44
|
+
|
45
|
+
def __init__(self, anyscale_operator_iam_identity=None, zones=None, local_vars_configuration=None): # noqa: E501
|
46
|
+
"""KubernetesConfig - 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._anyscale_operator_iam_identity = None
|
52
|
+
self._zones = None
|
53
|
+
self.discriminator = None
|
54
|
+
|
55
|
+
if anyscale_operator_iam_identity is not None:
|
56
|
+
self.anyscale_operator_iam_identity = anyscale_operator_iam_identity
|
57
|
+
if zones is not None:
|
58
|
+
self.zones = zones
|
59
|
+
|
60
|
+
@property
|
61
|
+
def anyscale_operator_iam_identity(self):
|
62
|
+
"""Gets the anyscale_operator_iam_identity of this KubernetesConfig. # noqa: E501
|
63
|
+
|
64
|
+
The cloud provider IAM identity federated with the Anyscale Operator's Kubernetes service account, which will be used by Anyscale control plane for validation during Anyscale Operator bootstrap in the dataplane. IN AWS EKS, this is the ARN of the IAM role. For GCP GKE, this is the service account email. # noqa: E501
|
65
|
+
|
66
|
+
:return: The anyscale_operator_iam_identity of this KubernetesConfig. # noqa: E501
|
67
|
+
:rtype: str
|
68
|
+
"""
|
69
|
+
return self._anyscale_operator_iam_identity
|
70
|
+
|
71
|
+
@anyscale_operator_iam_identity.setter
|
72
|
+
def anyscale_operator_iam_identity(self, anyscale_operator_iam_identity):
|
73
|
+
"""Sets the anyscale_operator_iam_identity of this KubernetesConfig.
|
74
|
+
|
75
|
+
The cloud provider IAM identity federated with the Anyscale Operator's Kubernetes service account, which will be used by Anyscale control plane for validation during Anyscale Operator bootstrap in the dataplane. IN AWS EKS, this is the ARN of the IAM role. For GCP GKE, this is the service account email. # noqa: E501
|
76
|
+
|
77
|
+
:param anyscale_operator_iam_identity: The anyscale_operator_iam_identity of this KubernetesConfig. # noqa: E501
|
78
|
+
:type: str
|
79
|
+
"""
|
80
|
+
|
81
|
+
self._anyscale_operator_iam_identity = anyscale_operator_iam_identity
|
82
|
+
|
83
|
+
@property
|
84
|
+
def zones(self):
|
85
|
+
"""Gets the zones of this KubernetesConfig. # noqa: E501
|
86
|
+
|
87
|
+
List of zones to launch pods in. # noqa: E501
|
88
|
+
|
89
|
+
:return: The zones of this KubernetesConfig. # noqa: E501
|
90
|
+
:rtype: list[str]
|
91
|
+
"""
|
92
|
+
return self._zones
|
93
|
+
|
94
|
+
@zones.setter
|
95
|
+
def zones(self, zones):
|
96
|
+
"""Sets the zones of this KubernetesConfig.
|
97
|
+
|
98
|
+
List of zones to launch pods in. # noqa: E501
|
99
|
+
|
100
|
+
:param zones: The zones of this KubernetesConfig. # noqa: E501
|
101
|
+
:type: list[str]
|
102
|
+
"""
|
103
|
+
|
104
|
+
self._zones = zones
|
105
|
+
|
106
|
+
def to_dict(self):
|
107
|
+
"""Returns the model properties as a dict"""
|
108
|
+
result = {}
|
109
|
+
|
110
|
+
for attr, _ in six.iteritems(self.openapi_types):
|
111
|
+
value = getattr(self, attr)
|
112
|
+
if isinstance(value, list):
|
113
|
+
result[attr] = list(map(
|
114
|
+
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
115
|
+
value
|
116
|
+
))
|
117
|
+
elif hasattr(value, "to_dict"):
|
118
|
+
result[attr] = value.to_dict()
|
119
|
+
elif isinstance(value, dict):
|
120
|
+
result[attr] = dict(map(
|
121
|
+
lambda item: (item[0], item[1].to_dict())
|
122
|
+
if hasattr(item[1], "to_dict") else item,
|
123
|
+
value.items()
|
124
|
+
))
|
125
|
+
else:
|
126
|
+
result[attr] = value
|
127
|
+
|
128
|
+
return result
|
129
|
+
|
130
|
+
def to_str(self):
|
131
|
+
"""Returns the string representation of the model"""
|
132
|
+
return pprint.pformat(self.to_dict())
|
133
|
+
|
134
|
+
def __repr__(self):
|
135
|
+
"""For `print` and `pprint`"""
|
136
|
+
return self.to_str()
|
137
|
+
|
138
|
+
def __eq__(self, other):
|
139
|
+
"""Returns true if both objects are equal"""
|
140
|
+
if not isinstance(other, KubernetesConfig):
|
141
|
+
return False
|
142
|
+
|
143
|
+
return self.to_dict() == other.to_dict()
|
144
|
+
|
145
|
+
def __ne__(self, other):
|
146
|
+
"""Returns true if both objects are not equal"""
|
147
|
+
if not isinstance(other, KubernetesConfig):
|
148
|
+
return True
|
149
|
+
|
150
|
+
return self.to_dict() != other.to_dict()
|
@@ -18,7 +18,7 @@ import six
|
|
18
18
|
from openapi_client.configuration import Configuration
|
19
19
|
|
20
20
|
|
21
|
-
class
|
21
|
+
class NetworkingMode(object):
|
22
22
|
"""NOTE: This class is auto generated by OpenAPI Generator.
|
23
23
|
Ref: https://openapi-generator.tech
|
24
24
|
|
@@ -28,10 +28,10 @@ class MonitorLogsExtension(object):
|
|
28
28
|
"""
|
29
29
|
allowed enum values
|
30
30
|
"""
|
31
|
-
|
32
|
-
|
31
|
+
PUBLIC = "PUBLIC"
|
32
|
+
PRIVATE = "PRIVATE"
|
33
33
|
|
34
|
-
allowable_values = [
|
34
|
+
allowable_values = [PUBLIC, PRIVATE] # noqa: E501
|
35
35
|
|
36
36
|
"""
|
37
37
|
Attributes:
|
@@ -47,7 +47,7 @@ class MonitorLogsExtension(object):
|
|
47
47
|
}
|
48
48
|
|
49
49
|
def __init__(self, local_vars_configuration=None): # noqa: E501
|
50
|
-
"""
|
50
|
+
"""NetworkingMode - a model defined in OpenAPI""" # noqa: E501
|
51
51
|
if local_vars_configuration is None:
|
52
52
|
local_vars_configuration = Configuration()
|
53
53
|
self.local_vars_configuration = local_vars_configuration
|
@@ -87,14 +87,14 @@ class MonitorLogsExtension(object):
|
|
87
87
|
|
88
88
|
def __eq__(self, other):
|
89
89
|
"""Returns true if both objects are equal"""
|
90
|
-
if not isinstance(other,
|
90
|
+
if not isinstance(other, NetworkingMode):
|
91
91
|
return False
|
92
92
|
|
93
93
|
return self.to_dict() == other.to_dict()
|
94
94
|
|
95
95
|
def __ne__(self, other):
|
96
96
|
"""Returns true if both objects are not equal"""
|
97
|
-
if not isinstance(other,
|
97
|
+
if not isinstance(other, NetworkingMode):
|
98
98
|
return True
|
99
99
|
|
100
100
|
return self.to_dict() != other.to_dict()
|