anyscale 0.26.18__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.
Files changed (31) hide show
  1. anyscale/_private/docgen/models.md +2 -2
  2. anyscale/client/README.md +12 -0
  3. anyscale/client/openapi_client/__init__.py +11 -0
  4. anyscale/client/openapi_client/api/default_api.py +115 -3
  5. anyscale/client/openapi_client/models/__init__.py +11 -0
  6. anyscale/client/openapi_client/models/aws_config.py +402 -0
  7. anyscale/client/openapi_client/models/baseimagesenum.py +68 -1
  8. anyscale/client/openapi_client/models/cloud_deployment.py +397 -0
  9. anyscale/client/openapi_client/models/clouddeployment_list_response.py +147 -0
  10. anyscale/client/openapi_client/models/file_storage.py +206 -0
  11. anyscale/client/openapi_client/models/gcp_config.py +402 -0
  12. anyscale/client/openapi_client/models/kubernetes_config.py +150 -0
  13. anyscale/client/openapi_client/models/networking_mode.py +100 -0
  14. anyscale/client/openapi_client/models/object_storage.py +178 -0
  15. anyscale/client/openapi_client/models/pcp_config.py +122 -0
  16. anyscale/client/openapi_client/models/supportedbaseimagesenum.py +68 -1
  17. anyscale/client/openapi_client/models/workspace_template_readme.py +181 -0
  18. anyscale/client/openapi_client/models/workspacetemplatereadme_response.py +121 -0
  19. anyscale/commands/cloud_commands.py +23 -3
  20. anyscale/controllers/cloud_controller.py +37 -0
  21. anyscale/sdk/anyscale_client/models/baseimagesenum.py +68 -1
  22. anyscale/sdk/anyscale_client/models/supportedbaseimagesenum.py +68 -1
  23. anyscale/shared_anyscale_utils/latest_ray_version.py +1 -1
  24. anyscale/version.py +1 -1
  25. {anyscale-0.26.18.dist-info → anyscale-0.26.19.dist-info}/METADATA +1 -1
  26. {anyscale-0.26.18.dist-info → anyscale-0.26.19.dist-info}/RECORD +31 -20
  27. {anyscale-0.26.18.dist-info → anyscale-0.26.19.dist-info}/LICENSE +0 -0
  28. {anyscale-0.26.18.dist-info → anyscale-0.26.19.dist-info}/NOTICE +0 -0
  29. {anyscale-0.26.18.dist-info → anyscale-0.26.19.dist-info}/WHEEL +0 -0
  30. {anyscale-0.26.18.dist-info → anyscale-0.26.19.dist-info}/entry_points.txt +0 -0
  31. {anyscale-0.26.18.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 AWSConfig(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
+ 'vpc_id': 'str',
37
+ 'subnet_ids': 'list[str]',
38
+ 'zones': 'list[str]',
39
+ 'security_group_ids': 'list[str]',
40
+ 'anyscale_iam_role_id': 'str',
41
+ 'external_id': 'str',
42
+ 'cluster_iam_role_id': 'str',
43
+ 'memorydb_cluster_name': 'str',
44
+ 'memorydb_cluster_arn': 'str',
45
+ 'memorydb_cluster_endpoint': 'str',
46
+ 'cloudformation_id': 'str'
47
+ }
48
+
49
+ attribute_map = {
50
+ 'vpc_id': 'vpc_id',
51
+ 'subnet_ids': 'subnet_ids',
52
+ 'zones': 'zones',
53
+ 'security_group_ids': 'security_group_ids',
54
+ 'anyscale_iam_role_id': 'anyscale_iam_role_id',
55
+ 'external_id': 'external_id',
56
+ 'cluster_iam_role_id': 'cluster_iam_role_id',
57
+ 'memorydb_cluster_name': 'memorydb_cluster_name',
58
+ 'memorydb_cluster_arn': 'memorydb_cluster_arn',
59
+ 'memorydb_cluster_endpoint': 'memorydb_cluster_endpoint',
60
+ 'cloudformation_id': 'cloudformation_id'
61
+ }
62
+
63
+ def __init__(self, vpc_id=None, subnet_ids=None, zones=None, security_group_ids=None, anyscale_iam_role_id=None, external_id=None, cluster_iam_role_id=None, memorydb_cluster_name=None, memorydb_cluster_arn=None, memorydb_cluster_endpoint=None, cloudformation_id=None, local_vars_configuration=None): # noqa: E501
64
+ """AWSConfig - 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._vpc_id = None
70
+ self._subnet_ids = None
71
+ self._zones = None
72
+ self._security_group_ids = None
73
+ self._anyscale_iam_role_id = None
74
+ self._external_id = None
75
+ self._cluster_iam_role_id = None
76
+ self._memorydb_cluster_name = None
77
+ self._memorydb_cluster_arn = None
78
+ self._memorydb_cluster_endpoint = None
79
+ self._cloudformation_id = None
80
+ self.discriminator = None
81
+
82
+ if vpc_id is not None:
83
+ self.vpc_id = vpc_id
84
+ if subnet_ids is not None:
85
+ self.subnet_ids = subnet_ids
86
+ if zones is not None:
87
+ self.zones = zones
88
+ if security_group_ids is not None:
89
+ self.security_group_ids = security_group_ids
90
+ if anyscale_iam_role_id is not None:
91
+ self.anyscale_iam_role_id = anyscale_iam_role_id
92
+ if external_id is not None:
93
+ self.external_id = external_id
94
+ if cluster_iam_role_id is not None:
95
+ self.cluster_iam_role_id = cluster_iam_role_id
96
+ if memorydb_cluster_name is not None:
97
+ self.memorydb_cluster_name = memorydb_cluster_name
98
+ if memorydb_cluster_arn is not None:
99
+ self.memorydb_cluster_arn = memorydb_cluster_arn
100
+ if memorydb_cluster_endpoint is not None:
101
+ self.memorydb_cluster_endpoint = memorydb_cluster_endpoint
102
+ if cloudformation_id is not None:
103
+ self.cloudformation_id = cloudformation_id
104
+
105
+ @property
106
+ def vpc_id(self):
107
+ """Gets the vpc_id of this AWSConfig. # noqa: E501
108
+
109
+ The VPC ID. # noqa: E501
110
+
111
+ :return: The vpc_id of this AWSConfig. # noqa: E501
112
+ :rtype: str
113
+ """
114
+ return self._vpc_id
115
+
116
+ @vpc_id.setter
117
+ def vpc_id(self, vpc_id):
118
+ """Sets the vpc_id of this AWSConfig.
119
+
120
+ The VPC ID. # noqa: E501
121
+
122
+ :param vpc_id: The vpc_id of this AWSConfig. # noqa: E501
123
+ :type: str
124
+ """
125
+
126
+ self._vpc_id = vpc_id
127
+
128
+ @property
129
+ def subnet_ids(self):
130
+ """Gets the subnet_ids of this AWSConfig. # noqa: E501
131
+
132
+ List of subnet IDs. # noqa: E501
133
+
134
+ :return: The subnet_ids of this AWSConfig. # noqa: E501
135
+ :rtype: list[str]
136
+ """
137
+ return self._subnet_ids
138
+
139
+ @subnet_ids.setter
140
+ def subnet_ids(self, subnet_ids):
141
+ """Sets the subnet_ids of this AWSConfig.
142
+
143
+ List of subnet IDs. # noqa: E501
144
+
145
+ :param subnet_ids: The subnet_ids of this AWSConfig. # noqa: E501
146
+ :type: list[str]
147
+ """
148
+
149
+ self._subnet_ids = subnet_ids
150
+
151
+ @property
152
+ def zones(self):
153
+ """Gets the zones of this AWSConfig. # noqa: E501
154
+
155
+ The availability zone corresponding to each subnet ID. # noqa: E501
156
+
157
+ :return: The zones of this AWSConfig. # noqa: E501
158
+ :rtype: list[str]
159
+ """
160
+ return self._zones
161
+
162
+ @zones.setter
163
+ def zones(self, zones):
164
+ """Sets the zones of this AWSConfig.
165
+
166
+ The availability zone corresponding to each subnet ID. # noqa: E501
167
+
168
+ :param zones: The zones of this AWSConfig. # noqa: E501
169
+ :type: list[str]
170
+ """
171
+
172
+ self._zones = zones
173
+
174
+ @property
175
+ def security_group_ids(self):
176
+ """Gets the security_group_ids of this AWSConfig. # noqa: E501
177
+
178
+ List of security group IDs. # noqa: E501
179
+
180
+ :return: The security_group_ids of this AWSConfig. # noqa: E501
181
+ :rtype: list[str]
182
+ """
183
+ return self._security_group_ids
184
+
185
+ @security_group_ids.setter
186
+ def security_group_ids(self, security_group_ids):
187
+ """Sets the security_group_ids of this AWSConfig.
188
+
189
+ List of security group IDs. # noqa: E501
190
+
191
+ :param security_group_ids: The security_group_ids of this AWSConfig. # noqa: E501
192
+ :type: list[str]
193
+ """
194
+
195
+ self._security_group_ids = security_group_ids
196
+
197
+ @property
198
+ def anyscale_iam_role_id(self):
199
+ """Gets the anyscale_iam_role_id of this AWSConfig. # noqa: E501
200
+
201
+ The Anyscale IAM role ARN. # noqa: E501
202
+
203
+ :return: The anyscale_iam_role_id of this AWSConfig. # noqa: E501
204
+ :rtype: str
205
+ """
206
+ return self._anyscale_iam_role_id
207
+
208
+ @anyscale_iam_role_id.setter
209
+ def anyscale_iam_role_id(self, anyscale_iam_role_id):
210
+ """Sets the anyscale_iam_role_id of this AWSConfig.
211
+
212
+ The Anyscale IAM role ARN. # noqa: E501
213
+
214
+ :param anyscale_iam_role_id: The anyscale_iam_role_id of this AWSConfig. # noqa: E501
215
+ :type: str
216
+ """
217
+
218
+ self._anyscale_iam_role_id = anyscale_iam_role_id
219
+
220
+ @property
221
+ def external_id(self):
222
+ """Gets the external_id of this AWSConfig. # noqa: E501
223
+
224
+ The trust policy external ID for the cross-account IAM role # noqa: E501
225
+
226
+ :return: The external_id of this AWSConfig. # noqa: E501
227
+ :rtype: str
228
+ """
229
+ return self._external_id
230
+
231
+ @external_id.setter
232
+ def external_id(self, external_id):
233
+ """Sets the external_id of this AWSConfig.
234
+
235
+ The trust policy external ID for the cross-account IAM role # noqa: E501
236
+
237
+ :param external_id: The external_id of this AWSConfig. # noqa: E501
238
+ :type: str
239
+ """
240
+
241
+ self._external_id = external_id
242
+
243
+ @property
244
+ def cluster_iam_role_id(self):
245
+ """Gets the cluster_iam_role_id of this AWSConfig. # noqa: E501
246
+
247
+ The IAM role ARN used by Ray clusters. # noqa: E501
248
+
249
+ :return: The cluster_iam_role_id of this AWSConfig. # noqa: E501
250
+ :rtype: str
251
+ """
252
+ return self._cluster_iam_role_id
253
+
254
+ @cluster_iam_role_id.setter
255
+ def cluster_iam_role_id(self, cluster_iam_role_id):
256
+ """Sets the cluster_iam_role_id of this AWSConfig.
257
+
258
+ The IAM role ARN used by Ray clusters. # noqa: E501
259
+
260
+ :param cluster_iam_role_id: The cluster_iam_role_id of this AWSConfig. # noqa: E501
261
+ :type: str
262
+ """
263
+
264
+ self._cluster_iam_role_id = cluster_iam_role_id
265
+
266
+ @property
267
+ def memorydb_cluster_name(self):
268
+ """Gets the memorydb_cluster_name of this AWSConfig. # noqa: E501
269
+
270
+ The MemoryDB cluster name. # noqa: E501
271
+
272
+ :return: The memorydb_cluster_name of this AWSConfig. # noqa: E501
273
+ :rtype: str
274
+ """
275
+ return self._memorydb_cluster_name
276
+
277
+ @memorydb_cluster_name.setter
278
+ def memorydb_cluster_name(self, memorydb_cluster_name):
279
+ """Sets the memorydb_cluster_name of this AWSConfig.
280
+
281
+ The MemoryDB cluster name. # noqa: E501
282
+
283
+ :param memorydb_cluster_name: The memorydb_cluster_name of this AWSConfig. # noqa: E501
284
+ :type: str
285
+ """
286
+
287
+ self._memorydb_cluster_name = memorydb_cluster_name
288
+
289
+ @property
290
+ def memorydb_cluster_arn(self):
291
+ """Gets the memorydb_cluster_arn of this AWSConfig. # noqa: E501
292
+
293
+ The MemoryDB cluster ARN. # noqa: E501
294
+
295
+ :return: The memorydb_cluster_arn of this AWSConfig. # noqa: E501
296
+ :rtype: str
297
+ """
298
+ return self._memorydb_cluster_arn
299
+
300
+ @memorydb_cluster_arn.setter
301
+ def memorydb_cluster_arn(self, memorydb_cluster_arn):
302
+ """Sets the memorydb_cluster_arn of this AWSConfig.
303
+
304
+ The MemoryDB cluster ARN. # noqa: E501
305
+
306
+ :param memorydb_cluster_arn: The memorydb_cluster_arn of this AWSConfig. # noqa: E501
307
+ :type: str
308
+ """
309
+
310
+ self._memorydb_cluster_arn = memorydb_cluster_arn
311
+
312
+ @property
313
+ def memorydb_cluster_endpoint(self):
314
+ """Gets the memorydb_cluster_endpoint of this AWSConfig. # noqa: E501
315
+
316
+ The MemoryDB cluster endpoint. # noqa: E501
317
+
318
+ :return: The memorydb_cluster_endpoint of this AWSConfig. # noqa: E501
319
+ :rtype: str
320
+ """
321
+ return self._memorydb_cluster_endpoint
322
+
323
+ @memorydb_cluster_endpoint.setter
324
+ def memorydb_cluster_endpoint(self, memorydb_cluster_endpoint):
325
+ """Sets the memorydb_cluster_endpoint of this AWSConfig.
326
+
327
+ The MemoryDB cluster endpoint. # noqa: E501
328
+
329
+ :param memorydb_cluster_endpoint: The memorydb_cluster_endpoint of this AWSConfig. # noqa: E501
330
+ :type: str
331
+ """
332
+
333
+ self._memorydb_cluster_endpoint = memorydb_cluster_endpoint
334
+
335
+ @property
336
+ def cloudformation_id(self):
337
+ """Gets the cloudformation_id of this AWSConfig. # noqa: E501
338
+
339
+ The CloudFormation stack ID, for deployments with Anyscale-managed resources. # noqa: E501
340
+
341
+ :return: The cloudformation_id of this AWSConfig. # noqa: E501
342
+ :rtype: str
343
+ """
344
+ return self._cloudformation_id
345
+
346
+ @cloudformation_id.setter
347
+ def cloudformation_id(self, cloudformation_id):
348
+ """Sets the cloudformation_id of this AWSConfig.
349
+
350
+ The CloudFormation stack ID, for deployments with Anyscale-managed resources. # noqa: E501
351
+
352
+ :param cloudformation_id: The cloudformation_id of this AWSConfig. # noqa: E501
353
+ :type: str
354
+ """
355
+
356
+ self._cloudformation_id = cloudformation_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, AWSConfig):
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, AWSConfig):
400
+ return True
401
+
402
+ return self.to_dict() != other.to_dict()