diff --git a/netbox/client/circuits/circuits_circuits_list_parameters.go b/netbox/client/circuits/circuits_circuits_list_parameters.go index 3906eb827e590435e882c8171990568dca7ff6a3..01e99ad00265706171f17ed787832c49a80b8bfe 100644 --- a/netbox/client/circuits/circuits_circuits_list_parameters.go +++ b/netbox/client/circuits/circuits_circuits_list_parameters.go @@ -85,7 +85,7 @@ type CircuitsCircuitsListParams struct { Multiple values may be separated by commas. */ - IDIn *float64 + IDIn *string /*InstallDate*/ InstallDate *string /*Limit @@ -180,13 +180,13 @@ func (o *CircuitsCircuitsListParams) SetCommitRate(commitRate *float64) { } // WithIDIn adds the iDIn to the circuits circuits list params -func (o *CircuitsCircuitsListParams) WithIDIn(iDIn *float64) *CircuitsCircuitsListParams { +func (o *CircuitsCircuitsListParams) WithIDIn(iDIn *string) *CircuitsCircuitsListParams { o.SetIDIn(iDIn) return o } // SetIDIn adds the idIn to the circuits circuits list params -func (o *CircuitsCircuitsListParams) SetIDIn(iDIn *float64) { +func (o *CircuitsCircuitsListParams) SetIDIn(iDIn *string) { o.IDIn = iDIn } @@ -376,11 +376,11 @@ func (o *CircuitsCircuitsListParams) WriteToRequest(r runtime.ClientRequest, reg if o.IDIn != nil { // query param id__in - var qrIDIn float64 + var qrIDIn string if o.IDIn != nil { qrIDIn = *o.IDIn } - qIDIn := swag.FormatFloat64(qrIDIn) + qIDIn := qrIDIn if qIDIn != "" { if err := r.SetQueryParam("id__in", qIDIn); err != nil { return err diff --git a/netbox/client/circuits/circuits_providers_list_parameters.go b/netbox/client/circuits/circuits_providers_list_parameters.go index 69977a62c952aa100c7de71b28b42db32e7932ba..e7a40c046a5a0951d9acc5063dc849a731e2f3dd 100644 --- a/netbox/client/circuits/circuits_providers_list_parameters.go +++ b/netbox/client/circuits/circuits_providers_list_parameters.go @@ -85,7 +85,7 @@ type CircuitsProvidersListParams struct { Multiple values may be separated by commas. */ - IDIn *float64 + IDIn *string /*Limit Number of results to return per page. @@ -168,13 +168,13 @@ func (o *CircuitsProvidersListParams) SetAsn(asn *float64) { } // WithIDIn adds the iDIn to the circuits providers list params -func (o *CircuitsProvidersListParams) WithIDIn(iDIn *float64) *CircuitsProvidersListParams { +func (o *CircuitsProvidersListParams) WithIDIn(iDIn *string) *CircuitsProvidersListParams { o.SetIDIn(iDIn) return o } // SetIDIn adds the idIn to the circuits providers list params -func (o *CircuitsProvidersListParams) SetIDIn(iDIn *float64) { +func (o *CircuitsProvidersListParams) SetIDIn(iDIn *string) { o.IDIn = iDIn } @@ -298,11 +298,11 @@ func (o *CircuitsProvidersListParams) WriteToRequest(r runtime.ClientRequest, re if o.IDIn != nil { // query param id__in - var qrIDIn float64 + var qrIDIn string if o.IDIn != nil { qrIDIn = *o.IDIn } - qIDIn := swag.FormatFloat64(qrIDIn) + qIDIn := qrIDIn if qIDIn != "" { if err := r.SetQueryParam("id__in", qIDIn); err != nil { return err diff --git a/netbox/client/dcim/dcim_device_types_list_parameters.go b/netbox/client/dcim/dcim_device_types_list_parameters.go index d5827fb12e50c16e42535ce36c305db0289eac2c..fe8a8774151f608b9849728d96ee79160d949d49 100644 --- a/netbox/client/dcim/dcim_device_types_list_parameters.go +++ b/netbox/client/dcim/dcim_device_types_list_parameters.go @@ -81,7 +81,7 @@ type DcimDeviceTypesListParams struct { Multiple values may be separated by commas. */ - IDIn *float64 + IDIn *string /*IsConsoleServer*/ IsConsoleServer *string /*IsFullDepth*/ @@ -156,13 +156,13 @@ func (o *DcimDeviceTypesListParams) SetHTTPClient(client *http.Client) { } // WithIDIn adds the iDIn to the dcim device types list params -func (o *DcimDeviceTypesListParams) WithIDIn(iDIn *float64) *DcimDeviceTypesListParams { +func (o *DcimDeviceTypesListParams) WithIDIn(iDIn *string) *DcimDeviceTypesListParams { o.SetIDIn(iDIn) return o } // SetIDIn adds the idIn to the dcim device types list params -func (o *DcimDeviceTypesListParams) SetIDIn(iDIn *float64) { +func (o *DcimDeviceTypesListParams) SetIDIn(iDIn *string) { o.IDIn = iDIn } @@ -331,11 +331,11 @@ func (o *DcimDeviceTypesListParams) WriteToRequest(r runtime.ClientRequest, reg if o.IDIn != nil { // query param id__in - var qrIDIn float64 + var qrIDIn string if o.IDIn != nil { qrIDIn = *o.IDIn } - qIDIn := swag.FormatFloat64(qrIDIn) + qIDIn := qrIDIn if qIDIn != "" { if err := r.SetQueryParam("id__in", qIDIn); err != nil { return err diff --git a/netbox/client/dcim/dcim_devices_list_parameters.go b/netbox/client/dcim/dcim_devices_list_parameters.go index fd09afcaa3891a97602a7013ff614c48b700d4eb..7e18af801957da1a3938cee4bbd845bf076e29fd 100644 --- a/netbox/client/dcim/dcim_devices_list_parameters.go +++ b/netbox/client/dcim/dcim_devices_list_parameters.go @@ -89,7 +89,7 @@ type DcimDevicesListParams struct { Multiple values may be separated by commas. */ - IDIn *float64 + IDIn *string /*IsConsoleServer*/ IsConsoleServer *string /*IsFullDepth*/ @@ -232,13 +232,13 @@ func (o *DcimDevicesListParams) SetHasPrimaryIP(hasPrimaryIP *string) { } // WithIDIn adds the iDIn to the dcim devices list params -func (o *DcimDevicesListParams) WithIDIn(iDIn *float64) *DcimDevicesListParams { +func (o *DcimDevicesListParams) WithIDIn(iDIn *string) *DcimDevicesListParams { o.SetIDIn(iDIn) return o } // SetIDIn adds the idIn to the dcim devices list params -func (o *DcimDevicesListParams) SetIDIn(iDIn *float64) { +func (o *DcimDevicesListParams) SetIDIn(iDIn *string) { o.IDIn = iDIn } @@ -603,11 +603,11 @@ func (o *DcimDevicesListParams) WriteToRequest(r runtime.ClientRequest, reg strf if o.IDIn != nil { // query param id__in - var qrIDIn float64 + var qrIDIn string if o.IDIn != nil { qrIDIn = *o.IDIn } - qIDIn := swag.FormatFloat64(qrIDIn) + qIDIn := qrIDIn if qIDIn != "" { if err := r.SetQueryParam("id__in", qIDIn); err != nil { return err diff --git a/netbox/client/dcim/dcim_rack_reservations_list_parameters.go b/netbox/client/dcim/dcim_rack_reservations_list_parameters.go index df189b54dd6c104f3de82557e04df7cad7dd5568..bf4fd02aba75bb93a06d58a7f583a592ea9d7a5a 100644 --- a/netbox/client/dcim/dcim_rack_reservations_list_parameters.go +++ b/netbox/client/dcim/dcim_rack_reservations_list_parameters.go @@ -87,7 +87,7 @@ type DcimRackReservationsListParams struct { Multiple values may be separated by commas. */ - IDIn *float64 + IDIn *string /*Limit Number of results to return per page. @@ -187,13 +187,13 @@ func (o *DcimRackReservationsListParams) SetGroupID(groupID *string) { } // WithIDIn adds the iDIn to the dcim rack reservations list params -func (o *DcimRackReservationsListParams) WithIDIn(iDIn *float64) *DcimRackReservationsListParams { +func (o *DcimRackReservationsListParams) WithIDIn(iDIn *string) *DcimRackReservationsListParams { o.SetIDIn(iDIn) return o } // SetIDIn adds the idIn to the dcim rack reservations list params -func (o *DcimRackReservationsListParams) SetIDIn(iDIn *float64) { +func (o *DcimRackReservationsListParams) SetIDIn(iDIn *string) { o.IDIn = iDIn } @@ -366,11 +366,11 @@ func (o *DcimRackReservationsListParams) WriteToRequest(r runtime.ClientRequest, if o.IDIn != nil { // query param id__in - var qrIDIn float64 + var qrIDIn string if o.IDIn != nil { qrIDIn = *o.IDIn } - qIDIn := swag.FormatFloat64(qrIDIn) + qIDIn := qrIDIn if qIDIn != "" { if err := r.SetQueryParam("id__in", qIDIn); err != nil { return err diff --git a/netbox/client/dcim/dcim_racks_list_parameters.go b/netbox/client/dcim/dcim_racks_list_parameters.go index de03837a785247d566cdead622da56e220aa6689..c28c053ac8526c6f962d23dd89ea6a800896bf36 100644 --- a/netbox/client/dcim/dcim_racks_list_parameters.go +++ b/netbox/client/dcim/dcim_racks_list_parameters.go @@ -89,7 +89,7 @@ type DcimRacksListParams struct { Multiple values may be separated by commas. */ - IDIn *float64 + IDIn *string /*Limit Number of results to return per page. @@ -208,13 +208,13 @@ func (o *DcimRacksListParams) SetGroupID(groupID *string) { } // WithIDIn adds the iDIn to the dcim racks list params -func (o *DcimRacksListParams) WithIDIn(iDIn *float64) *DcimRacksListParams { +func (o *DcimRacksListParams) WithIDIn(iDIn *string) *DcimRacksListParams { o.SetIDIn(iDIn) return o } // SetIDIn adds the idIn to the dcim racks list params -func (o *DcimRacksListParams) SetIDIn(iDIn *float64) { +func (o *DcimRacksListParams) SetIDIn(iDIn *string) { o.IDIn = iDIn } @@ -447,11 +447,11 @@ func (o *DcimRacksListParams) WriteToRequest(r runtime.ClientRequest, reg strfmt if o.IDIn != nil { // query param id__in - var qrIDIn float64 + var qrIDIn string if o.IDIn != nil { qrIDIn = *o.IDIn } - qIDIn := swag.FormatFloat64(qrIDIn) + qIDIn := qrIDIn if qIDIn != "" { if err := r.SetQueryParam("id__in", qIDIn); err != nil { return err diff --git a/netbox/client/dcim/dcim_sites_list_parameters.go b/netbox/client/dcim/dcim_sites_list_parameters.go index e66eb40d792cf9ec59c1fb692b40303fc2e01011..0257a566ce27b06253ef1aa7796da8390c9d6f45 100644 --- a/netbox/client/dcim/dcim_sites_list_parameters.go +++ b/netbox/client/dcim/dcim_sites_list_parameters.go @@ -91,7 +91,7 @@ type DcimSitesListParams struct { Multiple values may be separated by commas. */ - IDIn *float64 + IDIn *string /*Limit Number of results to return per page. @@ -213,13 +213,13 @@ func (o *DcimSitesListParams) SetFacility(facility *string) { } // WithIDIn adds the iDIn to the dcim sites list params -func (o *DcimSitesListParams) WithIDIn(iDIn *float64) *DcimSitesListParams { +func (o *DcimSitesListParams) WithIDIn(iDIn *string) *DcimSitesListParams { o.SetIDIn(iDIn) return o } // SetIDIn adds the idIn to the dcim sites list params -func (o *DcimSitesListParams) SetIDIn(iDIn *float64) { +func (o *DcimSitesListParams) SetIDIn(iDIn *string) { o.IDIn = iDIn } @@ -424,11 +424,11 @@ func (o *DcimSitesListParams) WriteToRequest(r runtime.ClientRequest, reg strfmt if o.IDIn != nil { // query param id__in - var qrIDIn float64 + var qrIDIn string if o.IDIn != nil { qrIDIn = *o.IDIn } - qIDIn := swag.FormatFloat64(qrIDIn) + qIDIn := qrIDIn if qIDIn != "" { if err := r.SetQueryParam("id__in", qIDIn); err != nil { return err diff --git a/netbox/client/ipam/ip_amaggregates_list_parameters.go b/netbox/client/ipam/ip_amaggregates_list_parameters.go index f05f35696e73865b48a182536c8e9bd5d1d01f7a..9a574db727957f9f59dca326df70d3e47a74b088 100644 --- a/netbox/client/ipam/ip_amaggregates_list_parameters.go +++ b/netbox/client/ipam/ip_amaggregates_list_parameters.go @@ -85,7 +85,7 @@ type IPAMAggregatesListParams struct { Multiple values may be separated by commas. */ - IDIn *float64 + IDIn *string /*Limit Number of results to return per page. @@ -164,13 +164,13 @@ func (o *IPAMAggregatesListParams) SetFamily(family *string) { } // WithIDIn adds the iDIn to the ipam aggregates list params -func (o *IPAMAggregatesListParams) WithIDIn(iDIn *float64) *IPAMAggregatesListParams { +func (o *IPAMAggregatesListParams) WithIDIn(iDIn *string) *IPAMAggregatesListParams { o.SetIDIn(iDIn) return o } // SetIDIn adds the idIn to the ipam aggregates list params -func (o *IPAMAggregatesListParams) SetIDIn(iDIn *float64) { +func (o *IPAMAggregatesListParams) SetIDIn(iDIn *string) { o.IDIn = iDIn } @@ -272,11 +272,11 @@ func (o *IPAMAggregatesListParams) WriteToRequest(r runtime.ClientRequest, reg s if o.IDIn != nil { // query param id__in - var qrIDIn float64 + var qrIDIn string if o.IDIn != nil { qrIDIn = *o.IDIn } - qIDIn := swag.FormatFloat64(qrIDIn) + qIDIn := qrIDIn if qIDIn != "" { if err := r.SetQueryParam("id__in", qIDIn); err != nil { return err diff --git a/netbox/client/ipam/ip_amip_addresses_list_parameters.go b/netbox/client/ipam/ip_amip_addresses_list_parameters.go index cf0dd7a1f0747d0e246b5f1235f346bc96b7dc57..2a03ebd91bc1f238e213627920e3b6543d99e743 100644 --- a/netbox/client/ipam/ip_amip_addresses_list_parameters.go +++ b/netbox/client/ipam/ip_amip_addresses_list_parameters.go @@ -87,7 +87,7 @@ type IPAMIPAddressesListParams struct { Multiple values may be separated by commas. */ - IDIn *float64 + IDIn *string /*InterfaceID*/ InterfaceID *string /*Limit @@ -195,13 +195,13 @@ func (o *IPAMIPAddressesListParams) SetFamily(family *string) { } // WithIDIn adds the iDIn to the ipam ip addresses list params -func (o *IPAMIPAddressesListParams) WithIDIn(iDIn *float64) *IPAMIPAddressesListParams { +func (o *IPAMIPAddressesListParams) WithIDIn(iDIn *string) *IPAMIPAddressesListParams { o.SetIDIn(iDIn) return o } // SetIDIn adds the idIn to the ipam ip addresses list params -func (o *IPAMIPAddressesListParams) SetIDIn(iDIn *float64) { +func (o *IPAMIPAddressesListParams) SetIDIn(iDIn *string) { o.IDIn = iDIn } @@ -418,11 +418,11 @@ func (o *IPAMIPAddressesListParams) WriteToRequest(r runtime.ClientRequest, reg if o.IDIn != nil { // query param id__in - var qrIDIn float64 + var qrIDIn string if o.IDIn != nil { qrIDIn = *o.IDIn } - qIDIn := swag.FormatFloat64(qrIDIn) + qIDIn := qrIDIn if qIDIn != "" { if err := r.SetQueryParam("id__in", qIDIn); err != nil { return err diff --git a/netbox/client/ipam/ip_amprefixes_list_parameters.go b/netbox/client/ipam/ip_amprefixes_list_parameters.go index b43129afa8fb9359a8bce19e458f76c913fce18b..2223c81c95d745212b9b5a2558d42ee9f9e87b13 100644 --- a/netbox/client/ipam/ip_amprefixes_list_parameters.go +++ b/netbox/client/ipam/ip_amprefixes_list_parameters.go @@ -85,7 +85,7 @@ type IPAMPrefixesListParams struct { Multiple values may be separated by commas. */ - IDIn *float64 + IDIn *string /*IsPool*/ IsPool *string /*Limit @@ -190,13 +190,13 @@ func (o *IPAMPrefixesListParams) SetFamily(family *string) { } // WithIDIn adds the iDIn to the ipam prefixes list params -func (o *IPAMPrefixesListParams) WithIDIn(iDIn *float64) *IPAMPrefixesListParams { +func (o *IPAMPrefixesListParams) WithIDIn(iDIn *string) *IPAMPrefixesListParams { o.SetIDIn(iDIn) return o } // SetIDIn adds the idIn to the ipam prefixes list params -func (o *IPAMPrefixesListParams) SetIDIn(iDIn *float64) { +func (o *IPAMPrefixesListParams) SetIDIn(iDIn *string) { o.IDIn = iDIn } @@ -441,11 +441,11 @@ func (o *IPAMPrefixesListParams) WriteToRequest(r runtime.ClientRequest, reg str if o.IDIn != nil { // query param id__in - var qrIDIn float64 + var qrIDIn string if o.IDIn != nil { qrIDIn = *o.IDIn } - qIDIn := swag.FormatFloat64(qrIDIn) + qIDIn := qrIDIn if qIDIn != "" { if err := r.SetQueryParam("id__in", qIDIn); err != nil { return err diff --git a/netbox/client/ipam/ip_amrirs_list_parameters.go b/netbox/client/ipam/ip_amrirs_list_parameters.go index 664554622a3d52b83f0fc2e255672854b44dcf66..26d18def2683d7fcc684d55d4519954bf6958917 100644 --- a/netbox/client/ipam/ip_amrirs_list_parameters.go +++ b/netbox/client/ipam/ip_amrirs_list_parameters.go @@ -81,7 +81,7 @@ type IPAMRirsListParams struct { Multiple values may be separated by commas. */ - IDIn *float64 + IDIn *string /*IsPrivate*/ IsPrivate *string /*Limit @@ -138,13 +138,13 @@ func (o *IPAMRirsListParams) SetHTTPClient(client *http.Client) { } // WithIDIn adds the iDIn to the ipam rirs list params -func (o *IPAMRirsListParams) WithIDIn(iDIn *float64) *IPAMRirsListParams { +func (o *IPAMRirsListParams) WithIDIn(iDIn *string) *IPAMRirsListParams { o.SetIDIn(iDIn) return o } // SetIDIn adds the idIn to the ipam rirs list params -func (o *IPAMRirsListParams) SetIDIn(iDIn *float64) { +func (o *IPAMRirsListParams) SetIDIn(iDIn *string) { o.IDIn = iDIn } @@ -214,11 +214,11 @@ func (o *IPAMRirsListParams) WriteToRequest(r runtime.ClientRequest, reg strfmt. if o.IDIn != nil { // query param id__in - var qrIDIn float64 + var qrIDIn string if o.IDIn != nil { qrIDIn = *o.IDIn } - qIDIn := swag.FormatFloat64(qrIDIn) + qIDIn := qrIDIn if qIDIn != "" { if err := r.SetQueryParam("id__in", qIDIn); err != nil { return err diff --git a/netbox/client/ipam/ip_amvlans_list_parameters.go b/netbox/client/ipam/ip_amvlans_list_parameters.go index 7ab419c067e2717b62746f94b54124d67ea753b0..652225cd3be3dd342f28bde764d5c3bcaaa78b2a 100644 --- a/netbox/client/ipam/ip_amvlans_list_parameters.go +++ b/netbox/client/ipam/ip_amvlans_list_parameters.go @@ -85,7 +85,7 @@ type IPAMVlansListParams struct { Multiple values may be separated by commas. */ - IDIn *float64 + IDIn *string /*Limit Number of results to return per page. @@ -178,13 +178,13 @@ func (o *IPAMVlansListParams) SetGroupID(groupID *string) { } // WithIDIn adds the iDIn to the ipam vlans list params -func (o *IPAMVlansListParams) WithIDIn(iDIn *float64) *IPAMVlansListParams { +func (o *IPAMVlansListParams) WithIDIn(iDIn *string) *IPAMVlansListParams { o.SetIDIn(iDIn) return o } // SetIDIn adds the idIn to the ipam vlans list params -func (o *IPAMVlansListParams) SetIDIn(iDIn *float64) { +func (o *IPAMVlansListParams) SetIDIn(iDIn *string) { o.IDIn = iDIn } @@ -363,11 +363,11 @@ func (o *IPAMVlansListParams) WriteToRequest(r runtime.ClientRequest, reg strfmt if o.IDIn != nil { // query param id__in - var qrIDIn float64 + var qrIDIn string if o.IDIn != nil { qrIDIn = *o.IDIn } - qIDIn := swag.FormatFloat64(qrIDIn) + qIDIn := qrIDIn if qIDIn != "" { if err := r.SetQueryParam("id__in", qIDIn); err != nil { return err diff --git a/netbox/client/ipam/ip_amvrfs_list_parameters.go b/netbox/client/ipam/ip_amvrfs_list_parameters.go index 52aed0f1bacbdd962b314be6de835403c704230c..d84f154a2b29b4e990d42470906e59925fb68f4e 100644 --- a/netbox/client/ipam/ip_amvrfs_list_parameters.go +++ b/netbox/client/ipam/ip_amvrfs_list_parameters.go @@ -83,7 +83,7 @@ type IPAMVrfsListParams struct { Multiple values may be separated by commas. */ - IDIn *float64 + IDIn *string /*Limit Number of results to return per page. @@ -155,13 +155,13 @@ func (o *IPAMVrfsListParams) SetEnforceUnique(enforceUnique *string) { } // WithIDIn adds the iDIn to the ipam vrfs list params -func (o *IPAMVrfsListParams) WithIDIn(iDIn *float64) *IPAMVrfsListParams { +func (o *IPAMVrfsListParams) WithIDIn(iDIn *string) *IPAMVrfsListParams { o.SetIDIn(iDIn) return o } // SetIDIn adds the idIn to the ipam vrfs list params -func (o *IPAMVrfsListParams) SetIDIn(iDIn *float64) { +func (o *IPAMVrfsListParams) SetIDIn(iDIn *string) { o.IDIn = iDIn } @@ -269,11 +269,11 @@ func (o *IPAMVrfsListParams) WriteToRequest(r runtime.ClientRequest, reg strfmt. if o.IDIn != nil { // query param id__in - var qrIDIn float64 + var qrIDIn string if o.IDIn != nil { qrIDIn = *o.IDIn } - qIDIn := swag.FormatFloat64(qrIDIn) + qIDIn := qrIDIn if qIDIn != "" { if err := r.SetQueryParam("id__in", qIDIn); err != nil { return err diff --git a/netbox/client/secrets/secrets_secrets_list_parameters.go b/netbox/client/secrets/secrets_secrets_list_parameters.go index 78297bbcda8e176d2da740ae152ab7c15d6497c4..0692ae4daaccc84a04c2fbf43f5df493b1b52bc3 100644 --- a/netbox/client/secrets/secrets_secrets_list_parameters.go +++ b/netbox/client/secrets/secrets_secrets_list_parameters.go @@ -85,7 +85,7 @@ type SecretsSecretsListParams struct { Multiple values may be separated by commas. */ - IDIn *float64 + IDIn *string /*Limit Number of results to return per page. @@ -166,13 +166,13 @@ func (o *SecretsSecretsListParams) SetDeviceID(deviceID *string) { } // WithIDIn adds the iDIn to the secrets secrets list params -func (o *SecretsSecretsListParams) WithIDIn(iDIn *float64) *SecretsSecretsListParams { +func (o *SecretsSecretsListParams) WithIDIn(iDIn *string) *SecretsSecretsListParams { o.SetIDIn(iDIn) return o } // SetIDIn adds the idIn to the secrets secrets list params -func (o *SecretsSecretsListParams) SetIDIn(iDIn *float64) { +func (o *SecretsSecretsListParams) SetIDIn(iDIn *string) { o.IDIn = iDIn } @@ -285,11 +285,11 @@ func (o *SecretsSecretsListParams) WriteToRequest(r runtime.ClientRequest, reg s if o.IDIn != nil { // query param id__in - var qrIDIn float64 + var qrIDIn string if o.IDIn != nil { qrIDIn = *o.IDIn } - qIDIn := swag.FormatFloat64(qrIDIn) + qIDIn := qrIDIn if qIDIn != "" { if err := r.SetQueryParam("id__in", qIDIn); err != nil { return err diff --git a/netbox/client/tenancy/tenancy_tenants_list_parameters.go b/netbox/client/tenancy/tenancy_tenants_list_parameters.go index f37af05da4c51d29ac0fef8a2014263d0816715a..80e91ea7d17db6543c4c0174a1bcc139ba16df4c 100644 --- a/netbox/client/tenancy/tenancy_tenants_list_parameters.go +++ b/netbox/client/tenancy/tenancy_tenants_list_parameters.go @@ -85,7 +85,7 @@ type TenancyTenantsListParams struct { Multiple values may be separated by commas. */ - IDIn *float64 + IDIn *string /*Limit Number of results to return per page. @@ -162,13 +162,13 @@ func (o *TenancyTenantsListParams) SetGroupID(groupID *string) { } // WithIDIn adds the iDIn to the tenancy tenants list params -func (o *TenancyTenantsListParams) WithIDIn(iDIn *float64) *TenancyTenantsListParams { +func (o *TenancyTenantsListParams) WithIDIn(iDIn *string) *TenancyTenantsListParams { o.SetIDIn(iDIn) return o } // SetIDIn adds the idIn to the tenancy tenants list params -func (o *TenancyTenantsListParams) SetIDIn(iDIn *float64) { +func (o *TenancyTenantsListParams) SetIDIn(iDIn *string) { o.IDIn = iDIn } @@ -259,11 +259,11 @@ func (o *TenancyTenantsListParams) WriteToRequest(r runtime.ClientRequest, reg s if o.IDIn != nil { // query param id__in - var qrIDIn float64 + var qrIDIn string if o.IDIn != nil { qrIDIn = *o.IDIn } - qIDIn := swag.FormatFloat64(qrIDIn) + qIDIn := qrIDIn if qIDIn != "" { if err := r.SetQueryParam("id__in", qIDIn); err != nil { return err diff --git a/netbox/client/virtualization/virtualization_clusters_list_parameters.go b/netbox/client/virtualization/virtualization_clusters_list_parameters.go index 6a4ff5a4fc4909f7c439d4f5f9e1532edbf333d9..c1fd970dd2fcb54a99e8d97e1e63776d6ecaed6b 100644 --- a/netbox/client/virtualization/virtualization_clusters_list_parameters.go +++ b/netbox/client/virtualization/virtualization_clusters_list_parameters.go @@ -85,7 +85,7 @@ type VirtualizationClustersListParams struct { Multiple values may be separated by commas. */ - IDIn *float64 + IDIn *string /*Limit Number of results to return per page. @@ -170,13 +170,13 @@ func (o *VirtualizationClustersListParams) SetGroupID(groupID *string) { } // WithIDIn adds the iDIn to the virtualization clusters list params -func (o *VirtualizationClustersListParams) WithIDIn(iDIn *float64) *VirtualizationClustersListParams { +func (o *VirtualizationClustersListParams) WithIDIn(iDIn *string) *VirtualizationClustersListParams { o.SetIDIn(iDIn) return o } // SetIDIn adds the idIn to the virtualization clusters list params -func (o *VirtualizationClustersListParams) SetIDIn(iDIn *float64) { +func (o *VirtualizationClustersListParams) SetIDIn(iDIn *string) { o.IDIn = iDIn } @@ -311,11 +311,11 @@ func (o *VirtualizationClustersListParams) WriteToRequest(r runtime.ClientReques if o.IDIn != nil { // query param id__in - var qrIDIn float64 + var qrIDIn string if o.IDIn != nil { qrIDIn = *o.IDIn } - qIDIn := swag.FormatFloat64(qrIDIn) + qIDIn := qrIDIn if qIDIn != "" { if err := r.SetQueryParam("id__in", qIDIn); err != nil { return err diff --git a/netbox/client/virtualization/virtualization_virtual_machines_list_parameters.go b/netbox/client/virtualization/virtualization_virtual_machines_list_parameters.go index 0c097dccc441014e8469d6eff26baf203b550e64..7330761bd70fb970f9ce238079ac7bbc4251c944 100644 --- a/netbox/client/virtualization/virtualization_virtual_machines_list_parameters.go +++ b/netbox/client/virtualization/virtualization_virtual_machines_list_parameters.go @@ -93,7 +93,7 @@ type VirtualizationVirtualMachinesListParams struct { Multiple values may be separated by commas. */ - IDIn *float64 + IDIn *string /*Limit Number of results to return per page. @@ -232,13 +232,13 @@ func (o *VirtualizationVirtualMachinesListParams) SetClusterTypeID(clusterTypeID } // WithIDIn adds the iDIn to the virtualization virtual machines list params -func (o *VirtualizationVirtualMachinesListParams) WithIDIn(iDIn *float64) *VirtualizationVirtualMachinesListParams { +func (o *VirtualizationVirtualMachinesListParams) WithIDIn(iDIn *string) *VirtualizationVirtualMachinesListParams { o.SetIDIn(iDIn) return o } // SetIDIn adds the idIn to the virtualization virtual machines list params -func (o *VirtualizationVirtualMachinesListParams) SetIDIn(iDIn *float64) { +func (o *VirtualizationVirtualMachinesListParams) SetIDIn(iDIn *string) { o.IDIn = iDIn } @@ -492,11 +492,11 @@ func (o *VirtualizationVirtualMachinesListParams) WriteToRequest(r runtime.Clien if o.IDIn != nil { // query param id__in - var qrIDIn float64 + var qrIDIn string if o.IDIn != nil { qrIDIn = *o.IDIn } - qIDIn := swag.FormatFloat64(qrIDIn) + qIDIn := qrIDIn if qIDIn != "" { if err := r.SetQueryParam("id__in", qIDIn); err != nil { return err diff --git a/netbox/netbox.go b/netbox/netbox.go index 456abca653ede13992c1184c42c6e57321951aad..2784872ecc7b26cd5fe3142519f5624948a17f94 100644 --- a/netbox/netbox.go +++ b/netbox/netbox.go @@ -1,3 +1,17 @@ +// Copyright 2018 The go-netbox Authors. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + package netbox import ( @@ -9,6 +23,8 @@ import ( "github.com/digitalocean/go-netbox/netbox/client" ) +// NewNetboxAt returns a client which will connect to the given +// hostname, which can optionally include a port, e.g. localhost:8000 func NewNetboxAt(host string) *client.NetBox { t := client.DefaultTransportConfig().WithHost(host) return client.NewHTTPClientWithConfig(strfmt.Default, t) @@ -16,6 +32,10 @@ func NewNetboxAt(host string) *client.NetBox { const authHeaderName = "Authorization" const authHeaderFormat = "Token %v" + +// NewNetboxWithAPIKey returna client which will connect to the given +// hostname (and optionally port), and will set the expected Authorization +// header on each request func NewNetboxWithAPIKey(host string, apiToken string) *client.NetBox { t := runtimeclient.New(host, client.DefaultBasePath, client.DefaultSchemes) t.DefaultAuthentication = runtimeclient.APIKeyAuth(authHeaderName, "header", fmt.Sprintf(authHeaderFormat, apiToken)) diff --git a/swagger.json b/swagger.json index 3ab436e29dea42be12a5ba1815694459d6ca2aa3..fc76f1e451e3d89e4eb3636ed0138cc44d3c2c8a 100644 --- a/swagger.json +++ b/swagger.json @@ -522,7 +522,7 @@ "in": "query", "description": "Multiple values may be separated by commas.", "required": false, - "type": "number" + "type": "string" }, { "name": "q", @@ -801,7 +801,7 @@ "in": "query", "description": "Multiple values may be separated by commas.", "required": false, - "type": "number" + "type": "string" }, { "name": "q", @@ -2586,7 +2586,7 @@ "in": "query", "description": "Multiple values may be separated by commas.", "required": false, - "type": "number" + "type": "string" }, { "name": "q", @@ -2802,7 +2802,7 @@ "in": "query", "description": "Multiple values may be separated by commas.", "required": false, - "type": "number" + "type": "string" }, { "name": "q", @@ -5563,7 +5563,7 @@ "in": "query", "description": "Multiple values may be separated by commas.", "required": false, - "type": "number" + "type": "string" }, { "name": "q", @@ -6051,7 +6051,7 @@ "in": "query", "description": "Multiple values may be separated by commas.", "required": false, - "type": "number" + "type": "string" }, { "name": "q", @@ -6594,7 +6594,7 @@ "in": "query", "description": "Multiple values may be separated by commas.", "required": false, - "type": "number" + "type": "string" }, { "name": "status", @@ -7982,7 +7982,7 @@ "in": "query", "description": "Multiple values may be separated by commas.", "required": false, - "type": "number" + "type": "string" }, { "name": "q", @@ -8191,7 +8191,7 @@ "in": "query", "description": "Multiple values may be separated by commas.", "required": false, - "type": "number" + "type": "string" }, { "name": "q", @@ -8484,7 +8484,7 @@ "in": "query", "description": "Multiple values may be separated by commas.", "required": false, - "type": "number" + "type": "string" }, { "name": "q", @@ -8902,7 +8902,7 @@ "in": "query", "description": "Multiple values may be separated by commas.", "required": false, - "type": "number" + "type": "string" }, { "name": "limit", @@ -9710,7 +9710,7 @@ "in": "query", "description": "Multiple values may be separated by commas.", "required": false, - "type": "number" + "type": "string" }, { "name": "q", @@ -9982,7 +9982,7 @@ "in": "query", "description": "Multiple values may be separated by commas.", "required": false, - "type": "number" + "type": "string" }, { "name": "q", @@ -10450,7 +10450,7 @@ "in": "query", "description": "Multiple values may be separated by commas.", "required": false, - "type": "number" + "type": "string" }, { "name": "q", @@ -10900,7 +10900,7 @@ "in": "query", "description": "Multiple values may be separated by commas.", "required": false, - "type": "number" + "type": "string" }, { "name": "q", @@ -11496,7 +11496,7 @@ "in": "query", "description": "Multiple values may be separated by commas.", "required": false, - "type": "number" + "type": "string" }, { "name": "q", @@ -11956,7 +11956,7 @@ "in": "query", "description": "Multiple values may be separated by commas.", "required": false, - "type": "number" + "type": "string" }, { "name": "q",