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