-
Notifications
You must be signed in to change notification settings - Fork 4k
New property of the express route resources #4195
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
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 once SDK is merged, only then this can be sent for PR.
@@ -104,5 +106,11 @@ public class AzureExpressRouteCircuitPeeringConfigBase : NetworkBaseCmdlet | |||
HelpMessage = "RouteFilter")] | |||
[ValidateNotNullOrEmpty] | |||
public PSRouteFilter RouteFilter { get; set; } | |||
|
|||
[Parameter( |
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 please add tests for this new parameter.
@@ -72,4 +74,10 @@ public override void Execute() | |||
WriteObject(peering); | |||
} | |||
} | |||
|
|||
public enum LegacyMode |
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 please use the link to update help for the new parameter
https://github.com/Azure/azure-powershell/blob/preview/documentation/help-generation.md
Mandatory = false, | ||
ValueFromPipelineByPropertyName = true, | ||
HelpMessage = "The legacy mode of the Peering")] | ||
public LegacyMode LegacyMode { 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.
@dihan0604 can you explain the reasoning behind introducing an enum that has True and False values? Why can't we just use a boolean to express this parameter?
@@ -41,7 +41,7 @@ public override void Execute() | |||
this.ExpressRouteCircuit.Peerings.First( | |||
resource => | |||
string.Equals(resource.Name, this.Name, System.StringComparison.CurrentCultureIgnoreCase)); | |||
|
|||
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 revert this change please
@dihan0604 Did you published required nuget packages that you need for Powershell? |
comment addressed and tests added |
On demand passed: http://azuresdkci.cloudapp.net/job/powershell-demand/1721/ |
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