anyscale 0.26.45__py3-none-any.whl → 0.26.47__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/anyscale_client.py +4 -2
- anyscale/_private/anyscale_client/common.py +2 -0
- anyscale/_private/anyscale_client/fake_anyscale_client.py +4 -1
- anyscale/client/README.md +4 -0
- anyscale/client/openapi_client/__init__.py +2 -0
- anyscale/client/openapi_client/api/default_api.py +247 -0
- anyscale/client/openapi_client/models/__init__.py +2 -0
- anyscale/client/openapi_client/models/clouddeployment_response.py +121 -0
- anyscale/client/openapi_client/models/collaborator_type.py +101 -0
- anyscale/client/openapi_client/models/task_table_row.py +29 -3
- anyscale/cloud_resource.py +120 -150
- anyscale/commands/cloud_commands.py +46 -3
- anyscale/commands/command_examples.py +8 -0
- anyscale/controllers/cloud_controller.py +361 -76
- anyscale/gcp_verification.py +51 -38
- anyscale/utils/s3.py +2 -2
- anyscale/utils/user_utils.py +2 -1
- anyscale/version.py +1 -1
- {anyscale-0.26.45.dist-info → anyscale-0.26.47.dist-info}/METADATA +11 -2
- {anyscale-0.26.45.dist-info → anyscale-0.26.47.dist-info}/RECORD +25 -23
- {anyscale-0.26.45.dist-info → anyscale-0.26.47.dist-info}/WHEEL +1 -1
- {anyscale-0.26.45.dist-info → anyscale-0.26.47.dist-info}/entry_points.txt +0 -0
- {anyscale-0.26.45.dist-info → anyscale-0.26.47.dist-info/licenses}/LICENSE +0 -0
- {anyscale-0.26.45.dist-info → anyscale-0.26.47.dist-info/licenses}/NOTICE +0 -0
- {anyscale-0.26.45.dist-info → anyscale-0.26.47.dist-info}/top_level.txt +0 -0
|
@@ -265,12 +265,48 @@ def cloud_config_group() -> None:
|
|
|
265
265
|
@click.option(
|
|
266
266
|
"--file", "-f", help="YAML file containing the deployment spec.", required=True,
|
|
267
267
|
)
|
|
268
|
+
@click.option(
|
|
269
|
+
"--skip-verification",
|
|
270
|
+
is_flag=True,
|
|
271
|
+
default=False,
|
|
272
|
+
help="Skip cloud deployment verification.",
|
|
273
|
+
)
|
|
274
|
+
@click.option(
|
|
275
|
+
"--yes", "-y", is_flag=True, default=False, help="Skip asking for confirmation."
|
|
276
|
+
)
|
|
277
|
+
def cloud_add_deployment(
|
|
278
|
+
cloud_name: str, file: str, skip_verification: bool, yes: bool,
|
|
279
|
+
) -> None:
|
|
280
|
+
try:
|
|
281
|
+
CloudController().add_cloud_deployment(cloud_name, file, skip_verification, yes)
|
|
282
|
+
except click.ClickException as e:
|
|
283
|
+
print(e)
|
|
284
|
+
|
|
285
|
+
|
|
286
|
+
@cloud_cli.command(
|
|
287
|
+
name="remove-deployment",
|
|
288
|
+
help="Remove a cloud deployment from an existing cloud.",
|
|
289
|
+
cls=AnyscaleCommand,
|
|
290
|
+
example=command_examples.CLOUD_REMOVE_DEPLOYMENT_EXAMPLE,
|
|
291
|
+
)
|
|
292
|
+
@click.option(
|
|
293
|
+
"--cloud",
|
|
294
|
+
help="The name of the cloud to remove the deployment from.",
|
|
295
|
+
type=str,
|
|
296
|
+
required=True,
|
|
297
|
+
)
|
|
298
|
+
@click.option(
|
|
299
|
+
"--deployment",
|
|
300
|
+
help="The name of the deployment to remove.",
|
|
301
|
+
type=str,
|
|
302
|
+
required=True,
|
|
303
|
+
)
|
|
268
304
|
@click.option(
|
|
269
305
|
"--yes", "-y", is_flag=True, default=False, help="Skip asking for confirmation."
|
|
270
306
|
)
|
|
271
|
-
def
|
|
307
|
+
def cloud_remove_deployment(cloud: str, deployment: str, yes: bool,) -> None:
|
|
272
308
|
try:
|
|
273
|
-
CloudController().
|
|
309
|
+
CloudController().remove_cloud_deployment(cloud, deployment, yes)
|
|
274
310
|
except click.ClickException as e:
|
|
275
311
|
print(e)
|
|
276
312
|
|
|
@@ -324,6 +360,12 @@ def cloud_add_deployment(cloud_name: str, file: str, yes: bool,) -> None:
|
|
|
324
360
|
required=False,
|
|
325
361
|
hidden=True,
|
|
326
362
|
)
|
|
363
|
+
@click.option(
|
|
364
|
+
"--skip-verification",
|
|
365
|
+
is_flag=True,
|
|
366
|
+
default=False,
|
|
367
|
+
help="Skip cloud deployment verification.",
|
|
368
|
+
)
|
|
327
369
|
def cloud_update( # noqa: PLR0913
|
|
328
370
|
cloud_name: Optional[str],
|
|
329
371
|
name: Optional[str],
|
|
@@ -333,10 +375,11 @@ def cloud_update( # noqa: PLR0913
|
|
|
333
375
|
yes: bool,
|
|
334
376
|
enable_auto_add_user: Optional[bool],
|
|
335
377
|
file: Optional[str],
|
|
378
|
+
skip_verification: bool,
|
|
336
379
|
) -> None:
|
|
337
380
|
if file:
|
|
338
381
|
try:
|
|
339
|
-
CloudController().update_cloud_deployments(file)
|
|
382
|
+
CloudController().update_cloud_deployments(file, skip_verification)
|
|
340
383
|
except click.ClickException as e:
|
|
341
384
|
print(e)
|
|
342
385
|
return
|
|
@@ -676,6 +676,14 @@ aws_config:
|
|
|
676
676
|
memorydb_cluster_name: my-memorydb-cluster
|
|
677
677
|
"""
|
|
678
678
|
|
|
679
|
+
|
|
680
|
+
CLOUD_REMOVE_DEPLOYMENT_EXAMPLE = """\
|
|
681
|
+
$ anyscale cloud remove-deployment --cloud my-cloud --deployment my-deployment
|
|
682
|
+
Output
|
|
683
|
+
Please confirm that you would like to remove deployment my-deployment from cloud my-cloud. [y/N]: y
|
|
684
|
+
(anyscale +3.5s) Successfully removed deployment my-deployment from cloud my-cloud!
|
|
685
|
+
"""
|
|
686
|
+
|
|
679
687
|
CLOUD_GET_CLOUD_EXAMPLE = """\
|
|
680
688
|
$ anyscale cloud get --name my-cloud
|
|
681
689
|
id: cld_123
|