anyscale 0.26.30__py3-none-any.whl → 0.26.32__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 (36) hide show
  1. anyscale/_private/anyscale_client/anyscale_client.py +22 -60
  2. anyscale/_private/anyscale_client/common.py +12 -1
  3. anyscale/_private/anyscale_client/fake_anyscale_client.py +24 -0
  4. anyscale/_private/docgen/__main__.py +2 -0
  5. anyscale/_private/docgen/models.md +2 -2
  6. anyscale/client/README.md +9 -0
  7. anyscale/client/openapi_client/__init__.py +7 -0
  8. anyscale/client/openapi_client/api/default_api.py +232 -0
  9. anyscale/client/openapi_client/models/__init__.py +7 -0
  10. anyscale/client/openapi_client/models/baseimagesenum.py +135 -1
  11. anyscale/client/openapi_client/models/cluster_operation.py +266 -0
  12. anyscale/client/openapi_client/models/cluster_operation_type.py +101 -0
  13. anyscale/client/openapi_client/models/clusteroperation_response.py +121 -0
  14. anyscale/client/openapi_client/models/get_or_create_build_from_image_uri_request.py +207 -0
  15. anyscale/client/openapi_client/models/operation_error.py +123 -0
  16. anyscale/client/openapi_client/models/operation_progress.py +123 -0
  17. anyscale/client/openapi_client/models/operation_result.py +150 -0
  18. anyscale/client/openapi_client/models/supportedbaseimagesenum.py +135 -1
  19. anyscale/cloud/__init__.py +16 -0
  20. anyscale/cloud/_private/cloud_sdk.py +33 -0
  21. anyscale/cloud/commands.py +35 -0
  22. anyscale/cluster_compute.py +3 -8
  23. anyscale/commands/cloud_commands.py +35 -0
  24. anyscale/commands/command_examples.py +6 -0
  25. anyscale/controllers/compute_config_controller.py +3 -19
  26. anyscale/sdk/anyscale_client/models/baseimagesenum.py +135 -1
  27. anyscale/sdk/anyscale_client/models/supportedbaseimagesenum.py +135 -1
  28. anyscale/shared_anyscale_utils/latest_ray_version.py +1 -1
  29. anyscale/version.py +1 -1
  30. {anyscale-0.26.30.dist-info → anyscale-0.26.32.dist-info}/METADATA +1 -1
  31. {anyscale-0.26.30.dist-info → anyscale-0.26.32.dist-info}/RECORD +36 -29
  32. {anyscale-0.26.30.dist-info → anyscale-0.26.32.dist-info}/LICENSE +0 -0
  33. {anyscale-0.26.30.dist-info → anyscale-0.26.32.dist-info}/NOTICE +0 -0
  34. {anyscale-0.26.30.dist-info → anyscale-0.26.32.dist-info}/WHEEL +0 -0
  35. {anyscale-0.26.30.dist-info → anyscale-0.26.32.dist-info}/entry_points.txt +0 -0
  36. {anyscale-0.26.30.dist-info → anyscale-0.26.32.dist-info}/top_level.txt +0 -0
@@ -0,0 +1,123 @@
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 OperationError(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
+ 'message': 'str'
37
+ }
38
+
39
+ attribute_map = {
40
+ 'message': 'message'
41
+ }
42
+
43
+ def __init__(self, message=None, local_vars_configuration=None): # noqa: E501
44
+ """OperationError - 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._message = None
50
+ self.discriminator = None
51
+
52
+ self.message = message
53
+
54
+ @property
55
+ def message(self):
56
+ """Gets the message of this OperationError. # noqa: E501
57
+
58
+ Human readable message explaining why this operation failed. # noqa: E501
59
+
60
+ :return: The message of this OperationError. # noqa: E501
61
+ :rtype: str
62
+ """
63
+ return self._message
64
+
65
+ @message.setter
66
+ def message(self, message):
67
+ """Sets the message of this OperationError.
68
+
69
+ Human readable message explaining why this operation failed. # noqa: E501
70
+
71
+ :param message: The message of this OperationError. # noqa: E501
72
+ :type: str
73
+ """
74
+ if self.local_vars_configuration.client_side_validation and message is None: # noqa: E501
75
+ raise ValueError("Invalid value for `message`, must not be `None`") # noqa: E501
76
+
77
+ self._message = message
78
+
79
+ def to_dict(self):
80
+ """Returns the model properties as a dict"""
81
+ result = {}
82
+
83
+ for attr, _ in six.iteritems(self.openapi_types):
84
+ value = getattr(self, attr)
85
+ if isinstance(value, list):
86
+ result[attr] = list(map(
87
+ lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
88
+ value
89
+ ))
90
+ elif hasattr(value, "to_dict"):
91
+ result[attr] = value.to_dict()
92
+ elif isinstance(value, dict):
93
+ result[attr] = dict(map(
94
+ lambda item: (item[0], item[1].to_dict())
95
+ if hasattr(item[1], "to_dict") else item,
96
+ value.items()
97
+ ))
98
+ else:
99
+ result[attr] = value
100
+
101
+ return result
102
+
103
+ def to_str(self):
104
+ """Returns the string representation of the model"""
105
+ return pprint.pformat(self.to_dict())
106
+
107
+ def __repr__(self):
108
+ """For `print` and `pprint`"""
109
+ return self.to_str()
110
+
111
+ def __eq__(self, other):
112
+ """Returns true if both objects are equal"""
113
+ if not isinstance(other, OperationError):
114
+ return False
115
+
116
+ return self.to_dict() == other.to_dict()
117
+
118
+ def __ne__(self, other):
119
+ """Returns true if both objects are not equal"""
120
+ if not isinstance(other, OperationError):
121
+ return True
122
+
123
+ return self.to_dict() != other.to_dict()
@@ -0,0 +1,123 @@
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 OperationProgress(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
+ 'message': 'str'
37
+ }
38
+
39
+ attribute_map = {
40
+ 'message': 'message'
41
+ }
42
+
43
+ def __init__(self, message=None, local_vars_configuration=None): # noqa: E501
44
+ """OperationProgress - 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._message = None
50
+ self.discriminator = None
51
+
52
+ self.message = message
53
+
54
+ @property
55
+ def message(self):
56
+ """Gets the message of this OperationProgress. # noqa: E501
57
+
58
+ Human readable message about the progress of an operation. # noqa: E501
59
+
60
+ :return: The message of this OperationProgress. # noqa: E501
61
+ :rtype: str
62
+ """
63
+ return self._message
64
+
65
+ @message.setter
66
+ def message(self, message):
67
+ """Sets the message of this OperationProgress.
68
+
69
+ Human readable message about the progress of an operation. # noqa: E501
70
+
71
+ :param message: The message of this OperationProgress. # noqa: E501
72
+ :type: str
73
+ """
74
+ if self.local_vars_configuration.client_side_validation and message is None: # noqa: E501
75
+ raise ValueError("Invalid value for `message`, must not be `None`") # noqa: E501
76
+
77
+ self._message = message
78
+
79
+ def to_dict(self):
80
+ """Returns the model properties as a dict"""
81
+ result = {}
82
+
83
+ for attr, _ in six.iteritems(self.openapi_types):
84
+ value = getattr(self, attr)
85
+ if isinstance(value, list):
86
+ result[attr] = list(map(
87
+ lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
88
+ value
89
+ ))
90
+ elif hasattr(value, "to_dict"):
91
+ result[attr] = value.to_dict()
92
+ elif isinstance(value, dict):
93
+ result[attr] = dict(map(
94
+ lambda item: (item[0], item[1].to_dict())
95
+ if hasattr(item[1], "to_dict") else item,
96
+ value.items()
97
+ ))
98
+ else:
99
+ result[attr] = value
100
+
101
+ return result
102
+
103
+ def to_str(self):
104
+ """Returns the string representation of the model"""
105
+ return pprint.pformat(self.to_dict())
106
+
107
+ def __repr__(self):
108
+ """For `print` and `pprint`"""
109
+ return self.to_str()
110
+
111
+ def __eq__(self, other):
112
+ """Returns true if both objects are equal"""
113
+ if not isinstance(other, OperationProgress):
114
+ return False
115
+
116
+ return self.to_dict() == other.to_dict()
117
+
118
+ def __ne__(self, other):
119
+ """Returns true if both objects are not equal"""
120
+ if not isinstance(other, OperationProgress):
121
+ return True
122
+
123
+ return self.to_dict() != other.to_dict()
@@ -0,0 +1,150 @@
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 OperationResult(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
+ 'data': 'object',
37
+ 'error': 'OperationError'
38
+ }
39
+
40
+ attribute_map = {
41
+ 'data': 'data',
42
+ 'error': 'error'
43
+ }
44
+
45
+ def __init__(self, data=None, error=None, local_vars_configuration=None): # noqa: E501
46
+ """OperationResult - 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._data = None
52
+ self._error = None
53
+ self.discriminator = None
54
+
55
+ if data is not None:
56
+ self.data = data
57
+ if error is not None:
58
+ self.error = error
59
+
60
+ @property
61
+ def data(self):
62
+ """Gets the data of this OperationResult. # noqa: E501
63
+
64
+ The response of this operation in case of success. This is typically the resource that this operation acted on. # noqa: E501
65
+
66
+ :return: The data of this OperationResult. # noqa: E501
67
+ :rtype: object
68
+ """
69
+ return self._data
70
+
71
+ @data.setter
72
+ def data(self, data):
73
+ """Sets the data of this OperationResult.
74
+
75
+ The response of this operation in case of success. This is typically the resource that this operation acted on. # noqa: E501
76
+
77
+ :param data: The data of this OperationResult. # noqa: E501
78
+ :type: object
79
+ """
80
+
81
+ self._data = data
82
+
83
+ @property
84
+ def error(self):
85
+ """Gets the error of this OperationResult. # noqa: E501
86
+
87
+ The response of this operation in case of failure # noqa: E501
88
+
89
+ :return: The error of this OperationResult. # noqa: E501
90
+ :rtype: OperationError
91
+ """
92
+ return self._error
93
+
94
+ @error.setter
95
+ def error(self, error):
96
+ """Sets the error of this OperationResult.
97
+
98
+ The response of this operation in case of failure # noqa: E501
99
+
100
+ :param error: The error of this OperationResult. # noqa: E501
101
+ :type: OperationError
102
+ """
103
+
104
+ self._error = error
105
+
106
+ def to_dict(self):
107
+ """Returns the model properties as a dict"""
108
+ result = {}
109
+
110
+ for attr, _ in six.iteritems(self.openapi_types):
111
+ value = getattr(self, attr)
112
+ if isinstance(value, list):
113
+ result[attr] = list(map(
114
+ lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
115
+ value
116
+ ))
117
+ elif hasattr(value, "to_dict"):
118
+ result[attr] = value.to_dict()
119
+ elif isinstance(value, dict):
120
+ result[attr] = dict(map(
121
+ lambda item: (item[0], item[1].to_dict())
122
+ if hasattr(item[1], "to_dict") else item,
123
+ value.items()
124
+ ))
125
+ else:
126
+ result[attr] = value
127
+
128
+ return result
129
+
130
+ def to_str(self):
131
+ """Returns the string representation of the model"""
132
+ return pprint.pformat(self.to_dict())
133
+
134
+ def __repr__(self):
135
+ """For `print` and `pprint`"""
136
+ return self.to_str()
137
+
138
+ def __eq__(self, other):
139
+ """Returns true if both objects are equal"""
140
+ if not isinstance(other, OperationResult):
141
+ return False
142
+
143
+ return self.to_dict() == other.to_dict()
144
+
145
+ def __ne__(self, other):
146
+ """Returns true if both objects are not equal"""
147
+ if not isinstance(other, OperationResult):
148
+ return True
149
+
150
+ return self.to_dict() != other.to_dict()