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