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