diff --git a/README.md b/README.md index 310d1aaa08..9af00e3629 100644 --- a/README.md +++ b/README.md @@ -2,9 +2,9 @@ [![GoDoc](http://godoc.org/github.com/netbox-community/go-netbox?status.svg)](http://godoc.org/github.com/netbox-community/go-netbox) [![Build Status](https://github.com/netbox-community/go-netbox/workflows/main/badge.svg?branch=master)](https://github.com/netbox-community/go-netbox/actions) [![Report Card](https://goreportcard.com/badge/github.com/netbox-community/go-netbox)](https://goreportcard.com/report/github.com/netbox-community/go-netbox) -Package `netbox` provides an API 3.2 client for [netbox-community's Netbox](https://github.com/netbox-community/netbox) IPAM and DCIM service. +Package `netbox` provides an API client for [netbox-community's Netbox](https://github.com/netbox-community/netbox) IPAM and DCIM service. -This package assumes you are using Netbox 3.2, as the Netbox 1.0 API no longer exists. If you need support for previous Netbox versions, you can still import the corresponding release of the library. For example, run `go get github.com/netbox-community/go-netbox@netbox_v2.11` if you need compatibility with Netbox 2.11. +This package assumes you are using Netbox 3, as the Netbox 1.0 API no longer exists. If you need support for previous Netbox versions, you can still import the corresponding release of the library. For example, run `go get github.com/netbox-community/go-netbox@netbox_v2.11` if you need compatibility with Netbox 2.11. ## Using the client diff --git a/api/netbox_version b/api/netbox_version index 4d9d11cf50..4f5e69734c 100644 --- a/api/netbox_version +++ b/api/netbox_version @@ -1 +1 @@ -3.4.2 +3.4.5 diff --git a/api/openapi.json b/api/openapi.json index 093f75c1c5..73ef30562f 100644 --- a/api/openapi.json +++ b/api/openapi.json @@ -9,7 +9,7 @@ }, "version": "3.4" }, - "host": "127.0.0.1:8000", + "host": "localhost:8000", "schemes": [ "http" ], @@ -11968,6 +11968,20 @@ "required": false, "type": "string" }, + { + "name": "primary_ip4_id", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "primary_ip6_id", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, { "name": "id__n", "in": "query", @@ -12668,6 +12682,20 @@ "required": false, "type": "string" }, + { + "name": "primary_ip4_id__n", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "primary_ip6_id__n", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, { "name": "ordering", "in": "query", @@ -15672,6 +15700,20 @@ "required": false, "type": "string" }, + { + "name": "l2vpn_id", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "l2vpn", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, { "name": "id__n", "in": "query", @@ -16498,6 +16540,20 @@ "required": false, "type": "string" }, + { + "name": "l2vpn_id__n", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "l2vpn__n", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, { "name": "ordering", "in": "query", @@ -49560,6 +49616,20 @@ "required": false, "type": "number" }, + { + "name": "start_address", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "end_address", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, { "name": "contains", "in": "query", @@ -55641,6 +55711,20 @@ "required": false, "type": "string" }, + { + "name": "ipaddress_id", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "ipaddress", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, { "name": "port", "in": "query", @@ -55935,6 +56019,20 @@ "required": false, "type": "string" }, + { + "name": "ipaddress_id__n", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "ipaddress__n", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, { "name": "ordering", "in": "query", @@ -57363,6 +57461,20 @@ "required": false, "type": "string" }, + { + "name": "l2vpn_id", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "l2vpn", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, { "name": "id__n", "in": "query", @@ -57755,6 +57867,20 @@ "required": false, "type": "string" }, + { + "name": "l2vpn_id__n", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "l2vpn__n", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, { "name": "ordering", "in": "query", @@ -67938,6 +68064,20 @@ "required": false, "type": "string" }, + { + "name": "l2vpn_id", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "l2vpn", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, { "name": "id__n", "in": "query", @@ -68344,6 +68484,20 @@ "required": false, "type": "string" }, + { + "name": "l2vpn_id__n", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "l2vpn__n", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, { "name": "ordering", "in": "query", @@ -72848,6 +73002,11 @@ "title": "Cross-connect ID", "type": "string", "maxLength": 50 + }, + "description": { + "title": "Description", + "type": "string", + "maxLength": 200 } } }, @@ -76681,6 +76840,11 @@ "minimum": 0, "x-nullable": true }, + "description": { + "title": "Description", + "type": "string", + "maxLength": 200 + }, "comments": { "title": "Comments", "type": "string" @@ -76880,6 +77044,11 @@ "minimum": 0, "x-nullable": true }, + "description": { + "title": "Description", + "type": "string", + "maxLength": 200 + }, "comments": { "title": "Comments", "type": "string" @@ -77316,6 +77485,11 @@ "description": "Physical label", "type": "string", "maxLength": 64 + }, + "description": { + "title": "Description", + "type": "string", + "maxLength": 200 } } }, @@ -77782,7 +77956,10 @@ "Virtual", "Bridge", "Link Aggregation Group (LAG)", + "100BASE-FX (10/100ME FIBER)", + "100BASE-LFX (10/100ME FIBER)", "100BASE-TX (10/100ME)", + "100BASE-T1 (10/100ME Single Pair)", "1000BASE-T (1GE)", "2.5GBASE-T (2.5GE)", "5GBASE-T (5GE)", @@ -77807,6 +77984,8 @@ "QSFP56 (200GE)", "QSFP-DD (400GE)", "OSFP (400GE)", + "QSFP-DD (800GE)", + "OSFP (800GE)", "1000BASE-KX (1GE)", "10GBASE-KR (10GE)", "10GBASE-KX4 (10GE)", @@ -77886,7 +78065,10 @@ "virtual", "bridge", "lag", + "100base-fx", + "100base-lfx", "100base-tx", + "100base-t1", "1000base-t", "2.5gbase-t", "5gbase-t", @@ -77911,6 +78093,8 @@ "200gbase-x-qsfp56", "400gbase-x-qsfpdd", "400gbase-x-osfp", + "800gbase-x-qsfpdd", + "800gbase-x-osfp", "1000base-kx", "10gbase-kr", "10gbase-kx4", @@ -78124,7 +78308,10 @@ "virtual", "bridge", "lag", + "100base-fx", + "100base-lfx", "100base-tx", + "100base-t1", "1000base-t", "2.5gbase-t", "5gbase-t", @@ -78149,6 +78336,8 @@ "200gbase-x-qsfp56", "400gbase-x-qsfpdd", "400gbase-x-osfp", + "800gbase-x-qsfpdd", + "800gbase-x-osfp", "1000base-kx", "10gbase-kr", "10gbase-kx4", @@ -78647,7 +78836,10 @@ "Virtual", "Bridge", "Link Aggregation Group (LAG)", + "100BASE-FX (10/100ME FIBER)", + "100BASE-LFX (10/100ME FIBER)", "100BASE-TX (10/100ME)", + "100BASE-T1 (10/100ME Single Pair)", "1000BASE-T (1GE)", "2.5GBASE-T (2.5GE)", "5GBASE-T (5GE)", @@ -78672,6 +78864,8 @@ "QSFP56 (200GE)", "QSFP-DD (400GE)", "OSFP (400GE)", + "QSFP-DD (800GE)", + "OSFP (800GE)", "1000BASE-KX (1GE)", "10GBASE-KR (10GE)", "10GBASE-KX4 (10GE)", @@ -78751,7 +78945,10 @@ "virtual", "bridge", "lag", + "100base-fx", + "100base-lfx", "100base-tx", + "100base-t1", "1000base-t", "2.5gbase-t", "5gbase-t", @@ -78776,6 +78973,8 @@ "200gbase-x-qsfp56", "400gbase-x-qsfpdd", "400gbase-x-osfp", + "800gbase-x-qsfpdd", + "800gbase-x-osfp", "1000base-kx", "10gbase-kr", "10gbase-kx4", @@ -79644,7 +79843,10 @@ "virtual", "bridge", "lag", + "100base-fx", + "100base-lfx", "100base-tx", + "100base-t1", "1000base-t", "2.5gbase-t", "5gbase-t", @@ -79669,6 +79871,8 @@ "200gbase-x-qsfp56", "400gbase-x-qsfpdd", "400gbase-x-osfp", + "800gbase-x-qsfpdd", + "800gbase-x-osfp", "1000base-kx", "10gbase-kr", "10gbase-kx4", @@ -87566,6 +87770,11 @@ "offline" ] }, + "description": { + "title": "Description", + "type": "string", + "maxLength": 200 + }, "comments": { "title": "Comments", "type": "string" @@ -87674,6 +87883,11 @@ "offline" ] }, + "description": { + "title": "Description", + "type": "string", + "maxLength": 200 + }, "comments": { "title": "Comments", "type": "string" @@ -95514,6 +95728,11 @@ "minimum": 0, "x-nullable": true }, + "description": { + "title": "Description", + "type": "string", + "maxLength": 200 + }, "comments": { "title": "Comments", "type": "string" @@ -95662,6 +95881,11 @@ "minimum": 0, "x-nullable": true }, + "description": { + "title": "Description", + "type": "string", + "maxLength": 200 + }, "comments": { "title": "Comments", "type": "string" diff --git a/netbox/client/dcim/dcim_devices_list_parameters.go b/netbox/client/dcim/dcim_devices_list_parameters.go index fc40a684ab..b565a1b595 100644 --- a/netbox/client/dcim/dcim_devices_list_parameters.go +++ b/netbox/client/dcim/dcim_devices_list_parameters.go @@ -386,6 +386,18 @@ type DcimDevicesListParams struct { // PowerPorts. PowerPorts *string + // PrimaryIp4ID. + PrimaryIp4ID *string + + // PrimaryIp4IDn. + PrimaryIp4IDn *string + + // PrimaryIp6ID. + PrimaryIp6ID *string + + // PrimaryIp6IDn. + PrimaryIp6IDn *string + // Q. Q *string @@ -1710,6 +1722,50 @@ func (o *DcimDevicesListParams) SetPowerPorts(powerPorts *string) { o.PowerPorts = powerPorts } +// WithPrimaryIp4ID adds the primaryIp4ID to the dcim devices list params +func (o *DcimDevicesListParams) WithPrimaryIp4ID(primaryIp4ID *string) *DcimDevicesListParams { + o.SetPrimaryIp4ID(primaryIp4ID) + return o +} + +// SetPrimaryIp4ID adds the primaryIp4Id to the dcim devices list params +func (o *DcimDevicesListParams) SetPrimaryIp4ID(primaryIp4ID *string) { + o.PrimaryIp4ID = primaryIp4ID +} + +// WithPrimaryIp4IDn adds the primaryIp4IDn to the dcim devices list params +func (o *DcimDevicesListParams) WithPrimaryIp4IDn(primaryIp4IDn *string) *DcimDevicesListParams { + o.SetPrimaryIp4IDn(primaryIp4IDn) + return o +} + +// SetPrimaryIp4IDn adds the primaryIp4IdN to the dcim devices list params +func (o *DcimDevicesListParams) SetPrimaryIp4IDn(primaryIp4IDn *string) { + o.PrimaryIp4IDn = primaryIp4IDn +} + +// WithPrimaryIp6ID adds the primaryIp6ID to the dcim devices list params +func (o *DcimDevicesListParams) WithPrimaryIp6ID(primaryIp6ID *string) *DcimDevicesListParams { + o.SetPrimaryIp6ID(primaryIp6ID) + return o +} + +// SetPrimaryIp6ID adds the primaryIp6Id to the dcim devices list params +func (o *DcimDevicesListParams) SetPrimaryIp6ID(primaryIp6ID *string) { + o.PrimaryIp6ID = primaryIp6ID +} + +// WithPrimaryIp6IDn adds the primaryIp6IDn to the dcim devices list params +func (o *DcimDevicesListParams) WithPrimaryIp6IDn(primaryIp6IDn *string) *DcimDevicesListParams { + o.SetPrimaryIp6IDn(primaryIp6IDn) + return o +} + +// SetPrimaryIp6IDn adds the primaryIp6IdN to the dcim devices list params +func (o *DcimDevicesListParams) SetPrimaryIp6IDn(primaryIp6IDn *string) { + o.PrimaryIp6IDn = primaryIp6IDn +} + // WithQ adds the q to the dcim devices list params func (o *DcimDevicesListParams) WithQ(q *string) *DcimDevicesListParams { o.SetQ(q) @@ -4045,6 +4101,74 @@ func (o *DcimDevicesListParams) WriteToRequest(r runtime.ClientRequest, reg strf } } + if o.PrimaryIp4ID != nil { + + // query param primary_ip4_id + var qrPrimaryIp4ID string + + if o.PrimaryIp4ID != nil { + qrPrimaryIp4ID = *o.PrimaryIp4ID + } + qPrimaryIp4ID := qrPrimaryIp4ID + if qPrimaryIp4ID != "" { + + if err := r.SetQueryParam("primary_ip4_id", qPrimaryIp4ID); err != nil { + return err + } + } + } + + if o.PrimaryIp4IDn != nil { + + // query param primary_ip4_id__n + var qrPrimaryIp4IDn string + + if o.PrimaryIp4IDn != nil { + qrPrimaryIp4IDn = *o.PrimaryIp4IDn + } + qPrimaryIp4IDn := qrPrimaryIp4IDn + if qPrimaryIp4IDn != "" { + + if err := r.SetQueryParam("primary_ip4_id__n", qPrimaryIp4IDn); err != nil { + return err + } + } + } + + if o.PrimaryIp6ID != nil { + + // query param primary_ip6_id + var qrPrimaryIp6ID string + + if o.PrimaryIp6ID != nil { + qrPrimaryIp6ID = *o.PrimaryIp6ID + } + qPrimaryIp6ID := qrPrimaryIp6ID + if qPrimaryIp6ID != "" { + + if err := r.SetQueryParam("primary_ip6_id", qPrimaryIp6ID); err != nil { + return err + } + } + } + + if o.PrimaryIp6IDn != nil { + + // query param primary_ip6_id__n + var qrPrimaryIp6IDn string + + if o.PrimaryIp6IDn != nil { + qrPrimaryIp6IDn = *o.PrimaryIp6IDn + } + qPrimaryIp6IDn := qrPrimaryIp6IDn + if qPrimaryIp6IDn != "" { + + if err := r.SetQueryParam("primary_ip6_id__n", qPrimaryIp6IDn); err != nil { + return err + } + } + } + if o.Q != nil { // query param q diff --git a/netbox/client/dcim/dcim_interfaces_list_parameters.go b/netbox/client/dcim/dcim_interfaces_list_parameters.go index 63da2b7bff..f3742502c2 100644 --- a/netbox/client/dcim/dcim_interfaces_list_parameters.go +++ b/netbox/client/dcim/dcim_interfaces_list_parameters.go @@ -182,6 +182,18 @@ type DcimInterfacesListParams struct { // Kind. Kind *string + // L2vpn. + L2vpn *string + + // L2vpnn. + L2vpnn *string + + // L2vpnID. + L2vpnID *string + + // L2vpnIDn. + L2vpnIDn *string + // Label. Label *string @@ -1049,6 +1061,50 @@ func (o *DcimInterfacesListParams) SetKind(kind *string) { o.Kind = kind } +// WithL2vpn adds the l2vpn to the dcim interfaces list params +func (o *DcimInterfacesListParams) WithL2vpn(l2vpn *string) *DcimInterfacesListParams { + o.SetL2vpn(l2vpn) + return o +} + +// SetL2vpn adds the l2vpn to the dcim interfaces list params +func (o *DcimInterfacesListParams) SetL2vpn(l2vpn *string) { + o.L2vpn = l2vpn +} + +// WithL2vpnn adds the l2vpnn to the dcim interfaces list params +func (o *DcimInterfacesListParams) WithL2vpnn(l2vpnn *string) *DcimInterfacesListParams { + o.SetL2vpnn(l2vpnn) + return o +} + +// SetL2vpnn adds the l2vpnN to the dcim interfaces list params +func (o *DcimInterfacesListParams) SetL2vpnn(l2vpnn *string) { + o.L2vpnn = l2vpnn +} + +// WithL2vpnID adds the l2vpnID to the dcim interfaces list params +func (o *DcimInterfacesListParams) WithL2vpnID(l2vpnID *string) *DcimInterfacesListParams { + o.SetL2vpnID(l2vpnID) + return o +} + +// SetL2vpnID adds the l2vpnId to the dcim interfaces list params +func (o *DcimInterfacesListParams) SetL2vpnID(l2vpnID *string) { + o.L2vpnID = l2vpnID +} + +// WithL2vpnIDn adds the l2vpnIDn to the dcim interfaces list params +func (o *DcimInterfacesListParams) WithL2vpnIDn(l2vpnIDn *string) *DcimInterfacesListParams { + o.SetL2vpnIDn(l2vpnIDn) + return o +} + +// SetL2vpnIDn adds the l2vpnIdN to the dcim interfaces list params +func (o *DcimInterfacesListParams) SetL2vpnIDn(l2vpnIDn *string) { + o.L2vpnIDn = l2vpnIDn +} + // WithLabel adds the label to the dcim interfaces list params func (o *DcimInterfacesListParams) WithLabel(label *string) *DcimInterfacesListParams { o.SetLabel(label) @@ -3192,6 +3248,74 @@ func (o *DcimInterfacesListParams) WriteToRequest(r runtime.ClientRequest, reg s } } + if o.L2vpn != nil { + + // query param l2vpn + var qrL2vpn string + + if o.L2vpn != nil { + qrL2vpn = *o.L2vpn + } + qL2vpn := qrL2vpn + if qL2vpn != "" { + + if err := r.SetQueryParam("l2vpn", qL2vpn); err != nil { + return err + } + } + } + + if o.L2vpnn != nil { + + // query param l2vpn__n + var qrL2vpnn string + + if o.L2vpnn != nil { + qrL2vpnn = *o.L2vpnn + } + qL2vpnn := qrL2vpnn + if qL2vpnn != "" { + + if err := r.SetQueryParam("l2vpn__n", qL2vpnn); err != nil { + return err + } + } + } + + if o.L2vpnID != nil { + + // query param l2vpn_id + var qrL2vpnID string + + if o.L2vpnID != nil { + qrL2vpnID = *o.L2vpnID + } + qL2vpnID := qrL2vpnID + if qL2vpnID != "" { + + if err := r.SetQueryParam("l2vpn_id", qL2vpnID); err != nil { + return err + } + } + } + + if o.L2vpnIDn != nil { + + // query param l2vpn_id__n + var qrL2vpnIDn string + + if o.L2vpnIDn != nil { + qrL2vpnIDn = *o.L2vpnIDn + } + qL2vpnIDn := qrL2vpnIDn + if qL2vpnIDn != "" { + + if err := r.SetQueryParam("l2vpn_id__n", qL2vpnIDn); err != nil { + return err + } + } + } + if o.Label != nil { // query param label diff --git a/netbox/client/ipam/ipam_ip_ranges_list_parameters.go b/netbox/client/ipam/ipam_ip_ranges_list_parameters.go index 6e3b46613c..91e41e6166 100644 --- a/netbox/client/ipam/ipam_ip_ranges_list_parameters.go +++ b/netbox/client/ipam/ipam_ip_ranges_list_parameters.go @@ -131,6 +131,9 @@ type IpamIPRangesListParams struct { // DescriptionNisw. DescriptionNisw *string + // EndAddress. + EndAddress *string + // Family. Family *float64 @@ -203,6 +206,9 @@ type IpamIPRangesListParams struct { // RoleIDn. RoleIDn *string + // StartAddress. + StartAddress *string + // Status. Status *string @@ -502,6 +508,17 @@ func (o *IpamIPRangesListParams) SetDescriptionNisw(descriptionNisw *string) { o.DescriptionNisw = descriptionNisw } +// WithEndAddress adds the endAddress to the ipam ip ranges list params +func (o *IpamIPRangesListParams) WithEndAddress(endAddress *string) *IpamIPRangesListParams { + o.SetEndAddress(endAddress) + return o +} + +// SetEndAddress adds the endAddress to the ipam ip ranges list params +func (o *IpamIPRangesListParams) SetEndAddress(endAddress *string) { + o.EndAddress = endAddress +} + // WithFamily adds the family to the ipam ip ranges list params func (o *IpamIPRangesListParams) WithFamily(family *float64) *IpamIPRangesListParams { o.SetFamily(family) @@ -733,6 +750,17 @@ func (o *IpamIPRangesListParams) SetRoleIDn(roleIDn *string) { o.RoleIDn = roleIDn } +// WithStartAddress adds the startAddress to the ipam ip ranges list params +func (o *IpamIPRangesListParams) WithStartAddress(startAddress *string) *IpamIPRangesListParams { + o.SetStartAddress(startAddress) + return o +} + +// SetStartAddress adds the startAddress to the ipam ip ranges list params +func (o *IpamIPRangesListParams) SetStartAddress(startAddress *string) { + o.StartAddress = startAddress +} + // WithStatus adds the status to the ipam ip ranges list params func (o *IpamIPRangesListParams) WithStatus(status *string) *IpamIPRangesListParams { o.SetStatus(status) @@ -1223,6 +1251,23 @@ func (o *IpamIPRangesListParams) WriteToRequest(r runtime.ClientRequest, reg str } } + if o.EndAddress != nil { + + // query param end_address + var qrEndAddress string + + if o.EndAddress != nil { + qrEndAddress = *o.EndAddress + } + qEndAddress := qrEndAddress + if qEndAddress != "" { + + if err := r.SetQueryParam("end_address", qEndAddress); err != nil { + return err + } + } + } + if o.Family != nil { // query param family @@ -1580,6 +1625,23 @@ func (o *IpamIPRangesListParams) WriteToRequest(r runtime.ClientRequest, reg str } } + if o.StartAddress != nil { + + // query param start_address + var qrStartAddress string + + if o.StartAddress != nil { + qrStartAddress = *o.StartAddress + } + qStartAddress := qrStartAddress + if qStartAddress != "" { + + if err := r.SetQueryParam("start_address", qStartAddress); err != nil { + return err + } + } + } + if o.Status != nil { // query param status diff --git a/netbox/client/ipam/ipam_services_list_parameters.go b/netbox/client/ipam/ipam_services_list_parameters.go index 27d15873c4..8bcb9a8f22 100644 --- a/netbox/client/ipam/ipam_services_list_parameters.go +++ b/netbox/client/ipam/ipam_services_list_parameters.go @@ -158,6 +158,18 @@ type IpamServicesListParams struct { // IDn. IDn *string + // Ipaddress. + Ipaddress *string + + // Ipaddressn. + Ipaddressn *string + + // IpaddressID. + IpaddressID *string + + // IpaddressIDn. + IpaddressIDn *string + // LastUpdated. LastUpdated *string @@ -607,6 +619,50 @@ func (o *IpamServicesListParams) SetIDn(iDn *string) { o.IDn = iDn } +// WithIpaddress adds the ipaddress to the ipam services list params +func (o *IpamServicesListParams) WithIpaddress(ipaddress *string) *IpamServicesListParams { + o.SetIpaddress(ipaddress) + return o +} + +// SetIpaddress adds the ipaddress to the ipam services list params +func (o *IpamServicesListParams) SetIpaddress(ipaddress *string) { + o.Ipaddress = ipaddress +} + +// WithIpaddressn adds the ipaddressn to the ipam services list params +func (o *IpamServicesListParams) WithIpaddressn(ipaddressn *string) *IpamServicesListParams { + o.SetIpaddressn(ipaddressn) + return o +} + +// SetIpaddressn adds the ipaddressN to the ipam services list params +func (o *IpamServicesListParams) SetIpaddressn(ipaddressn *string) { + o.Ipaddressn = ipaddressn +} + +// WithIpaddressID adds the ipaddressID to the ipam services list params +func (o *IpamServicesListParams) WithIpaddressID(ipaddressID *string) *IpamServicesListParams { + o.SetIpaddressID(ipaddressID) + return o +} + +// SetIpaddressID adds the ipaddressId to the ipam services list params +func (o *IpamServicesListParams) SetIpaddressID(ipaddressID *string) { + o.IpaddressID = ipaddressID +} + +// WithIpaddressIDn adds the ipaddressIDn to the ipam services list params +func (o *IpamServicesListParams) WithIpaddressIDn(ipaddressIDn *string) *IpamServicesListParams { + o.SetIpaddressIDn(ipaddressIDn) + return o +} + +// SetIpaddressIDn adds the ipaddressIdN to the ipam services list params +func (o *IpamServicesListParams) SetIpaddressIDn(ipaddressIDn *string) { + o.IpaddressIDn = ipaddressIDn +} + // WithLastUpdated adds the lastUpdated to the ipam services list params func (o *IpamServicesListParams) WithLastUpdated(lastUpdated *string) *IpamServicesListParams { o.SetLastUpdated(lastUpdated) @@ -1404,6 +1460,74 @@ func (o *IpamServicesListParams) WriteToRequest(r runtime.ClientRequest, reg str } } + if o.Ipaddress != nil { + + // query param ipaddress + var qrIpaddress string + + if o.Ipaddress != nil { + qrIpaddress = *o.Ipaddress + } + qIpaddress := qrIpaddress + if qIpaddress != "" { + + if err := r.SetQueryParam("ipaddress", qIpaddress); err != nil { + return err + } + } + } + + if o.Ipaddressn != nil { + + // query param ipaddress__n + var qrIpaddressn string + + if o.Ipaddressn != nil { + qrIpaddressn = *o.Ipaddressn + } + qIpaddressn := qrIpaddressn + if qIpaddressn != "" { + + if err := r.SetQueryParam("ipaddress__n", qIpaddressn); err != nil { + return err + } + } + } + + if o.IpaddressID != nil { + + // query param ipaddress_id + var qrIpaddressID string + + if o.IpaddressID != nil { + qrIpaddressID = *o.IpaddressID + } + qIpaddressID := qrIpaddressID + if qIpaddressID != "" { + + if err := r.SetQueryParam("ipaddress_id", qIpaddressID); err != nil { + return err + } + } + } + + if o.IpaddressIDn != nil { + + // query param ipaddress_id__n + var qrIpaddressIDn string + + if o.IpaddressIDn != nil { + qrIpaddressIDn = *o.IpaddressIDn + } + qIpaddressIDn := qrIpaddressIDn + if qIpaddressIDn != "" { + + if err := r.SetQueryParam("ipaddress_id__n", qIpaddressIDn); err != nil { + return err + } + } + } + if o.LastUpdated != nil { // query param last_updated diff --git a/netbox/client/ipam/ipam_vlans_list_parameters.go b/netbox/client/ipam/ipam_vlans_list_parameters.go index 83c5a0c827..e8a612e4d2 100644 --- a/netbox/client/ipam/ipam_vlans_list_parameters.go +++ b/netbox/client/ipam/ipam_vlans_list_parameters.go @@ -164,6 +164,18 @@ type IpamVlansListParams struct { // IDn. IDn *string + // L2vpn. + L2vpn *string + + // L2vpnn. + L2vpnn *string + + // L2vpnID. + L2vpnID *string + + // L2vpnIDn. + L2vpnIDn *string + // LastUpdated. LastUpdated *string @@ -710,6 +722,50 @@ func (o *IpamVlansListParams) SetIDn(iDn *string) { o.IDn = iDn } +// WithL2vpn adds the l2vpn to the ipam vlans list params +func (o *IpamVlansListParams) WithL2vpn(l2vpn *string) *IpamVlansListParams { + o.SetL2vpn(l2vpn) + return o +} + +// SetL2vpn adds the l2vpn to the ipam vlans list params +func (o *IpamVlansListParams) SetL2vpn(l2vpn *string) { + o.L2vpn = l2vpn +} + +// WithL2vpnn adds the l2vpnn to the ipam vlans list params +func (o *IpamVlansListParams) WithL2vpnn(l2vpnn *string) *IpamVlansListParams { + o.SetL2vpnn(l2vpnn) + return o +} + +// SetL2vpnn adds the l2vpnN to the ipam vlans list params +func (o *IpamVlansListParams) SetL2vpnn(l2vpnn *string) { + o.L2vpnn = l2vpnn +} + +// WithL2vpnID adds the l2vpnID to the ipam vlans list params +func (o *IpamVlansListParams) WithL2vpnID(l2vpnID *string) *IpamVlansListParams { + o.SetL2vpnID(l2vpnID) + return o +} + +// SetL2vpnID adds the l2vpnId to the ipam vlans list params +func (o *IpamVlansListParams) SetL2vpnID(l2vpnID *string) { + o.L2vpnID = l2vpnID +} + +// WithL2vpnIDn adds the l2vpnIDn to the ipam vlans list params +func (o *IpamVlansListParams) WithL2vpnIDn(l2vpnIDn *string) *IpamVlansListParams { + o.SetL2vpnIDn(l2vpnIDn) + return o +} + +// SetL2vpnIDn adds the l2vpnIdN to the ipam vlans list params +func (o *IpamVlansListParams) SetL2vpnIDn(l2vpnIDn *string) { + o.L2vpnIDn = l2vpnIDn +} + // WithLastUpdated adds the lastUpdated to the ipam vlans list params func (o *IpamVlansListParams) WithLastUpdated(lastUpdated *string) *IpamVlansListParams { o.SetLastUpdated(lastUpdated) @@ -1816,6 +1872,74 @@ func (o *IpamVlansListParams) WriteToRequest(r runtime.ClientRequest, reg strfmt } } + if o.L2vpn != nil { + + // query param l2vpn + var qrL2vpn string + + if o.L2vpn != nil { + qrL2vpn = *o.L2vpn + } + qL2vpn := qrL2vpn + if qL2vpn != "" { + + if err := r.SetQueryParam("l2vpn", qL2vpn); err != nil { + return err + } + } + } + + if o.L2vpnn != nil { + + // query param l2vpn__n + var qrL2vpnn string + + if o.L2vpnn != nil { + qrL2vpnn = *o.L2vpnn + } + qL2vpnn := qrL2vpnn + if qL2vpnn != "" { + + if err := r.SetQueryParam("l2vpn__n", qL2vpnn); err != nil { + return err + } + } + } + + if o.L2vpnID != nil { + + // query param l2vpn_id + var qrL2vpnID string + + if o.L2vpnID != nil { + qrL2vpnID = *o.L2vpnID + } + qL2vpnID := qrL2vpnID + if qL2vpnID != "" { + + if err := r.SetQueryParam("l2vpn_id", qL2vpnID); err != nil { + return err + } + } + } + + if o.L2vpnIDn != nil { + + // query param l2vpn_id__n + var qrL2vpnIDn string + + if o.L2vpnIDn != nil { + qrL2vpnIDn = *o.L2vpnIDn + } + qL2vpnIDn := qrL2vpnIDn + if qL2vpnIDn != "" { + + if err := r.SetQueryParam("l2vpn_id__n", qL2vpnIDn); err != nil { + return err + } + } + } + if o.LastUpdated != nil { // query param last_updated diff --git a/netbox/client/net_box_api_client.go b/netbox/client/net_box_api_client.go index 7b3838a0eb..40f04c302b 100644 --- a/netbox/client/net_box_api_client.go +++ b/netbox/client/net_box_api_client.go @@ -42,7 +42,7 @@ var Default = NewHTTPClient(nil) const ( // DefaultHost is the default Host // found in Meta (info) section of spec file - DefaultHost string = "127.0.0.1:8000" + DefaultHost string = "localhost:8000" // DefaultBasePath is the default BasePath // found in Meta (info) section of spec file DefaultBasePath string = "/api" diff --git a/netbox/client/virtualization/virtualization_interfaces_list_parameters.go b/netbox/client/virtualization/virtualization_interfaces_list_parameters.go index a203412fa1..0a6b7672a6 100644 --- a/netbox/client/virtualization/virtualization_interfaces_list_parameters.go +++ b/netbox/client/virtualization/virtualization_interfaces_list_parameters.go @@ -167,6 +167,18 @@ type VirtualizationInterfacesListParams struct { // IDn. IDn *string + // L2vpn. + L2vpn *string + + // L2vpnn. + L2vpnn *string + + // L2vpnID. + L2vpnID *string + + // L2vpnIDn. + L2vpnIDn *string + // LastUpdated. LastUpdated *string @@ -706,6 +718,50 @@ func (o *VirtualizationInterfacesListParams) SetIDn(iDn *string) { o.IDn = iDn } +// WithL2vpn adds the l2vpn to the virtualization interfaces list params +func (o *VirtualizationInterfacesListParams) WithL2vpn(l2vpn *string) *VirtualizationInterfacesListParams { + o.SetL2vpn(l2vpn) + return o +} + +// SetL2vpn adds the l2vpn to the virtualization interfaces list params +func (o *VirtualizationInterfacesListParams) SetL2vpn(l2vpn *string) { + o.L2vpn = l2vpn +} + +// WithL2vpnn adds the l2vpnn to the virtualization interfaces list params +func (o *VirtualizationInterfacesListParams) WithL2vpnn(l2vpnn *string) *VirtualizationInterfacesListParams { + o.SetL2vpnn(l2vpnn) + return o +} + +// SetL2vpnn adds the l2vpnN to the virtualization interfaces list params +func (o *VirtualizationInterfacesListParams) SetL2vpnn(l2vpnn *string) { + o.L2vpnn = l2vpnn +} + +// WithL2vpnID adds the l2vpnID to the virtualization interfaces list params +func (o *VirtualizationInterfacesListParams) WithL2vpnID(l2vpnID *string) *VirtualizationInterfacesListParams { + o.SetL2vpnID(l2vpnID) + return o +} + +// SetL2vpnID adds the l2vpnId to the virtualization interfaces list params +func (o *VirtualizationInterfacesListParams) SetL2vpnID(l2vpnID *string) { + o.L2vpnID = l2vpnID +} + +// WithL2vpnIDn adds the l2vpnIDn to the virtualization interfaces list params +func (o *VirtualizationInterfacesListParams) WithL2vpnIDn(l2vpnIDn *string) *VirtualizationInterfacesListParams { + o.SetL2vpnIDn(l2vpnIDn) + return o +} + +// SetL2vpnIDn adds the l2vpnIdN to the virtualization interfaces list params +func (o *VirtualizationInterfacesListParams) SetL2vpnIDn(l2vpnIDn *string) { + o.L2vpnIDn = l2vpnIDn +} + // WithLastUpdated adds the lastUpdated to the virtualization interfaces list params func (o *VirtualizationInterfacesListParams) WithLastUpdated(lastUpdated *string) *VirtualizationInterfacesListParams { o.SetLastUpdated(lastUpdated) @@ -1763,6 +1819,74 @@ func (o *VirtualizationInterfacesListParams) WriteToRequest(r runtime.ClientRequ } } + if o.L2vpn != nil { + + // query param l2vpn + var qrL2vpn string + + if o.L2vpn != nil { + qrL2vpn = *o.L2vpn + } + qL2vpn := qrL2vpn + if qL2vpn != "" { + + if err := r.SetQueryParam("l2vpn", qL2vpn); err != nil { + return err + } + } + } + + if o.L2vpnn != nil { + + // query param l2vpn__n + var qrL2vpnn string + + if o.L2vpnn != nil { + qrL2vpnn = *o.L2vpnn + } + qL2vpnn := qrL2vpnn + if qL2vpnn != "" { + + if err := r.SetQueryParam("l2vpn__n", qL2vpnn); err != nil { + return err + } + } + } + + if o.L2vpnID != nil { + + // query param l2vpn_id + var qrL2vpnID string + + if o.L2vpnID != nil { + qrL2vpnID = *o.L2vpnID + } + qL2vpnID := qrL2vpnID + if qL2vpnID != "" { + + if err := r.SetQueryParam("l2vpn_id", qL2vpnID); err != nil { + return err + } + } + } + + if o.L2vpnIDn != nil { + + // query param l2vpn_id__n + var qrL2vpnIDn string + + if o.L2vpnIDn != nil { + qrL2vpnIDn = *o.L2vpnIDn + } + qL2vpnIDn := qrL2vpnIDn + if qL2vpnIDn != "" { + + if err := r.SetQueryParam("l2vpn_id__n", qL2vpnIDn); err != nil { + return err + } + } + } + if o.LastUpdated != nil { // query param last_updated diff --git a/netbox/models/circuit_circuit_termination.go b/netbox/models/circuit_circuit_termination.go index b205f8d1ad..61f86611b0 100644 --- a/netbox/models/circuit_circuit_termination.go +++ b/netbox/models/circuit_circuit_termination.go @@ -34,6 +34,10 @@ import ( // swagger:model CircuitCircuitTermination type CircuitCircuitTermination struct { + // Description + // Max Length: 200 + Description string `json:"description,omitempty"` + // Display // Read Only: true Display string `json:"display,omitempty"` @@ -76,6 +80,10 @@ type CircuitCircuitTermination struct { func (m *CircuitCircuitTermination) Validate(formats strfmt.Registry) error { var res []error + if err := m.validateDescription(formats); err != nil { + res = append(res, err) + } + if err := m.validatePortSpeed(formats); err != nil { res = append(res, err) } @@ -106,6 +114,18 @@ func (m *CircuitCircuitTermination) Validate(formats strfmt.Registry) error { return nil } +func (m *CircuitCircuitTermination) validateDescription(formats strfmt.Registry) error { + if swag.IsZero(m.Description) { // not required + return nil + } + + if err := validate.MaxLength("description", "body", m.Description, 200); err != nil { + return err + } + + return nil +} + func (m *CircuitCircuitTermination) validatePortSpeed(formats strfmt.Registry) error { if swag.IsZero(m.PortSpeed) { // not required return nil diff --git a/netbox/models/device_with_config_context.go b/netbox/models/device_with_config_context.go index 24dae0dc27..57e267cc23 100644 --- a/netbox/models/device_with_config_context.go +++ b/netbox/models/device_with_config_context.go @@ -63,6 +63,10 @@ type DeviceWithConfigContext struct { // Custom fields CustomFields interface{} `json:"custom_fields,omitempty"` + // Description + // Max Length: 200 + Description string `json:"description,omitempty"` + // device role // Required: true DeviceRole *NestedDeviceRole `json:"device_role"` @@ -175,6 +179,10 @@ func (m *DeviceWithConfigContext) Validate(formats strfmt.Registry) error { res = append(res, err) } + if err := m.validateDescription(formats); err != nil { + res = append(res, err) + } + if err := m.validateDeviceRole(formats); err != nil { res = append(res, err) } @@ -331,6 +339,18 @@ func (m *DeviceWithConfigContext) validateCreated(formats strfmt.Registry) error return nil } +func (m *DeviceWithConfigContext) validateDescription(formats strfmt.Registry) error { + if swag.IsZero(m.Description) { // not required + return nil + } + + if err := validate.MaxLength("description", "body", m.Description, 200); err != nil { + return err + } + + return nil +} + func (m *DeviceWithConfigContext) validateDeviceRole(formats strfmt.Registry) error { if err := validate.Required("device_role", "body", m.DeviceRole); err != nil { diff --git a/netbox/models/front_port_rear_port.go b/netbox/models/front_port_rear_port.go index 04852d1234..b45739bd05 100644 --- a/netbox/models/front_port_rear_port.go +++ b/netbox/models/front_port_rear_port.go @@ -34,6 +34,10 @@ import ( // swagger:model FrontPortRearPort type FrontPortRearPort struct { + // Description + // Max Length: 200 + Description string `json:"description,omitempty"` + // Display // Read Only: true Display string `json:"display,omitempty"` @@ -64,6 +68,10 @@ type FrontPortRearPort struct { func (m *FrontPortRearPort) Validate(formats strfmt.Registry) error { var res []error + if err := m.validateDescription(formats); err != nil { + res = append(res, err) + } + if err := m.validateLabel(formats); err != nil { res = append(res, err) } @@ -82,6 +90,18 @@ func (m *FrontPortRearPort) Validate(formats strfmt.Registry) error { return nil } +func (m *FrontPortRearPort) validateDescription(formats strfmt.Registry) error { + if swag.IsZero(m.Description) { // not required + return nil + } + + if err := validate.MaxLength("description", "body", m.Description, 200); err != nil { + return err + } + + return nil +} + func (m *FrontPortRearPort) validateLabel(formats strfmt.Registry) error { if swag.IsZero(m.Label) { // not required return nil diff --git a/netbox/models/interface.go b/netbox/models/interface.go index 7e2fbbf99b..e851e2a0d2 100644 --- a/netbox/models/interface.go +++ b/netbox/models/interface.go @@ -3671,12 +3671,12 @@ type InterfaceType struct { // label // Required: true - // Enum: [Virtual Bridge Link Aggregation Group (LAG) 100BASE-TX (10/100ME) 1000BASE-T (1GE) 2.5GBASE-T (2.5GE) 5GBASE-T (5GE) 10GBASE-T (10GE) 10GBASE-CX4 (10GE) GBIC (1GE) SFP (1GE) SFP+ (10GE) XFP (10GE) XENPAK (10GE) X2 (10GE) SFP28 (25GE) SFP56 (50GE) QSFP+ (40GE) QSFP28 (50GE) CFP (100GE) CFP2 (100GE) CFP2 (200GE) CFP4 (100GE) Cisco CPAK (100GE) QSFP28 (100GE) QSFP56 (200GE) QSFP-DD (400GE) OSFP (400GE) 1000BASE-KX (1GE) 10GBASE-KR (10GE) 10GBASE-KX4 (10GE) 25GBASE-KR (25GE) 40GBASE-KR4 (40GE) 50GBASE-KR (50GE) 100GBASE-KP4 (100GE) 100GBASE-KR2 (100GE) 100GBASE-KR4 (100GE) IEEE 802.11a IEEE 802.11b/g IEEE 802.11n IEEE 802.11ac IEEE 802.11ad IEEE 802.11ax IEEE 802.11ay IEEE 802.15.1 (Bluetooth) Other (Wireless) GSM CDMA LTE OC-3/STM-1 OC-12/STM-4 OC-48/STM-16 OC-192/STM-64 OC-768/STM-256 OC-1920/STM-640 OC-3840/STM-1234 SFP (1GFC) SFP (2GFC) SFP (4GFC) SFP+ (8GFC) SFP+ (16GFC) SFP28 (32GFC) QSFP+ (64GFC) QSFP28 (128GFC) SDR (2 Gbps) DDR (4 Gbps) QDR (8 Gbps) FDR10 (10 Gbps) FDR (13.5 Gbps) EDR (25 Gbps) HDR (50 Gbps) NDR (100 Gbps) XDR (250 Gbps) T1 (1.544 Mbps) E1 (2.048 Mbps) T3 (45 Mbps) E3 (34 Mbps) xDSL DOCSIS GPON (2.5 Gbps / 1.25 Gps) XG-PON (10 Gbps / 2.5 Gbps) XGS-PON (10 Gbps) NG-PON2 (TWDM-PON) (4x10 Gbps) EPON (1 Gbps) 10G-EPON (10 Gbps) Cisco StackWise Cisco StackWise Plus Cisco FlexStack Cisco FlexStack Plus Cisco StackWise-80 Cisco StackWise-160 Cisco StackWise-320 Cisco StackWise-480 Juniper VCP Extreme SummitStack Extreme SummitStack-128 Extreme SummitStack-256 Extreme SummitStack-512 Other] + // Enum: [Virtual Bridge Link Aggregation Group (LAG) 100BASE-FX (10/100ME FIBER) 100BASE-LFX (10/100ME FIBER) 100BASE-TX (10/100ME) 100BASE-T1 (10/100ME Single Pair) 1000BASE-T (1GE) 2.5GBASE-T (2.5GE) 5GBASE-T (5GE) 10GBASE-T (10GE) 10GBASE-CX4 (10GE) GBIC (1GE) SFP (1GE) SFP+ (10GE) XFP (10GE) XENPAK (10GE) X2 (10GE) SFP28 (25GE) SFP56 (50GE) QSFP+ (40GE) QSFP28 (50GE) CFP (100GE) CFP2 (100GE) CFP2 (200GE) CFP4 (100GE) Cisco CPAK (100GE) QSFP28 (100GE) QSFP56 (200GE) QSFP-DD (400GE) OSFP (400GE) QSFP-DD (800GE) OSFP (800GE) 1000BASE-KX (1GE) 10GBASE-KR (10GE) 10GBASE-KX4 (10GE) 25GBASE-KR (25GE) 40GBASE-KR4 (40GE) 50GBASE-KR (50GE) 100GBASE-KP4 (100GE) 100GBASE-KR2 (100GE) 100GBASE-KR4 (100GE) IEEE 802.11a IEEE 802.11b/g IEEE 802.11n IEEE 802.11ac IEEE 802.11ad IEEE 802.11ax IEEE 802.11ay IEEE 802.15.1 (Bluetooth) Other (Wireless) GSM CDMA LTE OC-3/STM-1 OC-12/STM-4 OC-48/STM-16 OC-192/STM-64 OC-768/STM-256 OC-1920/STM-640 OC-3840/STM-1234 SFP (1GFC) SFP (2GFC) SFP (4GFC) SFP+ (8GFC) SFP+ (16GFC) SFP28 (32GFC) QSFP+ (64GFC) QSFP28 (128GFC) SDR (2 Gbps) DDR (4 Gbps) QDR (8 Gbps) FDR10 (10 Gbps) FDR (13.5 Gbps) EDR (25 Gbps) HDR (50 Gbps) NDR (100 Gbps) XDR (250 Gbps) T1 (1.544 Mbps) E1 (2.048 Mbps) T3 (45 Mbps) E3 (34 Mbps) xDSL DOCSIS GPON (2.5 Gbps / 1.25 Gps) XG-PON (10 Gbps / 2.5 Gbps) XGS-PON (10 Gbps) NG-PON2 (TWDM-PON) (4x10 Gbps) EPON (1 Gbps) 10G-EPON (10 Gbps) Cisco StackWise Cisco StackWise Plus Cisco FlexStack Cisco FlexStack Plus Cisco StackWise-80 Cisco StackWise-160 Cisco StackWise-320 Cisco StackWise-480 Juniper VCP Extreme SummitStack Extreme SummitStack-128 Extreme SummitStack-256 Extreme SummitStack-512 Other] Label *string `json:"label"` // value // Required: true - // Enum: [virtual bridge lag 100base-tx 1000base-t 2.5gbase-t 5gbase-t 10gbase-t 10gbase-cx4 1000base-x-gbic 1000base-x-sfp 10gbase-x-sfpp 10gbase-x-xfp 10gbase-x-xenpak 10gbase-x-x2 25gbase-x-sfp28 50gbase-x-sfp56 40gbase-x-qsfpp 50gbase-x-sfp28 100gbase-x-cfp 100gbase-x-cfp2 200gbase-x-cfp2 100gbase-x-cfp4 100gbase-x-cpak 100gbase-x-qsfp28 200gbase-x-qsfp56 400gbase-x-qsfpdd 400gbase-x-osfp 1000base-kx 10gbase-kr 10gbase-kx4 25gbase-kr 40gbase-kr4 50gbase-kr 100gbase-kp4 100gbase-kr2 100gbase-kr4 ieee802.11a ieee802.11g ieee802.11n ieee802.11ac ieee802.11ad ieee802.11ax ieee802.11ay ieee802.15.1 other-wireless gsm cdma lte sonet-oc3 sonet-oc12 sonet-oc48 sonet-oc192 sonet-oc768 sonet-oc1920 sonet-oc3840 1gfc-sfp 2gfc-sfp 4gfc-sfp 8gfc-sfpp 16gfc-sfpp 32gfc-sfp28 64gfc-qsfpp 128gfc-qsfp28 infiniband-sdr infiniband-ddr infiniband-qdr infiniband-fdr10 infiniband-fdr infiniband-edr infiniband-hdr infiniband-ndr infiniband-xdr t1 e1 t3 e3 xdsl docsis gpon xg-pon xgs-pon ng-pon2 epon 10g-epon cisco-stackwise cisco-stackwise-plus cisco-flexstack cisco-flexstack-plus cisco-stackwise-80 cisco-stackwise-160 cisco-stackwise-320 cisco-stackwise-480 juniper-vcp extreme-summitstack extreme-summitstack-128 extreme-summitstack-256 extreme-summitstack-512 other] + // Enum: [virtual bridge lag 100base-fx 100base-lfx 100base-tx 100base-t1 1000base-t 2.5gbase-t 5gbase-t 10gbase-t 10gbase-cx4 1000base-x-gbic 1000base-x-sfp 10gbase-x-sfpp 10gbase-x-xfp 10gbase-x-xenpak 10gbase-x-x2 25gbase-x-sfp28 50gbase-x-sfp56 40gbase-x-qsfpp 50gbase-x-sfp28 100gbase-x-cfp 100gbase-x-cfp2 200gbase-x-cfp2 100gbase-x-cfp4 100gbase-x-cpak 100gbase-x-qsfp28 200gbase-x-qsfp56 400gbase-x-qsfpdd 400gbase-x-osfp 800gbase-x-qsfpdd 800gbase-x-osfp 1000base-kx 10gbase-kr 10gbase-kx4 25gbase-kr 40gbase-kr4 50gbase-kr 100gbase-kp4 100gbase-kr2 100gbase-kr4 ieee802.11a ieee802.11g ieee802.11n ieee802.11ac ieee802.11ad ieee802.11ax ieee802.11ay ieee802.15.1 other-wireless gsm cdma lte sonet-oc3 sonet-oc12 sonet-oc48 sonet-oc192 sonet-oc768 sonet-oc1920 sonet-oc3840 1gfc-sfp 2gfc-sfp 4gfc-sfp 8gfc-sfpp 16gfc-sfpp 32gfc-sfp28 64gfc-qsfpp 128gfc-qsfp28 infiniband-sdr infiniband-ddr infiniband-qdr infiniband-fdr10 infiniband-fdr infiniband-edr infiniband-hdr infiniband-ndr infiniband-xdr t1 e1 t3 e3 xdsl docsis gpon xg-pon xgs-pon ng-pon2 epon 10g-epon cisco-stackwise cisco-stackwise-plus cisco-flexstack cisco-flexstack-plus cisco-stackwise-80 cisco-stackwise-160 cisco-stackwise-320 cisco-stackwise-480 juniper-vcp extreme-summitstack extreme-summitstack-128 extreme-summitstack-256 extreme-summitstack-512 other] Value *string `json:"value"` } @@ -3702,7 +3702,7 @@ var interfaceTypeTypeLabelPropEnum []interface{} func init() { var res []string - if err := json.Unmarshal([]byte(`["Virtual","Bridge","Link Aggregation Group (LAG)","100BASE-TX (10/100ME)","1000BASE-T (1GE)","2.5GBASE-T (2.5GE)","5GBASE-T (5GE)","10GBASE-T (10GE)","10GBASE-CX4 (10GE)","GBIC (1GE)","SFP (1GE)","SFP+ (10GE)","XFP (10GE)","XENPAK (10GE)","X2 (10GE)","SFP28 (25GE)","SFP56 (50GE)","QSFP+ (40GE)","QSFP28 (50GE)","CFP (100GE)","CFP2 (100GE)","CFP2 (200GE)","CFP4 (100GE)","Cisco CPAK (100GE)","QSFP28 (100GE)","QSFP56 (200GE)","QSFP-DD (400GE)","OSFP (400GE)","1000BASE-KX (1GE)","10GBASE-KR (10GE)","10GBASE-KX4 (10GE)","25GBASE-KR (25GE)","40GBASE-KR4 (40GE)","50GBASE-KR (50GE)","100GBASE-KP4 (100GE)","100GBASE-KR2 (100GE)","100GBASE-KR4 (100GE)","IEEE 802.11a","IEEE 802.11b/g","IEEE 802.11n","IEEE 802.11ac","IEEE 802.11ad","IEEE 802.11ax","IEEE 802.11ay","IEEE 802.15.1 (Bluetooth)","Other (Wireless)","GSM","CDMA","LTE","OC-3/STM-1","OC-12/STM-4","OC-48/STM-16","OC-192/STM-64","OC-768/STM-256","OC-1920/STM-640","OC-3840/STM-1234","SFP (1GFC)","SFP (2GFC)","SFP (4GFC)","SFP+ (8GFC)","SFP+ (16GFC)","SFP28 (32GFC)","QSFP+ (64GFC)","QSFP28 (128GFC)","SDR (2 Gbps)","DDR (4 Gbps)","QDR (8 Gbps)","FDR10 (10 Gbps)","FDR (13.5 Gbps)","EDR (25 Gbps)","HDR (50 Gbps)","NDR (100 Gbps)","XDR (250 Gbps)","T1 (1.544 Mbps)","E1 (2.048 Mbps)","T3 (45 Mbps)","E3 (34 Mbps)","xDSL","DOCSIS","GPON (2.5 Gbps / 1.25 Gps)","XG-PON (10 Gbps / 2.5 Gbps)","XGS-PON (10 Gbps)","NG-PON2 (TWDM-PON) (4x10 Gbps)","EPON (1 Gbps)","10G-EPON (10 Gbps)","Cisco StackWise","Cisco StackWise Plus","Cisco FlexStack","Cisco FlexStack Plus","Cisco StackWise-80","Cisco StackWise-160","Cisco StackWise-320","Cisco StackWise-480","Juniper VCP","Extreme SummitStack","Extreme SummitStack-128","Extreme SummitStack-256","Extreme SummitStack-512","Other"]`), &res); err != nil { + if err := json.Unmarshal([]byte(`["Virtual","Bridge","Link Aggregation Group (LAG)","100BASE-FX (10/100ME FIBER)","100BASE-LFX (10/100ME FIBER)","100BASE-TX (10/100ME)","100BASE-T1 (10/100ME Single Pair)","1000BASE-T (1GE)","2.5GBASE-T (2.5GE)","5GBASE-T (5GE)","10GBASE-T (10GE)","10GBASE-CX4 (10GE)","GBIC (1GE)","SFP (1GE)","SFP+ (10GE)","XFP (10GE)","XENPAK (10GE)","X2 (10GE)","SFP28 (25GE)","SFP56 (50GE)","QSFP+ (40GE)","QSFP28 (50GE)","CFP (100GE)","CFP2 (100GE)","CFP2 (200GE)","CFP4 (100GE)","Cisco CPAK (100GE)","QSFP28 (100GE)","QSFP56 (200GE)","QSFP-DD (400GE)","OSFP (400GE)","QSFP-DD (800GE)","OSFP (800GE)","1000BASE-KX (1GE)","10GBASE-KR (10GE)","10GBASE-KX4 (10GE)","25GBASE-KR (25GE)","40GBASE-KR4 (40GE)","50GBASE-KR (50GE)","100GBASE-KP4 (100GE)","100GBASE-KR2 (100GE)","100GBASE-KR4 (100GE)","IEEE 802.11a","IEEE 802.11b/g","IEEE 802.11n","IEEE 802.11ac","IEEE 802.11ad","IEEE 802.11ax","IEEE 802.11ay","IEEE 802.15.1 (Bluetooth)","Other (Wireless)","GSM","CDMA","LTE","OC-3/STM-1","OC-12/STM-4","OC-48/STM-16","OC-192/STM-64","OC-768/STM-256","OC-1920/STM-640","OC-3840/STM-1234","SFP (1GFC)","SFP (2GFC)","SFP (4GFC)","SFP+ (8GFC)","SFP+ (16GFC)","SFP28 (32GFC)","QSFP+ (64GFC)","QSFP28 (128GFC)","SDR (2 Gbps)","DDR (4 Gbps)","QDR (8 Gbps)","FDR10 (10 Gbps)","FDR (13.5 Gbps)","EDR (25 Gbps)","HDR (50 Gbps)","NDR (100 Gbps)","XDR (250 Gbps)","T1 (1.544 Mbps)","E1 (2.048 Mbps)","T3 (45 Mbps)","E3 (34 Mbps)","xDSL","DOCSIS","GPON (2.5 Gbps / 1.25 Gps)","XG-PON (10 Gbps / 2.5 Gbps)","XGS-PON (10 Gbps)","NG-PON2 (TWDM-PON) (4x10 Gbps)","EPON (1 Gbps)","10G-EPON (10 Gbps)","Cisco StackWise","Cisco StackWise Plus","Cisco FlexStack","Cisco FlexStack Plus","Cisco StackWise-80","Cisco StackWise-160","Cisco StackWise-320","Cisco StackWise-480","Juniper VCP","Extreme SummitStack","Extreme SummitStack-128","Extreme SummitStack-256","Extreme SummitStack-512","Other"]`), &res); err != nil { panic(err) } for _, v := range res { @@ -3721,9 +3721,18 @@ const ( // InterfaceTypeLabelLinkAggregationGroupLAG captures enum value "Link Aggregation Group (LAG)" InterfaceTypeLabelLinkAggregationGroupLAG string = "Link Aggregation Group (LAG)" + // InterfaceTypeLabelNr100BASEDashFX10100MEFIBER captures enum value "100BASE-FX (10/100ME FIBER)" + InterfaceTypeLabelNr100BASEDashFX10100MEFIBER string = "100BASE-FX (10/100ME FIBER)" + + // InterfaceTypeLabelNr100BASEDashLFX10100MEFIBER captures enum value "100BASE-LFX (10/100ME FIBER)" + InterfaceTypeLabelNr100BASEDashLFX10100MEFIBER string = "100BASE-LFX (10/100ME FIBER)" + // InterfaceTypeLabelNr100BASEDashTX10100ME captures enum value "100BASE-TX (10/100ME)" InterfaceTypeLabelNr100BASEDashTX10100ME string = "100BASE-TX (10/100ME)" + // InterfaceTypeLabelNr100BASEDashT110100MESinglePair captures enum value "100BASE-T1 (10/100ME Single Pair)" + InterfaceTypeLabelNr100BASEDashT110100MESinglePair string = "100BASE-T1 (10/100ME Single Pair)" + // InterfaceTypeLabelNr1000BASEDashT1GE captures enum value "1000BASE-T (1GE)" InterfaceTypeLabelNr1000BASEDashT1GE string = "1000BASE-T (1GE)" @@ -3796,6 +3805,12 @@ const ( // InterfaceTypeLabelOSFP400GE captures enum value "OSFP (400GE)" InterfaceTypeLabelOSFP400GE string = "OSFP (400GE)" + // InterfaceTypeLabelQSFPDashDD800GE captures enum value "QSFP-DD (800GE)" + InterfaceTypeLabelQSFPDashDD800GE string = "QSFP-DD (800GE)" + + // InterfaceTypeLabelOSFP800GE captures enum value "OSFP (800GE)" + InterfaceTypeLabelOSFP800GE string = "OSFP (800GE)" + // InterfaceTypeLabelNr1000BASEDashKX1GE captures enum value "1000BASE-KX (1GE)" InterfaceTypeLabelNr1000BASEDashKX1GE string = "1000BASE-KX (1GE)" @@ -4036,7 +4051,7 @@ var interfaceTypeTypeValuePropEnum []interface{} func init() { var res []string - if err := json.Unmarshal([]byte(`["virtual","bridge","lag","100base-tx","1000base-t","2.5gbase-t","5gbase-t","10gbase-t","10gbase-cx4","1000base-x-gbic","1000base-x-sfp","10gbase-x-sfpp","10gbase-x-xfp","10gbase-x-xenpak","10gbase-x-x2","25gbase-x-sfp28","50gbase-x-sfp56","40gbase-x-qsfpp","50gbase-x-sfp28","100gbase-x-cfp","100gbase-x-cfp2","200gbase-x-cfp2","100gbase-x-cfp4","100gbase-x-cpak","100gbase-x-qsfp28","200gbase-x-qsfp56","400gbase-x-qsfpdd","400gbase-x-osfp","1000base-kx","10gbase-kr","10gbase-kx4","25gbase-kr","40gbase-kr4","50gbase-kr","100gbase-kp4","100gbase-kr2","100gbase-kr4","ieee802.11a","ieee802.11g","ieee802.11n","ieee802.11ac","ieee802.11ad","ieee802.11ax","ieee802.11ay","ieee802.15.1","other-wireless","gsm","cdma","lte","sonet-oc3","sonet-oc12","sonet-oc48","sonet-oc192","sonet-oc768","sonet-oc1920","sonet-oc3840","1gfc-sfp","2gfc-sfp","4gfc-sfp","8gfc-sfpp","16gfc-sfpp","32gfc-sfp28","64gfc-qsfpp","128gfc-qsfp28","infiniband-sdr","infiniband-ddr","infiniband-qdr","infiniband-fdr10","infiniband-fdr","infiniband-edr","infiniband-hdr","infiniband-ndr","infiniband-xdr","t1","e1","t3","e3","xdsl","docsis","gpon","xg-pon","xgs-pon","ng-pon2","epon","10g-epon","cisco-stackwise","cisco-stackwise-plus","cisco-flexstack","cisco-flexstack-plus","cisco-stackwise-80","cisco-stackwise-160","cisco-stackwise-320","cisco-stackwise-480","juniper-vcp","extreme-summitstack","extreme-summitstack-128","extreme-summitstack-256","extreme-summitstack-512","other"]`), &res); err != nil { + if err := json.Unmarshal([]byte(`["virtual","bridge","lag","100base-fx","100base-lfx","100base-tx","100base-t1","1000base-t","2.5gbase-t","5gbase-t","10gbase-t","10gbase-cx4","1000base-x-gbic","1000base-x-sfp","10gbase-x-sfpp","10gbase-x-xfp","10gbase-x-xenpak","10gbase-x-x2","25gbase-x-sfp28","50gbase-x-sfp56","40gbase-x-qsfpp","50gbase-x-sfp28","100gbase-x-cfp","100gbase-x-cfp2","200gbase-x-cfp2","100gbase-x-cfp4","100gbase-x-cpak","100gbase-x-qsfp28","200gbase-x-qsfp56","400gbase-x-qsfpdd","400gbase-x-osfp","800gbase-x-qsfpdd","800gbase-x-osfp","1000base-kx","10gbase-kr","10gbase-kx4","25gbase-kr","40gbase-kr4","50gbase-kr","100gbase-kp4","100gbase-kr2","100gbase-kr4","ieee802.11a","ieee802.11g","ieee802.11n","ieee802.11ac","ieee802.11ad","ieee802.11ax","ieee802.11ay","ieee802.15.1","other-wireless","gsm","cdma","lte","sonet-oc3","sonet-oc12","sonet-oc48","sonet-oc192","sonet-oc768","sonet-oc1920","sonet-oc3840","1gfc-sfp","2gfc-sfp","4gfc-sfp","8gfc-sfpp","16gfc-sfpp","32gfc-sfp28","64gfc-qsfpp","128gfc-qsfp28","infiniband-sdr","infiniband-ddr","infiniband-qdr","infiniband-fdr10","infiniband-fdr","infiniband-edr","infiniband-hdr","infiniband-ndr","infiniband-xdr","t1","e1","t3","e3","xdsl","docsis","gpon","xg-pon","xgs-pon","ng-pon2","epon","10g-epon","cisco-stackwise","cisco-stackwise-plus","cisco-flexstack","cisco-flexstack-plus","cisco-stackwise-80","cisco-stackwise-160","cisco-stackwise-320","cisco-stackwise-480","juniper-vcp","extreme-summitstack","extreme-summitstack-128","extreme-summitstack-256","extreme-summitstack-512","other"]`), &res); err != nil { panic(err) } for _, v := range res { @@ -4055,9 +4070,18 @@ const ( // InterfaceTypeValueLag captures enum value "lag" InterfaceTypeValueLag string = "lag" + // InterfaceTypeValueNr100baseDashFx captures enum value "100base-fx" + InterfaceTypeValueNr100baseDashFx string = "100base-fx" + + // InterfaceTypeValueNr100baseDashLfx captures enum value "100base-lfx" + InterfaceTypeValueNr100baseDashLfx string = "100base-lfx" + // InterfaceTypeValueNr100baseDashTx captures enum value "100base-tx" InterfaceTypeValueNr100baseDashTx string = "100base-tx" + // InterfaceTypeValueNr100baseDashT1 captures enum value "100base-t1" + InterfaceTypeValueNr100baseDashT1 string = "100base-t1" + // InterfaceTypeValueNr1000baseDasht captures enum value "1000base-t" InterfaceTypeValueNr1000baseDasht string = "1000base-t" @@ -4130,6 +4154,12 @@ const ( // InterfaceTypeValueNr400gbaseDashxDashOsfp captures enum value "400gbase-x-osfp" InterfaceTypeValueNr400gbaseDashxDashOsfp string = "400gbase-x-osfp" + // InterfaceTypeValueNr800gbaseDashxDashQsfpdd captures enum value "800gbase-x-qsfpdd" + InterfaceTypeValueNr800gbaseDashxDashQsfpdd string = "800gbase-x-qsfpdd" + + // InterfaceTypeValueNr800gbaseDashxDashOsfp captures enum value "800gbase-x-osfp" + InterfaceTypeValueNr800gbaseDashxDashOsfp string = "800gbase-x-osfp" + // InterfaceTypeValueNr1000baseDashKx captures enum value "1000base-kx" InterfaceTypeValueNr1000baseDashKx string = "1000base-kx" diff --git a/netbox/models/interface_template.go b/netbox/models/interface_template.go index 6d6d76fb3b..6aea5c8a55 100644 --- a/netbox/models/interface_template.go +++ b/netbox/models/interface_template.go @@ -847,12 +847,12 @@ type InterfaceTemplateType struct { // label // Required: true - // Enum: [Virtual Bridge Link Aggregation Group (LAG) 100BASE-TX (10/100ME) 1000BASE-T (1GE) 2.5GBASE-T (2.5GE) 5GBASE-T (5GE) 10GBASE-T (10GE) 10GBASE-CX4 (10GE) GBIC (1GE) SFP (1GE) SFP+ (10GE) XFP (10GE) XENPAK (10GE) X2 (10GE) SFP28 (25GE) SFP56 (50GE) QSFP+ (40GE) QSFP28 (50GE) CFP (100GE) CFP2 (100GE) CFP2 (200GE) CFP4 (100GE) Cisco CPAK (100GE) QSFP28 (100GE) QSFP56 (200GE) QSFP-DD (400GE) OSFP (400GE) 1000BASE-KX (1GE) 10GBASE-KR (10GE) 10GBASE-KX4 (10GE) 25GBASE-KR (25GE) 40GBASE-KR4 (40GE) 50GBASE-KR (50GE) 100GBASE-KP4 (100GE) 100GBASE-KR2 (100GE) 100GBASE-KR4 (100GE) IEEE 802.11a IEEE 802.11b/g IEEE 802.11n IEEE 802.11ac IEEE 802.11ad IEEE 802.11ax IEEE 802.11ay IEEE 802.15.1 (Bluetooth) Other (Wireless) GSM CDMA LTE OC-3/STM-1 OC-12/STM-4 OC-48/STM-16 OC-192/STM-64 OC-768/STM-256 OC-1920/STM-640 OC-3840/STM-1234 SFP (1GFC) SFP (2GFC) SFP (4GFC) SFP+ (8GFC) SFP+ (16GFC) SFP28 (32GFC) QSFP+ (64GFC) QSFP28 (128GFC) SDR (2 Gbps) DDR (4 Gbps) QDR (8 Gbps) FDR10 (10 Gbps) FDR (13.5 Gbps) EDR (25 Gbps) HDR (50 Gbps) NDR (100 Gbps) XDR (250 Gbps) T1 (1.544 Mbps) E1 (2.048 Mbps) T3 (45 Mbps) E3 (34 Mbps) xDSL DOCSIS GPON (2.5 Gbps / 1.25 Gps) XG-PON (10 Gbps / 2.5 Gbps) XGS-PON (10 Gbps) NG-PON2 (TWDM-PON) (4x10 Gbps) EPON (1 Gbps) 10G-EPON (10 Gbps) Cisco StackWise Cisco StackWise Plus Cisco FlexStack Cisco FlexStack Plus Cisco StackWise-80 Cisco StackWise-160 Cisco StackWise-320 Cisco StackWise-480 Juniper VCP Extreme SummitStack Extreme SummitStack-128 Extreme SummitStack-256 Extreme SummitStack-512 Other] + // Enum: [Virtual Bridge Link Aggregation Group (LAG) 100BASE-FX (10/100ME FIBER) 100BASE-LFX (10/100ME FIBER) 100BASE-TX (10/100ME) 100BASE-T1 (10/100ME Single Pair) 1000BASE-T (1GE) 2.5GBASE-T (2.5GE) 5GBASE-T (5GE) 10GBASE-T (10GE) 10GBASE-CX4 (10GE) GBIC (1GE) SFP (1GE) SFP+ (10GE) XFP (10GE) XENPAK (10GE) X2 (10GE) SFP28 (25GE) SFP56 (50GE) QSFP+ (40GE) QSFP28 (50GE) CFP (100GE) CFP2 (100GE) CFP2 (200GE) CFP4 (100GE) Cisco CPAK (100GE) QSFP28 (100GE) QSFP56 (200GE) QSFP-DD (400GE) OSFP (400GE) QSFP-DD (800GE) OSFP (800GE) 1000BASE-KX (1GE) 10GBASE-KR (10GE) 10GBASE-KX4 (10GE) 25GBASE-KR (25GE) 40GBASE-KR4 (40GE) 50GBASE-KR (50GE) 100GBASE-KP4 (100GE) 100GBASE-KR2 (100GE) 100GBASE-KR4 (100GE) IEEE 802.11a IEEE 802.11b/g IEEE 802.11n IEEE 802.11ac IEEE 802.11ad IEEE 802.11ax IEEE 802.11ay IEEE 802.15.1 (Bluetooth) Other (Wireless) GSM CDMA LTE OC-3/STM-1 OC-12/STM-4 OC-48/STM-16 OC-192/STM-64 OC-768/STM-256 OC-1920/STM-640 OC-3840/STM-1234 SFP (1GFC) SFP (2GFC) SFP (4GFC) SFP+ (8GFC) SFP+ (16GFC) SFP28 (32GFC) QSFP+ (64GFC) QSFP28 (128GFC) SDR (2 Gbps) DDR (4 Gbps) QDR (8 Gbps) FDR10 (10 Gbps) FDR (13.5 Gbps) EDR (25 Gbps) HDR (50 Gbps) NDR (100 Gbps) XDR (250 Gbps) T1 (1.544 Mbps) E1 (2.048 Mbps) T3 (45 Mbps) E3 (34 Mbps) xDSL DOCSIS GPON (2.5 Gbps / 1.25 Gps) XG-PON (10 Gbps / 2.5 Gbps) XGS-PON (10 Gbps) NG-PON2 (TWDM-PON) (4x10 Gbps) EPON (1 Gbps) 10G-EPON (10 Gbps) Cisco StackWise Cisco StackWise Plus Cisco FlexStack Cisco FlexStack Plus Cisco StackWise-80 Cisco StackWise-160 Cisco StackWise-320 Cisco StackWise-480 Juniper VCP Extreme SummitStack Extreme SummitStack-128 Extreme SummitStack-256 Extreme SummitStack-512 Other] Label *string `json:"label"` // value // Required: true - // Enum: [virtual bridge lag 100base-tx 1000base-t 2.5gbase-t 5gbase-t 10gbase-t 10gbase-cx4 1000base-x-gbic 1000base-x-sfp 10gbase-x-sfpp 10gbase-x-xfp 10gbase-x-xenpak 10gbase-x-x2 25gbase-x-sfp28 50gbase-x-sfp56 40gbase-x-qsfpp 50gbase-x-sfp28 100gbase-x-cfp 100gbase-x-cfp2 200gbase-x-cfp2 100gbase-x-cfp4 100gbase-x-cpak 100gbase-x-qsfp28 200gbase-x-qsfp56 400gbase-x-qsfpdd 400gbase-x-osfp 1000base-kx 10gbase-kr 10gbase-kx4 25gbase-kr 40gbase-kr4 50gbase-kr 100gbase-kp4 100gbase-kr2 100gbase-kr4 ieee802.11a ieee802.11g ieee802.11n ieee802.11ac ieee802.11ad ieee802.11ax ieee802.11ay ieee802.15.1 other-wireless gsm cdma lte sonet-oc3 sonet-oc12 sonet-oc48 sonet-oc192 sonet-oc768 sonet-oc1920 sonet-oc3840 1gfc-sfp 2gfc-sfp 4gfc-sfp 8gfc-sfpp 16gfc-sfpp 32gfc-sfp28 64gfc-qsfpp 128gfc-qsfp28 infiniband-sdr infiniband-ddr infiniband-qdr infiniband-fdr10 infiniband-fdr infiniband-edr infiniband-hdr infiniband-ndr infiniband-xdr t1 e1 t3 e3 xdsl docsis gpon xg-pon xgs-pon ng-pon2 epon 10g-epon cisco-stackwise cisco-stackwise-plus cisco-flexstack cisco-flexstack-plus cisco-stackwise-80 cisco-stackwise-160 cisco-stackwise-320 cisco-stackwise-480 juniper-vcp extreme-summitstack extreme-summitstack-128 extreme-summitstack-256 extreme-summitstack-512 other] + // Enum: [virtual bridge lag 100base-fx 100base-lfx 100base-tx 100base-t1 1000base-t 2.5gbase-t 5gbase-t 10gbase-t 10gbase-cx4 1000base-x-gbic 1000base-x-sfp 10gbase-x-sfpp 10gbase-x-xfp 10gbase-x-xenpak 10gbase-x-x2 25gbase-x-sfp28 50gbase-x-sfp56 40gbase-x-qsfpp 50gbase-x-sfp28 100gbase-x-cfp 100gbase-x-cfp2 200gbase-x-cfp2 100gbase-x-cfp4 100gbase-x-cpak 100gbase-x-qsfp28 200gbase-x-qsfp56 400gbase-x-qsfpdd 400gbase-x-osfp 800gbase-x-qsfpdd 800gbase-x-osfp 1000base-kx 10gbase-kr 10gbase-kx4 25gbase-kr 40gbase-kr4 50gbase-kr 100gbase-kp4 100gbase-kr2 100gbase-kr4 ieee802.11a ieee802.11g ieee802.11n ieee802.11ac ieee802.11ad ieee802.11ax ieee802.11ay ieee802.15.1 other-wireless gsm cdma lte sonet-oc3 sonet-oc12 sonet-oc48 sonet-oc192 sonet-oc768 sonet-oc1920 sonet-oc3840 1gfc-sfp 2gfc-sfp 4gfc-sfp 8gfc-sfpp 16gfc-sfpp 32gfc-sfp28 64gfc-qsfpp 128gfc-qsfp28 infiniband-sdr infiniband-ddr infiniband-qdr infiniband-fdr10 infiniband-fdr infiniband-edr infiniband-hdr infiniband-ndr infiniband-xdr t1 e1 t3 e3 xdsl docsis gpon xg-pon xgs-pon ng-pon2 epon 10g-epon cisco-stackwise cisco-stackwise-plus cisco-flexstack cisco-flexstack-plus cisco-stackwise-80 cisco-stackwise-160 cisco-stackwise-320 cisco-stackwise-480 juniper-vcp extreme-summitstack extreme-summitstack-128 extreme-summitstack-256 extreme-summitstack-512 other] Value *string `json:"value"` } @@ -878,7 +878,7 @@ var interfaceTemplateTypeTypeLabelPropEnum []interface{} func init() { var res []string - if err := json.Unmarshal([]byte(`["Virtual","Bridge","Link Aggregation Group (LAG)","100BASE-TX (10/100ME)","1000BASE-T (1GE)","2.5GBASE-T (2.5GE)","5GBASE-T (5GE)","10GBASE-T (10GE)","10GBASE-CX4 (10GE)","GBIC (1GE)","SFP (1GE)","SFP+ (10GE)","XFP (10GE)","XENPAK (10GE)","X2 (10GE)","SFP28 (25GE)","SFP56 (50GE)","QSFP+ (40GE)","QSFP28 (50GE)","CFP (100GE)","CFP2 (100GE)","CFP2 (200GE)","CFP4 (100GE)","Cisco CPAK (100GE)","QSFP28 (100GE)","QSFP56 (200GE)","QSFP-DD (400GE)","OSFP (400GE)","1000BASE-KX (1GE)","10GBASE-KR (10GE)","10GBASE-KX4 (10GE)","25GBASE-KR (25GE)","40GBASE-KR4 (40GE)","50GBASE-KR (50GE)","100GBASE-KP4 (100GE)","100GBASE-KR2 (100GE)","100GBASE-KR4 (100GE)","IEEE 802.11a","IEEE 802.11b/g","IEEE 802.11n","IEEE 802.11ac","IEEE 802.11ad","IEEE 802.11ax","IEEE 802.11ay","IEEE 802.15.1 (Bluetooth)","Other (Wireless)","GSM","CDMA","LTE","OC-3/STM-1","OC-12/STM-4","OC-48/STM-16","OC-192/STM-64","OC-768/STM-256","OC-1920/STM-640","OC-3840/STM-1234","SFP (1GFC)","SFP (2GFC)","SFP (4GFC)","SFP+ (8GFC)","SFP+ (16GFC)","SFP28 (32GFC)","QSFP+ (64GFC)","QSFP28 (128GFC)","SDR (2 Gbps)","DDR (4 Gbps)","QDR (8 Gbps)","FDR10 (10 Gbps)","FDR (13.5 Gbps)","EDR (25 Gbps)","HDR (50 Gbps)","NDR (100 Gbps)","XDR (250 Gbps)","T1 (1.544 Mbps)","E1 (2.048 Mbps)","T3 (45 Mbps)","E3 (34 Mbps)","xDSL","DOCSIS","GPON (2.5 Gbps / 1.25 Gps)","XG-PON (10 Gbps / 2.5 Gbps)","XGS-PON (10 Gbps)","NG-PON2 (TWDM-PON) (4x10 Gbps)","EPON (1 Gbps)","10G-EPON (10 Gbps)","Cisco StackWise","Cisco StackWise Plus","Cisco FlexStack","Cisco FlexStack Plus","Cisco StackWise-80","Cisco StackWise-160","Cisco StackWise-320","Cisco StackWise-480","Juniper VCP","Extreme SummitStack","Extreme SummitStack-128","Extreme SummitStack-256","Extreme SummitStack-512","Other"]`), &res); err != nil { + if err := json.Unmarshal([]byte(`["Virtual","Bridge","Link Aggregation Group (LAG)","100BASE-FX (10/100ME FIBER)","100BASE-LFX (10/100ME FIBER)","100BASE-TX (10/100ME)","100BASE-T1 (10/100ME Single Pair)","1000BASE-T (1GE)","2.5GBASE-T (2.5GE)","5GBASE-T (5GE)","10GBASE-T (10GE)","10GBASE-CX4 (10GE)","GBIC (1GE)","SFP (1GE)","SFP+ (10GE)","XFP (10GE)","XENPAK (10GE)","X2 (10GE)","SFP28 (25GE)","SFP56 (50GE)","QSFP+ (40GE)","QSFP28 (50GE)","CFP (100GE)","CFP2 (100GE)","CFP2 (200GE)","CFP4 (100GE)","Cisco CPAK (100GE)","QSFP28 (100GE)","QSFP56 (200GE)","QSFP-DD (400GE)","OSFP (400GE)","QSFP-DD (800GE)","OSFP (800GE)","1000BASE-KX (1GE)","10GBASE-KR (10GE)","10GBASE-KX4 (10GE)","25GBASE-KR (25GE)","40GBASE-KR4 (40GE)","50GBASE-KR (50GE)","100GBASE-KP4 (100GE)","100GBASE-KR2 (100GE)","100GBASE-KR4 (100GE)","IEEE 802.11a","IEEE 802.11b/g","IEEE 802.11n","IEEE 802.11ac","IEEE 802.11ad","IEEE 802.11ax","IEEE 802.11ay","IEEE 802.15.1 (Bluetooth)","Other (Wireless)","GSM","CDMA","LTE","OC-3/STM-1","OC-12/STM-4","OC-48/STM-16","OC-192/STM-64","OC-768/STM-256","OC-1920/STM-640","OC-3840/STM-1234","SFP (1GFC)","SFP (2GFC)","SFP (4GFC)","SFP+ (8GFC)","SFP+ (16GFC)","SFP28 (32GFC)","QSFP+ (64GFC)","QSFP28 (128GFC)","SDR (2 Gbps)","DDR (4 Gbps)","QDR (8 Gbps)","FDR10 (10 Gbps)","FDR (13.5 Gbps)","EDR (25 Gbps)","HDR (50 Gbps)","NDR (100 Gbps)","XDR (250 Gbps)","T1 (1.544 Mbps)","E1 (2.048 Mbps)","T3 (45 Mbps)","E3 (34 Mbps)","xDSL","DOCSIS","GPON (2.5 Gbps / 1.25 Gps)","XG-PON (10 Gbps / 2.5 Gbps)","XGS-PON (10 Gbps)","NG-PON2 (TWDM-PON) (4x10 Gbps)","EPON (1 Gbps)","10G-EPON (10 Gbps)","Cisco StackWise","Cisco StackWise Plus","Cisco FlexStack","Cisco FlexStack Plus","Cisco StackWise-80","Cisco StackWise-160","Cisco StackWise-320","Cisco StackWise-480","Juniper VCP","Extreme SummitStack","Extreme SummitStack-128","Extreme SummitStack-256","Extreme SummitStack-512","Other"]`), &res); err != nil { panic(err) } for _, v := range res { @@ -897,9 +897,18 @@ const ( // InterfaceTemplateTypeLabelLinkAggregationGroupLAG captures enum value "Link Aggregation Group (LAG)" InterfaceTemplateTypeLabelLinkAggregationGroupLAG string = "Link Aggregation Group (LAG)" + // InterfaceTemplateTypeLabelNr100BASEDashFX10100MEFIBER captures enum value "100BASE-FX (10/100ME FIBER)" + InterfaceTemplateTypeLabelNr100BASEDashFX10100MEFIBER string = "100BASE-FX (10/100ME FIBER)" + + // InterfaceTemplateTypeLabelNr100BASEDashLFX10100MEFIBER captures enum value "100BASE-LFX (10/100ME FIBER)" + InterfaceTemplateTypeLabelNr100BASEDashLFX10100MEFIBER string = "100BASE-LFX (10/100ME FIBER)" + // InterfaceTemplateTypeLabelNr100BASEDashTX10100ME captures enum value "100BASE-TX (10/100ME)" InterfaceTemplateTypeLabelNr100BASEDashTX10100ME string = "100BASE-TX (10/100ME)" + // InterfaceTemplateTypeLabelNr100BASEDashT110100MESinglePair captures enum value "100BASE-T1 (10/100ME Single Pair)" + InterfaceTemplateTypeLabelNr100BASEDashT110100MESinglePair string = "100BASE-T1 (10/100ME Single Pair)" + // InterfaceTemplateTypeLabelNr1000BASEDashT1GE captures enum value "1000BASE-T (1GE)" InterfaceTemplateTypeLabelNr1000BASEDashT1GE string = "1000BASE-T (1GE)" @@ -972,6 +981,12 @@ const ( // InterfaceTemplateTypeLabelOSFP400GE captures enum value "OSFP (400GE)" InterfaceTemplateTypeLabelOSFP400GE string = "OSFP (400GE)" + // InterfaceTemplateTypeLabelQSFPDashDD800GE captures enum value "QSFP-DD (800GE)" + InterfaceTemplateTypeLabelQSFPDashDD800GE string = "QSFP-DD (800GE)" + + // InterfaceTemplateTypeLabelOSFP800GE captures enum value "OSFP (800GE)" + InterfaceTemplateTypeLabelOSFP800GE string = "OSFP (800GE)" + // InterfaceTemplateTypeLabelNr1000BASEDashKX1GE captures enum value "1000BASE-KX (1GE)" InterfaceTemplateTypeLabelNr1000BASEDashKX1GE string = "1000BASE-KX (1GE)" @@ -1212,7 +1227,7 @@ var interfaceTemplateTypeTypeValuePropEnum []interface{} func init() { var res []string - if err := json.Unmarshal([]byte(`["virtual","bridge","lag","100base-tx","1000base-t","2.5gbase-t","5gbase-t","10gbase-t","10gbase-cx4","1000base-x-gbic","1000base-x-sfp","10gbase-x-sfpp","10gbase-x-xfp","10gbase-x-xenpak","10gbase-x-x2","25gbase-x-sfp28","50gbase-x-sfp56","40gbase-x-qsfpp","50gbase-x-sfp28","100gbase-x-cfp","100gbase-x-cfp2","200gbase-x-cfp2","100gbase-x-cfp4","100gbase-x-cpak","100gbase-x-qsfp28","200gbase-x-qsfp56","400gbase-x-qsfpdd","400gbase-x-osfp","1000base-kx","10gbase-kr","10gbase-kx4","25gbase-kr","40gbase-kr4","50gbase-kr","100gbase-kp4","100gbase-kr2","100gbase-kr4","ieee802.11a","ieee802.11g","ieee802.11n","ieee802.11ac","ieee802.11ad","ieee802.11ax","ieee802.11ay","ieee802.15.1","other-wireless","gsm","cdma","lte","sonet-oc3","sonet-oc12","sonet-oc48","sonet-oc192","sonet-oc768","sonet-oc1920","sonet-oc3840","1gfc-sfp","2gfc-sfp","4gfc-sfp","8gfc-sfpp","16gfc-sfpp","32gfc-sfp28","64gfc-qsfpp","128gfc-qsfp28","infiniband-sdr","infiniband-ddr","infiniband-qdr","infiniband-fdr10","infiniband-fdr","infiniband-edr","infiniband-hdr","infiniband-ndr","infiniband-xdr","t1","e1","t3","e3","xdsl","docsis","gpon","xg-pon","xgs-pon","ng-pon2","epon","10g-epon","cisco-stackwise","cisco-stackwise-plus","cisco-flexstack","cisco-flexstack-plus","cisco-stackwise-80","cisco-stackwise-160","cisco-stackwise-320","cisco-stackwise-480","juniper-vcp","extreme-summitstack","extreme-summitstack-128","extreme-summitstack-256","extreme-summitstack-512","other"]`), &res); err != nil { + if err := json.Unmarshal([]byte(`["virtual","bridge","lag","100base-fx","100base-lfx","100base-tx","100base-t1","1000base-t","2.5gbase-t","5gbase-t","10gbase-t","10gbase-cx4","1000base-x-gbic","1000base-x-sfp","10gbase-x-sfpp","10gbase-x-xfp","10gbase-x-xenpak","10gbase-x-x2","25gbase-x-sfp28","50gbase-x-sfp56","40gbase-x-qsfpp","50gbase-x-sfp28","100gbase-x-cfp","100gbase-x-cfp2","200gbase-x-cfp2","100gbase-x-cfp4","100gbase-x-cpak","100gbase-x-qsfp28","200gbase-x-qsfp56","400gbase-x-qsfpdd","400gbase-x-osfp","800gbase-x-qsfpdd","800gbase-x-osfp","1000base-kx","10gbase-kr","10gbase-kx4","25gbase-kr","40gbase-kr4","50gbase-kr","100gbase-kp4","100gbase-kr2","100gbase-kr4","ieee802.11a","ieee802.11g","ieee802.11n","ieee802.11ac","ieee802.11ad","ieee802.11ax","ieee802.11ay","ieee802.15.1","other-wireless","gsm","cdma","lte","sonet-oc3","sonet-oc12","sonet-oc48","sonet-oc192","sonet-oc768","sonet-oc1920","sonet-oc3840","1gfc-sfp","2gfc-sfp","4gfc-sfp","8gfc-sfpp","16gfc-sfpp","32gfc-sfp28","64gfc-qsfpp","128gfc-qsfp28","infiniband-sdr","infiniband-ddr","infiniband-qdr","infiniband-fdr10","infiniband-fdr","infiniband-edr","infiniband-hdr","infiniband-ndr","infiniband-xdr","t1","e1","t3","e3","xdsl","docsis","gpon","xg-pon","xgs-pon","ng-pon2","epon","10g-epon","cisco-stackwise","cisco-stackwise-plus","cisco-flexstack","cisco-flexstack-plus","cisco-stackwise-80","cisco-stackwise-160","cisco-stackwise-320","cisco-stackwise-480","juniper-vcp","extreme-summitstack","extreme-summitstack-128","extreme-summitstack-256","extreme-summitstack-512","other"]`), &res); err != nil { panic(err) } for _, v := range res { @@ -1231,9 +1246,18 @@ const ( // InterfaceTemplateTypeValueLag captures enum value "lag" InterfaceTemplateTypeValueLag string = "lag" + // InterfaceTemplateTypeValueNr100baseDashFx captures enum value "100base-fx" + InterfaceTemplateTypeValueNr100baseDashFx string = "100base-fx" + + // InterfaceTemplateTypeValueNr100baseDashLfx captures enum value "100base-lfx" + InterfaceTemplateTypeValueNr100baseDashLfx string = "100base-lfx" + // InterfaceTemplateTypeValueNr100baseDashTx captures enum value "100base-tx" InterfaceTemplateTypeValueNr100baseDashTx string = "100base-tx" + // InterfaceTemplateTypeValueNr100baseDashT1 captures enum value "100base-t1" + InterfaceTemplateTypeValueNr100baseDashT1 string = "100base-t1" + // InterfaceTemplateTypeValueNr1000baseDasht captures enum value "1000base-t" InterfaceTemplateTypeValueNr1000baseDasht string = "1000base-t" @@ -1306,6 +1330,12 @@ const ( // InterfaceTemplateTypeValueNr400gbaseDashxDashOsfp captures enum value "400gbase-x-osfp" InterfaceTemplateTypeValueNr400gbaseDashxDashOsfp string = "400gbase-x-osfp" + // InterfaceTemplateTypeValueNr800gbaseDashxDashQsfpdd captures enum value "800gbase-x-qsfpdd" + InterfaceTemplateTypeValueNr800gbaseDashxDashQsfpdd string = "800gbase-x-qsfpdd" + + // InterfaceTemplateTypeValueNr800gbaseDashxDashOsfp captures enum value "800gbase-x-osfp" + InterfaceTemplateTypeValueNr800gbaseDashxDashOsfp string = "800gbase-x-osfp" + // InterfaceTemplateTypeValueNr1000baseDashKx captures enum value "1000base-kx" InterfaceTemplateTypeValueNr1000baseDashKx string = "1000base-kx" diff --git a/netbox/models/virtual_device_context.go b/netbox/models/virtual_device_context.go index 68003f10c2..b3c328ca4d 100644 --- a/netbox/models/virtual_device_context.go +++ b/netbox/models/virtual_device_context.go @@ -47,6 +47,10 @@ type VirtualDeviceContext struct { // Custom fields CustomFields interface{} `json:"custom_fields,omitempty"` + // Description + // Max Length: 200 + Description string `json:"description,omitempty"` + // device // Required: true Device *NestedDevice `json:"device"` @@ -115,6 +119,10 @@ func (m *VirtualDeviceContext) Validate(formats strfmt.Registry) error { res = append(res, err) } + if err := m.validateDescription(formats); err != nil { + res = append(res, err) + } + if err := m.validateDevice(formats); err != nil { res = append(res, err) } @@ -177,6 +185,18 @@ func (m *VirtualDeviceContext) validateCreated(formats strfmt.Registry) error { return nil } +func (m *VirtualDeviceContext) validateDescription(formats strfmt.Registry) error { + if swag.IsZero(m.Description) { // not required + return nil + } + + if err := validate.MaxLength("description", "body", m.Description, 200); err != nil { + return err + } + + return nil +} + func (m *VirtualDeviceContext) validateDevice(formats strfmt.Registry) error { if err := validate.Required("device", "body", m.Device); err != nil { diff --git a/netbox/models/virtual_machine_with_config_context.go b/netbox/models/virtual_machine_with_config_context.go index 19bbe13023..1dcea1d427 100644 --- a/netbox/models/virtual_machine_with_config_context.go +++ b/netbox/models/virtual_machine_with_config_context.go @@ -54,6 +54,10 @@ type VirtualMachineWithConfigContext struct { // Custom fields CustomFields interface{} `json:"custom_fields,omitempty"` + // Description + // Max Length: 200 + Description string `json:"description,omitempty"` + // device Device *NestedDevice `json:"device,omitempty"` @@ -138,6 +142,10 @@ func (m *VirtualMachineWithConfigContext) Validate(formats strfmt.Registry) erro res = append(res, err) } + if err := m.validateDescription(formats); err != nil { + res = append(res, err) + } + if err := m.validateDevice(formats); err != nil { res = append(res, err) } @@ -239,6 +247,18 @@ func (m *VirtualMachineWithConfigContext) validateCreated(formats strfmt.Registr return nil } +func (m *VirtualMachineWithConfigContext) validateDescription(formats strfmt.Registry) error { + if swag.IsZero(m.Description) { // not required + return nil + } + + if err := validate.MaxLength("description", "body", m.Description, 200); err != nil { + return err + } + + return nil +} + func (m *VirtualMachineWithConfigContext) validateDevice(formats strfmt.Registry) error { if swag.IsZero(m.Device) { // not required return nil diff --git a/netbox/models/writable_device_with_config_context.go b/netbox/models/writable_device_with_config_context.go index ec6d3a0a3b..cdbe56cecf 100644 --- a/netbox/models/writable_device_with_config_context.go +++ b/netbox/models/writable_device_with_config_context.go @@ -64,6 +64,10 @@ type WritableDeviceWithConfigContext struct { // Custom fields CustomFields interface{} `json:"custom_fields,omitempty"` + // Description + // Max Length: 200 + Description string `json:"description,omitempty"` + // Device role // Required: true DeviceRole *int64 `json:"device_role"` @@ -175,6 +179,10 @@ func (m *WritableDeviceWithConfigContext) Validate(formats strfmt.Registry) erro res = append(res, err) } + if err := m.validateDescription(formats); err != nil { + res = append(res, err) + } + if err := m.validateDeviceRole(formats); err != nil { res = append(res, err) } @@ -318,6 +326,18 @@ func (m *WritableDeviceWithConfigContext) validateCreated(formats strfmt.Registr return nil } +func (m *WritableDeviceWithConfigContext) validateDescription(formats strfmt.Registry) error { + if swag.IsZero(m.Description) { // not required + return nil + } + + if err := validate.MaxLength("description", "body", m.Description, 200); err != nil { + return err + } + + return nil +} + func (m *WritableDeviceWithConfigContext) validateDeviceRole(formats strfmt.Registry) error { if err := validate.Required("device_role", "body", m.DeviceRole); err != nil { diff --git a/netbox/models/writable_interface.go b/netbox/models/writable_interface.go index 994d2f4aa6..f91d3f3584 100644 --- a/netbox/models/writable_interface.go +++ b/netbox/models/writable_interface.go @@ -207,7 +207,7 @@ type WritableInterface struct { // Type // Required: true - // Enum: [virtual bridge lag 100base-tx 1000base-t 2.5gbase-t 5gbase-t 10gbase-t 10gbase-cx4 1000base-x-gbic 1000base-x-sfp 10gbase-x-sfpp 10gbase-x-xfp 10gbase-x-xenpak 10gbase-x-x2 25gbase-x-sfp28 50gbase-x-sfp56 40gbase-x-qsfpp 50gbase-x-sfp28 100gbase-x-cfp 100gbase-x-cfp2 200gbase-x-cfp2 100gbase-x-cfp4 100gbase-x-cpak 100gbase-x-qsfp28 200gbase-x-qsfp56 400gbase-x-qsfpdd 400gbase-x-osfp 1000base-kx 10gbase-kr 10gbase-kx4 25gbase-kr 40gbase-kr4 50gbase-kr 100gbase-kp4 100gbase-kr2 100gbase-kr4 ieee802.11a ieee802.11g ieee802.11n ieee802.11ac ieee802.11ad ieee802.11ax ieee802.11ay ieee802.15.1 other-wireless gsm cdma lte sonet-oc3 sonet-oc12 sonet-oc48 sonet-oc192 sonet-oc768 sonet-oc1920 sonet-oc3840 1gfc-sfp 2gfc-sfp 4gfc-sfp 8gfc-sfpp 16gfc-sfpp 32gfc-sfp28 64gfc-qsfpp 128gfc-qsfp28 infiniband-sdr infiniband-ddr infiniband-qdr infiniband-fdr10 infiniband-fdr infiniband-edr infiniband-hdr infiniband-ndr infiniband-xdr t1 e1 t3 e3 xdsl docsis gpon xg-pon xgs-pon ng-pon2 epon 10g-epon cisco-stackwise cisco-stackwise-plus cisco-flexstack cisco-flexstack-plus cisco-stackwise-80 cisco-stackwise-160 cisco-stackwise-320 cisco-stackwise-480 juniper-vcp extreme-summitstack extreme-summitstack-128 extreme-summitstack-256 extreme-summitstack-512 other] + // Enum: [virtual bridge lag 100base-fx 100base-lfx 100base-tx 100base-t1 1000base-t 2.5gbase-t 5gbase-t 10gbase-t 10gbase-cx4 1000base-x-gbic 1000base-x-sfp 10gbase-x-sfpp 10gbase-x-xfp 10gbase-x-xenpak 10gbase-x-x2 25gbase-x-sfp28 50gbase-x-sfp56 40gbase-x-qsfpp 50gbase-x-sfp28 100gbase-x-cfp 100gbase-x-cfp2 200gbase-x-cfp2 100gbase-x-cfp4 100gbase-x-cpak 100gbase-x-qsfp28 200gbase-x-qsfp56 400gbase-x-qsfpdd 400gbase-x-osfp 800gbase-x-qsfpdd 800gbase-x-osfp 1000base-kx 10gbase-kr 10gbase-kx4 25gbase-kr 40gbase-kr4 50gbase-kr 100gbase-kp4 100gbase-kr2 100gbase-kr4 ieee802.11a ieee802.11g ieee802.11n ieee802.11ac ieee802.11ad ieee802.11ax ieee802.11ay ieee802.15.1 other-wireless gsm cdma lte sonet-oc3 sonet-oc12 sonet-oc48 sonet-oc192 sonet-oc768 sonet-oc1920 sonet-oc3840 1gfc-sfp 2gfc-sfp 4gfc-sfp 8gfc-sfpp 16gfc-sfpp 32gfc-sfp28 64gfc-qsfpp 128gfc-qsfp28 infiniband-sdr infiniband-ddr infiniband-qdr infiniband-fdr10 infiniband-fdr infiniband-edr infiniband-hdr infiniband-ndr infiniband-xdr t1 e1 t3 e3 xdsl docsis gpon xg-pon xgs-pon ng-pon2 epon 10g-epon cisco-stackwise cisco-stackwise-plus cisco-flexstack cisco-flexstack-plus cisco-stackwise-80 cisco-stackwise-160 cisco-stackwise-320 cisco-stackwise-480 juniper-vcp extreme-summitstack extreme-summitstack-128 extreme-summitstack-256 extreme-summitstack-512 other] Type *string `json:"type"` // Untagged VLAN @@ -1397,7 +1397,7 @@ var writableInterfaceTypeTypePropEnum []interface{} func init() { var res []string - if err := json.Unmarshal([]byte(`["virtual","bridge","lag","100base-tx","1000base-t","2.5gbase-t","5gbase-t","10gbase-t","10gbase-cx4","1000base-x-gbic","1000base-x-sfp","10gbase-x-sfpp","10gbase-x-xfp","10gbase-x-xenpak","10gbase-x-x2","25gbase-x-sfp28","50gbase-x-sfp56","40gbase-x-qsfpp","50gbase-x-sfp28","100gbase-x-cfp","100gbase-x-cfp2","200gbase-x-cfp2","100gbase-x-cfp4","100gbase-x-cpak","100gbase-x-qsfp28","200gbase-x-qsfp56","400gbase-x-qsfpdd","400gbase-x-osfp","1000base-kx","10gbase-kr","10gbase-kx4","25gbase-kr","40gbase-kr4","50gbase-kr","100gbase-kp4","100gbase-kr2","100gbase-kr4","ieee802.11a","ieee802.11g","ieee802.11n","ieee802.11ac","ieee802.11ad","ieee802.11ax","ieee802.11ay","ieee802.15.1","other-wireless","gsm","cdma","lte","sonet-oc3","sonet-oc12","sonet-oc48","sonet-oc192","sonet-oc768","sonet-oc1920","sonet-oc3840","1gfc-sfp","2gfc-sfp","4gfc-sfp","8gfc-sfpp","16gfc-sfpp","32gfc-sfp28","64gfc-qsfpp","128gfc-qsfp28","infiniband-sdr","infiniband-ddr","infiniband-qdr","infiniband-fdr10","infiniband-fdr","infiniband-edr","infiniband-hdr","infiniband-ndr","infiniband-xdr","t1","e1","t3","e3","xdsl","docsis","gpon","xg-pon","xgs-pon","ng-pon2","epon","10g-epon","cisco-stackwise","cisco-stackwise-plus","cisco-flexstack","cisco-flexstack-plus","cisco-stackwise-80","cisco-stackwise-160","cisco-stackwise-320","cisco-stackwise-480","juniper-vcp","extreme-summitstack","extreme-summitstack-128","extreme-summitstack-256","extreme-summitstack-512","other"]`), &res); err != nil { + if err := json.Unmarshal([]byte(`["virtual","bridge","lag","100base-fx","100base-lfx","100base-tx","100base-t1","1000base-t","2.5gbase-t","5gbase-t","10gbase-t","10gbase-cx4","1000base-x-gbic","1000base-x-sfp","10gbase-x-sfpp","10gbase-x-xfp","10gbase-x-xenpak","10gbase-x-x2","25gbase-x-sfp28","50gbase-x-sfp56","40gbase-x-qsfpp","50gbase-x-sfp28","100gbase-x-cfp","100gbase-x-cfp2","200gbase-x-cfp2","100gbase-x-cfp4","100gbase-x-cpak","100gbase-x-qsfp28","200gbase-x-qsfp56","400gbase-x-qsfpdd","400gbase-x-osfp","800gbase-x-qsfpdd","800gbase-x-osfp","1000base-kx","10gbase-kr","10gbase-kx4","25gbase-kr","40gbase-kr4","50gbase-kr","100gbase-kp4","100gbase-kr2","100gbase-kr4","ieee802.11a","ieee802.11g","ieee802.11n","ieee802.11ac","ieee802.11ad","ieee802.11ax","ieee802.11ay","ieee802.15.1","other-wireless","gsm","cdma","lte","sonet-oc3","sonet-oc12","sonet-oc48","sonet-oc192","sonet-oc768","sonet-oc1920","sonet-oc3840","1gfc-sfp","2gfc-sfp","4gfc-sfp","8gfc-sfpp","16gfc-sfpp","32gfc-sfp28","64gfc-qsfpp","128gfc-qsfp28","infiniband-sdr","infiniband-ddr","infiniband-qdr","infiniband-fdr10","infiniband-fdr","infiniband-edr","infiniband-hdr","infiniband-ndr","infiniband-xdr","t1","e1","t3","e3","xdsl","docsis","gpon","xg-pon","xgs-pon","ng-pon2","epon","10g-epon","cisco-stackwise","cisco-stackwise-plus","cisco-flexstack","cisco-flexstack-plus","cisco-stackwise-80","cisco-stackwise-160","cisco-stackwise-320","cisco-stackwise-480","juniper-vcp","extreme-summitstack","extreme-summitstack-128","extreme-summitstack-256","extreme-summitstack-512","other"]`), &res); err != nil { panic(err) } for _, v := range res { @@ -1416,9 +1416,18 @@ const ( // WritableInterfaceTypeLag captures enum value "lag" WritableInterfaceTypeLag string = "lag" + // WritableInterfaceTypeNr100baseDashFx captures enum value "100base-fx" + WritableInterfaceTypeNr100baseDashFx string = "100base-fx" + + // WritableInterfaceTypeNr100baseDashLfx captures enum value "100base-lfx" + WritableInterfaceTypeNr100baseDashLfx string = "100base-lfx" + // WritableInterfaceTypeNr100baseDashTx captures enum value "100base-tx" WritableInterfaceTypeNr100baseDashTx string = "100base-tx" + // WritableInterfaceTypeNr100baseDashT1 captures enum value "100base-t1" + WritableInterfaceTypeNr100baseDashT1 string = "100base-t1" + // WritableInterfaceTypeNr1000baseDasht captures enum value "1000base-t" WritableInterfaceTypeNr1000baseDasht string = "1000base-t" @@ -1491,6 +1500,12 @@ const ( // WritableInterfaceTypeNr400gbaseDashxDashOsfp captures enum value "400gbase-x-osfp" WritableInterfaceTypeNr400gbaseDashxDashOsfp string = "400gbase-x-osfp" + // WritableInterfaceTypeNr800gbaseDashxDashQsfpdd captures enum value "800gbase-x-qsfpdd" + WritableInterfaceTypeNr800gbaseDashxDashQsfpdd string = "800gbase-x-qsfpdd" + + // WritableInterfaceTypeNr800gbaseDashxDashOsfp captures enum value "800gbase-x-osfp" + WritableInterfaceTypeNr800gbaseDashxDashOsfp string = "800gbase-x-osfp" + // WritableInterfaceTypeNr1000baseDashKx captures enum value "1000base-kx" WritableInterfaceTypeNr1000baseDashKx string = "1000base-kx" diff --git a/netbox/models/writable_interface_template.go b/netbox/models/writable_interface_template.go index f1b786b3c3..eadfcbb60a 100644 --- a/netbox/models/writable_interface_template.go +++ b/netbox/models/writable_interface_template.go @@ -92,7 +92,7 @@ type WritableInterfaceTemplate struct { // Type // Required: true - // Enum: [virtual bridge lag 100base-tx 1000base-t 2.5gbase-t 5gbase-t 10gbase-t 10gbase-cx4 1000base-x-gbic 1000base-x-sfp 10gbase-x-sfpp 10gbase-x-xfp 10gbase-x-xenpak 10gbase-x-x2 25gbase-x-sfp28 50gbase-x-sfp56 40gbase-x-qsfpp 50gbase-x-sfp28 100gbase-x-cfp 100gbase-x-cfp2 200gbase-x-cfp2 100gbase-x-cfp4 100gbase-x-cpak 100gbase-x-qsfp28 200gbase-x-qsfp56 400gbase-x-qsfpdd 400gbase-x-osfp 1000base-kx 10gbase-kr 10gbase-kx4 25gbase-kr 40gbase-kr4 50gbase-kr 100gbase-kp4 100gbase-kr2 100gbase-kr4 ieee802.11a ieee802.11g ieee802.11n ieee802.11ac ieee802.11ad ieee802.11ax ieee802.11ay ieee802.15.1 other-wireless gsm cdma lte sonet-oc3 sonet-oc12 sonet-oc48 sonet-oc192 sonet-oc768 sonet-oc1920 sonet-oc3840 1gfc-sfp 2gfc-sfp 4gfc-sfp 8gfc-sfpp 16gfc-sfpp 32gfc-sfp28 64gfc-qsfpp 128gfc-qsfp28 infiniband-sdr infiniband-ddr infiniband-qdr infiniband-fdr10 infiniband-fdr infiniband-edr infiniband-hdr infiniband-ndr infiniband-xdr t1 e1 t3 e3 xdsl docsis gpon xg-pon xgs-pon ng-pon2 epon 10g-epon cisco-stackwise cisco-stackwise-plus cisco-flexstack cisco-flexstack-plus cisco-stackwise-80 cisco-stackwise-160 cisco-stackwise-320 cisco-stackwise-480 juniper-vcp extreme-summitstack extreme-summitstack-128 extreme-summitstack-256 extreme-summitstack-512 other] + // Enum: [virtual bridge lag 100base-fx 100base-lfx 100base-tx 100base-t1 1000base-t 2.5gbase-t 5gbase-t 10gbase-t 10gbase-cx4 1000base-x-gbic 1000base-x-sfp 10gbase-x-sfpp 10gbase-x-xfp 10gbase-x-xenpak 10gbase-x-x2 25gbase-x-sfp28 50gbase-x-sfp56 40gbase-x-qsfpp 50gbase-x-sfp28 100gbase-x-cfp 100gbase-x-cfp2 200gbase-x-cfp2 100gbase-x-cfp4 100gbase-x-cpak 100gbase-x-qsfp28 200gbase-x-qsfp56 400gbase-x-qsfpdd 400gbase-x-osfp 800gbase-x-qsfpdd 800gbase-x-osfp 1000base-kx 10gbase-kr 10gbase-kx4 25gbase-kr 40gbase-kr4 50gbase-kr 100gbase-kp4 100gbase-kr2 100gbase-kr4 ieee802.11a ieee802.11g ieee802.11n ieee802.11ac ieee802.11ad ieee802.11ax ieee802.11ay ieee802.15.1 other-wireless gsm cdma lte sonet-oc3 sonet-oc12 sonet-oc48 sonet-oc192 sonet-oc768 sonet-oc1920 sonet-oc3840 1gfc-sfp 2gfc-sfp 4gfc-sfp 8gfc-sfpp 16gfc-sfpp 32gfc-sfp28 64gfc-qsfpp 128gfc-qsfp28 infiniband-sdr infiniband-ddr infiniband-qdr infiniband-fdr10 infiniband-fdr infiniband-edr infiniband-hdr infiniband-ndr infiniband-xdr t1 e1 t3 e3 xdsl docsis gpon xg-pon xgs-pon ng-pon2 epon 10g-epon cisco-stackwise cisco-stackwise-plus cisco-flexstack cisco-flexstack-plus cisco-stackwise-80 cisco-stackwise-160 cisco-stackwise-320 cisco-stackwise-480 juniper-vcp extreme-summitstack extreme-summitstack-128 extreme-summitstack-256 extreme-summitstack-512 other] Type *string `json:"type"` // Url @@ -318,7 +318,7 @@ var writableInterfaceTemplateTypeTypePropEnum []interface{} func init() { var res []string - if err := json.Unmarshal([]byte(`["virtual","bridge","lag","100base-tx","1000base-t","2.5gbase-t","5gbase-t","10gbase-t","10gbase-cx4","1000base-x-gbic","1000base-x-sfp","10gbase-x-sfpp","10gbase-x-xfp","10gbase-x-xenpak","10gbase-x-x2","25gbase-x-sfp28","50gbase-x-sfp56","40gbase-x-qsfpp","50gbase-x-sfp28","100gbase-x-cfp","100gbase-x-cfp2","200gbase-x-cfp2","100gbase-x-cfp4","100gbase-x-cpak","100gbase-x-qsfp28","200gbase-x-qsfp56","400gbase-x-qsfpdd","400gbase-x-osfp","1000base-kx","10gbase-kr","10gbase-kx4","25gbase-kr","40gbase-kr4","50gbase-kr","100gbase-kp4","100gbase-kr2","100gbase-kr4","ieee802.11a","ieee802.11g","ieee802.11n","ieee802.11ac","ieee802.11ad","ieee802.11ax","ieee802.11ay","ieee802.15.1","other-wireless","gsm","cdma","lte","sonet-oc3","sonet-oc12","sonet-oc48","sonet-oc192","sonet-oc768","sonet-oc1920","sonet-oc3840","1gfc-sfp","2gfc-sfp","4gfc-sfp","8gfc-sfpp","16gfc-sfpp","32gfc-sfp28","64gfc-qsfpp","128gfc-qsfp28","infiniband-sdr","infiniband-ddr","infiniband-qdr","infiniband-fdr10","infiniband-fdr","infiniband-edr","infiniband-hdr","infiniband-ndr","infiniband-xdr","t1","e1","t3","e3","xdsl","docsis","gpon","xg-pon","xgs-pon","ng-pon2","epon","10g-epon","cisco-stackwise","cisco-stackwise-plus","cisco-flexstack","cisco-flexstack-plus","cisco-stackwise-80","cisco-stackwise-160","cisco-stackwise-320","cisco-stackwise-480","juniper-vcp","extreme-summitstack","extreme-summitstack-128","extreme-summitstack-256","extreme-summitstack-512","other"]`), &res); err != nil { + if err := json.Unmarshal([]byte(`["virtual","bridge","lag","100base-fx","100base-lfx","100base-tx","100base-t1","1000base-t","2.5gbase-t","5gbase-t","10gbase-t","10gbase-cx4","1000base-x-gbic","1000base-x-sfp","10gbase-x-sfpp","10gbase-x-xfp","10gbase-x-xenpak","10gbase-x-x2","25gbase-x-sfp28","50gbase-x-sfp56","40gbase-x-qsfpp","50gbase-x-sfp28","100gbase-x-cfp","100gbase-x-cfp2","200gbase-x-cfp2","100gbase-x-cfp4","100gbase-x-cpak","100gbase-x-qsfp28","200gbase-x-qsfp56","400gbase-x-qsfpdd","400gbase-x-osfp","800gbase-x-qsfpdd","800gbase-x-osfp","1000base-kx","10gbase-kr","10gbase-kx4","25gbase-kr","40gbase-kr4","50gbase-kr","100gbase-kp4","100gbase-kr2","100gbase-kr4","ieee802.11a","ieee802.11g","ieee802.11n","ieee802.11ac","ieee802.11ad","ieee802.11ax","ieee802.11ay","ieee802.15.1","other-wireless","gsm","cdma","lte","sonet-oc3","sonet-oc12","sonet-oc48","sonet-oc192","sonet-oc768","sonet-oc1920","sonet-oc3840","1gfc-sfp","2gfc-sfp","4gfc-sfp","8gfc-sfpp","16gfc-sfpp","32gfc-sfp28","64gfc-qsfpp","128gfc-qsfp28","infiniband-sdr","infiniband-ddr","infiniband-qdr","infiniband-fdr10","infiniband-fdr","infiniband-edr","infiniband-hdr","infiniband-ndr","infiniband-xdr","t1","e1","t3","e3","xdsl","docsis","gpon","xg-pon","xgs-pon","ng-pon2","epon","10g-epon","cisco-stackwise","cisco-stackwise-plus","cisco-flexstack","cisco-flexstack-plus","cisco-stackwise-80","cisco-stackwise-160","cisco-stackwise-320","cisco-stackwise-480","juniper-vcp","extreme-summitstack","extreme-summitstack-128","extreme-summitstack-256","extreme-summitstack-512","other"]`), &res); err != nil { panic(err) } for _, v := range res { @@ -337,9 +337,18 @@ const ( // WritableInterfaceTemplateTypeLag captures enum value "lag" WritableInterfaceTemplateTypeLag string = "lag" + // WritableInterfaceTemplateTypeNr100baseDashFx captures enum value "100base-fx" + WritableInterfaceTemplateTypeNr100baseDashFx string = "100base-fx" + + // WritableInterfaceTemplateTypeNr100baseDashLfx captures enum value "100base-lfx" + WritableInterfaceTemplateTypeNr100baseDashLfx string = "100base-lfx" + // WritableInterfaceTemplateTypeNr100baseDashTx captures enum value "100base-tx" WritableInterfaceTemplateTypeNr100baseDashTx string = "100base-tx" + // WritableInterfaceTemplateTypeNr100baseDashT1 captures enum value "100base-t1" + WritableInterfaceTemplateTypeNr100baseDashT1 string = "100base-t1" + // WritableInterfaceTemplateTypeNr1000baseDasht captures enum value "1000base-t" WritableInterfaceTemplateTypeNr1000baseDasht string = "1000base-t" @@ -412,6 +421,12 @@ const ( // WritableInterfaceTemplateTypeNr400gbaseDashxDashOsfp captures enum value "400gbase-x-osfp" WritableInterfaceTemplateTypeNr400gbaseDashxDashOsfp string = "400gbase-x-osfp" + // WritableInterfaceTemplateTypeNr800gbaseDashxDashQsfpdd captures enum value "800gbase-x-qsfpdd" + WritableInterfaceTemplateTypeNr800gbaseDashxDashQsfpdd string = "800gbase-x-qsfpdd" + + // WritableInterfaceTemplateTypeNr800gbaseDashxDashOsfp captures enum value "800gbase-x-osfp" + WritableInterfaceTemplateTypeNr800gbaseDashxDashOsfp string = "800gbase-x-osfp" + // WritableInterfaceTemplateTypeNr1000baseDashKx captures enum value "1000base-kx" WritableInterfaceTemplateTypeNr1000baseDashKx string = "1000base-kx" diff --git a/netbox/models/writable_virtual_device_context.go b/netbox/models/writable_virtual_device_context.go index fd3b7d98b8..4f1d16f5e0 100644 --- a/netbox/models/writable_virtual_device_context.go +++ b/netbox/models/writable_virtual_device_context.go @@ -47,6 +47,10 @@ type WritableVirtualDeviceContext struct { // Custom fields CustomFields interface{} `json:"custom_fields,omitempty"` + // Description + // Max Length: 200 + Description string `json:"description,omitempty"` + // Device Device *int64 `json:"device,omitempty"` @@ -115,6 +119,10 @@ func (m *WritableVirtualDeviceContext) Validate(formats strfmt.Registry) error { res = append(res, err) } + if err := m.validateDescription(formats); err != nil { + res = append(res, err) + } + if err := m.validateIdentifier(formats); err != nil { res = append(res, err) } @@ -157,6 +165,18 @@ func (m *WritableVirtualDeviceContext) validateCreated(formats strfmt.Registry) return nil } +func (m *WritableVirtualDeviceContext) validateDescription(formats strfmt.Registry) error { + if swag.IsZero(m.Description) { // not required + return nil + } + + if err := validate.MaxLength("description", "body", m.Description, 200); err != nil { + return err + } + + return nil +} + func (m *WritableVirtualDeviceContext) validateIdentifier(formats strfmt.Registry) error { if swag.IsZero(m.Identifier) { // not required return nil diff --git a/netbox/models/writable_virtual_machine_with_config_context.go b/netbox/models/writable_virtual_machine_with_config_context.go index a47f9b5231..7413a6304d 100644 --- a/netbox/models/writable_virtual_machine_with_config_context.go +++ b/netbox/models/writable_virtual_machine_with_config_context.go @@ -54,6 +54,10 @@ type WritableVirtualMachineWithConfigContext struct { // Custom fields CustomFields interface{} `json:"custom_fields,omitempty"` + // Description + // Max Length: 200 + Description string `json:"description,omitempty"` + // Device Device *int64 `json:"device,omitempty"` @@ -136,6 +140,10 @@ func (m *WritableVirtualMachineWithConfigContext) Validate(formats strfmt.Regist res = append(res, err) } + if err := m.validateDescription(formats); err != nil { + res = append(res, err) + } + if err := m.validateDisk(formats); err != nil { res = append(res, err) } @@ -186,6 +194,18 @@ func (m *WritableVirtualMachineWithConfigContext) validateCreated(formats strfmt return nil } +func (m *WritableVirtualMachineWithConfigContext) validateDescription(formats strfmt.Registry) error { + if swag.IsZero(m.Description) { // not required + return nil + } + + if err := validate.MaxLength("description", "body", m.Description, 200); err != nil { + return err + } + + return nil +} + func (m *WritableVirtualMachineWithConfigContext) validateDisk(formats strfmt.Registry) error { if swag.IsZero(m.Disk) { // not required return nil