github.com/digitalocean/go-netbox@v0.0.2/netbox/client/dcim/dcim_power_ports_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  // NewDcimPowerPortsListParams creates a new DcimPowerPortsListParams 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 NewDcimPowerPortsListParams() *DcimPowerPortsListParams {
    42  	return &DcimPowerPortsListParams{
    43  		timeout: cr.DefaultTimeout,
    44  	}
    45  }
    46  
    47  // NewDcimPowerPortsListParamsWithTimeout creates a new DcimPowerPortsListParams object
    48  // with the ability to set a timeout on a request.
    49  func NewDcimPowerPortsListParamsWithTimeout(timeout time.Duration) *DcimPowerPortsListParams {
    50  	return &DcimPowerPortsListParams{
    51  		timeout: timeout,
    52  	}
    53  }
    54  
    55  // NewDcimPowerPortsListParamsWithContext creates a new DcimPowerPortsListParams object
    56  // with the ability to set a context for a request.
    57  func NewDcimPowerPortsListParamsWithContext(ctx context.Context) *DcimPowerPortsListParams {
    58  	return &DcimPowerPortsListParams{
    59  		Context: ctx,
    60  	}
    61  }
    62  
    63  // NewDcimPowerPortsListParamsWithHTTPClient creates a new DcimPowerPortsListParams object
    64  // with the ability to set a custom HTTPClient for a request.
    65  func NewDcimPowerPortsListParamsWithHTTPClient(client *http.Client) *DcimPowerPortsListParams {
    66  	return &DcimPowerPortsListParams{
    67  		HTTPClient: client,
    68  	}
    69  }
    70  
    71  /* DcimPowerPortsListParams contains all the parameters to send to the API endpoint
    72     for the dcim power ports list operation.
    73  
    74     Typically these are written to a http.Request.
    75  */
    76  type DcimPowerPortsListParams struct {
    77  
    78  	// AllocatedDraw.
    79  	AllocatedDraw *string
    80  
    81  	// AllocatedDrawGt.
    82  	AllocatedDrawGt *string
    83  
    84  	// AllocatedDrawGte.
    85  	AllocatedDrawGte *string
    86  
    87  	// AllocatedDrawLt.
    88  	AllocatedDrawLt *string
    89  
    90  	// AllocatedDrawLte.
    91  	AllocatedDrawLte *string
    92  
    93  	// AllocatedDrawn.
    94  	AllocatedDrawn *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  	// Description.
   112  	Description *string
   113  
   114  	// DescriptionEmpty.
   115  	DescriptionEmpty *string
   116  
   117  	// DescriptionIc.
   118  	DescriptionIc *string
   119  
   120  	// DescriptionIe.
   121  	DescriptionIe *string
   122  
   123  	// DescriptionIew.
   124  	DescriptionIew *string
   125  
   126  	// DescriptionIsw.
   127  	DescriptionIsw *string
   128  
   129  	// Descriptionn.
   130  	Descriptionn *string
   131  
   132  	// DescriptionNic.
   133  	DescriptionNic *string
   134  
   135  	// DescriptionNie.
   136  	DescriptionNie *string
   137  
   138  	// DescriptionNiew.
   139  	DescriptionNiew *string
   140  
   141  	// DescriptionNisw.
   142  	DescriptionNisw *string
   143  
   144  	// Device.
   145  	Device *string
   146  
   147  	// Devicen.
   148  	Devicen *string
   149  
   150  	// DeviceID.
   151  	DeviceID *string
   152  
   153  	// DeviceIDn.
   154  	DeviceIDn *string
   155  
   156  	// ID.
   157  	ID *string
   158  
   159  	// IDGt.
   160  	IDGt *string
   161  
   162  	// IDGte.
   163  	IDGte *string
   164  
   165  	// IDLt.
   166  	IDLt *string
   167  
   168  	// IDLte.
   169  	IDLte *string
   170  
   171  	// IDn.
   172  	IDn *string
   173  
   174  	// Label.
   175  	Label *string
   176  
   177  	// LabelEmpty.
   178  	LabelEmpty *string
   179  
   180  	// LabelIc.
   181  	LabelIc *string
   182  
   183  	// LabelIe.
   184  	LabelIe *string
   185  
   186  	// LabelIew.
   187  	LabelIew *string
   188  
   189  	// LabelIsw.
   190  	LabelIsw *string
   191  
   192  	// Labeln.
   193  	Labeln *string
   194  
   195  	// LabelNic.
   196  	LabelNic *string
   197  
   198  	// LabelNie.
   199  	LabelNie *string
   200  
   201  	// LabelNiew.
   202  	LabelNiew *string
   203  
   204  	// LabelNisw.
   205  	LabelNisw *string
   206  
   207  	// LastUpdated.
   208  	LastUpdated *string
   209  
   210  	// LastUpdatedGte.
   211  	LastUpdatedGte *string
   212  
   213  	// LastUpdatedLte.
   214  	LastUpdatedLte *string
   215  
   216  	/* Limit.
   217  
   218  	   Number of results to return per page.
   219  	*/
   220  	Limit *int64
   221  
   222  	// MaximumDraw.
   223  	MaximumDraw *string
   224  
   225  	// MaximumDrawGt.
   226  	MaximumDrawGt *string
   227  
   228  	// MaximumDrawGte.
   229  	MaximumDrawGte *string
   230  
   231  	// MaximumDrawLt.
   232  	MaximumDrawLt *string
   233  
   234  	// MaximumDrawLte.
   235  	MaximumDrawLte *string
   236  
   237  	// MaximumDrawn.
   238  	MaximumDrawn *string
   239  
   240  	// Name.
   241  	Name *string
   242  
   243  	// NameEmpty.
   244  	NameEmpty *string
   245  
   246  	// NameIc.
   247  	NameIc *string
   248  
   249  	// NameIe.
   250  	NameIe *string
   251  
   252  	// NameIew.
   253  	NameIew *string
   254  
   255  	// NameIsw.
   256  	NameIsw *string
   257  
   258  	// Namen.
   259  	Namen *string
   260  
   261  	// NameNic.
   262  	NameNic *string
   263  
   264  	// NameNie.
   265  	NameNie *string
   266  
   267  	// NameNiew.
   268  	NameNiew *string
   269  
   270  	// NameNisw.
   271  	NameNisw *string
   272  
   273  	/* Offset.
   274  
   275  	   The initial index from which to return the results.
   276  	*/
   277  	Offset *int64
   278  
   279  	// Q.
   280  	Q *string
   281  
   282  	// Region.
   283  	Region *string
   284  
   285  	// Regionn.
   286  	Regionn *string
   287  
   288  	// RegionID.
   289  	RegionID *string
   290  
   291  	// RegionIDn.
   292  	RegionIDn *string
   293  
   294  	// Site.
   295  	Site *string
   296  
   297  	// Siten.
   298  	Siten *string
   299  
   300  	// SiteGroup.
   301  	SiteGroup *string
   302  
   303  	// SiteGroupn.
   304  	SiteGroupn *string
   305  
   306  	// SiteGroupID.
   307  	SiteGroupID *string
   308  
   309  	// SiteGroupIDn.
   310  	SiteGroupIDn *string
   311  
   312  	// SiteID.
   313  	SiteID *string
   314  
   315  	// SiteIDn.
   316  	SiteIDn *string
   317  
   318  	// Tag.
   319  	Tag *string
   320  
   321  	// Tagn.
   322  	Tagn *string
   323  
   324  	// Type.
   325  	Type *string
   326  
   327  	// Typen.
   328  	Typen *string
   329  
   330  	timeout    time.Duration
   331  	Context    context.Context
   332  	HTTPClient *http.Client
   333  }
   334  
   335  // WithDefaults hydrates default values in the dcim power ports list params (not the query body).
   336  //
   337  // All values with no default are reset to their zero value.
   338  func (o *DcimPowerPortsListParams) WithDefaults() *DcimPowerPortsListParams {
   339  	o.SetDefaults()
   340  	return o
   341  }
   342  
   343  // SetDefaults hydrates default values in the dcim power ports list params (not the query body).
   344  //
   345  // All values with no default are reset to their zero value.
   346  func (o *DcimPowerPortsListParams) SetDefaults() {
   347  	// no default values defined for this parameter
   348  }
   349  
   350  // WithTimeout adds the timeout to the dcim power ports list params
   351  func (o *DcimPowerPortsListParams) WithTimeout(timeout time.Duration) *DcimPowerPortsListParams {
   352  	o.SetTimeout(timeout)
   353  	return o
   354  }
   355  
   356  // SetTimeout adds the timeout to the dcim power ports list params
   357  func (o *DcimPowerPortsListParams) SetTimeout(timeout time.Duration) {
   358  	o.timeout = timeout
   359  }
   360  
   361  // WithContext adds the context to the dcim power ports list params
   362  func (o *DcimPowerPortsListParams) WithContext(ctx context.Context) *DcimPowerPortsListParams {
   363  	o.SetContext(ctx)
   364  	return o
   365  }
   366  
   367  // SetContext adds the context to the dcim power ports list params
   368  func (o *DcimPowerPortsListParams) SetContext(ctx context.Context) {
   369  	o.Context = ctx
   370  }
   371  
   372  // WithHTTPClient adds the HTTPClient to the dcim power ports list params
   373  func (o *DcimPowerPortsListParams) WithHTTPClient(client *http.Client) *DcimPowerPortsListParams {
   374  	o.SetHTTPClient(client)
   375  	return o
   376  }
   377  
   378  // SetHTTPClient adds the HTTPClient to the dcim power ports list params
   379  func (o *DcimPowerPortsListParams) SetHTTPClient(client *http.Client) {
   380  	o.HTTPClient = client
   381  }
   382  
   383  // WithAllocatedDraw adds the allocatedDraw to the dcim power ports list params
   384  func (o *DcimPowerPortsListParams) WithAllocatedDraw(allocatedDraw *string) *DcimPowerPortsListParams {
   385  	o.SetAllocatedDraw(allocatedDraw)
   386  	return o
   387  }
   388  
   389  // SetAllocatedDraw adds the allocatedDraw to the dcim power ports list params
   390  func (o *DcimPowerPortsListParams) SetAllocatedDraw(allocatedDraw *string) {
   391  	o.AllocatedDraw = allocatedDraw
   392  }
   393  
   394  // WithAllocatedDrawGt adds the allocatedDrawGt to the dcim power ports list params
   395  func (o *DcimPowerPortsListParams) WithAllocatedDrawGt(allocatedDrawGt *string) *DcimPowerPortsListParams {
   396  	o.SetAllocatedDrawGt(allocatedDrawGt)
   397  	return o
   398  }
   399  
   400  // SetAllocatedDrawGt adds the allocatedDrawGt to the dcim power ports list params
   401  func (o *DcimPowerPortsListParams) SetAllocatedDrawGt(allocatedDrawGt *string) {
   402  	o.AllocatedDrawGt = allocatedDrawGt
   403  }
   404  
   405  // WithAllocatedDrawGte adds the allocatedDrawGte to the dcim power ports list params
   406  func (o *DcimPowerPortsListParams) WithAllocatedDrawGte(allocatedDrawGte *string) *DcimPowerPortsListParams {
   407  	o.SetAllocatedDrawGte(allocatedDrawGte)
   408  	return o
   409  }
   410  
   411  // SetAllocatedDrawGte adds the allocatedDrawGte to the dcim power ports list params
   412  func (o *DcimPowerPortsListParams) SetAllocatedDrawGte(allocatedDrawGte *string) {
   413  	o.AllocatedDrawGte = allocatedDrawGte
   414  }
   415  
   416  // WithAllocatedDrawLt adds the allocatedDrawLt to the dcim power ports list params
   417  func (o *DcimPowerPortsListParams) WithAllocatedDrawLt(allocatedDrawLt *string) *DcimPowerPortsListParams {
   418  	o.SetAllocatedDrawLt(allocatedDrawLt)
   419  	return o
   420  }
   421  
   422  // SetAllocatedDrawLt adds the allocatedDrawLt to the dcim power ports list params
   423  func (o *DcimPowerPortsListParams) SetAllocatedDrawLt(allocatedDrawLt *string) {
   424  	o.AllocatedDrawLt = allocatedDrawLt
   425  }
   426  
   427  // WithAllocatedDrawLte adds the allocatedDrawLte to the dcim power ports list params
   428  func (o *DcimPowerPortsListParams) WithAllocatedDrawLte(allocatedDrawLte *string) *DcimPowerPortsListParams {
   429  	o.SetAllocatedDrawLte(allocatedDrawLte)
   430  	return o
   431  }
   432  
   433  // SetAllocatedDrawLte adds the allocatedDrawLte to the dcim power ports list params
   434  func (o *DcimPowerPortsListParams) SetAllocatedDrawLte(allocatedDrawLte *string) {
   435  	o.AllocatedDrawLte = allocatedDrawLte
   436  }
   437  
   438  // WithAllocatedDrawn adds the allocatedDrawn to the dcim power ports list params
   439  func (o *DcimPowerPortsListParams) WithAllocatedDrawn(allocatedDrawn *string) *DcimPowerPortsListParams {
   440  	o.SetAllocatedDrawn(allocatedDrawn)
   441  	return o
   442  }
   443  
   444  // SetAllocatedDrawn adds the allocatedDrawN to the dcim power ports list params
   445  func (o *DcimPowerPortsListParams) SetAllocatedDrawn(allocatedDrawn *string) {
   446  	o.AllocatedDrawn = allocatedDrawn
   447  }
   448  
   449  // WithCabled adds the cabled to the dcim power ports list params
   450  func (o *DcimPowerPortsListParams) WithCabled(cabled *string) *DcimPowerPortsListParams {
   451  	o.SetCabled(cabled)
   452  	return o
   453  }
   454  
   455  // SetCabled adds the cabled to the dcim power ports list params
   456  func (o *DcimPowerPortsListParams) SetCabled(cabled *string) {
   457  	o.Cabled = cabled
   458  }
   459  
   460  // WithConnected adds the connected to the dcim power ports list params
   461  func (o *DcimPowerPortsListParams) WithConnected(connected *string) *DcimPowerPortsListParams {
   462  	o.SetConnected(connected)
   463  	return o
   464  }
   465  
   466  // SetConnected adds the connected to the dcim power ports list params
   467  func (o *DcimPowerPortsListParams) SetConnected(connected *string) {
   468  	o.Connected = connected
   469  }
   470  
   471  // WithCreated adds the created to the dcim power ports list params
   472  func (o *DcimPowerPortsListParams) WithCreated(created *string) *DcimPowerPortsListParams {
   473  	o.SetCreated(created)
   474  	return o
   475  }
   476  
   477  // SetCreated adds the created to the dcim power ports list params
   478  func (o *DcimPowerPortsListParams) SetCreated(created *string) {
   479  	o.Created = created
   480  }
   481  
   482  // WithCreatedGte adds the createdGte to the dcim power ports list params
   483  func (o *DcimPowerPortsListParams) WithCreatedGte(createdGte *string) *DcimPowerPortsListParams {
   484  	o.SetCreatedGte(createdGte)
   485  	return o
   486  }
   487  
   488  // SetCreatedGte adds the createdGte to the dcim power ports list params
   489  func (o *DcimPowerPortsListParams) SetCreatedGte(createdGte *string) {
   490  	o.CreatedGte = createdGte
   491  }
   492  
   493  // WithCreatedLte adds the createdLte to the dcim power ports list params
   494  func (o *DcimPowerPortsListParams) WithCreatedLte(createdLte *string) *DcimPowerPortsListParams {
   495  	o.SetCreatedLte(createdLte)
   496  	return o
   497  }
   498  
   499  // SetCreatedLte adds the createdLte to the dcim power ports list params
   500  func (o *DcimPowerPortsListParams) SetCreatedLte(createdLte *string) {
   501  	o.CreatedLte = createdLte
   502  }
   503  
   504  // WithDescription adds the description to the dcim power ports list params
   505  func (o *DcimPowerPortsListParams) WithDescription(description *string) *DcimPowerPortsListParams {
   506  	o.SetDescription(description)
   507  	return o
   508  }
   509  
   510  // SetDescription adds the description to the dcim power ports list params
   511  func (o *DcimPowerPortsListParams) SetDescription(description *string) {
   512  	o.Description = description
   513  }
   514  
   515  // WithDescriptionEmpty adds the descriptionEmpty to the dcim power ports list params
   516  func (o *DcimPowerPortsListParams) WithDescriptionEmpty(descriptionEmpty *string) *DcimPowerPortsListParams {
   517  	o.SetDescriptionEmpty(descriptionEmpty)
   518  	return o
   519  }
   520  
   521  // SetDescriptionEmpty adds the descriptionEmpty to the dcim power ports list params
   522  func (o *DcimPowerPortsListParams) SetDescriptionEmpty(descriptionEmpty *string) {
   523  	o.DescriptionEmpty = descriptionEmpty
   524  }
   525  
   526  // WithDescriptionIc adds the descriptionIc to the dcim power ports list params
   527  func (o *DcimPowerPortsListParams) WithDescriptionIc(descriptionIc *string) *DcimPowerPortsListParams {
   528  	o.SetDescriptionIc(descriptionIc)
   529  	return o
   530  }
   531  
   532  // SetDescriptionIc adds the descriptionIc to the dcim power ports list params
   533  func (o *DcimPowerPortsListParams) SetDescriptionIc(descriptionIc *string) {
   534  	o.DescriptionIc = descriptionIc
   535  }
   536  
   537  // WithDescriptionIe adds the descriptionIe to the dcim power ports list params
   538  func (o *DcimPowerPortsListParams) WithDescriptionIe(descriptionIe *string) *DcimPowerPortsListParams {
   539  	o.SetDescriptionIe(descriptionIe)
   540  	return o
   541  }
   542  
   543  // SetDescriptionIe adds the descriptionIe to the dcim power ports list params
   544  func (o *DcimPowerPortsListParams) SetDescriptionIe(descriptionIe *string) {
   545  	o.DescriptionIe = descriptionIe
   546  }
   547  
   548  // WithDescriptionIew adds the descriptionIew to the dcim power ports list params
   549  func (o *DcimPowerPortsListParams) WithDescriptionIew(descriptionIew *string) *DcimPowerPortsListParams {
   550  	o.SetDescriptionIew(descriptionIew)
   551  	return o
   552  }
   553  
   554  // SetDescriptionIew adds the descriptionIew to the dcim power ports list params
   555  func (o *DcimPowerPortsListParams) SetDescriptionIew(descriptionIew *string) {
   556  	o.DescriptionIew = descriptionIew
   557  }
   558  
   559  // WithDescriptionIsw adds the descriptionIsw to the dcim power ports list params
   560  func (o *DcimPowerPortsListParams) WithDescriptionIsw(descriptionIsw *string) *DcimPowerPortsListParams {
   561  	o.SetDescriptionIsw(descriptionIsw)
   562  	return o
   563  }
   564  
   565  // SetDescriptionIsw adds the descriptionIsw to the dcim power ports list params
   566  func (o *DcimPowerPortsListParams) SetDescriptionIsw(descriptionIsw *string) {
   567  	o.DescriptionIsw = descriptionIsw
   568  }
   569  
   570  // WithDescriptionn adds the descriptionn to the dcim power ports list params
   571  func (o *DcimPowerPortsListParams) WithDescriptionn(descriptionn *string) *DcimPowerPortsListParams {
   572  	o.SetDescriptionn(descriptionn)
   573  	return o
   574  }
   575  
   576  // SetDescriptionn adds the descriptionN to the dcim power ports list params
   577  func (o *DcimPowerPortsListParams) SetDescriptionn(descriptionn *string) {
   578  	o.Descriptionn = descriptionn
   579  }
   580  
   581  // WithDescriptionNic adds the descriptionNic to the dcim power ports list params
   582  func (o *DcimPowerPortsListParams) WithDescriptionNic(descriptionNic *string) *DcimPowerPortsListParams {
   583  	o.SetDescriptionNic(descriptionNic)
   584  	return o
   585  }
   586  
   587  // SetDescriptionNic adds the descriptionNic to the dcim power ports list params
   588  func (o *DcimPowerPortsListParams) SetDescriptionNic(descriptionNic *string) {
   589  	o.DescriptionNic = descriptionNic
   590  }
   591  
   592  // WithDescriptionNie adds the descriptionNie to the dcim power ports list params
   593  func (o *DcimPowerPortsListParams) WithDescriptionNie(descriptionNie *string) *DcimPowerPortsListParams {
   594  	o.SetDescriptionNie(descriptionNie)
   595  	return o
   596  }
   597  
   598  // SetDescriptionNie adds the descriptionNie to the dcim power ports list params
   599  func (o *DcimPowerPortsListParams) SetDescriptionNie(descriptionNie *string) {
   600  	o.DescriptionNie = descriptionNie
   601  }
   602  
   603  // WithDescriptionNiew adds the descriptionNiew to the dcim power ports list params
   604  func (o *DcimPowerPortsListParams) WithDescriptionNiew(descriptionNiew *string) *DcimPowerPortsListParams {
   605  	o.SetDescriptionNiew(descriptionNiew)
   606  	return o
   607  }
   608  
   609  // SetDescriptionNiew adds the descriptionNiew to the dcim power ports list params
   610  func (o *DcimPowerPortsListParams) SetDescriptionNiew(descriptionNiew *string) {
   611  	o.DescriptionNiew = descriptionNiew
   612  }
   613  
   614  // WithDescriptionNisw adds the descriptionNisw to the dcim power ports list params
   615  func (o *DcimPowerPortsListParams) WithDescriptionNisw(descriptionNisw *string) *DcimPowerPortsListParams {
   616  	o.SetDescriptionNisw(descriptionNisw)
   617  	return o
   618  }
   619  
   620  // SetDescriptionNisw adds the descriptionNisw to the dcim power ports list params
   621  func (o *DcimPowerPortsListParams) SetDescriptionNisw(descriptionNisw *string) {
   622  	o.DescriptionNisw = descriptionNisw
   623  }
   624  
   625  // WithDevice adds the device to the dcim power ports list params
   626  func (o *DcimPowerPortsListParams) WithDevice(device *string) *DcimPowerPortsListParams {
   627  	o.SetDevice(device)
   628  	return o
   629  }
   630  
   631  // SetDevice adds the device to the dcim power ports list params
   632  func (o *DcimPowerPortsListParams) SetDevice(device *string) {
   633  	o.Device = device
   634  }
   635  
   636  // WithDevicen adds the devicen to the dcim power ports list params
   637  func (o *DcimPowerPortsListParams) WithDevicen(devicen *string) *DcimPowerPortsListParams {
   638  	o.SetDevicen(devicen)
   639  	return o
   640  }
   641  
   642  // SetDevicen adds the deviceN to the dcim power ports list params
   643  func (o *DcimPowerPortsListParams) SetDevicen(devicen *string) {
   644  	o.Devicen = devicen
   645  }
   646  
   647  // WithDeviceID adds the deviceID to the dcim power ports list params
   648  func (o *DcimPowerPortsListParams) WithDeviceID(deviceID *string) *DcimPowerPortsListParams {
   649  	o.SetDeviceID(deviceID)
   650  	return o
   651  }
   652  
   653  // SetDeviceID adds the deviceId to the dcim power ports list params
   654  func (o *DcimPowerPortsListParams) SetDeviceID(deviceID *string) {
   655  	o.DeviceID = deviceID
   656  }
   657  
   658  // WithDeviceIDn adds the deviceIDn to the dcim power ports list params
   659  func (o *DcimPowerPortsListParams) WithDeviceIDn(deviceIDn *string) *DcimPowerPortsListParams {
   660  	o.SetDeviceIDn(deviceIDn)
   661  	return o
   662  }
   663  
   664  // SetDeviceIDn adds the deviceIdN to the dcim power ports list params
   665  func (o *DcimPowerPortsListParams) SetDeviceIDn(deviceIDn *string) {
   666  	o.DeviceIDn = deviceIDn
   667  }
   668  
   669  // WithID adds the id to the dcim power ports list params
   670  func (o *DcimPowerPortsListParams) WithID(id *string) *DcimPowerPortsListParams {
   671  	o.SetID(id)
   672  	return o
   673  }
   674  
   675  // SetID adds the id to the dcim power ports list params
   676  func (o *DcimPowerPortsListParams) SetID(id *string) {
   677  	o.ID = id
   678  }
   679  
   680  // WithIDGt adds the iDGt to the dcim power ports list params
   681  func (o *DcimPowerPortsListParams) WithIDGt(iDGt *string) *DcimPowerPortsListParams {
   682  	o.SetIDGt(iDGt)
   683  	return o
   684  }
   685  
   686  // SetIDGt adds the idGt to the dcim power ports list params
   687  func (o *DcimPowerPortsListParams) SetIDGt(iDGt *string) {
   688  	o.IDGt = iDGt
   689  }
   690  
   691  // WithIDGte adds the iDGte to the dcim power ports list params
   692  func (o *DcimPowerPortsListParams) WithIDGte(iDGte *string) *DcimPowerPortsListParams {
   693  	o.SetIDGte(iDGte)
   694  	return o
   695  }
   696  
   697  // SetIDGte adds the idGte to the dcim power ports list params
   698  func (o *DcimPowerPortsListParams) SetIDGte(iDGte *string) {
   699  	o.IDGte = iDGte
   700  }
   701  
   702  // WithIDLt adds the iDLt to the dcim power ports list params
   703  func (o *DcimPowerPortsListParams) WithIDLt(iDLt *string) *DcimPowerPortsListParams {
   704  	o.SetIDLt(iDLt)
   705  	return o
   706  }
   707  
   708  // SetIDLt adds the idLt to the dcim power ports list params
   709  func (o *DcimPowerPortsListParams) SetIDLt(iDLt *string) {
   710  	o.IDLt = iDLt
   711  }
   712  
   713  // WithIDLte adds the iDLte to the dcim power ports list params
   714  func (o *DcimPowerPortsListParams) WithIDLte(iDLte *string) *DcimPowerPortsListParams {
   715  	o.SetIDLte(iDLte)
   716  	return o
   717  }
   718  
   719  // SetIDLte adds the idLte to the dcim power ports list params
   720  func (o *DcimPowerPortsListParams) SetIDLte(iDLte *string) {
   721  	o.IDLte = iDLte
   722  }
   723  
   724  // WithIDn adds the iDn to the dcim power ports list params
   725  func (o *DcimPowerPortsListParams) WithIDn(iDn *string) *DcimPowerPortsListParams {
   726  	o.SetIDn(iDn)
   727  	return o
   728  }
   729  
   730  // SetIDn adds the idN to the dcim power ports list params
   731  func (o *DcimPowerPortsListParams) SetIDn(iDn *string) {
   732  	o.IDn = iDn
   733  }
   734  
   735  // WithLabel adds the label to the dcim power ports list params
   736  func (o *DcimPowerPortsListParams) WithLabel(label *string) *DcimPowerPortsListParams {
   737  	o.SetLabel(label)
   738  	return o
   739  }
   740  
   741  // SetLabel adds the label to the dcim power ports list params
   742  func (o *DcimPowerPortsListParams) SetLabel(label *string) {
   743  	o.Label = label
   744  }
   745  
   746  // WithLabelEmpty adds the labelEmpty to the dcim power ports list params
   747  func (o *DcimPowerPortsListParams) WithLabelEmpty(labelEmpty *string) *DcimPowerPortsListParams {
   748  	o.SetLabelEmpty(labelEmpty)
   749  	return o
   750  }
   751  
   752  // SetLabelEmpty adds the labelEmpty to the dcim power ports list params
   753  func (o *DcimPowerPortsListParams) SetLabelEmpty(labelEmpty *string) {
   754  	o.LabelEmpty = labelEmpty
   755  }
   756  
   757  // WithLabelIc adds the labelIc to the dcim power ports list params
   758  func (o *DcimPowerPortsListParams) WithLabelIc(labelIc *string) *DcimPowerPortsListParams {
   759  	o.SetLabelIc(labelIc)
   760  	return o
   761  }
   762  
   763  // SetLabelIc adds the labelIc to the dcim power ports list params
   764  func (o *DcimPowerPortsListParams) SetLabelIc(labelIc *string) {
   765  	o.LabelIc = labelIc
   766  }
   767  
   768  // WithLabelIe adds the labelIe to the dcim power ports list params
   769  func (o *DcimPowerPortsListParams) WithLabelIe(labelIe *string) *DcimPowerPortsListParams {
   770  	o.SetLabelIe(labelIe)
   771  	return o
   772  }
   773  
   774  // SetLabelIe adds the labelIe to the dcim power ports list params
   775  func (o *DcimPowerPortsListParams) SetLabelIe(labelIe *string) {
   776  	o.LabelIe = labelIe
   777  }
   778  
   779  // WithLabelIew adds the labelIew to the dcim power ports list params
   780  func (o *DcimPowerPortsListParams) WithLabelIew(labelIew *string) *DcimPowerPortsListParams {
   781  	o.SetLabelIew(labelIew)
   782  	return o
   783  }
   784  
   785  // SetLabelIew adds the labelIew to the dcim power ports list params
   786  func (o *DcimPowerPortsListParams) SetLabelIew(labelIew *string) {
   787  	o.LabelIew = labelIew
   788  }
   789  
   790  // WithLabelIsw adds the labelIsw to the dcim power ports list params
   791  func (o *DcimPowerPortsListParams) WithLabelIsw(labelIsw *string) *DcimPowerPortsListParams {
   792  	o.SetLabelIsw(labelIsw)
   793  	return o
   794  }
   795  
   796  // SetLabelIsw adds the labelIsw to the dcim power ports list params
   797  func (o *DcimPowerPortsListParams) SetLabelIsw(labelIsw *string) {
   798  	o.LabelIsw = labelIsw
   799  }
   800  
   801  // WithLabeln adds the labeln to the dcim power ports list params
   802  func (o *DcimPowerPortsListParams) WithLabeln(labeln *string) *DcimPowerPortsListParams {
   803  	o.SetLabeln(labeln)
   804  	return o
   805  }
   806  
   807  // SetLabeln adds the labelN to the dcim power ports list params
   808  func (o *DcimPowerPortsListParams) SetLabeln(labeln *string) {
   809  	o.Labeln = labeln
   810  }
   811  
   812  // WithLabelNic adds the labelNic to the dcim power ports list params
   813  func (o *DcimPowerPortsListParams) WithLabelNic(labelNic *string) *DcimPowerPortsListParams {
   814  	o.SetLabelNic(labelNic)
   815  	return o
   816  }
   817  
   818  // SetLabelNic adds the labelNic to the dcim power ports list params
   819  func (o *DcimPowerPortsListParams) SetLabelNic(labelNic *string) {
   820  	o.LabelNic = labelNic
   821  }
   822  
   823  // WithLabelNie adds the labelNie to the dcim power ports list params
   824  func (o *DcimPowerPortsListParams) WithLabelNie(labelNie *string) *DcimPowerPortsListParams {
   825  	o.SetLabelNie(labelNie)
   826  	return o
   827  }
   828  
   829  // SetLabelNie adds the labelNie to the dcim power ports list params
   830  func (o *DcimPowerPortsListParams) SetLabelNie(labelNie *string) {
   831  	o.LabelNie = labelNie
   832  }
   833  
   834  // WithLabelNiew adds the labelNiew to the dcim power ports list params
   835  func (o *DcimPowerPortsListParams) WithLabelNiew(labelNiew *string) *DcimPowerPortsListParams {
   836  	o.SetLabelNiew(labelNiew)
   837  	return o
   838  }
   839  
   840  // SetLabelNiew adds the labelNiew to the dcim power ports list params
   841  func (o *DcimPowerPortsListParams) SetLabelNiew(labelNiew *string) {
   842  	o.LabelNiew = labelNiew
   843  }
   844  
   845  // WithLabelNisw adds the labelNisw to the dcim power ports list params
   846  func (o *DcimPowerPortsListParams) WithLabelNisw(labelNisw *string) *DcimPowerPortsListParams {
   847  	o.SetLabelNisw(labelNisw)
   848  	return o
   849  }
   850  
   851  // SetLabelNisw adds the labelNisw to the dcim power ports list params
   852  func (o *DcimPowerPortsListParams) SetLabelNisw(labelNisw *string) {
   853  	o.LabelNisw = labelNisw
   854  }
   855  
   856  // WithLastUpdated adds the lastUpdated to the dcim power ports list params
   857  func (o *DcimPowerPortsListParams) WithLastUpdated(lastUpdated *string) *DcimPowerPortsListParams {
   858  	o.SetLastUpdated(lastUpdated)
   859  	return o
   860  }
   861  
   862  // SetLastUpdated adds the lastUpdated to the dcim power ports list params
   863  func (o *DcimPowerPortsListParams) SetLastUpdated(lastUpdated *string) {
   864  	o.LastUpdated = lastUpdated
   865  }
   866  
   867  // WithLastUpdatedGte adds the lastUpdatedGte to the dcim power ports list params
   868  func (o *DcimPowerPortsListParams) WithLastUpdatedGte(lastUpdatedGte *string) *DcimPowerPortsListParams {
   869  	o.SetLastUpdatedGte(lastUpdatedGte)
   870  	return o
   871  }
   872  
   873  // SetLastUpdatedGte adds the lastUpdatedGte to the dcim power ports list params
   874  func (o *DcimPowerPortsListParams) SetLastUpdatedGte(lastUpdatedGte *string) {
   875  	o.LastUpdatedGte = lastUpdatedGte
   876  }
   877  
   878  // WithLastUpdatedLte adds the lastUpdatedLte to the dcim power ports list params
   879  func (o *DcimPowerPortsListParams) WithLastUpdatedLte(lastUpdatedLte *string) *DcimPowerPortsListParams {
   880  	o.SetLastUpdatedLte(lastUpdatedLte)
   881  	return o
   882  }
   883  
   884  // SetLastUpdatedLte adds the lastUpdatedLte to the dcim power ports list params
   885  func (o *DcimPowerPortsListParams) SetLastUpdatedLte(lastUpdatedLte *string) {
   886  	o.LastUpdatedLte = lastUpdatedLte
   887  }
   888  
   889  // WithLimit adds the limit to the dcim power ports list params
   890  func (o *DcimPowerPortsListParams) WithLimit(limit *int64) *DcimPowerPortsListParams {
   891  	o.SetLimit(limit)
   892  	return o
   893  }
   894  
   895  // SetLimit adds the limit to the dcim power ports list params
   896  func (o *DcimPowerPortsListParams) SetLimit(limit *int64) {
   897  	o.Limit = limit
   898  }
   899  
   900  // WithMaximumDraw adds the maximumDraw to the dcim power ports list params
   901  func (o *DcimPowerPortsListParams) WithMaximumDraw(maximumDraw *string) *DcimPowerPortsListParams {
   902  	o.SetMaximumDraw(maximumDraw)
   903  	return o
   904  }
   905  
   906  // SetMaximumDraw adds the maximumDraw to the dcim power ports list params
   907  func (o *DcimPowerPortsListParams) SetMaximumDraw(maximumDraw *string) {
   908  	o.MaximumDraw = maximumDraw
   909  }
   910  
   911  // WithMaximumDrawGt adds the maximumDrawGt to the dcim power ports list params
   912  func (o *DcimPowerPortsListParams) WithMaximumDrawGt(maximumDrawGt *string) *DcimPowerPortsListParams {
   913  	o.SetMaximumDrawGt(maximumDrawGt)
   914  	return o
   915  }
   916  
   917  // SetMaximumDrawGt adds the maximumDrawGt to the dcim power ports list params
   918  func (o *DcimPowerPortsListParams) SetMaximumDrawGt(maximumDrawGt *string) {
   919  	o.MaximumDrawGt = maximumDrawGt
   920  }
   921  
   922  // WithMaximumDrawGte adds the maximumDrawGte to the dcim power ports list params
   923  func (o *DcimPowerPortsListParams) WithMaximumDrawGte(maximumDrawGte *string) *DcimPowerPortsListParams {
   924  	o.SetMaximumDrawGte(maximumDrawGte)
   925  	return o
   926  }
   927  
   928  // SetMaximumDrawGte adds the maximumDrawGte to the dcim power ports list params
   929  func (o *DcimPowerPortsListParams) SetMaximumDrawGte(maximumDrawGte *string) {
   930  	o.MaximumDrawGte = maximumDrawGte
   931  }
   932  
   933  // WithMaximumDrawLt adds the maximumDrawLt to the dcim power ports list params
   934  func (o *DcimPowerPortsListParams) WithMaximumDrawLt(maximumDrawLt *string) *DcimPowerPortsListParams {
   935  	o.SetMaximumDrawLt(maximumDrawLt)
   936  	return o
   937  }
   938  
   939  // SetMaximumDrawLt adds the maximumDrawLt to the dcim power ports list params
   940  func (o *DcimPowerPortsListParams) SetMaximumDrawLt(maximumDrawLt *string) {
   941  	o.MaximumDrawLt = maximumDrawLt
   942  }
   943  
   944  // WithMaximumDrawLte adds the maximumDrawLte to the dcim power ports list params
   945  func (o *DcimPowerPortsListParams) WithMaximumDrawLte(maximumDrawLte *string) *DcimPowerPortsListParams {
   946  	o.SetMaximumDrawLte(maximumDrawLte)
   947  	return o
   948  }
   949  
   950  // SetMaximumDrawLte adds the maximumDrawLte to the dcim power ports list params
   951  func (o *DcimPowerPortsListParams) SetMaximumDrawLte(maximumDrawLte *string) {
   952  	o.MaximumDrawLte = maximumDrawLte
   953  }
   954  
   955  // WithMaximumDrawn adds the maximumDrawn to the dcim power ports list params
   956  func (o *DcimPowerPortsListParams) WithMaximumDrawn(maximumDrawn *string) *DcimPowerPortsListParams {
   957  	o.SetMaximumDrawn(maximumDrawn)
   958  	return o
   959  }
   960  
   961  // SetMaximumDrawn adds the maximumDrawN to the dcim power ports list params
   962  func (o *DcimPowerPortsListParams) SetMaximumDrawn(maximumDrawn *string) {
   963  	o.MaximumDrawn = maximumDrawn
   964  }
   965  
   966  // WithName adds the name to the dcim power ports list params
   967  func (o *DcimPowerPortsListParams) WithName(name *string) *DcimPowerPortsListParams {
   968  	o.SetName(name)
   969  	return o
   970  }
   971  
   972  // SetName adds the name to the dcim power ports list params
   973  func (o *DcimPowerPortsListParams) SetName(name *string) {
   974  	o.Name = name
   975  }
   976  
   977  // WithNameEmpty adds the nameEmpty to the dcim power ports list params
   978  func (o *DcimPowerPortsListParams) WithNameEmpty(nameEmpty *string) *DcimPowerPortsListParams {
   979  	o.SetNameEmpty(nameEmpty)
   980  	return o
   981  }
   982  
   983  // SetNameEmpty adds the nameEmpty to the dcim power ports list params
   984  func (o *DcimPowerPortsListParams) SetNameEmpty(nameEmpty *string) {
   985  	o.NameEmpty = nameEmpty
   986  }
   987  
   988  // WithNameIc adds the nameIc to the dcim power ports list params
   989  func (o *DcimPowerPortsListParams) WithNameIc(nameIc *string) *DcimPowerPortsListParams {
   990  	o.SetNameIc(nameIc)
   991  	return o
   992  }
   993  
   994  // SetNameIc adds the nameIc to the dcim power ports list params
   995  func (o *DcimPowerPortsListParams) SetNameIc(nameIc *string) {
   996  	o.NameIc = nameIc
   997  }
   998  
   999  // WithNameIe adds the nameIe to the dcim power ports list params
  1000  func (o *DcimPowerPortsListParams) WithNameIe(nameIe *string) *DcimPowerPortsListParams {
  1001  	o.SetNameIe(nameIe)
  1002  	return o
  1003  }
  1004  
  1005  // SetNameIe adds the nameIe to the dcim power ports list params
  1006  func (o *DcimPowerPortsListParams) SetNameIe(nameIe *string) {
  1007  	o.NameIe = nameIe
  1008  }
  1009  
  1010  // WithNameIew adds the nameIew to the dcim power ports list params
  1011  func (o *DcimPowerPortsListParams) WithNameIew(nameIew *string) *DcimPowerPortsListParams {
  1012  	o.SetNameIew(nameIew)
  1013  	return o
  1014  }
  1015  
  1016  // SetNameIew adds the nameIew to the dcim power ports list params
  1017  func (o *DcimPowerPortsListParams) SetNameIew(nameIew *string) {
  1018  	o.NameIew = nameIew
  1019  }
  1020  
  1021  // WithNameIsw adds the nameIsw to the dcim power ports list params
  1022  func (o *DcimPowerPortsListParams) WithNameIsw(nameIsw *string) *DcimPowerPortsListParams {
  1023  	o.SetNameIsw(nameIsw)
  1024  	return o
  1025  }
  1026  
  1027  // SetNameIsw adds the nameIsw to the dcim power ports list params
  1028  func (o *DcimPowerPortsListParams) SetNameIsw(nameIsw *string) {
  1029  	o.NameIsw = nameIsw
  1030  }
  1031  
  1032  // WithNamen adds the namen to the dcim power ports list params
  1033  func (o *DcimPowerPortsListParams) WithNamen(namen *string) *DcimPowerPortsListParams {
  1034  	o.SetNamen(namen)
  1035  	return o
  1036  }
  1037  
  1038  // SetNamen adds the nameN to the dcim power ports list params
  1039  func (o *DcimPowerPortsListParams) SetNamen(namen *string) {
  1040  	o.Namen = namen
  1041  }
  1042  
  1043  // WithNameNic adds the nameNic to the dcim power ports list params
  1044  func (o *DcimPowerPortsListParams) WithNameNic(nameNic *string) *DcimPowerPortsListParams {
  1045  	o.SetNameNic(nameNic)
  1046  	return o
  1047  }
  1048  
  1049  // SetNameNic adds the nameNic to the dcim power ports list params
  1050  func (o *DcimPowerPortsListParams) SetNameNic(nameNic *string) {
  1051  	o.NameNic = nameNic
  1052  }
  1053  
  1054  // WithNameNie adds the nameNie to the dcim power ports list params
  1055  func (o *DcimPowerPortsListParams) WithNameNie(nameNie *string) *DcimPowerPortsListParams {
  1056  	o.SetNameNie(nameNie)
  1057  	return o
  1058  }
  1059  
  1060  // SetNameNie adds the nameNie to the dcim power ports list params
  1061  func (o *DcimPowerPortsListParams) SetNameNie(nameNie *string) {
  1062  	o.NameNie = nameNie
  1063  }
  1064  
  1065  // WithNameNiew adds the nameNiew to the dcim power ports list params
  1066  func (o *DcimPowerPortsListParams) WithNameNiew(nameNiew *string) *DcimPowerPortsListParams {
  1067  	o.SetNameNiew(nameNiew)
  1068  	return o
  1069  }
  1070  
  1071  // SetNameNiew adds the nameNiew to the dcim power ports list params
  1072  func (o *DcimPowerPortsListParams) SetNameNiew(nameNiew *string) {
  1073  	o.NameNiew = nameNiew
  1074  }
  1075  
  1076  // WithNameNisw adds the nameNisw to the dcim power ports list params
  1077  func (o *DcimPowerPortsListParams) WithNameNisw(nameNisw *string) *DcimPowerPortsListParams {
  1078  	o.SetNameNisw(nameNisw)
  1079  	return o
  1080  }
  1081  
  1082  // SetNameNisw adds the nameNisw to the dcim power ports list params
  1083  func (o *DcimPowerPortsListParams) SetNameNisw(nameNisw *string) {
  1084  	o.NameNisw = nameNisw
  1085  }
  1086  
  1087  // WithOffset adds the offset to the dcim power ports list params
  1088  func (o *DcimPowerPortsListParams) WithOffset(offset *int64) *DcimPowerPortsListParams {
  1089  	o.SetOffset(offset)
  1090  	return o
  1091  }
  1092  
  1093  // SetOffset adds the offset to the dcim power ports list params
  1094  func (o *DcimPowerPortsListParams) SetOffset(offset *int64) {
  1095  	o.Offset = offset
  1096  }
  1097  
  1098  // WithQ adds the q to the dcim power ports list params
  1099  func (o *DcimPowerPortsListParams) WithQ(q *string) *DcimPowerPortsListParams {
  1100  	o.SetQ(q)
  1101  	return o
  1102  }
  1103  
  1104  // SetQ adds the q to the dcim power ports list params
  1105  func (o *DcimPowerPortsListParams) SetQ(q *string) {
  1106  	o.Q = q
  1107  }
  1108  
  1109  // WithRegion adds the region to the dcim power ports list params
  1110  func (o *DcimPowerPortsListParams) WithRegion(region *string) *DcimPowerPortsListParams {
  1111  	o.SetRegion(region)
  1112  	return o
  1113  }
  1114  
  1115  // SetRegion adds the region to the dcim power ports list params
  1116  func (o *DcimPowerPortsListParams) SetRegion(region *string) {
  1117  	o.Region = region
  1118  }
  1119  
  1120  // WithRegionn adds the regionn to the dcim power ports list params
  1121  func (o *DcimPowerPortsListParams) WithRegionn(regionn *string) *DcimPowerPortsListParams {
  1122  	o.SetRegionn(regionn)
  1123  	return o
  1124  }
  1125  
  1126  // SetRegionn adds the regionN to the dcim power ports list params
  1127  func (o *DcimPowerPortsListParams) SetRegionn(regionn *string) {
  1128  	o.Regionn = regionn
  1129  }
  1130  
  1131  // WithRegionID adds the regionID to the dcim power ports list params
  1132  func (o *DcimPowerPortsListParams) WithRegionID(regionID *string) *DcimPowerPortsListParams {
  1133  	o.SetRegionID(regionID)
  1134  	return o
  1135  }
  1136  
  1137  // SetRegionID adds the regionId to the dcim power ports list params
  1138  func (o *DcimPowerPortsListParams) SetRegionID(regionID *string) {
  1139  	o.RegionID = regionID
  1140  }
  1141  
  1142  // WithRegionIDn adds the regionIDn to the dcim power ports list params
  1143  func (o *DcimPowerPortsListParams) WithRegionIDn(regionIDn *string) *DcimPowerPortsListParams {
  1144  	o.SetRegionIDn(regionIDn)
  1145  	return o
  1146  }
  1147  
  1148  // SetRegionIDn adds the regionIdN to the dcim power ports list params
  1149  func (o *DcimPowerPortsListParams) SetRegionIDn(regionIDn *string) {
  1150  	o.RegionIDn = regionIDn
  1151  }
  1152  
  1153  // WithSite adds the site to the dcim power ports list params
  1154  func (o *DcimPowerPortsListParams) WithSite(site *string) *DcimPowerPortsListParams {
  1155  	o.SetSite(site)
  1156  	return o
  1157  }
  1158  
  1159  // SetSite adds the site to the dcim power ports list params
  1160  func (o *DcimPowerPortsListParams) SetSite(site *string) {
  1161  	o.Site = site
  1162  }
  1163  
  1164  // WithSiten adds the siten to the dcim power ports list params
  1165  func (o *DcimPowerPortsListParams) WithSiten(siten *string) *DcimPowerPortsListParams {
  1166  	o.SetSiten(siten)
  1167  	return o
  1168  }
  1169  
  1170  // SetSiten adds the siteN to the dcim power ports list params
  1171  func (o *DcimPowerPortsListParams) SetSiten(siten *string) {
  1172  	o.Siten = siten
  1173  }
  1174  
  1175  // WithSiteGroup adds the siteGroup to the dcim power ports list params
  1176  func (o *DcimPowerPortsListParams) WithSiteGroup(siteGroup *string) *DcimPowerPortsListParams {
  1177  	o.SetSiteGroup(siteGroup)
  1178  	return o
  1179  }
  1180  
  1181  // SetSiteGroup adds the siteGroup to the dcim power ports list params
  1182  func (o *DcimPowerPortsListParams) SetSiteGroup(siteGroup *string) {
  1183  	o.SiteGroup = siteGroup
  1184  }
  1185  
  1186  // WithSiteGroupn adds the siteGroupn to the dcim power ports list params
  1187  func (o *DcimPowerPortsListParams) WithSiteGroupn(siteGroupn *string) *DcimPowerPortsListParams {
  1188  	o.SetSiteGroupn(siteGroupn)
  1189  	return o
  1190  }
  1191  
  1192  // SetSiteGroupn adds the siteGroupN to the dcim power ports list params
  1193  func (o *DcimPowerPortsListParams) SetSiteGroupn(siteGroupn *string) {
  1194  	o.SiteGroupn = siteGroupn
  1195  }
  1196  
  1197  // WithSiteGroupID adds the siteGroupID to the dcim power ports list params
  1198  func (o *DcimPowerPortsListParams) WithSiteGroupID(siteGroupID *string) *DcimPowerPortsListParams {
  1199  	o.SetSiteGroupID(siteGroupID)
  1200  	return o
  1201  }
  1202  
  1203  // SetSiteGroupID adds the siteGroupId to the dcim power ports list params
  1204  func (o *DcimPowerPortsListParams) SetSiteGroupID(siteGroupID *string) {
  1205  	o.SiteGroupID = siteGroupID
  1206  }
  1207  
  1208  // WithSiteGroupIDn adds the siteGroupIDn to the dcim power ports list params
  1209  func (o *DcimPowerPortsListParams) WithSiteGroupIDn(siteGroupIDn *string) *DcimPowerPortsListParams {
  1210  	o.SetSiteGroupIDn(siteGroupIDn)
  1211  	return o
  1212  }
  1213  
  1214  // SetSiteGroupIDn adds the siteGroupIdN to the dcim power ports list params
  1215  func (o *DcimPowerPortsListParams) SetSiteGroupIDn(siteGroupIDn *string) {
  1216  	o.SiteGroupIDn = siteGroupIDn
  1217  }
  1218  
  1219  // WithSiteID adds the siteID to the dcim power ports list params
  1220  func (o *DcimPowerPortsListParams) WithSiteID(siteID *string) *DcimPowerPortsListParams {
  1221  	o.SetSiteID(siteID)
  1222  	return o
  1223  }
  1224  
  1225  // SetSiteID adds the siteId to the dcim power ports list params
  1226  func (o *DcimPowerPortsListParams) SetSiteID(siteID *string) {
  1227  	o.SiteID = siteID
  1228  }
  1229  
  1230  // WithSiteIDn adds the siteIDn to the dcim power ports list params
  1231  func (o *DcimPowerPortsListParams) WithSiteIDn(siteIDn *string) *DcimPowerPortsListParams {
  1232  	o.SetSiteIDn(siteIDn)
  1233  	return o
  1234  }
  1235  
  1236  // SetSiteIDn adds the siteIdN to the dcim power ports list params
  1237  func (o *DcimPowerPortsListParams) SetSiteIDn(siteIDn *string) {
  1238  	o.SiteIDn = siteIDn
  1239  }
  1240  
  1241  // WithTag adds the tag to the dcim power ports list params
  1242  func (o *DcimPowerPortsListParams) WithTag(tag *string) *DcimPowerPortsListParams {
  1243  	o.SetTag(tag)
  1244  	return o
  1245  }
  1246  
  1247  // SetTag adds the tag to the dcim power ports list params
  1248  func (o *DcimPowerPortsListParams) SetTag(tag *string) {
  1249  	o.Tag = tag
  1250  }
  1251  
  1252  // WithTagn adds the tagn to the dcim power ports list params
  1253  func (o *DcimPowerPortsListParams) WithTagn(tagn *string) *DcimPowerPortsListParams {
  1254  	o.SetTagn(tagn)
  1255  	return o
  1256  }
  1257  
  1258  // SetTagn adds the tagN to the dcim power ports list params
  1259  func (o *DcimPowerPortsListParams) SetTagn(tagn *string) {
  1260  	o.Tagn = tagn
  1261  }
  1262  
  1263  // WithType adds the typeVar to the dcim power ports list params
  1264  func (o *DcimPowerPortsListParams) WithType(typeVar *string) *DcimPowerPortsListParams {
  1265  	o.SetType(typeVar)
  1266  	return o
  1267  }
  1268  
  1269  // SetType adds the type to the dcim power ports list params
  1270  func (o *DcimPowerPortsListParams) SetType(typeVar *string) {
  1271  	o.Type = typeVar
  1272  }
  1273  
  1274  // WithTypen adds the typen to the dcim power ports list params
  1275  func (o *DcimPowerPortsListParams) WithTypen(typen *string) *DcimPowerPortsListParams {
  1276  	o.SetTypen(typen)
  1277  	return o
  1278  }
  1279  
  1280  // SetTypen adds the typeN to the dcim power ports list params
  1281  func (o *DcimPowerPortsListParams) SetTypen(typen *string) {
  1282  	o.Typen = typen
  1283  }
  1284  
  1285  // WriteToRequest writes these params to a swagger request
  1286  func (o *DcimPowerPortsListParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error {
  1287  
  1288  	if err := r.SetTimeout(o.timeout); err != nil {
  1289  		return err
  1290  	}
  1291  	var res []error
  1292  
  1293  	if o.AllocatedDraw != nil {
  1294  
  1295  		// query param allocated_draw
  1296  		var qrAllocatedDraw string
  1297  
  1298  		if o.AllocatedDraw != nil {
  1299  			qrAllocatedDraw = *o.AllocatedDraw
  1300  		}
  1301  		qAllocatedDraw := qrAllocatedDraw
  1302  		if qAllocatedDraw != "" {
  1303  
  1304  			if err := r.SetQueryParam("allocated_draw", qAllocatedDraw); err != nil {
  1305  				return err
  1306  			}
  1307  		}
  1308  	}
  1309  
  1310  	if o.AllocatedDrawGt != nil {
  1311  
  1312  		// query param allocated_draw__gt
  1313  		var qrAllocatedDrawGt string
  1314  
  1315  		if o.AllocatedDrawGt != nil {
  1316  			qrAllocatedDrawGt = *o.AllocatedDrawGt
  1317  		}
  1318  		qAllocatedDrawGt := qrAllocatedDrawGt
  1319  		if qAllocatedDrawGt != "" {
  1320  
  1321  			if err := r.SetQueryParam("allocated_draw__gt", qAllocatedDrawGt); err != nil {
  1322  				return err
  1323  			}
  1324  		}
  1325  	}
  1326  
  1327  	if o.AllocatedDrawGte != nil {
  1328  
  1329  		// query param allocated_draw__gte
  1330  		var qrAllocatedDrawGte string
  1331  
  1332  		if o.AllocatedDrawGte != nil {
  1333  			qrAllocatedDrawGte = *o.AllocatedDrawGte
  1334  		}
  1335  		qAllocatedDrawGte := qrAllocatedDrawGte
  1336  		if qAllocatedDrawGte != "" {
  1337  
  1338  			if err := r.SetQueryParam("allocated_draw__gte", qAllocatedDrawGte); err != nil {
  1339  				return err
  1340  			}
  1341  		}
  1342  	}
  1343  
  1344  	if o.AllocatedDrawLt != nil {
  1345  
  1346  		// query param allocated_draw__lt
  1347  		var qrAllocatedDrawLt string
  1348  
  1349  		if o.AllocatedDrawLt != nil {
  1350  			qrAllocatedDrawLt = *o.AllocatedDrawLt
  1351  		}
  1352  		qAllocatedDrawLt := qrAllocatedDrawLt
  1353  		if qAllocatedDrawLt != "" {
  1354  
  1355  			if err := r.SetQueryParam("allocated_draw__lt", qAllocatedDrawLt); err != nil {
  1356  				return err
  1357  			}
  1358  		}
  1359  	}
  1360  
  1361  	if o.AllocatedDrawLte != nil {
  1362  
  1363  		// query param allocated_draw__lte
  1364  		var qrAllocatedDrawLte string
  1365  
  1366  		if o.AllocatedDrawLte != nil {
  1367  			qrAllocatedDrawLte = *o.AllocatedDrawLte
  1368  		}
  1369  		qAllocatedDrawLte := qrAllocatedDrawLte
  1370  		if qAllocatedDrawLte != "" {
  1371  
  1372  			if err := r.SetQueryParam("allocated_draw__lte", qAllocatedDrawLte); err != nil {
  1373  				return err
  1374  			}
  1375  		}
  1376  	}
  1377  
  1378  	if o.AllocatedDrawn != nil {
  1379  
  1380  		// query param allocated_draw__n
  1381  		var qrAllocatedDrawn string
  1382  
  1383  		if o.AllocatedDrawn != nil {
  1384  			qrAllocatedDrawn = *o.AllocatedDrawn
  1385  		}
  1386  		qAllocatedDrawn := qrAllocatedDrawn
  1387  		if qAllocatedDrawn != "" {
  1388  
  1389  			if err := r.SetQueryParam("allocated_draw__n", qAllocatedDrawn); err != nil {
  1390  				return err
  1391  			}
  1392  		}
  1393  	}
  1394  
  1395  	if o.Cabled != nil {
  1396  
  1397  		// query param cabled
  1398  		var qrCabled string
  1399  
  1400  		if o.Cabled != nil {
  1401  			qrCabled = *o.Cabled
  1402  		}
  1403  		qCabled := qrCabled
  1404  		if qCabled != "" {
  1405  
  1406  			if err := r.SetQueryParam("cabled", qCabled); err != nil {
  1407  				return err
  1408  			}
  1409  		}
  1410  	}
  1411  
  1412  	if o.Connected != nil {
  1413  
  1414  		// query param connected
  1415  		var qrConnected string
  1416  
  1417  		if o.Connected != nil {
  1418  			qrConnected = *o.Connected
  1419  		}
  1420  		qConnected := qrConnected
  1421  		if qConnected != "" {
  1422  
  1423  			if err := r.SetQueryParam("connected", qConnected); err != nil {
  1424  				return err
  1425  			}
  1426  		}
  1427  	}
  1428  
  1429  	if o.Created != nil {
  1430  
  1431  		// query param created
  1432  		var qrCreated string
  1433  
  1434  		if o.Created != nil {
  1435  			qrCreated = *o.Created
  1436  		}
  1437  		qCreated := qrCreated
  1438  		if qCreated != "" {
  1439  
  1440  			if err := r.SetQueryParam("created", qCreated); err != nil {
  1441  				return err
  1442  			}
  1443  		}
  1444  	}
  1445  
  1446  	if o.CreatedGte != nil {
  1447  
  1448  		// query param created__gte
  1449  		var qrCreatedGte string
  1450  
  1451  		if o.CreatedGte != nil {
  1452  			qrCreatedGte = *o.CreatedGte
  1453  		}
  1454  		qCreatedGte := qrCreatedGte
  1455  		if qCreatedGte != "" {
  1456  
  1457  			if err := r.SetQueryParam("created__gte", qCreatedGte); err != nil {
  1458  				return err
  1459  			}
  1460  		}
  1461  	}
  1462  
  1463  	if o.CreatedLte != nil {
  1464  
  1465  		// query param created__lte
  1466  		var qrCreatedLte string
  1467  
  1468  		if o.CreatedLte != nil {
  1469  			qrCreatedLte = *o.CreatedLte
  1470  		}
  1471  		qCreatedLte := qrCreatedLte
  1472  		if qCreatedLte != "" {
  1473  
  1474  			if err := r.SetQueryParam("created__lte", qCreatedLte); err != nil {
  1475  				return err
  1476  			}
  1477  		}
  1478  	}
  1479  
  1480  	if o.Description != nil {
  1481  
  1482  		// query param description
  1483  		var qrDescription string
  1484  
  1485  		if o.Description != nil {
  1486  			qrDescription = *o.Description
  1487  		}
  1488  		qDescription := qrDescription
  1489  		if qDescription != "" {
  1490  
  1491  			if err := r.SetQueryParam("description", qDescription); err != nil {
  1492  				return err
  1493  			}
  1494  		}
  1495  	}
  1496  
  1497  	if o.DescriptionEmpty != nil {
  1498  
  1499  		// query param description__empty
  1500  		var qrDescriptionEmpty string
  1501  
  1502  		if o.DescriptionEmpty != nil {
  1503  			qrDescriptionEmpty = *o.DescriptionEmpty
  1504  		}
  1505  		qDescriptionEmpty := qrDescriptionEmpty
  1506  		if qDescriptionEmpty != "" {
  1507  
  1508  			if err := r.SetQueryParam("description__empty", qDescriptionEmpty); err != nil {
  1509  				return err
  1510  			}
  1511  		}
  1512  	}
  1513  
  1514  	if o.DescriptionIc != nil {
  1515  
  1516  		// query param description__ic
  1517  		var qrDescriptionIc string
  1518  
  1519  		if o.DescriptionIc != nil {
  1520  			qrDescriptionIc = *o.DescriptionIc
  1521  		}
  1522  		qDescriptionIc := qrDescriptionIc
  1523  		if qDescriptionIc != "" {
  1524  
  1525  			if err := r.SetQueryParam("description__ic", qDescriptionIc); err != nil {
  1526  				return err
  1527  			}
  1528  		}
  1529  	}
  1530  
  1531  	if o.DescriptionIe != nil {
  1532  
  1533  		// query param description__ie
  1534  		var qrDescriptionIe string
  1535  
  1536  		if o.DescriptionIe != nil {
  1537  			qrDescriptionIe = *o.DescriptionIe
  1538  		}
  1539  		qDescriptionIe := qrDescriptionIe
  1540  		if qDescriptionIe != "" {
  1541  
  1542  			if err := r.SetQueryParam("description__ie", qDescriptionIe); err != nil {
  1543  				return err
  1544  			}
  1545  		}
  1546  	}
  1547  
  1548  	if o.DescriptionIew != nil {
  1549  
  1550  		// query param description__iew
  1551  		var qrDescriptionIew string
  1552  
  1553  		if o.DescriptionIew != nil {
  1554  			qrDescriptionIew = *o.DescriptionIew
  1555  		}
  1556  		qDescriptionIew := qrDescriptionIew
  1557  		if qDescriptionIew != "" {
  1558  
  1559  			if err := r.SetQueryParam("description__iew", qDescriptionIew); err != nil {
  1560  				return err
  1561  			}
  1562  		}
  1563  	}
  1564  
  1565  	if o.DescriptionIsw != nil {
  1566  
  1567  		// query param description__isw
  1568  		var qrDescriptionIsw string
  1569  
  1570  		if o.DescriptionIsw != nil {
  1571  			qrDescriptionIsw = *o.DescriptionIsw
  1572  		}
  1573  		qDescriptionIsw := qrDescriptionIsw
  1574  		if qDescriptionIsw != "" {
  1575  
  1576  			if err := r.SetQueryParam("description__isw", qDescriptionIsw); err != nil {
  1577  				return err
  1578  			}
  1579  		}
  1580  	}
  1581  
  1582  	if o.Descriptionn != nil {
  1583  
  1584  		// query param description__n
  1585  		var qrDescriptionn string
  1586  
  1587  		if o.Descriptionn != nil {
  1588  			qrDescriptionn = *o.Descriptionn
  1589  		}
  1590  		qDescriptionn := qrDescriptionn
  1591  		if qDescriptionn != "" {
  1592  
  1593  			if err := r.SetQueryParam("description__n", qDescriptionn); err != nil {
  1594  				return err
  1595  			}
  1596  		}
  1597  	}
  1598  
  1599  	if o.DescriptionNic != nil {
  1600  
  1601  		// query param description__nic
  1602  		var qrDescriptionNic string
  1603  
  1604  		if o.DescriptionNic != nil {
  1605  			qrDescriptionNic = *o.DescriptionNic
  1606  		}
  1607  		qDescriptionNic := qrDescriptionNic
  1608  		if qDescriptionNic != "" {
  1609  
  1610  			if err := r.SetQueryParam("description__nic", qDescriptionNic); err != nil {
  1611  				return err
  1612  			}
  1613  		}
  1614  	}
  1615  
  1616  	if o.DescriptionNie != nil {
  1617  
  1618  		// query param description__nie
  1619  		var qrDescriptionNie string
  1620  
  1621  		if o.DescriptionNie != nil {
  1622  			qrDescriptionNie = *o.DescriptionNie
  1623  		}
  1624  		qDescriptionNie := qrDescriptionNie
  1625  		if qDescriptionNie != "" {
  1626  
  1627  			if err := r.SetQueryParam("description__nie", qDescriptionNie); err != nil {
  1628  				return err
  1629  			}
  1630  		}
  1631  	}
  1632  
  1633  	if o.DescriptionNiew != nil {
  1634  
  1635  		// query param description__niew
  1636  		var qrDescriptionNiew string
  1637  
  1638  		if o.DescriptionNiew != nil {
  1639  			qrDescriptionNiew = *o.DescriptionNiew
  1640  		}
  1641  		qDescriptionNiew := qrDescriptionNiew
  1642  		if qDescriptionNiew != "" {
  1643  
  1644  			if err := r.SetQueryParam("description__niew", qDescriptionNiew); err != nil {
  1645  				return err
  1646  			}
  1647  		}
  1648  	}
  1649  
  1650  	if o.DescriptionNisw != nil {
  1651  
  1652  		// query param description__nisw
  1653  		var qrDescriptionNisw string
  1654  
  1655  		if o.DescriptionNisw != nil {
  1656  			qrDescriptionNisw = *o.DescriptionNisw
  1657  		}
  1658  		qDescriptionNisw := qrDescriptionNisw
  1659  		if qDescriptionNisw != "" {
  1660  
  1661  			if err := r.SetQueryParam("description__nisw", qDescriptionNisw); err != nil {
  1662  				return err
  1663  			}
  1664  		}
  1665  	}
  1666  
  1667  	if o.Device != nil {
  1668  
  1669  		// query param device
  1670  		var qrDevice string
  1671  
  1672  		if o.Device != nil {
  1673  			qrDevice = *o.Device
  1674  		}
  1675  		qDevice := qrDevice
  1676  		if qDevice != "" {
  1677  
  1678  			if err := r.SetQueryParam("device", qDevice); err != nil {
  1679  				return err
  1680  			}
  1681  		}
  1682  	}
  1683  
  1684  	if o.Devicen != nil {
  1685  
  1686  		// query param device__n
  1687  		var qrDevicen string
  1688  
  1689  		if o.Devicen != nil {
  1690  			qrDevicen = *o.Devicen
  1691  		}
  1692  		qDevicen := qrDevicen
  1693  		if qDevicen != "" {
  1694  
  1695  			if err := r.SetQueryParam("device__n", qDevicen); err != nil {
  1696  				return err
  1697  			}
  1698  		}
  1699  	}
  1700  
  1701  	if o.DeviceID != nil {
  1702  
  1703  		// query param device_id
  1704  		var qrDeviceID string
  1705  
  1706  		if o.DeviceID != nil {
  1707  			qrDeviceID = *o.DeviceID
  1708  		}
  1709  		qDeviceID := qrDeviceID
  1710  		if qDeviceID != "" {
  1711  
  1712  			if err := r.SetQueryParam("device_id", qDeviceID); err != nil {
  1713  				return err
  1714  			}
  1715  		}
  1716  	}
  1717  
  1718  	if o.DeviceIDn != nil {
  1719  
  1720  		// query param device_id__n
  1721  		var qrDeviceIDn string
  1722  
  1723  		if o.DeviceIDn != nil {
  1724  			qrDeviceIDn = *o.DeviceIDn
  1725  		}
  1726  		qDeviceIDn := qrDeviceIDn
  1727  		if qDeviceIDn != "" {
  1728  
  1729  			if err := r.SetQueryParam("device_id__n", qDeviceIDn); err != nil {
  1730  				return err
  1731  			}
  1732  		}
  1733  	}
  1734  
  1735  	if o.ID != nil {
  1736  
  1737  		// query param id
  1738  		var qrID string
  1739  
  1740  		if o.ID != nil {
  1741  			qrID = *o.ID
  1742  		}
  1743  		qID := qrID
  1744  		if qID != "" {
  1745  
  1746  			if err := r.SetQueryParam("id", qID); err != nil {
  1747  				return err
  1748  			}
  1749  		}
  1750  	}
  1751  
  1752  	if o.IDGt != nil {
  1753  
  1754  		// query param id__gt
  1755  		var qrIDGt string
  1756  
  1757  		if o.IDGt != nil {
  1758  			qrIDGt = *o.IDGt
  1759  		}
  1760  		qIDGt := qrIDGt
  1761  		if qIDGt != "" {
  1762  
  1763  			if err := r.SetQueryParam("id__gt", qIDGt); err != nil {
  1764  				return err
  1765  			}
  1766  		}
  1767  	}
  1768  
  1769  	if o.IDGte != nil {
  1770  
  1771  		// query param id__gte
  1772  		var qrIDGte string
  1773  
  1774  		if o.IDGte != nil {
  1775  			qrIDGte = *o.IDGte
  1776  		}
  1777  		qIDGte := qrIDGte
  1778  		if qIDGte != "" {
  1779  
  1780  			if err := r.SetQueryParam("id__gte", qIDGte); err != nil {
  1781  				return err
  1782  			}
  1783  		}
  1784  	}
  1785  
  1786  	if o.IDLt != nil {
  1787  
  1788  		// query param id__lt
  1789  		var qrIDLt string
  1790  
  1791  		if o.IDLt != nil {
  1792  			qrIDLt = *o.IDLt
  1793  		}
  1794  		qIDLt := qrIDLt
  1795  		if qIDLt != "" {
  1796  
  1797  			if err := r.SetQueryParam("id__lt", qIDLt); err != nil {
  1798  				return err
  1799  			}
  1800  		}
  1801  	}
  1802  
  1803  	if o.IDLte != nil {
  1804  
  1805  		// query param id__lte
  1806  		var qrIDLte string
  1807  
  1808  		if o.IDLte != nil {
  1809  			qrIDLte = *o.IDLte
  1810  		}
  1811  		qIDLte := qrIDLte
  1812  		if qIDLte != "" {
  1813  
  1814  			if err := r.SetQueryParam("id__lte", qIDLte); err != nil {
  1815  				return err
  1816  			}
  1817  		}
  1818  	}
  1819  
  1820  	if o.IDn != nil {
  1821  
  1822  		// query param id__n
  1823  		var qrIDn string
  1824  
  1825  		if o.IDn != nil {
  1826  			qrIDn = *o.IDn
  1827  		}
  1828  		qIDn := qrIDn
  1829  		if qIDn != "" {
  1830  
  1831  			if err := r.SetQueryParam("id__n", qIDn); err != nil {
  1832  				return err
  1833  			}
  1834  		}
  1835  	}
  1836  
  1837  	if o.Label != nil {
  1838  
  1839  		// query param label
  1840  		var qrLabel string
  1841  
  1842  		if o.Label != nil {
  1843  			qrLabel = *o.Label
  1844  		}
  1845  		qLabel := qrLabel
  1846  		if qLabel != "" {
  1847  
  1848  			if err := r.SetQueryParam("label", qLabel); err != nil {
  1849  				return err
  1850  			}
  1851  		}
  1852  	}
  1853  
  1854  	if o.LabelEmpty != nil {
  1855  
  1856  		// query param label__empty
  1857  		var qrLabelEmpty string
  1858  
  1859  		if o.LabelEmpty != nil {
  1860  			qrLabelEmpty = *o.LabelEmpty
  1861  		}
  1862  		qLabelEmpty := qrLabelEmpty
  1863  		if qLabelEmpty != "" {
  1864  
  1865  			if err := r.SetQueryParam("label__empty", qLabelEmpty); err != nil {
  1866  				return err
  1867  			}
  1868  		}
  1869  	}
  1870  
  1871  	if o.LabelIc != nil {
  1872  
  1873  		// query param label__ic
  1874  		var qrLabelIc string
  1875  
  1876  		if o.LabelIc != nil {
  1877  			qrLabelIc = *o.LabelIc
  1878  		}
  1879  		qLabelIc := qrLabelIc
  1880  		if qLabelIc != "" {
  1881  
  1882  			if err := r.SetQueryParam("label__ic", qLabelIc); err != nil {
  1883  				return err
  1884  			}
  1885  		}
  1886  	}
  1887  
  1888  	if o.LabelIe != nil {
  1889  
  1890  		// query param label__ie
  1891  		var qrLabelIe string
  1892  
  1893  		if o.LabelIe != nil {
  1894  			qrLabelIe = *o.LabelIe
  1895  		}
  1896  		qLabelIe := qrLabelIe
  1897  		if qLabelIe != "" {
  1898  
  1899  			if err := r.SetQueryParam("label__ie", qLabelIe); err != nil {
  1900  				return err
  1901  			}
  1902  		}
  1903  	}
  1904  
  1905  	if o.LabelIew != nil {
  1906  
  1907  		// query param label__iew
  1908  		var qrLabelIew string
  1909  
  1910  		if o.LabelIew != nil {
  1911  			qrLabelIew = *o.LabelIew
  1912  		}
  1913  		qLabelIew := qrLabelIew
  1914  		if qLabelIew != "" {
  1915  
  1916  			if err := r.SetQueryParam("label__iew", qLabelIew); err != nil {
  1917  				return err
  1918  			}
  1919  		}
  1920  	}
  1921  
  1922  	if o.LabelIsw != nil {
  1923  
  1924  		// query param label__isw
  1925  		var qrLabelIsw string
  1926  
  1927  		if o.LabelIsw != nil {
  1928  			qrLabelIsw = *o.LabelIsw
  1929  		}
  1930  		qLabelIsw := qrLabelIsw
  1931  		if qLabelIsw != "" {
  1932  
  1933  			if err := r.SetQueryParam("label__isw", qLabelIsw); err != nil {
  1934  				return err
  1935  			}
  1936  		}
  1937  	}
  1938  
  1939  	if o.Labeln != nil {
  1940  
  1941  		// query param label__n
  1942  		var qrLabeln string
  1943  
  1944  		if o.Labeln != nil {
  1945  			qrLabeln = *o.Labeln
  1946  		}
  1947  		qLabeln := qrLabeln
  1948  		if qLabeln != "" {
  1949  
  1950  			if err := r.SetQueryParam("label__n", qLabeln); err != nil {
  1951  				return err
  1952  			}
  1953  		}
  1954  	}
  1955  
  1956  	if o.LabelNic != nil {
  1957  
  1958  		// query param label__nic
  1959  		var qrLabelNic string
  1960  
  1961  		if o.LabelNic != nil {
  1962  			qrLabelNic = *o.LabelNic
  1963  		}
  1964  		qLabelNic := qrLabelNic
  1965  		if qLabelNic != "" {
  1966  
  1967  			if err := r.SetQueryParam("label__nic", qLabelNic); err != nil {
  1968  				return err
  1969  			}
  1970  		}
  1971  	}
  1972  
  1973  	if o.LabelNie != nil {
  1974  
  1975  		// query param label__nie
  1976  		var qrLabelNie string
  1977  
  1978  		if o.LabelNie != nil {
  1979  			qrLabelNie = *o.LabelNie
  1980  		}
  1981  		qLabelNie := qrLabelNie
  1982  		if qLabelNie != "" {
  1983  
  1984  			if err := r.SetQueryParam("label__nie", qLabelNie); err != nil {
  1985  				return err
  1986  			}
  1987  		}
  1988  	}
  1989  
  1990  	if o.LabelNiew != nil {
  1991  
  1992  		// query param label__niew
  1993  		var qrLabelNiew string
  1994  
  1995  		if o.LabelNiew != nil {
  1996  			qrLabelNiew = *o.LabelNiew
  1997  		}
  1998  		qLabelNiew := qrLabelNiew
  1999  		if qLabelNiew != "" {
  2000  
  2001  			if err := r.SetQueryParam("label__niew", qLabelNiew); err != nil {
  2002  				return err
  2003  			}
  2004  		}
  2005  	}
  2006  
  2007  	if o.LabelNisw != nil {
  2008  
  2009  		// query param label__nisw
  2010  		var qrLabelNisw string
  2011  
  2012  		if o.LabelNisw != nil {
  2013  			qrLabelNisw = *o.LabelNisw
  2014  		}
  2015  		qLabelNisw := qrLabelNisw
  2016  		if qLabelNisw != "" {
  2017  
  2018  			if err := r.SetQueryParam("label__nisw", qLabelNisw); err != nil {
  2019  				return err
  2020  			}
  2021  		}
  2022  	}
  2023  
  2024  	if o.LastUpdated != nil {
  2025  
  2026  		// query param last_updated
  2027  		var qrLastUpdated string
  2028  
  2029  		if o.LastUpdated != nil {
  2030  			qrLastUpdated = *o.LastUpdated
  2031  		}
  2032  		qLastUpdated := qrLastUpdated
  2033  		if qLastUpdated != "" {
  2034  
  2035  			if err := r.SetQueryParam("last_updated", qLastUpdated); err != nil {
  2036  				return err
  2037  			}
  2038  		}
  2039  	}
  2040  
  2041  	if o.LastUpdatedGte != nil {
  2042  
  2043  		// query param last_updated__gte
  2044  		var qrLastUpdatedGte string
  2045  
  2046  		if o.LastUpdatedGte != nil {
  2047  			qrLastUpdatedGte = *o.LastUpdatedGte
  2048  		}
  2049  		qLastUpdatedGte := qrLastUpdatedGte
  2050  		if qLastUpdatedGte != "" {
  2051  
  2052  			if err := r.SetQueryParam("last_updated__gte", qLastUpdatedGte); err != nil {
  2053  				return err
  2054  			}
  2055  		}
  2056  	}
  2057  
  2058  	if o.LastUpdatedLte != nil {
  2059  
  2060  		// query param last_updated__lte
  2061  		var qrLastUpdatedLte string
  2062  
  2063  		if o.LastUpdatedLte != nil {
  2064  			qrLastUpdatedLte = *o.LastUpdatedLte
  2065  		}
  2066  		qLastUpdatedLte := qrLastUpdatedLte
  2067  		if qLastUpdatedLte != "" {
  2068  
  2069  			if err := r.SetQueryParam("last_updated__lte", qLastUpdatedLte); err != nil {
  2070  				return err
  2071  			}
  2072  		}
  2073  	}
  2074  
  2075  	if o.Limit != nil {
  2076  
  2077  		// query param limit
  2078  		var qrLimit int64
  2079  
  2080  		if o.Limit != nil {
  2081  			qrLimit = *o.Limit
  2082  		}
  2083  		qLimit := swag.FormatInt64(qrLimit)
  2084  		if qLimit != "" {
  2085  
  2086  			if err := r.SetQueryParam("limit", qLimit); err != nil {
  2087  				return err
  2088  			}
  2089  		}
  2090  	}
  2091  
  2092  	if o.MaximumDraw != nil {
  2093  
  2094  		// query param maximum_draw
  2095  		var qrMaximumDraw string
  2096  
  2097  		if o.MaximumDraw != nil {
  2098  			qrMaximumDraw = *o.MaximumDraw
  2099  		}
  2100  		qMaximumDraw := qrMaximumDraw
  2101  		if qMaximumDraw != "" {
  2102  
  2103  			if err := r.SetQueryParam("maximum_draw", qMaximumDraw); err != nil {
  2104  				return err
  2105  			}
  2106  		}
  2107  	}
  2108  
  2109  	if o.MaximumDrawGt != nil {
  2110  
  2111  		// query param maximum_draw__gt
  2112  		var qrMaximumDrawGt string
  2113  
  2114  		if o.MaximumDrawGt != nil {
  2115  			qrMaximumDrawGt = *o.MaximumDrawGt
  2116  		}
  2117  		qMaximumDrawGt := qrMaximumDrawGt
  2118  		if qMaximumDrawGt != "" {
  2119  
  2120  			if err := r.SetQueryParam("maximum_draw__gt", qMaximumDrawGt); err != nil {
  2121  				return err
  2122  			}
  2123  		}
  2124  	}
  2125  
  2126  	if o.MaximumDrawGte != nil {
  2127  
  2128  		// query param maximum_draw__gte
  2129  		var qrMaximumDrawGte string
  2130  
  2131  		if o.MaximumDrawGte != nil {
  2132  			qrMaximumDrawGte = *o.MaximumDrawGte
  2133  		}
  2134  		qMaximumDrawGte := qrMaximumDrawGte
  2135  		if qMaximumDrawGte != "" {
  2136  
  2137  			if err := r.SetQueryParam("maximum_draw__gte", qMaximumDrawGte); err != nil {
  2138  				return err
  2139  			}
  2140  		}
  2141  	}
  2142  
  2143  	if o.MaximumDrawLt != nil {
  2144  
  2145  		// query param maximum_draw__lt
  2146  		var qrMaximumDrawLt string
  2147  
  2148  		if o.MaximumDrawLt != nil {
  2149  			qrMaximumDrawLt = *o.MaximumDrawLt
  2150  		}
  2151  		qMaximumDrawLt := qrMaximumDrawLt
  2152  		if qMaximumDrawLt != "" {
  2153  
  2154  			if err := r.SetQueryParam("maximum_draw__lt", qMaximumDrawLt); err != nil {
  2155  				return err
  2156  			}
  2157  		}
  2158  	}
  2159  
  2160  	if o.MaximumDrawLte != nil {
  2161  
  2162  		// query param maximum_draw__lte
  2163  		var qrMaximumDrawLte string
  2164  
  2165  		if o.MaximumDrawLte != nil {
  2166  			qrMaximumDrawLte = *o.MaximumDrawLte
  2167  		}
  2168  		qMaximumDrawLte := qrMaximumDrawLte
  2169  		if qMaximumDrawLte != "" {
  2170  
  2171  			if err := r.SetQueryParam("maximum_draw__lte", qMaximumDrawLte); err != nil {
  2172  				return err
  2173  			}
  2174  		}
  2175  	}
  2176  
  2177  	if o.MaximumDrawn != nil {
  2178  
  2179  		// query param maximum_draw__n
  2180  		var qrMaximumDrawn string
  2181  
  2182  		if o.MaximumDrawn != nil {
  2183  			qrMaximumDrawn = *o.MaximumDrawn
  2184  		}
  2185  		qMaximumDrawn := qrMaximumDrawn
  2186  		if qMaximumDrawn != "" {
  2187  
  2188  			if err := r.SetQueryParam("maximum_draw__n", qMaximumDrawn); err != nil {
  2189  				return err
  2190  			}
  2191  		}
  2192  	}
  2193  
  2194  	if o.Name != nil {
  2195  
  2196  		// query param name
  2197  		var qrName string
  2198  
  2199  		if o.Name != nil {
  2200  			qrName = *o.Name
  2201  		}
  2202  		qName := qrName
  2203  		if qName != "" {
  2204  
  2205  			if err := r.SetQueryParam("name", qName); err != nil {
  2206  				return err
  2207  			}
  2208  		}
  2209  	}
  2210  
  2211  	if o.NameEmpty != nil {
  2212  
  2213  		// query param name__empty
  2214  		var qrNameEmpty string
  2215  
  2216  		if o.NameEmpty != nil {
  2217  			qrNameEmpty = *o.NameEmpty
  2218  		}
  2219  		qNameEmpty := qrNameEmpty
  2220  		if qNameEmpty != "" {
  2221  
  2222  			if err := r.SetQueryParam("name__empty", qNameEmpty); err != nil {
  2223  				return err
  2224  			}
  2225  		}
  2226  	}
  2227  
  2228  	if o.NameIc != nil {
  2229  
  2230  		// query param name__ic
  2231  		var qrNameIc string
  2232  
  2233  		if o.NameIc != nil {
  2234  			qrNameIc = *o.NameIc
  2235  		}
  2236  		qNameIc := qrNameIc
  2237  		if qNameIc != "" {
  2238  
  2239  			if err := r.SetQueryParam("name__ic", qNameIc); err != nil {
  2240  				return err
  2241  			}
  2242  		}
  2243  	}
  2244  
  2245  	if o.NameIe != nil {
  2246  
  2247  		// query param name__ie
  2248  		var qrNameIe string
  2249  
  2250  		if o.NameIe != nil {
  2251  			qrNameIe = *o.NameIe
  2252  		}
  2253  		qNameIe := qrNameIe
  2254  		if qNameIe != "" {
  2255  
  2256  			if err := r.SetQueryParam("name__ie", qNameIe); err != nil {
  2257  				return err
  2258  			}
  2259  		}
  2260  	}
  2261  
  2262  	if o.NameIew != nil {
  2263  
  2264  		// query param name__iew
  2265  		var qrNameIew string
  2266  
  2267  		if o.NameIew != nil {
  2268  			qrNameIew = *o.NameIew
  2269  		}
  2270  		qNameIew := qrNameIew
  2271  		if qNameIew != "" {
  2272  
  2273  			if err := r.SetQueryParam("name__iew", qNameIew); err != nil {
  2274  				return err
  2275  			}
  2276  		}
  2277  	}
  2278  
  2279  	if o.NameIsw != nil {
  2280  
  2281  		// query param name__isw
  2282  		var qrNameIsw string
  2283  
  2284  		if o.NameIsw != nil {
  2285  			qrNameIsw = *o.NameIsw
  2286  		}
  2287  		qNameIsw := qrNameIsw
  2288  		if qNameIsw != "" {
  2289  
  2290  			if err := r.SetQueryParam("name__isw", qNameIsw); err != nil {
  2291  				return err
  2292  			}
  2293  		}
  2294  	}
  2295  
  2296  	if o.Namen != nil {
  2297  
  2298  		// query param name__n
  2299  		var qrNamen string
  2300  
  2301  		if o.Namen != nil {
  2302  			qrNamen = *o.Namen
  2303  		}
  2304  		qNamen := qrNamen
  2305  		if qNamen != "" {
  2306  
  2307  			if err := r.SetQueryParam("name__n", qNamen); err != nil {
  2308  				return err
  2309  			}
  2310  		}
  2311  	}
  2312  
  2313  	if o.NameNic != nil {
  2314  
  2315  		// query param name__nic
  2316  		var qrNameNic string
  2317  
  2318  		if o.NameNic != nil {
  2319  			qrNameNic = *o.NameNic
  2320  		}
  2321  		qNameNic := qrNameNic
  2322  		if qNameNic != "" {
  2323  
  2324  			if err := r.SetQueryParam("name__nic", qNameNic); err != nil {
  2325  				return err
  2326  			}
  2327  		}
  2328  	}
  2329  
  2330  	if o.NameNie != nil {
  2331  
  2332  		// query param name__nie
  2333  		var qrNameNie string
  2334  
  2335  		if o.NameNie != nil {
  2336  			qrNameNie = *o.NameNie
  2337  		}
  2338  		qNameNie := qrNameNie
  2339  		if qNameNie != "" {
  2340  
  2341  			if err := r.SetQueryParam("name__nie", qNameNie); err != nil {
  2342  				return err
  2343  			}
  2344  		}
  2345  	}
  2346  
  2347  	if o.NameNiew != nil {
  2348  
  2349  		// query param name__niew
  2350  		var qrNameNiew string
  2351  
  2352  		if o.NameNiew != nil {
  2353  			qrNameNiew = *o.NameNiew
  2354  		}
  2355  		qNameNiew := qrNameNiew
  2356  		if qNameNiew != "" {
  2357  
  2358  			if err := r.SetQueryParam("name__niew", qNameNiew); err != nil {
  2359  				return err
  2360  			}
  2361  		}
  2362  	}
  2363  
  2364  	if o.NameNisw != nil {
  2365  
  2366  		// query param name__nisw
  2367  		var qrNameNisw string
  2368  
  2369  		if o.NameNisw != nil {
  2370  			qrNameNisw = *o.NameNisw
  2371  		}
  2372  		qNameNisw := qrNameNisw
  2373  		if qNameNisw != "" {
  2374  
  2375  			if err := r.SetQueryParam("name__nisw", qNameNisw); err != nil {
  2376  				return err
  2377  			}
  2378  		}
  2379  	}
  2380  
  2381  	if o.Offset != nil {
  2382  
  2383  		// query param offset
  2384  		var qrOffset int64
  2385  
  2386  		if o.Offset != nil {
  2387  			qrOffset = *o.Offset
  2388  		}
  2389  		qOffset := swag.FormatInt64(qrOffset)
  2390  		if qOffset != "" {
  2391  
  2392  			if err := r.SetQueryParam("offset", qOffset); err != nil {
  2393  				return err
  2394  			}
  2395  		}
  2396  	}
  2397  
  2398  	if o.Q != nil {
  2399  
  2400  		// query param q
  2401  		var qrQ string
  2402  
  2403  		if o.Q != nil {
  2404  			qrQ = *o.Q
  2405  		}
  2406  		qQ := qrQ
  2407  		if qQ != "" {
  2408  
  2409  			if err := r.SetQueryParam("q", qQ); err != nil {
  2410  				return err
  2411  			}
  2412  		}
  2413  	}
  2414  
  2415  	if o.Region != nil {
  2416  
  2417  		// query param region
  2418  		var qrRegion string
  2419  
  2420  		if o.Region != nil {
  2421  			qrRegion = *o.Region
  2422  		}
  2423  		qRegion := qrRegion
  2424  		if qRegion != "" {
  2425  
  2426  			if err := r.SetQueryParam("region", qRegion); err != nil {
  2427  				return err
  2428  			}
  2429  		}
  2430  	}
  2431  
  2432  	if o.Regionn != nil {
  2433  
  2434  		// query param region__n
  2435  		var qrRegionn string
  2436  
  2437  		if o.Regionn != nil {
  2438  			qrRegionn = *o.Regionn
  2439  		}
  2440  		qRegionn := qrRegionn
  2441  		if qRegionn != "" {
  2442  
  2443  			if err := r.SetQueryParam("region__n", qRegionn); err != nil {
  2444  				return err
  2445  			}
  2446  		}
  2447  	}
  2448  
  2449  	if o.RegionID != nil {
  2450  
  2451  		// query param region_id
  2452  		var qrRegionID string
  2453  
  2454  		if o.RegionID != nil {
  2455  			qrRegionID = *o.RegionID
  2456  		}
  2457  		qRegionID := qrRegionID
  2458  		if qRegionID != "" {
  2459  
  2460  			if err := r.SetQueryParam("region_id", qRegionID); err != nil {
  2461  				return err
  2462  			}
  2463  		}
  2464  	}
  2465  
  2466  	if o.RegionIDn != nil {
  2467  
  2468  		// query param region_id__n
  2469  		var qrRegionIDn string
  2470  
  2471  		if o.RegionIDn != nil {
  2472  			qrRegionIDn = *o.RegionIDn
  2473  		}
  2474  		qRegionIDn := qrRegionIDn
  2475  		if qRegionIDn != "" {
  2476  
  2477  			if err := r.SetQueryParam("region_id__n", qRegionIDn); err != nil {
  2478  				return err
  2479  			}
  2480  		}
  2481  	}
  2482  
  2483  	if o.Site != nil {
  2484  
  2485  		// query param site
  2486  		var qrSite string
  2487  
  2488  		if o.Site != nil {
  2489  			qrSite = *o.Site
  2490  		}
  2491  		qSite := qrSite
  2492  		if qSite != "" {
  2493  
  2494  			if err := r.SetQueryParam("site", qSite); err != nil {
  2495  				return err
  2496  			}
  2497  		}
  2498  	}
  2499  
  2500  	if o.Siten != nil {
  2501  
  2502  		// query param site__n
  2503  		var qrSiten string
  2504  
  2505  		if o.Siten != nil {
  2506  			qrSiten = *o.Siten
  2507  		}
  2508  		qSiten := qrSiten
  2509  		if qSiten != "" {
  2510  
  2511  			if err := r.SetQueryParam("site__n", qSiten); err != nil {
  2512  				return err
  2513  			}
  2514  		}
  2515  	}
  2516  
  2517  	if o.SiteGroup != nil {
  2518  
  2519  		// query param site_group
  2520  		var qrSiteGroup string
  2521  
  2522  		if o.SiteGroup != nil {
  2523  			qrSiteGroup = *o.SiteGroup
  2524  		}
  2525  		qSiteGroup := qrSiteGroup
  2526  		if qSiteGroup != "" {
  2527  
  2528  			if err := r.SetQueryParam("site_group", qSiteGroup); err != nil {
  2529  				return err
  2530  			}
  2531  		}
  2532  	}
  2533  
  2534  	if o.SiteGroupn != nil {
  2535  
  2536  		// query param site_group__n
  2537  		var qrSiteGroupn string
  2538  
  2539  		if o.SiteGroupn != nil {
  2540  			qrSiteGroupn = *o.SiteGroupn
  2541  		}
  2542  		qSiteGroupn := qrSiteGroupn
  2543  		if qSiteGroupn != "" {
  2544  
  2545  			if err := r.SetQueryParam("site_group__n", qSiteGroupn); err != nil {
  2546  				return err
  2547  			}
  2548  		}
  2549  	}
  2550  
  2551  	if o.SiteGroupID != nil {
  2552  
  2553  		// query param site_group_id
  2554  		var qrSiteGroupID string
  2555  
  2556  		if o.SiteGroupID != nil {
  2557  			qrSiteGroupID = *o.SiteGroupID
  2558  		}
  2559  		qSiteGroupID := qrSiteGroupID
  2560  		if qSiteGroupID != "" {
  2561  
  2562  			if err := r.SetQueryParam("site_group_id", qSiteGroupID); err != nil {
  2563  				return err
  2564  			}
  2565  		}
  2566  	}
  2567  
  2568  	if o.SiteGroupIDn != nil {
  2569  
  2570  		// query param site_group_id__n
  2571  		var qrSiteGroupIDn string
  2572  
  2573  		if o.SiteGroupIDn != nil {
  2574  			qrSiteGroupIDn = *o.SiteGroupIDn
  2575  		}
  2576  		qSiteGroupIDn := qrSiteGroupIDn
  2577  		if qSiteGroupIDn != "" {
  2578  
  2579  			if err := r.SetQueryParam("site_group_id__n", qSiteGroupIDn); err != nil {
  2580  				return err
  2581  			}
  2582  		}
  2583  	}
  2584  
  2585  	if o.SiteID != nil {
  2586  
  2587  		// query param site_id
  2588  		var qrSiteID string
  2589  
  2590  		if o.SiteID != nil {
  2591  			qrSiteID = *o.SiteID
  2592  		}
  2593  		qSiteID := qrSiteID
  2594  		if qSiteID != "" {
  2595  
  2596  			if err := r.SetQueryParam("site_id", qSiteID); err != nil {
  2597  				return err
  2598  			}
  2599  		}
  2600  	}
  2601  
  2602  	if o.SiteIDn != nil {
  2603  
  2604  		// query param site_id__n
  2605  		var qrSiteIDn string
  2606  
  2607  		if o.SiteIDn != nil {
  2608  			qrSiteIDn = *o.SiteIDn
  2609  		}
  2610  		qSiteIDn := qrSiteIDn
  2611  		if qSiteIDn != "" {
  2612  
  2613  			if err := r.SetQueryParam("site_id__n", qSiteIDn); err != nil {
  2614  				return err
  2615  			}
  2616  		}
  2617  	}
  2618  
  2619  	if o.Tag != nil {
  2620  
  2621  		// query param tag
  2622  		var qrTag string
  2623  
  2624  		if o.Tag != nil {
  2625  			qrTag = *o.Tag
  2626  		}
  2627  		qTag := qrTag
  2628  		if qTag != "" {
  2629  
  2630  			if err := r.SetQueryParam("tag", qTag); err != nil {
  2631  				return err
  2632  			}
  2633  		}
  2634  	}
  2635  
  2636  	if o.Tagn != nil {
  2637  
  2638  		// query param tag__n
  2639  		var qrTagn string
  2640  
  2641  		if o.Tagn != nil {
  2642  			qrTagn = *o.Tagn
  2643  		}
  2644  		qTagn := qrTagn
  2645  		if qTagn != "" {
  2646  
  2647  			if err := r.SetQueryParam("tag__n", qTagn); err != nil {
  2648  				return err
  2649  			}
  2650  		}
  2651  	}
  2652  
  2653  	if o.Type != nil {
  2654  
  2655  		// query param type
  2656  		var qrType string
  2657  
  2658  		if o.Type != nil {
  2659  			qrType = *o.Type
  2660  		}
  2661  		qType := qrType
  2662  		if qType != "" {
  2663  
  2664  			if err := r.SetQueryParam("type", qType); err != nil {
  2665  				return err
  2666  			}
  2667  		}
  2668  	}
  2669  
  2670  	if o.Typen != nil {
  2671  
  2672  		// query param type__n
  2673  		var qrTypen string
  2674  
  2675  		if o.Typen != nil {
  2676  			qrTypen = *o.Typen
  2677  		}
  2678  		qTypen := qrTypen
  2679  		if qTypen != "" {
  2680  
  2681  			if err := r.SetQueryParam("type__n", qTypen); err != nil {
  2682  				return err
  2683  			}
  2684  		}
  2685  	}
  2686  
  2687  	if len(res) > 0 {
  2688  		return errors.CompositeValidationError(res...)
  2689  	}
  2690  	return nil
  2691  }