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