github.com/digitalocean/go-netbox@v0.0.2/netbox/client/ipam/ipam_ip_addresses_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 // NewIpamIPAddressesListParams creates a new IpamIPAddressesListParams 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 NewIpamIPAddressesListParams() *IpamIPAddressesListParams { 42 return &IpamIPAddressesListParams{ 43 timeout: cr.DefaultTimeout, 44 } 45 } 46 47 // NewIpamIPAddressesListParamsWithTimeout creates a new IpamIPAddressesListParams object 48 // with the ability to set a timeout on a request. 49 func NewIpamIPAddressesListParamsWithTimeout(timeout time.Duration) *IpamIPAddressesListParams { 50 return &IpamIPAddressesListParams{ 51 timeout: timeout, 52 } 53 } 54 55 // NewIpamIPAddressesListParamsWithContext creates a new IpamIPAddressesListParams object 56 // with the ability to set a context for a request. 57 func NewIpamIPAddressesListParamsWithContext(ctx context.Context) *IpamIPAddressesListParams { 58 return &IpamIPAddressesListParams{ 59 Context: ctx, 60 } 61 } 62 63 // NewIpamIPAddressesListParamsWithHTTPClient creates a new IpamIPAddressesListParams object 64 // with the ability to set a custom HTTPClient for a request. 65 func NewIpamIPAddressesListParamsWithHTTPClient(client *http.Client) *IpamIPAddressesListParams { 66 return &IpamIPAddressesListParams{ 67 HTTPClient: client, 68 } 69 } 70 71 /* IpamIPAddressesListParams contains all the parameters to send to the API endpoint 72 for the ipam ip addresses list operation. 73 74 Typically these are written to a http.Request. 75 */ 76 type IpamIPAddressesListParams struct { 77 78 // Address. 79 Address *string 80 81 // AssignedToInterface. 82 AssignedToInterface *string 83 84 // Created. 85 Created *string 86 87 // CreatedGte. 88 CreatedGte *string 89 90 // CreatedLte. 91 CreatedLte *string 92 93 // Description. 94 Description *string 95 96 // DescriptionEmpty. 97 DescriptionEmpty *string 98 99 // DescriptionIc. 100 DescriptionIc *string 101 102 // DescriptionIe. 103 DescriptionIe *string 104 105 // DescriptionIew. 106 DescriptionIew *string 107 108 // DescriptionIsw. 109 DescriptionIsw *string 110 111 // Descriptionn. 112 Descriptionn *string 113 114 // DescriptionNic. 115 DescriptionNic *string 116 117 // DescriptionNie. 118 DescriptionNie *string 119 120 // DescriptionNiew. 121 DescriptionNiew *string 122 123 // DescriptionNisw. 124 DescriptionNisw *string 125 126 // Device. 127 Device *string 128 129 // DeviceID. 130 DeviceID *string 131 132 // DNSName. 133 DNSName *string 134 135 // DNSNameEmpty. 136 DNSNameEmpty *string 137 138 // DNSNameIc. 139 DNSNameIc *string 140 141 // DNSNameIe. 142 DNSNameIe *string 143 144 // DNSNameIew. 145 DNSNameIew *string 146 147 // DNSNameIsw. 148 DNSNameIsw *string 149 150 // DNSNamen. 151 DNSNamen *string 152 153 // DNSNameNic. 154 DNSNameNic *string 155 156 // DNSNameNie. 157 DNSNameNie *string 158 159 // DNSNameNiew. 160 DNSNameNiew *string 161 162 // DNSNameNisw. 163 DNSNameNisw *string 164 165 // Family. 166 Family *float64 167 168 // ID. 169 ID *string 170 171 // IDGt. 172 IDGt *string 173 174 // IDGte. 175 IDGte *string 176 177 // IDLt. 178 IDLt *string 179 180 // IDLte. 181 IDLte *string 182 183 // IDn. 184 IDn *string 185 186 // Interface. 187 Interface *string 188 189 // Interfacen. 190 Interfacen *string 191 192 // InterfaceID. 193 InterfaceID *string 194 195 // InterfaceIDn. 196 InterfaceIDn *string 197 198 // LastUpdated. 199 LastUpdated *string 200 201 // LastUpdatedGte. 202 LastUpdatedGte *string 203 204 // LastUpdatedLte. 205 LastUpdatedLte *string 206 207 /* Limit. 208 209 Number of results to return per page. 210 */ 211 Limit *int64 212 213 // MaskLength. 214 MaskLength *float64 215 216 /* Offset. 217 218 The initial index from which to return the results. 219 */ 220 Offset *int64 221 222 // Parent. 223 Parent *string 224 225 // PresentInVrf. 226 PresentInVrf *string 227 228 // PresentInVrfID. 229 PresentInVrfID *string 230 231 // Q. 232 Q *string 233 234 // Role. 235 Role *string 236 237 // Rolen. 238 Rolen *string 239 240 // Status. 241 Status *string 242 243 // Statusn. 244 Statusn *string 245 246 // Tag. 247 Tag *string 248 249 // Tagn. 250 Tagn *string 251 252 // Tenant. 253 Tenant *string 254 255 // Tenantn. 256 Tenantn *string 257 258 // TenantGroup. 259 TenantGroup *string 260 261 // TenantGroupn. 262 TenantGroupn *string 263 264 // TenantGroupID. 265 TenantGroupID *string 266 267 // TenantGroupIDn. 268 TenantGroupIDn *string 269 270 // TenantID. 271 TenantID *string 272 273 // TenantIDn. 274 TenantIDn *string 275 276 // VirtualMachine. 277 VirtualMachine *string 278 279 // VirtualMachineID. 280 VirtualMachineID *string 281 282 // Vminterface. 283 Vminterface *string 284 285 // Vminterfacen. 286 Vminterfacen *string 287 288 // VminterfaceID. 289 VminterfaceID *string 290 291 // VminterfaceIDn. 292 VminterfaceIDn *string 293 294 // Vrf. 295 Vrf *string 296 297 // Vrfn. 298 Vrfn *string 299 300 // VrfID. 301 VrfID *string 302 303 // VrfIDn. 304 VrfIDn *string 305 306 timeout time.Duration 307 Context context.Context 308 HTTPClient *http.Client 309 } 310 311 // WithDefaults hydrates default values in the ipam ip addresses list params (not the query body). 312 // 313 // All values with no default are reset to their zero value. 314 func (o *IpamIPAddressesListParams) WithDefaults() *IpamIPAddressesListParams { 315 o.SetDefaults() 316 return o 317 } 318 319 // SetDefaults hydrates default values in the ipam ip addresses list params (not the query body). 320 // 321 // All values with no default are reset to their zero value. 322 func (o *IpamIPAddressesListParams) SetDefaults() { 323 // no default values defined for this parameter 324 } 325 326 // WithTimeout adds the timeout to the ipam ip addresses list params 327 func (o *IpamIPAddressesListParams) WithTimeout(timeout time.Duration) *IpamIPAddressesListParams { 328 o.SetTimeout(timeout) 329 return o 330 } 331 332 // SetTimeout adds the timeout to the ipam ip addresses list params 333 func (o *IpamIPAddressesListParams) SetTimeout(timeout time.Duration) { 334 o.timeout = timeout 335 } 336 337 // WithContext adds the context to the ipam ip addresses list params 338 func (o *IpamIPAddressesListParams) WithContext(ctx context.Context) *IpamIPAddressesListParams { 339 o.SetContext(ctx) 340 return o 341 } 342 343 // SetContext adds the context to the ipam ip addresses list params 344 func (o *IpamIPAddressesListParams) SetContext(ctx context.Context) { 345 o.Context = ctx 346 } 347 348 // WithHTTPClient adds the HTTPClient to the ipam ip addresses list params 349 func (o *IpamIPAddressesListParams) WithHTTPClient(client *http.Client) *IpamIPAddressesListParams { 350 o.SetHTTPClient(client) 351 return o 352 } 353 354 // SetHTTPClient adds the HTTPClient to the ipam ip addresses list params 355 func (o *IpamIPAddressesListParams) SetHTTPClient(client *http.Client) { 356 o.HTTPClient = client 357 } 358 359 // WithAddress adds the address to the ipam ip addresses list params 360 func (o *IpamIPAddressesListParams) WithAddress(address *string) *IpamIPAddressesListParams { 361 o.SetAddress(address) 362 return o 363 } 364 365 // SetAddress adds the address to the ipam ip addresses list params 366 func (o *IpamIPAddressesListParams) SetAddress(address *string) { 367 o.Address = address 368 } 369 370 // WithAssignedToInterface adds the assignedToInterface to the ipam ip addresses list params 371 func (o *IpamIPAddressesListParams) WithAssignedToInterface(assignedToInterface *string) *IpamIPAddressesListParams { 372 o.SetAssignedToInterface(assignedToInterface) 373 return o 374 } 375 376 // SetAssignedToInterface adds the assignedToInterface to the ipam ip addresses list params 377 func (o *IpamIPAddressesListParams) SetAssignedToInterface(assignedToInterface *string) { 378 o.AssignedToInterface = assignedToInterface 379 } 380 381 // WithCreated adds the created to the ipam ip addresses list params 382 func (o *IpamIPAddressesListParams) WithCreated(created *string) *IpamIPAddressesListParams { 383 o.SetCreated(created) 384 return o 385 } 386 387 // SetCreated adds the created to the ipam ip addresses list params 388 func (o *IpamIPAddressesListParams) SetCreated(created *string) { 389 o.Created = created 390 } 391 392 // WithCreatedGte adds the createdGte to the ipam ip addresses list params 393 func (o *IpamIPAddressesListParams) WithCreatedGte(createdGte *string) *IpamIPAddressesListParams { 394 o.SetCreatedGte(createdGte) 395 return o 396 } 397 398 // SetCreatedGte adds the createdGte to the ipam ip addresses list params 399 func (o *IpamIPAddressesListParams) SetCreatedGte(createdGte *string) { 400 o.CreatedGte = createdGte 401 } 402 403 // WithCreatedLte adds the createdLte to the ipam ip addresses list params 404 func (o *IpamIPAddressesListParams) WithCreatedLte(createdLte *string) *IpamIPAddressesListParams { 405 o.SetCreatedLte(createdLte) 406 return o 407 } 408 409 // SetCreatedLte adds the createdLte to the ipam ip addresses list params 410 func (o *IpamIPAddressesListParams) SetCreatedLte(createdLte *string) { 411 o.CreatedLte = createdLte 412 } 413 414 // WithDescription adds the description to the ipam ip addresses list params 415 func (o *IpamIPAddressesListParams) WithDescription(description *string) *IpamIPAddressesListParams { 416 o.SetDescription(description) 417 return o 418 } 419 420 // SetDescription adds the description to the ipam ip addresses list params 421 func (o *IpamIPAddressesListParams) SetDescription(description *string) { 422 o.Description = description 423 } 424 425 // WithDescriptionEmpty adds the descriptionEmpty to the ipam ip addresses list params 426 func (o *IpamIPAddressesListParams) WithDescriptionEmpty(descriptionEmpty *string) *IpamIPAddressesListParams { 427 o.SetDescriptionEmpty(descriptionEmpty) 428 return o 429 } 430 431 // SetDescriptionEmpty adds the descriptionEmpty to the ipam ip addresses list params 432 func (o *IpamIPAddressesListParams) SetDescriptionEmpty(descriptionEmpty *string) { 433 o.DescriptionEmpty = descriptionEmpty 434 } 435 436 // WithDescriptionIc adds the descriptionIc to the ipam ip addresses list params 437 func (o *IpamIPAddressesListParams) WithDescriptionIc(descriptionIc *string) *IpamIPAddressesListParams { 438 o.SetDescriptionIc(descriptionIc) 439 return o 440 } 441 442 // SetDescriptionIc adds the descriptionIc to the ipam ip addresses list params 443 func (o *IpamIPAddressesListParams) SetDescriptionIc(descriptionIc *string) { 444 o.DescriptionIc = descriptionIc 445 } 446 447 // WithDescriptionIe adds the descriptionIe to the ipam ip addresses list params 448 func (o *IpamIPAddressesListParams) WithDescriptionIe(descriptionIe *string) *IpamIPAddressesListParams { 449 o.SetDescriptionIe(descriptionIe) 450 return o 451 } 452 453 // SetDescriptionIe adds the descriptionIe to the ipam ip addresses list params 454 func (o *IpamIPAddressesListParams) SetDescriptionIe(descriptionIe *string) { 455 o.DescriptionIe = descriptionIe 456 } 457 458 // WithDescriptionIew adds the descriptionIew to the ipam ip addresses list params 459 func (o *IpamIPAddressesListParams) WithDescriptionIew(descriptionIew *string) *IpamIPAddressesListParams { 460 o.SetDescriptionIew(descriptionIew) 461 return o 462 } 463 464 // SetDescriptionIew adds the descriptionIew to the ipam ip addresses list params 465 func (o *IpamIPAddressesListParams) SetDescriptionIew(descriptionIew *string) { 466 o.DescriptionIew = descriptionIew 467 } 468 469 // WithDescriptionIsw adds the descriptionIsw to the ipam ip addresses list params 470 func (o *IpamIPAddressesListParams) WithDescriptionIsw(descriptionIsw *string) *IpamIPAddressesListParams { 471 o.SetDescriptionIsw(descriptionIsw) 472 return o 473 } 474 475 // SetDescriptionIsw adds the descriptionIsw to the ipam ip addresses list params 476 func (o *IpamIPAddressesListParams) SetDescriptionIsw(descriptionIsw *string) { 477 o.DescriptionIsw = descriptionIsw 478 } 479 480 // WithDescriptionn adds the descriptionn to the ipam ip addresses list params 481 func (o *IpamIPAddressesListParams) WithDescriptionn(descriptionn *string) *IpamIPAddressesListParams { 482 o.SetDescriptionn(descriptionn) 483 return o 484 } 485 486 // SetDescriptionn adds the descriptionN to the ipam ip addresses list params 487 func (o *IpamIPAddressesListParams) SetDescriptionn(descriptionn *string) { 488 o.Descriptionn = descriptionn 489 } 490 491 // WithDescriptionNic adds the descriptionNic to the ipam ip addresses list params 492 func (o *IpamIPAddressesListParams) WithDescriptionNic(descriptionNic *string) *IpamIPAddressesListParams { 493 o.SetDescriptionNic(descriptionNic) 494 return o 495 } 496 497 // SetDescriptionNic adds the descriptionNic to the ipam ip addresses list params 498 func (o *IpamIPAddressesListParams) SetDescriptionNic(descriptionNic *string) { 499 o.DescriptionNic = descriptionNic 500 } 501 502 // WithDescriptionNie adds the descriptionNie to the ipam ip addresses list params 503 func (o *IpamIPAddressesListParams) WithDescriptionNie(descriptionNie *string) *IpamIPAddressesListParams { 504 o.SetDescriptionNie(descriptionNie) 505 return o 506 } 507 508 // SetDescriptionNie adds the descriptionNie to the ipam ip addresses list params 509 func (o *IpamIPAddressesListParams) SetDescriptionNie(descriptionNie *string) { 510 o.DescriptionNie = descriptionNie 511 } 512 513 // WithDescriptionNiew adds the descriptionNiew to the ipam ip addresses list params 514 func (o *IpamIPAddressesListParams) WithDescriptionNiew(descriptionNiew *string) *IpamIPAddressesListParams { 515 o.SetDescriptionNiew(descriptionNiew) 516 return o 517 } 518 519 // SetDescriptionNiew adds the descriptionNiew to the ipam ip addresses list params 520 func (o *IpamIPAddressesListParams) SetDescriptionNiew(descriptionNiew *string) { 521 o.DescriptionNiew = descriptionNiew 522 } 523 524 // WithDescriptionNisw adds the descriptionNisw to the ipam ip addresses list params 525 func (o *IpamIPAddressesListParams) WithDescriptionNisw(descriptionNisw *string) *IpamIPAddressesListParams { 526 o.SetDescriptionNisw(descriptionNisw) 527 return o 528 } 529 530 // SetDescriptionNisw adds the descriptionNisw to the ipam ip addresses list params 531 func (o *IpamIPAddressesListParams) SetDescriptionNisw(descriptionNisw *string) { 532 o.DescriptionNisw = descriptionNisw 533 } 534 535 // WithDevice adds the device to the ipam ip addresses list params 536 func (o *IpamIPAddressesListParams) WithDevice(device *string) *IpamIPAddressesListParams { 537 o.SetDevice(device) 538 return o 539 } 540 541 // SetDevice adds the device to the ipam ip addresses list params 542 func (o *IpamIPAddressesListParams) SetDevice(device *string) { 543 o.Device = device 544 } 545 546 // WithDeviceID adds the deviceID to the ipam ip addresses list params 547 func (o *IpamIPAddressesListParams) WithDeviceID(deviceID *string) *IpamIPAddressesListParams { 548 o.SetDeviceID(deviceID) 549 return o 550 } 551 552 // SetDeviceID adds the deviceId to the ipam ip addresses list params 553 func (o *IpamIPAddressesListParams) SetDeviceID(deviceID *string) { 554 o.DeviceID = deviceID 555 } 556 557 // WithDNSName adds the dNSName to the ipam ip addresses list params 558 func (o *IpamIPAddressesListParams) WithDNSName(dNSName *string) *IpamIPAddressesListParams { 559 o.SetDNSName(dNSName) 560 return o 561 } 562 563 // SetDNSName adds the dnsName to the ipam ip addresses list params 564 func (o *IpamIPAddressesListParams) SetDNSName(dNSName *string) { 565 o.DNSName = dNSName 566 } 567 568 // WithDNSNameEmpty adds the dNSNameEmpty to the ipam ip addresses list params 569 func (o *IpamIPAddressesListParams) WithDNSNameEmpty(dNSNameEmpty *string) *IpamIPAddressesListParams { 570 o.SetDNSNameEmpty(dNSNameEmpty) 571 return o 572 } 573 574 // SetDNSNameEmpty adds the dnsNameEmpty to the ipam ip addresses list params 575 func (o *IpamIPAddressesListParams) SetDNSNameEmpty(dNSNameEmpty *string) { 576 o.DNSNameEmpty = dNSNameEmpty 577 } 578 579 // WithDNSNameIc adds the dNSNameIc to the ipam ip addresses list params 580 func (o *IpamIPAddressesListParams) WithDNSNameIc(dNSNameIc *string) *IpamIPAddressesListParams { 581 o.SetDNSNameIc(dNSNameIc) 582 return o 583 } 584 585 // SetDNSNameIc adds the dnsNameIc to the ipam ip addresses list params 586 func (o *IpamIPAddressesListParams) SetDNSNameIc(dNSNameIc *string) { 587 o.DNSNameIc = dNSNameIc 588 } 589 590 // WithDNSNameIe adds the dNSNameIe to the ipam ip addresses list params 591 func (o *IpamIPAddressesListParams) WithDNSNameIe(dNSNameIe *string) *IpamIPAddressesListParams { 592 o.SetDNSNameIe(dNSNameIe) 593 return o 594 } 595 596 // SetDNSNameIe adds the dnsNameIe to the ipam ip addresses list params 597 func (o *IpamIPAddressesListParams) SetDNSNameIe(dNSNameIe *string) { 598 o.DNSNameIe = dNSNameIe 599 } 600 601 // WithDNSNameIew adds the dNSNameIew to the ipam ip addresses list params 602 func (o *IpamIPAddressesListParams) WithDNSNameIew(dNSNameIew *string) *IpamIPAddressesListParams { 603 o.SetDNSNameIew(dNSNameIew) 604 return o 605 } 606 607 // SetDNSNameIew adds the dnsNameIew to the ipam ip addresses list params 608 func (o *IpamIPAddressesListParams) SetDNSNameIew(dNSNameIew *string) { 609 o.DNSNameIew = dNSNameIew 610 } 611 612 // WithDNSNameIsw adds the dNSNameIsw to the ipam ip addresses list params 613 func (o *IpamIPAddressesListParams) WithDNSNameIsw(dNSNameIsw *string) *IpamIPAddressesListParams { 614 o.SetDNSNameIsw(dNSNameIsw) 615 return o 616 } 617 618 // SetDNSNameIsw adds the dnsNameIsw to the ipam ip addresses list params 619 func (o *IpamIPAddressesListParams) SetDNSNameIsw(dNSNameIsw *string) { 620 o.DNSNameIsw = dNSNameIsw 621 } 622 623 // WithDNSNamen adds the dNSNamen to the ipam ip addresses list params 624 func (o *IpamIPAddressesListParams) WithDNSNamen(dNSNamen *string) *IpamIPAddressesListParams { 625 o.SetDNSNamen(dNSNamen) 626 return o 627 } 628 629 // SetDNSNamen adds the dnsNameN to the ipam ip addresses list params 630 func (o *IpamIPAddressesListParams) SetDNSNamen(dNSNamen *string) { 631 o.DNSNamen = dNSNamen 632 } 633 634 // WithDNSNameNic adds the dNSNameNic to the ipam ip addresses list params 635 func (o *IpamIPAddressesListParams) WithDNSNameNic(dNSNameNic *string) *IpamIPAddressesListParams { 636 o.SetDNSNameNic(dNSNameNic) 637 return o 638 } 639 640 // SetDNSNameNic adds the dnsNameNic to the ipam ip addresses list params 641 func (o *IpamIPAddressesListParams) SetDNSNameNic(dNSNameNic *string) { 642 o.DNSNameNic = dNSNameNic 643 } 644 645 // WithDNSNameNie adds the dNSNameNie to the ipam ip addresses list params 646 func (o *IpamIPAddressesListParams) WithDNSNameNie(dNSNameNie *string) *IpamIPAddressesListParams { 647 o.SetDNSNameNie(dNSNameNie) 648 return o 649 } 650 651 // SetDNSNameNie adds the dnsNameNie to the ipam ip addresses list params 652 func (o *IpamIPAddressesListParams) SetDNSNameNie(dNSNameNie *string) { 653 o.DNSNameNie = dNSNameNie 654 } 655 656 // WithDNSNameNiew adds the dNSNameNiew to the ipam ip addresses list params 657 func (o *IpamIPAddressesListParams) WithDNSNameNiew(dNSNameNiew *string) *IpamIPAddressesListParams { 658 o.SetDNSNameNiew(dNSNameNiew) 659 return o 660 } 661 662 // SetDNSNameNiew adds the dnsNameNiew to the ipam ip addresses list params 663 func (o *IpamIPAddressesListParams) SetDNSNameNiew(dNSNameNiew *string) { 664 o.DNSNameNiew = dNSNameNiew 665 } 666 667 // WithDNSNameNisw adds the dNSNameNisw to the ipam ip addresses list params 668 func (o *IpamIPAddressesListParams) WithDNSNameNisw(dNSNameNisw *string) *IpamIPAddressesListParams { 669 o.SetDNSNameNisw(dNSNameNisw) 670 return o 671 } 672 673 // SetDNSNameNisw adds the dnsNameNisw to the ipam ip addresses list params 674 func (o *IpamIPAddressesListParams) SetDNSNameNisw(dNSNameNisw *string) { 675 o.DNSNameNisw = dNSNameNisw 676 } 677 678 // WithFamily adds the family to the ipam ip addresses list params 679 func (o *IpamIPAddressesListParams) WithFamily(family *float64) *IpamIPAddressesListParams { 680 o.SetFamily(family) 681 return o 682 } 683 684 // SetFamily adds the family to the ipam ip addresses list params 685 func (o *IpamIPAddressesListParams) SetFamily(family *float64) { 686 o.Family = family 687 } 688 689 // WithID adds the id to the ipam ip addresses list params 690 func (o *IpamIPAddressesListParams) WithID(id *string) *IpamIPAddressesListParams { 691 o.SetID(id) 692 return o 693 } 694 695 // SetID adds the id to the ipam ip addresses list params 696 func (o *IpamIPAddressesListParams) SetID(id *string) { 697 o.ID = id 698 } 699 700 // WithIDGt adds the iDGt to the ipam ip addresses list params 701 func (o *IpamIPAddressesListParams) WithIDGt(iDGt *string) *IpamIPAddressesListParams { 702 o.SetIDGt(iDGt) 703 return o 704 } 705 706 // SetIDGt adds the idGt to the ipam ip addresses list params 707 func (o *IpamIPAddressesListParams) SetIDGt(iDGt *string) { 708 o.IDGt = iDGt 709 } 710 711 // WithIDGte adds the iDGte to the ipam ip addresses list params 712 func (o *IpamIPAddressesListParams) WithIDGte(iDGte *string) *IpamIPAddressesListParams { 713 o.SetIDGte(iDGte) 714 return o 715 } 716 717 // SetIDGte adds the idGte to the ipam ip addresses list params 718 func (o *IpamIPAddressesListParams) SetIDGte(iDGte *string) { 719 o.IDGte = iDGte 720 } 721 722 // WithIDLt adds the iDLt to the ipam ip addresses list params 723 func (o *IpamIPAddressesListParams) WithIDLt(iDLt *string) *IpamIPAddressesListParams { 724 o.SetIDLt(iDLt) 725 return o 726 } 727 728 // SetIDLt adds the idLt to the ipam ip addresses list params 729 func (o *IpamIPAddressesListParams) SetIDLt(iDLt *string) { 730 o.IDLt = iDLt 731 } 732 733 // WithIDLte adds the iDLte to the ipam ip addresses list params 734 func (o *IpamIPAddressesListParams) WithIDLte(iDLte *string) *IpamIPAddressesListParams { 735 o.SetIDLte(iDLte) 736 return o 737 } 738 739 // SetIDLte adds the idLte to the ipam ip addresses list params 740 func (o *IpamIPAddressesListParams) SetIDLte(iDLte *string) { 741 o.IDLte = iDLte 742 } 743 744 // WithIDn adds the iDn to the ipam ip addresses list params 745 func (o *IpamIPAddressesListParams) WithIDn(iDn *string) *IpamIPAddressesListParams { 746 o.SetIDn(iDn) 747 return o 748 } 749 750 // SetIDn adds the idN to the ipam ip addresses list params 751 func (o *IpamIPAddressesListParams) SetIDn(iDn *string) { 752 o.IDn = iDn 753 } 754 755 // WithInterface adds the interfaceVar to the ipam ip addresses list params 756 func (o *IpamIPAddressesListParams) WithInterface(interfaceVar *string) *IpamIPAddressesListParams { 757 o.SetInterface(interfaceVar) 758 return o 759 } 760 761 // SetInterface adds the interface to the ipam ip addresses list params 762 func (o *IpamIPAddressesListParams) SetInterface(interfaceVar *string) { 763 o.Interface = interfaceVar 764 } 765 766 // WithInterfacen adds the interfacen to the ipam ip addresses list params 767 func (o *IpamIPAddressesListParams) WithInterfacen(interfacen *string) *IpamIPAddressesListParams { 768 o.SetInterfacen(interfacen) 769 return o 770 } 771 772 // SetInterfacen adds the interfaceN to the ipam ip addresses list params 773 func (o *IpamIPAddressesListParams) SetInterfacen(interfacen *string) { 774 o.Interfacen = interfacen 775 } 776 777 // WithInterfaceID adds the interfaceID to the ipam ip addresses list params 778 func (o *IpamIPAddressesListParams) WithInterfaceID(interfaceID *string) *IpamIPAddressesListParams { 779 o.SetInterfaceID(interfaceID) 780 return o 781 } 782 783 // SetInterfaceID adds the interfaceId to the ipam ip addresses list params 784 func (o *IpamIPAddressesListParams) SetInterfaceID(interfaceID *string) { 785 o.InterfaceID = interfaceID 786 } 787 788 // WithInterfaceIDn adds the interfaceIDn to the ipam ip addresses list params 789 func (o *IpamIPAddressesListParams) WithInterfaceIDn(interfaceIDn *string) *IpamIPAddressesListParams { 790 o.SetInterfaceIDn(interfaceIDn) 791 return o 792 } 793 794 // SetInterfaceIDn adds the interfaceIdN to the ipam ip addresses list params 795 func (o *IpamIPAddressesListParams) SetInterfaceIDn(interfaceIDn *string) { 796 o.InterfaceIDn = interfaceIDn 797 } 798 799 // WithLastUpdated adds the lastUpdated to the ipam ip addresses list params 800 func (o *IpamIPAddressesListParams) WithLastUpdated(lastUpdated *string) *IpamIPAddressesListParams { 801 o.SetLastUpdated(lastUpdated) 802 return o 803 } 804 805 // SetLastUpdated adds the lastUpdated to the ipam ip addresses list params 806 func (o *IpamIPAddressesListParams) SetLastUpdated(lastUpdated *string) { 807 o.LastUpdated = lastUpdated 808 } 809 810 // WithLastUpdatedGte adds the lastUpdatedGte to the ipam ip addresses list params 811 func (o *IpamIPAddressesListParams) WithLastUpdatedGte(lastUpdatedGte *string) *IpamIPAddressesListParams { 812 o.SetLastUpdatedGte(lastUpdatedGte) 813 return o 814 } 815 816 // SetLastUpdatedGte adds the lastUpdatedGte to the ipam ip addresses list params 817 func (o *IpamIPAddressesListParams) SetLastUpdatedGte(lastUpdatedGte *string) { 818 o.LastUpdatedGte = lastUpdatedGte 819 } 820 821 // WithLastUpdatedLte adds the lastUpdatedLte to the ipam ip addresses list params 822 func (o *IpamIPAddressesListParams) WithLastUpdatedLte(lastUpdatedLte *string) *IpamIPAddressesListParams { 823 o.SetLastUpdatedLte(lastUpdatedLte) 824 return o 825 } 826 827 // SetLastUpdatedLte adds the lastUpdatedLte to the ipam ip addresses list params 828 func (o *IpamIPAddressesListParams) SetLastUpdatedLte(lastUpdatedLte *string) { 829 o.LastUpdatedLte = lastUpdatedLte 830 } 831 832 // WithLimit adds the limit to the ipam ip addresses list params 833 func (o *IpamIPAddressesListParams) WithLimit(limit *int64) *IpamIPAddressesListParams { 834 o.SetLimit(limit) 835 return o 836 } 837 838 // SetLimit adds the limit to the ipam ip addresses list params 839 func (o *IpamIPAddressesListParams) SetLimit(limit *int64) { 840 o.Limit = limit 841 } 842 843 // WithMaskLength adds the maskLength to the ipam ip addresses list params 844 func (o *IpamIPAddressesListParams) WithMaskLength(maskLength *float64) *IpamIPAddressesListParams { 845 o.SetMaskLength(maskLength) 846 return o 847 } 848 849 // SetMaskLength adds the maskLength to the ipam ip addresses list params 850 func (o *IpamIPAddressesListParams) SetMaskLength(maskLength *float64) { 851 o.MaskLength = maskLength 852 } 853 854 // WithOffset adds the offset to the ipam ip addresses list params 855 func (o *IpamIPAddressesListParams) WithOffset(offset *int64) *IpamIPAddressesListParams { 856 o.SetOffset(offset) 857 return o 858 } 859 860 // SetOffset adds the offset to the ipam ip addresses list params 861 func (o *IpamIPAddressesListParams) SetOffset(offset *int64) { 862 o.Offset = offset 863 } 864 865 // WithParent adds the parent to the ipam ip addresses list params 866 func (o *IpamIPAddressesListParams) WithParent(parent *string) *IpamIPAddressesListParams { 867 o.SetParent(parent) 868 return o 869 } 870 871 // SetParent adds the parent to the ipam ip addresses list params 872 func (o *IpamIPAddressesListParams) SetParent(parent *string) { 873 o.Parent = parent 874 } 875 876 // WithPresentInVrf adds the presentInVrf to the ipam ip addresses list params 877 func (o *IpamIPAddressesListParams) WithPresentInVrf(presentInVrf *string) *IpamIPAddressesListParams { 878 o.SetPresentInVrf(presentInVrf) 879 return o 880 } 881 882 // SetPresentInVrf adds the presentInVrf to the ipam ip addresses list params 883 func (o *IpamIPAddressesListParams) SetPresentInVrf(presentInVrf *string) { 884 o.PresentInVrf = presentInVrf 885 } 886 887 // WithPresentInVrfID adds the presentInVrfID to the ipam ip addresses list params 888 func (o *IpamIPAddressesListParams) WithPresentInVrfID(presentInVrfID *string) *IpamIPAddressesListParams { 889 o.SetPresentInVrfID(presentInVrfID) 890 return o 891 } 892 893 // SetPresentInVrfID adds the presentInVrfId to the ipam ip addresses list params 894 func (o *IpamIPAddressesListParams) SetPresentInVrfID(presentInVrfID *string) { 895 o.PresentInVrfID = presentInVrfID 896 } 897 898 // WithQ adds the q to the ipam ip addresses list params 899 func (o *IpamIPAddressesListParams) WithQ(q *string) *IpamIPAddressesListParams { 900 o.SetQ(q) 901 return o 902 } 903 904 // SetQ adds the q to the ipam ip addresses list params 905 func (o *IpamIPAddressesListParams) SetQ(q *string) { 906 o.Q = q 907 } 908 909 // WithRole adds the role to the ipam ip addresses list params 910 func (o *IpamIPAddressesListParams) WithRole(role *string) *IpamIPAddressesListParams { 911 o.SetRole(role) 912 return o 913 } 914 915 // SetRole adds the role to the ipam ip addresses list params 916 func (o *IpamIPAddressesListParams) SetRole(role *string) { 917 o.Role = role 918 } 919 920 // WithRolen adds the rolen to the ipam ip addresses list params 921 func (o *IpamIPAddressesListParams) WithRolen(rolen *string) *IpamIPAddressesListParams { 922 o.SetRolen(rolen) 923 return o 924 } 925 926 // SetRolen adds the roleN to the ipam ip addresses list params 927 func (o *IpamIPAddressesListParams) SetRolen(rolen *string) { 928 o.Rolen = rolen 929 } 930 931 // WithStatus adds the status to the ipam ip addresses list params 932 func (o *IpamIPAddressesListParams) WithStatus(status *string) *IpamIPAddressesListParams { 933 o.SetStatus(status) 934 return o 935 } 936 937 // SetStatus adds the status to the ipam ip addresses list params 938 func (o *IpamIPAddressesListParams) SetStatus(status *string) { 939 o.Status = status 940 } 941 942 // WithStatusn adds the statusn to the ipam ip addresses list params 943 func (o *IpamIPAddressesListParams) WithStatusn(statusn *string) *IpamIPAddressesListParams { 944 o.SetStatusn(statusn) 945 return o 946 } 947 948 // SetStatusn adds the statusN to the ipam ip addresses list params 949 func (o *IpamIPAddressesListParams) SetStatusn(statusn *string) { 950 o.Statusn = statusn 951 } 952 953 // WithTag adds the tag to the ipam ip addresses list params 954 func (o *IpamIPAddressesListParams) WithTag(tag *string) *IpamIPAddressesListParams { 955 o.SetTag(tag) 956 return o 957 } 958 959 // SetTag adds the tag to the ipam ip addresses list params 960 func (o *IpamIPAddressesListParams) SetTag(tag *string) { 961 o.Tag = tag 962 } 963 964 // WithTagn adds the tagn to the ipam ip addresses list params 965 func (o *IpamIPAddressesListParams) WithTagn(tagn *string) *IpamIPAddressesListParams { 966 o.SetTagn(tagn) 967 return o 968 } 969 970 // SetTagn adds the tagN to the ipam ip addresses list params 971 func (o *IpamIPAddressesListParams) SetTagn(tagn *string) { 972 o.Tagn = tagn 973 } 974 975 // WithTenant adds the tenant to the ipam ip addresses list params 976 func (o *IpamIPAddressesListParams) WithTenant(tenant *string) *IpamIPAddressesListParams { 977 o.SetTenant(tenant) 978 return o 979 } 980 981 // SetTenant adds the tenant to the ipam ip addresses list params 982 func (o *IpamIPAddressesListParams) SetTenant(tenant *string) { 983 o.Tenant = tenant 984 } 985 986 // WithTenantn adds the tenantn to the ipam ip addresses list params 987 func (o *IpamIPAddressesListParams) WithTenantn(tenantn *string) *IpamIPAddressesListParams { 988 o.SetTenantn(tenantn) 989 return o 990 } 991 992 // SetTenantn adds the tenantN to the ipam ip addresses list params 993 func (o *IpamIPAddressesListParams) SetTenantn(tenantn *string) { 994 o.Tenantn = tenantn 995 } 996 997 // WithTenantGroup adds the tenantGroup to the ipam ip addresses list params 998 func (o *IpamIPAddressesListParams) WithTenantGroup(tenantGroup *string) *IpamIPAddressesListParams { 999 o.SetTenantGroup(tenantGroup) 1000 return o 1001 } 1002 1003 // SetTenantGroup adds the tenantGroup to the ipam ip addresses list params 1004 func (o *IpamIPAddressesListParams) SetTenantGroup(tenantGroup *string) { 1005 o.TenantGroup = tenantGroup 1006 } 1007 1008 // WithTenantGroupn adds the tenantGroupn to the ipam ip addresses list params 1009 func (o *IpamIPAddressesListParams) WithTenantGroupn(tenantGroupn *string) *IpamIPAddressesListParams { 1010 o.SetTenantGroupn(tenantGroupn) 1011 return o 1012 } 1013 1014 // SetTenantGroupn adds the tenantGroupN to the ipam ip addresses list params 1015 func (o *IpamIPAddressesListParams) SetTenantGroupn(tenantGroupn *string) { 1016 o.TenantGroupn = tenantGroupn 1017 } 1018 1019 // WithTenantGroupID adds the tenantGroupID to the ipam ip addresses list params 1020 func (o *IpamIPAddressesListParams) WithTenantGroupID(tenantGroupID *string) *IpamIPAddressesListParams { 1021 o.SetTenantGroupID(tenantGroupID) 1022 return o 1023 } 1024 1025 // SetTenantGroupID adds the tenantGroupId to the ipam ip addresses list params 1026 func (o *IpamIPAddressesListParams) SetTenantGroupID(tenantGroupID *string) { 1027 o.TenantGroupID = tenantGroupID 1028 } 1029 1030 // WithTenantGroupIDn adds the tenantGroupIDn to the ipam ip addresses list params 1031 func (o *IpamIPAddressesListParams) WithTenantGroupIDn(tenantGroupIDn *string) *IpamIPAddressesListParams { 1032 o.SetTenantGroupIDn(tenantGroupIDn) 1033 return o 1034 } 1035 1036 // SetTenantGroupIDn adds the tenantGroupIdN to the ipam ip addresses list params 1037 func (o *IpamIPAddressesListParams) SetTenantGroupIDn(tenantGroupIDn *string) { 1038 o.TenantGroupIDn = tenantGroupIDn 1039 } 1040 1041 // WithTenantID adds the tenantID to the ipam ip addresses list params 1042 func (o *IpamIPAddressesListParams) WithTenantID(tenantID *string) *IpamIPAddressesListParams { 1043 o.SetTenantID(tenantID) 1044 return o 1045 } 1046 1047 // SetTenantID adds the tenantId to the ipam ip addresses list params 1048 func (o *IpamIPAddressesListParams) SetTenantID(tenantID *string) { 1049 o.TenantID = tenantID 1050 } 1051 1052 // WithTenantIDn adds the tenantIDn to the ipam ip addresses list params 1053 func (o *IpamIPAddressesListParams) WithTenantIDn(tenantIDn *string) *IpamIPAddressesListParams { 1054 o.SetTenantIDn(tenantIDn) 1055 return o 1056 } 1057 1058 // SetTenantIDn adds the tenantIdN to the ipam ip addresses list params 1059 func (o *IpamIPAddressesListParams) SetTenantIDn(tenantIDn *string) { 1060 o.TenantIDn = tenantIDn 1061 } 1062 1063 // WithVirtualMachine adds the virtualMachine to the ipam ip addresses list params 1064 func (o *IpamIPAddressesListParams) WithVirtualMachine(virtualMachine *string) *IpamIPAddressesListParams { 1065 o.SetVirtualMachine(virtualMachine) 1066 return o 1067 } 1068 1069 // SetVirtualMachine adds the virtualMachine to the ipam ip addresses list params 1070 func (o *IpamIPAddressesListParams) SetVirtualMachine(virtualMachine *string) { 1071 o.VirtualMachine = virtualMachine 1072 } 1073 1074 // WithVirtualMachineID adds the virtualMachineID to the ipam ip addresses list params 1075 func (o *IpamIPAddressesListParams) WithVirtualMachineID(virtualMachineID *string) *IpamIPAddressesListParams { 1076 o.SetVirtualMachineID(virtualMachineID) 1077 return o 1078 } 1079 1080 // SetVirtualMachineID adds the virtualMachineId to the ipam ip addresses list params 1081 func (o *IpamIPAddressesListParams) SetVirtualMachineID(virtualMachineID *string) { 1082 o.VirtualMachineID = virtualMachineID 1083 } 1084 1085 // WithVminterface adds the vminterface to the ipam ip addresses list params 1086 func (o *IpamIPAddressesListParams) WithVminterface(vminterface *string) *IpamIPAddressesListParams { 1087 o.SetVminterface(vminterface) 1088 return o 1089 } 1090 1091 // SetVminterface adds the vminterface to the ipam ip addresses list params 1092 func (o *IpamIPAddressesListParams) SetVminterface(vminterface *string) { 1093 o.Vminterface = vminterface 1094 } 1095 1096 // WithVminterfacen adds the vminterfacen to the ipam ip addresses list params 1097 func (o *IpamIPAddressesListParams) WithVminterfacen(vminterfacen *string) *IpamIPAddressesListParams { 1098 o.SetVminterfacen(vminterfacen) 1099 return o 1100 } 1101 1102 // SetVminterfacen adds the vminterfaceN to the ipam ip addresses list params 1103 func (o *IpamIPAddressesListParams) SetVminterfacen(vminterfacen *string) { 1104 o.Vminterfacen = vminterfacen 1105 } 1106 1107 // WithVminterfaceID adds the vminterfaceID to the ipam ip addresses list params 1108 func (o *IpamIPAddressesListParams) WithVminterfaceID(vminterfaceID *string) *IpamIPAddressesListParams { 1109 o.SetVminterfaceID(vminterfaceID) 1110 return o 1111 } 1112 1113 // SetVminterfaceID adds the vminterfaceId to the ipam ip addresses list params 1114 func (o *IpamIPAddressesListParams) SetVminterfaceID(vminterfaceID *string) { 1115 o.VminterfaceID = vminterfaceID 1116 } 1117 1118 // WithVminterfaceIDn adds the vminterfaceIDn to the ipam ip addresses list params 1119 func (o *IpamIPAddressesListParams) WithVminterfaceIDn(vminterfaceIDn *string) *IpamIPAddressesListParams { 1120 o.SetVminterfaceIDn(vminterfaceIDn) 1121 return o 1122 } 1123 1124 // SetVminterfaceIDn adds the vminterfaceIdN to the ipam ip addresses list params 1125 func (o *IpamIPAddressesListParams) SetVminterfaceIDn(vminterfaceIDn *string) { 1126 o.VminterfaceIDn = vminterfaceIDn 1127 } 1128 1129 // WithVrf adds the vrf to the ipam ip addresses list params 1130 func (o *IpamIPAddressesListParams) WithVrf(vrf *string) *IpamIPAddressesListParams { 1131 o.SetVrf(vrf) 1132 return o 1133 } 1134 1135 // SetVrf adds the vrf to the ipam ip addresses list params 1136 func (o *IpamIPAddressesListParams) SetVrf(vrf *string) { 1137 o.Vrf = vrf 1138 } 1139 1140 // WithVrfn adds the vrfn to the ipam ip addresses list params 1141 func (o *IpamIPAddressesListParams) WithVrfn(vrfn *string) *IpamIPAddressesListParams { 1142 o.SetVrfn(vrfn) 1143 return o 1144 } 1145 1146 // SetVrfn adds the vrfN to the ipam ip addresses list params 1147 func (o *IpamIPAddressesListParams) SetVrfn(vrfn *string) { 1148 o.Vrfn = vrfn 1149 } 1150 1151 // WithVrfID adds the vrfID to the ipam ip addresses list params 1152 func (o *IpamIPAddressesListParams) WithVrfID(vrfID *string) *IpamIPAddressesListParams { 1153 o.SetVrfID(vrfID) 1154 return o 1155 } 1156 1157 // SetVrfID adds the vrfId to the ipam ip addresses list params 1158 func (o *IpamIPAddressesListParams) SetVrfID(vrfID *string) { 1159 o.VrfID = vrfID 1160 } 1161 1162 // WithVrfIDn adds the vrfIDn to the ipam ip addresses list params 1163 func (o *IpamIPAddressesListParams) WithVrfIDn(vrfIDn *string) *IpamIPAddressesListParams { 1164 o.SetVrfIDn(vrfIDn) 1165 return o 1166 } 1167 1168 // SetVrfIDn adds the vrfIdN to the ipam ip addresses list params 1169 func (o *IpamIPAddressesListParams) SetVrfIDn(vrfIDn *string) { 1170 o.VrfIDn = vrfIDn 1171 } 1172 1173 // WriteToRequest writes these params to a swagger request 1174 func (o *IpamIPAddressesListParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { 1175 1176 if err := r.SetTimeout(o.timeout); err != nil { 1177 return err 1178 } 1179 var res []error 1180 1181 if o.Address != nil { 1182 1183 // query param address 1184 var qrAddress string 1185 1186 if o.Address != nil { 1187 qrAddress = *o.Address 1188 } 1189 qAddress := qrAddress 1190 if qAddress != "" { 1191 1192 if err := r.SetQueryParam("address", qAddress); err != nil { 1193 return err 1194 } 1195 } 1196 } 1197 1198 if o.AssignedToInterface != nil { 1199 1200 // query param assigned_to_interface 1201 var qrAssignedToInterface string 1202 1203 if o.AssignedToInterface != nil { 1204 qrAssignedToInterface = *o.AssignedToInterface 1205 } 1206 qAssignedToInterface := qrAssignedToInterface 1207 if qAssignedToInterface != "" { 1208 1209 if err := r.SetQueryParam("assigned_to_interface", qAssignedToInterface); err != nil { 1210 return err 1211 } 1212 } 1213 } 1214 1215 if o.Created != nil { 1216 1217 // query param created 1218 var qrCreated string 1219 1220 if o.Created != nil { 1221 qrCreated = *o.Created 1222 } 1223 qCreated := qrCreated 1224 if qCreated != "" { 1225 1226 if err := r.SetQueryParam("created", qCreated); err != nil { 1227 return err 1228 } 1229 } 1230 } 1231 1232 if o.CreatedGte != nil { 1233 1234 // query param created__gte 1235 var qrCreatedGte string 1236 1237 if o.CreatedGte != nil { 1238 qrCreatedGte = *o.CreatedGte 1239 } 1240 qCreatedGte := qrCreatedGte 1241 if qCreatedGte != "" { 1242 1243 if err := r.SetQueryParam("created__gte", qCreatedGte); err != nil { 1244 return err 1245 } 1246 } 1247 } 1248 1249 if o.CreatedLte != nil { 1250 1251 // query param created__lte 1252 var qrCreatedLte string 1253 1254 if o.CreatedLte != nil { 1255 qrCreatedLte = *o.CreatedLte 1256 } 1257 qCreatedLte := qrCreatedLte 1258 if qCreatedLte != "" { 1259 1260 if err := r.SetQueryParam("created__lte", qCreatedLte); err != nil { 1261 return err 1262 } 1263 } 1264 } 1265 1266 if o.Description != nil { 1267 1268 // query param description 1269 var qrDescription string 1270 1271 if o.Description != nil { 1272 qrDescription = *o.Description 1273 } 1274 qDescription := qrDescription 1275 if qDescription != "" { 1276 1277 if err := r.SetQueryParam("description", qDescription); err != nil { 1278 return err 1279 } 1280 } 1281 } 1282 1283 if o.DescriptionEmpty != nil { 1284 1285 // query param description__empty 1286 var qrDescriptionEmpty string 1287 1288 if o.DescriptionEmpty != nil { 1289 qrDescriptionEmpty = *o.DescriptionEmpty 1290 } 1291 qDescriptionEmpty := qrDescriptionEmpty 1292 if qDescriptionEmpty != "" { 1293 1294 if err := r.SetQueryParam("description__empty", qDescriptionEmpty); err != nil { 1295 return err 1296 } 1297 } 1298 } 1299 1300 if o.DescriptionIc != nil { 1301 1302 // query param description__ic 1303 var qrDescriptionIc string 1304 1305 if o.DescriptionIc != nil { 1306 qrDescriptionIc = *o.DescriptionIc 1307 } 1308 qDescriptionIc := qrDescriptionIc 1309 if qDescriptionIc != "" { 1310 1311 if err := r.SetQueryParam("description__ic", qDescriptionIc); err != nil { 1312 return err 1313 } 1314 } 1315 } 1316 1317 if o.DescriptionIe != nil { 1318 1319 // query param description__ie 1320 var qrDescriptionIe string 1321 1322 if o.DescriptionIe != nil { 1323 qrDescriptionIe = *o.DescriptionIe 1324 } 1325 qDescriptionIe := qrDescriptionIe 1326 if qDescriptionIe != "" { 1327 1328 if err := r.SetQueryParam("description__ie", qDescriptionIe); err != nil { 1329 return err 1330 } 1331 } 1332 } 1333 1334 if o.DescriptionIew != nil { 1335 1336 // query param description__iew 1337 var qrDescriptionIew string 1338 1339 if o.DescriptionIew != nil { 1340 qrDescriptionIew = *o.DescriptionIew 1341 } 1342 qDescriptionIew := qrDescriptionIew 1343 if qDescriptionIew != "" { 1344 1345 if err := r.SetQueryParam("description__iew", qDescriptionIew); err != nil { 1346 return err 1347 } 1348 } 1349 } 1350 1351 if o.DescriptionIsw != nil { 1352 1353 // query param description__isw 1354 var qrDescriptionIsw string 1355 1356 if o.DescriptionIsw != nil { 1357 qrDescriptionIsw = *o.DescriptionIsw 1358 } 1359 qDescriptionIsw := qrDescriptionIsw 1360 if qDescriptionIsw != "" { 1361 1362 if err := r.SetQueryParam("description__isw", qDescriptionIsw); err != nil { 1363 return err 1364 } 1365 } 1366 } 1367 1368 if o.Descriptionn != nil { 1369 1370 // query param description__n 1371 var qrDescriptionn string 1372 1373 if o.Descriptionn != nil { 1374 qrDescriptionn = *o.Descriptionn 1375 } 1376 qDescriptionn := qrDescriptionn 1377 if qDescriptionn != "" { 1378 1379 if err := r.SetQueryParam("description__n", qDescriptionn); err != nil { 1380 return err 1381 } 1382 } 1383 } 1384 1385 if o.DescriptionNic != nil { 1386 1387 // query param description__nic 1388 var qrDescriptionNic string 1389 1390 if o.DescriptionNic != nil { 1391 qrDescriptionNic = *o.DescriptionNic 1392 } 1393 qDescriptionNic := qrDescriptionNic 1394 if qDescriptionNic != "" { 1395 1396 if err := r.SetQueryParam("description__nic", qDescriptionNic); err != nil { 1397 return err 1398 } 1399 } 1400 } 1401 1402 if o.DescriptionNie != nil { 1403 1404 // query param description__nie 1405 var qrDescriptionNie string 1406 1407 if o.DescriptionNie != nil { 1408 qrDescriptionNie = *o.DescriptionNie 1409 } 1410 qDescriptionNie := qrDescriptionNie 1411 if qDescriptionNie != "" { 1412 1413 if err := r.SetQueryParam("description__nie", qDescriptionNie); err != nil { 1414 return err 1415 } 1416 } 1417 } 1418 1419 if o.DescriptionNiew != nil { 1420 1421 // query param description__niew 1422 var qrDescriptionNiew string 1423 1424 if o.DescriptionNiew != nil { 1425 qrDescriptionNiew = *o.DescriptionNiew 1426 } 1427 qDescriptionNiew := qrDescriptionNiew 1428 if qDescriptionNiew != "" { 1429 1430 if err := r.SetQueryParam("description__niew", qDescriptionNiew); err != nil { 1431 return err 1432 } 1433 } 1434 } 1435 1436 if o.DescriptionNisw != nil { 1437 1438 // query param description__nisw 1439 var qrDescriptionNisw string 1440 1441 if o.DescriptionNisw != nil { 1442 qrDescriptionNisw = *o.DescriptionNisw 1443 } 1444 qDescriptionNisw := qrDescriptionNisw 1445 if qDescriptionNisw != "" { 1446 1447 if err := r.SetQueryParam("description__nisw", qDescriptionNisw); err != nil { 1448 return err 1449 } 1450 } 1451 } 1452 1453 if o.Device != nil { 1454 1455 // query param device 1456 var qrDevice string 1457 1458 if o.Device != nil { 1459 qrDevice = *o.Device 1460 } 1461 qDevice := qrDevice 1462 if qDevice != "" { 1463 1464 if err := r.SetQueryParam("device", qDevice); err != nil { 1465 return err 1466 } 1467 } 1468 } 1469 1470 if o.DeviceID != nil { 1471 1472 // query param device_id 1473 var qrDeviceID string 1474 1475 if o.DeviceID != nil { 1476 qrDeviceID = *o.DeviceID 1477 } 1478 qDeviceID := qrDeviceID 1479 if qDeviceID != "" { 1480 1481 if err := r.SetQueryParam("device_id", qDeviceID); err != nil { 1482 return err 1483 } 1484 } 1485 } 1486 1487 if o.DNSName != nil { 1488 1489 // query param dns_name 1490 var qrDNSName string 1491 1492 if o.DNSName != nil { 1493 qrDNSName = *o.DNSName 1494 } 1495 qDNSName := qrDNSName 1496 if qDNSName != "" { 1497 1498 if err := r.SetQueryParam("dns_name", qDNSName); err != nil { 1499 return err 1500 } 1501 } 1502 } 1503 1504 if o.DNSNameEmpty != nil { 1505 1506 // query param dns_name__empty 1507 var qrDNSNameEmpty string 1508 1509 if o.DNSNameEmpty != nil { 1510 qrDNSNameEmpty = *o.DNSNameEmpty 1511 } 1512 qDNSNameEmpty := qrDNSNameEmpty 1513 if qDNSNameEmpty != "" { 1514 1515 if err := r.SetQueryParam("dns_name__empty", qDNSNameEmpty); err != nil { 1516 return err 1517 } 1518 } 1519 } 1520 1521 if o.DNSNameIc != nil { 1522 1523 // query param dns_name__ic 1524 var qrDNSNameIc string 1525 1526 if o.DNSNameIc != nil { 1527 qrDNSNameIc = *o.DNSNameIc 1528 } 1529 qDNSNameIc := qrDNSNameIc 1530 if qDNSNameIc != "" { 1531 1532 if err := r.SetQueryParam("dns_name__ic", qDNSNameIc); err != nil { 1533 return err 1534 } 1535 } 1536 } 1537 1538 if o.DNSNameIe != nil { 1539 1540 // query param dns_name__ie 1541 var qrDNSNameIe string 1542 1543 if o.DNSNameIe != nil { 1544 qrDNSNameIe = *o.DNSNameIe 1545 } 1546 qDNSNameIe := qrDNSNameIe 1547 if qDNSNameIe != "" { 1548 1549 if err := r.SetQueryParam("dns_name__ie", qDNSNameIe); err != nil { 1550 return err 1551 } 1552 } 1553 } 1554 1555 if o.DNSNameIew != nil { 1556 1557 // query param dns_name__iew 1558 var qrDNSNameIew string 1559 1560 if o.DNSNameIew != nil { 1561 qrDNSNameIew = *o.DNSNameIew 1562 } 1563 qDNSNameIew := qrDNSNameIew 1564 if qDNSNameIew != "" { 1565 1566 if err := r.SetQueryParam("dns_name__iew", qDNSNameIew); err != nil { 1567 return err 1568 } 1569 } 1570 } 1571 1572 if o.DNSNameIsw != nil { 1573 1574 // query param dns_name__isw 1575 var qrDNSNameIsw string 1576 1577 if o.DNSNameIsw != nil { 1578 qrDNSNameIsw = *o.DNSNameIsw 1579 } 1580 qDNSNameIsw := qrDNSNameIsw 1581 if qDNSNameIsw != "" { 1582 1583 if err := r.SetQueryParam("dns_name__isw", qDNSNameIsw); err != nil { 1584 return err 1585 } 1586 } 1587 } 1588 1589 if o.DNSNamen != nil { 1590 1591 // query param dns_name__n 1592 var qrDNSNamen string 1593 1594 if o.DNSNamen != nil { 1595 qrDNSNamen = *o.DNSNamen 1596 } 1597 qDNSNamen := qrDNSNamen 1598 if qDNSNamen != "" { 1599 1600 if err := r.SetQueryParam("dns_name__n", qDNSNamen); err != nil { 1601 return err 1602 } 1603 } 1604 } 1605 1606 if o.DNSNameNic != nil { 1607 1608 // query param dns_name__nic 1609 var qrDNSNameNic string 1610 1611 if o.DNSNameNic != nil { 1612 qrDNSNameNic = *o.DNSNameNic 1613 } 1614 qDNSNameNic := qrDNSNameNic 1615 if qDNSNameNic != "" { 1616 1617 if err := r.SetQueryParam("dns_name__nic", qDNSNameNic); err != nil { 1618 return err 1619 } 1620 } 1621 } 1622 1623 if o.DNSNameNie != nil { 1624 1625 // query param dns_name__nie 1626 var qrDNSNameNie string 1627 1628 if o.DNSNameNie != nil { 1629 qrDNSNameNie = *o.DNSNameNie 1630 } 1631 qDNSNameNie := qrDNSNameNie 1632 if qDNSNameNie != "" { 1633 1634 if err := r.SetQueryParam("dns_name__nie", qDNSNameNie); err != nil { 1635 return err 1636 } 1637 } 1638 } 1639 1640 if o.DNSNameNiew != nil { 1641 1642 // query param dns_name__niew 1643 var qrDNSNameNiew string 1644 1645 if o.DNSNameNiew != nil { 1646 qrDNSNameNiew = *o.DNSNameNiew 1647 } 1648 qDNSNameNiew := qrDNSNameNiew 1649 if qDNSNameNiew != "" { 1650 1651 if err := r.SetQueryParam("dns_name__niew", qDNSNameNiew); err != nil { 1652 return err 1653 } 1654 } 1655 } 1656 1657 if o.DNSNameNisw != nil { 1658 1659 // query param dns_name__nisw 1660 var qrDNSNameNisw string 1661 1662 if o.DNSNameNisw != nil { 1663 qrDNSNameNisw = *o.DNSNameNisw 1664 } 1665 qDNSNameNisw := qrDNSNameNisw 1666 if qDNSNameNisw != "" { 1667 1668 if err := r.SetQueryParam("dns_name__nisw", qDNSNameNisw); err != nil { 1669 return err 1670 } 1671 } 1672 } 1673 1674 if o.Family != nil { 1675 1676 // query param family 1677 var qrFamily float64 1678 1679 if o.Family != nil { 1680 qrFamily = *o.Family 1681 } 1682 qFamily := swag.FormatFloat64(qrFamily) 1683 if qFamily != "" { 1684 1685 if err := r.SetQueryParam("family", qFamily); err != nil { 1686 return err 1687 } 1688 } 1689 } 1690 1691 if o.ID != nil { 1692 1693 // query param id 1694 var qrID string 1695 1696 if o.ID != nil { 1697 qrID = *o.ID 1698 } 1699 qID := qrID 1700 if qID != "" { 1701 1702 if err := r.SetQueryParam("id", qID); err != nil { 1703 return err 1704 } 1705 } 1706 } 1707 1708 if o.IDGt != nil { 1709 1710 // query param id__gt 1711 var qrIDGt string 1712 1713 if o.IDGt != nil { 1714 qrIDGt = *o.IDGt 1715 } 1716 qIDGt := qrIDGt 1717 if qIDGt != "" { 1718 1719 if err := r.SetQueryParam("id__gt", qIDGt); err != nil { 1720 return err 1721 } 1722 } 1723 } 1724 1725 if o.IDGte != nil { 1726 1727 // query param id__gte 1728 var qrIDGte string 1729 1730 if o.IDGte != nil { 1731 qrIDGte = *o.IDGte 1732 } 1733 qIDGte := qrIDGte 1734 if qIDGte != "" { 1735 1736 if err := r.SetQueryParam("id__gte", qIDGte); err != nil { 1737 return err 1738 } 1739 } 1740 } 1741 1742 if o.IDLt != nil { 1743 1744 // query param id__lt 1745 var qrIDLt string 1746 1747 if o.IDLt != nil { 1748 qrIDLt = *o.IDLt 1749 } 1750 qIDLt := qrIDLt 1751 if qIDLt != "" { 1752 1753 if err := r.SetQueryParam("id__lt", qIDLt); err != nil { 1754 return err 1755 } 1756 } 1757 } 1758 1759 if o.IDLte != nil { 1760 1761 // query param id__lte 1762 var qrIDLte string 1763 1764 if o.IDLte != nil { 1765 qrIDLte = *o.IDLte 1766 } 1767 qIDLte := qrIDLte 1768 if qIDLte != "" { 1769 1770 if err := r.SetQueryParam("id__lte", qIDLte); err != nil { 1771 return err 1772 } 1773 } 1774 } 1775 1776 if o.IDn != nil { 1777 1778 // query param id__n 1779 var qrIDn string 1780 1781 if o.IDn != nil { 1782 qrIDn = *o.IDn 1783 } 1784 qIDn := qrIDn 1785 if qIDn != "" { 1786 1787 if err := r.SetQueryParam("id__n", qIDn); err != nil { 1788 return err 1789 } 1790 } 1791 } 1792 1793 if o.Interface != nil { 1794 1795 // query param interface 1796 var qrInterface string 1797 1798 if o.Interface != nil { 1799 qrInterface = *o.Interface 1800 } 1801 qInterface := qrInterface 1802 if qInterface != "" { 1803 1804 if err := r.SetQueryParam("interface", qInterface); err != nil { 1805 return err 1806 } 1807 } 1808 } 1809 1810 if o.Interfacen != nil { 1811 1812 // query param interface__n 1813 var qrInterfacen string 1814 1815 if o.Interfacen != nil { 1816 qrInterfacen = *o.Interfacen 1817 } 1818 qInterfacen := qrInterfacen 1819 if qInterfacen != "" { 1820 1821 if err := r.SetQueryParam("interface__n", qInterfacen); err != nil { 1822 return err 1823 } 1824 } 1825 } 1826 1827 if o.InterfaceID != nil { 1828 1829 // query param interface_id 1830 var qrInterfaceID string 1831 1832 if o.InterfaceID != nil { 1833 qrInterfaceID = *o.InterfaceID 1834 } 1835 qInterfaceID := qrInterfaceID 1836 if qInterfaceID != "" { 1837 1838 if err := r.SetQueryParam("interface_id", qInterfaceID); err != nil { 1839 return err 1840 } 1841 } 1842 } 1843 1844 if o.InterfaceIDn != nil { 1845 1846 // query param interface_id__n 1847 var qrInterfaceIDn string 1848 1849 if o.InterfaceIDn != nil { 1850 qrInterfaceIDn = *o.InterfaceIDn 1851 } 1852 qInterfaceIDn := qrInterfaceIDn 1853 if qInterfaceIDn != "" { 1854 1855 if err := r.SetQueryParam("interface_id__n", qInterfaceIDn); err != nil { 1856 return err 1857 } 1858 } 1859 } 1860 1861 if o.LastUpdated != nil { 1862 1863 // query param last_updated 1864 var qrLastUpdated string 1865 1866 if o.LastUpdated != nil { 1867 qrLastUpdated = *o.LastUpdated 1868 } 1869 qLastUpdated := qrLastUpdated 1870 if qLastUpdated != "" { 1871 1872 if err := r.SetQueryParam("last_updated", qLastUpdated); err != nil { 1873 return err 1874 } 1875 } 1876 } 1877 1878 if o.LastUpdatedGte != nil { 1879 1880 // query param last_updated__gte 1881 var qrLastUpdatedGte string 1882 1883 if o.LastUpdatedGte != nil { 1884 qrLastUpdatedGte = *o.LastUpdatedGte 1885 } 1886 qLastUpdatedGte := qrLastUpdatedGte 1887 if qLastUpdatedGte != "" { 1888 1889 if err := r.SetQueryParam("last_updated__gte", qLastUpdatedGte); err != nil { 1890 return err 1891 } 1892 } 1893 } 1894 1895 if o.LastUpdatedLte != nil { 1896 1897 // query param last_updated__lte 1898 var qrLastUpdatedLte string 1899 1900 if o.LastUpdatedLte != nil { 1901 qrLastUpdatedLte = *o.LastUpdatedLte 1902 } 1903 qLastUpdatedLte := qrLastUpdatedLte 1904 if qLastUpdatedLte != "" { 1905 1906 if err := r.SetQueryParam("last_updated__lte", qLastUpdatedLte); err != nil { 1907 return err 1908 } 1909 } 1910 } 1911 1912 if o.Limit != nil { 1913 1914 // query param limit 1915 var qrLimit int64 1916 1917 if o.Limit != nil { 1918 qrLimit = *o.Limit 1919 } 1920 qLimit := swag.FormatInt64(qrLimit) 1921 if qLimit != "" { 1922 1923 if err := r.SetQueryParam("limit", qLimit); err != nil { 1924 return err 1925 } 1926 } 1927 } 1928 1929 if o.MaskLength != nil { 1930 1931 // query param mask_length 1932 var qrMaskLength float64 1933 1934 if o.MaskLength != nil { 1935 qrMaskLength = *o.MaskLength 1936 } 1937 qMaskLength := swag.FormatFloat64(qrMaskLength) 1938 if qMaskLength != "" { 1939 1940 if err := r.SetQueryParam("mask_length", qMaskLength); err != nil { 1941 return err 1942 } 1943 } 1944 } 1945 1946 if o.Offset != nil { 1947 1948 // query param offset 1949 var qrOffset int64 1950 1951 if o.Offset != nil { 1952 qrOffset = *o.Offset 1953 } 1954 qOffset := swag.FormatInt64(qrOffset) 1955 if qOffset != "" { 1956 1957 if err := r.SetQueryParam("offset", qOffset); err != nil { 1958 return err 1959 } 1960 } 1961 } 1962 1963 if o.Parent != nil { 1964 1965 // query param parent 1966 var qrParent string 1967 1968 if o.Parent != nil { 1969 qrParent = *o.Parent 1970 } 1971 qParent := qrParent 1972 if qParent != "" { 1973 1974 if err := r.SetQueryParam("parent", qParent); err != nil { 1975 return err 1976 } 1977 } 1978 } 1979 1980 if o.PresentInVrf != nil { 1981 1982 // query param present_in_vrf 1983 var qrPresentInVrf string 1984 1985 if o.PresentInVrf != nil { 1986 qrPresentInVrf = *o.PresentInVrf 1987 } 1988 qPresentInVrf := qrPresentInVrf 1989 if qPresentInVrf != "" { 1990 1991 if err := r.SetQueryParam("present_in_vrf", qPresentInVrf); err != nil { 1992 return err 1993 } 1994 } 1995 } 1996 1997 if o.PresentInVrfID != nil { 1998 1999 // query param present_in_vrf_id 2000 var qrPresentInVrfID string 2001 2002 if o.PresentInVrfID != nil { 2003 qrPresentInVrfID = *o.PresentInVrfID 2004 } 2005 qPresentInVrfID := qrPresentInVrfID 2006 if qPresentInVrfID != "" { 2007 2008 if err := r.SetQueryParam("present_in_vrf_id", qPresentInVrfID); err != nil { 2009 return err 2010 } 2011 } 2012 } 2013 2014 if o.Q != nil { 2015 2016 // query param q 2017 var qrQ string 2018 2019 if o.Q != nil { 2020 qrQ = *o.Q 2021 } 2022 qQ := qrQ 2023 if qQ != "" { 2024 2025 if err := r.SetQueryParam("q", qQ); err != nil { 2026 return err 2027 } 2028 } 2029 } 2030 2031 if o.Role != nil { 2032 2033 // query param role 2034 var qrRole string 2035 2036 if o.Role != nil { 2037 qrRole = *o.Role 2038 } 2039 qRole := qrRole 2040 if qRole != "" { 2041 2042 if err := r.SetQueryParam("role", qRole); err != nil { 2043 return err 2044 } 2045 } 2046 } 2047 2048 if o.Rolen != nil { 2049 2050 // query param role__n 2051 var qrRolen string 2052 2053 if o.Rolen != nil { 2054 qrRolen = *o.Rolen 2055 } 2056 qRolen := qrRolen 2057 if qRolen != "" { 2058 2059 if err := r.SetQueryParam("role__n", qRolen); err != nil { 2060 return err 2061 } 2062 } 2063 } 2064 2065 if o.Status != nil { 2066 2067 // query param status 2068 var qrStatus string 2069 2070 if o.Status != nil { 2071 qrStatus = *o.Status 2072 } 2073 qStatus := qrStatus 2074 if qStatus != "" { 2075 2076 if err := r.SetQueryParam("status", qStatus); err != nil { 2077 return err 2078 } 2079 } 2080 } 2081 2082 if o.Statusn != nil { 2083 2084 // query param status__n 2085 var qrStatusn string 2086 2087 if o.Statusn != nil { 2088 qrStatusn = *o.Statusn 2089 } 2090 qStatusn := qrStatusn 2091 if qStatusn != "" { 2092 2093 if err := r.SetQueryParam("status__n", qStatusn); err != nil { 2094 return err 2095 } 2096 } 2097 } 2098 2099 if o.Tag != nil { 2100 2101 // query param tag 2102 var qrTag string 2103 2104 if o.Tag != nil { 2105 qrTag = *o.Tag 2106 } 2107 qTag := qrTag 2108 if qTag != "" { 2109 2110 if err := r.SetQueryParam("tag", qTag); err != nil { 2111 return err 2112 } 2113 } 2114 } 2115 2116 if o.Tagn != nil { 2117 2118 // query param tag__n 2119 var qrTagn string 2120 2121 if o.Tagn != nil { 2122 qrTagn = *o.Tagn 2123 } 2124 qTagn := qrTagn 2125 if qTagn != "" { 2126 2127 if err := r.SetQueryParam("tag__n", qTagn); err != nil { 2128 return err 2129 } 2130 } 2131 } 2132 2133 if o.Tenant != nil { 2134 2135 // query param tenant 2136 var qrTenant string 2137 2138 if o.Tenant != nil { 2139 qrTenant = *o.Tenant 2140 } 2141 qTenant := qrTenant 2142 if qTenant != "" { 2143 2144 if err := r.SetQueryParam("tenant", qTenant); err != nil { 2145 return err 2146 } 2147 } 2148 } 2149 2150 if o.Tenantn != nil { 2151 2152 // query param tenant__n 2153 var qrTenantn string 2154 2155 if o.Tenantn != nil { 2156 qrTenantn = *o.Tenantn 2157 } 2158 qTenantn := qrTenantn 2159 if qTenantn != "" { 2160 2161 if err := r.SetQueryParam("tenant__n", qTenantn); err != nil { 2162 return err 2163 } 2164 } 2165 } 2166 2167 if o.TenantGroup != nil { 2168 2169 // query param tenant_group 2170 var qrTenantGroup string 2171 2172 if o.TenantGroup != nil { 2173 qrTenantGroup = *o.TenantGroup 2174 } 2175 qTenantGroup := qrTenantGroup 2176 if qTenantGroup != "" { 2177 2178 if err := r.SetQueryParam("tenant_group", qTenantGroup); err != nil { 2179 return err 2180 } 2181 } 2182 } 2183 2184 if o.TenantGroupn != nil { 2185 2186 // query param tenant_group__n 2187 var qrTenantGroupn string 2188 2189 if o.TenantGroupn != nil { 2190 qrTenantGroupn = *o.TenantGroupn 2191 } 2192 qTenantGroupn := qrTenantGroupn 2193 if qTenantGroupn != "" { 2194 2195 if err := r.SetQueryParam("tenant_group__n", qTenantGroupn); err != nil { 2196 return err 2197 } 2198 } 2199 } 2200 2201 if o.TenantGroupID != nil { 2202 2203 // query param tenant_group_id 2204 var qrTenantGroupID string 2205 2206 if o.TenantGroupID != nil { 2207 qrTenantGroupID = *o.TenantGroupID 2208 } 2209 qTenantGroupID := qrTenantGroupID 2210 if qTenantGroupID != "" { 2211 2212 if err := r.SetQueryParam("tenant_group_id", qTenantGroupID); err != nil { 2213 return err 2214 } 2215 } 2216 } 2217 2218 if o.TenantGroupIDn != nil { 2219 2220 // query param tenant_group_id__n 2221 var qrTenantGroupIDn string 2222 2223 if o.TenantGroupIDn != nil { 2224 qrTenantGroupIDn = *o.TenantGroupIDn 2225 } 2226 qTenantGroupIDn := qrTenantGroupIDn 2227 if qTenantGroupIDn != "" { 2228 2229 if err := r.SetQueryParam("tenant_group_id__n", qTenantGroupIDn); err != nil { 2230 return err 2231 } 2232 } 2233 } 2234 2235 if o.TenantID != nil { 2236 2237 // query param tenant_id 2238 var qrTenantID string 2239 2240 if o.TenantID != nil { 2241 qrTenantID = *o.TenantID 2242 } 2243 qTenantID := qrTenantID 2244 if qTenantID != "" { 2245 2246 if err := r.SetQueryParam("tenant_id", qTenantID); err != nil { 2247 return err 2248 } 2249 } 2250 } 2251 2252 if o.TenantIDn != nil { 2253 2254 // query param tenant_id__n 2255 var qrTenantIDn string 2256 2257 if o.TenantIDn != nil { 2258 qrTenantIDn = *o.TenantIDn 2259 } 2260 qTenantIDn := qrTenantIDn 2261 if qTenantIDn != "" { 2262 2263 if err := r.SetQueryParam("tenant_id__n", qTenantIDn); err != nil { 2264 return err 2265 } 2266 } 2267 } 2268 2269 if o.VirtualMachine != nil { 2270 2271 // query param virtual_machine 2272 var qrVirtualMachine string 2273 2274 if o.VirtualMachine != nil { 2275 qrVirtualMachine = *o.VirtualMachine 2276 } 2277 qVirtualMachine := qrVirtualMachine 2278 if qVirtualMachine != "" { 2279 2280 if err := r.SetQueryParam("virtual_machine", qVirtualMachine); err != nil { 2281 return err 2282 } 2283 } 2284 } 2285 2286 if o.VirtualMachineID != nil { 2287 2288 // query param virtual_machine_id 2289 var qrVirtualMachineID string 2290 2291 if o.VirtualMachineID != nil { 2292 qrVirtualMachineID = *o.VirtualMachineID 2293 } 2294 qVirtualMachineID := qrVirtualMachineID 2295 if qVirtualMachineID != "" { 2296 2297 if err := r.SetQueryParam("virtual_machine_id", qVirtualMachineID); err != nil { 2298 return err 2299 } 2300 } 2301 } 2302 2303 if o.Vminterface != nil { 2304 2305 // query param vminterface 2306 var qrVminterface string 2307 2308 if o.Vminterface != nil { 2309 qrVminterface = *o.Vminterface 2310 } 2311 qVminterface := qrVminterface 2312 if qVminterface != "" { 2313 2314 if err := r.SetQueryParam("vminterface", qVminterface); err != nil { 2315 return err 2316 } 2317 } 2318 } 2319 2320 if o.Vminterfacen != nil { 2321 2322 // query param vminterface__n 2323 var qrVminterfacen string 2324 2325 if o.Vminterfacen != nil { 2326 qrVminterfacen = *o.Vminterfacen 2327 } 2328 qVminterfacen := qrVminterfacen 2329 if qVminterfacen != "" { 2330 2331 if err := r.SetQueryParam("vminterface__n", qVminterfacen); err != nil { 2332 return err 2333 } 2334 } 2335 } 2336 2337 if o.VminterfaceID != nil { 2338 2339 // query param vminterface_id 2340 var qrVminterfaceID string 2341 2342 if o.VminterfaceID != nil { 2343 qrVminterfaceID = *o.VminterfaceID 2344 } 2345 qVminterfaceID := qrVminterfaceID 2346 if qVminterfaceID != "" { 2347 2348 if err := r.SetQueryParam("vminterface_id", qVminterfaceID); err != nil { 2349 return err 2350 } 2351 } 2352 } 2353 2354 if o.VminterfaceIDn != nil { 2355 2356 // query param vminterface_id__n 2357 var qrVminterfaceIDn string 2358 2359 if o.VminterfaceIDn != nil { 2360 qrVminterfaceIDn = *o.VminterfaceIDn 2361 } 2362 qVminterfaceIDn := qrVminterfaceIDn 2363 if qVminterfaceIDn != "" { 2364 2365 if err := r.SetQueryParam("vminterface_id__n", qVminterfaceIDn); err != nil { 2366 return err 2367 } 2368 } 2369 } 2370 2371 if o.Vrf != nil { 2372 2373 // query param vrf 2374 var qrVrf string 2375 2376 if o.Vrf != nil { 2377 qrVrf = *o.Vrf 2378 } 2379 qVrf := qrVrf 2380 if qVrf != "" { 2381 2382 if err := r.SetQueryParam("vrf", qVrf); err != nil { 2383 return err 2384 } 2385 } 2386 } 2387 2388 if o.Vrfn != nil { 2389 2390 // query param vrf__n 2391 var qrVrfn string 2392 2393 if o.Vrfn != nil { 2394 qrVrfn = *o.Vrfn 2395 } 2396 qVrfn := qrVrfn 2397 if qVrfn != "" { 2398 2399 if err := r.SetQueryParam("vrf__n", qVrfn); err != nil { 2400 return err 2401 } 2402 } 2403 } 2404 2405 if o.VrfID != nil { 2406 2407 // query param vrf_id 2408 var qrVrfID string 2409 2410 if o.VrfID != nil { 2411 qrVrfID = *o.VrfID 2412 } 2413 qVrfID := qrVrfID 2414 if qVrfID != "" { 2415 2416 if err := r.SetQueryParam("vrf_id", qVrfID); err != nil { 2417 return err 2418 } 2419 } 2420 } 2421 2422 if o.VrfIDn != nil { 2423 2424 // query param vrf_id__n 2425 var qrVrfIDn string 2426 2427 if o.VrfIDn != nil { 2428 qrVrfIDn = *o.VrfIDn 2429 } 2430 qVrfIDn := qrVrfIDn 2431 if qVrfIDn != "" { 2432 2433 if err := r.SetQueryParam("vrf_id__n", qVrfIDn); err != nil { 2434 return err 2435 } 2436 } 2437 } 2438 2439 if len(res) > 0 { 2440 return errors.CompositeValidationError(res...) 2441 } 2442 return nil 2443 }