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.
Files changed (48) hide show
  1. anyscale/_private/anyscale_client/README.md +1 -1
  2. anyscale/_private/anyscale_client/anyscale_client.py +178 -46
  3. anyscale/_private/anyscale_client/common.py +61 -2
  4. anyscale/_private/anyscale_client/fake_anyscale_client.py +145 -8
  5. anyscale/_private/docgen/__main__.py +34 -23
  6. anyscale/_private/docgen/generator.py +15 -18
  7. anyscale/_private/docgen/models.md +4 -2
  8. anyscale/_private/workload/workload_sdk.py +103 -8
  9. anyscale/client/README.md +5 -0
  10. anyscale/client/openapi_client/__init__.py +1 -0
  11. anyscale/client/openapi_client/api/default_api.py +538 -0
  12. anyscale/client/openapi_client/models/__init__.py +1 -0
  13. anyscale/client/openapi_client/models/baseimagesenum.py +83 -1
  14. anyscale/client/openapi_client/models/cloud_resource.py +59 -3
  15. anyscale/client/openapi_client/models/cloud_resource_gcp.py +59 -3
  16. anyscale/client/openapi_client/models/clouddeployment_response.py +121 -0
  17. anyscale/client/openapi_client/models/create_cloud_resource.py +59 -3
  18. anyscale/client/openapi_client/models/create_cloud_resource_gcp.py +59 -3
  19. anyscale/client/openapi_client/models/object_storage.py +2 -2
  20. anyscale/client/openapi_client/models/ray_runtime_env_config.py +57 -1
  21. anyscale/client/openapi_client/models/supportedbaseimagesenum.py +80 -1
  22. anyscale/cloud/models.py +1 -1
  23. anyscale/commands/cloud_commands.py +73 -70
  24. anyscale/commands/command_examples.py +28 -40
  25. anyscale/commands/project_commands.py +377 -106
  26. anyscale/commands/workspace_commands_v2.py +62 -29
  27. anyscale/controllers/cloud_controller.py +91 -91
  28. anyscale/job/_private/job_sdk.py +38 -20
  29. anyscale/project/__init__.py +101 -1
  30. anyscale/project/_private/project_sdk.py +90 -2
  31. anyscale/project/commands.py +188 -1
  32. anyscale/project/models.py +198 -2
  33. anyscale/sdk/anyscale_client/models/baseimagesenum.py +83 -1
  34. anyscale/sdk/anyscale_client/models/ray_runtime_env_config.py +57 -1
  35. anyscale/sdk/anyscale_client/models/supportedbaseimagesenum.py +80 -1
  36. anyscale/service/_private/service_sdk.py +2 -1
  37. anyscale/shared_anyscale_utils/latest_ray_version.py +1 -1
  38. anyscale/util.py +3 -0
  39. anyscale/utils/cloud_utils.py +20 -0
  40. anyscale/utils/runtime_env.py +3 -1
  41. anyscale/version.py +1 -1
  42. {anyscale-0.26.50.dist-info → anyscale-0.26.52.dist-info}/METADATA +1 -1
  43. {anyscale-0.26.50.dist-info → anyscale-0.26.52.dist-info}/RECORD +48 -47
  44. {anyscale-0.26.50.dist-info → anyscale-0.26.52.dist-info}/WHEEL +0 -0
  45. {anyscale-0.26.50.dist-info → anyscale-0.26.52.dist-info}/entry_points.txt +0 -0
  46. {anyscale-0.26.50.dist-info → anyscale-0.26.52.dist-info}/licenses/LICENSE +0 -0
  47. {anyscale-0.26.50.dist-info → anyscale-0.26.52.dist-info}/licenses/NOTICE +0 -0
  48. {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 CreateProjectCollaborator, ProjectPermissionLevel
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=[project_commands.add_collaborators,],
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=[anyscale.project.add_collaborators,],
116
- models=[ProjectPermissionLevel, CreateProjectCollaborator],
117
- legacy_cli_commands=[project_commands.create, project_commands.list,],
118
- legacy_sdk_commands={
119
- "create_project": None,
120
- "delete_project": None,
121
- "get_default_project": None,
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 ModelBaseType, ModelEnumType
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
- if origin is dict:
230
- arg_str = ", ".join([self._model_type_to_string(arg) for arg in args])
231
- if args:
232
- return f"Dict[{arg_str}]"
233
- else:
234
- return "Dict"
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 is tuple:
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"Tuple[{arg_str}]"
243
+ return f"{origin_name_map[origin]}[{arg_str}]"
247
244
  else:
248
- return "Tuple"
245
+ return origin_name_map[origin]
249
246
 
250
247
  raise NotImplementedError(f"Unhandled type: {t}")
251
248