github.com/digitalocean/go-netbox@v0.0.2/netbox/client/dcim/dcim_racks_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 dcim 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 // NewDcimRacksListParams creates a new DcimRacksListParams 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 NewDcimRacksListParams() *DcimRacksListParams { 42 return &DcimRacksListParams{ 43 timeout: cr.DefaultTimeout, 44 } 45 } 46 47 // NewDcimRacksListParamsWithTimeout creates a new DcimRacksListParams object 48 // with the ability to set a timeout on a request. 49 func NewDcimRacksListParamsWithTimeout(timeout time.Duration) *DcimRacksListParams { 50 return &DcimRacksListParams{ 51 timeout: timeout, 52 } 53 } 54 55 // NewDcimRacksListParamsWithContext creates a new DcimRacksListParams object 56 // with the ability to set a context for a request. 57 func NewDcimRacksListParamsWithContext(ctx context.Context) *DcimRacksListParams { 58 return &DcimRacksListParams{ 59 Context: ctx, 60 } 61 } 62 63 // NewDcimRacksListParamsWithHTTPClient creates a new DcimRacksListParams object 64 // with the ability to set a custom HTTPClient for a request. 65 func NewDcimRacksListParamsWithHTTPClient(client *http.Client) *DcimRacksListParams { 66 return &DcimRacksListParams{ 67 HTTPClient: client, 68 } 69 } 70 71 /* DcimRacksListParams contains all the parameters to send to the API endpoint 72 for the dcim racks list operation. 73 74 Typically these are written to a http.Request. 75 */ 76 type DcimRacksListParams struct { 77 78 // AssetTag. 79 AssetTag *string 80 81 // AssetTagEmpty. 82 AssetTagEmpty *string 83 84 // AssetTagIc. 85 AssetTagIc *string 86 87 // AssetTagIe. 88 AssetTagIe *string 89 90 // AssetTagIew. 91 AssetTagIew *string 92 93 // AssetTagIsw. 94 AssetTagIsw *string 95 96 // AssetTagn. 97 AssetTagn *string 98 99 // AssetTagNic. 100 AssetTagNic *string 101 102 // AssetTagNie. 103 AssetTagNie *string 104 105 // AssetTagNiew. 106 AssetTagNiew *string 107 108 // AssetTagNisw. 109 AssetTagNisw *string 110 111 // Created. 112 Created *string 113 114 // CreatedGte. 115 CreatedGte *string 116 117 // CreatedLte. 118 CreatedLte *string 119 120 // DescUnits. 121 DescUnits *string 122 123 // FacilityID. 124 FacilityID *string 125 126 // FacilityIDEmpty. 127 FacilityIDEmpty *string 128 129 // FacilityIDIc. 130 FacilityIDIc *string 131 132 // FacilityIDIe. 133 FacilityIDIe *string 134 135 // FacilityIDIew. 136 FacilityIDIew *string 137 138 // FacilityIDIsw. 139 FacilityIDIsw *string 140 141 // FacilityIDn. 142 FacilityIDn *string 143 144 // FacilityIDNic. 145 FacilityIDNic *string 146 147 // FacilityIDNie. 148 FacilityIDNie *string 149 150 // FacilityIDNiew. 151 FacilityIDNiew *string 152 153 // FacilityIDNisw. 154 FacilityIDNisw *string 155 156 // ID. 157 ID *string 158 159 // IDGt. 160 IDGt *string 161 162 // IDGte. 163 IDGte *string 164 165 // IDLt. 166 IDLt *string 167 168 // IDLte. 169 IDLte *string 170 171 // IDn. 172 IDn *string 173 174 // LastUpdated. 175 LastUpdated *string 176 177 // LastUpdatedGte. 178 LastUpdatedGte *string 179 180 // LastUpdatedLte. 181 LastUpdatedLte *string 182 183 /* Limit. 184 185 Number of results to return per page. 186 */ 187 Limit *int64 188 189 // Location. 190 Location *string 191 192 // Locationn. 193 Locationn *string 194 195 // LocationID. 196 LocationID *string 197 198 // LocationIDn. 199 LocationIDn *string 200 201 // Name. 202 Name *string 203 204 // NameEmpty. 205 NameEmpty *string 206 207 // NameIc. 208 NameIc *string 209 210 // NameIe. 211 NameIe *string 212 213 // NameIew. 214 NameIew *string 215 216 // NameIsw. 217 NameIsw *string 218 219 // Namen. 220 Namen *string 221 222 // NameNic. 223 NameNic *string 224 225 // NameNie. 226 NameNie *string 227 228 // NameNiew. 229 NameNiew *string 230 231 // NameNisw. 232 NameNisw *string 233 234 /* Offset. 235 236 The initial index from which to return the results. 237 */ 238 Offset *int64 239 240 // OuterDepth. 241 OuterDepth *string 242 243 // OuterDepthGt. 244 OuterDepthGt *string 245 246 // OuterDepthGte. 247 OuterDepthGte *string 248 249 // OuterDepthLt. 250 OuterDepthLt *string 251 252 // OuterDepthLte. 253 OuterDepthLte *string 254 255 // OuterDepthn. 256 OuterDepthn *string 257 258 // OuterUnit. 259 OuterUnit *string 260 261 // OuterUnitn. 262 OuterUnitn *string 263 264 // OuterWidth. 265 OuterWidth *string 266 267 // OuterWidthGt. 268 OuterWidthGt *string 269 270 // OuterWidthGte. 271 OuterWidthGte *string 272 273 // OuterWidthLt. 274 OuterWidthLt *string 275 276 // OuterWidthLte. 277 OuterWidthLte *string 278 279 // OuterWidthn. 280 OuterWidthn *string 281 282 // Q. 283 Q *string 284 285 // Region. 286 Region *string 287 288 // Regionn. 289 Regionn *string 290 291 // RegionID. 292 RegionID *string 293 294 // RegionIDn. 295 RegionIDn *string 296 297 // Role. 298 Role *string 299 300 // Rolen. 301 Rolen *string 302 303 // RoleID. 304 RoleID *string 305 306 // RoleIDn. 307 RoleIDn *string 308 309 // Serial. 310 Serial *string 311 312 // Site. 313 Site *string 314 315 // Siten. 316 Siten *string 317 318 // SiteGroup. 319 SiteGroup *string 320 321 // SiteGroupn. 322 SiteGroupn *string 323 324 // SiteGroupID. 325 SiteGroupID *string 326 327 // SiteGroupIDn. 328 SiteGroupIDn *string 329 330 // SiteID. 331 SiteID *string 332 333 // SiteIDn. 334 SiteIDn *string 335 336 // Status. 337 Status *string 338 339 // Statusn. 340 Statusn *string 341 342 // Tag. 343 Tag *string 344 345 // Tagn. 346 Tagn *string 347 348 // Tenant. 349 Tenant *string 350 351 // Tenantn. 352 Tenantn *string 353 354 // TenantGroup. 355 TenantGroup *string 356 357 // TenantGroupn. 358 TenantGroupn *string 359 360 // TenantGroupID. 361 TenantGroupID *string 362 363 // TenantGroupIDn. 364 TenantGroupIDn *string 365 366 // TenantID. 367 TenantID *string 368 369 // TenantIDn. 370 TenantIDn *string 371 372 // Type. 373 Type *string 374 375 // Typen. 376 Typen *string 377 378 // UHeight. 379 UHeight *string 380 381 // UHeightGt. 382 UHeightGt *string 383 384 // UHeightGte. 385 UHeightGte *string 386 387 // UHeightLt. 388 UHeightLt *string 389 390 // UHeightLte. 391 UHeightLte *string 392 393 // UHeightn. 394 UHeightn *string 395 396 // Width. 397 Width *string 398 399 // Widthn. 400 Widthn *string 401 402 timeout time.Duration 403 Context context.Context 404 HTTPClient *http.Client 405 } 406 407 // WithDefaults hydrates default values in the dcim racks list params (not the query body). 408 // 409 // All values with no default are reset to their zero value. 410 func (o *DcimRacksListParams) WithDefaults() *DcimRacksListParams { 411 o.SetDefaults() 412 return o 413 } 414 415 // SetDefaults hydrates default values in the dcim racks list params (not the query body). 416 // 417 // All values with no default are reset to their zero value. 418 func (o *DcimRacksListParams) SetDefaults() { 419 // no default values defined for this parameter 420 } 421 422 // WithTimeout adds the timeout to the dcim racks list params 423 func (o *DcimRacksListParams) WithTimeout(timeout time.Duration) *DcimRacksListParams { 424 o.SetTimeout(timeout) 425 return o 426 } 427 428 // SetTimeout adds the timeout to the dcim racks list params 429 func (o *DcimRacksListParams) SetTimeout(timeout time.Duration) { 430 o.timeout = timeout 431 } 432 433 // WithContext adds the context to the dcim racks list params 434 func (o *DcimRacksListParams) WithContext(ctx context.Context) *DcimRacksListParams { 435 o.SetContext(ctx) 436 return o 437 } 438 439 // SetContext adds the context to the dcim racks list params 440 func (o *DcimRacksListParams) SetContext(ctx context.Context) { 441 o.Context = ctx 442 } 443 444 // WithHTTPClient adds the HTTPClient to the dcim racks list params 445 func (o *DcimRacksListParams) WithHTTPClient(client *http.Client) *DcimRacksListParams { 446 o.SetHTTPClient(client) 447 return o 448 } 449 450 // SetHTTPClient adds the HTTPClient to the dcim racks list params 451 func (o *DcimRacksListParams) SetHTTPClient(client *http.Client) { 452 o.HTTPClient = client 453 } 454 455 // WithAssetTag adds the assetTag to the dcim racks list params 456 func (o *DcimRacksListParams) WithAssetTag(assetTag *string) *DcimRacksListParams { 457 o.SetAssetTag(assetTag) 458 return o 459 } 460 461 // SetAssetTag adds the assetTag to the dcim racks list params 462 func (o *DcimRacksListParams) SetAssetTag(assetTag *string) { 463 o.AssetTag = assetTag 464 } 465 466 // WithAssetTagEmpty adds the assetTagEmpty to the dcim racks list params 467 func (o *DcimRacksListParams) WithAssetTagEmpty(assetTagEmpty *string) *DcimRacksListParams { 468 o.SetAssetTagEmpty(assetTagEmpty) 469 return o 470 } 471 472 // SetAssetTagEmpty adds the assetTagEmpty to the dcim racks list params 473 func (o *DcimRacksListParams) SetAssetTagEmpty(assetTagEmpty *string) { 474 o.AssetTagEmpty = assetTagEmpty 475 } 476 477 // WithAssetTagIc adds the assetTagIc to the dcim racks list params 478 func (o *DcimRacksListParams) WithAssetTagIc(assetTagIc *string) *DcimRacksListParams { 479 o.SetAssetTagIc(assetTagIc) 480 return o 481 } 482 483 // SetAssetTagIc adds the assetTagIc to the dcim racks list params 484 func (o *DcimRacksListParams) SetAssetTagIc(assetTagIc *string) { 485 o.AssetTagIc = assetTagIc 486 } 487 488 // WithAssetTagIe adds the assetTagIe to the dcim racks list params 489 func (o *DcimRacksListParams) WithAssetTagIe(assetTagIe *string) *DcimRacksListParams { 490 o.SetAssetTagIe(assetTagIe) 491 return o 492 } 493 494 // SetAssetTagIe adds the assetTagIe to the dcim racks list params 495 func (o *DcimRacksListParams) SetAssetTagIe(assetTagIe *string) { 496 o.AssetTagIe = assetTagIe 497 } 498 499 // WithAssetTagIew adds the assetTagIew to the dcim racks list params 500 func (o *DcimRacksListParams) WithAssetTagIew(assetTagIew *string) *DcimRacksListParams { 501 o.SetAssetTagIew(assetTagIew) 502 return o 503 } 504 505 // SetAssetTagIew adds the assetTagIew to the dcim racks list params 506 func (o *DcimRacksListParams) SetAssetTagIew(assetTagIew *string) { 507 o.AssetTagIew = assetTagIew 508 } 509 510 // WithAssetTagIsw adds the assetTagIsw to the dcim racks list params 511 func (o *DcimRacksListParams) WithAssetTagIsw(assetTagIsw *string) *DcimRacksListParams { 512 o.SetAssetTagIsw(assetTagIsw) 513 return o 514 } 515 516 // SetAssetTagIsw adds the assetTagIsw to the dcim racks list params 517 func (o *DcimRacksListParams) SetAssetTagIsw(assetTagIsw *string) { 518 o.AssetTagIsw = assetTagIsw 519 } 520 521 // WithAssetTagn adds the assetTagn to the dcim racks list params 522 func (o *DcimRacksListParams) WithAssetTagn(assetTagn *string) *DcimRacksListParams { 523 o.SetAssetTagn(assetTagn) 524 return o 525 } 526 527 // SetAssetTagn adds the assetTagN to the dcim racks list params 528 func (o *DcimRacksListParams) SetAssetTagn(assetTagn *string) { 529 o.AssetTagn = assetTagn 530 } 531 532 // WithAssetTagNic adds the assetTagNic to the dcim racks list params 533 func (o *DcimRacksListParams) WithAssetTagNic(assetTagNic *string) *DcimRacksListParams { 534 o.SetAssetTagNic(assetTagNic) 535 return o 536 } 537 538 // SetAssetTagNic adds the assetTagNic to the dcim racks list params 539 func (o *DcimRacksListParams) SetAssetTagNic(assetTagNic *string) { 540 o.AssetTagNic = assetTagNic 541 } 542 543 // WithAssetTagNie adds the assetTagNie to the dcim racks list params 544 func (o *DcimRacksListParams) WithAssetTagNie(assetTagNie *string) *DcimRacksListParams { 545 o.SetAssetTagNie(assetTagNie) 546 return o 547 } 548 549 // SetAssetTagNie adds the assetTagNie to the dcim racks list params 550 func (o *DcimRacksListParams) SetAssetTagNie(assetTagNie *string) { 551 o.AssetTagNie = assetTagNie 552 } 553 554 // WithAssetTagNiew adds the assetTagNiew to the dcim racks list params 555 func (o *DcimRacksListParams) WithAssetTagNiew(assetTagNiew *string) *DcimRacksListParams { 556 o.SetAssetTagNiew(assetTagNiew) 557 return o 558 } 559 560 // SetAssetTagNiew adds the assetTagNiew to the dcim racks list params 561 func (o *DcimRacksListParams) SetAssetTagNiew(assetTagNiew *string) { 562 o.AssetTagNiew = assetTagNiew 563 } 564 565 // WithAssetTagNisw adds the assetTagNisw to the dcim racks list params 566 func (o *DcimRacksListParams) WithAssetTagNisw(assetTagNisw *string) *DcimRacksListParams { 567 o.SetAssetTagNisw(assetTagNisw) 568 return o 569 } 570 571 // SetAssetTagNisw adds the assetTagNisw to the dcim racks list params 572 func (o *DcimRacksListParams) SetAssetTagNisw(assetTagNisw *string) { 573 o.AssetTagNisw = assetTagNisw 574 } 575 576 // WithCreated adds the created to the dcim racks list params 577 func (o *DcimRacksListParams) WithCreated(created *string) *DcimRacksListParams { 578 o.SetCreated(created) 579 return o 580 } 581 582 // SetCreated adds the created to the dcim racks list params 583 func (o *DcimRacksListParams) SetCreated(created *string) { 584 o.Created = created 585 } 586 587 // WithCreatedGte adds the createdGte to the dcim racks list params 588 func (o *DcimRacksListParams) WithCreatedGte(createdGte *string) *DcimRacksListParams { 589 o.SetCreatedGte(createdGte) 590 return o 591 } 592 593 // SetCreatedGte adds the createdGte to the dcim racks list params 594 func (o *DcimRacksListParams) SetCreatedGte(createdGte *string) { 595 o.CreatedGte = createdGte 596 } 597 598 // WithCreatedLte adds the createdLte to the dcim racks list params 599 func (o *DcimRacksListParams) WithCreatedLte(createdLte *string) *DcimRacksListParams { 600 o.SetCreatedLte(createdLte) 601 return o 602 } 603 604 // SetCreatedLte adds the createdLte to the dcim racks list params 605 func (o *DcimRacksListParams) SetCreatedLte(createdLte *string) { 606 o.CreatedLte = createdLte 607 } 608 609 // WithDescUnits adds the descUnits to the dcim racks list params 610 func (o *DcimRacksListParams) WithDescUnits(descUnits *string) *DcimRacksListParams { 611 o.SetDescUnits(descUnits) 612 return o 613 } 614 615 // SetDescUnits adds the descUnits to the dcim racks list params 616 func (o *DcimRacksListParams) SetDescUnits(descUnits *string) { 617 o.DescUnits = descUnits 618 } 619 620 // WithFacilityID adds the facilityID to the dcim racks list params 621 func (o *DcimRacksListParams) WithFacilityID(facilityID *string) *DcimRacksListParams { 622 o.SetFacilityID(facilityID) 623 return o 624 } 625 626 // SetFacilityID adds the facilityId to the dcim racks list params 627 func (o *DcimRacksListParams) SetFacilityID(facilityID *string) { 628 o.FacilityID = facilityID 629 } 630 631 // WithFacilityIDEmpty adds the facilityIDEmpty to the dcim racks list params 632 func (o *DcimRacksListParams) WithFacilityIDEmpty(facilityIDEmpty *string) *DcimRacksListParams { 633 o.SetFacilityIDEmpty(facilityIDEmpty) 634 return o 635 } 636 637 // SetFacilityIDEmpty adds the facilityIdEmpty to the dcim racks list params 638 func (o *DcimRacksListParams) SetFacilityIDEmpty(facilityIDEmpty *string) { 639 o.FacilityIDEmpty = facilityIDEmpty 640 } 641 642 // WithFacilityIDIc adds the facilityIDIc to the dcim racks list params 643 func (o *DcimRacksListParams) WithFacilityIDIc(facilityIDIc *string) *DcimRacksListParams { 644 o.SetFacilityIDIc(facilityIDIc) 645 return o 646 } 647 648 // SetFacilityIDIc adds the facilityIdIc to the dcim racks list params 649 func (o *DcimRacksListParams) SetFacilityIDIc(facilityIDIc *string) { 650 o.FacilityIDIc = facilityIDIc 651 } 652 653 // WithFacilityIDIe adds the facilityIDIe to the dcim racks list params 654 func (o *DcimRacksListParams) WithFacilityIDIe(facilityIDIe *string) *DcimRacksListParams { 655 o.SetFacilityIDIe(facilityIDIe) 656 return o 657 } 658 659 // SetFacilityIDIe adds the facilityIdIe to the dcim racks list params 660 func (o *DcimRacksListParams) SetFacilityIDIe(facilityIDIe *string) { 661 o.FacilityIDIe = facilityIDIe 662 } 663 664 // WithFacilityIDIew adds the facilityIDIew to the dcim racks list params 665 func (o *DcimRacksListParams) WithFacilityIDIew(facilityIDIew *string) *DcimRacksListParams { 666 o.SetFacilityIDIew(facilityIDIew) 667 return o 668 } 669 670 // SetFacilityIDIew adds the facilityIdIew to the dcim racks list params 671 func (o *DcimRacksListParams) SetFacilityIDIew(facilityIDIew *string) { 672 o.FacilityIDIew = facilityIDIew 673 } 674 675 // WithFacilityIDIsw adds the facilityIDIsw to the dcim racks list params 676 func (o *DcimRacksListParams) WithFacilityIDIsw(facilityIDIsw *string) *DcimRacksListParams { 677 o.SetFacilityIDIsw(facilityIDIsw) 678 return o 679 } 680 681 // SetFacilityIDIsw adds the facilityIdIsw to the dcim racks list params 682 func (o *DcimRacksListParams) SetFacilityIDIsw(facilityIDIsw *string) { 683 o.FacilityIDIsw = facilityIDIsw 684 } 685 686 // WithFacilityIDn adds the facilityIDn to the dcim racks list params 687 func (o *DcimRacksListParams) WithFacilityIDn(facilityIDn *string) *DcimRacksListParams { 688 o.SetFacilityIDn(facilityIDn) 689 return o 690 } 691 692 // SetFacilityIDn adds the facilityIdN to the dcim racks list params 693 func (o *DcimRacksListParams) SetFacilityIDn(facilityIDn *string) { 694 o.FacilityIDn = facilityIDn 695 } 696 697 // WithFacilityIDNic adds the facilityIDNic to the dcim racks list params 698 func (o *DcimRacksListParams) WithFacilityIDNic(facilityIDNic *string) *DcimRacksListParams { 699 o.SetFacilityIDNic(facilityIDNic) 700 return o 701 } 702 703 // SetFacilityIDNic adds the facilityIdNic to the dcim racks list params 704 func (o *DcimRacksListParams) SetFacilityIDNic(facilityIDNic *string) { 705 o.FacilityIDNic = facilityIDNic 706 } 707 708 // WithFacilityIDNie adds the facilityIDNie to the dcim racks list params 709 func (o *DcimRacksListParams) WithFacilityIDNie(facilityIDNie *string) *DcimRacksListParams { 710 o.SetFacilityIDNie(facilityIDNie) 711 return o 712 } 713 714 // SetFacilityIDNie adds the facilityIdNie to the dcim racks list params 715 func (o *DcimRacksListParams) SetFacilityIDNie(facilityIDNie *string) { 716 o.FacilityIDNie = facilityIDNie 717 } 718 719 // WithFacilityIDNiew adds the facilityIDNiew to the dcim racks list params 720 func (o *DcimRacksListParams) WithFacilityIDNiew(facilityIDNiew *string) *DcimRacksListParams { 721 o.SetFacilityIDNiew(facilityIDNiew) 722 return o 723 } 724 725 // SetFacilityIDNiew adds the facilityIdNiew to the dcim racks list params 726 func (o *DcimRacksListParams) SetFacilityIDNiew(facilityIDNiew *string) { 727 o.FacilityIDNiew = facilityIDNiew 728 } 729 730 // WithFacilityIDNisw adds the facilityIDNisw to the dcim racks list params 731 func (o *DcimRacksListParams) WithFacilityIDNisw(facilityIDNisw *string) *DcimRacksListParams { 732 o.SetFacilityIDNisw(facilityIDNisw) 733 return o 734 } 735 736 // SetFacilityIDNisw adds the facilityIdNisw to the dcim racks list params 737 func (o *DcimRacksListParams) SetFacilityIDNisw(facilityIDNisw *string) { 738 o.FacilityIDNisw = facilityIDNisw 739 } 740 741 // WithID adds the id to the dcim racks list params 742 func (o *DcimRacksListParams) WithID(id *string) *DcimRacksListParams { 743 o.SetID(id) 744 return o 745 } 746 747 // SetID adds the id to the dcim racks list params 748 func (o *DcimRacksListParams) SetID(id *string) { 749 o.ID = id 750 } 751 752 // WithIDGt adds the iDGt to the dcim racks list params 753 func (o *DcimRacksListParams) WithIDGt(iDGt *string) *DcimRacksListParams { 754 o.SetIDGt(iDGt) 755 return o 756 } 757 758 // SetIDGt adds the idGt to the dcim racks list params 759 func (o *DcimRacksListParams) SetIDGt(iDGt *string) { 760 o.IDGt = iDGt 761 } 762 763 // WithIDGte adds the iDGte to the dcim racks list params 764 func (o *DcimRacksListParams) WithIDGte(iDGte *string) *DcimRacksListParams { 765 o.SetIDGte(iDGte) 766 return o 767 } 768 769 // SetIDGte adds the idGte to the dcim racks list params 770 func (o *DcimRacksListParams) SetIDGte(iDGte *string) { 771 o.IDGte = iDGte 772 } 773 774 // WithIDLt adds the iDLt to the dcim racks list params 775 func (o *DcimRacksListParams) WithIDLt(iDLt *string) *DcimRacksListParams { 776 o.SetIDLt(iDLt) 777 return o 778 } 779 780 // SetIDLt adds the idLt to the dcim racks list params 781 func (o *DcimRacksListParams) SetIDLt(iDLt *string) { 782 o.IDLt = iDLt 783 } 784 785 // WithIDLte adds the iDLte to the dcim racks list params 786 func (o *DcimRacksListParams) WithIDLte(iDLte *string) *DcimRacksListParams { 787 o.SetIDLte(iDLte) 788 return o 789 } 790 791 // SetIDLte adds the idLte to the dcim racks list params 792 func (o *DcimRacksListParams) SetIDLte(iDLte *string) { 793 o.IDLte = iDLte 794 } 795 796 // WithIDn adds the iDn to the dcim racks list params 797 func (o *DcimRacksListParams) WithIDn(iDn *string) *DcimRacksListParams { 798 o.SetIDn(iDn) 799 return o 800 } 801 802 // SetIDn adds the idN to the dcim racks list params 803 func (o *DcimRacksListParams) SetIDn(iDn *string) { 804 o.IDn = iDn 805 } 806 807 // WithLastUpdated adds the lastUpdated to the dcim racks list params 808 func (o *DcimRacksListParams) WithLastUpdated(lastUpdated *string) *DcimRacksListParams { 809 o.SetLastUpdated(lastUpdated) 810 return o 811 } 812 813 // SetLastUpdated adds the lastUpdated to the dcim racks list params 814 func (o *DcimRacksListParams) SetLastUpdated(lastUpdated *string) { 815 o.LastUpdated = lastUpdated 816 } 817 818 // WithLastUpdatedGte adds the lastUpdatedGte to the dcim racks list params 819 func (o *DcimRacksListParams) WithLastUpdatedGte(lastUpdatedGte *string) *DcimRacksListParams { 820 o.SetLastUpdatedGte(lastUpdatedGte) 821 return o 822 } 823 824 // SetLastUpdatedGte adds the lastUpdatedGte to the dcim racks list params 825 func (o *DcimRacksListParams) SetLastUpdatedGte(lastUpdatedGte *string) { 826 o.LastUpdatedGte = lastUpdatedGte 827 } 828 829 // WithLastUpdatedLte adds the lastUpdatedLte to the dcim racks list params 830 func (o *DcimRacksListParams) WithLastUpdatedLte(lastUpdatedLte *string) *DcimRacksListParams { 831 o.SetLastUpdatedLte(lastUpdatedLte) 832 return o 833 } 834 835 // SetLastUpdatedLte adds the lastUpdatedLte to the dcim racks list params 836 func (o *DcimRacksListParams) SetLastUpdatedLte(lastUpdatedLte *string) { 837 o.LastUpdatedLte = lastUpdatedLte 838 } 839 840 // WithLimit adds the limit to the dcim racks list params 841 func (o *DcimRacksListParams) WithLimit(limit *int64) *DcimRacksListParams { 842 o.SetLimit(limit) 843 return o 844 } 845 846 // SetLimit adds the limit to the dcim racks list params 847 func (o *DcimRacksListParams) SetLimit(limit *int64) { 848 o.Limit = limit 849 } 850 851 // WithLocation adds the location to the dcim racks list params 852 func (o *DcimRacksListParams) WithLocation(location *string) *DcimRacksListParams { 853 o.SetLocation(location) 854 return o 855 } 856 857 // SetLocation adds the location to the dcim racks list params 858 func (o *DcimRacksListParams) SetLocation(location *string) { 859 o.Location = location 860 } 861 862 // WithLocationn adds the locationn to the dcim racks list params 863 func (o *DcimRacksListParams) WithLocationn(locationn *string) *DcimRacksListParams { 864 o.SetLocationn(locationn) 865 return o 866 } 867 868 // SetLocationn adds the locationN to the dcim racks list params 869 func (o *DcimRacksListParams) SetLocationn(locationn *string) { 870 o.Locationn = locationn 871 } 872 873 // WithLocationID adds the locationID to the dcim racks list params 874 func (o *DcimRacksListParams) WithLocationID(locationID *string) *DcimRacksListParams { 875 o.SetLocationID(locationID) 876 return o 877 } 878 879 // SetLocationID adds the locationId to the dcim racks list params 880 func (o *DcimRacksListParams) SetLocationID(locationID *string) { 881 o.LocationID = locationID 882 } 883 884 // WithLocationIDn adds the locationIDn to the dcim racks list params 885 func (o *DcimRacksListParams) WithLocationIDn(locationIDn *string) *DcimRacksListParams { 886 o.SetLocationIDn(locationIDn) 887 return o 888 } 889 890 // SetLocationIDn adds the locationIdN to the dcim racks list params 891 func (o *DcimRacksListParams) SetLocationIDn(locationIDn *string) { 892 o.LocationIDn = locationIDn 893 } 894 895 // WithName adds the name to the dcim racks list params 896 func (o *DcimRacksListParams) WithName(name *string) *DcimRacksListParams { 897 o.SetName(name) 898 return o 899 } 900 901 // SetName adds the name to the dcim racks list params 902 func (o *DcimRacksListParams) SetName(name *string) { 903 o.Name = name 904 } 905 906 // WithNameEmpty adds the nameEmpty to the dcim racks list params 907 func (o *DcimRacksListParams) WithNameEmpty(nameEmpty *string) *DcimRacksListParams { 908 o.SetNameEmpty(nameEmpty) 909 return o 910 } 911 912 // SetNameEmpty adds the nameEmpty to the dcim racks list params 913 func (o *DcimRacksListParams) SetNameEmpty(nameEmpty *string) { 914 o.NameEmpty = nameEmpty 915 } 916 917 // WithNameIc adds the nameIc to the dcim racks list params 918 func (o *DcimRacksListParams) WithNameIc(nameIc *string) *DcimRacksListParams { 919 o.SetNameIc(nameIc) 920 return o 921 } 922 923 // SetNameIc adds the nameIc to the dcim racks list params 924 func (o *DcimRacksListParams) SetNameIc(nameIc *string) { 925 o.NameIc = nameIc 926 } 927 928 // WithNameIe adds the nameIe to the dcim racks list params 929 func (o *DcimRacksListParams) WithNameIe(nameIe *string) *DcimRacksListParams { 930 o.SetNameIe(nameIe) 931 return o 932 } 933 934 // SetNameIe adds the nameIe to the dcim racks list params 935 func (o *DcimRacksListParams) SetNameIe(nameIe *string) { 936 o.NameIe = nameIe 937 } 938 939 // WithNameIew adds the nameIew to the dcim racks list params 940 func (o *DcimRacksListParams) WithNameIew(nameIew *string) *DcimRacksListParams { 941 o.SetNameIew(nameIew) 942 return o 943 } 944 945 // SetNameIew adds the nameIew to the dcim racks list params 946 func (o *DcimRacksListParams) SetNameIew(nameIew *string) { 947 o.NameIew = nameIew 948 } 949 950 // WithNameIsw adds the nameIsw to the dcim racks list params 951 func (o *DcimRacksListParams) WithNameIsw(nameIsw *string) *DcimRacksListParams { 952 o.SetNameIsw(nameIsw) 953 return o 954 } 955 956 // SetNameIsw adds the nameIsw to the dcim racks list params 957 func (o *DcimRacksListParams) SetNameIsw(nameIsw *string) { 958 o.NameIsw = nameIsw 959 } 960 961 // WithNamen adds the namen to the dcim racks list params 962 func (o *DcimRacksListParams) WithNamen(namen *string) *DcimRacksListParams { 963 o.SetNamen(namen) 964 return o 965 } 966 967 // SetNamen adds the nameN to the dcim racks list params 968 func (o *DcimRacksListParams) SetNamen(namen *string) { 969 o.Namen = namen 970 } 971 972 // WithNameNic adds the nameNic to the dcim racks list params 973 func (o *DcimRacksListParams) WithNameNic(nameNic *string) *DcimRacksListParams { 974 o.SetNameNic(nameNic) 975 return o 976 } 977 978 // SetNameNic adds the nameNic to the dcim racks list params 979 func (o *DcimRacksListParams) SetNameNic(nameNic *string) { 980 o.NameNic = nameNic 981 } 982 983 // WithNameNie adds the nameNie to the dcim racks list params 984 func (o *DcimRacksListParams) WithNameNie(nameNie *string) *DcimRacksListParams { 985 o.SetNameNie(nameNie) 986 return o 987 } 988 989 // SetNameNie adds the nameNie to the dcim racks list params 990 func (o *DcimRacksListParams) SetNameNie(nameNie *string) { 991 o.NameNie = nameNie 992 } 993 994 // WithNameNiew adds the nameNiew to the dcim racks list params 995 func (o *DcimRacksListParams) WithNameNiew(nameNiew *string) *DcimRacksListParams { 996 o.SetNameNiew(nameNiew) 997 return o 998 } 999 1000 // SetNameNiew adds the nameNiew to the dcim racks list params 1001 func (o *DcimRacksListParams) SetNameNiew(nameNiew *string) { 1002 o.NameNiew = nameNiew 1003 } 1004 1005 // WithNameNisw adds the nameNisw to the dcim racks list params 1006 func (o *DcimRacksListParams) WithNameNisw(nameNisw *string) *DcimRacksListParams { 1007 o.SetNameNisw(nameNisw) 1008 return o 1009 } 1010 1011 // SetNameNisw adds the nameNisw to the dcim racks list params 1012 func (o *DcimRacksListParams) SetNameNisw(nameNisw *string) { 1013 o.NameNisw = nameNisw 1014 } 1015 1016 // WithOffset adds the offset to the dcim racks list params 1017 func (o *DcimRacksListParams) WithOffset(offset *int64) *DcimRacksListParams { 1018 o.SetOffset(offset) 1019 return o 1020 } 1021 1022 // SetOffset adds the offset to the dcim racks list params 1023 func (o *DcimRacksListParams) SetOffset(offset *int64) { 1024 o.Offset = offset 1025 } 1026 1027 // WithOuterDepth adds the outerDepth to the dcim racks list params 1028 func (o *DcimRacksListParams) WithOuterDepth(outerDepth *string) *DcimRacksListParams { 1029 o.SetOuterDepth(outerDepth) 1030 return o 1031 } 1032 1033 // SetOuterDepth adds the outerDepth to the dcim racks list params 1034 func (o *DcimRacksListParams) SetOuterDepth(outerDepth *string) { 1035 o.OuterDepth = outerDepth 1036 } 1037 1038 // WithOuterDepthGt adds the outerDepthGt to the dcim racks list params 1039 func (o *DcimRacksListParams) WithOuterDepthGt(outerDepthGt *string) *DcimRacksListParams { 1040 o.SetOuterDepthGt(outerDepthGt) 1041 return o 1042 } 1043 1044 // SetOuterDepthGt adds the outerDepthGt to the dcim racks list params 1045 func (o *DcimRacksListParams) SetOuterDepthGt(outerDepthGt *string) { 1046 o.OuterDepthGt = outerDepthGt 1047 } 1048 1049 // WithOuterDepthGte adds the outerDepthGte to the dcim racks list params 1050 func (o *DcimRacksListParams) WithOuterDepthGte(outerDepthGte *string) *DcimRacksListParams { 1051 o.SetOuterDepthGte(outerDepthGte) 1052 return o 1053 } 1054 1055 // SetOuterDepthGte adds the outerDepthGte to the dcim racks list params 1056 func (o *DcimRacksListParams) SetOuterDepthGte(outerDepthGte *string) { 1057 o.OuterDepthGte = outerDepthGte 1058 } 1059 1060 // WithOuterDepthLt adds the outerDepthLt to the dcim racks list params 1061 func (o *DcimRacksListParams) WithOuterDepthLt(outerDepthLt *string) *DcimRacksListParams { 1062 o.SetOuterDepthLt(outerDepthLt) 1063 return o 1064 } 1065 1066 // SetOuterDepthLt adds the outerDepthLt to the dcim racks list params 1067 func (o *DcimRacksListParams) SetOuterDepthLt(outerDepthLt *string) { 1068 o.OuterDepthLt = outerDepthLt 1069 } 1070 1071 // WithOuterDepthLte adds the outerDepthLte to the dcim racks list params 1072 func (o *DcimRacksListParams) WithOuterDepthLte(outerDepthLte *string) *DcimRacksListParams { 1073 o.SetOuterDepthLte(outerDepthLte) 1074 return o 1075 } 1076 1077 // SetOuterDepthLte adds the outerDepthLte to the dcim racks list params 1078 func (o *DcimRacksListParams) SetOuterDepthLte(outerDepthLte *string) { 1079 o.OuterDepthLte = outerDepthLte 1080 } 1081 1082 // WithOuterDepthn adds the outerDepthn to the dcim racks list params 1083 func (o *DcimRacksListParams) WithOuterDepthn(outerDepthn *string) *DcimRacksListParams { 1084 o.SetOuterDepthn(outerDepthn) 1085 return o 1086 } 1087 1088 // SetOuterDepthn adds the outerDepthN to the dcim racks list params 1089 func (o *DcimRacksListParams) SetOuterDepthn(outerDepthn *string) { 1090 o.OuterDepthn = outerDepthn 1091 } 1092 1093 // WithOuterUnit adds the outerUnit to the dcim racks list params 1094 func (o *DcimRacksListParams) WithOuterUnit(outerUnit *string) *DcimRacksListParams { 1095 o.SetOuterUnit(outerUnit) 1096 return o 1097 } 1098 1099 // SetOuterUnit adds the outerUnit to the dcim racks list params 1100 func (o *DcimRacksListParams) SetOuterUnit(outerUnit *string) { 1101 o.OuterUnit = outerUnit 1102 } 1103 1104 // WithOuterUnitn adds the outerUnitn to the dcim racks list params 1105 func (o *DcimRacksListParams) WithOuterUnitn(outerUnitn *string) *DcimRacksListParams { 1106 o.SetOuterUnitn(outerUnitn) 1107 return o 1108 } 1109 1110 // SetOuterUnitn adds the outerUnitN to the dcim racks list params 1111 func (o *DcimRacksListParams) SetOuterUnitn(outerUnitn *string) { 1112 o.OuterUnitn = outerUnitn 1113 } 1114 1115 // WithOuterWidth adds the outerWidth to the dcim racks list params 1116 func (o *DcimRacksListParams) WithOuterWidth(outerWidth *string) *DcimRacksListParams { 1117 o.SetOuterWidth(outerWidth) 1118 return o 1119 } 1120 1121 // SetOuterWidth adds the outerWidth to the dcim racks list params 1122 func (o *DcimRacksListParams) SetOuterWidth(outerWidth *string) { 1123 o.OuterWidth = outerWidth 1124 } 1125 1126 // WithOuterWidthGt adds the outerWidthGt to the dcim racks list params 1127 func (o *DcimRacksListParams) WithOuterWidthGt(outerWidthGt *string) *DcimRacksListParams { 1128 o.SetOuterWidthGt(outerWidthGt) 1129 return o 1130 } 1131 1132 // SetOuterWidthGt adds the outerWidthGt to the dcim racks list params 1133 func (o *DcimRacksListParams) SetOuterWidthGt(outerWidthGt *string) { 1134 o.OuterWidthGt = outerWidthGt 1135 } 1136 1137 // WithOuterWidthGte adds the outerWidthGte to the dcim racks list params 1138 func (o *DcimRacksListParams) WithOuterWidthGte(outerWidthGte *string) *DcimRacksListParams { 1139 o.SetOuterWidthGte(outerWidthGte) 1140 return o 1141 } 1142 1143 // SetOuterWidthGte adds the outerWidthGte to the dcim racks list params 1144 func (o *DcimRacksListParams) SetOuterWidthGte(outerWidthGte *string) { 1145 o.OuterWidthGte = outerWidthGte 1146 } 1147 1148 // WithOuterWidthLt adds the outerWidthLt to the dcim racks list params 1149 func (o *DcimRacksListParams) WithOuterWidthLt(outerWidthLt *string) *DcimRacksListParams { 1150 o.SetOuterWidthLt(outerWidthLt) 1151 return o 1152 } 1153 1154 // SetOuterWidthLt adds the outerWidthLt to the dcim racks list params 1155 func (o *DcimRacksListParams) SetOuterWidthLt(outerWidthLt *string) { 1156 o.OuterWidthLt = outerWidthLt 1157 } 1158 1159 // WithOuterWidthLte adds the outerWidthLte to the dcim racks list params 1160 func (o *DcimRacksListParams) WithOuterWidthLte(outerWidthLte *string) *DcimRacksListParams { 1161 o.SetOuterWidthLte(outerWidthLte) 1162 return o 1163 } 1164 1165 // SetOuterWidthLte adds the outerWidthLte to the dcim racks list params 1166 func (o *DcimRacksListParams) SetOuterWidthLte(outerWidthLte *string) { 1167 o.OuterWidthLte = outerWidthLte 1168 } 1169 1170 // WithOuterWidthn adds the outerWidthn to the dcim racks list params 1171 func (o *DcimRacksListParams) WithOuterWidthn(outerWidthn *string) *DcimRacksListParams { 1172 o.SetOuterWidthn(outerWidthn) 1173 return o 1174 } 1175 1176 // SetOuterWidthn adds the outerWidthN to the dcim racks list params 1177 func (o *DcimRacksListParams) SetOuterWidthn(outerWidthn *string) { 1178 o.OuterWidthn = outerWidthn 1179 } 1180 1181 // WithQ adds the q to the dcim racks list params 1182 func (o *DcimRacksListParams) WithQ(q *string) *DcimRacksListParams { 1183 o.SetQ(q) 1184 return o 1185 } 1186 1187 // SetQ adds the q to the dcim racks list params 1188 func (o *DcimRacksListParams) SetQ(q *string) { 1189 o.Q = q 1190 } 1191 1192 // WithRegion adds the region to the dcim racks list params 1193 func (o *DcimRacksListParams) WithRegion(region *string) *DcimRacksListParams { 1194 o.SetRegion(region) 1195 return o 1196 } 1197 1198 // SetRegion adds the region to the dcim racks list params 1199 func (o *DcimRacksListParams) SetRegion(region *string) { 1200 o.Region = region 1201 } 1202 1203 // WithRegionn adds the regionn to the dcim racks list params 1204 func (o *DcimRacksListParams) WithRegionn(regionn *string) *DcimRacksListParams { 1205 o.SetRegionn(regionn) 1206 return o 1207 } 1208 1209 // SetRegionn adds the regionN to the dcim racks list params 1210 func (o *DcimRacksListParams) SetRegionn(regionn *string) { 1211 o.Regionn = regionn 1212 } 1213 1214 // WithRegionID adds the regionID to the dcim racks list params 1215 func (o *DcimRacksListParams) WithRegionID(regionID *string) *DcimRacksListParams { 1216 o.SetRegionID(regionID) 1217 return o 1218 } 1219 1220 // SetRegionID adds the regionId to the dcim racks list params 1221 func (o *DcimRacksListParams) SetRegionID(regionID *string) { 1222 o.RegionID = regionID 1223 } 1224 1225 // WithRegionIDn adds the regionIDn to the dcim racks list params 1226 func (o *DcimRacksListParams) WithRegionIDn(regionIDn *string) *DcimRacksListParams { 1227 o.SetRegionIDn(regionIDn) 1228 return o 1229 } 1230 1231 // SetRegionIDn adds the regionIdN to the dcim racks list params 1232 func (o *DcimRacksListParams) SetRegionIDn(regionIDn *string) { 1233 o.RegionIDn = regionIDn 1234 } 1235 1236 // WithRole adds the role to the dcim racks list params 1237 func (o *DcimRacksListParams) WithRole(role *string) *DcimRacksListParams { 1238 o.SetRole(role) 1239 return o 1240 } 1241 1242 // SetRole adds the role to the dcim racks list params 1243 func (o *DcimRacksListParams) SetRole(role *string) { 1244 o.Role = role 1245 } 1246 1247 // WithRolen adds the rolen to the dcim racks list params 1248 func (o *DcimRacksListParams) WithRolen(rolen *string) *DcimRacksListParams { 1249 o.SetRolen(rolen) 1250 return o 1251 } 1252 1253 // SetRolen adds the roleN to the dcim racks list params 1254 func (o *DcimRacksListParams) SetRolen(rolen *string) { 1255 o.Rolen = rolen 1256 } 1257 1258 // WithRoleID adds the roleID to the dcim racks list params 1259 func (o *DcimRacksListParams) WithRoleID(roleID *string) *DcimRacksListParams { 1260 o.SetRoleID(roleID) 1261 return o 1262 } 1263 1264 // SetRoleID adds the roleId to the dcim racks list params 1265 func (o *DcimRacksListParams) SetRoleID(roleID *string) { 1266 o.RoleID = roleID 1267 } 1268 1269 // WithRoleIDn adds the roleIDn to the dcim racks list params 1270 func (o *DcimRacksListParams) WithRoleIDn(roleIDn *string) *DcimRacksListParams { 1271 o.SetRoleIDn(roleIDn) 1272 return o 1273 } 1274 1275 // SetRoleIDn adds the roleIdN to the dcim racks list params 1276 func (o *DcimRacksListParams) SetRoleIDn(roleIDn *string) { 1277 o.RoleIDn = roleIDn 1278 } 1279 1280 // WithSerial adds the serial to the dcim racks list params 1281 func (o *DcimRacksListParams) WithSerial(serial *string) *DcimRacksListParams { 1282 o.SetSerial(serial) 1283 return o 1284 } 1285 1286 // SetSerial adds the serial to the dcim racks list params 1287 func (o *DcimRacksListParams) SetSerial(serial *string) { 1288 o.Serial = serial 1289 } 1290 1291 // WithSite adds the site to the dcim racks list params 1292 func (o *DcimRacksListParams) WithSite(site *string) *DcimRacksListParams { 1293 o.SetSite(site) 1294 return o 1295 } 1296 1297 // SetSite adds the site to the dcim racks list params 1298 func (o *DcimRacksListParams) SetSite(site *string) { 1299 o.Site = site 1300 } 1301 1302 // WithSiten adds the siten to the dcim racks list params 1303 func (o *DcimRacksListParams) WithSiten(siten *string) *DcimRacksListParams { 1304 o.SetSiten(siten) 1305 return o 1306 } 1307 1308 // SetSiten adds the siteN to the dcim racks list params 1309 func (o *DcimRacksListParams) SetSiten(siten *string) { 1310 o.Siten = siten 1311 } 1312 1313 // WithSiteGroup adds the siteGroup to the dcim racks list params 1314 func (o *DcimRacksListParams) WithSiteGroup(siteGroup *string) *DcimRacksListParams { 1315 o.SetSiteGroup(siteGroup) 1316 return o 1317 } 1318 1319 // SetSiteGroup adds the siteGroup to the dcim racks list params 1320 func (o *DcimRacksListParams) SetSiteGroup(siteGroup *string) { 1321 o.SiteGroup = siteGroup 1322 } 1323 1324 // WithSiteGroupn adds the siteGroupn to the dcim racks list params 1325 func (o *DcimRacksListParams) WithSiteGroupn(siteGroupn *string) *DcimRacksListParams { 1326 o.SetSiteGroupn(siteGroupn) 1327 return o 1328 } 1329 1330 // SetSiteGroupn adds the siteGroupN to the dcim racks list params 1331 func (o *DcimRacksListParams) SetSiteGroupn(siteGroupn *string) { 1332 o.SiteGroupn = siteGroupn 1333 } 1334 1335 // WithSiteGroupID adds the siteGroupID to the dcim racks list params 1336 func (o *DcimRacksListParams) WithSiteGroupID(siteGroupID *string) *DcimRacksListParams { 1337 o.SetSiteGroupID(siteGroupID) 1338 return o 1339 } 1340 1341 // SetSiteGroupID adds the siteGroupId to the dcim racks list params 1342 func (o *DcimRacksListParams) SetSiteGroupID(siteGroupID *string) { 1343 o.SiteGroupID = siteGroupID 1344 } 1345 1346 // WithSiteGroupIDn adds the siteGroupIDn to the dcim racks list params 1347 func (o *DcimRacksListParams) WithSiteGroupIDn(siteGroupIDn *string) *DcimRacksListParams { 1348 o.SetSiteGroupIDn(siteGroupIDn) 1349 return o 1350 } 1351 1352 // SetSiteGroupIDn adds the siteGroupIdN to the dcim racks list params 1353 func (o *DcimRacksListParams) SetSiteGroupIDn(siteGroupIDn *string) { 1354 o.SiteGroupIDn = siteGroupIDn 1355 } 1356 1357 // WithSiteID adds the siteID to the dcim racks list params 1358 func (o *DcimRacksListParams) WithSiteID(siteID *string) *DcimRacksListParams { 1359 o.SetSiteID(siteID) 1360 return o 1361 } 1362 1363 // SetSiteID adds the siteId to the dcim racks list params 1364 func (o *DcimRacksListParams) SetSiteID(siteID *string) { 1365 o.SiteID = siteID 1366 } 1367 1368 // WithSiteIDn adds the siteIDn to the dcim racks list params 1369 func (o *DcimRacksListParams) WithSiteIDn(siteIDn *string) *DcimRacksListParams { 1370 o.SetSiteIDn(siteIDn) 1371 return o 1372 } 1373 1374 // SetSiteIDn adds the siteIdN to the dcim racks list params 1375 func (o *DcimRacksListParams) SetSiteIDn(siteIDn *string) { 1376 o.SiteIDn = siteIDn 1377 } 1378 1379 // WithStatus adds the status to the dcim racks list params 1380 func (o *DcimRacksListParams) WithStatus(status *string) *DcimRacksListParams { 1381 o.SetStatus(status) 1382 return o 1383 } 1384 1385 // SetStatus adds the status to the dcim racks list params 1386 func (o *DcimRacksListParams) SetStatus(status *string) { 1387 o.Status = status 1388 } 1389 1390 // WithStatusn adds the statusn to the dcim racks list params 1391 func (o *DcimRacksListParams) WithStatusn(statusn *string) *DcimRacksListParams { 1392 o.SetStatusn(statusn) 1393 return o 1394 } 1395 1396 // SetStatusn adds the statusN to the dcim racks list params 1397 func (o *DcimRacksListParams) SetStatusn(statusn *string) { 1398 o.Statusn = statusn 1399 } 1400 1401 // WithTag adds the tag to the dcim racks list params 1402 func (o *DcimRacksListParams) WithTag(tag *string) *DcimRacksListParams { 1403 o.SetTag(tag) 1404 return o 1405 } 1406 1407 // SetTag adds the tag to the dcim racks list params 1408 func (o *DcimRacksListParams) SetTag(tag *string) { 1409 o.Tag = tag 1410 } 1411 1412 // WithTagn adds the tagn to the dcim racks list params 1413 func (o *DcimRacksListParams) WithTagn(tagn *string) *DcimRacksListParams { 1414 o.SetTagn(tagn) 1415 return o 1416 } 1417 1418 // SetTagn adds the tagN to the dcim racks list params 1419 func (o *DcimRacksListParams) SetTagn(tagn *string) { 1420 o.Tagn = tagn 1421 } 1422 1423 // WithTenant adds the tenant to the dcim racks list params 1424 func (o *DcimRacksListParams) WithTenant(tenant *string) *DcimRacksListParams { 1425 o.SetTenant(tenant) 1426 return o 1427 } 1428 1429 // SetTenant adds the tenant to the dcim racks list params 1430 func (o *DcimRacksListParams) SetTenant(tenant *string) { 1431 o.Tenant = tenant 1432 } 1433 1434 // WithTenantn adds the tenantn to the dcim racks list params 1435 func (o *DcimRacksListParams) WithTenantn(tenantn *string) *DcimRacksListParams { 1436 o.SetTenantn(tenantn) 1437 return o 1438 } 1439 1440 // SetTenantn adds the tenantN to the dcim racks list params 1441 func (o *DcimRacksListParams) SetTenantn(tenantn *string) { 1442 o.Tenantn = tenantn 1443 } 1444 1445 // WithTenantGroup adds the tenantGroup to the dcim racks list params 1446 func (o *DcimRacksListParams) WithTenantGroup(tenantGroup *string) *DcimRacksListParams { 1447 o.SetTenantGroup(tenantGroup) 1448 return o 1449 } 1450 1451 // SetTenantGroup adds the tenantGroup to the dcim racks list params 1452 func (o *DcimRacksListParams) SetTenantGroup(tenantGroup *string) { 1453 o.TenantGroup = tenantGroup 1454 } 1455 1456 // WithTenantGroupn adds the tenantGroupn to the dcim racks list params 1457 func (o *DcimRacksListParams) WithTenantGroupn(tenantGroupn *string) *DcimRacksListParams { 1458 o.SetTenantGroupn(tenantGroupn) 1459 return o 1460 } 1461 1462 // SetTenantGroupn adds the tenantGroupN to the dcim racks list params 1463 func (o *DcimRacksListParams) SetTenantGroupn(tenantGroupn *string) { 1464 o.TenantGroupn = tenantGroupn 1465 } 1466 1467 // WithTenantGroupID adds the tenantGroupID to the dcim racks list params 1468 func (o *DcimRacksListParams) WithTenantGroupID(tenantGroupID *string) *DcimRacksListParams { 1469 o.SetTenantGroupID(tenantGroupID) 1470 return o 1471 } 1472 1473 // SetTenantGroupID adds the tenantGroupId to the dcim racks list params 1474 func (o *DcimRacksListParams) SetTenantGroupID(tenantGroupID *string) { 1475 o.TenantGroupID = tenantGroupID 1476 } 1477 1478 // WithTenantGroupIDn adds the tenantGroupIDn to the dcim racks list params 1479 func (o *DcimRacksListParams) WithTenantGroupIDn(tenantGroupIDn *string) *DcimRacksListParams { 1480 o.SetTenantGroupIDn(tenantGroupIDn) 1481 return o 1482 } 1483 1484 // SetTenantGroupIDn adds the tenantGroupIdN to the dcim racks list params 1485 func (o *DcimRacksListParams) SetTenantGroupIDn(tenantGroupIDn *string) { 1486 o.TenantGroupIDn = tenantGroupIDn 1487 } 1488 1489 // WithTenantID adds the tenantID to the dcim racks list params 1490 func (o *DcimRacksListParams) WithTenantID(tenantID *string) *DcimRacksListParams { 1491 o.SetTenantID(tenantID) 1492 return o 1493 } 1494 1495 // SetTenantID adds the tenantId to the dcim racks list params 1496 func (o *DcimRacksListParams) SetTenantID(tenantID *string) { 1497 o.TenantID = tenantID 1498 } 1499 1500 // WithTenantIDn adds the tenantIDn to the dcim racks list params 1501 func (o *DcimRacksListParams) WithTenantIDn(tenantIDn *string) *DcimRacksListParams { 1502 o.SetTenantIDn(tenantIDn) 1503 return o 1504 } 1505 1506 // SetTenantIDn adds the tenantIdN to the dcim racks list params 1507 func (o *DcimRacksListParams) SetTenantIDn(tenantIDn *string) { 1508 o.TenantIDn = tenantIDn 1509 } 1510 1511 // WithType adds the typeVar to the dcim racks list params 1512 func (o *DcimRacksListParams) WithType(typeVar *string) *DcimRacksListParams { 1513 o.SetType(typeVar) 1514 return o 1515 } 1516 1517 // SetType adds the type to the dcim racks list params 1518 func (o *DcimRacksListParams) SetType(typeVar *string) { 1519 o.Type = typeVar 1520 } 1521 1522 // WithTypen adds the typen to the dcim racks list params 1523 func (o *DcimRacksListParams) WithTypen(typen *string) *DcimRacksListParams { 1524 o.SetTypen(typen) 1525 return o 1526 } 1527 1528 // SetTypen adds the typeN to the dcim racks list params 1529 func (o *DcimRacksListParams) SetTypen(typen *string) { 1530 o.Typen = typen 1531 } 1532 1533 // WithUHeight adds the uHeight to the dcim racks list params 1534 func (o *DcimRacksListParams) WithUHeight(uHeight *string) *DcimRacksListParams { 1535 o.SetUHeight(uHeight) 1536 return o 1537 } 1538 1539 // SetUHeight adds the uHeight to the dcim racks list params 1540 func (o *DcimRacksListParams) SetUHeight(uHeight *string) { 1541 o.UHeight = uHeight 1542 } 1543 1544 // WithUHeightGt adds the uHeightGt to the dcim racks list params 1545 func (o *DcimRacksListParams) WithUHeightGt(uHeightGt *string) *DcimRacksListParams { 1546 o.SetUHeightGt(uHeightGt) 1547 return o 1548 } 1549 1550 // SetUHeightGt adds the uHeightGt to the dcim racks list params 1551 func (o *DcimRacksListParams) SetUHeightGt(uHeightGt *string) { 1552 o.UHeightGt = uHeightGt 1553 } 1554 1555 // WithUHeightGte adds the uHeightGte to the dcim racks list params 1556 func (o *DcimRacksListParams) WithUHeightGte(uHeightGte *string) *DcimRacksListParams { 1557 o.SetUHeightGte(uHeightGte) 1558 return o 1559 } 1560 1561 // SetUHeightGte adds the uHeightGte to the dcim racks list params 1562 func (o *DcimRacksListParams) SetUHeightGte(uHeightGte *string) { 1563 o.UHeightGte = uHeightGte 1564 } 1565 1566 // WithUHeightLt adds the uHeightLt to the dcim racks list params 1567 func (o *DcimRacksListParams) WithUHeightLt(uHeightLt *string) *DcimRacksListParams { 1568 o.SetUHeightLt(uHeightLt) 1569 return o 1570 } 1571 1572 // SetUHeightLt adds the uHeightLt to the dcim racks list params 1573 func (o *DcimRacksListParams) SetUHeightLt(uHeightLt *string) { 1574 o.UHeightLt = uHeightLt 1575 } 1576 1577 // WithUHeightLte adds the uHeightLte to the dcim racks list params 1578 func (o *DcimRacksListParams) WithUHeightLte(uHeightLte *string) *DcimRacksListParams { 1579 o.SetUHeightLte(uHeightLte) 1580 return o 1581 } 1582 1583 // SetUHeightLte adds the uHeightLte to the dcim racks list params 1584 func (o *DcimRacksListParams) SetUHeightLte(uHeightLte *string) { 1585 o.UHeightLte = uHeightLte 1586 } 1587 1588 // WithUHeightn adds the uHeightn to the dcim racks list params 1589 func (o *DcimRacksListParams) WithUHeightn(uHeightn *string) *DcimRacksListParams { 1590 o.SetUHeightn(uHeightn) 1591 return o 1592 } 1593 1594 // SetUHeightn adds the uHeightN to the dcim racks list params 1595 func (o *DcimRacksListParams) SetUHeightn(uHeightn *string) { 1596 o.UHeightn = uHeightn 1597 } 1598 1599 // WithWidth adds the width to the dcim racks list params 1600 func (o *DcimRacksListParams) WithWidth(width *string) *DcimRacksListParams { 1601 o.SetWidth(width) 1602 return o 1603 } 1604 1605 // SetWidth adds the width to the dcim racks list params 1606 func (o *DcimRacksListParams) SetWidth(width *string) { 1607 o.Width = width 1608 } 1609 1610 // WithWidthn adds the widthn to the dcim racks list params 1611 func (o *DcimRacksListParams) WithWidthn(widthn *string) *DcimRacksListParams { 1612 o.SetWidthn(widthn) 1613 return o 1614 } 1615 1616 // SetWidthn adds the widthN to the dcim racks list params 1617 func (o *DcimRacksListParams) SetWidthn(widthn *string) { 1618 o.Widthn = widthn 1619 } 1620 1621 // WriteToRequest writes these params to a swagger request 1622 func (o *DcimRacksListParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { 1623 1624 if err := r.SetTimeout(o.timeout); err != nil { 1625 return err 1626 } 1627 var res []error 1628 1629 if o.AssetTag != nil { 1630 1631 // query param asset_tag 1632 var qrAssetTag string 1633 1634 if o.AssetTag != nil { 1635 qrAssetTag = *o.AssetTag 1636 } 1637 qAssetTag := qrAssetTag 1638 if qAssetTag != "" { 1639 1640 if err := r.SetQueryParam("asset_tag", qAssetTag); err != nil { 1641 return err 1642 } 1643 } 1644 } 1645 1646 if o.AssetTagEmpty != nil { 1647 1648 // query param asset_tag__empty 1649 var qrAssetTagEmpty string 1650 1651 if o.AssetTagEmpty != nil { 1652 qrAssetTagEmpty = *o.AssetTagEmpty 1653 } 1654 qAssetTagEmpty := qrAssetTagEmpty 1655 if qAssetTagEmpty != "" { 1656 1657 if err := r.SetQueryParam("asset_tag__empty", qAssetTagEmpty); err != nil { 1658 return err 1659 } 1660 } 1661 } 1662 1663 if o.AssetTagIc != nil { 1664 1665 // query param asset_tag__ic 1666 var qrAssetTagIc string 1667 1668 if o.AssetTagIc != nil { 1669 qrAssetTagIc = *o.AssetTagIc 1670 } 1671 qAssetTagIc := qrAssetTagIc 1672 if qAssetTagIc != "" { 1673 1674 if err := r.SetQueryParam("asset_tag__ic", qAssetTagIc); err != nil { 1675 return err 1676 } 1677 } 1678 } 1679 1680 if o.AssetTagIe != nil { 1681 1682 // query param asset_tag__ie 1683 var qrAssetTagIe string 1684 1685 if o.AssetTagIe != nil { 1686 qrAssetTagIe = *o.AssetTagIe 1687 } 1688 qAssetTagIe := qrAssetTagIe 1689 if qAssetTagIe != "" { 1690 1691 if err := r.SetQueryParam("asset_tag__ie", qAssetTagIe); err != nil { 1692 return err 1693 } 1694 } 1695 } 1696 1697 if o.AssetTagIew != nil { 1698 1699 // query param asset_tag__iew 1700 var qrAssetTagIew string 1701 1702 if o.AssetTagIew != nil { 1703 qrAssetTagIew = *o.AssetTagIew 1704 } 1705 qAssetTagIew := qrAssetTagIew 1706 if qAssetTagIew != "" { 1707 1708 if err := r.SetQueryParam("asset_tag__iew", qAssetTagIew); err != nil { 1709 return err 1710 } 1711 } 1712 } 1713 1714 if o.AssetTagIsw != nil { 1715 1716 // query param asset_tag__isw 1717 var qrAssetTagIsw string 1718 1719 if o.AssetTagIsw != nil { 1720 qrAssetTagIsw = *o.AssetTagIsw 1721 } 1722 qAssetTagIsw := qrAssetTagIsw 1723 if qAssetTagIsw != "" { 1724 1725 if err := r.SetQueryParam("asset_tag__isw", qAssetTagIsw); err != nil { 1726 return err 1727 } 1728 } 1729 } 1730 1731 if o.AssetTagn != nil { 1732 1733 // query param asset_tag__n 1734 var qrAssetTagn string 1735 1736 if o.AssetTagn != nil { 1737 qrAssetTagn = *o.AssetTagn 1738 } 1739 qAssetTagn := qrAssetTagn 1740 if qAssetTagn != "" { 1741 1742 if err := r.SetQueryParam("asset_tag__n", qAssetTagn); err != nil { 1743 return err 1744 } 1745 } 1746 } 1747 1748 if o.AssetTagNic != nil { 1749 1750 // query param asset_tag__nic 1751 var qrAssetTagNic string 1752 1753 if o.AssetTagNic != nil { 1754 qrAssetTagNic = *o.AssetTagNic 1755 } 1756 qAssetTagNic := qrAssetTagNic 1757 if qAssetTagNic != "" { 1758 1759 if err := r.SetQueryParam("asset_tag__nic", qAssetTagNic); err != nil { 1760 return err 1761 } 1762 } 1763 } 1764 1765 if o.AssetTagNie != nil { 1766 1767 // query param asset_tag__nie 1768 var qrAssetTagNie string 1769 1770 if o.AssetTagNie != nil { 1771 qrAssetTagNie = *o.AssetTagNie 1772 } 1773 qAssetTagNie := qrAssetTagNie 1774 if qAssetTagNie != "" { 1775 1776 if err := r.SetQueryParam("asset_tag__nie", qAssetTagNie); err != nil { 1777 return err 1778 } 1779 } 1780 } 1781 1782 if o.AssetTagNiew != nil { 1783 1784 // query param asset_tag__niew 1785 var qrAssetTagNiew string 1786 1787 if o.AssetTagNiew != nil { 1788 qrAssetTagNiew = *o.AssetTagNiew 1789 } 1790 qAssetTagNiew := qrAssetTagNiew 1791 if qAssetTagNiew != "" { 1792 1793 if err := r.SetQueryParam("asset_tag__niew", qAssetTagNiew); err != nil { 1794 return err 1795 } 1796 } 1797 } 1798 1799 if o.AssetTagNisw != nil { 1800 1801 // query param asset_tag__nisw 1802 var qrAssetTagNisw string 1803 1804 if o.AssetTagNisw != nil { 1805 qrAssetTagNisw = *o.AssetTagNisw 1806 } 1807 qAssetTagNisw := qrAssetTagNisw 1808 if qAssetTagNisw != "" { 1809 1810 if err := r.SetQueryParam("asset_tag__nisw", qAssetTagNisw); err != nil { 1811 return err 1812 } 1813 } 1814 } 1815 1816 if o.Created != nil { 1817 1818 // query param created 1819 var qrCreated string 1820 1821 if o.Created != nil { 1822 qrCreated = *o.Created 1823 } 1824 qCreated := qrCreated 1825 if qCreated != "" { 1826 1827 if err := r.SetQueryParam("created", qCreated); err != nil { 1828 return err 1829 } 1830 } 1831 } 1832 1833 if o.CreatedGte != nil { 1834 1835 // query param created__gte 1836 var qrCreatedGte string 1837 1838 if o.CreatedGte != nil { 1839 qrCreatedGte = *o.CreatedGte 1840 } 1841 qCreatedGte := qrCreatedGte 1842 if qCreatedGte != "" { 1843 1844 if err := r.SetQueryParam("created__gte", qCreatedGte); err != nil { 1845 return err 1846 } 1847 } 1848 } 1849 1850 if o.CreatedLte != nil { 1851 1852 // query param created__lte 1853 var qrCreatedLte string 1854 1855 if o.CreatedLte != nil { 1856 qrCreatedLte = *o.CreatedLte 1857 } 1858 qCreatedLte := qrCreatedLte 1859 if qCreatedLte != "" { 1860 1861 if err := r.SetQueryParam("created__lte", qCreatedLte); err != nil { 1862 return err 1863 } 1864 } 1865 } 1866 1867 if o.DescUnits != nil { 1868 1869 // query param desc_units 1870 var qrDescUnits string 1871 1872 if o.DescUnits != nil { 1873 qrDescUnits = *o.DescUnits 1874 } 1875 qDescUnits := qrDescUnits 1876 if qDescUnits != "" { 1877 1878 if err := r.SetQueryParam("desc_units", qDescUnits); err != nil { 1879 return err 1880 } 1881 } 1882 } 1883 1884 if o.FacilityID != nil { 1885 1886 // query param facility_id 1887 var qrFacilityID string 1888 1889 if o.FacilityID != nil { 1890 qrFacilityID = *o.FacilityID 1891 } 1892 qFacilityID := qrFacilityID 1893 if qFacilityID != "" { 1894 1895 if err := r.SetQueryParam("facility_id", qFacilityID); err != nil { 1896 return err 1897 } 1898 } 1899 } 1900 1901 if o.FacilityIDEmpty != nil { 1902 1903 // query param facility_id__empty 1904 var qrFacilityIDEmpty string 1905 1906 if o.FacilityIDEmpty != nil { 1907 qrFacilityIDEmpty = *o.FacilityIDEmpty 1908 } 1909 qFacilityIDEmpty := qrFacilityIDEmpty 1910 if qFacilityIDEmpty != "" { 1911 1912 if err := r.SetQueryParam("facility_id__empty", qFacilityIDEmpty); err != nil { 1913 return err 1914 } 1915 } 1916 } 1917 1918 if o.FacilityIDIc != nil { 1919 1920 // query param facility_id__ic 1921 var qrFacilityIDIc string 1922 1923 if o.FacilityIDIc != nil { 1924 qrFacilityIDIc = *o.FacilityIDIc 1925 } 1926 qFacilityIDIc := qrFacilityIDIc 1927 if qFacilityIDIc != "" { 1928 1929 if err := r.SetQueryParam("facility_id__ic", qFacilityIDIc); err != nil { 1930 return err 1931 } 1932 } 1933 } 1934 1935 if o.FacilityIDIe != nil { 1936 1937 // query param facility_id__ie 1938 var qrFacilityIDIe string 1939 1940 if o.FacilityIDIe != nil { 1941 qrFacilityIDIe = *o.FacilityIDIe 1942 } 1943 qFacilityIDIe := qrFacilityIDIe 1944 if qFacilityIDIe != "" { 1945 1946 if err := r.SetQueryParam("facility_id__ie", qFacilityIDIe); err != nil { 1947 return err 1948 } 1949 } 1950 } 1951 1952 if o.FacilityIDIew != nil { 1953 1954 // query param facility_id__iew 1955 var qrFacilityIDIew string 1956 1957 if o.FacilityIDIew != nil { 1958 qrFacilityIDIew = *o.FacilityIDIew 1959 } 1960 qFacilityIDIew := qrFacilityIDIew 1961 if qFacilityIDIew != "" { 1962 1963 if err := r.SetQueryParam("facility_id__iew", qFacilityIDIew); err != nil { 1964 return err 1965 } 1966 } 1967 } 1968 1969 if o.FacilityIDIsw != nil { 1970 1971 // query param facility_id__isw 1972 var qrFacilityIDIsw string 1973 1974 if o.FacilityIDIsw != nil { 1975 qrFacilityIDIsw = *o.FacilityIDIsw 1976 } 1977 qFacilityIDIsw := qrFacilityIDIsw 1978 if qFacilityIDIsw != "" { 1979 1980 if err := r.SetQueryParam("facility_id__isw", qFacilityIDIsw); err != nil { 1981 return err 1982 } 1983 } 1984 } 1985 1986 if o.FacilityIDn != nil { 1987 1988 // query param facility_id__n 1989 var qrFacilityIDn string 1990 1991 if o.FacilityIDn != nil { 1992 qrFacilityIDn = *o.FacilityIDn 1993 } 1994 qFacilityIDn := qrFacilityIDn 1995 if qFacilityIDn != "" { 1996 1997 if err := r.SetQueryParam("facility_id__n", qFacilityIDn); err != nil { 1998 return err 1999 } 2000 } 2001 } 2002 2003 if o.FacilityIDNic != nil { 2004 2005 // query param facility_id__nic 2006 var qrFacilityIDNic string 2007 2008 if o.FacilityIDNic != nil { 2009 qrFacilityIDNic = *o.FacilityIDNic 2010 } 2011 qFacilityIDNic := qrFacilityIDNic 2012 if qFacilityIDNic != "" { 2013 2014 if err := r.SetQueryParam("facility_id__nic", qFacilityIDNic); err != nil { 2015 return err 2016 } 2017 } 2018 } 2019 2020 if o.FacilityIDNie != nil { 2021 2022 // query param facility_id__nie 2023 var qrFacilityIDNie string 2024 2025 if o.FacilityIDNie != nil { 2026 qrFacilityIDNie = *o.FacilityIDNie 2027 } 2028 qFacilityIDNie := qrFacilityIDNie 2029 if qFacilityIDNie != "" { 2030 2031 if err := r.SetQueryParam("facility_id__nie", qFacilityIDNie); err != nil { 2032 return err 2033 } 2034 } 2035 } 2036 2037 if o.FacilityIDNiew != nil { 2038 2039 // query param facility_id__niew 2040 var qrFacilityIDNiew string 2041 2042 if o.FacilityIDNiew != nil { 2043 qrFacilityIDNiew = *o.FacilityIDNiew 2044 } 2045 qFacilityIDNiew := qrFacilityIDNiew 2046 if qFacilityIDNiew != "" { 2047 2048 if err := r.SetQueryParam("facility_id__niew", qFacilityIDNiew); err != nil { 2049 return err 2050 } 2051 } 2052 } 2053 2054 if o.FacilityIDNisw != nil { 2055 2056 // query param facility_id__nisw 2057 var qrFacilityIDNisw string 2058 2059 if o.FacilityIDNisw != nil { 2060 qrFacilityIDNisw = *o.FacilityIDNisw 2061 } 2062 qFacilityIDNisw := qrFacilityIDNisw 2063 if qFacilityIDNisw != "" { 2064 2065 if err := r.SetQueryParam("facility_id__nisw", qFacilityIDNisw); err != nil { 2066 return err 2067 } 2068 } 2069 } 2070 2071 if o.ID != nil { 2072 2073 // query param id 2074 var qrID string 2075 2076 if o.ID != nil { 2077 qrID = *o.ID 2078 } 2079 qID := qrID 2080 if qID != "" { 2081 2082 if err := r.SetQueryParam("id", qID); err != nil { 2083 return err 2084 } 2085 } 2086 } 2087 2088 if o.IDGt != nil { 2089 2090 // query param id__gt 2091 var qrIDGt string 2092 2093 if o.IDGt != nil { 2094 qrIDGt = *o.IDGt 2095 } 2096 qIDGt := qrIDGt 2097 if qIDGt != "" { 2098 2099 if err := r.SetQueryParam("id__gt", qIDGt); err != nil { 2100 return err 2101 } 2102 } 2103 } 2104 2105 if o.IDGte != nil { 2106 2107 // query param id__gte 2108 var qrIDGte string 2109 2110 if o.IDGte != nil { 2111 qrIDGte = *o.IDGte 2112 } 2113 qIDGte := qrIDGte 2114 if qIDGte != "" { 2115 2116 if err := r.SetQueryParam("id__gte", qIDGte); err != nil { 2117 return err 2118 } 2119 } 2120 } 2121 2122 if o.IDLt != nil { 2123 2124 // query param id__lt 2125 var qrIDLt string 2126 2127 if o.IDLt != nil { 2128 qrIDLt = *o.IDLt 2129 } 2130 qIDLt := qrIDLt 2131 if qIDLt != "" { 2132 2133 if err := r.SetQueryParam("id__lt", qIDLt); err != nil { 2134 return err 2135 } 2136 } 2137 } 2138 2139 if o.IDLte != nil { 2140 2141 // query param id__lte 2142 var qrIDLte string 2143 2144 if o.IDLte != nil { 2145 qrIDLte = *o.IDLte 2146 } 2147 qIDLte := qrIDLte 2148 if qIDLte != "" { 2149 2150 if err := r.SetQueryParam("id__lte", qIDLte); err != nil { 2151 return err 2152 } 2153 } 2154 } 2155 2156 if o.IDn != nil { 2157 2158 // query param id__n 2159 var qrIDn string 2160 2161 if o.IDn != nil { 2162 qrIDn = *o.IDn 2163 } 2164 qIDn := qrIDn 2165 if qIDn != "" { 2166 2167 if err := r.SetQueryParam("id__n", qIDn); err != nil { 2168 return err 2169 } 2170 } 2171 } 2172 2173 if o.LastUpdated != nil { 2174 2175 // query param last_updated 2176 var qrLastUpdated string 2177 2178 if o.LastUpdated != nil { 2179 qrLastUpdated = *o.LastUpdated 2180 } 2181 qLastUpdated := qrLastUpdated 2182 if qLastUpdated != "" { 2183 2184 if err := r.SetQueryParam("last_updated", qLastUpdated); err != nil { 2185 return err 2186 } 2187 } 2188 } 2189 2190 if o.LastUpdatedGte != nil { 2191 2192 // query param last_updated__gte 2193 var qrLastUpdatedGte string 2194 2195 if o.LastUpdatedGte != nil { 2196 qrLastUpdatedGte = *o.LastUpdatedGte 2197 } 2198 qLastUpdatedGte := qrLastUpdatedGte 2199 if qLastUpdatedGte != "" { 2200 2201 if err := r.SetQueryParam("last_updated__gte", qLastUpdatedGte); err != nil { 2202 return err 2203 } 2204 } 2205 } 2206 2207 if o.LastUpdatedLte != nil { 2208 2209 // query param last_updated__lte 2210 var qrLastUpdatedLte string 2211 2212 if o.LastUpdatedLte != nil { 2213 qrLastUpdatedLte = *o.LastUpdatedLte 2214 } 2215 qLastUpdatedLte := qrLastUpdatedLte 2216 if qLastUpdatedLte != "" { 2217 2218 if err := r.SetQueryParam("last_updated__lte", qLastUpdatedLte); err != nil { 2219 return err 2220 } 2221 } 2222 } 2223 2224 if o.Limit != nil { 2225 2226 // query param limit 2227 var qrLimit int64 2228 2229 if o.Limit != nil { 2230 qrLimit = *o.Limit 2231 } 2232 qLimit := swag.FormatInt64(qrLimit) 2233 if qLimit != "" { 2234 2235 if err := r.SetQueryParam("limit", qLimit); err != nil { 2236 return err 2237 } 2238 } 2239 } 2240 2241 if o.Location != nil { 2242 2243 // query param location 2244 var qrLocation string 2245 2246 if o.Location != nil { 2247 qrLocation = *o.Location 2248 } 2249 qLocation := qrLocation 2250 if qLocation != "" { 2251 2252 if err := r.SetQueryParam("location", qLocation); err != nil { 2253 return err 2254 } 2255 } 2256 } 2257 2258 if o.Locationn != nil { 2259 2260 // query param location__n 2261 var qrLocationn string 2262 2263 if o.Locationn != nil { 2264 qrLocationn = *o.Locationn 2265 } 2266 qLocationn := qrLocationn 2267 if qLocationn != "" { 2268 2269 if err := r.SetQueryParam("location__n", qLocationn); err != nil { 2270 return err 2271 } 2272 } 2273 } 2274 2275 if o.LocationID != nil { 2276 2277 // query param location_id 2278 var qrLocationID string 2279 2280 if o.LocationID != nil { 2281 qrLocationID = *o.LocationID 2282 } 2283 qLocationID := qrLocationID 2284 if qLocationID != "" { 2285 2286 if err := r.SetQueryParam("location_id", qLocationID); err != nil { 2287 return err 2288 } 2289 } 2290 } 2291 2292 if o.LocationIDn != nil { 2293 2294 // query param location_id__n 2295 var qrLocationIDn string 2296 2297 if o.LocationIDn != nil { 2298 qrLocationIDn = *o.LocationIDn 2299 } 2300 qLocationIDn := qrLocationIDn 2301 if qLocationIDn != "" { 2302 2303 if err := r.SetQueryParam("location_id__n", qLocationIDn); err != nil { 2304 return err 2305 } 2306 } 2307 } 2308 2309 if o.Name != nil { 2310 2311 // query param name 2312 var qrName string 2313 2314 if o.Name != nil { 2315 qrName = *o.Name 2316 } 2317 qName := qrName 2318 if qName != "" { 2319 2320 if err := r.SetQueryParam("name", qName); err != nil { 2321 return err 2322 } 2323 } 2324 } 2325 2326 if o.NameEmpty != nil { 2327 2328 // query param name__empty 2329 var qrNameEmpty string 2330 2331 if o.NameEmpty != nil { 2332 qrNameEmpty = *o.NameEmpty 2333 } 2334 qNameEmpty := qrNameEmpty 2335 if qNameEmpty != "" { 2336 2337 if err := r.SetQueryParam("name__empty", qNameEmpty); err != nil { 2338 return err 2339 } 2340 } 2341 } 2342 2343 if o.NameIc != nil { 2344 2345 // query param name__ic 2346 var qrNameIc string 2347 2348 if o.NameIc != nil { 2349 qrNameIc = *o.NameIc 2350 } 2351 qNameIc := qrNameIc 2352 if qNameIc != "" { 2353 2354 if err := r.SetQueryParam("name__ic", qNameIc); err != nil { 2355 return err 2356 } 2357 } 2358 } 2359 2360 if o.NameIe != nil { 2361 2362 // query param name__ie 2363 var qrNameIe string 2364 2365 if o.NameIe != nil { 2366 qrNameIe = *o.NameIe 2367 } 2368 qNameIe := qrNameIe 2369 if qNameIe != "" { 2370 2371 if err := r.SetQueryParam("name__ie", qNameIe); err != nil { 2372 return err 2373 } 2374 } 2375 } 2376 2377 if o.NameIew != nil { 2378 2379 // query param name__iew 2380 var qrNameIew string 2381 2382 if o.NameIew != nil { 2383 qrNameIew = *o.NameIew 2384 } 2385 qNameIew := qrNameIew 2386 if qNameIew != "" { 2387 2388 if err := r.SetQueryParam("name__iew", qNameIew); err != nil { 2389 return err 2390 } 2391 } 2392 } 2393 2394 if o.NameIsw != nil { 2395 2396 // query param name__isw 2397 var qrNameIsw string 2398 2399 if o.NameIsw != nil { 2400 qrNameIsw = *o.NameIsw 2401 } 2402 qNameIsw := qrNameIsw 2403 if qNameIsw != "" { 2404 2405 if err := r.SetQueryParam("name__isw", qNameIsw); err != nil { 2406 return err 2407 } 2408 } 2409 } 2410 2411 if o.Namen != nil { 2412 2413 // query param name__n 2414 var qrNamen string 2415 2416 if o.Namen != nil { 2417 qrNamen = *o.Namen 2418 } 2419 qNamen := qrNamen 2420 if qNamen != "" { 2421 2422 if err := r.SetQueryParam("name__n", qNamen); err != nil { 2423 return err 2424 } 2425 } 2426 } 2427 2428 if o.NameNic != nil { 2429 2430 // query param name__nic 2431 var qrNameNic string 2432 2433 if o.NameNic != nil { 2434 qrNameNic = *o.NameNic 2435 } 2436 qNameNic := qrNameNic 2437 if qNameNic != "" { 2438 2439 if err := r.SetQueryParam("name__nic", qNameNic); err != nil { 2440 return err 2441 } 2442 } 2443 } 2444 2445 if o.NameNie != nil { 2446 2447 // query param name__nie 2448 var qrNameNie string 2449 2450 if o.NameNie != nil { 2451 qrNameNie = *o.NameNie 2452 } 2453 qNameNie := qrNameNie 2454 if qNameNie != "" { 2455 2456 if err := r.SetQueryParam("name__nie", qNameNie); err != nil { 2457 return err 2458 } 2459 } 2460 } 2461 2462 if o.NameNiew != nil { 2463 2464 // query param name__niew 2465 var qrNameNiew string 2466 2467 if o.NameNiew != nil { 2468 qrNameNiew = *o.NameNiew 2469 } 2470 qNameNiew := qrNameNiew 2471 if qNameNiew != "" { 2472 2473 if err := r.SetQueryParam("name__niew", qNameNiew); err != nil { 2474 return err 2475 } 2476 } 2477 } 2478 2479 if o.NameNisw != nil { 2480 2481 // query param name__nisw 2482 var qrNameNisw string 2483 2484 if o.NameNisw != nil { 2485 qrNameNisw = *o.NameNisw 2486 } 2487 qNameNisw := qrNameNisw 2488 if qNameNisw != "" { 2489 2490 if err := r.SetQueryParam("name__nisw", qNameNisw); err != nil { 2491 return err 2492 } 2493 } 2494 } 2495 2496 if o.Offset != nil { 2497 2498 // query param offset 2499 var qrOffset int64 2500 2501 if o.Offset != nil { 2502 qrOffset = *o.Offset 2503 } 2504 qOffset := swag.FormatInt64(qrOffset) 2505 if qOffset != "" { 2506 2507 if err := r.SetQueryParam("offset", qOffset); err != nil { 2508 return err 2509 } 2510 } 2511 } 2512 2513 if o.OuterDepth != nil { 2514 2515 // query param outer_depth 2516 var qrOuterDepth string 2517 2518 if o.OuterDepth != nil { 2519 qrOuterDepth = *o.OuterDepth 2520 } 2521 qOuterDepth := qrOuterDepth 2522 if qOuterDepth != "" { 2523 2524 if err := r.SetQueryParam("outer_depth", qOuterDepth); err != nil { 2525 return err 2526 } 2527 } 2528 } 2529 2530 if o.OuterDepthGt != nil { 2531 2532 // query param outer_depth__gt 2533 var qrOuterDepthGt string 2534 2535 if o.OuterDepthGt != nil { 2536 qrOuterDepthGt = *o.OuterDepthGt 2537 } 2538 qOuterDepthGt := qrOuterDepthGt 2539 if qOuterDepthGt != "" { 2540 2541 if err := r.SetQueryParam("outer_depth__gt", qOuterDepthGt); err != nil { 2542 return err 2543 } 2544 } 2545 } 2546 2547 if o.OuterDepthGte != nil { 2548 2549 // query param outer_depth__gte 2550 var qrOuterDepthGte string 2551 2552 if o.OuterDepthGte != nil { 2553 qrOuterDepthGte = *o.OuterDepthGte 2554 } 2555 qOuterDepthGte := qrOuterDepthGte 2556 if qOuterDepthGte != "" { 2557 2558 if err := r.SetQueryParam("outer_depth__gte", qOuterDepthGte); err != nil { 2559 return err 2560 } 2561 } 2562 } 2563 2564 if o.OuterDepthLt != nil { 2565 2566 // query param outer_depth__lt 2567 var qrOuterDepthLt string 2568 2569 if o.OuterDepthLt != nil { 2570 qrOuterDepthLt = *o.OuterDepthLt 2571 } 2572 qOuterDepthLt := qrOuterDepthLt 2573 if qOuterDepthLt != "" { 2574 2575 if err := r.SetQueryParam("outer_depth__lt", qOuterDepthLt); err != nil { 2576 return err 2577 } 2578 } 2579 } 2580 2581 if o.OuterDepthLte != nil { 2582 2583 // query param outer_depth__lte 2584 var qrOuterDepthLte string 2585 2586 if o.OuterDepthLte != nil { 2587 qrOuterDepthLte = *o.OuterDepthLte 2588 } 2589 qOuterDepthLte := qrOuterDepthLte 2590 if qOuterDepthLte != "" { 2591 2592 if err := r.SetQueryParam("outer_depth__lte", qOuterDepthLte); err != nil { 2593 return err 2594 } 2595 } 2596 } 2597 2598 if o.OuterDepthn != nil { 2599 2600 // query param outer_depth__n 2601 var qrOuterDepthn string 2602 2603 if o.OuterDepthn != nil { 2604 qrOuterDepthn = *o.OuterDepthn 2605 } 2606 qOuterDepthn := qrOuterDepthn 2607 if qOuterDepthn != "" { 2608 2609 if err := r.SetQueryParam("outer_depth__n", qOuterDepthn); err != nil { 2610 return err 2611 } 2612 } 2613 } 2614 2615 if o.OuterUnit != nil { 2616 2617 // query param outer_unit 2618 var qrOuterUnit string 2619 2620 if o.OuterUnit != nil { 2621 qrOuterUnit = *o.OuterUnit 2622 } 2623 qOuterUnit := qrOuterUnit 2624 if qOuterUnit != "" { 2625 2626 if err := r.SetQueryParam("outer_unit", qOuterUnit); err != nil { 2627 return err 2628 } 2629 } 2630 } 2631 2632 if o.OuterUnitn != nil { 2633 2634 // query param outer_unit__n 2635 var qrOuterUnitn string 2636 2637 if o.OuterUnitn != nil { 2638 qrOuterUnitn = *o.OuterUnitn 2639 } 2640 qOuterUnitn := qrOuterUnitn 2641 if qOuterUnitn != "" { 2642 2643 if err := r.SetQueryParam("outer_unit__n", qOuterUnitn); err != nil { 2644 return err 2645 } 2646 } 2647 } 2648 2649 if o.OuterWidth != nil { 2650 2651 // query param outer_width 2652 var qrOuterWidth string 2653 2654 if o.OuterWidth != nil { 2655 qrOuterWidth = *o.OuterWidth 2656 } 2657 qOuterWidth := qrOuterWidth 2658 if qOuterWidth != "" { 2659 2660 if err := r.SetQueryParam("outer_width", qOuterWidth); err != nil { 2661 return err 2662 } 2663 } 2664 } 2665 2666 if o.OuterWidthGt != nil { 2667 2668 // query param outer_width__gt 2669 var qrOuterWidthGt string 2670 2671 if o.OuterWidthGt != nil { 2672 qrOuterWidthGt = *o.OuterWidthGt 2673 } 2674 qOuterWidthGt := qrOuterWidthGt 2675 if qOuterWidthGt != "" { 2676 2677 if err := r.SetQueryParam("outer_width__gt", qOuterWidthGt); err != nil { 2678 return err 2679 } 2680 } 2681 } 2682 2683 if o.OuterWidthGte != nil { 2684 2685 // query param outer_width__gte 2686 var qrOuterWidthGte string 2687 2688 if o.OuterWidthGte != nil { 2689 qrOuterWidthGte = *o.OuterWidthGte 2690 } 2691 qOuterWidthGte := qrOuterWidthGte 2692 if qOuterWidthGte != "" { 2693 2694 if err := r.SetQueryParam("outer_width__gte", qOuterWidthGte); err != nil { 2695 return err 2696 } 2697 } 2698 } 2699 2700 if o.OuterWidthLt != nil { 2701 2702 // query param outer_width__lt 2703 var qrOuterWidthLt string 2704 2705 if o.OuterWidthLt != nil { 2706 qrOuterWidthLt = *o.OuterWidthLt 2707 } 2708 qOuterWidthLt := qrOuterWidthLt 2709 if qOuterWidthLt != "" { 2710 2711 if err := r.SetQueryParam("outer_width__lt", qOuterWidthLt); err != nil { 2712 return err 2713 } 2714 } 2715 } 2716 2717 if o.OuterWidthLte != nil { 2718 2719 // query param outer_width__lte 2720 var qrOuterWidthLte string 2721 2722 if o.OuterWidthLte != nil { 2723 qrOuterWidthLte = *o.OuterWidthLte 2724 } 2725 qOuterWidthLte := qrOuterWidthLte 2726 if qOuterWidthLte != "" { 2727 2728 if err := r.SetQueryParam("outer_width__lte", qOuterWidthLte); err != nil { 2729 return err 2730 } 2731 } 2732 } 2733 2734 if o.OuterWidthn != nil { 2735 2736 // query param outer_width__n 2737 var qrOuterWidthn string 2738 2739 if o.OuterWidthn != nil { 2740 qrOuterWidthn = *o.OuterWidthn 2741 } 2742 qOuterWidthn := qrOuterWidthn 2743 if qOuterWidthn != "" { 2744 2745 if err := r.SetQueryParam("outer_width__n", qOuterWidthn); err != nil { 2746 return err 2747 } 2748 } 2749 } 2750 2751 if o.Q != nil { 2752 2753 // query param q 2754 var qrQ string 2755 2756 if o.Q != nil { 2757 qrQ = *o.Q 2758 } 2759 qQ := qrQ 2760 if qQ != "" { 2761 2762 if err := r.SetQueryParam("q", qQ); err != nil { 2763 return err 2764 } 2765 } 2766 } 2767 2768 if o.Region != nil { 2769 2770 // query param region 2771 var qrRegion string 2772 2773 if o.Region != nil { 2774 qrRegion = *o.Region 2775 } 2776 qRegion := qrRegion 2777 if qRegion != "" { 2778 2779 if err := r.SetQueryParam("region", qRegion); err != nil { 2780 return err 2781 } 2782 } 2783 } 2784 2785 if o.Regionn != nil { 2786 2787 // query param region__n 2788 var qrRegionn string 2789 2790 if o.Regionn != nil { 2791 qrRegionn = *o.Regionn 2792 } 2793 qRegionn := qrRegionn 2794 if qRegionn != "" { 2795 2796 if err := r.SetQueryParam("region__n", qRegionn); err != nil { 2797 return err 2798 } 2799 } 2800 } 2801 2802 if o.RegionID != nil { 2803 2804 // query param region_id 2805 var qrRegionID string 2806 2807 if o.RegionID != nil { 2808 qrRegionID = *o.RegionID 2809 } 2810 qRegionID := qrRegionID 2811 if qRegionID != "" { 2812 2813 if err := r.SetQueryParam("region_id", qRegionID); err != nil { 2814 return err 2815 } 2816 } 2817 } 2818 2819 if o.RegionIDn != nil { 2820 2821 // query param region_id__n 2822 var qrRegionIDn string 2823 2824 if o.RegionIDn != nil { 2825 qrRegionIDn = *o.RegionIDn 2826 } 2827 qRegionIDn := qrRegionIDn 2828 if qRegionIDn != "" { 2829 2830 if err := r.SetQueryParam("region_id__n", qRegionIDn); err != nil { 2831 return err 2832 } 2833 } 2834 } 2835 2836 if o.Role != nil { 2837 2838 // query param role 2839 var qrRole string 2840 2841 if o.Role != nil { 2842 qrRole = *o.Role 2843 } 2844 qRole := qrRole 2845 if qRole != "" { 2846 2847 if err := r.SetQueryParam("role", qRole); err != nil { 2848 return err 2849 } 2850 } 2851 } 2852 2853 if o.Rolen != nil { 2854 2855 // query param role__n 2856 var qrRolen string 2857 2858 if o.Rolen != nil { 2859 qrRolen = *o.Rolen 2860 } 2861 qRolen := qrRolen 2862 if qRolen != "" { 2863 2864 if err := r.SetQueryParam("role__n", qRolen); err != nil { 2865 return err 2866 } 2867 } 2868 } 2869 2870 if o.RoleID != nil { 2871 2872 // query param role_id 2873 var qrRoleID string 2874 2875 if o.RoleID != nil { 2876 qrRoleID = *o.RoleID 2877 } 2878 qRoleID := qrRoleID 2879 if qRoleID != "" { 2880 2881 if err := r.SetQueryParam("role_id", qRoleID); err != nil { 2882 return err 2883 } 2884 } 2885 } 2886 2887 if o.RoleIDn != nil { 2888 2889 // query param role_id__n 2890 var qrRoleIDn string 2891 2892 if o.RoleIDn != nil { 2893 qrRoleIDn = *o.RoleIDn 2894 } 2895 qRoleIDn := qrRoleIDn 2896 if qRoleIDn != "" { 2897 2898 if err := r.SetQueryParam("role_id__n", qRoleIDn); err != nil { 2899 return err 2900 } 2901 } 2902 } 2903 2904 if o.Serial != nil { 2905 2906 // query param serial 2907 var qrSerial string 2908 2909 if o.Serial != nil { 2910 qrSerial = *o.Serial 2911 } 2912 qSerial := qrSerial 2913 if qSerial != "" { 2914 2915 if err := r.SetQueryParam("serial", qSerial); err != nil { 2916 return err 2917 } 2918 } 2919 } 2920 2921 if o.Site != nil { 2922 2923 // query param site 2924 var qrSite string 2925 2926 if o.Site != nil { 2927 qrSite = *o.Site 2928 } 2929 qSite := qrSite 2930 if qSite != "" { 2931 2932 if err := r.SetQueryParam("site", qSite); err != nil { 2933 return err 2934 } 2935 } 2936 } 2937 2938 if o.Siten != nil { 2939 2940 // query param site__n 2941 var qrSiten string 2942 2943 if o.Siten != nil { 2944 qrSiten = *o.Siten 2945 } 2946 qSiten := qrSiten 2947 if qSiten != "" { 2948 2949 if err := r.SetQueryParam("site__n", qSiten); err != nil { 2950 return err 2951 } 2952 } 2953 } 2954 2955 if o.SiteGroup != nil { 2956 2957 // query param site_group 2958 var qrSiteGroup string 2959 2960 if o.SiteGroup != nil { 2961 qrSiteGroup = *o.SiteGroup 2962 } 2963 qSiteGroup := qrSiteGroup 2964 if qSiteGroup != "" { 2965 2966 if err := r.SetQueryParam("site_group", qSiteGroup); err != nil { 2967 return err 2968 } 2969 } 2970 } 2971 2972 if o.SiteGroupn != nil { 2973 2974 // query param site_group__n 2975 var qrSiteGroupn string 2976 2977 if o.SiteGroupn != nil { 2978 qrSiteGroupn = *o.SiteGroupn 2979 } 2980 qSiteGroupn := qrSiteGroupn 2981 if qSiteGroupn != "" { 2982 2983 if err := r.SetQueryParam("site_group__n", qSiteGroupn); err != nil { 2984 return err 2985 } 2986 } 2987 } 2988 2989 if o.SiteGroupID != nil { 2990 2991 // query param site_group_id 2992 var qrSiteGroupID string 2993 2994 if o.SiteGroupID != nil { 2995 qrSiteGroupID = *o.SiteGroupID 2996 } 2997 qSiteGroupID := qrSiteGroupID 2998 if qSiteGroupID != "" { 2999 3000 if err := r.SetQueryParam("site_group_id", qSiteGroupID); err != nil { 3001 return err 3002 } 3003 } 3004 } 3005 3006 if o.SiteGroupIDn != nil { 3007 3008 // query param site_group_id__n 3009 var qrSiteGroupIDn string 3010 3011 if o.SiteGroupIDn != nil { 3012 qrSiteGroupIDn = *o.SiteGroupIDn 3013 } 3014 qSiteGroupIDn := qrSiteGroupIDn 3015 if qSiteGroupIDn != "" { 3016 3017 if err := r.SetQueryParam("site_group_id__n", qSiteGroupIDn); err != nil { 3018 return err 3019 } 3020 } 3021 } 3022 3023 if o.SiteID != nil { 3024 3025 // query param site_id 3026 var qrSiteID string 3027 3028 if o.SiteID != nil { 3029 qrSiteID = *o.SiteID 3030 } 3031 qSiteID := qrSiteID 3032 if qSiteID != "" { 3033 3034 if err := r.SetQueryParam("site_id", qSiteID); err != nil { 3035 return err 3036 } 3037 } 3038 } 3039 3040 if o.SiteIDn != nil { 3041 3042 // query param site_id__n 3043 var qrSiteIDn string 3044 3045 if o.SiteIDn != nil { 3046 qrSiteIDn = *o.SiteIDn 3047 } 3048 qSiteIDn := qrSiteIDn 3049 if qSiteIDn != "" { 3050 3051 if err := r.SetQueryParam("site_id__n", qSiteIDn); err != nil { 3052 return err 3053 } 3054 } 3055 } 3056 3057 if o.Status != nil { 3058 3059 // query param status 3060 var qrStatus string 3061 3062 if o.Status != nil { 3063 qrStatus = *o.Status 3064 } 3065 qStatus := qrStatus 3066 if qStatus != "" { 3067 3068 if err := r.SetQueryParam("status", qStatus); err != nil { 3069 return err 3070 } 3071 } 3072 } 3073 3074 if o.Statusn != nil { 3075 3076 // query param status__n 3077 var qrStatusn string 3078 3079 if o.Statusn != nil { 3080 qrStatusn = *o.Statusn 3081 } 3082 qStatusn := qrStatusn 3083 if qStatusn != "" { 3084 3085 if err := r.SetQueryParam("status__n", qStatusn); err != nil { 3086 return err 3087 } 3088 } 3089 } 3090 3091 if o.Tag != nil { 3092 3093 // query param tag 3094 var qrTag string 3095 3096 if o.Tag != nil { 3097 qrTag = *o.Tag 3098 } 3099 qTag := qrTag 3100 if qTag != "" { 3101 3102 if err := r.SetQueryParam("tag", qTag); err != nil { 3103 return err 3104 } 3105 } 3106 } 3107 3108 if o.Tagn != nil { 3109 3110 // query param tag__n 3111 var qrTagn string 3112 3113 if o.Tagn != nil { 3114 qrTagn = *o.Tagn 3115 } 3116 qTagn := qrTagn 3117 if qTagn != "" { 3118 3119 if err := r.SetQueryParam("tag__n", qTagn); err != nil { 3120 return err 3121 } 3122 } 3123 } 3124 3125 if o.Tenant != nil { 3126 3127 // query param tenant 3128 var qrTenant string 3129 3130 if o.Tenant != nil { 3131 qrTenant = *o.Tenant 3132 } 3133 qTenant := qrTenant 3134 if qTenant != "" { 3135 3136 if err := r.SetQueryParam("tenant", qTenant); err != nil { 3137 return err 3138 } 3139 } 3140 } 3141 3142 if o.Tenantn != nil { 3143 3144 // query param tenant__n 3145 var qrTenantn string 3146 3147 if o.Tenantn != nil { 3148 qrTenantn = *o.Tenantn 3149 } 3150 qTenantn := qrTenantn 3151 if qTenantn != "" { 3152 3153 if err := r.SetQueryParam("tenant__n", qTenantn); err != nil { 3154 return err 3155 } 3156 } 3157 } 3158 3159 if o.TenantGroup != nil { 3160 3161 // query param tenant_group 3162 var qrTenantGroup string 3163 3164 if o.TenantGroup != nil { 3165 qrTenantGroup = *o.TenantGroup 3166 } 3167 qTenantGroup := qrTenantGroup 3168 if qTenantGroup != "" { 3169 3170 if err := r.SetQueryParam("tenant_group", qTenantGroup); err != nil { 3171 return err 3172 } 3173 } 3174 } 3175 3176 if o.TenantGroupn != nil { 3177 3178 // query param tenant_group__n 3179 var qrTenantGroupn string 3180 3181 if o.TenantGroupn != nil { 3182 qrTenantGroupn = *o.TenantGroupn 3183 } 3184 qTenantGroupn := qrTenantGroupn 3185 if qTenantGroupn != "" { 3186 3187 if err := r.SetQueryParam("tenant_group__n", qTenantGroupn); err != nil { 3188 return err 3189 } 3190 } 3191 } 3192 3193 if o.TenantGroupID != nil { 3194 3195 // query param tenant_group_id 3196 var qrTenantGroupID string 3197 3198 if o.TenantGroupID != nil { 3199 qrTenantGroupID = *o.TenantGroupID 3200 } 3201 qTenantGroupID := qrTenantGroupID 3202 if qTenantGroupID != "" { 3203 3204 if err := r.SetQueryParam("tenant_group_id", qTenantGroupID); err != nil { 3205 return err 3206 } 3207 } 3208 } 3209 3210 if o.TenantGroupIDn != nil { 3211 3212 // query param tenant_group_id__n 3213 var qrTenantGroupIDn string 3214 3215 if o.TenantGroupIDn != nil { 3216 qrTenantGroupIDn = *o.TenantGroupIDn 3217 } 3218 qTenantGroupIDn := qrTenantGroupIDn 3219 if qTenantGroupIDn != "" { 3220 3221 if err := r.SetQueryParam("tenant_group_id__n", qTenantGroupIDn); err != nil { 3222 return err 3223 } 3224 } 3225 } 3226 3227 if o.TenantID != nil { 3228 3229 // query param tenant_id 3230 var qrTenantID string 3231 3232 if o.TenantID != nil { 3233 qrTenantID = *o.TenantID 3234 } 3235 qTenantID := qrTenantID 3236 if qTenantID != "" { 3237 3238 if err := r.SetQueryParam("tenant_id", qTenantID); err != nil { 3239 return err 3240 } 3241 } 3242 } 3243 3244 if o.TenantIDn != nil { 3245 3246 // query param tenant_id__n 3247 var qrTenantIDn string 3248 3249 if o.TenantIDn != nil { 3250 qrTenantIDn = *o.TenantIDn 3251 } 3252 qTenantIDn := qrTenantIDn 3253 if qTenantIDn != "" { 3254 3255 if err := r.SetQueryParam("tenant_id__n", qTenantIDn); err != nil { 3256 return err 3257 } 3258 } 3259 } 3260 3261 if o.Type != nil { 3262 3263 // query param type 3264 var qrType string 3265 3266 if o.Type != nil { 3267 qrType = *o.Type 3268 } 3269 qType := qrType 3270 if qType != "" { 3271 3272 if err := r.SetQueryParam("type", qType); err != nil { 3273 return err 3274 } 3275 } 3276 } 3277 3278 if o.Typen != nil { 3279 3280 // query param type__n 3281 var qrTypen string 3282 3283 if o.Typen != nil { 3284 qrTypen = *o.Typen 3285 } 3286 qTypen := qrTypen 3287 if qTypen != "" { 3288 3289 if err := r.SetQueryParam("type__n", qTypen); err != nil { 3290 return err 3291 } 3292 } 3293 } 3294 3295 if o.UHeight != nil { 3296 3297 // query param u_height 3298 var qrUHeight string 3299 3300 if o.UHeight != nil { 3301 qrUHeight = *o.UHeight 3302 } 3303 qUHeight := qrUHeight 3304 if qUHeight != "" { 3305 3306 if err := r.SetQueryParam("u_height", qUHeight); err != nil { 3307 return err 3308 } 3309 } 3310 } 3311 3312 if o.UHeightGt != nil { 3313 3314 // query param u_height__gt 3315 var qrUHeightGt string 3316 3317 if o.UHeightGt != nil { 3318 qrUHeightGt = *o.UHeightGt 3319 } 3320 qUHeightGt := qrUHeightGt 3321 if qUHeightGt != "" { 3322 3323 if err := r.SetQueryParam("u_height__gt", qUHeightGt); err != nil { 3324 return err 3325 } 3326 } 3327 } 3328 3329 if o.UHeightGte != nil { 3330 3331 // query param u_height__gte 3332 var qrUHeightGte string 3333 3334 if o.UHeightGte != nil { 3335 qrUHeightGte = *o.UHeightGte 3336 } 3337 qUHeightGte := qrUHeightGte 3338 if qUHeightGte != "" { 3339 3340 if err := r.SetQueryParam("u_height__gte", qUHeightGte); err != nil { 3341 return err 3342 } 3343 } 3344 } 3345 3346 if o.UHeightLt != nil { 3347 3348 // query param u_height__lt 3349 var qrUHeightLt string 3350 3351 if o.UHeightLt != nil { 3352 qrUHeightLt = *o.UHeightLt 3353 } 3354 qUHeightLt := qrUHeightLt 3355 if qUHeightLt != "" { 3356 3357 if err := r.SetQueryParam("u_height__lt", qUHeightLt); err != nil { 3358 return err 3359 } 3360 } 3361 } 3362 3363 if o.UHeightLte != nil { 3364 3365 // query param u_height__lte 3366 var qrUHeightLte string 3367 3368 if o.UHeightLte != nil { 3369 qrUHeightLte = *o.UHeightLte 3370 } 3371 qUHeightLte := qrUHeightLte 3372 if qUHeightLte != "" { 3373 3374 if err := r.SetQueryParam("u_height__lte", qUHeightLte); err != nil { 3375 return err 3376 } 3377 } 3378 } 3379 3380 if o.UHeightn != nil { 3381 3382 // query param u_height__n 3383 var qrUHeightn string 3384 3385 if o.UHeightn != nil { 3386 qrUHeightn = *o.UHeightn 3387 } 3388 qUHeightn := qrUHeightn 3389 if qUHeightn != "" { 3390 3391 if err := r.SetQueryParam("u_height__n", qUHeightn); err != nil { 3392 return err 3393 } 3394 } 3395 } 3396 3397 if o.Width != nil { 3398 3399 // query param width 3400 var qrWidth string 3401 3402 if o.Width != nil { 3403 qrWidth = *o.Width 3404 } 3405 qWidth := qrWidth 3406 if qWidth != "" { 3407 3408 if err := r.SetQueryParam("width", qWidth); err != nil { 3409 return err 3410 } 3411 } 3412 } 3413 3414 if o.Widthn != nil { 3415 3416 // query param width__n 3417 var qrWidthn string 3418 3419 if o.Widthn != nil { 3420 qrWidthn = *o.Widthn 3421 } 3422 qWidthn := qrWidthn 3423 if qWidthn != "" { 3424 3425 if err := r.SetQueryParam("width__n", qWidthn); err != nil { 3426 return err 3427 } 3428 } 3429 } 3430 3431 if len(res) > 0 { 3432 return errors.CompositeValidationError(res...) 3433 } 3434 return nil 3435 }