-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Feature Neon - Update commands for changing 'Resource' to 'Organizati…
…on' (#8424) * [Update] Neon Postgres commands for changing 'Resource' to 'Organization' * Update commands for changing 'Resource' to 'Organization' * [Neon Postgres] Update Command Descriptions * [Neon] Update history
- Loading branch information
Showing
8 changed files
with
22 additions
and
18 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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']}}" | ||
|
@@ -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_\\-.: ]*$", | ||
|
@@ -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, | ||
) | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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}" | ||
|
@@ -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( | ||
|
@@ -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, | ||
) | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters