anyscale 0.26.33__py3-none-any.whl → 0.26.35__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 (32) hide show
  1. anyscale/_private/anyscale_client/anyscale_client.py +7 -0
  2. anyscale/_private/anyscale_client/common.py +5 -1
  3. anyscale/_private/anyscale_client/fake_anyscale_client.py +7 -2
  4. anyscale/_private/docgen/models.md +2 -2
  5. anyscale/_private/workload/workload_sdk.py +4 -3
  6. anyscale/client/README.md +5 -1
  7. anyscale/client/openapi_client/__init__.py +4 -1
  8. anyscale/client/openapi_client/api/default_api.py +128 -10
  9. anyscale/client/openapi_client/models/__init__.py +4 -1
  10. anyscale/client/openapi_client/models/baseimagesenum.py +2 -1
  11. anyscale/client/openapi_client/models/cloud_deployment.py +31 -30
  12. anyscale/client/openapi_client/models/partition_info.py +152 -0
  13. anyscale/client/openapi_client/models/{pcp_config.py → summarize_machine_pool_request.py} +13 -12
  14. anyscale/client/openapi_client/models/summarize_machine_pool_response.py +181 -0
  15. anyscale/client/openapi_client/models/summarizemachinepoolresponse_response.py +121 -0
  16. anyscale/client/openapi_client/models/supportedbaseimagesenum.py +2 -1
  17. anyscale/client/openapi_client/models/workspace_template_readme.py +32 -3
  18. anyscale/commands/cloud_commands.py +12 -9
  19. anyscale/commands/command_examples.py +23 -6
  20. anyscale/compute_config/_private/compute_config_sdk.py +11 -5
  21. anyscale/job/_private/job_sdk.py +31 -27
  22. anyscale/schedule/_private/schedule_sdk.py +7 -0
  23. anyscale/sdk/anyscale_client/models/baseimagesenum.py +2 -1
  24. anyscale/sdk/anyscale_client/models/supportedbaseimagesenum.py +2 -1
  25. anyscale/version.py +1 -1
  26. {anyscale-0.26.33.dist-info → anyscale-0.26.35.dist-info}/METADATA +1 -1
  27. {anyscale-0.26.33.dist-info → anyscale-0.26.35.dist-info}/RECORD +32 -29
  28. {anyscale-0.26.33.dist-info → anyscale-0.26.35.dist-info}/LICENSE +0 -0
  29. {anyscale-0.26.33.dist-info → anyscale-0.26.35.dist-info}/NOTICE +0 -0
  30. {anyscale-0.26.33.dist-info → anyscale-0.26.35.dist-info}/WHEEL +0 -0
  31. {anyscale-0.26.33.dist-info → anyscale-0.26.35.dist-info}/entry_points.txt +0 -0
  32. {anyscale-0.26.33.dist-info → anyscale-0.26.35.dist-info}/top_level.txt +0 -0
@@ -0,0 +1,152 @@
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 PartitionInfo(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
+ 'partition_name': 'str',
37
+ 'allocation_states': 'dict(str, int)'
38
+ }
39
+
40
+ attribute_map = {
41
+ 'partition_name': 'partition_name',
42
+ 'allocation_states': 'allocation_states'
43
+ }
44
+
45
+ def __init__(self, partition_name=None, allocation_states=None, local_vars_configuration=None): # noqa: E501
46
+ """PartitionInfo - 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._partition_name = None
52
+ self._allocation_states = None
53
+ self.discriminator = None
54
+
55
+ self.partition_name = partition_name
56
+ self.allocation_states = allocation_states
57
+
58
+ @property
59
+ def partition_name(self):
60
+ """Gets the partition_name of this PartitionInfo. # noqa: E501
61
+
62
+ The name of the partition. # noqa: E501
63
+
64
+ :return: The partition_name of this PartitionInfo. # noqa: E501
65
+ :rtype: str
66
+ """
67
+ return self._partition_name
68
+
69
+ @partition_name.setter
70
+ def partition_name(self, partition_name):
71
+ """Sets the partition_name of this PartitionInfo.
72
+
73
+ The name of the partition. # noqa: E501
74
+
75
+ :param partition_name: The partition_name of this PartitionInfo. # noqa: E501
76
+ :type: str
77
+ """
78
+ if self.local_vars_configuration.client_side_validation and partition_name is None: # noqa: E501
79
+ raise ValueError("Invalid value for `partition_name`, must not be `None`") # noqa: E501
80
+
81
+ self._partition_name = partition_name
82
+
83
+ @property
84
+ def allocation_states(self):
85
+ """Gets the allocation_states of this PartitionInfo. # noqa: E501
86
+
87
+ The number of machines in each allocation state. # noqa: E501
88
+
89
+ :return: The allocation_states of this PartitionInfo. # noqa: E501
90
+ :rtype: dict(str, int)
91
+ """
92
+ return self._allocation_states
93
+
94
+ @allocation_states.setter
95
+ def allocation_states(self, allocation_states):
96
+ """Sets the allocation_states of this PartitionInfo.
97
+
98
+ The number of machines in each allocation state. # noqa: E501
99
+
100
+ :param allocation_states: The allocation_states of this PartitionInfo. # noqa: E501
101
+ :type: dict(str, int)
102
+ """
103
+ if self.local_vars_configuration.client_side_validation and allocation_states is None: # noqa: E501
104
+ raise ValueError("Invalid value for `allocation_states`, must not be `None`") # noqa: E501
105
+
106
+ self._allocation_states = allocation_states
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, PartitionInfo):
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, PartitionInfo):
150
+ return True
151
+
152
+ 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 PCPConfig(object):
21
+ class SummarizeMachinePoolRequest(object):
22
22
  """NOTE: This class is auto generated by OpenAPI Generator.
23
23
  Ref: https://openapi-generator.tech
24
24
 
@@ -41,7 +41,7 @@ class PCPConfig(object):
41
41
  }
42
42
 
43
43
  def __init__(self, machine_pool_name=None, local_vars_configuration=None): # noqa: E501
44
- """PCPConfig - a model defined in OpenAPI""" # noqa: E501
44
+ """SummarizeMachinePoolRequest - 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
@@ -49,29 +49,30 @@ class PCPConfig(object):
49
49
  self._machine_pool_name = None
50
50
  self.discriminator = None
51
51
 
52
- if machine_pool_name is not None:
53
- self.machine_pool_name = machine_pool_name
52
+ self.machine_pool_name = machine_pool_name
54
53
 
55
54
  @property
56
55
  def machine_pool_name(self):
57
- """Gets the machine_pool_name of this PCPConfig. # noqa: E501
56
+ """Gets the machine_pool_name of this SummarizeMachinePoolRequest. # noqa: E501
58
57
 
59
- The name of the machine pool. # noqa: E501
58
+ The name of the machine pool to summarize. # noqa: E501
60
59
 
61
- :return: The machine_pool_name of this PCPConfig. # noqa: E501
60
+ :return: The machine_pool_name of this SummarizeMachinePoolRequest. # noqa: E501
62
61
  :rtype: str
63
62
  """
64
63
  return self._machine_pool_name
65
64
 
66
65
  @machine_pool_name.setter
67
66
  def machine_pool_name(self, machine_pool_name):
68
- """Sets the machine_pool_name of this PCPConfig.
67
+ """Sets the machine_pool_name of this SummarizeMachinePoolRequest.
69
68
 
70
- The name of the machine pool. # noqa: E501
69
+ The name of the machine pool to summarize. # noqa: E501
71
70
 
72
- :param machine_pool_name: The machine_pool_name of this PCPConfig. # noqa: E501
71
+ :param machine_pool_name: The machine_pool_name of this SummarizeMachinePoolRequest. # noqa: E501
73
72
  :type: str
74
73
  """
74
+ if self.local_vars_configuration.client_side_validation and machine_pool_name is None: # noqa: E501
75
+ raise ValueError("Invalid value for `machine_pool_name`, must not be `None`") # noqa: E501
75
76
 
76
77
  self._machine_pool_name = machine_pool_name
77
78
 
@@ -109,14 +110,14 @@ class PCPConfig(object):
109
110
 
110
111
  def __eq__(self, other):
111
112
  """Returns true if both objects are equal"""
112
- if not isinstance(other, PCPConfig):
113
+ if not isinstance(other, SummarizeMachinePoolRequest):
113
114
  return False
114
115
 
115
116
  return self.to_dict() == other.to_dict()
116
117
 
117
118
  def __ne__(self, other):
118
119
  """Returns true if both objects are not equal"""
119
- if not isinstance(other, PCPConfig):
120
+ if not isinstance(other, SummarizeMachinePoolRequest):
120
121
  return True
121
122
 
122
123
  return self.to_dict() != other.to_dict()
@@ -0,0 +1,181 @@
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 SummarizeMachinePoolResponse(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
+ 'partitions': 'list[PartitionInfo]',
37
+ 'running_workloads': 'int',
38
+ 'queued_workloads': 'int'
39
+ }
40
+
41
+ attribute_map = {
42
+ 'partitions': 'partitions',
43
+ 'running_workloads': 'running_workloads',
44
+ 'queued_workloads': 'queued_workloads'
45
+ }
46
+
47
+ def __init__(self, partitions=None, running_workloads=None, queued_workloads=None, local_vars_configuration=None): # noqa: E501
48
+ """SummarizeMachinePoolResponse - 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._partitions = None
54
+ self._running_workloads = None
55
+ self._queued_workloads = None
56
+ self.discriminator = None
57
+
58
+ self.partitions = partitions
59
+ self.running_workloads = running_workloads
60
+ self.queued_workloads = queued_workloads
61
+
62
+ @property
63
+ def partitions(self):
64
+ """Gets the partitions of this SummarizeMachinePoolResponse. # noqa: E501
65
+
66
+ Summary for each partition in the machine pool. # noqa: E501
67
+
68
+ :return: The partitions of this SummarizeMachinePoolResponse. # noqa: E501
69
+ :rtype: list[PartitionInfo]
70
+ """
71
+ return self._partitions
72
+
73
+ @partitions.setter
74
+ def partitions(self, partitions):
75
+ """Sets the partitions of this SummarizeMachinePoolResponse.
76
+
77
+ Summary for each partition in the machine pool. # noqa: E501
78
+
79
+ :param partitions: The partitions of this SummarizeMachinePoolResponse. # noqa: E501
80
+ :type: list[PartitionInfo]
81
+ """
82
+ if self.local_vars_configuration.client_side_validation and partitions is None: # noqa: E501
83
+ raise ValueError("Invalid value for `partitions`, must not be `None`") # noqa: E501
84
+
85
+ self._partitions = partitions
86
+
87
+ @property
88
+ def running_workloads(self):
89
+ """Gets the running_workloads of this SummarizeMachinePoolResponse. # noqa: E501
90
+
91
+ The number of running workloads. # noqa: E501
92
+
93
+ :return: The running_workloads of this SummarizeMachinePoolResponse. # noqa: E501
94
+ :rtype: int
95
+ """
96
+ return self._running_workloads
97
+
98
+ @running_workloads.setter
99
+ def running_workloads(self, running_workloads):
100
+ """Sets the running_workloads of this SummarizeMachinePoolResponse.
101
+
102
+ The number of running workloads. # noqa: E501
103
+
104
+ :param running_workloads: The running_workloads of this SummarizeMachinePoolResponse. # noqa: E501
105
+ :type: int
106
+ """
107
+ if self.local_vars_configuration.client_side_validation and running_workloads is None: # noqa: E501
108
+ raise ValueError("Invalid value for `running_workloads`, must not be `None`") # noqa: E501
109
+
110
+ self._running_workloads = running_workloads
111
+
112
+ @property
113
+ def queued_workloads(self):
114
+ """Gets the queued_workloads of this SummarizeMachinePoolResponse. # noqa: E501
115
+
116
+ The number of queued workloads. # noqa: E501
117
+
118
+ :return: The queued_workloads of this SummarizeMachinePoolResponse. # noqa: E501
119
+ :rtype: int
120
+ """
121
+ return self._queued_workloads
122
+
123
+ @queued_workloads.setter
124
+ def queued_workloads(self, queued_workloads):
125
+ """Sets the queued_workloads of this SummarizeMachinePoolResponse.
126
+
127
+ The number of queued workloads. # noqa: E501
128
+
129
+ :param queued_workloads: The queued_workloads of this SummarizeMachinePoolResponse. # noqa: E501
130
+ :type: int
131
+ """
132
+ if self.local_vars_configuration.client_side_validation and queued_workloads is None: # noqa: E501
133
+ raise ValueError("Invalid value for `queued_workloads`, must not be `None`") # noqa: E501
134
+
135
+ self._queued_workloads = queued_workloads
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, SummarizeMachinePoolResponse):
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, SummarizeMachinePoolResponse):
179
+ return True
180
+
181
+ return self.to_dict() != other.to_dict()
@@ -0,0 +1,121 @@
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 SummarizemachinepoolresponseResponse(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': 'SummarizeMachinePoolResponse'
37
+ }
38
+
39
+ attribute_map = {
40
+ 'result': 'result'
41
+ }
42
+
43
+ def __init__(self, result=None, local_vars_configuration=None): # noqa: E501
44
+ """SummarizemachinepoolresponseResponse - 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 SummarizemachinepoolresponseResponse. # noqa: E501
57
+
58
+
59
+ :return: The result of this SummarizemachinepoolresponseResponse. # noqa: E501
60
+ :rtype: SummarizeMachinePoolResponse
61
+ """
62
+ return self._result
63
+
64
+ @result.setter
65
+ def result(self, result):
66
+ """Sets the result of this SummarizemachinepoolresponseResponse.
67
+
68
+
69
+ :param result: The result of this SummarizemachinepoolresponseResponse. # noqa: E501
70
+ :type: SummarizeMachinePoolResponse
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, SummarizemachinepoolresponseResponse):
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, SummarizemachinepoolresponseResponse):
119
+ return True
120
+
121
+ return self.to_dict() != other.to_dict()