devnomads-cli 0.17.4__tar.gz → 0.17.5__tar.gz
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.
- {devnomads_cli-0.17.4 → devnomads_cli-0.17.5}/PKG-INFO +1 -1
- {devnomads_cli-0.17.4 → devnomads_cli-0.17.5}/devnomads_cli.egg-info/PKG-INFO +1 -1
- {devnomads_cli-0.17.4 → devnomads_cli-0.17.5}/dncli.py +821 -64
- {devnomads_cli-0.17.4 → devnomads_cli-0.17.5}/pyproject.toml +1 -1
- {devnomads_cli-0.17.4 → devnomads_cli-0.17.5}/LICENSE +0 -0
- {devnomads_cli-0.17.4 → devnomads_cli-0.17.5}/README.md +0 -0
- {devnomads_cli-0.17.4 → devnomads_cli-0.17.5}/devnomads_cli.egg-info/SOURCES.txt +0 -0
- {devnomads_cli-0.17.4 → devnomads_cli-0.17.5}/devnomads_cli.egg-info/dependency_links.txt +0 -0
- {devnomads_cli-0.17.4 → devnomads_cli-0.17.5}/devnomads_cli.egg-info/entry_points.txt +0 -0
- {devnomads_cli-0.17.4 → devnomads_cli-0.17.5}/devnomads_cli.egg-info/requires.txt +0 -0
- {devnomads_cli-0.17.4 → devnomads_cli-0.17.5}/devnomads_cli.egg-info/top_level.txt +0 -0
- {devnomads_cli-0.17.4 → devnomads_cli-0.17.5}/setup.cfg +0 -0
- {devnomads_cli-0.17.4 → devnomads_cli-0.17.5}/tests/test_agent_features.py +0 -0
- {devnomads_cli-0.17.4 → devnomads_cli-0.17.5}/tests/test_cert.py +0 -0
- {devnomads_cli-0.17.4 → devnomads_cli-0.17.5}/tests/test_cli.py +0 -0
- {devnomads_cli-0.17.4 → devnomads_cli-0.17.5}/tests/test_config.py +0 -0
- {devnomads_cli-0.17.4 → devnomads_cli-0.17.5}/tests/test_generate.py +0 -0
- {devnomads_cli-0.17.4 → devnomads_cli-0.17.5}/tests/test_generated_cli.py +0 -0
- {devnomads_cli-0.17.4 → devnomads_cli-0.17.5}/tests/test_helpers.py +0 -0
- {devnomads_cli-0.17.4 → devnomads_cli-0.17.5}/tests/test_hook.py +0 -0
- {devnomads_cli-0.17.4 → devnomads_cli-0.17.5}/tests/test_sites_publish.py +0 -0
- {devnomads_cli-0.17.4 → devnomads_cli-0.17.5}/tests/test_sites_ssh.py +0 -0
- {devnomads_cli-0.17.4 → devnomads_cli-0.17.5}/tests/test_skill_install.py +0 -0
- {devnomads_cli-0.17.4 → devnomads_cli-0.17.5}/tests/test_ssh_keys.py +0 -0
- {devnomads_cli-0.17.4 → devnomads_cli-0.17.5}/tests/test_transfer.py +0 -0
- {devnomads_cli-0.17.4 → devnomads_cli-0.17.5}/tests/test_versions.py +0 -0
|
@@ -72,7 +72,7 @@ from rich.markup import escape
|
|
|
72
72
|
from rich.table import Table
|
|
73
73
|
from typer.core import TyperGroup
|
|
74
74
|
|
|
75
|
-
__version__ = "0.17.
|
|
75
|
+
__version__ = "0.17.5"
|
|
76
76
|
|
|
77
77
|
# Distribution names, for reporting versions via `dncli version`.
|
|
78
78
|
CLI_PACKAGE = "devnomads-cli"
|
|
@@ -4022,7 +4022,7 @@ def _wait_for_batch(
|
|
|
4022
4022
|
|
|
4023
4023
|
# --- BEGIN GENERATED COMMANDS (tools/generate.py; do not edit by hand) ---
|
|
4024
4024
|
|
|
4025
|
-
API_VERSION = "0.6.
|
|
4025
|
+
API_VERSION = "0.6.35"
|
|
4026
4026
|
SKILL_MD = """\
|
|
4027
4027
|
---
|
|
4028
4028
|
name: devnomads
|
|
@@ -4447,6 +4447,86 @@ LOOKUPS: dict[str, dict[str, Any]] = {
|
|
|
4447
4447
|
},
|
|
4448
4448
|
}
|
|
4449
4449
|
COMMAND_META: dict[str, dict[str, Any]] = {
|
|
4450
|
+
"cidrSets cidrs delete": {
|
|
4451
|
+
"method": "DELETE",
|
|
4452
|
+
"path": "/cidr-sets/{cidrSetId}/cidrs/{cidrId}",
|
|
4453
|
+
"changes": True,
|
|
4454
|
+
"confirm": True,
|
|
4455
|
+
"background": False,
|
|
4456
|
+
"billing": False,
|
|
4457
|
+
},
|
|
4458
|
+
"cidrSets cidrs list": {
|
|
4459
|
+
"method": "GET",
|
|
4460
|
+
"path": "/cidr-sets/{cidrSetId}/cidrs",
|
|
4461
|
+
"changes": False,
|
|
4462
|
+
"confirm": False,
|
|
4463
|
+
"background": False,
|
|
4464
|
+
"billing": False,
|
|
4465
|
+
},
|
|
4466
|
+
"cidrSets cidrs show": {
|
|
4467
|
+
"method": "GET",
|
|
4468
|
+
"path": "/cidr-sets/{cidrSetId}/cidrs/{cidrId}",
|
|
4469
|
+
"changes": False,
|
|
4470
|
+
"confirm": False,
|
|
4471
|
+
"background": False,
|
|
4472
|
+
"billing": False,
|
|
4473
|
+
},
|
|
4474
|
+
"cidrSets cidrs create": {
|
|
4475
|
+
"method": "POST",
|
|
4476
|
+
"path": "/cidr-sets/{cidrSetId}/cidrs",
|
|
4477
|
+
"changes": True,
|
|
4478
|
+
"confirm": False,
|
|
4479
|
+
"background": False,
|
|
4480
|
+
"billing": False,
|
|
4481
|
+
},
|
|
4482
|
+
"cidrSets cidrs update": {
|
|
4483
|
+
"method": "PUT",
|
|
4484
|
+
"path": "/cidr-sets/{cidrSetId}/cidrs/{cidrId}",
|
|
4485
|
+
"changes": True,
|
|
4486
|
+
"confirm": False,
|
|
4487
|
+
"background": False,
|
|
4488
|
+
"billing": False,
|
|
4489
|
+
},
|
|
4490
|
+
"cidrSets delete": {
|
|
4491
|
+
"method": "DELETE",
|
|
4492
|
+
"path": "/cidr-sets/{cidrSetId}",
|
|
4493
|
+
"changes": True,
|
|
4494
|
+
"confirm": True,
|
|
4495
|
+
"background": False,
|
|
4496
|
+
"billing": False,
|
|
4497
|
+
},
|
|
4498
|
+
"cidrSets list": {
|
|
4499
|
+
"method": "GET",
|
|
4500
|
+
"path": "/cidr-sets",
|
|
4501
|
+
"changes": False,
|
|
4502
|
+
"confirm": False,
|
|
4503
|
+
"background": False,
|
|
4504
|
+
"billing": False,
|
|
4505
|
+
},
|
|
4506
|
+
"cidrSets show": {
|
|
4507
|
+
"method": "GET",
|
|
4508
|
+
"path": "/cidr-sets/{cidrSetId}",
|
|
4509
|
+
"changes": False,
|
|
4510
|
+
"confirm": False,
|
|
4511
|
+
"background": False,
|
|
4512
|
+
"billing": False,
|
|
4513
|
+
},
|
|
4514
|
+
"cidrSets create": {
|
|
4515
|
+
"method": "POST",
|
|
4516
|
+
"path": "/cidr-sets",
|
|
4517
|
+
"changes": True,
|
|
4518
|
+
"confirm": False,
|
|
4519
|
+
"background": False,
|
|
4520
|
+
"billing": False,
|
|
4521
|
+
},
|
|
4522
|
+
"cidrSets update": {
|
|
4523
|
+
"method": "PUT",
|
|
4524
|
+
"path": "/cidr-sets/{cidrSetId}",
|
|
4525
|
+
"changes": True,
|
|
4526
|
+
"confirm": False,
|
|
4527
|
+
"background": False,
|
|
4528
|
+
"billing": False,
|
|
4529
|
+
},
|
|
4450
4530
|
"clients list": {
|
|
4451
4531
|
"method": "GET",
|
|
4452
4532
|
"path": "/clients",
|
|
@@ -4919,6 +4999,30 @@ COMMAND_META: dict[str, dict[str, Any]] = {
|
|
|
4919
4999
|
"background": False,
|
|
4920
5000
|
"billing": False,
|
|
4921
5001
|
},
|
|
5002
|
+
"databases cidrSets delete": {
|
|
5003
|
+
"method": "DELETE",
|
|
5004
|
+
"path": "/services/databases/{serviceId}/cidr-sets/{cidrSetId}",
|
|
5005
|
+
"changes": True,
|
|
5006
|
+
"confirm": True,
|
|
5007
|
+
"background": False,
|
|
5008
|
+
"billing": False,
|
|
5009
|
+
},
|
|
5010
|
+
"databases cidrSets list": {
|
|
5011
|
+
"method": "GET",
|
|
5012
|
+
"path": "/services/databases/{serviceId}/cidr-sets",
|
|
5013
|
+
"changes": False,
|
|
5014
|
+
"confirm": False,
|
|
5015
|
+
"background": False,
|
|
5016
|
+
"billing": False,
|
|
5017
|
+
},
|
|
5018
|
+
"databases cidrSets create": {
|
|
5019
|
+
"method": "POST",
|
|
5020
|
+
"path": "/services/databases/{serviceId}/cidr-sets",
|
|
5021
|
+
"changes": True,
|
|
5022
|
+
"confirm": False,
|
|
5023
|
+
"background": False,
|
|
5024
|
+
"billing": False,
|
|
5025
|
+
},
|
|
4922
5026
|
"databases clusters list": {
|
|
4923
5027
|
"method": "GET",
|
|
4924
5028
|
"path": "/services/databases/clusters",
|
|
@@ -5415,6 +5519,30 @@ COMMAND_META: dict[str, dict[str, Any]] = {
|
|
|
5415
5519
|
"background": False,
|
|
5416
5520
|
"billing": False,
|
|
5417
5521
|
},
|
|
5522
|
+
"proxies cidrSets delete": {
|
|
5523
|
+
"method": "DELETE",
|
|
5524
|
+
"path": "/services/proxies/{serviceId}/cidr-sets/{cidrSetId}",
|
|
5525
|
+
"changes": True,
|
|
5526
|
+
"confirm": True,
|
|
5527
|
+
"background": False,
|
|
5528
|
+
"billing": False,
|
|
5529
|
+
},
|
|
5530
|
+
"proxies cidrSets list": {
|
|
5531
|
+
"method": "GET",
|
|
5532
|
+
"path": "/services/proxies/{serviceId}/cidr-sets",
|
|
5533
|
+
"changes": False,
|
|
5534
|
+
"confirm": False,
|
|
5535
|
+
"background": False,
|
|
5536
|
+
"billing": False,
|
|
5537
|
+
},
|
|
5538
|
+
"proxies cidrSets create": {
|
|
5539
|
+
"method": "POST",
|
|
5540
|
+
"path": "/services/proxies/{serviceId}/cidr-sets",
|
|
5541
|
+
"changes": True,
|
|
5542
|
+
"confirm": False,
|
|
5543
|
+
"background": False,
|
|
5544
|
+
"billing": False,
|
|
5545
|
+
},
|
|
5418
5546
|
"proxies clusters list": {
|
|
5419
5547
|
"method": "GET",
|
|
5420
5548
|
"path": "/services/proxies/clusters",
|
|
@@ -5519,6 +5647,30 @@ COMMAND_META: dict[str, dict[str, Any]] = {
|
|
|
5519
5647
|
"background": False,
|
|
5520
5648
|
"billing": True,
|
|
5521
5649
|
},
|
|
5650
|
+
"servers cidrSets delete": {
|
|
5651
|
+
"method": "DELETE",
|
|
5652
|
+
"path": "/services/servers/{serviceId}/cidr-sets/{cidrSetId}",
|
|
5653
|
+
"changes": True,
|
|
5654
|
+
"confirm": True,
|
|
5655
|
+
"background": False,
|
|
5656
|
+
"billing": False,
|
|
5657
|
+
},
|
|
5658
|
+
"servers cidrSets list": {
|
|
5659
|
+
"method": "GET",
|
|
5660
|
+
"path": "/services/servers/{serviceId}/cidr-sets",
|
|
5661
|
+
"changes": False,
|
|
5662
|
+
"confirm": False,
|
|
5663
|
+
"background": False,
|
|
5664
|
+
"billing": False,
|
|
5665
|
+
},
|
|
5666
|
+
"servers cidrSets create": {
|
|
5667
|
+
"method": "POST",
|
|
5668
|
+
"path": "/services/servers/{serviceId}/cidr-sets",
|
|
5669
|
+
"changes": True,
|
|
5670
|
+
"confirm": False,
|
|
5671
|
+
"background": False,
|
|
5672
|
+
"billing": False,
|
|
5673
|
+
},
|
|
5522
5674
|
"servers delete": {
|
|
5523
5675
|
"method": "DELETE",
|
|
5524
5676
|
"path": "/services/servers/{serviceId}",
|
|
@@ -5583,6 +5735,14 @@ COMMAND_META: dict[str, dict[str, Any]] = {
|
|
|
5583
5735
|
"background": False,
|
|
5584
5736
|
"billing": False,
|
|
5585
5737
|
},
|
|
5738
|
+
"servers password": {
|
|
5739
|
+
"method": "POST",
|
|
5740
|
+
"path": "/services/servers/{serviceId}/password",
|
|
5741
|
+
"changes": True,
|
|
5742
|
+
"confirm": False,
|
|
5743
|
+
"background": False,
|
|
5744
|
+
"billing": False,
|
|
5745
|
+
},
|
|
5586
5746
|
"servers reinstall": {
|
|
5587
5747
|
"method": "POST",
|
|
5588
5748
|
"path": "/services/servers/{serviceId}/reinstall",
|
|
@@ -5891,6 +6051,10 @@ gen_buckets = typer.Typer(
|
|
|
5891
6051
|
cls=PrefixGroup, help="S3-compatible object storage buckets.", no_args_is_help=True
|
|
5892
6052
|
)
|
|
5893
6053
|
app.add_typer(gen_buckets, name="buckets")
|
|
6054
|
+
gen_cidr_sets = typer.Typer(
|
|
6055
|
+
cls=PrefixGroup, help="Manage cidrSets.", no_args_is_help=True
|
|
6056
|
+
)
|
|
6057
|
+
app.add_typer(gen_cidr_sets, name="cidrSets")
|
|
5894
6058
|
gen_clients = typer.Typer(
|
|
5895
6059
|
cls=PrefixGroup,
|
|
5896
6060
|
help="The clients (billing accounts) you have access to.",
|
|
@@ -5985,6 +6149,10 @@ gen_buckets_credentials = typer.Typer(
|
|
|
5985
6149
|
cls=PrefixGroup, help="Bucket access credentials.", no_args_is_help=True
|
|
5986
6150
|
)
|
|
5987
6151
|
gen_buckets.add_typer(gen_buckets_credentials, name="credentials")
|
|
6152
|
+
gen_cidr_sets_cidrs = typer.Typer(
|
|
6153
|
+
cls=PrefixGroup, help="Manage cidrSets cidrs.", no_args_is_help=True
|
|
6154
|
+
)
|
|
6155
|
+
gen_cidr_sets.add_typer(gen_cidr_sets_cidrs, name="cidrs")
|
|
5988
6156
|
gen_containers_clusters = typer.Typer(
|
|
5989
6157
|
cls=PrefixGroup,
|
|
5990
6158
|
help="Container clusters you can deploy containers on.",
|
|
@@ -5997,6 +6165,10 @@ gen_containers_instances = typer.Typer(
|
|
|
5997
6165
|
no_args_is_help=True,
|
|
5998
6166
|
)
|
|
5999
6167
|
gen_containers.add_typer(gen_containers_instances, name="instances")
|
|
6168
|
+
gen_databases_cidr_sets = typer.Typer(
|
|
6169
|
+
cls=PrefixGroup, help="Manage databases cidrSets.", no_args_is_help=True
|
|
6170
|
+
)
|
|
6171
|
+
gen_databases.add_typer(gen_databases_cidr_sets, name="cidrSets")
|
|
6000
6172
|
gen_databases_clusters = typer.Typer(
|
|
6001
6173
|
cls=PrefixGroup,
|
|
6002
6174
|
help="Database clusters you can create databases on.",
|
|
@@ -6077,12 +6249,20 @@ gen_proxies_certificates = typer.Typer(
|
|
|
6077
6249
|
no_args_is_help=True,
|
|
6078
6250
|
)
|
|
6079
6251
|
gen_proxies.add_typer(gen_proxies_certificates, name="certificates")
|
|
6252
|
+
gen_proxies_cidr_sets = typer.Typer(
|
|
6253
|
+
cls=PrefixGroup, help="Manage proxies cidrSets.", no_args_is_help=True
|
|
6254
|
+
)
|
|
6255
|
+
gen_proxies.add_typer(gen_proxies_cidr_sets, name="cidrSets")
|
|
6080
6256
|
gen_proxies_clusters = typer.Typer(
|
|
6081
6257
|
cls=PrefixGroup,
|
|
6082
6258
|
help="Proxy clusters you can create proxies on.",
|
|
6083
6259
|
no_args_is_help=True,
|
|
6084
6260
|
)
|
|
6085
6261
|
gen_proxies.add_typer(gen_proxies_clusters, name="clusters")
|
|
6262
|
+
gen_servers_cidr_sets = typer.Typer(
|
|
6263
|
+
cls=PrefixGroup, help="Manage servers cidrSets.", no_args_is_help=True
|
|
6264
|
+
)
|
|
6265
|
+
gen_servers.add_typer(gen_servers_cidr_sets, name="cidrSets")
|
|
6086
6266
|
gen_servers_hypervisors = typer.Typer(
|
|
6087
6267
|
cls=PrefixGroup,
|
|
6088
6268
|
help="Hypervisors that can host your servers.",
|
|
@@ -6175,6 +6355,258 @@ gen_spams_domain_dkim = typer.Typer(
|
|
|
6175
6355
|
gen_spams_domain.add_typer(gen_spams_domain_dkim, name="dkim")
|
|
6176
6356
|
|
|
6177
6357
|
|
|
6358
|
+
@gen_cidr_sets_cidrs.command("delete")
|
|
6359
|
+
def gen_cidrSets_cidrs_destroy(
|
|
6360
|
+
ctx: typer.Context,
|
|
6361
|
+
cidr_set_id: int = typer.Argument(..., metavar="CIDR_SET_ID"),
|
|
6362
|
+
cidr_id: int = typer.Argument(..., metavar="CIDR_ID"),
|
|
6363
|
+
yes: bool = _YES_OPT,
|
|
6364
|
+
dry_run: bool = _DRY_RUN_OPT,
|
|
6365
|
+
timeout: int = _TIMEOUT_OPT,
|
|
6366
|
+
output: OutputFormat | None = _OUTPUT_OPT,
|
|
6367
|
+
columns: str | None = _COLUMNS_OPT,
|
|
6368
|
+
) -> None:
|
|
6369
|
+
"""Delete a CIDR from a CIDR set."""
|
|
6370
|
+
|
|
6371
|
+
_generated_call(
|
|
6372
|
+
ctx,
|
|
6373
|
+
"DELETE",
|
|
6374
|
+
"/cidr-sets/{cidrSetId}/cidrs/{cidrId}",
|
|
6375
|
+
{"cidrSetId": cidr_set_id, "cidrId": cidr_id},
|
|
6376
|
+
dry_run=dry_run,
|
|
6377
|
+
confirm="Delete cidrSets cidrs",
|
|
6378
|
+
yes=yes,
|
|
6379
|
+
timeout=timeout,
|
|
6380
|
+
output=output,
|
|
6381
|
+
select=columns,
|
|
6382
|
+
)
|
|
6383
|
+
|
|
6384
|
+
|
|
6385
|
+
@gen_cidr_sets_cidrs.command("list")
|
|
6386
|
+
def gen_cidrSets_cidrs_index(
|
|
6387
|
+
ctx: typer.Context,
|
|
6388
|
+
cidr_set_id: int = typer.Argument(..., metavar="CIDR_SET_ID"),
|
|
6389
|
+
sort: str | None = _SORT_OPT,
|
|
6390
|
+
timeout: int = _TIMEOUT_OPT,
|
|
6391
|
+
output: OutputFormat | None = _OUTPUT_OPT,
|
|
6392
|
+
columns: str | None = _COLUMNS_OPT,
|
|
6393
|
+
) -> None:
|
|
6394
|
+
"""Get CIDRs in a CIDR set."""
|
|
6395
|
+
|
|
6396
|
+
_generated_call(
|
|
6397
|
+
ctx,
|
|
6398
|
+
"GET",
|
|
6399
|
+
"/cidr-sets/{cidrSetId}/cidrs",
|
|
6400
|
+
{"cidrSetId": cidr_set_id},
|
|
6401
|
+
sort=sort,
|
|
6402
|
+
timeout=timeout,
|
|
6403
|
+
output=output,
|
|
6404
|
+
select=columns,
|
|
6405
|
+
)
|
|
6406
|
+
|
|
6407
|
+
|
|
6408
|
+
@gen_cidr_sets_cidrs.command("show")
|
|
6409
|
+
def gen_cidrSets_cidrs_show(
|
|
6410
|
+
ctx: typer.Context,
|
|
6411
|
+
cidr_set_id: int = typer.Argument(..., metavar="CIDR_SET_ID"),
|
|
6412
|
+
cidr_id: int = typer.Argument(..., metavar="CIDR_ID"),
|
|
6413
|
+
timeout: int = _TIMEOUT_OPT,
|
|
6414
|
+
output: OutputFormat | None = _OUTPUT_OPT,
|
|
6415
|
+
columns: str | None = _COLUMNS_OPT,
|
|
6416
|
+
) -> None:
|
|
6417
|
+
"""Show a CIDR in a CIDR set."""
|
|
6418
|
+
|
|
6419
|
+
_generated_call(
|
|
6420
|
+
ctx,
|
|
6421
|
+
"GET",
|
|
6422
|
+
"/cidr-sets/{cidrSetId}/cidrs/{cidrId}",
|
|
6423
|
+
{"cidrSetId": cidr_set_id, "cidrId": cidr_id},
|
|
6424
|
+
timeout=timeout,
|
|
6425
|
+
output=output,
|
|
6426
|
+
select=columns,
|
|
6427
|
+
)
|
|
6428
|
+
|
|
6429
|
+
|
|
6430
|
+
@gen_cidr_sets_cidrs.command("create")
|
|
6431
|
+
def gen_cidrSets_cidrs_store(
|
|
6432
|
+
ctx: typer.Context,
|
|
6433
|
+
cidr_set_id: int = typer.Argument(..., metavar="CIDR_SET_ID"),
|
|
6434
|
+
type: Literal["v4", "v6"] = typer.Option(...),
|
|
6435
|
+
address: str = typer.Option(...),
|
|
6436
|
+
cidr: int = typer.Option(...),
|
|
6437
|
+
dry_run: bool = _DRY_RUN_OPT,
|
|
6438
|
+
timeout: int = _TIMEOUT_OPT,
|
|
6439
|
+
output: OutputFormat | None = _OUTPUT_OPT,
|
|
6440
|
+
columns: str | None = _COLUMNS_OPT,
|
|
6441
|
+
) -> None:
|
|
6442
|
+
"""Create a CIDR in a CIDR set."""
|
|
6443
|
+
|
|
6444
|
+
_generated_call(
|
|
6445
|
+
ctx,
|
|
6446
|
+
"POST",
|
|
6447
|
+
"/cidr-sets/{cidrSetId}/cidrs",
|
|
6448
|
+
{"cidrSetId": cidr_set_id},
|
|
6449
|
+
body={"type": type, "address": address, "cidr": cidr},
|
|
6450
|
+
dry_run=dry_run,
|
|
6451
|
+
timeout=timeout,
|
|
6452
|
+
output=output,
|
|
6453
|
+
select=columns,
|
|
6454
|
+
)
|
|
6455
|
+
|
|
6456
|
+
|
|
6457
|
+
@gen_cidr_sets_cidrs.command("update")
|
|
6458
|
+
def gen_cidrSets_cidrs_update(
|
|
6459
|
+
ctx: typer.Context,
|
|
6460
|
+
cidr_set_id: int = typer.Argument(..., metavar="CIDR_SET_ID"),
|
|
6461
|
+
cidr_id: int = typer.Argument(..., metavar="CIDR_ID"),
|
|
6462
|
+
type: Literal["v4", "v6"] | None = typer.Option(None),
|
|
6463
|
+
address: str | None = typer.Option(None),
|
|
6464
|
+
cidr: int | None = typer.Option(None),
|
|
6465
|
+
dry_run: bool = _DRY_RUN_OPT,
|
|
6466
|
+
timeout: int = _TIMEOUT_OPT,
|
|
6467
|
+
output: OutputFormat | None = _OUTPUT_OPT,
|
|
6468
|
+
columns: str | None = _COLUMNS_OPT,
|
|
6469
|
+
) -> None:
|
|
6470
|
+
"""Update a CIDR in a CIDR set."""
|
|
6471
|
+
|
|
6472
|
+
_generated_call(
|
|
6473
|
+
ctx,
|
|
6474
|
+
"PUT",
|
|
6475
|
+
"/cidr-sets/{cidrSetId}/cidrs/{cidrId}",
|
|
6476
|
+
{"cidrSetId": cidr_set_id, "cidrId": cidr_id},
|
|
6477
|
+
body={"type": type, "address": address, "cidr": cidr},
|
|
6478
|
+
dry_run=dry_run,
|
|
6479
|
+
timeout=timeout,
|
|
6480
|
+
output=output,
|
|
6481
|
+
select=columns,
|
|
6482
|
+
)
|
|
6483
|
+
|
|
6484
|
+
|
|
6485
|
+
@gen_cidr_sets.command("delete")
|
|
6486
|
+
def gen_cidrSets_destroy(
|
|
6487
|
+
ctx: typer.Context,
|
|
6488
|
+
cidr_set_id: int = typer.Argument(..., metavar="CIDR_SET_ID"),
|
|
6489
|
+
yes: bool = _YES_OPT,
|
|
6490
|
+
dry_run: bool = _DRY_RUN_OPT,
|
|
6491
|
+
timeout: int = _TIMEOUT_OPT,
|
|
6492
|
+
output: OutputFormat | None = _OUTPUT_OPT,
|
|
6493
|
+
columns: str | None = _COLUMNS_OPT,
|
|
6494
|
+
) -> None:
|
|
6495
|
+
"""Delete a CIDR set."""
|
|
6496
|
+
|
|
6497
|
+
_generated_call(
|
|
6498
|
+
ctx,
|
|
6499
|
+
"DELETE",
|
|
6500
|
+
"/cidr-sets/{cidrSetId}",
|
|
6501
|
+
{"cidrSetId": cidr_set_id},
|
|
6502
|
+
dry_run=dry_run,
|
|
6503
|
+
confirm="Delete cidrSets",
|
|
6504
|
+
yes=yes,
|
|
6505
|
+
timeout=timeout,
|
|
6506
|
+
output=output,
|
|
6507
|
+
select=columns,
|
|
6508
|
+
)
|
|
6509
|
+
|
|
6510
|
+
|
|
6511
|
+
@gen_cidr_sets.command("list")
|
|
6512
|
+
def gen_cidrSets_index(
|
|
6513
|
+
ctx: typer.Context,
|
|
6514
|
+
sort: str | None = _SORT_OPT,
|
|
6515
|
+
timeout: int = _TIMEOUT_OPT,
|
|
6516
|
+
output: OutputFormat | None = _OUTPUT_OPT,
|
|
6517
|
+
columns: str | None = _COLUMNS_OPT,
|
|
6518
|
+
) -> None:
|
|
6519
|
+
"""Get CIDR sets."""
|
|
6520
|
+
|
|
6521
|
+
_generated_call(
|
|
6522
|
+
ctx,
|
|
6523
|
+
"GET",
|
|
6524
|
+
"/cidr-sets",
|
|
6525
|
+
{},
|
|
6526
|
+
sort=sort,
|
|
6527
|
+
timeout=timeout,
|
|
6528
|
+
output=output,
|
|
6529
|
+
select=columns,
|
|
6530
|
+
)
|
|
6531
|
+
|
|
6532
|
+
|
|
6533
|
+
@gen_cidr_sets.command("show")
|
|
6534
|
+
def gen_cidrSets_show(
|
|
6535
|
+
ctx: typer.Context,
|
|
6536
|
+
cidr_set_id: int = typer.Argument(..., metavar="CIDR_SET_ID"),
|
|
6537
|
+
timeout: int = _TIMEOUT_OPT,
|
|
6538
|
+
output: OutputFormat | None = _OUTPUT_OPT,
|
|
6539
|
+
columns: str | None = _COLUMNS_OPT,
|
|
6540
|
+
) -> None:
|
|
6541
|
+
"""Show a CIDR set."""
|
|
6542
|
+
|
|
6543
|
+
_generated_call(
|
|
6544
|
+
ctx,
|
|
6545
|
+
"GET",
|
|
6546
|
+
"/cidr-sets/{cidrSetId}",
|
|
6547
|
+
{"cidrSetId": cidr_set_id},
|
|
6548
|
+
timeout=timeout,
|
|
6549
|
+
output=output,
|
|
6550
|
+
select=columns,
|
|
6551
|
+
)
|
|
6552
|
+
|
|
6553
|
+
|
|
6554
|
+
@gen_cidr_sets.command("create")
|
|
6555
|
+
def gen_cidrSets_store(
|
|
6556
|
+
ctx: typer.Context,
|
|
6557
|
+
client_id: str = typer.Option(
|
|
6558
|
+
...,
|
|
6559
|
+
help="Client to bill, the `id` from `dncli clients list`. The client's unique `name` works too.",
|
|
6560
|
+
),
|
|
6561
|
+
name: str = typer.Option(...),
|
|
6562
|
+
description: str | None = typer.Option(None, help="Free-text description."),
|
|
6563
|
+
dry_run: bool = _DRY_RUN_OPT,
|
|
6564
|
+
timeout: int = _TIMEOUT_OPT,
|
|
6565
|
+
output: OutputFormat | None = _OUTPUT_OPT,
|
|
6566
|
+
columns: str | None = _COLUMNS_OPT,
|
|
6567
|
+
) -> None:
|
|
6568
|
+
"""Create a CIDR set."""
|
|
6569
|
+
|
|
6570
|
+
_generated_call(
|
|
6571
|
+
ctx,
|
|
6572
|
+
"POST",
|
|
6573
|
+
"/cidr-sets",
|
|
6574
|
+
{},
|
|
6575
|
+
body={"client_id": client_id, "name": name, "description": description},
|
|
6576
|
+
lookups={"client_id": "client_id"},
|
|
6577
|
+
dry_run=dry_run,
|
|
6578
|
+
timeout=timeout,
|
|
6579
|
+
output=output,
|
|
6580
|
+
select=columns,
|
|
6581
|
+
)
|
|
6582
|
+
|
|
6583
|
+
|
|
6584
|
+
@gen_cidr_sets.command("update")
|
|
6585
|
+
def gen_cidrSets_update(
|
|
6586
|
+
ctx: typer.Context,
|
|
6587
|
+
cidr_set_id: int = typer.Argument(..., metavar="CIDR_SET_ID"),
|
|
6588
|
+
name: str | None = typer.Option(None),
|
|
6589
|
+
description: str | None = typer.Option(None, help="Free-text description."),
|
|
6590
|
+
dry_run: bool = _DRY_RUN_OPT,
|
|
6591
|
+
timeout: int = _TIMEOUT_OPT,
|
|
6592
|
+
output: OutputFormat | None = _OUTPUT_OPT,
|
|
6593
|
+
columns: str | None = _COLUMNS_OPT,
|
|
6594
|
+
) -> None:
|
|
6595
|
+
"""Update a CIDR set."""
|
|
6596
|
+
|
|
6597
|
+
_generated_call(
|
|
6598
|
+
ctx,
|
|
6599
|
+
"PUT",
|
|
6600
|
+
"/cidr-sets/{cidrSetId}",
|
|
6601
|
+
{"cidrSetId": cidr_set_id},
|
|
6602
|
+
body={"name": name, "description": description},
|
|
6603
|
+
dry_run=dry_run,
|
|
6604
|
+
timeout=timeout,
|
|
6605
|
+
output=output,
|
|
6606
|
+
select=columns,
|
|
6607
|
+
)
|
|
6608
|
+
|
|
6609
|
+
|
|
6178
6610
|
@gen_clients.command("list")
|
|
6179
6611
|
def gen_clients_index(
|
|
6180
6612
|
ctx: typer.Context,
|
|
@@ -8020,98 +8452,192 @@ def gen_services_containers_store(
|
|
|
8020
8452
|
),
|
|
8021
8453
|
instance_amount: int = typer.Option(
|
|
8022
8454
|
...,
|
|
8023
|
-
help="Number of instances (at least 1); each runs on a different host in the cluster.",
|
|
8024
|
-
),
|
|
8025
|
-
image: str = typer.Option(
|
|
8026
|
-
..., help="Image to run, e.g. nginx:1.27 or org/app:tag."
|
|
8027
|
-
),
|
|
8028
|
-
description: str | None = typer.Option(
|
|
8029
|
-
None, help="Free-text description (3-255 characters)."
|
|
8030
|
-
),
|
|
8031
|
-
registry_url: str | None = typer.Option(
|
|
8032
|
-
None, help="URL of a private registry to pull the image from."
|
|
8033
|
-
),
|
|
8034
|
-
port: int | None = typer.Option(
|
|
8035
|
-
None, help="Port the application listens on inside the container (1-65535)."
|
|
8455
|
+
help="Number of instances (at least 1); each runs on a different host in the cluster.",
|
|
8456
|
+
),
|
|
8457
|
+
image: str = typer.Option(
|
|
8458
|
+
..., help="Image to run, e.g. nginx:1.27 or org/app:tag."
|
|
8459
|
+
),
|
|
8460
|
+
description: str | None = typer.Option(
|
|
8461
|
+
None, help="Free-text description (3-255 characters)."
|
|
8462
|
+
),
|
|
8463
|
+
registry_url: str | None = typer.Option(
|
|
8464
|
+
None, help="URL of a private registry to pull the image from."
|
|
8465
|
+
),
|
|
8466
|
+
port: int | None = typer.Option(
|
|
8467
|
+
None, help="Port the application listens on inside the container (1-65535)."
|
|
8468
|
+
),
|
|
8469
|
+
dry_run: bool = _DRY_RUN_OPT,
|
|
8470
|
+
timeout: int = _TIMEOUT_OPT,
|
|
8471
|
+
output: OutputFormat | None = _OUTPUT_OPT,
|
|
8472
|
+
columns: str | None = _COLUMNS_OPT,
|
|
8473
|
+
) -> None:
|
|
8474
|
+
"""Create a container service.
|
|
8475
|
+
|
|
8476
|
+
Nothing runs until you deploy it with `dncli containers deploy`. Billing starts right away.
|
|
8477
|
+
"""
|
|
8478
|
+
|
|
8479
|
+
_generated_call(
|
|
8480
|
+
ctx,
|
|
8481
|
+
"POST",
|
|
8482
|
+
"/services/containers",
|
|
8483
|
+
{},
|
|
8484
|
+
body={
|
|
8485
|
+
"client_id": client_id,
|
|
8486
|
+
"cluster_id": cluster_id,
|
|
8487
|
+
"product_sku": product_sku,
|
|
8488
|
+
"instance_amount": instance_amount,
|
|
8489
|
+
"image": image,
|
|
8490
|
+
"description": description,
|
|
8491
|
+
"registry_url": registry_url,
|
|
8492
|
+
"port": port,
|
|
8493
|
+
},
|
|
8494
|
+
lookups={"client_id": "client_id", "cluster_id": "containers:cluster_id"},
|
|
8495
|
+
dry_run=dry_run,
|
|
8496
|
+
timeout=timeout,
|
|
8497
|
+
output=output,
|
|
8498
|
+
select=columns,
|
|
8499
|
+
)
|
|
8500
|
+
|
|
8501
|
+
|
|
8502
|
+
@gen_containers.command("update")
|
|
8503
|
+
def gen_services_containers_update(
|
|
8504
|
+
ctx: typer.Context,
|
|
8505
|
+
service_id: str = typer.Argument(
|
|
8506
|
+
...,
|
|
8507
|
+
metavar="SERVICE_ID",
|
|
8508
|
+
help="Service id, or the service's unique entity name (usually its domain or name).",
|
|
8509
|
+
),
|
|
8510
|
+
registry_url: str | None = typer.Option(
|
|
8511
|
+
None, help="URL of a private registry to pull the image from."
|
|
8512
|
+
),
|
|
8513
|
+
description: str | None = typer.Option(
|
|
8514
|
+
None, help="Free-text description (3-255 characters)."
|
|
8515
|
+
),
|
|
8516
|
+
port: int | None = typer.Option(
|
|
8517
|
+
None, help="Port the application listens on inside the container (1-65535)."
|
|
8518
|
+
),
|
|
8519
|
+
is_read_only: bool | None = typer.Option(
|
|
8520
|
+
None, help="Run with a read-only filesystem."
|
|
8521
|
+
),
|
|
8522
|
+
healthcheck_cmd: str | None = typer.Option(
|
|
8523
|
+
None, help="Command that checks the container's health (3-255 characters)."
|
|
8524
|
+
),
|
|
8525
|
+
dry_run: bool = _DRY_RUN_OPT,
|
|
8526
|
+
timeout: int = _TIMEOUT_OPT,
|
|
8527
|
+
output: OutputFormat | None = _OUTPUT_OPT,
|
|
8528
|
+
columns: str | None = _COLUMNS_OPT,
|
|
8529
|
+
) -> None:
|
|
8530
|
+
"""Change a container service's settings.
|
|
8531
|
+
|
|
8532
|
+
Changes take effect at the next `dncli containers deploy`."""
|
|
8533
|
+
|
|
8534
|
+
_generated_call(
|
|
8535
|
+
ctx,
|
|
8536
|
+
"PUT",
|
|
8537
|
+
"/services/containers/{serviceId}",
|
|
8538
|
+
{"serviceId": service_id},
|
|
8539
|
+
body={
|
|
8540
|
+
"registry_url": registry_url,
|
|
8541
|
+
"description": description,
|
|
8542
|
+
"port": port,
|
|
8543
|
+
"is_read_only": is_read_only,
|
|
8544
|
+
"healthcheck_cmd": healthcheck_cmd,
|
|
8545
|
+
},
|
|
8546
|
+
resolve="/services/containers",
|
|
8547
|
+
dry_run=dry_run,
|
|
8548
|
+
timeout=timeout,
|
|
8549
|
+
output=output,
|
|
8550
|
+
select=columns,
|
|
8551
|
+
)
|
|
8552
|
+
|
|
8553
|
+
|
|
8554
|
+
@gen_databases_cidr_sets.command("delete")
|
|
8555
|
+
def gen_services_databases_cidrSets_destroy(
|
|
8556
|
+
ctx: typer.Context,
|
|
8557
|
+
service_id: str = typer.Argument(
|
|
8558
|
+
...,
|
|
8559
|
+
metavar="SERVICE_ID",
|
|
8560
|
+
help="Service id, or the service's unique entity name (usually its domain or name).",
|
|
8561
|
+
),
|
|
8562
|
+
cidr_set_id: int = typer.Argument(..., metavar="CIDR_SET_ID"),
|
|
8563
|
+
yes: bool = _YES_OPT,
|
|
8564
|
+
dry_run: bool = _DRY_RUN_OPT,
|
|
8565
|
+
timeout: int = _TIMEOUT_OPT,
|
|
8566
|
+
output: OutputFormat | None = _OUTPUT_OPT,
|
|
8567
|
+
columns: str | None = _COLUMNS_OPT,
|
|
8568
|
+
) -> None:
|
|
8569
|
+
"""Detach a CIDR set from a database service."""
|
|
8570
|
+
|
|
8571
|
+
_generated_call(
|
|
8572
|
+
ctx,
|
|
8573
|
+
"DELETE",
|
|
8574
|
+
"/services/databases/{serviceId}/cidr-sets/{cidrSetId}",
|
|
8575
|
+
{"serviceId": service_id, "cidrSetId": cidr_set_id},
|
|
8576
|
+
resolve="/services/databases",
|
|
8577
|
+
dry_run=dry_run,
|
|
8578
|
+
confirm="Delete databases cidrSets",
|
|
8579
|
+
yes=yes,
|
|
8580
|
+
timeout=timeout,
|
|
8581
|
+
output=output,
|
|
8582
|
+
select=columns,
|
|
8583
|
+
)
|
|
8584
|
+
|
|
8585
|
+
|
|
8586
|
+
@gen_databases_cidr_sets.command("list")
|
|
8587
|
+
def gen_services_databases_cidrSets_index(
|
|
8588
|
+
ctx: typer.Context,
|
|
8589
|
+
service_id: str = typer.Argument(
|
|
8590
|
+
...,
|
|
8591
|
+
metavar="SERVICE_ID",
|
|
8592
|
+
help="Service id, or the service's unique entity name (usually its domain or name).",
|
|
8036
8593
|
),
|
|
8037
|
-
|
|
8594
|
+
sort: str | None = _SORT_OPT,
|
|
8038
8595
|
timeout: int = _TIMEOUT_OPT,
|
|
8039
8596
|
output: OutputFormat | None = _OUTPUT_OPT,
|
|
8040
8597
|
columns: str | None = _COLUMNS_OPT,
|
|
8041
8598
|
) -> None:
|
|
8042
|
-
"""
|
|
8043
|
-
|
|
8044
|
-
Nothing runs until you deploy it with `dncli containers deploy`. Billing starts right away.
|
|
8045
|
-
"""
|
|
8599
|
+
"""Get CIDR sets attached to a database service."""
|
|
8046
8600
|
|
|
8047
8601
|
_generated_call(
|
|
8048
8602
|
ctx,
|
|
8049
|
-
"
|
|
8050
|
-
"/services/
|
|
8051
|
-
{},
|
|
8052
|
-
|
|
8053
|
-
|
|
8054
|
-
"cluster_id": cluster_id,
|
|
8055
|
-
"product_sku": product_sku,
|
|
8056
|
-
"instance_amount": instance_amount,
|
|
8057
|
-
"image": image,
|
|
8058
|
-
"description": description,
|
|
8059
|
-
"registry_url": registry_url,
|
|
8060
|
-
"port": port,
|
|
8061
|
-
},
|
|
8062
|
-
lookups={"client_id": "client_id", "cluster_id": "containers:cluster_id"},
|
|
8063
|
-
dry_run=dry_run,
|
|
8603
|
+
"GET",
|
|
8604
|
+
"/services/databases/{serviceId}/cidr-sets",
|
|
8605
|
+
{"serviceId": service_id},
|
|
8606
|
+
sort=sort,
|
|
8607
|
+
resolve="/services/databases",
|
|
8064
8608
|
timeout=timeout,
|
|
8065
8609
|
output=output,
|
|
8066
8610
|
select=columns,
|
|
8067
8611
|
)
|
|
8068
8612
|
|
|
8069
8613
|
|
|
8070
|
-
@
|
|
8071
|
-
def
|
|
8614
|
+
@gen_databases_cidr_sets.command("create")
|
|
8615
|
+
def gen_services_databases_cidrSets_store(
|
|
8072
8616
|
ctx: typer.Context,
|
|
8073
8617
|
service_id: str = typer.Argument(
|
|
8074
8618
|
...,
|
|
8075
8619
|
metavar="SERVICE_ID",
|
|
8076
8620
|
help="Service id, or the service's unique entity name (usually its domain or name).",
|
|
8077
8621
|
),
|
|
8078
|
-
|
|
8079
|
-
|
|
8080
|
-
|
|
8081
|
-
|
|
8082
|
-
None, help="Free-text description (3-255 characters)."
|
|
8083
|
-
),
|
|
8084
|
-
port: int | None = typer.Option(
|
|
8085
|
-
None, help="Port the application listens on inside the container (1-65535)."
|
|
8086
|
-
),
|
|
8087
|
-
is_read_only: bool | None = typer.Option(
|
|
8088
|
-
None, help="Run with a read-only filesystem."
|
|
8089
|
-
),
|
|
8090
|
-
healthcheck_cmd: str | None = typer.Option(
|
|
8091
|
-
None, help="Command that checks the container's health (3-255 characters)."
|
|
8622
|
+
cidr_set_id: int = typer.Option(...),
|
|
8623
|
+
type: Literal["allow", "deny"] = typer.Option(...),
|
|
8624
|
+
scope: str = typer.Option(
|
|
8625
|
+
..., help="No database CIDR set scopes are currently supported."
|
|
8092
8626
|
),
|
|
8093
8627
|
dry_run: bool = _DRY_RUN_OPT,
|
|
8094
8628
|
timeout: int = _TIMEOUT_OPT,
|
|
8095
8629
|
output: OutputFormat | None = _OUTPUT_OPT,
|
|
8096
8630
|
columns: str | None = _COLUMNS_OPT,
|
|
8097
8631
|
) -> None:
|
|
8098
|
-
"""
|
|
8099
|
-
|
|
8100
|
-
Changes take effect at the next `dncli containers deploy`."""
|
|
8632
|
+
"""Attach a CIDR set to a database service."""
|
|
8101
8633
|
|
|
8102
8634
|
_generated_call(
|
|
8103
8635
|
ctx,
|
|
8104
|
-
"
|
|
8105
|
-
"/services/
|
|
8636
|
+
"POST",
|
|
8637
|
+
"/services/databases/{serviceId}/cidr-sets",
|
|
8106
8638
|
{"serviceId": service_id},
|
|
8107
|
-
body={
|
|
8108
|
-
|
|
8109
|
-
"description": description,
|
|
8110
|
-
"port": port,
|
|
8111
|
-
"is_read_only": is_read_only,
|
|
8112
|
-
"healthcheck_cmd": healthcheck_cmd,
|
|
8113
|
-
},
|
|
8114
|
-
resolve="/services/containers",
|
|
8639
|
+
body={"cidr_set_id": cidr_set_id, "type": type, "scope": scope},
|
|
8640
|
+
resolve="/services/databases",
|
|
8115
8641
|
dry_run=dry_run,
|
|
8116
8642
|
timeout=timeout,
|
|
8117
8643
|
output=output,
|
|
@@ -10250,6 +10776,98 @@ def gen_services_proxies_certificates_renew(
|
|
|
10250
10776
|
)
|
|
10251
10777
|
|
|
10252
10778
|
|
|
10779
|
+
@gen_proxies_cidr_sets.command("delete")
|
|
10780
|
+
def gen_services_proxies_cidrSets_destroy(
|
|
10781
|
+
ctx: typer.Context,
|
|
10782
|
+
service_id: str = typer.Argument(
|
|
10783
|
+
...,
|
|
10784
|
+
metavar="SERVICE_ID",
|
|
10785
|
+
help="Service id, or the service's unique entity name (usually its domain or name).",
|
|
10786
|
+
),
|
|
10787
|
+
cidr_set_id: int = typer.Argument(..., metavar="CIDR_SET_ID"),
|
|
10788
|
+
yes: bool = _YES_OPT,
|
|
10789
|
+
dry_run: bool = _DRY_RUN_OPT,
|
|
10790
|
+
timeout: int = _TIMEOUT_OPT,
|
|
10791
|
+
output: OutputFormat | None = _OUTPUT_OPT,
|
|
10792
|
+
columns: str | None = _COLUMNS_OPT,
|
|
10793
|
+
) -> None:
|
|
10794
|
+
"""Detach a CIDR set from a proxy service."""
|
|
10795
|
+
|
|
10796
|
+
_generated_call(
|
|
10797
|
+
ctx,
|
|
10798
|
+
"DELETE",
|
|
10799
|
+
"/services/proxies/{serviceId}/cidr-sets/{cidrSetId}",
|
|
10800
|
+
{"serviceId": service_id, "cidrSetId": cidr_set_id},
|
|
10801
|
+
resolve="/services/proxies",
|
|
10802
|
+
dry_run=dry_run,
|
|
10803
|
+
confirm="Delete proxies cidrSets",
|
|
10804
|
+
yes=yes,
|
|
10805
|
+
timeout=timeout,
|
|
10806
|
+
output=output,
|
|
10807
|
+
select=columns,
|
|
10808
|
+
)
|
|
10809
|
+
|
|
10810
|
+
|
|
10811
|
+
@gen_proxies_cidr_sets.command("list")
|
|
10812
|
+
def gen_services_proxies_cidrSets_index(
|
|
10813
|
+
ctx: typer.Context,
|
|
10814
|
+
service_id: str = typer.Argument(
|
|
10815
|
+
...,
|
|
10816
|
+
metavar="SERVICE_ID",
|
|
10817
|
+
help="Service id, or the service's unique entity name (usually its domain or name).",
|
|
10818
|
+
),
|
|
10819
|
+
sort: str | None = _SORT_OPT,
|
|
10820
|
+
timeout: int = _TIMEOUT_OPT,
|
|
10821
|
+
output: OutputFormat | None = _OUTPUT_OPT,
|
|
10822
|
+
columns: str | None = _COLUMNS_OPT,
|
|
10823
|
+
) -> None:
|
|
10824
|
+
"""Get CIDR sets attached to a proxy service."""
|
|
10825
|
+
|
|
10826
|
+
_generated_call(
|
|
10827
|
+
ctx,
|
|
10828
|
+
"GET",
|
|
10829
|
+
"/services/proxies/{serviceId}/cidr-sets",
|
|
10830
|
+
{"serviceId": service_id},
|
|
10831
|
+
sort=sort,
|
|
10832
|
+
resolve="/services/proxies",
|
|
10833
|
+
timeout=timeout,
|
|
10834
|
+
output=output,
|
|
10835
|
+
select=columns,
|
|
10836
|
+
)
|
|
10837
|
+
|
|
10838
|
+
|
|
10839
|
+
@gen_proxies_cidr_sets.command("create")
|
|
10840
|
+
def gen_services_proxies_cidrSets_store(
|
|
10841
|
+
ctx: typer.Context,
|
|
10842
|
+
service_id: str = typer.Argument(
|
|
10843
|
+
...,
|
|
10844
|
+
metavar="SERVICE_ID",
|
|
10845
|
+
help="Service id, or the service's unique entity name (usually its domain or name).",
|
|
10846
|
+
),
|
|
10847
|
+
cidr_set_id: int = typer.Option(...),
|
|
10848
|
+
type: Literal["allow", "deny"] = typer.Option(...),
|
|
10849
|
+
scope: Literal["access_restriction"] = typer.Option(...),
|
|
10850
|
+
dry_run: bool = _DRY_RUN_OPT,
|
|
10851
|
+
timeout: int = _TIMEOUT_OPT,
|
|
10852
|
+
output: OutputFormat | None = _OUTPUT_OPT,
|
|
10853
|
+
columns: str | None = _COLUMNS_OPT,
|
|
10854
|
+
) -> None:
|
|
10855
|
+
"""Attach a CIDR set to a proxy service."""
|
|
10856
|
+
|
|
10857
|
+
_generated_call(
|
|
10858
|
+
ctx,
|
|
10859
|
+
"POST",
|
|
10860
|
+
"/services/proxies/{serviceId}/cidr-sets",
|
|
10861
|
+
{"serviceId": service_id},
|
|
10862
|
+
body={"cidr_set_id": cidr_set_id, "type": type, "scope": scope},
|
|
10863
|
+
resolve="/services/proxies",
|
|
10864
|
+
dry_run=dry_run,
|
|
10865
|
+
timeout=timeout,
|
|
10866
|
+
output=output,
|
|
10867
|
+
select=columns,
|
|
10868
|
+
)
|
|
10869
|
+
|
|
10870
|
+
|
|
10253
10871
|
@gen_proxies_clusters.command("list")
|
|
10254
10872
|
def gen_services_proxies_clusters_index(
|
|
10255
10873
|
ctx: typer.Context,
|
|
@@ -10893,6 +11511,100 @@ def gen_services_searches_store(
|
|
|
10893
11511
|
)
|
|
10894
11512
|
|
|
10895
11513
|
|
|
11514
|
+
@gen_servers_cidr_sets.command("delete")
|
|
11515
|
+
def gen_services_servers_cidrSets_destroy(
|
|
11516
|
+
ctx: typer.Context,
|
|
11517
|
+
service_id: str = typer.Argument(
|
|
11518
|
+
...,
|
|
11519
|
+
metavar="SERVICE_ID",
|
|
11520
|
+
help="Service id, or the service's unique entity name (usually its domain or name).",
|
|
11521
|
+
),
|
|
11522
|
+
cidr_set_id: int = typer.Argument(..., metavar="CIDR_SET_ID"),
|
|
11523
|
+
yes: bool = _YES_OPT,
|
|
11524
|
+
dry_run: bool = _DRY_RUN_OPT,
|
|
11525
|
+
timeout: int = _TIMEOUT_OPT,
|
|
11526
|
+
output: OutputFormat | None = _OUTPUT_OPT,
|
|
11527
|
+
columns: str | None = _COLUMNS_OPT,
|
|
11528
|
+
) -> None:
|
|
11529
|
+
"""Detach a CIDR set from a server service."""
|
|
11530
|
+
|
|
11531
|
+
_generated_call(
|
|
11532
|
+
ctx,
|
|
11533
|
+
"DELETE",
|
|
11534
|
+
"/services/servers/{serviceId}/cidr-sets/{cidrSetId}",
|
|
11535
|
+
{"serviceId": service_id, "cidrSetId": cidr_set_id},
|
|
11536
|
+
resolve="/services/servers",
|
|
11537
|
+
dry_run=dry_run,
|
|
11538
|
+
confirm="Delete servers cidrSets",
|
|
11539
|
+
yes=yes,
|
|
11540
|
+
timeout=timeout,
|
|
11541
|
+
output=output,
|
|
11542
|
+
select=columns,
|
|
11543
|
+
)
|
|
11544
|
+
|
|
11545
|
+
|
|
11546
|
+
@gen_servers_cidr_sets.command("list")
|
|
11547
|
+
def gen_services_servers_cidrSets_index(
|
|
11548
|
+
ctx: typer.Context,
|
|
11549
|
+
service_id: str = typer.Argument(
|
|
11550
|
+
...,
|
|
11551
|
+
metavar="SERVICE_ID",
|
|
11552
|
+
help="Service id, or the service's unique entity name (usually its domain or name).",
|
|
11553
|
+
),
|
|
11554
|
+
sort: str | None = _SORT_OPT,
|
|
11555
|
+
timeout: int = _TIMEOUT_OPT,
|
|
11556
|
+
output: OutputFormat | None = _OUTPUT_OPT,
|
|
11557
|
+
columns: str | None = _COLUMNS_OPT,
|
|
11558
|
+
) -> None:
|
|
11559
|
+
"""Get CIDR sets attached to a server service."""
|
|
11560
|
+
|
|
11561
|
+
_generated_call(
|
|
11562
|
+
ctx,
|
|
11563
|
+
"GET",
|
|
11564
|
+
"/services/servers/{serviceId}/cidr-sets",
|
|
11565
|
+
{"serviceId": service_id},
|
|
11566
|
+
sort=sort,
|
|
11567
|
+
resolve="/services/servers",
|
|
11568
|
+
timeout=timeout,
|
|
11569
|
+
output=output,
|
|
11570
|
+
select=columns,
|
|
11571
|
+
)
|
|
11572
|
+
|
|
11573
|
+
|
|
11574
|
+
@gen_servers_cidr_sets.command("create")
|
|
11575
|
+
def gen_services_servers_cidrSets_store(
|
|
11576
|
+
ctx: typer.Context,
|
|
11577
|
+
service_id: str = typer.Argument(
|
|
11578
|
+
...,
|
|
11579
|
+
metavar="SERVICE_ID",
|
|
11580
|
+
help="Service id, or the service's unique entity name (usually its domain or name).",
|
|
11581
|
+
),
|
|
11582
|
+
cidr_set_id: int = typer.Option(...),
|
|
11583
|
+
type: Literal["allow", "deny"] = typer.Option(...),
|
|
11584
|
+
scope: str = typer.Option(
|
|
11585
|
+
..., help="No server CIDR set scopes are currently supported."
|
|
11586
|
+
),
|
|
11587
|
+
dry_run: bool = _DRY_RUN_OPT,
|
|
11588
|
+
timeout: int = _TIMEOUT_OPT,
|
|
11589
|
+
output: OutputFormat | None = _OUTPUT_OPT,
|
|
11590
|
+
columns: str | None = _COLUMNS_OPT,
|
|
11591
|
+
) -> None:
|
|
11592
|
+
"""Attach a CIDR set to a server service."""
|
|
11593
|
+
|
|
11594
|
+
_generated_call(
|
|
11595
|
+
ctx,
|
|
11596
|
+
"POST",
|
|
11597
|
+
"/services/servers/{serviceId}/cidr-sets",
|
|
11598
|
+
{"serviceId": service_id},
|
|
11599
|
+
body={"cidr_set_id": cidr_set_id, "type": type, "scope": scope},
|
|
11600
|
+
resolve="/services/servers",
|
|
11601
|
+
dry_run=dry_run,
|
|
11602
|
+
timeout=timeout,
|
|
11603
|
+
output=output,
|
|
11604
|
+
select=columns,
|
|
11605
|
+
)
|
|
11606
|
+
|
|
11607
|
+
|
|
10896
11608
|
@gen_servers.command("delete")
|
|
10897
11609
|
def gen_services_servers_destroy(
|
|
10898
11610
|
ctx: typer.Context,
|
|
@@ -11122,6 +11834,51 @@ def gen_services_servers_networks_index(
|
|
|
11122
11834
|
)
|
|
11123
11835
|
|
|
11124
11836
|
|
|
11837
|
+
@gen_servers.command("password")
|
|
11838
|
+
def gen_services_servers_password(
|
|
11839
|
+
ctx: typer.Context,
|
|
11840
|
+
service_id: str = typer.Argument(
|
|
11841
|
+
...,
|
|
11842
|
+
metavar="SERVICE_ID",
|
|
11843
|
+
help="Service id, or the service's unique entity name (usually its domain or name).",
|
|
11844
|
+
),
|
|
11845
|
+
user: str | None = typer.Option(
|
|
11846
|
+
None,
|
|
11847
|
+
help="Guest user whose password is reset. Defaults to root when omitted or empty. Default: root.",
|
|
11848
|
+
),
|
|
11849
|
+
password: str | None = typer.Option(
|
|
11850
|
+
None,
|
|
11851
|
+
help="Password: at least 8 characters with upper and lower case letters, a number and a symbol. Pass - to read it from stdin. Required unless --generate-password is given.",
|
|
11852
|
+
),
|
|
11853
|
+
generate_password: bool = typer.Option(
|
|
11854
|
+
False,
|
|
11855
|
+
"--generate-password",
|
|
11856
|
+
help="Generate a strong --password and print it once on stderr.",
|
|
11857
|
+
),
|
|
11858
|
+
dry_run: bool = _DRY_RUN_OPT,
|
|
11859
|
+
timeout: int = _TIMEOUT_OPT,
|
|
11860
|
+
output: OutputFormat | None = _OUTPUT_OPT,
|
|
11861
|
+
columns: str | None = _COLUMNS_OPT,
|
|
11862
|
+
) -> None:
|
|
11863
|
+
"""Reset server service user password."""
|
|
11864
|
+
|
|
11865
|
+
_generated_call(
|
|
11866
|
+
ctx,
|
|
11867
|
+
"POST",
|
|
11868
|
+
"/services/servers/{serviceId}/password",
|
|
11869
|
+
{"serviceId": service_id},
|
|
11870
|
+
body={"user": user, "password": password},
|
|
11871
|
+
resolve="/services/servers",
|
|
11872
|
+
secret_fields=["password"],
|
|
11873
|
+
generate={"password": generate_password},
|
|
11874
|
+
required=["password"],
|
|
11875
|
+
dry_run=dry_run,
|
|
11876
|
+
timeout=timeout,
|
|
11877
|
+
output=output,
|
|
11878
|
+
select=columns,
|
|
11879
|
+
)
|
|
11880
|
+
|
|
11881
|
+
|
|
11125
11882
|
@gen_servers.command("reinstall")
|
|
11126
11883
|
def gen_services_servers_reinstall(
|
|
11127
11884
|
ctx: typer.Context,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|