github.com/digitalocean/go-netbox@v0.0.2/netbox/client/dcim/dcim_device_bays_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  // NewDcimDeviceBaysListParams creates a new DcimDeviceBaysListParams 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 NewDcimDeviceBaysListParams() *DcimDeviceBaysListParams {
    42  	return &DcimDeviceBaysListParams{
    43  		timeout: cr.DefaultTimeout,
    44  	}
    45  }
    46  
    47  // NewDcimDeviceBaysListParamsWithTimeout creates a new DcimDeviceBaysListParams object
    48  // with the ability to set a timeout on a request.
    49  func NewDcimDeviceBaysListParamsWithTimeout(timeout time.Duration) *DcimDeviceBaysListParams {
    50  	return &DcimDeviceBaysListParams{
    51  		timeout: timeout,
    52  	}
    53  }
    54  
    55  // NewDcimDeviceBaysListParamsWithContext creates a new DcimDeviceBaysListParams object
    56  // with the ability to set a context for a request.
    57  func NewDcimDeviceBaysListParamsWithContext(ctx context.Context) *DcimDeviceBaysListParams {
    58  	return &DcimDeviceBaysListParams{
    59  		Context: ctx,
    60  	}
    61  }
    62  
    63  // NewDcimDeviceBaysListParamsWithHTTPClient creates a new DcimDeviceBaysListParams object
    64  // with the ability to set a custom HTTPClient for a request.
    65  func NewDcimDeviceBaysListParamsWithHTTPClient(client *http.Client) *DcimDeviceBaysListParams {
    66  	return &DcimDeviceBaysListParams{
    67  		HTTPClient: client,
    68  	}
    69  }
    70  
    71  /* DcimDeviceBaysListParams contains all the parameters to send to the API endpoint
    72     for the dcim device bays list operation.
    73  
    74     Typically these are written to a http.Request.
    75  */
    76  type DcimDeviceBaysListParams struct {
    77  
    78  	// Created.
    79  	Created *string
    80  
    81  	// CreatedGte.
    82  	CreatedGte *string
    83  
    84  	// CreatedLte.
    85  	CreatedLte *string
    86  
    87  	// Description.
    88  	Description *string
    89  
    90  	// DescriptionEmpty.
    91  	DescriptionEmpty *string
    92  
    93  	// DescriptionIc.
    94  	DescriptionIc *string
    95  
    96  	// DescriptionIe.
    97  	DescriptionIe *string
    98  
    99  	// DescriptionIew.
   100  	DescriptionIew *string
   101  
   102  	// DescriptionIsw.
   103  	DescriptionIsw *string
   104  
   105  	// Descriptionn.
   106  	Descriptionn *string
   107  
   108  	// DescriptionNic.
   109  	DescriptionNic *string
   110  
   111  	// DescriptionNie.
   112  	DescriptionNie *string
   113  
   114  	// DescriptionNiew.
   115  	DescriptionNiew *string
   116  
   117  	// DescriptionNisw.
   118  	DescriptionNisw *string
   119  
   120  	// Device.
   121  	Device *string
   122  
   123  	// Devicen.
   124  	Devicen *string
   125  
   126  	// DeviceID.
   127  	DeviceID *string
   128  
   129  	// DeviceIDn.
   130  	DeviceIDn *string
   131  
   132  	// ID.
   133  	ID *string
   134  
   135  	// IDGt.
   136  	IDGt *string
   137  
   138  	// IDGte.
   139  	IDGte *string
   140  
   141  	// IDLt.
   142  	IDLt *string
   143  
   144  	// IDLte.
   145  	IDLte *string
   146  
   147  	// IDn.
   148  	IDn *string
   149  
   150  	// Label.
   151  	Label *string
   152  
   153  	// LabelEmpty.
   154  	LabelEmpty *string
   155  
   156  	// LabelIc.
   157  	LabelIc *string
   158  
   159  	// LabelIe.
   160  	LabelIe *string
   161  
   162  	// LabelIew.
   163  	LabelIew *string
   164  
   165  	// LabelIsw.
   166  	LabelIsw *string
   167  
   168  	// Labeln.
   169  	Labeln *string
   170  
   171  	// LabelNic.
   172  	LabelNic *string
   173  
   174  	// LabelNie.
   175  	LabelNie *string
   176  
   177  	// LabelNiew.
   178  	LabelNiew *string
   179  
   180  	// LabelNisw.
   181  	LabelNisw *string
   182  
   183  	// LastUpdated.
   184  	LastUpdated *string
   185  
   186  	// LastUpdatedGte.
   187  	LastUpdatedGte *string
   188  
   189  	// LastUpdatedLte.
   190  	LastUpdatedLte *string
   191  
   192  	/* Limit.
   193  
   194  	   Number of results to return per page.
   195  	*/
   196  	Limit *int64
   197  
   198  	// Name.
   199  	Name *string
   200  
   201  	// NameEmpty.
   202  	NameEmpty *string
   203  
   204  	// NameIc.
   205  	NameIc *string
   206  
   207  	// NameIe.
   208  	NameIe *string
   209  
   210  	// NameIew.
   211  	NameIew *string
   212  
   213  	// NameIsw.
   214  	NameIsw *string
   215  
   216  	// Namen.
   217  	Namen *string
   218  
   219  	// NameNic.
   220  	NameNic *string
   221  
   222  	// NameNie.
   223  	NameNie *string
   224  
   225  	// NameNiew.
   226  	NameNiew *string
   227  
   228  	// NameNisw.
   229  	NameNisw *string
   230  
   231  	/* Offset.
   232  
   233  	   The initial index from which to return the results.
   234  	*/
   235  	Offset *int64
   236  
   237  	// Q.
   238  	Q *string
   239  
   240  	// Region.
   241  	Region *string
   242  
   243  	// Regionn.
   244  	Regionn *string
   245  
   246  	// RegionID.
   247  	RegionID *string
   248  
   249  	// RegionIDn.
   250  	RegionIDn *string
   251  
   252  	// Site.
   253  	Site *string
   254  
   255  	// Siten.
   256  	Siten *string
   257  
   258  	// SiteGroup.
   259  	SiteGroup *string
   260  
   261  	// SiteGroupn.
   262  	SiteGroupn *string
   263  
   264  	// SiteGroupID.
   265  	SiteGroupID *string
   266  
   267  	// SiteGroupIDn.
   268  	SiteGroupIDn *string
   269  
   270  	// SiteID.
   271  	SiteID *string
   272  
   273  	// SiteIDn.
   274  	SiteIDn *string
   275  
   276  	// Tag.
   277  	Tag *string
   278  
   279  	// Tagn.
   280  	Tagn *string
   281  
   282  	timeout    time.Duration
   283  	Context    context.Context
   284  	HTTPClient *http.Client
   285  }
   286  
   287  // WithDefaults hydrates default values in the dcim device bays list params (not the query body).
   288  //
   289  // All values with no default are reset to their zero value.
   290  func (o *DcimDeviceBaysListParams) WithDefaults() *DcimDeviceBaysListParams {
   291  	o.SetDefaults()
   292  	return o
   293  }
   294  
   295  // SetDefaults hydrates default values in the dcim device bays list params (not the query body).
   296  //
   297  // All values with no default are reset to their zero value.
   298  func (o *DcimDeviceBaysListParams) SetDefaults() {
   299  	// no default values defined for this parameter
   300  }
   301  
   302  // WithTimeout adds the timeout to the dcim device bays list params
   303  func (o *DcimDeviceBaysListParams) WithTimeout(timeout time.Duration) *DcimDeviceBaysListParams {
   304  	o.SetTimeout(timeout)
   305  	return o
   306  }
   307  
   308  // SetTimeout adds the timeout to the dcim device bays list params
   309  func (o *DcimDeviceBaysListParams) SetTimeout(timeout time.Duration) {
   310  	o.timeout = timeout
   311  }
   312  
   313  // WithContext adds the context to the dcim device bays list params
   314  func (o *DcimDeviceBaysListParams) WithContext(ctx context.Context) *DcimDeviceBaysListParams {
   315  	o.SetContext(ctx)
   316  	return o
   317  }
   318  
   319  // SetContext adds the context to the dcim device bays list params
   320  func (o *DcimDeviceBaysListParams) SetContext(ctx context.Context) {
   321  	o.Context = ctx
   322  }
   323  
   324  // WithHTTPClient adds the HTTPClient to the dcim device bays list params
   325  func (o *DcimDeviceBaysListParams) WithHTTPClient(client *http.Client) *DcimDeviceBaysListParams {
   326  	o.SetHTTPClient(client)
   327  	return o
   328  }
   329  
   330  // SetHTTPClient adds the HTTPClient to the dcim device bays list params
   331  func (o *DcimDeviceBaysListParams) SetHTTPClient(client *http.Client) {
   332  	o.HTTPClient = client
   333  }
   334  
   335  // WithCreated adds the created to the dcim device bays list params
   336  func (o *DcimDeviceBaysListParams) WithCreated(created *string) *DcimDeviceBaysListParams {
   337  	o.SetCreated(created)
   338  	return o
   339  }
   340  
   341  // SetCreated adds the created to the dcim device bays list params
   342  func (o *DcimDeviceBaysListParams) SetCreated(created *string) {
   343  	o.Created = created
   344  }
   345  
   346  // WithCreatedGte adds the createdGte to the dcim device bays list params
   347  func (o *DcimDeviceBaysListParams) WithCreatedGte(createdGte *string) *DcimDeviceBaysListParams {
   348  	o.SetCreatedGte(createdGte)
   349  	return o
   350  }
   351  
   352  // SetCreatedGte adds the createdGte to the dcim device bays list params
   353  func (o *DcimDeviceBaysListParams) SetCreatedGte(createdGte *string) {
   354  	o.CreatedGte = createdGte
   355  }
   356  
   357  // WithCreatedLte adds the createdLte to the dcim device bays list params
   358  func (o *DcimDeviceBaysListParams) WithCreatedLte(createdLte *string) *DcimDeviceBaysListParams {
   359  	o.SetCreatedLte(createdLte)
   360  	return o
   361  }
   362  
   363  // SetCreatedLte adds the createdLte to the dcim device bays list params
   364  func (o *DcimDeviceBaysListParams) SetCreatedLte(createdLte *string) {
   365  	o.CreatedLte = createdLte
   366  }
   367  
   368  // WithDescription adds the description to the dcim device bays list params
   369  func (o *DcimDeviceBaysListParams) WithDescription(description *string) *DcimDeviceBaysListParams {
   370  	o.SetDescription(description)
   371  	return o
   372  }
   373  
   374  // SetDescription adds the description to the dcim device bays list params
   375  func (o *DcimDeviceBaysListParams) SetDescription(description *string) {
   376  	o.Description = description
   377  }
   378  
   379  // WithDescriptionEmpty adds the descriptionEmpty to the dcim device bays list params
   380  func (o *DcimDeviceBaysListParams) WithDescriptionEmpty(descriptionEmpty *string) *DcimDeviceBaysListParams {
   381  	o.SetDescriptionEmpty(descriptionEmpty)
   382  	return o
   383  }
   384  
   385  // SetDescriptionEmpty adds the descriptionEmpty to the dcim device bays list params
   386  func (o *DcimDeviceBaysListParams) SetDescriptionEmpty(descriptionEmpty *string) {
   387  	o.DescriptionEmpty = descriptionEmpty
   388  }
   389  
   390  // WithDescriptionIc adds the descriptionIc to the dcim device bays list params
   391  func (o *DcimDeviceBaysListParams) WithDescriptionIc(descriptionIc *string) *DcimDeviceBaysListParams {
   392  	o.SetDescriptionIc(descriptionIc)
   393  	return o
   394  }
   395  
   396  // SetDescriptionIc adds the descriptionIc to the dcim device bays list params
   397  func (o *DcimDeviceBaysListParams) SetDescriptionIc(descriptionIc *string) {
   398  	o.DescriptionIc = descriptionIc
   399  }
   400  
   401  // WithDescriptionIe adds the descriptionIe to the dcim device bays list params
   402  func (o *DcimDeviceBaysListParams) WithDescriptionIe(descriptionIe *string) *DcimDeviceBaysListParams {
   403  	o.SetDescriptionIe(descriptionIe)
   404  	return o
   405  }
   406  
   407  // SetDescriptionIe adds the descriptionIe to the dcim device bays list params
   408  func (o *DcimDeviceBaysListParams) SetDescriptionIe(descriptionIe *string) {
   409  	o.DescriptionIe = descriptionIe
   410  }
   411  
   412  // WithDescriptionIew adds the descriptionIew to the dcim device bays list params
   413  func (o *DcimDeviceBaysListParams) WithDescriptionIew(descriptionIew *string) *DcimDeviceBaysListParams {
   414  	o.SetDescriptionIew(descriptionIew)
   415  	return o
   416  }
   417  
   418  // SetDescriptionIew adds the descriptionIew to the dcim device bays list params
   419  func (o *DcimDeviceBaysListParams) SetDescriptionIew(descriptionIew *string) {
   420  	o.DescriptionIew = descriptionIew
   421  }
   422  
   423  // WithDescriptionIsw adds the descriptionIsw to the dcim device bays list params
   424  func (o *DcimDeviceBaysListParams) WithDescriptionIsw(descriptionIsw *string) *DcimDeviceBaysListParams {
   425  	o.SetDescriptionIsw(descriptionIsw)
   426  	return o
   427  }
   428  
   429  // SetDescriptionIsw adds the descriptionIsw to the dcim device bays list params
   430  func (o *DcimDeviceBaysListParams) SetDescriptionIsw(descriptionIsw *string) {
   431  	o.DescriptionIsw = descriptionIsw
   432  }
   433  
   434  // WithDescriptionn adds the descriptionn to the dcim device bays list params
   435  func (o *DcimDeviceBaysListParams) WithDescriptionn(descriptionn *string) *DcimDeviceBaysListParams {
   436  	o.SetDescriptionn(descriptionn)
   437  	return o
   438  }
   439  
   440  // SetDescriptionn adds the descriptionN to the dcim device bays list params
   441  func (o *DcimDeviceBaysListParams) SetDescriptionn(descriptionn *string) {
   442  	o.Descriptionn = descriptionn
   443  }
   444  
   445  // WithDescriptionNic adds the descriptionNic to the dcim device bays list params
   446  func (o *DcimDeviceBaysListParams) WithDescriptionNic(descriptionNic *string) *DcimDeviceBaysListParams {
   447  	o.SetDescriptionNic(descriptionNic)
   448  	return o
   449  }
   450  
   451  // SetDescriptionNic adds the descriptionNic to the dcim device bays list params
   452  func (o *DcimDeviceBaysListParams) SetDescriptionNic(descriptionNic *string) {
   453  	o.DescriptionNic = descriptionNic
   454  }
   455  
   456  // WithDescriptionNie adds the descriptionNie to the dcim device bays list params
   457  func (o *DcimDeviceBaysListParams) WithDescriptionNie(descriptionNie *string) *DcimDeviceBaysListParams {
   458  	o.SetDescriptionNie(descriptionNie)
   459  	return o
   460  }
   461  
   462  // SetDescriptionNie adds the descriptionNie to the dcim device bays list params
   463  func (o *DcimDeviceBaysListParams) SetDescriptionNie(descriptionNie *string) {
   464  	o.DescriptionNie = descriptionNie
   465  }
   466  
   467  // WithDescriptionNiew adds the descriptionNiew to the dcim device bays list params
   468  func (o *DcimDeviceBaysListParams) WithDescriptionNiew(descriptionNiew *string) *DcimDeviceBaysListParams {
   469  	o.SetDescriptionNiew(descriptionNiew)
   470  	return o
   471  }
   472  
   473  // SetDescriptionNiew adds the descriptionNiew to the dcim device bays list params
   474  func (o *DcimDeviceBaysListParams) SetDescriptionNiew(descriptionNiew *string) {
   475  	o.DescriptionNiew = descriptionNiew
   476  }
   477  
   478  // WithDescriptionNisw adds the descriptionNisw to the dcim device bays list params
   479  func (o *DcimDeviceBaysListParams) WithDescriptionNisw(descriptionNisw *string) *DcimDeviceBaysListParams {
   480  	o.SetDescriptionNisw(descriptionNisw)
   481  	return o
   482  }
   483  
   484  // SetDescriptionNisw adds the descriptionNisw to the dcim device bays list params
   485  func (o *DcimDeviceBaysListParams) SetDescriptionNisw(descriptionNisw *string) {
   486  	o.DescriptionNisw = descriptionNisw
   487  }
   488  
   489  // WithDevice adds the device to the dcim device bays list params
   490  func (o *DcimDeviceBaysListParams) WithDevice(device *string) *DcimDeviceBaysListParams {
   491  	o.SetDevice(device)
   492  	return o
   493  }
   494  
   495  // SetDevice adds the device to the dcim device bays list params
   496  func (o *DcimDeviceBaysListParams) SetDevice(device *string) {
   497  	o.Device = device
   498  }
   499  
   500  // WithDevicen adds the devicen to the dcim device bays list params
   501  func (o *DcimDeviceBaysListParams) WithDevicen(devicen *string) *DcimDeviceBaysListParams {
   502  	o.SetDevicen(devicen)
   503  	return o
   504  }
   505  
   506  // SetDevicen adds the deviceN to the dcim device bays list params
   507  func (o *DcimDeviceBaysListParams) SetDevicen(devicen *string) {
   508  	o.Devicen = devicen
   509  }
   510  
   511  // WithDeviceID adds the deviceID to the dcim device bays list params
   512  func (o *DcimDeviceBaysListParams) WithDeviceID(deviceID *string) *DcimDeviceBaysListParams {
   513  	o.SetDeviceID(deviceID)
   514  	return o
   515  }
   516  
   517  // SetDeviceID adds the deviceId to the dcim device bays list params
   518  func (o *DcimDeviceBaysListParams) SetDeviceID(deviceID *string) {
   519  	o.DeviceID = deviceID
   520  }
   521  
   522  // WithDeviceIDn adds the deviceIDn to the dcim device bays list params
   523  func (o *DcimDeviceBaysListParams) WithDeviceIDn(deviceIDn *string) *DcimDeviceBaysListParams {
   524  	o.SetDeviceIDn(deviceIDn)
   525  	return o
   526  }
   527  
   528  // SetDeviceIDn adds the deviceIdN to the dcim device bays list params
   529  func (o *DcimDeviceBaysListParams) SetDeviceIDn(deviceIDn *string) {
   530  	o.DeviceIDn = deviceIDn
   531  }
   532  
   533  // WithID adds the id to the dcim device bays list params
   534  func (o *DcimDeviceBaysListParams) WithID(id *string) *DcimDeviceBaysListParams {
   535  	o.SetID(id)
   536  	return o
   537  }
   538  
   539  // SetID adds the id to the dcim device bays list params
   540  func (o *DcimDeviceBaysListParams) SetID(id *string) {
   541  	o.ID = id
   542  }
   543  
   544  // WithIDGt adds the iDGt to the dcim device bays list params
   545  func (o *DcimDeviceBaysListParams) WithIDGt(iDGt *string) *DcimDeviceBaysListParams {
   546  	o.SetIDGt(iDGt)
   547  	return o
   548  }
   549  
   550  // SetIDGt adds the idGt to the dcim device bays list params
   551  func (o *DcimDeviceBaysListParams) SetIDGt(iDGt *string) {
   552  	o.IDGt = iDGt
   553  }
   554  
   555  // WithIDGte adds the iDGte to the dcim device bays list params
   556  func (o *DcimDeviceBaysListParams) WithIDGte(iDGte *string) *DcimDeviceBaysListParams {
   557  	o.SetIDGte(iDGte)
   558  	return o
   559  }
   560  
   561  // SetIDGte adds the idGte to the dcim device bays list params
   562  func (o *DcimDeviceBaysListParams) SetIDGte(iDGte *string) {
   563  	o.IDGte = iDGte
   564  }
   565  
   566  // WithIDLt adds the iDLt to the dcim device bays list params
   567  func (o *DcimDeviceBaysListParams) WithIDLt(iDLt *string) *DcimDeviceBaysListParams {
   568  	o.SetIDLt(iDLt)
   569  	return o
   570  }
   571  
   572  // SetIDLt adds the idLt to the dcim device bays list params
   573  func (o *DcimDeviceBaysListParams) SetIDLt(iDLt *string) {
   574  	o.IDLt = iDLt
   575  }
   576  
   577  // WithIDLte adds the iDLte to the dcim device bays list params
   578  func (o *DcimDeviceBaysListParams) WithIDLte(iDLte *string) *DcimDeviceBaysListParams {
   579  	o.SetIDLte(iDLte)
   580  	return o
   581  }
   582  
   583  // SetIDLte adds the idLte to the dcim device bays list params
   584  func (o *DcimDeviceBaysListParams) SetIDLte(iDLte *string) {
   585  	o.IDLte = iDLte
   586  }
   587  
   588  // WithIDn adds the iDn to the dcim device bays list params
   589  func (o *DcimDeviceBaysListParams) WithIDn(iDn *string) *DcimDeviceBaysListParams {
   590  	o.SetIDn(iDn)
   591  	return o
   592  }
   593  
   594  // SetIDn adds the idN to the dcim device bays list params
   595  func (o *DcimDeviceBaysListParams) SetIDn(iDn *string) {
   596  	o.IDn = iDn
   597  }
   598  
   599  // WithLabel adds the label to the dcim device bays list params
   600  func (o *DcimDeviceBaysListParams) WithLabel(label *string) *DcimDeviceBaysListParams {
   601  	o.SetLabel(label)
   602  	return o
   603  }
   604  
   605  // SetLabel adds the label to the dcim device bays list params
   606  func (o *DcimDeviceBaysListParams) SetLabel(label *string) {
   607  	o.Label = label
   608  }
   609  
   610  // WithLabelEmpty adds the labelEmpty to the dcim device bays list params
   611  func (o *DcimDeviceBaysListParams) WithLabelEmpty(labelEmpty *string) *DcimDeviceBaysListParams {
   612  	o.SetLabelEmpty(labelEmpty)
   613  	return o
   614  }
   615  
   616  // SetLabelEmpty adds the labelEmpty to the dcim device bays list params
   617  func (o *DcimDeviceBaysListParams) SetLabelEmpty(labelEmpty *string) {
   618  	o.LabelEmpty = labelEmpty
   619  }
   620  
   621  // WithLabelIc adds the labelIc to the dcim device bays list params
   622  func (o *DcimDeviceBaysListParams) WithLabelIc(labelIc *string) *DcimDeviceBaysListParams {
   623  	o.SetLabelIc(labelIc)
   624  	return o
   625  }
   626  
   627  // SetLabelIc adds the labelIc to the dcim device bays list params
   628  func (o *DcimDeviceBaysListParams) SetLabelIc(labelIc *string) {
   629  	o.LabelIc = labelIc
   630  }
   631  
   632  // WithLabelIe adds the labelIe to the dcim device bays list params
   633  func (o *DcimDeviceBaysListParams) WithLabelIe(labelIe *string) *DcimDeviceBaysListParams {
   634  	o.SetLabelIe(labelIe)
   635  	return o
   636  }
   637  
   638  // SetLabelIe adds the labelIe to the dcim device bays list params
   639  func (o *DcimDeviceBaysListParams) SetLabelIe(labelIe *string) {
   640  	o.LabelIe = labelIe
   641  }
   642  
   643  // WithLabelIew adds the labelIew to the dcim device bays list params
   644  func (o *DcimDeviceBaysListParams) WithLabelIew(labelIew *string) *DcimDeviceBaysListParams {
   645  	o.SetLabelIew(labelIew)
   646  	return o
   647  }
   648  
   649  // SetLabelIew adds the labelIew to the dcim device bays list params
   650  func (o *DcimDeviceBaysListParams) SetLabelIew(labelIew *string) {
   651  	o.LabelIew = labelIew
   652  }
   653  
   654  // WithLabelIsw adds the labelIsw to the dcim device bays list params
   655  func (o *DcimDeviceBaysListParams) WithLabelIsw(labelIsw *string) *DcimDeviceBaysListParams {
   656  	o.SetLabelIsw(labelIsw)
   657  	return o
   658  }
   659  
   660  // SetLabelIsw adds the labelIsw to the dcim device bays list params
   661  func (o *DcimDeviceBaysListParams) SetLabelIsw(labelIsw *string) {
   662  	o.LabelIsw = labelIsw
   663  }
   664  
   665  // WithLabeln adds the labeln to the dcim device bays list params
   666  func (o *DcimDeviceBaysListParams) WithLabeln(labeln *string) *DcimDeviceBaysListParams {
   667  	o.SetLabeln(labeln)
   668  	return o
   669  }
   670  
   671  // SetLabeln adds the labelN to the dcim device bays list params
   672  func (o *DcimDeviceBaysListParams) SetLabeln(labeln *string) {
   673  	o.Labeln = labeln
   674  }
   675  
   676  // WithLabelNic adds the labelNic to the dcim device bays list params
   677  func (o *DcimDeviceBaysListParams) WithLabelNic(labelNic *string) *DcimDeviceBaysListParams {
   678  	o.SetLabelNic(labelNic)
   679  	return o
   680  }
   681  
   682  // SetLabelNic adds the labelNic to the dcim device bays list params
   683  func (o *DcimDeviceBaysListParams) SetLabelNic(labelNic *string) {
   684  	o.LabelNic = labelNic
   685  }
   686  
   687  // WithLabelNie adds the labelNie to the dcim device bays list params
   688  func (o *DcimDeviceBaysListParams) WithLabelNie(labelNie *string) *DcimDeviceBaysListParams {
   689  	o.SetLabelNie(labelNie)
   690  	return o
   691  }
   692  
   693  // SetLabelNie adds the labelNie to the dcim device bays list params
   694  func (o *DcimDeviceBaysListParams) SetLabelNie(labelNie *string) {
   695  	o.LabelNie = labelNie
   696  }
   697  
   698  // WithLabelNiew adds the labelNiew to the dcim device bays list params
   699  func (o *DcimDeviceBaysListParams) WithLabelNiew(labelNiew *string) *DcimDeviceBaysListParams {
   700  	o.SetLabelNiew(labelNiew)
   701  	return o
   702  }
   703  
   704  // SetLabelNiew adds the labelNiew to the dcim device bays list params
   705  func (o *DcimDeviceBaysListParams) SetLabelNiew(labelNiew *string) {
   706  	o.LabelNiew = labelNiew
   707  }
   708  
   709  // WithLabelNisw adds the labelNisw to the dcim device bays list params
   710  func (o *DcimDeviceBaysListParams) WithLabelNisw(labelNisw *string) *DcimDeviceBaysListParams {
   711  	o.SetLabelNisw(labelNisw)
   712  	return o
   713  }
   714  
   715  // SetLabelNisw adds the labelNisw to the dcim device bays list params
   716  func (o *DcimDeviceBaysListParams) SetLabelNisw(labelNisw *string) {
   717  	o.LabelNisw = labelNisw
   718  }
   719  
   720  // WithLastUpdated adds the lastUpdated to the dcim device bays list params
   721  func (o *DcimDeviceBaysListParams) WithLastUpdated(lastUpdated *string) *DcimDeviceBaysListParams {
   722  	o.SetLastUpdated(lastUpdated)
   723  	return o
   724  }
   725  
   726  // SetLastUpdated adds the lastUpdated to the dcim device bays list params
   727  func (o *DcimDeviceBaysListParams) SetLastUpdated(lastUpdated *string) {
   728  	o.LastUpdated = lastUpdated
   729  }
   730  
   731  // WithLastUpdatedGte adds the lastUpdatedGte to the dcim device bays list params
   732  func (o *DcimDeviceBaysListParams) WithLastUpdatedGte(lastUpdatedGte *string) *DcimDeviceBaysListParams {
   733  	o.SetLastUpdatedGte(lastUpdatedGte)
   734  	return o
   735  }
   736  
   737  // SetLastUpdatedGte adds the lastUpdatedGte to the dcim device bays list params
   738  func (o *DcimDeviceBaysListParams) SetLastUpdatedGte(lastUpdatedGte *string) {
   739  	o.LastUpdatedGte = lastUpdatedGte
   740  }
   741  
   742  // WithLastUpdatedLte adds the lastUpdatedLte to the dcim device bays list params
   743  func (o *DcimDeviceBaysListParams) WithLastUpdatedLte(lastUpdatedLte *string) *DcimDeviceBaysListParams {
   744  	o.SetLastUpdatedLte(lastUpdatedLte)
   745  	return o
   746  }
   747  
   748  // SetLastUpdatedLte adds the lastUpdatedLte to the dcim device bays list params
   749  func (o *DcimDeviceBaysListParams) SetLastUpdatedLte(lastUpdatedLte *string) {
   750  	o.LastUpdatedLte = lastUpdatedLte
   751  }
   752  
   753  // WithLimit adds the limit to the dcim device bays list params
   754  func (o *DcimDeviceBaysListParams) WithLimit(limit *int64) *DcimDeviceBaysListParams {
   755  	o.SetLimit(limit)
   756  	return o
   757  }
   758  
   759  // SetLimit adds the limit to the dcim device bays list params
   760  func (o *DcimDeviceBaysListParams) SetLimit(limit *int64) {
   761  	o.Limit = limit
   762  }
   763  
   764  // WithName adds the name to the dcim device bays list params
   765  func (o *DcimDeviceBaysListParams) WithName(name *string) *DcimDeviceBaysListParams {
   766  	o.SetName(name)
   767  	return o
   768  }
   769  
   770  // SetName adds the name to the dcim device bays list params
   771  func (o *DcimDeviceBaysListParams) SetName(name *string) {
   772  	o.Name = name
   773  }
   774  
   775  // WithNameEmpty adds the nameEmpty to the dcim device bays list params
   776  func (o *DcimDeviceBaysListParams) WithNameEmpty(nameEmpty *string) *DcimDeviceBaysListParams {
   777  	o.SetNameEmpty(nameEmpty)
   778  	return o
   779  }
   780  
   781  // SetNameEmpty adds the nameEmpty to the dcim device bays list params
   782  func (o *DcimDeviceBaysListParams) SetNameEmpty(nameEmpty *string) {
   783  	o.NameEmpty = nameEmpty
   784  }
   785  
   786  // WithNameIc adds the nameIc to the dcim device bays list params
   787  func (o *DcimDeviceBaysListParams) WithNameIc(nameIc *string) *DcimDeviceBaysListParams {
   788  	o.SetNameIc(nameIc)
   789  	return o
   790  }
   791  
   792  // SetNameIc adds the nameIc to the dcim device bays list params
   793  func (o *DcimDeviceBaysListParams) SetNameIc(nameIc *string) {
   794  	o.NameIc = nameIc
   795  }
   796  
   797  // WithNameIe adds the nameIe to the dcim device bays list params
   798  func (o *DcimDeviceBaysListParams) WithNameIe(nameIe *string) *DcimDeviceBaysListParams {
   799  	o.SetNameIe(nameIe)
   800  	return o
   801  }
   802  
   803  // SetNameIe adds the nameIe to the dcim device bays list params
   804  func (o *DcimDeviceBaysListParams) SetNameIe(nameIe *string) {
   805  	o.NameIe = nameIe
   806  }
   807  
   808  // WithNameIew adds the nameIew to the dcim device bays list params
   809  func (o *DcimDeviceBaysListParams) WithNameIew(nameIew *string) *DcimDeviceBaysListParams {
   810  	o.SetNameIew(nameIew)
   811  	return o
   812  }
   813  
   814  // SetNameIew adds the nameIew to the dcim device bays list params
   815  func (o *DcimDeviceBaysListParams) SetNameIew(nameIew *string) {
   816  	o.NameIew = nameIew
   817  }
   818  
   819  // WithNameIsw adds the nameIsw to the dcim device bays list params
   820  func (o *DcimDeviceBaysListParams) WithNameIsw(nameIsw *string) *DcimDeviceBaysListParams {
   821  	o.SetNameIsw(nameIsw)
   822  	return o
   823  }
   824  
   825  // SetNameIsw adds the nameIsw to the dcim device bays list params
   826  func (o *DcimDeviceBaysListParams) SetNameIsw(nameIsw *string) {
   827  	o.NameIsw = nameIsw
   828  }
   829  
   830  // WithNamen adds the namen to the dcim device bays list params
   831  func (o *DcimDeviceBaysListParams) WithNamen(namen *string) *DcimDeviceBaysListParams {
   832  	o.SetNamen(namen)
   833  	return o
   834  }
   835  
   836  // SetNamen adds the nameN to the dcim device bays list params
   837  func (o *DcimDeviceBaysListParams) SetNamen(namen *string) {
   838  	o.Namen = namen
   839  }
   840  
   841  // WithNameNic adds the nameNic to the dcim device bays list params
   842  func (o *DcimDeviceBaysListParams) WithNameNic(nameNic *string) *DcimDeviceBaysListParams {
   843  	o.SetNameNic(nameNic)
   844  	return o
   845  }
   846  
   847  // SetNameNic adds the nameNic to the dcim device bays list params
   848  func (o *DcimDeviceBaysListParams) SetNameNic(nameNic *string) {
   849  	o.NameNic = nameNic
   850  }
   851  
   852  // WithNameNie adds the nameNie to the dcim device bays list params
   853  func (o *DcimDeviceBaysListParams) WithNameNie(nameNie *string) *DcimDeviceBaysListParams {
   854  	o.SetNameNie(nameNie)
   855  	return o
   856  }
   857  
   858  // SetNameNie adds the nameNie to the dcim device bays list params
   859  func (o *DcimDeviceBaysListParams) SetNameNie(nameNie *string) {
   860  	o.NameNie = nameNie
   861  }
   862  
   863  // WithNameNiew adds the nameNiew to the dcim device bays list params
   864  func (o *DcimDeviceBaysListParams) WithNameNiew(nameNiew *string) *DcimDeviceBaysListParams {
   865  	o.SetNameNiew(nameNiew)
   866  	return o
   867  }
   868  
   869  // SetNameNiew adds the nameNiew to the dcim device bays list params
   870  func (o *DcimDeviceBaysListParams) SetNameNiew(nameNiew *string) {
   871  	o.NameNiew = nameNiew
   872  }
   873  
   874  // WithNameNisw adds the nameNisw to the dcim device bays list params
   875  func (o *DcimDeviceBaysListParams) WithNameNisw(nameNisw *string) *DcimDeviceBaysListParams {
   876  	o.SetNameNisw(nameNisw)
   877  	return o
   878  }
   879  
   880  // SetNameNisw adds the nameNisw to the dcim device bays list params
   881  func (o *DcimDeviceBaysListParams) SetNameNisw(nameNisw *string) {
   882  	o.NameNisw = nameNisw
   883  }
   884  
   885  // WithOffset adds the offset to the dcim device bays list params
   886  func (o *DcimDeviceBaysListParams) WithOffset(offset *int64) *DcimDeviceBaysListParams {
   887  	o.SetOffset(offset)
   888  	return o
   889  }
   890  
   891  // SetOffset adds the offset to the dcim device bays list params
   892  func (o *DcimDeviceBaysListParams) SetOffset(offset *int64) {
   893  	o.Offset = offset
   894  }
   895  
   896  // WithQ adds the q to the dcim device bays list params
   897  func (o *DcimDeviceBaysListParams) WithQ(q *string) *DcimDeviceBaysListParams {
   898  	o.SetQ(q)
   899  	return o
   900  }
   901  
   902  // SetQ adds the q to the dcim device bays list params
   903  func (o *DcimDeviceBaysListParams) SetQ(q *string) {
   904  	o.Q = q
   905  }
   906  
   907  // WithRegion adds the region to the dcim device bays list params
   908  func (o *DcimDeviceBaysListParams) WithRegion(region *string) *DcimDeviceBaysListParams {
   909  	o.SetRegion(region)
   910  	return o
   911  }
   912  
   913  // SetRegion adds the region to the dcim device bays list params
   914  func (o *DcimDeviceBaysListParams) SetRegion(region *string) {
   915  	o.Region = region
   916  }
   917  
   918  // WithRegionn adds the regionn to the dcim device bays list params
   919  func (o *DcimDeviceBaysListParams) WithRegionn(regionn *string) *DcimDeviceBaysListParams {
   920  	o.SetRegionn(regionn)
   921  	return o
   922  }
   923  
   924  // SetRegionn adds the regionN to the dcim device bays list params
   925  func (o *DcimDeviceBaysListParams) SetRegionn(regionn *string) {
   926  	o.Regionn = regionn
   927  }
   928  
   929  // WithRegionID adds the regionID to the dcim device bays list params
   930  func (o *DcimDeviceBaysListParams) WithRegionID(regionID *string) *DcimDeviceBaysListParams {
   931  	o.SetRegionID(regionID)
   932  	return o
   933  }
   934  
   935  // SetRegionID adds the regionId to the dcim device bays list params
   936  func (o *DcimDeviceBaysListParams) SetRegionID(regionID *string) {
   937  	o.RegionID = regionID
   938  }
   939  
   940  // WithRegionIDn adds the regionIDn to the dcim device bays list params
   941  func (o *DcimDeviceBaysListParams) WithRegionIDn(regionIDn *string) *DcimDeviceBaysListParams {
   942  	o.SetRegionIDn(regionIDn)
   943  	return o
   944  }
   945  
   946  // SetRegionIDn adds the regionIdN to the dcim device bays list params
   947  func (o *DcimDeviceBaysListParams) SetRegionIDn(regionIDn *string) {
   948  	o.RegionIDn = regionIDn
   949  }
   950  
   951  // WithSite adds the site to the dcim device bays list params
   952  func (o *DcimDeviceBaysListParams) WithSite(site *string) *DcimDeviceBaysListParams {
   953  	o.SetSite(site)
   954  	return o
   955  }
   956  
   957  // SetSite adds the site to the dcim device bays list params
   958  func (o *DcimDeviceBaysListParams) SetSite(site *string) {
   959  	o.Site = site
   960  }
   961  
   962  // WithSiten adds the siten to the dcim device bays list params
   963  func (o *DcimDeviceBaysListParams) WithSiten(siten *string) *DcimDeviceBaysListParams {
   964  	o.SetSiten(siten)
   965  	return o
   966  }
   967  
   968  // SetSiten adds the siteN to the dcim device bays list params
   969  func (o *DcimDeviceBaysListParams) SetSiten(siten *string) {
   970  	o.Siten = siten
   971  }
   972  
   973  // WithSiteGroup adds the siteGroup to the dcim device bays list params
   974  func (o *DcimDeviceBaysListParams) WithSiteGroup(siteGroup *string) *DcimDeviceBaysListParams {
   975  	o.SetSiteGroup(siteGroup)
   976  	return o
   977  }
   978  
   979  // SetSiteGroup adds the siteGroup to the dcim device bays list params
   980  func (o *DcimDeviceBaysListParams) SetSiteGroup(siteGroup *string) {
   981  	o.SiteGroup = siteGroup
   982  }
   983  
   984  // WithSiteGroupn adds the siteGroupn to the dcim device bays list params
   985  func (o *DcimDeviceBaysListParams) WithSiteGroupn(siteGroupn *string) *DcimDeviceBaysListParams {
   986  	o.SetSiteGroupn(siteGroupn)
   987  	return o
   988  }
   989  
   990  // SetSiteGroupn adds the siteGroupN to the dcim device bays list params
   991  func (o *DcimDeviceBaysListParams) SetSiteGroupn(siteGroupn *string) {
   992  	o.SiteGroupn = siteGroupn
   993  }
   994  
   995  // WithSiteGroupID adds the siteGroupID to the dcim device bays list params
   996  func (o *DcimDeviceBaysListParams) WithSiteGroupID(siteGroupID *string) *DcimDeviceBaysListParams {
   997  	o.SetSiteGroupID(siteGroupID)
   998  	return o
   999  }
  1000  
  1001  // SetSiteGroupID adds the siteGroupId to the dcim device bays list params
  1002  func (o *DcimDeviceBaysListParams) SetSiteGroupID(siteGroupID *string) {
  1003  	o.SiteGroupID = siteGroupID
  1004  }
  1005  
  1006  // WithSiteGroupIDn adds the siteGroupIDn to the dcim device bays list params
  1007  func (o *DcimDeviceBaysListParams) WithSiteGroupIDn(siteGroupIDn *string) *DcimDeviceBaysListParams {
  1008  	o.SetSiteGroupIDn(siteGroupIDn)
  1009  	return o
  1010  }
  1011  
  1012  // SetSiteGroupIDn adds the siteGroupIdN to the dcim device bays list params
  1013  func (o *DcimDeviceBaysListParams) SetSiteGroupIDn(siteGroupIDn *string) {
  1014  	o.SiteGroupIDn = siteGroupIDn
  1015  }
  1016  
  1017  // WithSiteID adds the siteID to the dcim device bays list params
  1018  func (o *DcimDeviceBaysListParams) WithSiteID(siteID *string) *DcimDeviceBaysListParams {
  1019  	o.SetSiteID(siteID)
  1020  	return o
  1021  }
  1022  
  1023  // SetSiteID adds the siteId to the dcim device bays list params
  1024  func (o *DcimDeviceBaysListParams) SetSiteID(siteID *string) {
  1025  	o.SiteID = siteID
  1026  }
  1027  
  1028  // WithSiteIDn adds the siteIDn to the dcim device bays list params
  1029  func (o *DcimDeviceBaysListParams) WithSiteIDn(siteIDn *string) *DcimDeviceBaysListParams {
  1030  	o.SetSiteIDn(siteIDn)
  1031  	return o
  1032  }
  1033  
  1034  // SetSiteIDn adds the siteIdN to the dcim device bays list params
  1035  func (o *DcimDeviceBaysListParams) SetSiteIDn(siteIDn *string) {
  1036  	o.SiteIDn = siteIDn
  1037  }
  1038  
  1039  // WithTag adds the tag to the dcim device bays list params
  1040  func (o *DcimDeviceBaysListParams) WithTag(tag *string) *DcimDeviceBaysListParams {
  1041  	o.SetTag(tag)
  1042  	return o
  1043  }
  1044  
  1045  // SetTag adds the tag to the dcim device bays list params
  1046  func (o *DcimDeviceBaysListParams) SetTag(tag *string) {
  1047  	o.Tag = tag
  1048  }
  1049  
  1050  // WithTagn adds the tagn to the dcim device bays list params
  1051  func (o *DcimDeviceBaysListParams) WithTagn(tagn *string) *DcimDeviceBaysListParams {
  1052  	o.SetTagn(tagn)
  1053  	return o
  1054  }
  1055  
  1056  // SetTagn adds the tagN to the dcim device bays list params
  1057  func (o *DcimDeviceBaysListParams) SetTagn(tagn *string) {
  1058  	o.Tagn = tagn
  1059  }
  1060  
  1061  // WriteToRequest writes these params to a swagger request
  1062  func (o *DcimDeviceBaysListParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error {
  1063  
  1064  	if err := r.SetTimeout(o.timeout); err != nil {
  1065  		return err
  1066  	}
  1067  	var res []error
  1068  
  1069  	if o.Created != nil {
  1070  
  1071  		// query param created
  1072  		var qrCreated string
  1073  
  1074  		if o.Created != nil {
  1075  			qrCreated = *o.Created
  1076  		}
  1077  		qCreated := qrCreated
  1078  		if qCreated != "" {
  1079  
  1080  			if err := r.SetQueryParam("created", qCreated); err != nil {
  1081  				return err
  1082  			}
  1083  		}
  1084  	}
  1085  
  1086  	if o.CreatedGte != nil {
  1087  
  1088  		// query param created__gte
  1089  		var qrCreatedGte string
  1090  
  1091  		if o.CreatedGte != nil {
  1092  			qrCreatedGte = *o.CreatedGte
  1093  		}
  1094  		qCreatedGte := qrCreatedGte
  1095  		if qCreatedGte != "" {
  1096  
  1097  			if err := r.SetQueryParam("created__gte", qCreatedGte); err != nil {
  1098  				return err
  1099  			}
  1100  		}
  1101  	}
  1102  
  1103  	if o.CreatedLte != nil {
  1104  
  1105  		// query param created__lte
  1106  		var qrCreatedLte string
  1107  
  1108  		if o.CreatedLte != nil {
  1109  			qrCreatedLte = *o.CreatedLte
  1110  		}
  1111  		qCreatedLte := qrCreatedLte
  1112  		if qCreatedLte != "" {
  1113  
  1114  			if err := r.SetQueryParam("created__lte", qCreatedLte); err != nil {
  1115  				return err
  1116  			}
  1117  		}
  1118  	}
  1119  
  1120  	if o.Description != nil {
  1121  
  1122  		// query param description
  1123  		var qrDescription string
  1124  
  1125  		if o.Description != nil {
  1126  			qrDescription = *o.Description
  1127  		}
  1128  		qDescription := qrDescription
  1129  		if qDescription != "" {
  1130  
  1131  			if err := r.SetQueryParam("description", qDescription); err != nil {
  1132  				return err
  1133  			}
  1134  		}
  1135  	}
  1136  
  1137  	if o.DescriptionEmpty != nil {
  1138  
  1139  		// query param description__empty
  1140  		var qrDescriptionEmpty string
  1141  
  1142  		if o.DescriptionEmpty != nil {
  1143  			qrDescriptionEmpty = *o.DescriptionEmpty
  1144  		}
  1145  		qDescriptionEmpty := qrDescriptionEmpty
  1146  		if qDescriptionEmpty != "" {
  1147  
  1148  			if err := r.SetQueryParam("description__empty", qDescriptionEmpty); err != nil {
  1149  				return err
  1150  			}
  1151  		}
  1152  	}
  1153  
  1154  	if o.DescriptionIc != nil {
  1155  
  1156  		// query param description__ic
  1157  		var qrDescriptionIc string
  1158  
  1159  		if o.DescriptionIc != nil {
  1160  			qrDescriptionIc = *o.DescriptionIc
  1161  		}
  1162  		qDescriptionIc := qrDescriptionIc
  1163  		if qDescriptionIc != "" {
  1164  
  1165  			if err := r.SetQueryParam("description__ic", qDescriptionIc); err != nil {
  1166  				return err
  1167  			}
  1168  		}
  1169  	}
  1170  
  1171  	if o.DescriptionIe != nil {
  1172  
  1173  		// query param description__ie
  1174  		var qrDescriptionIe string
  1175  
  1176  		if o.DescriptionIe != nil {
  1177  			qrDescriptionIe = *o.DescriptionIe
  1178  		}
  1179  		qDescriptionIe := qrDescriptionIe
  1180  		if qDescriptionIe != "" {
  1181  
  1182  			if err := r.SetQueryParam("description__ie", qDescriptionIe); err != nil {
  1183  				return err
  1184  			}
  1185  		}
  1186  	}
  1187  
  1188  	if o.DescriptionIew != nil {
  1189  
  1190  		// query param description__iew
  1191  		var qrDescriptionIew string
  1192  
  1193  		if o.DescriptionIew != nil {
  1194  			qrDescriptionIew = *o.DescriptionIew
  1195  		}
  1196  		qDescriptionIew := qrDescriptionIew
  1197  		if qDescriptionIew != "" {
  1198  
  1199  			if err := r.SetQueryParam("description__iew", qDescriptionIew); err != nil {
  1200  				return err
  1201  			}
  1202  		}
  1203  	}
  1204  
  1205  	if o.DescriptionIsw != nil {
  1206  
  1207  		// query param description__isw
  1208  		var qrDescriptionIsw string
  1209  
  1210  		if o.DescriptionIsw != nil {
  1211  			qrDescriptionIsw = *o.DescriptionIsw
  1212  		}
  1213  		qDescriptionIsw := qrDescriptionIsw
  1214  		if qDescriptionIsw != "" {
  1215  
  1216  			if err := r.SetQueryParam("description__isw", qDescriptionIsw); err != nil {
  1217  				return err
  1218  			}
  1219  		}
  1220  	}
  1221  
  1222  	if o.Descriptionn != nil {
  1223  
  1224  		// query param description__n
  1225  		var qrDescriptionn string
  1226  
  1227  		if o.Descriptionn != nil {
  1228  			qrDescriptionn = *o.Descriptionn
  1229  		}
  1230  		qDescriptionn := qrDescriptionn
  1231  		if qDescriptionn != "" {
  1232  
  1233  			if err := r.SetQueryParam("description__n", qDescriptionn); err != nil {
  1234  				return err
  1235  			}
  1236  		}
  1237  	}
  1238  
  1239  	if o.DescriptionNic != nil {
  1240  
  1241  		// query param description__nic
  1242  		var qrDescriptionNic string
  1243  
  1244  		if o.DescriptionNic != nil {
  1245  			qrDescriptionNic = *o.DescriptionNic
  1246  		}
  1247  		qDescriptionNic := qrDescriptionNic
  1248  		if qDescriptionNic != "" {
  1249  
  1250  			if err := r.SetQueryParam("description__nic", qDescriptionNic); err != nil {
  1251  				return err
  1252  			}
  1253  		}
  1254  	}
  1255  
  1256  	if o.DescriptionNie != nil {
  1257  
  1258  		// query param description__nie
  1259  		var qrDescriptionNie string
  1260  
  1261  		if o.DescriptionNie != nil {
  1262  			qrDescriptionNie = *o.DescriptionNie
  1263  		}
  1264  		qDescriptionNie := qrDescriptionNie
  1265  		if qDescriptionNie != "" {
  1266  
  1267  			if err := r.SetQueryParam("description__nie", qDescriptionNie); err != nil {
  1268  				return err
  1269  			}
  1270  		}
  1271  	}
  1272  
  1273  	if o.DescriptionNiew != nil {
  1274  
  1275  		// query param description__niew
  1276  		var qrDescriptionNiew string
  1277  
  1278  		if o.DescriptionNiew != nil {
  1279  			qrDescriptionNiew = *o.DescriptionNiew
  1280  		}
  1281  		qDescriptionNiew := qrDescriptionNiew
  1282  		if qDescriptionNiew != "" {
  1283  
  1284  			if err := r.SetQueryParam("description__niew", qDescriptionNiew); err != nil {
  1285  				return err
  1286  			}
  1287  		}
  1288  	}
  1289  
  1290  	if o.DescriptionNisw != nil {
  1291  
  1292  		// query param description__nisw
  1293  		var qrDescriptionNisw string
  1294  
  1295  		if o.DescriptionNisw != nil {
  1296  			qrDescriptionNisw = *o.DescriptionNisw
  1297  		}
  1298  		qDescriptionNisw := qrDescriptionNisw
  1299  		if qDescriptionNisw != "" {
  1300  
  1301  			if err := r.SetQueryParam("description__nisw", qDescriptionNisw); err != nil {
  1302  				return err
  1303  			}
  1304  		}
  1305  	}
  1306  
  1307  	if o.Device != nil {
  1308  
  1309  		// query param device
  1310  		var qrDevice string
  1311  
  1312  		if o.Device != nil {
  1313  			qrDevice = *o.Device
  1314  		}
  1315  		qDevice := qrDevice
  1316  		if qDevice != "" {
  1317  
  1318  			if err := r.SetQueryParam("device", qDevice); err != nil {
  1319  				return err
  1320  			}
  1321  		}
  1322  	}
  1323  
  1324  	if o.Devicen != nil {
  1325  
  1326  		// query param device__n
  1327  		var qrDevicen string
  1328  
  1329  		if o.Devicen != nil {
  1330  			qrDevicen = *o.Devicen
  1331  		}
  1332  		qDevicen := qrDevicen
  1333  		if qDevicen != "" {
  1334  
  1335  			if err := r.SetQueryParam("device__n", qDevicen); err != nil {
  1336  				return err
  1337  			}
  1338  		}
  1339  	}
  1340  
  1341  	if o.DeviceID != nil {
  1342  
  1343  		// query param device_id
  1344  		var qrDeviceID string
  1345  
  1346  		if o.DeviceID != nil {
  1347  			qrDeviceID = *o.DeviceID
  1348  		}
  1349  		qDeviceID := qrDeviceID
  1350  		if qDeviceID != "" {
  1351  
  1352  			if err := r.SetQueryParam("device_id", qDeviceID); err != nil {
  1353  				return err
  1354  			}
  1355  		}
  1356  	}
  1357  
  1358  	if o.DeviceIDn != nil {
  1359  
  1360  		// query param device_id__n
  1361  		var qrDeviceIDn string
  1362  
  1363  		if o.DeviceIDn != nil {
  1364  			qrDeviceIDn = *o.DeviceIDn
  1365  		}
  1366  		qDeviceIDn := qrDeviceIDn
  1367  		if qDeviceIDn != "" {
  1368  
  1369  			if err := r.SetQueryParam("device_id__n", qDeviceIDn); err != nil {
  1370  				return err
  1371  			}
  1372  		}
  1373  	}
  1374  
  1375  	if o.ID != nil {
  1376  
  1377  		// query param id
  1378  		var qrID string
  1379  
  1380  		if o.ID != nil {
  1381  			qrID = *o.ID
  1382  		}
  1383  		qID := qrID
  1384  		if qID != "" {
  1385  
  1386  			if err := r.SetQueryParam("id", qID); err != nil {
  1387  				return err
  1388  			}
  1389  		}
  1390  	}
  1391  
  1392  	if o.IDGt != nil {
  1393  
  1394  		// query param id__gt
  1395  		var qrIDGt string
  1396  
  1397  		if o.IDGt != nil {
  1398  			qrIDGt = *o.IDGt
  1399  		}
  1400  		qIDGt := qrIDGt
  1401  		if qIDGt != "" {
  1402  
  1403  			if err := r.SetQueryParam("id__gt", qIDGt); err != nil {
  1404  				return err
  1405  			}
  1406  		}
  1407  	}
  1408  
  1409  	if o.IDGte != nil {
  1410  
  1411  		// query param id__gte
  1412  		var qrIDGte string
  1413  
  1414  		if o.IDGte != nil {
  1415  			qrIDGte = *o.IDGte
  1416  		}
  1417  		qIDGte := qrIDGte
  1418  		if qIDGte != "" {
  1419  
  1420  			if err := r.SetQueryParam("id__gte", qIDGte); err != nil {
  1421  				return err
  1422  			}
  1423  		}
  1424  	}
  1425  
  1426  	if o.IDLt != nil {
  1427  
  1428  		// query param id__lt
  1429  		var qrIDLt string
  1430  
  1431  		if o.IDLt != nil {
  1432  			qrIDLt = *o.IDLt
  1433  		}
  1434  		qIDLt := qrIDLt
  1435  		if qIDLt != "" {
  1436  
  1437  			if err := r.SetQueryParam("id__lt", qIDLt); err != nil {
  1438  				return err
  1439  			}
  1440  		}
  1441  	}
  1442  
  1443  	if o.IDLte != nil {
  1444  
  1445  		// query param id__lte
  1446  		var qrIDLte string
  1447  
  1448  		if o.IDLte != nil {
  1449  			qrIDLte = *o.IDLte
  1450  		}
  1451  		qIDLte := qrIDLte
  1452  		if qIDLte != "" {
  1453  
  1454  			if err := r.SetQueryParam("id__lte", qIDLte); err != nil {
  1455  				return err
  1456  			}
  1457  		}
  1458  	}
  1459  
  1460  	if o.IDn != nil {
  1461  
  1462  		// query param id__n
  1463  		var qrIDn string
  1464  
  1465  		if o.IDn != nil {
  1466  			qrIDn = *o.IDn
  1467  		}
  1468  		qIDn := qrIDn
  1469  		if qIDn != "" {
  1470  
  1471  			if err := r.SetQueryParam("id__n", qIDn); err != nil {
  1472  				return err
  1473  			}
  1474  		}
  1475  	}
  1476  
  1477  	if o.Label != nil {
  1478  
  1479  		// query param label
  1480  		var qrLabel string
  1481  
  1482  		if o.Label != nil {
  1483  			qrLabel = *o.Label
  1484  		}
  1485  		qLabel := qrLabel
  1486  		if qLabel != "" {
  1487  
  1488  			if err := r.SetQueryParam("label", qLabel); err != nil {
  1489  				return err
  1490  			}
  1491  		}
  1492  	}
  1493  
  1494  	if o.LabelEmpty != nil {
  1495  
  1496  		// query param label__empty
  1497  		var qrLabelEmpty string
  1498  
  1499  		if o.LabelEmpty != nil {
  1500  			qrLabelEmpty = *o.LabelEmpty
  1501  		}
  1502  		qLabelEmpty := qrLabelEmpty
  1503  		if qLabelEmpty != "" {
  1504  
  1505  			if err := r.SetQueryParam("label__empty", qLabelEmpty); err != nil {
  1506  				return err
  1507  			}
  1508  		}
  1509  	}
  1510  
  1511  	if o.LabelIc != nil {
  1512  
  1513  		// query param label__ic
  1514  		var qrLabelIc string
  1515  
  1516  		if o.LabelIc != nil {
  1517  			qrLabelIc = *o.LabelIc
  1518  		}
  1519  		qLabelIc := qrLabelIc
  1520  		if qLabelIc != "" {
  1521  
  1522  			if err := r.SetQueryParam("label__ic", qLabelIc); err != nil {
  1523  				return err
  1524  			}
  1525  		}
  1526  	}
  1527  
  1528  	if o.LabelIe != nil {
  1529  
  1530  		// query param label__ie
  1531  		var qrLabelIe string
  1532  
  1533  		if o.LabelIe != nil {
  1534  			qrLabelIe = *o.LabelIe
  1535  		}
  1536  		qLabelIe := qrLabelIe
  1537  		if qLabelIe != "" {
  1538  
  1539  			if err := r.SetQueryParam("label__ie", qLabelIe); err != nil {
  1540  				return err
  1541  			}
  1542  		}
  1543  	}
  1544  
  1545  	if o.LabelIew != nil {
  1546  
  1547  		// query param label__iew
  1548  		var qrLabelIew string
  1549  
  1550  		if o.LabelIew != nil {
  1551  			qrLabelIew = *o.LabelIew
  1552  		}
  1553  		qLabelIew := qrLabelIew
  1554  		if qLabelIew != "" {
  1555  
  1556  			if err := r.SetQueryParam("label__iew", qLabelIew); err != nil {
  1557  				return err
  1558  			}
  1559  		}
  1560  	}
  1561  
  1562  	if o.LabelIsw != nil {
  1563  
  1564  		// query param label__isw
  1565  		var qrLabelIsw string
  1566  
  1567  		if o.LabelIsw != nil {
  1568  			qrLabelIsw = *o.LabelIsw
  1569  		}
  1570  		qLabelIsw := qrLabelIsw
  1571  		if qLabelIsw != "" {
  1572  
  1573  			if err := r.SetQueryParam("label__isw", qLabelIsw); err != nil {
  1574  				return err
  1575  			}
  1576  		}
  1577  	}
  1578  
  1579  	if o.Labeln != nil {
  1580  
  1581  		// query param label__n
  1582  		var qrLabeln string
  1583  
  1584  		if o.Labeln != nil {
  1585  			qrLabeln = *o.Labeln
  1586  		}
  1587  		qLabeln := qrLabeln
  1588  		if qLabeln != "" {
  1589  
  1590  			if err := r.SetQueryParam("label__n", qLabeln); err != nil {
  1591  				return err
  1592  			}
  1593  		}
  1594  	}
  1595  
  1596  	if o.LabelNic != nil {
  1597  
  1598  		// query param label__nic
  1599  		var qrLabelNic string
  1600  
  1601  		if o.LabelNic != nil {
  1602  			qrLabelNic = *o.LabelNic
  1603  		}
  1604  		qLabelNic := qrLabelNic
  1605  		if qLabelNic != "" {
  1606  
  1607  			if err := r.SetQueryParam("label__nic", qLabelNic); err != nil {
  1608  				return err
  1609  			}
  1610  		}
  1611  	}
  1612  
  1613  	if o.LabelNie != nil {
  1614  
  1615  		// query param label__nie
  1616  		var qrLabelNie string
  1617  
  1618  		if o.LabelNie != nil {
  1619  			qrLabelNie = *o.LabelNie
  1620  		}
  1621  		qLabelNie := qrLabelNie
  1622  		if qLabelNie != "" {
  1623  
  1624  			if err := r.SetQueryParam("label__nie", qLabelNie); err != nil {
  1625  				return err
  1626  			}
  1627  		}
  1628  	}
  1629  
  1630  	if o.LabelNiew != nil {
  1631  
  1632  		// query param label__niew
  1633  		var qrLabelNiew string
  1634  
  1635  		if o.LabelNiew != nil {
  1636  			qrLabelNiew = *o.LabelNiew
  1637  		}
  1638  		qLabelNiew := qrLabelNiew
  1639  		if qLabelNiew != "" {
  1640  
  1641  			if err := r.SetQueryParam("label__niew", qLabelNiew); err != nil {
  1642  				return err
  1643  			}
  1644  		}
  1645  	}
  1646  
  1647  	if o.LabelNisw != nil {
  1648  
  1649  		// query param label__nisw
  1650  		var qrLabelNisw string
  1651  
  1652  		if o.LabelNisw != nil {
  1653  			qrLabelNisw = *o.LabelNisw
  1654  		}
  1655  		qLabelNisw := qrLabelNisw
  1656  		if qLabelNisw != "" {
  1657  
  1658  			if err := r.SetQueryParam("label__nisw", qLabelNisw); err != nil {
  1659  				return err
  1660  			}
  1661  		}
  1662  	}
  1663  
  1664  	if o.LastUpdated != nil {
  1665  
  1666  		// query param last_updated
  1667  		var qrLastUpdated string
  1668  
  1669  		if o.LastUpdated != nil {
  1670  			qrLastUpdated = *o.LastUpdated
  1671  		}
  1672  		qLastUpdated := qrLastUpdated
  1673  		if qLastUpdated != "" {
  1674  
  1675  			if err := r.SetQueryParam("last_updated", qLastUpdated); err != nil {
  1676  				return err
  1677  			}
  1678  		}
  1679  	}
  1680  
  1681  	if o.LastUpdatedGte != nil {
  1682  
  1683  		// query param last_updated__gte
  1684  		var qrLastUpdatedGte string
  1685  
  1686  		if o.LastUpdatedGte != nil {
  1687  			qrLastUpdatedGte = *o.LastUpdatedGte
  1688  		}
  1689  		qLastUpdatedGte := qrLastUpdatedGte
  1690  		if qLastUpdatedGte != "" {
  1691  
  1692  			if err := r.SetQueryParam("last_updated__gte", qLastUpdatedGte); err != nil {
  1693  				return err
  1694  			}
  1695  		}
  1696  	}
  1697  
  1698  	if o.LastUpdatedLte != nil {
  1699  
  1700  		// query param last_updated__lte
  1701  		var qrLastUpdatedLte string
  1702  
  1703  		if o.LastUpdatedLte != nil {
  1704  			qrLastUpdatedLte = *o.LastUpdatedLte
  1705  		}
  1706  		qLastUpdatedLte := qrLastUpdatedLte
  1707  		if qLastUpdatedLte != "" {
  1708  
  1709  			if err := r.SetQueryParam("last_updated__lte", qLastUpdatedLte); err != nil {
  1710  				return err
  1711  			}
  1712  		}
  1713  	}
  1714  
  1715  	if o.Limit != nil {
  1716  
  1717  		// query param limit
  1718  		var qrLimit int64
  1719  
  1720  		if o.Limit != nil {
  1721  			qrLimit = *o.Limit
  1722  		}
  1723  		qLimit := swag.FormatInt64(qrLimit)
  1724  		if qLimit != "" {
  1725  
  1726  			if err := r.SetQueryParam("limit", qLimit); err != nil {
  1727  				return err
  1728  			}
  1729  		}
  1730  	}
  1731  
  1732  	if o.Name != nil {
  1733  
  1734  		// query param name
  1735  		var qrName string
  1736  
  1737  		if o.Name != nil {
  1738  			qrName = *o.Name
  1739  		}
  1740  		qName := qrName
  1741  		if qName != "" {
  1742  
  1743  			if err := r.SetQueryParam("name", qName); err != nil {
  1744  				return err
  1745  			}
  1746  		}
  1747  	}
  1748  
  1749  	if o.NameEmpty != nil {
  1750  
  1751  		// query param name__empty
  1752  		var qrNameEmpty string
  1753  
  1754  		if o.NameEmpty != nil {
  1755  			qrNameEmpty = *o.NameEmpty
  1756  		}
  1757  		qNameEmpty := qrNameEmpty
  1758  		if qNameEmpty != "" {
  1759  
  1760  			if err := r.SetQueryParam("name__empty", qNameEmpty); err != nil {
  1761  				return err
  1762  			}
  1763  		}
  1764  	}
  1765  
  1766  	if o.NameIc != nil {
  1767  
  1768  		// query param name__ic
  1769  		var qrNameIc string
  1770  
  1771  		if o.NameIc != nil {
  1772  			qrNameIc = *o.NameIc
  1773  		}
  1774  		qNameIc := qrNameIc
  1775  		if qNameIc != "" {
  1776  
  1777  			if err := r.SetQueryParam("name__ic", qNameIc); err != nil {
  1778  				return err
  1779  			}
  1780  		}
  1781  	}
  1782  
  1783  	if o.NameIe != nil {
  1784  
  1785  		// query param name__ie
  1786  		var qrNameIe string
  1787  
  1788  		if o.NameIe != nil {
  1789  			qrNameIe = *o.NameIe
  1790  		}
  1791  		qNameIe := qrNameIe
  1792  		if qNameIe != "" {
  1793  
  1794  			if err := r.SetQueryParam("name__ie", qNameIe); err != nil {
  1795  				return err
  1796  			}
  1797  		}
  1798  	}
  1799  
  1800  	if o.NameIew != nil {
  1801  
  1802  		// query param name__iew
  1803  		var qrNameIew string
  1804  
  1805  		if o.NameIew != nil {
  1806  			qrNameIew = *o.NameIew
  1807  		}
  1808  		qNameIew := qrNameIew
  1809  		if qNameIew != "" {
  1810  
  1811  			if err := r.SetQueryParam("name__iew", qNameIew); err != nil {
  1812  				return err
  1813  			}
  1814  		}
  1815  	}
  1816  
  1817  	if o.NameIsw != nil {
  1818  
  1819  		// query param name__isw
  1820  		var qrNameIsw string
  1821  
  1822  		if o.NameIsw != nil {
  1823  			qrNameIsw = *o.NameIsw
  1824  		}
  1825  		qNameIsw := qrNameIsw
  1826  		if qNameIsw != "" {
  1827  
  1828  			if err := r.SetQueryParam("name__isw", qNameIsw); err != nil {
  1829  				return err
  1830  			}
  1831  		}
  1832  	}
  1833  
  1834  	if o.Namen != nil {
  1835  
  1836  		// query param name__n
  1837  		var qrNamen string
  1838  
  1839  		if o.Namen != nil {
  1840  			qrNamen = *o.Namen
  1841  		}
  1842  		qNamen := qrNamen
  1843  		if qNamen != "" {
  1844  
  1845  			if err := r.SetQueryParam("name__n", qNamen); err != nil {
  1846  				return err
  1847  			}
  1848  		}
  1849  	}
  1850  
  1851  	if o.NameNic != nil {
  1852  
  1853  		// query param name__nic
  1854  		var qrNameNic string
  1855  
  1856  		if o.NameNic != nil {
  1857  			qrNameNic = *o.NameNic
  1858  		}
  1859  		qNameNic := qrNameNic
  1860  		if qNameNic != "" {
  1861  
  1862  			if err := r.SetQueryParam("name__nic", qNameNic); err != nil {
  1863  				return err
  1864  			}
  1865  		}
  1866  	}
  1867  
  1868  	if o.NameNie != nil {
  1869  
  1870  		// query param name__nie
  1871  		var qrNameNie string
  1872  
  1873  		if o.NameNie != nil {
  1874  			qrNameNie = *o.NameNie
  1875  		}
  1876  		qNameNie := qrNameNie
  1877  		if qNameNie != "" {
  1878  
  1879  			if err := r.SetQueryParam("name__nie", qNameNie); err != nil {
  1880  				return err
  1881  			}
  1882  		}
  1883  	}
  1884  
  1885  	if o.NameNiew != nil {
  1886  
  1887  		// query param name__niew
  1888  		var qrNameNiew string
  1889  
  1890  		if o.NameNiew != nil {
  1891  			qrNameNiew = *o.NameNiew
  1892  		}
  1893  		qNameNiew := qrNameNiew
  1894  		if qNameNiew != "" {
  1895  
  1896  			if err := r.SetQueryParam("name__niew", qNameNiew); err != nil {
  1897  				return err
  1898  			}
  1899  		}
  1900  	}
  1901  
  1902  	if o.NameNisw != nil {
  1903  
  1904  		// query param name__nisw
  1905  		var qrNameNisw string
  1906  
  1907  		if o.NameNisw != nil {
  1908  			qrNameNisw = *o.NameNisw
  1909  		}
  1910  		qNameNisw := qrNameNisw
  1911  		if qNameNisw != "" {
  1912  
  1913  			if err := r.SetQueryParam("name__nisw", qNameNisw); err != nil {
  1914  				return err
  1915  			}
  1916  		}
  1917  	}
  1918  
  1919  	if o.Offset != nil {
  1920  
  1921  		// query param offset
  1922  		var qrOffset int64
  1923  
  1924  		if o.Offset != nil {
  1925  			qrOffset = *o.Offset
  1926  		}
  1927  		qOffset := swag.FormatInt64(qrOffset)
  1928  		if qOffset != "" {
  1929  
  1930  			if err := r.SetQueryParam("offset", qOffset); err != nil {
  1931  				return err
  1932  			}
  1933  		}
  1934  	}
  1935  
  1936  	if o.Q != nil {
  1937  
  1938  		// query param q
  1939  		var qrQ string
  1940  
  1941  		if o.Q != nil {
  1942  			qrQ = *o.Q
  1943  		}
  1944  		qQ := qrQ
  1945  		if qQ != "" {
  1946  
  1947  			if err := r.SetQueryParam("q", qQ); err != nil {
  1948  				return err
  1949  			}
  1950  		}
  1951  	}
  1952  
  1953  	if o.Region != nil {
  1954  
  1955  		// query param region
  1956  		var qrRegion string
  1957  
  1958  		if o.Region != nil {
  1959  			qrRegion = *o.Region
  1960  		}
  1961  		qRegion := qrRegion
  1962  		if qRegion != "" {
  1963  
  1964  			if err := r.SetQueryParam("region", qRegion); err != nil {
  1965  				return err
  1966  			}
  1967  		}
  1968  	}
  1969  
  1970  	if o.Regionn != nil {
  1971  
  1972  		// query param region__n
  1973  		var qrRegionn string
  1974  
  1975  		if o.Regionn != nil {
  1976  			qrRegionn = *o.Regionn
  1977  		}
  1978  		qRegionn := qrRegionn
  1979  		if qRegionn != "" {
  1980  
  1981  			if err := r.SetQueryParam("region__n", qRegionn); err != nil {
  1982  				return err
  1983  			}
  1984  		}
  1985  	}
  1986  
  1987  	if o.RegionID != nil {
  1988  
  1989  		// query param region_id
  1990  		var qrRegionID string
  1991  
  1992  		if o.RegionID != nil {
  1993  			qrRegionID = *o.RegionID
  1994  		}
  1995  		qRegionID := qrRegionID
  1996  		if qRegionID != "" {
  1997  
  1998  			if err := r.SetQueryParam("region_id", qRegionID); err != nil {
  1999  				return err
  2000  			}
  2001  		}
  2002  	}
  2003  
  2004  	if o.RegionIDn != nil {
  2005  
  2006  		// query param region_id__n
  2007  		var qrRegionIDn string
  2008  
  2009  		if o.RegionIDn != nil {
  2010  			qrRegionIDn = *o.RegionIDn
  2011  		}
  2012  		qRegionIDn := qrRegionIDn
  2013  		if qRegionIDn != "" {
  2014  
  2015  			if err := r.SetQueryParam("region_id__n", qRegionIDn); err != nil {
  2016  				return err
  2017  			}
  2018  		}
  2019  	}
  2020  
  2021  	if o.Site != nil {
  2022  
  2023  		// query param site
  2024  		var qrSite string
  2025  
  2026  		if o.Site != nil {
  2027  			qrSite = *o.Site
  2028  		}
  2029  		qSite := qrSite
  2030  		if qSite != "" {
  2031  
  2032  			if err := r.SetQueryParam("site", qSite); err != nil {
  2033  				return err
  2034  			}
  2035  		}
  2036  	}
  2037  
  2038  	if o.Siten != nil {
  2039  
  2040  		// query param site__n
  2041  		var qrSiten string
  2042  
  2043  		if o.Siten != nil {
  2044  			qrSiten = *o.Siten
  2045  		}
  2046  		qSiten := qrSiten
  2047  		if qSiten != "" {
  2048  
  2049  			if err := r.SetQueryParam("site__n", qSiten); err != nil {
  2050  				return err
  2051  			}
  2052  		}
  2053  	}
  2054  
  2055  	if o.SiteGroup != nil {
  2056  
  2057  		// query param site_group
  2058  		var qrSiteGroup string
  2059  
  2060  		if o.SiteGroup != nil {
  2061  			qrSiteGroup = *o.SiteGroup
  2062  		}
  2063  		qSiteGroup := qrSiteGroup
  2064  		if qSiteGroup != "" {
  2065  
  2066  			if err := r.SetQueryParam("site_group", qSiteGroup); err != nil {
  2067  				return err
  2068  			}
  2069  		}
  2070  	}
  2071  
  2072  	if o.SiteGroupn != nil {
  2073  
  2074  		// query param site_group__n
  2075  		var qrSiteGroupn string
  2076  
  2077  		if o.SiteGroupn != nil {
  2078  			qrSiteGroupn = *o.SiteGroupn
  2079  		}
  2080  		qSiteGroupn := qrSiteGroupn
  2081  		if qSiteGroupn != "" {
  2082  
  2083  			if err := r.SetQueryParam("site_group__n", qSiteGroupn); err != nil {
  2084  				return err
  2085  			}
  2086  		}
  2087  	}
  2088  
  2089  	if o.SiteGroupID != nil {
  2090  
  2091  		// query param site_group_id
  2092  		var qrSiteGroupID string
  2093  
  2094  		if o.SiteGroupID != nil {
  2095  			qrSiteGroupID = *o.SiteGroupID
  2096  		}
  2097  		qSiteGroupID := qrSiteGroupID
  2098  		if qSiteGroupID != "" {
  2099  
  2100  			if err := r.SetQueryParam("site_group_id", qSiteGroupID); err != nil {
  2101  				return err
  2102  			}
  2103  		}
  2104  	}
  2105  
  2106  	if o.SiteGroupIDn != nil {
  2107  
  2108  		// query param site_group_id__n
  2109  		var qrSiteGroupIDn string
  2110  
  2111  		if o.SiteGroupIDn != nil {
  2112  			qrSiteGroupIDn = *o.SiteGroupIDn
  2113  		}
  2114  		qSiteGroupIDn := qrSiteGroupIDn
  2115  		if qSiteGroupIDn != "" {
  2116  
  2117  			if err := r.SetQueryParam("site_group_id__n", qSiteGroupIDn); err != nil {
  2118  				return err
  2119  			}
  2120  		}
  2121  	}
  2122  
  2123  	if o.SiteID != nil {
  2124  
  2125  		// query param site_id
  2126  		var qrSiteID string
  2127  
  2128  		if o.SiteID != nil {
  2129  			qrSiteID = *o.SiteID
  2130  		}
  2131  		qSiteID := qrSiteID
  2132  		if qSiteID != "" {
  2133  
  2134  			if err := r.SetQueryParam("site_id", qSiteID); err != nil {
  2135  				return err
  2136  			}
  2137  		}
  2138  	}
  2139  
  2140  	if o.SiteIDn != nil {
  2141  
  2142  		// query param site_id__n
  2143  		var qrSiteIDn string
  2144  
  2145  		if o.SiteIDn != nil {
  2146  			qrSiteIDn = *o.SiteIDn
  2147  		}
  2148  		qSiteIDn := qrSiteIDn
  2149  		if qSiteIDn != "" {
  2150  
  2151  			if err := r.SetQueryParam("site_id__n", qSiteIDn); err != nil {
  2152  				return err
  2153  			}
  2154  		}
  2155  	}
  2156  
  2157  	if o.Tag != nil {
  2158  
  2159  		// query param tag
  2160  		var qrTag string
  2161  
  2162  		if o.Tag != nil {
  2163  			qrTag = *o.Tag
  2164  		}
  2165  		qTag := qrTag
  2166  		if qTag != "" {
  2167  
  2168  			if err := r.SetQueryParam("tag", qTag); err != nil {
  2169  				return err
  2170  			}
  2171  		}
  2172  	}
  2173  
  2174  	if o.Tagn != nil {
  2175  
  2176  		// query param tag__n
  2177  		var qrTagn string
  2178  
  2179  		if o.Tagn != nil {
  2180  			qrTagn = *o.Tagn
  2181  		}
  2182  		qTagn := qrTagn
  2183  		if qTagn != "" {
  2184  
  2185  			if err := r.SetQueryParam("tag__n", qTagn); err != nil {
  2186  				return err
  2187  			}
  2188  		}
  2189  	}
  2190  
  2191  	if len(res) > 0 {
  2192  		return errors.CompositeValidationError(res...)
  2193  	}
  2194  	return nil
  2195  }