-
Notifications
You must be signed in to change notification settings - Fork 4k
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
Conversation
@Skuldo Please add test cases & changelog to changelog.md |
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. |
Can one of the admins verify this patch? |
We should use VaultName as default parameter name and Name as its alias. |
@Skuldo Sorry, one more thing, help mark down file should also be upgraded. |
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; } |
There was a problem hiding this comment.
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?
There was a problem hiding this comment.
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?
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
/azp run |
Azure Pipelines successfully started running 3 pipeline(s). |
Updated VaultName to Name for Azure#10676
Changed a parameter name from VaultName to Name
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
CONTRIBUTING.md
ChangeLog.md
file(s) has been updated:ChangeLog.md
file can be found atsrc/{{SERVICE}}/{{SERVICE}}/ChangeLog.md
## Upcoming Release
header -- no new version header should be added