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