anyscale 0.24.87__py3-none-any.whl → 0.24.91__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 (120) hide show
  1. anyscale/__init__.py +56 -0
  2. anyscale/_private/anyscale_client/anyscale_client.py +158 -28
  3. anyscale/_private/anyscale_client/common.py +82 -0
  4. anyscale/_private/anyscale_client/fake_anyscale_client.py +193 -1
  5. anyscale/_private/docgen/README.md +1 -1
  6. anyscale/_private/docgen/__main__.py +74 -19
  7. anyscale/_private/docgen/api.md +0 -20
  8. anyscale/_private/docgen/generator.py +4 -2
  9. anyscale/_private/docgen/models.md +1 -46
  10. anyscale/_private/workload/workload_config.py +1 -1
  11. anyscale/aggregated_instance_usage/__init__.py +1 -1
  12. anyscale/aggregated_instance_usage/commands.py +2 -4
  13. anyscale/aggregated_instance_usage/models.py +8 -8
  14. anyscale/client/README.md +19 -23
  15. anyscale/client/openapi_client/__init__.py +13 -15
  16. anyscale/client/openapi_client/api/default_api.py +825 -962
  17. anyscale/client/openapi_client/models/__init__.py +13 -15
  18. anyscale/client/openapi_client/models/admin_create_user.py +255 -0
  19. anyscale/client/openapi_client/models/admin_created_user.py +281 -0
  20. anyscale/client/openapi_client/models/{sessionevent_list_response.py → admincreateduser_list_response.py} +15 -15
  21. anyscale/client/openapi_client/models/aggregated_usage_query.py +1 -29
  22. anyscale/client/openapi_client/models/{session_event_types.py → cloud_deployment_config.py} +35 -24
  23. anyscale/client/openapi_client/models/{platformfinetuningjob_response.py → clouddeploymentconfig_response.py} +11 -11
  24. anyscale/client/openapi_client/models/{company_size.py → cluster_size.py} +10 -10
  25. anyscale/client/openapi_client/models/cluster_status_details.py +2 -1
  26. anyscale/client/openapi_client/models/create_experimental_workspace.py +29 -1
  27. anyscale/client/openapi_client/models/{resubmit_ft_job_request.py → describe_machine_pool_request.py} +21 -20
  28. anyscale/client/openapi_client/models/describe_machine_pool_response.py +123 -0
  29. anyscale/client/openapi_client/models/{fine_tuning_job_status.py → describemachinepoolresponse_response.py} +34 -16
  30. anyscale/client/openapi_client/models/machine_allocation_state.py +3 -1
  31. anyscale/client/openapi_client/models/machine_state_info.py +326 -0
  32. anyscale/client/openapi_client/models/organization_marketing_questions.py +80 -54
  33. anyscale/client/openapi_client/models/request_state_info.py +210 -0
  34. anyscale/client/openapi_client/models/{platformfinetuningjob_list_response.py → scheduler_info.py} +43 -38
  35. anyscale/client/openapi_client/models/usage_by_cluster.py +28 -1
  36. anyscale/client/openapi_client/models/usage_by_user.py +30 -3
  37. anyscale/client/openapi_client/models/workload_info.py +210 -0
  38. anyscale/cloud/__init__.py +83 -0
  39. anyscale/cloud/_private/cloud_sdk.py +25 -0
  40. anyscale/cloud/commands.py +45 -0
  41. anyscale/cloud/models.py +91 -0
  42. anyscale/cluster_compute.py +1 -1
  43. anyscale/commands/aggregated_instance_usage_commands.py +4 -4
  44. anyscale/commands/cloud_commands.py +38 -2
  45. anyscale/commands/command_examples.py +67 -0
  46. anyscale/commands/job_commands.py +15 -3
  47. anyscale/commands/machine_pool_commands.py +113 -1
  48. anyscale/commands/organization_invitation_commands.py +98 -0
  49. anyscale/commands/project_commands.py +52 -2
  50. anyscale/commands/resource_quota_commands.py +98 -11
  51. anyscale/commands/service_commands.py +1 -1
  52. anyscale/commands/session_commands_hidden.py +5 -1
  53. anyscale/commands/user_commands.py +49 -0
  54. anyscale/commands/util.py +1 -1
  55. anyscale/commands/workspace_commands.py +1 -1
  56. anyscale/connect.py +1 -1
  57. anyscale/connect_utils/project.py +7 -4
  58. anyscale/controllers/cloud_controller.py +6 -6
  59. anyscale/controllers/cloud_functional_verification_controller.py +1 -1
  60. anyscale/controllers/cluster_controller.py +2 -2
  61. anyscale/controllers/compute_config_controller.py +1 -1
  62. anyscale/controllers/experimental_integrations_controller.py +1 -1
  63. anyscale/controllers/job_controller.py +8 -3
  64. anyscale/controllers/list_controller.py +2 -2
  65. anyscale/controllers/machine_pool_controller.py +12 -1
  66. anyscale/controllers/project_controller.py +4 -3
  67. anyscale/controllers/schedule_controller.py +1 -1
  68. anyscale/controllers/service_controller.py +1 -1
  69. anyscale/controllers/workspace_controller.py +1 -1
  70. anyscale/models/job_model.py +1 -1
  71. anyscale/organization_invitation/__init__.py +61 -0
  72. anyscale/organization_invitation/_private/organization_invitation_sdk.py +24 -0
  73. anyscale/organization_invitation/commands.py +84 -0
  74. anyscale/organization_invitation/models.py +45 -0
  75. anyscale/project/__init__.py +35 -0
  76. anyscale/project/_private/project_sdk.py +27 -0
  77. anyscale/project/commands.py +56 -0
  78. anyscale/project/models.py +91 -0
  79. anyscale/{project.py → project_utils.py} +3 -4
  80. anyscale/resource_quota/__init__.py +99 -0
  81. anyscale/resource_quota/_private/resource_quota_sdk.py +111 -0
  82. anyscale/resource_quota/commands.py +150 -0
  83. anyscale/resource_quota/models.py +303 -0
  84. anyscale/scripts.py +6 -0
  85. anyscale/sdk/anyscale_client/__init__.py +0 -5
  86. anyscale/sdk/anyscale_client/api/default_api.py +0 -150
  87. anyscale/sdk/anyscale_client/models/__init__.py +0 -5
  88. anyscale/sdk/anyscale_client/models/cluster_status_details.py +2 -1
  89. anyscale/sdk/anyscale_client/sdk.py +1 -1
  90. anyscale/user/__init__.py +35 -0
  91. anyscale/user/_private/user_sdk.py +32 -0
  92. anyscale/user/commands.py +42 -0
  93. anyscale/user/models.py +201 -0
  94. anyscale/util.py +15 -0
  95. anyscale/utils/cloud_utils.py +1 -1
  96. anyscale/version.py +1 -1
  97. anyscale/workspace_utils.py +1 -1
  98. {anyscale-0.24.87.dist-info → anyscale-0.24.91.dist-info}/METADATA +1 -5
  99. {anyscale-0.24.87.dist-info → anyscale-0.24.91.dist-info}/RECORD +105 -92
  100. anyscale/client/openapi_client/models/create_fine_tuning_hyperparameters.py +0 -156
  101. anyscale/client/openapi_client/models/create_fine_tuning_job_product_request.py +0 -353
  102. anyscale/client/openapi_client/models/finish_ft_job_request.py +0 -204
  103. anyscale/client/openapi_client/models/log_level_types.py +0 -100
  104. anyscale/client/openapi_client/models/paging_context.py +0 -172
  105. anyscale/client/openapi_client/models/platform_fine_tuning_job.py +0 -577
  106. anyscale/client/openapi_client/models/session_event.py +0 -267
  107. anyscale/client/openapi_client/models/session_event_cause.py +0 -150
  108. anyscale/controllers/resource_quota_controller.py +0 -183
  109. anyscale/sdk/anyscale_client/models/log_level_types.py +0 -100
  110. anyscale/sdk/anyscale_client/models/session_event.py +0 -267
  111. anyscale/sdk/anyscale_client/models/session_event_cause.py +0 -150
  112. anyscale/sdk/anyscale_client/models/session_event_types.py +0 -111
  113. anyscale/sdk/anyscale_client/models/sessionevent_list_response.py +0 -147
  114. anyscale/utils/imports/azure.py +0 -14
  115. /anyscale/{cloud.py → cloud_utils.py} +0 -0
  116. {anyscale-0.24.87.dist-info → anyscale-0.24.91.dist-info}/LICENSE +0 -0
  117. {anyscale-0.24.87.dist-info → anyscale-0.24.91.dist-info}/NOTICE +0 -0
  118. {anyscale-0.24.87.dist-info → anyscale-0.24.91.dist-info}/WHEEL +0 -0
  119. {anyscale-0.24.87.dist-info → anyscale-0.24.91.dist-info}/entry_points.txt +0 -0
  120. {anyscale-0.24.87.dist-info → anyscale-0.24.91.dist-info}/top_level.txt +0 -0
@@ -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 FinishFTJobRequest(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
- 'finetuning_job_id': 'str',
37
- 'token': 'str',
38
- 'model_config_version': 'str',
39
- 'model_config': 'object'
40
- }
41
-
42
- attribute_map = {
43
- 'finetuning_job_id': 'finetuning_job_id',
44
- 'token': 'token',
45
- 'model_config_version': 'model_config_version',
46
- 'model_config': 'model_config'
47
- }
48
-
49
- def __init__(self, finetuning_job_id=None, token=None, model_config_version=None, model_config=None, local_vars_configuration=None): # noqa: E501
50
- """FinishFTJobRequest - 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._finetuning_job_id = None
56
- self._token = None
57
- self._model_config_version = None
58
- self._model_config = None
59
- self.discriminator = None
60
-
61
- self.finetuning_job_id = finetuning_job_id
62
- self.token = token
63
- self.model_config_version = model_config_version
64
- self.model_config = model_config
65
-
66
- @property
67
- def finetuning_job_id(self):
68
- """Gets the finetuning_job_id of this FinishFTJobRequest. # noqa: E501
69
-
70
-
71
- :return: The finetuning_job_id of this FinishFTJobRequest. # noqa: E501
72
- :rtype: str
73
- """
74
- return self._finetuning_job_id
75
-
76
- @finetuning_job_id.setter
77
- def finetuning_job_id(self, finetuning_job_id):
78
- """Sets the finetuning_job_id of this FinishFTJobRequest.
79
-
80
-
81
- :param finetuning_job_id: The finetuning_job_id of this FinishFTJobRequest. # noqa: E501
82
- :type: str
83
- """
84
- if self.local_vars_configuration.client_side_validation and finetuning_job_id is None: # noqa: E501
85
- raise ValueError("Invalid value for `finetuning_job_id`, must not be `None`") # noqa: E501
86
-
87
- self._finetuning_job_id = finetuning_job_id
88
-
89
- @property
90
- def token(self):
91
- """Gets the token of this FinishFTJobRequest. # noqa: E501
92
-
93
-
94
- :return: The token of this FinishFTJobRequest. # noqa: E501
95
- :rtype: str
96
- """
97
- return self._token
98
-
99
- @token.setter
100
- def token(self, token):
101
- """Sets the token of this FinishFTJobRequest.
102
-
103
-
104
- :param token: The token of this FinishFTJobRequest. # noqa: E501
105
- :type: str
106
- """
107
- if self.local_vars_configuration.client_side_validation and token is None: # noqa: E501
108
- raise ValueError("Invalid value for `token`, must not be `None`") # noqa: E501
109
-
110
- self._token = token
111
-
112
- @property
113
- def model_config_version(self):
114
- """Gets the model_config_version of this FinishFTJobRequest. # noqa: E501
115
-
116
- The version of LLMForge # noqa: E501
117
-
118
- :return: The model_config_version of this FinishFTJobRequest. # noqa: E501
119
- :rtype: str
120
- """
121
- return self._model_config_version
122
-
123
- @model_config_version.setter
124
- def model_config_version(self, model_config_version):
125
- """Sets the model_config_version of this FinishFTJobRequest.
126
-
127
- The version of LLMForge # noqa: E501
128
-
129
- :param model_config_version: The model_config_version of this FinishFTJobRequest. # noqa: E501
130
- :type: str
131
- """
132
- if self.local_vars_configuration.client_side_validation and model_config_version is None: # noqa: E501
133
- raise ValueError("Invalid value for `model_config_version`, must not be `None`") # noqa: E501
134
-
135
- self._model_config_version = model_config_version
136
-
137
- @property
138
- def model_config(self):
139
- """Gets the model_config of this FinishFTJobRequest. # noqa: E501
140
-
141
-
142
- :return: The model_config of this FinishFTJobRequest. # noqa: E501
143
- :rtype: object
144
- """
145
- return self._model_config
146
-
147
- @model_config.setter
148
- def model_config(self, model_config):
149
- """Sets the model_config of this FinishFTJobRequest.
150
-
151
-
152
- :param model_config: The model_config of this FinishFTJobRequest. # noqa: E501
153
- :type: object
154
- """
155
- if self.local_vars_configuration.client_side_validation and model_config is None: # noqa: E501
156
- raise ValueError("Invalid value for `model_config`, must not be `None`") # noqa: E501
157
-
158
- self._model_config = model_config
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, FinishFTJobRequest):
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, FinishFTJobRequest):
202
- return True
203
-
204
- return self.to_dict() != other.to_dict()
@@ -1,100 +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 LogLevelTypes(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
- allowed enum values
30
- """
31
- INFO = "info"
32
- ERROR = "error"
33
-
34
- allowable_values = [INFO, ERROR] # noqa: E501
35
-
36
- """
37
- Attributes:
38
- openapi_types (dict): The key is attribute name
39
- and the value is attribute type.
40
- attribute_map (dict): The key is attribute name
41
- and the value is json key in definition.
42
- """
43
- openapi_types = {
44
- }
45
-
46
- attribute_map = {
47
- }
48
-
49
- def __init__(self, local_vars_configuration=None): # noqa: E501
50
- """LogLevelTypes - 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
- self.discriminator = None
55
-
56
- def to_dict(self):
57
- """Returns the model properties as a dict"""
58
- result = {}
59
-
60
- for attr, _ in six.iteritems(self.openapi_types):
61
- value = getattr(self, attr)
62
- if isinstance(value, list):
63
- result[attr] = list(map(
64
- lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
65
- value
66
- ))
67
- elif hasattr(value, "to_dict"):
68
- result[attr] = value.to_dict()
69
- elif isinstance(value, dict):
70
- result[attr] = dict(map(
71
- lambda item: (item[0], item[1].to_dict())
72
- if hasattr(item[1], "to_dict") else item,
73
- value.items()
74
- ))
75
- else:
76
- result[attr] = value
77
-
78
- return result
79
-
80
- def to_str(self):
81
- """Returns the string representation of the model"""
82
- return pprint.pformat(self.to_dict())
83
-
84
- def __repr__(self):
85
- """For `print` and `pprint`"""
86
- return self.to_str()
87
-
88
- def __eq__(self, other):
89
- """Returns true if both objects are equal"""
90
- if not isinstance(other, LogLevelTypes):
91
- return False
92
-
93
- return self.to_dict() == other.to_dict()
94
-
95
- def __ne__(self, other):
96
- """Returns true if both objects are not equal"""
97
- if not isinstance(other, LogLevelTypes):
98
- return True
99
-
100
- return self.to_dict() != other.to_dict()
@@ -1,172 +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 PagingContext(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
- 'offset': 'int',
37
- 'count': 'int',
38
- 'paging_token': 'str'
39
- }
40
-
41
- attribute_map = {
42
- 'offset': 'offset',
43
- 'count': 'count',
44
- 'paging_token': 'paging_token'
45
- }
46
-
47
- def __init__(self, offset=None, count=None, paging_token=None, local_vars_configuration=None): # noqa: E501
48
- """PagingContext - 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._offset = None
54
- self._count = None
55
- self._paging_token = None
56
- self.discriminator = None
57
-
58
- if offset is not None:
59
- self.offset = offset
60
- if count is not None:
61
- self.count = count
62
- if paging_token is not None:
63
- self.paging_token = paging_token
64
-
65
- @property
66
- def offset(self):
67
- """Gets the offset of this PagingContext. # noqa: E501
68
-
69
-
70
- :return: The offset of this PagingContext. # noqa: E501
71
- :rtype: int
72
- """
73
- return self._offset
74
-
75
- @offset.setter
76
- def offset(self, offset):
77
- """Sets the offset of this PagingContext.
78
-
79
-
80
- :param offset: The offset of this PagingContext. # noqa: E501
81
- :type: int
82
- """
83
-
84
- self._offset = offset
85
-
86
- @property
87
- def count(self):
88
- """Gets the count of this PagingContext. # noqa: E501
89
-
90
-
91
- :return: The count of this PagingContext. # noqa: E501
92
- :rtype: int
93
- """
94
- return self._count
95
-
96
- @count.setter
97
- def count(self, count):
98
- """Sets the count of this PagingContext.
99
-
100
-
101
- :param count: The count of this PagingContext. # noqa: E501
102
- :type: int
103
- """
104
-
105
- self._count = count
106
-
107
- @property
108
- def paging_token(self):
109
- """Gets the paging_token of this PagingContext. # noqa: E501
110
-
111
-
112
- :return: The paging_token of this PagingContext. # noqa: E501
113
- :rtype: str
114
- """
115
- return self._paging_token
116
-
117
- @paging_token.setter
118
- def paging_token(self, paging_token):
119
- """Sets the paging_token of this PagingContext.
120
-
121
-
122
- :param paging_token: The paging_token of this PagingContext. # noqa: E501
123
- :type: str
124
- """
125
-
126
- self._paging_token = paging_token
127
-
128
- def to_dict(self):
129
- """Returns the model properties as a dict"""
130
- result = {}
131
-
132
- for attr, _ in six.iteritems(self.openapi_types):
133
- value = getattr(self, attr)
134
- if isinstance(value, list):
135
- result[attr] = list(map(
136
- lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
137
- value
138
- ))
139
- elif hasattr(value, "to_dict"):
140
- result[attr] = value.to_dict()
141
- elif isinstance(value, dict):
142
- result[attr] = dict(map(
143
- lambda item: (item[0], item[1].to_dict())
144
- if hasattr(item[1], "to_dict") else item,
145
- value.items()
146
- ))
147
- else:
148
- result[attr] = value
149
-
150
- return result
151
-
152
- def to_str(self):
153
- """Returns the string representation of the model"""
154
- return pprint.pformat(self.to_dict())
155
-
156
- def __repr__(self):
157
- """For `print` and `pprint`"""
158
- return self.to_str()
159
-
160
- def __eq__(self, other):
161
- """Returns true if both objects are equal"""
162
- if not isinstance(other, PagingContext):
163
- return False
164
-
165
- return self.to_dict() == other.to_dict()
166
-
167
- def __ne__(self, other):
168
- """Returns true if both objects are not equal"""
169
- if not isinstance(other, PagingContext):
170
- return True
171
-
172
- return self.to_dict() != other.to_dict()