Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature Neon - Update commands for changing 'Resource' to 'Organization' #8424

Merged
merged 5 commits into from
Feb 5, 2025
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
6 changes: 5 additions & 1 deletion src/neon/HISTORY.rst
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,8 @@ Release History

1.0.0b1
++++++
* Initial release.
* Initial release.

1.0.0b2
++++++
* Updated command descriptions.
6 changes: 3 additions & 3 deletions src/neon/azext_neon/aaz/latest/neon/postgres/_create.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
is_preview=True,
)
class Create(AAZCommand):
"""Create a Neon Resource
"""Create a Neon organization

:example: Organizations_CreateOrUpdate
az neon postgres create --resource-group demoResourceGroup --name demoNeonResource --location eastus --subscription 12345678-1234-1234-1234-123456789abc --marketplace-details "{subscription-id:abcd1234-5678-90ab-cdef-12345678abcd,subscription-status:PendingFulfillmentStart,offer-details:{publisher-id:microsoft,offer-id:neon-postgres,plan-id:serverless-plan,plan-name:'Neon Serverless Postgres - Free (Test_Liftr)',term-unit:P1M,term-id:term1234}}" --user-details "{first-name:John,last-name:Doe,email-address:[email protected],upn:johndoe,phone-number:+1234567890}" --company-details "{company-name:'DemoCompany',country:USA,business-phone:+9876543210,office-address:'123 Azure Ave, Redmond, WA',domain:democompany.com,number-of-employees:1000}" --partner-organization-properties "{organization-id:org-5678,org-name:'PartnerOrg',single-sign-on-properties:{single-sign-on-state:Enable,enterprise-app-id:app-9876,single-sign-on-url:'https://sso.partnerorg.com',aad-domains:['partnerorg.com']}}"
Expand Down Expand Up @@ -48,7 +48,7 @@ def _build_arguments_schema(cls, *args, **kwargs):
_args_schema = cls._args_schema
_args_schema.name = AAZStrArg(
options=["-n", "--name"],
help="Name of the Neon resource",
help="Name of the Neon organization",
required=True,
fmt=AAZStrArgFormat(
pattern="^[a-zA-Z0-9][a-zA-Z0-9_\\-.: ]*$",
Expand All @@ -57,7 +57,7 @@ def _build_arguments_schema(cls, *args, **kwargs):
),
)
_args_schema.resource_group = AAZResourceGroupNameArg(
help="Name of the Resource Group",
help="Name of the resource group",
required=True,
)

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
confirmation="Are you sure you want to perform this operation?",
)
class Delete(AAZCommand):
"""Delete a Neon Resource
"""Delete a Neon organization

:example: Organizations_Delete
az neon postgres organization delete --subscription 12345678-1234-1234-1234-123456789abc --resource-group demoResourceGroup --name demoNeonResource
Expand Down Expand Up @@ -49,7 +49,7 @@ def _build_arguments_schema(cls, *args, **kwargs):
_args_schema = cls._args_schema
_args_schema.name = AAZStrArg(
options=["-n", "--name"],
help="Name of the Neon resource",
help="Name of the Neon organization",
required=True,
id_part="name",
fmt=AAZStrArgFormat(
Expand All @@ -59,7 +59,7 @@ def _build_arguments_schema(cls, *args, **kwargs):
),
)
_args_schema.resource_group = AAZResourceGroupNameArg(
help="Name of the Resource Group",
help="Name of the resource group",
required=True,
)
return cls._args_schema
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
is_preview=True,
)
class List(AAZCommand):
"""List Neon resources by subscription ID
"""List Neon organizations by subscription ID

:example: Organizations_ListBySubscription
az neon postgres organization list --subscription 12345678-1234-1234-1234-123456789abc --resource-group demoResourceGroup
Expand Down Expand Up @@ -48,7 +48,7 @@ def _build_arguments_schema(cls, *args, **kwargs):

_args_schema = cls._args_schema
_args_schema.resource_group = AAZResourceGroupNameArg(
help="Name of the Resource Group",
help="Name of the resource group",
)
return cls._args_schema

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
is_preview=True,
)
class Show(AAZCommand):
"""Get a Neon Resource
"""Get a Neon organization

:example: Organizations_Get
az neon postgres organization show --subscription 12345678-1234-1234-1234-123456789abc --resource-group demoResourceGroup --name demoNeonResource
Expand Down Expand Up @@ -47,7 +47,7 @@ def _build_arguments_schema(cls, *args, **kwargs):
_args_schema = cls._args_schema
_args_schema.name = AAZStrArg(
options=["-n", "--name"],
help="Name of the Neon resource",
help="Name of the Neon organization",
required=True,
id_part="name",
fmt=AAZStrArgFormat(
Expand All @@ -57,7 +57,7 @@ def _build_arguments_schema(cls, *args, **kwargs):
),
)
_args_schema.resource_group = AAZResourceGroupNameArg(
help="Name of the Resource Group",
help="Name of the resource group",
required=True,
)
return cls._args_schema
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
is_preview=True,
)
class Update(AAZCommand):
"""Update a Neon Resource
"""Update a Neon organization

:example: Organization_Update
az az neon postgres organization update --resource-group demoResourceGroup --name demoNeonResource --user-details "{first-name:John,last-name:Doe,email-address:[email protected],upn:johndoe,phone-number:+1234567890}" --company-details "{company-name:DemoCompany,country:USA,office-address:'123 Azure Ave, Redmond, WA',business-phone:+9876543210,domain:democompany.com,number-of-employees:1000}" --partner-organization-properties "{organization-id:org-5678,org-name:PartnerOrg,single-sign-on-properties:{single-sign-on-state:Enable,enterprise-app-id:app-9876,single-sign-on-url:'https://sso.partnerorg.com',aad-domains:['partnerorg.com']}}" --tags "{environment:production}"
Expand Down Expand Up @@ -50,7 +50,7 @@ def _build_arguments_schema(cls, *args, **kwargs):
_args_schema = cls._args_schema
_args_schema.name = AAZStrArg(
options=["-n", "--name"],
help="Name of the Neon resource",
help="Name of the Neon organization",
required=True,
id_part="name",
fmt=AAZStrArgFormat(
Expand All @@ -60,7 +60,7 @@ def _build_arguments_schema(cls, *args, **kwargs):
),
)
_args_schema.resource_group = AAZResourceGroupNameArg(
help="Name of the Resource Group",
help="Name of the resource group",
required=True,
)

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ def _build_arguments_schema(cls, *args, **kwargs):
_args_schema = cls._args_schema
_args_schema.name = AAZStrArg(
options=["-n", "--name"],
help="Name of the Neon resource",
help="Name of the Neon organization",
required=True,
id_part="name",
fmt=AAZStrArgFormat(
Expand All @@ -52,7 +52,7 @@ def _build_arguments_schema(cls, *args, **kwargs):
),
)
_args_schema.resource_group = AAZResourceGroupNameArg(
help="Name of the Resource Group",
help="Name of the resource group",
required=True,
)
return cls._args_schema
Expand Down
2 changes: 1 addition & 1 deletion src/neon/setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@


# HISTORY.rst entry.
VERSION = '1.0.0b1'
VERSION = '1.0.0b2'

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