Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions src/astronomer/HISTORY.rst
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,10 @@
Release History
===============

1.0.1
++++++
* Updated command descriptions.

1.0.0
++++++
* Initial release.
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
"astronomer organization",
)
class __CMDGroup(AAZCommandGroup):
"""Manage Organization resources.
"""Manage Azure resources that represent organizations in the Astronomer platform
"""
pass

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
"astronomer organization create",
)
class Create(AAZCommand):
"""Create a OrganizationResource
"""Create an Azure resource that provisions a corresponding organization entity in Astronomer

:example: Create a OrganizationResource
az astronomer organization create --resource-group MyResourceGroup --name MyAstronomerOrganization --location "eastus" --marketplace {"subscription-id":"ntthclydlpqmasr","offer-details":{"publisher-id":"gfsqxygpnerxmvols","offer-id":"krzkefmpxztqyusidzgpchfaswuyce","plan-id":"kndxzygsanuiqzwbfbbvoipv","plan-name":"pwqjwlq","term-unit":"xyygyzcazkuelz","term-id":"pwds"}} --partner-organization {"organization-name":"orgname","workspace-name":"workspacename","single-sign-on-properties":{"aad-domains":["kfbleh"]}} --user {"first-name":"nfh","last-name":"lazfbstcccykibvcrxpmglqam","email-address":"[email protected]"}
Expand Down Expand Up @@ -50,7 +50,7 @@ def _build_arguments_schema(cls, *args, **kwargs):
help="Name of the Organizations resource",
required=True,
fmt=AAZStrArgFormat(
pattern="^[a-zA-Z0-9][a-zA-Z0-9_\-.: ]*$",
pattern="^[a-zA-Z0-9][a-zA-Z0-9_\\-.: ]*$",
max_length=50,
min_length=1,
),
Expand Down Expand Up @@ -134,7 +134,7 @@ def _build_arguments_schema(cls, *args, **kwargs):
help="Organization name in partner's system",
required=True,
fmt=AAZStrArgFormat(
pattern="^[a-zA-Z0-9][a-zA-Z0-9_\-.: ]*$",
pattern="^[a-zA-Z0-9][a-zA-Z0-9_\\-.: ]*$",
max_length=50,
min_length=1,
),
Expand All @@ -151,7 +151,7 @@ def _build_arguments_schema(cls, *args, **kwargs):
options=["workspace-name"],
help="Workspace name in partner's system",
fmt=AAZStrArgFormat(
pattern="^[a-zA-Z0-9][a-zA-Z0-9_\-.: ]*$",
pattern="^[a-zA-Z0-9][a-zA-Z0-9_\\-.: ]*$",
max_length=50,
min_length=1,
),
Expand Down Expand Up @@ -185,7 +185,7 @@ def _build_arguments_schema(cls, *args, **kwargs):
help="Email address of the user",
required=True,
fmt=AAZStrArgFormat(
pattern="^[A-Za-z0-9._%+-]+@(?:[A-Za-z0-9-]+\.)+[A-Za-z]{2,}$",
pattern="^[A-Za-z0-9._%+-]+@(?:[A-Za-z0-9-]+\\.)+[A-Za-z]{2,}$",
),
)
user.first_name = AAZStrArg(
Expand Down Expand Up @@ -356,7 +356,7 @@ def content(self):
typ=AAZObjectType,
typ_kwargs={"flags": {"required": True, "client_flatten": True}}
)
_builder.set_prop("identity", AAZObjectType, ".identity")
_builder.set_prop("identity", AAZIdentityObjectType, ".identity")
_builder.set_prop("location", AAZStrType, ".location", typ_kwargs={"flags": {"required": True}})
_builder.set_prop("properties", AAZObjectType, typ_kwargs={"flags": {"client_flatten": True}})
_builder.set_prop("tags", AAZDictType, ".tags")
Expand Down Expand Up @@ -445,7 +445,7 @@ def _build_schema_on_200_201(cls):
_schema_on_200_201.id = AAZStrType(
flags={"read_only": True},
)
_schema_on_200_201.identity = AAZObjectType()
_schema_on_200_201.identity = AAZIdentityObjectType()
_schema_on_200_201.location = AAZStrType(
flags={"required": True},
)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
confirmation="Are you sure you want to perform this operation?",
)
class Delete(AAZCommand):
"""Delete a OrganizationResource
"""Delete the Azure resource linked to an organization entity in Astronomer

:example: Delete a OrganizationResource
az astronomer organization delete -g MyResourceGroup -n MyAstronomerOrganization
Expand Down Expand Up @@ -52,7 +52,7 @@ def _build_arguments_schema(cls, *args, **kwargs):
required=True,
id_part="name",
fmt=AAZStrArgFormat(
pattern="^[a-zA-Z0-9][a-zA-Z0-9_\-.: ]*$",
pattern="^[a-zA-Z0-9][a-zA-Z0-9_\\-.: ]*$",
max_length=50,
min_length=1,
),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
"astronomer organization list",
)
class List(AAZCommand):
"""List OrganizationResource resources by subscription ID
"""List all Azure resources representing Astronomer organizations under the current subscription

:example: ist OrganizationResource resources.
az astronomer organization list -g MyResourceGroup
Expand Down Expand Up @@ -163,7 +163,7 @@ def _build_schema_on_200(cls):
_element.id = AAZStrType(
flags={"read_only": True},
)
_element.identity = AAZObjectType()
_element.identity = AAZIdentityObjectType()
_element.location = AAZStrType(
flags={"required": True},
)
Expand Down Expand Up @@ -429,7 +429,7 @@ def _build_schema_on_200(cls):
_element.id = AAZStrType(
flags={"read_only": True},
)
_element.identity = AAZObjectType()
_element.identity = AAZIdentityObjectType()
_element.location = AAZStrType(
flags={"required": True},
)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
"astronomer organization show",
)
class Show(AAZCommand):
"""Get a OrganizationResource
"""Retrieve details of the Azure resource associated with an Astronomer organization

:example: Get a OrganizationResource
az astronomer organization show -g MyResourceGroup -n MyAstronomerOrganization
Expand Down Expand Up @@ -50,7 +50,7 @@ def _build_arguments_schema(cls, *args, **kwargs):
required=True,
id_part="name",
fmt=AAZStrArgFormat(
pattern="^[a-zA-Z0-9][a-zA-Z0-9_\-.: ]*$",
pattern="^[a-zA-Z0-9][a-zA-Z0-9_\\-.: ]*$",
max_length=50,
min_length=1,
),
Expand Down Expand Up @@ -161,7 +161,7 @@ def _build_schema_on_200(cls):
_schema_on_200.id = AAZStrType(
flags={"read_only": True},
)
_schema_on_200.identity = AAZObjectType()
_schema_on_200.identity = AAZIdentityObjectType()
_schema_on_200.location = AAZStrType(
flags={"required": True},
)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
"astronomer organization update",
)
class Update(AAZCommand):
"""Update a OrganizationResource
"""Update the Azure resource configuration for an Astronomer organization

:example: Update a OrganizationResource
az astronomer organization update -g MyResourceGroup -n MyAstronomerOrganization --tags key1=value1
Expand Down Expand Up @@ -51,7 +51,7 @@ def _build_arguments_schema(cls, *args, **kwargs):
required=True,
id_part="name",
fmt=AAZStrArgFormat(
pattern="^[a-zA-Z0-9][a-zA-Z0-9_\-.: ]*$",
pattern="^[a-zA-Z0-9][a-zA-Z0-9_\\-.: ]*$",
max_length=50,
min_length=1,
),
Expand Down Expand Up @@ -110,7 +110,7 @@ def _build_arguments_schema(cls, *args, **kwargs):
options=["organization-name"],
help="Organization name in partner's system",
fmt=AAZStrArgFormat(
pattern="^[a-zA-Z0-9][a-zA-Z0-9_\-.: ]*$",
pattern="^[a-zA-Z0-9][a-zA-Z0-9_\\-.: ]*$",
max_length=50,
min_length=1,
),
Expand All @@ -127,7 +127,7 @@ def _build_arguments_schema(cls, *args, **kwargs):
options=["workspace-name"],
help="Workspace name in partner's system",
fmt=AAZStrArgFormat(
pattern="^[a-zA-Z0-9][a-zA-Z0-9_\-.: ]*$",
pattern="^[a-zA-Z0-9][a-zA-Z0-9_\\-.: ]*$",
max_length=50,
min_length=1,
),
Expand Down Expand Up @@ -160,7 +160,7 @@ def _build_arguments_schema(cls, *args, **kwargs):
options=["email-address"],
help="Email address of the user",
fmt=AAZStrArgFormat(
pattern="^[A-Za-z0-9._%+-]+@(?:[A-Za-z0-9-]+\.)+[A-Za-z]{2,}$",
pattern="^[A-Za-z0-9._%+-]+@(?:[A-Za-z0-9-]+\\.)+[A-Za-z]{2,}$",
),
)
user.first_name = AAZStrArg(
Expand Down Expand Up @@ -290,7 +290,7 @@ def content(self):
typ=AAZObjectType,
typ_kwargs={"flags": {"required": True, "client_flatten": True}}
)
_builder.set_prop("identity", AAZObjectType, ".identity")
_builder.set_prop("identity", AAZIdentityObjectType, ".identity")
_builder.set_prop("properties", AAZObjectType, typ_kwargs={"flags": {"client_flatten": True}})
_builder.set_prop("tags", AAZDictType, ".tags")

Expand Down Expand Up @@ -362,7 +362,7 @@ def _build_schema_on_200(cls):
_schema_on_200.id = AAZStrType(
flags={"read_only": True},
)
_schema_on_200.identity = AAZObjectType()
_schema_on_200.identity = AAZIdentityObjectType()
_schema_on_200.location = AAZStrType(
flags={"required": True},
)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ def _build_arguments_schema(cls, *args, **kwargs):
required=True,
id_part="name",
fmt=AAZStrArgFormat(
pattern="^[a-zA-Z0-9][a-zA-Z0-9_\-.: ]*$",
pattern="^[a-zA-Z0-9][a-zA-Z0-9_\\-.: ]*$",
max_length=50,
min_length=1,
),
Expand Down Expand Up @@ -157,7 +157,7 @@ def _build_schema_on_200(cls):
_schema_on_200.id = AAZStrType(
flags={"read_only": True},
)
_schema_on_200.identity = AAZObjectType()
_schema_on_200.identity = AAZIdentityObjectType()
_schema_on_200.location = AAZStrType(
flags={"required": True},
)
Expand Down
2 changes: 1 addition & 1 deletion src/astronomer/azext_astronomer/azext_metadata.json
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
{
"azext.minCliCoreVersion": "2.57.0"
"azext.minCliCoreVersion": "2.70.0"
}
2 changes: 1 addition & 1 deletion src/astronomer/setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@


# HISTORY.rst entry.
VERSION = '1.0.0'
VERSION = '1.0.1'

# The full list of classifiers is available at
# https://pypi.python.org/pypi?%3Aaction=list_classifiers
Expand Down
Loading