github.com/digitalocean/go-netbox@v0.0.2/netbox/client/dcim/dcim_rear_ports_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 // NewDcimRearPortsListParams creates a new DcimRearPortsListParams 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 NewDcimRearPortsListParams() *DcimRearPortsListParams { 42 return &DcimRearPortsListParams{ 43 timeout: cr.DefaultTimeout, 44 } 45 } 46 47 // NewDcimRearPortsListParamsWithTimeout creates a new DcimRearPortsListParams object 48 // with the ability to set a timeout on a request. 49 func NewDcimRearPortsListParamsWithTimeout(timeout time.Duration) *DcimRearPortsListParams { 50 return &DcimRearPortsListParams{ 51 timeout: timeout, 52 } 53 } 54 55 // NewDcimRearPortsListParamsWithContext creates a new DcimRearPortsListParams object 56 // with the ability to set a context for a request. 57 func NewDcimRearPortsListParamsWithContext(ctx context.Context) *DcimRearPortsListParams { 58 return &DcimRearPortsListParams{ 59 Context: ctx, 60 } 61 } 62 63 // NewDcimRearPortsListParamsWithHTTPClient creates a new DcimRearPortsListParams object 64 // with the ability to set a custom HTTPClient for a request. 65 func NewDcimRearPortsListParamsWithHTTPClient(client *http.Client) *DcimRearPortsListParams { 66 return &DcimRearPortsListParams{ 67 HTTPClient: client, 68 } 69 } 70 71 /* DcimRearPortsListParams contains all the parameters to send to the API endpoint 72 for the dcim rear ports list operation. 73 74 Typically these are written to a http.Request. 75 */ 76 type DcimRearPortsListParams struct { 77 78 // Cabled. 79 Cabled *string 80 81 // Created. 82 Created *string 83 84 // CreatedGte. 85 CreatedGte *string 86 87 // CreatedLte. 88 CreatedLte *string 89 90 // Description. 91 Description *string 92 93 // DescriptionEmpty. 94 DescriptionEmpty *string 95 96 // DescriptionIc. 97 DescriptionIc *string 98 99 // DescriptionIe. 100 DescriptionIe *string 101 102 // DescriptionIew. 103 DescriptionIew *string 104 105 // DescriptionIsw. 106 DescriptionIsw *string 107 108 // Descriptionn. 109 Descriptionn *string 110 111 // DescriptionNic. 112 DescriptionNic *string 113 114 // DescriptionNie. 115 DescriptionNie *string 116 117 // DescriptionNiew. 118 DescriptionNiew *string 119 120 // DescriptionNisw. 121 DescriptionNisw *string 122 123 // Device. 124 Device *string 125 126 // Devicen. 127 Devicen *string 128 129 // DeviceID. 130 DeviceID *string 131 132 // DeviceIDn. 133 DeviceIDn *string 134 135 // ID. 136 ID *string 137 138 // IDGt. 139 IDGt *string 140 141 // IDGte. 142 IDGte *string 143 144 // IDLt. 145 IDLt *string 146 147 // IDLte. 148 IDLte *string 149 150 // IDn. 151 IDn *string 152 153 // Label. 154 Label *string 155 156 // LabelEmpty. 157 LabelEmpty *string 158 159 // LabelIc. 160 LabelIc *string 161 162 // LabelIe. 163 LabelIe *string 164 165 // LabelIew. 166 LabelIew *string 167 168 // LabelIsw. 169 LabelIsw *string 170 171 // Labeln. 172 Labeln *string 173 174 // LabelNic. 175 LabelNic *string 176 177 // LabelNie. 178 LabelNie *string 179 180 // LabelNiew. 181 LabelNiew *string 182 183 // LabelNisw. 184 LabelNisw *string 185 186 // LastUpdated. 187 LastUpdated *string 188 189 // LastUpdatedGte. 190 LastUpdatedGte *string 191 192 // LastUpdatedLte. 193 LastUpdatedLte *string 194 195 /* Limit. 196 197 Number of results to return per page. 198 */ 199 Limit *int64 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 // Positions. 241 Positions *string 242 243 // PositionsGt. 244 PositionsGt *string 245 246 // PositionsGte. 247 PositionsGte *string 248 249 // PositionsLt. 250 PositionsLt *string 251 252 // PositionsLte. 253 PositionsLte *string 254 255 // Positionsn. 256 Positionsn *string 257 258 // Q. 259 Q *string 260 261 // Region. 262 Region *string 263 264 // Regionn. 265 Regionn *string 266 267 // RegionID. 268 RegionID *string 269 270 // RegionIDn. 271 RegionIDn *string 272 273 // Site. 274 Site *string 275 276 // Siten. 277 Siten *string 278 279 // SiteGroup. 280 SiteGroup *string 281 282 // SiteGroupn. 283 SiteGroupn *string 284 285 // SiteGroupID. 286 SiteGroupID *string 287 288 // SiteGroupIDn. 289 SiteGroupIDn *string 290 291 // SiteID. 292 SiteID *string 293 294 // SiteIDn. 295 SiteIDn *string 296 297 // Tag. 298 Tag *string 299 300 // Tagn. 301 Tagn *string 302 303 // Type. 304 Type *string 305 306 // Typen. 307 Typen *string 308 309 timeout time.Duration 310 Context context.Context 311 HTTPClient *http.Client 312 } 313 314 // WithDefaults hydrates default values in the dcim rear ports list params (not the query body). 315 // 316 // All values with no default are reset to their zero value. 317 func (o *DcimRearPortsListParams) WithDefaults() *DcimRearPortsListParams { 318 o.SetDefaults() 319 return o 320 } 321 322 // SetDefaults hydrates default values in the dcim rear ports list params (not the query body). 323 // 324 // All values with no default are reset to their zero value. 325 func (o *DcimRearPortsListParams) SetDefaults() { 326 // no default values defined for this parameter 327 } 328 329 // WithTimeout adds the timeout to the dcim rear ports list params 330 func (o *DcimRearPortsListParams) WithTimeout(timeout time.Duration) *DcimRearPortsListParams { 331 o.SetTimeout(timeout) 332 return o 333 } 334 335 // SetTimeout adds the timeout to the dcim rear ports list params 336 func (o *DcimRearPortsListParams) SetTimeout(timeout time.Duration) { 337 o.timeout = timeout 338 } 339 340 // WithContext adds the context to the dcim rear ports list params 341 func (o *DcimRearPortsListParams) WithContext(ctx context.Context) *DcimRearPortsListParams { 342 o.SetContext(ctx) 343 return o 344 } 345 346 // SetContext adds the context to the dcim rear ports list params 347 func (o *DcimRearPortsListParams) SetContext(ctx context.Context) { 348 o.Context = ctx 349 } 350 351 // WithHTTPClient adds the HTTPClient to the dcim rear ports list params 352 func (o *DcimRearPortsListParams) WithHTTPClient(client *http.Client) *DcimRearPortsListParams { 353 o.SetHTTPClient(client) 354 return o 355 } 356 357 // SetHTTPClient adds the HTTPClient to the dcim rear ports list params 358 func (o *DcimRearPortsListParams) SetHTTPClient(client *http.Client) { 359 o.HTTPClient = client 360 } 361 362 // WithCabled adds the cabled to the dcim rear ports list params 363 func (o *DcimRearPortsListParams) WithCabled(cabled *string) *DcimRearPortsListParams { 364 o.SetCabled(cabled) 365 return o 366 } 367 368 // SetCabled adds the cabled to the dcim rear ports list params 369 func (o *DcimRearPortsListParams) SetCabled(cabled *string) { 370 o.Cabled = cabled 371 } 372 373 // WithCreated adds the created to the dcim rear ports list params 374 func (o *DcimRearPortsListParams) WithCreated(created *string) *DcimRearPortsListParams { 375 o.SetCreated(created) 376 return o 377 } 378 379 // SetCreated adds the created to the dcim rear ports list params 380 func (o *DcimRearPortsListParams) SetCreated(created *string) { 381 o.Created = created 382 } 383 384 // WithCreatedGte adds the createdGte to the dcim rear ports list params 385 func (o *DcimRearPortsListParams) WithCreatedGte(createdGte *string) *DcimRearPortsListParams { 386 o.SetCreatedGte(createdGte) 387 return o 388 } 389 390 // SetCreatedGte adds the createdGte to the dcim rear ports list params 391 func (o *DcimRearPortsListParams) SetCreatedGte(createdGte *string) { 392 o.CreatedGte = createdGte 393 } 394 395 // WithCreatedLte adds the createdLte to the dcim rear ports list params 396 func (o *DcimRearPortsListParams) WithCreatedLte(createdLte *string) *DcimRearPortsListParams { 397 o.SetCreatedLte(createdLte) 398 return o 399 } 400 401 // SetCreatedLte adds the createdLte to the dcim rear ports list params 402 func (o *DcimRearPortsListParams) SetCreatedLte(createdLte *string) { 403 o.CreatedLte = createdLte 404 } 405 406 // WithDescription adds the description to the dcim rear ports list params 407 func (o *DcimRearPortsListParams) WithDescription(description *string) *DcimRearPortsListParams { 408 o.SetDescription(description) 409 return o 410 } 411 412 // SetDescription adds the description to the dcim rear ports list params 413 func (o *DcimRearPortsListParams) SetDescription(description *string) { 414 o.Description = description 415 } 416 417 // WithDescriptionEmpty adds the descriptionEmpty to the dcim rear ports list params 418 func (o *DcimRearPortsListParams) WithDescriptionEmpty(descriptionEmpty *string) *DcimRearPortsListParams { 419 o.SetDescriptionEmpty(descriptionEmpty) 420 return o 421 } 422 423 // SetDescriptionEmpty adds the descriptionEmpty to the dcim rear ports list params 424 func (o *DcimRearPortsListParams) SetDescriptionEmpty(descriptionEmpty *string) { 425 o.DescriptionEmpty = descriptionEmpty 426 } 427 428 // WithDescriptionIc adds the descriptionIc to the dcim rear ports list params 429 func (o *DcimRearPortsListParams) WithDescriptionIc(descriptionIc *string) *DcimRearPortsListParams { 430 o.SetDescriptionIc(descriptionIc) 431 return o 432 } 433 434 // SetDescriptionIc adds the descriptionIc to the dcim rear ports list params 435 func (o *DcimRearPortsListParams) SetDescriptionIc(descriptionIc *string) { 436 o.DescriptionIc = descriptionIc 437 } 438 439 // WithDescriptionIe adds the descriptionIe to the dcim rear ports list params 440 func (o *DcimRearPortsListParams) WithDescriptionIe(descriptionIe *string) *DcimRearPortsListParams { 441 o.SetDescriptionIe(descriptionIe) 442 return o 443 } 444 445 // SetDescriptionIe adds the descriptionIe to the dcim rear ports list params 446 func (o *DcimRearPortsListParams) SetDescriptionIe(descriptionIe *string) { 447 o.DescriptionIe = descriptionIe 448 } 449 450 // WithDescriptionIew adds the descriptionIew to the dcim rear ports list params 451 func (o *DcimRearPortsListParams) WithDescriptionIew(descriptionIew *string) *DcimRearPortsListParams { 452 o.SetDescriptionIew(descriptionIew) 453 return o 454 } 455 456 // SetDescriptionIew adds the descriptionIew to the dcim rear ports list params 457 func (o *DcimRearPortsListParams) SetDescriptionIew(descriptionIew *string) { 458 o.DescriptionIew = descriptionIew 459 } 460 461 // WithDescriptionIsw adds the descriptionIsw to the dcim rear ports list params 462 func (o *DcimRearPortsListParams) WithDescriptionIsw(descriptionIsw *string) *DcimRearPortsListParams { 463 o.SetDescriptionIsw(descriptionIsw) 464 return o 465 } 466 467 // SetDescriptionIsw adds the descriptionIsw to the dcim rear ports list params 468 func (o *DcimRearPortsListParams) SetDescriptionIsw(descriptionIsw *string) { 469 o.DescriptionIsw = descriptionIsw 470 } 471 472 // WithDescriptionn adds the descriptionn to the dcim rear ports list params 473 func (o *DcimRearPortsListParams) WithDescriptionn(descriptionn *string) *DcimRearPortsListParams { 474 o.SetDescriptionn(descriptionn) 475 return o 476 } 477 478 // SetDescriptionn adds the descriptionN to the dcim rear ports list params 479 func (o *DcimRearPortsListParams) SetDescriptionn(descriptionn *string) { 480 o.Descriptionn = descriptionn 481 } 482 483 // WithDescriptionNic adds the descriptionNic to the dcim rear ports list params 484 func (o *DcimRearPortsListParams) WithDescriptionNic(descriptionNic *string) *DcimRearPortsListParams { 485 o.SetDescriptionNic(descriptionNic) 486 return o 487 } 488 489 // SetDescriptionNic adds the descriptionNic to the dcim rear ports list params 490 func (o *DcimRearPortsListParams) SetDescriptionNic(descriptionNic *string) { 491 o.DescriptionNic = descriptionNic 492 } 493 494 // WithDescriptionNie adds the descriptionNie to the dcim rear ports list params 495 func (o *DcimRearPortsListParams) WithDescriptionNie(descriptionNie *string) *DcimRearPortsListParams { 496 o.SetDescriptionNie(descriptionNie) 497 return o 498 } 499 500 // SetDescriptionNie adds the descriptionNie to the dcim rear ports list params 501 func (o *DcimRearPortsListParams) SetDescriptionNie(descriptionNie *string) { 502 o.DescriptionNie = descriptionNie 503 } 504 505 // WithDescriptionNiew adds the descriptionNiew to the dcim rear ports list params 506 func (o *DcimRearPortsListParams) WithDescriptionNiew(descriptionNiew *string) *DcimRearPortsListParams { 507 o.SetDescriptionNiew(descriptionNiew) 508 return o 509 } 510 511 // SetDescriptionNiew adds the descriptionNiew to the dcim rear ports list params 512 func (o *DcimRearPortsListParams) SetDescriptionNiew(descriptionNiew *string) { 513 o.DescriptionNiew = descriptionNiew 514 } 515 516 // WithDescriptionNisw adds the descriptionNisw to the dcim rear ports list params 517 func (o *DcimRearPortsListParams) WithDescriptionNisw(descriptionNisw *string) *DcimRearPortsListParams { 518 o.SetDescriptionNisw(descriptionNisw) 519 return o 520 } 521 522 // SetDescriptionNisw adds the descriptionNisw to the dcim rear ports list params 523 func (o *DcimRearPortsListParams) SetDescriptionNisw(descriptionNisw *string) { 524 o.DescriptionNisw = descriptionNisw 525 } 526 527 // WithDevice adds the device to the dcim rear ports list params 528 func (o *DcimRearPortsListParams) WithDevice(device *string) *DcimRearPortsListParams { 529 o.SetDevice(device) 530 return o 531 } 532 533 // SetDevice adds the device to the dcim rear ports list params 534 func (o *DcimRearPortsListParams) SetDevice(device *string) { 535 o.Device = device 536 } 537 538 // WithDevicen adds the devicen to the dcim rear ports list params 539 func (o *DcimRearPortsListParams) WithDevicen(devicen *string) *DcimRearPortsListParams { 540 o.SetDevicen(devicen) 541 return o 542 } 543 544 // SetDevicen adds the deviceN to the dcim rear ports list params 545 func (o *DcimRearPortsListParams) SetDevicen(devicen *string) { 546 o.Devicen = devicen 547 } 548 549 // WithDeviceID adds the deviceID to the dcim rear ports list params 550 func (o *DcimRearPortsListParams) WithDeviceID(deviceID *string) *DcimRearPortsListParams { 551 o.SetDeviceID(deviceID) 552 return o 553 } 554 555 // SetDeviceID adds the deviceId to the dcim rear ports list params 556 func (o *DcimRearPortsListParams) SetDeviceID(deviceID *string) { 557 o.DeviceID = deviceID 558 } 559 560 // WithDeviceIDn adds the deviceIDn to the dcim rear ports list params 561 func (o *DcimRearPortsListParams) WithDeviceIDn(deviceIDn *string) *DcimRearPortsListParams { 562 o.SetDeviceIDn(deviceIDn) 563 return o 564 } 565 566 // SetDeviceIDn adds the deviceIdN to the dcim rear ports list params 567 func (o *DcimRearPortsListParams) SetDeviceIDn(deviceIDn *string) { 568 o.DeviceIDn = deviceIDn 569 } 570 571 // WithID adds the id to the dcim rear ports list params 572 func (o *DcimRearPortsListParams) WithID(id *string) *DcimRearPortsListParams { 573 o.SetID(id) 574 return o 575 } 576 577 // SetID adds the id to the dcim rear ports list params 578 func (o *DcimRearPortsListParams) SetID(id *string) { 579 o.ID = id 580 } 581 582 // WithIDGt adds the iDGt to the dcim rear ports list params 583 func (o *DcimRearPortsListParams) WithIDGt(iDGt *string) *DcimRearPortsListParams { 584 o.SetIDGt(iDGt) 585 return o 586 } 587 588 // SetIDGt adds the idGt to the dcim rear ports list params 589 func (o *DcimRearPortsListParams) SetIDGt(iDGt *string) { 590 o.IDGt = iDGt 591 } 592 593 // WithIDGte adds the iDGte to the dcim rear ports list params 594 func (o *DcimRearPortsListParams) WithIDGte(iDGte *string) *DcimRearPortsListParams { 595 o.SetIDGte(iDGte) 596 return o 597 } 598 599 // SetIDGte adds the idGte to the dcim rear ports list params 600 func (o *DcimRearPortsListParams) SetIDGte(iDGte *string) { 601 o.IDGte = iDGte 602 } 603 604 // WithIDLt adds the iDLt to the dcim rear ports list params 605 func (o *DcimRearPortsListParams) WithIDLt(iDLt *string) *DcimRearPortsListParams { 606 o.SetIDLt(iDLt) 607 return o 608 } 609 610 // SetIDLt adds the idLt to the dcim rear ports list params 611 func (o *DcimRearPortsListParams) SetIDLt(iDLt *string) { 612 o.IDLt = iDLt 613 } 614 615 // WithIDLte adds the iDLte to the dcim rear ports list params 616 func (o *DcimRearPortsListParams) WithIDLte(iDLte *string) *DcimRearPortsListParams { 617 o.SetIDLte(iDLte) 618 return o 619 } 620 621 // SetIDLte adds the idLte to the dcim rear ports list params 622 func (o *DcimRearPortsListParams) SetIDLte(iDLte *string) { 623 o.IDLte = iDLte 624 } 625 626 // WithIDn adds the iDn to the dcim rear ports list params 627 func (o *DcimRearPortsListParams) WithIDn(iDn *string) *DcimRearPortsListParams { 628 o.SetIDn(iDn) 629 return o 630 } 631 632 // SetIDn adds the idN to the dcim rear ports list params 633 func (o *DcimRearPortsListParams) SetIDn(iDn *string) { 634 o.IDn = iDn 635 } 636 637 // WithLabel adds the label to the dcim rear ports list params 638 func (o *DcimRearPortsListParams) WithLabel(label *string) *DcimRearPortsListParams { 639 o.SetLabel(label) 640 return o 641 } 642 643 // SetLabel adds the label to the dcim rear ports list params 644 func (o *DcimRearPortsListParams) SetLabel(label *string) { 645 o.Label = label 646 } 647 648 // WithLabelEmpty adds the labelEmpty to the dcim rear ports list params 649 func (o *DcimRearPortsListParams) WithLabelEmpty(labelEmpty *string) *DcimRearPortsListParams { 650 o.SetLabelEmpty(labelEmpty) 651 return o 652 } 653 654 // SetLabelEmpty adds the labelEmpty to the dcim rear ports list params 655 func (o *DcimRearPortsListParams) SetLabelEmpty(labelEmpty *string) { 656 o.LabelEmpty = labelEmpty 657 } 658 659 // WithLabelIc adds the labelIc to the dcim rear ports list params 660 func (o *DcimRearPortsListParams) WithLabelIc(labelIc *string) *DcimRearPortsListParams { 661 o.SetLabelIc(labelIc) 662 return o 663 } 664 665 // SetLabelIc adds the labelIc to the dcim rear ports list params 666 func (o *DcimRearPortsListParams) SetLabelIc(labelIc *string) { 667 o.LabelIc = labelIc 668 } 669 670 // WithLabelIe adds the labelIe to the dcim rear ports list params 671 func (o *DcimRearPortsListParams) WithLabelIe(labelIe *string) *DcimRearPortsListParams { 672 o.SetLabelIe(labelIe) 673 return o 674 } 675 676 // SetLabelIe adds the labelIe to the dcim rear ports list params 677 func (o *DcimRearPortsListParams) SetLabelIe(labelIe *string) { 678 o.LabelIe = labelIe 679 } 680 681 // WithLabelIew adds the labelIew to the dcim rear ports list params 682 func (o *DcimRearPortsListParams) WithLabelIew(labelIew *string) *DcimRearPortsListParams { 683 o.SetLabelIew(labelIew) 684 return o 685 } 686 687 // SetLabelIew adds the labelIew to the dcim rear ports list params 688 func (o *DcimRearPortsListParams) SetLabelIew(labelIew *string) { 689 o.LabelIew = labelIew 690 } 691 692 // WithLabelIsw adds the labelIsw to the dcim rear ports list params 693 func (o *DcimRearPortsListParams) WithLabelIsw(labelIsw *string) *DcimRearPortsListParams { 694 o.SetLabelIsw(labelIsw) 695 return o 696 } 697 698 // SetLabelIsw adds the labelIsw to the dcim rear ports list params 699 func (o *DcimRearPortsListParams) SetLabelIsw(labelIsw *string) { 700 o.LabelIsw = labelIsw 701 } 702 703 // WithLabeln adds the labeln to the dcim rear ports list params 704 func (o *DcimRearPortsListParams) WithLabeln(labeln *string) *DcimRearPortsListParams { 705 o.SetLabeln(labeln) 706 return o 707 } 708 709 // SetLabeln adds the labelN to the dcim rear ports list params 710 func (o *DcimRearPortsListParams) SetLabeln(labeln *string) { 711 o.Labeln = labeln 712 } 713 714 // WithLabelNic adds the labelNic to the dcim rear ports list params 715 func (o *DcimRearPortsListParams) WithLabelNic(labelNic *string) *DcimRearPortsListParams { 716 o.SetLabelNic(labelNic) 717 return o 718 } 719 720 // SetLabelNic adds the labelNic to the dcim rear ports list params 721 func (o *DcimRearPortsListParams) SetLabelNic(labelNic *string) { 722 o.LabelNic = labelNic 723 } 724 725 // WithLabelNie adds the labelNie to the dcim rear ports list params 726 func (o *DcimRearPortsListParams) WithLabelNie(labelNie *string) *DcimRearPortsListParams { 727 o.SetLabelNie(labelNie) 728 return o 729 } 730 731 // SetLabelNie adds the labelNie to the dcim rear ports list params 732 func (o *DcimRearPortsListParams) SetLabelNie(labelNie *string) { 733 o.LabelNie = labelNie 734 } 735 736 // WithLabelNiew adds the labelNiew to the dcim rear ports list params 737 func (o *DcimRearPortsListParams) WithLabelNiew(labelNiew *string) *DcimRearPortsListParams { 738 o.SetLabelNiew(labelNiew) 739 return o 740 } 741 742 // SetLabelNiew adds the labelNiew to the dcim rear ports list params 743 func (o *DcimRearPortsListParams) SetLabelNiew(labelNiew *string) { 744 o.LabelNiew = labelNiew 745 } 746 747 // WithLabelNisw adds the labelNisw to the dcim rear ports list params 748 func (o *DcimRearPortsListParams) WithLabelNisw(labelNisw *string) *DcimRearPortsListParams { 749 o.SetLabelNisw(labelNisw) 750 return o 751 } 752 753 // SetLabelNisw adds the labelNisw to the dcim rear ports list params 754 func (o *DcimRearPortsListParams) SetLabelNisw(labelNisw *string) { 755 o.LabelNisw = labelNisw 756 } 757 758 // WithLastUpdated adds the lastUpdated to the dcim rear ports list params 759 func (o *DcimRearPortsListParams) WithLastUpdated(lastUpdated *string) *DcimRearPortsListParams { 760 o.SetLastUpdated(lastUpdated) 761 return o 762 } 763 764 // SetLastUpdated adds the lastUpdated to the dcim rear ports list params 765 func (o *DcimRearPortsListParams) SetLastUpdated(lastUpdated *string) { 766 o.LastUpdated = lastUpdated 767 } 768 769 // WithLastUpdatedGte adds the lastUpdatedGte to the dcim rear ports list params 770 func (o *DcimRearPortsListParams) WithLastUpdatedGte(lastUpdatedGte *string) *DcimRearPortsListParams { 771 o.SetLastUpdatedGte(lastUpdatedGte) 772 return o 773 } 774 775 // SetLastUpdatedGte adds the lastUpdatedGte to the dcim rear ports list params 776 func (o *DcimRearPortsListParams) SetLastUpdatedGte(lastUpdatedGte *string) { 777 o.LastUpdatedGte = lastUpdatedGte 778 } 779 780 // WithLastUpdatedLte adds the lastUpdatedLte to the dcim rear ports list params 781 func (o *DcimRearPortsListParams) WithLastUpdatedLte(lastUpdatedLte *string) *DcimRearPortsListParams { 782 o.SetLastUpdatedLte(lastUpdatedLte) 783 return o 784 } 785 786 // SetLastUpdatedLte adds the lastUpdatedLte to the dcim rear ports list params 787 func (o *DcimRearPortsListParams) SetLastUpdatedLte(lastUpdatedLte *string) { 788 o.LastUpdatedLte = lastUpdatedLte 789 } 790 791 // WithLimit adds the limit to the dcim rear ports list params 792 func (o *DcimRearPortsListParams) WithLimit(limit *int64) *DcimRearPortsListParams { 793 o.SetLimit(limit) 794 return o 795 } 796 797 // SetLimit adds the limit to the dcim rear ports list params 798 func (o *DcimRearPortsListParams) SetLimit(limit *int64) { 799 o.Limit = limit 800 } 801 802 // WithName adds the name to the dcim rear ports list params 803 func (o *DcimRearPortsListParams) WithName(name *string) *DcimRearPortsListParams { 804 o.SetName(name) 805 return o 806 } 807 808 // SetName adds the name to the dcim rear ports list params 809 func (o *DcimRearPortsListParams) SetName(name *string) { 810 o.Name = name 811 } 812 813 // WithNameEmpty adds the nameEmpty to the dcim rear ports list params 814 func (o *DcimRearPortsListParams) WithNameEmpty(nameEmpty *string) *DcimRearPortsListParams { 815 o.SetNameEmpty(nameEmpty) 816 return o 817 } 818 819 // SetNameEmpty adds the nameEmpty to the dcim rear ports list params 820 func (o *DcimRearPortsListParams) SetNameEmpty(nameEmpty *string) { 821 o.NameEmpty = nameEmpty 822 } 823 824 // WithNameIc adds the nameIc to the dcim rear ports list params 825 func (o *DcimRearPortsListParams) WithNameIc(nameIc *string) *DcimRearPortsListParams { 826 o.SetNameIc(nameIc) 827 return o 828 } 829 830 // SetNameIc adds the nameIc to the dcim rear ports list params 831 func (o *DcimRearPortsListParams) SetNameIc(nameIc *string) { 832 o.NameIc = nameIc 833 } 834 835 // WithNameIe adds the nameIe to the dcim rear ports list params 836 func (o *DcimRearPortsListParams) WithNameIe(nameIe *string) *DcimRearPortsListParams { 837 o.SetNameIe(nameIe) 838 return o 839 } 840 841 // SetNameIe adds the nameIe to the dcim rear ports list params 842 func (o *DcimRearPortsListParams) SetNameIe(nameIe *string) { 843 o.NameIe = nameIe 844 } 845 846 // WithNameIew adds the nameIew to the dcim rear ports list params 847 func (o *DcimRearPortsListParams) WithNameIew(nameIew *string) *DcimRearPortsListParams { 848 o.SetNameIew(nameIew) 849 return o 850 } 851 852 // SetNameIew adds the nameIew to the dcim rear ports list params 853 func (o *DcimRearPortsListParams) SetNameIew(nameIew *string) { 854 o.NameIew = nameIew 855 } 856 857 // WithNameIsw adds the nameIsw to the dcim rear ports list params 858 func (o *DcimRearPortsListParams) WithNameIsw(nameIsw *string) *DcimRearPortsListParams { 859 o.SetNameIsw(nameIsw) 860 return o 861 } 862 863 // SetNameIsw adds the nameIsw to the dcim rear ports list params 864 func (o *DcimRearPortsListParams) SetNameIsw(nameIsw *string) { 865 o.NameIsw = nameIsw 866 } 867 868 // WithNamen adds the namen to the dcim rear ports list params 869 func (o *DcimRearPortsListParams) WithNamen(namen *string) *DcimRearPortsListParams { 870 o.SetNamen(namen) 871 return o 872 } 873 874 // SetNamen adds the nameN to the dcim rear ports list params 875 func (o *DcimRearPortsListParams) SetNamen(namen *string) { 876 o.Namen = namen 877 } 878 879 // WithNameNic adds the nameNic to the dcim rear ports list params 880 func (o *DcimRearPortsListParams) WithNameNic(nameNic *string) *DcimRearPortsListParams { 881 o.SetNameNic(nameNic) 882 return o 883 } 884 885 // SetNameNic adds the nameNic to the dcim rear ports list params 886 func (o *DcimRearPortsListParams) SetNameNic(nameNic *string) { 887 o.NameNic = nameNic 888 } 889 890 // WithNameNie adds the nameNie to the dcim rear ports list params 891 func (o *DcimRearPortsListParams) WithNameNie(nameNie *string) *DcimRearPortsListParams { 892 o.SetNameNie(nameNie) 893 return o 894 } 895 896 // SetNameNie adds the nameNie to the dcim rear ports list params 897 func (o *DcimRearPortsListParams) SetNameNie(nameNie *string) { 898 o.NameNie = nameNie 899 } 900 901 // WithNameNiew adds the nameNiew to the dcim rear ports list params 902 func (o *DcimRearPortsListParams) WithNameNiew(nameNiew *string) *DcimRearPortsListParams { 903 o.SetNameNiew(nameNiew) 904 return o 905 } 906 907 // SetNameNiew adds the nameNiew to the dcim rear ports list params 908 func (o *DcimRearPortsListParams) SetNameNiew(nameNiew *string) { 909 o.NameNiew = nameNiew 910 } 911 912 // WithNameNisw adds the nameNisw to the dcim rear ports list params 913 func (o *DcimRearPortsListParams) WithNameNisw(nameNisw *string) *DcimRearPortsListParams { 914 o.SetNameNisw(nameNisw) 915 return o 916 } 917 918 // SetNameNisw adds the nameNisw to the dcim rear ports list params 919 func (o *DcimRearPortsListParams) SetNameNisw(nameNisw *string) { 920 o.NameNisw = nameNisw 921 } 922 923 // WithOffset adds the offset to the dcim rear ports list params 924 func (o *DcimRearPortsListParams) WithOffset(offset *int64) *DcimRearPortsListParams { 925 o.SetOffset(offset) 926 return o 927 } 928 929 // SetOffset adds the offset to the dcim rear ports list params 930 func (o *DcimRearPortsListParams) SetOffset(offset *int64) { 931 o.Offset = offset 932 } 933 934 // WithPositions adds the positions to the dcim rear ports list params 935 func (o *DcimRearPortsListParams) WithPositions(positions *string) *DcimRearPortsListParams { 936 o.SetPositions(positions) 937 return o 938 } 939 940 // SetPositions adds the positions to the dcim rear ports list params 941 func (o *DcimRearPortsListParams) SetPositions(positions *string) { 942 o.Positions = positions 943 } 944 945 // WithPositionsGt adds the positionsGt to the dcim rear ports list params 946 func (o *DcimRearPortsListParams) WithPositionsGt(positionsGt *string) *DcimRearPortsListParams { 947 o.SetPositionsGt(positionsGt) 948 return o 949 } 950 951 // SetPositionsGt adds the positionsGt to the dcim rear ports list params 952 func (o *DcimRearPortsListParams) SetPositionsGt(positionsGt *string) { 953 o.PositionsGt = positionsGt 954 } 955 956 // WithPositionsGte adds the positionsGte to the dcim rear ports list params 957 func (o *DcimRearPortsListParams) WithPositionsGte(positionsGte *string) *DcimRearPortsListParams { 958 o.SetPositionsGte(positionsGte) 959 return o 960 } 961 962 // SetPositionsGte adds the positionsGte to the dcim rear ports list params 963 func (o *DcimRearPortsListParams) SetPositionsGte(positionsGte *string) { 964 o.PositionsGte = positionsGte 965 } 966 967 // WithPositionsLt adds the positionsLt to the dcim rear ports list params 968 func (o *DcimRearPortsListParams) WithPositionsLt(positionsLt *string) *DcimRearPortsListParams { 969 o.SetPositionsLt(positionsLt) 970 return o 971 } 972 973 // SetPositionsLt adds the positionsLt to the dcim rear ports list params 974 func (o *DcimRearPortsListParams) SetPositionsLt(positionsLt *string) { 975 o.PositionsLt = positionsLt 976 } 977 978 // WithPositionsLte adds the positionsLte to the dcim rear ports list params 979 func (o *DcimRearPortsListParams) WithPositionsLte(positionsLte *string) *DcimRearPortsListParams { 980 o.SetPositionsLte(positionsLte) 981 return o 982 } 983 984 // SetPositionsLte adds the positionsLte to the dcim rear ports list params 985 func (o *DcimRearPortsListParams) SetPositionsLte(positionsLte *string) { 986 o.PositionsLte = positionsLte 987 } 988 989 // WithPositionsn adds the positionsn to the dcim rear ports list params 990 func (o *DcimRearPortsListParams) WithPositionsn(positionsn *string) *DcimRearPortsListParams { 991 o.SetPositionsn(positionsn) 992 return o 993 } 994 995 // SetPositionsn adds the positionsN to the dcim rear ports list params 996 func (o *DcimRearPortsListParams) SetPositionsn(positionsn *string) { 997 o.Positionsn = positionsn 998 } 999 1000 // WithQ adds the q to the dcim rear ports list params 1001 func (o *DcimRearPortsListParams) WithQ(q *string) *DcimRearPortsListParams { 1002 o.SetQ(q) 1003 return o 1004 } 1005 1006 // SetQ adds the q to the dcim rear ports list params 1007 func (o *DcimRearPortsListParams) SetQ(q *string) { 1008 o.Q = q 1009 } 1010 1011 // WithRegion adds the region to the dcim rear ports list params 1012 func (o *DcimRearPortsListParams) WithRegion(region *string) *DcimRearPortsListParams { 1013 o.SetRegion(region) 1014 return o 1015 } 1016 1017 // SetRegion adds the region to the dcim rear ports list params 1018 func (o *DcimRearPortsListParams) SetRegion(region *string) { 1019 o.Region = region 1020 } 1021 1022 // WithRegionn adds the regionn to the dcim rear ports list params 1023 func (o *DcimRearPortsListParams) WithRegionn(regionn *string) *DcimRearPortsListParams { 1024 o.SetRegionn(regionn) 1025 return o 1026 } 1027 1028 // SetRegionn adds the regionN to the dcim rear ports list params 1029 func (o *DcimRearPortsListParams) SetRegionn(regionn *string) { 1030 o.Regionn = regionn 1031 } 1032 1033 // WithRegionID adds the regionID to the dcim rear ports list params 1034 func (o *DcimRearPortsListParams) WithRegionID(regionID *string) *DcimRearPortsListParams { 1035 o.SetRegionID(regionID) 1036 return o 1037 } 1038 1039 // SetRegionID adds the regionId to the dcim rear ports list params 1040 func (o *DcimRearPortsListParams) SetRegionID(regionID *string) { 1041 o.RegionID = regionID 1042 } 1043 1044 // WithRegionIDn adds the regionIDn to the dcim rear ports list params 1045 func (o *DcimRearPortsListParams) WithRegionIDn(regionIDn *string) *DcimRearPortsListParams { 1046 o.SetRegionIDn(regionIDn) 1047 return o 1048 } 1049 1050 // SetRegionIDn adds the regionIdN to the dcim rear ports list params 1051 func (o *DcimRearPortsListParams) SetRegionIDn(regionIDn *string) { 1052 o.RegionIDn = regionIDn 1053 } 1054 1055 // WithSite adds the site to the dcim rear ports list params 1056 func (o *DcimRearPortsListParams) WithSite(site *string) *DcimRearPortsListParams { 1057 o.SetSite(site) 1058 return o 1059 } 1060 1061 // SetSite adds the site to the dcim rear ports list params 1062 func (o *DcimRearPortsListParams) SetSite(site *string) { 1063 o.Site = site 1064 } 1065 1066 // WithSiten adds the siten to the dcim rear ports list params 1067 func (o *DcimRearPortsListParams) WithSiten(siten *string) *DcimRearPortsListParams { 1068 o.SetSiten(siten) 1069 return o 1070 } 1071 1072 // SetSiten adds the siteN to the dcim rear ports list params 1073 func (o *DcimRearPortsListParams) SetSiten(siten *string) { 1074 o.Siten = siten 1075 } 1076 1077 // WithSiteGroup adds the siteGroup to the dcim rear ports list params 1078 func (o *DcimRearPortsListParams) WithSiteGroup(siteGroup *string) *DcimRearPortsListParams { 1079 o.SetSiteGroup(siteGroup) 1080 return o 1081 } 1082 1083 // SetSiteGroup adds the siteGroup to the dcim rear ports list params 1084 func (o *DcimRearPortsListParams) SetSiteGroup(siteGroup *string) { 1085 o.SiteGroup = siteGroup 1086 } 1087 1088 // WithSiteGroupn adds the siteGroupn to the dcim rear ports list params 1089 func (o *DcimRearPortsListParams) WithSiteGroupn(siteGroupn *string) *DcimRearPortsListParams { 1090 o.SetSiteGroupn(siteGroupn) 1091 return o 1092 } 1093 1094 // SetSiteGroupn adds the siteGroupN to the dcim rear ports list params 1095 func (o *DcimRearPortsListParams) SetSiteGroupn(siteGroupn *string) { 1096 o.SiteGroupn = siteGroupn 1097 } 1098 1099 // WithSiteGroupID adds the siteGroupID to the dcim rear ports list params 1100 func (o *DcimRearPortsListParams) WithSiteGroupID(siteGroupID *string) *DcimRearPortsListParams { 1101 o.SetSiteGroupID(siteGroupID) 1102 return o 1103 } 1104 1105 // SetSiteGroupID adds the siteGroupId to the dcim rear ports list params 1106 func (o *DcimRearPortsListParams) SetSiteGroupID(siteGroupID *string) { 1107 o.SiteGroupID = siteGroupID 1108 } 1109 1110 // WithSiteGroupIDn adds the siteGroupIDn to the dcim rear ports list params 1111 func (o *DcimRearPortsListParams) WithSiteGroupIDn(siteGroupIDn *string) *DcimRearPortsListParams { 1112 o.SetSiteGroupIDn(siteGroupIDn) 1113 return o 1114 } 1115 1116 // SetSiteGroupIDn adds the siteGroupIdN to the dcim rear ports list params 1117 func (o *DcimRearPortsListParams) SetSiteGroupIDn(siteGroupIDn *string) { 1118 o.SiteGroupIDn = siteGroupIDn 1119 } 1120 1121 // WithSiteID adds the siteID to the dcim rear ports list params 1122 func (o *DcimRearPortsListParams) WithSiteID(siteID *string) *DcimRearPortsListParams { 1123 o.SetSiteID(siteID) 1124 return o 1125 } 1126 1127 // SetSiteID adds the siteId to the dcim rear ports list params 1128 func (o *DcimRearPortsListParams) SetSiteID(siteID *string) { 1129 o.SiteID = siteID 1130 } 1131 1132 // WithSiteIDn adds the siteIDn to the dcim rear ports list params 1133 func (o *DcimRearPortsListParams) WithSiteIDn(siteIDn *string) *DcimRearPortsListParams { 1134 o.SetSiteIDn(siteIDn) 1135 return o 1136 } 1137 1138 // SetSiteIDn adds the siteIdN to the dcim rear ports list params 1139 func (o *DcimRearPortsListParams) SetSiteIDn(siteIDn *string) { 1140 o.SiteIDn = siteIDn 1141 } 1142 1143 // WithTag adds the tag to the dcim rear ports list params 1144 func (o *DcimRearPortsListParams) WithTag(tag *string) *DcimRearPortsListParams { 1145 o.SetTag(tag) 1146 return o 1147 } 1148 1149 // SetTag adds the tag to the dcim rear ports list params 1150 func (o *DcimRearPortsListParams) SetTag(tag *string) { 1151 o.Tag = tag 1152 } 1153 1154 // WithTagn adds the tagn to the dcim rear ports list params 1155 func (o *DcimRearPortsListParams) WithTagn(tagn *string) *DcimRearPortsListParams { 1156 o.SetTagn(tagn) 1157 return o 1158 } 1159 1160 // SetTagn adds the tagN to the dcim rear ports list params 1161 func (o *DcimRearPortsListParams) SetTagn(tagn *string) { 1162 o.Tagn = tagn 1163 } 1164 1165 // WithType adds the typeVar to the dcim rear ports list params 1166 func (o *DcimRearPortsListParams) WithType(typeVar *string) *DcimRearPortsListParams { 1167 o.SetType(typeVar) 1168 return o 1169 } 1170 1171 // SetType adds the type to the dcim rear ports list params 1172 func (o *DcimRearPortsListParams) SetType(typeVar *string) { 1173 o.Type = typeVar 1174 } 1175 1176 // WithTypen adds the typen to the dcim rear ports list params 1177 func (o *DcimRearPortsListParams) WithTypen(typen *string) *DcimRearPortsListParams { 1178 o.SetTypen(typen) 1179 return o 1180 } 1181 1182 // SetTypen adds the typeN to the dcim rear ports list params 1183 func (o *DcimRearPortsListParams) SetTypen(typen *string) { 1184 o.Typen = typen 1185 } 1186 1187 // WriteToRequest writes these params to a swagger request 1188 func (o *DcimRearPortsListParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { 1189 1190 if err := r.SetTimeout(o.timeout); err != nil { 1191 return err 1192 } 1193 var res []error 1194 1195 if o.Cabled != nil { 1196 1197 // query param cabled 1198 var qrCabled string 1199 1200 if o.Cabled != nil { 1201 qrCabled = *o.Cabled 1202 } 1203 qCabled := qrCabled 1204 if qCabled != "" { 1205 1206 if err := r.SetQueryParam("cabled", qCabled); err != nil { 1207 return err 1208 } 1209 } 1210 } 1211 1212 if o.Created != nil { 1213 1214 // query param created 1215 var qrCreated string 1216 1217 if o.Created != nil { 1218 qrCreated = *o.Created 1219 } 1220 qCreated := qrCreated 1221 if qCreated != "" { 1222 1223 if err := r.SetQueryParam("created", qCreated); err != nil { 1224 return err 1225 } 1226 } 1227 } 1228 1229 if o.CreatedGte != nil { 1230 1231 // query param created__gte 1232 var qrCreatedGte string 1233 1234 if o.CreatedGte != nil { 1235 qrCreatedGte = *o.CreatedGte 1236 } 1237 qCreatedGte := qrCreatedGte 1238 if qCreatedGte != "" { 1239 1240 if err := r.SetQueryParam("created__gte", qCreatedGte); err != nil { 1241 return err 1242 } 1243 } 1244 } 1245 1246 if o.CreatedLte != nil { 1247 1248 // query param created__lte 1249 var qrCreatedLte string 1250 1251 if o.CreatedLte != nil { 1252 qrCreatedLte = *o.CreatedLte 1253 } 1254 qCreatedLte := qrCreatedLte 1255 if qCreatedLte != "" { 1256 1257 if err := r.SetQueryParam("created__lte", qCreatedLte); err != nil { 1258 return err 1259 } 1260 } 1261 } 1262 1263 if o.Description != nil { 1264 1265 // query param description 1266 var qrDescription string 1267 1268 if o.Description != nil { 1269 qrDescription = *o.Description 1270 } 1271 qDescription := qrDescription 1272 if qDescription != "" { 1273 1274 if err := r.SetQueryParam("description", qDescription); err != nil { 1275 return err 1276 } 1277 } 1278 } 1279 1280 if o.DescriptionEmpty != nil { 1281 1282 // query param description__empty 1283 var qrDescriptionEmpty string 1284 1285 if o.DescriptionEmpty != nil { 1286 qrDescriptionEmpty = *o.DescriptionEmpty 1287 } 1288 qDescriptionEmpty := qrDescriptionEmpty 1289 if qDescriptionEmpty != "" { 1290 1291 if err := r.SetQueryParam("description__empty", qDescriptionEmpty); err != nil { 1292 return err 1293 } 1294 } 1295 } 1296 1297 if o.DescriptionIc != nil { 1298 1299 // query param description__ic 1300 var qrDescriptionIc string 1301 1302 if o.DescriptionIc != nil { 1303 qrDescriptionIc = *o.DescriptionIc 1304 } 1305 qDescriptionIc := qrDescriptionIc 1306 if qDescriptionIc != "" { 1307 1308 if err := r.SetQueryParam("description__ic", qDescriptionIc); err != nil { 1309 return err 1310 } 1311 } 1312 } 1313 1314 if o.DescriptionIe != nil { 1315 1316 // query param description__ie 1317 var qrDescriptionIe string 1318 1319 if o.DescriptionIe != nil { 1320 qrDescriptionIe = *o.DescriptionIe 1321 } 1322 qDescriptionIe := qrDescriptionIe 1323 if qDescriptionIe != "" { 1324 1325 if err := r.SetQueryParam("description__ie", qDescriptionIe); err != nil { 1326 return err 1327 } 1328 } 1329 } 1330 1331 if o.DescriptionIew != nil { 1332 1333 // query param description__iew 1334 var qrDescriptionIew string 1335 1336 if o.DescriptionIew != nil { 1337 qrDescriptionIew = *o.DescriptionIew 1338 } 1339 qDescriptionIew := qrDescriptionIew 1340 if qDescriptionIew != "" { 1341 1342 if err := r.SetQueryParam("description__iew", qDescriptionIew); err != nil { 1343 return err 1344 } 1345 } 1346 } 1347 1348 if o.DescriptionIsw != nil { 1349 1350 // query param description__isw 1351 var qrDescriptionIsw string 1352 1353 if o.DescriptionIsw != nil { 1354 qrDescriptionIsw = *o.DescriptionIsw 1355 } 1356 qDescriptionIsw := qrDescriptionIsw 1357 if qDescriptionIsw != "" { 1358 1359 if err := r.SetQueryParam("description__isw", qDescriptionIsw); err != nil { 1360 return err 1361 } 1362 } 1363 } 1364 1365 if o.Descriptionn != nil { 1366 1367 // query param description__n 1368 var qrDescriptionn string 1369 1370 if o.Descriptionn != nil { 1371 qrDescriptionn = *o.Descriptionn 1372 } 1373 qDescriptionn := qrDescriptionn 1374 if qDescriptionn != "" { 1375 1376 if err := r.SetQueryParam("description__n", qDescriptionn); err != nil { 1377 return err 1378 } 1379 } 1380 } 1381 1382 if o.DescriptionNic != nil { 1383 1384 // query param description__nic 1385 var qrDescriptionNic string 1386 1387 if o.DescriptionNic != nil { 1388 qrDescriptionNic = *o.DescriptionNic 1389 } 1390 qDescriptionNic := qrDescriptionNic 1391 if qDescriptionNic != "" { 1392 1393 if err := r.SetQueryParam("description__nic", qDescriptionNic); err != nil { 1394 return err 1395 } 1396 } 1397 } 1398 1399 if o.DescriptionNie != nil { 1400 1401 // query param description__nie 1402 var qrDescriptionNie string 1403 1404 if o.DescriptionNie != nil { 1405 qrDescriptionNie = *o.DescriptionNie 1406 } 1407 qDescriptionNie := qrDescriptionNie 1408 if qDescriptionNie != "" { 1409 1410 if err := r.SetQueryParam("description__nie", qDescriptionNie); err != nil { 1411 return err 1412 } 1413 } 1414 } 1415 1416 if o.DescriptionNiew != nil { 1417 1418 // query param description__niew 1419 var qrDescriptionNiew string 1420 1421 if o.DescriptionNiew != nil { 1422 qrDescriptionNiew = *o.DescriptionNiew 1423 } 1424 qDescriptionNiew := qrDescriptionNiew 1425 if qDescriptionNiew != "" { 1426 1427 if err := r.SetQueryParam("description__niew", qDescriptionNiew); err != nil { 1428 return err 1429 } 1430 } 1431 } 1432 1433 if o.DescriptionNisw != nil { 1434 1435 // query param description__nisw 1436 var qrDescriptionNisw string 1437 1438 if o.DescriptionNisw != nil { 1439 qrDescriptionNisw = *o.DescriptionNisw 1440 } 1441 qDescriptionNisw := qrDescriptionNisw 1442 if qDescriptionNisw != "" { 1443 1444 if err := r.SetQueryParam("description__nisw", qDescriptionNisw); err != nil { 1445 return err 1446 } 1447 } 1448 } 1449 1450 if o.Device != nil { 1451 1452 // query param device 1453 var qrDevice string 1454 1455 if o.Device != nil { 1456 qrDevice = *o.Device 1457 } 1458 qDevice := qrDevice 1459 if qDevice != "" { 1460 1461 if err := r.SetQueryParam("device", qDevice); err != nil { 1462 return err 1463 } 1464 } 1465 } 1466 1467 if o.Devicen != nil { 1468 1469 // query param device__n 1470 var qrDevicen string 1471 1472 if o.Devicen != nil { 1473 qrDevicen = *o.Devicen 1474 } 1475 qDevicen := qrDevicen 1476 if qDevicen != "" { 1477 1478 if err := r.SetQueryParam("device__n", qDevicen); err != nil { 1479 return err 1480 } 1481 } 1482 } 1483 1484 if o.DeviceID != nil { 1485 1486 // query param device_id 1487 var qrDeviceID string 1488 1489 if o.DeviceID != nil { 1490 qrDeviceID = *o.DeviceID 1491 } 1492 qDeviceID := qrDeviceID 1493 if qDeviceID != "" { 1494 1495 if err := r.SetQueryParam("device_id", qDeviceID); err != nil { 1496 return err 1497 } 1498 } 1499 } 1500 1501 if o.DeviceIDn != nil { 1502 1503 // query param device_id__n 1504 var qrDeviceIDn string 1505 1506 if o.DeviceIDn != nil { 1507 qrDeviceIDn = *o.DeviceIDn 1508 } 1509 qDeviceIDn := qrDeviceIDn 1510 if qDeviceIDn != "" { 1511 1512 if err := r.SetQueryParam("device_id__n", qDeviceIDn); err != nil { 1513 return err 1514 } 1515 } 1516 } 1517 1518 if o.ID != nil { 1519 1520 // query param id 1521 var qrID string 1522 1523 if o.ID != nil { 1524 qrID = *o.ID 1525 } 1526 qID := qrID 1527 if qID != "" { 1528 1529 if err := r.SetQueryParam("id", qID); err != nil { 1530 return err 1531 } 1532 } 1533 } 1534 1535 if o.IDGt != nil { 1536 1537 // query param id__gt 1538 var qrIDGt string 1539 1540 if o.IDGt != nil { 1541 qrIDGt = *o.IDGt 1542 } 1543 qIDGt := qrIDGt 1544 if qIDGt != "" { 1545 1546 if err := r.SetQueryParam("id__gt", qIDGt); err != nil { 1547 return err 1548 } 1549 } 1550 } 1551 1552 if o.IDGte != nil { 1553 1554 // query param id__gte 1555 var qrIDGte string 1556 1557 if o.IDGte != nil { 1558 qrIDGte = *o.IDGte 1559 } 1560 qIDGte := qrIDGte 1561 if qIDGte != "" { 1562 1563 if err := r.SetQueryParam("id__gte", qIDGte); err != nil { 1564 return err 1565 } 1566 } 1567 } 1568 1569 if o.IDLt != nil { 1570 1571 // query param id__lt 1572 var qrIDLt string 1573 1574 if o.IDLt != nil { 1575 qrIDLt = *o.IDLt 1576 } 1577 qIDLt := qrIDLt 1578 if qIDLt != "" { 1579 1580 if err := r.SetQueryParam("id__lt", qIDLt); err != nil { 1581 return err 1582 } 1583 } 1584 } 1585 1586 if o.IDLte != nil { 1587 1588 // query param id__lte 1589 var qrIDLte string 1590 1591 if o.IDLte != nil { 1592 qrIDLte = *o.IDLte 1593 } 1594 qIDLte := qrIDLte 1595 if qIDLte != "" { 1596 1597 if err := r.SetQueryParam("id__lte", qIDLte); err != nil { 1598 return err 1599 } 1600 } 1601 } 1602 1603 if o.IDn != nil { 1604 1605 // query param id__n 1606 var qrIDn string 1607 1608 if o.IDn != nil { 1609 qrIDn = *o.IDn 1610 } 1611 qIDn := qrIDn 1612 if qIDn != "" { 1613 1614 if err := r.SetQueryParam("id__n", qIDn); err != nil { 1615 return err 1616 } 1617 } 1618 } 1619 1620 if o.Label != nil { 1621 1622 // query param label 1623 var qrLabel string 1624 1625 if o.Label != nil { 1626 qrLabel = *o.Label 1627 } 1628 qLabel := qrLabel 1629 if qLabel != "" { 1630 1631 if err := r.SetQueryParam("label", qLabel); err != nil { 1632 return err 1633 } 1634 } 1635 } 1636 1637 if o.LabelEmpty != nil { 1638 1639 // query param label__empty 1640 var qrLabelEmpty string 1641 1642 if o.LabelEmpty != nil { 1643 qrLabelEmpty = *o.LabelEmpty 1644 } 1645 qLabelEmpty := qrLabelEmpty 1646 if qLabelEmpty != "" { 1647 1648 if err := r.SetQueryParam("label__empty", qLabelEmpty); err != nil { 1649 return err 1650 } 1651 } 1652 } 1653 1654 if o.LabelIc != nil { 1655 1656 // query param label__ic 1657 var qrLabelIc string 1658 1659 if o.LabelIc != nil { 1660 qrLabelIc = *o.LabelIc 1661 } 1662 qLabelIc := qrLabelIc 1663 if qLabelIc != "" { 1664 1665 if err := r.SetQueryParam("label__ic", qLabelIc); err != nil { 1666 return err 1667 } 1668 } 1669 } 1670 1671 if o.LabelIe != nil { 1672 1673 // query param label__ie 1674 var qrLabelIe string 1675 1676 if o.LabelIe != nil { 1677 qrLabelIe = *o.LabelIe 1678 } 1679 qLabelIe := qrLabelIe 1680 if qLabelIe != "" { 1681 1682 if err := r.SetQueryParam("label__ie", qLabelIe); err != nil { 1683 return err 1684 } 1685 } 1686 } 1687 1688 if o.LabelIew != nil { 1689 1690 // query param label__iew 1691 var qrLabelIew string 1692 1693 if o.LabelIew != nil { 1694 qrLabelIew = *o.LabelIew 1695 } 1696 qLabelIew := qrLabelIew 1697 if qLabelIew != "" { 1698 1699 if err := r.SetQueryParam("label__iew", qLabelIew); err != nil { 1700 return err 1701 } 1702 } 1703 } 1704 1705 if o.LabelIsw != nil { 1706 1707 // query param label__isw 1708 var qrLabelIsw string 1709 1710 if o.LabelIsw != nil { 1711 qrLabelIsw = *o.LabelIsw 1712 } 1713 qLabelIsw := qrLabelIsw 1714 if qLabelIsw != "" { 1715 1716 if err := r.SetQueryParam("label__isw", qLabelIsw); err != nil { 1717 return err 1718 } 1719 } 1720 } 1721 1722 if o.Labeln != nil { 1723 1724 // query param label__n 1725 var qrLabeln string 1726 1727 if o.Labeln != nil { 1728 qrLabeln = *o.Labeln 1729 } 1730 qLabeln := qrLabeln 1731 if qLabeln != "" { 1732 1733 if err := r.SetQueryParam("label__n", qLabeln); err != nil { 1734 return err 1735 } 1736 } 1737 } 1738 1739 if o.LabelNic != nil { 1740 1741 // query param label__nic 1742 var qrLabelNic string 1743 1744 if o.LabelNic != nil { 1745 qrLabelNic = *o.LabelNic 1746 } 1747 qLabelNic := qrLabelNic 1748 if qLabelNic != "" { 1749 1750 if err := r.SetQueryParam("label__nic", qLabelNic); err != nil { 1751 return err 1752 } 1753 } 1754 } 1755 1756 if o.LabelNie != nil { 1757 1758 // query param label__nie 1759 var qrLabelNie string 1760 1761 if o.LabelNie != nil { 1762 qrLabelNie = *o.LabelNie 1763 } 1764 qLabelNie := qrLabelNie 1765 if qLabelNie != "" { 1766 1767 if err := r.SetQueryParam("label__nie", qLabelNie); err != nil { 1768 return err 1769 } 1770 } 1771 } 1772 1773 if o.LabelNiew != nil { 1774 1775 // query param label__niew 1776 var qrLabelNiew string 1777 1778 if o.LabelNiew != nil { 1779 qrLabelNiew = *o.LabelNiew 1780 } 1781 qLabelNiew := qrLabelNiew 1782 if qLabelNiew != "" { 1783 1784 if err := r.SetQueryParam("label__niew", qLabelNiew); err != nil { 1785 return err 1786 } 1787 } 1788 } 1789 1790 if o.LabelNisw != nil { 1791 1792 // query param label__nisw 1793 var qrLabelNisw string 1794 1795 if o.LabelNisw != nil { 1796 qrLabelNisw = *o.LabelNisw 1797 } 1798 qLabelNisw := qrLabelNisw 1799 if qLabelNisw != "" { 1800 1801 if err := r.SetQueryParam("label__nisw", qLabelNisw); err != nil { 1802 return err 1803 } 1804 } 1805 } 1806 1807 if o.LastUpdated != nil { 1808 1809 // query param last_updated 1810 var qrLastUpdated string 1811 1812 if o.LastUpdated != nil { 1813 qrLastUpdated = *o.LastUpdated 1814 } 1815 qLastUpdated := qrLastUpdated 1816 if qLastUpdated != "" { 1817 1818 if err := r.SetQueryParam("last_updated", qLastUpdated); err != nil { 1819 return err 1820 } 1821 } 1822 } 1823 1824 if o.LastUpdatedGte != nil { 1825 1826 // query param last_updated__gte 1827 var qrLastUpdatedGte string 1828 1829 if o.LastUpdatedGte != nil { 1830 qrLastUpdatedGte = *o.LastUpdatedGte 1831 } 1832 qLastUpdatedGte := qrLastUpdatedGte 1833 if qLastUpdatedGte != "" { 1834 1835 if err := r.SetQueryParam("last_updated__gte", qLastUpdatedGte); err != nil { 1836 return err 1837 } 1838 } 1839 } 1840 1841 if o.LastUpdatedLte != nil { 1842 1843 // query param last_updated__lte 1844 var qrLastUpdatedLte string 1845 1846 if o.LastUpdatedLte != nil { 1847 qrLastUpdatedLte = *o.LastUpdatedLte 1848 } 1849 qLastUpdatedLte := qrLastUpdatedLte 1850 if qLastUpdatedLte != "" { 1851 1852 if err := r.SetQueryParam("last_updated__lte", qLastUpdatedLte); err != nil { 1853 return err 1854 } 1855 } 1856 } 1857 1858 if o.Limit != nil { 1859 1860 // query param limit 1861 var qrLimit int64 1862 1863 if o.Limit != nil { 1864 qrLimit = *o.Limit 1865 } 1866 qLimit := swag.FormatInt64(qrLimit) 1867 if qLimit != "" { 1868 1869 if err := r.SetQueryParam("limit", qLimit); err != nil { 1870 return err 1871 } 1872 } 1873 } 1874 1875 if o.Name != nil { 1876 1877 // query param name 1878 var qrName string 1879 1880 if o.Name != nil { 1881 qrName = *o.Name 1882 } 1883 qName := qrName 1884 if qName != "" { 1885 1886 if err := r.SetQueryParam("name", qName); err != nil { 1887 return err 1888 } 1889 } 1890 } 1891 1892 if o.NameEmpty != nil { 1893 1894 // query param name__empty 1895 var qrNameEmpty string 1896 1897 if o.NameEmpty != nil { 1898 qrNameEmpty = *o.NameEmpty 1899 } 1900 qNameEmpty := qrNameEmpty 1901 if qNameEmpty != "" { 1902 1903 if err := r.SetQueryParam("name__empty", qNameEmpty); err != nil { 1904 return err 1905 } 1906 } 1907 } 1908 1909 if o.NameIc != nil { 1910 1911 // query param name__ic 1912 var qrNameIc string 1913 1914 if o.NameIc != nil { 1915 qrNameIc = *o.NameIc 1916 } 1917 qNameIc := qrNameIc 1918 if qNameIc != "" { 1919 1920 if err := r.SetQueryParam("name__ic", qNameIc); err != nil { 1921 return err 1922 } 1923 } 1924 } 1925 1926 if o.NameIe != nil { 1927 1928 // query param name__ie 1929 var qrNameIe string 1930 1931 if o.NameIe != nil { 1932 qrNameIe = *o.NameIe 1933 } 1934 qNameIe := qrNameIe 1935 if qNameIe != "" { 1936 1937 if err := r.SetQueryParam("name__ie", qNameIe); err != nil { 1938 return err 1939 } 1940 } 1941 } 1942 1943 if o.NameIew != nil { 1944 1945 // query param name__iew 1946 var qrNameIew string 1947 1948 if o.NameIew != nil { 1949 qrNameIew = *o.NameIew 1950 } 1951 qNameIew := qrNameIew 1952 if qNameIew != "" { 1953 1954 if err := r.SetQueryParam("name__iew", qNameIew); err != nil { 1955 return err 1956 } 1957 } 1958 } 1959 1960 if o.NameIsw != nil { 1961 1962 // query param name__isw 1963 var qrNameIsw string 1964 1965 if o.NameIsw != nil { 1966 qrNameIsw = *o.NameIsw 1967 } 1968 qNameIsw := qrNameIsw 1969 if qNameIsw != "" { 1970 1971 if err := r.SetQueryParam("name__isw", qNameIsw); err != nil { 1972 return err 1973 } 1974 } 1975 } 1976 1977 if o.Namen != nil { 1978 1979 // query param name__n 1980 var qrNamen string 1981 1982 if o.Namen != nil { 1983 qrNamen = *o.Namen 1984 } 1985 qNamen := qrNamen 1986 if qNamen != "" { 1987 1988 if err := r.SetQueryParam("name__n", qNamen); err != nil { 1989 return err 1990 } 1991 } 1992 } 1993 1994 if o.NameNic != nil { 1995 1996 // query param name__nic 1997 var qrNameNic string 1998 1999 if o.NameNic != nil { 2000 qrNameNic = *o.NameNic 2001 } 2002 qNameNic := qrNameNic 2003 if qNameNic != "" { 2004 2005 if err := r.SetQueryParam("name__nic", qNameNic); err != nil { 2006 return err 2007 } 2008 } 2009 } 2010 2011 if o.NameNie != nil { 2012 2013 // query param name__nie 2014 var qrNameNie string 2015 2016 if o.NameNie != nil { 2017 qrNameNie = *o.NameNie 2018 } 2019 qNameNie := qrNameNie 2020 if qNameNie != "" { 2021 2022 if err := r.SetQueryParam("name__nie", qNameNie); err != nil { 2023 return err 2024 } 2025 } 2026 } 2027 2028 if o.NameNiew != nil { 2029 2030 // query param name__niew 2031 var qrNameNiew string 2032 2033 if o.NameNiew != nil { 2034 qrNameNiew = *o.NameNiew 2035 } 2036 qNameNiew := qrNameNiew 2037 if qNameNiew != "" { 2038 2039 if err := r.SetQueryParam("name__niew", qNameNiew); err != nil { 2040 return err 2041 } 2042 } 2043 } 2044 2045 if o.NameNisw != nil { 2046 2047 // query param name__nisw 2048 var qrNameNisw string 2049 2050 if o.NameNisw != nil { 2051 qrNameNisw = *o.NameNisw 2052 } 2053 qNameNisw := qrNameNisw 2054 if qNameNisw != "" { 2055 2056 if err := r.SetQueryParam("name__nisw", qNameNisw); err != nil { 2057 return err 2058 } 2059 } 2060 } 2061 2062 if o.Offset != nil { 2063 2064 // query param offset 2065 var qrOffset int64 2066 2067 if o.Offset != nil { 2068 qrOffset = *o.Offset 2069 } 2070 qOffset := swag.FormatInt64(qrOffset) 2071 if qOffset != "" { 2072 2073 if err := r.SetQueryParam("offset", qOffset); err != nil { 2074 return err 2075 } 2076 } 2077 } 2078 2079 if o.Positions != nil { 2080 2081 // query param positions 2082 var qrPositions string 2083 2084 if o.Positions != nil { 2085 qrPositions = *o.Positions 2086 } 2087 qPositions := qrPositions 2088 if qPositions != "" { 2089 2090 if err := r.SetQueryParam("positions", qPositions); err != nil { 2091 return err 2092 } 2093 } 2094 } 2095 2096 if o.PositionsGt != nil { 2097 2098 // query param positions__gt 2099 var qrPositionsGt string 2100 2101 if o.PositionsGt != nil { 2102 qrPositionsGt = *o.PositionsGt 2103 } 2104 qPositionsGt := qrPositionsGt 2105 if qPositionsGt != "" { 2106 2107 if err := r.SetQueryParam("positions__gt", qPositionsGt); err != nil { 2108 return err 2109 } 2110 } 2111 } 2112 2113 if o.PositionsGte != nil { 2114 2115 // query param positions__gte 2116 var qrPositionsGte string 2117 2118 if o.PositionsGte != nil { 2119 qrPositionsGte = *o.PositionsGte 2120 } 2121 qPositionsGte := qrPositionsGte 2122 if qPositionsGte != "" { 2123 2124 if err := r.SetQueryParam("positions__gte", qPositionsGte); err != nil { 2125 return err 2126 } 2127 } 2128 } 2129 2130 if o.PositionsLt != nil { 2131 2132 // query param positions__lt 2133 var qrPositionsLt string 2134 2135 if o.PositionsLt != nil { 2136 qrPositionsLt = *o.PositionsLt 2137 } 2138 qPositionsLt := qrPositionsLt 2139 if qPositionsLt != "" { 2140 2141 if err := r.SetQueryParam("positions__lt", qPositionsLt); err != nil { 2142 return err 2143 } 2144 } 2145 } 2146 2147 if o.PositionsLte != nil { 2148 2149 // query param positions__lte 2150 var qrPositionsLte string 2151 2152 if o.PositionsLte != nil { 2153 qrPositionsLte = *o.PositionsLte 2154 } 2155 qPositionsLte := qrPositionsLte 2156 if qPositionsLte != "" { 2157 2158 if err := r.SetQueryParam("positions__lte", qPositionsLte); err != nil { 2159 return err 2160 } 2161 } 2162 } 2163 2164 if o.Positionsn != nil { 2165 2166 // query param positions__n 2167 var qrPositionsn string 2168 2169 if o.Positionsn != nil { 2170 qrPositionsn = *o.Positionsn 2171 } 2172 qPositionsn := qrPositionsn 2173 if qPositionsn != "" { 2174 2175 if err := r.SetQueryParam("positions__n", qPositionsn); err != nil { 2176 return err 2177 } 2178 } 2179 } 2180 2181 if o.Q != nil { 2182 2183 // query param q 2184 var qrQ string 2185 2186 if o.Q != nil { 2187 qrQ = *o.Q 2188 } 2189 qQ := qrQ 2190 if qQ != "" { 2191 2192 if err := r.SetQueryParam("q", qQ); err != nil { 2193 return err 2194 } 2195 } 2196 } 2197 2198 if o.Region != nil { 2199 2200 // query param region 2201 var qrRegion string 2202 2203 if o.Region != nil { 2204 qrRegion = *o.Region 2205 } 2206 qRegion := qrRegion 2207 if qRegion != "" { 2208 2209 if err := r.SetQueryParam("region", qRegion); err != nil { 2210 return err 2211 } 2212 } 2213 } 2214 2215 if o.Regionn != nil { 2216 2217 // query param region__n 2218 var qrRegionn string 2219 2220 if o.Regionn != nil { 2221 qrRegionn = *o.Regionn 2222 } 2223 qRegionn := qrRegionn 2224 if qRegionn != "" { 2225 2226 if err := r.SetQueryParam("region__n", qRegionn); err != nil { 2227 return err 2228 } 2229 } 2230 } 2231 2232 if o.RegionID != nil { 2233 2234 // query param region_id 2235 var qrRegionID string 2236 2237 if o.RegionID != nil { 2238 qrRegionID = *o.RegionID 2239 } 2240 qRegionID := qrRegionID 2241 if qRegionID != "" { 2242 2243 if err := r.SetQueryParam("region_id", qRegionID); err != nil { 2244 return err 2245 } 2246 } 2247 } 2248 2249 if o.RegionIDn != nil { 2250 2251 // query param region_id__n 2252 var qrRegionIDn string 2253 2254 if o.RegionIDn != nil { 2255 qrRegionIDn = *o.RegionIDn 2256 } 2257 qRegionIDn := qrRegionIDn 2258 if qRegionIDn != "" { 2259 2260 if err := r.SetQueryParam("region_id__n", qRegionIDn); err != nil { 2261 return err 2262 } 2263 } 2264 } 2265 2266 if o.Site != nil { 2267 2268 // query param site 2269 var qrSite string 2270 2271 if o.Site != nil { 2272 qrSite = *o.Site 2273 } 2274 qSite := qrSite 2275 if qSite != "" { 2276 2277 if err := r.SetQueryParam("site", qSite); err != nil { 2278 return err 2279 } 2280 } 2281 } 2282 2283 if o.Siten != nil { 2284 2285 // query param site__n 2286 var qrSiten string 2287 2288 if o.Siten != nil { 2289 qrSiten = *o.Siten 2290 } 2291 qSiten := qrSiten 2292 if qSiten != "" { 2293 2294 if err := r.SetQueryParam("site__n", qSiten); err != nil { 2295 return err 2296 } 2297 } 2298 } 2299 2300 if o.SiteGroup != nil { 2301 2302 // query param site_group 2303 var qrSiteGroup string 2304 2305 if o.SiteGroup != nil { 2306 qrSiteGroup = *o.SiteGroup 2307 } 2308 qSiteGroup := qrSiteGroup 2309 if qSiteGroup != "" { 2310 2311 if err := r.SetQueryParam("site_group", qSiteGroup); err != nil { 2312 return err 2313 } 2314 } 2315 } 2316 2317 if o.SiteGroupn != nil { 2318 2319 // query param site_group__n 2320 var qrSiteGroupn string 2321 2322 if o.SiteGroupn != nil { 2323 qrSiteGroupn = *o.SiteGroupn 2324 } 2325 qSiteGroupn := qrSiteGroupn 2326 if qSiteGroupn != "" { 2327 2328 if err := r.SetQueryParam("site_group__n", qSiteGroupn); err != nil { 2329 return err 2330 } 2331 } 2332 } 2333 2334 if o.SiteGroupID != nil { 2335 2336 // query param site_group_id 2337 var qrSiteGroupID string 2338 2339 if o.SiteGroupID != nil { 2340 qrSiteGroupID = *o.SiteGroupID 2341 } 2342 qSiteGroupID := qrSiteGroupID 2343 if qSiteGroupID != "" { 2344 2345 if err := r.SetQueryParam("site_group_id", qSiteGroupID); err != nil { 2346 return err 2347 } 2348 } 2349 } 2350 2351 if o.SiteGroupIDn != nil { 2352 2353 // query param site_group_id__n 2354 var qrSiteGroupIDn string 2355 2356 if o.SiteGroupIDn != nil { 2357 qrSiteGroupIDn = *o.SiteGroupIDn 2358 } 2359 qSiteGroupIDn := qrSiteGroupIDn 2360 if qSiteGroupIDn != "" { 2361 2362 if err := r.SetQueryParam("site_group_id__n", qSiteGroupIDn); err != nil { 2363 return err 2364 } 2365 } 2366 } 2367 2368 if o.SiteID != nil { 2369 2370 // query param site_id 2371 var qrSiteID string 2372 2373 if o.SiteID != nil { 2374 qrSiteID = *o.SiteID 2375 } 2376 qSiteID := qrSiteID 2377 if qSiteID != "" { 2378 2379 if err := r.SetQueryParam("site_id", qSiteID); err != nil { 2380 return err 2381 } 2382 } 2383 } 2384 2385 if o.SiteIDn != nil { 2386 2387 // query param site_id__n 2388 var qrSiteIDn string 2389 2390 if o.SiteIDn != nil { 2391 qrSiteIDn = *o.SiteIDn 2392 } 2393 qSiteIDn := qrSiteIDn 2394 if qSiteIDn != "" { 2395 2396 if err := r.SetQueryParam("site_id__n", qSiteIDn); err != nil { 2397 return err 2398 } 2399 } 2400 } 2401 2402 if o.Tag != nil { 2403 2404 // query param tag 2405 var qrTag string 2406 2407 if o.Tag != nil { 2408 qrTag = *o.Tag 2409 } 2410 qTag := qrTag 2411 if qTag != "" { 2412 2413 if err := r.SetQueryParam("tag", qTag); err != nil { 2414 return err 2415 } 2416 } 2417 } 2418 2419 if o.Tagn != nil { 2420 2421 // query param tag__n 2422 var qrTagn string 2423 2424 if o.Tagn != nil { 2425 qrTagn = *o.Tagn 2426 } 2427 qTagn := qrTagn 2428 if qTagn != "" { 2429 2430 if err := r.SetQueryParam("tag__n", qTagn); err != nil { 2431 return err 2432 } 2433 } 2434 } 2435 2436 if o.Type != nil { 2437 2438 // query param type 2439 var qrType string 2440 2441 if o.Type != nil { 2442 qrType = *o.Type 2443 } 2444 qType := qrType 2445 if qType != "" { 2446 2447 if err := r.SetQueryParam("type", qType); err != nil { 2448 return err 2449 } 2450 } 2451 } 2452 2453 if o.Typen != nil { 2454 2455 // query param type__n 2456 var qrTypen string 2457 2458 if o.Typen != nil { 2459 qrTypen = *o.Typen 2460 } 2461 qTypen := qrTypen 2462 if qTypen != "" { 2463 2464 if err := r.SetQueryParam("type__n", qTypen); err != nil { 2465 return err 2466 } 2467 } 2468 } 2469 2470 if len(res) > 0 { 2471 return errors.CompositeValidationError(res...) 2472 } 2473 return nil 2474 }