anyscale 0.24.88__py3-none-any.whl → 0.25.5__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.
- anyscale/__init__.py +56 -0
- anyscale/_private/anyscale_client/anyscale_client.py +179 -28
- anyscale/_private/anyscale_client/common.py +109 -2
- anyscale/_private/anyscale_client/fake_anyscale_client.py +239 -1
- anyscale/_private/docgen/README.md +1 -1
- anyscale/_private/docgen/__main__.py +71 -21
- anyscale/_private/docgen/api.md +13 -20
- anyscale/_private/docgen/generator.py +3 -2
- anyscale/_private/docgen/models.md +4 -49
- anyscale/_private/workload/workload_config.py +21 -7
- anyscale/aggregated_instance_usage/__init__.py +1 -1
- anyscale/aggregated_instance_usage/commands.py +2 -4
- anyscale/aggregated_instance_usage/models.py +8 -8
- anyscale/client/README.md +25 -22
- anyscale/client/openapi_client/__init__.py +16 -14
- anyscale/client/openapi_client/api/default_api.py +1139 -959
- anyscale/client/openapi_client/models/__init__.py +16 -14
- anyscale/client/openapi_client/models/baseimagesenum.py +43 -1
- anyscale/client/openapi_client/models/{session_event_types.py → cloud_deployment_config.py} +35 -24
- anyscale/client/openapi_client/models/{platformfinetuningjob_response.py → clouddeploymentconfig_response.py} +11 -11
- anyscale/client/openapi_client/models/{log_level_types.py → cluster_event_source.py} +12 -7
- anyscale/client/openapi_client/models/{company_size.py → cluster_size.py} +10 -10
- anyscale/client/openapi_client/models/cluster_status_details.py +2 -1
- anyscale/client/openapi_client/models/{sessionevent_list_response.py → clusterevent_list_response.py} +15 -15
- anyscale/client/openapi_client/models/create_experimental_workspace.py +29 -1
- anyscale/client/openapi_client/models/create_notification_channel_record.py +29 -3
- anyscale/client/openapi_client/models/decorated_interactive_session.py +1 -57
- anyscale/client/openapi_client/models/decorated_job.py +1 -57
- anyscale/client/openapi_client/models/decorated_job_submission.py +1 -29
- anyscale/client/openapi_client/models/decorated_production_job.py +1 -29
- anyscale/client/openapi_client/models/decorated_session.py +1 -57
- anyscale/client/openapi_client/models/decorated_unified_job.py +1 -30
- anyscale/client/openapi_client/models/{resubmit_ft_job_request.py → describe_machine_pool_request.py} +21 -20
- anyscale/client/openapi_client/models/describe_machine_pool_response.py +123 -0
- anyscale/client/openapi_client/models/describemachinepoolresponse_response.py +121 -0
- anyscale/client/openapi_client/models/ha_jobs_sort_field.py +1 -2
- anyscale/client/openapi_client/models/internal_production_job.py +1 -29
- anyscale/client/openapi_client/models/jobs_sort_field.py +1 -2
- anyscale/client/openapi_client/models/machine_allocation_state.py +3 -1
- anyscale/client/openapi_client/models/machine_state_info.py +326 -0
- anyscale/client/openapi_client/models/{fine_tuning_job_status.py → notification_channel_slack_config.py} +34 -16
- anyscale/client/openapi_client/models/organization_marketing_questions.py +80 -54
- anyscale/client/openapi_client/models/request_state_info.py +210 -0
- anyscale/client/openapi_client/models/{platformfinetuningjob_list_response.py → scheduler_info.py} +43 -38
- anyscale/client/openapi_client/models/serve_deployment_fast_api_docs_status.py +123 -0
- anyscale/client/openapi_client/models/serve_deployment_state.py +2 -1
- anyscale/client/openapi_client/models/servedeploymentfastapidocsstatus_response.py +121 -0
- anyscale/client/openapi_client/models/sessions_sort_field.py +1 -2
- anyscale/client/openapi_client/models/supportedbaseimagesenum.py +43 -1
- anyscale/client/openapi_client/models/unified_job_sort_field.py +1 -2
- anyscale/client/openapi_client/models/update_cloud_collaborator.py +121 -0
- anyscale/client/openapi_client/models/usage_by_cluster.py +28 -1
- anyscale/client/openapi_client/models/usage_by_user.py +30 -3
- anyscale/client/openapi_client/models/workload_info.py +210 -0
- anyscale/cloud/__init__.py +83 -0
- anyscale/cloud/_private/cloud_sdk.py +25 -0
- anyscale/cloud/commands.py +45 -0
- anyscale/cloud/models.py +91 -0
- anyscale/cluster_compute.py +1 -1
- anyscale/commands/aggregated_instance_usage_commands.py +4 -4
- anyscale/commands/cloud_commands.py +87 -14
- anyscale/commands/command_examples.py +65 -0
- anyscale/commands/job_commands.py +15 -3
- anyscale/commands/machine_pool_commands.py +113 -1
- anyscale/commands/organization_invitation_commands.py +98 -0
- anyscale/commands/project_commands.py +52 -2
- anyscale/commands/resource_quota_commands.py +98 -11
- anyscale/commands/service_account_commands.py +65 -8
- anyscale/commands/service_commands.py +61 -1
- anyscale/commands/session_commands_hidden.py +5 -1
- anyscale/commands/user_commands.py +1 -1
- anyscale/commands/util.py +2 -2
- anyscale/commands/workspace_commands.py +1 -1
- anyscale/connect.py +1 -1
- anyscale/connect_utils/project.py +7 -4
- anyscale/controllers/cloud_controller.py +63 -30
- anyscale/controllers/cloud_functional_verification_controller.py +1 -1
- anyscale/controllers/cluster_controller.py +3 -11
- anyscale/controllers/compute_config_controller.py +1 -1
- anyscale/controllers/experimental_integrations_controller.py +1 -1
- anyscale/controllers/job_controller.py +8 -6
- anyscale/controllers/list_controller.py +2 -2
- anyscale/controllers/machine_pool_controller.py +12 -1
- anyscale/controllers/project_controller.py +4 -3
- anyscale/controllers/schedule_controller.py +1 -1
- anyscale/controllers/service_controller.py +1 -1
- anyscale/controllers/workspace_controller.py +1 -1
- anyscale/models/job_model.py +1 -1
- anyscale/organization_invitation/__init__.py +61 -0
- anyscale/organization_invitation/_private/organization_invitation_sdk.py +24 -0
- anyscale/organization_invitation/commands.py +84 -0
- anyscale/organization_invitation/models.py +45 -0
- anyscale/project/__init__.py +35 -0
- anyscale/project/_private/project_sdk.py +27 -0
- anyscale/project/commands.py +56 -0
- anyscale/project/models.py +91 -0
- anyscale/{project.py → project_utils.py} +3 -4
- anyscale/resource_quota/__init__.py +99 -0
- anyscale/resource_quota/_private/resource_quota_sdk.py +120 -0
- anyscale/resource_quota/commands.py +150 -0
- anyscale/resource_quota/models.py +303 -0
- anyscale/scripts.py +4 -0
- anyscale/sdk/anyscale_client/__init__.py +0 -5
- anyscale/sdk/anyscale_client/api/default_api.py +119 -150
- anyscale/sdk/anyscale_client/models/__init__.py +0 -5
- anyscale/sdk/anyscale_client/models/baseimagesenum.py +43 -1
- anyscale/sdk/anyscale_client/models/cluster_status_details.py +2 -1
- anyscale/sdk/anyscale_client/models/jobs_sort_field.py +1 -2
- anyscale/sdk/anyscale_client/models/supportedbaseimagesenum.py +43 -1
- anyscale/sdk/anyscale_client/sdk.py +1 -1
- anyscale/service/__init__.py +21 -0
- anyscale/service/_private/service_sdk.py +13 -0
- anyscale/service/commands.py +35 -0
- anyscale/service_account/__init__.py +88 -0
- anyscale/service_account/_private/service_account_sdk.py +101 -0
- anyscale/service_account/commands.py +147 -0
- anyscale/service_account/models.py +66 -0
- anyscale/shared_anyscale_utils/latest_ray_version.py +1 -1
- anyscale/shared_anyscale_utils/utils/id_gen.py +2 -0
- anyscale/user/__init__.py +1 -1
- anyscale/user/commands.py +1 -1
- anyscale/user/models.py +25 -15
- anyscale/util.py +23 -0
- anyscale/utils/cloud_utils.py +1 -1
- anyscale/version.py +1 -1
- anyscale/workspace_utils.py +1 -1
- {anyscale-0.24.88.dist-info → anyscale-0.25.5.dist-info}/METADATA +1 -5
- {anyscale-0.24.88.dist-info → anyscale-0.25.5.dist-info}/RECORD +134 -119
- anyscale/client/openapi_client/models/create_fine_tuning_hyperparameters.py +0 -156
- anyscale/client/openapi_client/models/create_fine_tuning_job_product_request.py +0 -353
- anyscale/client/openapi_client/models/finish_ft_job_request.py +0 -204
- anyscale/client/openapi_client/models/platform_fine_tuning_job.py +0 -577
- anyscale/client/openapi_client/models/session_event.py +0 -267
- anyscale/client/openapi_client/models/session_event_cause.py +0 -150
- anyscale/controllers/resource_quota_controller.py +0 -183
- anyscale/controllers/service_account_controller.py +0 -168
- anyscale/sdk/anyscale_client/models/log_level_types.py +0 -100
- anyscale/sdk/anyscale_client/models/session_event.py +0 -267
- anyscale/sdk/anyscale_client/models/session_event_cause.py +0 -150
- anyscale/sdk/anyscale_client/models/session_event_types.py +0 -111
- anyscale/sdk/anyscale_client/models/sessionevent_list_response.py +0 -147
- anyscale/utils/imports/azure.py +0 -14
- /anyscale/{cloud.py → cloud_utils.py} +0 -0
- {anyscale-0.24.88.dist-info → anyscale-0.25.5.dist-info}/LICENSE +0 -0
- {anyscale-0.24.88.dist-info → anyscale-0.25.5.dist-info}/NOTICE +0 -0
- {anyscale-0.24.88.dist-info → anyscale-0.25.5.dist-info}/WHEEL +0 -0
- {anyscale-0.24.88.dist-info → anyscale-0.25.5.dist-info}/entry_points.txt +0 -0
- {anyscale-0.24.88.dist-info → anyscale-0.25.5.dist-info}/top_level.txt +0 -0
@@ -1,111 +0,0 @@
|
|
1
|
-
# coding: utf-8
|
2
|
-
|
3
|
-
"""
|
4
|
-
Anyscale 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 anyscale_client.configuration import Configuration
|
19
|
-
|
20
|
-
|
21
|
-
class SessionEventTypes(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
|
-
EDITED = "edited"
|
32
|
-
TERMINATE_COMMAND = "terminate_command"
|
33
|
-
START_COMMAND = "start_command"
|
34
|
-
RUNNING = "running"
|
35
|
-
TERMINATED = "terminated"
|
36
|
-
AWAITING_FILE_MOUNTS = "awaiting_file_mounts"
|
37
|
-
STARTING = "starting"
|
38
|
-
UPDATING = "updating"
|
39
|
-
TERMINATING = "terminating"
|
40
|
-
CREATED = "created"
|
41
|
-
TERMINATING_ERRORED = "terminating_errored"
|
42
|
-
UPDATING_ERRORED = "updating_errored"
|
43
|
-
STARTUP_ERRORED = "startup_errored"
|
44
|
-
|
45
|
-
allowable_values = [EDITED, TERMINATE_COMMAND, START_COMMAND, RUNNING, TERMINATED, AWAITING_FILE_MOUNTS, STARTING, UPDATING, TERMINATING, CREATED, TERMINATING_ERRORED, UPDATING_ERRORED, STARTUP_ERRORED] # noqa: E501
|
46
|
-
|
47
|
-
"""
|
48
|
-
Attributes:
|
49
|
-
openapi_types (dict): The key is attribute name
|
50
|
-
and the value is attribute type.
|
51
|
-
attribute_map (dict): The key is attribute name
|
52
|
-
and the value is json key in definition.
|
53
|
-
"""
|
54
|
-
openapi_types = {
|
55
|
-
}
|
56
|
-
|
57
|
-
attribute_map = {
|
58
|
-
}
|
59
|
-
|
60
|
-
def __init__(self, local_vars_configuration=None): # noqa: E501
|
61
|
-
"""SessionEventTypes - a model defined in OpenAPI""" # noqa: E501
|
62
|
-
if local_vars_configuration is None:
|
63
|
-
local_vars_configuration = Configuration()
|
64
|
-
self.local_vars_configuration = local_vars_configuration
|
65
|
-
self.discriminator = None
|
66
|
-
|
67
|
-
def to_dict(self):
|
68
|
-
"""Returns the model properties as a dict"""
|
69
|
-
result = {}
|
70
|
-
|
71
|
-
for attr, _ in six.iteritems(self.openapi_types):
|
72
|
-
value = getattr(self, attr)
|
73
|
-
if isinstance(value, list):
|
74
|
-
result[attr] = list(map(
|
75
|
-
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
76
|
-
value
|
77
|
-
))
|
78
|
-
elif hasattr(value, "to_dict"):
|
79
|
-
result[attr] = value.to_dict()
|
80
|
-
elif isinstance(value, dict):
|
81
|
-
result[attr] = dict(map(
|
82
|
-
lambda item: (item[0], item[1].to_dict())
|
83
|
-
if hasattr(item[1], "to_dict") else item,
|
84
|
-
value.items()
|
85
|
-
))
|
86
|
-
else:
|
87
|
-
result[attr] = value
|
88
|
-
|
89
|
-
return result
|
90
|
-
|
91
|
-
def to_str(self):
|
92
|
-
"""Returns the string representation of the model"""
|
93
|
-
return pprint.pformat(self.to_dict())
|
94
|
-
|
95
|
-
def __repr__(self):
|
96
|
-
"""For `print` and `pprint`"""
|
97
|
-
return self.to_str()
|
98
|
-
|
99
|
-
def __eq__(self, other):
|
100
|
-
"""Returns true if both objects are equal"""
|
101
|
-
if not isinstance(other, SessionEventTypes):
|
102
|
-
return False
|
103
|
-
|
104
|
-
return self.to_dict() == other.to_dict()
|
105
|
-
|
106
|
-
def __ne__(self, other):
|
107
|
-
"""Returns true if both objects are not equal"""
|
108
|
-
if not isinstance(other, SessionEventTypes):
|
109
|
-
return True
|
110
|
-
|
111
|
-
return self.to_dict() != other.to_dict()
|
@@ -1,147 +0,0 @@
|
|
1
|
-
# coding: utf-8
|
2
|
-
|
3
|
-
"""
|
4
|
-
Anyscale 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 anyscale_client.configuration import Configuration
|
19
|
-
|
20
|
-
|
21
|
-
class SessioneventListResponse(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
|
-
'results': 'list[SessionEvent]',
|
37
|
-
'metadata': 'ListResponseMetadata'
|
38
|
-
}
|
39
|
-
|
40
|
-
attribute_map = {
|
41
|
-
'results': 'results',
|
42
|
-
'metadata': 'metadata'
|
43
|
-
}
|
44
|
-
|
45
|
-
def __init__(self, results=None, metadata=None, local_vars_configuration=None): # noqa: E501
|
46
|
-
"""SessioneventListResponse - 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._results = None
|
52
|
-
self._metadata = None
|
53
|
-
self.discriminator = None
|
54
|
-
|
55
|
-
self.results = results
|
56
|
-
if metadata is not None:
|
57
|
-
self.metadata = metadata
|
58
|
-
|
59
|
-
@property
|
60
|
-
def results(self):
|
61
|
-
"""Gets the results of this SessioneventListResponse. # noqa: E501
|
62
|
-
|
63
|
-
|
64
|
-
:return: The results of this SessioneventListResponse. # noqa: E501
|
65
|
-
:rtype: list[SessionEvent]
|
66
|
-
"""
|
67
|
-
return self._results
|
68
|
-
|
69
|
-
@results.setter
|
70
|
-
def results(self, results):
|
71
|
-
"""Sets the results of this SessioneventListResponse.
|
72
|
-
|
73
|
-
|
74
|
-
:param results: The results of this SessioneventListResponse. # noqa: E501
|
75
|
-
:type: list[SessionEvent]
|
76
|
-
"""
|
77
|
-
if self.local_vars_configuration.client_side_validation and results is None: # noqa: E501
|
78
|
-
raise ValueError("Invalid value for `results`, must not be `None`") # noqa: E501
|
79
|
-
|
80
|
-
self._results = results
|
81
|
-
|
82
|
-
@property
|
83
|
-
def metadata(self):
|
84
|
-
"""Gets the metadata of this SessioneventListResponse. # noqa: E501
|
85
|
-
|
86
|
-
|
87
|
-
:return: The metadata of this SessioneventListResponse. # noqa: E501
|
88
|
-
:rtype: ListResponseMetadata
|
89
|
-
"""
|
90
|
-
return self._metadata
|
91
|
-
|
92
|
-
@metadata.setter
|
93
|
-
def metadata(self, metadata):
|
94
|
-
"""Sets the metadata of this SessioneventListResponse.
|
95
|
-
|
96
|
-
|
97
|
-
:param metadata: The metadata of this SessioneventListResponse. # noqa: E501
|
98
|
-
:type: ListResponseMetadata
|
99
|
-
"""
|
100
|
-
|
101
|
-
self._metadata = metadata
|
102
|
-
|
103
|
-
def to_dict(self):
|
104
|
-
"""Returns the model properties as a dict"""
|
105
|
-
result = {}
|
106
|
-
|
107
|
-
for attr, _ in six.iteritems(self.openapi_types):
|
108
|
-
value = getattr(self, attr)
|
109
|
-
if isinstance(value, list):
|
110
|
-
result[attr] = list(map(
|
111
|
-
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
112
|
-
value
|
113
|
-
))
|
114
|
-
elif hasattr(value, "to_dict"):
|
115
|
-
result[attr] = value.to_dict()
|
116
|
-
elif isinstance(value, dict):
|
117
|
-
result[attr] = dict(map(
|
118
|
-
lambda item: (item[0], item[1].to_dict())
|
119
|
-
if hasattr(item[1], "to_dict") else item,
|
120
|
-
value.items()
|
121
|
-
))
|
122
|
-
else:
|
123
|
-
result[attr] = value
|
124
|
-
|
125
|
-
return result
|
126
|
-
|
127
|
-
def to_str(self):
|
128
|
-
"""Returns the string representation of the model"""
|
129
|
-
return pprint.pformat(self.to_dict())
|
130
|
-
|
131
|
-
def __repr__(self):
|
132
|
-
"""For `print` and `pprint`"""
|
133
|
-
return self.to_str()
|
134
|
-
|
135
|
-
def __eq__(self, other):
|
136
|
-
"""Returns true if both objects are equal"""
|
137
|
-
if not isinstance(other, SessioneventListResponse):
|
138
|
-
return False
|
139
|
-
|
140
|
-
return self.to_dict() == other.to_dict()
|
141
|
-
|
142
|
-
def __ne__(self, other):
|
143
|
-
"""Returns true if both objects are not equal"""
|
144
|
-
if not isinstance(other, SessioneventListResponse):
|
145
|
-
return True
|
146
|
-
|
147
|
-
return self.to_dict() != other.to_dict()
|
anyscale/utils/imports/azure.py
DELETED
@@ -1,14 +0,0 @@
|
|
1
|
-
import click
|
2
|
-
|
3
|
-
|
4
|
-
# TODO: type the return value
|
5
|
-
def try_import_azure_storage_blob_BlobServiceClient():
|
6
|
-
try:
|
7
|
-
from azure.storage.blob import BlobServiceClient
|
8
|
-
|
9
|
-
return BlobServiceClient
|
10
|
-
except ImportError:
|
11
|
-
raise click.ClickException(
|
12
|
-
"pip package `azure-storage-blob` is not installed locally on this machine but required "
|
13
|
-
"for the command. Please install with `pip install 'anyscale[azure]'`."
|
14
|
-
)
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|