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