public UpdatePortRequest(string portId, bool? adminStateUp = null, string[] securityGroups = null, FixedIp[] fixedIps = null, AllowedAddressPair[] allowedAddressPairs = null) { this.Port = new Port() { AdminStateUp = adminStateUp, SecurityGroups = securityGroups, FixedIPs = fixedIps, AllowedAddressPairs = allowedAddressPairs }; }
public NewPort(string networkId, FixedIp[] fixedIps = null, Dictionary<string, string> allowedAddressPairs = null, string tenantId = null, string[] securityGroups = null, string status = null) { this.NetworkId = networkId; this.FixedIPs = fixedIps; this.AllowedAddressPairs = allowedAddressPairs; this.TenantId = tenantId; this.SecurityGroups = securityGroups; this.Status = status; }