public NetworkSecurityGroupRule(Arm.NetworkSecurityGroupRule armRule, TargetSettings targetSettings) : base(String.Empty, String.Empty) { this.SetTargetName(armRule.Name, targetSettings); this.Access = armRule.Access; this.DestinationAddressPrefix = armRule.DestinationAddressPrefix; this.DestinationPortRange = armRule.DestinationPortRange; this.Direction = armRule.Direction; this.Priority = armRule.Priority; this.Protocol = armRule.Protocol; this.SourcePortRange = armRule.SourcePortRange; this.SourceAddressPrefix = armRule.SourceAddressPrefix; }
public NetworkSecurityGroupRule(AzureContext azureContext, Arm.NetworkSecurityGroupRule armRule) { _AzureContext = azureContext; this.TargetName = armRule.Name; this.Access = armRule.Access; this.DestinationAddressPrefix = armRule.DestinationAddressPrefix; this.DestinationPortRange = armRule.DestinationPortRange; this.Direction = armRule.Direction; this.Priority = armRule.Priority; this.Protocol = armRule.Protocol; this.SourcePortRange = armRule.SourcePortRange; this.SourceAddressPrefix = armRule.SourceAddressPrefix; }