github.com/digitalocean/go-netbox@v0.0.2/netbox/client/dcim/dcim_cables_list_parameters.go (about)

     1  // Code generated by go-swagger; DO NOT EDIT.
     2  
     3  // Copyright 2020 The go-netbox Authors.
     4  //
     5  // Licensed under the Apache License, Version 2.0 (the "License");
     6  // you may not use this file except in compliance with the License.
     7  // You may obtain a copy of the License at
     8  //
     9  //   http://www.apache.org/licenses/LICENSE-2.0
    10  //
    11  // Unless required by applicable law or agreed to in writing, software
    12  // distributed under the License is distributed on an "AS IS" BASIS,
    13  // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
    14  // See the License for the specific language governing permissions and
    15  // limitations under the License.
    16  //
    17  
    18  package dcim
    19  
    20  // This file was generated by the swagger tool.
    21  // Editing this file might prove futile when you re-run the swagger generate command
    22  
    23  import (
    24  	"context"
    25  	"net/http"
    26  	"time"
    27  
    28  	"github.com/go-openapi/errors"
    29  	"github.com/go-openapi/runtime"
    30  	cr "github.com/go-openapi/runtime/client"
    31  	"github.com/go-openapi/strfmt"
    32  	"github.com/go-openapi/swag"
    33  )
    34  
    35  // NewDcimCablesListParams creates a new DcimCablesListParams object,
    36  // with the default timeout for this client.
    37  //
    38  // Default values are not hydrated, since defaults are normally applied by the API server side.
    39  //
    40  // To enforce default values in parameter, use SetDefaults or WithDefaults.
    41  func NewDcimCablesListParams() *DcimCablesListParams {
    42  	return &DcimCablesListParams{
    43  		timeout: cr.DefaultTimeout,
    44  	}
    45  }
    46  
    47  // NewDcimCablesListParamsWithTimeout creates a new DcimCablesListParams object
    48  // with the ability to set a timeout on a request.
    49  func NewDcimCablesListParamsWithTimeout(timeout time.Duration) *DcimCablesListParams {
    50  	return &DcimCablesListParams{
    51  		timeout: timeout,
    52  	}
    53  }
    54  
    55  // NewDcimCablesListParamsWithContext creates a new DcimCablesListParams object
    56  // with the ability to set a context for a request.
    57  func NewDcimCablesListParamsWithContext(ctx context.Context) *DcimCablesListParams {
    58  	return &DcimCablesListParams{
    59  		Context: ctx,
    60  	}
    61  }
    62  
    63  // NewDcimCablesListParamsWithHTTPClient creates a new DcimCablesListParams object
    64  // with the ability to set a custom HTTPClient for a request.
    65  func NewDcimCablesListParamsWithHTTPClient(client *http.Client) *DcimCablesListParams {
    66  	return &DcimCablesListParams{
    67  		HTTPClient: client,
    68  	}
    69  }
    70  
    71  /* DcimCablesListParams contains all the parameters to send to the API endpoint
    72     for the dcim cables list operation.
    73  
    74     Typically these are written to a http.Request.
    75  */
    76  type DcimCablesListParams struct {
    77  
    78  	// Color.
    79  	Color *string
    80  
    81  	// Colorn.
    82  	Colorn *string
    83  
    84  	// Created.
    85  	Created *string
    86  
    87  	// CreatedGte.
    88  	CreatedGte *string
    89  
    90  	// CreatedLte.
    91  	CreatedLte *string
    92  
    93  	// Device.
    94  	Device *string
    95  
    96  	// DeviceID.
    97  	DeviceID *string
    98  
    99  	// ID.
   100  	ID *string
   101  
   102  	// IDGt.
   103  	IDGt *string
   104  
   105  	// IDGte.
   106  	IDGte *string
   107  
   108  	// IDLt.
   109  	IDLt *string
   110  
   111  	// IDLte.
   112  	IDLte *string
   113  
   114  	// IDn.
   115  	IDn *string
   116  
   117  	// Label.
   118  	Label *string
   119  
   120  	// LabelEmpty.
   121  	LabelEmpty *string
   122  
   123  	// LabelIc.
   124  	LabelIc *string
   125  
   126  	// LabelIe.
   127  	LabelIe *string
   128  
   129  	// LabelIew.
   130  	LabelIew *string
   131  
   132  	// LabelIsw.
   133  	LabelIsw *string
   134  
   135  	// Labeln.
   136  	Labeln *string
   137  
   138  	// LabelNic.
   139  	LabelNic *string
   140  
   141  	// LabelNie.
   142  	LabelNie *string
   143  
   144  	// LabelNiew.
   145  	LabelNiew *string
   146  
   147  	// LabelNisw.
   148  	LabelNisw *string
   149  
   150  	// LastUpdated.
   151  	LastUpdated *string
   152  
   153  	// LastUpdatedGte.
   154  	LastUpdatedGte *string
   155  
   156  	// LastUpdatedLte.
   157  	LastUpdatedLte *string
   158  
   159  	// Length.
   160  	Length *string
   161  
   162  	// LengthGt.
   163  	LengthGt *string
   164  
   165  	// LengthGte.
   166  	LengthGte *string
   167  
   168  	// LengthLt.
   169  	LengthLt *string
   170  
   171  	// LengthLte.
   172  	LengthLte *string
   173  
   174  	// Lengthn.
   175  	Lengthn *string
   176  
   177  	// LengthUnit.
   178  	LengthUnit *string
   179  
   180  	// LengthUnitn.
   181  	LengthUnitn *string
   182  
   183  	/* Limit.
   184  
   185  	   Number of results to return per page.
   186  	*/
   187  	Limit *int64
   188  
   189  	/* Offset.
   190  
   191  	   The initial index from which to return the results.
   192  	*/
   193  	Offset *int64
   194  
   195  	// Q.
   196  	Q *string
   197  
   198  	// Rack.
   199  	Rack *string
   200  
   201  	// RackID.
   202  	RackID *string
   203  
   204  	// Site.
   205  	Site *string
   206  
   207  	// SiteID.
   208  	SiteID *string
   209  
   210  	// Status.
   211  	Status *string
   212  
   213  	// Statusn.
   214  	Statusn *string
   215  
   216  	// Tag.
   217  	Tag *string
   218  
   219  	// Tagn.
   220  	Tagn *string
   221  
   222  	// Tenant.
   223  	Tenant *string
   224  
   225  	// TenantID.
   226  	TenantID *string
   227  
   228  	// Type.
   229  	Type *string
   230  
   231  	// Typen.
   232  	Typen *string
   233  
   234  	timeout    time.Duration
   235  	Context    context.Context
   236  	HTTPClient *http.Client
   237  }
   238  
   239  // WithDefaults hydrates default values in the dcim cables list params (not the query body).
   240  //
   241  // All values with no default are reset to their zero value.
   242  func (o *DcimCablesListParams) WithDefaults() *DcimCablesListParams {
   243  	o.SetDefaults()
   244  	return o
   245  }
   246  
   247  // SetDefaults hydrates default values in the dcim cables list params (not the query body).
   248  //
   249  // All values with no default are reset to their zero value.
   250  func (o *DcimCablesListParams) SetDefaults() {
   251  	// no default values defined for this parameter
   252  }
   253  
   254  // WithTimeout adds the timeout to the dcim cables list params
   255  func (o *DcimCablesListParams) WithTimeout(timeout time.Duration) *DcimCablesListParams {
   256  	o.SetTimeout(timeout)
   257  	return o
   258  }
   259  
   260  // SetTimeout adds the timeout to the dcim cables list params
   261  func (o *DcimCablesListParams) SetTimeout(timeout time.Duration) {
   262  	o.timeout = timeout
   263  }
   264  
   265  // WithContext adds the context to the dcim cables list params
   266  func (o *DcimCablesListParams) WithContext(ctx context.Context) *DcimCablesListParams {
   267  	o.SetContext(ctx)
   268  	return o
   269  }
   270  
   271  // SetContext adds the context to the dcim cables list params
   272  func (o *DcimCablesListParams) SetContext(ctx context.Context) {
   273  	o.Context = ctx
   274  }
   275  
   276  // WithHTTPClient adds the HTTPClient to the dcim cables list params
   277  func (o *DcimCablesListParams) WithHTTPClient(client *http.Client) *DcimCablesListParams {
   278  	o.SetHTTPClient(client)
   279  	return o
   280  }
   281  
   282  // SetHTTPClient adds the HTTPClient to the dcim cables list params
   283  func (o *DcimCablesListParams) SetHTTPClient(client *http.Client) {
   284  	o.HTTPClient = client
   285  }
   286  
   287  // WithColor adds the color to the dcim cables list params
   288  func (o *DcimCablesListParams) WithColor(color *string) *DcimCablesListParams {
   289  	o.SetColor(color)
   290  	return o
   291  }
   292  
   293  // SetColor adds the color to the dcim cables list params
   294  func (o *DcimCablesListParams) SetColor(color *string) {
   295  	o.Color = color
   296  }
   297  
   298  // WithColorn adds the colorn to the dcim cables list params
   299  func (o *DcimCablesListParams) WithColorn(colorn *string) *DcimCablesListParams {
   300  	o.SetColorn(colorn)
   301  	return o
   302  }
   303  
   304  // SetColorn adds the colorN to the dcim cables list params
   305  func (o *DcimCablesListParams) SetColorn(colorn *string) {
   306  	o.Colorn = colorn
   307  }
   308  
   309  // WithCreated adds the created to the dcim cables list params
   310  func (o *DcimCablesListParams) WithCreated(created *string) *DcimCablesListParams {
   311  	o.SetCreated(created)
   312  	return o
   313  }
   314  
   315  // SetCreated adds the created to the dcim cables list params
   316  func (o *DcimCablesListParams) SetCreated(created *string) {
   317  	o.Created = created
   318  }
   319  
   320  // WithCreatedGte adds the createdGte to the dcim cables list params
   321  func (o *DcimCablesListParams) WithCreatedGte(createdGte *string) *DcimCablesListParams {
   322  	o.SetCreatedGte(createdGte)
   323  	return o
   324  }
   325  
   326  // SetCreatedGte adds the createdGte to the dcim cables list params
   327  func (o *DcimCablesListParams) SetCreatedGte(createdGte *string) {
   328  	o.CreatedGte = createdGte
   329  }
   330  
   331  // WithCreatedLte adds the createdLte to the dcim cables list params
   332  func (o *DcimCablesListParams) WithCreatedLte(createdLte *string) *DcimCablesListParams {
   333  	o.SetCreatedLte(createdLte)
   334  	return o
   335  }
   336  
   337  // SetCreatedLte adds the createdLte to the dcim cables list params
   338  func (o *DcimCablesListParams) SetCreatedLte(createdLte *string) {
   339  	o.CreatedLte = createdLte
   340  }
   341  
   342  // WithDevice adds the device to the dcim cables list params
   343  func (o *DcimCablesListParams) WithDevice(device *string) *DcimCablesListParams {
   344  	o.SetDevice(device)
   345  	return o
   346  }
   347  
   348  // SetDevice adds the device to the dcim cables list params
   349  func (o *DcimCablesListParams) SetDevice(device *string) {
   350  	o.Device = device
   351  }
   352  
   353  // WithDeviceID adds the deviceID to the dcim cables list params
   354  func (o *DcimCablesListParams) WithDeviceID(deviceID *string) *DcimCablesListParams {
   355  	o.SetDeviceID(deviceID)
   356  	return o
   357  }
   358  
   359  // SetDeviceID adds the deviceId to the dcim cables list params
   360  func (o *DcimCablesListParams) SetDeviceID(deviceID *string) {
   361  	o.DeviceID = deviceID
   362  }
   363  
   364  // WithID adds the id to the dcim cables list params
   365  func (o *DcimCablesListParams) WithID(id *string) *DcimCablesListParams {
   366  	o.SetID(id)
   367  	return o
   368  }
   369  
   370  // SetID adds the id to the dcim cables list params
   371  func (o *DcimCablesListParams) SetID(id *string) {
   372  	o.ID = id
   373  }
   374  
   375  // WithIDGt adds the iDGt to the dcim cables list params
   376  func (o *DcimCablesListParams) WithIDGt(iDGt *string) *DcimCablesListParams {
   377  	o.SetIDGt(iDGt)
   378  	return o
   379  }
   380  
   381  // SetIDGt adds the idGt to the dcim cables list params
   382  func (o *DcimCablesListParams) SetIDGt(iDGt *string) {
   383  	o.IDGt = iDGt
   384  }
   385  
   386  // WithIDGte adds the iDGte to the dcim cables list params
   387  func (o *DcimCablesListParams) WithIDGte(iDGte *string) *DcimCablesListParams {
   388  	o.SetIDGte(iDGte)
   389  	return o
   390  }
   391  
   392  // SetIDGte adds the idGte to the dcim cables list params
   393  func (o *DcimCablesListParams) SetIDGte(iDGte *string) {
   394  	o.IDGte = iDGte
   395  }
   396  
   397  // WithIDLt adds the iDLt to the dcim cables list params
   398  func (o *DcimCablesListParams) WithIDLt(iDLt *string) *DcimCablesListParams {
   399  	o.SetIDLt(iDLt)
   400  	return o
   401  }
   402  
   403  // SetIDLt adds the idLt to the dcim cables list params
   404  func (o *DcimCablesListParams) SetIDLt(iDLt *string) {
   405  	o.IDLt = iDLt
   406  }
   407  
   408  // WithIDLte adds the iDLte to the dcim cables list params
   409  func (o *DcimCablesListParams) WithIDLte(iDLte *string) *DcimCablesListParams {
   410  	o.SetIDLte(iDLte)
   411  	return o
   412  }
   413  
   414  // SetIDLte adds the idLte to the dcim cables list params
   415  func (o *DcimCablesListParams) SetIDLte(iDLte *string) {
   416  	o.IDLte = iDLte
   417  }
   418  
   419  // WithIDn adds the iDn to the dcim cables list params
   420  func (o *DcimCablesListParams) WithIDn(iDn *string) *DcimCablesListParams {
   421  	o.SetIDn(iDn)
   422  	return o
   423  }
   424  
   425  // SetIDn adds the idN to the dcim cables list params
   426  func (o *DcimCablesListParams) SetIDn(iDn *string) {
   427  	o.IDn = iDn
   428  }
   429  
   430  // WithLabel adds the label to the dcim cables list params
   431  func (o *DcimCablesListParams) WithLabel(label *string) *DcimCablesListParams {
   432  	o.SetLabel(label)
   433  	return o
   434  }
   435  
   436  // SetLabel adds the label to the dcim cables list params
   437  func (o *DcimCablesListParams) SetLabel(label *string) {
   438  	o.Label = label
   439  }
   440  
   441  // WithLabelEmpty adds the labelEmpty to the dcim cables list params
   442  func (o *DcimCablesListParams) WithLabelEmpty(labelEmpty *string) *DcimCablesListParams {
   443  	o.SetLabelEmpty(labelEmpty)
   444  	return o
   445  }
   446  
   447  // SetLabelEmpty adds the labelEmpty to the dcim cables list params
   448  func (o *DcimCablesListParams) SetLabelEmpty(labelEmpty *string) {
   449  	o.LabelEmpty = labelEmpty
   450  }
   451  
   452  // WithLabelIc adds the labelIc to the dcim cables list params
   453  func (o *DcimCablesListParams) WithLabelIc(labelIc *string) *DcimCablesListParams {
   454  	o.SetLabelIc(labelIc)
   455  	return o
   456  }
   457  
   458  // SetLabelIc adds the labelIc to the dcim cables list params
   459  func (o *DcimCablesListParams) SetLabelIc(labelIc *string) {
   460  	o.LabelIc = labelIc
   461  }
   462  
   463  // WithLabelIe adds the labelIe to the dcim cables list params
   464  func (o *DcimCablesListParams) WithLabelIe(labelIe *string) *DcimCablesListParams {
   465  	o.SetLabelIe(labelIe)
   466  	return o
   467  }
   468  
   469  // SetLabelIe adds the labelIe to the dcim cables list params
   470  func (o *DcimCablesListParams) SetLabelIe(labelIe *string) {
   471  	o.LabelIe = labelIe
   472  }
   473  
   474  // WithLabelIew adds the labelIew to the dcim cables list params
   475  func (o *DcimCablesListParams) WithLabelIew(labelIew *string) *DcimCablesListParams {
   476  	o.SetLabelIew(labelIew)
   477  	return o
   478  }
   479  
   480  // SetLabelIew adds the labelIew to the dcim cables list params
   481  func (o *DcimCablesListParams) SetLabelIew(labelIew *string) {
   482  	o.LabelIew = labelIew
   483  }
   484  
   485  // WithLabelIsw adds the labelIsw to the dcim cables list params
   486  func (o *DcimCablesListParams) WithLabelIsw(labelIsw *string) *DcimCablesListParams {
   487  	o.SetLabelIsw(labelIsw)
   488  	return o
   489  }
   490  
   491  // SetLabelIsw adds the labelIsw to the dcim cables list params
   492  func (o *DcimCablesListParams) SetLabelIsw(labelIsw *string) {
   493  	o.LabelIsw = labelIsw
   494  }
   495  
   496  // WithLabeln adds the labeln to the dcim cables list params
   497  func (o *DcimCablesListParams) WithLabeln(labeln *string) *DcimCablesListParams {
   498  	o.SetLabeln(labeln)
   499  	return o
   500  }
   501  
   502  // SetLabeln adds the labelN to the dcim cables list params
   503  func (o *DcimCablesListParams) SetLabeln(labeln *string) {
   504  	o.Labeln = labeln
   505  }
   506  
   507  // WithLabelNic adds the labelNic to the dcim cables list params
   508  func (o *DcimCablesListParams) WithLabelNic(labelNic *string) *DcimCablesListParams {
   509  	o.SetLabelNic(labelNic)
   510  	return o
   511  }
   512  
   513  // SetLabelNic adds the labelNic to the dcim cables list params
   514  func (o *DcimCablesListParams) SetLabelNic(labelNic *string) {
   515  	o.LabelNic = labelNic
   516  }
   517  
   518  // WithLabelNie adds the labelNie to the dcim cables list params
   519  func (o *DcimCablesListParams) WithLabelNie(labelNie *string) *DcimCablesListParams {
   520  	o.SetLabelNie(labelNie)
   521  	return o
   522  }
   523  
   524  // SetLabelNie adds the labelNie to the dcim cables list params
   525  func (o *DcimCablesListParams) SetLabelNie(labelNie *string) {
   526  	o.LabelNie = labelNie
   527  }
   528  
   529  // WithLabelNiew adds the labelNiew to the dcim cables list params
   530  func (o *DcimCablesListParams) WithLabelNiew(labelNiew *string) *DcimCablesListParams {
   531  	o.SetLabelNiew(labelNiew)
   532  	return o
   533  }
   534  
   535  // SetLabelNiew adds the labelNiew to the dcim cables list params
   536  func (o *DcimCablesListParams) SetLabelNiew(labelNiew *string) {
   537  	o.LabelNiew = labelNiew
   538  }
   539  
   540  // WithLabelNisw adds the labelNisw to the dcim cables list params
   541  func (o *DcimCablesListParams) WithLabelNisw(labelNisw *string) *DcimCablesListParams {
   542  	o.SetLabelNisw(labelNisw)
   543  	return o
   544  }
   545  
   546  // SetLabelNisw adds the labelNisw to the dcim cables list params
   547  func (o *DcimCablesListParams) SetLabelNisw(labelNisw *string) {
   548  	o.LabelNisw = labelNisw
   549  }
   550  
   551  // WithLastUpdated adds the lastUpdated to the dcim cables list params
   552  func (o *DcimCablesListParams) WithLastUpdated(lastUpdated *string) *DcimCablesListParams {
   553  	o.SetLastUpdated(lastUpdated)
   554  	return o
   555  }
   556  
   557  // SetLastUpdated adds the lastUpdated to the dcim cables list params
   558  func (o *DcimCablesListParams) SetLastUpdated(lastUpdated *string) {
   559  	o.LastUpdated = lastUpdated
   560  }
   561  
   562  // WithLastUpdatedGte adds the lastUpdatedGte to the dcim cables list params
   563  func (o *DcimCablesListParams) WithLastUpdatedGte(lastUpdatedGte *string) *DcimCablesListParams {
   564  	o.SetLastUpdatedGte(lastUpdatedGte)
   565  	return o
   566  }
   567  
   568  // SetLastUpdatedGte adds the lastUpdatedGte to the dcim cables list params
   569  func (o *DcimCablesListParams) SetLastUpdatedGte(lastUpdatedGte *string) {
   570  	o.LastUpdatedGte = lastUpdatedGte
   571  }
   572  
   573  // WithLastUpdatedLte adds the lastUpdatedLte to the dcim cables list params
   574  func (o *DcimCablesListParams) WithLastUpdatedLte(lastUpdatedLte *string) *DcimCablesListParams {
   575  	o.SetLastUpdatedLte(lastUpdatedLte)
   576  	return o
   577  }
   578  
   579  // SetLastUpdatedLte adds the lastUpdatedLte to the dcim cables list params
   580  func (o *DcimCablesListParams) SetLastUpdatedLte(lastUpdatedLte *string) {
   581  	o.LastUpdatedLte = lastUpdatedLte
   582  }
   583  
   584  // WithLength adds the length to the dcim cables list params
   585  func (o *DcimCablesListParams) WithLength(length *string) *DcimCablesListParams {
   586  	o.SetLength(length)
   587  	return o
   588  }
   589  
   590  // SetLength adds the length to the dcim cables list params
   591  func (o *DcimCablesListParams) SetLength(length *string) {
   592  	o.Length = length
   593  }
   594  
   595  // WithLengthGt adds the lengthGt to the dcim cables list params
   596  func (o *DcimCablesListParams) WithLengthGt(lengthGt *string) *DcimCablesListParams {
   597  	o.SetLengthGt(lengthGt)
   598  	return o
   599  }
   600  
   601  // SetLengthGt adds the lengthGt to the dcim cables list params
   602  func (o *DcimCablesListParams) SetLengthGt(lengthGt *string) {
   603  	o.LengthGt = lengthGt
   604  }
   605  
   606  // WithLengthGte adds the lengthGte to the dcim cables list params
   607  func (o *DcimCablesListParams) WithLengthGte(lengthGte *string) *DcimCablesListParams {
   608  	o.SetLengthGte(lengthGte)
   609  	return o
   610  }
   611  
   612  // SetLengthGte adds the lengthGte to the dcim cables list params
   613  func (o *DcimCablesListParams) SetLengthGte(lengthGte *string) {
   614  	o.LengthGte = lengthGte
   615  }
   616  
   617  // WithLengthLt adds the lengthLt to the dcim cables list params
   618  func (o *DcimCablesListParams) WithLengthLt(lengthLt *string) *DcimCablesListParams {
   619  	o.SetLengthLt(lengthLt)
   620  	return o
   621  }
   622  
   623  // SetLengthLt adds the lengthLt to the dcim cables list params
   624  func (o *DcimCablesListParams) SetLengthLt(lengthLt *string) {
   625  	o.LengthLt = lengthLt
   626  }
   627  
   628  // WithLengthLte adds the lengthLte to the dcim cables list params
   629  func (o *DcimCablesListParams) WithLengthLte(lengthLte *string) *DcimCablesListParams {
   630  	o.SetLengthLte(lengthLte)
   631  	return o
   632  }
   633  
   634  // SetLengthLte adds the lengthLte to the dcim cables list params
   635  func (o *DcimCablesListParams) SetLengthLte(lengthLte *string) {
   636  	o.LengthLte = lengthLte
   637  }
   638  
   639  // WithLengthn adds the lengthn to the dcim cables list params
   640  func (o *DcimCablesListParams) WithLengthn(lengthn *string) *DcimCablesListParams {
   641  	o.SetLengthn(lengthn)
   642  	return o
   643  }
   644  
   645  // SetLengthn adds the lengthN to the dcim cables list params
   646  func (o *DcimCablesListParams) SetLengthn(lengthn *string) {
   647  	o.Lengthn = lengthn
   648  }
   649  
   650  // WithLengthUnit adds the lengthUnit to the dcim cables list params
   651  func (o *DcimCablesListParams) WithLengthUnit(lengthUnit *string) *DcimCablesListParams {
   652  	o.SetLengthUnit(lengthUnit)
   653  	return o
   654  }
   655  
   656  // SetLengthUnit adds the lengthUnit to the dcim cables list params
   657  func (o *DcimCablesListParams) SetLengthUnit(lengthUnit *string) {
   658  	o.LengthUnit = lengthUnit
   659  }
   660  
   661  // WithLengthUnitn adds the lengthUnitn to the dcim cables list params
   662  func (o *DcimCablesListParams) WithLengthUnitn(lengthUnitn *string) *DcimCablesListParams {
   663  	o.SetLengthUnitn(lengthUnitn)
   664  	return o
   665  }
   666  
   667  // SetLengthUnitn adds the lengthUnitN to the dcim cables list params
   668  func (o *DcimCablesListParams) SetLengthUnitn(lengthUnitn *string) {
   669  	o.LengthUnitn = lengthUnitn
   670  }
   671  
   672  // WithLimit adds the limit to the dcim cables list params
   673  func (o *DcimCablesListParams) WithLimit(limit *int64) *DcimCablesListParams {
   674  	o.SetLimit(limit)
   675  	return o
   676  }
   677  
   678  // SetLimit adds the limit to the dcim cables list params
   679  func (o *DcimCablesListParams) SetLimit(limit *int64) {
   680  	o.Limit = limit
   681  }
   682  
   683  // WithOffset adds the offset to the dcim cables list params
   684  func (o *DcimCablesListParams) WithOffset(offset *int64) *DcimCablesListParams {
   685  	o.SetOffset(offset)
   686  	return o
   687  }
   688  
   689  // SetOffset adds the offset to the dcim cables list params
   690  func (o *DcimCablesListParams) SetOffset(offset *int64) {
   691  	o.Offset = offset
   692  }
   693  
   694  // WithQ adds the q to the dcim cables list params
   695  func (o *DcimCablesListParams) WithQ(q *string) *DcimCablesListParams {
   696  	o.SetQ(q)
   697  	return o
   698  }
   699  
   700  // SetQ adds the q to the dcim cables list params
   701  func (o *DcimCablesListParams) SetQ(q *string) {
   702  	o.Q = q
   703  }
   704  
   705  // WithRack adds the rack to the dcim cables list params
   706  func (o *DcimCablesListParams) WithRack(rack *string) *DcimCablesListParams {
   707  	o.SetRack(rack)
   708  	return o
   709  }
   710  
   711  // SetRack adds the rack to the dcim cables list params
   712  func (o *DcimCablesListParams) SetRack(rack *string) {
   713  	o.Rack = rack
   714  }
   715  
   716  // WithRackID adds the rackID to the dcim cables list params
   717  func (o *DcimCablesListParams) WithRackID(rackID *string) *DcimCablesListParams {
   718  	o.SetRackID(rackID)
   719  	return o
   720  }
   721  
   722  // SetRackID adds the rackId to the dcim cables list params
   723  func (o *DcimCablesListParams) SetRackID(rackID *string) {
   724  	o.RackID = rackID
   725  }
   726  
   727  // WithSite adds the site to the dcim cables list params
   728  func (o *DcimCablesListParams) WithSite(site *string) *DcimCablesListParams {
   729  	o.SetSite(site)
   730  	return o
   731  }
   732  
   733  // SetSite adds the site to the dcim cables list params
   734  func (o *DcimCablesListParams) SetSite(site *string) {
   735  	o.Site = site
   736  }
   737  
   738  // WithSiteID adds the siteID to the dcim cables list params
   739  func (o *DcimCablesListParams) WithSiteID(siteID *string) *DcimCablesListParams {
   740  	o.SetSiteID(siteID)
   741  	return o
   742  }
   743  
   744  // SetSiteID adds the siteId to the dcim cables list params
   745  func (o *DcimCablesListParams) SetSiteID(siteID *string) {
   746  	o.SiteID = siteID
   747  }
   748  
   749  // WithStatus adds the status to the dcim cables list params
   750  func (o *DcimCablesListParams) WithStatus(status *string) *DcimCablesListParams {
   751  	o.SetStatus(status)
   752  	return o
   753  }
   754  
   755  // SetStatus adds the status to the dcim cables list params
   756  func (o *DcimCablesListParams) SetStatus(status *string) {
   757  	o.Status = status
   758  }
   759  
   760  // WithStatusn adds the statusn to the dcim cables list params
   761  func (o *DcimCablesListParams) WithStatusn(statusn *string) *DcimCablesListParams {
   762  	o.SetStatusn(statusn)
   763  	return o
   764  }
   765  
   766  // SetStatusn adds the statusN to the dcim cables list params
   767  func (o *DcimCablesListParams) SetStatusn(statusn *string) {
   768  	o.Statusn = statusn
   769  }
   770  
   771  // WithTag adds the tag to the dcim cables list params
   772  func (o *DcimCablesListParams) WithTag(tag *string) *DcimCablesListParams {
   773  	o.SetTag(tag)
   774  	return o
   775  }
   776  
   777  // SetTag adds the tag to the dcim cables list params
   778  func (o *DcimCablesListParams) SetTag(tag *string) {
   779  	o.Tag = tag
   780  }
   781  
   782  // WithTagn adds the tagn to the dcim cables list params
   783  func (o *DcimCablesListParams) WithTagn(tagn *string) *DcimCablesListParams {
   784  	o.SetTagn(tagn)
   785  	return o
   786  }
   787  
   788  // SetTagn adds the tagN to the dcim cables list params
   789  func (o *DcimCablesListParams) SetTagn(tagn *string) {
   790  	o.Tagn = tagn
   791  }
   792  
   793  // WithTenant adds the tenant to the dcim cables list params
   794  func (o *DcimCablesListParams) WithTenant(tenant *string) *DcimCablesListParams {
   795  	o.SetTenant(tenant)
   796  	return o
   797  }
   798  
   799  // SetTenant adds the tenant to the dcim cables list params
   800  func (o *DcimCablesListParams) SetTenant(tenant *string) {
   801  	o.Tenant = tenant
   802  }
   803  
   804  // WithTenantID adds the tenantID to the dcim cables list params
   805  func (o *DcimCablesListParams) WithTenantID(tenantID *string) *DcimCablesListParams {
   806  	o.SetTenantID(tenantID)
   807  	return o
   808  }
   809  
   810  // SetTenantID adds the tenantId to the dcim cables list params
   811  func (o *DcimCablesListParams) SetTenantID(tenantID *string) {
   812  	o.TenantID = tenantID
   813  }
   814  
   815  // WithType adds the typeVar to the dcim cables list params
   816  func (o *DcimCablesListParams) WithType(typeVar *string) *DcimCablesListParams {
   817  	o.SetType(typeVar)
   818  	return o
   819  }
   820  
   821  // SetType adds the type to the dcim cables list params
   822  func (o *DcimCablesListParams) SetType(typeVar *string) {
   823  	o.Type = typeVar
   824  }
   825  
   826  // WithTypen adds the typen to the dcim cables list params
   827  func (o *DcimCablesListParams) WithTypen(typen *string) *DcimCablesListParams {
   828  	o.SetTypen(typen)
   829  	return o
   830  }
   831  
   832  // SetTypen adds the typeN to the dcim cables list params
   833  func (o *DcimCablesListParams) SetTypen(typen *string) {
   834  	o.Typen = typen
   835  }
   836  
   837  // WriteToRequest writes these params to a swagger request
   838  func (o *DcimCablesListParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error {
   839  
   840  	if err := r.SetTimeout(o.timeout); err != nil {
   841  		return err
   842  	}
   843  	var res []error
   844  
   845  	if o.Color != nil {
   846  
   847  		// query param color
   848  		var qrColor string
   849  
   850  		if o.Color != nil {
   851  			qrColor = *o.Color
   852  		}
   853  		qColor := qrColor
   854  		if qColor != "" {
   855  
   856  			if err := r.SetQueryParam("color", qColor); err != nil {
   857  				return err
   858  			}
   859  		}
   860  	}
   861  
   862  	if o.Colorn != nil {
   863  
   864  		// query param color__n
   865  		var qrColorn string
   866  
   867  		if o.Colorn != nil {
   868  			qrColorn = *o.Colorn
   869  		}
   870  		qColorn := qrColorn
   871  		if qColorn != "" {
   872  
   873  			if err := r.SetQueryParam("color__n", qColorn); err != nil {
   874  				return err
   875  			}
   876  		}
   877  	}
   878  
   879  	if o.Created != nil {
   880  
   881  		// query param created
   882  		var qrCreated string
   883  
   884  		if o.Created != nil {
   885  			qrCreated = *o.Created
   886  		}
   887  		qCreated := qrCreated
   888  		if qCreated != "" {
   889  
   890  			if err := r.SetQueryParam("created", qCreated); err != nil {
   891  				return err
   892  			}
   893  		}
   894  	}
   895  
   896  	if o.CreatedGte != nil {
   897  
   898  		// query param created__gte
   899  		var qrCreatedGte string
   900  
   901  		if o.CreatedGte != nil {
   902  			qrCreatedGte = *o.CreatedGte
   903  		}
   904  		qCreatedGte := qrCreatedGte
   905  		if qCreatedGte != "" {
   906  
   907  			if err := r.SetQueryParam("created__gte", qCreatedGte); err != nil {
   908  				return err
   909  			}
   910  		}
   911  	}
   912  
   913  	if o.CreatedLte != nil {
   914  
   915  		// query param created__lte
   916  		var qrCreatedLte string
   917  
   918  		if o.CreatedLte != nil {
   919  			qrCreatedLte = *o.CreatedLte
   920  		}
   921  		qCreatedLte := qrCreatedLte
   922  		if qCreatedLte != "" {
   923  
   924  			if err := r.SetQueryParam("created__lte", qCreatedLte); err != nil {
   925  				return err
   926  			}
   927  		}
   928  	}
   929  
   930  	if o.Device != nil {
   931  
   932  		// query param device
   933  		var qrDevice string
   934  
   935  		if o.Device != nil {
   936  			qrDevice = *o.Device
   937  		}
   938  		qDevice := qrDevice
   939  		if qDevice != "" {
   940  
   941  			if err := r.SetQueryParam("device", qDevice); err != nil {
   942  				return err
   943  			}
   944  		}
   945  	}
   946  
   947  	if o.DeviceID != nil {
   948  
   949  		// query param device_id
   950  		var qrDeviceID string
   951  
   952  		if o.DeviceID != nil {
   953  			qrDeviceID = *o.DeviceID
   954  		}
   955  		qDeviceID := qrDeviceID
   956  		if qDeviceID != "" {
   957  
   958  			if err := r.SetQueryParam("device_id", qDeviceID); err != nil {
   959  				return err
   960  			}
   961  		}
   962  	}
   963  
   964  	if o.ID != nil {
   965  
   966  		// query param id
   967  		var qrID string
   968  
   969  		if o.ID != nil {
   970  			qrID = *o.ID
   971  		}
   972  		qID := qrID
   973  		if qID != "" {
   974  
   975  			if err := r.SetQueryParam("id", qID); err != nil {
   976  				return err
   977  			}
   978  		}
   979  	}
   980  
   981  	if o.IDGt != nil {
   982  
   983  		// query param id__gt
   984  		var qrIDGt string
   985  
   986  		if o.IDGt != nil {
   987  			qrIDGt = *o.IDGt
   988  		}
   989  		qIDGt := qrIDGt
   990  		if qIDGt != "" {
   991  
   992  			if err := r.SetQueryParam("id__gt", qIDGt); err != nil {
   993  				return err
   994  			}
   995  		}
   996  	}
   997  
   998  	if o.IDGte != nil {
   999  
  1000  		// query param id__gte
  1001  		var qrIDGte string
  1002  
  1003  		if o.IDGte != nil {
  1004  			qrIDGte = *o.IDGte
  1005  		}
  1006  		qIDGte := qrIDGte
  1007  		if qIDGte != "" {
  1008  
  1009  			if err := r.SetQueryParam("id__gte", qIDGte); err != nil {
  1010  				return err
  1011  			}
  1012  		}
  1013  	}
  1014  
  1015  	if o.IDLt != nil {
  1016  
  1017  		// query param id__lt
  1018  		var qrIDLt string
  1019  
  1020  		if o.IDLt != nil {
  1021  			qrIDLt = *o.IDLt
  1022  		}
  1023  		qIDLt := qrIDLt
  1024  		if qIDLt != "" {
  1025  
  1026  			if err := r.SetQueryParam("id__lt", qIDLt); err != nil {
  1027  				return err
  1028  			}
  1029  		}
  1030  	}
  1031  
  1032  	if o.IDLte != nil {
  1033  
  1034  		// query param id__lte
  1035  		var qrIDLte string
  1036  
  1037  		if o.IDLte != nil {
  1038  			qrIDLte = *o.IDLte
  1039  		}
  1040  		qIDLte := qrIDLte
  1041  		if qIDLte != "" {
  1042  
  1043  			if err := r.SetQueryParam("id__lte", qIDLte); err != nil {
  1044  				return err
  1045  			}
  1046  		}
  1047  	}
  1048  
  1049  	if o.IDn != nil {
  1050  
  1051  		// query param id__n
  1052  		var qrIDn string
  1053  
  1054  		if o.IDn != nil {
  1055  			qrIDn = *o.IDn
  1056  		}
  1057  		qIDn := qrIDn
  1058  		if qIDn != "" {
  1059  
  1060  			if err := r.SetQueryParam("id__n", qIDn); err != nil {
  1061  				return err
  1062  			}
  1063  		}
  1064  	}
  1065  
  1066  	if o.Label != nil {
  1067  
  1068  		// query param label
  1069  		var qrLabel string
  1070  
  1071  		if o.Label != nil {
  1072  			qrLabel = *o.Label
  1073  		}
  1074  		qLabel := qrLabel
  1075  		if qLabel != "" {
  1076  
  1077  			if err := r.SetQueryParam("label", qLabel); err != nil {
  1078  				return err
  1079  			}
  1080  		}
  1081  	}
  1082  
  1083  	if o.LabelEmpty != nil {
  1084  
  1085  		// query param label__empty
  1086  		var qrLabelEmpty string
  1087  
  1088  		if o.LabelEmpty != nil {
  1089  			qrLabelEmpty = *o.LabelEmpty
  1090  		}
  1091  		qLabelEmpty := qrLabelEmpty
  1092  		if qLabelEmpty != "" {
  1093  
  1094  			if err := r.SetQueryParam("label__empty", qLabelEmpty); err != nil {
  1095  				return err
  1096  			}
  1097  		}
  1098  	}
  1099  
  1100  	if o.LabelIc != nil {
  1101  
  1102  		// query param label__ic
  1103  		var qrLabelIc string
  1104  
  1105  		if o.LabelIc != nil {
  1106  			qrLabelIc = *o.LabelIc
  1107  		}
  1108  		qLabelIc := qrLabelIc
  1109  		if qLabelIc != "" {
  1110  
  1111  			if err := r.SetQueryParam("label__ic", qLabelIc); err != nil {
  1112  				return err
  1113  			}
  1114  		}
  1115  	}
  1116  
  1117  	if o.LabelIe != nil {
  1118  
  1119  		// query param label__ie
  1120  		var qrLabelIe string
  1121  
  1122  		if o.LabelIe != nil {
  1123  			qrLabelIe = *o.LabelIe
  1124  		}
  1125  		qLabelIe := qrLabelIe
  1126  		if qLabelIe != "" {
  1127  
  1128  			if err := r.SetQueryParam("label__ie", qLabelIe); err != nil {
  1129  				return err
  1130  			}
  1131  		}
  1132  	}
  1133  
  1134  	if o.LabelIew != nil {
  1135  
  1136  		// query param label__iew
  1137  		var qrLabelIew string
  1138  
  1139  		if o.LabelIew != nil {
  1140  			qrLabelIew = *o.LabelIew
  1141  		}
  1142  		qLabelIew := qrLabelIew
  1143  		if qLabelIew != "" {
  1144  
  1145  			if err := r.SetQueryParam("label__iew", qLabelIew); err != nil {
  1146  				return err
  1147  			}
  1148  		}
  1149  	}
  1150  
  1151  	if o.LabelIsw != nil {
  1152  
  1153  		// query param label__isw
  1154  		var qrLabelIsw string
  1155  
  1156  		if o.LabelIsw != nil {
  1157  			qrLabelIsw = *o.LabelIsw
  1158  		}
  1159  		qLabelIsw := qrLabelIsw
  1160  		if qLabelIsw != "" {
  1161  
  1162  			if err := r.SetQueryParam("label__isw", qLabelIsw); err != nil {
  1163  				return err
  1164  			}
  1165  		}
  1166  	}
  1167  
  1168  	if o.Labeln != nil {
  1169  
  1170  		// query param label__n
  1171  		var qrLabeln string
  1172  
  1173  		if o.Labeln != nil {
  1174  			qrLabeln = *o.Labeln
  1175  		}
  1176  		qLabeln := qrLabeln
  1177  		if qLabeln != "" {
  1178  
  1179  			if err := r.SetQueryParam("label__n", qLabeln); err != nil {
  1180  				return err
  1181  			}
  1182  		}
  1183  	}
  1184  
  1185  	if o.LabelNic != nil {
  1186  
  1187  		// query param label__nic
  1188  		var qrLabelNic string
  1189  
  1190  		if o.LabelNic != nil {
  1191  			qrLabelNic = *o.LabelNic
  1192  		}
  1193  		qLabelNic := qrLabelNic
  1194  		if qLabelNic != "" {
  1195  
  1196  			if err := r.SetQueryParam("label__nic", qLabelNic); err != nil {
  1197  				return err
  1198  			}
  1199  		}
  1200  	}
  1201  
  1202  	if o.LabelNie != nil {
  1203  
  1204  		// query param label__nie
  1205  		var qrLabelNie string
  1206  
  1207  		if o.LabelNie != nil {
  1208  			qrLabelNie = *o.LabelNie
  1209  		}
  1210  		qLabelNie := qrLabelNie
  1211  		if qLabelNie != "" {
  1212  
  1213  			if err := r.SetQueryParam("label__nie", qLabelNie); err != nil {
  1214  				return err
  1215  			}
  1216  		}
  1217  	}
  1218  
  1219  	if o.LabelNiew != nil {
  1220  
  1221  		// query param label__niew
  1222  		var qrLabelNiew string
  1223  
  1224  		if o.LabelNiew != nil {
  1225  			qrLabelNiew = *o.LabelNiew
  1226  		}
  1227  		qLabelNiew := qrLabelNiew
  1228  		if qLabelNiew != "" {
  1229  
  1230  			if err := r.SetQueryParam("label__niew", qLabelNiew); err != nil {
  1231  				return err
  1232  			}
  1233  		}
  1234  	}
  1235  
  1236  	if o.LabelNisw != nil {
  1237  
  1238  		// query param label__nisw
  1239  		var qrLabelNisw string
  1240  
  1241  		if o.LabelNisw != nil {
  1242  			qrLabelNisw = *o.LabelNisw
  1243  		}
  1244  		qLabelNisw := qrLabelNisw
  1245  		if qLabelNisw != "" {
  1246  
  1247  			if err := r.SetQueryParam("label__nisw", qLabelNisw); err != nil {
  1248  				return err
  1249  			}
  1250  		}
  1251  	}
  1252  
  1253  	if o.LastUpdated != nil {
  1254  
  1255  		// query param last_updated
  1256  		var qrLastUpdated string
  1257  
  1258  		if o.LastUpdated != nil {
  1259  			qrLastUpdated = *o.LastUpdated
  1260  		}
  1261  		qLastUpdated := qrLastUpdated
  1262  		if qLastUpdated != "" {
  1263  
  1264  			if err := r.SetQueryParam("last_updated", qLastUpdated); err != nil {
  1265  				return err
  1266  			}
  1267  		}
  1268  	}
  1269  
  1270  	if o.LastUpdatedGte != nil {
  1271  
  1272  		// query param last_updated__gte
  1273  		var qrLastUpdatedGte string
  1274  
  1275  		if o.LastUpdatedGte != nil {
  1276  			qrLastUpdatedGte = *o.LastUpdatedGte
  1277  		}
  1278  		qLastUpdatedGte := qrLastUpdatedGte
  1279  		if qLastUpdatedGte != "" {
  1280  
  1281  			if err := r.SetQueryParam("last_updated__gte", qLastUpdatedGte); err != nil {
  1282  				return err
  1283  			}
  1284  		}
  1285  	}
  1286  
  1287  	if o.LastUpdatedLte != nil {
  1288  
  1289  		// query param last_updated__lte
  1290  		var qrLastUpdatedLte string
  1291  
  1292  		if o.LastUpdatedLte != nil {
  1293  			qrLastUpdatedLte = *o.LastUpdatedLte
  1294  		}
  1295  		qLastUpdatedLte := qrLastUpdatedLte
  1296  		if qLastUpdatedLte != "" {
  1297  
  1298  			if err := r.SetQueryParam("last_updated__lte", qLastUpdatedLte); err != nil {
  1299  				return err
  1300  			}
  1301  		}
  1302  	}
  1303  
  1304  	if o.Length != nil {
  1305  
  1306  		// query param length
  1307  		var qrLength string
  1308  
  1309  		if o.Length != nil {
  1310  			qrLength = *o.Length
  1311  		}
  1312  		qLength := qrLength
  1313  		if qLength != "" {
  1314  
  1315  			if err := r.SetQueryParam("length", qLength); err != nil {
  1316  				return err
  1317  			}
  1318  		}
  1319  	}
  1320  
  1321  	if o.LengthGt != nil {
  1322  
  1323  		// query param length__gt
  1324  		var qrLengthGt string
  1325  
  1326  		if o.LengthGt != nil {
  1327  			qrLengthGt = *o.LengthGt
  1328  		}
  1329  		qLengthGt := qrLengthGt
  1330  		if qLengthGt != "" {
  1331  
  1332  			if err := r.SetQueryParam("length__gt", qLengthGt); err != nil {
  1333  				return err
  1334  			}
  1335  		}
  1336  	}
  1337  
  1338  	if o.LengthGte != nil {
  1339  
  1340  		// query param length__gte
  1341  		var qrLengthGte string
  1342  
  1343  		if o.LengthGte != nil {
  1344  			qrLengthGte = *o.LengthGte
  1345  		}
  1346  		qLengthGte := qrLengthGte
  1347  		if qLengthGte != "" {
  1348  
  1349  			if err := r.SetQueryParam("length__gte", qLengthGte); err != nil {
  1350  				return err
  1351  			}
  1352  		}
  1353  	}
  1354  
  1355  	if o.LengthLt != nil {
  1356  
  1357  		// query param length__lt
  1358  		var qrLengthLt string
  1359  
  1360  		if o.LengthLt != nil {
  1361  			qrLengthLt = *o.LengthLt
  1362  		}
  1363  		qLengthLt := qrLengthLt
  1364  		if qLengthLt != "" {
  1365  
  1366  			if err := r.SetQueryParam("length__lt", qLengthLt); err != nil {
  1367  				return err
  1368  			}
  1369  		}
  1370  	}
  1371  
  1372  	if o.LengthLte != nil {
  1373  
  1374  		// query param length__lte
  1375  		var qrLengthLte string
  1376  
  1377  		if o.LengthLte != nil {
  1378  			qrLengthLte = *o.LengthLte
  1379  		}
  1380  		qLengthLte := qrLengthLte
  1381  		if qLengthLte != "" {
  1382  
  1383  			if err := r.SetQueryParam("length__lte", qLengthLte); err != nil {
  1384  				return err
  1385  			}
  1386  		}
  1387  	}
  1388  
  1389  	if o.Lengthn != nil {
  1390  
  1391  		// query param length__n
  1392  		var qrLengthn string
  1393  
  1394  		if o.Lengthn != nil {
  1395  			qrLengthn = *o.Lengthn
  1396  		}
  1397  		qLengthn := qrLengthn
  1398  		if qLengthn != "" {
  1399  
  1400  			if err := r.SetQueryParam("length__n", qLengthn); err != nil {
  1401  				return err
  1402  			}
  1403  		}
  1404  	}
  1405  
  1406  	if o.LengthUnit != nil {
  1407  
  1408  		// query param length_unit
  1409  		var qrLengthUnit string
  1410  
  1411  		if o.LengthUnit != nil {
  1412  			qrLengthUnit = *o.LengthUnit
  1413  		}
  1414  		qLengthUnit := qrLengthUnit
  1415  		if qLengthUnit != "" {
  1416  
  1417  			if err := r.SetQueryParam("length_unit", qLengthUnit); err != nil {
  1418  				return err
  1419  			}
  1420  		}
  1421  	}
  1422  
  1423  	if o.LengthUnitn != nil {
  1424  
  1425  		// query param length_unit__n
  1426  		var qrLengthUnitn string
  1427  
  1428  		if o.LengthUnitn != nil {
  1429  			qrLengthUnitn = *o.LengthUnitn
  1430  		}
  1431  		qLengthUnitn := qrLengthUnitn
  1432  		if qLengthUnitn != "" {
  1433  
  1434  			if err := r.SetQueryParam("length_unit__n", qLengthUnitn); err != nil {
  1435  				return err
  1436  			}
  1437  		}
  1438  	}
  1439  
  1440  	if o.Limit != nil {
  1441  
  1442  		// query param limit
  1443  		var qrLimit int64
  1444  
  1445  		if o.Limit != nil {
  1446  			qrLimit = *o.Limit
  1447  		}
  1448  		qLimit := swag.FormatInt64(qrLimit)
  1449  		if qLimit != "" {
  1450  
  1451  			if err := r.SetQueryParam("limit", qLimit); err != nil {
  1452  				return err
  1453  			}
  1454  		}
  1455  	}
  1456  
  1457  	if o.Offset != nil {
  1458  
  1459  		// query param offset
  1460  		var qrOffset int64
  1461  
  1462  		if o.Offset != nil {
  1463  			qrOffset = *o.Offset
  1464  		}
  1465  		qOffset := swag.FormatInt64(qrOffset)
  1466  		if qOffset != "" {
  1467  
  1468  			if err := r.SetQueryParam("offset", qOffset); err != nil {
  1469  				return err
  1470  			}
  1471  		}
  1472  	}
  1473  
  1474  	if o.Q != nil {
  1475  
  1476  		// query param q
  1477  		var qrQ string
  1478  
  1479  		if o.Q != nil {
  1480  			qrQ = *o.Q
  1481  		}
  1482  		qQ := qrQ
  1483  		if qQ != "" {
  1484  
  1485  			if err := r.SetQueryParam("q", qQ); err != nil {
  1486  				return err
  1487  			}
  1488  		}
  1489  	}
  1490  
  1491  	if o.Rack != nil {
  1492  
  1493  		// query param rack
  1494  		var qrRack string
  1495  
  1496  		if o.Rack != nil {
  1497  			qrRack = *o.Rack
  1498  		}
  1499  		qRack := qrRack
  1500  		if qRack != "" {
  1501  
  1502  			if err := r.SetQueryParam("rack", qRack); err != nil {
  1503  				return err
  1504  			}
  1505  		}
  1506  	}
  1507  
  1508  	if o.RackID != nil {
  1509  
  1510  		// query param rack_id
  1511  		var qrRackID string
  1512  
  1513  		if o.RackID != nil {
  1514  			qrRackID = *o.RackID
  1515  		}
  1516  		qRackID := qrRackID
  1517  		if qRackID != "" {
  1518  
  1519  			if err := r.SetQueryParam("rack_id", qRackID); err != nil {
  1520  				return err
  1521  			}
  1522  		}
  1523  	}
  1524  
  1525  	if o.Site != nil {
  1526  
  1527  		// query param site
  1528  		var qrSite string
  1529  
  1530  		if o.Site != nil {
  1531  			qrSite = *o.Site
  1532  		}
  1533  		qSite := qrSite
  1534  		if qSite != "" {
  1535  
  1536  			if err := r.SetQueryParam("site", qSite); err != nil {
  1537  				return err
  1538  			}
  1539  		}
  1540  	}
  1541  
  1542  	if o.SiteID != nil {
  1543  
  1544  		// query param site_id
  1545  		var qrSiteID string
  1546  
  1547  		if o.SiteID != nil {
  1548  			qrSiteID = *o.SiteID
  1549  		}
  1550  		qSiteID := qrSiteID
  1551  		if qSiteID != "" {
  1552  
  1553  			if err := r.SetQueryParam("site_id", qSiteID); err != nil {
  1554  				return err
  1555  			}
  1556  		}
  1557  	}
  1558  
  1559  	if o.Status != nil {
  1560  
  1561  		// query param status
  1562  		var qrStatus string
  1563  
  1564  		if o.Status != nil {
  1565  			qrStatus = *o.Status
  1566  		}
  1567  		qStatus := qrStatus
  1568  		if qStatus != "" {
  1569  
  1570  			if err := r.SetQueryParam("status", qStatus); err != nil {
  1571  				return err
  1572  			}
  1573  		}
  1574  	}
  1575  
  1576  	if o.Statusn != nil {
  1577  
  1578  		// query param status__n
  1579  		var qrStatusn string
  1580  
  1581  		if o.Statusn != nil {
  1582  			qrStatusn = *o.Statusn
  1583  		}
  1584  		qStatusn := qrStatusn
  1585  		if qStatusn != "" {
  1586  
  1587  			if err := r.SetQueryParam("status__n", qStatusn); err != nil {
  1588  				return err
  1589  			}
  1590  		}
  1591  	}
  1592  
  1593  	if o.Tag != nil {
  1594  
  1595  		// query param tag
  1596  		var qrTag string
  1597  
  1598  		if o.Tag != nil {
  1599  			qrTag = *o.Tag
  1600  		}
  1601  		qTag := qrTag
  1602  		if qTag != "" {
  1603  
  1604  			if err := r.SetQueryParam("tag", qTag); err != nil {
  1605  				return err
  1606  			}
  1607  		}
  1608  	}
  1609  
  1610  	if o.Tagn != nil {
  1611  
  1612  		// query param tag__n
  1613  		var qrTagn string
  1614  
  1615  		if o.Tagn != nil {
  1616  			qrTagn = *o.Tagn
  1617  		}
  1618  		qTagn := qrTagn
  1619  		if qTagn != "" {
  1620  
  1621  			if err := r.SetQueryParam("tag__n", qTagn); err != nil {
  1622  				return err
  1623  			}
  1624  		}
  1625  	}
  1626  
  1627  	if o.Tenant != nil {
  1628  
  1629  		// query param tenant
  1630  		var qrTenant string
  1631  
  1632  		if o.Tenant != nil {
  1633  			qrTenant = *o.Tenant
  1634  		}
  1635  		qTenant := qrTenant
  1636  		if qTenant != "" {
  1637  
  1638  			if err := r.SetQueryParam("tenant", qTenant); err != nil {
  1639  				return err
  1640  			}
  1641  		}
  1642  	}
  1643  
  1644  	if o.TenantID != nil {
  1645  
  1646  		// query param tenant_id
  1647  		var qrTenantID string
  1648  
  1649  		if o.TenantID != nil {
  1650  			qrTenantID = *o.TenantID
  1651  		}
  1652  		qTenantID := qrTenantID
  1653  		if qTenantID != "" {
  1654  
  1655  			if err := r.SetQueryParam("tenant_id", qTenantID); err != nil {
  1656  				return err
  1657  			}
  1658  		}
  1659  	}
  1660  
  1661  	if o.Type != nil {
  1662  
  1663  		// query param type
  1664  		var qrType string
  1665  
  1666  		if o.Type != nil {
  1667  			qrType = *o.Type
  1668  		}
  1669  		qType := qrType
  1670  		if qType != "" {
  1671  
  1672  			if err := r.SetQueryParam("type", qType); err != nil {
  1673  				return err
  1674  			}
  1675  		}
  1676  	}
  1677  
  1678  	if o.Typen != nil {
  1679  
  1680  		// query param type__n
  1681  		var qrTypen string
  1682  
  1683  		if o.Typen != nil {
  1684  			qrTypen = *o.Typen
  1685  		}
  1686  		qTypen := qrTypen
  1687  		if qTypen != "" {
  1688  
  1689  			if err := r.SetQueryParam("type__n", qTypen); err != nil {
  1690  				return err
  1691  			}
  1692  		}
  1693  	}
  1694  
  1695  	if len(res) > 0 {
  1696  		return errors.CompositeValidationError(res...)
  1697  	}
  1698  	return nil
  1699  }