github.com/digitalocean/go-netbox@v0.0.2/netbox/client/dcim/dcim_interface_templates_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  // NewDcimInterfaceTemplatesListParams creates a new DcimInterfaceTemplatesListParams 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 NewDcimInterfaceTemplatesListParams() *DcimInterfaceTemplatesListParams {
    42  	return &DcimInterfaceTemplatesListParams{
    43  		timeout: cr.DefaultTimeout,
    44  	}
    45  }
    46  
    47  // NewDcimInterfaceTemplatesListParamsWithTimeout creates a new DcimInterfaceTemplatesListParams object
    48  // with the ability to set a timeout on a request.
    49  func NewDcimInterfaceTemplatesListParamsWithTimeout(timeout time.Duration) *DcimInterfaceTemplatesListParams {
    50  	return &DcimInterfaceTemplatesListParams{
    51  		timeout: timeout,
    52  	}
    53  }
    54  
    55  // NewDcimInterfaceTemplatesListParamsWithContext creates a new DcimInterfaceTemplatesListParams object
    56  // with the ability to set a context for a request.
    57  func NewDcimInterfaceTemplatesListParamsWithContext(ctx context.Context) *DcimInterfaceTemplatesListParams {
    58  	return &DcimInterfaceTemplatesListParams{
    59  		Context: ctx,
    60  	}
    61  }
    62  
    63  // NewDcimInterfaceTemplatesListParamsWithHTTPClient creates a new DcimInterfaceTemplatesListParams object
    64  // with the ability to set a custom HTTPClient for a request.
    65  func NewDcimInterfaceTemplatesListParamsWithHTTPClient(client *http.Client) *DcimInterfaceTemplatesListParams {
    66  	return &DcimInterfaceTemplatesListParams{
    67  		HTTPClient: client,
    68  	}
    69  }
    70  
    71  /* DcimInterfaceTemplatesListParams contains all the parameters to send to the API endpoint
    72     for the dcim interface templates list operation.
    73  
    74     Typically these are written to a http.Request.
    75  */
    76  type DcimInterfaceTemplatesListParams struct {
    77  
    78  	// Created.
    79  	Created *string
    80  
    81  	// CreatedGte.
    82  	CreatedGte *string
    83  
    84  	// CreatedLte.
    85  	CreatedLte *string
    86  
    87  	// DevicetypeID.
    88  	DevicetypeID *string
    89  
    90  	// DevicetypeIDn.
    91  	DevicetypeIDn *string
    92  
    93  	// ID.
    94  	ID *string
    95  
    96  	// IDGt.
    97  	IDGt *string
    98  
    99  	// IDGte.
   100  	IDGte *string
   101  
   102  	// IDLt.
   103  	IDLt *string
   104  
   105  	// IDLte.
   106  	IDLte *string
   107  
   108  	// IDn.
   109  	IDn *string
   110  
   111  	// LastUpdated.
   112  	LastUpdated *string
   113  
   114  	// LastUpdatedGte.
   115  	LastUpdatedGte *string
   116  
   117  	// LastUpdatedLte.
   118  	LastUpdatedLte *string
   119  
   120  	/* Limit.
   121  
   122  	   Number of results to return per page.
   123  	*/
   124  	Limit *int64
   125  
   126  	// MgmtOnly.
   127  	MgmtOnly *string
   128  
   129  	// Name.
   130  	Name *string
   131  
   132  	// NameEmpty.
   133  	NameEmpty *string
   134  
   135  	// NameIc.
   136  	NameIc *string
   137  
   138  	// NameIe.
   139  	NameIe *string
   140  
   141  	// NameIew.
   142  	NameIew *string
   143  
   144  	// NameIsw.
   145  	NameIsw *string
   146  
   147  	// Namen.
   148  	Namen *string
   149  
   150  	// NameNic.
   151  	NameNic *string
   152  
   153  	// NameNie.
   154  	NameNie *string
   155  
   156  	// NameNiew.
   157  	NameNiew *string
   158  
   159  	// NameNisw.
   160  	NameNisw *string
   161  
   162  	/* Offset.
   163  
   164  	   The initial index from which to return the results.
   165  	*/
   166  	Offset *int64
   167  
   168  	// Type.
   169  	Type *string
   170  
   171  	// Typen.
   172  	Typen *string
   173  
   174  	timeout    time.Duration
   175  	Context    context.Context
   176  	HTTPClient *http.Client
   177  }
   178  
   179  // WithDefaults hydrates default values in the dcim interface templates list params (not the query body).
   180  //
   181  // All values with no default are reset to their zero value.
   182  func (o *DcimInterfaceTemplatesListParams) WithDefaults() *DcimInterfaceTemplatesListParams {
   183  	o.SetDefaults()
   184  	return o
   185  }
   186  
   187  // SetDefaults hydrates default values in the dcim interface templates list params (not the query body).
   188  //
   189  // All values with no default are reset to their zero value.
   190  func (o *DcimInterfaceTemplatesListParams) SetDefaults() {
   191  	// no default values defined for this parameter
   192  }
   193  
   194  // WithTimeout adds the timeout to the dcim interface templates list params
   195  func (o *DcimInterfaceTemplatesListParams) WithTimeout(timeout time.Duration) *DcimInterfaceTemplatesListParams {
   196  	o.SetTimeout(timeout)
   197  	return o
   198  }
   199  
   200  // SetTimeout adds the timeout to the dcim interface templates list params
   201  func (o *DcimInterfaceTemplatesListParams) SetTimeout(timeout time.Duration) {
   202  	o.timeout = timeout
   203  }
   204  
   205  // WithContext adds the context to the dcim interface templates list params
   206  func (o *DcimInterfaceTemplatesListParams) WithContext(ctx context.Context) *DcimInterfaceTemplatesListParams {
   207  	o.SetContext(ctx)
   208  	return o
   209  }
   210  
   211  // SetContext adds the context to the dcim interface templates list params
   212  func (o *DcimInterfaceTemplatesListParams) SetContext(ctx context.Context) {
   213  	o.Context = ctx
   214  }
   215  
   216  // WithHTTPClient adds the HTTPClient to the dcim interface templates list params
   217  func (o *DcimInterfaceTemplatesListParams) WithHTTPClient(client *http.Client) *DcimInterfaceTemplatesListParams {
   218  	o.SetHTTPClient(client)
   219  	return o
   220  }
   221  
   222  // SetHTTPClient adds the HTTPClient to the dcim interface templates list params
   223  func (o *DcimInterfaceTemplatesListParams) SetHTTPClient(client *http.Client) {
   224  	o.HTTPClient = client
   225  }
   226  
   227  // WithCreated adds the created to the dcim interface templates list params
   228  func (o *DcimInterfaceTemplatesListParams) WithCreated(created *string) *DcimInterfaceTemplatesListParams {
   229  	o.SetCreated(created)
   230  	return o
   231  }
   232  
   233  // SetCreated adds the created to the dcim interface templates list params
   234  func (o *DcimInterfaceTemplatesListParams) SetCreated(created *string) {
   235  	o.Created = created
   236  }
   237  
   238  // WithCreatedGte adds the createdGte to the dcim interface templates list params
   239  func (o *DcimInterfaceTemplatesListParams) WithCreatedGte(createdGte *string) *DcimInterfaceTemplatesListParams {
   240  	o.SetCreatedGte(createdGte)
   241  	return o
   242  }
   243  
   244  // SetCreatedGte adds the createdGte to the dcim interface templates list params
   245  func (o *DcimInterfaceTemplatesListParams) SetCreatedGte(createdGte *string) {
   246  	o.CreatedGte = createdGte
   247  }
   248  
   249  // WithCreatedLte adds the createdLte to the dcim interface templates list params
   250  func (o *DcimInterfaceTemplatesListParams) WithCreatedLte(createdLte *string) *DcimInterfaceTemplatesListParams {
   251  	o.SetCreatedLte(createdLte)
   252  	return o
   253  }
   254  
   255  // SetCreatedLte adds the createdLte to the dcim interface templates list params
   256  func (o *DcimInterfaceTemplatesListParams) SetCreatedLte(createdLte *string) {
   257  	o.CreatedLte = createdLte
   258  }
   259  
   260  // WithDevicetypeID adds the devicetypeID to the dcim interface templates list params
   261  func (o *DcimInterfaceTemplatesListParams) WithDevicetypeID(devicetypeID *string) *DcimInterfaceTemplatesListParams {
   262  	o.SetDevicetypeID(devicetypeID)
   263  	return o
   264  }
   265  
   266  // SetDevicetypeID adds the devicetypeId to the dcim interface templates list params
   267  func (o *DcimInterfaceTemplatesListParams) SetDevicetypeID(devicetypeID *string) {
   268  	o.DevicetypeID = devicetypeID
   269  }
   270  
   271  // WithDevicetypeIDn adds the devicetypeIDn to the dcim interface templates list params
   272  func (o *DcimInterfaceTemplatesListParams) WithDevicetypeIDn(devicetypeIDn *string) *DcimInterfaceTemplatesListParams {
   273  	o.SetDevicetypeIDn(devicetypeIDn)
   274  	return o
   275  }
   276  
   277  // SetDevicetypeIDn adds the devicetypeIdN to the dcim interface templates list params
   278  func (o *DcimInterfaceTemplatesListParams) SetDevicetypeIDn(devicetypeIDn *string) {
   279  	o.DevicetypeIDn = devicetypeIDn
   280  }
   281  
   282  // WithID adds the id to the dcim interface templates list params
   283  func (o *DcimInterfaceTemplatesListParams) WithID(id *string) *DcimInterfaceTemplatesListParams {
   284  	o.SetID(id)
   285  	return o
   286  }
   287  
   288  // SetID adds the id to the dcim interface templates list params
   289  func (o *DcimInterfaceTemplatesListParams) SetID(id *string) {
   290  	o.ID = id
   291  }
   292  
   293  // WithIDGt adds the iDGt to the dcim interface templates list params
   294  func (o *DcimInterfaceTemplatesListParams) WithIDGt(iDGt *string) *DcimInterfaceTemplatesListParams {
   295  	o.SetIDGt(iDGt)
   296  	return o
   297  }
   298  
   299  // SetIDGt adds the idGt to the dcim interface templates list params
   300  func (o *DcimInterfaceTemplatesListParams) SetIDGt(iDGt *string) {
   301  	o.IDGt = iDGt
   302  }
   303  
   304  // WithIDGte adds the iDGte to the dcim interface templates list params
   305  func (o *DcimInterfaceTemplatesListParams) WithIDGte(iDGte *string) *DcimInterfaceTemplatesListParams {
   306  	o.SetIDGte(iDGte)
   307  	return o
   308  }
   309  
   310  // SetIDGte adds the idGte to the dcim interface templates list params
   311  func (o *DcimInterfaceTemplatesListParams) SetIDGte(iDGte *string) {
   312  	o.IDGte = iDGte
   313  }
   314  
   315  // WithIDLt adds the iDLt to the dcim interface templates list params
   316  func (o *DcimInterfaceTemplatesListParams) WithIDLt(iDLt *string) *DcimInterfaceTemplatesListParams {
   317  	o.SetIDLt(iDLt)
   318  	return o
   319  }
   320  
   321  // SetIDLt adds the idLt to the dcim interface templates list params
   322  func (o *DcimInterfaceTemplatesListParams) SetIDLt(iDLt *string) {
   323  	o.IDLt = iDLt
   324  }
   325  
   326  // WithIDLte adds the iDLte to the dcim interface templates list params
   327  func (o *DcimInterfaceTemplatesListParams) WithIDLte(iDLte *string) *DcimInterfaceTemplatesListParams {
   328  	o.SetIDLte(iDLte)
   329  	return o
   330  }
   331  
   332  // SetIDLte adds the idLte to the dcim interface templates list params
   333  func (o *DcimInterfaceTemplatesListParams) SetIDLte(iDLte *string) {
   334  	o.IDLte = iDLte
   335  }
   336  
   337  // WithIDn adds the iDn to the dcim interface templates list params
   338  func (o *DcimInterfaceTemplatesListParams) WithIDn(iDn *string) *DcimInterfaceTemplatesListParams {
   339  	o.SetIDn(iDn)
   340  	return o
   341  }
   342  
   343  // SetIDn adds the idN to the dcim interface templates list params
   344  func (o *DcimInterfaceTemplatesListParams) SetIDn(iDn *string) {
   345  	o.IDn = iDn
   346  }
   347  
   348  // WithLastUpdated adds the lastUpdated to the dcim interface templates list params
   349  func (o *DcimInterfaceTemplatesListParams) WithLastUpdated(lastUpdated *string) *DcimInterfaceTemplatesListParams {
   350  	o.SetLastUpdated(lastUpdated)
   351  	return o
   352  }
   353  
   354  // SetLastUpdated adds the lastUpdated to the dcim interface templates list params
   355  func (o *DcimInterfaceTemplatesListParams) SetLastUpdated(lastUpdated *string) {
   356  	o.LastUpdated = lastUpdated
   357  }
   358  
   359  // WithLastUpdatedGte adds the lastUpdatedGte to the dcim interface templates list params
   360  func (o *DcimInterfaceTemplatesListParams) WithLastUpdatedGte(lastUpdatedGte *string) *DcimInterfaceTemplatesListParams {
   361  	o.SetLastUpdatedGte(lastUpdatedGte)
   362  	return o
   363  }
   364  
   365  // SetLastUpdatedGte adds the lastUpdatedGte to the dcim interface templates list params
   366  func (o *DcimInterfaceTemplatesListParams) SetLastUpdatedGte(lastUpdatedGte *string) {
   367  	o.LastUpdatedGte = lastUpdatedGte
   368  }
   369  
   370  // WithLastUpdatedLte adds the lastUpdatedLte to the dcim interface templates list params
   371  func (o *DcimInterfaceTemplatesListParams) WithLastUpdatedLte(lastUpdatedLte *string) *DcimInterfaceTemplatesListParams {
   372  	o.SetLastUpdatedLte(lastUpdatedLte)
   373  	return o
   374  }
   375  
   376  // SetLastUpdatedLte adds the lastUpdatedLte to the dcim interface templates list params
   377  func (o *DcimInterfaceTemplatesListParams) SetLastUpdatedLte(lastUpdatedLte *string) {
   378  	o.LastUpdatedLte = lastUpdatedLte
   379  }
   380  
   381  // WithLimit adds the limit to the dcim interface templates list params
   382  func (o *DcimInterfaceTemplatesListParams) WithLimit(limit *int64) *DcimInterfaceTemplatesListParams {
   383  	o.SetLimit(limit)
   384  	return o
   385  }
   386  
   387  // SetLimit adds the limit to the dcim interface templates list params
   388  func (o *DcimInterfaceTemplatesListParams) SetLimit(limit *int64) {
   389  	o.Limit = limit
   390  }
   391  
   392  // WithMgmtOnly adds the mgmtOnly to the dcim interface templates list params
   393  func (o *DcimInterfaceTemplatesListParams) WithMgmtOnly(mgmtOnly *string) *DcimInterfaceTemplatesListParams {
   394  	o.SetMgmtOnly(mgmtOnly)
   395  	return o
   396  }
   397  
   398  // SetMgmtOnly adds the mgmtOnly to the dcim interface templates list params
   399  func (o *DcimInterfaceTemplatesListParams) SetMgmtOnly(mgmtOnly *string) {
   400  	o.MgmtOnly = mgmtOnly
   401  }
   402  
   403  // WithName adds the name to the dcim interface templates list params
   404  func (o *DcimInterfaceTemplatesListParams) WithName(name *string) *DcimInterfaceTemplatesListParams {
   405  	o.SetName(name)
   406  	return o
   407  }
   408  
   409  // SetName adds the name to the dcim interface templates list params
   410  func (o *DcimInterfaceTemplatesListParams) SetName(name *string) {
   411  	o.Name = name
   412  }
   413  
   414  // WithNameEmpty adds the nameEmpty to the dcim interface templates list params
   415  func (o *DcimInterfaceTemplatesListParams) WithNameEmpty(nameEmpty *string) *DcimInterfaceTemplatesListParams {
   416  	o.SetNameEmpty(nameEmpty)
   417  	return o
   418  }
   419  
   420  // SetNameEmpty adds the nameEmpty to the dcim interface templates list params
   421  func (o *DcimInterfaceTemplatesListParams) SetNameEmpty(nameEmpty *string) {
   422  	o.NameEmpty = nameEmpty
   423  }
   424  
   425  // WithNameIc adds the nameIc to the dcim interface templates list params
   426  func (o *DcimInterfaceTemplatesListParams) WithNameIc(nameIc *string) *DcimInterfaceTemplatesListParams {
   427  	o.SetNameIc(nameIc)
   428  	return o
   429  }
   430  
   431  // SetNameIc adds the nameIc to the dcim interface templates list params
   432  func (o *DcimInterfaceTemplatesListParams) SetNameIc(nameIc *string) {
   433  	o.NameIc = nameIc
   434  }
   435  
   436  // WithNameIe adds the nameIe to the dcim interface templates list params
   437  func (o *DcimInterfaceTemplatesListParams) WithNameIe(nameIe *string) *DcimInterfaceTemplatesListParams {
   438  	o.SetNameIe(nameIe)
   439  	return o
   440  }
   441  
   442  // SetNameIe adds the nameIe to the dcim interface templates list params
   443  func (o *DcimInterfaceTemplatesListParams) SetNameIe(nameIe *string) {
   444  	o.NameIe = nameIe
   445  }
   446  
   447  // WithNameIew adds the nameIew to the dcim interface templates list params
   448  func (o *DcimInterfaceTemplatesListParams) WithNameIew(nameIew *string) *DcimInterfaceTemplatesListParams {
   449  	o.SetNameIew(nameIew)
   450  	return o
   451  }
   452  
   453  // SetNameIew adds the nameIew to the dcim interface templates list params
   454  func (o *DcimInterfaceTemplatesListParams) SetNameIew(nameIew *string) {
   455  	o.NameIew = nameIew
   456  }
   457  
   458  // WithNameIsw adds the nameIsw to the dcim interface templates list params
   459  func (o *DcimInterfaceTemplatesListParams) WithNameIsw(nameIsw *string) *DcimInterfaceTemplatesListParams {
   460  	o.SetNameIsw(nameIsw)
   461  	return o
   462  }
   463  
   464  // SetNameIsw adds the nameIsw to the dcim interface templates list params
   465  func (o *DcimInterfaceTemplatesListParams) SetNameIsw(nameIsw *string) {
   466  	o.NameIsw = nameIsw
   467  }
   468  
   469  // WithNamen adds the namen to the dcim interface templates list params
   470  func (o *DcimInterfaceTemplatesListParams) WithNamen(namen *string) *DcimInterfaceTemplatesListParams {
   471  	o.SetNamen(namen)
   472  	return o
   473  }
   474  
   475  // SetNamen adds the nameN to the dcim interface templates list params
   476  func (o *DcimInterfaceTemplatesListParams) SetNamen(namen *string) {
   477  	o.Namen = namen
   478  }
   479  
   480  // WithNameNic adds the nameNic to the dcim interface templates list params
   481  func (o *DcimInterfaceTemplatesListParams) WithNameNic(nameNic *string) *DcimInterfaceTemplatesListParams {
   482  	o.SetNameNic(nameNic)
   483  	return o
   484  }
   485  
   486  // SetNameNic adds the nameNic to the dcim interface templates list params
   487  func (o *DcimInterfaceTemplatesListParams) SetNameNic(nameNic *string) {
   488  	o.NameNic = nameNic
   489  }
   490  
   491  // WithNameNie adds the nameNie to the dcim interface templates list params
   492  func (o *DcimInterfaceTemplatesListParams) WithNameNie(nameNie *string) *DcimInterfaceTemplatesListParams {
   493  	o.SetNameNie(nameNie)
   494  	return o
   495  }
   496  
   497  // SetNameNie adds the nameNie to the dcim interface templates list params
   498  func (o *DcimInterfaceTemplatesListParams) SetNameNie(nameNie *string) {
   499  	o.NameNie = nameNie
   500  }
   501  
   502  // WithNameNiew adds the nameNiew to the dcim interface templates list params
   503  func (o *DcimInterfaceTemplatesListParams) WithNameNiew(nameNiew *string) *DcimInterfaceTemplatesListParams {
   504  	o.SetNameNiew(nameNiew)
   505  	return o
   506  }
   507  
   508  // SetNameNiew adds the nameNiew to the dcim interface templates list params
   509  func (o *DcimInterfaceTemplatesListParams) SetNameNiew(nameNiew *string) {
   510  	o.NameNiew = nameNiew
   511  }
   512  
   513  // WithNameNisw adds the nameNisw to the dcim interface templates list params
   514  func (o *DcimInterfaceTemplatesListParams) WithNameNisw(nameNisw *string) *DcimInterfaceTemplatesListParams {
   515  	o.SetNameNisw(nameNisw)
   516  	return o
   517  }
   518  
   519  // SetNameNisw adds the nameNisw to the dcim interface templates list params
   520  func (o *DcimInterfaceTemplatesListParams) SetNameNisw(nameNisw *string) {
   521  	o.NameNisw = nameNisw
   522  }
   523  
   524  // WithOffset adds the offset to the dcim interface templates list params
   525  func (o *DcimInterfaceTemplatesListParams) WithOffset(offset *int64) *DcimInterfaceTemplatesListParams {
   526  	o.SetOffset(offset)
   527  	return o
   528  }
   529  
   530  // SetOffset adds the offset to the dcim interface templates list params
   531  func (o *DcimInterfaceTemplatesListParams) SetOffset(offset *int64) {
   532  	o.Offset = offset
   533  }
   534  
   535  // WithType adds the typeVar to the dcim interface templates list params
   536  func (o *DcimInterfaceTemplatesListParams) WithType(typeVar *string) *DcimInterfaceTemplatesListParams {
   537  	o.SetType(typeVar)
   538  	return o
   539  }
   540  
   541  // SetType adds the type to the dcim interface templates list params
   542  func (o *DcimInterfaceTemplatesListParams) SetType(typeVar *string) {
   543  	o.Type = typeVar
   544  }
   545  
   546  // WithTypen adds the typen to the dcim interface templates list params
   547  func (o *DcimInterfaceTemplatesListParams) WithTypen(typen *string) *DcimInterfaceTemplatesListParams {
   548  	o.SetTypen(typen)
   549  	return o
   550  }
   551  
   552  // SetTypen adds the typeN to the dcim interface templates list params
   553  func (o *DcimInterfaceTemplatesListParams) SetTypen(typen *string) {
   554  	o.Typen = typen
   555  }
   556  
   557  // WriteToRequest writes these params to a swagger request
   558  func (o *DcimInterfaceTemplatesListParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error {
   559  
   560  	if err := r.SetTimeout(o.timeout); err != nil {
   561  		return err
   562  	}
   563  	var res []error
   564  
   565  	if o.Created != nil {
   566  
   567  		// query param created
   568  		var qrCreated string
   569  
   570  		if o.Created != nil {
   571  			qrCreated = *o.Created
   572  		}
   573  		qCreated := qrCreated
   574  		if qCreated != "" {
   575  
   576  			if err := r.SetQueryParam("created", qCreated); err != nil {
   577  				return err
   578  			}
   579  		}
   580  	}
   581  
   582  	if o.CreatedGte != nil {
   583  
   584  		// query param created__gte
   585  		var qrCreatedGte string
   586  
   587  		if o.CreatedGte != nil {
   588  			qrCreatedGte = *o.CreatedGte
   589  		}
   590  		qCreatedGte := qrCreatedGte
   591  		if qCreatedGte != "" {
   592  
   593  			if err := r.SetQueryParam("created__gte", qCreatedGte); err != nil {
   594  				return err
   595  			}
   596  		}
   597  	}
   598  
   599  	if o.CreatedLte != nil {
   600  
   601  		// query param created__lte
   602  		var qrCreatedLte string
   603  
   604  		if o.CreatedLte != nil {
   605  			qrCreatedLte = *o.CreatedLte
   606  		}
   607  		qCreatedLte := qrCreatedLte
   608  		if qCreatedLte != "" {
   609  
   610  			if err := r.SetQueryParam("created__lte", qCreatedLte); err != nil {
   611  				return err
   612  			}
   613  		}
   614  	}
   615  
   616  	if o.DevicetypeID != nil {
   617  
   618  		// query param devicetype_id
   619  		var qrDevicetypeID string
   620  
   621  		if o.DevicetypeID != nil {
   622  			qrDevicetypeID = *o.DevicetypeID
   623  		}
   624  		qDevicetypeID := qrDevicetypeID
   625  		if qDevicetypeID != "" {
   626  
   627  			if err := r.SetQueryParam("devicetype_id", qDevicetypeID); err != nil {
   628  				return err
   629  			}
   630  		}
   631  	}
   632  
   633  	if o.DevicetypeIDn != nil {
   634  
   635  		// query param devicetype_id__n
   636  		var qrDevicetypeIDn string
   637  
   638  		if o.DevicetypeIDn != nil {
   639  			qrDevicetypeIDn = *o.DevicetypeIDn
   640  		}
   641  		qDevicetypeIDn := qrDevicetypeIDn
   642  		if qDevicetypeIDn != "" {
   643  
   644  			if err := r.SetQueryParam("devicetype_id__n", qDevicetypeIDn); err != nil {
   645  				return err
   646  			}
   647  		}
   648  	}
   649  
   650  	if o.ID != nil {
   651  
   652  		// query param id
   653  		var qrID string
   654  
   655  		if o.ID != nil {
   656  			qrID = *o.ID
   657  		}
   658  		qID := qrID
   659  		if qID != "" {
   660  
   661  			if err := r.SetQueryParam("id", qID); err != nil {
   662  				return err
   663  			}
   664  		}
   665  	}
   666  
   667  	if o.IDGt != nil {
   668  
   669  		// query param id__gt
   670  		var qrIDGt string
   671  
   672  		if o.IDGt != nil {
   673  			qrIDGt = *o.IDGt
   674  		}
   675  		qIDGt := qrIDGt
   676  		if qIDGt != "" {
   677  
   678  			if err := r.SetQueryParam("id__gt", qIDGt); err != nil {
   679  				return err
   680  			}
   681  		}
   682  	}
   683  
   684  	if o.IDGte != nil {
   685  
   686  		// query param id__gte
   687  		var qrIDGte string
   688  
   689  		if o.IDGte != nil {
   690  			qrIDGte = *o.IDGte
   691  		}
   692  		qIDGte := qrIDGte
   693  		if qIDGte != "" {
   694  
   695  			if err := r.SetQueryParam("id__gte", qIDGte); err != nil {
   696  				return err
   697  			}
   698  		}
   699  	}
   700  
   701  	if o.IDLt != nil {
   702  
   703  		// query param id__lt
   704  		var qrIDLt string
   705  
   706  		if o.IDLt != nil {
   707  			qrIDLt = *o.IDLt
   708  		}
   709  		qIDLt := qrIDLt
   710  		if qIDLt != "" {
   711  
   712  			if err := r.SetQueryParam("id__lt", qIDLt); err != nil {
   713  				return err
   714  			}
   715  		}
   716  	}
   717  
   718  	if o.IDLte != nil {
   719  
   720  		// query param id__lte
   721  		var qrIDLte string
   722  
   723  		if o.IDLte != nil {
   724  			qrIDLte = *o.IDLte
   725  		}
   726  		qIDLte := qrIDLte
   727  		if qIDLte != "" {
   728  
   729  			if err := r.SetQueryParam("id__lte", qIDLte); err != nil {
   730  				return err
   731  			}
   732  		}
   733  	}
   734  
   735  	if o.IDn != nil {
   736  
   737  		// query param id__n
   738  		var qrIDn string
   739  
   740  		if o.IDn != nil {
   741  			qrIDn = *o.IDn
   742  		}
   743  		qIDn := qrIDn
   744  		if qIDn != "" {
   745  
   746  			if err := r.SetQueryParam("id__n", qIDn); err != nil {
   747  				return err
   748  			}
   749  		}
   750  	}
   751  
   752  	if o.LastUpdated != nil {
   753  
   754  		// query param last_updated
   755  		var qrLastUpdated string
   756  
   757  		if o.LastUpdated != nil {
   758  			qrLastUpdated = *o.LastUpdated
   759  		}
   760  		qLastUpdated := qrLastUpdated
   761  		if qLastUpdated != "" {
   762  
   763  			if err := r.SetQueryParam("last_updated", qLastUpdated); err != nil {
   764  				return err
   765  			}
   766  		}
   767  	}
   768  
   769  	if o.LastUpdatedGte != nil {
   770  
   771  		// query param last_updated__gte
   772  		var qrLastUpdatedGte string
   773  
   774  		if o.LastUpdatedGte != nil {
   775  			qrLastUpdatedGte = *o.LastUpdatedGte
   776  		}
   777  		qLastUpdatedGte := qrLastUpdatedGte
   778  		if qLastUpdatedGte != "" {
   779  
   780  			if err := r.SetQueryParam("last_updated__gte", qLastUpdatedGte); err != nil {
   781  				return err
   782  			}
   783  		}
   784  	}
   785  
   786  	if o.LastUpdatedLte != nil {
   787  
   788  		// query param last_updated__lte
   789  		var qrLastUpdatedLte string
   790  
   791  		if o.LastUpdatedLte != nil {
   792  			qrLastUpdatedLte = *o.LastUpdatedLte
   793  		}
   794  		qLastUpdatedLte := qrLastUpdatedLte
   795  		if qLastUpdatedLte != "" {
   796  
   797  			if err := r.SetQueryParam("last_updated__lte", qLastUpdatedLte); err != nil {
   798  				return err
   799  			}
   800  		}
   801  	}
   802  
   803  	if o.Limit != nil {
   804  
   805  		// query param limit
   806  		var qrLimit int64
   807  
   808  		if o.Limit != nil {
   809  			qrLimit = *o.Limit
   810  		}
   811  		qLimit := swag.FormatInt64(qrLimit)
   812  		if qLimit != "" {
   813  
   814  			if err := r.SetQueryParam("limit", qLimit); err != nil {
   815  				return err
   816  			}
   817  		}
   818  	}
   819  
   820  	if o.MgmtOnly != nil {
   821  
   822  		// query param mgmt_only
   823  		var qrMgmtOnly string
   824  
   825  		if o.MgmtOnly != nil {
   826  			qrMgmtOnly = *o.MgmtOnly
   827  		}
   828  		qMgmtOnly := qrMgmtOnly
   829  		if qMgmtOnly != "" {
   830  
   831  			if err := r.SetQueryParam("mgmt_only", qMgmtOnly); err != nil {
   832  				return err
   833  			}
   834  		}
   835  	}
   836  
   837  	if o.Name != nil {
   838  
   839  		// query param name
   840  		var qrName string
   841  
   842  		if o.Name != nil {
   843  			qrName = *o.Name
   844  		}
   845  		qName := qrName
   846  		if qName != "" {
   847  
   848  			if err := r.SetQueryParam("name", qName); err != nil {
   849  				return err
   850  			}
   851  		}
   852  	}
   853  
   854  	if o.NameEmpty != nil {
   855  
   856  		// query param name__empty
   857  		var qrNameEmpty string
   858  
   859  		if o.NameEmpty != nil {
   860  			qrNameEmpty = *o.NameEmpty
   861  		}
   862  		qNameEmpty := qrNameEmpty
   863  		if qNameEmpty != "" {
   864  
   865  			if err := r.SetQueryParam("name__empty", qNameEmpty); err != nil {
   866  				return err
   867  			}
   868  		}
   869  	}
   870  
   871  	if o.NameIc != nil {
   872  
   873  		// query param name__ic
   874  		var qrNameIc string
   875  
   876  		if o.NameIc != nil {
   877  			qrNameIc = *o.NameIc
   878  		}
   879  		qNameIc := qrNameIc
   880  		if qNameIc != "" {
   881  
   882  			if err := r.SetQueryParam("name__ic", qNameIc); err != nil {
   883  				return err
   884  			}
   885  		}
   886  	}
   887  
   888  	if o.NameIe != nil {
   889  
   890  		// query param name__ie
   891  		var qrNameIe string
   892  
   893  		if o.NameIe != nil {
   894  			qrNameIe = *o.NameIe
   895  		}
   896  		qNameIe := qrNameIe
   897  		if qNameIe != "" {
   898  
   899  			if err := r.SetQueryParam("name__ie", qNameIe); err != nil {
   900  				return err
   901  			}
   902  		}
   903  	}
   904  
   905  	if o.NameIew != nil {
   906  
   907  		// query param name__iew
   908  		var qrNameIew string
   909  
   910  		if o.NameIew != nil {
   911  			qrNameIew = *o.NameIew
   912  		}
   913  		qNameIew := qrNameIew
   914  		if qNameIew != "" {
   915  
   916  			if err := r.SetQueryParam("name__iew", qNameIew); err != nil {
   917  				return err
   918  			}
   919  		}
   920  	}
   921  
   922  	if o.NameIsw != nil {
   923  
   924  		// query param name__isw
   925  		var qrNameIsw string
   926  
   927  		if o.NameIsw != nil {
   928  			qrNameIsw = *o.NameIsw
   929  		}
   930  		qNameIsw := qrNameIsw
   931  		if qNameIsw != "" {
   932  
   933  			if err := r.SetQueryParam("name__isw", qNameIsw); err != nil {
   934  				return err
   935  			}
   936  		}
   937  	}
   938  
   939  	if o.Namen != nil {
   940  
   941  		// query param name__n
   942  		var qrNamen string
   943  
   944  		if o.Namen != nil {
   945  			qrNamen = *o.Namen
   946  		}
   947  		qNamen := qrNamen
   948  		if qNamen != "" {
   949  
   950  			if err := r.SetQueryParam("name__n", qNamen); err != nil {
   951  				return err
   952  			}
   953  		}
   954  	}
   955  
   956  	if o.NameNic != nil {
   957  
   958  		// query param name__nic
   959  		var qrNameNic string
   960  
   961  		if o.NameNic != nil {
   962  			qrNameNic = *o.NameNic
   963  		}
   964  		qNameNic := qrNameNic
   965  		if qNameNic != "" {
   966  
   967  			if err := r.SetQueryParam("name__nic", qNameNic); err != nil {
   968  				return err
   969  			}
   970  		}
   971  	}
   972  
   973  	if o.NameNie != nil {
   974  
   975  		// query param name__nie
   976  		var qrNameNie string
   977  
   978  		if o.NameNie != nil {
   979  			qrNameNie = *o.NameNie
   980  		}
   981  		qNameNie := qrNameNie
   982  		if qNameNie != "" {
   983  
   984  			if err := r.SetQueryParam("name__nie", qNameNie); err != nil {
   985  				return err
   986  			}
   987  		}
   988  	}
   989  
   990  	if o.NameNiew != nil {
   991  
   992  		// query param name__niew
   993  		var qrNameNiew string
   994  
   995  		if o.NameNiew != nil {
   996  			qrNameNiew = *o.NameNiew
   997  		}
   998  		qNameNiew := qrNameNiew
   999  		if qNameNiew != "" {
  1000  
  1001  			if err := r.SetQueryParam("name__niew", qNameNiew); err != nil {
  1002  				return err
  1003  			}
  1004  		}
  1005  	}
  1006  
  1007  	if o.NameNisw != nil {
  1008  
  1009  		// query param name__nisw
  1010  		var qrNameNisw string
  1011  
  1012  		if o.NameNisw != nil {
  1013  			qrNameNisw = *o.NameNisw
  1014  		}
  1015  		qNameNisw := qrNameNisw
  1016  		if qNameNisw != "" {
  1017  
  1018  			if err := r.SetQueryParam("name__nisw", qNameNisw); err != nil {
  1019  				return err
  1020  			}
  1021  		}
  1022  	}
  1023  
  1024  	if o.Offset != nil {
  1025  
  1026  		// query param offset
  1027  		var qrOffset int64
  1028  
  1029  		if o.Offset != nil {
  1030  			qrOffset = *o.Offset
  1031  		}
  1032  		qOffset := swag.FormatInt64(qrOffset)
  1033  		if qOffset != "" {
  1034  
  1035  			if err := r.SetQueryParam("offset", qOffset); err != nil {
  1036  				return err
  1037  			}
  1038  		}
  1039  	}
  1040  
  1041  	if o.Type != nil {
  1042  
  1043  		// query param type
  1044  		var qrType string
  1045  
  1046  		if o.Type != nil {
  1047  			qrType = *o.Type
  1048  		}
  1049  		qType := qrType
  1050  		if qType != "" {
  1051  
  1052  			if err := r.SetQueryParam("type", qType); err != nil {
  1053  				return err
  1054  			}
  1055  		}
  1056  	}
  1057  
  1058  	if o.Typen != nil {
  1059  
  1060  		// query param type__n
  1061  		var qrTypen string
  1062  
  1063  		if o.Typen != nil {
  1064  			qrTypen = *o.Typen
  1065  		}
  1066  		qTypen := qrTypen
  1067  		if qTypen != "" {
  1068  
  1069  			if err := r.SetQueryParam("type__n", qTypen); err != nil {
  1070  				return err
  1071  			}
  1072  		}
  1073  	}
  1074  
  1075  	if len(res) > 0 {
  1076  		return errors.CompositeValidationError(res...)
  1077  	}
  1078  	return nil
  1079  }