Skip to content

Changed a parameter name from VaultName to Name #10676

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

Merged
merged 4 commits into from
Jan 16, 2020
Merged

Conversation

Skuldo
Copy link
Contributor

@Skuldo Skuldo commented Dec 8, 2019

Changed a parameter name from VaultName to Name, and then added VaultName as an alias to make RemoveAzureKeyVault consistent with NewAzureKeyVault.

Description

See #10673

Checklist

  • I have read the Submitting Changes section of CONTRIBUTING.md
  • The title of the PR is clear and informative
  • The appropriate ChangeLog.md file(s) has been updated:
    • For any service, the ChangeLog.md file can be found at src/{{SERVICE}}/{{SERVICE}}/ChangeLog.md
    • A snippet outlining the change(s) made in the PR should be written under the ## Upcoming Release header -- no new version header should be added
  • The PR does not introduce breaking changes
  • If applicable, the changes made in the PR have proper test coverage
  • For public API changes to cmdlets:
    • a cmdlet design review was approved for the changes in this repository (Microsoft internal only)
    • the markdown help files have been regenerated using the commands listed here

@msJinLei msJinLei self-assigned this Dec 9, 2019
@msJinLei
Copy link
Contributor

msJinLei commented Dec 9, 2019

@Skuldo Please add test cases & changelog to changelog.md

Skuldo added a commit to Skuldo/azure-powershell that referenced this pull request Dec 10, 2019
Skuldo added a commit to Skuldo/azure-powershell that referenced this pull request Dec 10, 2019
@Skuldo Skuldo mentioned this pull request Dec 10, 2019
8 tasks
@Skuldo
Copy link
Contributor Author

Skuldo commented Dec 10, 2019

Updated ChangeLog #10687

I don't think any tests need amending, this is essentially just re-ordering the alias/class name, the existing way of interacting with it is identical, with the addition of an extra alias.

@msJinLei
Copy link
Contributor

Updated ChangeLog #10687

I don't think any tests need amending, this is essentially just re-ordering the alias/class name, the existing way of interacting with it is identical, with the addition of an extra alias.

Please merge the changelog commit into this PR.

@adxsdkps
Copy link
Collaborator

Can one of the admins verify this patch?

@msftclas
Copy link

msftclas commented Dec 11, 2019

CLA assistant check
All CLA requirements met.

@dingmeng-xue
Copy link
Member

We should use VaultName as default parameter name and Name as its alias.

@msJinLei
Copy link
Contributor

@Skuldo Sorry, one more thing, help mark down file should also be upgraded.

Skuldo added a commit to Skuldo/azure-powershell that referenced this pull request Dec 14, 2019
Updated VaultName to Name for Azure#10676
@@ -54,7 +54,8 @@ public class RemoveAzureKeyVault : KeyVaultManagementCmdletBase
HelpMessage = "Specifies the name of the key vault to remove.")]
[ResourceNameCompleter("Microsoft.KeyVault/vaults", "ResourceGroupName")]
[ValidateNotNullOrEmpty]
public string VaultName { get; set; }
[Alias("VaultName")]
public string Name { get; set; }
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is the original reference to VaultName required to be modified?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

So @Skuldo , is there any particular reason why not keep VaultName as-is, and add Name as an alias?

@msJinLei
Copy link
Contributor

msJinLei commented Jan 10, 2020

Hi @Skuldo, Thank you for contributing to azure powershell. We will do inplace modification to your patch to finish the job.

Changed a parameter name from VaultName to Name, and then added VaultName as an alias to make RemoveAzureKeyVault consistent with NewAzureKeyVault.
* Reorganised Name/VaultName attribute to make Remove-AzureKeyVault consistent with New-AzureKeyVault.
Updated VaultName to Name for Azure#10676
@msJinLei
Copy link
Contributor

/azp run

@azure-pipelines
Copy link
Contributor

Azure Pipelines successfully started running 3 pipeline(s).

@isra-fel isra-fel merged commit 4dad5ca into Azure:master Jan 16, 2020
dingmeng-xue pushed a commit to dingmeng-xue/azure-powershell that referenced this pull request Mar 29, 2020
Updated VaultName to Name for Azure#10676
dingmeng-xue pushed a commit to dingmeng-xue/azure-powershell that referenced this pull request Mar 29, 2020
Changed a parameter name from VaultName to Name
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

7 participants