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,397 @@
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 CloudDeployment(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
+ 'cloud_deployment_id': 'str',
37
+ 'provider': 'CloudProviders',
38
+ 'compute_stack': 'ComputeStack',
39
+ 'region': 'str',
40
+ 'networking_mode': 'NetworkingMode',
41
+ 'object_storage': 'ObjectStorage',
42
+ 'file_storage': 'FileStorage',
43
+ 'aws_config': 'AWSConfig',
44
+ 'gcp_config': 'GCPConfig',
45
+ 'pcp_config': 'PCPConfig',
46
+ 'kubernetes_config': 'KubernetesConfig'
47
+ }
48
+
49
+ attribute_map = {
50
+ 'cloud_deployment_id': 'cloud_deployment_id',
51
+ 'provider': 'provider',
52
+ 'compute_stack': 'compute_stack',
53
+ 'region': 'region',
54
+ 'networking_mode': 'networking_mode',
55
+ 'object_storage': 'object_storage',
56
+ 'file_storage': 'file_storage',
57
+ 'aws_config': 'aws_config',
58
+ 'gcp_config': 'gcp_config',
59
+ 'pcp_config': 'pcp_config',
60
+ 'kubernetes_config': 'kubernetes_config'
61
+ }
62
+
63
+ def __init__(self, cloud_deployment_id=None, provider=None, compute_stack=None, region=None, networking_mode=None, object_storage=None, file_storage=None, aws_config=None, gcp_config=None, pcp_config=None, kubernetes_config=None, local_vars_configuration=None): # noqa: E501
64
+ """CloudDeployment - 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._cloud_deployment_id = None
70
+ self._provider = None
71
+ self._compute_stack = None
72
+ self._region = None
73
+ self._networking_mode = None
74
+ self._object_storage = None
75
+ self._file_storage = None
76
+ self._aws_config = None
77
+ self._gcp_config = None
78
+ self._pcp_config = None
79
+ self._kubernetes_config = None
80
+ self.discriminator = None
81
+
82
+ if cloud_deployment_id is not None:
83
+ self.cloud_deployment_id = cloud_deployment_id
84
+ self.provider = provider
85
+ if compute_stack is not None:
86
+ self.compute_stack = compute_stack
87
+ if region is not None:
88
+ self.region = region
89
+ if networking_mode is not None:
90
+ self.networking_mode = networking_mode
91
+ self.object_storage = object_storage
92
+ self.file_storage = file_storage
93
+ self.aws_config = aws_config
94
+ self.gcp_config = gcp_config
95
+ self.pcp_config = pcp_config
96
+ self.kubernetes_config = kubernetes_config
97
+
98
+ @property
99
+ def cloud_deployment_id(self):
100
+ """Gets the cloud_deployment_id of this CloudDeployment. # noqa: E501
101
+
102
+ Unique identifier for this deployment. # noqa: E501
103
+
104
+ :return: The cloud_deployment_id of this CloudDeployment. # noqa: E501
105
+ :rtype: str
106
+ """
107
+ return self._cloud_deployment_id
108
+
109
+ @cloud_deployment_id.setter
110
+ def cloud_deployment_id(self, cloud_deployment_id):
111
+ """Sets the cloud_deployment_id of this CloudDeployment.
112
+
113
+ Unique identifier for this deployment. # noqa: E501
114
+
115
+ :param cloud_deployment_id: The cloud_deployment_id of this CloudDeployment. # noqa: E501
116
+ :type: str
117
+ """
118
+
119
+ self._cloud_deployment_id = cloud_deployment_id
120
+
121
+ @property
122
+ def provider(self):
123
+ """Gets the provider of this CloudDeployment. # noqa: E501
124
+
125
+ The cloud provider type (AWS, GCP, PCP, or GENERIC). # noqa: E501
126
+
127
+ :return: The provider of this CloudDeployment. # noqa: E501
128
+ :rtype: CloudProviders
129
+ """
130
+ return self._provider
131
+
132
+ @provider.setter
133
+ def provider(self, provider):
134
+ """Sets the provider of this CloudDeployment.
135
+
136
+ The cloud provider type (AWS, GCP, PCP, or GENERIC). # noqa: E501
137
+
138
+ :param provider: The provider of this CloudDeployment. # noqa: E501
139
+ :type: CloudProviders
140
+ """
141
+ if self.local_vars_configuration.client_side_validation and provider is None: # noqa: E501
142
+ raise ValueError("Invalid value for `provider`, must not be `None`") # noqa: E501
143
+
144
+ self._provider = provider
145
+
146
+ @property
147
+ def compute_stack(self):
148
+ """Gets the compute_stack of this CloudDeployment. # noqa: E501
149
+
150
+ The compute stack (VM or K8S). # noqa: E501
151
+
152
+ :return: The compute_stack of this CloudDeployment. # noqa: E501
153
+ :rtype: ComputeStack
154
+ """
155
+ return self._compute_stack
156
+
157
+ @compute_stack.setter
158
+ def compute_stack(self, compute_stack):
159
+ """Sets the compute_stack of this CloudDeployment.
160
+
161
+ The compute stack (VM or K8S). # noqa: E501
162
+
163
+ :param compute_stack: The compute_stack of this CloudDeployment. # noqa: E501
164
+ :type: ComputeStack
165
+ """
166
+
167
+ self._compute_stack = compute_stack
168
+
169
+ @property
170
+ def region(self):
171
+ """Gets the region of this CloudDeployment. # noqa: E501
172
+
173
+ The region for the deployment (e.g., us-west-2). # noqa: E501
174
+
175
+ :return: The region of this CloudDeployment. # noqa: E501
176
+ :rtype: str
177
+ """
178
+ return self._region
179
+
180
+ @region.setter
181
+ def region(self, region):
182
+ """Sets the region of this CloudDeployment.
183
+
184
+ The region for the deployment (e.g., us-west-2). # noqa: E501
185
+
186
+ :param region: The region of this CloudDeployment. # noqa: E501
187
+ :type: str
188
+ """
189
+
190
+ self._region = region
191
+
192
+ @property
193
+ def networking_mode(self):
194
+ """Gets the networking_mode of this CloudDeployment. # noqa: E501
195
+
196
+ Whether to use public or private networking. # noqa: E501
197
+
198
+ :return: The networking_mode of this CloudDeployment. # noqa: E501
199
+ :rtype: NetworkingMode
200
+ """
201
+ return self._networking_mode
202
+
203
+ @networking_mode.setter
204
+ def networking_mode(self, networking_mode):
205
+ """Sets the networking_mode of this CloudDeployment.
206
+
207
+ Whether to use public or private networking. # noqa: E501
208
+
209
+ :param networking_mode: The networking_mode of this CloudDeployment. # noqa: E501
210
+ :type: NetworkingMode
211
+ """
212
+
213
+ self._networking_mode = networking_mode
214
+
215
+ @property
216
+ def object_storage(self):
217
+ """Gets the object_storage of this CloudDeployment. # noqa: E501
218
+
219
+ Object storage configuration. # noqa: E501
220
+
221
+ :return: The object_storage of this CloudDeployment. # noqa: E501
222
+ :rtype: ObjectStorage
223
+ """
224
+ return self._object_storage
225
+
226
+ @object_storage.setter
227
+ def object_storage(self, object_storage):
228
+ """Sets the object_storage of this CloudDeployment.
229
+
230
+ Object storage configuration. # noqa: E501
231
+
232
+ :param object_storage: The object_storage of this CloudDeployment. # noqa: E501
233
+ :type: ObjectStorage
234
+ """
235
+
236
+ self._object_storage = object_storage
237
+
238
+ @property
239
+ def file_storage(self):
240
+ """Gets the file_storage of this CloudDeployment. # noqa: E501
241
+
242
+ File storage configuration. # noqa: E501
243
+
244
+ :return: The file_storage of this CloudDeployment. # noqa: E501
245
+ :rtype: FileStorage
246
+ """
247
+ return self._file_storage
248
+
249
+ @file_storage.setter
250
+ def file_storage(self, file_storage):
251
+ """Sets the file_storage of this CloudDeployment.
252
+
253
+ File storage configuration. # noqa: E501
254
+
255
+ :param file_storage: The file_storage of this CloudDeployment. # noqa: E501
256
+ :type: FileStorage
257
+ """
258
+
259
+ self._file_storage = file_storage
260
+
261
+ @property
262
+ def aws_config(self):
263
+ """Gets the aws_config of this CloudDeployment. # noqa: E501
264
+
265
+ AWS provider-specific configurations. # noqa: E501
266
+
267
+ :return: The aws_config of this CloudDeployment. # noqa: E501
268
+ :rtype: AWSConfig
269
+ """
270
+ return self._aws_config
271
+
272
+ @aws_config.setter
273
+ def aws_config(self, aws_config):
274
+ """Sets the aws_config of this CloudDeployment.
275
+
276
+ AWS provider-specific configurations. # noqa: E501
277
+
278
+ :param aws_config: The aws_config of this CloudDeployment. # noqa: E501
279
+ :type: AWSConfig
280
+ """
281
+
282
+ self._aws_config = aws_config
283
+
284
+ @property
285
+ def gcp_config(self):
286
+ """Gets the gcp_config of this CloudDeployment. # noqa: E501
287
+
288
+ GCP provider-specific configurations. # noqa: E501
289
+
290
+ :return: The gcp_config of this CloudDeployment. # noqa: E501
291
+ :rtype: GCPConfig
292
+ """
293
+ return self._gcp_config
294
+
295
+ @gcp_config.setter
296
+ def gcp_config(self, gcp_config):
297
+ """Sets the gcp_config of this CloudDeployment.
298
+
299
+ GCP provider-specific configurations. # noqa: E501
300
+
301
+ :param gcp_config: The gcp_config of this CloudDeployment. # noqa: E501
302
+ :type: GCPConfig
303
+ """
304
+
305
+ self._gcp_config = gcp_config
306
+
307
+ @property
308
+ def pcp_config(self):
309
+ """Gets the pcp_config of this CloudDeployment. # noqa: E501
310
+
311
+ Machine pool configurations. # noqa: E501
312
+
313
+ :return: The pcp_config of this CloudDeployment. # noqa: E501
314
+ :rtype: PCPConfig
315
+ """
316
+ return self._pcp_config
317
+
318
+ @pcp_config.setter
319
+ def pcp_config(self, pcp_config):
320
+ """Sets the pcp_config of this CloudDeployment.
321
+
322
+ Machine pool configurations. # noqa: E501
323
+
324
+ :param pcp_config: The pcp_config of this CloudDeployment. # noqa: E501
325
+ :type: PCPConfig
326
+ """
327
+
328
+ self._pcp_config = pcp_config
329
+
330
+ @property
331
+ def kubernetes_config(self):
332
+ """Gets the kubernetes_config of this CloudDeployment. # noqa: E501
333
+
334
+ Kubernetes stack configurations. # noqa: E501
335
+
336
+ :return: The kubernetes_config of this CloudDeployment. # noqa: E501
337
+ :rtype: KubernetesConfig
338
+ """
339
+ return self._kubernetes_config
340
+
341
+ @kubernetes_config.setter
342
+ def kubernetes_config(self, kubernetes_config):
343
+ """Sets the kubernetes_config of this CloudDeployment.
344
+
345
+ Kubernetes stack configurations. # noqa: E501
346
+
347
+ :param kubernetes_config: The kubernetes_config of this CloudDeployment. # noqa: E501
348
+ :type: KubernetesConfig
349
+ """
350
+
351
+ self._kubernetes_config = kubernetes_config
352
+
353
+ def to_dict(self):
354
+ """Returns the model properties as a dict"""
355
+ result = {}
356
+
357
+ for attr, _ in six.iteritems(self.openapi_types):
358
+ value = getattr(self, attr)
359
+ if isinstance(value, list):
360
+ result[attr] = list(map(
361
+ lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
362
+ value
363
+ ))
364
+ elif hasattr(value, "to_dict"):
365
+ result[attr] = value.to_dict()
366
+ elif isinstance(value, dict):
367
+ result[attr] = dict(map(
368
+ lambda item: (item[0], item[1].to_dict())
369
+ if hasattr(item[1], "to_dict") else item,
370
+ value.items()
371
+ ))
372
+ else:
373
+ result[attr] = value
374
+
375
+ return result
376
+
377
+ def to_str(self):
378
+ """Returns the string representation of the model"""
379
+ return pprint.pformat(self.to_dict())
380
+
381
+ def __repr__(self):
382
+ """For `print` and `pprint`"""
383
+ return self.to_str()
384
+
385
+ def __eq__(self, other):
386
+ """Returns true if both objects are equal"""
387
+ if not isinstance(other, CloudDeployment):
388
+ return False
389
+
390
+ return self.to_dict() == other.to_dict()
391
+
392
+ def __ne__(self, other):
393
+ """Returns true if both objects are not equal"""
394
+ if not isinstance(other, CloudDeployment):
395
+ return True
396
+
397
+ return self.to_dict() != other.to_dict()
@@ -0,0 +1,147 @@
1
+ # coding: utf-8
2
+
3
+ """
4
+ Managed Ray API
5
+
6
+ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
7
+
8
+ The version of the OpenAPI document: 0.1.0
9
+ Generated by: https://openapi-generator.tech
10
+ """
11
+
12
+
13
+ import pprint
14
+ import re # noqa: F401
15
+
16
+ import six
17
+
18
+ from openapi_client.configuration import Configuration
19
+
20
+
21
+ class ClouddeploymentListResponse(object):
22
+ """NOTE: This class is auto generated by OpenAPI Generator.
23
+ Ref: https://openapi-generator.tech
24
+
25
+ Do not edit the class manually.
26
+ """
27
+
28
+ """
29
+ Attributes:
30
+ openapi_types (dict): The key is attribute name
31
+ and the value is attribute type.
32
+ attribute_map (dict): The key is attribute name
33
+ and the value is json key in definition.
34
+ """
35
+ openapi_types = {
36
+ 'results': 'list[CloudDeployment]',
37
+ 'metadata': 'ListResponseMetadata'
38
+ }
39
+
40
+ attribute_map = {
41
+ 'results': 'results',
42
+ 'metadata': 'metadata'
43
+ }
44
+
45
+ def __init__(self, results=None, metadata=None, local_vars_configuration=None): # noqa: E501
46
+ """ClouddeploymentListResponse - a model defined in OpenAPI""" # noqa: E501
47
+ if local_vars_configuration is None:
48
+ local_vars_configuration = Configuration()
49
+ self.local_vars_configuration = local_vars_configuration
50
+
51
+ self._results = None
52
+ self._metadata = None
53
+ self.discriminator = None
54
+
55
+ self.results = results
56
+ if metadata is not None:
57
+ self.metadata = metadata
58
+
59
+ @property
60
+ def results(self):
61
+ """Gets the results of this ClouddeploymentListResponse. # noqa: E501
62
+
63
+
64
+ :return: The results of this ClouddeploymentListResponse. # noqa: E501
65
+ :rtype: list[CloudDeployment]
66
+ """
67
+ return self._results
68
+
69
+ @results.setter
70
+ def results(self, results):
71
+ """Sets the results of this ClouddeploymentListResponse.
72
+
73
+
74
+ :param results: The results of this ClouddeploymentListResponse. # noqa: E501
75
+ :type: list[CloudDeployment]
76
+ """
77
+ if self.local_vars_configuration.client_side_validation and results is None: # noqa: E501
78
+ raise ValueError("Invalid value for `results`, must not be `None`") # noqa: E501
79
+
80
+ self._results = results
81
+
82
+ @property
83
+ def metadata(self):
84
+ """Gets the metadata of this ClouddeploymentListResponse. # noqa: E501
85
+
86
+
87
+ :return: The metadata of this ClouddeploymentListResponse. # noqa: E501
88
+ :rtype: ListResponseMetadata
89
+ """
90
+ return self._metadata
91
+
92
+ @metadata.setter
93
+ def metadata(self, metadata):
94
+ """Sets the metadata of this ClouddeploymentListResponse.
95
+
96
+
97
+ :param metadata: The metadata of this ClouddeploymentListResponse. # noqa: E501
98
+ :type: ListResponseMetadata
99
+ """
100
+
101
+ self._metadata = metadata
102
+
103
+ def to_dict(self):
104
+ """Returns the model properties as a dict"""
105
+ result = {}
106
+
107
+ for attr, _ in six.iteritems(self.openapi_types):
108
+ value = getattr(self, attr)
109
+ if isinstance(value, list):
110
+ result[attr] = list(map(
111
+ lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
112
+ value
113
+ ))
114
+ elif hasattr(value, "to_dict"):
115
+ result[attr] = value.to_dict()
116
+ elif isinstance(value, dict):
117
+ result[attr] = dict(map(
118
+ lambda item: (item[0], item[1].to_dict())
119
+ if hasattr(item[1], "to_dict") else item,
120
+ value.items()
121
+ ))
122
+ else:
123
+ result[attr] = value
124
+
125
+ return result
126
+
127
+ def to_str(self):
128
+ """Returns the string representation of the model"""
129
+ return pprint.pformat(self.to_dict())
130
+
131
+ def __repr__(self):
132
+ """For `print` and `pprint`"""
133
+ return self.to_str()
134
+
135
+ def __eq__(self, other):
136
+ """Returns true if both objects are equal"""
137
+ if not isinstance(other, ClouddeploymentListResponse):
138
+ return False
139
+
140
+ return self.to_dict() == other.to_dict()
141
+
142
+ def __ne__(self, other):
143
+ """Returns true if both objects are not equal"""
144
+ if not isinstance(other, ClouddeploymentListResponse):
145
+ return True
146
+
147
+ return self.to_dict() != other.to_dict()