anyscale 0.26.70__py3-none-any.whl → 0.26.72__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 (78) hide show
  1. anyscale/_private/anyscale_client/anyscale_client.py +63 -6
  2. anyscale/_private/anyscale_client/common.py +33 -3
  3. anyscale/_private/anyscale_client/fake_anyscale_client.py +27 -2
  4. anyscale/client/README.md +29 -0
  5. anyscale/client/openapi_client/__init__.py +19 -0
  6. anyscale/client/openapi_client/api/default_api.py +1307 -4
  7. anyscale/client/openapi_client/models/__init__.py +19 -0
  8. anyscale/client/openapi_client/models/apply_multi_version_update_weights_update_model.py +152 -0
  9. anyscale/client/openapi_client/models/apply_version_weight_update_model.py +181 -0
  10. anyscale/client/openapi_client/models/backend_server_api_product_models_catalog_client_models_table_metadata.py +546 -0
  11. anyscale/client/openapi_client/models/backend_server_api_product_models_data_catalogs_table_metadata.py +178 -0
  12. anyscale/client/openapi_client/models/baseimagesenum.py +70 -1
  13. anyscale/client/openapi_client/models/catalog_metadata.py +150 -0
  14. anyscale/client/openapi_client/models/column_info.py +265 -0
  15. anyscale/client/openapi_client/models/compute_node_type.py +29 -1
  16. anyscale/client/openapi_client/models/connection_metadata.py +206 -0
  17. anyscale/client/openapi_client/models/create_workspace_template_version.py +31 -3
  18. anyscale/client/openapi_client/models/data_catalog.py +45 -31
  19. anyscale/client/openapi_client/models/data_catalog_connection.py +74 -58
  20. anyscale/client/openapi_client/models/data_catalog_object_type.py +100 -0
  21. anyscale/client/openapi_client/models/data_catalog_schema.py +324 -0
  22. anyscale/client/openapi_client/models/data_catalog_table.py +437 -0
  23. anyscale/client/openapi_client/models/data_catalog_volume.py +437 -0
  24. anyscale/client/openapi_client/models/datacatalogschema_list_response.py +147 -0
  25. anyscale/client/openapi_client/models/datacatalogtable_list_response.py +147 -0
  26. anyscale/client/openapi_client/models/datacatalogvolume_list_response.py +147 -0
  27. anyscale/client/openapi_client/models/decorated_serve_deployment.py +27 -1
  28. anyscale/client/openapi_client/models/decoratedproductionservicev2_versionapimodel_response.py +121 -0
  29. anyscale/client/openapi_client/models/describe_machine_pool_machines_filters.py +2 -2
  30. anyscale/client/openapi_client/models/describe_machine_pool_requests_filters.py +33 -5
  31. anyscale/client/openapi_client/models/describe_machine_pool_workloads_filters.py +2 -2
  32. anyscale/client/openapi_client/models/physical_resources.py +178 -0
  33. anyscale/client/openapi_client/models/schema_metadata.py +150 -0
  34. anyscale/client/openapi_client/models/sso_config.py +18 -18
  35. anyscale/client/openapi_client/models/supportedbaseimagesenum.py +70 -1
  36. anyscale/client/openapi_client/models/table_data_preview.py +209 -0
  37. anyscale/client/openapi_client/models/volume_metadata.py +150 -0
  38. anyscale/client/openapi_client/models/worker_node_type.py +29 -1
  39. anyscale/client/openapi_client/models/workspace_template_version.py +29 -1
  40. anyscale/client/openapi_client/models/workspace_template_version_data_object.py +29 -1
  41. anyscale/commands/job_commands.py +120 -0
  42. anyscale/commands/job_queue_commands.py +99 -2
  43. anyscale/commands/service_commands.py +139 -2
  44. anyscale/commands/util.py +104 -1
  45. anyscale/commands/workspace_commands.py +123 -5
  46. anyscale/commands/workspace_commands_v2.py +17 -1
  47. anyscale/compute_config/_private/compute_config_sdk.py +25 -12
  48. anyscale/compute_config/models.py +15 -0
  49. anyscale/controllers/job_controller.py +12 -0
  50. anyscale/controllers/workspace_controller.py +67 -5
  51. anyscale/job/_private/job_sdk.py +3 -1
  52. anyscale/job/models.py +16 -0
  53. anyscale/job_queue/__init__.py +37 -1
  54. anyscale/job_queue/_private/job_queue_sdk.py +28 -1
  55. anyscale/job_queue/commands.py +61 -1
  56. anyscale/sdk/anyscale_client/__init__.py +1 -0
  57. anyscale/sdk/anyscale_client/api/default_api.py +12 -2
  58. anyscale/sdk/anyscale_client/models/__init__.py +1 -0
  59. anyscale/sdk/anyscale_client/models/baseimagesenum.py +70 -1
  60. anyscale/sdk/anyscale_client/models/compute_node_type.py +29 -1
  61. anyscale/sdk/anyscale_client/models/physical_resources.py +178 -0
  62. anyscale/sdk/anyscale_client/models/supportedbaseimagesenum.py +70 -1
  63. anyscale/sdk/anyscale_client/models/worker_node_type.py +29 -1
  64. anyscale/service/__init__.py +40 -0
  65. anyscale/service/_private/service_sdk.py +121 -24
  66. anyscale/service/commands.py +75 -1
  67. anyscale/service/models.py +46 -2
  68. anyscale/shared_anyscale_utils/latest_ray_version.py +1 -1
  69. anyscale/version.py +1 -1
  70. anyscale/workspace/_private/workspace_sdk.py +1 -0
  71. anyscale/workspace/models.py +19 -0
  72. {anyscale-0.26.70.dist-info → anyscale-0.26.72.dist-info}/METADATA +1 -1
  73. {anyscale-0.26.70.dist-info → anyscale-0.26.72.dist-info}/RECORD +78 -58
  74. {anyscale-0.26.70.dist-info → anyscale-0.26.72.dist-info}/WHEEL +0 -0
  75. {anyscale-0.26.70.dist-info → anyscale-0.26.72.dist-info}/entry_points.txt +0 -0
  76. {anyscale-0.26.70.dist-info → anyscale-0.26.72.dist-info}/licenses/LICENSE +0 -0
  77. {anyscale-0.26.70.dist-info → anyscale-0.26.72.dist-info}/licenses/NOTICE +0 -0
  78. {anyscale-0.26.70.dist-info → anyscale-0.26.72.dist-info}/top_level.txt +0 -0
@@ -0,0 +1,178 @@
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 PhysicalResources(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
+ 'cpu': 'int',
37
+ 'gpu': 'int',
38
+ 'memory': 'int'
39
+ }
40
+
41
+ attribute_map = {
42
+ 'cpu': 'cpu',
43
+ 'gpu': 'gpu',
44
+ 'memory': 'memory'
45
+ }
46
+
47
+ def __init__(self, cpu=None, gpu=None, memory=None, local_vars_configuration=None): # noqa: E501
48
+ """PhysicalResources - 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._cpu = None
54
+ self._gpu = None
55
+ self._memory = None
56
+ self.discriminator = None
57
+
58
+ if cpu is not None:
59
+ self.cpu = cpu
60
+ if gpu is not None:
61
+ self.gpu = gpu
62
+ if memory is not None:
63
+ self.memory = memory
64
+
65
+ @property
66
+ def cpu(self):
67
+ """Gets the cpu of this PhysicalResources. # noqa: E501
68
+
69
+ Number of CPUs to allocate. # noqa: E501
70
+
71
+ :return: The cpu of this PhysicalResources. # noqa: E501
72
+ :rtype: int
73
+ """
74
+ return self._cpu
75
+
76
+ @cpu.setter
77
+ def cpu(self, cpu):
78
+ """Sets the cpu of this PhysicalResources.
79
+
80
+ Number of CPUs to allocate. # noqa: E501
81
+
82
+ :param cpu: The cpu of this PhysicalResources. # noqa: E501
83
+ :type: int
84
+ """
85
+
86
+ self._cpu = cpu
87
+
88
+ @property
89
+ def gpu(self):
90
+ """Gets the gpu of this PhysicalResources. # noqa: E501
91
+
92
+ Number of GPUs to allocate. # noqa: E501
93
+
94
+ :return: The gpu of this PhysicalResources. # noqa: E501
95
+ :rtype: int
96
+ """
97
+ return self._gpu
98
+
99
+ @gpu.setter
100
+ def gpu(self, gpu):
101
+ """Sets the gpu of this PhysicalResources.
102
+
103
+ Number of GPUs to allocate. # noqa: E501
104
+
105
+ :param gpu: The gpu of this PhysicalResources. # noqa: E501
106
+ :type: int
107
+ """
108
+
109
+ self._gpu = gpu
110
+
111
+ @property
112
+ def memory(self):
113
+ """Gets the memory of this PhysicalResources. # noqa: E501
114
+
115
+ Amount of memory in bytes to allocate. # noqa: E501
116
+
117
+ :return: The memory of this PhysicalResources. # noqa: E501
118
+ :rtype: int
119
+ """
120
+ return self._memory
121
+
122
+ @memory.setter
123
+ def memory(self, memory):
124
+ """Sets the memory of this PhysicalResources.
125
+
126
+ Amount of memory in bytes to allocate. # noqa: E501
127
+
128
+ :param memory: The memory of this PhysicalResources. # noqa: E501
129
+ :type: int
130
+ """
131
+
132
+ self._memory = memory
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, PhysicalResources):
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, PhysicalResources):
176
+ return True
177
+
178
+ 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 SchemaMetadata(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
+ 'owner': 'str',
37
+ 'full_name': 'str'
38
+ }
39
+
40
+ attribute_map = {
41
+ 'owner': 'owner',
42
+ 'full_name': 'full_name'
43
+ }
44
+
45
+ def __init__(self, owner=None, full_name=None, local_vars_configuration=None): # noqa: E501
46
+ """SchemaMetadata - 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._owner = None
52
+ self._full_name = None
53
+ self.discriminator = None
54
+
55
+ if owner is not None:
56
+ self.owner = owner
57
+ if full_name is not None:
58
+ self.full_name = full_name
59
+
60
+ @property
61
+ def owner(self):
62
+ """Gets the owner of this SchemaMetadata. # noqa: E501
63
+
64
+ Owner of the entity # noqa: E501
65
+
66
+ :return: The owner of this SchemaMetadata. # noqa: E501
67
+ :rtype: str
68
+ """
69
+ return self._owner
70
+
71
+ @owner.setter
72
+ def owner(self, owner):
73
+ """Sets the owner of this SchemaMetadata.
74
+
75
+ Owner of the entity # noqa: E501
76
+
77
+ :param owner: The owner of this SchemaMetadata. # noqa: E501
78
+ :type: str
79
+ """
80
+
81
+ self._owner = owner
82
+
83
+ @property
84
+ def full_name(self):
85
+ """Gets the full_name of this SchemaMetadata. # noqa: E501
86
+
87
+ Fully qualified name of the entity # noqa: E501
88
+
89
+ :return: The full_name of this SchemaMetadata. # noqa: E501
90
+ :rtype: str
91
+ """
92
+ return self._full_name
93
+
94
+ @full_name.setter
95
+ def full_name(self, full_name):
96
+ """Sets the full_name of this SchemaMetadata.
97
+
98
+ Fully qualified name of the entity # noqa: E501
99
+
100
+ :param full_name: The full_name of this SchemaMetadata. # noqa: E501
101
+ :type: str
102
+ """
103
+
104
+ self._full_name = full_name
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, SchemaMetadata):
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, SchemaMetadata):
148
+ return True
149
+
150
+ return self.to_dict() != other.to_dict()
@@ -34,26 +34,26 @@ class SSOConfig(object):
34
34
  """
35
35
  openapi_types = {
36
36
  'sso_connection': 'SSOConnection',
37
- 'domain_verification': 'DomainVerification'
37
+ 'domain_verifications': 'list[DomainVerification]'
38
38
  }
39
39
 
40
40
  attribute_map = {
41
41
  'sso_connection': 'sso_connection',
42
- 'domain_verification': 'domain_verification'
42
+ 'domain_verifications': 'domain_verifications'
43
43
  }
44
44
 
45
- def __init__(self, sso_connection=None, domain_verification=None, local_vars_configuration=None): # noqa: E501
45
+ def __init__(self, sso_connection=None, domain_verifications=None, local_vars_configuration=None): # noqa: E501
46
46
  """SSOConfig - a model defined in OpenAPI""" # noqa: E501
47
47
  if local_vars_configuration is None:
48
48
  local_vars_configuration = Configuration()
49
49
  self.local_vars_configuration = local_vars_configuration
50
50
 
51
51
  self._sso_connection = None
52
- self._domain_verification = None
52
+ self._domain_verifications = None
53
53
  self.discriminator = None
54
54
 
55
55
  self.sso_connection = sso_connection
56
- self.domain_verification = domain_verification
56
+ self.domain_verifications = domain_verifications
57
57
 
58
58
  @property
59
59
  def sso_connection(self):
@@ -79,27 +79,27 @@ class SSOConfig(object):
79
79
  self._sso_connection = sso_connection
80
80
 
81
81
  @property
82
- def domain_verification(self):
83
- """Gets the domain_verification of this SSOConfig. # noqa: E501
82
+ def domain_verifications(self):
83
+ """Gets the domain_verifications of this SSOConfig. # noqa: E501
84
84
 
85
85
 
86
- :return: The domain_verification of this SSOConfig. # noqa: E501
87
- :rtype: DomainVerification
86
+ :return: The domain_verifications of this SSOConfig. # noqa: E501
87
+ :rtype: list[DomainVerification]
88
88
  """
89
- return self._domain_verification
89
+ return self._domain_verifications
90
90
 
91
- @domain_verification.setter
92
- def domain_verification(self, domain_verification):
93
- """Sets the domain_verification of this SSOConfig.
91
+ @domain_verifications.setter
92
+ def domain_verifications(self, domain_verifications):
93
+ """Sets the domain_verifications of this SSOConfig.
94
94
 
95
95
 
96
- :param domain_verification: The domain_verification of this SSOConfig. # noqa: E501
97
- :type: DomainVerification
96
+ :param domain_verifications: The domain_verifications of this SSOConfig. # noqa: E501
97
+ :type: list[DomainVerification]
98
98
  """
99
- if self.local_vars_configuration.client_side_validation and domain_verification is None: # noqa: E501
100
- raise ValueError("Invalid value for `domain_verification`, must not be `None`") # noqa: E501
99
+ if self.local_vars_configuration.client_side_validation and domain_verifications is None: # noqa: E501
100
+ raise ValueError("Invalid value for `domain_verifications`, must not be `None`") # noqa: E501
101
101
 
102
- self._domain_verification = domain_verification
102
+ self._domain_verifications = domain_verifications
103
103
 
104
104
  def to_dict(self):
105
105
  """Returns the model properties as a dict"""