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