-
Notifications
You must be signed in to change notification settings - Fork 4k
Update property name for get bgp service community cmdlets and remove name property for stats cmdlets #3572
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
Closing and reopening to try and ping the CLA bot. |
Trying again to bump CLA bot |
Fix issue: #3564 |
<package id="Microsoft.Azure.Management.Compute" version="14.0.0-prerelease" targetFramework="net45" /> | ||
<package id="Microsoft.Azure.Management.Network" version="8.3.0-preview" targetFramework="net45" /> | ||
<package id="Microsoft.Azure.Management.Network" version="8.6.0-preview" targetFramework="net45" /> |
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.
@dihan0604 the build is failing because this is not 9.0.0-preview
@azuresdkci retest this please |
@dihan0604 Please update the PR title to be more descriptive, and please clean up the commits. We have some advice on cleaning up commits here: https://github.com/Azure/azure-powershell/blob/dev/documentation/cleaning-up-commits.md |
<Private>True</Private> | ||
</Reference> | ||
<Reference Include="Microsoft.Rest.ClientRuntime.Azure, Version=3.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35, processorArchitecture=MSIL"> | ||
<HintPath>..\..\..\packages\Microsoft.Rest.ClientRuntime.Azure.3.3.4\lib\net45\Microsoft.Rest.ClientRuntime.Azure.dll</HintPath> | ||
<HintPath>..\..\..\packages\Microsoft.Rest.ClientRuntime.Azure.3.3.5\lib\net45\Microsoft.Rest.ClientRuntime.Azure.dll</HintPath> |
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.
You are not going to be able to make this change without making this change across all RPs.
@@ -98,11 +98,11 @@ | |||
<Private>True</Private> | |||
</Reference> | |||
<Reference Include="Microsoft.Rest.ClientRuntime, Version=2.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35, processorArchitecture=MSIL"> | |||
<HintPath>..\..\..\packages\Microsoft.Rest.ClientRuntime.2.3.4\lib\net45\Microsoft.Rest.ClientRuntime.dll</HintPath> | |||
<HintPath>..\..\..\packages\Microsoft.Rest.ClientRuntime.2.3.5\lib\net45\Microsoft.Rest.ClientRuntime.dll</HintPath> |
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.
same for this reference
@@ -33,15 +33,7 @@ public enum DevicePathEnum | |||
|
|||
[Cmdlet(VerbsCommon.Get, "AzureRmExpressRouteCircuitARPTable"),OutputType(typeof(PSExpressRouteCircuitArpTable))] | |||
public class GetAzureExpressRouteCircuitARPTableCommand : NetworkBaseCmdlet | |||
{ | |||
[Alias("ResourceName")] |
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.
You need to move this alias, and add an alias for Name to 'ExpressRouteCircuitName'. This applies to all of your cmdlet changes.
@markcowl comments adressed. |
"Microsoft.Azure.Commands.Compute.dll","Microsoft.Azure.Commands.Compute.Extension.Chef.SetAzureVMChefExtensionCommand","Set-AzureRmVMChefExtension","0","2090","The ValidateNotNullOrEmpty attribute has been added to parameter 'Windows' for cmdlet 'Set-AzureRmVMChefExtension'.","Remove the ValidateNotNullOrEmpty attribute from parameter 'Windows'." |
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.
Instead of this, add the alias 'Name' to each of the ExpressRouteCircuitName parameters.
"Microsoft.Azure.Commands.Compute.dll","Microsoft.Azure.Commands.Compute.Extension.Chef.SetAzureVMChefExtensionCommand","Set-AzureRmVMChefExtension","0","2090","The ValidateNotNullOrEmpty attribute has been added to parameter 'Windows' for cmdlet 'Set-AzureRmVMChefExtension'.","Remove the ValidateNotNullOrEmpty attribute from parameter 'Windows'." | ||
"Microsoft.Azure.Commands.Network.dll","Microsoft.Azure.Commands.Network.GetAzureExpressRouteCircuitARPTableCommand","Get-AzureRmExpressRouteCircuitARPTable","0","2030","The parameter 'Name' is no longer optional for the parameter set '__AllParameterSets' for cmdlet 'Get-AzureRmExpressRouteCircuitARPTable'.","Make 'Name' optional for the parameter set '__AllParameterSets'." | ||
"Microsoft.Azure.Commands.Network.dll","Microsoft.Azure.Commands.Network.GetAzureExpressRouteCircuitARPTableCommand","Get-AzureRmExpressRouteCircuitARPTable","0","2080","The parameter 'Name' in parameter set '__AllParameterSets' for cmdlet 'Get-AzureRmExpressRouteCircuitARPTable' no longer has the attribute 'ValueFromPipelineByPropertyName'.","Add the attribute 'ValueFromPipelineByPropertyName' back to parameter 'Name' in parameter set '__AllParameterSets'." |
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.
These exceptions around GetValueByPipelineByPropertyName still apply - ExpressRouteCircuitName shoudl allow getting its value from the pipeline by property name -> this allows piping in a Get from generic cmdlets into these methods.
The other exceptions are valid
@markcowl Fixed the pipelinebypropertyname exception |
…name property in stats cmdlets
@azuresdkci retest this please |
On-demand passed: http://azuresdkci.cloudapp.net/job/powershell-demand/1429/ |
Description
This checklist is used to make sure that common guidelines for a pull request are followed. You can find a more complete discussion of PowerShell cmdlet best practices here.
General Guidelines
Testing Guidelines
Cmdlet Signature Guidelines
ShouldProcess
and haveSupportShouldProcess=true
specified in the cmdlet attribute. You can find more information onShouldProcess
here.OutputType
attribute if any output is produced - if the cmdlet produces no output, it should implement aPassThru
parameter.Cmdlet Parameter Guidelines