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
@@ -1,121 +0,0 @@
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 DecoratedjobsubmissionResponse(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
- 'result': 'DecoratedJobSubmission'
37
- }
38
-
39
- attribute_map = {
40
- 'result': 'result'
41
- }
42
-
43
- def __init__(self, result=None, local_vars_configuration=None): # noqa: E501
44
- """DecoratedjobsubmissionResponse - a model defined in OpenAPI""" # noqa: E501
45
- if local_vars_configuration is None:
46
- local_vars_configuration = Configuration()
47
- self.local_vars_configuration = local_vars_configuration
48
-
49
- self._result = None
50
- self.discriminator = None
51
-
52
- self.result = result
53
-
54
- @property
55
- def result(self):
56
- """Gets the result of this DecoratedjobsubmissionResponse. # noqa: E501
57
-
58
-
59
- :return: The result of this DecoratedjobsubmissionResponse. # noqa: E501
60
- :rtype: DecoratedJobSubmission
61
- """
62
- return self._result
63
-
64
- @result.setter
65
- def result(self, result):
66
- """Sets the result of this DecoratedjobsubmissionResponse.
67
-
68
-
69
- :param result: The result of this DecoratedjobsubmissionResponse. # noqa: E501
70
- :type: DecoratedJobSubmission
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
- def to_dict(self):
78
- """Returns the model properties as a dict"""
79
- result = {}
80
-
81
- for attr, _ in six.iteritems(self.openapi_types):
82
- value = getattr(self, attr)
83
- if isinstance(value, list):
84
- result[attr] = list(map(
85
- lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
86
- value
87
- ))
88
- elif hasattr(value, "to_dict"):
89
- result[attr] = value.to_dict()
90
- elif isinstance(value, dict):
91
- result[attr] = dict(map(
92
- lambda item: (item[0], item[1].to_dict())
93
- if hasattr(item[1], "to_dict") else item,
94
- value.items()
95
- ))
96
- else:
97
- result[attr] = value
98
-
99
- return result
100
-
101
- def to_str(self):
102
- """Returns the string representation of the model"""
103
- return pprint.pformat(self.to_dict())
104
-
105
- def __repr__(self):
106
- """For `print` and `pprint`"""
107
- return self.to_str()
108
-
109
- def __eq__(self, other):
110
- """Returns true if both objects are equal"""
111
- if not isinstance(other, DecoratedjobsubmissionResponse):
112
- return False
113
-
114
- return self.to_dict() == other.to_dict()
115
-
116
- def __ne__(self, other):
117
- """Returns true if both objects are not equal"""
118
- if not isinstance(other, DecoratedjobsubmissionResponse):
119
- return True
120
-
121
- return self.to_dict() != other.to_dict()
@@ -1,152 +0,0 @@
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 InteractiveSessionLogs(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
- 'logs': 'str',
37
- 'ready': 'bool'
38
- }
39
-
40
- attribute_map = {
41
- 'logs': 'logs',
42
- 'ready': 'ready'
43
- }
44
-
45
- def __init__(self, logs=None, ready=None, local_vars_configuration=None): # noqa: E501
46
- """InteractiveSessionLogs - 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._logs = None
52
- self._ready = None
53
- self.discriminator = None
54
-
55
- self.logs = logs
56
- self.ready = ready
57
-
58
- @property
59
- def logs(self):
60
- """Gets the logs of this InteractiveSessionLogs. # noqa: E501
61
-
62
- Logs of this entity # noqa: E501
63
-
64
- :return: The logs of this InteractiveSessionLogs. # noqa: E501
65
- :rtype: str
66
- """
67
- return self._logs
68
-
69
- @logs.setter
70
- def logs(self, logs):
71
- """Sets the logs of this InteractiveSessionLogs.
72
-
73
- Logs of this entity # noqa: E501
74
-
75
- :param logs: The logs of this InteractiveSessionLogs. # noqa: E501
76
- :type: str
77
- """
78
- if self.local_vars_configuration.client_side_validation and logs is None: # noqa: E501
79
- raise ValueError("Invalid value for `logs`, must not be `None`") # noqa: E501
80
-
81
- self._logs = logs
82
-
83
- @property
84
- def ready(self):
85
- """Gets the ready of this InteractiveSessionLogs. # noqa: E501
86
-
87
- Indicates if underlying logs service is ready to use. If false, clients will need to request for logs until this field is True. # noqa: E501
88
-
89
- :return: The ready of this InteractiveSessionLogs. # noqa: E501
90
- :rtype: bool
91
- """
92
- return self._ready
93
-
94
- @ready.setter
95
- def ready(self, ready):
96
- """Sets the ready of this InteractiveSessionLogs.
97
-
98
- Indicates if underlying logs service is ready to use. If false, clients will need to request for logs until this field is True. # noqa: E501
99
-
100
- :param ready: The ready of this InteractiveSessionLogs. # noqa: E501
101
- :type: bool
102
- """
103
- if self.local_vars_configuration.client_side_validation and ready is None: # noqa: E501
104
- raise ValueError("Invalid value for `ready`, must not be `None`") # noqa: E501
105
-
106
- self._ready = ready
107
-
108
- def to_dict(self):
109
- """Returns the model properties as a dict"""
110
- result = {}
111
-
112
- for attr, _ in six.iteritems(self.openapi_types):
113
- value = getattr(self, attr)
114
- if isinstance(value, list):
115
- result[attr] = list(map(
116
- lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
117
- value
118
- ))
119
- elif hasattr(value, "to_dict"):
120
- result[attr] = value.to_dict()
121
- elif isinstance(value, dict):
122
- result[attr] = dict(map(
123
- lambda item: (item[0], item[1].to_dict())
124
- if hasattr(item[1], "to_dict") else item,
125
- value.items()
126
- ))
127
- else:
128
- result[attr] = value
129
-
130
- return result
131
-
132
- def to_str(self):
133
- """Returns the string representation of the model"""
134
- return pprint.pformat(self.to_dict())
135
-
136
- def __repr__(self):
137
- """For `print` and `pprint`"""
138
- return self.to_str()
139
-
140
- def __eq__(self, other):
141
- """Returns true if both objects are equal"""
142
- if not isinstance(other, InteractiveSessionLogs):
143
- return False
144
-
145
- return self.to_dict() == other.to_dict()
146
-
147
- def __ne__(self, other):
148
- """Returns true if both objects are not equal"""
149
- if not isinstance(other, InteractiveSessionLogs):
150
- return True
151
-
152
- return self.to_dict() != other.to_dict()
@@ -1,152 +0,0 @@
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 JobsLogs(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
- 'logs': 'str',
37
- 'ready': 'bool'
38
- }
39
-
40
- attribute_map = {
41
- 'logs': 'logs',
42
- 'ready': 'ready'
43
- }
44
-
45
- def __init__(self, logs=None, ready=None, local_vars_configuration=None): # noqa: E501
46
- """JobsLogs - 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._logs = None
52
- self._ready = None
53
- self.discriminator = None
54
-
55
- self.logs = logs
56
- self.ready = ready
57
-
58
- @property
59
- def logs(self):
60
- """Gets the logs of this JobsLogs. # noqa: E501
61
-
62
- Logs of this entity # noqa: E501
63
-
64
- :return: The logs of this JobsLogs. # noqa: E501
65
- :rtype: str
66
- """
67
- return self._logs
68
-
69
- @logs.setter
70
- def logs(self, logs):
71
- """Sets the logs of this JobsLogs.
72
-
73
- Logs of this entity # noqa: E501
74
-
75
- :param logs: The logs of this JobsLogs. # noqa: E501
76
- :type: str
77
- """
78
- if self.local_vars_configuration.client_side_validation and logs is None: # noqa: E501
79
- raise ValueError("Invalid value for `logs`, must not be `None`") # noqa: E501
80
-
81
- self._logs = logs
82
-
83
- @property
84
- def ready(self):
85
- """Gets the ready of this JobsLogs. # noqa: E501
86
-
87
- Indicates if underlying logs service is ready to use. If false, clients will need to request for logs until this field is True. # noqa: E501
88
-
89
- :return: The ready of this JobsLogs. # noqa: E501
90
- :rtype: bool
91
- """
92
- return self._ready
93
-
94
- @ready.setter
95
- def ready(self, ready):
96
- """Sets the ready of this JobsLogs.
97
-
98
- Indicates if underlying logs service is ready to use. If false, clients will need to request for logs until this field is True. # noqa: E501
99
-
100
- :param ready: The ready of this JobsLogs. # noqa: E501
101
- :type: bool
102
- """
103
- if self.local_vars_configuration.client_side_validation and ready is None: # noqa: E501
104
- raise ValueError("Invalid value for `ready`, must not be `None`") # noqa: E501
105
-
106
- self._ready = ready
107
-
108
- def to_dict(self):
109
- """Returns the model properties as a dict"""
110
- result = {}
111
-
112
- for attr, _ in six.iteritems(self.openapi_types):
113
- value = getattr(self, attr)
114
- if isinstance(value, list):
115
- result[attr] = list(map(
116
- lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
117
- value
118
- ))
119
- elif hasattr(value, "to_dict"):
120
- result[attr] = value.to_dict()
121
- elif isinstance(value, dict):
122
- result[attr] = dict(map(
123
- lambda item: (item[0], item[1].to_dict())
124
- if hasattr(item[1], "to_dict") else item,
125
- value.items()
126
- ))
127
- else:
128
- result[attr] = value
129
-
130
- return result
131
-
132
- def to_str(self):
133
- """Returns the string representation of the model"""
134
- return pprint.pformat(self.to_dict())
135
-
136
- def __repr__(self):
137
- """For `print` and `pprint`"""
138
- return self.to_str()
139
-
140
- def __eq__(self, other):
141
- """Returns true if both objects are equal"""
142
- if not isinstance(other, JobsLogs):
143
- return False
144
-
145
- return self.to_dict() == other.to_dict()
146
-
147
- def __ne__(self, other):
148
- """Returns true if both objects are not equal"""
149
- if not isinstance(other, JobsLogs):
150
- return True
151
-
152
- return self.to_dict() != other.to_dict()
@@ -1,181 +0,0 @@
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 JobsLogsQueryInfo(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
- 'loki_dns_name': 'str',
37
- 'loki_query': 'str',
38
- 'access_token': 'str'
39
- }
40
-
41
- attribute_map = {
42
- 'loki_dns_name': 'loki_dns_name',
43
- 'loki_query': 'loki_query',
44
- 'access_token': 'access_token'
45
- }
46
-
47
- def __init__(self, loki_dns_name=None, loki_query=None, access_token=None, local_vars_configuration=None): # noqa: E501
48
- """JobsLogsQueryInfo - a model defined in OpenAPI""" # noqa: E501
49
- if local_vars_configuration is None:
50
- local_vars_configuration = Configuration()
51
- self.local_vars_configuration = local_vars_configuration
52
-
53
- self._loki_dns_name = None
54
- self._loki_query = None
55
- self._access_token = None
56
- self.discriminator = None
57
-
58
- self.loki_dns_name = loki_dns_name
59
- self.loki_query = loki_query
60
- self.access_token = access_token
61
-
62
- @property
63
- def loki_dns_name(self):
64
- """Gets the loki_dns_name of this JobsLogsQueryInfo. # noqa: E501
65
-
66
- The DNS name for loki endpoint. # noqa: E501
67
-
68
- :return: The loki_dns_name of this JobsLogsQueryInfo. # noqa: E501
69
- :rtype: str
70
- """
71
- return self._loki_dns_name
72
-
73
- @loki_dns_name.setter
74
- def loki_dns_name(self, loki_dns_name):
75
- """Sets the loki_dns_name of this JobsLogsQueryInfo.
76
-
77
- The DNS name for loki endpoint. # noqa: E501
78
-
79
- :param loki_dns_name: The loki_dns_name of this JobsLogsQueryInfo. # noqa: E501
80
- :type: str
81
- """
82
- if self.local_vars_configuration.client_side_validation and loki_dns_name is None: # noqa: E501
83
- raise ValueError("Invalid value for `loki_dns_name`, must not be `None`") # noqa: E501
84
-
85
- self._loki_dns_name = loki_dns_name
86
-
87
- @property
88
- def loki_query(self):
89
- """Gets the loki_query of this JobsLogsQueryInfo. # noqa: E501
90
-
91
- The constructed loki query for a given job. # noqa: E501
92
-
93
- :return: The loki_query of this JobsLogsQueryInfo. # noqa: E501
94
- :rtype: str
95
- """
96
- return self._loki_query
97
-
98
- @loki_query.setter
99
- def loki_query(self, loki_query):
100
- """Sets the loki_query of this JobsLogsQueryInfo.
101
-
102
- The constructed loki query for a given job. # noqa: E501
103
-
104
- :param loki_query: The loki_query of this JobsLogsQueryInfo. # noqa: E501
105
- :type: str
106
- """
107
- if self.local_vars_configuration.client_side_validation and loki_query is None: # noqa: E501
108
- raise ValueError("Invalid value for `loki_query`, must not be `None`") # noqa: E501
109
-
110
- self._loki_query = loki_query
111
-
112
- @property
113
- def access_token(self):
114
- """Gets the access_token of this JobsLogsQueryInfo. # noqa: E501
115
-
116
- The token required to query Loki. # noqa: E501
117
-
118
- :return: The access_token of this JobsLogsQueryInfo. # noqa: E501
119
- :rtype: str
120
- """
121
- return self._access_token
122
-
123
- @access_token.setter
124
- def access_token(self, access_token):
125
- """Sets the access_token of this JobsLogsQueryInfo.
126
-
127
- The token required to query Loki. # noqa: E501
128
-
129
- :param access_token: The access_token of this JobsLogsQueryInfo. # noqa: E501
130
- :type: str
131
- """
132
- if self.local_vars_configuration.client_side_validation and access_token is None: # noqa: E501
133
- raise ValueError("Invalid value for `access_token`, must not be `None`") # noqa: E501
134
-
135
- self._access_token = access_token
136
-
137
- def to_dict(self):
138
- """Returns the model properties as a dict"""
139
- result = {}
140
-
141
- for attr, _ in six.iteritems(self.openapi_types):
142
- value = getattr(self, attr)
143
- if isinstance(value, list):
144
- result[attr] = list(map(
145
- lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
146
- value
147
- ))
148
- elif hasattr(value, "to_dict"):
149
- result[attr] = value.to_dict()
150
- elif isinstance(value, dict):
151
- result[attr] = dict(map(
152
- lambda item: (item[0], item[1].to_dict())
153
- if hasattr(item[1], "to_dict") else item,
154
- value.items()
155
- ))
156
- else:
157
- result[attr] = value
158
-
159
- return result
160
-
161
- def to_str(self):
162
- """Returns the string representation of the model"""
163
- return pprint.pformat(self.to_dict())
164
-
165
- def __repr__(self):
166
- """For `print` and `pprint`"""
167
- return self.to_str()
168
-
169
- def __eq__(self, other):
170
- """Returns true if both objects are equal"""
171
- if not isinstance(other, JobsLogsQueryInfo):
172
- return False
173
-
174
- return self.to_dict() == other.to_dict()
175
-
176
- def __ne__(self, other):
177
- """Returns true if both objects are not equal"""
178
- if not isinstance(other, JobsLogsQueryInfo):
179
- return True
180
-
181
- return self.to_dict() != other.to_dict()