anyscale 0.26.4__py3-none-any.whl → 0.26.6__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 (53) hide show
  1. anyscale/_private/anyscale_client/anyscale_client.py +1 -5
  2. anyscale/_private/docgen/__main__.py +0 -3
  3. anyscale/_private/docgen/api.md +0 -40
  4. anyscale/_private/docgen/models.md +0 -49
  5. anyscale/anyscale-cloud-setup-gcp-oa.yaml +2 -1
  6. anyscale/anyscale-cloud-setup-gcp.yaml +4 -2
  7. anyscale/client/README.md +9 -27
  8. anyscale/client/openapi_client/__init__.py +7 -13
  9. anyscale/client/openapi_client/api/default_api.py +476 -1946
  10. anyscale/client/openapi_client/models/__init__.py +7 -13
  11. anyscale/client/openapi_client/models/{clusterconfigwithsessionidletimeout_response.py → backend_server_api_product_models_dataset_runs_dataset_response.py} +22 -22
  12. anyscale/client/openapi_client/models/{dataset_response.py → backend_server_api_product_routers_datasets_router_dataset_response.py} +8 -8
  13. anyscale/client/openapi_client/models/create_session_from_snapshot_options.py +3 -30
  14. anyscale/client/openapi_client/models/{clusterconfig_response.py → dataset_jobs.py} +22 -22
  15. anyscale/client/openapi_client/models/dataset_metrics.py +390 -0
  16. anyscale/{sdk/anyscale_client/models/session_command_types.py → client/openapi_client/models/dataset_state.py} +11 -9
  17. anyscale/client/openapi_client/models/{organization_availability.py → metric.py} +64 -39
  18. anyscale/client/openapi_client/models/operator_metrics.py +256 -0
  19. anyscale/client/openapi_client/models/train_run.py +28 -1
  20. anyscale/cluster.py +5 -2
  21. anyscale/commands/anyscale_api/api_commands.py +0 -2
  22. anyscale/commands/workspace_commands.py +3 -3
  23. anyscale/connect_utils/start_interactive_session.py +4 -1
  24. anyscale/controllers/cluster_controller.py +15 -26
  25. anyscale/controllers/project_controller.py +1 -6
  26. anyscale/job/_private/job_sdk.py +6 -1
  27. anyscale/job/models.py +8 -0
  28. anyscale/project_utils.py +9 -20
  29. anyscale/sdk/anyscale_client/__init__.py +0 -5
  30. anyscale/sdk/anyscale_client/api/default_api.py +0 -474
  31. anyscale/sdk/anyscale_client/models/__init__.py +0 -5
  32. anyscale/version.py +1 -1
  33. {anyscale-0.26.4.dist-info → anyscale-0.26.6.dist-info}/METADATA +1 -1
  34. {anyscale-0.26.4.dist-info → anyscale-0.26.6.dist-info}/RECORD +39 -51
  35. anyscale/client/openapi_client/models/anyscale_version_response.py +0 -121
  36. anyscale/client/openapi_client/models/anyscaleversionresponse_response.py +0 -121
  37. anyscale/client/openapi_client/models/cluster_config.py +0 -178
  38. anyscale/client/openapi_client/models/cluster_config_with_session_idle_timeout.py +0 -204
  39. anyscale/client/openapi_client/models/cluster_startup.py +0 -208
  40. anyscale/client/openapi_client/models/decoratedjob_list_response.py +0 -147
  41. anyscale/client/openapi_client/models/execute_shell_command_options.py +0 -121
  42. anyscale/client/openapi_client/models/organizationavailability_response.py +0 -121
  43. anyscale/client/openapi_client/models/setup_initialize_session_options.py +0 -225
  44. anyscale/commands/anyscale_api/session_commands_commands.py +0 -80
  45. anyscale/sdk/anyscale_client/models/create_session_command.py +0 -152
  46. anyscale/sdk/anyscale_client/models/session_command.py +0 -350
  47. anyscale/sdk/anyscale_client/models/sessioncommand_list_response.py +0 -147
  48. anyscale/sdk/anyscale_client/models/sessioncommand_response.py +0 -121
  49. {anyscale-0.26.4.dist-info → anyscale-0.26.6.dist-info}/LICENSE +0 -0
  50. {anyscale-0.26.4.dist-info → anyscale-0.26.6.dist-info}/NOTICE +0 -0
  51. {anyscale-0.26.4.dist-info → anyscale-0.26.6.dist-info}/WHEEL +0 -0
  52. {anyscale-0.26.4.dist-info → anyscale-0.26.6.dist-info}/entry_points.txt +0 -0
  53. {anyscale-0.26.4.dist-info → anyscale-0.26.6.dist-info}/top_level.txt +0 -0
@@ -1,178 +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 ClusterConfig(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
- 'config': 'str',
37
- 'config_with_defaults': 'str',
38
- 'last_modified_at': 'datetime'
39
- }
40
-
41
- attribute_map = {
42
- 'config': 'config',
43
- 'config_with_defaults': 'config_with_defaults',
44
- 'last_modified_at': 'last_modified_at'
45
- }
46
-
47
- def __init__(self, config=None, config_with_defaults=None, last_modified_at=None, local_vars_configuration=None): # noqa: E501
48
- """ClusterConfig - 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._config = None
54
- self._config_with_defaults = None
55
- self._last_modified_at = None
56
- self.discriminator = None
57
-
58
- self.config = config
59
- self.config_with_defaults = config_with_defaults
60
- if last_modified_at is not None:
61
- self.last_modified_at = last_modified_at
62
-
63
- @property
64
- def config(self):
65
- """Gets the config of this ClusterConfig. # noqa: E501
66
-
67
- The cluster configuration in JSON format. # noqa: E501
68
-
69
- :return: The config of this ClusterConfig. # noqa: E501
70
- :rtype: str
71
- """
72
- return self._config
73
-
74
- @config.setter
75
- def config(self, config):
76
- """Sets the config of this ClusterConfig.
77
-
78
- The cluster configuration in JSON format. # noqa: E501
79
-
80
- :param config: The config of this ClusterConfig. # noqa: E501
81
- :type: str
82
- """
83
- if self.local_vars_configuration.client_side_validation and config is None: # noqa: E501
84
- raise ValueError("Invalid value for `config`, must not be `None`") # noqa: E501
85
-
86
- self._config = config
87
-
88
- @property
89
- def config_with_defaults(self):
90
- """Gets the config_with_defaults of this ClusterConfig. # noqa: E501
91
-
92
- The cluster configuration in JSON format with the defaults filled in. # noqa: E501
93
-
94
- :return: The config_with_defaults of this ClusterConfig. # noqa: E501
95
- :rtype: str
96
- """
97
- return self._config_with_defaults
98
-
99
- @config_with_defaults.setter
100
- def config_with_defaults(self, config_with_defaults):
101
- """Sets the config_with_defaults of this ClusterConfig.
102
-
103
- The cluster configuration in JSON format with the defaults filled in. # noqa: E501
104
-
105
- :param config_with_defaults: The config_with_defaults of this ClusterConfig. # noqa: E501
106
- :type: str
107
- """
108
- if self.local_vars_configuration.client_side_validation and config_with_defaults is None: # noqa: E501
109
- raise ValueError("Invalid value for `config_with_defaults`, must not be `None`") # noqa: E501
110
-
111
- self._config_with_defaults = config_with_defaults
112
-
113
- @property
114
- def last_modified_at(self):
115
- """Gets the last_modified_at of this ClusterConfig. # noqa: E501
116
-
117
-
118
- :return: The last_modified_at of this ClusterConfig. # noqa: E501
119
- :rtype: datetime
120
- """
121
- return self._last_modified_at
122
-
123
- @last_modified_at.setter
124
- def last_modified_at(self, last_modified_at):
125
- """Sets the last_modified_at of this ClusterConfig.
126
-
127
-
128
- :param last_modified_at: The last_modified_at of this ClusterConfig. # noqa: E501
129
- :type: datetime
130
- """
131
-
132
- self._last_modified_at = last_modified_at
133
-
134
- def to_dict(self):
135
- """Returns the model properties as a dict"""
136
- result = {}
137
-
138
- for attr, _ in six.iteritems(self.openapi_types):
139
- value = getattr(self, attr)
140
- if isinstance(value, list):
141
- result[attr] = list(map(
142
- lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
143
- value
144
- ))
145
- elif hasattr(value, "to_dict"):
146
- result[attr] = value.to_dict()
147
- elif isinstance(value, dict):
148
- result[attr] = dict(map(
149
- lambda item: (item[0], item[1].to_dict())
150
- if hasattr(item[1], "to_dict") else item,
151
- value.items()
152
- ))
153
- else:
154
- result[attr] = value
155
-
156
- return result
157
-
158
- def to_str(self):
159
- """Returns the string representation of the model"""
160
- return pprint.pformat(self.to_dict())
161
-
162
- def __repr__(self):
163
- """For `print` and `pprint`"""
164
- return self.to_str()
165
-
166
- def __eq__(self, other):
167
- """Returns true if both objects are equal"""
168
- if not isinstance(other, ClusterConfig):
169
- return False
170
-
171
- return self.to_dict() == other.to_dict()
172
-
173
- def __ne__(self, other):
174
- """Returns true if both objects are not equal"""
175
- if not isinstance(other, ClusterConfig):
176
- return True
177
-
178
- return self.to_dict() != other.to_dict()
@@ -1,204 +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 ClusterConfigWithSessionIdleTimeout(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
- 'config': 'str',
37
- 'config_with_defaults': 'str',
38
- 'last_modified_at': 'datetime',
39
- 'idle_timeout': 'int'
40
- }
41
-
42
- attribute_map = {
43
- 'config': 'config',
44
- 'config_with_defaults': 'config_with_defaults',
45
- 'last_modified_at': 'last_modified_at',
46
- 'idle_timeout': 'idle_timeout'
47
- }
48
-
49
- def __init__(self, config=None, config_with_defaults=None, last_modified_at=None, idle_timeout=None, local_vars_configuration=None): # noqa: E501
50
- """ClusterConfigWithSessionIdleTimeout - a model defined in OpenAPI""" # noqa: E501
51
- if local_vars_configuration is None:
52
- local_vars_configuration = Configuration()
53
- self.local_vars_configuration = local_vars_configuration
54
-
55
- self._config = None
56
- self._config_with_defaults = None
57
- self._last_modified_at = None
58
- self._idle_timeout = None
59
- self.discriminator = None
60
-
61
- self.config = config
62
- self.config_with_defaults = config_with_defaults
63
- if last_modified_at is not None:
64
- self.last_modified_at = last_modified_at
65
- if idle_timeout is not None:
66
- self.idle_timeout = idle_timeout
67
-
68
- @property
69
- def config(self):
70
- """Gets the config of this ClusterConfigWithSessionIdleTimeout. # noqa: E501
71
-
72
- The cluster configuration in JSON format. # noqa: E501
73
-
74
- :return: The config of this ClusterConfigWithSessionIdleTimeout. # noqa: E501
75
- :rtype: str
76
- """
77
- return self._config
78
-
79
- @config.setter
80
- def config(self, config):
81
- """Sets the config of this ClusterConfigWithSessionIdleTimeout.
82
-
83
- The cluster configuration in JSON format. # noqa: E501
84
-
85
- :param config: The config of this ClusterConfigWithSessionIdleTimeout. # noqa: E501
86
- :type: str
87
- """
88
- if self.local_vars_configuration.client_side_validation and config is None: # noqa: E501
89
- raise ValueError("Invalid value for `config`, must not be `None`") # noqa: E501
90
-
91
- self._config = config
92
-
93
- @property
94
- def config_with_defaults(self):
95
- """Gets the config_with_defaults of this ClusterConfigWithSessionIdleTimeout. # noqa: E501
96
-
97
- The cluster configuration in JSON format with the defaults filled in. # noqa: E501
98
-
99
- :return: The config_with_defaults of this ClusterConfigWithSessionIdleTimeout. # noqa: E501
100
- :rtype: str
101
- """
102
- return self._config_with_defaults
103
-
104
- @config_with_defaults.setter
105
- def config_with_defaults(self, config_with_defaults):
106
- """Sets the config_with_defaults of this ClusterConfigWithSessionIdleTimeout.
107
-
108
- The cluster configuration in JSON format with the defaults filled in. # noqa: E501
109
-
110
- :param config_with_defaults: The config_with_defaults of this ClusterConfigWithSessionIdleTimeout. # noqa: E501
111
- :type: str
112
- """
113
- if self.local_vars_configuration.client_side_validation and config_with_defaults is None: # noqa: E501
114
- raise ValueError("Invalid value for `config_with_defaults`, must not be `None`") # noqa: E501
115
-
116
- self._config_with_defaults = config_with_defaults
117
-
118
- @property
119
- def last_modified_at(self):
120
- """Gets the last_modified_at of this ClusterConfigWithSessionIdleTimeout. # noqa: E501
121
-
122
-
123
- :return: The last_modified_at of this ClusterConfigWithSessionIdleTimeout. # noqa: E501
124
- :rtype: datetime
125
- """
126
- return self._last_modified_at
127
-
128
- @last_modified_at.setter
129
- def last_modified_at(self, last_modified_at):
130
- """Sets the last_modified_at of this ClusterConfigWithSessionIdleTimeout.
131
-
132
-
133
- :param last_modified_at: The last_modified_at of this ClusterConfigWithSessionIdleTimeout. # noqa: E501
134
- :type: datetime
135
- """
136
-
137
- self._last_modified_at = last_modified_at
138
-
139
- @property
140
- def idle_timeout(self):
141
- """Gets the idle_timeout of this ClusterConfigWithSessionIdleTimeout. # noqa: E501
142
-
143
-
144
- :return: The idle_timeout of this ClusterConfigWithSessionIdleTimeout. # noqa: E501
145
- :rtype: int
146
- """
147
- return self._idle_timeout
148
-
149
- @idle_timeout.setter
150
- def idle_timeout(self, idle_timeout):
151
- """Sets the idle_timeout of this ClusterConfigWithSessionIdleTimeout.
152
-
153
-
154
- :param idle_timeout: The idle_timeout of this ClusterConfigWithSessionIdleTimeout. # noqa: E501
155
- :type: int
156
- """
157
-
158
- self._idle_timeout = idle_timeout
159
-
160
- def to_dict(self):
161
- """Returns the model properties as a dict"""
162
- result = {}
163
-
164
- for attr, _ in six.iteritems(self.openapi_types):
165
- value = getattr(self, attr)
166
- if isinstance(value, list):
167
- result[attr] = list(map(
168
- lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
169
- value
170
- ))
171
- elif hasattr(value, "to_dict"):
172
- result[attr] = value.to_dict()
173
- elif isinstance(value, dict):
174
- result[attr] = dict(map(
175
- lambda item: (item[0], item[1].to_dict())
176
- if hasattr(item[1], "to_dict") else item,
177
- value.items()
178
- ))
179
- else:
180
- result[attr] = value
181
-
182
- return result
183
-
184
- def to_str(self):
185
- """Returns the string representation of the model"""
186
- return pprint.pformat(self.to_dict())
187
-
188
- def __repr__(self):
189
- """For `print` and `pprint`"""
190
- return self.to_str()
191
-
192
- def __eq__(self, other):
193
- """Returns true if both objects are equal"""
194
- if not isinstance(other, ClusterConfigWithSessionIdleTimeout):
195
- return False
196
-
197
- return self.to_dict() == other.to_dict()
198
-
199
- def __ne__(self, other):
200
- """Returns true if both objects are not equal"""
201
- if not isinstance(other, ClusterConfigWithSessionIdleTimeout):
202
- return True
203
-
204
- return self.to_dict() != other.to_dict()
@@ -1,208 +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 ClusterStartup(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
- 'start_time': 'datetime',
37
- 'cluster_id': 'str',
38
- 'id': 'str',
39
- 'finish_time': 'datetime'
40
- }
41
-
42
- attribute_map = {
43
- 'start_time': 'start_time',
44
- 'cluster_id': 'cluster_id',
45
- 'id': 'id',
46
- 'finish_time': 'finish_time'
47
- }
48
-
49
- def __init__(self, start_time=None, cluster_id=None, id=None, finish_time=None, local_vars_configuration=None): # noqa: E501
50
- """ClusterStartup - a model defined in OpenAPI""" # noqa: E501
51
- if local_vars_configuration is None:
52
- local_vars_configuration = Configuration()
53
- self.local_vars_configuration = local_vars_configuration
54
-
55
- self._start_time = None
56
- self._cluster_id = None
57
- self._id = None
58
- self._finish_time = None
59
- self.discriminator = None
60
-
61
- self.start_time = start_time
62
- if cluster_id is not None:
63
- self.cluster_id = cluster_id
64
- self.id = id
65
- if finish_time is not None:
66
- self.finish_time = finish_time
67
-
68
- @property
69
- def start_time(self):
70
- """Gets the start_time of this ClusterStartup. # noqa: E501
71
-
72
- When the startup was initiated. Should be timezone-aware. # noqa: E501
73
-
74
- :return: The start_time of this ClusterStartup. # noqa: E501
75
- :rtype: datetime
76
- """
77
- return self._start_time
78
-
79
- @start_time.setter
80
- def start_time(self, start_time):
81
- """Sets the start_time of this ClusterStartup.
82
-
83
- When the startup was initiated. Should be timezone-aware. # noqa: E501
84
-
85
- :param start_time: The start_time of this ClusterStartup. # noqa: E501
86
- :type: datetime
87
- """
88
- if self.local_vars_configuration.client_side_validation and start_time is None: # noqa: E501
89
- raise ValueError("Invalid value for `start_time`, must not be `None`") # noqa: E501
90
-
91
- self._start_time = start_time
92
-
93
- @property
94
- def cluster_id(self):
95
- """Gets the cluster_id of this ClusterStartup. # noqa: E501
96
-
97
- Cluster ID from sessions table. None if not known yet. # noqa: E501
98
-
99
- :return: The cluster_id of this ClusterStartup. # noqa: E501
100
- :rtype: str
101
- """
102
- return self._cluster_id
103
-
104
- @cluster_id.setter
105
- def cluster_id(self, cluster_id):
106
- """Sets the cluster_id of this ClusterStartup.
107
-
108
- Cluster ID from sessions table. None if not known yet. # noqa: E501
109
-
110
- :param cluster_id: The cluster_id of this ClusterStartup. # noqa: E501
111
- :type: str
112
- """
113
-
114
- self._cluster_id = cluster_id
115
-
116
- @property
117
- def id(self):
118
- """Gets the id of this ClusterStartup. # noqa: E501
119
-
120
- Unique identifier for this startup. # noqa: E501
121
-
122
- :return: The id of this ClusterStartup. # noqa: E501
123
- :rtype: str
124
- """
125
- return self._id
126
-
127
- @id.setter
128
- def id(self, id):
129
- """Sets the id of this ClusterStartup.
130
-
131
- Unique identifier for this startup. # noqa: E501
132
-
133
- :param id: The id of this ClusterStartup. # noqa: E501
134
- :type: str
135
- """
136
- if self.local_vars_configuration.client_side_validation and id is None: # noqa: E501
137
- raise ValueError("Invalid value for `id`, must not be `None`") # noqa: E501
138
-
139
- self._id = id
140
-
141
- @property
142
- def finish_time(self):
143
- """Gets the finish_time of this ClusterStartup. # noqa: E501
144
-
145
- When this cluster startup has finished; None if it is still in progress. # noqa: E501
146
-
147
- :return: The finish_time of this ClusterStartup. # noqa: E501
148
- :rtype: datetime
149
- """
150
- return self._finish_time
151
-
152
- @finish_time.setter
153
- def finish_time(self, finish_time):
154
- """Sets the finish_time of this ClusterStartup.
155
-
156
- When this cluster startup has finished; None if it is still in progress. # noqa: E501
157
-
158
- :param finish_time: The finish_time of this ClusterStartup. # noqa: E501
159
- :type: datetime
160
- """
161
-
162
- self._finish_time = finish_time
163
-
164
- def to_dict(self):
165
- """Returns the model properties as a dict"""
166
- result = {}
167
-
168
- for attr, _ in six.iteritems(self.openapi_types):
169
- value = getattr(self, attr)
170
- if isinstance(value, list):
171
- result[attr] = list(map(
172
- lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
173
- value
174
- ))
175
- elif hasattr(value, "to_dict"):
176
- result[attr] = value.to_dict()
177
- elif isinstance(value, dict):
178
- result[attr] = dict(map(
179
- lambda item: (item[0], item[1].to_dict())
180
- if hasattr(item[1], "to_dict") else item,
181
- value.items()
182
- ))
183
- else:
184
- result[attr] = value
185
-
186
- return result
187
-
188
- def to_str(self):
189
- """Returns the string representation of the model"""
190
- return pprint.pformat(self.to_dict())
191
-
192
- def __repr__(self):
193
- """For `print` and `pprint`"""
194
- return self.to_str()
195
-
196
- def __eq__(self, other):
197
- """Returns true if both objects are equal"""
198
- if not isinstance(other, ClusterStartup):
199
- return False
200
-
201
- return self.to_dict() == other.to_dict()
202
-
203
- def __ne__(self, other):
204
- """Returns true if both objects are not equal"""
205
- if not isinstance(other, ClusterStartup):
206
- return True
207
-
208
- return self.to_dict() != other.to_dict()