github.com/digitalocean/go-netbox@v0.0.2/netbox/client/dcim/dcim_device_roles_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  // NewDcimDeviceRolesListParams creates a new DcimDeviceRolesListParams 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 NewDcimDeviceRolesListParams() *DcimDeviceRolesListParams {
    42  	return &DcimDeviceRolesListParams{
    43  		timeout: cr.DefaultTimeout,
    44  	}
    45  }
    46  
    47  // NewDcimDeviceRolesListParamsWithTimeout creates a new DcimDeviceRolesListParams object
    48  // with the ability to set a timeout on a request.
    49  func NewDcimDeviceRolesListParamsWithTimeout(timeout time.Duration) *DcimDeviceRolesListParams {
    50  	return &DcimDeviceRolesListParams{
    51  		timeout: timeout,
    52  	}
    53  }
    54  
    55  // NewDcimDeviceRolesListParamsWithContext creates a new DcimDeviceRolesListParams object
    56  // with the ability to set a context for a request.
    57  func NewDcimDeviceRolesListParamsWithContext(ctx context.Context) *DcimDeviceRolesListParams {
    58  	return &DcimDeviceRolesListParams{
    59  		Context: ctx,
    60  	}
    61  }
    62  
    63  // NewDcimDeviceRolesListParamsWithHTTPClient creates a new DcimDeviceRolesListParams object
    64  // with the ability to set a custom HTTPClient for a request.
    65  func NewDcimDeviceRolesListParamsWithHTTPClient(client *http.Client) *DcimDeviceRolesListParams {
    66  	return &DcimDeviceRolesListParams{
    67  		HTTPClient: client,
    68  	}
    69  }
    70  
    71  /* DcimDeviceRolesListParams contains all the parameters to send to the API endpoint
    72     for the dcim device roles list operation.
    73  
    74     Typically these are written to a http.Request.
    75  */
    76  type DcimDeviceRolesListParams struct {
    77  
    78  	// Color.
    79  	Color *string
    80  
    81  	// ColorEmpty.
    82  	ColorEmpty *string
    83  
    84  	// ColorIc.
    85  	ColorIc *string
    86  
    87  	// ColorIe.
    88  	ColorIe *string
    89  
    90  	// ColorIew.
    91  	ColorIew *string
    92  
    93  	// ColorIsw.
    94  	ColorIsw *string
    95  
    96  	// Colorn.
    97  	Colorn *string
    98  
    99  	// ColorNic.
   100  	ColorNic *string
   101  
   102  	// ColorNie.
   103  	ColorNie *string
   104  
   105  	// ColorNiew.
   106  	ColorNiew *string
   107  
   108  	// ColorNisw.
   109  	ColorNisw *string
   110  
   111  	// Created.
   112  	Created *string
   113  
   114  	// CreatedGte.
   115  	CreatedGte *string
   116  
   117  	// CreatedLte.
   118  	CreatedLte *string
   119  
   120  	// ID.
   121  	ID *string
   122  
   123  	// IDGt.
   124  	IDGt *string
   125  
   126  	// IDGte.
   127  	IDGte *string
   128  
   129  	// IDLt.
   130  	IDLt *string
   131  
   132  	// IDLte.
   133  	IDLte *string
   134  
   135  	// IDn.
   136  	IDn *string
   137  
   138  	// LastUpdated.
   139  	LastUpdated *string
   140  
   141  	// LastUpdatedGte.
   142  	LastUpdatedGte *string
   143  
   144  	// LastUpdatedLte.
   145  	LastUpdatedLte *string
   146  
   147  	/* Limit.
   148  
   149  	   Number of results to return per page.
   150  	*/
   151  	Limit *int64
   152  
   153  	// Name.
   154  	Name *string
   155  
   156  	// NameEmpty.
   157  	NameEmpty *string
   158  
   159  	// NameIc.
   160  	NameIc *string
   161  
   162  	// NameIe.
   163  	NameIe *string
   164  
   165  	// NameIew.
   166  	NameIew *string
   167  
   168  	// NameIsw.
   169  	NameIsw *string
   170  
   171  	// Namen.
   172  	Namen *string
   173  
   174  	// NameNic.
   175  	NameNic *string
   176  
   177  	// NameNie.
   178  	NameNie *string
   179  
   180  	// NameNiew.
   181  	NameNiew *string
   182  
   183  	// NameNisw.
   184  	NameNisw *string
   185  
   186  	/* Offset.
   187  
   188  	   The initial index from which to return the results.
   189  	*/
   190  	Offset *int64
   191  
   192  	// Q.
   193  	Q *string
   194  
   195  	// Slug.
   196  	Slug *string
   197  
   198  	// SlugEmpty.
   199  	SlugEmpty *string
   200  
   201  	// SlugIc.
   202  	SlugIc *string
   203  
   204  	// SlugIe.
   205  	SlugIe *string
   206  
   207  	// SlugIew.
   208  	SlugIew *string
   209  
   210  	// SlugIsw.
   211  	SlugIsw *string
   212  
   213  	// Slugn.
   214  	Slugn *string
   215  
   216  	// SlugNic.
   217  	SlugNic *string
   218  
   219  	// SlugNie.
   220  	SlugNie *string
   221  
   222  	// SlugNiew.
   223  	SlugNiew *string
   224  
   225  	// SlugNisw.
   226  	SlugNisw *string
   227  
   228  	// VMRole.
   229  	VMRole *string
   230  
   231  	timeout    time.Duration
   232  	Context    context.Context
   233  	HTTPClient *http.Client
   234  }
   235  
   236  // WithDefaults hydrates default values in the dcim device roles list params (not the query body).
   237  //
   238  // All values with no default are reset to their zero value.
   239  func (o *DcimDeviceRolesListParams) WithDefaults() *DcimDeviceRolesListParams {
   240  	o.SetDefaults()
   241  	return o
   242  }
   243  
   244  // SetDefaults hydrates default values in the dcim device roles list params (not the query body).
   245  //
   246  // All values with no default are reset to their zero value.
   247  func (o *DcimDeviceRolesListParams) SetDefaults() {
   248  	// no default values defined for this parameter
   249  }
   250  
   251  // WithTimeout adds the timeout to the dcim device roles list params
   252  func (o *DcimDeviceRolesListParams) WithTimeout(timeout time.Duration) *DcimDeviceRolesListParams {
   253  	o.SetTimeout(timeout)
   254  	return o
   255  }
   256  
   257  // SetTimeout adds the timeout to the dcim device roles list params
   258  func (o *DcimDeviceRolesListParams) SetTimeout(timeout time.Duration) {
   259  	o.timeout = timeout
   260  }
   261  
   262  // WithContext adds the context to the dcim device roles list params
   263  func (o *DcimDeviceRolesListParams) WithContext(ctx context.Context) *DcimDeviceRolesListParams {
   264  	o.SetContext(ctx)
   265  	return o
   266  }
   267  
   268  // SetContext adds the context to the dcim device roles list params
   269  func (o *DcimDeviceRolesListParams) SetContext(ctx context.Context) {
   270  	o.Context = ctx
   271  }
   272  
   273  // WithHTTPClient adds the HTTPClient to the dcim device roles list params
   274  func (o *DcimDeviceRolesListParams) WithHTTPClient(client *http.Client) *DcimDeviceRolesListParams {
   275  	o.SetHTTPClient(client)
   276  	return o
   277  }
   278  
   279  // SetHTTPClient adds the HTTPClient to the dcim device roles list params
   280  func (o *DcimDeviceRolesListParams) SetHTTPClient(client *http.Client) {
   281  	o.HTTPClient = client
   282  }
   283  
   284  // WithColor adds the color to the dcim device roles list params
   285  func (o *DcimDeviceRolesListParams) WithColor(color *string) *DcimDeviceRolesListParams {
   286  	o.SetColor(color)
   287  	return o
   288  }
   289  
   290  // SetColor adds the color to the dcim device roles list params
   291  func (o *DcimDeviceRolesListParams) SetColor(color *string) {
   292  	o.Color = color
   293  }
   294  
   295  // WithColorEmpty adds the colorEmpty to the dcim device roles list params
   296  func (o *DcimDeviceRolesListParams) WithColorEmpty(colorEmpty *string) *DcimDeviceRolesListParams {
   297  	o.SetColorEmpty(colorEmpty)
   298  	return o
   299  }
   300  
   301  // SetColorEmpty adds the colorEmpty to the dcim device roles list params
   302  func (o *DcimDeviceRolesListParams) SetColorEmpty(colorEmpty *string) {
   303  	o.ColorEmpty = colorEmpty
   304  }
   305  
   306  // WithColorIc adds the colorIc to the dcim device roles list params
   307  func (o *DcimDeviceRolesListParams) WithColorIc(colorIc *string) *DcimDeviceRolesListParams {
   308  	o.SetColorIc(colorIc)
   309  	return o
   310  }
   311  
   312  // SetColorIc adds the colorIc to the dcim device roles list params
   313  func (o *DcimDeviceRolesListParams) SetColorIc(colorIc *string) {
   314  	o.ColorIc = colorIc
   315  }
   316  
   317  // WithColorIe adds the colorIe to the dcim device roles list params
   318  func (o *DcimDeviceRolesListParams) WithColorIe(colorIe *string) *DcimDeviceRolesListParams {
   319  	o.SetColorIe(colorIe)
   320  	return o
   321  }
   322  
   323  // SetColorIe adds the colorIe to the dcim device roles list params
   324  func (o *DcimDeviceRolesListParams) SetColorIe(colorIe *string) {
   325  	o.ColorIe = colorIe
   326  }
   327  
   328  // WithColorIew adds the colorIew to the dcim device roles list params
   329  func (o *DcimDeviceRolesListParams) WithColorIew(colorIew *string) *DcimDeviceRolesListParams {
   330  	o.SetColorIew(colorIew)
   331  	return o
   332  }
   333  
   334  // SetColorIew adds the colorIew to the dcim device roles list params
   335  func (o *DcimDeviceRolesListParams) SetColorIew(colorIew *string) {
   336  	o.ColorIew = colorIew
   337  }
   338  
   339  // WithColorIsw adds the colorIsw to the dcim device roles list params
   340  func (o *DcimDeviceRolesListParams) WithColorIsw(colorIsw *string) *DcimDeviceRolesListParams {
   341  	o.SetColorIsw(colorIsw)
   342  	return o
   343  }
   344  
   345  // SetColorIsw adds the colorIsw to the dcim device roles list params
   346  func (o *DcimDeviceRolesListParams) SetColorIsw(colorIsw *string) {
   347  	o.ColorIsw = colorIsw
   348  }
   349  
   350  // WithColorn adds the colorn to the dcim device roles list params
   351  func (o *DcimDeviceRolesListParams) WithColorn(colorn *string) *DcimDeviceRolesListParams {
   352  	o.SetColorn(colorn)
   353  	return o
   354  }
   355  
   356  // SetColorn adds the colorN to the dcim device roles list params
   357  func (o *DcimDeviceRolesListParams) SetColorn(colorn *string) {
   358  	o.Colorn = colorn
   359  }
   360  
   361  // WithColorNic adds the colorNic to the dcim device roles list params
   362  func (o *DcimDeviceRolesListParams) WithColorNic(colorNic *string) *DcimDeviceRolesListParams {
   363  	o.SetColorNic(colorNic)
   364  	return o
   365  }
   366  
   367  // SetColorNic adds the colorNic to the dcim device roles list params
   368  func (o *DcimDeviceRolesListParams) SetColorNic(colorNic *string) {
   369  	o.ColorNic = colorNic
   370  }
   371  
   372  // WithColorNie adds the colorNie to the dcim device roles list params
   373  func (o *DcimDeviceRolesListParams) WithColorNie(colorNie *string) *DcimDeviceRolesListParams {
   374  	o.SetColorNie(colorNie)
   375  	return o
   376  }
   377  
   378  // SetColorNie adds the colorNie to the dcim device roles list params
   379  func (o *DcimDeviceRolesListParams) SetColorNie(colorNie *string) {
   380  	o.ColorNie = colorNie
   381  }
   382  
   383  // WithColorNiew adds the colorNiew to the dcim device roles list params
   384  func (o *DcimDeviceRolesListParams) WithColorNiew(colorNiew *string) *DcimDeviceRolesListParams {
   385  	o.SetColorNiew(colorNiew)
   386  	return o
   387  }
   388  
   389  // SetColorNiew adds the colorNiew to the dcim device roles list params
   390  func (o *DcimDeviceRolesListParams) SetColorNiew(colorNiew *string) {
   391  	o.ColorNiew = colorNiew
   392  }
   393  
   394  // WithColorNisw adds the colorNisw to the dcim device roles list params
   395  func (o *DcimDeviceRolesListParams) WithColorNisw(colorNisw *string) *DcimDeviceRolesListParams {
   396  	o.SetColorNisw(colorNisw)
   397  	return o
   398  }
   399  
   400  // SetColorNisw adds the colorNisw to the dcim device roles list params
   401  func (o *DcimDeviceRolesListParams) SetColorNisw(colorNisw *string) {
   402  	o.ColorNisw = colorNisw
   403  }
   404  
   405  // WithCreated adds the created to the dcim device roles list params
   406  func (o *DcimDeviceRolesListParams) WithCreated(created *string) *DcimDeviceRolesListParams {
   407  	o.SetCreated(created)
   408  	return o
   409  }
   410  
   411  // SetCreated adds the created to the dcim device roles list params
   412  func (o *DcimDeviceRolesListParams) SetCreated(created *string) {
   413  	o.Created = created
   414  }
   415  
   416  // WithCreatedGte adds the createdGte to the dcim device roles list params
   417  func (o *DcimDeviceRolesListParams) WithCreatedGte(createdGte *string) *DcimDeviceRolesListParams {
   418  	o.SetCreatedGte(createdGte)
   419  	return o
   420  }
   421  
   422  // SetCreatedGte adds the createdGte to the dcim device roles list params
   423  func (o *DcimDeviceRolesListParams) SetCreatedGte(createdGte *string) {
   424  	o.CreatedGte = createdGte
   425  }
   426  
   427  // WithCreatedLte adds the createdLte to the dcim device roles list params
   428  func (o *DcimDeviceRolesListParams) WithCreatedLte(createdLte *string) *DcimDeviceRolesListParams {
   429  	o.SetCreatedLte(createdLte)
   430  	return o
   431  }
   432  
   433  // SetCreatedLte adds the createdLte to the dcim device roles list params
   434  func (o *DcimDeviceRolesListParams) SetCreatedLte(createdLte *string) {
   435  	o.CreatedLte = createdLte
   436  }
   437  
   438  // WithID adds the id to the dcim device roles list params
   439  func (o *DcimDeviceRolesListParams) WithID(id *string) *DcimDeviceRolesListParams {
   440  	o.SetID(id)
   441  	return o
   442  }
   443  
   444  // SetID adds the id to the dcim device roles list params
   445  func (o *DcimDeviceRolesListParams) SetID(id *string) {
   446  	o.ID = id
   447  }
   448  
   449  // WithIDGt adds the iDGt to the dcim device roles list params
   450  func (o *DcimDeviceRolesListParams) WithIDGt(iDGt *string) *DcimDeviceRolesListParams {
   451  	o.SetIDGt(iDGt)
   452  	return o
   453  }
   454  
   455  // SetIDGt adds the idGt to the dcim device roles list params
   456  func (o *DcimDeviceRolesListParams) SetIDGt(iDGt *string) {
   457  	o.IDGt = iDGt
   458  }
   459  
   460  // WithIDGte adds the iDGte to the dcim device roles list params
   461  func (o *DcimDeviceRolesListParams) WithIDGte(iDGte *string) *DcimDeviceRolesListParams {
   462  	o.SetIDGte(iDGte)
   463  	return o
   464  }
   465  
   466  // SetIDGte adds the idGte to the dcim device roles list params
   467  func (o *DcimDeviceRolesListParams) SetIDGte(iDGte *string) {
   468  	o.IDGte = iDGte
   469  }
   470  
   471  // WithIDLt adds the iDLt to the dcim device roles list params
   472  func (o *DcimDeviceRolesListParams) WithIDLt(iDLt *string) *DcimDeviceRolesListParams {
   473  	o.SetIDLt(iDLt)
   474  	return o
   475  }
   476  
   477  // SetIDLt adds the idLt to the dcim device roles list params
   478  func (o *DcimDeviceRolesListParams) SetIDLt(iDLt *string) {
   479  	o.IDLt = iDLt
   480  }
   481  
   482  // WithIDLte adds the iDLte to the dcim device roles list params
   483  func (o *DcimDeviceRolesListParams) WithIDLte(iDLte *string) *DcimDeviceRolesListParams {
   484  	o.SetIDLte(iDLte)
   485  	return o
   486  }
   487  
   488  // SetIDLte adds the idLte to the dcim device roles list params
   489  func (o *DcimDeviceRolesListParams) SetIDLte(iDLte *string) {
   490  	o.IDLte = iDLte
   491  }
   492  
   493  // WithIDn adds the iDn to the dcim device roles list params
   494  func (o *DcimDeviceRolesListParams) WithIDn(iDn *string) *DcimDeviceRolesListParams {
   495  	o.SetIDn(iDn)
   496  	return o
   497  }
   498  
   499  // SetIDn adds the idN to the dcim device roles list params
   500  func (o *DcimDeviceRolesListParams) SetIDn(iDn *string) {
   501  	o.IDn = iDn
   502  }
   503  
   504  // WithLastUpdated adds the lastUpdated to the dcim device roles list params
   505  func (o *DcimDeviceRolesListParams) WithLastUpdated(lastUpdated *string) *DcimDeviceRolesListParams {
   506  	o.SetLastUpdated(lastUpdated)
   507  	return o
   508  }
   509  
   510  // SetLastUpdated adds the lastUpdated to the dcim device roles list params
   511  func (o *DcimDeviceRolesListParams) SetLastUpdated(lastUpdated *string) {
   512  	o.LastUpdated = lastUpdated
   513  }
   514  
   515  // WithLastUpdatedGte adds the lastUpdatedGte to the dcim device roles list params
   516  func (o *DcimDeviceRolesListParams) WithLastUpdatedGte(lastUpdatedGte *string) *DcimDeviceRolesListParams {
   517  	o.SetLastUpdatedGte(lastUpdatedGte)
   518  	return o
   519  }
   520  
   521  // SetLastUpdatedGte adds the lastUpdatedGte to the dcim device roles list params
   522  func (o *DcimDeviceRolesListParams) SetLastUpdatedGte(lastUpdatedGte *string) {
   523  	o.LastUpdatedGte = lastUpdatedGte
   524  }
   525  
   526  // WithLastUpdatedLte adds the lastUpdatedLte to the dcim device roles list params
   527  func (o *DcimDeviceRolesListParams) WithLastUpdatedLte(lastUpdatedLte *string) *DcimDeviceRolesListParams {
   528  	o.SetLastUpdatedLte(lastUpdatedLte)
   529  	return o
   530  }
   531  
   532  // SetLastUpdatedLte adds the lastUpdatedLte to the dcim device roles list params
   533  func (o *DcimDeviceRolesListParams) SetLastUpdatedLte(lastUpdatedLte *string) {
   534  	o.LastUpdatedLte = lastUpdatedLte
   535  }
   536  
   537  // WithLimit adds the limit to the dcim device roles list params
   538  func (o *DcimDeviceRolesListParams) WithLimit(limit *int64) *DcimDeviceRolesListParams {
   539  	o.SetLimit(limit)
   540  	return o
   541  }
   542  
   543  // SetLimit adds the limit to the dcim device roles list params
   544  func (o *DcimDeviceRolesListParams) SetLimit(limit *int64) {
   545  	o.Limit = limit
   546  }
   547  
   548  // WithName adds the name to the dcim device roles list params
   549  func (o *DcimDeviceRolesListParams) WithName(name *string) *DcimDeviceRolesListParams {
   550  	o.SetName(name)
   551  	return o
   552  }
   553  
   554  // SetName adds the name to the dcim device roles list params
   555  func (o *DcimDeviceRolesListParams) SetName(name *string) {
   556  	o.Name = name
   557  }
   558  
   559  // WithNameEmpty adds the nameEmpty to the dcim device roles list params
   560  func (o *DcimDeviceRolesListParams) WithNameEmpty(nameEmpty *string) *DcimDeviceRolesListParams {
   561  	o.SetNameEmpty(nameEmpty)
   562  	return o
   563  }
   564  
   565  // SetNameEmpty adds the nameEmpty to the dcim device roles list params
   566  func (o *DcimDeviceRolesListParams) SetNameEmpty(nameEmpty *string) {
   567  	o.NameEmpty = nameEmpty
   568  }
   569  
   570  // WithNameIc adds the nameIc to the dcim device roles list params
   571  func (o *DcimDeviceRolesListParams) WithNameIc(nameIc *string) *DcimDeviceRolesListParams {
   572  	o.SetNameIc(nameIc)
   573  	return o
   574  }
   575  
   576  // SetNameIc adds the nameIc to the dcim device roles list params
   577  func (o *DcimDeviceRolesListParams) SetNameIc(nameIc *string) {
   578  	o.NameIc = nameIc
   579  }
   580  
   581  // WithNameIe adds the nameIe to the dcim device roles list params
   582  func (o *DcimDeviceRolesListParams) WithNameIe(nameIe *string) *DcimDeviceRolesListParams {
   583  	o.SetNameIe(nameIe)
   584  	return o
   585  }
   586  
   587  // SetNameIe adds the nameIe to the dcim device roles list params
   588  func (o *DcimDeviceRolesListParams) SetNameIe(nameIe *string) {
   589  	o.NameIe = nameIe
   590  }
   591  
   592  // WithNameIew adds the nameIew to the dcim device roles list params
   593  func (o *DcimDeviceRolesListParams) WithNameIew(nameIew *string) *DcimDeviceRolesListParams {
   594  	o.SetNameIew(nameIew)
   595  	return o
   596  }
   597  
   598  // SetNameIew adds the nameIew to the dcim device roles list params
   599  func (o *DcimDeviceRolesListParams) SetNameIew(nameIew *string) {
   600  	o.NameIew = nameIew
   601  }
   602  
   603  // WithNameIsw adds the nameIsw to the dcim device roles list params
   604  func (o *DcimDeviceRolesListParams) WithNameIsw(nameIsw *string) *DcimDeviceRolesListParams {
   605  	o.SetNameIsw(nameIsw)
   606  	return o
   607  }
   608  
   609  // SetNameIsw adds the nameIsw to the dcim device roles list params
   610  func (o *DcimDeviceRolesListParams) SetNameIsw(nameIsw *string) {
   611  	o.NameIsw = nameIsw
   612  }
   613  
   614  // WithNamen adds the namen to the dcim device roles list params
   615  func (o *DcimDeviceRolesListParams) WithNamen(namen *string) *DcimDeviceRolesListParams {
   616  	o.SetNamen(namen)
   617  	return o
   618  }
   619  
   620  // SetNamen adds the nameN to the dcim device roles list params
   621  func (o *DcimDeviceRolesListParams) SetNamen(namen *string) {
   622  	o.Namen = namen
   623  }
   624  
   625  // WithNameNic adds the nameNic to the dcim device roles list params
   626  func (o *DcimDeviceRolesListParams) WithNameNic(nameNic *string) *DcimDeviceRolesListParams {
   627  	o.SetNameNic(nameNic)
   628  	return o
   629  }
   630  
   631  // SetNameNic adds the nameNic to the dcim device roles list params
   632  func (o *DcimDeviceRolesListParams) SetNameNic(nameNic *string) {
   633  	o.NameNic = nameNic
   634  }
   635  
   636  // WithNameNie adds the nameNie to the dcim device roles list params
   637  func (o *DcimDeviceRolesListParams) WithNameNie(nameNie *string) *DcimDeviceRolesListParams {
   638  	o.SetNameNie(nameNie)
   639  	return o
   640  }
   641  
   642  // SetNameNie adds the nameNie to the dcim device roles list params
   643  func (o *DcimDeviceRolesListParams) SetNameNie(nameNie *string) {
   644  	o.NameNie = nameNie
   645  }
   646  
   647  // WithNameNiew adds the nameNiew to the dcim device roles list params
   648  func (o *DcimDeviceRolesListParams) WithNameNiew(nameNiew *string) *DcimDeviceRolesListParams {
   649  	o.SetNameNiew(nameNiew)
   650  	return o
   651  }
   652  
   653  // SetNameNiew adds the nameNiew to the dcim device roles list params
   654  func (o *DcimDeviceRolesListParams) SetNameNiew(nameNiew *string) {
   655  	o.NameNiew = nameNiew
   656  }
   657  
   658  // WithNameNisw adds the nameNisw to the dcim device roles list params
   659  func (o *DcimDeviceRolesListParams) WithNameNisw(nameNisw *string) *DcimDeviceRolesListParams {
   660  	o.SetNameNisw(nameNisw)
   661  	return o
   662  }
   663  
   664  // SetNameNisw adds the nameNisw to the dcim device roles list params
   665  func (o *DcimDeviceRolesListParams) SetNameNisw(nameNisw *string) {
   666  	o.NameNisw = nameNisw
   667  }
   668  
   669  // WithOffset adds the offset to the dcim device roles list params
   670  func (o *DcimDeviceRolesListParams) WithOffset(offset *int64) *DcimDeviceRolesListParams {
   671  	o.SetOffset(offset)
   672  	return o
   673  }
   674  
   675  // SetOffset adds the offset to the dcim device roles list params
   676  func (o *DcimDeviceRolesListParams) SetOffset(offset *int64) {
   677  	o.Offset = offset
   678  }
   679  
   680  // WithQ adds the q to the dcim device roles list params
   681  func (o *DcimDeviceRolesListParams) WithQ(q *string) *DcimDeviceRolesListParams {
   682  	o.SetQ(q)
   683  	return o
   684  }
   685  
   686  // SetQ adds the q to the dcim device roles list params
   687  func (o *DcimDeviceRolesListParams) SetQ(q *string) {
   688  	o.Q = q
   689  }
   690  
   691  // WithSlug adds the slug to the dcim device roles list params
   692  func (o *DcimDeviceRolesListParams) WithSlug(slug *string) *DcimDeviceRolesListParams {
   693  	o.SetSlug(slug)
   694  	return o
   695  }
   696  
   697  // SetSlug adds the slug to the dcim device roles list params
   698  func (o *DcimDeviceRolesListParams) SetSlug(slug *string) {
   699  	o.Slug = slug
   700  }
   701  
   702  // WithSlugEmpty adds the slugEmpty to the dcim device roles list params
   703  func (o *DcimDeviceRolesListParams) WithSlugEmpty(slugEmpty *string) *DcimDeviceRolesListParams {
   704  	o.SetSlugEmpty(slugEmpty)
   705  	return o
   706  }
   707  
   708  // SetSlugEmpty adds the slugEmpty to the dcim device roles list params
   709  func (o *DcimDeviceRolesListParams) SetSlugEmpty(slugEmpty *string) {
   710  	o.SlugEmpty = slugEmpty
   711  }
   712  
   713  // WithSlugIc adds the slugIc to the dcim device roles list params
   714  func (o *DcimDeviceRolesListParams) WithSlugIc(slugIc *string) *DcimDeviceRolesListParams {
   715  	o.SetSlugIc(slugIc)
   716  	return o
   717  }
   718  
   719  // SetSlugIc adds the slugIc to the dcim device roles list params
   720  func (o *DcimDeviceRolesListParams) SetSlugIc(slugIc *string) {
   721  	o.SlugIc = slugIc
   722  }
   723  
   724  // WithSlugIe adds the slugIe to the dcim device roles list params
   725  func (o *DcimDeviceRolesListParams) WithSlugIe(slugIe *string) *DcimDeviceRolesListParams {
   726  	o.SetSlugIe(slugIe)
   727  	return o
   728  }
   729  
   730  // SetSlugIe adds the slugIe to the dcim device roles list params
   731  func (o *DcimDeviceRolesListParams) SetSlugIe(slugIe *string) {
   732  	o.SlugIe = slugIe
   733  }
   734  
   735  // WithSlugIew adds the slugIew to the dcim device roles list params
   736  func (o *DcimDeviceRolesListParams) WithSlugIew(slugIew *string) *DcimDeviceRolesListParams {
   737  	o.SetSlugIew(slugIew)
   738  	return o
   739  }
   740  
   741  // SetSlugIew adds the slugIew to the dcim device roles list params
   742  func (o *DcimDeviceRolesListParams) SetSlugIew(slugIew *string) {
   743  	o.SlugIew = slugIew
   744  }
   745  
   746  // WithSlugIsw adds the slugIsw to the dcim device roles list params
   747  func (o *DcimDeviceRolesListParams) WithSlugIsw(slugIsw *string) *DcimDeviceRolesListParams {
   748  	o.SetSlugIsw(slugIsw)
   749  	return o
   750  }
   751  
   752  // SetSlugIsw adds the slugIsw to the dcim device roles list params
   753  func (o *DcimDeviceRolesListParams) SetSlugIsw(slugIsw *string) {
   754  	o.SlugIsw = slugIsw
   755  }
   756  
   757  // WithSlugn adds the slugn to the dcim device roles list params
   758  func (o *DcimDeviceRolesListParams) WithSlugn(slugn *string) *DcimDeviceRolesListParams {
   759  	o.SetSlugn(slugn)
   760  	return o
   761  }
   762  
   763  // SetSlugn adds the slugN to the dcim device roles list params
   764  func (o *DcimDeviceRolesListParams) SetSlugn(slugn *string) {
   765  	o.Slugn = slugn
   766  }
   767  
   768  // WithSlugNic adds the slugNic to the dcim device roles list params
   769  func (o *DcimDeviceRolesListParams) WithSlugNic(slugNic *string) *DcimDeviceRolesListParams {
   770  	o.SetSlugNic(slugNic)
   771  	return o
   772  }
   773  
   774  // SetSlugNic adds the slugNic to the dcim device roles list params
   775  func (o *DcimDeviceRolesListParams) SetSlugNic(slugNic *string) {
   776  	o.SlugNic = slugNic
   777  }
   778  
   779  // WithSlugNie adds the slugNie to the dcim device roles list params
   780  func (o *DcimDeviceRolesListParams) WithSlugNie(slugNie *string) *DcimDeviceRolesListParams {
   781  	o.SetSlugNie(slugNie)
   782  	return o
   783  }
   784  
   785  // SetSlugNie adds the slugNie to the dcim device roles list params
   786  func (o *DcimDeviceRolesListParams) SetSlugNie(slugNie *string) {
   787  	o.SlugNie = slugNie
   788  }
   789  
   790  // WithSlugNiew adds the slugNiew to the dcim device roles list params
   791  func (o *DcimDeviceRolesListParams) WithSlugNiew(slugNiew *string) *DcimDeviceRolesListParams {
   792  	o.SetSlugNiew(slugNiew)
   793  	return o
   794  }
   795  
   796  // SetSlugNiew adds the slugNiew to the dcim device roles list params
   797  func (o *DcimDeviceRolesListParams) SetSlugNiew(slugNiew *string) {
   798  	o.SlugNiew = slugNiew
   799  }
   800  
   801  // WithSlugNisw adds the slugNisw to the dcim device roles list params
   802  func (o *DcimDeviceRolesListParams) WithSlugNisw(slugNisw *string) *DcimDeviceRolesListParams {
   803  	o.SetSlugNisw(slugNisw)
   804  	return o
   805  }
   806  
   807  // SetSlugNisw adds the slugNisw to the dcim device roles list params
   808  func (o *DcimDeviceRolesListParams) SetSlugNisw(slugNisw *string) {
   809  	o.SlugNisw = slugNisw
   810  }
   811  
   812  // WithVMRole adds the vMRole to the dcim device roles list params
   813  func (o *DcimDeviceRolesListParams) WithVMRole(vMRole *string) *DcimDeviceRolesListParams {
   814  	o.SetVMRole(vMRole)
   815  	return o
   816  }
   817  
   818  // SetVMRole adds the vmRole to the dcim device roles list params
   819  func (o *DcimDeviceRolesListParams) SetVMRole(vMRole *string) {
   820  	o.VMRole = vMRole
   821  }
   822  
   823  // WriteToRequest writes these params to a swagger request
   824  func (o *DcimDeviceRolesListParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error {
   825  
   826  	if err := r.SetTimeout(o.timeout); err != nil {
   827  		return err
   828  	}
   829  	var res []error
   830  
   831  	if o.Color != nil {
   832  
   833  		// query param color
   834  		var qrColor string
   835  
   836  		if o.Color != nil {
   837  			qrColor = *o.Color
   838  		}
   839  		qColor := qrColor
   840  		if qColor != "" {
   841  
   842  			if err := r.SetQueryParam("color", qColor); err != nil {
   843  				return err
   844  			}
   845  		}
   846  	}
   847  
   848  	if o.ColorEmpty != nil {
   849  
   850  		// query param color__empty
   851  		var qrColorEmpty string
   852  
   853  		if o.ColorEmpty != nil {
   854  			qrColorEmpty = *o.ColorEmpty
   855  		}
   856  		qColorEmpty := qrColorEmpty
   857  		if qColorEmpty != "" {
   858  
   859  			if err := r.SetQueryParam("color__empty", qColorEmpty); err != nil {
   860  				return err
   861  			}
   862  		}
   863  	}
   864  
   865  	if o.ColorIc != nil {
   866  
   867  		// query param color__ic
   868  		var qrColorIc string
   869  
   870  		if o.ColorIc != nil {
   871  			qrColorIc = *o.ColorIc
   872  		}
   873  		qColorIc := qrColorIc
   874  		if qColorIc != "" {
   875  
   876  			if err := r.SetQueryParam("color__ic", qColorIc); err != nil {
   877  				return err
   878  			}
   879  		}
   880  	}
   881  
   882  	if o.ColorIe != nil {
   883  
   884  		// query param color__ie
   885  		var qrColorIe string
   886  
   887  		if o.ColorIe != nil {
   888  			qrColorIe = *o.ColorIe
   889  		}
   890  		qColorIe := qrColorIe
   891  		if qColorIe != "" {
   892  
   893  			if err := r.SetQueryParam("color__ie", qColorIe); err != nil {
   894  				return err
   895  			}
   896  		}
   897  	}
   898  
   899  	if o.ColorIew != nil {
   900  
   901  		// query param color__iew
   902  		var qrColorIew string
   903  
   904  		if o.ColorIew != nil {
   905  			qrColorIew = *o.ColorIew
   906  		}
   907  		qColorIew := qrColorIew
   908  		if qColorIew != "" {
   909  
   910  			if err := r.SetQueryParam("color__iew", qColorIew); err != nil {
   911  				return err
   912  			}
   913  		}
   914  	}
   915  
   916  	if o.ColorIsw != nil {
   917  
   918  		// query param color__isw
   919  		var qrColorIsw string
   920  
   921  		if o.ColorIsw != nil {
   922  			qrColorIsw = *o.ColorIsw
   923  		}
   924  		qColorIsw := qrColorIsw
   925  		if qColorIsw != "" {
   926  
   927  			if err := r.SetQueryParam("color__isw", qColorIsw); err != nil {
   928  				return err
   929  			}
   930  		}
   931  	}
   932  
   933  	if o.Colorn != nil {
   934  
   935  		// query param color__n
   936  		var qrColorn string
   937  
   938  		if o.Colorn != nil {
   939  			qrColorn = *o.Colorn
   940  		}
   941  		qColorn := qrColorn
   942  		if qColorn != "" {
   943  
   944  			if err := r.SetQueryParam("color__n", qColorn); err != nil {
   945  				return err
   946  			}
   947  		}
   948  	}
   949  
   950  	if o.ColorNic != nil {
   951  
   952  		// query param color__nic
   953  		var qrColorNic string
   954  
   955  		if o.ColorNic != nil {
   956  			qrColorNic = *o.ColorNic
   957  		}
   958  		qColorNic := qrColorNic
   959  		if qColorNic != "" {
   960  
   961  			if err := r.SetQueryParam("color__nic", qColorNic); err != nil {
   962  				return err
   963  			}
   964  		}
   965  	}
   966  
   967  	if o.ColorNie != nil {
   968  
   969  		// query param color__nie
   970  		var qrColorNie string
   971  
   972  		if o.ColorNie != nil {
   973  			qrColorNie = *o.ColorNie
   974  		}
   975  		qColorNie := qrColorNie
   976  		if qColorNie != "" {
   977  
   978  			if err := r.SetQueryParam("color__nie", qColorNie); err != nil {
   979  				return err
   980  			}
   981  		}
   982  	}
   983  
   984  	if o.ColorNiew != nil {
   985  
   986  		// query param color__niew
   987  		var qrColorNiew string
   988  
   989  		if o.ColorNiew != nil {
   990  			qrColorNiew = *o.ColorNiew
   991  		}
   992  		qColorNiew := qrColorNiew
   993  		if qColorNiew != "" {
   994  
   995  			if err := r.SetQueryParam("color__niew", qColorNiew); err != nil {
   996  				return err
   997  			}
   998  		}
   999  	}
  1000  
  1001  	if o.ColorNisw != nil {
  1002  
  1003  		// query param color__nisw
  1004  		var qrColorNisw string
  1005  
  1006  		if o.ColorNisw != nil {
  1007  			qrColorNisw = *o.ColorNisw
  1008  		}
  1009  		qColorNisw := qrColorNisw
  1010  		if qColorNisw != "" {
  1011  
  1012  			if err := r.SetQueryParam("color__nisw", qColorNisw); err != nil {
  1013  				return err
  1014  			}
  1015  		}
  1016  	}
  1017  
  1018  	if o.Created != nil {
  1019  
  1020  		// query param created
  1021  		var qrCreated string
  1022  
  1023  		if o.Created != nil {
  1024  			qrCreated = *o.Created
  1025  		}
  1026  		qCreated := qrCreated
  1027  		if qCreated != "" {
  1028  
  1029  			if err := r.SetQueryParam("created", qCreated); err != nil {
  1030  				return err
  1031  			}
  1032  		}
  1033  	}
  1034  
  1035  	if o.CreatedGte != nil {
  1036  
  1037  		// query param created__gte
  1038  		var qrCreatedGte string
  1039  
  1040  		if o.CreatedGte != nil {
  1041  			qrCreatedGte = *o.CreatedGte
  1042  		}
  1043  		qCreatedGte := qrCreatedGte
  1044  		if qCreatedGte != "" {
  1045  
  1046  			if err := r.SetQueryParam("created__gte", qCreatedGte); err != nil {
  1047  				return err
  1048  			}
  1049  		}
  1050  	}
  1051  
  1052  	if o.CreatedLte != nil {
  1053  
  1054  		// query param created__lte
  1055  		var qrCreatedLte string
  1056  
  1057  		if o.CreatedLte != nil {
  1058  			qrCreatedLte = *o.CreatedLte
  1059  		}
  1060  		qCreatedLte := qrCreatedLte
  1061  		if qCreatedLte != "" {
  1062  
  1063  			if err := r.SetQueryParam("created__lte", qCreatedLte); err != nil {
  1064  				return err
  1065  			}
  1066  		}
  1067  	}
  1068  
  1069  	if o.ID != nil {
  1070  
  1071  		// query param id
  1072  		var qrID string
  1073  
  1074  		if o.ID != nil {
  1075  			qrID = *o.ID
  1076  		}
  1077  		qID := qrID
  1078  		if qID != "" {
  1079  
  1080  			if err := r.SetQueryParam("id", qID); err != nil {
  1081  				return err
  1082  			}
  1083  		}
  1084  	}
  1085  
  1086  	if o.IDGt != nil {
  1087  
  1088  		// query param id__gt
  1089  		var qrIDGt string
  1090  
  1091  		if o.IDGt != nil {
  1092  			qrIDGt = *o.IDGt
  1093  		}
  1094  		qIDGt := qrIDGt
  1095  		if qIDGt != "" {
  1096  
  1097  			if err := r.SetQueryParam("id__gt", qIDGt); err != nil {
  1098  				return err
  1099  			}
  1100  		}
  1101  	}
  1102  
  1103  	if o.IDGte != nil {
  1104  
  1105  		// query param id__gte
  1106  		var qrIDGte string
  1107  
  1108  		if o.IDGte != nil {
  1109  			qrIDGte = *o.IDGte
  1110  		}
  1111  		qIDGte := qrIDGte
  1112  		if qIDGte != "" {
  1113  
  1114  			if err := r.SetQueryParam("id__gte", qIDGte); err != nil {
  1115  				return err
  1116  			}
  1117  		}
  1118  	}
  1119  
  1120  	if o.IDLt != nil {
  1121  
  1122  		// query param id__lt
  1123  		var qrIDLt string
  1124  
  1125  		if o.IDLt != nil {
  1126  			qrIDLt = *o.IDLt
  1127  		}
  1128  		qIDLt := qrIDLt
  1129  		if qIDLt != "" {
  1130  
  1131  			if err := r.SetQueryParam("id__lt", qIDLt); err != nil {
  1132  				return err
  1133  			}
  1134  		}
  1135  	}
  1136  
  1137  	if o.IDLte != nil {
  1138  
  1139  		// query param id__lte
  1140  		var qrIDLte string
  1141  
  1142  		if o.IDLte != nil {
  1143  			qrIDLte = *o.IDLte
  1144  		}
  1145  		qIDLte := qrIDLte
  1146  		if qIDLte != "" {
  1147  
  1148  			if err := r.SetQueryParam("id__lte", qIDLte); err != nil {
  1149  				return err
  1150  			}
  1151  		}
  1152  	}
  1153  
  1154  	if o.IDn != nil {
  1155  
  1156  		// query param id__n
  1157  		var qrIDn string
  1158  
  1159  		if o.IDn != nil {
  1160  			qrIDn = *o.IDn
  1161  		}
  1162  		qIDn := qrIDn
  1163  		if qIDn != "" {
  1164  
  1165  			if err := r.SetQueryParam("id__n", qIDn); err != nil {
  1166  				return err
  1167  			}
  1168  		}
  1169  	}
  1170  
  1171  	if o.LastUpdated != nil {
  1172  
  1173  		// query param last_updated
  1174  		var qrLastUpdated string
  1175  
  1176  		if o.LastUpdated != nil {
  1177  			qrLastUpdated = *o.LastUpdated
  1178  		}
  1179  		qLastUpdated := qrLastUpdated
  1180  		if qLastUpdated != "" {
  1181  
  1182  			if err := r.SetQueryParam("last_updated", qLastUpdated); err != nil {
  1183  				return err
  1184  			}
  1185  		}
  1186  	}
  1187  
  1188  	if o.LastUpdatedGte != nil {
  1189  
  1190  		// query param last_updated__gte
  1191  		var qrLastUpdatedGte string
  1192  
  1193  		if o.LastUpdatedGte != nil {
  1194  			qrLastUpdatedGte = *o.LastUpdatedGte
  1195  		}
  1196  		qLastUpdatedGte := qrLastUpdatedGte
  1197  		if qLastUpdatedGte != "" {
  1198  
  1199  			if err := r.SetQueryParam("last_updated__gte", qLastUpdatedGte); err != nil {
  1200  				return err
  1201  			}
  1202  		}
  1203  	}
  1204  
  1205  	if o.LastUpdatedLte != nil {
  1206  
  1207  		// query param last_updated__lte
  1208  		var qrLastUpdatedLte string
  1209  
  1210  		if o.LastUpdatedLte != nil {
  1211  			qrLastUpdatedLte = *o.LastUpdatedLte
  1212  		}
  1213  		qLastUpdatedLte := qrLastUpdatedLte
  1214  		if qLastUpdatedLte != "" {
  1215  
  1216  			if err := r.SetQueryParam("last_updated__lte", qLastUpdatedLte); err != nil {
  1217  				return err
  1218  			}
  1219  		}
  1220  	}
  1221  
  1222  	if o.Limit != nil {
  1223  
  1224  		// query param limit
  1225  		var qrLimit int64
  1226  
  1227  		if o.Limit != nil {
  1228  			qrLimit = *o.Limit
  1229  		}
  1230  		qLimit := swag.FormatInt64(qrLimit)
  1231  		if qLimit != "" {
  1232  
  1233  			if err := r.SetQueryParam("limit", qLimit); err != nil {
  1234  				return err
  1235  			}
  1236  		}
  1237  	}
  1238  
  1239  	if o.Name != nil {
  1240  
  1241  		// query param name
  1242  		var qrName string
  1243  
  1244  		if o.Name != nil {
  1245  			qrName = *o.Name
  1246  		}
  1247  		qName := qrName
  1248  		if qName != "" {
  1249  
  1250  			if err := r.SetQueryParam("name", qName); err != nil {
  1251  				return err
  1252  			}
  1253  		}
  1254  	}
  1255  
  1256  	if o.NameEmpty != nil {
  1257  
  1258  		// query param name__empty
  1259  		var qrNameEmpty string
  1260  
  1261  		if o.NameEmpty != nil {
  1262  			qrNameEmpty = *o.NameEmpty
  1263  		}
  1264  		qNameEmpty := qrNameEmpty
  1265  		if qNameEmpty != "" {
  1266  
  1267  			if err := r.SetQueryParam("name__empty", qNameEmpty); err != nil {
  1268  				return err
  1269  			}
  1270  		}
  1271  	}
  1272  
  1273  	if o.NameIc != nil {
  1274  
  1275  		// query param name__ic
  1276  		var qrNameIc string
  1277  
  1278  		if o.NameIc != nil {
  1279  			qrNameIc = *o.NameIc
  1280  		}
  1281  		qNameIc := qrNameIc
  1282  		if qNameIc != "" {
  1283  
  1284  			if err := r.SetQueryParam("name__ic", qNameIc); err != nil {
  1285  				return err
  1286  			}
  1287  		}
  1288  	}
  1289  
  1290  	if o.NameIe != nil {
  1291  
  1292  		// query param name__ie
  1293  		var qrNameIe string
  1294  
  1295  		if o.NameIe != nil {
  1296  			qrNameIe = *o.NameIe
  1297  		}
  1298  		qNameIe := qrNameIe
  1299  		if qNameIe != "" {
  1300  
  1301  			if err := r.SetQueryParam("name__ie", qNameIe); err != nil {
  1302  				return err
  1303  			}
  1304  		}
  1305  	}
  1306  
  1307  	if o.NameIew != nil {
  1308  
  1309  		// query param name__iew
  1310  		var qrNameIew string
  1311  
  1312  		if o.NameIew != nil {
  1313  			qrNameIew = *o.NameIew
  1314  		}
  1315  		qNameIew := qrNameIew
  1316  		if qNameIew != "" {
  1317  
  1318  			if err := r.SetQueryParam("name__iew", qNameIew); err != nil {
  1319  				return err
  1320  			}
  1321  		}
  1322  	}
  1323  
  1324  	if o.NameIsw != nil {
  1325  
  1326  		// query param name__isw
  1327  		var qrNameIsw string
  1328  
  1329  		if o.NameIsw != nil {
  1330  			qrNameIsw = *o.NameIsw
  1331  		}
  1332  		qNameIsw := qrNameIsw
  1333  		if qNameIsw != "" {
  1334  
  1335  			if err := r.SetQueryParam("name__isw", qNameIsw); err != nil {
  1336  				return err
  1337  			}
  1338  		}
  1339  	}
  1340  
  1341  	if o.Namen != nil {
  1342  
  1343  		// query param name__n
  1344  		var qrNamen string
  1345  
  1346  		if o.Namen != nil {
  1347  			qrNamen = *o.Namen
  1348  		}
  1349  		qNamen := qrNamen
  1350  		if qNamen != "" {
  1351  
  1352  			if err := r.SetQueryParam("name__n", qNamen); err != nil {
  1353  				return err
  1354  			}
  1355  		}
  1356  	}
  1357  
  1358  	if o.NameNic != nil {
  1359  
  1360  		// query param name__nic
  1361  		var qrNameNic string
  1362  
  1363  		if o.NameNic != nil {
  1364  			qrNameNic = *o.NameNic
  1365  		}
  1366  		qNameNic := qrNameNic
  1367  		if qNameNic != "" {
  1368  
  1369  			if err := r.SetQueryParam("name__nic", qNameNic); err != nil {
  1370  				return err
  1371  			}
  1372  		}
  1373  	}
  1374  
  1375  	if o.NameNie != nil {
  1376  
  1377  		// query param name__nie
  1378  		var qrNameNie string
  1379  
  1380  		if o.NameNie != nil {
  1381  			qrNameNie = *o.NameNie
  1382  		}
  1383  		qNameNie := qrNameNie
  1384  		if qNameNie != "" {
  1385  
  1386  			if err := r.SetQueryParam("name__nie", qNameNie); err != nil {
  1387  				return err
  1388  			}
  1389  		}
  1390  	}
  1391  
  1392  	if o.NameNiew != nil {
  1393  
  1394  		// query param name__niew
  1395  		var qrNameNiew string
  1396  
  1397  		if o.NameNiew != nil {
  1398  			qrNameNiew = *o.NameNiew
  1399  		}
  1400  		qNameNiew := qrNameNiew
  1401  		if qNameNiew != "" {
  1402  
  1403  			if err := r.SetQueryParam("name__niew", qNameNiew); err != nil {
  1404  				return err
  1405  			}
  1406  		}
  1407  	}
  1408  
  1409  	if o.NameNisw != nil {
  1410  
  1411  		// query param name__nisw
  1412  		var qrNameNisw string
  1413  
  1414  		if o.NameNisw != nil {
  1415  			qrNameNisw = *o.NameNisw
  1416  		}
  1417  		qNameNisw := qrNameNisw
  1418  		if qNameNisw != "" {
  1419  
  1420  			if err := r.SetQueryParam("name__nisw", qNameNisw); err != nil {
  1421  				return err
  1422  			}
  1423  		}
  1424  	}
  1425  
  1426  	if o.Offset != nil {
  1427  
  1428  		// query param offset
  1429  		var qrOffset int64
  1430  
  1431  		if o.Offset != nil {
  1432  			qrOffset = *o.Offset
  1433  		}
  1434  		qOffset := swag.FormatInt64(qrOffset)
  1435  		if qOffset != "" {
  1436  
  1437  			if err := r.SetQueryParam("offset", qOffset); err != nil {
  1438  				return err
  1439  			}
  1440  		}
  1441  	}
  1442  
  1443  	if o.Q != nil {
  1444  
  1445  		// query param q
  1446  		var qrQ string
  1447  
  1448  		if o.Q != nil {
  1449  			qrQ = *o.Q
  1450  		}
  1451  		qQ := qrQ
  1452  		if qQ != "" {
  1453  
  1454  			if err := r.SetQueryParam("q", qQ); err != nil {
  1455  				return err
  1456  			}
  1457  		}
  1458  	}
  1459  
  1460  	if o.Slug != nil {
  1461  
  1462  		// query param slug
  1463  		var qrSlug string
  1464  
  1465  		if o.Slug != nil {
  1466  			qrSlug = *o.Slug
  1467  		}
  1468  		qSlug := qrSlug
  1469  		if qSlug != "" {
  1470  
  1471  			if err := r.SetQueryParam("slug", qSlug); err != nil {
  1472  				return err
  1473  			}
  1474  		}
  1475  	}
  1476  
  1477  	if o.SlugEmpty != nil {
  1478  
  1479  		// query param slug__empty
  1480  		var qrSlugEmpty string
  1481  
  1482  		if o.SlugEmpty != nil {
  1483  			qrSlugEmpty = *o.SlugEmpty
  1484  		}
  1485  		qSlugEmpty := qrSlugEmpty
  1486  		if qSlugEmpty != "" {
  1487  
  1488  			if err := r.SetQueryParam("slug__empty", qSlugEmpty); err != nil {
  1489  				return err
  1490  			}
  1491  		}
  1492  	}
  1493  
  1494  	if o.SlugIc != nil {
  1495  
  1496  		// query param slug__ic
  1497  		var qrSlugIc string
  1498  
  1499  		if o.SlugIc != nil {
  1500  			qrSlugIc = *o.SlugIc
  1501  		}
  1502  		qSlugIc := qrSlugIc
  1503  		if qSlugIc != "" {
  1504  
  1505  			if err := r.SetQueryParam("slug__ic", qSlugIc); err != nil {
  1506  				return err
  1507  			}
  1508  		}
  1509  	}
  1510  
  1511  	if o.SlugIe != nil {
  1512  
  1513  		// query param slug__ie
  1514  		var qrSlugIe string
  1515  
  1516  		if o.SlugIe != nil {
  1517  			qrSlugIe = *o.SlugIe
  1518  		}
  1519  		qSlugIe := qrSlugIe
  1520  		if qSlugIe != "" {
  1521  
  1522  			if err := r.SetQueryParam("slug__ie", qSlugIe); err != nil {
  1523  				return err
  1524  			}
  1525  		}
  1526  	}
  1527  
  1528  	if o.SlugIew != nil {
  1529  
  1530  		// query param slug__iew
  1531  		var qrSlugIew string
  1532  
  1533  		if o.SlugIew != nil {
  1534  			qrSlugIew = *o.SlugIew
  1535  		}
  1536  		qSlugIew := qrSlugIew
  1537  		if qSlugIew != "" {
  1538  
  1539  			if err := r.SetQueryParam("slug__iew", qSlugIew); err != nil {
  1540  				return err
  1541  			}
  1542  		}
  1543  	}
  1544  
  1545  	if o.SlugIsw != nil {
  1546  
  1547  		// query param slug__isw
  1548  		var qrSlugIsw string
  1549  
  1550  		if o.SlugIsw != nil {
  1551  			qrSlugIsw = *o.SlugIsw
  1552  		}
  1553  		qSlugIsw := qrSlugIsw
  1554  		if qSlugIsw != "" {
  1555  
  1556  			if err := r.SetQueryParam("slug__isw", qSlugIsw); err != nil {
  1557  				return err
  1558  			}
  1559  		}
  1560  	}
  1561  
  1562  	if o.Slugn != nil {
  1563  
  1564  		// query param slug__n
  1565  		var qrSlugn string
  1566  
  1567  		if o.Slugn != nil {
  1568  			qrSlugn = *o.Slugn
  1569  		}
  1570  		qSlugn := qrSlugn
  1571  		if qSlugn != "" {
  1572  
  1573  			if err := r.SetQueryParam("slug__n", qSlugn); err != nil {
  1574  				return err
  1575  			}
  1576  		}
  1577  	}
  1578  
  1579  	if o.SlugNic != nil {
  1580  
  1581  		// query param slug__nic
  1582  		var qrSlugNic string
  1583  
  1584  		if o.SlugNic != nil {
  1585  			qrSlugNic = *o.SlugNic
  1586  		}
  1587  		qSlugNic := qrSlugNic
  1588  		if qSlugNic != "" {
  1589  
  1590  			if err := r.SetQueryParam("slug__nic", qSlugNic); err != nil {
  1591  				return err
  1592  			}
  1593  		}
  1594  	}
  1595  
  1596  	if o.SlugNie != nil {
  1597  
  1598  		// query param slug__nie
  1599  		var qrSlugNie string
  1600  
  1601  		if o.SlugNie != nil {
  1602  			qrSlugNie = *o.SlugNie
  1603  		}
  1604  		qSlugNie := qrSlugNie
  1605  		if qSlugNie != "" {
  1606  
  1607  			if err := r.SetQueryParam("slug__nie", qSlugNie); err != nil {
  1608  				return err
  1609  			}
  1610  		}
  1611  	}
  1612  
  1613  	if o.SlugNiew != nil {
  1614  
  1615  		// query param slug__niew
  1616  		var qrSlugNiew string
  1617  
  1618  		if o.SlugNiew != nil {
  1619  			qrSlugNiew = *o.SlugNiew
  1620  		}
  1621  		qSlugNiew := qrSlugNiew
  1622  		if qSlugNiew != "" {
  1623  
  1624  			if err := r.SetQueryParam("slug__niew", qSlugNiew); err != nil {
  1625  				return err
  1626  			}
  1627  		}
  1628  	}
  1629  
  1630  	if o.SlugNisw != nil {
  1631  
  1632  		// query param slug__nisw
  1633  		var qrSlugNisw string
  1634  
  1635  		if o.SlugNisw != nil {
  1636  			qrSlugNisw = *o.SlugNisw
  1637  		}
  1638  		qSlugNisw := qrSlugNisw
  1639  		if qSlugNisw != "" {
  1640  
  1641  			if err := r.SetQueryParam("slug__nisw", qSlugNisw); err != nil {
  1642  				return err
  1643  			}
  1644  		}
  1645  	}
  1646  
  1647  	if o.VMRole != nil {
  1648  
  1649  		// query param vm_role
  1650  		var qrVMRole string
  1651  
  1652  		if o.VMRole != nil {
  1653  			qrVMRole = *o.VMRole
  1654  		}
  1655  		qVMRole := qrVMRole
  1656  		if qVMRole != "" {
  1657  
  1658  			if err := r.SetQueryParam("vm_role", qVMRole); err != nil {
  1659  				return err
  1660  			}
  1661  		}
  1662  	}
  1663  
  1664  	if len(res) > 0 {
  1665  		return errors.CompositeValidationError(res...)
  1666  	}
  1667  	return nil
  1668  }