anyscale 0.26.8__py3-none-any.whl → 0.26.9__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 (48) 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/client/README.md +6 -23
  7. anyscale/client/openapi_client/__init__.py +4 -15
  8. anyscale/client/openapi_client/api/default_api.py +410 -1091
  9. anyscale/client/openapi_client/models/__init__.py +4 -15
  10. anyscale/client/openapi_client/models/baseimagesenum.py +69 -1
  11. anyscale/client/openapi_client/models/{jobslogs_response.py → cluster_state.py} +21 -34
  12. anyscale/client/openapi_client/models/describe_system_workload_response.py +226 -0
  13. anyscale/client/openapi_client/models/{interactivesessionlogs_response.py → describesystemworkloadresponse_response.py} +11 -11
  14. anyscale/client/openapi_client/models/operator_metrics.py +54 -1
  15. anyscale/client/openapi_client/models/supportedbaseimagesenum.py +69 -1
  16. anyscale/client/openapi_client/models/{job_submissions_sort_field.py → system_workload_name.py} +6 -8
  17. anyscale/commands/command_examples.py +4 -0
  18. anyscale/commands/service_commands.py +62 -27
  19. anyscale/job/_private/job_sdk.py +1 -3
  20. anyscale/sdk/anyscale_client/__init__.py +1 -0
  21. anyscale/sdk/anyscale_client/models/__init__.py +1 -0
  22. anyscale/sdk/anyscale_client/models/baseimagesenum.py +69 -1
  23. anyscale/sdk/anyscale_client/models/cluster.py +60 -3
  24. anyscale/sdk/anyscale_client/models/supportedbaseimagesenum.py +69 -1
  25. anyscale/{client/openapi_client/models/job_status.py → sdk/anyscale_client/models/system_workload_name.py} +8 -14
  26. anyscale/service/__init__.py +19 -0
  27. anyscale/service/_private/service_sdk.py +26 -2
  28. anyscale/service/commands.py +48 -9
  29. anyscale/shared_anyscale_utils/latest_ray_version.py +1 -1
  30. anyscale/version.py +1 -1
  31. {anyscale-0.26.8.dist-info → anyscale-0.26.9.dist-info}/METADATA +1 -1
  32. {anyscale-0.26.8.dist-info → anyscale-0.26.9.dist-info}/RECORD +37 -47
  33. anyscale/client/openapi_client/models/decorated_job_submission.py +0 -547
  34. anyscale/client/openapi_client/models/decoratedjobsubmission_list_response.py +0 -147
  35. anyscale/client/openapi_client/models/decoratedjobsubmission_response.py +0 -121
  36. anyscale/client/openapi_client/models/interactive_session_logs.py +0 -152
  37. anyscale/client/openapi_client/models/jobs_logs.py +0 -152
  38. anyscale/client/openapi_client/models/jobs_logs_query_info.py +0 -181
  39. anyscale/client/openapi_client/models/jobslogsqueryinfo_response.py +0 -121
  40. anyscale/client/openapi_client/models/serve_deployment_logs.py +0 -152
  41. anyscale/client/openapi_client/models/servedeploymentlogs_response.py +0 -121
  42. anyscale/client/openapi_client/models/timestamped_logs_output.py +0 -148
  43. anyscale/client/openapi_client/models/timestampedlogsoutput_response.py +0 -121
  44. {anyscale-0.26.8.dist-info → anyscale-0.26.9.dist-info}/LICENSE +0 -0
  45. {anyscale-0.26.8.dist-info → anyscale-0.26.9.dist-info}/NOTICE +0 -0
  46. {anyscale-0.26.8.dist-info → anyscale-0.26.9.dist-info}/WHEEL +0 -0
  47. {anyscale-0.26.8.dist-info → anyscale-0.26.9.dist-info}/entry_points.txt +0 -0
  48. {anyscale-0.26.8.dist-info → anyscale-0.26.9.dist-info}/top_level.txt +0 -0
@@ -18,13 +18,29 @@ import six
18
18
  from openapi_client.configuration import Configuration
19
19
 
20
20
 
21
- class JobslogsResponse(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
 
25
25
  Do not edit the class manually.
26
26
  """
27
27
 
28
+ """
29
+ allowed enum values
30
+ """
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
43
+
28
44
  """
29
45
  Attributes:
30
46
  openapi_types (dict): The key is attribute name
@@ -33,47 +49,18 @@ class JobslogsResponse(object):
33
49
  and the value is json key in definition.
34
50
  """
35
51
  openapi_types = {
36
- 'result': 'JobsLogs'
37
52
  }
38
53
 
39
54
  attribute_map = {
40
- 'result': 'result'
41
55
  }
42
56
 
43
- def __init__(self, result=None, local_vars_configuration=None): # noqa: E501
44
- """JobslogsResponse - a model defined in OpenAPI""" # noqa: E501
57
+ def __init__(self, local_vars_configuration=None): # noqa: E501
58
+ """ClusterState - a model defined in OpenAPI""" # noqa: E501
45
59
  if local_vars_configuration is None:
46
60
  local_vars_configuration = Configuration()
47
61
  self.local_vars_configuration = local_vars_configuration
48
-
49
- self._result = None
50
62
  self.discriminator = None
51
63
 
52
- self.result = result
53
-
54
- @property
55
- def result(self):
56
- """Gets the result of this JobslogsResponse. # noqa: E501
57
-
58
-
59
- :return: The result of this JobslogsResponse. # noqa: E501
60
- :rtype: JobsLogs
61
- """
62
- return self._result
63
-
64
- @result.setter
65
- def result(self, result):
66
- """Sets the result of this JobslogsResponse.
67
-
68
-
69
- :param result: The result of this JobslogsResponse. # noqa: E501
70
- :type: JobsLogs
71
- """
72
- if self.local_vars_configuration.client_side_validation and result is None: # noqa: E501
73
- raise ValueError("Invalid value for `result`, must not be `None`") # noqa: E501
74
-
75
- self._result = result
76
-
77
64
  def to_dict(self):
78
65
  """Returns the model properties as a dict"""
79
66
  result = {}
@@ -108,14 +95,14 @@ class JobslogsResponse(object):
108
95
 
109
96
  def __eq__(self, other):
110
97
  """Returns true if both objects are equal"""
111
- if not isinstance(other, JobslogsResponse):
98
+ if not isinstance(other, ClusterState):
112
99
  return False
113
100
 
114
101
  return self.to_dict() == other.to_dict()
115
102
 
116
103
  def __ne__(self, other):
117
104
  """Returns true if both objects are not equal"""
118
- if not isinstance(other, JobslogsResponse):
105
+ if not isinstance(other, ClusterState):
119
106
  return True
120
107
 
121
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 InteractivesessionlogsResponse(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 InteractivesessionlogsResponse(object):
33
33
  and the value is json key in definition.
34
34
  """
35
35
  openapi_types = {
36
- 'result': 'InteractiveSessionLogs'
36
+ 'result': 'DescribeSystemWorkloadResponse'
37
37
  }
38
38
 
39
39
  attribute_map = {
@@ -41,7 +41,7 @@ class InteractivesessionlogsResponse(object):
41
41
  }
42
42
 
43
43
  def __init__(self, result=None, local_vars_configuration=None): # noqa: E501
44
- """InteractivesessionlogsResponse - 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 InteractivesessionlogsResponse(object):
53
53
 
54
54
  @property
55
55
  def result(self):
56
- """Gets the result of this InteractivesessionlogsResponse. # noqa: E501
56
+ """Gets the result of this DescribesystemworkloadresponseResponse. # noqa: E501
57
57
 
58
58
 
59
- :return: The result of this InteractivesessionlogsResponse. # noqa: E501
60
- :rtype: InteractiveSessionLogs
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 InteractivesessionlogsResponse.
66
+ """Sets the result of this DescribesystemworkloadresponseResponse.
67
67
 
68
68
 
69
- :param result: The result of this InteractivesessionlogsResponse. # noqa: E501
70
- :type: InteractiveSessionLogs
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 InteractivesessionlogsResponse(object):
108
108
 
109
109
  def __eq__(self, other):
110
110
  """Returns true if both objects are equal"""
111
- if not isinstance(other, InteractivesessionlogsResponse):
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, InteractivesessionlogsResponse):
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