anyscale 0.26.50__py3-none-any.whl → 0.26.52__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/_private/anyscale_client/README.md +1 -1
- anyscale/_private/anyscale_client/anyscale_client.py +178 -46
- anyscale/_private/anyscale_client/common.py +61 -2
- anyscale/_private/anyscale_client/fake_anyscale_client.py +145 -8
- anyscale/_private/docgen/__main__.py +34 -23
- anyscale/_private/docgen/generator.py +15 -18
- anyscale/_private/docgen/models.md +4 -2
- anyscale/_private/workload/workload_sdk.py +103 -8
- anyscale/client/README.md +5 -0
- anyscale/client/openapi_client/__init__.py +1 -0
- anyscale/client/openapi_client/api/default_api.py +538 -0
- anyscale/client/openapi_client/models/__init__.py +1 -0
- anyscale/client/openapi_client/models/baseimagesenum.py +83 -1
- anyscale/client/openapi_client/models/cloud_resource.py +59 -3
- anyscale/client/openapi_client/models/cloud_resource_gcp.py +59 -3
- anyscale/client/openapi_client/models/clouddeployment_response.py +121 -0
- anyscale/client/openapi_client/models/create_cloud_resource.py +59 -3
- anyscale/client/openapi_client/models/create_cloud_resource_gcp.py +59 -3
- anyscale/client/openapi_client/models/object_storage.py +2 -2
- anyscale/client/openapi_client/models/ray_runtime_env_config.py +57 -1
- anyscale/client/openapi_client/models/supportedbaseimagesenum.py +80 -1
- anyscale/cloud/models.py +1 -1
- anyscale/commands/cloud_commands.py +73 -70
- anyscale/commands/command_examples.py +28 -40
- anyscale/commands/project_commands.py +377 -106
- anyscale/commands/workspace_commands_v2.py +62 -29
- anyscale/controllers/cloud_controller.py +91 -91
- anyscale/job/_private/job_sdk.py +38 -20
- anyscale/project/__init__.py +101 -1
- anyscale/project/_private/project_sdk.py +90 -2
- anyscale/project/commands.py +188 -1
- anyscale/project/models.py +198 -2
- anyscale/sdk/anyscale_client/models/baseimagesenum.py +83 -1
- anyscale/sdk/anyscale_client/models/ray_runtime_env_config.py +57 -1
- anyscale/sdk/anyscale_client/models/supportedbaseimagesenum.py +80 -1
- anyscale/service/_private/service_sdk.py +2 -1
- anyscale/shared_anyscale_utils/latest_ray_version.py +1 -1
- anyscale/util.py +3 -0
- anyscale/utils/cloud_utils.py +20 -0
- anyscale/utils/runtime_env.py +3 -1
- anyscale/version.py +1 -1
- {anyscale-0.26.50.dist-info → anyscale-0.26.52.dist-info}/METADATA +1 -1
- {anyscale-0.26.50.dist-info → anyscale-0.26.52.dist-info}/RECORD +48 -47
- {anyscale-0.26.50.dist-info → anyscale-0.26.52.dist-info}/WHEEL +0 -0
- {anyscale-0.26.50.dist-info → anyscale-0.26.52.dist-info}/entry_points.txt +0 -0
- {anyscale-0.26.50.dist-info → anyscale-0.26.52.dist-info}/licenses/LICENSE +0 -0
- {anyscale-0.26.50.dist-info → anyscale-0.26.52.dist-info}/licenses/NOTICE +0 -0
- {anyscale-0.26.50.dist-info → anyscale-0.26.52.dist-info}/top_level.txt +0 -0
@@ -69,7 +69,13 @@ from anyscale.job.models import (
|
|
69
69
|
JobStatus,
|
70
70
|
)
|
71
71
|
from anyscale.organization_invitation.models import OrganizationInvitation
|
72
|
-
from anyscale.project.models import
|
72
|
+
from anyscale.project.models import (
|
73
|
+
CreateProjectCollaborator,
|
74
|
+
Project,
|
75
|
+
ProjectPermissionLevel,
|
76
|
+
ProjectSortField,
|
77
|
+
ProjectSortOrder,
|
78
|
+
)
|
73
79
|
from anyscale.resource_quota.models import CreateResourceQuota, Quota, ResourceQuota
|
74
80
|
from anyscale.schedule.models import ScheduleConfig, ScheduleState, ScheduleStatus
|
75
81
|
from anyscale.service.models import (
|
@@ -110,25 +116,33 @@ ALL_MODULES = [
|
|
110
116
|
title="Project",
|
111
117
|
filename="project-api.md",
|
112
118
|
cli_prefix="anyscale project",
|
113
|
-
cli_commands=[
|
119
|
+
cli_commands=[
|
120
|
+
project_commands.get,
|
121
|
+
project_commands.list,
|
122
|
+
project_commands.create,
|
123
|
+
project_commands.delete,
|
124
|
+
project_commands.get_default,
|
125
|
+
project_commands.add_collaborators,
|
126
|
+
],
|
114
127
|
sdk_prefix="anyscale.project",
|
115
|
-
sdk_commands=[
|
116
|
-
|
117
|
-
|
118
|
-
|
119
|
-
|
120
|
-
|
121
|
-
|
122
|
-
"get_project": None,
|
123
|
-
"search_projects": None,
|
124
|
-
},
|
125
|
-
legacy_sdk_models=[
|
126
|
-
"CreateProject",
|
127
|
-
"Project",
|
128
|
-
"ProjectListResponse",
|
129
|
-
"ProjectResponse",
|
130
|
-
"ProjectsQuery",
|
128
|
+
sdk_commands=[
|
129
|
+
anyscale.project.get,
|
130
|
+
anyscale.project.list,
|
131
|
+
anyscale.project.create,
|
132
|
+
anyscale.project.delete,
|
133
|
+
anyscale.project.get_default,
|
134
|
+
anyscale.project.add_collaborators,
|
131
135
|
],
|
136
|
+
models=[
|
137
|
+
Project,
|
138
|
+
ProjectSortField,
|
139
|
+
ProjectSortOrder,
|
140
|
+
CreateProjectCollaborator,
|
141
|
+
ProjectPermissionLevel,
|
142
|
+
],
|
143
|
+
legacy_cli_commands=[],
|
144
|
+
legacy_sdk_commands={},
|
145
|
+
legacy_sdk_models=[],
|
132
146
|
),
|
133
147
|
Module(
|
134
148
|
title="Job",
|
@@ -321,7 +335,6 @@ ALL_MODULES = [
|
|
321
335
|
WorkerNodeGroupConfig,
|
322
336
|
MarketType,
|
323
337
|
CloudDeploymentSelector,
|
324
|
-
MultiDeploymentComputeConfig,
|
325
338
|
ComputeConfigVersion,
|
326
339
|
],
|
327
340
|
legacy_sdk_commands={
|
@@ -436,9 +449,8 @@ ALL_MODULES = [
|
|
436
449
|
cloud_commands.cloud_verify,
|
437
450
|
cloud_commands.list_cloud,
|
438
451
|
cloud_commands.cloud_deployment_create,
|
439
|
-
cloud_commands.cloud_deployment_get,
|
440
|
-
cloud_commands.cloud_deployment_update,
|
441
452
|
cloud_commands.cloud_deployment_delete,
|
453
|
+
cloud_commands.cloud_config_get,
|
442
454
|
cloud_commands.cloud_config_update,
|
443
455
|
cloud_commands.cloud_set_default,
|
444
456
|
cloud_commands.add_collaborators,
|
@@ -470,9 +482,8 @@ ALL_MODULES = [
|
|
470
482
|
],
|
471
483
|
cli_command_group_prefix={
|
472
484
|
cloud_commands.cloud_deployment_create: "deployment",
|
473
|
-
cloud_commands.cloud_deployment_get: "deployment",
|
474
|
-
cloud_commands.cloud_deployment_update: "deployment",
|
475
485
|
cloud_commands.cloud_deployment_delete: "deployment",
|
486
|
+
cloud_commands.cloud_config_get: "config",
|
476
487
|
cloud_commands.cloud_config_update: "config",
|
477
488
|
},
|
478
489
|
legacy_sdk_commands={
|
@@ -15,7 +15,11 @@ from anyscale._private.docgen.generator_legacy import (
|
|
15
15
|
LegacySDK,
|
16
16
|
parse_legacy_sdks,
|
17
17
|
)
|
18
|
-
from anyscale._private.models.model_base import
|
18
|
+
from anyscale._private.models.model_base import (
|
19
|
+
ModelBaseType,
|
20
|
+
ModelEnumType,
|
21
|
+
ResultIterator,
|
22
|
+
)
|
19
23
|
from anyscale.commands.util import AnyscaleCommand, LegacyAnyscaleCommand
|
20
24
|
|
21
25
|
|
@@ -48,7 +52,7 @@ CUSTOMER_HOSTED_QUALIFIER = (
|
|
48
52
|
|
49
53
|
def _escape_mdx_content(text: str) -> str:
|
50
54
|
"""Escape content for MDX compatibility.
|
51
|
-
|
55
|
+
|
52
56
|
This function escapes angle brackets that could be interpreted as HTML tags
|
53
57
|
by MDX, converting them to escaped versions.
|
54
58
|
"""
|
@@ -226,26 +230,19 @@ class MarkdownGenerator:
|
|
226
230
|
if origin is Union:
|
227
231
|
return " | ".join(self._model_type_to_string(arg) for arg in args)
|
228
232
|
|
229
|
-
|
230
|
-
|
231
|
-
|
232
|
-
|
233
|
-
|
234
|
-
|
235
|
-
|
236
|
-
if origin is list:
|
237
|
-
arg_str = ", ".join([self._model_type_to_string(arg) for arg in args])
|
238
|
-
if arg_str:
|
239
|
-
return f"List[{arg_str}]"
|
240
|
-
else:
|
241
|
-
return "List"
|
233
|
+
origin_name_map = {
|
234
|
+
dict: "Dict",
|
235
|
+
list: "List",
|
236
|
+
tuple: "Tuple",
|
237
|
+
ResultIterator: "ResultIterator",
|
238
|
+
}
|
242
239
|
|
243
|
-
if origin
|
240
|
+
if origin in origin_name_map:
|
244
241
|
arg_str = ", ".join([self._model_type_to_string(arg) for arg in args])
|
245
242
|
if arg_str:
|
246
|
-
return f"
|
243
|
+
return f"{origin_name_map[origin]}[{arg_str}]"
|
247
244
|
else:
|
248
|
-
return
|
245
|
+
return origin_name_map[origin]
|
249
246
|
|
250
247
|
raise NotImplementedError(f"Unhandled type: {t}")
|
251
248
|
|