internal PSNetworkSecurityGroupRule(Microsoft.Azure.Batch.NetworkSecurityGroupRule omObject) { if ((omObject == null)) { throw new System.ArgumentNullException("omObject"); } this.omObject = omObject; }
internal InboundNatPool(Models.InboundNATPool protocolObject) { this.BackendPort = protocolObject.BackendPort; this.FrontendPortRangeEnd = protocolObject.FrontendPortRangeEnd; this.FrontendPortRangeStart = protocolObject.FrontendPortRangeStart; this.Name = protocolObject.Name; this.NetworkSecurityGroupRules = NetworkSecurityGroupRule.ConvertFromProtocolCollectionReadOnly(protocolObject.NetworkSecurityGroupRules); this.Protocol = UtilitiesInternal.MapEnum <Models.InboundEndpointProtocol, Common.InboundEndpointProtocol>(protocolObject.Protocol); }
public PSNetworkSecurityGroupRule(int priority, Microsoft.Azure.Batch.Common.NetworkSecurityGroupRuleAccess access, string sourceAddressPrefix, System.Collections.Generic.IReadOnlyList <string> sourcePortRanges = null) { this.omObject = new Microsoft.Azure.Batch.NetworkSecurityGroupRule(priority, access, sourceAddressPrefix, sourcePortRanges); }
public PSNetworkSecurityGroupRule(int priority, Microsoft.Azure.Batch.Common.NetworkSecurityGroupRuleAccess access, string sourceAddressPrefix) { this.omObject = new Microsoft.Azure.Batch.NetworkSecurityGroupRule(priority, access, sourceAddressPrefix); }