github.com/digitalocean/go-netbox@v0.0.2/netbox/client/dcim/dcim_power_feeds_list_parameters.go (about)

     1  // Code generated by go-swagger; DO NOT EDIT.
     2  
     3  // Copyright 2020 The go-netbox Authors.
     4  //
     5  // Licensed under the Apache License, Version 2.0 (the "License");
     6  // you may not use this file except in compliance with the License.
     7  // You may obtain a copy of the License at
     8  //
     9  //   http://www.apache.org/licenses/LICENSE-2.0
    10  //
    11  // Unless required by applicable law or agreed to in writing, software
    12  // distributed under the License is distributed on an "AS IS" BASIS,
    13  // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
    14  // See the License for the specific language governing permissions and
    15  // limitations under the License.
    16  //
    17  
    18  package dcim
    19  
    20  // This file was generated by the swagger tool.
    21  // Editing this file might prove futile when you re-run the swagger generate command
    22  
    23  import (
    24  	"context"
    25  	"net/http"
    26  	"time"
    27  
    28  	"github.com/go-openapi/errors"
    29  	"github.com/go-openapi/runtime"
    30  	cr "github.com/go-openapi/runtime/client"
    31  	"github.com/go-openapi/strfmt"
    32  	"github.com/go-openapi/swag"
    33  )
    34  
    35  // NewDcimPowerFeedsListParams creates a new DcimPowerFeedsListParams 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 NewDcimPowerFeedsListParams() *DcimPowerFeedsListParams {
    42  	return &DcimPowerFeedsListParams{
    43  		timeout: cr.DefaultTimeout,
    44  	}
    45  }
    46  
    47  // NewDcimPowerFeedsListParamsWithTimeout creates a new DcimPowerFeedsListParams object
    48  // with the ability to set a timeout on a request.
    49  func NewDcimPowerFeedsListParamsWithTimeout(timeout time.Duration) *DcimPowerFeedsListParams {
    50  	return &DcimPowerFeedsListParams{
    51  		timeout: timeout,
    52  	}
    53  }
    54  
    55  // NewDcimPowerFeedsListParamsWithContext creates a new DcimPowerFeedsListParams object
    56  // with the ability to set a context for a request.
    57  func NewDcimPowerFeedsListParamsWithContext(ctx context.Context) *DcimPowerFeedsListParams {
    58  	return &DcimPowerFeedsListParams{
    59  		Context: ctx,
    60  	}
    61  }
    62  
    63  // NewDcimPowerFeedsListParamsWithHTTPClient creates a new DcimPowerFeedsListParams object
    64  // with the ability to set a custom HTTPClient for a request.
    65  func NewDcimPowerFeedsListParamsWithHTTPClient(client *http.Client) *DcimPowerFeedsListParams {
    66  	return &DcimPowerFeedsListParams{
    67  		HTTPClient: client,
    68  	}
    69  }
    70  
    71  /* DcimPowerFeedsListParams contains all the parameters to send to the API endpoint
    72     for the dcim power feeds list operation.
    73  
    74     Typically these are written to a http.Request.
    75  */
    76  type DcimPowerFeedsListParams struct {
    77  
    78  	// Amperage.
    79  	Amperage *string
    80  
    81  	// AmperageGt.
    82  	AmperageGt *string
    83  
    84  	// AmperageGte.
    85  	AmperageGte *string
    86  
    87  	// AmperageLt.
    88  	AmperageLt *string
    89  
    90  	// AmperageLte.
    91  	AmperageLte *string
    92  
    93  	// Amperagen.
    94  	Amperagen *string
    95  
    96  	// Cabled.
    97  	Cabled *string
    98  
    99  	// Connected.
   100  	Connected *string
   101  
   102  	// Created.
   103  	Created *string
   104  
   105  	// CreatedGte.
   106  	CreatedGte *string
   107  
   108  	// CreatedLte.
   109  	CreatedLte *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  	// 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  	// MaxUtilization.
   145  	MaxUtilization *string
   146  
   147  	// MaxUtilizationGt.
   148  	MaxUtilizationGt *string
   149  
   150  	// MaxUtilizationGte.
   151  	MaxUtilizationGte *string
   152  
   153  	// MaxUtilizationLt.
   154  	MaxUtilizationLt *string
   155  
   156  	// MaxUtilizationLte.
   157  	MaxUtilizationLte *string
   158  
   159  	// MaxUtilizationn.
   160  	MaxUtilizationn *string
   161  
   162  	// Name.
   163  	Name *string
   164  
   165  	// NameEmpty.
   166  	NameEmpty *string
   167  
   168  	// NameIc.
   169  	NameIc *string
   170  
   171  	// NameIe.
   172  	NameIe *string
   173  
   174  	// NameIew.
   175  	NameIew *string
   176  
   177  	// NameIsw.
   178  	NameIsw *string
   179  
   180  	// Namen.
   181  	Namen *string
   182  
   183  	// NameNic.
   184  	NameNic *string
   185  
   186  	// NameNie.
   187  	NameNie *string
   188  
   189  	// NameNiew.
   190  	NameNiew *string
   191  
   192  	// NameNisw.
   193  	NameNisw *string
   194  
   195  	/* Offset.
   196  
   197  	   The initial index from which to return the results.
   198  	*/
   199  	Offset *int64
   200  
   201  	// Phase.
   202  	Phase *string
   203  
   204  	// Phasen.
   205  	Phasen *string
   206  
   207  	// PowerPanelID.
   208  	PowerPanelID *string
   209  
   210  	// PowerPanelIDn.
   211  	PowerPanelIDn *string
   212  
   213  	// Q.
   214  	Q *string
   215  
   216  	// RackID.
   217  	RackID *string
   218  
   219  	// RackIDn.
   220  	RackIDn *string
   221  
   222  	// Region.
   223  	Region *string
   224  
   225  	// Regionn.
   226  	Regionn *string
   227  
   228  	// RegionID.
   229  	RegionID *string
   230  
   231  	// RegionIDn.
   232  	RegionIDn *string
   233  
   234  	// Site.
   235  	Site *string
   236  
   237  	// Siten.
   238  	Siten *string
   239  
   240  	// SiteGroup.
   241  	SiteGroup *string
   242  
   243  	// SiteGroupn.
   244  	SiteGroupn *string
   245  
   246  	// SiteGroupID.
   247  	SiteGroupID *string
   248  
   249  	// SiteGroupIDn.
   250  	SiteGroupIDn *string
   251  
   252  	// SiteID.
   253  	SiteID *string
   254  
   255  	// SiteIDn.
   256  	SiteIDn *string
   257  
   258  	// Status.
   259  	Status *string
   260  
   261  	// Statusn.
   262  	Statusn *string
   263  
   264  	// Supply.
   265  	Supply *string
   266  
   267  	// Supplyn.
   268  	Supplyn *string
   269  
   270  	// Tag.
   271  	Tag *string
   272  
   273  	// Tagn.
   274  	Tagn *string
   275  
   276  	// Type.
   277  	Type *string
   278  
   279  	// Typen.
   280  	Typen *string
   281  
   282  	// Voltage.
   283  	Voltage *string
   284  
   285  	// VoltageGt.
   286  	VoltageGt *string
   287  
   288  	// VoltageGte.
   289  	VoltageGte *string
   290  
   291  	// VoltageLt.
   292  	VoltageLt *string
   293  
   294  	// VoltageLte.
   295  	VoltageLte *string
   296  
   297  	// Voltagen.
   298  	Voltagen *string
   299  
   300  	timeout    time.Duration
   301  	Context    context.Context
   302  	HTTPClient *http.Client
   303  }
   304  
   305  // WithDefaults hydrates default values in the dcim power feeds list params (not the query body).
   306  //
   307  // All values with no default are reset to their zero value.
   308  func (o *DcimPowerFeedsListParams) WithDefaults() *DcimPowerFeedsListParams {
   309  	o.SetDefaults()
   310  	return o
   311  }
   312  
   313  // SetDefaults hydrates default values in the dcim power feeds list params (not the query body).
   314  //
   315  // All values with no default are reset to their zero value.
   316  func (o *DcimPowerFeedsListParams) SetDefaults() {
   317  	// no default values defined for this parameter
   318  }
   319  
   320  // WithTimeout adds the timeout to the dcim power feeds list params
   321  func (o *DcimPowerFeedsListParams) WithTimeout(timeout time.Duration) *DcimPowerFeedsListParams {
   322  	o.SetTimeout(timeout)
   323  	return o
   324  }
   325  
   326  // SetTimeout adds the timeout to the dcim power feeds list params
   327  func (o *DcimPowerFeedsListParams) SetTimeout(timeout time.Duration) {
   328  	o.timeout = timeout
   329  }
   330  
   331  // WithContext adds the context to the dcim power feeds list params
   332  func (o *DcimPowerFeedsListParams) WithContext(ctx context.Context) *DcimPowerFeedsListParams {
   333  	o.SetContext(ctx)
   334  	return o
   335  }
   336  
   337  // SetContext adds the context to the dcim power feeds list params
   338  func (o *DcimPowerFeedsListParams) SetContext(ctx context.Context) {
   339  	o.Context = ctx
   340  }
   341  
   342  // WithHTTPClient adds the HTTPClient to the dcim power feeds list params
   343  func (o *DcimPowerFeedsListParams) WithHTTPClient(client *http.Client) *DcimPowerFeedsListParams {
   344  	o.SetHTTPClient(client)
   345  	return o
   346  }
   347  
   348  // SetHTTPClient adds the HTTPClient to the dcim power feeds list params
   349  func (o *DcimPowerFeedsListParams) SetHTTPClient(client *http.Client) {
   350  	o.HTTPClient = client
   351  }
   352  
   353  // WithAmperage adds the amperage to the dcim power feeds list params
   354  func (o *DcimPowerFeedsListParams) WithAmperage(amperage *string) *DcimPowerFeedsListParams {
   355  	o.SetAmperage(amperage)
   356  	return o
   357  }
   358  
   359  // SetAmperage adds the amperage to the dcim power feeds list params
   360  func (o *DcimPowerFeedsListParams) SetAmperage(amperage *string) {
   361  	o.Amperage = amperage
   362  }
   363  
   364  // WithAmperageGt adds the amperageGt to the dcim power feeds list params
   365  func (o *DcimPowerFeedsListParams) WithAmperageGt(amperageGt *string) *DcimPowerFeedsListParams {
   366  	o.SetAmperageGt(amperageGt)
   367  	return o
   368  }
   369  
   370  // SetAmperageGt adds the amperageGt to the dcim power feeds list params
   371  func (o *DcimPowerFeedsListParams) SetAmperageGt(amperageGt *string) {
   372  	o.AmperageGt = amperageGt
   373  }
   374  
   375  // WithAmperageGte adds the amperageGte to the dcim power feeds list params
   376  func (o *DcimPowerFeedsListParams) WithAmperageGte(amperageGte *string) *DcimPowerFeedsListParams {
   377  	o.SetAmperageGte(amperageGte)
   378  	return o
   379  }
   380  
   381  // SetAmperageGte adds the amperageGte to the dcim power feeds list params
   382  func (o *DcimPowerFeedsListParams) SetAmperageGte(amperageGte *string) {
   383  	o.AmperageGte = amperageGte
   384  }
   385  
   386  // WithAmperageLt adds the amperageLt to the dcim power feeds list params
   387  func (o *DcimPowerFeedsListParams) WithAmperageLt(amperageLt *string) *DcimPowerFeedsListParams {
   388  	o.SetAmperageLt(amperageLt)
   389  	return o
   390  }
   391  
   392  // SetAmperageLt adds the amperageLt to the dcim power feeds list params
   393  func (o *DcimPowerFeedsListParams) SetAmperageLt(amperageLt *string) {
   394  	o.AmperageLt = amperageLt
   395  }
   396  
   397  // WithAmperageLte adds the amperageLte to the dcim power feeds list params
   398  func (o *DcimPowerFeedsListParams) WithAmperageLte(amperageLte *string) *DcimPowerFeedsListParams {
   399  	o.SetAmperageLte(amperageLte)
   400  	return o
   401  }
   402  
   403  // SetAmperageLte adds the amperageLte to the dcim power feeds list params
   404  func (o *DcimPowerFeedsListParams) SetAmperageLte(amperageLte *string) {
   405  	o.AmperageLte = amperageLte
   406  }
   407  
   408  // WithAmperagen adds the amperagen to the dcim power feeds list params
   409  func (o *DcimPowerFeedsListParams) WithAmperagen(amperagen *string) *DcimPowerFeedsListParams {
   410  	o.SetAmperagen(amperagen)
   411  	return o
   412  }
   413  
   414  // SetAmperagen adds the amperageN to the dcim power feeds list params
   415  func (o *DcimPowerFeedsListParams) SetAmperagen(amperagen *string) {
   416  	o.Amperagen = amperagen
   417  }
   418  
   419  // WithCabled adds the cabled to the dcim power feeds list params
   420  func (o *DcimPowerFeedsListParams) WithCabled(cabled *string) *DcimPowerFeedsListParams {
   421  	o.SetCabled(cabled)
   422  	return o
   423  }
   424  
   425  // SetCabled adds the cabled to the dcim power feeds list params
   426  func (o *DcimPowerFeedsListParams) SetCabled(cabled *string) {
   427  	o.Cabled = cabled
   428  }
   429  
   430  // WithConnected adds the connected to the dcim power feeds list params
   431  func (o *DcimPowerFeedsListParams) WithConnected(connected *string) *DcimPowerFeedsListParams {
   432  	o.SetConnected(connected)
   433  	return o
   434  }
   435  
   436  // SetConnected adds the connected to the dcim power feeds list params
   437  func (o *DcimPowerFeedsListParams) SetConnected(connected *string) {
   438  	o.Connected = connected
   439  }
   440  
   441  // WithCreated adds the created to the dcim power feeds list params
   442  func (o *DcimPowerFeedsListParams) WithCreated(created *string) *DcimPowerFeedsListParams {
   443  	o.SetCreated(created)
   444  	return o
   445  }
   446  
   447  // SetCreated adds the created to the dcim power feeds list params
   448  func (o *DcimPowerFeedsListParams) SetCreated(created *string) {
   449  	o.Created = created
   450  }
   451  
   452  // WithCreatedGte adds the createdGte to the dcim power feeds list params
   453  func (o *DcimPowerFeedsListParams) WithCreatedGte(createdGte *string) *DcimPowerFeedsListParams {
   454  	o.SetCreatedGte(createdGte)
   455  	return o
   456  }
   457  
   458  // SetCreatedGte adds the createdGte to the dcim power feeds list params
   459  func (o *DcimPowerFeedsListParams) SetCreatedGte(createdGte *string) {
   460  	o.CreatedGte = createdGte
   461  }
   462  
   463  // WithCreatedLte adds the createdLte to the dcim power feeds list params
   464  func (o *DcimPowerFeedsListParams) WithCreatedLte(createdLte *string) *DcimPowerFeedsListParams {
   465  	o.SetCreatedLte(createdLte)
   466  	return o
   467  }
   468  
   469  // SetCreatedLte adds the createdLte to the dcim power feeds list params
   470  func (o *DcimPowerFeedsListParams) SetCreatedLte(createdLte *string) {
   471  	o.CreatedLte = createdLte
   472  }
   473  
   474  // WithID adds the id to the dcim power feeds list params
   475  func (o *DcimPowerFeedsListParams) WithID(id *string) *DcimPowerFeedsListParams {
   476  	o.SetID(id)
   477  	return o
   478  }
   479  
   480  // SetID adds the id to the dcim power feeds list params
   481  func (o *DcimPowerFeedsListParams) SetID(id *string) {
   482  	o.ID = id
   483  }
   484  
   485  // WithIDGt adds the iDGt to the dcim power feeds list params
   486  func (o *DcimPowerFeedsListParams) WithIDGt(iDGt *string) *DcimPowerFeedsListParams {
   487  	o.SetIDGt(iDGt)
   488  	return o
   489  }
   490  
   491  // SetIDGt adds the idGt to the dcim power feeds list params
   492  func (o *DcimPowerFeedsListParams) SetIDGt(iDGt *string) {
   493  	o.IDGt = iDGt
   494  }
   495  
   496  // WithIDGte adds the iDGte to the dcim power feeds list params
   497  func (o *DcimPowerFeedsListParams) WithIDGte(iDGte *string) *DcimPowerFeedsListParams {
   498  	o.SetIDGte(iDGte)
   499  	return o
   500  }
   501  
   502  // SetIDGte adds the idGte to the dcim power feeds list params
   503  func (o *DcimPowerFeedsListParams) SetIDGte(iDGte *string) {
   504  	o.IDGte = iDGte
   505  }
   506  
   507  // WithIDLt adds the iDLt to the dcim power feeds list params
   508  func (o *DcimPowerFeedsListParams) WithIDLt(iDLt *string) *DcimPowerFeedsListParams {
   509  	o.SetIDLt(iDLt)
   510  	return o
   511  }
   512  
   513  // SetIDLt adds the idLt to the dcim power feeds list params
   514  func (o *DcimPowerFeedsListParams) SetIDLt(iDLt *string) {
   515  	o.IDLt = iDLt
   516  }
   517  
   518  // WithIDLte adds the iDLte to the dcim power feeds list params
   519  func (o *DcimPowerFeedsListParams) WithIDLte(iDLte *string) *DcimPowerFeedsListParams {
   520  	o.SetIDLte(iDLte)
   521  	return o
   522  }
   523  
   524  // SetIDLte adds the idLte to the dcim power feeds list params
   525  func (o *DcimPowerFeedsListParams) SetIDLte(iDLte *string) {
   526  	o.IDLte = iDLte
   527  }
   528  
   529  // WithIDn adds the iDn to the dcim power feeds list params
   530  func (o *DcimPowerFeedsListParams) WithIDn(iDn *string) *DcimPowerFeedsListParams {
   531  	o.SetIDn(iDn)
   532  	return o
   533  }
   534  
   535  // SetIDn adds the idN to the dcim power feeds list params
   536  func (o *DcimPowerFeedsListParams) SetIDn(iDn *string) {
   537  	o.IDn = iDn
   538  }
   539  
   540  // WithLastUpdated adds the lastUpdated to the dcim power feeds list params
   541  func (o *DcimPowerFeedsListParams) WithLastUpdated(lastUpdated *string) *DcimPowerFeedsListParams {
   542  	o.SetLastUpdated(lastUpdated)
   543  	return o
   544  }
   545  
   546  // SetLastUpdated adds the lastUpdated to the dcim power feeds list params
   547  func (o *DcimPowerFeedsListParams) SetLastUpdated(lastUpdated *string) {
   548  	o.LastUpdated = lastUpdated
   549  }
   550  
   551  // WithLastUpdatedGte adds the lastUpdatedGte to the dcim power feeds list params
   552  func (o *DcimPowerFeedsListParams) WithLastUpdatedGte(lastUpdatedGte *string) *DcimPowerFeedsListParams {
   553  	o.SetLastUpdatedGte(lastUpdatedGte)
   554  	return o
   555  }
   556  
   557  // SetLastUpdatedGte adds the lastUpdatedGte to the dcim power feeds list params
   558  func (o *DcimPowerFeedsListParams) SetLastUpdatedGte(lastUpdatedGte *string) {
   559  	o.LastUpdatedGte = lastUpdatedGte
   560  }
   561  
   562  // WithLastUpdatedLte adds the lastUpdatedLte to the dcim power feeds list params
   563  func (o *DcimPowerFeedsListParams) WithLastUpdatedLte(lastUpdatedLte *string) *DcimPowerFeedsListParams {
   564  	o.SetLastUpdatedLte(lastUpdatedLte)
   565  	return o
   566  }
   567  
   568  // SetLastUpdatedLte adds the lastUpdatedLte to the dcim power feeds list params
   569  func (o *DcimPowerFeedsListParams) SetLastUpdatedLte(lastUpdatedLte *string) {
   570  	o.LastUpdatedLte = lastUpdatedLte
   571  }
   572  
   573  // WithLimit adds the limit to the dcim power feeds list params
   574  func (o *DcimPowerFeedsListParams) WithLimit(limit *int64) *DcimPowerFeedsListParams {
   575  	o.SetLimit(limit)
   576  	return o
   577  }
   578  
   579  // SetLimit adds the limit to the dcim power feeds list params
   580  func (o *DcimPowerFeedsListParams) SetLimit(limit *int64) {
   581  	o.Limit = limit
   582  }
   583  
   584  // WithMaxUtilization adds the maxUtilization to the dcim power feeds list params
   585  func (o *DcimPowerFeedsListParams) WithMaxUtilization(maxUtilization *string) *DcimPowerFeedsListParams {
   586  	o.SetMaxUtilization(maxUtilization)
   587  	return o
   588  }
   589  
   590  // SetMaxUtilization adds the maxUtilization to the dcim power feeds list params
   591  func (o *DcimPowerFeedsListParams) SetMaxUtilization(maxUtilization *string) {
   592  	o.MaxUtilization = maxUtilization
   593  }
   594  
   595  // WithMaxUtilizationGt adds the maxUtilizationGt to the dcim power feeds list params
   596  func (o *DcimPowerFeedsListParams) WithMaxUtilizationGt(maxUtilizationGt *string) *DcimPowerFeedsListParams {
   597  	o.SetMaxUtilizationGt(maxUtilizationGt)
   598  	return o
   599  }
   600  
   601  // SetMaxUtilizationGt adds the maxUtilizationGt to the dcim power feeds list params
   602  func (o *DcimPowerFeedsListParams) SetMaxUtilizationGt(maxUtilizationGt *string) {
   603  	o.MaxUtilizationGt = maxUtilizationGt
   604  }
   605  
   606  // WithMaxUtilizationGte adds the maxUtilizationGte to the dcim power feeds list params
   607  func (o *DcimPowerFeedsListParams) WithMaxUtilizationGte(maxUtilizationGte *string) *DcimPowerFeedsListParams {
   608  	o.SetMaxUtilizationGte(maxUtilizationGte)
   609  	return o
   610  }
   611  
   612  // SetMaxUtilizationGte adds the maxUtilizationGte to the dcim power feeds list params
   613  func (o *DcimPowerFeedsListParams) SetMaxUtilizationGte(maxUtilizationGte *string) {
   614  	o.MaxUtilizationGte = maxUtilizationGte
   615  }
   616  
   617  // WithMaxUtilizationLt adds the maxUtilizationLt to the dcim power feeds list params
   618  func (o *DcimPowerFeedsListParams) WithMaxUtilizationLt(maxUtilizationLt *string) *DcimPowerFeedsListParams {
   619  	o.SetMaxUtilizationLt(maxUtilizationLt)
   620  	return o
   621  }
   622  
   623  // SetMaxUtilizationLt adds the maxUtilizationLt to the dcim power feeds list params
   624  func (o *DcimPowerFeedsListParams) SetMaxUtilizationLt(maxUtilizationLt *string) {
   625  	o.MaxUtilizationLt = maxUtilizationLt
   626  }
   627  
   628  // WithMaxUtilizationLte adds the maxUtilizationLte to the dcim power feeds list params
   629  func (o *DcimPowerFeedsListParams) WithMaxUtilizationLte(maxUtilizationLte *string) *DcimPowerFeedsListParams {
   630  	o.SetMaxUtilizationLte(maxUtilizationLte)
   631  	return o
   632  }
   633  
   634  // SetMaxUtilizationLte adds the maxUtilizationLte to the dcim power feeds list params
   635  func (o *DcimPowerFeedsListParams) SetMaxUtilizationLte(maxUtilizationLte *string) {
   636  	o.MaxUtilizationLte = maxUtilizationLte
   637  }
   638  
   639  // WithMaxUtilizationn adds the maxUtilizationn to the dcim power feeds list params
   640  func (o *DcimPowerFeedsListParams) WithMaxUtilizationn(maxUtilizationn *string) *DcimPowerFeedsListParams {
   641  	o.SetMaxUtilizationn(maxUtilizationn)
   642  	return o
   643  }
   644  
   645  // SetMaxUtilizationn adds the maxUtilizationN to the dcim power feeds list params
   646  func (o *DcimPowerFeedsListParams) SetMaxUtilizationn(maxUtilizationn *string) {
   647  	o.MaxUtilizationn = maxUtilizationn
   648  }
   649  
   650  // WithName adds the name to the dcim power feeds list params
   651  func (o *DcimPowerFeedsListParams) WithName(name *string) *DcimPowerFeedsListParams {
   652  	o.SetName(name)
   653  	return o
   654  }
   655  
   656  // SetName adds the name to the dcim power feeds list params
   657  func (o *DcimPowerFeedsListParams) SetName(name *string) {
   658  	o.Name = name
   659  }
   660  
   661  // WithNameEmpty adds the nameEmpty to the dcim power feeds list params
   662  func (o *DcimPowerFeedsListParams) WithNameEmpty(nameEmpty *string) *DcimPowerFeedsListParams {
   663  	o.SetNameEmpty(nameEmpty)
   664  	return o
   665  }
   666  
   667  // SetNameEmpty adds the nameEmpty to the dcim power feeds list params
   668  func (o *DcimPowerFeedsListParams) SetNameEmpty(nameEmpty *string) {
   669  	o.NameEmpty = nameEmpty
   670  }
   671  
   672  // WithNameIc adds the nameIc to the dcim power feeds list params
   673  func (o *DcimPowerFeedsListParams) WithNameIc(nameIc *string) *DcimPowerFeedsListParams {
   674  	o.SetNameIc(nameIc)
   675  	return o
   676  }
   677  
   678  // SetNameIc adds the nameIc to the dcim power feeds list params
   679  func (o *DcimPowerFeedsListParams) SetNameIc(nameIc *string) {
   680  	o.NameIc = nameIc
   681  }
   682  
   683  // WithNameIe adds the nameIe to the dcim power feeds list params
   684  func (o *DcimPowerFeedsListParams) WithNameIe(nameIe *string) *DcimPowerFeedsListParams {
   685  	o.SetNameIe(nameIe)
   686  	return o
   687  }
   688  
   689  // SetNameIe adds the nameIe to the dcim power feeds list params
   690  func (o *DcimPowerFeedsListParams) SetNameIe(nameIe *string) {
   691  	o.NameIe = nameIe
   692  }
   693  
   694  // WithNameIew adds the nameIew to the dcim power feeds list params
   695  func (o *DcimPowerFeedsListParams) WithNameIew(nameIew *string) *DcimPowerFeedsListParams {
   696  	o.SetNameIew(nameIew)
   697  	return o
   698  }
   699  
   700  // SetNameIew adds the nameIew to the dcim power feeds list params
   701  func (o *DcimPowerFeedsListParams) SetNameIew(nameIew *string) {
   702  	o.NameIew = nameIew
   703  }
   704  
   705  // WithNameIsw adds the nameIsw to the dcim power feeds list params
   706  func (o *DcimPowerFeedsListParams) WithNameIsw(nameIsw *string) *DcimPowerFeedsListParams {
   707  	o.SetNameIsw(nameIsw)
   708  	return o
   709  }
   710  
   711  // SetNameIsw adds the nameIsw to the dcim power feeds list params
   712  func (o *DcimPowerFeedsListParams) SetNameIsw(nameIsw *string) {
   713  	o.NameIsw = nameIsw
   714  }
   715  
   716  // WithNamen adds the namen to the dcim power feeds list params
   717  func (o *DcimPowerFeedsListParams) WithNamen(namen *string) *DcimPowerFeedsListParams {
   718  	o.SetNamen(namen)
   719  	return o
   720  }
   721  
   722  // SetNamen adds the nameN to the dcim power feeds list params
   723  func (o *DcimPowerFeedsListParams) SetNamen(namen *string) {
   724  	o.Namen = namen
   725  }
   726  
   727  // WithNameNic adds the nameNic to the dcim power feeds list params
   728  func (o *DcimPowerFeedsListParams) WithNameNic(nameNic *string) *DcimPowerFeedsListParams {
   729  	o.SetNameNic(nameNic)
   730  	return o
   731  }
   732  
   733  // SetNameNic adds the nameNic to the dcim power feeds list params
   734  func (o *DcimPowerFeedsListParams) SetNameNic(nameNic *string) {
   735  	o.NameNic = nameNic
   736  }
   737  
   738  // WithNameNie adds the nameNie to the dcim power feeds list params
   739  func (o *DcimPowerFeedsListParams) WithNameNie(nameNie *string) *DcimPowerFeedsListParams {
   740  	o.SetNameNie(nameNie)
   741  	return o
   742  }
   743  
   744  // SetNameNie adds the nameNie to the dcim power feeds list params
   745  func (o *DcimPowerFeedsListParams) SetNameNie(nameNie *string) {
   746  	o.NameNie = nameNie
   747  }
   748  
   749  // WithNameNiew adds the nameNiew to the dcim power feeds list params
   750  func (o *DcimPowerFeedsListParams) WithNameNiew(nameNiew *string) *DcimPowerFeedsListParams {
   751  	o.SetNameNiew(nameNiew)
   752  	return o
   753  }
   754  
   755  // SetNameNiew adds the nameNiew to the dcim power feeds list params
   756  func (o *DcimPowerFeedsListParams) SetNameNiew(nameNiew *string) {
   757  	o.NameNiew = nameNiew
   758  }
   759  
   760  // WithNameNisw adds the nameNisw to the dcim power feeds list params
   761  func (o *DcimPowerFeedsListParams) WithNameNisw(nameNisw *string) *DcimPowerFeedsListParams {
   762  	o.SetNameNisw(nameNisw)
   763  	return o
   764  }
   765  
   766  // SetNameNisw adds the nameNisw to the dcim power feeds list params
   767  func (o *DcimPowerFeedsListParams) SetNameNisw(nameNisw *string) {
   768  	o.NameNisw = nameNisw
   769  }
   770  
   771  // WithOffset adds the offset to the dcim power feeds list params
   772  func (o *DcimPowerFeedsListParams) WithOffset(offset *int64) *DcimPowerFeedsListParams {
   773  	o.SetOffset(offset)
   774  	return o
   775  }
   776  
   777  // SetOffset adds the offset to the dcim power feeds list params
   778  func (o *DcimPowerFeedsListParams) SetOffset(offset *int64) {
   779  	o.Offset = offset
   780  }
   781  
   782  // WithPhase adds the phase to the dcim power feeds list params
   783  func (o *DcimPowerFeedsListParams) WithPhase(phase *string) *DcimPowerFeedsListParams {
   784  	o.SetPhase(phase)
   785  	return o
   786  }
   787  
   788  // SetPhase adds the phase to the dcim power feeds list params
   789  func (o *DcimPowerFeedsListParams) SetPhase(phase *string) {
   790  	o.Phase = phase
   791  }
   792  
   793  // WithPhasen adds the phasen to the dcim power feeds list params
   794  func (o *DcimPowerFeedsListParams) WithPhasen(phasen *string) *DcimPowerFeedsListParams {
   795  	o.SetPhasen(phasen)
   796  	return o
   797  }
   798  
   799  // SetPhasen adds the phaseN to the dcim power feeds list params
   800  func (o *DcimPowerFeedsListParams) SetPhasen(phasen *string) {
   801  	o.Phasen = phasen
   802  }
   803  
   804  // WithPowerPanelID adds the powerPanelID to the dcim power feeds list params
   805  func (o *DcimPowerFeedsListParams) WithPowerPanelID(powerPanelID *string) *DcimPowerFeedsListParams {
   806  	o.SetPowerPanelID(powerPanelID)
   807  	return o
   808  }
   809  
   810  // SetPowerPanelID adds the powerPanelId to the dcim power feeds list params
   811  func (o *DcimPowerFeedsListParams) SetPowerPanelID(powerPanelID *string) {
   812  	o.PowerPanelID = powerPanelID
   813  }
   814  
   815  // WithPowerPanelIDn adds the powerPanelIDn to the dcim power feeds list params
   816  func (o *DcimPowerFeedsListParams) WithPowerPanelIDn(powerPanelIDn *string) *DcimPowerFeedsListParams {
   817  	o.SetPowerPanelIDn(powerPanelIDn)
   818  	return o
   819  }
   820  
   821  // SetPowerPanelIDn adds the powerPanelIdN to the dcim power feeds list params
   822  func (o *DcimPowerFeedsListParams) SetPowerPanelIDn(powerPanelIDn *string) {
   823  	o.PowerPanelIDn = powerPanelIDn
   824  }
   825  
   826  // WithQ adds the q to the dcim power feeds list params
   827  func (o *DcimPowerFeedsListParams) WithQ(q *string) *DcimPowerFeedsListParams {
   828  	o.SetQ(q)
   829  	return o
   830  }
   831  
   832  // SetQ adds the q to the dcim power feeds list params
   833  func (o *DcimPowerFeedsListParams) SetQ(q *string) {
   834  	o.Q = q
   835  }
   836  
   837  // WithRackID adds the rackID to the dcim power feeds list params
   838  func (o *DcimPowerFeedsListParams) WithRackID(rackID *string) *DcimPowerFeedsListParams {
   839  	o.SetRackID(rackID)
   840  	return o
   841  }
   842  
   843  // SetRackID adds the rackId to the dcim power feeds list params
   844  func (o *DcimPowerFeedsListParams) SetRackID(rackID *string) {
   845  	o.RackID = rackID
   846  }
   847  
   848  // WithRackIDn adds the rackIDn to the dcim power feeds list params
   849  func (o *DcimPowerFeedsListParams) WithRackIDn(rackIDn *string) *DcimPowerFeedsListParams {
   850  	o.SetRackIDn(rackIDn)
   851  	return o
   852  }
   853  
   854  // SetRackIDn adds the rackIdN to the dcim power feeds list params
   855  func (o *DcimPowerFeedsListParams) SetRackIDn(rackIDn *string) {
   856  	o.RackIDn = rackIDn
   857  }
   858  
   859  // WithRegion adds the region to the dcim power feeds list params
   860  func (o *DcimPowerFeedsListParams) WithRegion(region *string) *DcimPowerFeedsListParams {
   861  	o.SetRegion(region)
   862  	return o
   863  }
   864  
   865  // SetRegion adds the region to the dcim power feeds list params
   866  func (o *DcimPowerFeedsListParams) SetRegion(region *string) {
   867  	o.Region = region
   868  }
   869  
   870  // WithRegionn adds the regionn to the dcim power feeds list params
   871  func (o *DcimPowerFeedsListParams) WithRegionn(regionn *string) *DcimPowerFeedsListParams {
   872  	o.SetRegionn(regionn)
   873  	return o
   874  }
   875  
   876  // SetRegionn adds the regionN to the dcim power feeds list params
   877  func (o *DcimPowerFeedsListParams) SetRegionn(regionn *string) {
   878  	o.Regionn = regionn
   879  }
   880  
   881  // WithRegionID adds the regionID to the dcim power feeds list params
   882  func (o *DcimPowerFeedsListParams) WithRegionID(regionID *string) *DcimPowerFeedsListParams {
   883  	o.SetRegionID(regionID)
   884  	return o
   885  }
   886  
   887  // SetRegionID adds the regionId to the dcim power feeds list params
   888  func (o *DcimPowerFeedsListParams) SetRegionID(regionID *string) {
   889  	o.RegionID = regionID
   890  }
   891  
   892  // WithRegionIDn adds the regionIDn to the dcim power feeds list params
   893  func (o *DcimPowerFeedsListParams) WithRegionIDn(regionIDn *string) *DcimPowerFeedsListParams {
   894  	o.SetRegionIDn(regionIDn)
   895  	return o
   896  }
   897  
   898  // SetRegionIDn adds the regionIdN to the dcim power feeds list params
   899  func (o *DcimPowerFeedsListParams) SetRegionIDn(regionIDn *string) {
   900  	o.RegionIDn = regionIDn
   901  }
   902  
   903  // WithSite adds the site to the dcim power feeds list params
   904  func (o *DcimPowerFeedsListParams) WithSite(site *string) *DcimPowerFeedsListParams {
   905  	o.SetSite(site)
   906  	return o
   907  }
   908  
   909  // SetSite adds the site to the dcim power feeds list params
   910  func (o *DcimPowerFeedsListParams) SetSite(site *string) {
   911  	o.Site = site
   912  }
   913  
   914  // WithSiten adds the siten to the dcim power feeds list params
   915  func (o *DcimPowerFeedsListParams) WithSiten(siten *string) *DcimPowerFeedsListParams {
   916  	o.SetSiten(siten)
   917  	return o
   918  }
   919  
   920  // SetSiten adds the siteN to the dcim power feeds list params
   921  func (o *DcimPowerFeedsListParams) SetSiten(siten *string) {
   922  	o.Siten = siten
   923  }
   924  
   925  // WithSiteGroup adds the siteGroup to the dcim power feeds list params
   926  func (o *DcimPowerFeedsListParams) WithSiteGroup(siteGroup *string) *DcimPowerFeedsListParams {
   927  	o.SetSiteGroup(siteGroup)
   928  	return o
   929  }
   930  
   931  // SetSiteGroup adds the siteGroup to the dcim power feeds list params
   932  func (o *DcimPowerFeedsListParams) SetSiteGroup(siteGroup *string) {
   933  	o.SiteGroup = siteGroup
   934  }
   935  
   936  // WithSiteGroupn adds the siteGroupn to the dcim power feeds list params
   937  func (o *DcimPowerFeedsListParams) WithSiteGroupn(siteGroupn *string) *DcimPowerFeedsListParams {
   938  	o.SetSiteGroupn(siteGroupn)
   939  	return o
   940  }
   941  
   942  // SetSiteGroupn adds the siteGroupN to the dcim power feeds list params
   943  func (o *DcimPowerFeedsListParams) SetSiteGroupn(siteGroupn *string) {
   944  	o.SiteGroupn = siteGroupn
   945  }
   946  
   947  // WithSiteGroupID adds the siteGroupID to the dcim power feeds list params
   948  func (o *DcimPowerFeedsListParams) WithSiteGroupID(siteGroupID *string) *DcimPowerFeedsListParams {
   949  	o.SetSiteGroupID(siteGroupID)
   950  	return o
   951  }
   952  
   953  // SetSiteGroupID adds the siteGroupId to the dcim power feeds list params
   954  func (o *DcimPowerFeedsListParams) SetSiteGroupID(siteGroupID *string) {
   955  	o.SiteGroupID = siteGroupID
   956  }
   957  
   958  // WithSiteGroupIDn adds the siteGroupIDn to the dcim power feeds list params
   959  func (o *DcimPowerFeedsListParams) WithSiteGroupIDn(siteGroupIDn *string) *DcimPowerFeedsListParams {
   960  	o.SetSiteGroupIDn(siteGroupIDn)
   961  	return o
   962  }
   963  
   964  // SetSiteGroupIDn adds the siteGroupIdN to the dcim power feeds list params
   965  func (o *DcimPowerFeedsListParams) SetSiteGroupIDn(siteGroupIDn *string) {
   966  	o.SiteGroupIDn = siteGroupIDn
   967  }
   968  
   969  // WithSiteID adds the siteID to the dcim power feeds list params
   970  func (o *DcimPowerFeedsListParams) WithSiteID(siteID *string) *DcimPowerFeedsListParams {
   971  	o.SetSiteID(siteID)
   972  	return o
   973  }
   974  
   975  // SetSiteID adds the siteId to the dcim power feeds list params
   976  func (o *DcimPowerFeedsListParams) SetSiteID(siteID *string) {
   977  	o.SiteID = siteID
   978  }
   979  
   980  // WithSiteIDn adds the siteIDn to the dcim power feeds list params
   981  func (o *DcimPowerFeedsListParams) WithSiteIDn(siteIDn *string) *DcimPowerFeedsListParams {
   982  	o.SetSiteIDn(siteIDn)
   983  	return o
   984  }
   985  
   986  // SetSiteIDn adds the siteIdN to the dcim power feeds list params
   987  func (o *DcimPowerFeedsListParams) SetSiteIDn(siteIDn *string) {
   988  	o.SiteIDn = siteIDn
   989  }
   990  
   991  // WithStatus adds the status to the dcim power feeds list params
   992  func (o *DcimPowerFeedsListParams) WithStatus(status *string) *DcimPowerFeedsListParams {
   993  	o.SetStatus(status)
   994  	return o
   995  }
   996  
   997  // SetStatus adds the status to the dcim power feeds list params
   998  func (o *DcimPowerFeedsListParams) SetStatus(status *string) {
   999  	o.Status = status
  1000  }
  1001  
  1002  // WithStatusn adds the statusn to the dcim power feeds list params
  1003  func (o *DcimPowerFeedsListParams) WithStatusn(statusn *string) *DcimPowerFeedsListParams {
  1004  	o.SetStatusn(statusn)
  1005  	return o
  1006  }
  1007  
  1008  // SetStatusn adds the statusN to the dcim power feeds list params
  1009  func (o *DcimPowerFeedsListParams) SetStatusn(statusn *string) {
  1010  	o.Statusn = statusn
  1011  }
  1012  
  1013  // WithSupply adds the supply to the dcim power feeds list params
  1014  func (o *DcimPowerFeedsListParams) WithSupply(supply *string) *DcimPowerFeedsListParams {
  1015  	o.SetSupply(supply)
  1016  	return o
  1017  }
  1018  
  1019  // SetSupply adds the supply to the dcim power feeds list params
  1020  func (o *DcimPowerFeedsListParams) SetSupply(supply *string) {
  1021  	o.Supply = supply
  1022  }
  1023  
  1024  // WithSupplyn adds the supplyn to the dcim power feeds list params
  1025  func (o *DcimPowerFeedsListParams) WithSupplyn(supplyn *string) *DcimPowerFeedsListParams {
  1026  	o.SetSupplyn(supplyn)
  1027  	return o
  1028  }
  1029  
  1030  // SetSupplyn adds the supplyN to the dcim power feeds list params
  1031  func (o *DcimPowerFeedsListParams) SetSupplyn(supplyn *string) {
  1032  	o.Supplyn = supplyn
  1033  }
  1034  
  1035  // WithTag adds the tag to the dcim power feeds list params
  1036  func (o *DcimPowerFeedsListParams) WithTag(tag *string) *DcimPowerFeedsListParams {
  1037  	o.SetTag(tag)
  1038  	return o
  1039  }
  1040  
  1041  // SetTag adds the tag to the dcim power feeds list params
  1042  func (o *DcimPowerFeedsListParams) SetTag(tag *string) {
  1043  	o.Tag = tag
  1044  }
  1045  
  1046  // WithTagn adds the tagn to the dcim power feeds list params
  1047  func (o *DcimPowerFeedsListParams) WithTagn(tagn *string) *DcimPowerFeedsListParams {
  1048  	o.SetTagn(tagn)
  1049  	return o
  1050  }
  1051  
  1052  // SetTagn adds the tagN to the dcim power feeds list params
  1053  func (o *DcimPowerFeedsListParams) SetTagn(tagn *string) {
  1054  	o.Tagn = tagn
  1055  }
  1056  
  1057  // WithType adds the typeVar to the dcim power feeds list params
  1058  func (o *DcimPowerFeedsListParams) WithType(typeVar *string) *DcimPowerFeedsListParams {
  1059  	o.SetType(typeVar)
  1060  	return o
  1061  }
  1062  
  1063  // SetType adds the type to the dcim power feeds list params
  1064  func (o *DcimPowerFeedsListParams) SetType(typeVar *string) {
  1065  	o.Type = typeVar
  1066  }
  1067  
  1068  // WithTypen adds the typen to the dcim power feeds list params
  1069  func (o *DcimPowerFeedsListParams) WithTypen(typen *string) *DcimPowerFeedsListParams {
  1070  	o.SetTypen(typen)
  1071  	return o
  1072  }
  1073  
  1074  // SetTypen adds the typeN to the dcim power feeds list params
  1075  func (o *DcimPowerFeedsListParams) SetTypen(typen *string) {
  1076  	o.Typen = typen
  1077  }
  1078  
  1079  // WithVoltage adds the voltage to the dcim power feeds list params
  1080  func (o *DcimPowerFeedsListParams) WithVoltage(voltage *string) *DcimPowerFeedsListParams {
  1081  	o.SetVoltage(voltage)
  1082  	return o
  1083  }
  1084  
  1085  // SetVoltage adds the voltage to the dcim power feeds list params
  1086  func (o *DcimPowerFeedsListParams) SetVoltage(voltage *string) {
  1087  	o.Voltage = voltage
  1088  }
  1089  
  1090  // WithVoltageGt adds the voltageGt to the dcim power feeds list params
  1091  func (o *DcimPowerFeedsListParams) WithVoltageGt(voltageGt *string) *DcimPowerFeedsListParams {
  1092  	o.SetVoltageGt(voltageGt)
  1093  	return o
  1094  }
  1095  
  1096  // SetVoltageGt adds the voltageGt to the dcim power feeds list params
  1097  func (o *DcimPowerFeedsListParams) SetVoltageGt(voltageGt *string) {
  1098  	o.VoltageGt = voltageGt
  1099  }
  1100  
  1101  // WithVoltageGte adds the voltageGte to the dcim power feeds list params
  1102  func (o *DcimPowerFeedsListParams) WithVoltageGte(voltageGte *string) *DcimPowerFeedsListParams {
  1103  	o.SetVoltageGte(voltageGte)
  1104  	return o
  1105  }
  1106  
  1107  // SetVoltageGte adds the voltageGte to the dcim power feeds list params
  1108  func (o *DcimPowerFeedsListParams) SetVoltageGte(voltageGte *string) {
  1109  	o.VoltageGte = voltageGte
  1110  }
  1111  
  1112  // WithVoltageLt adds the voltageLt to the dcim power feeds list params
  1113  func (o *DcimPowerFeedsListParams) WithVoltageLt(voltageLt *string) *DcimPowerFeedsListParams {
  1114  	o.SetVoltageLt(voltageLt)
  1115  	return o
  1116  }
  1117  
  1118  // SetVoltageLt adds the voltageLt to the dcim power feeds list params
  1119  func (o *DcimPowerFeedsListParams) SetVoltageLt(voltageLt *string) {
  1120  	o.VoltageLt = voltageLt
  1121  }
  1122  
  1123  // WithVoltageLte adds the voltageLte to the dcim power feeds list params
  1124  func (o *DcimPowerFeedsListParams) WithVoltageLte(voltageLte *string) *DcimPowerFeedsListParams {
  1125  	o.SetVoltageLte(voltageLte)
  1126  	return o
  1127  }
  1128  
  1129  // SetVoltageLte adds the voltageLte to the dcim power feeds list params
  1130  func (o *DcimPowerFeedsListParams) SetVoltageLte(voltageLte *string) {
  1131  	o.VoltageLte = voltageLte
  1132  }
  1133  
  1134  // WithVoltagen adds the voltagen to the dcim power feeds list params
  1135  func (o *DcimPowerFeedsListParams) WithVoltagen(voltagen *string) *DcimPowerFeedsListParams {
  1136  	o.SetVoltagen(voltagen)
  1137  	return o
  1138  }
  1139  
  1140  // SetVoltagen adds the voltageN to the dcim power feeds list params
  1141  func (o *DcimPowerFeedsListParams) SetVoltagen(voltagen *string) {
  1142  	o.Voltagen = voltagen
  1143  }
  1144  
  1145  // WriteToRequest writes these params to a swagger request
  1146  func (o *DcimPowerFeedsListParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error {
  1147  
  1148  	if err := r.SetTimeout(o.timeout); err != nil {
  1149  		return err
  1150  	}
  1151  	var res []error
  1152  
  1153  	if o.Amperage != nil {
  1154  
  1155  		// query param amperage
  1156  		var qrAmperage string
  1157  
  1158  		if o.Amperage != nil {
  1159  			qrAmperage = *o.Amperage
  1160  		}
  1161  		qAmperage := qrAmperage
  1162  		if qAmperage != "" {
  1163  
  1164  			if err := r.SetQueryParam("amperage", qAmperage); err != nil {
  1165  				return err
  1166  			}
  1167  		}
  1168  	}
  1169  
  1170  	if o.AmperageGt != nil {
  1171  
  1172  		// query param amperage__gt
  1173  		var qrAmperageGt string
  1174  
  1175  		if o.AmperageGt != nil {
  1176  			qrAmperageGt = *o.AmperageGt
  1177  		}
  1178  		qAmperageGt := qrAmperageGt
  1179  		if qAmperageGt != "" {
  1180  
  1181  			if err := r.SetQueryParam("amperage__gt", qAmperageGt); err != nil {
  1182  				return err
  1183  			}
  1184  		}
  1185  	}
  1186  
  1187  	if o.AmperageGte != nil {
  1188  
  1189  		// query param amperage__gte
  1190  		var qrAmperageGte string
  1191  
  1192  		if o.AmperageGte != nil {
  1193  			qrAmperageGte = *o.AmperageGte
  1194  		}
  1195  		qAmperageGte := qrAmperageGte
  1196  		if qAmperageGte != "" {
  1197  
  1198  			if err := r.SetQueryParam("amperage__gte", qAmperageGte); err != nil {
  1199  				return err
  1200  			}
  1201  		}
  1202  	}
  1203  
  1204  	if o.AmperageLt != nil {
  1205  
  1206  		// query param amperage__lt
  1207  		var qrAmperageLt string
  1208  
  1209  		if o.AmperageLt != nil {
  1210  			qrAmperageLt = *o.AmperageLt
  1211  		}
  1212  		qAmperageLt := qrAmperageLt
  1213  		if qAmperageLt != "" {
  1214  
  1215  			if err := r.SetQueryParam("amperage__lt", qAmperageLt); err != nil {
  1216  				return err
  1217  			}
  1218  		}
  1219  	}
  1220  
  1221  	if o.AmperageLte != nil {
  1222  
  1223  		// query param amperage__lte
  1224  		var qrAmperageLte string
  1225  
  1226  		if o.AmperageLte != nil {
  1227  			qrAmperageLte = *o.AmperageLte
  1228  		}
  1229  		qAmperageLte := qrAmperageLte
  1230  		if qAmperageLte != "" {
  1231  
  1232  			if err := r.SetQueryParam("amperage__lte", qAmperageLte); err != nil {
  1233  				return err
  1234  			}
  1235  		}
  1236  	}
  1237  
  1238  	if o.Amperagen != nil {
  1239  
  1240  		// query param amperage__n
  1241  		var qrAmperagen string
  1242  
  1243  		if o.Amperagen != nil {
  1244  			qrAmperagen = *o.Amperagen
  1245  		}
  1246  		qAmperagen := qrAmperagen
  1247  		if qAmperagen != "" {
  1248  
  1249  			if err := r.SetQueryParam("amperage__n", qAmperagen); err != nil {
  1250  				return err
  1251  			}
  1252  		}
  1253  	}
  1254  
  1255  	if o.Cabled != nil {
  1256  
  1257  		// query param cabled
  1258  		var qrCabled string
  1259  
  1260  		if o.Cabled != nil {
  1261  			qrCabled = *o.Cabled
  1262  		}
  1263  		qCabled := qrCabled
  1264  		if qCabled != "" {
  1265  
  1266  			if err := r.SetQueryParam("cabled", qCabled); err != nil {
  1267  				return err
  1268  			}
  1269  		}
  1270  	}
  1271  
  1272  	if o.Connected != nil {
  1273  
  1274  		// query param connected
  1275  		var qrConnected string
  1276  
  1277  		if o.Connected != nil {
  1278  			qrConnected = *o.Connected
  1279  		}
  1280  		qConnected := qrConnected
  1281  		if qConnected != "" {
  1282  
  1283  			if err := r.SetQueryParam("connected", qConnected); err != nil {
  1284  				return err
  1285  			}
  1286  		}
  1287  	}
  1288  
  1289  	if o.Created != nil {
  1290  
  1291  		// query param created
  1292  		var qrCreated string
  1293  
  1294  		if o.Created != nil {
  1295  			qrCreated = *o.Created
  1296  		}
  1297  		qCreated := qrCreated
  1298  		if qCreated != "" {
  1299  
  1300  			if err := r.SetQueryParam("created", qCreated); err != nil {
  1301  				return err
  1302  			}
  1303  		}
  1304  	}
  1305  
  1306  	if o.CreatedGte != nil {
  1307  
  1308  		// query param created__gte
  1309  		var qrCreatedGte string
  1310  
  1311  		if o.CreatedGte != nil {
  1312  			qrCreatedGte = *o.CreatedGte
  1313  		}
  1314  		qCreatedGte := qrCreatedGte
  1315  		if qCreatedGte != "" {
  1316  
  1317  			if err := r.SetQueryParam("created__gte", qCreatedGte); err != nil {
  1318  				return err
  1319  			}
  1320  		}
  1321  	}
  1322  
  1323  	if o.CreatedLte != nil {
  1324  
  1325  		// query param created__lte
  1326  		var qrCreatedLte string
  1327  
  1328  		if o.CreatedLte != nil {
  1329  			qrCreatedLte = *o.CreatedLte
  1330  		}
  1331  		qCreatedLte := qrCreatedLte
  1332  		if qCreatedLte != "" {
  1333  
  1334  			if err := r.SetQueryParam("created__lte", qCreatedLte); err != nil {
  1335  				return err
  1336  			}
  1337  		}
  1338  	}
  1339  
  1340  	if o.ID != nil {
  1341  
  1342  		// query param id
  1343  		var qrID string
  1344  
  1345  		if o.ID != nil {
  1346  			qrID = *o.ID
  1347  		}
  1348  		qID := qrID
  1349  		if qID != "" {
  1350  
  1351  			if err := r.SetQueryParam("id", qID); err != nil {
  1352  				return err
  1353  			}
  1354  		}
  1355  	}
  1356  
  1357  	if o.IDGt != nil {
  1358  
  1359  		// query param id__gt
  1360  		var qrIDGt string
  1361  
  1362  		if o.IDGt != nil {
  1363  			qrIDGt = *o.IDGt
  1364  		}
  1365  		qIDGt := qrIDGt
  1366  		if qIDGt != "" {
  1367  
  1368  			if err := r.SetQueryParam("id__gt", qIDGt); err != nil {
  1369  				return err
  1370  			}
  1371  		}
  1372  	}
  1373  
  1374  	if o.IDGte != nil {
  1375  
  1376  		// query param id__gte
  1377  		var qrIDGte string
  1378  
  1379  		if o.IDGte != nil {
  1380  			qrIDGte = *o.IDGte
  1381  		}
  1382  		qIDGte := qrIDGte
  1383  		if qIDGte != "" {
  1384  
  1385  			if err := r.SetQueryParam("id__gte", qIDGte); err != nil {
  1386  				return err
  1387  			}
  1388  		}
  1389  	}
  1390  
  1391  	if o.IDLt != nil {
  1392  
  1393  		// query param id__lt
  1394  		var qrIDLt string
  1395  
  1396  		if o.IDLt != nil {
  1397  			qrIDLt = *o.IDLt
  1398  		}
  1399  		qIDLt := qrIDLt
  1400  		if qIDLt != "" {
  1401  
  1402  			if err := r.SetQueryParam("id__lt", qIDLt); err != nil {
  1403  				return err
  1404  			}
  1405  		}
  1406  	}
  1407  
  1408  	if o.IDLte != nil {
  1409  
  1410  		// query param id__lte
  1411  		var qrIDLte string
  1412  
  1413  		if o.IDLte != nil {
  1414  			qrIDLte = *o.IDLte
  1415  		}
  1416  		qIDLte := qrIDLte
  1417  		if qIDLte != "" {
  1418  
  1419  			if err := r.SetQueryParam("id__lte", qIDLte); err != nil {
  1420  				return err
  1421  			}
  1422  		}
  1423  	}
  1424  
  1425  	if o.IDn != nil {
  1426  
  1427  		// query param id__n
  1428  		var qrIDn string
  1429  
  1430  		if o.IDn != nil {
  1431  			qrIDn = *o.IDn
  1432  		}
  1433  		qIDn := qrIDn
  1434  		if qIDn != "" {
  1435  
  1436  			if err := r.SetQueryParam("id__n", qIDn); err != nil {
  1437  				return err
  1438  			}
  1439  		}
  1440  	}
  1441  
  1442  	if o.LastUpdated != nil {
  1443  
  1444  		// query param last_updated
  1445  		var qrLastUpdated string
  1446  
  1447  		if o.LastUpdated != nil {
  1448  			qrLastUpdated = *o.LastUpdated
  1449  		}
  1450  		qLastUpdated := qrLastUpdated
  1451  		if qLastUpdated != "" {
  1452  
  1453  			if err := r.SetQueryParam("last_updated", qLastUpdated); err != nil {
  1454  				return err
  1455  			}
  1456  		}
  1457  	}
  1458  
  1459  	if o.LastUpdatedGte != nil {
  1460  
  1461  		// query param last_updated__gte
  1462  		var qrLastUpdatedGte string
  1463  
  1464  		if o.LastUpdatedGte != nil {
  1465  			qrLastUpdatedGte = *o.LastUpdatedGte
  1466  		}
  1467  		qLastUpdatedGte := qrLastUpdatedGte
  1468  		if qLastUpdatedGte != "" {
  1469  
  1470  			if err := r.SetQueryParam("last_updated__gte", qLastUpdatedGte); err != nil {
  1471  				return err
  1472  			}
  1473  		}
  1474  	}
  1475  
  1476  	if o.LastUpdatedLte != nil {
  1477  
  1478  		// query param last_updated__lte
  1479  		var qrLastUpdatedLte string
  1480  
  1481  		if o.LastUpdatedLte != nil {
  1482  			qrLastUpdatedLte = *o.LastUpdatedLte
  1483  		}
  1484  		qLastUpdatedLte := qrLastUpdatedLte
  1485  		if qLastUpdatedLte != "" {
  1486  
  1487  			if err := r.SetQueryParam("last_updated__lte", qLastUpdatedLte); err != nil {
  1488  				return err
  1489  			}
  1490  		}
  1491  	}
  1492  
  1493  	if o.Limit != nil {
  1494  
  1495  		// query param limit
  1496  		var qrLimit int64
  1497  
  1498  		if o.Limit != nil {
  1499  			qrLimit = *o.Limit
  1500  		}
  1501  		qLimit := swag.FormatInt64(qrLimit)
  1502  		if qLimit != "" {
  1503  
  1504  			if err := r.SetQueryParam("limit", qLimit); err != nil {
  1505  				return err
  1506  			}
  1507  		}
  1508  	}
  1509  
  1510  	if o.MaxUtilization != nil {
  1511  
  1512  		// query param max_utilization
  1513  		var qrMaxUtilization string
  1514  
  1515  		if o.MaxUtilization != nil {
  1516  			qrMaxUtilization = *o.MaxUtilization
  1517  		}
  1518  		qMaxUtilization := qrMaxUtilization
  1519  		if qMaxUtilization != "" {
  1520  
  1521  			if err := r.SetQueryParam("max_utilization", qMaxUtilization); err != nil {
  1522  				return err
  1523  			}
  1524  		}
  1525  	}
  1526  
  1527  	if o.MaxUtilizationGt != nil {
  1528  
  1529  		// query param max_utilization__gt
  1530  		var qrMaxUtilizationGt string
  1531  
  1532  		if o.MaxUtilizationGt != nil {
  1533  			qrMaxUtilizationGt = *o.MaxUtilizationGt
  1534  		}
  1535  		qMaxUtilizationGt := qrMaxUtilizationGt
  1536  		if qMaxUtilizationGt != "" {
  1537  
  1538  			if err := r.SetQueryParam("max_utilization__gt", qMaxUtilizationGt); err != nil {
  1539  				return err
  1540  			}
  1541  		}
  1542  	}
  1543  
  1544  	if o.MaxUtilizationGte != nil {
  1545  
  1546  		// query param max_utilization__gte
  1547  		var qrMaxUtilizationGte string
  1548  
  1549  		if o.MaxUtilizationGte != nil {
  1550  			qrMaxUtilizationGte = *o.MaxUtilizationGte
  1551  		}
  1552  		qMaxUtilizationGte := qrMaxUtilizationGte
  1553  		if qMaxUtilizationGte != "" {
  1554  
  1555  			if err := r.SetQueryParam("max_utilization__gte", qMaxUtilizationGte); err != nil {
  1556  				return err
  1557  			}
  1558  		}
  1559  	}
  1560  
  1561  	if o.MaxUtilizationLt != nil {
  1562  
  1563  		// query param max_utilization__lt
  1564  		var qrMaxUtilizationLt string
  1565  
  1566  		if o.MaxUtilizationLt != nil {
  1567  			qrMaxUtilizationLt = *o.MaxUtilizationLt
  1568  		}
  1569  		qMaxUtilizationLt := qrMaxUtilizationLt
  1570  		if qMaxUtilizationLt != "" {
  1571  
  1572  			if err := r.SetQueryParam("max_utilization__lt", qMaxUtilizationLt); err != nil {
  1573  				return err
  1574  			}
  1575  		}
  1576  	}
  1577  
  1578  	if o.MaxUtilizationLte != nil {
  1579  
  1580  		// query param max_utilization__lte
  1581  		var qrMaxUtilizationLte string
  1582  
  1583  		if o.MaxUtilizationLte != nil {
  1584  			qrMaxUtilizationLte = *o.MaxUtilizationLte
  1585  		}
  1586  		qMaxUtilizationLte := qrMaxUtilizationLte
  1587  		if qMaxUtilizationLte != "" {
  1588  
  1589  			if err := r.SetQueryParam("max_utilization__lte", qMaxUtilizationLte); err != nil {
  1590  				return err
  1591  			}
  1592  		}
  1593  	}
  1594  
  1595  	if o.MaxUtilizationn != nil {
  1596  
  1597  		// query param max_utilization__n
  1598  		var qrMaxUtilizationn string
  1599  
  1600  		if o.MaxUtilizationn != nil {
  1601  			qrMaxUtilizationn = *o.MaxUtilizationn
  1602  		}
  1603  		qMaxUtilizationn := qrMaxUtilizationn
  1604  		if qMaxUtilizationn != "" {
  1605  
  1606  			if err := r.SetQueryParam("max_utilization__n", qMaxUtilizationn); err != nil {
  1607  				return err
  1608  			}
  1609  		}
  1610  	}
  1611  
  1612  	if o.Name != nil {
  1613  
  1614  		// query param name
  1615  		var qrName string
  1616  
  1617  		if o.Name != nil {
  1618  			qrName = *o.Name
  1619  		}
  1620  		qName := qrName
  1621  		if qName != "" {
  1622  
  1623  			if err := r.SetQueryParam("name", qName); err != nil {
  1624  				return err
  1625  			}
  1626  		}
  1627  	}
  1628  
  1629  	if o.NameEmpty != nil {
  1630  
  1631  		// query param name__empty
  1632  		var qrNameEmpty string
  1633  
  1634  		if o.NameEmpty != nil {
  1635  			qrNameEmpty = *o.NameEmpty
  1636  		}
  1637  		qNameEmpty := qrNameEmpty
  1638  		if qNameEmpty != "" {
  1639  
  1640  			if err := r.SetQueryParam("name__empty", qNameEmpty); err != nil {
  1641  				return err
  1642  			}
  1643  		}
  1644  	}
  1645  
  1646  	if o.NameIc != nil {
  1647  
  1648  		// query param name__ic
  1649  		var qrNameIc string
  1650  
  1651  		if o.NameIc != nil {
  1652  			qrNameIc = *o.NameIc
  1653  		}
  1654  		qNameIc := qrNameIc
  1655  		if qNameIc != "" {
  1656  
  1657  			if err := r.SetQueryParam("name__ic", qNameIc); err != nil {
  1658  				return err
  1659  			}
  1660  		}
  1661  	}
  1662  
  1663  	if o.NameIe != nil {
  1664  
  1665  		// query param name__ie
  1666  		var qrNameIe string
  1667  
  1668  		if o.NameIe != nil {
  1669  			qrNameIe = *o.NameIe
  1670  		}
  1671  		qNameIe := qrNameIe
  1672  		if qNameIe != "" {
  1673  
  1674  			if err := r.SetQueryParam("name__ie", qNameIe); err != nil {
  1675  				return err
  1676  			}
  1677  		}
  1678  	}
  1679  
  1680  	if o.NameIew != nil {
  1681  
  1682  		// query param name__iew
  1683  		var qrNameIew string
  1684  
  1685  		if o.NameIew != nil {
  1686  			qrNameIew = *o.NameIew
  1687  		}
  1688  		qNameIew := qrNameIew
  1689  		if qNameIew != "" {
  1690  
  1691  			if err := r.SetQueryParam("name__iew", qNameIew); err != nil {
  1692  				return err
  1693  			}
  1694  		}
  1695  	}
  1696  
  1697  	if o.NameIsw != nil {
  1698  
  1699  		// query param name__isw
  1700  		var qrNameIsw string
  1701  
  1702  		if o.NameIsw != nil {
  1703  			qrNameIsw = *o.NameIsw
  1704  		}
  1705  		qNameIsw := qrNameIsw
  1706  		if qNameIsw != "" {
  1707  
  1708  			if err := r.SetQueryParam("name__isw", qNameIsw); err != nil {
  1709  				return err
  1710  			}
  1711  		}
  1712  	}
  1713  
  1714  	if o.Namen != nil {
  1715  
  1716  		// query param name__n
  1717  		var qrNamen string
  1718  
  1719  		if o.Namen != nil {
  1720  			qrNamen = *o.Namen
  1721  		}
  1722  		qNamen := qrNamen
  1723  		if qNamen != "" {
  1724  
  1725  			if err := r.SetQueryParam("name__n", qNamen); err != nil {
  1726  				return err
  1727  			}
  1728  		}
  1729  	}
  1730  
  1731  	if o.NameNic != nil {
  1732  
  1733  		// query param name__nic
  1734  		var qrNameNic string
  1735  
  1736  		if o.NameNic != nil {
  1737  			qrNameNic = *o.NameNic
  1738  		}
  1739  		qNameNic := qrNameNic
  1740  		if qNameNic != "" {
  1741  
  1742  			if err := r.SetQueryParam("name__nic", qNameNic); err != nil {
  1743  				return err
  1744  			}
  1745  		}
  1746  	}
  1747  
  1748  	if o.NameNie != nil {
  1749  
  1750  		// query param name__nie
  1751  		var qrNameNie string
  1752  
  1753  		if o.NameNie != nil {
  1754  			qrNameNie = *o.NameNie
  1755  		}
  1756  		qNameNie := qrNameNie
  1757  		if qNameNie != "" {
  1758  
  1759  			if err := r.SetQueryParam("name__nie", qNameNie); err != nil {
  1760  				return err
  1761  			}
  1762  		}
  1763  	}
  1764  
  1765  	if o.NameNiew != nil {
  1766  
  1767  		// query param name__niew
  1768  		var qrNameNiew string
  1769  
  1770  		if o.NameNiew != nil {
  1771  			qrNameNiew = *o.NameNiew
  1772  		}
  1773  		qNameNiew := qrNameNiew
  1774  		if qNameNiew != "" {
  1775  
  1776  			if err := r.SetQueryParam("name__niew", qNameNiew); err != nil {
  1777  				return err
  1778  			}
  1779  		}
  1780  	}
  1781  
  1782  	if o.NameNisw != nil {
  1783  
  1784  		// query param name__nisw
  1785  		var qrNameNisw string
  1786  
  1787  		if o.NameNisw != nil {
  1788  			qrNameNisw = *o.NameNisw
  1789  		}
  1790  		qNameNisw := qrNameNisw
  1791  		if qNameNisw != "" {
  1792  
  1793  			if err := r.SetQueryParam("name__nisw", qNameNisw); err != nil {
  1794  				return err
  1795  			}
  1796  		}
  1797  	}
  1798  
  1799  	if o.Offset != nil {
  1800  
  1801  		// query param offset
  1802  		var qrOffset int64
  1803  
  1804  		if o.Offset != nil {
  1805  			qrOffset = *o.Offset
  1806  		}
  1807  		qOffset := swag.FormatInt64(qrOffset)
  1808  		if qOffset != "" {
  1809  
  1810  			if err := r.SetQueryParam("offset", qOffset); err != nil {
  1811  				return err
  1812  			}
  1813  		}
  1814  	}
  1815  
  1816  	if o.Phase != nil {
  1817  
  1818  		// query param phase
  1819  		var qrPhase string
  1820  
  1821  		if o.Phase != nil {
  1822  			qrPhase = *o.Phase
  1823  		}
  1824  		qPhase := qrPhase
  1825  		if qPhase != "" {
  1826  
  1827  			if err := r.SetQueryParam("phase", qPhase); err != nil {
  1828  				return err
  1829  			}
  1830  		}
  1831  	}
  1832  
  1833  	if o.Phasen != nil {
  1834  
  1835  		// query param phase__n
  1836  		var qrPhasen string
  1837  
  1838  		if o.Phasen != nil {
  1839  			qrPhasen = *o.Phasen
  1840  		}
  1841  		qPhasen := qrPhasen
  1842  		if qPhasen != "" {
  1843  
  1844  			if err := r.SetQueryParam("phase__n", qPhasen); err != nil {
  1845  				return err
  1846  			}
  1847  		}
  1848  	}
  1849  
  1850  	if o.PowerPanelID != nil {
  1851  
  1852  		// query param power_panel_id
  1853  		var qrPowerPanelID string
  1854  
  1855  		if o.PowerPanelID != nil {
  1856  			qrPowerPanelID = *o.PowerPanelID
  1857  		}
  1858  		qPowerPanelID := qrPowerPanelID
  1859  		if qPowerPanelID != "" {
  1860  
  1861  			if err := r.SetQueryParam("power_panel_id", qPowerPanelID); err != nil {
  1862  				return err
  1863  			}
  1864  		}
  1865  	}
  1866  
  1867  	if o.PowerPanelIDn != nil {
  1868  
  1869  		// query param power_panel_id__n
  1870  		var qrPowerPanelIDn string
  1871  
  1872  		if o.PowerPanelIDn != nil {
  1873  			qrPowerPanelIDn = *o.PowerPanelIDn
  1874  		}
  1875  		qPowerPanelIDn := qrPowerPanelIDn
  1876  		if qPowerPanelIDn != "" {
  1877  
  1878  			if err := r.SetQueryParam("power_panel_id__n", qPowerPanelIDn); err != nil {
  1879  				return err
  1880  			}
  1881  		}
  1882  	}
  1883  
  1884  	if o.Q != nil {
  1885  
  1886  		// query param q
  1887  		var qrQ string
  1888  
  1889  		if o.Q != nil {
  1890  			qrQ = *o.Q
  1891  		}
  1892  		qQ := qrQ
  1893  		if qQ != "" {
  1894  
  1895  			if err := r.SetQueryParam("q", qQ); err != nil {
  1896  				return err
  1897  			}
  1898  		}
  1899  	}
  1900  
  1901  	if o.RackID != nil {
  1902  
  1903  		// query param rack_id
  1904  		var qrRackID string
  1905  
  1906  		if o.RackID != nil {
  1907  			qrRackID = *o.RackID
  1908  		}
  1909  		qRackID := qrRackID
  1910  		if qRackID != "" {
  1911  
  1912  			if err := r.SetQueryParam("rack_id", qRackID); err != nil {
  1913  				return err
  1914  			}
  1915  		}
  1916  	}
  1917  
  1918  	if o.RackIDn != nil {
  1919  
  1920  		// query param rack_id__n
  1921  		var qrRackIDn string
  1922  
  1923  		if o.RackIDn != nil {
  1924  			qrRackIDn = *o.RackIDn
  1925  		}
  1926  		qRackIDn := qrRackIDn
  1927  		if qRackIDn != "" {
  1928  
  1929  			if err := r.SetQueryParam("rack_id__n", qRackIDn); err != nil {
  1930  				return err
  1931  			}
  1932  		}
  1933  	}
  1934  
  1935  	if o.Region != nil {
  1936  
  1937  		// query param region
  1938  		var qrRegion string
  1939  
  1940  		if o.Region != nil {
  1941  			qrRegion = *o.Region
  1942  		}
  1943  		qRegion := qrRegion
  1944  		if qRegion != "" {
  1945  
  1946  			if err := r.SetQueryParam("region", qRegion); err != nil {
  1947  				return err
  1948  			}
  1949  		}
  1950  	}
  1951  
  1952  	if o.Regionn != nil {
  1953  
  1954  		// query param region__n
  1955  		var qrRegionn string
  1956  
  1957  		if o.Regionn != nil {
  1958  			qrRegionn = *o.Regionn
  1959  		}
  1960  		qRegionn := qrRegionn
  1961  		if qRegionn != "" {
  1962  
  1963  			if err := r.SetQueryParam("region__n", qRegionn); err != nil {
  1964  				return err
  1965  			}
  1966  		}
  1967  	}
  1968  
  1969  	if o.RegionID != nil {
  1970  
  1971  		// query param region_id
  1972  		var qrRegionID string
  1973  
  1974  		if o.RegionID != nil {
  1975  			qrRegionID = *o.RegionID
  1976  		}
  1977  		qRegionID := qrRegionID
  1978  		if qRegionID != "" {
  1979  
  1980  			if err := r.SetQueryParam("region_id", qRegionID); err != nil {
  1981  				return err
  1982  			}
  1983  		}
  1984  	}
  1985  
  1986  	if o.RegionIDn != nil {
  1987  
  1988  		// query param region_id__n
  1989  		var qrRegionIDn string
  1990  
  1991  		if o.RegionIDn != nil {
  1992  			qrRegionIDn = *o.RegionIDn
  1993  		}
  1994  		qRegionIDn := qrRegionIDn
  1995  		if qRegionIDn != "" {
  1996  
  1997  			if err := r.SetQueryParam("region_id__n", qRegionIDn); err != nil {
  1998  				return err
  1999  			}
  2000  		}
  2001  	}
  2002  
  2003  	if o.Site != nil {
  2004  
  2005  		// query param site
  2006  		var qrSite string
  2007  
  2008  		if o.Site != nil {
  2009  			qrSite = *o.Site
  2010  		}
  2011  		qSite := qrSite
  2012  		if qSite != "" {
  2013  
  2014  			if err := r.SetQueryParam("site", qSite); err != nil {
  2015  				return err
  2016  			}
  2017  		}
  2018  	}
  2019  
  2020  	if o.Siten != nil {
  2021  
  2022  		// query param site__n
  2023  		var qrSiten string
  2024  
  2025  		if o.Siten != nil {
  2026  			qrSiten = *o.Siten
  2027  		}
  2028  		qSiten := qrSiten
  2029  		if qSiten != "" {
  2030  
  2031  			if err := r.SetQueryParam("site__n", qSiten); err != nil {
  2032  				return err
  2033  			}
  2034  		}
  2035  	}
  2036  
  2037  	if o.SiteGroup != nil {
  2038  
  2039  		// query param site_group
  2040  		var qrSiteGroup string
  2041  
  2042  		if o.SiteGroup != nil {
  2043  			qrSiteGroup = *o.SiteGroup
  2044  		}
  2045  		qSiteGroup := qrSiteGroup
  2046  		if qSiteGroup != "" {
  2047  
  2048  			if err := r.SetQueryParam("site_group", qSiteGroup); err != nil {
  2049  				return err
  2050  			}
  2051  		}
  2052  	}
  2053  
  2054  	if o.SiteGroupn != nil {
  2055  
  2056  		// query param site_group__n
  2057  		var qrSiteGroupn string
  2058  
  2059  		if o.SiteGroupn != nil {
  2060  			qrSiteGroupn = *o.SiteGroupn
  2061  		}
  2062  		qSiteGroupn := qrSiteGroupn
  2063  		if qSiteGroupn != "" {
  2064  
  2065  			if err := r.SetQueryParam("site_group__n", qSiteGroupn); err != nil {
  2066  				return err
  2067  			}
  2068  		}
  2069  	}
  2070  
  2071  	if o.SiteGroupID != nil {
  2072  
  2073  		// query param site_group_id
  2074  		var qrSiteGroupID string
  2075  
  2076  		if o.SiteGroupID != nil {
  2077  			qrSiteGroupID = *o.SiteGroupID
  2078  		}
  2079  		qSiteGroupID := qrSiteGroupID
  2080  		if qSiteGroupID != "" {
  2081  
  2082  			if err := r.SetQueryParam("site_group_id", qSiteGroupID); err != nil {
  2083  				return err
  2084  			}
  2085  		}
  2086  	}
  2087  
  2088  	if o.SiteGroupIDn != nil {
  2089  
  2090  		// query param site_group_id__n
  2091  		var qrSiteGroupIDn string
  2092  
  2093  		if o.SiteGroupIDn != nil {
  2094  			qrSiteGroupIDn = *o.SiteGroupIDn
  2095  		}
  2096  		qSiteGroupIDn := qrSiteGroupIDn
  2097  		if qSiteGroupIDn != "" {
  2098  
  2099  			if err := r.SetQueryParam("site_group_id__n", qSiteGroupIDn); err != nil {
  2100  				return err
  2101  			}
  2102  		}
  2103  	}
  2104  
  2105  	if o.SiteID != nil {
  2106  
  2107  		// query param site_id
  2108  		var qrSiteID string
  2109  
  2110  		if o.SiteID != nil {
  2111  			qrSiteID = *o.SiteID
  2112  		}
  2113  		qSiteID := qrSiteID
  2114  		if qSiteID != "" {
  2115  
  2116  			if err := r.SetQueryParam("site_id", qSiteID); err != nil {
  2117  				return err
  2118  			}
  2119  		}
  2120  	}
  2121  
  2122  	if o.SiteIDn != nil {
  2123  
  2124  		// query param site_id__n
  2125  		var qrSiteIDn string
  2126  
  2127  		if o.SiteIDn != nil {
  2128  			qrSiteIDn = *o.SiteIDn
  2129  		}
  2130  		qSiteIDn := qrSiteIDn
  2131  		if qSiteIDn != "" {
  2132  
  2133  			if err := r.SetQueryParam("site_id__n", qSiteIDn); err != nil {
  2134  				return err
  2135  			}
  2136  		}
  2137  	}
  2138  
  2139  	if o.Status != nil {
  2140  
  2141  		// query param status
  2142  		var qrStatus string
  2143  
  2144  		if o.Status != nil {
  2145  			qrStatus = *o.Status
  2146  		}
  2147  		qStatus := qrStatus
  2148  		if qStatus != "" {
  2149  
  2150  			if err := r.SetQueryParam("status", qStatus); err != nil {
  2151  				return err
  2152  			}
  2153  		}
  2154  	}
  2155  
  2156  	if o.Statusn != nil {
  2157  
  2158  		// query param status__n
  2159  		var qrStatusn string
  2160  
  2161  		if o.Statusn != nil {
  2162  			qrStatusn = *o.Statusn
  2163  		}
  2164  		qStatusn := qrStatusn
  2165  		if qStatusn != "" {
  2166  
  2167  			if err := r.SetQueryParam("status__n", qStatusn); err != nil {
  2168  				return err
  2169  			}
  2170  		}
  2171  	}
  2172  
  2173  	if o.Supply != nil {
  2174  
  2175  		// query param supply
  2176  		var qrSupply string
  2177  
  2178  		if o.Supply != nil {
  2179  			qrSupply = *o.Supply
  2180  		}
  2181  		qSupply := qrSupply
  2182  		if qSupply != "" {
  2183  
  2184  			if err := r.SetQueryParam("supply", qSupply); err != nil {
  2185  				return err
  2186  			}
  2187  		}
  2188  	}
  2189  
  2190  	if o.Supplyn != nil {
  2191  
  2192  		// query param supply__n
  2193  		var qrSupplyn string
  2194  
  2195  		if o.Supplyn != nil {
  2196  			qrSupplyn = *o.Supplyn
  2197  		}
  2198  		qSupplyn := qrSupplyn
  2199  		if qSupplyn != "" {
  2200  
  2201  			if err := r.SetQueryParam("supply__n", qSupplyn); err != nil {
  2202  				return err
  2203  			}
  2204  		}
  2205  	}
  2206  
  2207  	if o.Tag != nil {
  2208  
  2209  		// query param tag
  2210  		var qrTag string
  2211  
  2212  		if o.Tag != nil {
  2213  			qrTag = *o.Tag
  2214  		}
  2215  		qTag := qrTag
  2216  		if qTag != "" {
  2217  
  2218  			if err := r.SetQueryParam("tag", qTag); err != nil {
  2219  				return err
  2220  			}
  2221  		}
  2222  	}
  2223  
  2224  	if o.Tagn != nil {
  2225  
  2226  		// query param tag__n
  2227  		var qrTagn string
  2228  
  2229  		if o.Tagn != nil {
  2230  			qrTagn = *o.Tagn
  2231  		}
  2232  		qTagn := qrTagn
  2233  		if qTagn != "" {
  2234  
  2235  			if err := r.SetQueryParam("tag__n", qTagn); err != nil {
  2236  				return err
  2237  			}
  2238  		}
  2239  	}
  2240  
  2241  	if o.Type != nil {
  2242  
  2243  		// query param type
  2244  		var qrType string
  2245  
  2246  		if o.Type != nil {
  2247  			qrType = *o.Type
  2248  		}
  2249  		qType := qrType
  2250  		if qType != "" {
  2251  
  2252  			if err := r.SetQueryParam("type", qType); err != nil {
  2253  				return err
  2254  			}
  2255  		}
  2256  	}
  2257  
  2258  	if o.Typen != nil {
  2259  
  2260  		// query param type__n
  2261  		var qrTypen string
  2262  
  2263  		if o.Typen != nil {
  2264  			qrTypen = *o.Typen
  2265  		}
  2266  		qTypen := qrTypen
  2267  		if qTypen != "" {
  2268  
  2269  			if err := r.SetQueryParam("type__n", qTypen); err != nil {
  2270  				return err
  2271  			}
  2272  		}
  2273  	}
  2274  
  2275  	if o.Voltage != nil {
  2276  
  2277  		// query param voltage
  2278  		var qrVoltage string
  2279  
  2280  		if o.Voltage != nil {
  2281  			qrVoltage = *o.Voltage
  2282  		}
  2283  		qVoltage := qrVoltage
  2284  		if qVoltage != "" {
  2285  
  2286  			if err := r.SetQueryParam("voltage", qVoltage); err != nil {
  2287  				return err
  2288  			}
  2289  		}
  2290  	}
  2291  
  2292  	if o.VoltageGt != nil {
  2293  
  2294  		// query param voltage__gt
  2295  		var qrVoltageGt string
  2296  
  2297  		if o.VoltageGt != nil {
  2298  			qrVoltageGt = *o.VoltageGt
  2299  		}
  2300  		qVoltageGt := qrVoltageGt
  2301  		if qVoltageGt != "" {
  2302  
  2303  			if err := r.SetQueryParam("voltage__gt", qVoltageGt); err != nil {
  2304  				return err
  2305  			}
  2306  		}
  2307  	}
  2308  
  2309  	if o.VoltageGte != nil {
  2310  
  2311  		// query param voltage__gte
  2312  		var qrVoltageGte string
  2313  
  2314  		if o.VoltageGte != nil {
  2315  			qrVoltageGte = *o.VoltageGte
  2316  		}
  2317  		qVoltageGte := qrVoltageGte
  2318  		if qVoltageGte != "" {
  2319  
  2320  			if err := r.SetQueryParam("voltage__gte", qVoltageGte); err != nil {
  2321  				return err
  2322  			}
  2323  		}
  2324  	}
  2325  
  2326  	if o.VoltageLt != nil {
  2327  
  2328  		// query param voltage__lt
  2329  		var qrVoltageLt string
  2330  
  2331  		if o.VoltageLt != nil {
  2332  			qrVoltageLt = *o.VoltageLt
  2333  		}
  2334  		qVoltageLt := qrVoltageLt
  2335  		if qVoltageLt != "" {
  2336  
  2337  			if err := r.SetQueryParam("voltage__lt", qVoltageLt); err != nil {
  2338  				return err
  2339  			}
  2340  		}
  2341  	}
  2342  
  2343  	if o.VoltageLte != nil {
  2344  
  2345  		// query param voltage__lte
  2346  		var qrVoltageLte string
  2347  
  2348  		if o.VoltageLte != nil {
  2349  			qrVoltageLte = *o.VoltageLte
  2350  		}
  2351  		qVoltageLte := qrVoltageLte
  2352  		if qVoltageLte != "" {
  2353  
  2354  			if err := r.SetQueryParam("voltage__lte", qVoltageLte); err != nil {
  2355  				return err
  2356  			}
  2357  		}
  2358  	}
  2359  
  2360  	if o.Voltagen != nil {
  2361  
  2362  		// query param voltage__n
  2363  		var qrVoltagen string
  2364  
  2365  		if o.Voltagen != nil {
  2366  			qrVoltagen = *o.Voltagen
  2367  		}
  2368  		qVoltagen := qrVoltagen
  2369  		if qVoltagen != "" {
  2370  
  2371  			if err := r.SetQueryParam("voltage__n", qVoltagen); err != nil {
  2372  				return err
  2373  			}
  2374  		}
  2375  	}
  2376  
  2377  	if len(res) > 0 {
  2378  		return errors.CompositeValidationError(res...)
  2379  	}
  2380  	return nil
  2381  }