anyscale 0.26.11__py3-none-any.whl → 0.26.13__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 (33) hide show
  1. anyscale/_private/docgen/__main__.py +0 -3
  2. anyscale/_private/docgen/api.md +0 -14
  3. anyscale/_private/docgen/models.md +2 -47
  4. anyscale/client/README.md +6 -7
  5. anyscale/client/openapi_client/__init__.py +4 -5
  6. anyscale/client/openapi_client/api/default_api.py +236 -233
  7. anyscale/client/openapi_client/models/__init__.py +4 -5
  8. anyscale/client/openapi_client/models/baseimagesenum.py +22 -1
  9. anyscale/client/openapi_client/models/dataset_dag.py +229 -0
  10. anyscale/client/openapi_client/models/{decoratedruntimeenv_response.py → dataset_dag_response.py} +22 -22
  11. anyscale/client/openapi_client/models/{operator_metric_id.py → operator_branch.py} +26 -26
  12. anyscale/client/openapi_client/models/{cluster_size.py → operator_id.py} +34 -16
  13. anyscale/client/openapi_client/models/operator_metrics.py +3 -30
  14. anyscale/client/openapi_client/models/organization_marketing_questions.py +15 -41
  15. anyscale/client/openapi_client/models/supportedbaseimagesenum.py +13 -13
  16. anyscale/sdk/anyscale_client/__init__.py +0 -3
  17. anyscale/sdk/anyscale_client/api/default_api.py +0 -232
  18. anyscale/sdk/anyscale_client/models/__init__.py +0 -3
  19. anyscale/sdk/anyscale_client/models/baseimagesenum.py +22 -1
  20. anyscale/sdk/anyscale_client/models/supportedbaseimagesenum.py +13 -13
  21. anyscale/version.py +1 -1
  22. {anyscale-0.26.11.dist-info → anyscale-0.26.13.dist-info}/METADATA +1 -1
  23. {anyscale-0.26.11.dist-info → anyscale-0.26.13.dist-info}/RECORD +28 -32
  24. anyscale/client/openapi_client/models/decorated_runtime_env.py +0 -488
  25. anyscale/client/openapi_client/models/decoratedruntimeenv_list_response.py +0 -147
  26. anyscale/sdk/anyscale_client/models/create_session.py +0 -432
  27. anyscale/sdk/anyscale_client/models/runtime_environment.py +0 -406
  28. anyscale/sdk/anyscale_client/models/runtimeenvironment_response.py +0 -121
  29. {anyscale-0.26.11.dist-info → anyscale-0.26.13.dist-info}/LICENSE +0 -0
  30. {anyscale-0.26.11.dist-info → anyscale-0.26.13.dist-info}/NOTICE +0 -0
  31. {anyscale-0.26.11.dist-info → anyscale-0.26.13.dist-info}/WHEEL +0 -0
  32. {anyscale-0.26.11.dist-info → anyscale-0.26.13.dist-info}/entry_points.txt +0 -0
  33. {anyscale-0.26.11.dist-info → anyscale-0.26.13.dist-info}/top_level.txt +0 -0
@@ -1,432 +0,0 @@
1
- # coding: utf-8
2
-
3
- """
4
- Anyscale 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 anyscale_client.configuration import Configuration
19
-
20
-
21
- class CreateSession(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
- 'project_id': 'str',
38
- 'cloud_id': 'str',
39
- 'cluster_config': 'str',
40
- 'build_id': 'str',
41
- 'compute_template_id': 'str',
42
- 'idle_timeout': 'int',
43
- 'uses_app_config': 'bool',
44
- 'allow_public_internet_traffic': 'bool',
45
- 'user_service_access': 'UserServiceAccessTypes',
46
- 'user_service_token': 'str',
47
- 'ha_job_id': 'str'
48
- }
49
-
50
- attribute_map = {
51
- 'name': 'name',
52
- 'project_id': 'project_id',
53
- 'cloud_id': 'cloud_id',
54
- 'cluster_config': 'cluster_config',
55
- 'build_id': 'build_id',
56
- 'compute_template_id': 'compute_template_id',
57
- 'idle_timeout': 'idle_timeout',
58
- 'uses_app_config': 'uses_app_config',
59
- 'allow_public_internet_traffic': 'allow_public_internet_traffic',
60
- 'user_service_access': 'user_service_access',
61
- 'user_service_token': 'user_service_token',
62
- 'ha_job_id': 'ha_job_id'
63
- }
64
-
65
- def __init__(self, name=None, project_id=None, cloud_id=None, cluster_config=None, build_id=None, compute_template_id=None, idle_timeout=None, uses_app_config=False, allow_public_internet_traffic=False, user_service_access=None, user_service_token=None, ha_job_id=None, local_vars_configuration=None): # noqa: E501
66
- """CreateSession - a model defined in OpenAPI""" # noqa: E501
67
- if local_vars_configuration is None:
68
- local_vars_configuration = Configuration()
69
- self.local_vars_configuration = local_vars_configuration
70
-
71
- self._name = None
72
- self._project_id = None
73
- self._cloud_id = None
74
- self._cluster_config = None
75
- self._build_id = None
76
- self._compute_template_id = None
77
- self._idle_timeout = None
78
- self._uses_app_config = None
79
- self._allow_public_internet_traffic = None
80
- self._user_service_access = None
81
- self._user_service_token = None
82
- self._ha_job_id = None
83
- self.discriminator = None
84
-
85
- self.name = name
86
- self.project_id = project_id
87
- if cloud_id is not None:
88
- self.cloud_id = cloud_id
89
- if cluster_config is not None:
90
- self.cluster_config = cluster_config
91
- if build_id is not None:
92
- self.build_id = build_id
93
- if compute_template_id is not None:
94
- self.compute_template_id = compute_template_id
95
- if idle_timeout is not None:
96
- self.idle_timeout = idle_timeout
97
- if uses_app_config is not None:
98
- self.uses_app_config = uses_app_config
99
- if allow_public_internet_traffic is not None:
100
- self.allow_public_internet_traffic = allow_public_internet_traffic
101
- if user_service_access is not None:
102
- self.user_service_access = user_service_access
103
- if user_service_token is not None:
104
- self.user_service_token = user_service_token
105
- if ha_job_id is not None:
106
- self.ha_job_id = ha_job_id
107
-
108
- @property
109
- def name(self):
110
- """Gets the name of this CreateSession. # noqa: E501
111
-
112
- Name of the session to be created. # noqa: E501
113
-
114
- :return: The name of this CreateSession. # noqa: E501
115
- :rtype: str
116
- """
117
- return self._name
118
-
119
- @name.setter
120
- def name(self, name):
121
- """Sets the name of this CreateSession.
122
-
123
- Name of the session to be created. # noqa: E501
124
-
125
- :param name: The name of this CreateSession. # noqa: E501
126
- :type: str
127
- """
128
- if self.local_vars_configuration.client_side_validation and name is None: # noqa: E501
129
- raise ValueError("Invalid value for `name`, must not be `None`") # noqa: E501
130
-
131
- self._name = name
132
-
133
- @property
134
- def project_id(self):
135
- """Gets the project_id of this CreateSession. # noqa: E501
136
-
137
- Project that the session will be created in. # noqa: E501
138
-
139
- :return: The project_id of this CreateSession. # noqa: E501
140
- :rtype: str
141
- """
142
- return self._project_id
143
-
144
- @project_id.setter
145
- def project_id(self, project_id):
146
- """Sets the project_id of this CreateSession.
147
-
148
- Project that the session will be created in. # noqa: E501
149
-
150
- :param project_id: The project_id of this CreateSession. # noqa: E501
151
- :type: str
152
- """
153
- if self.local_vars_configuration.client_side_validation and project_id is None: # noqa: E501
154
- raise ValueError("Invalid value for `project_id`, must not be `None`") # noqa: E501
155
-
156
- self._project_id = project_id
157
-
158
- @property
159
- def cloud_id(self):
160
- """Gets the cloud_id of this CreateSession. # noqa: E501
161
-
162
- Cloud that the session will use. # noqa: E501
163
-
164
- :return: The cloud_id of this CreateSession. # noqa: E501
165
- :rtype: str
166
- """
167
- return self._cloud_id
168
-
169
- @cloud_id.setter
170
- def cloud_id(self, cloud_id):
171
- """Sets the cloud_id of this CreateSession.
172
-
173
- Cloud that the session will use. # noqa: E501
174
-
175
- :param cloud_id: The cloud_id of this CreateSession. # noqa: E501
176
- :type: str
177
- """
178
-
179
- self._cloud_id = cloud_id
180
-
181
- @property
182
- def cluster_config(self):
183
- """Gets the cluster_config of this CreateSession. # noqa: E501
184
-
185
- Cluster config that the session can later be started with. # noqa: E501
186
-
187
- :return: The cluster_config of this CreateSession. # noqa: E501
188
- :rtype: str
189
- """
190
- return self._cluster_config
191
-
192
- @cluster_config.setter
193
- def cluster_config(self, cluster_config):
194
- """Sets the cluster_config of this CreateSession.
195
-
196
- Cluster config that the session can later be started with. # noqa: E501
197
-
198
- :param cluster_config: The cluster_config of this CreateSession. # noqa: E501
199
- :type: str
200
- """
201
-
202
- self._cluster_config = cluster_config
203
-
204
- @property
205
- def build_id(self):
206
- """Gets the build_id of this CreateSession. # noqa: E501
207
-
208
- ID of the Build that this session was started with. # noqa: E501
209
-
210
- :return: The build_id of this CreateSession. # noqa: E501
211
- :rtype: str
212
- """
213
- return self._build_id
214
-
215
- @build_id.setter
216
- def build_id(self, build_id):
217
- """Sets the build_id of this CreateSession.
218
-
219
- ID of the Build that this session was started with. # noqa: E501
220
-
221
- :param build_id: The build_id of this CreateSession. # noqa: E501
222
- :type: str
223
- """
224
-
225
- self._build_id = build_id
226
-
227
- @property
228
- def compute_template_id(self):
229
- """Gets the compute_template_id of this CreateSession. # noqa: E501
230
-
231
- ID of the compute template that this session was started with. # noqa: E501
232
-
233
- :return: The compute_template_id of this CreateSession. # noqa: E501
234
- :rtype: str
235
- """
236
- return self._compute_template_id
237
-
238
- @compute_template_id.setter
239
- def compute_template_id(self, compute_template_id):
240
- """Sets the compute_template_id of this CreateSession.
241
-
242
- ID of the compute template that this session was started with. # noqa: E501
243
-
244
- :param compute_template_id: The compute_template_id of this CreateSession. # noqa: E501
245
- :type: str
246
- """
247
-
248
- self._compute_template_id = compute_template_id
249
-
250
- @property
251
- def idle_timeout(self):
252
- """Gets the idle_timeout of this CreateSession. # noqa: E501
253
-
254
- Idle timeout (in minutes), after which the session is stopped. Idle time is defined as the time during which a session is not running a user command (through 'anyscale exec' or the Web UI), and does not have an attached driver. Time spent running Jupyter commands, or commands run through ssh, is still considered 'idle'. # noqa: E501
255
-
256
- :return: The idle_timeout of this CreateSession. # noqa: E501
257
- :rtype: int
258
- """
259
- return self._idle_timeout
260
-
261
- @idle_timeout.setter
262
- def idle_timeout(self, idle_timeout):
263
- """Sets the idle_timeout of this CreateSession.
264
-
265
- Idle timeout (in minutes), after which the session is stopped. Idle time is defined as the time during which a session is not running a user command (through 'anyscale exec' or the Web UI), and does not have an attached driver. Time spent running Jupyter commands, or commands run through ssh, is still considered 'idle'. # noqa: E501
266
-
267
- :param idle_timeout: The idle_timeout of this CreateSession. # noqa: E501
268
- :type: int
269
- """
270
-
271
- self._idle_timeout = idle_timeout
272
-
273
- @property
274
- def uses_app_config(self):
275
- """Gets the uses_app_config of this CreateSession. # noqa: E501
276
-
277
- Whether or not the session uses app config. If true, it means this is not a legacy session started with cluster yaml. # noqa: E501
278
-
279
- :return: The uses_app_config of this CreateSession. # noqa: E501
280
- :rtype: bool
281
- """
282
- return self._uses_app_config
283
-
284
- @uses_app_config.setter
285
- def uses_app_config(self, uses_app_config):
286
- """Sets the uses_app_config of this CreateSession.
287
-
288
- Whether or not the session uses app config. If true, it means this is not a legacy session started with cluster yaml. # noqa: E501
289
-
290
- :param uses_app_config: The uses_app_config of this CreateSession. # noqa: E501
291
- :type: bool
292
- """
293
-
294
- self._uses_app_config = uses_app_config
295
-
296
- @property
297
- def allow_public_internet_traffic(self):
298
- """Gets the allow_public_internet_traffic of this CreateSession. # noqa: E501
299
-
300
- Whether public internet traffic can access Serve endpoints or if an authentication token is required. # noqa: E501
301
-
302
- :return: The allow_public_internet_traffic of this CreateSession. # noqa: E501
303
- :rtype: bool
304
- """
305
- return self._allow_public_internet_traffic
306
-
307
- @allow_public_internet_traffic.setter
308
- def allow_public_internet_traffic(self, allow_public_internet_traffic):
309
- """Sets the allow_public_internet_traffic of this CreateSession.
310
-
311
- Whether public internet traffic can access Serve endpoints or if an authentication token is required. # noqa: E501
312
-
313
- :param allow_public_internet_traffic: The allow_public_internet_traffic of this CreateSession. # noqa: E501
314
- :type: bool
315
- """
316
-
317
- self._allow_public_internet_traffic = allow_public_internet_traffic
318
-
319
- @property
320
- def user_service_access(self):
321
- """Gets the user_service_access of this CreateSession. # noqa: E501
322
-
323
- Whether user service can be accessed by public internet traffic. # noqa: E501
324
-
325
- :return: The user_service_access of this CreateSession. # noqa: E501
326
- :rtype: UserServiceAccessTypes
327
- """
328
- return self._user_service_access
329
-
330
- @user_service_access.setter
331
- def user_service_access(self, user_service_access):
332
- """Sets the user_service_access of this CreateSession.
333
-
334
- Whether user service can be accessed by public internet traffic. # noqa: E501
335
-
336
- :param user_service_access: The user_service_access of this CreateSession. # noqa: E501
337
- :type: UserServiceAccessTypes
338
- """
339
-
340
- self._user_service_access = user_service_access
341
-
342
- @property
343
- def user_service_token(self):
344
- """Gets the user_service_token of this CreateSession. # noqa: E501
345
-
346
- User service token that is used to authenticate access to public user services. This must be a valid 32 byte URL safe string and can be generated by calling `secrets.token_urlsafe(32))`. This is ignored if the user service has private access. If not specified for a public user service, a token is autogenerated. # noqa: E501
347
-
348
- :return: The user_service_token of this CreateSession. # noqa: E501
349
- :rtype: str
350
- """
351
- return self._user_service_token
352
-
353
- @user_service_token.setter
354
- def user_service_token(self, user_service_token):
355
- """Sets the user_service_token of this CreateSession.
356
-
357
- User service token that is used to authenticate access to public user services. This must be a valid 32 byte URL safe string and can be generated by calling `secrets.token_urlsafe(32))`. This is ignored if the user service has private access. If not specified for a public user service, a token is autogenerated. # noqa: E501
358
-
359
- :param user_service_token: The user_service_token of this CreateSession. # noqa: E501
360
- :type: str
361
- """
362
-
363
- self._user_service_token = user_service_token
364
-
365
- @property
366
- def ha_job_id(self):
367
- """Gets the ha_job_id of this CreateSession. # noqa: E501
368
-
369
- This is used internally by Anyscale to associate clusters to a job. It is set automatically and should *not* be used directly. # noqa: E501
370
-
371
- :return: The ha_job_id of this CreateSession. # noqa: E501
372
- :rtype: str
373
- """
374
- return self._ha_job_id
375
-
376
- @ha_job_id.setter
377
- def ha_job_id(self, ha_job_id):
378
- """Sets the ha_job_id of this CreateSession.
379
-
380
- This is used internally by Anyscale to associate clusters to a job. It is set automatically and should *not* be used directly. # noqa: E501
381
-
382
- :param ha_job_id: The ha_job_id of this CreateSession. # noqa: E501
383
- :type: str
384
- """
385
-
386
- self._ha_job_id = ha_job_id
387
-
388
- def to_dict(self):
389
- """Returns the model properties as a dict"""
390
- result = {}
391
-
392
- for attr, _ in six.iteritems(self.openapi_types):
393
- value = getattr(self, attr)
394
- if isinstance(value, list):
395
- result[attr] = list(map(
396
- lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
397
- value
398
- ))
399
- elif hasattr(value, "to_dict"):
400
- result[attr] = value.to_dict()
401
- elif isinstance(value, dict):
402
- result[attr] = dict(map(
403
- lambda item: (item[0], item[1].to_dict())
404
- if hasattr(item[1], "to_dict") else item,
405
- value.items()
406
- ))
407
- else:
408
- result[attr] = value
409
-
410
- return result
411
-
412
- def to_str(self):
413
- """Returns the string representation of the model"""
414
- return pprint.pformat(self.to_dict())
415
-
416
- def __repr__(self):
417
- """For `print` and `pprint`"""
418
- return self.to_str()
419
-
420
- def __eq__(self, other):
421
- """Returns true if both objects are equal"""
422
- if not isinstance(other, CreateSession):
423
- return False
424
-
425
- return self.to_dict() == other.to_dict()
426
-
427
- def __ne__(self, other):
428
- """Returns true if both objects are not equal"""
429
- if not isinstance(other, CreateSession):
430
- return True
431
-
432
- return self.to_dict() != other.to_dict()