honua-admin 0.2.2__tar.gz → 0.3.1__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.
@@ -1,5 +1,40 @@
1
1
  # Changelog
2
2
 
3
+ ## Unreleased
4
+
5
+ ### Bug fixes
6
+
7
+ - Allow the paired SDK 0.3 release in the Admin dependency range so both packages can be installed together.
8
+
9
+ ### Breaking changes
10
+
11
+ - Replace `layer unpublish` with `layer disable` in `honua-admin` and in `honua` when this admin package is installed. The command disables serving and retains the Layer definition; `layer enable` restores serving. Update scripts to use `disable`. The `datasource` command path remains unchanged and manages Connections.
12
+
13
+ ## [0.3.1](https://github.com/honua-io/honua-sdk-python/compare/python-admin-v0.3.0...python-admin-v0.3.1) (2026-11-13)
14
+
15
+
16
+ ### Bug Fixes
17
+
18
+ * **admin:** match the server storage layer identifier ([#393](https://github.com/honua-io/honua-sdk-python/issues/393)) ([66e8176](https://github.com/honua-io/honua-sdk-python/commit/66e81763490519c9a069812fa35e417c864f14d4))
19
+
20
+ ## [0.3.0](https://github.com/honua-io/honua-sdk-python/compare/python-admin-v0.2.2...python-admin-v0.3.0) (2026-11-08)
21
+
22
+
23
+ ### ⚠ BREAKING CHANGES
24
+
25
+ * **cli:** name Layer disable accurately and align Connection help ([#376](https://github.com/honua-io/honua-sdk-python/issues/376))
26
+
27
+ ### Features
28
+
29
+ * **admin:** add folder management and publishing metadata ([#371](https://github.com/honua-io/honua-sdk-python/issues/371)) ([fba5aa8](https://github.com/honua-io/honua-sdk-python/commit/fba5aa8f59d754d3c5f4dba82aa43b5cc5a7d766))
30
+
31
+
32
+ ### Bug Fixes
33
+
34
+ * **admin:** accept nightly server compatibility with warnings ([#373](https://github.com/honua-io/honua-sdk-python/issues/373)) ([33b19df](https://github.com/honua-io/honua-sdk-python/commit/33b19df065a3f16ecde2914c40790f1b3fb5859c))
35
+ * **cli:** name Layer disable accurately and align Connection help ([#376](https://github.com/honua-io/honua-sdk-python/issues/376)) ([837e5ee](https://github.com/honua-io/honua-sdk-python/commit/837e5ee4d497406af7ce4dd625f958a6a08749ed))
36
+ * **release:** allow the paired SDK 0.3 dependency ([#377](https://github.com/honua-io/honua-sdk-python/issues/377)) ([6929e35](https://github.com/honua-io/honua-sdk-python/commit/6929e353709912a7137df4cbac472d85420c8fdc))
37
+
3
38
  ## [0.2.2](https://github.com/honua-io/honua-sdk-python/compare/python-admin-v0.2.1...python-admin-v0.2.2) (2026-11-07)
4
39
 
5
40
 
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: honua-admin
3
- Version: 0.2.2
3
+ Version: 0.3.1
4
4
  Summary: Admin / control-plane client for Honua geospatial server
5
5
  Project-URL: Homepage, https://honua.io
6
6
  Project-URL: Documentation, https://honua-io.github.io/honua-sdk-python/latest/
@@ -21,7 +21,7 @@ Classifier: Programming Language :: Python :: 3.13
21
21
  Classifier: Topic :: Scientific/Engineering :: GIS
22
22
  Classifier: Typing :: Typed
23
23
  Requires-Python: >=3.11
24
- Requires-Dist: honua-sdk<0.3,>=0.2.2
24
+ Requires-Dist: honua-sdk<0.4,>=0.3.1
25
25
  Description-Content-Type: text/markdown
26
26
 
27
27
  # honua-admin
@@ -120,6 +120,13 @@ The async client mirrors the sync method surface (CRUD helpers, manifest
120
120
  operations, migration scans, capability checks) and shares the same retry
121
121
  transport, auth providers, and `HonuaHttpError` envelopes.
122
122
 
123
+ ## Folder management
124
+
125
+ Both clients support typed Folder listing, creation, rename, empty deletion
126
+ and Service moves with snapshot ETags. Publishing preserves omitted versus
127
+ explicit Root selection. See the [Folder client reference](../../docs/reference/honua-admin/clients.md#folders)
128
+ for concurrency, namespace, display metadata and approval behavior.
129
+
123
130
  ## Documentation
124
131
 
125
132
  Rendered docs site:
@@ -94,6 +94,13 @@ The async client mirrors the sync method surface (CRUD helpers, manifest
94
94
  operations, migration scans, capability checks) and shares the same retry
95
95
  transport, auth providers, and `HonuaHttpError` envelopes.
96
96
 
97
+ ## Folder management
98
+
99
+ Both clients support typed Folder listing, creation, rename, empty deletion
100
+ and Service moves with snapshot ETags. Publishing preserves omitted versus
101
+ explicit Root selection. See the [Folder client reference](../../docs/reference/honua-admin/clients.md#folders)
102
+ for concurrency, namespace, display metadata and approval behavior.
103
+
97
104
  ## Documentation
98
105
 
99
106
  Rendered docs site:
@@ -38,6 +38,8 @@ from ._models import (
38
38
  ConnectionTestResult,
39
39
  CreateSecureConnectionRequest,
40
40
  EncryptionValidationResult,
41
+ Folder,
42
+ FolderMetadata,
41
43
  ImportResult,
42
44
  KeyRotationResult,
43
45
  LayerStyleResponse,
@@ -130,6 +132,8 @@ __all__ = [
130
132
  "ConnectionTestResult",
131
133
  "CreateSecureConnectionRequest",
132
134
  "EncryptionValidationResult",
135
+ "Folder",
136
+ "FolderMetadata",
133
137
  "HonuaAdminClient",
134
138
  "ImportResult",
135
139
  "KeyRotationResult",
@@ -5,6 +5,7 @@ from __future__ import annotations
5
5
  import copy
6
6
  import warnings
7
7
  from collections.abc import Mapping
8
+ from types import EllipsisType
8
9
  from typing import Any, BinaryIO
9
10
 
10
11
  import httpx
@@ -45,6 +46,7 @@ from ._models import (
45
46
  ConnectionTestResult,
46
47
  CreateSecureConnectionRequest,
47
48
  EncryptionValidationResult,
49
+ Folder,
48
50
  ImportResult,
49
51
  KeyRotationResult,
50
52
  LayerStyleResponse,
@@ -567,6 +569,123 @@ class AsyncHonuaAdminClient:
567
569
  return BackgroundImportResponse.from_dict(payload)
568
570
  return ImportResult.from_dict(payload)
569
571
 
572
+ async def _catalog_request(
573
+ self,
574
+ method: str,
575
+ path: str,
576
+ *,
577
+ namespace: str | None,
578
+ if_match: str | None = None,
579
+ json_body: Any | None = None,
580
+ timeout: float | httpx.Timeout | None = None,
581
+ extra_headers: Mapping[str, str] | None = None,
582
+ ) -> tuple[Any, str | None]:
583
+ response = await self._request(
584
+ method, path, json_body=json_body,
585
+ headers={"If-Match": if_match} if if_match is not None else None,
586
+ params={"namespace": namespace} if namespace is not None else None,
587
+ timeout=timeout, extra_headers=extra_headers,
588
+ )
589
+ return _endpoints.unwrap_envelope(response), response.headers.get("ETag")
590
+
591
+ async def list_folders(
592
+ self,
593
+ *,
594
+ namespace: str | None = None,
595
+ timeout: float | httpx.Timeout | None = None,
596
+ extra_headers: Mapping[str, str] | None = None,
597
+ ) -> tuple[list[Folder], str | None]:
598
+ """List catalog Folders with the snapshot ETag used by mutations."""
599
+ payload, etag = await self._catalog_request(
600
+ "GET",
601
+ "/api/v1/admin/folders",
602
+ namespace=namespace,
603
+ timeout=timeout,
604
+ extra_headers=extra_headers,
605
+ )
606
+ folders = [Folder.from_dict(folder) for folder in payload]
607
+ return folders, etag
608
+
609
+ async def create_folder(
610
+ self,
611
+ name: str,
612
+ *,
613
+ if_match: str,
614
+ title: str | None = None,
615
+ namespace: str | None = None,
616
+ timeout: float | httpx.Timeout | None = None,
617
+ extra_headers: Mapping[str, str] | None = None,
618
+ ) -> tuple[Folder, str | None]:
619
+ """Create a Folder against the supplied catalog snapshot ETag."""
620
+ body = {"name": name}
621
+ if title is not None:
622
+ body["title"] = title
623
+ payload, etag = await self._catalog_request(
624
+ "POST", "/api/v1/admin/folders", json_body=body,
625
+ if_match=if_match, namespace=namespace,
626
+ timeout=timeout, extra_headers=extra_headers,
627
+ )
628
+ return Folder.from_dict(payload), etag
629
+
630
+ async def update_folder(
631
+ self,
632
+ folder_id: str,
633
+ *,
634
+ if_match: str,
635
+ name: str | None = None,
636
+ title: str | EllipsisType | None = Ellipsis,
637
+ namespace: str | None = None,
638
+ timeout: float | httpx.Timeout | None = None,
639
+ extra_headers: Mapping[str, str] | None = None,
640
+ ) -> tuple[Folder, str | None]:
641
+ """Rename a Folder or update its title; None clears a supplied title."""
642
+ body: dict[str, str | None] = {}
643
+ if name is not None:
644
+ body["name"] = name
645
+ if title is not Ellipsis:
646
+ body["title"] = title
647
+ payload, etag = await self._catalog_request(
648
+ "PATCH", f"/api/v1/admin/folders/{encode_path_segment(folder_id)}", json_body=body,
649
+ if_match=if_match, namespace=namespace,
650
+ timeout=timeout, extra_headers=extra_headers,
651
+ )
652
+ return Folder.from_dict(payload), etag
653
+
654
+ async def delete_folder(
655
+ self,
656
+ folder_id: str,
657
+ *,
658
+ if_match: str,
659
+ namespace: str | None = None,
660
+ timeout: float | httpx.Timeout | None = None,
661
+ extra_headers: Mapping[str, str] | None = None,
662
+ ) -> str | None:
663
+ """Delete an empty Folder and return the resulting catalog ETag."""
664
+ _, etag = await self._catalog_request(
665
+ "DELETE", f"/api/v1/admin/folders/{encode_path_segment(folder_id)}",
666
+ if_match=if_match, namespace=namespace,
667
+ timeout=timeout, extra_headers=extra_headers,
668
+ )
669
+ return etag
670
+
671
+ async def move_service(
672
+ self,
673
+ service_name: str,
674
+ folder_id: str | None,
675
+ *,
676
+ if_match: str,
677
+ namespace: str | None = None,
678
+ timeout: float | httpx.Timeout | None = None,
679
+ extra_headers: Mapping[str, str] | None = None,
680
+ ) -> str | None:
681
+ """Move a logical Service to a Folder or to Root when folder_id is None."""
682
+ _, etag = await self._catalog_request(
683
+ "PUT", f"/api/v1/admin/services/{encode_path_segment(service_name)}/folder",
684
+ json_body={"folderId": folder_id}, if_match=if_match, namespace=namespace,
685
+ timeout=timeout, extra_headers=extra_headers,
686
+ )
687
+ return etag
688
+
570
689
  # Services
571
690
 
572
691
  async def list_services(
@@ -7,6 +7,7 @@ from __future__ import annotations
7
7
  import copy
8
8
  import warnings
9
9
  from collections.abc import Mapping
10
+ from types import EllipsisType
10
11
  from typing import Any, BinaryIO
11
12
 
12
13
  import httpx
@@ -47,6 +48,7 @@ from ._models import (
47
48
  ConnectionTestResult,
48
49
  CreateSecureConnectionRequest,
49
50
  EncryptionValidationResult,
51
+ Folder,
50
52
  ImportResult,
51
53
  KeyRotationResult,
52
54
  LayerStyleResponse,
@@ -568,6 +570,123 @@ class HonuaAdminClient:
568
570
  return BackgroundImportResponse.from_dict(payload)
569
571
  return ImportResult.from_dict(payload)
570
572
 
573
+ def _catalog_request(
574
+ self,
575
+ method: str,
576
+ path: str,
577
+ *,
578
+ namespace: str | None,
579
+ if_match: str | None = None,
580
+ json_body: Any | None = None,
581
+ timeout: float | httpx.Timeout | None = None,
582
+ extra_headers: Mapping[str, str] | None = None,
583
+ ) -> tuple[Any, str | None]:
584
+ response = self._request(
585
+ method, path, json_body=json_body,
586
+ headers={"If-Match": if_match} if if_match is not None else None,
587
+ params={"namespace": namespace} if namespace is not None else None,
588
+ timeout=timeout, extra_headers=extra_headers,
589
+ )
590
+ return _endpoints.unwrap_envelope(response), response.headers.get("ETag")
591
+
592
+ def list_folders(
593
+ self,
594
+ *,
595
+ namespace: str | None = None,
596
+ timeout: float | httpx.Timeout | None = None,
597
+ extra_headers: Mapping[str, str] | None = None,
598
+ ) -> tuple[list[Folder], str | None]:
599
+ """List catalog Folders with the snapshot ETag used by mutations."""
600
+ payload, etag = self._catalog_request(
601
+ "GET",
602
+ "/api/v1/admin/folders",
603
+ namespace=namespace,
604
+ timeout=timeout,
605
+ extra_headers=extra_headers,
606
+ )
607
+ folders = [Folder.from_dict(folder) for folder in payload]
608
+ return folders, etag
609
+
610
+ def create_folder(
611
+ self,
612
+ name: str,
613
+ *,
614
+ if_match: str,
615
+ title: str | None = None,
616
+ namespace: str | None = None,
617
+ timeout: float | httpx.Timeout | None = None,
618
+ extra_headers: Mapping[str, str] | None = None,
619
+ ) -> tuple[Folder, str | None]:
620
+ """Create a Folder against the supplied catalog snapshot ETag."""
621
+ body = {"name": name}
622
+ if title is not None:
623
+ body["title"] = title
624
+ payload, etag = self._catalog_request(
625
+ "POST", "/api/v1/admin/folders", json_body=body,
626
+ if_match=if_match, namespace=namespace,
627
+ timeout=timeout, extra_headers=extra_headers,
628
+ )
629
+ return Folder.from_dict(payload), etag
630
+
631
+ def update_folder(
632
+ self,
633
+ folder_id: str,
634
+ *,
635
+ if_match: str,
636
+ name: str | None = None,
637
+ title: str | EllipsisType | None = Ellipsis,
638
+ namespace: str | None = None,
639
+ timeout: float | httpx.Timeout | None = None,
640
+ extra_headers: Mapping[str, str] | None = None,
641
+ ) -> tuple[Folder, str | None]:
642
+ """Rename a Folder or update its title; None clears a supplied title."""
643
+ body: dict[str, str | None] = {}
644
+ if name is not None:
645
+ body["name"] = name
646
+ if title is not Ellipsis:
647
+ body["title"] = title
648
+ payload, etag = self._catalog_request(
649
+ "PATCH", f"/api/v1/admin/folders/{encode_path_segment(folder_id)}", json_body=body,
650
+ if_match=if_match, namespace=namespace,
651
+ timeout=timeout, extra_headers=extra_headers,
652
+ )
653
+ return Folder.from_dict(payload), etag
654
+
655
+ def delete_folder(
656
+ self,
657
+ folder_id: str,
658
+ *,
659
+ if_match: str,
660
+ namespace: str | None = None,
661
+ timeout: float | httpx.Timeout | None = None,
662
+ extra_headers: Mapping[str, str] | None = None,
663
+ ) -> str | None:
664
+ """Delete an empty Folder and return the resulting catalog ETag."""
665
+ _, etag = self._catalog_request(
666
+ "DELETE", f"/api/v1/admin/folders/{encode_path_segment(folder_id)}",
667
+ if_match=if_match, namespace=namespace,
668
+ timeout=timeout, extra_headers=extra_headers,
669
+ )
670
+ return etag
671
+
672
+ def move_service(
673
+ self,
674
+ service_name: str,
675
+ folder_id: str | None,
676
+ *,
677
+ if_match: str,
678
+ namespace: str | None = None,
679
+ timeout: float | httpx.Timeout | None = None,
680
+ extra_headers: Mapping[str, str] | None = None,
681
+ ) -> str | None:
682
+ """Move a logical Service to a Folder or to Root when folder_id is None."""
683
+ _, etag = self._catalog_request(
684
+ "PUT", f"/api/v1/admin/services/{encode_path_segment(service_name)}/folder",
685
+ json_body={"folderId": folder_id}, if_match=if_match, namespace=namespace,
686
+ timeout=timeout, extra_headers=extra_headers,
687
+ )
688
+ return etag
689
+
571
690
  # Services
572
691
 
573
692
  def list_services(
@@ -5,6 +5,7 @@ from __future__ import annotations
5
5
  import json
6
6
  import re
7
7
  from dataclasses import dataclass, field, fields
8
+ from types import EllipsisType
8
9
  from typing import Any, Literal, TypeAlias
9
10
 
10
11
  # Derived, not chosen: release/sdk-capability-baseline.json declares
@@ -119,6 +120,11 @@ class AdminServiceSummary:
119
120
  description: str | None
120
121
  layer_count: int
121
122
  enabled_protocols: list[str]
123
+ folder_id: str | None = None
124
+ folder_name: str | None = None
125
+ public_name: str | None = None
126
+ title: str | None = None
127
+ folder_mutation_issues: list[str] = field(default_factory=list)
122
128
 
123
129
  @classmethod
124
130
  def from_dict(cls, data: dict[str, Any]) -> AdminServiceSummary:
@@ -401,6 +407,35 @@ class OperationProposalDetail:
401
407
  return cls(**_extract_fields(cls, d))
402
408
 
403
409
 
410
+ @dataclass(frozen=True, slots=True)
411
+ class FolderMetadata:
412
+ """Identity and display metadata for one catalog Folder."""
413
+
414
+ id: str
415
+ name: str
416
+ title: str | None = None
417
+ tenant: str | None = None
418
+
419
+ @classmethod
420
+ def from_dict(cls, data: dict[str, Any]) -> FolderMetadata:
421
+ return cls(**_extract_fields(cls, _snake_keys(data)))
422
+
423
+
424
+ @dataclass(frozen=True, slots=True)
425
+ class Folder:
426
+ """One catalog Folder and its permanent previous path names."""
427
+
428
+ metadata: FolderMetadata
429
+ previous_names: list[str] = field(default_factory=list)
430
+ deleted: bool = False
431
+
432
+ @classmethod
433
+ def from_dict(cls, data: dict[str, Any]) -> Folder:
434
+ values = _snake_keys(data)
435
+ values["metadata"] = FolderMetadata.from_dict(values["metadata"])
436
+ return cls(**_extract_fields(cls, values))
437
+
438
+
404
439
  @dataclass(frozen=True, slots=True)
405
440
  class ResourceMetadata:
406
441
  id: str | None
@@ -750,11 +785,11 @@ def evaluate_admin_compatibility(
750
785
  actual_rank = get_release_channel_rank(compatibility.release_channel)
751
786
  minimum_rank = get_release_channel_rank(baseline.minimum_release_channel)
752
787
  if actual_rank is None:
753
- reasons.append(f"Server release channel {compatibility.release_channel!r} is unknown.")
788
+ warnings.append(f"Server release channel {compatibility.release_channel!r} is unknown.")
754
789
  elif minimum_rank is None or actual_rank < minimum_rank:
755
- reasons.append(
790
+ warnings.append(
756
791
  "Server release channel "
757
- f"{compatibility.release_channel!r} is below required "
792
+ f"{compatibility.release_channel!r} is below recommended "
758
793
  f"{baseline.minimum_release_channel!r}."
759
794
  )
760
795
 
@@ -814,7 +849,7 @@ class TableDiscoveryResponse:
814
849
 
815
850
  @dataclass(frozen=True, slots=True)
816
851
  class PublishedLayerSummary:
817
- layer_id: int
852
+ storage_layer_id: int
818
853
  layer_name: str
819
854
  schema: str
820
855
  table: str
@@ -1033,17 +1068,21 @@ class PublishLayerRequest:
1033
1068
  fields_list: list[str] | None = None
1034
1069
  service_name: str | None = None
1035
1070
  enabled: bool = True
1071
+ folder_id: str | EllipsisType | None = Ellipsis
1072
+ public_name: str | None = None
1036
1073
 
1037
1074
  def to_dict(self) -> dict[str, Any]:
1038
1075
  d: dict[str, Any] = {}
1039
1076
  for f in fields(self):
1040
1077
  val = getattr(self, f.name)
1041
- if val is not None:
1078
+ if f.name != "folder_id" and val is not None:
1042
1079
  key = f.name
1043
1080
  # Map fields_list back to "fields" in the API
1044
1081
  if key == "fields_list":
1045
1082
  key = "fields"
1046
1083
  d[_to_camel(key)] = val
1084
+ if self.folder_id is not Ellipsis:
1085
+ d["folderId"] = self.folder_id # None selects Root; omission keeps the server default.
1047
1086
  return d
1048
1087
 
1049
1088
 
@@ -9,14 +9,14 @@ installed.
9
9
  Commands
10
10
  --------
11
11
  ``datasource list | create | test``
12
- Secure datasource connections (``list_connections``,
12
+ Secure connections (``list_connections``,
13
13
  ``create_connection``, ``test_connection``). ``create`` never takes a
14
14
  password on the command line: use ``--password-env``, ``--password-stdin``,
15
15
  ``--secret-reference`` or a ``--body`` file.
16
16
 
17
- ``layer list | publish | unpublish | enable``
17
+ ``layer list | publish | disable | enable``
18
18
  Published layers of a connection (``list_layers``, ``publish_layer``,
19
- ``set_layer_enabled``). ``unpublish`` (alias ``disable``) turns a layer off
19
+ ``set_layer_enabled``). ``disable`` turns a layer off
20
20
  so its data-plane URLs stop serving.
21
21
 
22
22
  ``proposal list | read | approve | reject``
@@ -77,7 +77,7 @@ class CliUsageError(ValueError):
77
77
  """An operator input error; reported on stderr with exit code 2."""
78
78
 
79
79
 
80
- # -- connection --------------------------------------------------------------
80
+ # -- server access -----------------------------------------------------------
81
81
 
82
82
 
83
83
  def _resolve_base_url(args: argparse.Namespace) -> str:
@@ -254,7 +254,7 @@ def _cmd_datasource_test(args: argparse.Namespace, out: TextIO) -> int:
254
254
  def _cmd_layer_list(args: argparse.Namespace, out: TextIO) -> int:
255
255
  with _make_client(args) as client:
256
256
  layers = client.list_layers(args.connection_id, args.service_name)
257
- _emit_rows(layers, ["layerId", "layerName", "serviceName", "table", "enabled"], args, out)
257
+ _emit_rows(layers, ["storageLayerId", "layerName", "serviceName", "table", "enabled"], args, out)
258
258
  return 0
259
259
 
260
260
 
@@ -291,7 +291,7 @@ def _set_enabled(args: argparse.Namespace, out: TextIO, *, enabled: bool) -> int
291
291
  return 0
292
292
 
293
293
 
294
- def _cmd_layer_unpublish(args: argparse.Namespace, out: TextIO) -> int:
294
+ def _cmd_layer_disable(args: argparse.Namespace, out: TextIO) -> int:
295
295
  return _set_enabled(args, out, enabled=False)
296
296
 
297
297
 
@@ -386,17 +386,17 @@ def _group_help(parser: argparse.ArgumentParser) -> Command:
386
386
 
387
387
 
388
388
  def _add_datasource(subparsers: Any) -> None:
389
- group = subparsers.add_parser("datasource", help="Create, test and list secure datasource connections.")
389
+ group = subparsers.add_parser("datasource", help="Create, test and list secure connections.")
390
390
  sub = group.add_subparsers(dest="datasource_command", metavar="<subcommand>")
391
391
  group.set_defaults(func=_group_help(group))
392
392
 
393
- _common(sub.add_parser("list", help="List datasource connections."), _cmd_datasource_list)
393
+ _common(sub.add_parser("list", help="List connections."), _cmd_datasource_list)
394
394
 
395
395
  create = _common(
396
396
  sub.add_parser(
397
397
  "create",
398
- help="Create a PostGIS datasource connection.",
399
- description="Create a datasource connection. Passwords are never accepted on the command line.",
398
+ help="Create a PostGIS connection.",
399
+ description="Create a connection. Passwords are never accepted on the command line.",
400
400
  ),
401
401
  _cmd_datasource_create,
402
402
  )
@@ -424,7 +424,7 @@ def _add_datasource(subparsers: Any) -> None:
424
424
 
425
425
 
426
426
  def _add_layer(subparsers: Any) -> None:
427
- group = subparsers.add_parser("layer", help="Publish, list and unpublish a connection's layers.")
427
+ group = subparsers.add_parser("layer", help="Publish, list, enable and disable a connection's layers.")
428
428
  sub = group.add_subparsers(dest="layer_command", metavar="<subcommand>")
429
429
  group.set_defaults(func=_group_help(group))
430
430
 
@@ -452,11 +452,11 @@ def _add_layer(subparsers: Any) -> None:
452
452
  help="JSON request body (camelCase or snake_case keys; '-' for stdin); flags override its fields.",
453
453
  )
454
454
 
455
- for name, aliases, func, text in (
456
- ("unpublish", ["disable"], _cmd_layer_unpublish, "Disable a published layer (stop serving it)."),
457
- ("enable", [], _cmd_layer_enable, "Re-enable a disabled layer."),
455
+ for name, func, text in (
456
+ ("disable", _cmd_layer_disable, "Disable a published layer (stop serving it)."),
457
+ ("enable", _cmd_layer_enable, "Re-enable a disabled layer."),
458
458
  ):
459
- toggle = _common(sub.add_parser(name, aliases=aliases, help=text), func)
459
+ toggle = _common(sub.add_parser(name, help=text), func)
460
460
  toggle.add_argument("connection_id", help="Connection identifier.")
461
461
  toggle.add_argument("layer_id", type=int, help="Numeric layer identifier.")
462
462
  toggle.add_argument("--service-name", default=None, help="Service that owns the layer.")
@@ -500,7 +500,7 @@ def build_parser() -> argparse.ArgumentParser:
500
500
  """Build the ``honua-admin`` argument parser."""
501
501
  parser = argparse.ArgumentParser(
502
502
  prog="honua-admin",
503
- description="Operator commands for the Honua control plane: datasources, layers and proposals.",
503
+ description="Operator commands for the Honua control plane: connections, layers and proposals.",
504
504
  )
505
505
  parser.add_argument("--version", action="version", version=f"honua-admin {__version__}")
506
506
  add_operator_commands(parser.add_subparsers(dest="command", metavar="<command>"))
@@ -4,7 +4,7 @@ build-backend = "hatchling.build"
4
4
 
5
5
  [project]
6
6
  name = "honua-admin"
7
- version = "0.2.2"
7
+ version = "0.3.1"
8
8
  description = "Admin / control-plane client for Honua geospatial server"
9
9
  readme = "README.md"
10
10
  license = "Apache-2.0"
@@ -27,7 +27,7 @@ classifiers = [
27
27
  dependencies = [
28
28
  # The floor tracks the honua-sdk release (release-please generic updater on the line
29
29
  # below) so honua-admin always requires the SDK it was released with.
30
- "honua-sdk>=0.2.2,<0.3", # x-release-please-version
30
+ "honua-sdk>=0.3.1,<0.4", # x-release-please-version
31
31
  ]
32
32
 
33
33
  [project.scripts]
File without changes
File without changes