anyscale 0.26.57__py3-none-any.whl → 0.26.58__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 (52) hide show
  1. anyscale/client/README.md +45 -0
  2. anyscale/client/openapi_client/__init__.py +32 -0
  3. anyscale/client/openapi_client/api/default_api.py +1882 -244
  4. anyscale/client/openapi_client/models/__init__.py +32 -0
  5. anyscale/client/openapi_client/models/apply_production_service_v2_model.py +31 -3
  6. anyscale/client/openapi_client/models/create_experimental_workspace.py +29 -1
  7. anyscale/client/openapi_client/models/create_workspace_template.py +404 -0
  8. anyscale/client/openapi_client/models/create_workspace_template_version.py +178 -0
  9. anyscale/client/openapi_client/models/delete_resource_tags_request.py +175 -0
  10. anyscale/client/openapi_client/models/deleted_count.py +121 -0
  11. anyscale/client/openapi_client/models/deletedcount_response.py +121 -0
  12. anyscale/client/openapi_client/models/global_workspace_template.py +465 -0
  13. anyscale/client/openapi_client/models/globalworkspacetemplate_list_response.py +147 -0
  14. anyscale/client/openapi_client/models/published_filter.py +101 -0
  15. anyscale/client/openapi_client/models/resource_tag_record.py +310 -0
  16. anyscale/client/openapi_client/models/resource_tag_resource_type.py +102 -0
  17. anyscale/client/openapi_client/models/resource_tags_list.py +121 -0
  18. anyscale/client/openapi_client/models/resourcetagslist_response.py +121 -0
  19. anyscale/client/openapi_client/models/tag_key.py +121 -0
  20. anyscale/client/openapi_client/models/tag_key_value.py +148 -0
  21. anyscale/client/openapi_client/models/tag_search_in.py +101 -0
  22. anyscale/client/openapi_client/models/tag_value.py +121 -0
  23. anyscale/client/openapi_client/models/tagkey_list_response.py +147 -0
  24. anyscale/client/openapi_client/models/tagkeyvalue_list_response.py +147 -0
  25. anyscale/client/openapi_client/models/tagvalue_list_response.py +147 -0
  26. anyscale/client/openapi_client/models/task_attempts.py +101 -0
  27. anyscale/client/openapi_client/models/task_table_config.py +29 -3
  28. anyscale/client/openapi_client/models/upsert_resource_tags_request.py +175 -0
  29. anyscale/client/openapi_client/models/workspace_system_artifacts.py +234 -0
  30. anyscale/client/openapi_client/models/workspace_template.py +343 -204
  31. anyscale/client/openapi_client/models/workspace_template_category.py +100 -0
  32. anyscale/client/openapi_client/models/workspace_template_complexity.py +101 -0
  33. anyscale/client/openapi_client/models/workspace_template_icon_background_color.py +105 -0
  34. anyscale/client/openapi_client/models/workspace_template_icon_type.py +108 -0
  35. anyscale/client/openapi_client/models/workspace_template_version.py +323 -0
  36. anyscale/client/openapi_client/models/workspace_template_version_data_object.py +323 -0
  37. anyscale/client/openapi_client/models/workspace_templates_sort_field.py +101 -0
  38. anyscale/client/openapi_client/models/workspacetemplate_response.py +121 -0
  39. anyscale/client/openapi_client/models/workspacetemplateversion_list_response.py +147 -0
  40. anyscale/client/openapi_client/models/workspacetemplateversion_response.py +121 -0
  41. anyscale/commands/command_examples.py +1 -1
  42. anyscale/sdk/anyscale_client/models/apply_production_service_v2_model.py +31 -3
  43. anyscale/sdk/anyscale_client/models/apply_service_model.py +31 -3
  44. anyscale/shared_anyscale_utils/utils/id_gen.py +3 -0
  45. anyscale/version.py +1 -1
  46. {anyscale-0.26.57.dist-info → anyscale-0.26.58.dist-info}/METADATA +1 -1
  47. {anyscale-0.26.57.dist-info → anyscale-0.26.58.dist-info}/RECORD +52 -20
  48. {anyscale-0.26.57.dist-info → anyscale-0.26.58.dist-info}/WHEEL +0 -0
  49. {anyscale-0.26.57.dist-info → anyscale-0.26.58.dist-info}/entry_points.txt +0 -0
  50. {anyscale-0.26.57.dist-info → anyscale-0.26.58.dist-info}/licenses/LICENSE +0 -0
  51. {anyscale-0.26.57.dist-info → anyscale-0.26.58.dist-info}/licenses/NOTICE +0 -0
  52. {anyscale-0.26.57.dist-info → anyscale-0.26.58.dist-info}/top_level.txt +0 -0
@@ -0,0 +1,175 @@
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 UpsertResourceTagsRequest(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
+ 'resource_type': 'ResourceTagResourceType',
37
+ 'resource_id': 'str',
38
+ 'tags': 'dict(str, str)'
39
+ }
40
+
41
+ attribute_map = {
42
+ 'resource_type': 'resource_type',
43
+ 'resource_id': 'resource_id',
44
+ 'tags': 'tags'
45
+ }
46
+
47
+ def __init__(self, resource_type=None, resource_id=None, tags=None, local_vars_configuration=None): # noqa: E501
48
+ """UpsertResourceTagsRequest - 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._resource_type = None
54
+ self._resource_id = None
55
+ self._tags = None
56
+ self.discriminator = None
57
+
58
+ self.resource_type = resource_type
59
+ self.resource_id = resource_id
60
+ self.tags = tags
61
+
62
+ @property
63
+ def resource_type(self):
64
+ """Gets the resource_type of this UpsertResourceTagsRequest. # noqa: E501
65
+
66
+
67
+ :return: The resource_type of this UpsertResourceTagsRequest. # noqa: E501
68
+ :rtype: ResourceTagResourceType
69
+ """
70
+ return self._resource_type
71
+
72
+ @resource_type.setter
73
+ def resource_type(self, resource_type):
74
+ """Sets the resource_type of this UpsertResourceTagsRequest.
75
+
76
+
77
+ :param resource_type: The resource_type of this UpsertResourceTagsRequest. # noqa: E501
78
+ :type: ResourceTagResourceType
79
+ """
80
+ if self.local_vars_configuration.client_side_validation and resource_type is None: # noqa: E501
81
+ raise ValueError("Invalid value for `resource_type`, must not be `None`") # noqa: E501
82
+
83
+ self._resource_type = resource_type
84
+
85
+ @property
86
+ def resource_id(self):
87
+ """Gets the resource_id of this UpsertResourceTagsRequest. # noqa: E501
88
+
89
+
90
+ :return: The resource_id of this UpsertResourceTagsRequest. # noqa: E501
91
+ :rtype: str
92
+ """
93
+ return self._resource_id
94
+
95
+ @resource_id.setter
96
+ def resource_id(self, resource_id):
97
+ """Sets the resource_id of this UpsertResourceTagsRequest.
98
+
99
+
100
+ :param resource_id: The resource_id of this UpsertResourceTagsRequest. # noqa: E501
101
+ :type: str
102
+ """
103
+ if self.local_vars_configuration.client_side_validation and resource_id is None: # noqa: E501
104
+ raise ValueError("Invalid value for `resource_id`, must not be `None`") # noqa: E501
105
+
106
+ self._resource_id = resource_id
107
+
108
+ @property
109
+ def tags(self):
110
+ """Gets the tags of this UpsertResourceTagsRequest. # noqa: E501
111
+
112
+
113
+ :return: The tags of this UpsertResourceTagsRequest. # noqa: E501
114
+ :rtype: dict(str, str)
115
+ """
116
+ return self._tags
117
+
118
+ @tags.setter
119
+ def tags(self, tags):
120
+ """Sets the tags of this UpsertResourceTagsRequest.
121
+
122
+
123
+ :param tags: The tags of this UpsertResourceTagsRequest. # noqa: E501
124
+ :type: dict(str, str)
125
+ """
126
+ if self.local_vars_configuration.client_side_validation and tags is None: # noqa: E501
127
+ raise ValueError("Invalid value for `tags`, must not be `None`") # noqa: E501
128
+
129
+ self._tags = tags
130
+
131
+ def to_dict(self):
132
+ """Returns the model properties as a dict"""
133
+ result = {}
134
+
135
+ for attr, _ in six.iteritems(self.openapi_types):
136
+ value = getattr(self, attr)
137
+ if isinstance(value, list):
138
+ result[attr] = list(map(
139
+ lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
140
+ value
141
+ ))
142
+ elif hasattr(value, "to_dict"):
143
+ result[attr] = value.to_dict()
144
+ elif isinstance(value, dict):
145
+ result[attr] = dict(map(
146
+ lambda item: (item[0], item[1].to_dict())
147
+ if hasattr(item[1], "to_dict") else item,
148
+ value.items()
149
+ ))
150
+ else:
151
+ result[attr] = value
152
+
153
+ return result
154
+
155
+ def to_str(self):
156
+ """Returns the string representation of the model"""
157
+ return pprint.pformat(self.to_dict())
158
+
159
+ def __repr__(self):
160
+ """For `print` and `pprint`"""
161
+ return self.to_str()
162
+
163
+ def __eq__(self, other):
164
+ """Returns true if both objects are equal"""
165
+ if not isinstance(other, UpsertResourceTagsRequest):
166
+ return False
167
+
168
+ return self.to_dict() == other.to_dict()
169
+
170
+ def __ne__(self, other):
171
+ """Returns true if both objects are not equal"""
172
+ if not isinstance(other, UpsertResourceTagsRequest):
173
+ return True
174
+
175
+ return self.to_dict() != other.to_dict()
@@ -0,0 +1,234 @@
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 WorkspaceSystemArtifacts(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
+ 'pip_requirements_uri': 'str',
37
+ 'skip_packages_tracking_uri': 'str',
38
+ 'environment_variables_uri': 'str',
39
+ 'dockerfile_uri': 'str',
40
+ 'working_dir_content_uri': 'str'
41
+ }
42
+
43
+ attribute_map = {
44
+ 'pip_requirements_uri': 'pip_requirements_uri',
45
+ 'skip_packages_tracking_uri': 'skip_packages_tracking_uri',
46
+ 'environment_variables_uri': 'environment_variables_uri',
47
+ 'dockerfile_uri': 'dockerfile_uri',
48
+ 'working_dir_content_uri': 'working_dir_content_uri'
49
+ }
50
+
51
+ def __init__(self, pip_requirements_uri=None, skip_packages_tracking_uri=None, environment_variables_uri=None, dockerfile_uri=None, working_dir_content_uri=None, local_vars_configuration=None): # noqa: E501
52
+ """WorkspaceSystemArtifacts - 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._pip_requirements_uri = None
58
+ self._skip_packages_tracking_uri = None
59
+ self._environment_variables_uri = None
60
+ self._dockerfile_uri = None
61
+ self._working_dir_content_uri = None
62
+ self.discriminator = None
63
+
64
+ if pip_requirements_uri is not None:
65
+ self.pip_requirements_uri = pip_requirements_uri
66
+ if skip_packages_tracking_uri is not None:
67
+ self.skip_packages_tracking_uri = skip_packages_tracking_uri
68
+ if environment_variables_uri is not None:
69
+ self.environment_variables_uri = environment_variables_uri
70
+ if dockerfile_uri is not None:
71
+ self.dockerfile_uri = dockerfile_uri
72
+ if working_dir_content_uri is not None:
73
+ self.working_dir_content_uri = working_dir_content_uri
74
+
75
+ @property
76
+ def pip_requirements_uri(self):
77
+ """Gets the pip_requirements_uri of this WorkspaceSystemArtifacts. # noqa: E501
78
+
79
+ URI pointing to the pip requirements.txt file. # noqa: E501
80
+
81
+ :return: The pip_requirements_uri of this WorkspaceSystemArtifacts. # noqa: E501
82
+ :rtype: str
83
+ """
84
+ return self._pip_requirements_uri
85
+
86
+ @pip_requirements_uri.setter
87
+ def pip_requirements_uri(self, pip_requirements_uri):
88
+ """Sets the pip_requirements_uri of this WorkspaceSystemArtifacts.
89
+
90
+ URI pointing to the pip requirements.txt file. # noqa: E501
91
+
92
+ :param pip_requirements_uri: The pip_requirements_uri of this WorkspaceSystemArtifacts. # noqa: E501
93
+ :type: str
94
+ """
95
+
96
+ self._pip_requirements_uri = pip_requirements_uri
97
+
98
+ @property
99
+ def skip_packages_tracking_uri(self):
100
+ """Gets the skip_packages_tracking_uri of this WorkspaceSystemArtifacts. # noqa: E501
101
+
102
+ URI pointing to the .skip_packages_tracking file. # noqa: E501
103
+
104
+ :return: The skip_packages_tracking_uri of this WorkspaceSystemArtifacts. # noqa: E501
105
+ :rtype: str
106
+ """
107
+ return self._skip_packages_tracking_uri
108
+
109
+ @skip_packages_tracking_uri.setter
110
+ def skip_packages_tracking_uri(self, skip_packages_tracking_uri):
111
+ """Sets the skip_packages_tracking_uri of this WorkspaceSystemArtifacts.
112
+
113
+ URI pointing to the .skip_packages_tracking file. # noqa: E501
114
+
115
+ :param skip_packages_tracking_uri: The skip_packages_tracking_uri of this WorkspaceSystemArtifacts. # noqa: E501
116
+ :type: str
117
+ """
118
+
119
+ self._skip_packages_tracking_uri = skip_packages_tracking_uri
120
+
121
+ @property
122
+ def environment_variables_uri(self):
123
+ """Gets the environment_variables_uri of this WorkspaceSystemArtifacts. # noqa: E501
124
+
125
+ URI pointing to the environment variables file. # noqa: E501
126
+
127
+ :return: The environment_variables_uri of this WorkspaceSystemArtifacts. # noqa: E501
128
+ :rtype: str
129
+ """
130
+ return self._environment_variables_uri
131
+
132
+ @environment_variables_uri.setter
133
+ def environment_variables_uri(self, environment_variables_uri):
134
+ """Sets the environment_variables_uri of this WorkspaceSystemArtifacts.
135
+
136
+ URI pointing to the environment variables file. # noqa: E501
137
+
138
+ :param environment_variables_uri: The environment_variables_uri of this WorkspaceSystemArtifacts. # noqa: E501
139
+ :type: str
140
+ """
141
+
142
+ self._environment_variables_uri = environment_variables_uri
143
+
144
+ @property
145
+ def dockerfile_uri(self):
146
+ """Gets the dockerfile_uri of this WorkspaceSystemArtifacts. # noqa: E501
147
+
148
+ URI pointing to the Dockerfile (or containerfile). # noqa: E501
149
+
150
+ :return: The dockerfile_uri of this WorkspaceSystemArtifacts. # noqa: E501
151
+ :rtype: str
152
+ """
153
+ return self._dockerfile_uri
154
+
155
+ @dockerfile_uri.setter
156
+ def dockerfile_uri(self, dockerfile_uri):
157
+ """Sets the dockerfile_uri of this WorkspaceSystemArtifacts.
158
+
159
+ URI pointing to the Dockerfile (or containerfile). # noqa: E501
160
+
161
+ :param dockerfile_uri: The dockerfile_uri of this WorkspaceSystemArtifacts. # noqa: E501
162
+ :type: str
163
+ """
164
+
165
+ self._dockerfile_uri = dockerfile_uri
166
+
167
+ @property
168
+ def working_dir_content_uri(self):
169
+ """Gets the working_dir_content_uri of this WorkspaceSystemArtifacts. # noqa: E501
170
+
171
+ URI pointing to the working directory content. # noqa: E501
172
+
173
+ :return: The working_dir_content_uri of this WorkspaceSystemArtifacts. # noqa: E501
174
+ :rtype: str
175
+ """
176
+ return self._working_dir_content_uri
177
+
178
+ @working_dir_content_uri.setter
179
+ def working_dir_content_uri(self, working_dir_content_uri):
180
+ """Sets the working_dir_content_uri of this WorkspaceSystemArtifacts.
181
+
182
+ URI pointing to the working directory content. # noqa: E501
183
+
184
+ :param working_dir_content_uri: The working_dir_content_uri of this WorkspaceSystemArtifacts. # noqa: E501
185
+ :type: str
186
+ """
187
+
188
+ self._working_dir_content_uri = working_dir_content_uri
189
+
190
+ def to_dict(self):
191
+ """Returns the model properties as a dict"""
192
+ result = {}
193
+
194
+ for attr, _ in six.iteritems(self.openapi_types):
195
+ value = getattr(self, attr)
196
+ if isinstance(value, list):
197
+ result[attr] = list(map(
198
+ lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
199
+ value
200
+ ))
201
+ elif hasattr(value, "to_dict"):
202
+ result[attr] = value.to_dict()
203
+ elif isinstance(value, dict):
204
+ result[attr] = dict(map(
205
+ lambda item: (item[0], item[1].to_dict())
206
+ if hasattr(item[1], "to_dict") else item,
207
+ value.items()
208
+ ))
209
+ else:
210
+ result[attr] = value
211
+
212
+ return result
213
+
214
+ def to_str(self):
215
+ """Returns the string representation of the model"""
216
+ return pprint.pformat(self.to_dict())
217
+
218
+ def __repr__(self):
219
+ """For `print` and `pprint`"""
220
+ return self.to_str()
221
+
222
+ def __eq__(self, other):
223
+ """Returns true if both objects are equal"""
224
+ if not isinstance(other, WorkspaceSystemArtifacts):
225
+ return False
226
+
227
+ return self.to_dict() == other.to_dict()
228
+
229
+ def __ne__(self, other):
230
+ """Returns true if both objects are not equal"""
231
+ if not isinstance(other, WorkspaceSystemArtifacts):
232
+ return True
233
+
234
+ return self.to_dict() != other.to_dict()