anyscale 0.26.8__py3-none-any.whl → 0.26.10__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 (65) hide show
  1. anyscale/_private/anyscale_client/anyscale_client.py +17 -1
  2. anyscale/_private/anyscale_client/common.py +12 -2
  3. anyscale/_private/anyscale_client/fake_anyscale_client.py +20 -3
  4. anyscale/_private/docgen/__main__.py +4 -0
  5. anyscale/_private/docgen/models.md +11 -2
  6. anyscale/anyscale_halo/LICENSE +21 -0
  7. anyscale/anyscale_halo/README.md +1 -0
  8. anyscale/anyscale_halo/__init__.py +10 -0
  9. anyscale/anyscale_halo/_utils.py +148 -0
  10. anyscale/anyscale_halo/cursor.py +48 -0
  11. anyscale/anyscale_halo/halo.py +609 -0
  12. anyscale/anyscale_halo/halo_notebook.py +122 -0
  13. anyscale/cli_logger.py +1 -1
  14. anyscale/client/README.md +6 -37
  15. anyscale/client/openapi_client/__init__.py +4 -24
  16. anyscale/client/openapi_client/api/default_api.py +447 -1693
  17. anyscale/client/openapi_client/models/__init__.py +4 -24
  18. anyscale/client/openapi_client/models/baseimagesenum.py +69 -1
  19. anyscale/client/openapi_client/models/{job_status.py → cluster_state.py} +16 -13
  20. anyscale/client/openapi_client/models/describe_system_workload_response.py +226 -0
  21. anyscale/client/openapi_client/models/{decoratedjobsubmission_response.py → describesystemworkloadresponse_response.py} +11 -11
  22. anyscale/client/openapi_client/models/operator_metrics.py +54 -1
  23. anyscale/client/openapi_client/models/supportedbaseimagesenum.py +69 -1
  24. anyscale/client/openapi_client/models/{dismissal_type.py → system_workload_name.py} +6 -7
  25. anyscale/commands/command_examples.py +4 -0
  26. anyscale/commands/service_commands.py +62 -27
  27. anyscale/job/_private/job_sdk.py +1 -3
  28. anyscale/sdk/anyscale_client/__init__.py +1 -0
  29. anyscale/sdk/anyscale_client/models/__init__.py +1 -0
  30. anyscale/sdk/anyscale_client/models/baseimagesenum.py +69 -1
  31. anyscale/sdk/anyscale_client/models/cluster.py +60 -3
  32. anyscale/sdk/anyscale_client/models/supportedbaseimagesenum.py +69 -1
  33. anyscale/{client/openapi_client/models/visibility.py → sdk/anyscale_client/models/system_workload_name.py} +8 -9
  34. anyscale/service/__init__.py +19 -0
  35. anyscale/service/_private/service_sdk.py +26 -2
  36. anyscale/service/commands.py +48 -9
  37. anyscale/shared_anyscale_utils/latest_ray_version.py +1 -1
  38. anyscale/version.py +1 -1
  39. {anyscale-0.26.8.dist-info → anyscale-0.26.10.dist-info}/METADATA +5 -2
  40. {anyscale-0.26.8.dist-info → anyscale-0.26.10.dist-info}/RECORD +45 -57
  41. anyscale/client/openapi_client/models/card.py +0 -181
  42. anyscale/client/openapi_client/models/card_id.py +0 -108
  43. anyscale/client/openapi_client/models/card_list_response.py +0 -147
  44. anyscale/client/openapi_client/models/cluster_features.py +0 -152
  45. anyscale/client/openapi_client/models/clusterfeatures_response.py +0 -121
  46. anyscale/client/openapi_client/models/decorated_job_submission.py +0 -547
  47. anyscale/client/openapi_client/models/decoratedjobsubmission_list_response.py +0 -147
  48. anyscale/client/openapi_client/models/feature_compatibility.py +0 -152
  49. anyscale/client/openapi_client/models/interactive_session_logs.py +0 -152
  50. anyscale/client/openapi_client/models/interactivesessionlogs_response.py +0 -121
  51. anyscale/client/openapi_client/models/job_submissions_sort_field.py +0 -101
  52. anyscale/client/openapi_client/models/jobs_logs.py +0 -152
  53. anyscale/client/openapi_client/models/jobs_logs_query_info.py +0 -181
  54. anyscale/client/openapi_client/models/jobslogs_response.py +0 -121
  55. anyscale/client/openapi_client/models/jobslogsqueryinfo_response.py +0 -121
  56. anyscale/client/openapi_client/models/onboarding_user_cards_query.py +0 -122
  57. anyscale/client/openapi_client/models/serve_deployment_logs.py +0 -152
  58. anyscale/client/openapi_client/models/servedeploymentlogs_response.py +0 -121
  59. anyscale/client/openapi_client/models/timestamped_logs_output.py +0 -148
  60. anyscale/client/openapi_client/models/timestampedlogsoutput_response.py +0 -121
  61. {anyscale-0.26.8.dist-info → anyscale-0.26.10.dist-info}/LICENSE +0 -0
  62. {anyscale-0.26.8.dist-info → anyscale-0.26.10.dist-info}/NOTICE +0 -0
  63. {anyscale-0.26.8.dist-info → anyscale-0.26.10.dist-info}/WHEEL +0 -0
  64. {anyscale-0.26.8.dist-info → anyscale-0.26.10.dist-info}/entry_points.txt +0 -0
  65. {anyscale-0.26.8.dist-info → anyscale-0.26.10.dist-info}/top_level.txt +0 -0
@@ -18,7 +18,7 @@ import six
18
18
  from openapi_client.configuration import Configuration
19
19
 
20
20
 
21
- class JobStatus(object):
21
+ class ClusterState(object):
22
22
  """NOTE: This class is auto generated by OpenAPI Generator.
23
23
  Ref: https://openapi-generator.tech
24
24
 
@@ -28,15 +28,18 @@ class JobStatus(object):
28
28
  """
29
29
  allowed enum values
30
30
  """
31
- RUNNING = "RUNNING"
32
- COMPLETED = "COMPLETED"
33
- PENDING = "PENDING"
34
- STOPPED = "STOPPED"
35
- SUCCEEDED = "SUCCEEDED"
36
- FAILED = "FAILED"
37
- UNKNOWN = "UNKNOWN"
38
-
39
- allowable_values = [RUNNING, COMPLETED, PENDING, STOPPED, SUCCEEDED, FAILED, UNKNOWN] # noqa: E501
31
+ TERMINATED = "Terminated"
32
+ STARTINGUP = "StartingUp"
33
+ STARTUPERRORED = "StartupErrored"
34
+ RUNNING = "Running"
35
+ UPDATING = "Updating"
36
+ UPDATINGERRORED = "UpdatingErrored"
37
+ TERMINATING = "Terminating"
38
+ AWAITINGSTARTUP = "AwaitingStartup"
39
+ TERMINATINGERRORED = "TerminatingErrored"
40
+ UNKNOWN = "Unknown"
41
+
42
+ allowable_values = [TERMINATED, STARTINGUP, STARTUPERRORED, RUNNING, UPDATING, UPDATINGERRORED, TERMINATING, AWAITINGSTARTUP, TERMINATINGERRORED, UNKNOWN] # noqa: E501
40
43
 
41
44
  """
42
45
  Attributes:
@@ -52,7 +55,7 @@ class JobStatus(object):
52
55
  }
53
56
 
54
57
  def __init__(self, local_vars_configuration=None): # noqa: E501
55
- """JobStatus - a model defined in OpenAPI""" # noqa: E501
58
+ """ClusterState - a model defined in OpenAPI""" # noqa: E501
56
59
  if local_vars_configuration is None:
57
60
  local_vars_configuration = Configuration()
58
61
  self.local_vars_configuration = local_vars_configuration
@@ -92,14 +95,14 @@ class JobStatus(object):
92
95
 
93
96
  def __eq__(self, other):
94
97
  """Returns true if both objects are equal"""
95
- if not isinstance(other, JobStatus):
98
+ if not isinstance(other, ClusterState):
96
99
  return False
97
100
 
98
101
  return self.to_dict() == other.to_dict()
99
102
 
100
103
  def __ne__(self, other):
101
104
  """Returns true if both objects are not equal"""
102
- if not isinstance(other, JobStatus):
105
+ if not isinstance(other, ClusterState):
103
106
  return True
104
107
 
105
108
  return self.to_dict() != other.to_dict()
@@ -0,0 +1,226 @@
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 DescribeSystemWorkloadResponse(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
+ 'cluster_id': 'str',
37
+ 'workload_names': 'list[SystemWorkloadName]',
38
+ 'workload_service_url': 'str',
39
+ 'workload_service_url_auth': 'str',
40
+ 'status': 'ClusterState'
41
+ }
42
+
43
+ attribute_map = {
44
+ 'cluster_id': 'cluster_id',
45
+ 'workload_names': 'workload_names',
46
+ 'workload_service_url': 'workload_service_url',
47
+ 'workload_service_url_auth': 'workload_service_url_auth',
48
+ 'status': 'status'
49
+ }
50
+
51
+ def __init__(self, cluster_id=None, workload_names=None, workload_service_url=None, workload_service_url_auth=None, status=None, local_vars_configuration=None): # noqa: E501
52
+ """DescribeSystemWorkloadResponse - 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._cluster_id = None
58
+ self._workload_names = None
59
+ self._workload_service_url = None
60
+ self._workload_service_url_auth = None
61
+ self._status = None
62
+ self.discriminator = None
63
+
64
+ self.cluster_id = cluster_id
65
+ self.workload_names = workload_names
66
+ if workload_service_url is not None:
67
+ self.workload_service_url = workload_service_url
68
+ if workload_service_url_auth is not None:
69
+ self.workload_service_url_auth = workload_service_url_auth
70
+ if status is not None:
71
+ self.status = status
72
+
73
+ @property
74
+ def cluster_id(self):
75
+ """Gets the cluster_id of this DescribeSystemWorkloadResponse. # noqa: E501
76
+
77
+
78
+ :return: The cluster_id of this DescribeSystemWorkloadResponse. # noqa: E501
79
+ :rtype: str
80
+ """
81
+ return self._cluster_id
82
+
83
+ @cluster_id.setter
84
+ def cluster_id(self, cluster_id):
85
+ """Sets the cluster_id of this DescribeSystemWorkloadResponse.
86
+
87
+
88
+ :param cluster_id: The cluster_id of this DescribeSystemWorkloadResponse. # noqa: E501
89
+ :type: str
90
+ """
91
+ if self.local_vars_configuration.client_side_validation and cluster_id is None: # noqa: E501
92
+ raise ValueError("Invalid value for `cluster_id`, must not be `None`") # noqa: E501
93
+
94
+ self._cluster_id = cluster_id
95
+
96
+ @property
97
+ def workload_names(self):
98
+ """Gets the workload_names of this DescribeSystemWorkloadResponse. # noqa: E501
99
+
100
+
101
+ :return: The workload_names of this DescribeSystemWorkloadResponse. # noqa: E501
102
+ :rtype: list[SystemWorkloadName]
103
+ """
104
+ return self._workload_names
105
+
106
+ @workload_names.setter
107
+ def workload_names(self, workload_names):
108
+ """Sets the workload_names of this DescribeSystemWorkloadResponse.
109
+
110
+
111
+ :param workload_names: The workload_names of this DescribeSystemWorkloadResponse. # noqa: E501
112
+ :type: list[SystemWorkloadName]
113
+ """
114
+ if self.local_vars_configuration.client_side_validation and workload_names is None: # noqa: E501
115
+ raise ValueError("Invalid value for `workload_names`, must not be `None`") # noqa: E501
116
+
117
+ self._workload_names = workload_names
118
+
119
+ @property
120
+ def workload_service_url(self):
121
+ """Gets the workload_service_url of this DescribeSystemWorkloadResponse. # noqa: E501
122
+
123
+
124
+ :return: The workload_service_url of this DescribeSystemWorkloadResponse. # noqa: E501
125
+ :rtype: str
126
+ """
127
+ return self._workload_service_url
128
+
129
+ @workload_service_url.setter
130
+ def workload_service_url(self, workload_service_url):
131
+ """Sets the workload_service_url of this DescribeSystemWorkloadResponse.
132
+
133
+
134
+ :param workload_service_url: The workload_service_url of this DescribeSystemWorkloadResponse. # noqa: E501
135
+ :type: str
136
+ """
137
+
138
+ self._workload_service_url = workload_service_url
139
+
140
+ @property
141
+ def workload_service_url_auth(self):
142
+ """Gets the workload_service_url_auth of this DescribeSystemWorkloadResponse. # noqa: E501
143
+
144
+
145
+ :return: The workload_service_url_auth of this DescribeSystemWorkloadResponse. # noqa: E501
146
+ :rtype: str
147
+ """
148
+ return self._workload_service_url_auth
149
+
150
+ @workload_service_url_auth.setter
151
+ def workload_service_url_auth(self, workload_service_url_auth):
152
+ """Sets the workload_service_url_auth of this DescribeSystemWorkloadResponse.
153
+
154
+
155
+ :param workload_service_url_auth: The workload_service_url_auth of this DescribeSystemWorkloadResponse. # noqa: E501
156
+ :type: str
157
+ """
158
+
159
+ self._workload_service_url_auth = workload_service_url_auth
160
+
161
+ @property
162
+ def status(self):
163
+ """Gets the status of this DescribeSystemWorkloadResponse. # noqa: E501
164
+
165
+
166
+ :return: The status of this DescribeSystemWorkloadResponse. # noqa: E501
167
+ :rtype: ClusterState
168
+ """
169
+ return self._status
170
+
171
+ @status.setter
172
+ def status(self, status):
173
+ """Sets the status of this DescribeSystemWorkloadResponse.
174
+
175
+
176
+ :param status: The status of this DescribeSystemWorkloadResponse. # noqa: E501
177
+ :type: ClusterState
178
+ """
179
+
180
+ self._status = status
181
+
182
+ def to_dict(self):
183
+ """Returns the model properties as a dict"""
184
+ result = {}
185
+
186
+ for attr, _ in six.iteritems(self.openapi_types):
187
+ value = getattr(self, attr)
188
+ if isinstance(value, list):
189
+ result[attr] = list(map(
190
+ lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
191
+ value
192
+ ))
193
+ elif hasattr(value, "to_dict"):
194
+ result[attr] = value.to_dict()
195
+ elif isinstance(value, dict):
196
+ result[attr] = dict(map(
197
+ lambda item: (item[0], item[1].to_dict())
198
+ if hasattr(item[1], "to_dict") else item,
199
+ value.items()
200
+ ))
201
+ else:
202
+ result[attr] = value
203
+
204
+ return result
205
+
206
+ def to_str(self):
207
+ """Returns the string representation of the model"""
208
+ return pprint.pformat(self.to_dict())
209
+
210
+ def __repr__(self):
211
+ """For `print` and `pprint`"""
212
+ return self.to_str()
213
+
214
+ def __eq__(self, other):
215
+ """Returns true if both objects are equal"""
216
+ if not isinstance(other, DescribeSystemWorkloadResponse):
217
+ return False
218
+
219
+ return self.to_dict() == other.to_dict()
220
+
221
+ def __ne__(self, other):
222
+ """Returns true if both objects are not equal"""
223
+ if not isinstance(other, DescribeSystemWorkloadResponse):
224
+ return True
225
+
226
+ 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 DecoratedjobsubmissionResponse(object):
21
+ class DescribesystemworkloadresponseResponse(object):
22
22
  """NOTE: This class is auto generated by OpenAPI Generator.
23
23
  Ref: https://openapi-generator.tech
24
24
 
@@ -33,7 +33,7 @@ class DecoratedjobsubmissionResponse(object):
33
33
  and the value is json key in definition.
34
34
  """
35
35
  openapi_types = {
36
- 'result': 'DecoratedJobSubmission'
36
+ 'result': 'DescribeSystemWorkloadResponse'
37
37
  }
38
38
 
39
39
  attribute_map = {
@@ -41,7 +41,7 @@ class DecoratedjobsubmissionResponse(object):
41
41
  }
42
42
 
43
43
  def __init__(self, result=None, local_vars_configuration=None): # noqa: E501
44
- """DecoratedjobsubmissionResponse - a model defined in OpenAPI""" # noqa: E501
44
+ """DescribesystemworkloadresponseResponse - a model defined in OpenAPI""" # noqa: E501
45
45
  if local_vars_configuration is None:
46
46
  local_vars_configuration = Configuration()
47
47
  self.local_vars_configuration = local_vars_configuration
@@ -53,21 +53,21 @@ class DecoratedjobsubmissionResponse(object):
53
53
 
54
54
  @property
55
55
  def result(self):
56
- """Gets the result of this DecoratedjobsubmissionResponse. # noqa: E501
56
+ """Gets the result of this DescribesystemworkloadresponseResponse. # noqa: E501
57
57
 
58
58
 
59
- :return: The result of this DecoratedjobsubmissionResponse. # noqa: E501
60
- :rtype: DecoratedJobSubmission
59
+ :return: The result of this DescribesystemworkloadresponseResponse. # noqa: E501
60
+ :rtype: DescribeSystemWorkloadResponse
61
61
  """
62
62
  return self._result
63
63
 
64
64
  @result.setter
65
65
  def result(self, result):
66
- """Sets the result of this DecoratedjobsubmissionResponse.
66
+ """Sets the result of this DescribesystemworkloadresponseResponse.
67
67
 
68
68
 
69
- :param result: The result of this DecoratedjobsubmissionResponse. # noqa: E501
70
- :type: DecoratedJobSubmission
69
+ :param result: The result of this DescribesystemworkloadresponseResponse. # noqa: E501
70
+ :type: DescribeSystemWorkloadResponse
71
71
  """
72
72
  if self.local_vars_configuration.client_side_validation and result is None: # noqa: E501
73
73
  raise ValueError("Invalid value for `result`, must not be `None`") # noqa: E501
@@ -108,14 +108,14 @@ class DecoratedjobsubmissionResponse(object):
108
108
 
109
109
  def __eq__(self, other):
110
110
  """Returns true if both objects are equal"""
111
- if not isinstance(other, DecoratedjobsubmissionResponse):
111
+ if not isinstance(other, DescribesystemworkloadresponseResponse):
112
112
  return False
113
113
 
114
114
  return self.to_dict() == other.to_dict()
115
115
 
116
116
  def __ne__(self, other):
117
117
  """Returns true if both objects are not equal"""
118
- if not isinstance(other, DecoratedjobsubmissionResponse):
118
+ if not isinstance(other, DescribesystemworkloadresponseResponse):
119
119
  return True
120
120
 
121
121
  return self.to_dict() != other.to_dict()
@@ -38,6 +38,8 @@ class OperatorMetrics(object):
38
38
  'state': 'DatasetState',
39
39
  'progress': 'int',
40
40
  'total': 'int',
41
+ 'start_time': 'int',
42
+ 'end_time': 'int',
41
43
  'metrics': 'dict(str, Metric)',
42
44
  'sub_operators': 'list[OperatorMetricId]'
43
45
  }
@@ -48,11 +50,13 @@ class OperatorMetrics(object):
48
50
  'state': 'state',
49
51
  'progress': 'progress',
50
52
  'total': 'total',
53
+ 'start_time': 'start_time',
54
+ 'end_time': 'end_time',
51
55
  'metrics': 'metrics',
52
56
  'sub_operators': 'sub_operators'
53
57
  }
54
58
 
55
- def __init__(self, id=None, name=None, state=None, progress=None, total=None, metrics=None, sub_operators=None, local_vars_configuration=None): # noqa: E501
59
+ def __init__(self, id=None, name=None, state=None, progress=None, total=None, start_time=None, end_time=None, metrics=None, sub_operators=None, local_vars_configuration=None): # noqa: E501
56
60
  """OperatorMetrics - a model defined in OpenAPI""" # noqa: E501
57
61
  if local_vars_configuration is None:
58
62
  local_vars_configuration = Configuration()
@@ -63,6 +67,8 @@ class OperatorMetrics(object):
63
67
  self._state = None
64
68
  self._progress = None
65
69
  self._total = None
70
+ self._start_time = None
71
+ self._end_time = None
66
72
  self._metrics = None
67
73
  self._sub_operators = None
68
74
  self.discriminator = None
@@ -72,6 +78,9 @@ class OperatorMetrics(object):
72
78
  self.state = state
73
79
  self.progress = progress
74
80
  self.total = total
81
+ self.start_time = start_time
82
+ if end_time is not None:
83
+ self.end_time = end_time
75
84
  self.metrics = metrics
76
85
  self.sub_operators = sub_operators
77
86
 
@@ -190,6 +199,50 @@ class OperatorMetrics(object):
190
199
 
191
200
  self._total = total
192
201
 
202
+ @property
203
+ def start_time(self):
204
+ """Gets the start_time of this OperatorMetrics. # noqa: E501
205
+
206
+
207
+ :return: The start_time of this OperatorMetrics. # noqa: E501
208
+ :rtype: int
209
+ """
210
+ return self._start_time
211
+
212
+ @start_time.setter
213
+ def start_time(self, start_time):
214
+ """Sets the start_time of this OperatorMetrics.
215
+
216
+
217
+ :param start_time: The start_time of this OperatorMetrics. # noqa: E501
218
+ :type: int
219
+ """
220
+ if self.local_vars_configuration.client_side_validation and start_time is None: # noqa: E501
221
+ raise ValueError("Invalid value for `start_time`, must not be `None`") # noqa: E501
222
+
223
+ self._start_time = start_time
224
+
225
+ @property
226
+ def end_time(self):
227
+ """Gets the end_time of this OperatorMetrics. # noqa: E501
228
+
229
+
230
+ :return: The end_time of this OperatorMetrics. # noqa: E501
231
+ :rtype: int
232
+ """
233
+ return self._end_time
234
+
235
+ @end_time.setter
236
+ def end_time(self, end_time):
237
+ """Sets the end_time of this OperatorMetrics.
238
+
239
+
240
+ :param end_time: The end_time of this OperatorMetrics. # noqa: E501
241
+ :type: int
242
+ """
243
+
244
+ self._end_time = end_time
245
+
193
246
  @property
194
247
  def metrics(self):
195
248
  """Gets the metrics of this OperatorMetrics. # noqa: E501