github.com/digitalocean/go-netbox@v0.0.2/netbox/client/circuits/circuits_circuit_terminations_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 circuits
    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  // NewCircuitsCircuitTerminationsListParams creates a new CircuitsCircuitTerminationsListParams 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 NewCircuitsCircuitTerminationsListParams() *CircuitsCircuitTerminationsListParams {
    42  	return &CircuitsCircuitTerminationsListParams{
    43  		timeout: cr.DefaultTimeout,
    44  	}
    45  }
    46  
    47  // NewCircuitsCircuitTerminationsListParamsWithTimeout creates a new CircuitsCircuitTerminationsListParams object
    48  // with the ability to set a timeout on a request.
    49  func NewCircuitsCircuitTerminationsListParamsWithTimeout(timeout time.Duration) *CircuitsCircuitTerminationsListParams {
    50  	return &CircuitsCircuitTerminationsListParams{
    51  		timeout: timeout,
    52  	}
    53  }
    54  
    55  // NewCircuitsCircuitTerminationsListParamsWithContext creates a new CircuitsCircuitTerminationsListParams object
    56  // with the ability to set a context for a request.
    57  func NewCircuitsCircuitTerminationsListParamsWithContext(ctx context.Context) *CircuitsCircuitTerminationsListParams {
    58  	return &CircuitsCircuitTerminationsListParams{
    59  		Context: ctx,
    60  	}
    61  }
    62  
    63  // NewCircuitsCircuitTerminationsListParamsWithHTTPClient creates a new CircuitsCircuitTerminationsListParams object
    64  // with the ability to set a custom HTTPClient for a request.
    65  func NewCircuitsCircuitTerminationsListParamsWithHTTPClient(client *http.Client) *CircuitsCircuitTerminationsListParams {
    66  	return &CircuitsCircuitTerminationsListParams{
    67  		HTTPClient: client,
    68  	}
    69  }
    70  
    71  /* CircuitsCircuitTerminationsListParams contains all the parameters to send to the API endpoint
    72     for the circuits circuit terminations list operation.
    73  
    74     Typically these are written to a http.Request.
    75  */
    76  type CircuitsCircuitTerminationsListParams struct {
    77  
    78  	// Cabled.
    79  	Cabled *string
    80  
    81  	// CircuitID.
    82  	CircuitID *string
    83  
    84  	// CircuitIDn.
    85  	CircuitIDn *string
    86  
    87  	// Created.
    88  	Created *string
    89  
    90  	// CreatedGte.
    91  	CreatedGte *string
    92  
    93  	// CreatedLte.
    94  	CreatedLte *string
    95  
    96  	// ID.
    97  	ID *string
    98  
    99  	// IDGt.
   100  	IDGt *string
   101  
   102  	// IDGte.
   103  	IDGte *string
   104  
   105  	// IDLt.
   106  	IDLt *string
   107  
   108  	// IDLte.
   109  	IDLte *string
   110  
   111  	// IDn.
   112  	IDn *string
   113  
   114  	// LastUpdated.
   115  	LastUpdated *string
   116  
   117  	// LastUpdatedGte.
   118  	LastUpdatedGte *string
   119  
   120  	// LastUpdatedLte.
   121  	LastUpdatedLte *string
   122  
   123  	/* Limit.
   124  
   125  	   Number of results to return per page.
   126  	*/
   127  	Limit *int64
   128  
   129  	/* Offset.
   130  
   131  	   The initial index from which to return the results.
   132  	*/
   133  	Offset *int64
   134  
   135  	// PortSpeed.
   136  	PortSpeed *string
   137  
   138  	// PortSpeedGt.
   139  	PortSpeedGt *string
   140  
   141  	// PortSpeedGte.
   142  	PortSpeedGte *string
   143  
   144  	// PortSpeedLt.
   145  	PortSpeedLt *string
   146  
   147  	// PortSpeedLte.
   148  	PortSpeedLte *string
   149  
   150  	// PortSpeedn.
   151  	PortSpeedn *string
   152  
   153  	// ProviderNetworkID.
   154  	ProviderNetworkID *string
   155  
   156  	// ProviderNetworkIDn.
   157  	ProviderNetworkIDn *string
   158  
   159  	// Q.
   160  	Q *string
   161  
   162  	// Site.
   163  	Site *string
   164  
   165  	// Siten.
   166  	Siten *string
   167  
   168  	// SiteID.
   169  	SiteID *string
   170  
   171  	// SiteIDn.
   172  	SiteIDn *string
   173  
   174  	// TermSide.
   175  	TermSide *string
   176  
   177  	// TermSiden.
   178  	TermSiden *string
   179  
   180  	// UpstreamSpeed.
   181  	UpstreamSpeed *string
   182  
   183  	// UpstreamSpeedGt.
   184  	UpstreamSpeedGt *string
   185  
   186  	// UpstreamSpeedGte.
   187  	UpstreamSpeedGte *string
   188  
   189  	// UpstreamSpeedLt.
   190  	UpstreamSpeedLt *string
   191  
   192  	// UpstreamSpeedLte.
   193  	UpstreamSpeedLte *string
   194  
   195  	// UpstreamSpeedn.
   196  	UpstreamSpeedn *string
   197  
   198  	// XconnectID.
   199  	XconnectID *string
   200  
   201  	// XconnectIDEmpty.
   202  	XconnectIDEmpty *string
   203  
   204  	// XconnectIDIc.
   205  	XconnectIDIc *string
   206  
   207  	// XconnectIDIe.
   208  	XconnectIDIe *string
   209  
   210  	// XconnectIDIew.
   211  	XconnectIDIew *string
   212  
   213  	// XconnectIDIsw.
   214  	XconnectIDIsw *string
   215  
   216  	// XconnectIDn.
   217  	XconnectIDn *string
   218  
   219  	// XconnectIDNic.
   220  	XconnectIDNic *string
   221  
   222  	// XconnectIDNie.
   223  	XconnectIDNie *string
   224  
   225  	// XconnectIDNiew.
   226  	XconnectIDNiew *string
   227  
   228  	// XconnectIDNisw.
   229  	XconnectIDNisw *string
   230  
   231  	timeout    time.Duration
   232  	Context    context.Context
   233  	HTTPClient *http.Client
   234  }
   235  
   236  // WithDefaults hydrates default values in the circuits circuit terminations list params (not the query body).
   237  //
   238  // All values with no default are reset to their zero value.
   239  func (o *CircuitsCircuitTerminationsListParams) WithDefaults() *CircuitsCircuitTerminationsListParams {
   240  	o.SetDefaults()
   241  	return o
   242  }
   243  
   244  // SetDefaults hydrates default values in the circuits circuit terminations list params (not the query body).
   245  //
   246  // All values with no default are reset to their zero value.
   247  func (o *CircuitsCircuitTerminationsListParams) SetDefaults() {
   248  	// no default values defined for this parameter
   249  }
   250  
   251  // WithTimeout adds the timeout to the circuits circuit terminations list params
   252  func (o *CircuitsCircuitTerminationsListParams) WithTimeout(timeout time.Duration) *CircuitsCircuitTerminationsListParams {
   253  	o.SetTimeout(timeout)
   254  	return o
   255  }
   256  
   257  // SetTimeout adds the timeout to the circuits circuit terminations list params
   258  func (o *CircuitsCircuitTerminationsListParams) SetTimeout(timeout time.Duration) {
   259  	o.timeout = timeout
   260  }
   261  
   262  // WithContext adds the context to the circuits circuit terminations list params
   263  func (o *CircuitsCircuitTerminationsListParams) WithContext(ctx context.Context) *CircuitsCircuitTerminationsListParams {
   264  	o.SetContext(ctx)
   265  	return o
   266  }
   267  
   268  // SetContext adds the context to the circuits circuit terminations list params
   269  func (o *CircuitsCircuitTerminationsListParams) SetContext(ctx context.Context) {
   270  	o.Context = ctx
   271  }
   272  
   273  // WithHTTPClient adds the HTTPClient to the circuits circuit terminations list params
   274  func (o *CircuitsCircuitTerminationsListParams) WithHTTPClient(client *http.Client) *CircuitsCircuitTerminationsListParams {
   275  	o.SetHTTPClient(client)
   276  	return o
   277  }
   278  
   279  // SetHTTPClient adds the HTTPClient to the circuits circuit terminations list params
   280  func (o *CircuitsCircuitTerminationsListParams) SetHTTPClient(client *http.Client) {
   281  	o.HTTPClient = client
   282  }
   283  
   284  // WithCabled adds the cabled to the circuits circuit terminations list params
   285  func (o *CircuitsCircuitTerminationsListParams) WithCabled(cabled *string) *CircuitsCircuitTerminationsListParams {
   286  	o.SetCabled(cabled)
   287  	return o
   288  }
   289  
   290  // SetCabled adds the cabled to the circuits circuit terminations list params
   291  func (o *CircuitsCircuitTerminationsListParams) SetCabled(cabled *string) {
   292  	o.Cabled = cabled
   293  }
   294  
   295  // WithCircuitID adds the circuitID to the circuits circuit terminations list params
   296  func (o *CircuitsCircuitTerminationsListParams) WithCircuitID(circuitID *string) *CircuitsCircuitTerminationsListParams {
   297  	o.SetCircuitID(circuitID)
   298  	return o
   299  }
   300  
   301  // SetCircuitID adds the circuitId to the circuits circuit terminations list params
   302  func (o *CircuitsCircuitTerminationsListParams) SetCircuitID(circuitID *string) {
   303  	o.CircuitID = circuitID
   304  }
   305  
   306  // WithCircuitIDn adds the circuitIDn to the circuits circuit terminations list params
   307  func (o *CircuitsCircuitTerminationsListParams) WithCircuitIDn(circuitIDn *string) *CircuitsCircuitTerminationsListParams {
   308  	o.SetCircuitIDn(circuitIDn)
   309  	return o
   310  }
   311  
   312  // SetCircuitIDn adds the circuitIdN to the circuits circuit terminations list params
   313  func (o *CircuitsCircuitTerminationsListParams) SetCircuitIDn(circuitIDn *string) {
   314  	o.CircuitIDn = circuitIDn
   315  }
   316  
   317  // WithCreated adds the created to the circuits circuit terminations list params
   318  func (o *CircuitsCircuitTerminationsListParams) WithCreated(created *string) *CircuitsCircuitTerminationsListParams {
   319  	o.SetCreated(created)
   320  	return o
   321  }
   322  
   323  // SetCreated adds the created to the circuits circuit terminations list params
   324  func (o *CircuitsCircuitTerminationsListParams) SetCreated(created *string) {
   325  	o.Created = created
   326  }
   327  
   328  // WithCreatedGte adds the createdGte to the circuits circuit terminations list params
   329  func (o *CircuitsCircuitTerminationsListParams) WithCreatedGte(createdGte *string) *CircuitsCircuitTerminationsListParams {
   330  	o.SetCreatedGte(createdGte)
   331  	return o
   332  }
   333  
   334  // SetCreatedGte adds the createdGte to the circuits circuit terminations list params
   335  func (o *CircuitsCircuitTerminationsListParams) SetCreatedGte(createdGte *string) {
   336  	o.CreatedGte = createdGte
   337  }
   338  
   339  // WithCreatedLte adds the createdLte to the circuits circuit terminations list params
   340  func (o *CircuitsCircuitTerminationsListParams) WithCreatedLte(createdLte *string) *CircuitsCircuitTerminationsListParams {
   341  	o.SetCreatedLte(createdLte)
   342  	return o
   343  }
   344  
   345  // SetCreatedLte adds the createdLte to the circuits circuit terminations list params
   346  func (o *CircuitsCircuitTerminationsListParams) SetCreatedLte(createdLte *string) {
   347  	o.CreatedLte = createdLte
   348  }
   349  
   350  // WithID adds the id to the circuits circuit terminations list params
   351  func (o *CircuitsCircuitTerminationsListParams) WithID(id *string) *CircuitsCircuitTerminationsListParams {
   352  	o.SetID(id)
   353  	return o
   354  }
   355  
   356  // SetID adds the id to the circuits circuit terminations list params
   357  func (o *CircuitsCircuitTerminationsListParams) SetID(id *string) {
   358  	o.ID = id
   359  }
   360  
   361  // WithIDGt adds the iDGt to the circuits circuit terminations list params
   362  func (o *CircuitsCircuitTerminationsListParams) WithIDGt(iDGt *string) *CircuitsCircuitTerminationsListParams {
   363  	o.SetIDGt(iDGt)
   364  	return o
   365  }
   366  
   367  // SetIDGt adds the idGt to the circuits circuit terminations list params
   368  func (o *CircuitsCircuitTerminationsListParams) SetIDGt(iDGt *string) {
   369  	o.IDGt = iDGt
   370  }
   371  
   372  // WithIDGte adds the iDGte to the circuits circuit terminations list params
   373  func (o *CircuitsCircuitTerminationsListParams) WithIDGte(iDGte *string) *CircuitsCircuitTerminationsListParams {
   374  	o.SetIDGte(iDGte)
   375  	return o
   376  }
   377  
   378  // SetIDGte adds the idGte to the circuits circuit terminations list params
   379  func (o *CircuitsCircuitTerminationsListParams) SetIDGte(iDGte *string) {
   380  	o.IDGte = iDGte
   381  }
   382  
   383  // WithIDLt adds the iDLt to the circuits circuit terminations list params
   384  func (o *CircuitsCircuitTerminationsListParams) WithIDLt(iDLt *string) *CircuitsCircuitTerminationsListParams {
   385  	o.SetIDLt(iDLt)
   386  	return o
   387  }
   388  
   389  // SetIDLt adds the idLt to the circuits circuit terminations list params
   390  func (o *CircuitsCircuitTerminationsListParams) SetIDLt(iDLt *string) {
   391  	o.IDLt = iDLt
   392  }
   393  
   394  // WithIDLte adds the iDLte to the circuits circuit terminations list params
   395  func (o *CircuitsCircuitTerminationsListParams) WithIDLte(iDLte *string) *CircuitsCircuitTerminationsListParams {
   396  	o.SetIDLte(iDLte)
   397  	return o
   398  }
   399  
   400  // SetIDLte adds the idLte to the circuits circuit terminations list params
   401  func (o *CircuitsCircuitTerminationsListParams) SetIDLte(iDLte *string) {
   402  	o.IDLte = iDLte
   403  }
   404  
   405  // WithIDn adds the iDn to the circuits circuit terminations list params
   406  func (o *CircuitsCircuitTerminationsListParams) WithIDn(iDn *string) *CircuitsCircuitTerminationsListParams {
   407  	o.SetIDn(iDn)
   408  	return o
   409  }
   410  
   411  // SetIDn adds the idN to the circuits circuit terminations list params
   412  func (o *CircuitsCircuitTerminationsListParams) SetIDn(iDn *string) {
   413  	o.IDn = iDn
   414  }
   415  
   416  // WithLastUpdated adds the lastUpdated to the circuits circuit terminations list params
   417  func (o *CircuitsCircuitTerminationsListParams) WithLastUpdated(lastUpdated *string) *CircuitsCircuitTerminationsListParams {
   418  	o.SetLastUpdated(lastUpdated)
   419  	return o
   420  }
   421  
   422  // SetLastUpdated adds the lastUpdated to the circuits circuit terminations list params
   423  func (o *CircuitsCircuitTerminationsListParams) SetLastUpdated(lastUpdated *string) {
   424  	o.LastUpdated = lastUpdated
   425  }
   426  
   427  // WithLastUpdatedGte adds the lastUpdatedGte to the circuits circuit terminations list params
   428  func (o *CircuitsCircuitTerminationsListParams) WithLastUpdatedGte(lastUpdatedGte *string) *CircuitsCircuitTerminationsListParams {
   429  	o.SetLastUpdatedGte(lastUpdatedGte)
   430  	return o
   431  }
   432  
   433  // SetLastUpdatedGte adds the lastUpdatedGte to the circuits circuit terminations list params
   434  func (o *CircuitsCircuitTerminationsListParams) SetLastUpdatedGte(lastUpdatedGte *string) {
   435  	o.LastUpdatedGte = lastUpdatedGte
   436  }
   437  
   438  // WithLastUpdatedLte adds the lastUpdatedLte to the circuits circuit terminations list params
   439  func (o *CircuitsCircuitTerminationsListParams) WithLastUpdatedLte(lastUpdatedLte *string) *CircuitsCircuitTerminationsListParams {
   440  	o.SetLastUpdatedLte(lastUpdatedLte)
   441  	return o
   442  }
   443  
   444  // SetLastUpdatedLte adds the lastUpdatedLte to the circuits circuit terminations list params
   445  func (o *CircuitsCircuitTerminationsListParams) SetLastUpdatedLte(lastUpdatedLte *string) {
   446  	o.LastUpdatedLte = lastUpdatedLte
   447  }
   448  
   449  // WithLimit adds the limit to the circuits circuit terminations list params
   450  func (o *CircuitsCircuitTerminationsListParams) WithLimit(limit *int64) *CircuitsCircuitTerminationsListParams {
   451  	o.SetLimit(limit)
   452  	return o
   453  }
   454  
   455  // SetLimit adds the limit to the circuits circuit terminations list params
   456  func (o *CircuitsCircuitTerminationsListParams) SetLimit(limit *int64) {
   457  	o.Limit = limit
   458  }
   459  
   460  // WithOffset adds the offset to the circuits circuit terminations list params
   461  func (o *CircuitsCircuitTerminationsListParams) WithOffset(offset *int64) *CircuitsCircuitTerminationsListParams {
   462  	o.SetOffset(offset)
   463  	return o
   464  }
   465  
   466  // SetOffset adds the offset to the circuits circuit terminations list params
   467  func (o *CircuitsCircuitTerminationsListParams) SetOffset(offset *int64) {
   468  	o.Offset = offset
   469  }
   470  
   471  // WithPortSpeed adds the portSpeed to the circuits circuit terminations list params
   472  func (o *CircuitsCircuitTerminationsListParams) WithPortSpeed(portSpeed *string) *CircuitsCircuitTerminationsListParams {
   473  	o.SetPortSpeed(portSpeed)
   474  	return o
   475  }
   476  
   477  // SetPortSpeed adds the portSpeed to the circuits circuit terminations list params
   478  func (o *CircuitsCircuitTerminationsListParams) SetPortSpeed(portSpeed *string) {
   479  	o.PortSpeed = portSpeed
   480  }
   481  
   482  // WithPortSpeedGt adds the portSpeedGt to the circuits circuit terminations list params
   483  func (o *CircuitsCircuitTerminationsListParams) WithPortSpeedGt(portSpeedGt *string) *CircuitsCircuitTerminationsListParams {
   484  	o.SetPortSpeedGt(portSpeedGt)
   485  	return o
   486  }
   487  
   488  // SetPortSpeedGt adds the portSpeedGt to the circuits circuit terminations list params
   489  func (o *CircuitsCircuitTerminationsListParams) SetPortSpeedGt(portSpeedGt *string) {
   490  	o.PortSpeedGt = portSpeedGt
   491  }
   492  
   493  // WithPortSpeedGte adds the portSpeedGte to the circuits circuit terminations list params
   494  func (o *CircuitsCircuitTerminationsListParams) WithPortSpeedGte(portSpeedGte *string) *CircuitsCircuitTerminationsListParams {
   495  	o.SetPortSpeedGte(portSpeedGte)
   496  	return o
   497  }
   498  
   499  // SetPortSpeedGte adds the portSpeedGte to the circuits circuit terminations list params
   500  func (o *CircuitsCircuitTerminationsListParams) SetPortSpeedGte(portSpeedGte *string) {
   501  	o.PortSpeedGte = portSpeedGte
   502  }
   503  
   504  // WithPortSpeedLt adds the portSpeedLt to the circuits circuit terminations list params
   505  func (o *CircuitsCircuitTerminationsListParams) WithPortSpeedLt(portSpeedLt *string) *CircuitsCircuitTerminationsListParams {
   506  	o.SetPortSpeedLt(portSpeedLt)
   507  	return o
   508  }
   509  
   510  // SetPortSpeedLt adds the portSpeedLt to the circuits circuit terminations list params
   511  func (o *CircuitsCircuitTerminationsListParams) SetPortSpeedLt(portSpeedLt *string) {
   512  	o.PortSpeedLt = portSpeedLt
   513  }
   514  
   515  // WithPortSpeedLte adds the portSpeedLte to the circuits circuit terminations list params
   516  func (o *CircuitsCircuitTerminationsListParams) WithPortSpeedLte(portSpeedLte *string) *CircuitsCircuitTerminationsListParams {
   517  	o.SetPortSpeedLte(portSpeedLte)
   518  	return o
   519  }
   520  
   521  // SetPortSpeedLte adds the portSpeedLte to the circuits circuit terminations list params
   522  func (o *CircuitsCircuitTerminationsListParams) SetPortSpeedLte(portSpeedLte *string) {
   523  	o.PortSpeedLte = portSpeedLte
   524  }
   525  
   526  // WithPortSpeedn adds the portSpeedn to the circuits circuit terminations list params
   527  func (o *CircuitsCircuitTerminationsListParams) WithPortSpeedn(portSpeedn *string) *CircuitsCircuitTerminationsListParams {
   528  	o.SetPortSpeedn(portSpeedn)
   529  	return o
   530  }
   531  
   532  // SetPortSpeedn adds the portSpeedN to the circuits circuit terminations list params
   533  func (o *CircuitsCircuitTerminationsListParams) SetPortSpeedn(portSpeedn *string) {
   534  	o.PortSpeedn = portSpeedn
   535  }
   536  
   537  // WithProviderNetworkID adds the providerNetworkID to the circuits circuit terminations list params
   538  func (o *CircuitsCircuitTerminationsListParams) WithProviderNetworkID(providerNetworkID *string) *CircuitsCircuitTerminationsListParams {
   539  	o.SetProviderNetworkID(providerNetworkID)
   540  	return o
   541  }
   542  
   543  // SetProviderNetworkID adds the providerNetworkId to the circuits circuit terminations list params
   544  func (o *CircuitsCircuitTerminationsListParams) SetProviderNetworkID(providerNetworkID *string) {
   545  	o.ProviderNetworkID = providerNetworkID
   546  }
   547  
   548  // WithProviderNetworkIDn adds the providerNetworkIDn to the circuits circuit terminations list params
   549  func (o *CircuitsCircuitTerminationsListParams) WithProviderNetworkIDn(providerNetworkIDn *string) *CircuitsCircuitTerminationsListParams {
   550  	o.SetProviderNetworkIDn(providerNetworkIDn)
   551  	return o
   552  }
   553  
   554  // SetProviderNetworkIDn adds the providerNetworkIdN to the circuits circuit terminations list params
   555  func (o *CircuitsCircuitTerminationsListParams) SetProviderNetworkIDn(providerNetworkIDn *string) {
   556  	o.ProviderNetworkIDn = providerNetworkIDn
   557  }
   558  
   559  // WithQ adds the q to the circuits circuit terminations list params
   560  func (o *CircuitsCircuitTerminationsListParams) WithQ(q *string) *CircuitsCircuitTerminationsListParams {
   561  	o.SetQ(q)
   562  	return o
   563  }
   564  
   565  // SetQ adds the q to the circuits circuit terminations list params
   566  func (o *CircuitsCircuitTerminationsListParams) SetQ(q *string) {
   567  	o.Q = q
   568  }
   569  
   570  // WithSite adds the site to the circuits circuit terminations list params
   571  func (o *CircuitsCircuitTerminationsListParams) WithSite(site *string) *CircuitsCircuitTerminationsListParams {
   572  	o.SetSite(site)
   573  	return o
   574  }
   575  
   576  // SetSite adds the site to the circuits circuit terminations list params
   577  func (o *CircuitsCircuitTerminationsListParams) SetSite(site *string) {
   578  	o.Site = site
   579  }
   580  
   581  // WithSiten adds the siten to the circuits circuit terminations list params
   582  func (o *CircuitsCircuitTerminationsListParams) WithSiten(siten *string) *CircuitsCircuitTerminationsListParams {
   583  	o.SetSiten(siten)
   584  	return o
   585  }
   586  
   587  // SetSiten adds the siteN to the circuits circuit terminations list params
   588  func (o *CircuitsCircuitTerminationsListParams) SetSiten(siten *string) {
   589  	o.Siten = siten
   590  }
   591  
   592  // WithSiteID adds the siteID to the circuits circuit terminations list params
   593  func (o *CircuitsCircuitTerminationsListParams) WithSiteID(siteID *string) *CircuitsCircuitTerminationsListParams {
   594  	o.SetSiteID(siteID)
   595  	return o
   596  }
   597  
   598  // SetSiteID adds the siteId to the circuits circuit terminations list params
   599  func (o *CircuitsCircuitTerminationsListParams) SetSiteID(siteID *string) {
   600  	o.SiteID = siteID
   601  }
   602  
   603  // WithSiteIDn adds the siteIDn to the circuits circuit terminations list params
   604  func (o *CircuitsCircuitTerminationsListParams) WithSiteIDn(siteIDn *string) *CircuitsCircuitTerminationsListParams {
   605  	o.SetSiteIDn(siteIDn)
   606  	return o
   607  }
   608  
   609  // SetSiteIDn adds the siteIdN to the circuits circuit terminations list params
   610  func (o *CircuitsCircuitTerminationsListParams) SetSiteIDn(siteIDn *string) {
   611  	o.SiteIDn = siteIDn
   612  }
   613  
   614  // WithTermSide adds the termSide to the circuits circuit terminations list params
   615  func (o *CircuitsCircuitTerminationsListParams) WithTermSide(termSide *string) *CircuitsCircuitTerminationsListParams {
   616  	o.SetTermSide(termSide)
   617  	return o
   618  }
   619  
   620  // SetTermSide adds the termSide to the circuits circuit terminations list params
   621  func (o *CircuitsCircuitTerminationsListParams) SetTermSide(termSide *string) {
   622  	o.TermSide = termSide
   623  }
   624  
   625  // WithTermSiden adds the termSiden to the circuits circuit terminations list params
   626  func (o *CircuitsCircuitTerminationsListParams) WithTermSiden(termSiden *string) *CircuitsCircuitTerminationsListParams {
   627  	o.SetTermSiden(termSiden)
   628  	return o
   629  }
   630  
   631  // SetTermSiden adds the termSideN to the circuits circuit terminations list params
   632  func (o *CircuitsCircuitTerminationsListParams) SetTermSiden(termSiden *string) {
   633  	o.TermSiden = termSiden
   634  }
   635  
   636  // WithUpstreamSpeed adds the upstreamSpeed to the circuits circuit terminations list params
   637  func (o *CircuitsCircuitTerminationsListParams) WithUpstreamSpeed(upstreamSpeed *string) *CircuitsCircuitTerminationsListParams {
   638  	o.SetUpstreamSpeed(upstreamSpeed)
   639  	return o
   640  }
   641  
   642  // SetUpstreamSpeed adds the upstreamSpeed to the circuits circuit terminations list params
   643  func (o *CircuitsCircuitTerminationsListParams) SetUpstreamSpeed(upstreamSpeed *string) {
   644  	o.UpstreamSpeed = upstreamSpeed
   645  }
   646  
   647  // WithUpstreamSpeedGt adds the upstreamSpeedGt to the circuits circuit terminations list params
   648  func (o *CircuitsCircuitTerminationsListParams) WithUpstreamSpeedGt(upstreamSpeedGt *string) *CircuitsCircuitTerminationsListParams {
   649  	o.SetUpstreamSpeedGt(upstreamSpeedGt)
   650  	return o
   651  }
   652  
   653  // SetUpstreamSpeedGt adds the upstreamSpeedGt to the circuits circuit terminations list params
   654  func (o *CircuitsCircuitTerminationsListParams) SetUpstreamSpeedGt(upstreamSpeedGt *string) {
   655  	o.UpstreamSpeedGt = upstreamSpeedGt
   656  }
   657  
   658  // WithUpstreamSpeedGte adds the upstreamSpeedGte to the circuits circuit terminations list params
   659  func (o *CircuitsCircuitTerminationsListParams) WithUpstreamSpeedGte(upstreamSpeedGte *string) *CircuitsCircuitTerminationsListParams {
   660  	o.SetUpstreamSpeedGte(upstreamSpeedGte)
   661  	return o
   662  }
   663  
   664  // SetUpstreamSpeedGte adds the upstreamSpeedGte to the circuits circuit terminations list params
   665  func (o *CircuitsCircuitTerminationsListParams) SetUpstreamSpeedGte(upstreamSpeedGte *string) {
   666  	o.UpstreamSpeedGte = upstreamSpeedGte
   667  }
   668  
   669  // WithUpstreamSpeedLt adds the upstreamSpeedLt to the circuits circuit terminations list params
   670  func (o *CircuitsCircuitTerminationsListParams) WithUpstreamSpeedLt(upstreamSpeedLt *string) *CircuitsCircuitTerminationsListParams {
   671  	o.SetUpstreamSpeedLt(upstreamSpeedLt)
   672  	return o
   673  }
   674  
   675  // SetUpstreamSpeedLt adds the upstreamSpeedLt to the circuits circuit terminations list params
   676  func (o *CircuitsCircuitTerminationsListParams) SetUpstreamSpeedLt(upstreamSpeedLt *string) {
   677  	o.UpstreamSpeedLt = upstreamSpeedLt
   678  }
   679  
   680  // WithUpstreamSpeedLte adds the upstreamSpeedLte to the circuits circuit terminations list params
   681  func (o *CircuitsCircuitTerminationsListParams) WithUpstreamSpeedLte(upstreamSpeedLte *string) *CircuitsCircuitTerminationsListParams {
   682  	o.SetUpstreamSpeedLte(upstreamSpeedLte)
   683  	return o
   684  }
   685  
   686  // SetUpstreamSpeedLte adds the upstreamSpeedLte to the circuits circuit terminations list params
   687  func (o *CircuitsCircuitTerminationsListParams) SetUpstreamSpeedLte(upstreamSpeedLte *string) {
   688  	o.UpstreamSpeedLte = upstreamSpeedLte
   689  }
   690  
   691  // WithUpstreamSpeedn adds the upstreamSpeedn to the circuits circuit terminations list params
   692  func (o *CircuitsCircuitTerminationsListParams) WithUpstreamSpeedn(upstreamSpeedn *string) *CircuitsCircuitTerminationsListParams {
   693  	o.SetUpstreamSpeedn(upstreamSpeedn)
   694  	return o
   695  }
   696  
   697  // SetUpstreamSpeedn adds the upstreamSpeedN to the circuits circuit terminations list params
   698  func (o *CircuitsCircuitTerminationsListParams) SetUpstreamSpeedn(upstreamSpeedn *string) {
   699  	o.UpstreamSpeedn = upstreamSpeedn
   700  }
   701  
   702  // WithXconnectID adds the xconnectID to the circuits circuit terminations list params
   703  func (o *CircuitsCircuitTerminationsListParams) WithXconnectID(xconnectID *string) *CircuitsCircuitTerminationsListParams {
   704  	o.SetXconnectID(xconnectID)
   705  	return o
   706  }
   707  
   708  // SetXconnectID adds the xconnectId to the circuits circuit terminations list params
   709  func (o *CircuitsCircuitTerminationsListParams) SetXconnectID(xconnectID *string) {
   710  	o.XconnectID = xconnectID
   711  }
   712  
   713  // WithXconnectIDEmpty adds the xconnectIDEmpty to the circuits circuit terminations list params
   714  func (o *CircuitsCircuitTerminationsListParams) WithXconnectIDEmpty(xconnectIDEmpty *string) *CircuitsCircuitTerminationsListParams {
   715  	o.SetXconnectIDEmpty(xconnectIDEmpty)
   716  	return o
   717  }
   718  
   719  // SetXconnectIDEmpty adds the xconnectIdEmpty to the circuits circuit terminations list params
   720  func (o *CircuitsCircuitTerminationsListParams) SetXconnectIDEmpty(xconnectIDEmpty *string) {
   721  	o.XconnectIDEmpty = xconnectIDEmpty
   722  }
   723  
   724  // WithXconnectIDIc adds the xconnectIDIc to the circuits circuit terminations list params
   725  func (o *CircuitsCircuitTerminationsListParams) WithXconnectIDIc(xconnectIDIc *string) *CircuitsCircuitTerminationsListParams {
   726  	o.SetXconnectIDIc(xconnectIDIc)
   727  	return o
   728  }
   729  
   730  // SetXconnectIDIc adds the xconnectIdIc to the circuits circuit terminations list params
   731  func (o *CircuitsCircuitTerminationsListParams) SetXconnectIDIc(xconnectIDIc *string) {
   732  	o.XconnectIDIc = xconnectIDIc
   733  }
   734  
   735  // WithXconnectIDIe adds the xconnectIDIe to the circuits circuit terminations list params
   736  func (o *CircuitsCircuitTerminationsListParams) WithXconnectIDIe(xconnectIDIe *string) *CircuitsCircuitTerminationsListParams {
   737  	o.SetXconnectIDIe(xconnectIDIe)
   738  	return o
   739  }
   740  
   741  // SetXconnectIDIe adds the xconnectIdIe to the circuits circuit terminations list params
   742  func (o *CircuitsCircuitTerminationsListParams) SetXconnectIDIe(xconnectIDIe *string) {
   743  	o.XconnectIDIe = xconnectIDIe
   744  }
   745  
   746  // WithXconnectIDIew adds the xconnectIDIew to the circuits circuit terminations list params
   747  func (o *CircuitsCircuitTerminationsListParams) WithXconnectIDIew(xconnectIDIew *string) *CircuitsCircuitTerminationsListParams {
   748  	o.SetXconnectIDIew(xconnectIDIew)
   749  	return o
   750  }
   751  
   752  // SetXconnectIDIew adds the xconnectIdIew to the circuits circuit terminations list params
   753  func (o *CircuitsCircuitTerminationsListParams) SetXconnectIDIew(xconnectIDIew *string) {
   754  	o.XconnectIDIew = xconnectIDIew
   755  }
   756  
   757  // WithXconnectIDIsw adds the xconnectIDIsw to the circuits circuit terminations list params
   758  func (o *CircuitsCircuitTerminationsListParams) WithXconnectIDIsw(xconnectIDIsw *string) *CircuitsCircuitTerminationsListParams {
   759  	o.SetXconnectIDIsw(xconnectIDIsw)
   760  	return o
   761  }
   762  
   763  // SetXconnectIDIsw adds the xconnectIdIsw to the circuits circuit terminations list params
   764  func (o *CircuitsCircuitTerminationsListParams) SetXconnectIDIsw(xconnectIDIsw *string) {
   765  	o.XconnectIDIsw = xconnectIDIsw
   766  }
   767  
   768  // WithXconnectIDn adds the xconnectIDn to the circuits circuit terminations list params
   769  func (o *CircuitsCircuitTerminationsListParams) WithXconnectIDn(xconnectIDn *string) *CircuitsCircuitTerminationsListParams {
   770  	o.SetXconnectIDn(xconnectIDn)
   771  	return o
   772  }
   773  
   774  // SetXconnectIDn adds the xconnectIdN to the circuits circuit terminations list params
   775  func (o *CircuitsCircuitTerminationsListParams) SetXconnectIDn(xconnectIDn *string) {
   776  	o.XconnectIDn = xconnectIDn
   777  }
   778  
   779  // WithXconnectIDNic adds the xconnectIDNic to the circuits circuit terminations list params
   780  func (o *CircuitsCircuitTerminationsListParams) WithXconnectIDNic(xconnectIDNic *string) *CircuitsCircuitTerminationsListParams {
   781  	o.SetXconnectIDNic(xconnectIDNic)
   782  	return o
   783  }
   784  
   785  // SetXconnectIDNic adds the xconnectIdNic to the circuits circuit terminations list params
   786  func (o *CircuitsCircuitTerminationsListParams) SetXconnectIDNic(xconnectIDNic *string) {
   787  	o.XconnectIDNic = xconnectIDNic
   788  }
   789  
   790  // WithXconnectIDNie adds the xconnectIDNie to the circuits circuit terminations list params
   791  func (o *CircuitsCircuitTerminationsListParams) WithXconnectIDNie(xconnectIDNie *string) *CircuitsCircuitTerminationsListParams {
   792  	o.SetXconnectIDNie(xconnectIDNie)
   793  	return o
   794  }
   795  
   796  // SetXconnectIDNie adds the xconnectIdNie to the circuits circuit terminations list params
   797  func (o *CircuitsCircuitTerminationsListParams) SetXconnectIDNie(xconnectIDNie *string) {
   798  	o.XconnectIDNie = xconnectIDNie
   799  }
   800  
   801  // WithXconnectIDNiew adds the xconnectIDNiew to the circuits circuit terminations list params
   802  func (o *CircuitsCircuitTerminationsListParams) WithXconnectIDNiew(xconnectIDNiew *string) *CircuitsCircuitTerminationsListParams {
   803  	o.SetXconnectIDNiew(xconnectIDNiew)
   804  	return o
   805  }
   806  
   807  // SetXconnectIDNiew adds the xconnectIdNiew to the circuits circuit terminations list params
   808  func (o *CircuitsCircuitTerminationsListParams) SetXconnectIDNiew(xconnectIDNiew *string) {
   809  	o.XconnectIDNiew = xconnectIDNiew
   810  }
   811  
   812  // WithXconnectIDNisw adds the xconnectIDNisw to the circuits circuit terminations list params
   813  func (o *CircuitsCircuitTerminationsListParams) WithXconnectIDNisw(xconnectIDNisw *string) *CircuitsCircuitTerminationsListParams {
   814  	o.SetXconnectIDNisw(xconnectIDNisw)
   815  	return o
   816  }
   817  
   818  // SetXconnectIDNisw adds the xconnectIdNisw to the circuits circuit terminations list params
   819  func (o *CircuitsCircuitTerminationsListParams) SetXconnectIDNisw(xconnectIDNisw *string) {
   820  	o.XconnectIDNisw = xconnectIDNisw
   821  }
   822  
   823  // WriteToRequest writes these params to a swagger request
   824  func (o *CircuitsCircuitTerminationsListParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error {
   825  
   826  	if err := r.SetTimeout(o.timeout); err != nil {
   827  		return err
   828  	}
   829  	var res []error
   830  
   831  	if o.Cabled != nil {
   832  
   833  		// query param cabled
   834  		var qrCabled string
   835  
   836  		if o.Cabled != nil {
   837  			qrCabled = *o.Cabled
   838  		}
   839  		qCabled := qrCabled
   840  		if qCabled != "" {
   841  
   842  			if err := r.SetQueryParam("cabled", qCabled); err != nil {
   843  				return err
   844  			}
   845  		}
   846  	}
   847  
   848  	if o.CircuitID != nil {
   849  
   850  		// query param circuit_id
   851  		var qrCircuitID string
   852  
   853  		if o.CircuitID != nil {
   854  			qrCircuitID = *o.CircuitID
   855  		}
   856  		qCircuitID := qrCircuitID
   857  		if qCircuitID != "" {
   858  
   859  			if err := r.SetQueryParam("circuit_id", qCircuitID); err != nil {
   860  				return err
   861  			}
   862  		}
   863  	}
   864  
   865  	if o.CircuitIDn != nil {
   866  
   867  		// query param circuit_id__n
   868  		var qrCircuitIDn string
   869  
   870  		if o.CircuitIDn != nil {
   871  			qrCircuitIDn = *o.CircuitIDn
   872  		}
   873  		qCircuitIDn := qrCircuitIDn
   874  		if qCircuitIDn != "" {
   875  
   876  			if err := r.SetQueryParam("circuit_id__n", qCircuitIDn); err != nil {
   877  				return err
   878  			}
   879  		}
   880  	}
   881  
   882  	if o.Created != nil {
   883  
   884  		// query param created
   885  		var qrCreated string
   886  
   887  		if o.Created != nil {
   888  			qrCreated = *o.Created
   889  		}
   890  		qCreated := qrCreated
   891  		if qCreated != "" {
   892  
   893  			if err := r.SetQueryParam("created", qCreated); err != nil {
   894  				return err
   895  			}
   896  		}
   897  	}
   898  
   899  	if o.CreatedGte != nil {
   900  
   901  		// query param created__gte
   902  		var qrCreatedGte string
   903  
   904  		if o.CreatedGte != nil {
   905  			qrCreatedGte = *o.CreatedGte
   906  		}
   907  		qCreatedGte := qrCreatedGte
   908  		if qCreatedGte != "" {
   909  
   910  			if err := r.SetQueryParam("created__gte", qCreatedGte); err != nil {
   911  				return err
   912  			}
   913  		}
   914  	}
   915  
   916  	if o.CreatedLte != nil {
   917  
   918  		// query param created__lte
   919  		var qrCreatedLte string
   920  
   921  		if o.CreatedLte != nil {
   922  			qrCreatedLte = *o.CreatedLte
   923  		}
   924  		qCreatedLte := qrCreatedLte
   925  		if qCreatedLte != "" {
   926  
   927  			if err := r.SetQueryParam("created__lte", qCreatedLte); err != nil {
   928  				return err
   929  			}
   930  		}
   931  	}
   932  
   933  	if o.ID != nil {
   934  
   935  		// query param id
   936  		var qrID string
   937  
   938  		if o.ID != nil {
   939  			qrID = *o.ID
   940  		}
   941  		qID := qrID
   942  		if qID != "" {
   943  
   944  			if err := r.SetQueryParam("id", qID); err != nil {
   945  				return err
   946  			}
   947  		}
   948  	}
   949  
   950  	if o.IDGt != nil {
   951  
   952  		// query param id__gt
   953  		var qrIDGt string
   954  
   955  		if o.IDGt != nil {
   956  			qrIDGt = *o.IDGt
   957  		}
   958  		qIDGt := qrIDGt
   959  		if qIDGt != "" {
   960  
   961  			if err := r.SetQueryParam("id__gt", qIDGt); err != nil {
   962  				return err
   963  			}
   964  		}
   965  	}
   966  
   967  	if o.IDGte != nil {
   968  
   969  		// query param id__gte
   970  		var qrIDGte string
   971  
   972  		if o.IDGte != nil {
   973  			qrIDGte = *o.IDGte
   974  		}
   975  		qIDGte := qrIDGte
   976  		if qIDGte != "" {
   977  
   978  			if err := r.SetQueryParam("id__gte", qIDGte); err != nil {
   979  				return err
   980  			}
   981  		}
   982  	}
   983  
   984  	if o.IDLt != nil {
   985  
   986  		// query param id__lt
   987  		var qrIDLt string
   988  
   989  		if o.IDLt != nil {
   990  			qrIDLt = *o.IDLt
   991  		}
   992  		qIDLt := qrIDLt
   993  		if qIDLt != "" {
   994  
   995  			if err := r.SetQueryParam("id__lt", qIDLt); err != nil {
   996  				return err
   997  			}
   998  		}
   999  	}
  1000  
  1001  	if o.IDLte != nil {
  1002  
  1003  		// query param id__lte
  1004  		var qrIDLte string
  1005  
  1006  		if o.IDLte != nil {
  1007  			qrIDLte = *o.IDLte
  1008  		}
  1009  		qIDLte := qrIDLte
  1010  		if qIDLte != "" {
  1011  
  1012  			if err := r.SetQueryParam("id__lte", qIDLte); err != nil {
  1013  				return err
  1014  			}
  1015  		}
  1016  	}
  1017  
  1018  	if o.IDn != nil {
  1019  
  1020  		// query param id__n
  1021  		var qrIDn string
  1022  
  1023  		if o.IDn != nil {
  1024  			qrIDn = *o.IDn
  1025  		}
  1026  		qIDn := qrIDn
  1027  		if qIDn != "" {
  1028  
  1029  			if err := r.SetQueryParam("id__n", qIDn); err != nil {
  1030  				return err
  1031  			}
  1032  		}
  1033  	}
  1034  
  1035  	if o.LastUpdated != nil {
  1036  
  1037  		// query param last_updated
  1038  		var qrLastUpdated string
  1039  
  1040  		if o.LastUpdated != nil {
  1041  			qrLastUpdated = *o.LastUpdated
  1042  		}
  1043  		qLastUpdated := qrLastUpdated
  1044  		if qLastUpdated != "" {
  1045  
  1046  			if err := r.SetQueryParam("last_updated", qLastUpdated); err != nil {
  1047  				return err
  1048  			}
  1049  		}
  1050  	}
  1051  
  1052  	if o.LastUpdatedGte != nil {
  1053  
  1054  		// query param last_updated__gte
  1055  		var qrLastUpdatedGte string
  1056  
  1057  		if o.LastUpdatedGte != nil {
  1058  			qrLastUpdatedGte = *o.LastUpdatedGte
  1059  		}
  1060  		qLastUpdatedGte := qrLastUpdatedGte
  1061  		if qLastUpdatedGte != "" {
  1062  
  1063  			if err := r.SetQueryParam("last_updated__gte", qLastUpdatedGte); err != nil {
  1064  				return err
  1065  			}
  1066  		}
  1067  	}
  1068  
  1069  	if o.LastUpdatedLte != nil {
  1070  
  1071  		// query param last_updated__lte
  1072  		var qrLastUpdatedLte string
  1073  
  1074  		if o.LastUpdatedLte != nil {
  1075  			qrLastUpdatedLte = *o.LastUpdatedLte
  1076  		}
  1077  		qLastUpdatedLte := qrLastUpdatedLte
  1078  		if qLastUpdatedLte != "" {
  1079  
  1080  			if err := r.SetQueryParam("last_updated__lte", qLastUpdatedLte); err != nil {
  1081  				return err
  1082  			}
  1083  		}
  1084  	}
  1085  
  1086  	if o.Limit != nil {
  1087  
  1088  		// query param limit
  1089  		var qrLimit int64
  1090  
  1091  		if o.Limit != nil {
  1092  			qrLimit = *o.Limit
  1093  		}
  1094  		qLimit := swag.FormatInt64(qrLimit)
  1095  		if qLimit != "" {
  1096  
  1097  			if err := r.SetQueryParam("limit", qLimit); err != nil {
  1098  				return err
  1099  			}
  1100  		}
  1101  	}
  1102  
  1103  	if o.Offset != nil {
  1104  
  1105  		// query param offset
  1106  		var qrOffset int64
  1107  
  1108  		if o.Offset != nil {
  1109  			qrOffset = *o.Offset
  1110  		}
  1111  		qOffset := swag.FormatInt64(qrOffset)
  1112  		if qOffset != "" {
  1113  
  1114  			if err := r.SetQueryParam("offset", qOffset); err != nil {
  1115  				return err
  1116  			}
  1117  		}
  1118  	}
  1119  
  1120  	if o.PortSpeed != nil {
  1121  
  1122  		// query param port_speed
  1123  		var qrPortSpeed string
  1124  
  1125  		if o.PortSpeed != nil {
  1126  			qrPortSpeed = *o.PortSpeed
  1127  		}
  1128  		qPortSpeed := qrPortSpeed
  1129  		if qPortSpeed != "" {
  1130  
  1131  			if err := r.SetQueryParam("port_speed", qPortSpeed); err != nil {
  1132  				return err
  1133  			}
  1134  		}
  1135  	}
  1136  
  1137  	if o.PortSpeedGt != nil {
  1138  
  1139  		// query param port_speed__gt
  1140  		var qrPortSpeedGt string
  1141  
  1142  		if o.PortSpeedGt != nil {
  1143  			qrPortSpeedGt = *o.PortSpeedGt
  1144  		}
  1145  		qPortSpeedGt := qrPortSpeedGt
  1146  		if qPortSpeedGt != "" {
  1147  
  1148  			if err := r.SetQueryParam("port_speed__gt", qPortSpeedGt); err != nil {
  1149  				return err
  1150  			}
  1151  		}
  1152  	}
  1153  
  1154  	if o.PortSpeedGte != nil {
  1155  
  1156  		// query param port_speed__gte
  1157  		var qrPortSpeedGte string
  1158  
  1159  		if o.PortSpeedGte != nil {
  1160  			qrPortSpeedGte = *o.PortSpeedGte
  1161  		}
  1162  		qPortSpeedGte := qrPortSpeedGte
  1163  		if qPortSpeedGte != "" {
  1164  
  1165  			if err := r.SetQueryParam("port_speed__gte", qPortSpeedGte); err != nil {
  1166  				return err
  1167  			}
  1168  		}
  1169  	}
  1170  
  1171  	if o.PortSpeedLt != nil {
  1172  
  1173  		// query param port_speed__lt
  1174  		var qrPortSpeedLt string
  1175  
  1176  		if o.PortSpeedLt != nil {
  1177  			qrPortSpeedLt = *o.PortSpeedLt
  1178  		}
  1179  		qPortSpeedLt := qrPortSpeedLt
  1180  		if qPortSpeedLt != "" {
  1181  
  1182  			if err := r.SetQueryParam("port_speed__lt", qPortSpeedLt); err != nil {
  1183  				return err
  1184  			}
  1185  		}
  1186  	}
  1187  
  1188  	if o.PortSpeedLte != nil {
  1189  
  1190  		// query param port_speed__lte
  1191  		var qrPortSpeedLte string
  1192  
  1193  		if o.PortSpeedLte != nil {
  1194  			qrPortSpeedLte = *o.PortSpeedLte
  1195  		}
  1196  		qPortSpeedLte := qrPortSpeedLte
  1197  		if qPortSpeedLte != "" {
  1198  
  1199  			if err := r.SetQueryParam("port_speed__lte", qPortSpeedLte); err != nil {
  1200  				return err
  1201  			}
  1202  		}
  1203  	}
  1204  
  1205  	if o.PortSpeedn != nil {
  1206  
  1207  		// query param port_speed__n
  1208  		var qrPortSpeedn string
  1209  
  1210  		if o.PortSpeedn != nil {
  1211  			qrPortSpeedn = *o.PortSpeedn
  1212  		}
  1213  		qPortSpeedn := qrPortSpeedn
  1214  		if qPortSpeedn != "" {
  1215  
  1216  			if err := r.SetQueryParam("port_speed__n", qPortSpeedn); err != nil {
  1217  				return err
  1218  			}
  1219  		}
  1220  	}
  1221  
  1222  	if o.ProviderNetworkID != nil {
  1223  
  1224  		// query param provider_network_id
  1225  		var qrProviderNetworkID string
  1226  
  1227  		if o.ProviderNetworkID != nil {
  1228  			qrProviderNetworkID = *o.ProviderNetworkID
  1229  		}
  1230  		qProviderNetworkID := qrProviderNetworkID
  1231  		if qProviderNetworkID != "" {
  1232  
  1233  			if err := r.SetQueryParam("provider_network_id", qProviderNetworkID); err != nil {
  1234  				return err
  1235  			}
  1236  		}
  1237  	}
  1238  
  1239  	if o.ProviderNetworkIDn != nil {
  1240  
  1241  		// query param provider_network_id__n
  1242  		var qrProviderNetworkIDn string
  1243  
  1244  		if o.ProviderNetworkIDn != nil {
  1245  			qrProviderNetworkIDn = *o.ProviderNetworkIDn
  1246  		}
  1247  		qProviderNetworkIDn := qrProviderNetworkIDn
  1248  		if qProviderNetworkIDn != "" {
  1249  
  1250  			if err := r.SetQueryParam("provider_network_id__n", qProviderNetworkIDn); err != nil {
  1251  				return err
  1252  			}
  1253  		}
  1254  	}
  1255  
  1256  	if o.Q != nil {
  1257  
  1258  		// query param q
  1259  		var qrQ string
  1260  
  1261  		if o.Q != nil {
  1262  			qrQ = *o.Q
  1263  		}
  1264  		qQ := qrQ
  1265  		if qQ != "" {
  1266  
  1267  			if err := r.SetQueryParam("q", qQ); err != nil {
  1268  				return err
  1269  			}
  1270  		}
  1271  	}
  1272  
  1273  	if o.Site != nil {
  1274  
  1275  		// query param site
  1276  		var qrSite string
  1277  
  1278  		if o.Site != nil {
  1279  			qrSite = *o.Site
  1280  		}
  1281  		qSite := qrSite
  1282  		if qSite != "" {
  1283  
  1284  			if err := r.SetQueryParam("site", qSite); err != nil {
  1285  				return err
  1286  			}
  1287  		}
  1288  	}
  1289  
  1290  	if o.Siten != nil {
  1291  
  1292  		// query param site__n
  1293  		var qrSiten string
  1294  
  1295  		if o.Siten != nil {
  1296  			qrSiten = *o.Siten
  1297  		}
  1298  		qSiten := qrSiten
  1299  		if qSiten != "" {
  1300  
  1301  			if err := r.SetQueryParam("site__n", qSiten); err != nil {
  1302  				return err
  1303  			}
  1304  		}
  1305  	}
  1306  
  1307  	if o.SiteID != nil {
  1308  
  1309  		// query param site_id
  1310  		var qrSiteID string
  1311  
  1312  		if o.SiteID != nil {
  1313  			qrSiteID = *o.SiteID
  1314  		}
  1315  		qSiteID := qrSiteID
  1316  		if qSiteID != "" {
  1317  
  1318  			if err := r.SetQueryParam("site_id", qSiteID); err != nil {
  1319  				return err
  1320  			}
  1321  		}
  1322  	}
  1323  
  1324  	if o.SiteIDn != nil {
  1325  
  1326  		// query param site_id__n
  1327  		var qrSiteIDn string
  1328  
  1329  		if o.SiteIDn != nil {
  1330  			qrSiteIDn = *o.SiteIDn
  1331  		}
  1332  		qSiteIDn := qrSiteIDn
  1333  		if qSiteIDn != "" {
  1334  
  1335  			if err := r.SetQueryParam("site_id__n", qSiteIDn); err != nil {
  1336  				return err
  1337  			}
  1338  		}
  1339  	}
  1340  
  1341  	if o.TermSide != nil {
  1342  
  1343  		// query param term_side
  1344  		var qrTermSide string
  1345  
  1346  		if o.TermSide != nil {
  1347  			qrTermSide = *o.TermSide
  1348  		}
  1349  		qTermSide := qrTermSide
  1350  		if qTermSide != "" {
  1351  
  1352  			if err := r.SetQueryParam("term_side", qTermSide); err != nil {
  1353  				return err
  1354  			}
  1355  		}
  1356  	}
  1357  
  1358  	if o.TermSiden != nil {
  1359  
  1360  		// query param term_side__n
  1361  		var qrTermSiden string
  1362  
  1363  		if o.TermSiden != nil {
  1364  			qrTermSiden = *o.TermSiden
  1365  		}
  1366  		qTermSiden := qrTermSiden
  1367  		if qTermSiden != "" {
  1368  
  1369  			if err := r.SetQueryParam("term_side__n", qTermSiden); err != nil {
  1370  				return err
  1371  			}
  1372  		}
  1373  	}
  1374  
  1375  	if o.UpstreamSpeed != nil {
  1376  
  1377  		// query param upstream_speed
  1378  		var qrUpstreamSpeed string
  1379  
  1380  		if o.UpstreamSpeed != nil {
  1381  			qrUpstreamSpeed = *o.UpstreamSpeed
  1382  		}
  1383  		qUpstreamSpeed := qrUpstreamSpeed
  1384  		if qUpstreamSpeed != "" {
  1385  
  1386  			if err := r.SetQueryParam("upstream_speed", qUpstreamSpeed); err != nil {
  1387  				return err
  1388  			}
  1389  		}
  1390  	}
  1391  
  1392  	if o.UpstreamSpeedGt != nil {
  1393  
  1394  		// query param upstream_speed__gt
  1395  		var qrUpstreamSpeedGt string
  1396  
  1397  		if o.UpstreamSpeedGt != nil {
  1398  			qrUpstreamSpeedGt = *o.UpstreamSpeedGt
  1399  		}
  1400  		qUpstreamSpeedGt := qrUpstreamSpeedGt
  1401  		if qUpstreamSpeedGt != "" {
  1402  
  1403  			if err := r.SetQueryParam("upstream_speed__gt", qUpstreamSpeedGt); err != nil {
  1404  				return err
  1405  			}
  1406  		}
  1407  	}
  1408  
  1409  	if o.UpstreamSpeedGte != nil {
  1410  
  1411  		// query param upstream_speed__gte
  1412  		var qrUpstreamSpeedGte string
  1413  
  1414  		if o.UpstreamSpeedGte != nil {
  1415  			qrUpstreamSpeedGte = *o.UpstreamSpeedGte
  1416  		}
  1417  		qUpstreamSpeedGte := qrUpstreamSpeedGte
  1418  		if qUpstreamSpeedGte != "" {
  1419  
  1420  			if err := r.SetQueryParam("upstream_speed__gte", qUpstreamSpeedGte); err != nil {
  1421  				return err
  1422  			}
  1423  		}
  1424  	}
  1425  
  1426  	if o.UpstreamSpeedLt != nil {
  1427  
  1428  		// query param upstream_speed__lt
  1429  		var qrUpstreamSpeedLt string
  1430  
  1431  		if o.UpstreamSpeedLt != nil {
  1432  			qrUpstreamSpeedLt = *o.UpstreamSpeedLt
  1433  		}
  1434  		qUpstreamSpeedLt := qrUpstreamSpeedLt
  1435  		if qUpstreamSpeedLt != "" {
  1436  
  1437  			if err := r.SetQueryParam("upstream_speed__lt", qUpstreamSpeedLt); err != nil {
  1438  				return err
  1439  			}
  1440  		}
  1441  	}
  1442  
  1443  	if o.UpstreamSpeedLte != nil {
  1444  
  1445  		// query param upstream_speed__lte
  1446  		var qrUpstreamSpeedLte string
  1447  
  1448  		if o.UpstreamSpeedLte != nil {
  1449  			qrUpstreamSpeedLte = *o.UpstreamSpeedLte
  1450  		}
  1451  		qUpstreamSpeedLte := qrUpstreamSpeedLte
  1452  		if qUpstreamSpeedLte != "" {
  1453  
  1454  			if err := r.SetQueryParam("upstream_speed__lte", qUpstreamSpeedLte); err != nil {
  1455  				return err
  1456  			}
  1457  		}
  1458  	}
  1459  
  1460  	if o.UpstreamSpeedn != nil {
  1461  
  1462  		// query param upstream_speed__n
  1463  		var qrUpstreamSpeedn string
  1464  
  1465  		if o.UpstreamSpeedn != nil {
  1466  			qrUpstreamSpeedn = *o.UpstreamSpeedn
  1467  		}
  1468  		qUpstreamSpeedn := qrUpstreamSpeedn
  1469  		if qUpstreamSpeedn != "" {
  1470  
  1471  			if err := r.SetQueryParam("upstream_speed__n", qUpstreamSpeedn); err != nil {
  1472  				return err
  1473  			}
  1474  		}
  1475  	}
  1476  
  1477  	if o.XconnectID != nil {
  1478  
  1479  		// query param xconnect_id
  1480  		var qrXconnectID string
  1481  
  1482  		if o.XconnectID != nil {
  1483  			qrXconnectID = *o.XconnectID
  1484  		}
  1485  		qXconnectID := qrXconnectID
  1486  		if qXconnectID != "" {
  1487  
  1488  			if err := r.SetQueryParam("xconnect_id", qXconnectID); err != nil {
  1489  				return err
  1490  			}
  1491  		}
  1492  	}
  1493  
  1494  	if o.XconnectIDEmpty != nil {
  1495  
  1496  		// query param xconnect_id__empty
  1497  		var qrXconnectIDEmpty string
  1498  
  1499  		if o.XconnectIDEmpty != nil {
  1500  			qrXconnectIDEmpty = *o.XconnectIDEmpty
  1501  		}
  1502  		qXconnectIDEmpty := qrXconnectIDEmpty
  1503  		if qXconnectIDEmpty != "" {
  1504  
  1505  			if err := r.SetQueryParam("xconnect_id__empty", qXconnectIDEmpty); err != nil {
  1506  				return err
  1507  			}
  1508  		}
  1509  	}
  1510  
  1511  	if o.XconnectIDIc != nil {
  1512  
  1513  		// query param xconnect_id__ic
  1514  		var qrXconnectIDIc string
  1515  
  1516  		if o.XconnectIDIc != nil {
  1517  			qrXconnectIDIc = *o.XconnectIDIc
  1518  		}
  1519  		qXconnectIDIc := qrXconnectIDIc
  1520  		if qXconnectIDIc != "" {
  1521  
  1522  			if err := r.SetQueryParam("xconnect_id__ic", qXconnectIDIc); err != nil {
  1523  				return err
  1524  			}
  1525  		}
  1526  	}
  1527  
  1528  	if o.XconnectIDIe != nil {
  1529  
  1530  		// query param xconnect_id__ie
  1531  		var qrXconnectIDIe string
  1532  
  1533  		if o.XconnectIDIe != nil {
  1534  			qrXconnectIDIe = *o.XconnectIDIe
  1535  		}
  1536  		qXconnectIDIe := qrXconnectIDIe
  1537  		if qXconnectIDIe != "" {
  1538  
  1539  			if err := r.SetQueryParam("xconnect_id__ie", qXconnectIDIe); err != nil {
  1540  				return err
  1541  			}
  1542  		}
  1543  	}
  1544  
  1545  	if o.XconnectIDIew != nil {
  1546  
  1547  		// query param xconnect_id__iew
  1548  		var qrXconnectIDIew string
  1549  
  1550  		if o.XconnectIDIew != nil {
  1551  			qrXconnectIDIew = *o.XconnectIDIew
  1552  		}
  1553  		qXconnectIDIew := qrXconnectIDIew
  1554  		if qXconnectIDIew != "" {
  1555  
  1556  			if err := r.SetQueryParam("xconnect_id__iew", qXconnectIDIew); err != nil {
  1557  				return err
  1558  			}
  1559  		}
  1560  	}
  1561  
  1562  	if o.XconnectIDIsw != nil {
  1563  
  1564  		// query param xconnect_id__isw
  1565  		var qrXconnectIDIsw string
  1566  
  1567  		if o.XconnectIDIsw != nil {
  1568  			qrXconnectIDIsw = *o.XconnectIDIsw
  1569  		}
  1570  		qXconnectIDIsw := qrXconnectIDIsw
  1571  		if qXconnectIDIsw != "" {
  1572  
  1573  			if err := r.SetQueryParam("xconnect_id__isw", qXconnectIDIsw); err != nil {
  1574  				return err
  1575  			}
  1576  		}
  1577  	}
  1578  
  1579  	if o.XconnectIDn != nil {
  1580  
  1581  		// query param xconnect_id__n
  1582  		var qrXconnectIDn string
  1583  
  1584  		if o.XconnectIDn != nil {
  1585  			qrXconnectIDn = *o.XconnectIDn
  1586  		}
  1587  		qXconnectIDn := qrXconnectIDn
  1588  		if qXconnectIDn != "" {
  1589  
  1590  			if err := r.SetQueryParam("xconnect_id__n", qXconnectIDn); err != nil {
  1591  				return err
  1592  			}
  1593  		}
  1594  	}
  1595  
  1596  	if o.XconnectIDNic != nil {
  1597  
  1598  		// query param xconnect_id__nic
  1599  		var qrXconnectIDNic string
  1600  
  1601  		if o.XconnectIDNic != nil {
  1602  			qrXconnectIDNic = *o.XconnectIDNic
  1603  		}
  1604  		qXconnectIDNic := qrXconnectIDNic
  1605  		if qXconnectIDNic != "" {
  1606  
  1607  			if err := r.SetQueryParam("xconnect_id__nic", qXconnectIDNic); err != nil {
  1608  				return err
  1609  			}
  1610  		}
  1611  	}
  1612  
  1613  	if o.XconnectIDNie != nil {
  1614  
  1615  		// query param xconnect_id__nie
  1616  		var qrXconnectIDNie string
  1617  
  1618  		if o.XconnectIDNie != nil {
  1619  			qrXconnectIDNie = *o.XconnectIDNie
  1620  		}
  1621  		qXconnectIDNie := qrXconnectIDNie
  1622  		if qXconnectIDNie != "" {
  1623  
  1624  			if err := r.SetQueryParam("xconnect_id__nie", qXconnectIDNie); err != nil {
  1625  				return err
  1626  			}
  1627  		}
  1628  	}
  1629  
  1630  	if o.XconnectIDNiew != nil {
  1631  
  1632  		// query param xconnect_id__niew
  1633  		var qrXconnectIDNiew string
  1634  
  1635  		if o.XconnectIDNiew != nil {
  1636  			qrXconnectIDNiew = *o.XconnectIDNiew
  1637  		}
  1638  		qXconnectIDNiew := qrXconnectIDNiew
  1639  		if qXconnectIDNiew != "" {
  1640  
  1641  			if err := r.SetQueryParam("xconnect_id__niew", qXconnectIDNiew); err != nil {
  1642  				return err
  1643  			}
  1644  		}
  1645  	}
  1646  
  1647  	if o.XconnectIDNisw != nil {
  1648  
  1649  		// query param xconnect_id__nisw
  1650  		var qrXconnectIDNisw string
  1651  
  1652  		if o.XconnectIDNisw != nil {
  1653  			qrXconnectIDNisw = *o.XconnectIDNisw
  1654  		}
  1655  		qXconnectIDNisw := qrXconnectIDNisw
  1656  		if qXconnectIDNisw != "" {
  1657  
  1658  			if err := r.SetQueryParam("xconnect_id__nisw", qXconnectIDNisw); err != nil {
  1659  				return err
  1660  			}
  1661  		}
  1662  	}
  1663  
  1664  	if len(res) > 0 {
  1665  		return errors.CompositeValidationError(res...)
  1666  	}
  1667  	return nil
  1668  }