anyscale 0.26.69__py3-none-any.whl → 0.26.71__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 (113) hide show
  1. anyscale/_private/anyscale_client/anyscale_client.py +126 -3
  2. anyscale/_private/anyscale_client/common.py +51 -2
  3. anyscale/_private/anyscale_client/fake_anyscale_client.py +103 -11
  4. anyscale/client/README.md +43 -4
  5. anyscale/client/openapi_client/__init__.py +30 -4
  6. anyscale/client/openapi_client/api/default_api.py +1769 -27
  7. anyscale/client/openapi_client/models/__init__.py +30 -4
  8. anyscale/client/openapi_client/models/api_key_info.py +29 -3
  9. anyscale/client/openapi_client/models/apply_autoscaling_config_update_model.py +350 -0
  10. anyscale/client/openapi_client/models/apply_multi_version_update_weights_update_model.py +152 -0
  11. anyscale/client/openapi_client/models/apply_production_service_multi_version_v2_model.py +207 -0
  12. anyscale/client/openapi_client/models/apply_production_service_v2_model.py +31 -3
  13. anyscale/client/openapi_client/models/apply_version_weight_update_model.py +181 -0
  14. anyscale/client/openapi_client/models/backend_server_api_product_models_catalog_client_models_table_metadata.py +546 -0
  15. anyscale/client/openapi_client/models/backend_server_api_product_models_data_catalogs_table_metadata.py +178 -0
  16. anyscale/client/openapi_client/models/baseimagesenum.py +139 -1
  17. anyscale/client/openapi_client/models/catalog_metadata.py +150 -0
  18. anyscale/client/openapi_client/models/cloud_data_bucket_file_type.py +2 -1
  19. anyscale/client/openapi_client/models/{oauthconnectionresponse_response.py → clouddeployment_response.py} +11 -11
  20. anyscale/client/openapi_client/models/column_info.py +265 -0
  21. anyscale/client/openapi_client/models/compute_node_type.py +29 -1
  22. anyscale/client/openapi_client/models/connection_metadata.py +206 -0
  23. anyscale/client/openapi_client/models/create_experimental_workspace.py +29 -1
  24. anyscale/client/openapi_client/models/create_workspace_from_template.py +29 -1
  25. anyscale/client/openapi_client/models/create_workspace_template_version.py +59 -3
  26. anyscale/client/openapi_client/models/data_catalog.py +45 -31
  27. anyscale/client/openapi_client/models/data_catalog_connection.py +74 -58
  28. anyscale/client/openapi_client/models/{ha_job_event_level.py → data_catalog_object_type.py} +7 -8
  29. anyscale/client/openapi_client/models/data_catalog_schema.py +324 -0
  30. anyscale/client/openapi_client/models/data_catalog_table.py +437 -0
  31. anyscale/client/openapi_client/models/data_catalog_volume.py +437 -0
  32. anyscale/client/openapi_client/models/datacatalogschema_list_response.py +147 -0
  33. anyscale/client/openapi_client/models/datacatalogtable_list_response.py +147 -0
  34. anyscale/client/openapi_client/models/datacatalogvolume_list_response.py +147 -0
  35. anyscale/client/openapi_client/models/decorated_list_service_api_model.py +58 -1
  36. anyscale/client/openapi_client/models/decorated_production_service_v2_api_model.py +60 -3
  37. anyscale/client/openapi_client/models/decorated_serve_deployment.py +27 -1
  38. anyscale/client/openapi_client/models/decorated_service_event_api_model.py +3 -3
  39. anyscale/client/openapi_client/models/decoratedproductionservicev2_versionapimodel_response.py +121 -0
  40. anyscale/client/openapi_client/models/describe_machine_pool_machines_filters.py +33 -5
  41. anyscale/client/openapi_client/models/describe_machine_pool_requests_filters.py +33 -5
  42. anyscale/client/openapi_client/models/describe_machine_pool_workloads_filters.py +33 -5
  43. anyscale/client/openapi_client/models/{service_event_level.py → entity_type.py} +9 -9
  44. anyscale/client/openapi_client/models/event_level.py +2 -1
  45. anyscale/client/openapi_client/models/job_event_fields.py +206 -0
  46. anyscale/client/openapi_client/models/machine_type_partition_filter.py +152 -0
  47. anyscale/client/openapi_client/models/partition_info.py +30 -1
  48. anyscale/client/openapi_client/models/physical_resources.py +178 -0
  49. anyscale/client/openapi_client/models/production_job_event.py +3 -3
  50. anyscale/client/openapi_client/models/rollout_strategy.py +2 -1
  51. anyscale/client/openapi_client/models/schema_metadata.py +150 -0
  52. anyscale/client/openapi_client/models/service_event_fields.py +318 -0
  53. anyscale/client/openapi_client/models/sso_config.py +18 -18
  54. anyscale/client/openapi_client/models/supportedbaseimagesenum.py +139 -1
  55. anyscale/client/openapi_client/models/table_data_preview.py +209 -0
  56. anyscale/client/openapi_client/models/task_summary_config.py +29 -3
  57. anyscale/client/openapi_client/models/task_table_config.py +29 -3
  58. anyscale/client/openapi_client/models/unified_event.py +377 -0
  59. anyscale/client/openapi_client/models/unified_origin_filter.py +113 -0
  60. anyscale/client/openapi_client/models/unifiedevent_list_response.py +147 -0
  61. anyscale/client/openapi_client/models/volume_metadata.py +150 -0
  62. anyscale/client/openapi_client/models/worker_node_type.py +29 -1
  63. anyscale/client/openapi_client/models/workspace_event_fields.py +122 -0
  64. anyscale/client/openapi_client/models/workspace_template_version.py +58 -1
  65. anyscale/client/openapi_client/models/workspace_template_version_data_object.py +58 -1
  66. anyscale/cloud/models.py +2 -2
  67. anyscale/commands/cloud_commands.py +133 -2
  68. anyscale/commands/job_commands.py +121 -1
  69. anyscale/commands/job_queue_commands.py +99 -2
  70. anyscale/commands/service_commands.py +267 -67
  71. anyscale/commands/setup_k8s.py +546 -31
  72. anyscale/commands/util.py +104 -1
  73. anyscale/commands/workspace_commands.py +123 -5
  74. anyscale/commands/workspace_commands_v2.py +17 -1
  75. anyscale/compute_config/_private/compute_config_sdk.py +25 -12
  76. anyscale/compute_config/models.py +15 -0
  77. anyscale/controllers/cloud_controller.py +15 -2
  78. anyscale/controllers/job_controller.py +12 -0
  79. anyscale/controllers/kubernetes_verifier.py +80 -66
  80. anyscale/controllers/workspace_controller.py +67 -5
  81. anyscale/job/_private/job_sdk.py +50 -2
  82. anyscale/job/commands.py +3 -0
  83. anyscale/job/models.py +16 -0
  84. anyscale/job_queue/__init__.py +37 -1
  85. anyscale/job_queue/_private/job_queue_sdk.py +28 -1
  86. anyscale/job_queue/commands.py +61 -1
  87. anyscale/sdk/anyscale_client/__init__.py +1 -0
  88. anyscale/sdk/anyscale_client/api/default_api.py +12 -2
  89. anyscale/sdk/anyscale_client/models/__init__.py +1 -0
  90. anyscale/sdk/anyscale_client/models/apply_production_service_v2_model.py +31 -3
  91. anyscale/sdk/anyscale_client/models/apply_service_model.py +31 -3
  92. anyscale/sdk/anyscale_client/models/baseimagesenum.py +139 -1
  93. anyscale/sdk/anyscale_client/models/compute_node_type.py +29 -1
  94. anyscale/sdk/anyscale_client/models/physical_resources.py +178 -0
  95. anyscale/sdk/anyscale_client/models/rollout_strategy.py +2 -1
  96. anyscale/sdk/anyscale_client/models/supportedbaseimagesenum.py +139 -1
  97. anyscale/sdk/anyscale_client/models/worker_node_type.py +29 -1
  98. anyscale/service/__init__.py +51 -3
  99. anyscale/service/_private/service_sdk.py +481 -58
  100. anyscale/service/commands.py +90 -4
  101. anyscale/service/models.py +56 -0
  102. anyscale/shared_anyscale_utils/latest_ray_version.py +1 -1
  103. anyscale/version.py +1 -1
  104. anyscale/workspace/_private/workspace_sdk.py +1 -0
  105. anyscale/workspace/models.py +19 -0
  106. {anyscale-0.26.69.dist-info → anyscale-0.26.71.dist-info}/METADATA +1 -1
  107. {anyscale-0.26.69.dist-info → anyscale-0.26.71.dist-info}/RECORD +112 -85
  108. anyscale/client/openapi_client/models/o_auth_connection_response.py +0 -229
  109. {anyscale-0.26.69.dist-info → anyscale-0.26.71.dist-info}/WHEEL +0 -0
  110. {anyscale-0.26.69.dist-info → anyscale-0.26.71.dist-info}/entry_points.txt +0 -0
  111. {anyscale-0.26.69.dist-info → anyscale-0.26.71.dist-info}/licenses/LICENSE +0 -0
  112. {anyscale-0.26.69.dist-info → anyscale-0.26.71.dist-info}/licenses/NOTICE +0 -0
  113. {anyscale-0.26.69.dist-info → anyscale-0.26.71.dist-info}/top_level.txt +0 -0
@@ -0,0 +1,209 @@
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 TableDataPreview(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
+ 'table_schema': 'list[ColumnInfo]',
37
+ 'data_array': 'list[list[object]]',
38
+ 'row_count': 'int',
39
+ 'truncated': 'bool'
40
+ }
41
+
42
+ attribute_map = {
43
+ 'table_schema': 'table_schema',
44
+ 'data_array': 'data_array',
45
+ 'row_count': 'row_count',
46
+ 'truncated': 'truncated'
47
+ }
48
+
49
+ def __init__(self, table_schema=None, data_array=None, row_count=None, truncated=False, local_vars_configuration=None): # noqa: E501
50
+ """TableDataPreview - 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._table_schema = None
56
+ self._data_array = None
57
+ self._row_count = None
58
+ self._truncated = None
59
+ self.discriminator = None
60
+
61
+ self.table_schema = table_schema
62
+ self.data_array = data_array
63
+ self.row_count = row_count
64
+ if truncated is not None:
65
+ self.truncated = truncated
66
+
67
+ @property
68
+ def table_schema(self):
69
+ """Gets the table_schema of this TableDataPreview. # noqa: E501
70
+
71
+ Schema definition with column information # noqa: E501
72
+
73
+ :return: The table_schema of this TableDataPreview. # noqa: E501
74
+ :rtype: list[ColumnInfo]
75
+ """
76
+ return self._table_schema
77
+
78
+ @table_schema.setter
79
+ def table_schema(self, table_schema):
80
+ """Sets the table_schema of this TableDataPreview.
81
+
82
+ Schema definition with column information # noqa: E501
83
+
84
+ :param table_schema: The table_schema of this TableDataPreview. # noqa: E501
85
+ :type: list[ColumnInfo]
86
+ """
87
+ if self.local_vars_configuration.client_side_validation and table_schema is None: # noqa: E501
88
+ raise ValueError("Invalid value for `table_schema`, must not be `None`") # noqa: E501
89
+
90
+ self._table_schema = table_schema
91
+
92
+ @property
93
+ def data_array(self):
94
+ """Gets the data_array of this TableDataPreview. # noqa: E501
95
+
96
+ Preview data as array of rows, where each row is an array of values # noqa: E501
97
+
98
+ :return: The data_array of this TableDataPreview. # noqa: E501
99
+ :rtype: list[list[object]]
100
+ """
101
+ return self._data_array
102
+
103
+ @data_array.setter
104
+ def data_array(self, data_array):
105
+ """Sets the data_array of this TableDataPreview.
106
+
107
+ Preview data as array of rows, where each row is an array of values # noqa: E501
108
+
109
+ :param data_array: The data_array of this TableDataPreview. # noqa: E501
110
+ :type: list[list[object]]
111
+ """
112
+ if self.local_vars_configuration.client_side_validation and data_array is None: # noqa: E501
113
+ raise ValueError("Invalid value for `data_array`, must not be `None`") # noqa: E501
114
+
115
+ self._data_array = data_array
116
+
117
+ @property
118
+ def row_count(self):
119
+ """Gets the row_count of this TableDataPreview. # noqa: E501
120
+
121
+ Number of rows returned in this preview # noqa: E501
122
+
123
+ :return: The row_count of this TableDataPreview. # noqa: E501
124
+ :rtype: int
125
+ """
126
+ return self._row_count
127
+
128
+ @row_count.setter
129
+ def row_count(self, row_count):
130
+ """Sets the row_count of this TableDataPreview.
131
+
132
+ Number of rows returned in this preview # noqa: E501
133
+
134
+ :param row_count: The row_count of this TableDataPreview. # noqa: E501
135
+ :type: int
136
+ """
137
+ if self.local_vars_configuration.client_side_validation and row_count is None: # noqa: E501
138
+ raise ValueError("Invalid value for `row_count`, must not be `None`") # noqa: E501
139
+
140
+ self._row_count = row_count
141
+
142
+ @property
143
+ def truncated(self):
144
+ """Gets the truncated of this TableDataPreview. # noqa: E501
145
+
146
+ True if more rows exist in the table than are returned in this preview # noqa: E501
147
+
148
+ :return: The truncated of this TableDataPreview. # noqa: E501
149
+ :rtype: bool
150
+ """
151
+ return self._truncated
152
+
153
+ @truncated.setter
154
+ def truncated(self, truncated):
155
+ """Sets the truncated of this TableDataPreview.
156
+
157
+ True if more rows exist in the table than are returned in this preview # noqa: E501
158
+
159
+ :param truncated: The truncated of this TableDataPreview. # noqa: E501
160
+ :type: bool
161
+ """
162
+
163
+ self._truncated = truncated
164
+
165
+ def to_dict(self):
166
+ """Returns the model properties as a dict"""
167
+ result = {}
168
+
169
+ for attr, _ in six.iteritems(self.openapi_types):
170
+ value = getattr(self, attr)
171
+ if isinstance(value, list):
172
+ result[attr] = list(map(
173
+ lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
174
+ value
175
+ ))
176
+ elif hasattr(value, "to_dict"):
177
+ result[attr] = value.to_dict()
178
+ elif isinstance(value, dict):
179
+ result[attr] = dict(map(
180
+ lambda item: (item[0], item[1].to_dict())
181
+ if hasattr(item[1], "to_dict") else item,
182
+ value.items()
183
+ ))
184
+ else:
185
+ result[attr] = value
186
+
187
+ return result
188
+
189
+ def to_str(self):
190
+ """Returns the string representation of the model"""
191
+ return pprint.pformat(self.to_dict())
192
+
193
+ def __repr__(self):
194
+ """For `print` and `pprint`"""
195
+ return self.to_str()
196
+
197
+ def __eq__(self, other):
198
+ """Returns true if both objects are equal"""
199
+ if not isinstance(other, TableDataPreview):
200
+ return False
201
+
202
+ return self.to_dict() == other.to_dict()
203
+
204
+ def __ne__(self, other):
205
+ """Returns true if both objects are not equal"""
206
+ if not isinstance(other, TableDataPreview):
207
+ return True
208
+
209
+ return self.to_dict() != other.to_dict()
@@ -34,15 +34,17 @@ class TaskSummaryConfig(object):
34
34
  """
35
35
  openapi_types = {
36
36
  'data_operator_id': 'str',
37
- 'latest_attempt_only': 'bool'
37
+ 'latest_attempt_only': 'bool',
38
+ 'node_id': 'str'
38
39
  }
39
40
 
40
41
  attribute_map = {
41
42
  'data_operator_id': 'data_operator_id',
42
- 'latest_attempt_only': 'latest_attempt_only'
43
+ 'latest_attempt_only': 'latest_attempt_only',
44
+ 'node_id': 'node_id'
43
45
  }
44
46
 
45
- def __init__(self, data_operator_id=None, latest_attempt_only=None, local_vars_configuration=None): # noqa: E501
47
+ def __init__(self, data_operator_id=None, latest_attempt_only=None, node_id=None, local_vars_configuration=None): # noqa: E501
46
48
  """TaskSummaryConfig - a model defined in OpenAPI""" # noqa: E501
47
49
  if local_vars_configuration is None:
48
50
  local_vars_configuration = Configuration()
@@ -50,12 +52,15 @@ class TaskSummaryConfig(object):
50
52
 
51
53
  self._data_operator_id = None
52
54
  self._latest_attempt_only = None
55
+ self._node_id = None
53
56
  self.discriminator = None
54
57
 
55
58
  if data_operator_id is not None:
56
59
  self.data_operator_id = data_operator_id
57
60
  if latest_attempt_only is not None:
58
61
  self.latest_attempt_only = latest_attempt_only
62
+ if node_id is not None:
63
+ self.node_id = node_id
59
64
 
60
65
  @property
61
66
  def data_operator_id(self):
@@ -99,6 +104,27 @@ class TaskSummaryConfig(object):
99
104
 
100
105
  self._latest_attempt_only = latest_attempt_only
101
106
 
107
+ @property
108
+ def node_id(self):
109
+ """Gets the node_id of this TaskSummaryConfig. # noqa: E501
110
+
111
+
112
+ :return: The node_id of this TaskSummaryConfig. # noqa: E501
113
+ :rtype: str
114
+ """
115
+ return self._node_id
116
+
117
+ @node_id.setter
118
+ def node_id(self, node_id):
119
+ """Sets the node_id of this TaskSummaryConfig.
120
+
121
+
122
+ :param node_id: The node_id of this TaskSummaryConfig. # noqa: E501
123
+ :type: str
124
+ """
125
+
126
+ self._node_id = node_id
127
+
102
128
  def to_dict(self):
103
129
  """Returns the model properties as a dict"""
104
130
  result = {}
@@ -41,7 +41,8 @@ class TaskTableConfig(object):
41
41
  'exception_type': 'str',
42
42
  'attempts': 'TaskAttempts',
43
43
  'data_operator_id': 'str',
44
- 'latest_attempt_only': 'bool'
44
+ 'latest_attempt_only': 'bool',
45
+ 'node_id': 'str'
45
46
  }
46
47
 
47
48
  attribute_map = {
@@ -53,10 +54,11 @@ class TaskTableConfig(object):
53
54
  'exception_type': 'exception_type',
54
55
  'attempts': 'attempts',
55
56
  'data_operator_id': 'data_operator_id',
56
- 'latest_attempt_only': 'latest_attempt_only'
57
+ 'latest_attempt_only': 'latest_attempt_only',
58
+ 'node_id': 'node_id'
57
59
  }
58
60
 
59
- def __init__(self, task_id=None, function_name=None, current_state=None, text=None, job_id=None, exception_type=None, attempts=None, data_operator_id=None, latest_attempt_only=None, local_vars_configuration=None): # noqa: E501
61
+ def __init__(self, task_id=None, function_name=None, current_state=None, text=None, job_id=None, exception_type=None, attempts=None, data_operator_id=None, latest_attempt_only=None, node_id=None, local_vars_configuration=None): # noqa: E501
60
62
  """TaskTableConfig - a model defined in OpenAPI""" # noqa: E501
61
63
  if local_vars_configuration is None:
62
64
  local_vars_configuration = Configuration()
@@ -71,6 +73,7 @@ class TaskTableConfig(object):
71
73
  self._attempts = None
72
74
  self._data_operator_id = None
73
75
  self._latest_attempt_only = None
76
+ self._node_id = None
74
77
  self.discriminator = None
75
78
 
76
79
  if task_id is not None:
@@ -91,6 +94,8 @@ class TaskTableConfig(object):
91
94
  self.data_operator_id = data_operator_id
92
95
  if latest_attempt_only is not None:
93
96
  self.latest_attempt_only = latest_attempt_only
97
+ if node_id is not None:
98
+ self.node_id = node_id
94
99
 
95
100
  @property
96
101
  def task_id(self):
@@ -281,6 +286,27 @@ class TaskTableConfig(object):
281
286
 
282
287
  self._latest_attempt_only = latest_attempt_only
283
288
 
289
+ @property
290
+ def node_id(self):
291
+ """Gets the node_id of this TaskTableConfig. # noqa: E501
292
+
293
+
294
+ :return: The node_id of this TaskTableConfig. # noqa: E501
295
+ :rtype: str
296
+ """
297
+ return self._node_id
298
+
299
+ @node_id.setter
300
+ def node_id(self, node_id):
301
+ """Sets the node_id of this TaskTableConfig.
302
+
303
+
304
+ :param node_id: The node_id of this TaskTableConfig. # noqa: E501
305
+ :type: str
306
+ """
307
+
308
+ self._node_id = node_id
309
+
284
310
  def to_dict(self):
285
311
  """Returns the model properties as a dict"""
286
312
  result = {}