Skip to content

Commit d248fb4

Browse files
Restore inline examples in AAZ command docstrings
1 parent f30b5f3 commit d248fb4

3 files changed

Lines changed: 9 additions & 0 deletions

File tree

src/planetarycomputer/azext_planetarycomputer/aaz/latest/spatio/geo_catalog/_create.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,9 @@
1616
)
1717
class Create(AAZCommand):
1818
"""Create a GeoCatalog
19+
20+
:example: Create a GeoCatalog
21+
az planetarycomputer geocatalog create --name MyGeoCatalog --resource-group MyResourceGroup --location westus2
1922
"""
2023

2124
_aaz_info = {

src/planetarycomputer/azext_planetarycomputer/aaz/latest/spatio/geo_catalog/_update.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,9 @@
1616
)
1717
class Update(AAZCommand):
1818
"""Update a GeoCatalog
19+
20+
:example: Update a GeoCatalog's tags
21+
az planetarycomputer geocatalog update --name MyGeoCatalog --resource-group MyResourceGroup --tags key=value
1922
"""
2023

2124
_aaz_info = {

src/planetarycomputer/azext_planetarycomputer/aaz/latest/spatio/geo_catalog/identity/_assign.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,9 @@
1616
)
1717
class Assign(AAZCommand):
1818
"""Assign the user or system managed identities.
19+
20+
:example: Assign a user-assigned managed identity
21+
az planetarycomputer geocatalog identity assign --name MyGeoCatalog --resource-group MyResourceGroup --user-assigned-identities "{'/subscriptions/sub-id/resourceGroups/rg/providers/Microsoft.ManagedIdentity/userAssignedIdentities/my-identity':{}}"
1922
"""
2023

2124
_aaz_info = {

0 commit comments

Comments
 (0)