github.com/digitalocean/go-netbox@v0.0.2/netbox/client/extras/extras_config_contexts_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  // NewExtrasConfigContextsListParams creates a new ExtrasConfigContextsListParams 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 NewExtrasConfigContextsListParams() *ExtrasConfigContextsListParams {
    42  	return &ExtrasConfigContextsListParams{
    43  		timeout: cr.DefaultTimeout,
    44  	}
    45  }
    46  
    47  // NewExtrasConfigContextsListParamsWithTimeout creates a new ExtrasConfigContextsListParams object
    48  // with the ability to set a timeout on a request.
    49  func NewExtrasConfigContextsListParamsWithTimeout(timeout time.Duration) *ExtrasConfigContextsListParams {
    50  	return &ExtrasConfigContextsListParams{
    51  		timeout: timeout,
    52  	}
    53  }
    54  
    55  // NewExtrasConfigContextsListParamsWithContext creates a new ExtrasConfigContextsListParams object
    56  // with the ability to set a context for a request.
    57  func NewExtrasConfigContextsListParamsWithContext(ctx context.Context) *ExtrasConfigContextsListParams {
    58  	return &ExtrasConfigContextsListParams{
    59  		Context: ctx,
    60  	}
    61  }
    62  
    63  // NewExtrasConfigContextsListParamsWithHTTPClient creates a new ExtrasConfigContextsListParams object
    64  // with the ability to set a custom HTTPClient for a request.
    65  func NewExtrasConfigContextsListParamsWithHTTPClient(client *http.Client) *ExtrasConfigContextsListParams {
    66  	return &ExtrasConfigContextsListParams{
    67  		HTTPClient: client,
    68  	}
    69  }
    70  
    71  /* ExtrasConfigContextsListParams contains all the parameters to send to the API endpoint
    72     for the extras config contexts list operation.
    73  
    74     Typically these are written to a http.Request.
    75  */
    76  type ExtrasConfigContextsListParams struct {
    77  
    78  	// ClusterGroup.
    79  	ClusterGroup *string
    80  
    81  	// ClusterGroupn.
    82  	ClusterGroupn *string
    83  
    84  	// ClusterGroupID.
    85  	ClusterGroupID *string
    86  
    87  	// ClusterGroupIDn.
    88  	ClusterGroupIDn *string
    89  
    90  	// ClusterID.
    91  	ClusterID *string
    92  
    93  	// ClusterIDn.
    94  	ClusterIDn *string
    95  
    96  	// Created.
    97  	Created *string
    98  
    99  	// CreatedGte.
   100  	CreatedGte *string
   101  
   102  	// CreatedLte.
   103  	CreatedLte *string
   104  
   105  	// DeviceTypeID.
   106  	DeviceTypeID *string
   107  
   108  	// DeviceTypeIDn.
   109  	DeviceTypeIDn *string
   110  
   111  	// ID.
   112  	ID *string
   113  
   114  	// IDGt.
   115  	IDGt *string
   116  
   117  	// IDGte.
   118  	IDGte *string
   119  
   120  	// IDLt.
   121  	IDLt *string
   122  
   123  	// IDLte.
   124  	IDLte *string
   125  
   126  	// IDn.
   127  	IDn *string
   128  
   129  	// IsActive.
   130  	IsActive *string
   131  
   132  	// LastUpdated.
   133  	LastUpdated *string
   134  
   135  	// LastUpdatedGte.
   136  	LastUpdatedGte *string
   137  
   138  	// LastUpdatedLte.
   139  	LastUpdatedLte *string
   140  
   141  	/* Limit.
   142  
   143  	   Number of results to return per page.
   144  	*/
   145  	Limit *int64
   146  
   147  	// Name.
   148  	Name *string
   149  
   150  	// NameEmpty.
   151  	NameEmpty *string
   152  
   153  	// NameIc.
   154  	NameIc *string
   155  
   156  	// NameIe.
   157  	NameIe *string
   158  
   159  	// NameIew.
   160  	NameIew *string
   161  
   162  	// NameIsw.
   163  	NameIsw *string
   164  
   165  	// Namen.
   166  	Namen *string
   167  
   168  	// NameNic.
   169  	NameNic *string
   170  
   171  	// NameNie.
   172  	NameNie *string
   173  
   174  	// NameNiew.
   175  	NameNiew *string
   176  
   177  	// NameNisw.
   178  	NameNisw *string
   179  
   180  	/* Offset.
   181  
   182  	   The initial index from which to return the results.
   183  	*/
   184  	Offset *int64
   185  
   186  	// Platform.
   187  	Platform *string
   188  
   189  	// Platformn.
   190  	Platformn *string
   191  
   192  	// PlatformID.
   193  	PlatformID *string
   194  
   195  	// PlatformIDn.
   196  	PlatformIDn *string
   197  
   198  	// Q.
   199  	Q *string
   200  
   201  	// Region.
   202  	Region *string
   203  
   204  	// Regionn.
   205  	Regionn *string
   206  
   207  	// RegionID.
   208  	RegionID *string
   209  
   210  	// RegionIDn.
   211  	RegionIDn *string
   212  
   213  	// Role.
   214  	Role *string
   215  
   216  	// Rolen.
   217  	Rolen *string
   218  
   219  	// RoleID.
   220  	RoleID *string
   221  
   222  	// RoleIDn.
   223  	RoleIDn *string
   224  
   225  	// Site.
   226  	Site *string
   227  
   228  	// Siten.
   229  	Siten *string
   230  
   231  	// SiteGroup.
   232  	SiteGroup *string
   233  
   234  	// SiteGroupn.
   235  	SiteGroupn *string
   236  
   237  	// SiteGroupID.
   238  	SiteGroupID *string
   239  
   240  	// SiteGroupIDn.
   241  	SiteGroupIDn *string
   242  
   243  	// SiteID.
   244  	SiteID *string
   245  
   246  	// SiteIDn.
   247  	SiteIDn *string
   248  
   249  	// Tag.
   250  	Tag *string
   251  
   252  	// Tagn.
   253  	Tagn *string
   254  
   255  	// Tenant.
   256  	Tenant *string
   257  
   258  	// Tenantn.
   259  	Tenantn *string
   260  
   261  	// TenantGroup.
   262  	TenantGroup *string
   263  
   264  	// TenantGroupn.
   265  	TenantGroupn *string
   266  
   267  	// TenantGroupID.
   268  	TenantGroupID *string
   269  
   270  	// TenantGroupIDn.
   271  	TenantGroupIDn *string
   272  
   273  	// TenantID.
   274  	TenantID *string
   275  
   276  	// TenantIDn.
   277  	TenantIDn *string
   278  
   279  	timeout    time.Duration
   280  	Context    context.Context
   281  	HTTPClient *http.Client
   282  }
   283  
   284  // WithDefaults hydrates default values in the extras config contexts list params (not the query body).
   285  //
   286  // All values with no default are reset to their zero value.
   287  func (o *ExtrasConfigContextsListParams) WithDefaults() *ExtrasConfigContextsListParams {
   288  	o.SetDefaults()
   289  	return o
   290  }
   291  
   292  // SetDefaults hydrates default values in the extras config contexts list params (not the query body).
   293  //
   294  // All values with no default are reset to their zero value.
   295  func (o *ExtrasConfigContextsListParams) SetDefaults() {
   296  	// no default values defined for this parameter
   297  }
   298  
   299  // WithTimeout adds the timeout to the extras config contexts list params
   300  func (o *ExtrasConfigContextsListParams) WithTimeout(timeout time.Duration) *ExtrasConfigContextsListParams {
   301  	o.SetTimeout(timeout)
   302  	return o
   303  }
   304  
   305  // SetTimeout adds the timeout to the extras config contexts list params
   306  func (o *ExtrasConfigContextsListParams) SetTimeout(timeout time.Duration) {
   307  	o.timeout = timeout
   308  }
   309  
   310  // WithContext adds the context to the extras config contexts list params
   311  func (o *ExtrasConfigContextsListParams) WithContext(ctx context.Context) *ExtrasConfigContextsListParams {
   312  	o.SetContext(ctx)
   313  	return o
   314  }
   315  
   316  // SetContext adds the context to the extras config contexts list params
   317  func (o *ExtrasConfigContextsListParams) SetContext(ctx context.Context) {
   318  	o.Context = ctx
   319  }
   320  
   321  // WithHTTPClient adds the HTTPClient to the extras config contexts list params
   322  func (o *ExtrasConfigContextsListParams) WithHTTPClient(client *http.Client) *ExtrasConfigContextsListParams {
   323  	o.SetHTTPClient(client)
   324  	return o
   325  }
   326  
   327  // SetHTTPClient adds the HTTPClient to the extras config contexts list params
   328  func (o *ExtrasConfigContextsListParams) SetHTTPClient(client *http.Client) {
   329  	o.HTTPClient = client
   330  }
   331  
   332  // WithClusterGroup adds the clusterGroup to the extras config contexts list params
   333  func (o *ExtrasConfigContextsListParams) WithClusterGroup(clusterGroup *string) *ExtrasConfigContextsListParams {
   334  	o.SetClusterGroup(clusterGroup)
   335  	return o
   336  }
   337  
   338  // SetClusterGroup adds the clusterGroup to the extras config contexts list params
   339  func (o *ExtrasConfigContextsListParams) SetClusterGroup(clusterGroup *string) {
   340  	o.ClusterGroup = clusterGroup
   341  }
   342  
   343  // WithClusterGroupn adds the clusterGroupn to the extras config contexts list params
   344  func (o *ExtrasConfigContextsListParams) WithClusterGroupn(clusterGroupn *string) *ExtrasConfigContextsListParams {
   345  	o.SetClusterGroupn(clusterGroupn)
   346  	return o
   347  }
   348  
   349  // SetClusterGroupn adds the clusterGroupN to the extras config contexts list params
   350  func (o *ExtrasConfigContextsListParams) SetClusterGroupn(clusterGroupn *string) {
   351  	o.ClusterGroupn = clusterGroupn
   352  }
   353  
   354  // WithClusterGroupID adds the clusterGroupID to the extras config contexts list params
   355  func (o *ExtrasConfigContextsListParams) WithClusterGroupID(clusterGroupID *string) *ExtrasConfigContextsListParams {
   356  	o.SetClusterGroupID(clusterGroupID)
   357  	return o
   358  }
   359  
   360  // SetClusterGroupID adds the clusterGroupId to the extras config contexts list params
   361  func (o *ExtrasConfigContextsListParams) SetClusterGroupID(clusterGroupID *string) {
   362  	o.ClusterGroupID = clusterGroupID
   363  }
   364  
   365  // WithClusterGroupIDn adds the clusterGroupIDn to the extras config contexts list params
   366  func (o *ExtrasConfigContextsListParams) WithClusterGroupIDn(clusterGroupIDn *string) *ExtrasConfigContextsListParams {
   367  	o.SetClusterGroupIDn(clusterGroupIDn)
   368  	return o
   369  }
   370  
   371  // SetClusterGroupIDn adds the clusterGroupIdN to the extras config contexts list params
   372  func (o *ExtrasConfigContextsListParams) SetClusterGroupIDn(clusterGroupIDn *string) {
   373  	o.ClusterGroupIDn = clusterGroupIDn
   374  }
   375  
   376  // WithClusterID adds the clusterID to the extras config contexts list params
   377  func (o *ExtrasConfigContextsListParams) WithClusterID(clusterID *string) *ExtrasConfigContextsListParams {
   378  	o.SetClusterID(clusterID)
   379  	return o
   380  }
   381  
   382  // SetClusterID adds the clusterId to the extras config contexts list params
   383  func (o *ExtrasConfigContextsListParams) SetClusterID(clusterID *string) {
   384  	o.ClusterID = clusterID
   385  }
   386  
   387  // WithClusterIDn adds the clusterIDn to the extras config contexts list params
   388  func (o *ExtrasConfigContextsListParams) WithClusterIDn(clusterIDn *string) *ExtrasConfigContextsListParams {
   389  	o.SetClusterIDn(clusterIDn)
   390  	return o
   391  }
   392  
   393  // SetClusterIDn adds the clusterIdN to the extras config contexts list params
   394  func (o *ExtrasConfigContextsListParams) SetClusterIDn(clusterIDn *string) {
   395  	o.ClusterIDn = clusterIDn
   396  }
   397  
   398  // WithCreated adds the created to the extras config contexts list params
   399  func (o *ExtrasConfigContextsListParams) WithCreated(created *string) *ExtrasConfigContextsListParams {
   400  	o.SetCreated(created)
   401  	return o
   402  }
   403  
   404  // SetCreated adds the created to the extras config contexts list params
   405  func (o *ExtrasConfigContextsListParams) SetCreated(created *string) {
   406  	o.Created = created
   407  }
   408  
   409  // WithCreatedGte adds the createdGte to the extras config contexts list params
   410  func (o *ExtrasConfigContextsListParams) WithCreatedGte(createdGte *string) *ExtrasConfigContextsListParams {
   411  	o.SetCreatedGte(createdGte)
   412  	return o
   413  }
   414  
   415  // SetCreatedGte adds the createdGte to the extras config contexts list params
   416  func (o *ExtrasConfigContextsListParams) SetCreatedGte(createdGte *string) {
   417  	o.CreatedGte = createdGte
   418  }
   419  
   420  // WithCreatedLte adds the createdLte to the extras config contexts list params
   421  func (o *ExtrasConfigContextsListParams) WithCreatedLte(createdLte *string) *ExtrasConfigContextsListParams {
   422  	o.SetCreatedLte(createdLte)
   423  	return o
   424  }
   425  
   426  // SetCreatedLte adds the createdLte to the extras config contexts list params
   427  func (o *ExtrasConfigContextsListParams) SetCreatedLte(createdLte *string) {
   428  	o.CreatedLte = createdLte
   429  }
   430  
   431  // WithDeviceTypeID adds the deviceTypeID to the extras config contexts list params
   432  func (o *ExtrasConfigContextsListParams) WithDeviceTypeID(deviceTypeID *string) *ExtrasConfigContextsListParams {
   433  	o.SetDeviceTypeID(deviceTypeID)
   434  	return o
   435  }
   436  
   437  // SetDeviceTypeID adds the deviceTypeId to the extras config contexts list params
   438  func (o *ExtrasConfigContextsListParams) SetDeviceTypeID(deviceTypeID *string) {
   439  	o.DeviceTypeID = deviceTypeID
   440  }
   441  
   442  // WithDeviceTypeIDn adds the deviceTypeIDn to the extras config contexts list params
   443  func (o *ExtrasConfigContextsListParams) WithDeviceTypeIDn(deviceTypeIDn *string) *ExtrasConfigContextsListParams {
   444  	o.SetDeviceTypeIDn(deviceTypeIDn)
   445  	return o
   446  }
   447  
   448  // SetDeviceTypeIDn adds the deviceTypeIdN to the extras config contexts list params
   449  func (o *ExtrasConfigContextsListParams) SetDeviceTypeIDn(deviceTypeIDn *string) {
   450  	o.DeviceTypeIDn = deviceTypeIDn
   451  }
   452  
   453  // WithID adds the id to the extras config contexts list params
   454  func (o *ExtrasConfigContextsListParams) WithID(id *string) *ExtrasConfigContextsListParams {
   455  	o.SetID(id)
   456  	return o
   457  }
   458  
   459  // SetID adds the id to the extras config contexts list params
   460  func (o *ExtrasConfigContextsListParams) SetID(id *string) {
   461  	o.ID = id
   462  }
   463  
   464  // WithIDGt adds the iDGt to the extras config contexts list params
   465  func (o *ExtrasConfigContextsListParams) WithIDGt(iDGt *string) *ExtrasConfigContextsListParams {
   466  	o.SetIDGt(iDGt)
   467  	return o
   468  }
   469  
   470  // SetIDGt adds the idGt to the extras config contexts list params
   471  func (o *ExtrasConfigContextsListParams) SetIDGt(iDGt *string) {
   472  	o.IDGt = iDGt
   473  }
   474  
   475  // WithIDGte adds the iDGte to the extras config contexts list params
   476  func (o *ExtrasConfigContextsListParams) WithIDGte(iDGte *string) *ExtrasConfigContextsListParams {
   477  	o.SetIDGte(iDGte)
   478  	return o
   479  }
   480  
   481  // SetIDGte adds the idGte to the extras config contexts list params
   482  func (o *ExtrasConfigContextsListParams) SetIDGte(iDGte *string) {
   483  	o.IDGte = iDGte
   484  }
   485  
   486  // WithIDLt adds the iDLt to the extras config contexts list params
   487  func (o *ExtrasConfigContextsListParams) WithIDLt(iDLt *string) *ExtrasConfigContextsListParams {
   488  	o.SetIDLt(iDLt)
   489  	return o
   490  }
   491  
   492  // SetIDLt adds the idLt to the extras config contexts list params
   493  func (o *ExtrasConfigContextsListParams) SetIDLt(iDLt *string) {
   494  	o.IDLt = iDLt
   495  }
   496  
   497  // WithIDLte adds the iDLte to the extras config contexts list params
   498  func (o *ExtrasConfigContextsListParams) WithIDLte(iDLte *string) *ExtrasConfigContextsListParams {
   499  	o.SetIDLte(iDLte)
   500  	return o
   501  }
   502  
   503  // SetIDLte adds the idLte to the extras config contexts list params
   504  func (o *ExtrasConfigContextsListParams) SetIDLte(iDLte *string) {
   505  	o.IDLte = iDLte
   506  }
   507  
   508  // WithIDn adds the iDn to the extras config contexts list params
   509  func (o *ExtrasConfigContextsListParams) WithIDn(iDn *string) *ExtrasConfigContextsListParams {
   510  	o.SetIDn(iDn)
   511  	return o
   512  }
   513  
   514  // SetIDn adds the idN to the extras config contexts list params
   515  func (o *ExtrasConfigContextsListParams) SetIDn(iDn *string) {
   516  	o.IDn = iDn
   517  }
   518  
   519  // WithIsActive adds the isActive to the extras config contexts list params
   520  func (o *ExtrasConfigContextsListParams) WithIsActive(isActive *string) *ExtrasConfigContextsListParams {
   521  	o.SetIsActive(isActive)
   522  	return o
   523  }
   524  
   525  // SetIsActive adds the isActive to the extras config contexts list params
   526  func (o *ExtrasConfigContextsListParams) SetIsActive(isActive *string) {
   527  	o.IsActive = isActive
   528  }
   529  
   530  // WithLastUpdated adds the lastUpdated to the extras config contexts list params
   531  func (o *ExtrasConfigContextsListParams) WithLastUpdated(lastUpdated *string) *ExtrasConfigContextsListParams {
   532  	o.SetLastUpdated(lastUpdated)
   533  	return o
   534  }
   535  
   536  // SetLastUpdated adds the lastUpdated to the extras config contexts list params
   537  func (o *ExtrasConfigContextsListParams) SetLastUpdated(lastUpdated *string) {
   538  	o.LastUpdated = lastUpdated
   539  }
   540  
   541  // WithLastUpdatedGte adds the lastUpdatedGte to the extras config contexts list params
   542  func (o *ExtrasConfigContextsListParams) WithLastUpdatedGte(lastUpdatedGte *string) *ExtrasConfigContextsListParams {
   543  	o.SetLastUpdatedGte(lastUpdatedGte)
   544  	return o
   545  }
   546  
   547  // SetLastUpdatedGte adds the lastUpdatedGte to the extras config contexts list params
   548  func (o *ExtrasConfigContextsListParams) SetLastUpdatedGte(lastUpdatedGte *string) {
   549  	o.LastUpdatedGte = lastUpdatedGte
   550  }
   551  
   552  // WithLastUpdatedLte adds the lastUpdatedLte to the extras config contexts list params
   553  func (o *ExtrasConfigContextsListParams) WithLastUpdatedLte(lastUpdatedLte *string) *ExtrasConfigContextsListParams {
   554  	o.SetLastUpdatedLte(lastUpdatedLte)
   555  	return o
   556  }
   557  
   558  // SetLastUpdatedLte adds the lastUpdatedLte to the extras config contexts list params
   559  func (o *ExtrasConfigContextsListParams) SetLastUpdatedLte(lastUpdatedLte *string) {
   560  	o.LastUpdatedLte = lastUpdatedLte
   561  }
   562  
   563  // WithLimit adds the limit to the extras config contexts list params
   564  func (o *ExtrasConfigContextsListParams) WithLimit(limit *int64) *ExtrasConfigContextsListParams {
   565  	o.SetLimit(limit)
   566  	return o
   567  }
   568  
   569  // SetLimit adds the limit to the extras config contexts list params
   570  func (o *ExtrasConfigContextsListParams) SetLimit(limit *int64) {
   571  	o.Limit = limit
   572  }
   573  
   574  // WithName adds the name to the extras config contexts list params
   575  func (o *ExtrasConfigContextsListParams) WithName(name *string) *ExtrasConfigContextsListParams {
   576  	o.SetName(name)
   577  	return o
   578  }
   579  
   580  // SetName adds the name to the extras config contexts list params
   581  func (o *ExtrasConfigContextsListParams) SetName(name *string) {
   582  	o.Name = name
   583  }
   584  
   585  // WithNameEmpty adds the nameEmpty to the extras config contexts list params
   586  func (o *ExtrasConfigContextsListParams) WithNameEmpty(nameEmpty *string) *ExtrasConfigContextsListParams {
   587  	o.SetNameEmpty(nameEmpty)
   588  	return o
   589  }
   590  
   591  // SetNameEmpty adds the nameEmpty to the extras config contexts list params
   592  func (o *ExtrasConfigContextsListParams) SetNameEmpty(nameEmpty *string) {
   593  	o.NameEmpty = nameEmpty
   594  }
   595  
   596  // WithNameIc adds the nameIc to the extras config contexts list params
   597  func (o *ExtrasConfigContextsListParams) WithNameIc(nameIc *string) *ExtrasConfigContextsListParams {
   598  	o.SetNameIc(nameIc)
   599  	return o
   600  }
   601  
   602  // SetNameIc adds the nameIc to the extras config contexts list params
   603  func (o *ExtrasConfigContextsListParams) SetNameIc(nameIc *string) {
   604  	o.NameIc = nameIc
   605  }
   606  
   607  // WithNameIe adds the nameIe to the extras config contexts list params
   608  func (o *ExtrasConfigContextsListParams) WithNameIe(nameIe *string) *ExtrasConfigContextsListParams {
   609  	o.SetNameIe(nameIe)
   610  	return o
   611  }
   612  
   613  // SetNameIe adds the nameIe to the extras config contexts list params
   614  func (o *ExtrasConfigContextsListParams) SetNameIe(nameIe *string) {
   615  	o.NameIe = nameIe
   616  }
   617  
   618  // WithNameIew adds the nameIew to the extras config contexts list params
   619  func (o *ExtrasConfigContextsListParams) WithNameIew(nameIew *string) *ExtrasConfigContextsListParams {
   620  	o.SetNameIew(nameIew)
   621  	return o
   622  }
   623  
   624  // SetNameIew adds the nameIew to the extras config contexts list params
   625  func (o *ExtrasConfigContextsListParams) SetNameIew(nameIew *string) {
   626  	o.NameIew = nameIew
   627  }
   628  
   629  // WithNameIsw adds the nameIsw to the extras config contexts list params
   630  func (o *ExtrasConfigContextsListParams) WithNameIsw(nameIsw *string) *ExtrasConfigContextsListParams {
   631  	o.SetNameIsw(nameIsw)
   632  	return o
   633  }
   634  
   635  // SetNameIsw adds the nameIsw to the extras config contexts list params
   636  func (o *ExtrasConfigContextsListParams) SetNameIsw(nameIsw *string) {
   637  	o.NameIsw = nameIsw
   638  }
   639  
   640  // WithNamen adds the namen to the extras config contexts list params
   641  func (o *ExtrasConfigContextsListParams) WithNamen(namen *string) *ExtrasConfigContextsListParams {
   642  	o.SetNamen(namen)
   643  	return o
   644  }
   645  
   646  // SetNamen adds the nameN to the extras config contexts list params
   647  func (o *ExtrasConfigContextsListParams) SetNamen(namen *string) {
   648  	o.Namen = namen
   649  }
   650  
   651  // WithNameNic adds the nameNic to the extras config contexts list params
   652  func (o *ExtrasConfigContextsListParams) WithNameNic(nameNic *string) *ExtrasConfigContextsListParams {
   653  	o.SetNameNic(nameNic)
   654  	return o
   655  }
   656  
   657  // SetNameNic adds the nameNic to the extras config contexts list params
   658  func (o *ExtrasConfigContextsListParams) SetNameNic(nameNic *string) {
   659  	o.NameNic = nameNic
   660  }
   661  
   662  // WithNameNie adds the nameNie to the extras config contexts list params
   663  func (o *ExtrasConfigContextsListParams) WithNameNie(nameNie *string) *ExtrasConfigContextsListParams {
   664  	o.SetNameNie(nameNie)
   665  	return o
   666  }
   667  
   668  // SetNameNie adds the nameNie to the extras config contexts list params
   669  func (o *ExtrasConfigContextsListParams) SetNameNie(nameNie *string) {
   670  	o.NameNie = nameNie
   671  }
   672  
   673  // WithNameNiew adds the nameNiew to the extras config contexts list params
   674  func (o *ExtrasConfigContextsListParams) WithNameNiew(nameNiew *string) *ExtrasConfigContextsListParams {
   675  	o.SetNameNiew(nameNiew)
   676  	return o
   677  }
   678  
   679  // SetNameNiew adds the nameNiew to the extras config contexts list params
   680  func (o *ExtrasConfigContextsListParams) SetNameNiew(nameNiew *string) {
   681  	o.NameNiew = nameNiew
   682  }
   683  
   684  // WithNameNisw adds the nameNisw to the extras config contexts list params
   685  func (o *ExtrasConfigContextsListParams) WithNameNisw(nameNisw *string) *ExtrasConfigContextsListParams {
   686  	o.SetNameNisw(nameNisw)
   687  	return o
   688  }
   689  
   690  // SetNameNisw adds the nameNisw to the extras config contexts list params
   691  func (o *ExtrasConfigContextsListParams) SetNameNisw(nameNisw *string) {
   692  	o.NameNisw = nameNisw
   693  }
   694  
   695  // WithOffset adds the offset to the extras config contexts list params
   696  func (o *ExtrasConfigContextsListParams) WithOffset(offset *int64) *ExtrasConfigContextsListParams {
   697  	o.SetOffset(offset)
   698  	return o
   699  }
   700  
   701  // SetOffset adds the offset to the extras config contexts list params
   702  func (o *ExtrasConfigContextsListParams) SetOffset(offset *int64) {
   703  	o.Offset = offset
   704  }
   705  
   706  // WithPlatform adds the platform to the extras config contexts list params
   707  func (o *ExtrasConfigContextsListParams) WithPlatform(platform *string) *ExtrasConfigContextsListParams {
   708  	o.SetPlatform(platform)
   709  	return o
   710  }
   711  
   712  // SetPlatform adds the platform to the extras config contexts list params
   713  func (o *ExtrasConfigContextsListParams) SetPlatform(platform *string) {
   714  	o.Platform = platform
   715  }
   716  
   717  // WithPlatformn adds the platformn to the extras config contexts list params
   718  func (o *ExtrasConfigContextsListParams) WithPlatformn(platformn *string) *ExtrasConfigContextsListParams {
   719  	o.SetPlatformn(platformn)
   720  	return o
   721  }
   722  
   723  // SetPlatformn adds the platformN to the extras config contexts list params
   724  func (o *ExtrasConfigContextsListParams) SetPlatformn(platformn *string) {
   725  	o.Platformn = platformn
   726  }
   727  
   728  // WithPlatformID adds the platformID to the extras config contexts list params
   729  func (o *ExtrasConfigContextsListParams) WithPlatformID(platformID *string) *ExtrasConfigContextsListParams {
   730  	o.SetPlatformID(platformID)
   731  	return o
   732  }
   733  
   734  // SetPlatformID adds the platformId to the extras config contexts list params
   735  func (o *ExtrasConfigContextsListParams) SetPlatformID(platformID *string) {
   736  	o.PlatformID = platformID
   737  }
   738  
   739  // WithPlatformIDn adds the platformIDn to the extras config contexts list params
   740  func (o *ExtrasConfigContextsListParams) WithPlatformIDn(platformIDn *string) *ExtrasConfigContextsListParams {
   741  	o.SetPlatformIDn(platformIDn)
   742  	return o
   743  }
   744  
   745  // SetPlatformIDn adds the platformIdN to the extras config contexts list params
   746  func (o *ExtrasConfigContextsListParams) SetPlatformIDn(platformIDn *string) {
   747  	o.PlatformIDn = platformIDn
   748  }
   749  
   750  // WithQ adds the q to the extras config contexts list params
   751  func (o *ExtrasConfigContextsListParams) WithQ(q *string) *ExtrasConfigContextsListParams {
   752  	o.SetQ(q)
   753  	return o
   754  }
   755  
   756  // SetQ adds the q to the extras config contexts list params
   757  func (o *ExtrasConfigContextsListParams) SetQ(q *string) {
   758  	o.Q = q
   759  }
   760  
   761  // WithRegion adds the region to the extras config contexts list params
   762  func (o *ExtrasConfigContextsListParams) WithRegion(region *string) *ExtrasConfigContextsListParams {
   763  	o.SetRegion(region)
   764  	return o
   765  }
   766  
   767  // SetRegion adds the region to the extras config contexts list params
   768  func (o *ExtrasConfigContextsListParams) SetRegion(region *string) {
   769  	o.Region = region
   770  }
   771  
   772  // WithRegionn adds the regionn to the extras config contexts list params
   773  func (o *ExtrasConfigContextsListParams) WithRegionn(regionn *string) *ExtrasConfigContextsListParams {
   774  	o.SetRegionn(regionn)
   775  	return o
   776  }
   777  
   778  // SetRegionn adds the regionN to the extras config contexts list params
   779  func (o *ExtrasConfigContextsListParams) SetRegionn(regionn *string) {
   780  	o.Regionn = regionn
   781  }
   782  
   783  // WithRegionID adds the regionID to the extras config contexts list params
   784  func (o *ExtrasConfigContextsListParams) WithRegionID(regionID *string) *ExtrasConfigContextsListParams {
   785  	o.SetRegionID(regionID)
   786  	return o
   787  }
   788  
   789  // SetRegionID adds the regionId to the extras config contexts list params
   790  func (o *ExtrasConfigContextsListParams) SetRegionID(regionID *string) {
   791  	o.RegionID = regionID
   792  }
   793  
   794  // WithRegionIDn adds the regionIDn to the extras config contexts list params
   795  func (o *ExtrasConfigContextsListParams) WithRegionIDn(regionIDn *string) *ExtrasConfigContextsListParams {
   796  	o.SetRegionIDn(regionIDn)
   797  	return o
   798  }
   799  
   800  // SetRegionIDn adds the regionIdN to the extras config contexts list params
   801  func (o *ExtrasConfigContextsListParams) SetRegionIDn(regionIDn *string) {
   802  	o.RegionIDn = regionIDn
   803  }
   804  
   805  // WithRole adds the role to the extras config contexts list params
   806  func (o *ExtrasConfigContextsListParams) WithRole(role *string) *ExtrasConfigContextsListParams {
   807  	o.SetRole(role)
   808  	return o
   809  }
   810  
   811  // SetRole adds the role to the extras config contexts list params
   812  func (o *ExtrasConfigContextsListParams) SetRole(role *string) {
   813  	o.Role = role
   814  }
   815  
   816  // WithRolen adds the rolen to the extras config contexts list params
   817  func (o *ExtrasConfigContextsListParams) WithRolen(rolen *string) *ExtrasConfigContextsListParams {
   818  	o.SetRolen(rolen)
   819  	return o
   820  }
   821  
   822  // SetRolen adds the roleN to the extras config contexts list params
   823  func (o *ExtrasConfigContextsListParams) SetRolen(rolen *string) {
   824  	o.Rolen = rolen
   825  }
   826  
   827  // WithRoleID adds the roleID to the extras config contexts list params
   828  func (o *ExtrasConfigContextsListParams) WithRoleID(roleID *string) *ExtrasConfigContextsListParams {
   829  	o.SetRoleID(roleID)
   830  	return o
   831  }
   832  
   833  // SetRoleID adds the roleId to the extras config contexts list params
   834  func (o *ExtrasConfigContextsListParams) SetRoleID(roleID *string) {
   835  	o.RoleID = roleID
   836  }
   837  
   838  // WithRoleIDn adds the roleIDn to the extras config contexts list params
   839  func (o *ExtrasConfigContextsListParams) WithRoleIDn(roleIDn *string) *ExtrasConfigContextsListParams {
   840  	o.SetRoleIDn(roleIDn)
   841  	return o
   842  }
   843  
   844  // SetRoleIDn adds the roleIdN to the extras config contexts list params
   845  func (o *ExtrasConfigContextsListParams) SetRoleIDn(roleIDn *string) {
   846  	o.RoleIDn = roleIDn
   847  }
   848  
   849  // WithSite adds the site to the extras config contexts list params
   850  func (o *ExtrasConfigContextsListParams) WithSite(site *string) *ExtrasConfigContextsListParams {
   851  	o.SetSite(site)
   852  	return o
   853  }
   854  
   855  // SetSite adds the site to the extras config contexts list params
   856  func (o *ExtrasConfigContextsListParams) SetSite(site *string) {
   857  	o.Site = site
   858  }
   859  
   860  // WithSiten adds the siten to the extras config contexts list params
   861  func (o *ExtrasConfigContextsListParams) WithSiten(siten *string) *ExtrasConfigContextsListParams {
   862  	o.SetSiten(siten)
   863  	return o
   864  }
   865  
   866  // SetSiten adds the siteN to the extras config contexts list params
   867  func (o *ExtrasConfigContextsListParams) SetSiten(siten *string) {
   868  	o.Siten = siten
   869  }
   870  
   871  // WithSiteGroup adds the siteGroup to the extras config contexts list params
   872  func (o *ExtrasConfigContextsListParams) WithSiteGroup(siteGroup *string) *ExtrasConfigContextsListParams {
   873  	o.SetSiteGroup(siteGroup)
   874  	return o
   875  }
   876  
   877  // SetSiteGroup adds the siteGroup to the extras config contexts list params
   878  func (o *ExtrasConfigContextsListParams) SetSiteGroup(siteGroup *string) {
   879  	o.SiteGroup = siteGroup
   880  }
   881  
   882  // WithSiteGroupn adds the siteGroupn to the extras config contexts list params
   883  func (o *ExtrasConfigContextsListParams) WithSiteGroupn(siteGroupn *string) *ExtrasConfigContextsListParams {
   884  	o.SetSiteGroupn(siteGroupn)
   885  	return o
   886  }
   887  
   888  // SetSiteGroupn adds the siteGroupN to the extras config contexts list params
   889  func (o *ExtrasConfigContextsListParams) SetSiteGroupn(siteGroupn *string) {
   890  	o.SiteGroupn = siteGroupn
   891  }
   892  
   893  // WithSiteGroupID adds the siteGroupID to the extras config contexts list params
   894  func (o *ExtrasConfigContextsListParams) WithSiteGroupID(siteGroupID *string) *ExtrasConfigContextsListParams {
   895  	o.SetSiteGroupID(siteGroupID)
   896  	return o
   897  }
   898  
   899  // SetSiteGroupID adds the siteGroupId to the extras config contexts list params
   900  func (o *ExtrasConfigContextsListParams) SetSiteGroupID(siteGroupID *string) {
   901  	o.SiteGroupID = siteGroupID
   902  }
   903  
   904  // WithSiteGroupIDn adds the siteGroupIDn to the extras config contexts list params
   905  func (o *ExtrasConfigContextsListParams) WithSiteGroupIDn(siteGroupIDn *string) *ExtrasConfigContextsListParams {
   906  	o.SetSiteGroupIDn(siteGroupIDn)
   907  	return o
   908  }
   909  
   910  // SetSiteGroupIDn adds the siteGroupIdN to the extras config contexts list params
   911  func (o *ExtrasConfigContextsListParams) SetSiteGroupIDn(siteGroupIDn *string) {
   912  	o.SiteGroupIDn = siteGroupIDn
   913  }
   914  
   915  // WithSiteID adds the siteID to the extras config contexts list params
   916  func (o *ExtrasConfigContextsListParams) WithSiteID(siteID *string) *ExtrasConfigContextsListParams {
   917  	o.SetSiteID(siteID)
   918  	return o
   919  }
   920  
   921  // SetSiteID adds the siteId to the extras config contexts list params
   922  func (o *ExtrasConfigContextsListParams) SetSiteID(siteID *string) {
   923  	o.SiteID = siteID
   924  }
   925  
   926  // WithSiteIDn adds the siteIDn to the extras config contexts list params
   927  func (o *ExtrasConfigContextsListParams) WithSiteIDn(siteIDn *string) *ExtrasConfigContextsListParams {
   928  	o.SetSiteIDn(siteIDn)
   929  	return o
   930  }
   931  
   932  // SetSiteIDn adds the siteIdN to the extras config contexts list params
   933  func (o *ExtrasConfigContextsListParams) SetSiteIDn(siteIDn *string) {
   934  	o.SiteIDn = siteIDn
   935  }
   936  
   937  // WithTag adds the tag to the extras config contexts list params
   938  func (o *ExtrasConfigContextsListParams) WithTag(tag *string) *ExtrasConfigContextsListParams {
   939  	o.SetTag(tag)
   940  	return o
   941  }
   942  
   943  // SetTag adds the tag to the extras config contexts list params
   944  func (o *ExtrasConfigContextsListParams) SetTag(tag *string) {
   945  	o.Tag = tag
   946  }
   947  
   948  // WithTagn adds the tagn to the extras config contexts list params
   949  func (o *ExtrasConfigContextsListParams) WithTagn(tagn *string) *ExtrasConfigContextsListParams {
   950  	o.SetTagn(tagn)
   951  	return o
   952  }
   953  
   954  // SetTagn adds the tagN to the extras config contexts list params
   955  func (o *ExtrasConfigContextsListParams) SetTagn(tagn *string) {
   956  	o.Tagn = tagn
   957  }
   958  
   959  // WithTenant adds the tenant to the extras config contexts list params
   960  func (o *ExtrasConfigContextsListParams) WithTenant(tenant *string) *ExtrasConfigContextsListParams {
   961  	o.SetTenant(tenant)
   962  	return o
   963  }
   964  
   965  // SetTenant adds the tenant to the extras config contexts list params
   966  func (o *ExtrasConfigContextsListParams) SetTenant(tenant *string) {
   967  	o.Tenant = tenant
   968  }
   969  
   970  // WithTenantn adds the tenantn to the extras config contexts list params
   971  func (o *ExtrasConfigContextsListParams) WithTenantn(tenantn *string) *ExtrasConfigContextsListParams {
   972  	o.SetTenantn(tenantn)
   973  	return o
   974  }
   975  
   976  // SetTenantn adds the tenantN to the extras config contexts list params
   977  func (o *ExtrasConfigContextsListParams) SetTenantn(tenantn *string) {
   978  	o.Tenantn = tenantn
   979  }
   980  
   981  // WithTenantGroup adds the tenantGroup to the extras config contexts list params
   982  func (o *ExtrasConfigContextsListParams) WithTenantGroup(tenantGroup *string) *ExtrasConfigContextsListParams {
   983  	o.SetTenantGroup(tenantGroup)
   984  	return o
   985  }
   986  
   987  // SetTenantGroup adds the tenantGroup to the extras config contexts list params
   988  func (o *ExtrasConfigContextsListParams) SetTenantGroup(tenantGroup *string) {
   989  	o.TenantGroup = tenantGroup
   990  }
   991  
   992  // WithTenantGroupn adds the tenantGroupn to the extras config contexts list params
   993  func (o *ExtrasConfigContextsListParams) WithTenantGroupn(tenantGroupn *string) *ExtrasConfigContextsListParams {
   994  	o.SetTenantGroupn(tenantGroupn)
   995  	return o
   996  }
   997  
   998  // SetTenantGroupn adds the tenantGroupN to the extras config contexts list params
   999  func (o *ExtrasConfigContextsListParams) SetTenantGroupn(tenantGroupn *string) {
  1000  	o.TenantGroupn = tenantGroupn
  1001  }
  1002  
  1003  // WithTenantGroupID adds the tenantGroupID to the extras config contexts list params
  1004  func (o *ExtrasConfigContextsListParams) WithTenantGroupID(tenantGroupID *string) *ExtrasConfigContextsListParams {
  1005  	o.SetTenantGroupID(tenantGroupID)
  1006  	return o
  1007  }
  1008  
  1009  // SetTenantGroupID adds the tenantGroupId to the extras config contexts list params
  1010  func (o *ExtrasConfigContextsListParams) SetTenantGroupID(tenantGroupID *string) {
  1011  	o.TenantGroupID = tenantGroupID
  1012  }
  1013  
  1014  // WithTenantGroupIDn adds the tenantGroupIDn to the extras config contexts list params
  1015  func (o *ExtrasConfigContextsListParams) WithTenantGroupIDn(tenantGroupIDn *string) *ExtrasConfigContextsListParams {
  1016  	o.SetTenantGroupIDn(tenantGroupIDn)
  1017  	return o
  1018  }
  1019  
  1020  // SetTenantGroupIDn adds the tenantGroupIdN to the extras config contexts list params
  1021  func (o *ExtrasConfigContextsListParams) SetTenantGroupIDn(tenantGroupIDn *string) {
  1022  	o.TenantGroupIDn = tenantGroupIDn
  1023  }
  1024  
  1025  // WithTenantID adds the tenantID to the extras config contexts list params
  1026  func (o *ExtrasConfigContextsListParams) WithTenantID(tenantID *string) *ExtrasConfigContextsListParams {
  1027  	o.SetTenantID(tenantID)
  1028  	return o
  1029  }
  1030  
  1031  // SetTenantID adds the tenantId to the extras config contexts list params
  1032  func (o *ExtrasConfigContextsListParams) SetTenantID(tenantID *string) {
  1033  	o.TenantID = tenantID
  1034  }
  1035  
  1036  // WithTenantIDn adds the tenantIDn to the extras config contexts list params
  1037  func (o *ExtrasConfigContextsListParams) WithTenantIDn(tenantIDn *string) *ExtrasConfigContextsListParams {
  1038  	o.SetTenantIDn(tenantIDn)
  1039  	return o
  1040  }
  1041  
  1042  // SetTenantIDn adds the tenantIdN to the extras config contexts list params
  1043  func (o *ExtrasConfigContextsListParams) SetTenantIDn(tenantIDn *string) {
  1044  	o.TenantIDn = tenantIDn
  1045  }
  1046  
  1047  // WriteToRequest writes these params to a swagger request
  1048  func (o *ExtrasConfigContextsListParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error {
  1049  
  1050  	if err := r.SetTimeout(o.timeout); err != nil {
  1051  		return err
  1052  	}
  1053  	var res []error
  1054  
  1055  	if o.ClusterGroup != nil {
  1056  
  1057  		// query param cluster_group
  1058  		var qrClusterGroup string
  1059  
  1060  		if o.ClusterGroup != nil {
  1061  			qrClusterGroup = *o.ClusterGroup
  1062  		}
  1063  		qClusterGroup := qrClusterGroup
  1064  		if qClusterGroup != "" {
  1065  
  1066  			if err := r.SetQueryParam("cluster_group", qClusterGroup); err != nil {
  1067  				return err
  1068  			}
  1069  		}
  1070  	}
  1071  
  1072  	if o.ClusterGroupn != nil {
  1073  
  1074  		// query param cluster_group__n
  1075  		var qrClusterGroupn string
  1076  
  1077  		if o.ClusterGroupn != nil {
  1078  			qrClusterGroupn = *o.ClusterGroupn
  1079  		}
  1080  		qClusterGroupn := qrClusterGroupn
  1081  		if qClusterGroupn != "" {
  1082  
  1083  			if err := r.SetQueryParam("cluster_group__n", qClusterGroupn); err != nil {
  1084  				return err
  1085  			}
  1086  		}
  1087  	}
  1088  
  1089  	if o.ClusterGroupID != nil {
  1090  
  1091  		// query param cluster_group_id
  1092  		var qrClusterGroupID string
  1093  
  1094  		if o.ClusterGroupID != nil {
  1095  			qrClusterGroupID = *o.ClusterGroupID
  1096  		}
  1097  		qClusterGroupID := qrClusterGroupID
  1098  		if qClusterGroupID != "" {
  1099  
  1100  			if err := r.SetQueryParam("cluster_group_id", qClusterGroupID); err != nil {
  1101  				return err
  1102  			}
  1103  		}
  1104  	}
  1105  
  1106  	if o.ClusterGroupIDn != nil {
  1107  
  1108  		// query param cluster_group_id__n
  1109  		var qrClusterGroupIDn string
  1110  
  1111  		if o.ClusterGroupIDn != nil {
  1112  			qrClusterGroupIDn = *o.ClusterGroupIDn
  1113  		}
  1114  		qClusterGroupIDn := qrClusterGroupIDn
  1115  		if qClusterGroupIDn != "" {
  1116  
  1117  			if err := r.SetQueryParam("cluster_group_id__n", qClusterGroupIDn); err != nil {
  1118  				return err
  1119  			}
  1120  		}
  1121  	}
  1122  
  1123  	if o.ClusterID != nil {
  1124  
  1125  		// query param cluster_id
  1126  		var qrClusterID string
  1127  
  1128  		if o.ClusterID != nil {
  1129  			qrClusterID = *o.ClusterID
  1130  		}
  1131  		qClusterID := qrClusterID
  1132  		if qClusterID != "" {
  1133  
  1134  			if err := r.SetQueryParam("cluster_id", qClusterID); err != nil {
  1135  				return err
  1136  			}
  1137  		}
  1138  	}
  1139  
  1140  	if o.ClusterIDn != nil {
  1141  
  1142  		// query param cluster_id__n
  1143  		var qrClusterIDn string
  1144  
  1145  		if o.ClusterIDn != nil {
  1146  			qrClusterIDn = *o.ClusterIDn
  1147  		}
  1148  		qClusterIDn := qrClusterIDn
  1149  		if qClusterIDn != "" {
  1150  
  1151  			if err := r.SetQueryParam("cluster_id__n", qClusterIDn); err != nil {
  1152  				return err
  1153  			}
  1154  		}
  1155  	}
  1156  
  1157  	if o.Created != nil {
  1158  
  1159  		// query param created
  1160  		var qrCreated string
  1161  
  1162  		if o.Created != nil {
  1163  			qrCreated = *o.Created
  1164  		}
  1165  		qCreated := qrCreated
  1166  		if qCreated != "" {
  1167  
  1168  			if err := r.SetQueryParam("created", qCreated); err != nil {
  1169  				return err
  1170  			}
  1171  		}
  1172  	}
  1173  
  1174  	if o.CreatedGte != nil {
  1175  
  1176  		// query param created__gte
  1177  		var qrCreatedGte string
  1178  
  1179  		if o.CreatedGte != nil {
  1180  			qrCreatedGte = *o.CreatedGte
  1181  		}
  1182  		qCreatedGte := qrCreatedGte
  1183  		if qCreatedGte != "" {
  1184  
  1185  			if err := r.SetQueryParam("created__gte", qCreatedGte); err != nil {
  1186  				return err
  1187  			}
  1188  		}
  1189  	}
  1190  
  1191  	if o.CreatedLte != nil {
  1192  
  1193  		// query param created__lte
  1194  		var qrCreatedLte string
  1195  
  1196  		if o.CreatedLte != nil {
  1197  			qrCreatedLte = *o.CreatedLte
  1198  		}
  1199  		qCreatedLte := qrCreatedLte
  1200  		if qCreatedLte != "" {
  1201  
  1202  			if err := r.SetQueryParam("created__lte", qCreatedLte); err != nil {
  1203  				return err
  1204  			}
  1205  		}
  1206  	}
  1207  
  1208  	if o.DeviceTypeID != nil {
  1209  
  1210  		// query param device_type_id
  1211  		var qrDeviceTypeID string
  1212  
  1213  		if o.DeviceTypeID != nil {
  1214  			qrDeviceTypeID = *o.DeviceTypeID
  1215  		}
  1216  		qDeviceTypeID := qrDeviceTypeID
  1217  		if qDeviceTypeID != "" {
  1218  
  1219  			if err := r.SetQueryParam("device_type_id", qDeviceTypeID); err != nil {
  1220  				return err
  1221  			}
  1222  		}
  1223  	}
  1224  
  1225  	if o.DeviceTypeIDn != nil {
  1226  
  1227  		// query param device_type_id__n
  1228  		var qrDeviceTypeIDn string
  1229  
  1230  		if o.DeviceTypeIDn != nil {
  1231  			qrDeviceTypeIDn = *o.DeviceTypeIDn
  1232  		}
  1233  		qDeviceTypeIDn := qrDeviceTypeIDn
  1234  		if qDeviceTypeIDn != "" {
  1235  
  1236  			if err := r.SetQueryParam("device_type_id__n", qDeviceTypeIDn); err != nil {
  1237  				return err
  1238  			}
  1239  		}
  1240  	}
  1241  
  1242  	if o.ID != nil {
  1243  
  1244  		// query param id
  1245  		var qrID string
  1246  
  1247  		if o.ID != nil {
  1248  			qrID = *o.ID
  1249  		}
  1250  		qID := qrID
  1251  		if qID != "" {
  1252  
  1253  			if err := r.SetQueryParam("id", qID); err != nil {
  1254  				return err
  1255  			}
  1256  		}
  1257  	}
  1258  
  1259  	if o.IDGt != nil {
  1260  
  1261  		// query param id__gt
  1262  		var qrIDGt string
  1263  
  1264  		if o.IDGt != nil {
  1265  			qrIDGt = *o.IDGt
  1266  		}
  1267  		qIDGt := qrIDGt
  1268  		if qIDGt != "" {
  1269  
  1270  			if err := r.SetQueryParam("id__gt", qIDGt); err != nil {
  1271  				return err
  1272  			}
  1273  		}
  1274  	}
  1275  
  1276  	if o.IDGte != nil {
  1277  
  1278  		// query param id__gte
  1279  		var qrIDGte string
  1280  
  1281  		if o.IDGte != nil {
  1282  			qrIDGte = *o.IDGte
  1283  		}
  1284  		qIDGte := qrIDGte
  1285  		if qIDGte != "" {
  1286  
  1287  			if err := r.SetQueryParam("id__gte", qIDGte); err != nil {
  1288  				return err
  1289  			}
  1290  		}
  1291  	}
  1292  
  1293  	if o.IDLt != nil {
  1294  
  1295  		// query param id__lt
  1296  		var qrIDLt string
  1297  
  1298  		if o.IDLt != nil {
  1299  			qrIDLt = *o.IDLt
  1300  		}
  1301  		qIDLt := qrIDLt
  1302  		if qIDLt != "" {
  1303  
  1304  			if err := r.SetQueryParam("id__lt", qIDLt); err != nil {
  1305  				return err
  1306  			}
  1307  		}
  1308  	}
  1309  
  1310  	if o.IDLte != nil {
  1311  
  1312  		// query param id__lte
  1313  		var qrIDLte string
  1314  
  1315  		if o.IDLte != nil {
  1316  			qrIDLte = *o.IDLte
  1317  		}
  1318  		qIDLte := qrIDLte
  1319  		if qIDLte != "" {
  1320  
  1321  			if err := r.SetQueryParam("id__lte", qIDLte); err != nil {
  1322  				return err
  1323  			}
  1324  		}
  1325  	}
  1326  
  1327  	if o.IDn != nil {
  1328  
  1329  		// query param id__n
  1330  		var qrIDn string
  1331  
  1332  		if o.IDn != nil {
  1333  			qrIDn = *o.IDn
  1334  		}
  1335  		qIDn := qrIDn
  1336  		if qIDn != "" {
  1337  
  1338  			if err := r.SetQueryParam("id__n", qIDn); err != nil {
  1339  				return err
  1340  			}
  1341  		}
  1342  	}
  1343  
  1344  	if o.IsActive != nil {
  1345  
  1346  		// query param is_active
  1347  		var qrIsActive string
  1348  
  1349  		if o.IsActive != nil {
  1350  			qrIsActive = *o.IsActive
  1351  		}
  1352  		qIsActive := qrIsActive
  1353  		if qIsActive != "" {
  1354  
  1355  			if err := r.SetQueryParam("is_active", qIsActive); err != nil {
  1356  				return err
  1357  			}
  1358  		}
  1359  	}
  1360  
  1361  	if o.LastUpdated != nil {
  1362  
  1363  		// query param last_updated
  1364  		var qrLastUpdated string
  1365  
  1366  		if o.LastUpdated != nil {
  1367  			qrLastUpdated = *o.LastUpdated
  1368  		}
  1369  		qLastUpdated := qrLastUpdated
  1370  		if qLastUpdated != "" {
  1371  
  1372  			if err := r.SetQueryParam("last_updated", qLastUpdated); err != nil {
  1373  				return err
  1374  			}
  1375  		}
  1376  	}
  1377  
  1378  	if o.LastUpdatedGte != nil {
  1379  
  1380  		// query param last_updated__gte
  1381  		var qrLastUpdatedGte string
  1382  
  1383  		if o.LastUpdatedGte != nil {
  1384  			qrLastUpdatedGte = *o.LastUpdatedGte
  1385  		}
  1386  		qLastUpdatedGte := qrLastUpdatedGte
  1387  		if qLastUpdatedGte != "" {
  1388  
  1389  			if err := r.SetQueryParam("last_updated__gte", qLastUpdatedGte); err != nil {
  1390  				return err
  1391  			}
  1392  		}
  1393  	}
  1394  
  1395  	if o.LastUpdatedLte != nil {
  1396  
  1397  		// query param last_updated__lte
  1398  		var qrLastUpdatedLte string
  1399  
  1400  		if o.LastUpdatedLte != nil {
  1401  			qrLastUpdatedLte = *o.LastUpdatedLte
  1402  		}
  1403  		qLastUpdatedLte := qrLastUpdatedLte
  1404  		if qLastUpdatedLte != "" {
  1405  
  1406  			if err := r.SetQueryParam("last_updated__lte", qLastUpdatedLte); err != nil {
  1407  				return err
  1408  			}
  1409  		}
  1410  	}
  1411  
  1412  	if o.Limit != nil {
  1413  
  1414  		// query param limit
  1415  		var qrLimit int64
  1416  
  1417  		if o.Limit != nil {
  1418  			qrLimit = *o.Limit
  1419  		}
  1420  		qLimit := swag.FormatInt64(qrLimit)
  1421  		if qLimit != "" {
  1422  
  1423  			if err := r.SetQueryParam("limit", qLimit); err != nil {
  1424  				return err
  1425  			}
  1426  		}
  1427  	}
  1428  
  1429  	if o.Name != nil {
  1430  
  1431  		// query param name
  1432  		var qrName string
  1433  
  1434  		if o.Name != nil {
  1435  			qrName = *o.Name
  1436  		}
  1437  		qName := qrName
  1438  		if qName != "" {
  1439  
  1440  			if err := r.SetQueryParam("name", qName); err != nil {
  1441  				return err
  1442  			}
  1443  		}
  1444  	}
  1445  
  1446  	if o.NameEmpty != nil {
  1447  
  1448  		// query param name__empty
  1449  		var qrNameEmpty string
  1450  
  1451  		if o.NameEmpty != nil {
  1452  			qrNameEmpty = *o.NameEmpty
  1453  		}
  1454  		qNameEmpty := qrNameEmpty
  1455  		if qNameEmpty != "" {
  1456  
  1457  			if err := r.SetQueryParam("name__empty", qNameEmpty); err != nil {
  1458  				return err
  1459  			}
  1460  		}
  1461  	}
  1462  
  1463  	if o.NameIc != nil {
  1464  
  1465  		// query param name__ic
  1466  		var qrNameIc string
  1467  
  1468  		if o.NameIc != nil {
  1469  			qrNameIc = *o.NameIc
  1470  		}
  1471  		qNameIc := qrNameIc
  1472  		if qNameIc != "" {
  1473  
  1474  			if err := r.SetQueryParam("name__ic", qNameIc); err != nil {
  1475  				return err
  1476  			}
  1477  		}
  1478  	}
  1479  
  1480  	if o.NameIe != nil {
  1481  
  1482  		// query param name__ie
  1483  		var qrNameIe string
  1484  
  1485  		if o.NameIe != nil {
  1486  			qrNameIe = *o.NameIe
  1487  		}
  1488  		qNameIe := qrNameIe
  1489  		if qNameIe != "" {
  1490  
  1491  			if err := r.SetQueryParam("name__ie", qNameIe); err != nil {
  1492  				return err
  1493  			}
  1494  		}
  1495  	}
  1496  
  1497  	if o.NameIew != nil {
  1498  
  1499  		// query param name__iew
  1500  		var qrNameIew string
  1501  
  1502  		if o.NameIew != nil {
  1503  			qrNameIew = *o.NameIew
  1504  		}
  1505  		qNameIew := qrNameIew
  1506  		if qNameIew != "" {
  1507  
  1508  			if err := r.SetQueryParam("name__iew", qNameIew); err != nil {
  1509  				return err
  1510  			}
  1511  		}
  1512  	}
  1513  
  1514  	if o.NameIsw != nil {
  1515  
  1516  		// query param name__isw
  1517  		var qrNameIsw string
  1518  
  1519  		if o.NameIsw != nil {
  1520  			qrNameIsw = *o.NameIsw
  1521  		}
  1522  		qNameIsw := qrNameIsw
  1523  		if qNameIsw != "" {
  1524  
  1525  			if err := r.SetQueryParam("name__isw", qNameIsw); err != nil {
  1526  				return err
  1527  			}
  1528  		}
  1529  	}
  1530  
  1531  	if o.Namen != nil {
  1532  
  1533  		// query param name__n
  1534  		var qrNamen string
  1535  
  1536  		if o.Namen != nil {
  1537  			qrNamen = *o.Namen
  1538  		}
  1539  		qNamen := qrNamen
  1540  		if qNamen != "" {
  1541  
  1542  			if err := r.SetQueryParam("name__n", qNamen); err != nil {
  1543  				return err
  1544  			}
  1545  		}
  1546  	}
  1547  
  1548  	if o.NameNic != nil {
  1549  
  1550  		// query param name__nic
  1551  		var qrNameNic string
  1552  
  1553  		if o.NameNic != nil {
  1554  			qrNameNic = *o.NameNic
  1555  		}
  1556  		qNameNic := qrNameNic
  1557  		if qNameNic != "" {
  1558  
  1559  			if err := r.SetQueryParam("name__nic", qNameNic); err != nil {
  1560  				return err
  1561  			}
  1562  		}
  1563  	}
  1564  
  1565  	if o.NameNie != nil {
  1566  
  1567  		// query param name__nie
  1568  		var qrNameNie string
  1569  
  1570  		if o.NameNie != nil {
  1571  			qrNameNie = *o.NameNie
  1572  		}
  1573  		qNameNie := qrNameNie
  1574  		if qNameNie != "" {
  1575  
  1576  			if err := r.SetQueryParam("name__nie", qNameNie); err != nil {
  1577  				return err
  1578  			}
  1579  		}
  1580  	}
  1581  
  1582  	if o.NameNiew != nil {
  1583  
  1584  		// query param name__niew
  1585  		var qrNameNiew string
  1586  
  1587  		if o.NameNiew != nil {
  1588  			qrNameNiew = *o.NameNiew
  1589  		}
  1590  		qNameNiew := qrNameNiew
  1591  		if qNameNiew != "" {
  1592  
  1593  			if err := r.SetQueryParam("name__niew", qNameNiew); err != nil {
  1594  				return err
  1595  			}
  1596  		}
  1597  	}
  1598  
  1599  	if o.NameNisw != nil {
  1600  
  1601  		// query param name__nisw
  1602  		var qrNameNisw string
  1603  
  1604  		if o.NameNisw != nil {
  1605  			qrNameNisw = *o.NameNisw
  1606  		}
  1607  		qNameNisw := qrNameNisw
  1608  		if qNameNisw != "" {
  1609  
  1610  			if err := r.SetQueryParam("name__nisw", qNameNisw); err != nil {
  1611  				return err
  1612  			}
  1613  		}
  1614  	}
  1615  
  1616  	if o.Offset != nil {
  1617  
  1618  		// query param offset
  1619  		var qrOffset int64
  1620  
  1621  		if o.Offset != nil {
  1622  			qrOffset = *o.Offset
  1623  		}
  1624  		qOffset := swag.FormatInt64(qrOffset)
  1625  		if qOffset != "" {
  1626  
  1627  			if err := r.SetQueryParam("offset", qOffset); err != nil {
  1628  				return err
  1629  			}
  1630  		}
  1631  	}
  1632  
  1633  	if o.Platform != nil {
  1634  
  1635  		// query param platform
  1636  		var qrPlatform string
  1637  
  1638  		if o.Platform != nil {
  1639  			qrPlatform = *o.Platform
  1640  		}
  1641  		qPlatform := qrPlatform
  1642  		if qPlatform != "" {
  1643  
  1644  			if err := r.SetQueryParam("platform", qPlatform); err != nil {
  1645  				return err
  1646  			}
  1647  		}
  1648  	}
  1649  
  1650  	if o.Platformn != nil {
  1651  
  1652  		// query param platform__n
  1653  		var qrPlatformn string
  1654  
  1655  		if o.Platformn != nil {
  1656  			qrPlatformn = *o.Platformn
  1657  		}
  1658  		qPlatformn := qrPlatformn
  1659  		if qPlatformn != "" {
  1660  
  1661  			if err := r.SetQueryParam("platform__n", qPlatformn); err != nil {
  1662  				return err
  1663  			}
  1664  		}
  1665  	}
  1666  
  1667  	if o.PlatformID != nil {
  1668  
  1669  		// query param platform_id
  1670  		var qrPlatformID string
  1671  
  1672  		if o.PlatformID != nil {
  1673  			qrPlatformID = *o.PlatformID
  1674  		}
  1675  		qPlatformID := qrPlatformID
  1676  		if qPlatformID != "" {
  1677  
  1678  			if err := r.SetQueryParam("platform_id", qPlatformID); err != nil {
  1679  				return err
  1680  			}
  1681  		}
  1682  	}
  1683  
  1684  	if o.PlatformIDn != nil {
  1685  
  1686  		// query param platform_id__n
  1687  		var qrPlatformIDn string
  1688  
  1689  		if o.PlatformIDn != nil {
  1690  			qrPlatformIDn = *o.PlatformIDn
  1691  		}
  1692  		qPlatformIDn := qrPlatformIDn
  1693  		if qPlatformIDn != "" {
  1694  
  1695  			if err := r.SetQueryParam("platform_id__n", qPlatformIDn); err != nil {
  1696  				return err
  1697  			}
  1698  		}
  1699  	}
  1700  
  1701  	if o.Q != nil {
  1702  
  1703  		// query param q
  1704  		var qrQ string
  1705  
  1706  		if o.Q != nil {
  1707  			qrQ = *o.Q
  1708  		}
  1709  		qQ := qrQ
  1710  		if qQ != "" {
  1711  
  1712  			if err := r.SetQueryParam("q", qQ); err != nil {
  1713  				return err
  1714  			}
  1715  		}
  1716  	}
  1717  
  1718  	if o.Region != nil {
  1719  
  1720  		// query param region
  1721  		var qrRegion string
  1722  
  1723  		if o.Region != nil {
  1724  			qrRegion = *o.Region
  1725  		}
  1726  		qRegion := qrRegion
  1727  		if qRegion != "" {
  1728  
  1729  			if err := r.SetQueryParam("region", qRegion); err != nil {
  1730  				return err
  1731  			}
  1732  		}
  1733  	}
  1734  
  1735  	if o.Regionn != nil {
  1736  
  1737  		// query param region__n
  1738  		var qrRegionn string
  1739  
  1740  		if o.Regionn != nil {
  1741  			qrRegionn = *o.Regionn
  1742  		}
  1743  		qRegionn := qrRegionn
  1744  		if qRegionn != "" {
  1745  
  1746  			if err := r.SetQueryParam("region__n", qRegionn); err != nil {
  1747  				return err
  1748  			}
  1749  		}
  1750  	}
  1751  
  1752  	if o.RegionID != nil {
  1753  
  1754  		// query param region_id
  1755  		var qrRegionID string
  1756  
  1757  		if o.RegionID != nil {
  1758  			qrRegionID = *o.RegionID
  1759  		}
  1760  		qRegionID := qrRegionID
  1761  		if qRegionID != "" {
  1762  
  1763  			if err := r.SetQueryParam("region_id", qRegionID); err != nil {
  1764  				return err
  1765  			}
  1766  		}
  1767  	}
  1768  
  1769  	if o.RegionIDn != nil {
  1770  
  1771  		// query param region_id__n
  1772  		var qrRegionIDn string
  1773  
  1774  		if o.RegionIDn != nil {
  1775  			qrRegionIDn = *o.RegionIDn
  1776  		}
  1777  		qRegionIDn := qrRegionIDn
  1778  		if qRegionIDn != "" {
  1779  
  1780  			if err := r.SetQueryParam("region_id__n", qRegionIDn); err != nil {
  1781  				return err
  1782  			}
  1783  		}
  1784  	}
  1785  
  1786  	if o.Role != nil {
  1787  
  1788  		// query param role
  1789  		var qrRole string
  1790  
  1791  		if o.Role != nil {
  1792  			qrRole = *o.Role
  1793  		}
  1794  		qRole := qrRole
  1795  		if qRole != "" {
  1796  
  1797  			if err := r.SetQueryParam("role", qRole); err != nil {
  1798  				return err
  1799  			}
  1800  		}
  1801  	}
  1802  
  1803  	if o.Rolen != nil {
  1804  
  1805  		// query param role__n
  1806  		var qrRolen string
  1807  
  1808  		if o.Rolen != nil {
  1809  			qrRolen = *o.Rolen
  1810  		}
  1811  		qRolen := qrRolen
  1812  		if qRolen != "" {
  1813  
  1814  			if err := r.SetQueryParam("role__n", qRolen); err != nil {
  1815  				return err
  1816  			}
  1817  		}
  1818  	}
  1819  
  1820  	if o.RoleID != nil {
  1821  
  1822  		// query param role_id
  1823  		var qrRoleID string
  1824  
  1825  		if o.RoleID != nil {
  1826  			qrRoleID = *o.RoleID
  1827  		}
  1828  		qRoleID := qrRoleID
  1829  		if qRoleID != "" {
  1830  
  1831  			if err := r.SetQueryParam("role_id", qRoleID); err != nil {
  1832  				return err
  1833  			}
  1834  		}
  1835  	}
  1836  
  1837  	if o.RoleIDn != nil {
  1838  
  1839  		// query param role_id__n
  1840  		var qrRoleIDn string
  1841  
  1842  		if o.RoleIDn != nil {
  1843  			qrRoleIDn = *o.RoleIDn
  1844  		}
  1845  		qRoleIDn := qrRoleIDn
  1846  		if qRoleIDn != "" {
  1847  
  1848  			if err := r.SetQueryParam("role_id__n", qRoleIDn); err != nil {
  1849  				return err
  1850  			}
  1851  		}
  1852  	}
  1853  
  1854  	if o.Site != nil {
  1855  
  1856  		// query param site
  1857  		var qrSite string
  1858  
  1859  		if o.Site != nil {
  1860  			qrSite = *o.Site
  1861  		}
  1862  		qSite := qrSite
  1863  		if qSite != "" {
  1864  
  1865  			if err := r.SetQueryParam("site", qSite); err != nil {
  1866  				return err
  1867  			}
  1868  		}
  1869  	}
  1870  
  1871  	if o.Siten != nil {
  1872  
  1873  		// query param site__n
  1874  		var qrSiten string
  1875  
  1876  		if o.Siten != nil {
  1877  			qrSiten = *o.Siten
  1878  		}
  1879  		qSiten := qrSiten
  1880  		if qSiten != "" {
  1881  
  1882  			if err := r.SetQueryParam("site__n", qSiten); err != nil {
  1883  				return err
  1884  			}
  1885  		}
  1886  	}
  1887  
  1888  	if o.SiteGroup != nil {
  1889  
  1890  		// query param site_group
  1891  		var qrSiteGroup string
  1892  
  1893  		if o.SiteGroup != nil {
  1894  			qrSiteGroup = *o.SiteGroup
  1895  		}
  1896  		qSiteGroup := qrSiteGroup
  1897  		if qSiteGroup != "" {
  1898  
  1899  			if err := r.SetQueryParam("site_group", qSiteGroup); err != nil {
  1900  				return err
  1901  			}
  1902  		}
  1903  	}
  1904  
  1905  	if o.SiteGroupn != nil {
  1906  
  1907  		// query param site_group__n
  1908  		var qrSiteGroupn string
  1909  
  1910  		if o.SiteGroupn != nil {
  1911  			qrSiteGroupn = *o.SiteGroupn
  1912  		}
  1913  		qSiteGroupn := qrSiteGroupn
  1914  		if qSiteGroupn != "" {
  1915  
  1916  			if err := r.SetQueryParam("site_group__n", qSiteGroupn); err != nil {
  1917  				return err
  1918  			}
  1919  		}
  1920  	}
  1921  
  1922  	if o.SiteGroupID != nil {
  1923  
  1924  		// query param site_group_id
  1925  		var qrSiteGroupID string
  1926  
  1927  		if o.SiteGroupID != nil {
  1928  			qrSiteGroupID = *o.SiteGroupID
  1929  		}
  1930  		qSiteGroupID := qrSiteGroupID
  1931  		if qSiteGroupID != "" {
  1932  
  1933  			if err := r.SetQueryParam("site_group_id", qSiteGroupID); err != nil {
  1934  				return err
  1935  			}
  1936  		}
  1937  	}
  1938  
  1939  	if o.SiteGroupIDn != nil {
  1940  
  1941  		// query param site_group_id__n
  1942  		var qrSiteGroupIDn string
  1943  
  1944  		if o.SiteGroupIDn != nil {
  1945  			qrSiteGroupIDn = *o.SiteGroupIDn
  1946  		}
  1947  		qSiteGroupIDn := qrSiteGroupIDn
  1948  		if qSiteGroupIDn != "" {
  1949  
  1950  			if err := r.SetQueryParam("site_group_id__n", qSiteGroupIDn); err != nil {
  1951  				return err
  1952  			}
  1953  		}
  1954  	}
  1955  
  1956  	if o.SiteID != nil {
  1957  
  1958  		// query param site_id
  1959  		var qrSiteID string
  1960  
  1961  		if o.SiteID != nil {
  1962  			qrSiteID = *o.SiteID
  1963  		}
  1964  		qSiteID := qrSiteID
  1965  		if qSiteID != "" {
  1966  
  1967  			if err := r.SetQueryParam("site_id", qSiteID); err != nil {
  1968  				return err
  1969  			}
  1970  		}
  1971  	}
  1972  
  1973  	if o.SiteIDn != nil {
  1974  
  1975  		// query param site_id__n
  1976  		var qrSiteIDn string
  1977  
  1978  		if o.SiteIDn != nil {
  1979  			qrSiteIDn = *o.SiteIDn
  1980  		}
  1981  		qSiteIDn := qrSiteIDn
  1982  		if qSiteIDn != "" {
  1983  
  1984  			if err := r.SetQueryParam("site_id__n", qSiteIDn); err != nil {
  1985  				return err
  1986  			}
  1987  		}
  1988  	}
  1989  
  1990  	if o.Tag != nil {
  1991  
  1992  		// query param tag
  1993  		var qrTag string
  1994  
  1995  		if o.Tag != nil {
  1996  			qrTag = *o.Tag
  1997  		}
  1998  		qTag := qrTag
  1999  		if qTag != "" {
  2000  
  2001  			if err := r.SetQueryParam("tag", qTag); err != nil {
  2002  				return err
  2003  			}
  2004  		}
  2005  	}
  2006  
  2007  	if o.Tagn != nil {
  2008  
  2009  		// query param tag__n
  2010  		var qrTagn string
  2011  
  2012  		if o.Tagn != nil {
  2013  			qrTagn = *o.Tagn
  2014  		}
  2015  		qTagn := qrTagn
  2016  		if qTagn != "" {
  2017  
  2018  			if err := r.SetQueryParam("tag__n", qTagn); err != nil {
  2019  				return err
  2020  			}
  2021  		}
  2022  	}
  2023  
  2024  	if o.Tenant != nil {
  2025  
  2026  		// query param tenant
  2027  		var qrTenant string
  2028  
  2029  		if o.Tenant != nil {
  2030  			qrTenant = *o.Tenant
  2031  		}
  2032  		qTenant := qrTenant
  2033  		if qTenant != "" {
  2034  
  2035  			if err := r.SetQueryParam("tenant", qTenant); err != nil {
  2036  				return err
  2037  			}
  2038  		}
  2039  	}
  2040  
  2041  	if o.Tenantn != nil {
  2042  
  2043  		// query param tenant__n
  2044  		var qrTenantn string
  2045  
  2046  		if o.Tenantn != nil {
  2047  			qrTenantn = *o.Tenantn
  2048  		}
  2049  		qTenantn := qrTenantn
  2050  		if qTenantn != "" {
  2051  
  2052  			if err := r.SetQueryParam("tenant__n", qTenantn); err != nil {
  2053  				return err
  2054  			}
  2055  		}
  2056  	}
  2057  
  2058  	if o.TenantGroup != nil {
  2059  
  2060  		// query param tenant_group
  2061  		var qrTenantGroup string
  2062  
  2063  		if o.TenantGroup != nil {
  2064  			qrTenantGroup = *o.TenantGroup
  2065  		}
  2066  		qTenantGroup := qrTenantGroup
  2067  		if qTenantGroup != "" {
  2068  
  2069  			if err := r.SetQueryParam("tenant_group", qTenantGroup); err != nil {
  2070  				return err
  2071  			}
  2072  		}
  2073  	}
  2074  
  2075  	if o.TenantGroupn != nil {
  2076  
  2077  		// query param tenant_group__n
  2078  		var qrTenantGroupn string
  2079  
  2080  		if o.TenantGroupn != nil {
  2081  			qrTenantGroupn = *o.TenantGroupn
  2082  		}
  2083  		qTenantGroupn := qrTenantGroupn
  2084  		if qTenantGroupn != "" {
  2085  
  2086  			if err := r.SetQueryParam("tenant_group__n", qTenantGroupn); err != nil {
  2087  				return err
  2088  			}
  2089  		}
  2090  	}
  2091  
  2092  	if o.TenantGroupID != nil {
  2093  
  2094  		// query param tenant_group_id
  2095  		var qrTenantGroupID string
  2096  
  2097  		if o.TenantGroupID != nil {
  2098  			qrTenantGroupID = *o.TenantGroupID
  2099  		}
  2100  		qTenantGroupID := qrTenantGroupID
  2101  		if qTenantGroupID != "" {
  2102  
  2103  			if err := r.SetQueryParam("tenant_group_id", qTenantGroupID); err != nil {
  2104  				return err
  2105  			}
  2106  		}
  2107  	}
  2108  
  2109  	if o.TenantGroupIDn != nil {
  2110  
  2111  		// query param tenant_group_id__n
  2112  		var qrTenantGroupIDn string
  2113  
  2114  		if o.TenantGroupIDn != nil {
  2115  			qrTenantGroupIDn = *o.TenantGroupIDn
  2116  		}
  2117  		qTenantGroupIDn := qrTenantGroupIDn
  2118  		if qTenantGroupIDn != "" {
  2119  
  2120  			if err := r.SetQueryParam("tenant_group_id__n", qTenantGroupIDn); err != nil {
  2121  				return err
  2122  			}
  2123  		}
  2124  	}
  2125  
  2126  	if o.TenantID != nil {
  2127  
  2128  		// query param tenant_id
  2129  		var qrTenantID string
  2130  
  2131  		if o.TenantID != nil {
  2132  			qrTenantID = *o.TenantID
  2133  		}
  2134  		qTenantID := qrTenantID
  2135  		if qTenantID != "" {
  2136  
  2137  			if err := r.SetQueryParam("tenant_id", qTenantID); err != nil {
  2138  				return err
  2139  			}
  2140  		}
  2141  	}
  2142  
  2143  	if o.TenantIDn != nil {
  2144  
  2145  		// query param tenant_id__n
  2146  		var qrTenantIDn string
  2147  
  2148  		if o.TenantIDn != nil {
  2149  			qrTenantIDn = *o.TenantIDn
  2150  		}
  2151  		qTenantIDn := qrTenantIDn
  2152  		if qTenantIDn != "" {
  2153  
  2154  			if err := r.SetQueryParam("tenant_id__n", qTenantIDn); err != nil {
  2155  				return err
  2156  			}
  2157  		}
  2158  	}
  2159  
  2160  	if len(res) > 0 {
  2161  		return errors.CompositeValidationError(res...)
  2162  	}
  2163  	return nil
  2164  }