ibee-cli 0.6.0__tar.gz → 0.8.0__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.
Files changed (35) hide show
  1. {ibee_cli-0.6.0/src/ibee_cli.egg-info → ibee_cli-0.8.0}/PKG-INFO +16 -4
  2. {ibee_cli-0.6.0 → ibee_cli-0.8.0}/README.md +14 -2
  3. {ibee_cli-0.6.0 → ibee_cli-0.8.0}/pyproject.toml +2 -2
  4. {ibee_cli-0.6.0 → ibee_cli-0.8.0}/src/ibee_cli/__init__.py +1 -1
  5. {ibee_cli-0.6.0 → ibee_cli-0.8.0}/src/ibee_cli/billing_selection.py +7 -3
  6. {ibee_cli-0.6.0 → ibee_cli-0.8.0}/src/ibee_cli/commands/__init__.py +3 -2
  7. ibee_cli-0.8.0/src/ibee_cli/commands/billing.py +42 -0
  8. {ibee_cli-0.6.0 → ibee_cli-0.8.0}/src/ibee_cli/commands/block_storage.py +1 -1
  9. {ibee_cli-0.6.0 → ibee_cli-0.8.0}/src/ibee_cli/commands/buckets.py +26 -26
  10. {ibee_cli-0.6.0 → ibee_cli-0.8.0}/src/ibee_cli/commands/cdn.py +1 -1
  11. {ibee_cli-0.6.0 → ibee_cli-0.8.0}/src/ibee_cli/commands/compute.py +2 -2
  12. {ibee_cli-0.6.0 → ibee_cli-0.8.0}/src/ibee_cli/commands/firewalls.py +3 -1
  13. {ibee_cli-0.6.0 → ibee_cli-0.8.0}/src/ibee_cli/commands/gpus.py +50 -11
  14. {ibee_cli-0.6.0 → ibee_cli-0.8.0}/src/ibee_cli/commands/load_balancers.py +1 -1
  15. {ibee_cli-0.6.0 → ibee_cli-0.8.0}/src/ibee_cli/commands/ops.py +1 -1
  16. {ibee_cli-0.6.0 → ibee_cli-0.8.0}/src/ibee_cli/commands/registries.py +27 -27
  17. {ibee_cli-0.6.0 → ibee_cli-0.8.0}/src/ibee_cli/commands/reserved_ips.py +10 -2
  18. {ibee_cli-0.6.0 → ibee_cli-0.8.0}/src/ibee_cli/commands/secrets.py +1 -1
  19. {ibee_cli-0.6.0 → ibee_cli-0.8.0}/src/ibee_cli/commands/vms.py +50 -11
  20. {ibee_cli-0.6.0 → ibee_cli-0.8.0}/src/ibee_cli/commands/vpcs.py +9 -1
  21. {ibee_cli-0.6.0 → ibee_cli-0.8.0}/src/ibee_cli/context.py +6 -0
  22. {ibee_cli-0.6.0 → ibee_cli-0.8.0}/src/ibee_cli/render.py +8 -1
  23. {ibee_cli-0.6.0 → ibee_cli-0.8.0/src/ibee_cli.egg-info}/PKG-INFO +16 -4
  24. {ibee_cli-0.6.0 → ibee_cli-0.8.0}/src/ibee_cli.egg-info/SOURCES.txt +1 -0
  25. {ibee_cli-0.6.0 → ibee_cli-0.8.0}/src/ibee_cli.egg-info/requires.txt +1 -1
  26. {ibee_cli-0.6.0 → ibee_cli-0.8.0}/tests/test_cli_core.py +35 -4
  27. {ibee_cli-0.6.0 → ibee_cli-0.8.0}/tests/test_command_behaviour.py +54 -0
  28. {ibee_cli-0.6.0 → ibee_cli-0.8.0}/tests/test_contract_commands.py +9 -7
  29. {ibee_cli-0.6.0 → ibee_cli-0.8.0}/LICENSE +0 -0
  30. {ibee_cli-0.6.0 → ibee_cli-0.8.0}/setup.cfg +0 -0
  31. {ibee_cli-0.6.0 → ibee_cli-0.8.0}/src/ibee_cli/helpers.py +0 -0
  32. {ibee_cli-0.6.0 → ibee_cli-0.8.0}/src/ibee_cli/main.py +0 -0
  33. {ibee_cli-0.6.0 → ibee_cli-0.8.0}/src/ibee_cli.egg-info/dependency_links.txt +0 -0
  34. {ibee_cli-0.6.0 → ibee_cli-0.8.0}/src/ibee_cli.egg-info/entry_points.txt +0 -0
  35. {ibee_cli-0.6.0 → ibee_cli-0.8.0}/src/ibee_cli.egg-info/top_level.txt +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: ibee-cli
3
- Version: 0.6.0
3
+ Version: 0.8.0
4
4
  Summary: Official command-line interface for the IBEE Solutions cloud platform
5
5
  Author-email: IBEE Solutions <support@ibee.ai>
6
6
  License-Expression: MIT
@@ -13,7 +13,7 @@ Classifier: Environment :: Console
13
13
  Requires-Python: >=3.10
14
14
  Description-Content-Type: text/markdown
15
15
  License-File: LICENSE
16
- Requires-Dist: ibee<0.7,>=0.6.0
16
+ Requires-Dist: ibee<0.9,>=0.8.0
17
17
  Requires-Dist: httpx>=0.27
18
18
  Requires-Dist: typer>=0.12
19
19
  Requires-Dist: click>=8.1
@@ -26,9 +26,14 @@ Dynamic: license-file
26
26
 
27
27
  # IBEE Solutions CLI
28
28
 
29
+ Object Storage and Container Registry public management operations are temporarily paused.
30
+ Published methods and commands remain available for compatibility. An empty 404
31
+ from these routes reports the pause; it does not prove an existing resource was deleted.
32
+ CDN remains available.
33
+
29
34
  Official command-line interface for the IBEE Solutions cloud platform, built on the
30
35
  [`ibee` Python SDK](https://github.com/devs-ibee/ibee-python). It has one command per
31
- operation of the IBEE public API (contract 0.7.1, 225 operations): each command makes
36
+ operation of the IBEE public API (contract 0.10.0, 231 operations): each command makes
32
37
  that operation's one SDK call and prints the server's answer. The server decides
33
38
  prices, eligibility, limits and states; the CLI checks nothing before sending.
34
39
 
@@ -81,7 +86,8 @@ ibee vms create --name web-1 --site-id SITE_ID --plan-id PLAN_ID --template-id I
81
86
  --billing-interval HOURLY --ssh-keys "$(cat ~/.ssh/id_ed25519.pub)"
82
87
  ibee ops get OPERATION_ID
83
88
  ibee vms list --limit 20
84
- ibee vms resize VM_ID --cpu 4 --ram-mb 8192
89
+ ibee vms resize VM_ID --cpu 4 --ram-mb 8192 --disk-gb 80 --plan-id PLAN_ID --billing-interval HOURLY
90
+ ibee billing wallet
85
91
  ibee vms delete VM_ID --public-ip-action release --yes
86
92
 
87
93
  ibee buckets create --name assets --region in-south-2
@@ -102,6 +108,12 @@ exactly as the portal does. Nothing else is filled in: CPU, RAM, disk, OS and th
102
108
  other fields are sent as you give them. `MONTHLY` is a one-month commitment (the API
103
109
  answers `409 VM_COMMITTED` to a delete or resize before it ends).
104
110
 
111
+ `vms resize` and `gpus resize` move a VM to another plan. Send the target plan's exact
112
+ `--cpu`, `--ram-mb` and `--disk-gb`, and its `billing_catalog`: `--billing-catalog JSON`,
113
+ or `--plan-id PLAN_ID --billing-interval HOURLY|MONTHLY` to build it the same way from
114
+ `GET /compute/plans`. A resize body has no plan field, so `--plan-id` is only used for
115
+ this lookup and is not sent.
116
+
105
117
  ## Global options
106
118
 
107
119
  | Option | Environment variable | Meaning |
@@ -1,8 +1,13 @@
1
1
  # IBEE Solutions CLI
2
2
 
3
+ Object Storage and Container Registry public management operations are temporarily paused.
4
+ Published methods and commands remain available for compatibility. An empty 404
5
+ from these routes reports the pause; it does not prove an existing resource was deleted.
6
+ CDN remains available.
7
+
3
8
  Official command-line interface for the IBEE Solutions cloud platform, built on the
4
9
  [`ibee` Python SDK](https://github.com/devs-ibee/ibee-python). It has one command per
5
- operation of the IBEE public API (contract 0.7.1, 225 operations): each command makes
10
+ operation of the IBEE public API (contract 0.10.0, 231 operations): each command makes
6
11
  that operation's one SDK call and prints the server's answer. The server decides
7
12
  prices, eligibility, limits and states; the CLI checks nothing before sending.
8
13
 
@@ -55,7 +60,8 @@ ibee vms create --name web-1 --site-id SITE_ID --plan-id PLAN_ID --template-id I
55
60
  --billing-interval HOURLY --ssh-keys "$(cat ~/.ssh/id_ed25519.pub)"
56
61
  ibee ops get OPERATION_ID
57
62
  ibee vms list --limit 20
58
- ibee vms resize VM_ID --cpu 4 --ram-mb 8192
63
+ ibee vms resize VM_ID --cpu 4 --ram-mb 8192 --disk-gb 80 --plan-id PLAN_ID --billing-interval HOURLY
64
+ ibee billing wallet
59
65
  ibee vms delete VM_ID --public-ip-action release --yes
60
66
 
61
67
  ibee buckets create --name assets --region in-south-2
@@ -76,6 +82,12 @@ exactly as the portal does. Nothing else is filled in: CPU, RAM, disk, OS and th
76
82
  other fields are sent as you give them. `MONTHLY` is a one-month commitment (the API
77
83
  answers `409 VM_COMMITTED` to a delete or resize before it ends).
78
84
 
85
+ `vms resize` and `gpus resize` move a VM to another plan. Send the target plan's exact
86
+ `--cpu`, `--ram-mb` and `--disk-gb`, and its `billing_catalog`: `--billing-catalog JSON`,
87
+ or `--plan-id PLAN_ID --billing-interval HOURLY|MONTHLY` to build it the same way from
88
+ `GET /compute/plans`. A resize body has no plan field, so `--plan-id` is only used for
89
+ this lookup and is not sent.
90
+
79
91
  ## Global options
80
92
 
81
93
  | Option | Environment variable | Meaning |
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
4
4
 
5
5
  [project]
6
6
  name = "ibee-cli"
7
- version = "0.6.0"
7
+ version = "0.8.0"
8
8
  description = "Official command-line interface for the IBEE Solutions cloud platform"
9
9
  readme = "README.md"
10
10
  license = "MIT"
@@ -18,7 +18,7 @@ classifiers = [
18
18
  "Environment :: Console",
19
19
  ]
20
20
  dependencies = [
21
- "ibee>=0.6.0,<0.7",
21
+ "ibee>=0.8.0,<0.9",
22
22
  "httpx>=0.27",
23
23
  "typer>=0.12",
24
24
  "click>=8.1",
@@ -1,3 +1,3 @@
1
1
  """IBEE Solutions command-line interface."""
2
2
 
3
- __version__ = "0.6.0"
3
+ __version__ = "0.8.0"
@@ -1,4 +1,4 @@
1
- """The CLI's one convenience: a VM create's ``billing_catalog`` from ``GET /compute/plans``.
1
+ """The CLI's one convenience: a VM create's or resize's ``billing_catalog`` from ``GET /compute/plans``.
2
2
 
3
3
  The contract's ``ComputeBillingSelection`` (``billing_catalog`` of ``POST
4
4
  /compute/cloud-vms`` and ``POST /compute/gpu-vms``) is the chosen plan's
@@ -9,8 +9,10 @@ the server's own data, as the portal does: read the ``--plan-id`` plan from ``GE
9
9
  ``billing_catalog`` and merge in the whole ``billing_options`` entry whose
10
10
  ``billing_interval`` is the one asked for (``billing_interval``, ``committed``,
11
11
  ``commitment_period``, ``commitment_months``, ``committed_hours``, ``price_unit``,
12
- ``unit_price_minor``...), keeping the catalog's ``price_currency``. Nothing is
13
- invented or checked here: the server validates the selection and decides the price.
12
+ ``unit_price_minor``...), keeping the catalog's ``price_currency``. ``vms resize`` and
13
+ ``gpus resize`` (contract 0.10.0) do the same for the target plan named by their
14
+ CLI-only ``--plan-id``, read from ``GET /compute/plans`` without a site filter. Nothing
15
+ is invented or checked here: the server validates the selection and decides the price.
14
16
  """
15
17
 
16
18
  from __future__ import annotations
@@ -41,6 +43,8 @@ def vm_billing_catalog(
41
43
  "billing_catalog is required: pass --billing-interval HOURLY|MONTHLY (built from the plan in "
42
44
  "GET /compute/plans) or --billing-catalog JSON."
43
45
  )
46
+ if not plan_id:
47
+ fail_usage("--billing-interval needs --plan-id: the plan whose billing_catalog is sent.")
44
48
  interval = str(billing_interval).strip().upper()
45
49
  answer = client.compute_catalog.list_compute_plans(
46
50
  workspace_id=workspace_id, vm_type=vm_type, **({"site_id": site_id} if site_id else {})
@@ -1,8 +1,8 @@
1
- # Generated by scripts/generate_commands.py from contract/ibee-cloud.yaml (IBEE Solutions API 0.7.1).
1
+ # Generated by scripts/generate_commands.py from contract/ibee-cloud.yaml (IBEE Solutions API 0.10.0).
2
2
  # Do not edit by hand: change the contract or the generator and run the script again.
3
3
  """The command groups, in `ibee --help` order."""
4
4
 
5
- from . import block_storage, buckets, cdn, compute, firewalls, gpus, load_balancers, ops, registries, reserved_ips, secrets, vms, vpcs
5
+ from . import billing, block_storage, buckets, cdn, compute, firewalls, gpus, load_balancers, ops, registries, reserved_ips, secrets, vms, vpcs
6
6
 
7
7
  #: (CLI name, Typer app) of every command group.
8
8
  GROUPS = [
@@ -19,4 +19,5 @@ GROUPS = [
19
19
  ('firewalls', firewalls.app),
20
20
  ('load-balancers', load_balancers.app),
21
21
  ('registries', registries.app),
22
+ ('billing', billing.app),
22
23
  ]
@@ -0,0 +1,42 @@
1
+ # Generated by scripts/generate_commands.py from contract/ibee-cloud.yaml (IBEE Solutions API 0.10.0).
2
+ # Do not edit by hand: change the contract or the generator and run the script again.
3
+ """``ibee billing``: Organization wallet balance and top-ups (one command per contract operation)."""
4
+
5
+ from __future__ import annotations
6
+
7
+ from typing import Optional
8
+
9
+ import typer
10
+
11
+ from ..helpers import compact, sdk, workspace
12
+ from ..render import emit, handle_api_errors
13
+
14
+ app = typer.Typer(help='Organization wallet balance and top-ups', no_args_is_help=True)
15
+
16
+
17
+ @app.command('wallet', help="Get the organization wallet.\n\nReturns the wallet balance of the API token's organization. Amounts are integers in the currency's minor unit (paise for INR, cents for USD). The wallet belongs to the organization, so any workspace of the organization returns the same wallet. Read-only: an organization without a wallet gets 404 `wallet_not_found` and nothing is created. The token's principal also needs permission to view the organization's billing. Requires scope: billing.read.\n\nAPI: GET /billing/wallet (getBillingWallet).", short_help='Get the organization wallet')
18
+ @handle_api_errors
19
+ def get_billing_wallet(
20
+ ctx: typer.Context,
21
+ ) -> None:
22
+ client = sdk(ctx)
23
+ result = client.billing.get_billing_wallet(**compact(workspace_id=workspace(ctx)))
24
+ emit(result)
25
+
26
+
27
+ @app.command('topup', help="Create a wallet top-up link.\n\nCreates a hosted payment page (Stripe Checkout or a Razorpay Payment Link) that adds `amount_minor` to the API token's organization wallet once the customer pays. Open `checkout_url` in a browser; nothing is charged until the customer pays there, and the wallet is credited only after the payment succeeds (poll `GET /billing/wallet` to confirm). The gateway and currency follow the organization's billing profile. Billing applies its minimums and refuses a frozen or closed wallet, an organization that is not billed, or (first top-up) an amount below the first top-up minimum: 422 `topup_rejected` with Billing's `message`. An organization without a wallet gets 404 `wallet_not_found`; no wallet is created. The token's principal also needs permission to manage the organization's billing; a restricted or suspended organization can still top up. Requires scope: billing.topup.\n\nAPI: POST /billing/topups (createBillingTopup).", short_help='Create a wallet top-up link')
28
+ @handle_api_errors
29
+ def create_billing_topup(
30
+ ctx: typer.Context,
31
+ amount_minor: int = typer.Option(..., '--amount-minor', show_default=False, help="Amount to add, an integer in the wallet currency's minor unit (paise for INR, cents for USD). Billing applies its minimum."),
32
+ idempotency_key: Optional[str] = typer.Option(None, '--idempotency-key', show_default=False, help="Retry key for this top-up, scoped to the organization's wallet. A repeated key returns the payment link (and amount) it first created. Without a key, every call creates a new payment link."),
33
+ ) -> None:
34
+ client = sdk(ctx)
35
+ result = client.billing.create_billing_topup(
36
+ **compact(
37
+ workspace_id=workspace(ctx),
38
+ amount_minor=amount_minor,
39
+ idempotency_key=idempotency_key,
40
+ ),
41
+ )
42
+ emit(result)
@@ -1,4 +1,4 @@
1
- # Generated by scripts/generate_commands.py from contract/ibee-cloud.yaml (IBEE Solutions API 0.7.1).
1
+ # Generated by scripts/generate_commands.py from contract/ibee-cloud.yaml (IBEE Solutions API 0.10.0).
2
2
  # Do not edit by hand: change the contract or the generator and run the script again.
3
3
  """``ibee block-storage``: Block Storage volumes and plans (one command per contract operation)."""
4
4
 
@@ -1,4 +1,4 @@
1
- # Generated by scripts/generate_commands.py from contract/ibee-cloud.yaml (IBEE Solutions API 0.7.1).
1
+ # Generated by scripts/generate_commands.py from contract/ibee-cloud.yaml (IBEE Solutions API 0.10.0).
2
2
  # Do not edit by hand: change the contract or the generator and run the script again.
3
3
  """``ibee buckets``: Object Storage buckets, bucket settings and S3 credentials (one command per contract operation)."""
4
4
 
@@ -26,7 +26,7 @@ credentials_app = typer.Typer(help='S3 access credentials', no_args_is_help=True
26
26
  app.add_typer(credentials_app, name='credentials')
27
27
 
28
28
 
29
- @app.command('list', help='List buckets.\n\nLists object storage buckets in a workspace. Requires scope: object-storage.read.\n\nAPI: GET /object-storage/buckets (listBuckets).', short_help='List buckets')
29
+ @app.command('list', help='List buckets.\n\nTemporarily paused on the public API. This client method is retained for compatibility. An empty HTTP 404 means the public operation is paused; it does not prove the resource was deleted. Lists object storage buckets in a workspace. Requires scope: object-storage.read.\n\nAPI: GET /object-storage/buckets (listBuckets).', short_help='List buckets')
30
30
  @handle_api_errors
31
31
  def list_buckets(
32
32
  ctx: typer.Context,
@@ -44,7 +44,7 @@ def list_buckets(
44
44
  emit(result, collection='buckets', id_field='name')
45
45
 
46
46
 
47
- @app.command('create', help='Create bucket.\n\nCreates an object storage bucket. `region` is required and must match an Object Storage region identifier configured for the target environment. Do not send a compute `site_id`. Requires scope: object-storage.write.\n\nAPI: POST /object-storage/buckets (createBucket).', short_help='Create bucket')
47
+ @app.command('create', help='Create bucket.\n\nTemporarily paused on the public API. This client method is retained for compatibility. An empty HTTP 404 means the public operation is paused; it does not prove the resource was deleted. Creates an object storage bucket. `region` is required and must match an Object Storage region identifier configured for the target environment. Do not send a compute `site_id`. Requires scope: object-storage.write.\n\nAPI: POST /object-storage/buckets (createBucket).', short_help='Create bucket')
48
48
  @handle_api_errors
49
49
  def create_bucket(
50
50
  ctx: typer.Context,
@@ -70,7 +70,7 @@ def create_bucket(
70
70
  emit(result)
71
71
 
72
72
 
73
- @app.command('get', help='Get bucket.\n\nReturns bucket configuration and usage statistics. Requires scope: object-storage.read.\n\nAPI: GET /object-storage/buckets/{bucket_name} (getBucket).', short_help='Get bucket')
73
+ @app.command('get', help='Get bucket.\n\nTemporarily paused on the public API. This client method is retained for compatibility. An empty HTTP 404 means the public operation is paused; it does not prove the resource was deleted. Returns bucket configuration and usage statistics. Requires scope: object-storage.read.\n\nAPI: GET /object-storage/buckets/{bucket_name} (getBucket).', short_help='Get bucket')
74
74
  @handle_api_errors
75
75
  def get_bucket(
76
76
  ctx: typer.Context,
@@ -81,7 +81,7 @@ def get_bucket(
81
81
  emit(result)
82
82
 
83
83
 
84
- @app.command('update', help='Update bucket settings.\n\nUpdates mutable bucket settings. Requires scope: object-storage.write.\n\nAPI: PATCH /object-storage/buckets/{bucket_name} (updateBucket).', short_help='Update bucket settings')
84
+ @app.command('update', help='Update bucket settings.\n\nTemporarily paused on the public API. This client method is retained for compatibility. An empty HTTP 404 means the public operation is paused; it does not prove the resource was deleted. Updates mutable bucket settings. Requires scope: object-storage.write.\n\nAPI: PATCH /object-storage/buckets/{bucket_name} (updateBucket).', short_help='Update bucket settings')
85
85
  @handle_api_errors
86
86
  def update_bucket(
87
87
  ctx: typer.Context,
@@ -99,7 +99,7 @@ def update_bucket(
99
99
  emit(result)
100
100
 
101
101
 
102
- @app.command('delete', help='Delete bucket.\n\nDeletes a bucket and all of its contents. Requires scope: object-storage.delete.\n\nAPI: DELETE /object-storage/buckets/{bucket_name} (deleteBucket).', short_help='Delete bucket')
102
+ @app.command('delete', help='Delete bucket.\n\nTemporarily paused on the public API. This client method is retained for compatibility. An empty HTTP 404 means the public operation is paused; it does not prove the resource was deleted. Deletes a bucket and all of its contents. Requires scope: object-storage.delete.\n\nAPI: DELETE /object-storage/buckets/{bucket_name} (deleteBucket).', short_help='Delete bucket')
103
103
  @handle_api_errors
104
104
  def delete_bucket(
105
105
  ctx: typer.Context,
@@ -112,7 +112,7 @@ def delete_bucket(
112
112
  emit(result)
113
113
 
114
114
 
115
- @lifecycle_app.command('get', help="Get bucket lifecycle rules.\n\nReturns the bucket's lifecycle rules, as the portal's Settings › Lifecycle tab shows them. Requires scope: object-storage.read.\n\nAPI: GET /object-storage/buckets/{bucket_name}/lifecycle (getBucketLifecycle).", short_help='Get bucket lifecycle rules')
115
+ @lifecycle_app.command('get', help="Get bucket lifecycle rules.\n\nTemporarily paused on the public API. This client method is retained for compatibility. An empty HTTP 404 means the public operation is paused; it does not prove the resource was deleted. Returns the bucket's lifecycle rules, as the portal's Settings › Lifecycle tab shows them. Requires scope: object-storage.read.\n\nAPI: GET /object-storage/buckets/{bucket_name}/lifecycle (getBucketLifecycle).", short_help='Get bucket lifecycle rules')
116
116
  @handle_api_errors
117
117
  def get_bucket_lifecycle(
118
118
  ctx: typer.Context,
@@ -123,7 +123,7 @@ def get_bucket_lifecycle(
123
123
  emit(result)
124
124
 
125
125
 
126
- @lifecycle_app.command('set', help='Set bucket lifecycle rules.\n\nReplaces every lifecycle rule of the bucket. Each rule expires objects after a number of days or on a date, optionally only under a prefix. Requires scope: object-storage.write.\n\nAPI: PUT /object-storage/buckets/{bucket_name}/lifecycle (setBucketLifecycle).', short_help='Set bucket lifecycle rules')
126
+ @lifecycle_app.command('set', help='Set bucket lifecycle rules.\n\nTemporarily paused on the public API. This client method is retained for compatibility. An empty HTTP 404 means the public operation is paused; it does not prove the resource was deleted. Replaces every lifecycle rule of the bucket. Each rule expires objects after a number of days or on a date, optionally only under a prefix. Requires scope: object-storage.write.\n\nAPI: PUT /object-storage/buckets/{bucket_name}/lifecycle (setBucketLifecycle).', short_help='Set bucket lifecycle rules')
127
127
  @handle_api_errors
128
128
  def set_bucket_lifecycle(
129
129
  ctx: typer.Context,
@@ -141,7 +141,7 @@ def set_bucket_lifecycle(
141
141
  emit(result)
142
142
 
143
143
 
144
- @lifecycle_app.command('delete', help='Delete bucket lifecycle rules.\n\nRemoves every lifecycle rule from the bucket. Requires scope: object-storage.write.\n\nAPI: DELETE /object-storage/buckets/{bucket_name}/lifecycle (deleteBucketLifecycle).', short_help='Delete bucket lifecycle rules')
144
+ @lifecycle_app.command('delete', help='Delete bucket lifecycle rules.\n\nTemporarily paused on the public API. This client method is retained for compatibility. An empty HTTP 404 means the public operation is paused; it does not prove the resource was deleted. Removes every lifecycle rule from the bucket. Requires scope: object-storage.delete.\n\nAPI: DELETE /object-storage/buckets/{bucket_name}/lifecycle (deleteBucketLifecycle).', short_help='Delete bucket lifecycle rules')
145
145
  @handle_api_errors
146
146
  def delete_bucket_lifecycle(
147
147
  ctx: typer.Context,
@@ -154,7 +154,7 @@ def delete_bucket_lifecycle(
154
154
  emit(result)
155
155
 
156
156
 
157
- @cors_app.command('get', help="Get bucket CORS rules.\n\nReturns the bucket's CORS rules, as the portal's Settings › CORS tab shows them. Requires scope: object-storage.read.\n\nAPI: GET /object-storage/buckets/{bucket_name}/cors (getBucketCors).", short_help='Get bucket CORS rules')
157
+ @cors_app.command('get', help="Get bucket CORS rules.\n\nTemporarily paused on the public API. This client method is retained for compatibility. An empty HTTP 404 means the public operation is paused; it does not prove the resource was deleted. Returns the bucket's CORS rules, as the portal's Settings › CORS tab shows them. Requires scope: object-storage.read.\n\nAPI: GET /object-storage/buckets/{bucket_name}/cors (getBucketCors).", short_help='Get bucket CORS rules')
158
158
  @handle_api_errors
159
159
  def get_bucket_cors(
160
160
  ctx: typer.Context,
@@ -165,7 +165,7 @@ def get_bucket_cors(
165
165
  emit(result)
166
166
 
167
167
 
168
- @cors_app.command('set', help='Set bucket CORS rules.\n\nReplaces every CORS rule of the bucket. Requires scope: object-storage.write.\n\nAPI: PUT /object-storage/buckets/{bucket_name}/cors (setBucketCors).', short_help='Set bucket CORS rules')
168
+ @cors_app.command('set', help='Set bucket CORS rules.\n\nTemporarily paused on the public API. This client method is retained for compatibility. An empty HTTP 404 means the public operation is paused; it does not prove the resource was deleted. Replaces every CORS rule of the bucket. Requires scope: object-storage.write.\n\nAPI: PUT /object-storage/buckets/{bucket_name}/cors (setBucketCors).', short_help='Set bucket CORS rules')
169
169
  @handle_api_errors
170
170
  def set_bucket_cors(
171
171
  ctx: typer.Context,
@@ -183,7 +183,7 @@ def set_bucket_cors(
183
183
  emit(result)
184
184
 
185
185
 
186
- @cors_app.command('delete', help='Delete bucket CORS rules.\n\nRemoves every CORS rule from the bucket. Requires scope: object-storage.write.\n\nAPI: DELETE /object-storage/buckets/{bucket_name}/cors (deleteBucketCors).', short_help='Delete bucket CORS rules')
186
+ @cors_app.command('delete', help='Delete bucket CORS rules.\n\nTemporarily paused on the public API. This client method is retained for compatibility. An empty HTTP 404 means the public operation is paused; it does not prove the resource was deleted. Removes every CORS rule from the bucket. Requires scope: object-storage.delete.\n\nAPI: DELETE /object-storage/buckets/{bucket_name}/cors (deleteBucketCors).', short_help='Delete bucket CORS rules')
187
187
  @handle_api_errors
188
188
  def delete_bucket_cors(
189
189
  ctx: typer.Context,
@@ -196,7 +196,7 @@ def delete_bucket_cors(
196
196
  emit(result)
197
197
 
198
198
 
199
- @object_lock_app.command('get', help="Get bucket object lock configuration.\n\nReturns the default retention of a bucket created with object lock, as the portal's Settings › Lock tab shows it. Answers 404 when the bucket has no object lock. Requires scope: object-storage.read.\n\nAPI: GET /object-storage/buckets/{bucket_name}/object-lock (getBucketObjectLock).", short_help='Get bucket object lock configuration')
199
+ @object_lock_app.command('get', help="Get bucket object lock configuration.\n\nTemporarily paused on the public API. This client method is retained for compatibility. An empty HTTP 404 means the public operation is paused; it does not prove the resource was deleted. Returns the default retention of a bucket created with object lock, as the portal's Settings › Lock tab shows it. Answers 404 when the bucket has no object lock. Requires scope: object-storage.read.\n\nAPI: GET /object-storage/buckets/{bucket_name}/object-lock (getBucketObjectLock).", short_help='Get bucket object lock configuration')
200
200
  @handle_api_errors
201
201
  def get_bucket_object_lock(
202
202
  ctx: typer.Context,
@@ -207,7 +207,7 @@ def get_bucket_object_lock(
207
207
  emit(result)
208
208
 
209
209
 
210
- @object_lock_app.command('set', help='Set bucket default retention.\n\nChanges the default retention applied to new objects in a bucket that has object lock. Send `rule: null` to remove the default. Requires scope: object-storage.write.\n\nAPI: PUT /object-storage/buckets/{bucket_name}/object-lock (setBucketObjectLock).', short_help='Set bucket default retention')
210
+ @object_lock_app.command('set', help='Set bucket default retention.\n\nTemporarily paused on the public API. This client method is retained for compatibility. An empty HTTP 404 means the public operation is paused; it does not prove the resource was deleted. Changes the default retention applied to new objects in a bucket that has object lock. Send `rule: null` to remove the default. Requires scope: object-storage.write.\n\nAPI: PUT /object-storage/buckets/{bucket_name}/object-lock (setBucketObjectLock).', short_help='Set bucket default retention')
211
211
  @handle_api_errors
212
212
  def set_bucket_object_lock(
213
213
  ctx: typer.Context,
@@ -225,7 +225,7 @@ def set_bucket_object_lock(
225
225
  emit(result)
226
226
 
227
227
 
228
- @notifications_app.command('get', help="Get bucket event notifications.\n\nReturns the webhook notification rules of the bucket, as the portal's Settings › Event notifications tab shows them. Requires scope: object-storage.read.\n\nAPI: GET /object-storage/buckets/{bucket_name}/notifications (getBucketNotifications).", short_help='Get bucket event notifications')
228
+ @notifications_app.command('get', help="Get bucket event notifications.\n\nTemporarily paused on the public API. This client method is retained for compatibility. An empty HTTP 404 means the public operation is paused; it does not prove the resource was deleted. Returns the webhook notification rules of the bucket, as the portal's Settings › Event notifications tab shows them. Requires scope: object-storage.read.\n\nAPI: GET /object-storage/buckets/{bucket_name}/notifications (getBucketNotifications).", short_help='Get bucket event notifications')
229
229
  @handle_api_errors
230
230
  def get_bucket_notifications(
231
231
  ctx: typer.Context,
@@ -236,7 +236,7 @@ def get_bucket_notifications(
236
236
  emit(result)
237
237
 
238
238
 
239
- @notifications_app.command('set', help='Set bucket event notifications.\n\nReplaces every notification rule of the bucket. Each rule posts `upload` or `delete` events, optionally filtered by prefix or suffix, to a webhook URL. Requires scope: object-storage.write.\n\nAPI: PUT /object-storage/buckets/{bucket_name}/notifications (setBucketNotifications).', short_help='Set bucket event notifications')
239
+ @notifications_app.command('set', help='Set bucket event notifications.\n\nTemporarily paused on the public API. This client method is retained for compatibility. An empty HTTP 404 means the public operation is paused; it does not prove the resource was deleted. Replaces every notification rule of the bucket. Each rule posts `upload` or `delete` events, optionally filtered by prefix or suffix, to a webhook URL. Requires scope: object-storage.write.\n\nAPI: PUT /object-storage/buckets/{bucket_name}/notifications (setBucketNotifications).', short_help='Set bucket event notifications')
240
240
  @handle_api_errors
241
241
  def set_bucket_notifications(
242
242
  ctx: typer.Context,
@@ -254,7 +254,7 @@ def set_bucket_notifications(
254
254
  emit(result)
255
255
 
256
256
 
257
- @notifications_app.command('delete', help='Delete bucket event notifications.\n\nRemoves every notification rule from the bucket. Requires scope: object-storage.write.\n\nAPI: DELETE /object-storage/buckets/{bucket_name}/notifications (deleteBucketNotifications).', short_help='Delete bucket event notifications')
257
+ @notifications_app.command('delete', help='Delete bucket event notifications.\n\nTemporarily paused on the public API. This client method is retained for compatibility. An empty HTTP 404 means the public operation is paused; it does not prove the resource was deleted. Removes every notification rule from the bucket. Requires scope: object-storage.delete.\n\nAPI: DELETE /object-storage/buckets/{bucket_name}/notifications (deleteBucketNotifications).', short_help='Delete bucket event notifications')
258
258
  @handle_api_errors
259
259
  def delete_bucket_notifications(
260
260
  ctx: typer.Context,
@@ -272,7 +272,7 @@ def delete_bucket_notifications(
272
272
  emit(result)
273
273
 
274
274
 
275
- @domains_app.command('get', help="Get bucket custom domains.\n\nReturns the bucket's custom domains with their status and the CNAME target to point them at, as the portal's Settings › Custom domains tab shows. Answers 404 when the bucket has no custom domain. Requires scope: object-storage.read.\n\nAPI: GET /object-storage/buckets/{bucket_name}/custom-domains (getBucketCustomDomains).", short_help='Get bucket custom domains')
275
+ @domains_app.command('get', help="Get bucket custom domains.\n\nTemporarily paused on the public API. This client method is retained for compatibility. An empty HTTP 404 means the public operation is paused; it does not prove the resource was deleted. Returns the bucket's custom domains with their status and the CNAME target to point them at, as the portal's Settings › Custom domains tab shows. Answers 404 when the bucket has no custom domain. Requires scope: object-storage.read.\n\nAPI: GET /object-storage/buckets/{bucket_name}/custom-domains (getBucketCustomDomains).", short_help='Get bucket custom domains')
276
276
  @handle_api_errors
277
277
  def get_bucket_custom_domains(
278
278
  ctx: typer.Context,
@@ -283,7 +283,7 @@ def get_bucket_custom_domains(
283
283
  emit(result)
284
284
 
285
285
 
286
- @domains_app.command('add', help='Add a bucket custom domain.\n\nAdds a custom hostname that serves the bucket. Create the CNAME record shown in `cname_target`, then check `status` on the list. Requires scope: object-storage.write.\n\nAPI: POST /object-storage/buckets/{bucket_name}/custom-domains (addBucketCustomDomain).', short_help='Add a bucket custom domain')
286
+ @domains_app.command('add', help='Add a bucket custom domain.\n\nTemporarily paused on the public API. This client method is retained for compatibility. An empty HTTP 404 means the public operation is paused; it does not prove the resource was deleted. Adds a custom hostname that serves the bucket. Create the CNAME record shown in `cname_target`, then check `status` on the list. Requires scope: object-storage.write.\n\nAPI: POST /object-storage/buckets/{bucket_name}/custom-domains (addBucketCustomDomain).', short_help='Add a bucket custom domain')
287
287
  @handle_api_errors
288
288
  def add_bucket_custom_domain(
289
289
  ctx: typer.Context,
@@ -301,7 +301,7 @@ def add_bucket_custom_domain(
301
301
  emit(result)
302
302
 
303
303
 
304
- @domains_app.command('remove', help='Remove a bucket custom domain.\n\nRemoves a custom hostname from the bucket. Answers 400 when the bucket has no custom domain. Requires scope: object-storage.write.\n\nAPI: DELETE /object-storage/buckets/{bucket_name}/custom-domains/{domain} (removeBucketCustomDomain).', short_help='Remove a bucket custom domain')
304
+ @domains_app.command('remove', help='Remove a bucket custom domain.\n\nTemporarily paused on the public API. This client method is retained for compatibility. An empty HTTP 404 means the public operation is paused; it does not prove the resource was deleted. Removes a custom hostname from the bucket. Answers 400 when the bucket has no custom domain. Requires scope: object-storage.delete.\n\nAPI: DELETE /object-storage/buckets/{bucket_name}/custom-domains/{domain} (removeBucketCustomDomain).', short_help='Remove a bucket custom domain')
305
305
  @handle_api_errors
306
306
  def remove_bucket_custom_domain(
307
307
  ctx: typer.Context,
@@ -321,7 +321,7 @@ def remove_bucket_custom_domain(
321
321
  emit(result)
322
322
 
323
323
 
324
- @app.command('metrics', help="Get bucket metrics.\n\nReturns request and storage metrics of the bucket for the last 24 hours or 7 days, as the portal's Metrics tab shows them. Requires scope: object-storage.read.\n\nAPI: GET /object-storage/buckets/{bucket_name}/metrics (getBucketMetrics).", short_help='Get bucket metrics')
324
+ @app.command('metrics', help="Get bucket metrics.\n\nTemporarily paused on the public API. This client method is retained for compatibility. An empty HTTP 404 means the public operation is paused; it does not prove the resource was deleted. Returns request and storage metrics of the bucket for the last 24 hours or 7 days, as the portal's Metrics tab shows them. Requires scope: object-storage.read.\n\nAPI: GET /object-storage/buckets/{bucket_name}/metrics (getBucketMetrics).", short_help='Get bucket metrics')
325
325
  @handle_api_errors
326
326
  def get_bucket_metrics(
327
327
  ctx: typer.Context,
@@ -339,7 +339,7 @@ def get_bucket_metrics(
339
339
  emit(result)
340
340
 
341
341
 
342
- @credentials_app.command('list', help='List S3 credentials.\n\nLists S3-compatible credentials without secret keys. Requires scope: object-storage.read.\n\nAPI: GET /object-storage/credentials (listS3Credentials).', short_help='List S3 credentials')
342
+ @credentials_app.command('list', help='List S3 credentials.\n\nTemporarily paused on the public API. This client method is retained for compatibility. An empty HTTP 404 means the public operation is paused; it does not prove the resource was deleted. Lists S3-compatible credentials without secret keys. Requires scope: object-storage.read.\n\nAPI: GET /object-storage/credentials (listS3Credentials).', short_help='List S3 credentials')
343
343
  @handle_api_errors
344
344
  def list_s3credentials(
345
345
  ctx: typer.Context,
@@ -349,7 +349,7 @@ def list_s3credentials(
349
349
  emit(result, collection='credentials', id_field='access_key_id')
350
350
 
351
351
 
352
- @credentials_app.command('create', help='Create S3 credential.\n\nCreates an access key pair. The secret is returned only once. Requires scope: object-storage.write.\n\nAPI: POST /object-storage/credentials (createS3Credential).', short_help='Create S3 credential')
352
+ @credentials_app.command('create', help='Create S3 credential.\n\nTemporarily paused on the public API. This client method is retained for compatibility. An empty HTTP 404 means the public operation is paused; it does not prove the resource was deleted. Creates an access key pair. The secret is returned only once. Requires scope: object-storage.write.\n\nAPI: POST /object-storage/credentials (createS3Credential).', short_help='Create S3 credential')
353
353
  @handle_api_errors
354
354
  def create_s3credential(
355
355
  ctx: typer.Context,
@@ -371,7 +371,7 @@ def create_s3credential(
371
371
  emit(result)
372
372
 
373
373
 
374
- @credentials_app.command('get', help='Get S3 credential.\n\nReturns credential metadata without the secret key. Requires scope: object-storage.read.\n\nAPI: GET /object-storage/credentials/{access_key_id} (getS3Credential).', short_help='Get S3 credential')
374
+ @credentials_app.command('get', help='Get S3 credential.\n\nTemporarily paused on the public API. This client method is retained for compatibility. An empty HTTP 404 means the public operation is paused; it does not prove the resource was deleted. Returns credential metadata without the secret key. Requires scope: object-storage.read.\n\nAPI: GET /object-storage/credentials/{access_key_id} (getS3Credential).', short_help='Get S3 credential')
375
375
  @handle_api_errors
376
376
  def get_s3credential(
377
377
  ctx: typer.Context,
@@ -382,7 +382,7 @@ def get_s3credential(
382
382
  emit(result)
383
383
 
384
384
 
385
- @credentials_app.command('delete', help='Delete S3 credential.\n\nDeletes a credential record permanently. Revoke it first with POST /object-storage/credentials/{access_key_id}/revoke; the portal deletes revoked credentials only. Requires scope: object-storage.write.\n\nAPI: DELETE /object-storage/credentials/{access_key_id} (deleteS3Credential).', short_help='Delete S3 credential')
385
+ @credentials_app.command('delete', help='Delete S3 credential.\n\nTemporarily paused on the public API. This client method is retained for compatibility. An empty HTTP 404 means the public operation is paused; it does not prove the resource was deleted. Deletes a credential record permanently. Revoke it first with POST /object-storage/credentials/{access_key_id}/revoke; the portal deletes revoked credentials only. Requires scope: object-storage.write.\n\nAPI: DELETE /object-storage/credentials/{access_key_id} (deleteS3Credential).', short_help='Delete S3 credential')
386
386
  @handle_api_errors
387
387
  def delete_s3credential(
388
388
  ctx: typer.Context,
@@ -395,7 +395,7 @@ def delete_s3credential(
395
395
  emit(result)
396
396
 
397
397
 
398
- @credentials_app.command('revoke', help='Revoke S3 credential.\n\nRevokes a credential so it can no longer authenticate S3 requests. The record stays listed as revoked, as in the portal; delete it afterwards with DELETE /object-storage/credentials/{access_key_id}. Requires scope: object-storage.write.\n\nAPI: POST /object-storage/credentials/{access_key_id}/revoke (revokeS3Credential).', short_help='Revoke S3 credential')
398
+ @credentials_app.command('revoke', help='Revoke S3 credential.\n\nTemporarily paused on the public API. This client method is retained for compatibility. An empty HTTP 404 means the public operation is paused; it does not prove the resource was deleted. Revokes a credential so it can no longer authenticate S3 requests. The record stays listed as revoked, as in the portal; delete it afterwards with DELETE /object-storage/credentials/{access_key_id}. Requires scope: object-storage.write.\n\nAPI: POST /object-storage/credentials/{access_key_id}/revoke (revokeS3Credential).', short_help='Revoke S3 credential')
399
399
  @handle_api_errors
400
400
  def revoke_s3credential(
401
401
  ctx: typer.Context,
@@ -1,4 +1,4 @@
1
- # Generated by scripts/generate_commands.py from contract/ibee-cloud.yaml (IBEE Solutions API 0.7.1).
1
+ # Generated by scripts/generate_commands.py from contract/ibee-cloud.yaml (IBEE Solutions API 0.10.0).
2
2
  # Do not edit by hand: change the contract or the generator and run the script again.
3
3
  """``ibee cdn``: CDN distributions, website configuration and custom domains (one command per contract operation)."""
4
4
 
@@ -1,4 +1,4 @@
1
- # Generated by scripts/generate_commands.py from contract/ibee-cloud.yaml (IBEE Solutions API 0.7.1).
1
+ # Generated by scripts/generate_commands.py from contract/ibee-cloud.yaml (IBEE Solutions API 0.10.0).
2
2
  # Do not edit by hand: change the contract or the generator and run the script again.
3
3
  """``ibee compute``: Compute catalog: sites, plans, images and recovery storage plans (one command per contract operation)."""
4
4
 
@@ -32,7 +32,7 @@ def list_compute_plans(
32
32
  site_id: Optional[str] = typer.Option(None, '--site-id', show_default=False, help='Optional exact placement filter. Copy `site_id` from `GET /compute/sites`.'),
33
33
  currency: Optional[str] = typer.Option(None, '--currency', show_default=False, help='ISO 4217 code of the currency to quote prices in. Default `INR`.'),
34
34
  billing_interval: Optional[str] = typer.Option(None, '--billing-interval', show_default=False, help='Billing period to quote prices for. - `HOURLY` - `MONTHLY` (default)'),
35
- include_availability: Optional[bool] = typer.Option(None, '--include-availability/--no-include-availability', show_default=False, help='Include an advisory placement check. Requires site_id. This does not reserve stock.'),
35
+ include_availability: Optional[bool] = typer.Option(None, '--include-availability/--no-include-availability', show_default=False, help='Check advisory placement by default when site_id is supplied. Set false for pricing-only discovery. This does not reserve stock.'),
36
36
  os_type: Optional[str] = typer.Option(None, '--os-type', show_default=False, help='OS pool to check when include_availability is true. One of: linux, windows.'),
37
37
  requires_public_ip: Optional[bool] = typer.Option(None, '--requires-public-ip/--no-requires-public-ip', show_default=False, help='Include public IPv4 capacity in the advisory placement check.'),
38
38
  ) -> None:
@@ -1,4 +1,4 @@
1
- # Generated by scripts/generate_commands.py from contract/ibee-cloud.yaml (IBEE Solutions API 0.7.1).
1
+ # Generated by scripts/generate_commands.py from contract/ibee-cloud.yaml (IBEE Solutions API 0.10.0).
2
2
  # Do not edit by hand: change the contract or the generator and run the script again.
3
3
  """``ibee firewalls``: Firewall groups, rules and attachments (one command per contract operation)."""
4
4
 
@@ -43,6 +43,7 @@ def create_firewall_group(
43
43
  name: str = typer.Option(..., '--name', show_default=False, help='Display name of the group.'),
44
44
  description: Optional[str] = typer.Option(None, '--description', show_default=False, help='Optional description.'),
45
45
  is_default: Optional[bool] = typer.Option(None, '--is-default/--no-is-default', show_default=False, help="Mark the group as the workspace's default group. Default false."),
46
+ idempotency_key: Optional[str] = typer.Option(None, '--idempotency-key', show_default=False, help='Retry key for this create. Send the same key and the same body on every retry. The key is scoped to organization, workspace and path. - Create completed: you get the original answer for 24 hours, even if the plan limit has since been reached. - Refused or never sent: nothing was created, so the key is free to use again, including with a corrected body. - Unknown outcome (timeout, server error, lost connection): 409 `idempotency_in_progress` with `Retry-After`. This usually lasts 30 seconds and at most 3 minutes. Keep retrying with the same key and body. The next retry returns the Reserved IP, subnet or NAT gateway. For a VPC, firewall group or port forward, it either creates the resource or answers 409 "already exists". - Changed body, while the outcome is unresolved or after the create completed: 409 `idempotency_conflict`. - New key at the plan limit: 402.'),
46
47
  ) -> None:
47
48
  client = sdk(ctx)
48
49
  result = client.firewalls.create_firewall_group(
@@ -51,6 +52,7 @@ def create_firewall_group(
51
52
  name=name,
52
53
  description=description,
53
54
  is_default=is_default,
55
+ idempotency_key=idempotency_key,
54
56
  ),
55
57
  )
56
58
  emit(result)