github.com/digitalocean/go-netbox@v0.0.2/netbox/client/ipam/ipam_services_list_parameters.go (about)

     1  // Code generated by go-swagger; DO NOT EDIT.
     2  
     3  // Copyright 2020 The go-netbox Authors.
     4  //
     5  // Licensed under the Apache License, Version 2.0 (the "License");
     6  // you may not use this file except in compliance with the License.
     7  // You may obtain a copy of the License at
     8  //
     9  //   http://www.apache.org/licenses/LICENSE-2.0
    10  //
    11  // Unless required by applicable law or agreed to in writing, software
    12  // distributed under the License is distributed on an "AS IS" BASIS,
    13  // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
    14  // See the License for the specific language governing permissions and
    15  // limitations under the License.
    16  //
    17  
    18  package ipam
    19  
    20  // This file was generated by the swagger tool.
    21  // Editing this file might prove futile when you re-run the swagger generate command
    22  
    23  import (
    24  	"context"
    25  	"net/http"
    26  	"time"
    27  
    28  	"github.com/go-openapi/errors"
    29  	"github.com/go-openapi/runtime"
    30  	cr "github.com/go-openapi/runtime/client"
    31  	"github.com/go-openapi/strfmt"
    32  	"github.com/go-openapi/swag"
    33  )
    34  
    35  // NewIpamServicesListParams creates a new IpamServicesListParams 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 NewIpamServicesListParams() *IpamServicesListParams {
    42  	return &IpamServicesListParams{
    43  		timeout: cr.DefaultTimeout,
    44  	}
    45  }
    46  
    47  // NewIpamServicesListParamsWithTimeout creates a new IpamServicesListParams object
    48  // with the ability to set a timeout on a request.
    49  func NewIpamServicesListParamsWithTimeout(timeout time.Duration) *IpamServicesListParams {
    50  	return &IpamServicesListParams{
    51  		timeout: timeout,
    52  	}
    53  }
    54  
    55  // NewIpamServicesListParamsWithContext creates a new IpamServicesListParams object
    56  // with the ability to set a context for a request.
    57  func NewIpamServicesListParamsWithContext(ctx context.Context) *IpamServicesListParams {
    58  	return &IpamServicesListParams{
    59  		Context: ctx,
    60  	}
    61  }
    62  
    63  // NewIpamServicesListParamsWithHTTPClient creates a new IpamServicesListParams object
    64  // with the ability to set a custom HTTPClient for a request.
    65  func NewIpamServicesListParamsWithHTTPClient(client *http.Client) *IpamServicesListParams {
    66  	return &IpamServicesListParams{
    67  		HTTPClient: client,
    68  	}
    69  }
    70  
    71  /* IpamServicesListParams contains all the parameters to send to the API endpoint
    72     for the ipam services list operation.
    73  
    74     Typically these are written to a http.Request.
    75  */
    76  type IpamServicesListParams struct {
    77  
    78  	// Created.
    79  	Created *string
    80  
    81  	// CreatedGte.
    82  	CreatedGte *string
    83  
    84  	// CreatedLte.
    85  	CreatedLte *string
    86  
    87  	// Device.
    88  	Device *string
    89  
    90  	// Devicen.
    91  	Devicen *string
    92  
    93  	// DeviceID.
    94  	DeviceID *string
    95  
    96  	// DeviceIDn.
    97  	DeviceIDn *string
    98  
    99  	// ID.
   100  	ID *string
   101  
   102  	// IDGt.
   103  	IDGt *string
   104  
   105  	// IDGte.
   106  	IDGte *string
   107  
   108  	// IDLt.
   109  	IDLt *string
   110  
   111  	// IDLte.
   112  	IDLte *string
   113  
   114  	// IDn.
   115  	IDn *string
   116  
   117  	// LastUpdated.
   118  	LastUpdated *string
   119  
   120  	// LastUpdatedGte.
   121  	LastUpdatedGte *string
   122  
   123  	// LastUpdatedLte.
   124  	LastUpdatedLte *string
   125  
   126  	/* Limit.
   127  
   128  	   Number of results to return per page.
   129  	*/
   130  	Limit *int64
   131  
   132  	// Name.
   133  	Name *string
   134  
   135  	// NameEmpty.
   136  	NameEmpty *string
   137  
   138  	// NameIc.
   139  	NameIc *string
   140  
   141  	// NameIe.
   142  	NameIe *string
   143  
   144  	// NameIew.
   145  	NameIew *string
   146  
   147  	// NameIsw.
   148  	NameIsw *string
   149  
   150  	// Namen.
   151  	Namen *string
   152  
   153  	// NameNic.
   154  	NameNic *string
   155  
   156  	// NameNie.
   157  	NameNie *string
   158  
   159  	// NameNiew.
   160  	NameNiew *string
   161  
   162  	// NameNisw.
   163  	NameNisw *string
   164  
   165  	/* Offset.
   166  
   167  	   The initial index from which to return the results.
   168  	*/
   169  	Offset *int64
   170  
   171  	// Port.
   172  	Port *float64
   173  
   174  	// Protocol.
   175  	Protocol *string
   176  
   177  	// Protocoln.
   178  	Protocoln *string
   179  
   180  	// Q.
   181  	Q *string
   182  
   183  	// Tag.
   184  	Tag *string
   185  
   186  	// Tagn.
   187  	Tagn *string
   188  
   189  	// VirtualMachine.
   190  	VirtualMachine *string
   191  
   192  	// VirtualMachinen.
   193  	VirtualMachinen *string
   194  
   195  	// VirtualMachineID.
   196  	VirtualMachineID *string
   197  
   198  	// VirtualMachineIDn.
   199  	VirtualMachineIDn *string
   200  
   201  	timeout    time.Duration
   202  	Context    context.Context
   203  	HTTPClient *http.Client
   204  }
   205  
   206  // WithDefaults hydrates default values in the ipam services list params (not the query body).
   207  //
   208  // All values with no default are reset to their zero value.
   209  func (o *IpamServicesListParams) WithDefaults() *IpamServicesListParams {
   210  	o.SetDefaults()
   211  	return o
   212  }
   213  
   214  // SetDefaults hydrates default values in the ipam services list params (not the query body).
   215  //
   216  // All values with no default are reset to their zero value.
   217  func (o *IpamServicesListParams) SetDefaults() {
   218  	// no default values defined for this parameter
   219  }
   220  
   221  // WithTimeout adds the timeout to the ipam services list params
   222  func (o *IpamServicesListParams) WithTimeout(timeout time.Duration) *IpamServicesListParams {
   223  	o.SetTimeout(timeout)
   224  	return o
   225  }
   226  
   227  // SetTimeout adds the timeout to the ipam services list params
   228  func (o *IpamServicesListParams) SetTimeout(timeout time.Duration) {
   229  	o.timeout = timeout
   230  }
   231  
   232  // WithContext adds the context to the ipam services list params
   233  func (o *IpamServicesListParams) WithContext(ctx context.Context) *IpamServicesListParams {
   234  	o.SetContext(ctx)
   235  	return o
   236  }
   237  
   238  // SetContext adds the context to the ipam services list params
   239  func (o *IpamServicesListParams) SetContext(ctx context.Context) {
   240  	o.Context = ctx
   241  }
   242  
   243  // WithHTTPClient adds the HTTPClient to the ipam services list params
   244  func (o *IpamServicesListParams) WithHTTPClient(client *http.Client) *IpamServicesListParams {
   245  	o.SetHTTPClient(client)
   246  	return o
   247  }
   248  
   249  // SetHTTPClient adds the HTTPClient to the ipam services list params
   250  func (o *IpamServicesListParams) SetHTTPClient(client *http.Client) {
   251  	o.HTTPClient = client
   252  }
   253  
   254  // WithCreated adds the created to the ipam services list params
   255  func (o *IpamServicesListParams) WithCreated(created *string) *IpamServicesListParams {
   256  	o.SetCreated(created)
   257  	return o
   258  }
   259  
   260  // SetCreated adds the created to the ipam services list params
   261  func (o *IpamServicesListParams) SetCreated(created *string) {
   262  	o.Created = created
   263  }
   264  
   265  // WithCreatedGte adds the createdGte to the ipam services list params
   266  func (o *IpamServicesListParams) WithCreatedGte(createdGte *string) *IpamServicesListParams {
   267  	o.SetCreatedGte(createdGte)
   268  	return o
   269  }
   270  
   271  // SetCreatedGte adds the createdGte to the ipam services list params
   272  func (o *IpamServicesListParams) SetCreatedGte(createdGte *string) {
   273  	o.CreatedGte = createdGte
   274  }
   275  
   276  // WithCreatedLte adds the createdLte to the ipam services list params
   277  func (o *IpamServicesListParams) WithCreatedLte(createdLte *string) *IpamServicesListParams {
   278  	o.SetCreatedLte(createdLte)
   279  	return o
   280  }
   281  
   282  // SetCreatedLte adds the createdLte to the ipam services list params
   283  func (o *IpamServicesListParams) SetCreatedLte(createdLte *string) {
   284  	o.CreatedLte = createdLte
   285  }
   286  
   287  // WithDevice adds the device to the ipam services list params
   288  func (o *IpamServicesListParams) WithDevice(device *string) *IpamServicesListParams {
   289  	o.SetDevice(device)
   290  	return o
   291  }
   292  
   293  // SetDevice adds the device to the ipam services list params
   294  func (o *IpamServicesListParams) SetDevice(device *string) {
   295  	o.Device = device
   296  }
   297  
   298  // WithDevicen adds the devicen to the ipam services list params
   299  func (o *IpamServicesListParams) WithDevicen(devicen *string) *IpamServicesListParams {
   300  	o.SetDevicen(devicen)
   301  	return o
   302  }
   303  
   304  // SetDevicen adds the deviceN to the ipam services list params
   305  func (o *IpamServicesListParams) SetDevicen(devicen *string) {
   306  	o.Devicen = devicen
   307  }
   308  
   309  // WithDeviceID adds the deviceID to the ipam services list params
   310  func (o *IpamServicesListParams) WithDeviceID(deviceID *string) *IpamServicesListParams {
   311  	o.SetDeviceID(deviceID)
   312  	return o
   313  }
   314  
   315  // SetDeviceID adds the deviceId to the ipam services list params
   316  func (o *IpamServicesListParams) SetDeviceID(deviceID *string) {
   317  	o.DeviceID = deviceID
   318  }
   319  
   320  // WithDeviceIDn adds the deviceIDn to the ipam services list params
   321  func (o *IpamServicesListParams) WithDeviceIDn(deviceIDn *string) *IpamServicesListParams {
   322  	o.SetDeviceIDn(deviceIDn)
   323  	return o
   324  }
   325  
   326  // SetDeviceIDn adds the deviceIdN to the ipam services list params
   327  func (o *IpamServicesListParams) SetDeviceIDn(deviceIDn *string) {
   328  	o.DeviceIDn = deviceIDn
   329  }
   330  
   331  // WithID adds the id to the ipam services list params
   332  func (o *IpamServicesListParams) WithID(id *string) *IpamServicesListParams {
   333  	o.SetID(id)
   334  	return o
   335  }
   336  
   337  // SetID adds the id to the ipam services list params
   338  func (o *IpamServicesListParams) SetID(id *string) {
   339  	o.ID = id
   340  }
   341  
   342  // WithIDGt adds the iDGt to the ipam services list params
   343  func (o *IpamServicesListParams) WithIDGt(iDGt *string) *IpamServicesListParams {
   344  	o.SetIDGt(iDGt)
   345  	return o
   346  }
   347  
   348  // SetIDGt adds the idGt to the ipam services list params
   349  func (o *IpamServicesListParams) SetIDGt(iDGt *string) {
   350  	o.IDGt = iDGt
   351  }
   352  
   353  // WithIDGte adds the iDGte to the ipam services list params
   354  func (o *IpamServicesListParams) WithIDGte(iDGte *string) *IpamServicesListParams {
   355  	o.SetIDGte(iDGte)
   356  	return o
   357  }
   358  
   359  // SetIDGte adds the idGte to the ipam services list params
   360  func (o *IpamServicesListParams) SetIDGte(iDGte *string) {
   361  	o.IDGte = iDGte
   362  }
   363  
   364  // WithIDLt adds the iDLt to the ipam services list params
   365  func (o *IpamServicesListParams) WithIDLt(iDLt *string) *IpamServicesListParams {
   366  	o.SetIDLt(iDLt)
   367  	return o
   368  }
   369  
   370  // SetIDLt adds the idLt to the ipam services list params
   371  func (o *IpamServicesListParams) SetIDLt(iDLt *string) {
   372  	o.IDLt = iDLt
   373  }
   374  
   375  // WithIDLte adds the iDLte to the ipam services list params
   376  func (o *IpamServicesListParams) WithIDLte(iDLte *string) *IpamServicesListParams {
   377  	o.SetIDLte(iDLte)
   378  	return o
   379  }
   380  
   381  // SetIDLte adds the idLte to the ipam services list params
   382  func (o *IpamServicesListParams) SetIDLte(iDLte *string) {
   383  	o.IDLte = iDLte
   384  }
   385  
   386  // WithIDn adds the iDn to the ipam services list params
   387  func (o *IpamServicesListParams) WithIDn(iDn *string) *IpamServicesListParams {
   388  	o.SetIDn(iDn)
   389  	return o
   390  }
   391  
   392  // SetIDn adds the idN to the ipam services list params
   393  func (o *IpamServicesListParams) SetIDn(iDn *string) {
   394  	o.IDn = iDn
   395  }
   396  
   397  // WithLastUpdated adds the lastUpdated to the ipam services list params
   398  func (o *IpamServicesListParams) WithLastUpdated(lastUpdated *string) *IpamServicesListParams {
   399  	o.SetLastUpdated(lastUpdated)
   400  	return o
   401  }
   402  
   403  // SetLastUpdated adds the lastUpdated to the ipam services list params
   404  func (o *IpamServicesListParams) SetLastUpdated(lastUpdated *string) {
   405  	o.LastUpdated = lastUpdated
   406  }
   407  
   408  // WithLastUpdatedGte adds the lastUpdatedGte to the ipam services list params
   409  func (o *IpamServicesListParams) WithLastUpdatedGte(lastUpdatedGte *string) *IpamServicesListParams {
   410  	o.SetLastUpdatedGte(lastUpdatedGte)
   411  	return o
   412  }
   413  
   414  // SetLastUpdatedGte adds the lastUpdatedGte to the ipam services list params
   415  func (o *IpamServicesListParams) SetLastUpdatedGte(lastUpdatedGte *string) {
   416  	o.LastUpdatedGte = lastUpdatedGte
   417  }
   418  
   419  // WithLastUpdatedLte adds the lastUpdatedLte to the ipam services list params
   420  func (o *IpamServicesListParams) WithLastUpdatedLte(lastUpdatedLte *string) *IpamServicesListParams {
   421  	o.SetLastUpdatedLte(lastUpdatedLte)
   422  	return o
   423  }
   424  
   425  // SetLastUpdatedLte adds the lastUpdatedLte to the ipam services list params
   426  func (o *IpamServicesListParams) SetLastUpdatedLte(lastUpdatedLte *string) {
   427  	o.LastUpdatedLte = lastUpdatedLte
   428  }
   429  
   430  // WithLimit adds the limit to the ipam services list params
   431  func (o *IpamServicesListParams) WithLimit(limit *int64) *IpamServicesListParams {
   432  	o.SetLimit(limit)
   433  	return o
   434  }
   435  
   436  // SetLimit adds the limit to the ipam services list params
   437  func (o *IpamServicesListParams) SetLimit(limit *int64) {
   438  	o.Limit = limit
   439  }
   440  
   441  // WithName adds the name to the ipam services list params
   442  func (o *IpamServicesListParams) WithName(name *string) *IpamServicesListParams {
   443  	o.SetName(name)
   444  	return o
   445  }
   446  
   447  // SetName adds the name to the ipam services list params
   448  func (o *IpamServicesListParams) SetName(name *string) {
   449  	o.Name = name
   450  }
   451  
   452  // WithNameEmpty adds the nameEmpty to the ipam services list params
   453  func (o *IpamServicesListParams) WithNameEmpty(nameEmpty *string) *IpamServicesListParams {
   454  	o.SetNameEmpty(nameEmpty)
   455  	return o
   456  }
   457  
   458  // SetNameEmpty adds the nameEmpty to the ipam services list params
   459  func (o *IpamServicesListParams) SetNameEmpty(nameEmpty *string) {
   460  	o.NameEmpty = nameEmpty
   461  }
   462  
   463  // WithNameIc adds the nameIc to the ipam services list params
   464  func (o *IpamServicesListParams) WithNameIc(nameIc *string) *IpamServicesListParams {
   465  	o.SetNameIc(nameIc)
   466  	return o
   467  }
   468  
   469  // SetNameIc adds the nameIc to the ipam services list params
   470  func (o *IpamServicesListParams) SetNameIc(nameIc *string) {
   471  	o.NameIc = nameIc
   472  }
   473  
   474  // WithNameIe adds the nameIe to the ipam services list params
   475  func (o *IpamServicesListParams) WithNameIe(nameIe *string) *IpamServicesListParams {
   476  	o.SetNameIe(nameIe)
   477  	return o
   478  }
   479  
   480  // SetNameIe adds the nameIe to the ipam services list params
   481  func (o *IpamServicesListParams) SetNameIe(nameIe *string) {
   482  	o.NameIe = nameIe
   483  }
   484  
   485  // WithNameIew adds the nameIew to the ipam services list params
   486  func (o *IpamServicesListParams) WithNameIew(nameIew *string) *IpamServicesListParams {
   487  	o.SetNameIew(nameIew)
   488  	return o
   489  }
   490  
   491  // SetNameIew adds the nameIew to the ipam services list params
   492  func (o *IpamServicesListParams) SetNameIew(nameIew *string) {
   493  	o.NameIew = nameIew
   494  }
   495  
   496  // WithNameIsw adds the nameIsw to the ipam services list params
   497  func (o *IpamServicesListParams) WithNameIsw(nameIsw *string) *IpamServicesListParams {
   498  	o.SetNameIsw(nameIsw)
   499  	return o
   500  }
   501  
   502  // SetNameIsw adds the nameIsw to the ipam services list params
   503  func (o *IpamServicesListParams) SetNameIsw(nameIsw *string) {
   504  	o.NameIsw = nameIsw
   505  }
   506  
   507  // WithNamen adds the namen to the ipam services list params
   508  func (o *IpamServicesListParams) WithNamen(namen *string) *IpamServicesListParams {
   509  	o.SetNamen(namen)
   510  	return o
   511  }
   512  
   513  // SetNamen adds the nameN to the ipam services list params
   514  func (o *IpamServicesListParams) SetNamen(namen *string) {
   515  	o.Namen = namen
   516  }
   517  
   518  // WithNameNic adds the nameNic to the ipam services list params
   519  func (o *IpamServicesListParams) WithNameNic(nameNic *string) *IpamServicesListParams {
   520  	o.SetNameNic(nameNic)
   521  	return o
   522  }
   523  
   524  // SetNameNic adds the nameNic to the ipam services list params
   525  func (o *IpamServicesListParams) SetNameNic(nameNic *string) {
   526  	o.NameNic = nameNic
   527  }
   528  
   529  // WithNameNie adds the nameNie to the ipam services list params
   530  func (o *IpamServicesListParams) WithNameNie(nameNie *string) *IpamServicesListParams {
   531  	o.SetNameNie(nameNie)
   532  	return o
   533  }
   534  
   535  // SetNameNie adds the nameNie to the ipam services list params
   536  func (o *IpamServicesListParams) SetNameNie(nameNie *string) {
   537  	o.NameNie = nameNie
   538  }
   539  
   540  // WithNameNiew adds the nameNiew to the ipam services list params
   541  func (o *IpamServicesListParams) WithNameNiew(nameNiew *string) *IpamServicesListParams {
   542  	o.SetNameNiew(nameNiew)
   543  	return o
   544  }
   545  
   546  // SetNameNiew adds the nameNiew to the ipam services list params
   547  func (o *IpamServicesListParams) SetNameNiew(nameNiew *string) {
   548  	o.NameNiew = nameNiew
   549  }
   550  
   551  // WithNameNisw adds the nameNisw to the ipam services list params
   552  func (o *IpamServicesListParams) WithNameNisw(nameNisw *string) *IpamServicesListParams {
   553  	o.SetNameNisw(nameNisw)
   554  	return o
   555  }
   556  
   557  // SetNameNisw adds the nameNisw to the ipam services list params
   558  func (o *IpamServicesListParams) SetNameNisw(nameNisw *string) {
   559  	o.NameNisw = nameNisw
   560  }
   561  
   562  // WithOffset adds the offset to the ipam services list params
   563  func (o *IpamServicesListParams) WithOffset(offset *int64) *IpamServicesListParams {
   564  	o.SetOffset(offset)
   565  	return o
   566  }
   567  
   568  // SetOffset adds the offset to the ipam services list params
   569  func (o *IpamServicesListParams) SetOffset(offset *int64) {
   570  	o.Offset = offset
   571  }
   572  
   573  // WithPort adds the port to the ipam services list params
   574  func (o *IpamServicesListParams) WithPort(port *float64) *IpamServicesListParams {
   575  	o.SetPort(port)
   576  	return o
   577  }
   578  
   579  // SetPort adds the port to the ipam services list params
   580  func (o *IpamServicesListParams) SetPort(port *float64) {
   581  	o.Port = port
   582  }
   583  
   584  // WithProtocol adds the protocol to the ipam services list params
   585  func (o *IpamServicesListParams) WithProtocol(protocol *string) *IpamServicesListParams {
   586  	o.SetProtocol(protocol)
   587  	return o
   588  }
   589  
   590  // SetProtocol adds the protocol to the ipam services list params
   591  func (o *IpamServicesListParams) SetProtocol(protocol *string) {
   592  	o.Protocol = protocol
   593  }
   594  
   595  // WithProtocoln adds the protocoln to the ipam services list params
   596  func (o *IpamServicesListParams) WithProtocoln(protocoln *string) *IpamServicesListParams {
   597  	o.SetProtocoln(protocoln)
   598  	return o
   599  }
   600  
   601  // SetProtocoln adds the protocolN to the ipam services list params
   602  func (o *IpamServicesListParams) SetProtocoln(protocoln *string) {
   603  	o.Protocoln = protocoln
   604  }
   605  
   606  // WithQ adds the q to the ipam services list params
   607  func (o *IpamServicesListParams) WithQ(q *string) *IpamServicesListParams {
   608  	o.SetQ(q)
   609  	return o
   610  }
   611  
   612  // SetQ adds the q to the ipam services list params
   613  func (o *IpamServicesListParams) SetQ(q *string) {
   614  	o.Q = q
   615  }
   616  
   617  // WithTag adds the tag to the ipam services list params
   618  func (o *IpamServicesListParams) WithTag(tag *string) *IpamServicesListParams {
   619  	o.SetTag(tag)
   620  	return o
   621  }
   622  
   623  // SetTag adds the tag to the ipam services list params
   624  func (o *IpamServicesListParams) SetTag(tag *string) {
   625  	o.Tag = tag
   626  }
   627  
   628  // WithTagn adds the tagn to the ipam services list params
   629  func (o *IpamServicesListParams) WithTagn(tagn *string) *IpamServicesListParams {
   630  	o.SetTagn(tagn)
   631  	return o
   632  }
   633  
   634  // SetTagn adds the tagN to the ipam services list params
   635  func (o *IpamServicesListParams) SetTagn(tagn *string) {
   636  	o.Tagn = tagn
   637  }
   638  
   639  // WithVirtualMachine adds the virtualMachine to the ipam services list params
   640  func (o *IpamServicesListParams) WithVirtualMachine(virtualMachine *string) *IpamServicesListParams {
   641  	o.SetVirtualMachine(virtualMachine)
   642  	return o
   643  }
   644  
   645  // SetVirtualMachine adds the virtualMachine to the ipam services list params
   646  func (o *IpamServicesListParams) SetVirtualMachine(virtualMachine *string) {
   647  	o.VirtualMachine = virtualMachine
   648  }
   649  
   650  // WithVirtualMachinen adds the virtualMachinen to the ipam services list params
   651  func (o *IpamServicesListParams) WithVirtualMachinen(virtualMachinen *string) *IpamServicesListParams {
   652  	o.SetVirtualMachinen(virtualMachinen)
   653  	return o
   654  }
   655  
   656  // SetVirtualMachinen adds the virtualMachineN to the ipam services list params
   657  func (o *IpamServicesListParams) SetVirtualMachinen(virtualMachinen *string) {
   658  	o.VirtualMachinen = virtualMachinen
   659  }
   660  
   661  // WithVirtualMachineID adds the virtualMachineID to the ipam services list params
   662  func (o *IpamServicesListParams) WithVirtualMachineID(virtualMachineID *string) *IpamServicesListParams {
   663  	o.SetVirtualMachineID(virtualMachineID)
   664  	return o
   665  }
   666  
   667  // SetVirtualMachineID adds the virtualMachineId to the ipam services list params
   668  func (o *IpamServicesListParams) SetVirtualMachineID(virtualMachineID *string) {
   669  	o.VirtualMachineID = virtualMachineID
   670  }
   671  
   672  // WithVirtualMachineIDn adds the virtualMachineIDn to the ipam services list params
   673  func (o *IpamServicesListParams) WithVirtualMachineIDn(virtualMachineIDn *string) *IpamServicesListParams {
   674  	o.SetVirtualMachineIDn(virtualMachineIDn)
   675  	return o
   676  }
   677  
   678  // SetVirtualMachineIDn adds the virtualMachineIdN to the ipam services list params
   679  func (o *IpamServicesListParams) SetVirtualMachineIDn(virtualMachineIDn *string) {
   680  	o.VirtualMachineIDn = virtualMachineIDn
   681  }
   682  
   683  // WriteToRequest writes these params to a swagger request
   684  func (o *IpamServicesListParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error {
   685  
   686  	if err := r.SetTimeout(o.timeout); err != nil {
   687  		return err
   688  	}
   689  	var res []error
   690  
   691  	if o.Created != nil {
   692  
   693  		// query param created
   694  		var qrCreated string
   695  
   696  		if o.Created != nil {
   697  			qrCreated = *o.Created
   698  		}
   699  		qCreated := qrCreated
   700  		if qCreated != "" {
   701  
   702  			if err := r.SetQueryParam("created", qCreated); err != nil {
   703  				return err
   704  			}
   705  		}
   706  	}
   707  
   708  	if o.CreatedGte != nil {
   709  
   710  		// query param created__gte
   711  		var qrCreatedGte string
   712  
   713  		if o.CreatedGte != nil {
   714  			qrCreatedGte = *o.CreatedGte
   715  		}
   716  		qCreatedGte := qrCreatedGte
   717  		if qCreatedGte != "" {
   718  
   719  			if err := r.SetQueryParam("created__gte", qCreatedGte); err != nil {
   720  				return err
   721  			}
   722  		}
   723  	}
   724  
   725  	if o.CreatedLte != nil {
   726  
   727  		// query param created__lte
   728  		var qrCreatedLte string
   729  
   730  		if o.CreatedLte != nil {
   731  			qrCreatedLte = *o.CreatedLte
   732  		}
   733  		qCreatedLte := qrCreatedLte
   734  		if qCreatedLte != "" {
   735  
   736  			if err := r.SetQueryParam("created__lte", qCreatedLte); err != nil {
   737  				return err
   738  			}
   739  		}
   740  	}
   741  
   742  	if o.Device != nil {
   743  
   744  		// query param device
   745  		var qrDevice string
   746  
   747  		if o.Device != nil {
   748  			qrDevice = *o.Device
   749  		}
   750  		qDevice := qrDevice
   751  		if qDevice != "" {
   752  
   753  			if err := r.SetQueryParam("device", qDevice); err != nil {
   754  				return err
   755  			}
   756  		}
   757  	}
   758  
   759  	if o.Devicen != nil {
   760  
   761  		// query param device__n
   762  		var qrDevicen string
   763  
   764  		if o.Devicen != nil {
   765  			qrDevicen = *o.Devicen
   766  		}
   767  		qDevicen := qrDevicen
   768  		if qDevicen != "" {
   769  
   770  			if err := r.SetQueryParam("device__n", qDevicen); err != nil {
   771  				return err
   772  			}
   773  		}
   774  	}
   775  
   776  	if o.DeviceID != nil {
   777  
   778  		// query param device_id
   779  		var qrDeviceID string
   780  
   781  		if o.DeviceID != nil {
   782  			qrDeviceID = *o.DeviceID
   783  		}
   784  		qDeviceID := qrDeviceID
   785  		if qDeviceID != "" {
   786  
   787  			if err := r.SetQueryParam("device_id", qDeviceID); err != nil {
   788  				return err
   789  			}
   790  		}
   791  	}
   792  
   793  	if o.DeviceIDn != nil {
   794  
   795  		// query param device_id__n
   796  		var qrDeviceIDn string
   797  
   798  		if o.DeviceIDn != nil {
   799  			qrDeviceIDn = *o.DeviceIDn
   800  		}
   801  		qDeviceIDn := qrDeviceIDn
   802  		if qDeviceIDn != "" {
   803  
   804  			if err := r.SetQueryParam("device_id__n", qDeviceIDn); err != nil {
   805  				return err
   806  			}
   807  		}
   808  	}
   809  
   810  	if o.ID != nil {
   811  
   812  		// query param id
   813  		var qrID string
   814  
   815  		if o.ID != nil {
   816  			qrID = *o.ID
   817  		}
   818  		qID := qrID
   819  		if qID != "" {
   820  
   821  			if err := r.SetQueryParam("id", qID); err != nil {
   822  				return err
   823  			}
   824  		}
   825  	}
   826  
   827  	if o.IDGt != nil {
   828  
   829  		// query param id__gt
   830  		var qrIDGt string
   831  
   832  		if o.IDGt != nil {
   833  			qrIDGt = *o.IDGt
   834  		}
   835  		qIDGt := qrIDGt
   836  		if qIDGt != "" {
   837  
   838  			if err := r.SetQueryParam("id__gt", qIDGt); err != nil {
   839  				return err
   840  			}
   841  		}
   842  	}
   843  
   844  	if o.IDGte != nil {
   845  
   846  		// query param id__gte
   847  		var qrIDGte string
   848  
   849  		if o.IDGte != nil {
   850  			qrIDGte = *o.IDGte
   851  		}
   852  		qIDGte := qrIDGte
   853  		if qIDGte != "" {
   854  
   855  			if err := r.SetQueryParam("id__gte", qIDGte); err != nil {
   856  				return err
   857  			}
   858  		}
   859  	}
   860  
   861  	if o.IDLt != nil {
   862  
   863  		// query param id__lt
   864  		var qrIDLt string
   865  
   866  		if o.IDLt != nil {
   867  			qrIDLt = *o.IDLt
   868  		}
   869  		qIDLt := qrIDLt
   870  		if qIDLt != "" {
   871  
   872  			if err := r.SetQueryParam("id__lt", qIDLt); err != nil {
   873  				return err
   874  			}
   875  		}
   876  	}
   877  
   878  	if o.IDLte != nil {
   879  
   880  		// query param id__lte
   881  		var qrIDLte string
   882  
   883  		if o.IDLte != nil {
   884  			qrIDLte = *o.IDLte
   885  		}
   886  		qIDLte := qrIDLte
   887  		if qIDLte != "" {
   888  
   889  			if err := r.SetQueryParam("id__lte", qIDLte); err != nil {
   890  				return err
   891  			}
   892  		}
   893  	}
   894  
   895  	if o.IDn != nil {
   896  
   897  		// query param id__n
   898  		var qrIDn string
   899  
   900  		if o.IDn != nil {
   901  			qrIDn = *o.IDn
   902  		}
   903  		qIDn := qrIDn
   904  		if qIDn != "" {
   905  
   906  			if err := r.SetQueryParam("id__n", qIDn); err != nil {
   907  				return err
   908  			}
   909  		}
   910  	}
   911  
   912  	if o.LastUpdated != nil {
   913  
   914  		// query param last_updated
   915  		var qrLastUpdated string
   916  
   917  		if o.LastUpdated != nil {
   918  			qrLastUpdated = *o.LastUpdated
   919  		}
   920  		qLastUpdated := qrLastUpdated
   921  		if qLastUpdated != "" {
   922  
   923  			if err := r.SetQueryParam("last_updated", qLastUpdated); err != nil {
   924  				return err
   925  			}
   926  		}
   927  	}
   928  
   929  	if o.LastUpdatedGte != nil {
   930  
   931  		// query param last_updated__gte
   932  		var qrLastUpdatedGte string
   933  
   934  		if o.LastUpdatedGte != nil {
   935  			qrLastUpdatedGte = *o.LastUpdatedGte
   936  		}
   937  		qLastUpdatedGte := qrLastUpdatedGte
   938  		if qLastUpdatedGte != "" {
   939  
   940  			if err := r.SetQueryParam("last_updated__gte", qLastUpdatedGte); err != nil {
   941  				return err
   942  			}
   943  		}
   944  	}
   945  
   946  	if o.LastUpdatedLte != nil {
   947  
   948  		// query param last_updated__lte
   949  		var qrLastUpdatedLte string
   950  
   951  		if o.LastUpdatedLte != nil {
   952  			qrLastUpdatedLte = *o.LastUpdatedLte
   953  		}
   954  		qLastUpdatedLte := qrLastUpdatedLte
   955  		if qLastUpdatedLte != "" {
   956  
   957  			if err := r.SetQueryParam("last_updated__lte", qLastUpdatedLte); err != nil {
   958  				return err
   959  			}
   960  		}
   961  	}
   962  
   963  	if o.Limit != nil {
   964  
   965  		// query param limit
   966  		var qrLimit int64
   967  
   968  		if o.Limit != nil {
   969  			qrLimit = *o.Limit
   970  		}
   971  		qLimit := swag.FormatInt64(qrLimit)
   972  		if qLimit != "" {
   973  
   974  			if err := r.SetQueryParam("limit", qLimit); err != nil {
   975  				return err
   976  			}
   977  		}
   978  	}
   979  
   980  	if o.Name != nil {
   981  
   982  		// query param name
   983  		var qrName string
   984  
   985  		if o.Name != nil {
   986  			qrName = *o.Name
   987  		}
   988  		qName := qrName
   989  		if qName != "" {
   990  
   991  			if err := r.SetQueryParam("name", qName); err != nil {
   992  				return err
   993  			}
   994  		}
   995  	}
   996  
   997  	if o.NameEmpty != nil {
   998  
   999  		// query param name__empty
  1000  		var qrNameEmpty string
  1001  
  1002  		if o.NameEmpty != nil {
  1003  			qrNameEmpty = *o.NameEmpty
  1004  		}
  1005  		qNameEmpty := qrNameEmpty
  1006  		if qNameEmpty != "" {
  1007  
  1008  			if err := r.SetQueryParam("name__empty", qNameEmpty); err != nil {
  1009  				return err
  1010  			}
  1011  		}
  1012  	}
  1013  
  1014  	if o.NameIc != nil {
  1015  
  1016  		// query param name__ic
  1017  		var qrNameIc string
  1018  
  1019  		if o.NameIc != nil {
  1020  			qrNameIc = *o.NameIc
  1021  		}
  1022  		qNameIc := qrNameIc
  1023  		if qNameIc != "" {
  1024  
  1025  			if err := r.SetQueryParam("name__ic", qNameIc); err != nil {
  1026  				return err
  1027  			}
  1028  		}
  1029  	}
  1030  
  1031  	if o.NameIe != nil {
  1032  
  1033  		// query param name__ie
  1034  		var qrNameIe string
  1035  
  1036  		if o.NameIe != nil {
  1037  			qrNameIe = *o.NameIe
  1038  		}
  1039  		qNameIe := qrNameIe
  1040  		if qNameIe != "" {
  1041  
  1042  			if err := r.SetQueryParam("name__ie", qNameIe); err != nil {
  1043  				return err
  1044  			}
  1045  		}
  1046  	}
  1047  
  1048  	if o.NameIew != nil {
  1049  
  1050  		// query param name__iew
  1051  		var qrNameIew string
  1052  
  1053  		if o.NameIew != nil {
  1054  			qrNameIew = *o.NameIew
  1055  		}
  1056  		qNameIew := qrNameIew
  1057  		if qNameIew != "" {
  1058  
  1059  			if err := r.SetQueryParam("name__iew", qNameIew); err != nil {
  1060  				return err
  1061  			}
  1062  		}
  1063  	}
  1064  
  1065  	if o.NameIsw != nil {
  1066  
  1067  		// query param name__isw
  1068  		var qrNameIsw string
  1069  
  1070  		if o.NameIsw != nil {
  1071  			qrNameIsw = *o.NameIsw
  1072  		}
  1073  		qNameIsw := qrNameIsw
  1074  		if qNameIsw != "" {
  1075  
  1076  			if err := r.SetQueryParam("name__isw", qNameIsw); err != nil {
  1077  				return err
  1078  			}
  1079  		}
  1080  	}
  1081  
  1082  	if o.Namen != nil {
  1083  
  1084  		// query param name__n
  1085  		var qrNamen string
  1086  
  1087  		if o.Namen != nil {
  1088  			qrNamen = *o.Namen
  1089  		}
  1090  		qNamen := qrNamen
  1091  		if qNamen != "" {
  1092  
  1093  			if err := r.SetQueryParam("name__n", qNamen); err != nil {
  1094  				return err
  1095  			}
  1096  		}
  1097  	}
  1098  
  1099  	if o.NameNic != nil {
  1100  
  1101  		// query param name__nic
  1102  		var qrNameNic string
  1103  
  1104  		if o.NameNic != nil {
  1105  			qrNameNic = *o.NameNic
  1106  		}
  1107  		qNameNic := qrNameNic
  1108  		if qNameNic != "" {
  1109  
  1110  			if err := r.SetQueryParam("name__nic", qNameNic); err != nil {
  1111  				return err
  1112  			}
  1113  		}
  1114  	}
  1115  
  1116  	if o.NameNie != nil {
  1117  
  1118  		// query param name__nie
  1119  		var qrNameNie string
  1120  
  1121  		if o.NameNie != nil {
  1122  			qrNameNie = *o.NameNie
  1123  		}
  1124  		qNameNie := qrNameNie
  1125  		if qNameNie != "" {
  1126  
  1127  			if err := r.SetQueryParam("name__nie", qNameNie); err != nil {
  1128  				return err
  1129  			}
  1130  		}
  1131  	}
  1132  
  1133  	if o.NameNiew != nil {
  1134  
  1135  		// query param name__niew
  1136  		var qrNameNiew string
  1137  
  1138  		if o.NameNiew != nil {
  1139  			qrNameNiew = *o.NameNiew
  1140  		}
  1141  		qNameNiew := qrNameNiew
  1142  		if qNameNiew != "" {
  1143  
  1144  			if err := r.SetQueryParam("name__niew", qNameNiew); err != nil {
  1145  				return err
  1146  			}
  1147  		}
  1148  	}
  1149  
  1150  	if o.NameNisw != nil {
  1151  
  1152  		// query param name__nisw
  1153  		var qrNameNisw string
  1154  
  1155  		if o.NameNisw != nil {
  1156  			qrNameNisw = *o.NameNisw
  1157  		}
  1158  		qNameNisw := qrNameNisw
  1159  		if qNameNisw != "" {
  1160  
  1161  			if err := r.SetQueryParam("name__nisw", qNameNisw); err != nil {
  1162  				return err
  1163  			}
  1164  		}
  1165  	}
  1166  
  1167  	if o.Offset != nil {
  1168  
  1169  		// query param offset
  1170  		var qrOffset int64
  1171  
  1172  		if o.Offset != nil {
  1173  			qrOffset = *o.Offset
  1174  		}
  1175  		qOffset := swag.FormatInt64(qrOffset)
  1176  		if qOffset != "" {
  1177  
  1178  			if err := r.SetQueryParam("offset", qOffset); err != nil {
  1179  				return err
  1180  			}
  1181  		}
  1182  	}
  1183  
  1184  	if o.Port != nil {
  1185  
  1186  		// query param port
  1187  		var qrPort float64
  1188  
  1189  		if o.Port != nil {
  1190  			qrPort = *o.Port
  1191  		}
  1192  		qPort := swag.FormatFloat64(qrPort)
  1193  		if qPort != "" {
  1194  
  1195  			if err := r.SetQueryParam("port", qPort); err != nil {
  1196  				return err
  1197  			}
  1198  		}
  1199  	}
  1200  
  1201  	if o.Protocol != nil {
  1202  
  1203  		// query param protocol
  1204  		var qrProtocol string
  1205  
  1206  		if o.Protocol != nil {
  1207  			qrProtocol = *o.Protocol
  1208  		}
  1209  		qProtocol := qrProtocol
  1210  		if qProtocol != "" {
  1211  
  1212  			if err := r.SetQueryParam("protocol", qProtocol); err != nil {
  1213  				return err
  1214  			}
  1215  		}
  1216  	}
  1217  
  1218  	if o.Protocoln != nil {
  1219  
  1220  		// query param protocol__n
  1221  		var qrProtocoln string
  1222  
  1223  		if o.Protocoln != nil {
  1224  			qrProtocoln = *o.Protocoln
  1225  		}
  1226  		qProtocoln := qrProtocoln
  1227  		if qProtocoln != "" {
  1228  
  1229  			if err := r.SetQueryParam("protocol__n", qProtocoln); err != nil {
  1230  				return err
  1231  			}
  1232  		}
  1233  	}
  1234  
  1235  	if o.Q != nil {
  1236  
  1237  		// query param q
  1238  		var qrQ string
  1239  
  1240  		if o.Q != nil {
  1241  			qrQ = *o.Q
  1242  		}
  1243  		qQ := qrQ
  1244  		if qQ != "" {
  1245  
  1246  			if err := r.SetQueryParam("q", qQ); err != nil {
  1247  				return err
  1248  			}
  1249  		}
  1250  	}
  1251  
  1252  	if o.Tag != nil {
  1253  
  1254  		// query param tag
  1255  		var qrTag string
  1256  
  1257  		if o.Tag != nil {
  1258  			qrTag = *o.Tag
  1259  		}
  1260  		qTag := qrTag
  1261  		if qTag != "" {
  1262  
  1263  			if err := r.SetQueryParam("tag", qTag); err != nil {
  1264  				return err
  1265  			}
  1266  		}
  1267  	}
  1268  
  1269  	if o.Tagn != nil {
  1270  
  1271  		// query param tag__n
  1272  		var qrTagn string
  1273  
  1274  		if o.Tagn != nil {
  1275  			qrTagn = *o.Tagn
  1276  		}
  1277  		qTagn := qrTagn
  1278  		if qTagn != "" {
  1279  
  1280  			if err := r.SetQueryParam("tag__n", qTagn); err != nil {
  1281  				return err
  1282  			}
  1283  		}
  1284  	}
  1285  
  1286  	if o.VirtualMachine != nil {
  1287  
  1288  		// query param virtual_machine
  1289  		var qrVirtualMachine string
  1290  
  1291  		if o.VirtualMachine != nil {
  1292  			qrVirtualMachine = *o.VirtualMachine
  1293  		}
  1294  		qVirtualMachine := qrVirtualMachine
  1295  		if qVirtualMachine != "" {
  1296  
  1297  			if err := r.SetQueryParam("virtual_machine", qVirtualMachine); err != nil {
  1298  				return err
  1299  			}
  1300  		}
  1301  	}
  1302  
  1303  	if o.VirtualMachinen != nil {
  1304  
  1305  		// query param virtual_machine__n
  1306  		var qrVirtualMachinen string
  1307  
  1308  		if o.VirtualMachinen != nil {
  1309  			qrVirtualMachinen = *o.VirtualMachinen
  1310  		}
  1311  		qVirtualMachinen := qrVirtualMachinen
  1312  		if qVirtualMachinen != "" {
  1313  
  1314  			if err := r.SetQueryParam("virtual_machine__n", qVirtualMachinen); err != nil {
  1315  				return err
  1316  			}
  1317  		}
  1318  	}
  1319  
  1320  	if o.VirtualMachineID != nil {
  1321  
  1322  		// query param virtual_machine_id
  1323  		var qrVirtualMachineID string
  1324  
  1325  		if o.VirtualMachineID != nil {
  1326  			qrVirtualMachineID = *o.VirtualMachineID
  1327  		}
  1328  		qVirtualMachineID := qrVirtualMachineID
  1329  		if qVirtualMachineID != "" {
  1330  
  1331  			if err := r.SetQueryParam("virtual_machine_id", qVirtualMachineID); err != nil {
  1332  				return err
  1333  			}
  1334  		}
  1335  	}
  1336  
  1337  	if o.VirtualMachineIDn != nil {
  1338  
  1339  		// query param virtual_machine_id__n
  1340  		var qrVirtualMachineIDn string
  1341  
  1342  		if o.VirtualMachineIDn != nil {
  1343  			qrVirtualMachineIDn = *o.VirtualMachineIDn
  1344  		}
  1345  		qVirtualMachineIDn := qrVirtualMachineIDn
  1346  		if qVirtualMachineIDn != "" {
  1347  
  1348  			if err := r.SetQueryParam("virtual_machine_id__n", qVirtualMachineIDn); err != nil {
  1349  				return err
  1350  			}
  1351  		}
  1352  	}
  1353  
  1354  	if len(res) > 0 {
  1355  		return errors.CompositeValidationError(res...)
  1356  	}
  1357  	return nil
  1358  }