github.com/digitalocean/go-netbox@v0.0.2/netbox/client/virtualization/virtualization_interfaces_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 virtualization 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 // NewVirtualizationInterfacesListParams creates a new VirtualizationInterfacesListParams 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 NewVirtualizationInterfacesListParams() *VirtualizationInterfacesListParams { 42 return &VirtualizationInterfacesListParams{ 43 timeout: cr.DefaultTimeout, 44 } 45 } 46 47 // NewVirtualizationInterfacesListParamsWithTimeout creates a new VirtualizationInterfacesListParams object 48 // with the ability to set a timeout on a request. 49 func NewVirtualizationInterfacesListParamsWithTimeout(timeout time.Duration) *VirtualizationInterfacesListParams { 50 return &VirtualizationInterfacesListParams{ 51 timeout: timeout, 52 } 53 } 54 55 // NewVirtualizationInterfacesListParamsWithContext creates a new VirtualizationInterfacesListParams object 56 // with the ability to set a context for a request. 57 func NewVirtualizationInterfacesListParamsWithContext(ctx context.Context) *VirtualizationInterfacesListParams { 58 return &VirtualizationInterfacesListParams{ 59 Context: ctx, 60 } 61 } 62 63 // NewVirtualizationInterfacesListParamsWithHTTPClient creates a new VirtualizationInterfacesListParams object 64 // with the ability to set a custom HTTPClient for a request. 65 func NewVirtualizationInterfacesListParamsWithHTTPClient(client *http.Client) *VirtualizationInterfacesListParams { 66 return &VirtualizationInterfacesListParams{ 67 HTTPClient: client, 68 } 69 } 70 71 /* VirtualizationInterfacesListParams contains all the parameters to send to the API endpoint 72 for the virtualization interfaces list operation. 73 74 Typically these are written to a http.Request. 75 */ 76 type VirtualizationInterfacesListParams struct { 77 78 // Cluster. 79 Cluster *string 80 81 // Clustern. 82 Clustern *string 83 84 // ClusterID. 85 ClusterID *string 86 87 // ClusterIDn. 88 ClusterIDn *string 89 90 // Created. 91 Created *string 92 93 // CreatedGte. 94 CreatedGte *string 95 96 // CreatedLte. 97 CreatedLte *string 98 99 // Enabled. 100 Enabled *string 101 102 // ID. 103 ID *string 104 105 // IDGt. 106 IDGt *string 107 108 // IDGte. 109 IDGte *string 110 111 // IDLt. 112 IDLt *string 113 114 // IDLte. 115 IDLte *string 116 117 // IDn. 118 IDn *string 119 120 // LastUpdated. 121 LastUpdated *string 122 123 // LastUpdatedGte. 124 LastUpdatedGte *string 125 126 // LastUpdatedLte. 127 LastUpdatedLte *string 128 129 /* Limit. 130 131 Number of results to return per page. 132 */ 133 Limit *int64 134 135 // MacAddress. 136 MacAddress *string 137 138 // MacAddressIc. 139 MacAddressIc *string 140 141 // MacAddressIe. 142 MacAddressIe *string 143 144 // MacAddressIew. 145 MacAddressIew *string 146 147 // MacAddressIsw. 148 MacAddressIsw *string 149 150 // MacAddressn. 151 MacAddressn *string 152 153 // MacAddressNic. 154 MacAddressNic *string 155 156 // MacAddressNie. 157 MacAddressNie *string 158 159 // MacAddressNiew. 160 MacAddressNiew *string 161 162 // MacAddressNisw. 163 MacAddressNisw *string 164 165 // Mtu. 166 Mtu *string 167 168 // MtuGt. 169 MtuGt *string 170 171 // MtuGte. 172 MtuGte *string 173 174 // MtuLt. 175 MtuLt *string 176 177 // MtuLte. 178 MtuLte *string 179 180 // Mtun. 181 Mtun *string 182 183 // Name. 184 Name *string 185 186 // NameEmpty. 187 NameEmpty *string 188 189 // NameIc. 190 NameIc *string 191 192 // NameIe. 193 NameIe *string 194 195 // NameIew. 196 NameIew *string 197 198 // NameIsw. 199 NameIsw *string 200 201 // Namen. 202 Namen *string 203 204 // NameNic. 205 NameNic *string 206 207 // NameNie. 208 NameNie *string 209 210 // NameNiew. 211 NameNiew *string 212 213 // NameNisw. 214 NameNisw *string 215 216 /* Offset. 217 218 The initial index from which to return the results. 219 */ 220 Offset *int64 221 222 // ParentID. 223 ParentID *string 224 225 // ParentIDn. 226 ParentIDn *string 227 228 // Q. 229 Q *string 230 231 // Tag. 232 Tag *string 233 234 // Tagn. 235 Tagn *string 236 237 // VirtualMachine. 238 VirtualMachine *string 239 240 // VirtualMachinen. 241 VirtualMachinen *string 242 243 // VirtualMachineID. 244 VirtualMachineID *string 245 246 // VirtualMachineIDn. 247 VirtualMachineIDn *string 248 249 timeout time.Duration 250 Context context.Context 251 HTTPClient *http.Client 252 } 253 254 // WithDefaults hydrates default values in the virtualization interfaces list params (not the query body). 255 // 256 // All values with no default are reset to their zero value. 257 func (o *VirtualizationInterfacesListParams) WithDefaults() *VirtualizationInterfacesListParams { 258 o.SetDefaults() 259 return o 260 } 261 262 // SetDefaults hydrates default values in the virtualization interfaces list params (not the query body). 263 // 264 // All values with no default are reset to their zero value. 265 func (o *VirtualizationInterfacesListParams) SetDefaults() { 266 // no default values defined for this parameter 267 } 268 269 // WithTimeout adds the timeout to the virtualization interfaces list params 270 func (o *VirtualizationInterfacesListParams) WithTimeout(timeout time.Duration) *VirtualizationInterfacesListParams { 271 o.SetTimeout(timeout) 272 return o 273 } 274 275 // SetTimeout adds the timeout to the virtualization interfaces list params 276 func (o *VirtualizationInterfacesListParams) SetTimeout(timeout time.Duration) { 277 o.timeout = timeout 278 } 279 280 // WithContext adds the context to the virtualization interfaces list params 281 func (o *VirtualizationInterfacesListParams) WithContext(ctx context.Context) *VirtualizationInterfacesListParams { 282 o.SetContext(ctx) 283 return o 284 } 285 286 // SetContext adds the context to the virtualization interfaces list params 287 func (o *VirtualizationInterfacesListParams) SetContext(ctx context.Context) { 288 o.Context = ctx 289 } 290 291 // WithHTTPClient adds the HTTPClient to the virtualization interfaces list params 292 func (o *VirtualizationInterfacesListParams) WithHTTPClient(client *http.Client) *VirtualizationInterfacesListParams { 293 o.SetHTTPClient(client) 294 return o 295 } 296 297 // SetHTTPClient adds the HTTPClient to the virtualization interfaces list params 298 func (o *VirtualizationInterfacesListParams) SetHTTPClient(client *http.Client) { 299 o.HTTPClient = client 300 } 301 302 // WithCluster adds the cluster to the virtualization interfaces list params 303 func (o *VirtualizationInterfacesListParams) WithCluster(cluster *string) *VirtualizationInterfacesListParams { 304 o.SetCluster(cluster) 305 return o 306 } 307 308 // SetCluster adds the cluster to the virtualization interfaces list params 309 func (o *VirtualizationInterfacesListParams) SetCluster(cluster *string) { 310 o.Cluster = cluster 311 } 312 313 // WithClustern adds the clustern to the virtualization interfaces list params 314 func (o *VirtualizationInterfacesListParams) WithClustern(clustern *string) *VirtualizationInterfacesListParams { 315 o.SetClustern(clustern) 316 return o 317 } 318 319 // SetClustern adds the clusterN to the virtualization interfaces list params 320 func (o *VirtualizationInterfacesListParams) SetClustern(clustern *string) { 321 o.Clustern = clustern 322 } 323 324 // WithClusterID adds the clusterID to the virtualization interfaces list params 325 func (o *VirtualizationInterfacesListParams) WithClusterID(clusterID *string) *VirtualizationInterfacesListParams { 326 o.SetClusterID(clusterID) 327 return o 328 } 329 330 // SetClusterID adds the clusterId to the virtualization interfaces list params 331 func (o *VirtualizationInterfacesListParams) SetClusterID(clusterID *string) { 332 o.ClusterID = clusterID 333 } 334 335 // WithClusterIDn adds the clusterIDn to the virtualization interfaces list params 336 func (o *VirtualizationInterfacesListParams) WithClusterIDn(clusterIDn *string) *VirtualizationInterfacesListParams { 337 o.SetClusterIDn(clusterIDn) 338 return o 339 } 340 341 // SetClusterIDn adds the clusterIdN to the virtualization interfaces list params 342 func (o *VirtualizationInterfacesListParams) SetClusterIDn(clusterIDn *string) { 343 o.ClusterIDn = clusterIDn 344 } 345 346 // WithCreated adds the created to the virtualization interfaces list params 347 func (o *VirtualizationInterfacesListParams) WithCreated(created *string) *VirtualizationInterfacesListParams { 348 o.SetCreated(created) 349 return o 350 } 351 352 // SetCreated adds the created to the virtualization interfaces list params 353 func (o *VirtualizationInterfacesListParams) SetCreated(created *string) { 354 o.Created = created 355 } 356 357 // WithCreatedGte adds the createdGte to the virtualization interfaces list params 358 func (o *VirtualizationInterfacesListParams) WithCreatedGte(createdGte *string) *VirtualizationInterfacesListParams { 359 o.SetCreatedGte(createdGte) 360 return o 361 } 362 363 // SetCreatedGte adds the createdGte to the virtualization interfaces list params 364 func (o *VirtualizationInterfacesListParams) SetCreatedGte(createdGte *string) { 365 o.CreatedGte = createdGte 366 } 367 368 // WithCreatedLte adds the createdLte to the virtualization interfaces list params 369 func (o *VirtualizationInterfacesListParams) WithCreatedLte(createdLte *string) *VirtualizationInterfacesListParams { 370 o.SetCreatedLte(createdLte) 371 return o 372 } 373 374 // SetCreatedLte adds the createdLte to the virtualization interfaces list params 375 func (o *VirtualizationInterfacesListParams) SetCreatedLte(createdLte *string) { 376 o.CreatedLte = createdLte 377 } 378 379 // WithEnabled adds the enabled to the virtualization interfaces list params 380 func (o *VirtualizationInterfacesListParams) WithEnabled(enabled *string) *VirtualizationInterfacesListParams { 381 o.SetEnabled(enabled) 382 return o 383 } 384 385 // SetEnabled adds the enabled to the virtualization interfaces list params 386 func (o *VirtualizationInterfacesListParams) SetEnabled(enabled *string) { 387 o.Enabled = enabled 388 } 389 390 // WithID adds the id to the virtualization interfaces list params 391 func (o *VirtualizationInterfacesListParams) WithID(id *string) *VirtualizationInterfacesListParams { 392 o.SetID(id) 393 return o 394 } 395 396 // SetID adds the id to the virtualization interfaces list params 397 func (o *VirtualizationInterfacesListParams) SetID(id *string) { 398 o.ID = id 399 } 400 401 // WithIDGt adds the iDGt to the virtualization interfaces list params 402 func (o *VirtualizationInterfacesListParams) WithIDGt(iDGt *string) *VirtualizationInterfacesListParams { 403 o.SetIDGt(iDGt) 404 return o 405 } 406 407 // SetIDGt adds the idGt to the virtualization interfaces list params 408 func (o *VirtualizationInterfacesListParams) SetIDGt(iDGt *string) { 409 o.IDGt = iDGt 410 } 411 412 // WithIDGte adds the iDGte to the virtualization interfaces list params 413 func (o *VirtualizationInterfacesListParams) WithIDGte(iDGte *string) *VirtualizationInterfacesListParams { 414 o.SetIDGte(iDGte) 415 return o 416 } 417 418 // SetIDGte adds the idGte to the virtualization interfaces list params 419 func (o *VirtualizationInterfacesListParams) SetIDGte(iDGte *string) { 420 o.IDGte = iDGte 421 } 422 423 // WithIDLt adds the iDLt to the virtualization interfaces list params 424 func (o *VirtualizationInterfacesListParams) WithIDLt(iDLt *string) *VirtualizationInterfacesListParams { 425 o.SetIDLt(iDLt) 426 return o 427 } 428 429 // SetIDLt adds the idLt to the virtualization interfaces list params 430 func (o *VirtualizationInterfacesListParams) SetIDLt(iDLt *string) { 431 o.IDLt = iDLt 432 } 433 434 // WithIDLte adds the iDLte to the virtualization interfaces list params 435 func (o *VirtualizationInterfacesListParams) WithIDLte(iDLte *string) *VirtualizationInterfacesListParams { 436 o.SetIDLte(iDLte) 437 return o 438 } 439 440 // SetIDLte adds the idLte to the virtualization interfaces list params 441 func (o *VirtualizationInterfacesListParams) SetIDLte(iDLte *string) { 442 o.IDLte = iDLte 443 } 444 445 // WithIDn adds the iDn to the virtualization interfaces list params 446 func (o *VirtualizationInterfacesListParams) WithIDn(iDn *string) *VirtualizationInterfacesListParams { 447 o.SetIDn(iDn) 448 return o 449 } 450 451 // SetIDn adds the idN to the virtualization interfaces list params 452 func (o *VirtualizationInterfacesListParams) SetIDn(iDn *string) { 453 o.IDn = iDn 454 } 455 456 // WithLastUpdated adds the lastUpdated to the virtualization interfaces list params 457 func (o *VirtualizationInterfacesListParams) WithLastUpdated(lastUpdated *string) *VirtualizationInterfacesListParams { 458 o.SetLastUpdated(lastUpdated) 459 return o 460 } 461 462 // SetLastUpdated adds the lastUpdated to the virtualization interfaces list params 463 func (o *VirtualizationInterfacesListParams) SetLastUpdated(lastUpdated *string) { 464 o.LastUpdated = lastUpdated 465 } 466 467 // WithLastUpdatedGte adds the lastUpdatedGte to the virtualization interfaces list params 468 func (o *VirtualizationInterfacesListParams) WithLastUpdatedGte(lastUpdatedGte *string) *VirtualizationInterfacesListParams { 469 o.SetLastUpdatedGte(lastUpdatedGte) 470 return o 471 } 472 473 // SetLastUpdatedGte adds the lastUpdatedGte to the virtualization interfaces list params 474 func (o *VirtualizationInterfacesListParams) SetLastUpdatedGte(lastUpdatedGte *string) { 475 o.LastUpdatedGte = lastUpdatedGte 476 } 477 478 // WithLastUpdatedLte adds the lastUpdatedLte to the virtualization interfaces list params 479 func (o *VirtualizationInterfacesListParams) WithLastUpdatedLte(lastUpdatedLte *string) *VirtualizationInterfacesListParams { 480 o.SetLastUpdatedLte(lastUpdatedLte) 481 return o 482 } 483 484 // SetLastUpdatedLte adds the lastUpdatedLte to the virtualization interfaces list params 485 func (o *VirtualizationInterfacesListParams) SetLastUpdatedLte(lastUpdatedLte *string) { 486 o.LastUpdatedLte = lastUpdatedLte 487 } 488 489 // WithLimit adds the limit to the virtualization interfaces list params 490 func (o *VirtualizationInterfacesListParams) WithLimit(limit *int64) *VirtualizationInterfacesListParams { 491 o.SetLimit(limit) 492 return o 493 } 494 495 // SetLimit adds the limit to the virtualization interfaces list params 496 func (o *VirtualizationInterfacesListParams) SetLimit(limit *int64) { 497 o.Limit = limit 498 } 499 500 // WithMacAddress adds the macAddress to the virtualization interfaces list params 501 func (o *VirtualizationInterfacesListParams) WithMacAddress(macAddress *string) *VirtualizationInterfacesListParams { 502 o.SetMacAddress(macAddress) 503 return o 504 } 505 506 // SetMacAddress adds the macAddress to the virtualization interfaces list params 507 func (o *VirtualizationInterfacesListParams) SetMacAddress(macAddress *string) { 508 o.MacAddress = macAddress 509 } 510 511 // WithMacAddressIc adds the macAddressIc to the virtualization interfaces list params 512 func (o *VirtualizationInterfacesListParams) WithMacAddressIc(macAddressIc *string) *VirtualizationInterfacesListParams { 513 o.SetMacAddressIc(macAddressIc) 514 return o 515 } 516 517 // SetMacAddressIc adds the macAddressIc to the virtualization interfaces list params 518 func (o *VirtualizationInterfacesListParams) SetMacAddressIc(macAddressIc *string) { 519 o.MacAddressIc = macAddressIc 520 } 521 522 // WithMacAddressIe adds the macAddressIe to the virtualization interfaces list params 523 func (o *VirtualizationInterfacesListParams) WithMacAddressIe(macAddressIe *string) *VirtualizationInterfacesListParams { 524 o.SetMacAddressIe(macAddressIe) 525 return o 526 } 527 528 // SetMacAddressIe adds the macAddressIe to the virtualization interfaces list params 529 func (o *VirtualizationInterfacesListParams) SetMacAddressIe(macAddressIe *string) { 530 o.MacAddressIe = macAddressIe 531 } 532 533 // WithMacAddressIew adds the macAddressIew to the virtualization interfaces list params 534 func (o *VirtualizationInterfacesListParams) WithMacAddressIew(macAddressIew *string) *VirtualizationInterfacesListParams { 535 o.SetMacAddressIew(macAddressIew) 536 return o 537 } 538 539 // SetMacAddressIew adds the macAddressIew to the virtualization interfaces list params 540 func (o *VirtualizationInterfacesListParams) SetMacAddressIew(macAddressIew *string) { 541 o.MacAddressIew = macAddressIew 542 } 543 544 // WithMacAddressIsw adds the macAddressIsw to the virtualization interfaces list params 545 func (o *VirtualizationInterfacesListParams) WithMacAddressIsw(macAddressIsw *string) *VirtualizationInterfacesListParams { 546 o.SetMacAddressIsw(macAddressIsw) 547 return o 548 } 549 550 // SetMacAddressIsw adds the macAddressIsw to the virtualization interfaces list params 551 func (o *VirtualizationInterfacesListParams) SetMacAddressIsw(macAddressIsw *string) { 552 o.MacAddressIsw = macAddressIsw 553 } 554 555 // WithMacAddressn adds the macAddressn to the virtualization interfaces list params 556 func (o *VirtualizationInterfacesListParams) WithMacAddressn(macAddressn *string) *VirtualizationInterfacesListParams { 557 o.SetMacAddressn(macAddressn) 558 return o 559 } 560 561 // SetMacAddressn adds the macAddressN to the virtualization interfaces list params 562 func (o *VirtualizationInterfacesListParams) SetMacAddressn(macAddressn *string) { 563 o.MacAddressn = macAddressn 564 } 565 566 // WithMacAddressNic adds the macAddressNic to the virtualization interfaces list params 567 func (o *VirtualizationInterfacesListParams) WithMacAddressNic(macAddressNic *string) *VirtualizationInterfacesListParams { 568 o.SetMacAddressNic(macAddressNic) 569 return o 570 } 571 572 // SetMacAddressNic adds the macAddressNic to the virtualization interfaces list params 573 func (o *VirtualizationInterfacesListParams) SetMacAddressNic(macAddressNic *string) { 574 o.MacAddressNic = macAddressNic 575 } 576 577 // WithMacAddressNie adds the macAddressNie to the virtualization interfaces list params 578 func (o *VirtualizationInterfacesListParams) WithMacAddressNie(macAddressNie *string) *VirtualizationInterfacesListParams { 579 o.SetMacAddressNie(macAddressNie) 580 return o 581 } 582 583 // SetMacAddressNie adds the macAddressNie to the virtualization interfaces list params 584 func (o *VirtualizationInterfacesListParams) SetMacAddressNie(macAddressNie *string) { 585 o.MacAddressNie = macAddressNie 586 } 587 588 // WithMacAddressNiew adds the macAddressNiew to the virtualization interfaces list params 589 func (o *VirtualizationInterfacesListParams) WithMacAddressNiew(macAddressNiew *string) *VirtualizationInterfacesListParams { 590 o.SetMacAddressNiew(macAddressNiew) 591 return o 592 } 593 594 // SetMacAddressNiew adds the macAddressNiew to the virtualization interfaces list params 595 func (o *VirtualizationInterfacesListParams) SetMacAddressNiew(macAddressNiew *string) { 596 o.MacAddressNiew = macAddressNiew 597 } 598 599 // WithMacAddressNisw adds the macAddressNisw to the virtualization interfaces list params 600 func (o *VirtualizationInterfacesListParams) WithMacAddressNisw(macAddressNisw *string) *VirtualizationInterfacesListParams { 601 o.SetMacAddressNisw(macAddressNisw) 602 return o 603 } 604 605 // SetMacAddressNisw adds the macAddressNisw to the virtualization interfaces list params 606 func (o *VirtualizationInterfacesListParams) SetMacAddressNisw(macAddressNisw *string) { 607 o.MacAddressNisw = macAddressNisw 608 } 609 610 // WithMtu adds the mtu to the virtualization interfaces list params 611 func (o *VirtualizationInterfacesListParams) WithMtu(mtu *string) *VirtualizationInterfacesListParams { 612 o.SetMtu(mtu) 613 return o 614 } 615 616 // SetMtu adds the mtu to the virtualization interfaces list params 617 func (o *VirtualizationInterfacesListParams) SetMtu(mtu *string) { 618 o.Mtu = mtu 619 } 620 621 // WithMtuGt adds the mtuGt to the virtualization interfaces list params 622 func (o *VirtualizationInterfacesListParams) WithMtuGt(mtuGt *string) *VirtualizationInterfacesListParams { 623 o.SetMtuGt(mtuGt) 624 return o 625 } 626 627 // SetMtuGt adds the mtuGt to the virtualization interfaces list params 628 func (o *VirtualizationInterfacesListParams) SetMtuGt(mtuGt *string) { 629 o.MtuGt = mtuGt 630 } 631 632 // WithMtuGte adds the mtuGte to the virtualization interfaces list params 633 func (o *VirtualizationInterfacesListParams) WithMtuGte(mtuGte *string) *VirtualizationInterfacesListParams { 634 o.SetMtuGte(mtuGte) 635 return o 636 } 637 638 // SetMtuGte adds the mtuGte to the virtualization interfaces list params 639 func (o *VirtualizationInterfacesListParams) SetMtuGte(mtuGte *string) { 640 o.MtuGte = mtuGte 641 } 642 643 // WithMtuLt adds the mtuLt to the virtualization interfaces list params 644 func (o *VirtualizationInterfacesListParams) WithMtuLt(mtuLt *string) *VirtualizationInterfacesListParams { 645 o.SetMtuLt(mtuLt) 646 return o 647 } 648 649 // SetMtuLt adds the mtuLt to the virtualization interfaces list params 650 func (o *VirtualizationInterfacesListParams) SetMtuLt(mtuLt *string) { 651 o.MtuLt = mtuLt 652 } 653 654 // WithMtuLte adds the mtuLte to the virtualization interfaces list params 655 func (o *VirtualizationInterfacesListParams) WithMtuLte(mtuLte *string) *VirtualizationInterfacesListParams { 656 o.SetMtuLte(mtuLte) 657 return o 658 } 659 660 // SetMtuLte adds the mtuLte to the virtualization interfaces list params 661 func (o *VirtualizationInterfacesListParams) SetMtuLte(mtuLte *string) { 662 o.MtuLte = mtuLte 663 } 664 665 // WithMtun adds the mtun to the virtualization interfaces list params 666 func (o *VirtualizationInterfacesListParams) WithMtun(mtun *string) *VirtualizationInterfacesListParams { 667 o.SetMtun(mtun) 668 return o 669 } 670 671 // SetMtun adds the mtuN to the virtualization interfaces list params 672 func (o *VirtualizationInterfacesListParams) SetMtun(mtun *string) { 673 o.Mtun = mtun 674 } 675 676 // WithName adds the name to the virtualization interfaces list params 677 func (o *VirtualizationInterfacesListParams) WithName(name *string) *VirtualizationInterfacesListParams { 678 o.SetName(name) 679 return o 680 } 681 682 // SetName adds the name to the virtualization interfaces list params 683 func (o *VirtualizationInterfacesListParams) SetName(name *string) { 684 o.Name = name 685 } 686 687 // WithNameEmpty adds the nameEmpty to the virtualization interfaces list params 688 func (o *VirtualizationInterfacesListParams) WithNameEmpty(nameEmpty *string) *VirtualizationInterfacesListParams { 689 o.SetNameEmpty(nameEmpty) 690 return o 691 } 692 693 // SetNameEmpty adds the nameEmpty to the virtualization interfaces list params 694 func (o *VirtualizationInterfacesListParams) SetNameEmpty(nameEmpty *string) { 695 o.NameEmpty = nameEmpty 696 } 697 698 // WithNameIc adds the nameIc to the virtualization interfaces list params 699 func (o *VirtualizationInterfacesListParams) WithNameIc(nameIc *string) *VirtualizationInterfacesListParams { 700 o.SetNameIc(nameIc) 701 return o 702 } 703 704 // SetNameIc adds the nameIc to the virtualization interfaces list params 705 func (o *VirtualizationInterfacesListParams) SetNameIc(nameIc *string) { 706 o.NameIc = nameIc 707 } 708 709 // WithNameIe adds the nameIe to the virtualization interfaces list params 710 func (o *VirtualizationInterfacesListParams) WithNameIe(nameIe *string) *VirtualizationInterfacesListParams { 711 o.SetNameIe(nameIe) 712 return o 713 } 714 715 // SetNameIe adds the nameIe to the virtualization interfaces list params 716 func (o *VirtualizationInterfacesListParams) SetNameIe(nameIe *string) { 717 o.NameIe = nameIe 718 } 719 720 // WithNameIew adds the nameIew to the virtualization interfaces list params 721 func (o *VirtualizationInterfacesListParams) WithNameIew(nameIew *string) *VirtualizationInterfacesListParams { 722 o.SetNameIew(nameIew) 723 return o 724 } 725 726 // SetNameIew adds the nameIew to the virtualization interfaces list params 727 func (o *VirtualizationInterfacesListParams) SetNameIew(nameIew *string) { 728 o.NameIew = nameIew 729 } 730 731 // WithNameIsw adds the nameIsw to the virtualization interfaces list params 732 func (o *VirtualizationInterfacesListParams) WithNameIsw(nameIsw *string) *VirtualizationInterfacesListParams { 733 o.SetNameIsw(nameIsw) 734 return o 735 } 736 737 // SetNameIsw adds the nameIsw to the virtualization interfaces list params 738 func (o *VirtualizationInterfacesListParams) SetNameIsw(nameIsw *string) { 739 o.NameIsw = nameIsw 740 } 741 742 // WithNamen adds the namen to the virtualization interfaces list params 743 func (o *VirtualizationInterfacesListParams) WithNamen(namen *string) *VirtualizationInterfacesListParams { 744 o.SetNamen(namen) 745 return o 746 } 747 748 // SetNamen adds the nameN to the virtualization interfaces list params 749 func (o *VirtualizationInterfacesListParams) SetNamen(namen *string) { 750 o.Namen = namen 751 } 752 753 // WithNameNic adds the nameNic to the virtualization interfaces list params 754 func (o *VirtualizationInterfacesListParams) WithNameNic(nameNic *string) *VirtualizationInterfacesListParams { 755 o.SetNameNic(nameNic) 756 return o 757 } 758 759 // SetNameNic adds the nameNic to the virtualization interfaces list params 760 func (o *VirtualizationInterfacesListParams) SetNameNic(nameNic *string) { 761 o.NameNic = nameNic 762 } 763 764 // WithNameNie adds the nameNie to the virtualization interfaces list params 765 func (o *VirtualizationInterfacesListParams) WithNameNie(nameNie *string) *VirtualizationInterfacesListParams { 766 o.SetNameNie(nameNie) 767 return o 768 } 769 770 // SetNameNie adds the nameNie to the virtualization interfaces list params 771 func (o *VirtualizationInterfacesListParams) SetNameNie(nameNie *string) { 772 o.NameNie = nameNie 773 } 774 775 // WithNameNiew adds the nameNiew to the virtualization interfaces list params 776 func (o *VirtualizationInterfacesListParams) WithNameNiew(nameNiew *string) *VirtualizationInterfacesListParams { 777 o.SetNameNiew(nameNiew) 778 return o 779 } 780 781 // SetNameNiew adds the nameNiew to the virtualization interfaces list params 782 func (o *VirtualizationInterfacesListParams) SetNameNiew(nameNiew *string) { 783 o.NameNiew = nameNiew 784 } 785 786 // WithNameNisw adds the nameNisw to the virtualization interfaces list params 787 func (o *VirtualizationInterfacesListParams) WithNameNisw(nameNisw *string) *VirtualizationInterfacesListParams { 788 o.SetNameNisw(nameNisw) 789 return o 790 } 791 792 // SetNameNisw adds the nameNisw to the virtualization interfaces list params 793 func (o *VirtualizationInterfacesListParams) SetNameNisw(nameNisw *string) { 794 o.NameNisw = nameNisw 795 } 796 797 // WithOffset adds the offset to the virtualization interfaces list params 798 func (o *VirtualizationInterfacesListParams) WithOffset(offset *int64) *VirtualizationInterfacesListParams { 799 o.SetOffset(offset) 800 return o 801 } 802 803 // SetOffset adds the offset to the virtualization interfaces list params 804 func (o *VirtualizationInterfacesListParams) SetOffset(offset *int64) { 805 o.Offset = offset 806 } 807 808 // WithParentID adds the parentID to the virtualization interfaces list params 809 func (o *VirtualizationInterfacesListParams) WithParentID(parentID *string) *VirtualizationInterfacesListParams { 810 o.SetParentID(parentID) 811 return o 812 } 813 814 // SetParentID adds the parentId to the virtualization interfaces list params 815 func (o *VirtualizationInterfacesListParams) SetParentID(parentID *string) { 816 o.ParentID = parentID 817 } 818 819 // WithParentIDn adds the parentIDn to the virtualization interfaces list params 820 func (o *VirtualizationInterfacesListParams) WithParentIDn(parentIDn *string) *VirtualizationInterfacesListParams { 821 o.SetParentIDn(parentIDn) 822 return o 823 } 824 825 // SetParentIDn adds the parentIdN to the virtualization interfaces list params 826 func (o *VirtualizationInterfacesListParams) SetParentIDn(parentIDn *string) { 827 o.ParentIDn = parentIDn 828 } 829 830 // WithQ adds the q to the virtualization interfaces list params 831 func (o *VirtualizationInterfacesListParams) WithQ(q *string) *VirtualizationInterfacesListParams { 832 o.SetQ(q) 833 return o 834 } 835 836 // SetQ adds the q to the virtualization interfaces list params 837 func (o *VirtualizationInterfacesListParams) SetQ(q *string) { 838 o.Q = q 839 } 840 841 // WithTag adds the tag to the virtualization interfaces list params 842 func (o *VirtualizationInterfacesListParams) WithTag(tag *string) *VirtualizationInterfacesListParams { 843 o.SetTag(tag) 844 return o 845 } 846 847 // SetTag adds the tag to the virtualization interfaces list params 848 func (o *VirtualizationInterfacesListParams) SetTag(tag *string) { 849 o.Tag = tag 850 } 851 852 // WithTagn adds the tagn to the virtualization interfaces list params 853 func (o *VirtualizationInterfacesListParams) WithTagn(tagn *string) *VirtualizationInterfacesListParams { 854 o.SetTagn(tagn) 855 return o 856 } 857 858 // SetTagn adds the tagN to the virtualization interfaces list params 859 func (o *VirtualizationInterfacesListParams) SetTagn(tagn *string) { 860 o.Tagn = tagn 861 } 862 863 // WithVirtualMachine adds the virtualMachine to the virtualization interfaces list params 864 func (o *VirtualizationInterfacesListParams) WithVirtualMachine(virtualMachine *string) *VirtualizationInterfacesListParams { 865 o.SetVirtualMachine(virtualMachine) 866 return o 867 } 868 869 // SetVirtualMachine adds the virtualMachine to the virtualization interfaces list params 870 func (o *VirtualizationInterfacesListParams) SetVirtualMachine(virtualMachine *string) { 871 o.VirtualMachine = virtualMachine 872 } 873 874 // WithVirtualMachinen adds the virtualMachinen to the virtualization interfaces list params 875 func (o *VirtualizationInterfacesListParams) WithVirtualMachinen(virtualMachinen *string) *VirtualizationInterfacesListParams { 876 o.SetVirtualMachinen(virtualMachinen) 877 return o 878 } 879 880 // SetVirtualMachinen adds the virtualMachineN to the virtualization interfaces list params 881 func (o *VirtualizationInterfacesListParams) SetVirtualMachinen(virtualMachinen *string) { 882 o.VirtualMachinen = virtualMachinen 883 } 884 885 // WithVirtualMachineID adds the virtualMachineID to the virtualization interfaces list params 886 func (o *VirtualizationInterfacesListParams) WithVirtualMachineID(virtualMachineID *string) *VirtualizationInterfacesListParams { 887 o.SetVirtualMachineID(virtualMachineID) 888 return o 889 } 890 891 // SetVirtualMachineID adds the virtualMachineId to the virtualization interfaces list params 892 func (o *VirtualizationInterfacesListParams) SetVirtualMachineID(virtualMachineID *string) { 893 o.VirtualMachineID = virtualMachineID 894 } 895 896 // WithVirtualMachineIDn adds the virtualMachineIDn to the virtualization interfaces list params 897 func (o *VirtualizationInterfacesListParams) WithVirtualMachineIDn(virtualMachineIDn *string) *VirtualizationInterfacesListParams { 898 o.SetVirtualMachineIDn(virtualMachineIDn) 899 return o 900 } 901 902 // SetVirtualMachineIDn adds the virtualMachineIdN to the virtualization interfaces list params 903 func (o *VirtualizationInterfacesListParams) SetVirtualMachineIDn(virtualMachineIDn *string) { 904 o.VirtualMachineIDn = virtualMachineIDn 905 } 906 907 // WriteToRequest writes these params to a swagger request 908 func (o *VirtualizationInterfacesListParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { 909 910 if err := r.SetTimeout(o.timeout); err != nil { 911 return err 912 } 913 var res []error 914 915 if o.Cluster != nil { 916 917 // query param cluster 918 var qrCluster string 919 920 if o.Cluster != nil { 921 qrCluster = *o.Cluster 922 } 923 qCluster := qrCluster 924 if qCluster != "" { 925 926 if err := r.SetQueryParam("cluster", qCluster); err != nil { 927 return err 928 } 929 } 930 } 931 932 if o.Clustern != nil { 933 934 // query param cluster__n 935 var qrClustern string 936 937 if o.Clustern != nil { 938 qrClustern = *o.Clustern 939 } 940 qClustern := qrClustern 941 if qClustern != "" { 942 943 if err := r.SetQueryParam("cluster__n", qClustern); err != nil { 944 return err 945 } 946 } 947 } 948 949 if o.ClusterID != nil { 950 951 // query param cluster_id 952 var qrClusterID string 953 954 if o.ClusterID != nil { 955 qrClusterID = *o.ClusterID 956 } 957 qClusterID := qrClusterID 958 if qClusterID != "" { 959 960 if err := r.SetQueryParam("cluster_id", qClusterID); err != nil { 961 return err 962 } 963 } 964 } 965 966 if o.ClusterIDn != nil { 967 968 // query param cluster_id__n 969 var qrClusterIDn string 970 971 if o.ClusterIDn != nil { 972 qrClusterIDn = *o.ClusterIDn 973 } 974 qClusterIDn := qrClusterIDn 975 if qClusterIDn != "" { 976 977 if err := r.SetQueryParam("cluster_id__n", qClusterIDn); err != nil { 978 return err 979 } 980 } 981 } 982 983 if o.Created != nil { 984 985 // query param created 986 var qrCreated string 987 988 if o.Created != nil { 989 qrCreated = *o.Created 990 } 991 qCreated := qrCreated 992 if qCreated != "" { 993 994 if err := r.SetQueryParam("created", qCreated); err != nil { 995 return err 996 } 997 } 998 } 999 1000 if o.CreatedGte != nil { 1001 1002 // query param created__gte 1003 var qrCreatedGte string 1004 1005 if o.CreatedGte != nil { 1006 qrCreatedGte = *o.CreatedGte 1007 } 1008 qCreatedGte := qrCreatedGte 1009 if qCreatedGte != "" { 1010 1011 if err := r.SetQueryParam("created__gte", qCreatedGte); err != nil { 1012 return err 1013 } 1014 } 1015 } 1016 1017 if o.CreatedLte != nil { 1018 1019 // query param created__lte 1020 var qrCreatedLte string 1021 1022 if o.CreatedLte != nil { 1023 qrCreatedLte = *o.CreatedLte 1024 } 1025 qCreatedLte := qrCreatedLte 1026 if qCreatedLte != "" { 1027 1028 if err := r.SetQueryParam("created__lte", qCreatedLte); err != nil { 1029 return err 1030 } 1031 } 1032 } 1033 1034 if o.Enabled != nil { 1035 1036 // query param enabled 1037 var qrEnabled string 1038 1039 if o.Enabled != nil { 1040 qrEnabled = *o.Enabled 1041 } 1042 qEnabled := qrEnabled 1043 if qEnabled != "" { 1044 1045 if err := r.SetQueryParam("enabled", qEnabled); err != nil { 1046 return err 1047 } 1048 } 1049 } 1050 1051 if o.ID != nil { 1052 1053 // query param id 1054 var qrID string 1055 1056 if o.ID != nil { 1057 qrID = *o.ID 1058 } 1059 qID := qrID 1060 if qID != "" { 1061 1062 if err := r.SetQueryParam("id", qID); err != nil { 1063 return err 1064 } 1065 } 1066 } 1067 1068 if o.IDGt != nil { 1069 1070 // query param id__gt 1071 var qrIDGt string 1072 1073 if o.IDGt != nil { 1074 qrIDGt = *o.IDGt 1075 } 1076 qIDGt := qrIDGt 1077 if qIDGt != "" { 1078 1079 if err := r.SetQueryParam("id__gt", qIDGt); err != nil { 1080 return err 1081 } 1082 } 1083 } 1084 1085 if o.IDGte != nil { 1086 1087 // query param id__gte 1088 var qrIDGte string 1089 1090 if o.IDGte != nil { 1091 qrIDGte = *o.IDGte 1092 } 1093 qIDGte := qrIDGte 1094 if qIDGte != "" { 1095 1096 if err := r.SetQueryParam("id__gte", qIDGte); err != nil { 1097 return err 1098 } 1099 } 1100 } 1101 1102 if o.IDLt != nil { 1103 1104 // query param id__lt 1105 var qrIDLt string 1106 1107 if o.IDLt != nil { 1108 qrIDLt = *o.IDLt 1109 } 1110 qIDLt := qrIDLt 1111 if qIDLt != "" { 1112 1113 if err := r.SetQueryParam("id__lt", qIDLt); err != nil { 1114 return err 1115 } 1116 } 1117 } 1118 1119 if o.IDLte != nil { 1120 1121 // query param id__lte 1122 var qrIDLte string 1123 1124 if o.IDLte != nil { 1125 qrIDLte = *o.IDLte 1126 } 1127 qIDLte := qrIDLte 1128 if qIDLte != "" { 1129 1130 if err := r.SetQueryParam("id__lte", qIDLte); err != nil { 1131 return err 1132 } 1133 } 1134 } 1135 1136 if o.IDn != nil { 1137 1138 // query param id__n 1139 var qrIDn string 1140 1141 if o.IDn != nil { 1142 qrIDn = *o.IDn 1143 } 1144 qIDn := qrIDn 1145 if qIDn != "" { 1146 1147 if err := r.SetQueryParam("id__n", qIDn); err != nil { 1148 return err 1149 } 1150 } 1151 } 1152 1153 if o.LastUpdated != nil { 1154 1155 // query param last_updated 1156 var qrLastUpdated string 1157 1158 if o.LastUpdated != nil { 1159 qrLastUpdated = *o.LastUpdated 1160 } 1161 qLastUpdated := qrLastUpdated 1162 if qLastUpdated != "" { 1163 1164 if err := r.SetQueryParam("last_updated", qLastUpdated); err != nil { 1165 return err 1166 } 1167 } 1168 } 1169 1170 if o.LastUpdatedGte != nil { 1171 1172 // query param last_updated__gte 1173 var qrLastUpdatedGte string 1174 1175 if o.LastUpdatedGte != nil { 1176 qrLastUpdatedGte = *o.LastUpdatedGte 1177 } 1178 qLastUpdatedGte := qrLastUpdatedGte 1179 if qLastUpdatedGte != "" { 1180 1181 if err := r.SetQueryParam("last_updated__gte", qLastUpdatedGte); err != nil { 1182 return err 1183 } 1184 } 1185 } 1186 1187 if o.LastUpdatedLte != nil { 1188 1189 // query param last_updated__lte 1190 var qrLastUpdatedLte string 1191 1192 if o.LastUpdatedLte != nil { 1193 qrLastUpdatedLte = *o.LastUpdatedLte 1194 } 1195 qLastUpdatedLte := qrLastUpdatedLte 1196 if qLastUpdatedLte != "" { 1197 1198 if err := r.SetQueryParam("last_updated__lte", qLastUpdatedLte); err != nil { 1199 return err 1200 } 1201 } 1202 } 1203 1204 if o.Limit != nil { 1205 1206 // query param limit 1207 var qrLimit int64 1208 1209 if o.Limit != nil { 1210 qrLimit = *o.Limit 1211 } 1212 qLimit := swag.FormatInt64(qrLimit) 1213 if qLimit != "" { 1214 1215 if err := r.SetQueryParam("limit", qLimit); err != nil { 1216 return err 1217 } 1218 } 1219 } 1220 1221 if o.MacAddress != nil { 1222 1223 // query param mac_address 1224 var qrMacAddress string 1225 1226 if o.MacAddress != nil { 1227 qrMacAddress = *o.MacAddress 1228 } 1229 qMacAddress := qrMacAddress 1230 if qMacAddress != "" { 1231 1232 if err := r.SetQueryParam("mac_address", qMacAddress); err != nil { 1233 return err 1234 } 1235 } 1236 } 1237 1238 if o.MacAddressIc != nil { 1239 1240 // query param mac_address__ic 1241 var qrMacAddressIc string 1242 1243 if o.MacAddressIc != nil { 1244 qrMacAddressIc = *o.MacAddressIc 1245 } 1246 qMacAddressIc := qrMacAddressIc 1247 if qMacAddressIc != "" { 1248 1249 if err := r.SetQueryParam("mac_address__ic", qMacAddressIc); err != nil { 1250 return err 1251 } 1252 } 1253 } 1254 1255 if o.MacAddressIe != nil { 1256 1257 // query param mac_address__ie 1258 var qrMacAddressIe string 1259 1260 if o.MacAddressIe != nil { 1261 qrMacAddressIe = *o.MacAddressIe 1262 } 1263 qMacAddressIe := qrMacAddressIe 1264 if qMacAddressIe != "" { 1265 1266 if err := r.SetQueryParam("mac_address__ie", qMacAddressIe); err != nil { 1267 return err 1268 } 1269 } 1270 } 1271 1272 if o.MacAddressIew != nil { 1273 1274 // query param mac_address__iew 1275 var qrMacAddressIew string 1276 1277 if o.MacAddressIew != nil { 1278 qrMacAddressIew = *o.MacAddressIew 1279 } 1280 qMacAddressIew := qrMacAddressIew 1281 if qMacAddressIew != "" { 1282 1283 if err := r.SetQueryParam("mac_address__iew", qMacAddressIew); err != nil { 1284 return err 1285 } 1286 } 1287 } 1288 1289 if o.MacAddressIsw != nil { 1290 1291 // query param mac_address__isw 1292 var qrMacAddressIsw string 1293 1294 if o.MacAddressIsw != nil { 1295 qrMacAddressIsw = *o.MacAddressIsw 1296 } 1297 qMacAddressIsw := qrMacAddressIsw 1298 if qMacAddressIsw != "" { 1299 1300 if err := r.SetQueryParam("mac_address__isw", qMacAddressIsw); err != nil { 1301 return err 1302 } 1303 } 1304 } 1305 1306 if o.MacAddressn != nil { 1307 1308 // query param mac_address__n 1309 var qrMacAddressn string 1310 1311 if o.MacAddressn != nil { 1312 qrMacAddressn = *o.MacAddressn 1313 } 1314 qMacAddressn := qrMacAddressn 1315 if qMacAddressn != "" { 1316 1317 if err := r.SetQueryParam("mac_address__n", qMacAddressn); err != nil { 1318 return err 1319 } 1320 } 1321 } 1322 1323 if o.MacAddressNic != nil { 1324 1325 // query param mac_address__nic 1326 var qrMacAddressNic string 1327 1328 if o.MacAddressNic != nil { 1329 qrMacAddressNic = *o.MacAddressNic 1330 } 1331 qMacAddressNic := qrMacAddressNic 1332 if qMacAddressNic != "" { 1333 1334 if err := r.SetQueryParam("mac_address__nic", qMacAddressNic); err != nil { 1335 return err 1336 } 1337 } 1338 } 1339 1340 if o.MacAddressNie != nil { 1341 1342 // query param mac_address__nie 1343 var qrMacAddressNie string 1344 1345 if o.MacAddressNie != nil { 1346 qrMacAddressNie = *o.MacAddressNie 1347 } 1348 qMacAddressNie := qrMacAddressNie 1349 if qMacAddressNie != "" { 1350 1351 if err := r.SetQueryParam("mac_address__nie", qMacAddressNie); err != nil { 1352 return err 1353 } 1354 } 1355 } 1356 1357 if o.MacAddressNiew != nil { 1358 1359 // query param mac_address__niew 1360 var qrMacAddressNiew string 1361 1362 if o.MacAddressNiew != nil { 1363 qrMacAddressNiew = *o.MacAddressNiew 1364 } 1365 qMacAddressNiew := qrMacAddressNiew 1366 if qMacAddressNiew != "" { 1367 1368 if err := r.SetQueryParam("mac_address__niew", qMacAddressNiew); err != nil { 1369 return err 1370 } 1371 } 1372 } 1373 1374 if o.MacAddressNisw != nil { 1375 1376 // query param mac_address__nisw 1377 var qrMacAddressNisw string 1378 1379 if o.MacAddressNisw != nil { 1380 qrMacAddressNisw = *o.MacAddressNisw 1381 } 1382 qMacAddressNisw := qrMacAddressNisw 1383 if qMacAddressNisw != "" { 1384 1385 if err := r.SetQueryParam("mac_address__nisw", qMacAddressNisw); err != nil { 1386 return err 1387 } 1388 } 1389 } 1390 1391 if o.Mtu != nil { 1392 1393 // query param mtu 1394 var qrMtu string 1395 1396 if o.Mtu != nil { 1397 qrMtu = *o.Mtu 1398 } 1399 qMtu := qrMtu 1400 if qMtu != "" { 1401 1402 if err := r.SetQueryParam("mtu", qMtu); err != nil { 1403 return err 1404 } 1405 } 1406 } 1407 1408 if o.MtuGt != nil { 1409 1410 // query param mtu__gt 1411 var qrMtuGt string 1412 1413 if o.MtuGt != nil { 1414 qrMtuGt = *o.MtuGt 1415 } 1416 qMtuGt := qrMtuGt 1417 if qMtuGt != "" { 1418 1419 if err := r.SetQueryParam("mtu__gt", qMtuGt); err != nil { 1420 return err 1421 } 1422 } 1423 } 1424 1425 if o.MtuGte != nil { 1426 1427 // query param mtu__gte 1428 var qrMtuGte string 1429 1430 if o.MtuGte != nil { 1431 qrMtuGte = *o.MtuGte 1432 } 1433 qMtuGte := qrMtuGte 1434 if qMtuGte != "" { 1435 1436 if err := r.SetQueryParam("mtu__gte", qMtuGte); err != nil { 1437 return err 1438 } 1439 } 1440 } 1441 1442 if o.MtuLt != nil { 1443 1444 // query param mtu__lt 1445 var qrMtuLt string 1446 1447 if o.MtuLt != nil { 1448 qrMtuLt = *o.MtuLt 1449 } 1450 qMtuLt := qrMtuLt 1451 if qMtuLt != "" { 1452 1453 if err := r.SetQueryParam("mtu__lt", qMtuLt); err != nil { 1454 return err 1455 } 1456 } 1457 } 1458 1459 if o.MtuLte != nil { 1460 1461 // query param mtu__lte 1462 var qrMtuLte string 1463 1464 if o.MtuLte != nil { 1465 qrMtuLte = *o.MtuLte 1466 } 1467 qMtuLte := qrMtuLte 1468 if qMtuLte != "" { 1469 1470 if err := r.SetQueryParam("mtu__lte", qMtuLte); err != nil { 1471 return err 1472 } 1473 } 1474 } 1475 1476 if o.Mtun != nil { 1477 1478 // query param mtu__n 1479 var qrMtun string 1480 1481 if o.Mtun != nil { 1482 qrMtun = *o.Mtun 1483 } 1484 qMtun := qrMtun 1485 if qMtun != "" { 1486 1487 if err := r.SetQueryParam("mtu__n", qMtun); err != nil { 1488 return err 1489 } 1490 } 1491 } 1492 1493 if o.Name != nil { 1494 1495 // query param name 1496 var qrName string 1497 1498 if o.Name != nil { 1499 qrName = *o.Name 1500 } 1501 qName := qrName 1502 if qName != "" { 1503 1504 if err := r.SetQueryParam("name", qName); err != nil { 1505 return err 1506 } 1507 } 1508 } 1509 1510 if o.NameEmpty != nil { 1511 1512 // query param name__empty 1513 var qrNameEmpty string 1514 1515 if o.NameEmpty != nil { 1516 qrNameEmpty = *o.NameEmpty 1517 } 1518 qNameEmpty := qrNameEmpty 1519 if qNameEmpty != "" { 1520 1521 if err := r.SetQueryParam("name__empty", qNameEmpty); err != nil { 1522 return err 1523 } 1524 } 1525 } 1526 1527 if o.NameIc != nil { 1528 1529 // query param name__ic 1530 var qrNameIc string 1531 1532 if o.NameIc != nil { 1533 qrNameIc = *o.NameIc 1534 } 1535 qNameIc := qrNameIc 1536 if qNameIc != "" { 1537 1538 if err := r.SetQueryParam("name__ic", qNameIc); err != nil { 1539 return err 1540 } 1541 } 1542 } 1543 1544 if o.NameIe != nil { 1545 1546 // query param name__ie 1547 var qrNameIe string 1548 1549 if o.NameIe != nil { 1550 qrNameIe = *o.NameIe 1551 } 1552 qNameIe := qrNameIe 1553 if qNameIe != "" { 1554 1555 if err := r.SetQueryParam("name__ie", qNameIe); err != nil { 1556 return err 1557 } 1558 } 1559 } 1560 1561 if o.NameIew != nil { 1562 1563 // query param name__iew 1564 var qrNameIew string 1565 1566 if o.NameIew != nil { 1567 qrNameIew = *o.NameIew 1568 } 1569 qNameIew := qrNameIew 1570 if qNameIew != "" { 1571 1572 if err := r.SetQueryParam("name__iew", qNameIew); err != nil { 1573 return err 1574 } 1575 } 1576 } 1577 1578 if o.NameIsw != nil { 1579 1580 // query param name__isw 1581 var qrNameIsw string 1582 1583 if o.NameIsw != nil { 1584 qrNameIsw = *o.NameIsw 1585 } 1586 qNameIsw := qrNameIsw 1587 if qNameIsw != "" { 1588 1589 if err := r.SetQueryParam("name__isw", qNameIsw); err != nil { 1590 return err 1591 } 1592 } 1593 } 1594 1595 if o.Namen != nil { 1596 1597 // query param name__n 1598 var qrNamen string 1599 1600 if o.Namen != nil { 1601 qrNamen = *o.Namen 1602 } 1603 qNamen := qrNamen 1604 if qNamen != "" { 1605 1606 if err := r.SetQueryParam("name__n", qNamen); err != nil { 1607 return err 1608 } 1609 } 1610 } 1611 1612 if o.NameNic != nil { 1613 1614 // query param name__nic 1615 var qrNameNic string 1616 1617 if o.NameNic != nil { 1618 qrNameNic = *o.NameNic 1619 } 1620 qNameNic := qrNameNic 1621 if qNameNic != "" { 1622 1623 if err := r.SetQueryParam("name__nic", qNameNic); err != nil { 1624 return err 1625 } 1626 } 1627 } 1628 1629 if o.NameNie != nil { 1630 1631 // query param name__nie 1632 var qrNameNie string 1633 1634 if o.NameNie != nil { 1635 qrNameNie = *o.NameNie 1636 } 1637 qNameNie := qrNameNie 1638 if qNameNie != "" { 1639 1640 if err := r.SetQueryParam("name__nie", qNameNie); err != nil { 1641 return err 1642 } 1643 } 1644 } 1645 1646 if o.NameNiew != nil { 1647 1648 // query param name__niew 1649 var qrNameNiew string 1650 1651 if o.NameNiew != nil { 1652 qrNameNiew = *o.NameNiew 1653 } 1654 qNameNiew := qrNameNiew 1655 if qNameNiew != "" { 1656 1657 if err := r.SetQueryParam("name__niew", qNameNiew); err != nil { 1658 return err 1659 } 1660 } 1661 } 1662 1663 if o.NameNisw != nil { 1664 1665 // query param name__nisw 1666 var qrNameNisw string 1667 1668 if o.NameNisw != nil { 1669 qrNameNisw = *o.NameNisw 1670 } 1671 qNameNisw := qrNameNisw 1672 if qNameNisw != "" { 1673 1674 if err := r.SetQueryParam("name__nisw", qNameNisw); err != nil { 1675 return err 1676 } 1677 } 1678 } 1679 1680 if o.Offset != nil { 1681 1682 // query param offset 1683 var qrOffset int64 1684 1685 if o.Offset != nil { 1686 qrOffset = *o.Offset 1687 } 1688 qOffset := swag.FormatInt64(qrOffset) 1689 if qOffset != "" { 1690 1691 if err := r.SetQueryParam("offset", qOffset); err != nil { 1692 return err 1693 } 1694 } 1695 } 1696 1697 if o.ParentID != nil { 1698 1699 // query param parent_id 1700 var qrParentID string 1701 1702 if o.ParentID != nil { 1703 qrParentID = *o.ParentID 1704 } 1705 qParentID := qrParentID 1706 if qParentID != "" { 1707 1708 if err := r.SetQueryParam("parent_id", qParentID); err != nil { 1709 return err 1710 } 1711 } 1712 } 1713 1714 if o.ParentIDn != nil { 1715 1716 // query param parent_id__n 1717 var qrParentIDn string 1718 1719 if o.ParentIDn != nil { 1720 qrParentIDn = *o.ParentIDn 1721 } 1722 qParentIDn := qrParentIDn 1723 if qParentIDn != "" { 1724 1725 if err := r.SetQueryParam("parent_id__n", qParentIDn); err != nil { 1726 return err 1727 } 1728 } 1729 } 1730 1731 if o.Q != nil { 1732 1733 // query param q 1734 var qrQ string 1735 1736 if o.Q != nil { 1737 qrQ = *o.Q 1738 } 1739 qQ := qrQ 1740 if qQ != "" { 1741 1742 if err := r.SetQueryParam("q", qQ); err != nil { 1743 return err 1744 } 1745 } 1746 } 1747 1748 if o.Tag != nil { 1749 1750 // query param tag 1751 var qrTag string 1752 1753 if o.Tag != nil { 1754 qrTag = *o.Tag 1755 } 1756 qTag := qrTag 1757 if qTag != "" { 1758 1759 if err := r.SetQueryParam("tag", qTag); err != nil { 1760 return err 1761 } 1762 } 1763 } 1764 1765 if o.Tagn != nil { 1766 1767 // query param tag__n 1768 var qrTagn string 1769 1770 if o.Tagn != nil { 1771 qrTagn = *o.Tagn 1772 } 1773 qTagn := qrTagn 1774 if qTagn != "" { 1775 1776 if err := r.SetQueryParam("tag__n", qTagn); err != nil { 1777 return err 1778 } 1779 } 1780 } 1781 1782 if o.VirtualMachine != nil { 1783 1784 // query param virtual_machine 1785 var qrVirtualMachine string 1786 1787 if o.VirtualMachine != nil { 1788 qrVirtualMachine = *o.VirtualMachine 1789 } 1790 qVirtualMachine := qrVirtualMachine 1791 if qVirtualMachine != "" { 1792 1793 if err := r.SetQueryParam("virtual_machine", qVirtualMachine); err != nil { 1794 return err 1795 } 1796 } 1797 } 1798 1799 if o.VirtualMachinen != nil { 1800 1801 // query param virtual_machine__n 1802 var qrVirtualMachinen string 1803 1804 if o.VirtualMachinen != nil { 1805 qrVirtualMachinen = *o.VirtualMachinen 1806 } 1807 qVirtualMachinen := qrVirtualMachinen 1808 if qVirtualMachinen != "" { 1809 1810 if err := r.SetQueryParam("virtual_machine__n", qVirtualMachinen); err != nil { 1811 return err 1812 } 1813 } 1814 } 1815 1816 if o.VirtualMachineID != nil { 1817 1818 // query param virtual_machine_id 1819 var qrVirtualMachineID string 1820 1821 if o.VirtualMachineID != nil { 1822 qrVirtualMachineID = *o.VirtualMachineID 1823 } 1824 qVirtualMachineID := qrVirtualMachineID 1825 if qVirtualMachineID != "" { 1826 1827 if err := r.SetQueryParam("virtual_machine_id", qVirtualMachineID); err != nil { 1828 return err 1829 } 1830 } 1831 } 1832 1833 if o.VirtualMachineIDn != nil { 1834 1835 // query param virtual_machine_id__n 1836 var qrVirtualMachineIDn string 1837 1838 if o.VirtualMachineIDn != nil { 1839 qrVirtualMachineIDn = *o.VirtualMachineIDn 1840 } 1841 qVirtualMachineIDn := qrVirtualMachineIDn 1842 if qVirtualMachineIDn != "" { 1843 1844 if err := r.SetQueryParam("virtual_machine_id__n", qVirtualMachineIDn); err != nil { 1845 return err 1846 } 1847 } 1848 } 1849 1850 if len(res) > 0 { 1851 return errors.CompositeValidationError(res...) 1852 } 1853 return nil 1854 }