github.com/digitalocean/go-netbox@v0.0.2/netbox/client/dcim/dcim_platforms_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 // NewDcimPlatformsListParams creates a new DcimPlatformsListParams 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 NewDcimPlatformsListParams() *DcimPlatformsListParams { 42 return &DcimPlatformsListParams{ 43 timeout: cr.DefaultTimeout, 44 } 45 } 46 47 // NewDcimPlatformsListParamsWithTimeout creates a new DcimPlatformsListParams object 48 // with the ability to set a timeout on a request. 49 func NewDcimPlatformsListParamsWithTimeout(timeout time.Duration) *DcimPlatformsListParams { 50 return &DcimPlatformsListParams{ 51 timeout: timeout, 52 } 53 } 54 55 // NewDcimPlatformsListParamsWithContext creates a new DcimPlatformsListParams object 56 // with the ability to set a context for a request. 57 func NewDcimPlatformsListParamsWithContext(ctx context.Context) *DcimPlatformsListParams { 58 return &DcimPlatformsListParams{ 59 Context: ctx, 60 } 61 } 62 63 // NewDcimPlatformsListParamsWithHTTPClient creates a new DcimPlatformsListParams object 64 // with the ability to set a custom HTTPClient for a request. 65 func NewDcimPlatformsListParamsWithHTTPClient(client *http.Client) *DcimPlatformsListParams { 66 return &DcimPlatformsListParams{ 67 HTTPClient: client, 68 } 69 } 70 71 /* DcimPlatformsListParams contains all the parameters to send to the API endpoint 72 for the dcim platforms list operation. 73 74 Typically these are written to a http.Request. 75 */ 76 type DcimPlatformsListParams struct { 77 78 // Created. 79 Created *string 80 81 // CreatedGte. 82 CreatedGte *string 83 84 // CreatedLte. 85 CreatedLte *string 86 87 // Description. 88 Description *string 89 90 // DescriptionEmpty. 91 DescriptionEmpty *string 92 93 // DescriptionIc. 94 DescriptionIc *string 95 96 // DescriptionIe. 97 DescriptionIe *string 98 99 // DescriptionIew. 100 DescriptionIew *string 101 102 // DescriptionIsw. 103 DescriptionIsw *string 104 105 // Descriptionn. 106 Descriptionn *string 107 108 // DescriptionNic. 109 DescriptionNic *string 110 111 // DescriptionNie. 112 DescriptionNie *string 113 114 // DescriptionNiew. 115 DescriptionNiew *string 116 117 // DescriptionNisw. 118 DescriptionNisw *string 119 120 // ID. 121 ID *string 122 123 // IDGt. 124 IDGt *string 125 126 // IDGte. 127 IDGte *string 128 129 // IDLt. 130 IDLt *string 131 132 // IDLte. 133 IDLte *string 134 135 // IDn. 136 IDn *string 137 138 // LastUpdated. 139 LastUpdated *string 140 141 // LastUpdatedGte. 142 LastUpdatedGte *string 143 144 // LastUpdatedLte. 145 LastUpdatedLte *string 146 147 /* Limit. 148 149 Number of results to return per page. 150 */ 151 Limit *int64 152 153 // Manufacturer. 154 Manufacturer *string 155 156 // Manufacturern. 157 Manufacturern *string 158 159 // ManufacturerID. 160 ManufacturerID *string 161 162 // ManufacturerIDn. 163 ManufacturerIDn *string 164 165 // Name. 166 Name *string 167 168 // NameEmpty. 169 NameEmpty *string 170 171 // NameIc. 172 NameIc *string 173 174 // NameIe. 175 NameIe *string 176 177 // NameIew. 178 NameIew *string 179 180 // NameIsw. 181 NameIsw *string 182 183 // Namen. 184 Namen *string 185 186 // NameNic. 187 NameNic *string 188 189 // NameNie. 190 NameNie *string 191 192 // NameNiew. 193 NameNiew *string 194 195 // NameNisw. 196 NameNisw *string 197 198 // NapalmDriver. 199 NapalmDriver *string 200 201 // NapalmDriverEmpty. 202 NapalmDriverEmpty *string 203 204 // NapalmDriverIc. 205 NapalmDriverIc *string 206 207 // NapalmDriverIe. 208 NapalmDriverIe *string 209 210 // NapalmDriverIew. 211 NapalmDriverIew *string 212 213 // NapalmDriverIsw. 214 NapalmDriverIsw *string 215 216 // NapalmDrivern. 217 NapalmDrivern *string 218 219 // NapalmDriverNic. 220 NapalmDriverNic *string 221 222 // NapalmDriverNie. 223 NapalmDriverNie *string 224 225 // NapalmDriverNiew. 226 NapalmDriverNiew *string 227 228 // NapalmDriverNisw. 229 NapalmDriverNisw *string 230 231 /* Offset. 232 233 The initial index from which to return the results. 234 */ 235 Offset *int64 236 237 // Q. 238 Q *string 239 240 // Slug. 241 Slug *string 242 243 // SlugEmpty. 244 SlugEmpty *string 245 246 // SlugIc. 247 SlugIc *string 248 249 // SlugIe. 250 SlugIe *string 251 252 // SlugIew. 253 SlugIew *string 254 255 // SlugIsw. 256 SlugIsw *string 257 258 // Slugn. 259 Slugn *string 260 261 // SlugNic. 262 SlugNic *string 263 264 // SlugNie. 265 SlugNie *string 266 267 // SlugNiew. 268 SlugNiew *string 269 270 // SlugNisw. 271 SlugNisw *string 272 273 timeout time.Duration 274 Context context.Context 275 HTTPClient *http.Client 276 } 277 278 // WithDefaults hydrates default values in the dcim platforms list params (not the query body). 279 // 280 // All values with no default are reset to their zero value. 281 func (o *DcimPlatformsListParams) WithDefaults() *DcimPlatformsListParams { 282 o.SetDefaults() 283 return o 284 } 285 286 // SetDefaults hydrates default values in the dcim platforms list params (not the query body). 287 // 288 // All values with no default are reset to their zero value. 289 func (o *DcimPlatformsListParams) SetDefaults() { 290 // no default values defined for this parameter 291 } 292 293 // WithTimeout adds the timeout to the dcim platforms list params 294 func (o *DcimPlatformsListParams) WithTimeout(timeout time.Duration) *DcimPlatformsListParams { 295 o.SetTimeout(timeout) 296 return o 297 } 298 299 // SetTimeout adds the timeout to the dcim platforms list params 300 func (o *DcimPlatformsListParams) SetTimeout(timeout time.Duration) { 301 o.timeout = timeout 302 } 303 304 // WithContext adds the context to the dcim platforms list params 305 func (o *DcimPlatformsListParams) WithContext(ctx context.Context) *DcimPlatformsListParams { 306 o.SetContext(ctx) 307 return o 308 } 309 310 // SetContext adds the context to the dcim platforms list params 311 func (o *DcimPlatformsListParams) SetContext(ctx context.Context) { 312 o.Context = ctx 313 } 314 315 // WithHTTPClient adds the HTTPClient to the dcim platforms list params 316 func (o *DcimPlatformsListParams) WithHTTPClient(client *http.Client) *DcimPlatformsListParams { 317 o.SetHTTPClient(client) 318 return o 319 } 320 321 // SetHTTPClient adds the HTTPClient to the dcim platforms list params 322 func (o *DcimPlatformsListParams) SetHTTPClient(client *http.Client) { 323 o.HTTPClient = client 324 } 325 326 // WithCreated adds the created to the dcim platforms list params 327 func (o *DcimPlatformsListParams) WithCreated(created *string) *DcimPlatformsListParams { 328 o.SetCreated(created) 329 return o 330 } 331 332 // SetCreated adds the created to the dcim platforms list params 333 func (o *DcimPlatformsListParams) SetCreated(created *string) { 334 o.Created = created 335 } 336 337 // WithCreatedGte adds the createdGte to the dcim platforms list params 338 func (o *DcimPlatformsListParams) WithCreatedGte(createdGte *string) *DcimPlatformsListParams { 339 o.SetCreatedGte(createdGte) 340 return o 341 } 342 343 // SetCreatedGte adds the createdGte to the dcim platforms list params 344 func (o *DcimPlatformsListParams) SetCreatedGte(createdGte *string) { 345 o.CreatedGte = createdGte 346 } 347 348 // WithCreatedLte adds the createdLte to the dcim platforms list params 349 func (o *DcimPlatformsListParams) WithCreatedLte(createdLte *string) *DcimPlatformsListParams { 350 o.SetCreatedLte(createdLte) 351 return o 352 } 353 354 // SetCreatedLte adds the createdLte to the dcim platforms list params 355 func (o *DcimPlatformsListParams) SetCreatedLte(createdLte *string) { 356 o.CreatedLte = createdLte 357 } 358 359 // WithDescription adds the description to the dcim platforms list params 360 func (o *DcimPlatformsListParams) WithDescription(description *string) *DcimPlatformsListParams { 361 o.SetDescription(description) 362 return o 363 } 364 365 // SetDescription adds the description to the dcim platforms list params 366 func (o *DcimPlatformsListParams) SetDescription(description *string) { 367 o.Description = description 368 } 369 370 // WithDescriptionEmpty adds the descriptionEmpty to the dcim platforms list params 371 func (o *DcimPlatformsListParams) WithDescriptionEmpty(descriptionEmpty *string) *DcimPlatformsListParams { 372 o.SetDescriptionEmpty(descriptionEmpty) 373 return o 374 } 375 376 // SetDescriptionEmpty adds the descriptionEmpty to the dcim platforms list params 377 func (o *DcimPlatformsListParams) SetDescriptionEmpty(descriptionEmpty *string) { 378 o.DescriptionEmpty = descriptionEmpty 379 } 380 381 // WithDescriptionIc adds the descriptionIc to the dcim platforms list params 382 func (o *DcimPlatformsListParams) WithDescriptionIc(descriptionIc *string) *DcimPlatformsListParams { 383 o.SetDescriptionIc(descriptionIc) 384 return o 385 } 386 387 // SetDescriptionIc adds the descriptionIc to the dcim platforms list params 388 func (o *DcimPlatformsListParams) SetDescriptionIc(descriptionIc *string) { 389 o.DescriptionIc = descriptionIc 390 } 391 392 // WithDescriptionIe adds the descriptionIe to the dcim platforms list params 393 func (o *DcimPlatformsListParams) WithDescriptionIe(descriptionIe *string) *DcimPlatformsListParams { 394 o.SetDescriptionIe(descriptionIe) 395 return o 396 } 397 398 // SetDescriptionIe adds the descriptionIe to the dcim platforms list params 399 func (o *DcimPlatformsListParams) SetDescriptionIe(descriptionIe *string) { 400 o.DescriptionIe = descriptionIe 401 } 402 403 // WithDescriptionIew adds the descriptionIew to the dcim platforms list params 404 func (o *DcimPlatformsListParams) WithDescriptionIew(descriptionIew *string) *DcimPlatformsListParams { 405 o.SetDescriptionIew(descriptionIew) 406 return o 407 } 408 409 // SetDescriptionIew adds the descriptionIew to the dcim platforms list params 410 func (o *DcimPlatformsListParams) SetDescriptionIew(descriptionIew *string) { 411 o.DescriptionIew = descriptionIew 412 } 413 414 // WithDescriptionIsw adds the descriptionIsw to the dcim platforms list params 415 func (o *DcimPlatformsListParams) WithDescriptionIsw(descriptionIsw *string) *DcimPlatformsListParams { 416 o.SetDescriptionIsw(descriptionIsw) 417 return o 418 } 419 420 // SetDescriptionIsw adds the descriptionIsw to the dcim platforms list params 421 func (o *DcimPlatformsListParams) SetDescriptionIsw(descriptionIsw *string) { 422 o.DescriptionIsw = descriptionIsw 423 } 424 425 // WithDescriptionn adds the descriptionn to the dcim platforms list params 426 func (o *DcimPlatformsListParams) WithDescriptionn(descriptionn *string) *DcimPlatformsListParams { 427 o.SetDescriptionn(descriptionn) 428 return o 429 } 430 431 // SetDescriptionn adds the descriptionN to the dcim platforms list params 432 func (o *DcimPlatformsListParams) SetDescriptionn(descriptionn *string) { 433 o.Descriptionn = descriptionn 434 } 435 436 // WithDescriptionNic adds the descriptionNic to the dcim platforms list params 437 func (o *DcimPlatformsListParams) WithDescriptionNic(descriptionNic *string) *DcimPlatformsListParams { 438 o.SetDescriptionNic(descriptionNic) 439 return o 440 } 441 442 // SetDescriptionNic adds the descriptionNic to the dcim platforms list params 443 func (o *DcimPlatformsListParams) SetDescriptionNic(descriptionNic *string) { 444 o.DescriptionNic = descriptionNic 445 } 446 447 // WithDescriptionNie adds the descriptionNie to the dcim platforms list params 448 func (o *DcimPlatformsListParams) WithDescriptionNie(descriptionNie *string) *DcimPlatformsListParams { 449 o.SetDescriptionNie(descriptionNie) 450 return o 451 } 452 453 // SetDescriptionNie adds the descriptionNie to the dcim platforms list params 454 func (o *DcimPlatformsListParams) SetDescriptionNie(descriptionNie *string) { 455 o.DescriptionNie = descriptionNie 456 } 457 458 // WithDescriptionNiew adds the descriptionNiew to the dcim platforms list params 459 func (o *DcimPlatformsListParams) WithDescriptionNiew(descriptionNiew *string) *DcimPlatformsListParams { 460 o.SetDescriptionNiew(descriptionNiew) 461 return o 462 } 463 464 // SetDescriptionNiew adds the descriptionNiew to the dcim platforms list params 465 func (o *DcimPlatformsListParams) SetDescriptionNiew(descriptionNiew *string) { 466 o.DescriptionNiew = descriptionNiew 467 } 468 469 // WithDescriptionNisw adds the descriptionNisw to the dcim platforms list params 470 func (o *DcimPlatformsListParams) WithDescriptionNisw(descriptionNisw *string) *DcimPlatformsListParams { 471 o.SetDescriptionNisw(descriptionNisw) 472 return o 473 } 474 475 // SetDescriptionNisw adds the descriptionNisw to the dcim platforms list params 476 func (o *DcimPlatformsListParams) SetDescriptionNisw(descriptionNisw *string) { 477 o.DescriptionNisw = descriptionNisw 478 } 479 480 // WithID adds the id to the dcim platforms list params 481 func (o *DcimPlatformsListParams) WithID(id *string) *DcimPlatformsListParams { 482 o.SetID(id) 483 return o 484 } 485 486 // SetID adds the id to the dcim platforms list params 487 func (o *DcimPlatformsListParams) SetID(id *string) { 488 o.ID = id 489 } 490 491 // WithIDGt adds the iDGt to the dcim platforms list params 492 func (o *DcimPlatformsListParams) WithIDGt(iDGt *string) *DcimPlatformsListParams { 493 o.SetIDGt(iDGt) 494 return o 495 } 496 497 // SetIDGt adds the idGt to the dcim platforms list params 498 func (o *DcimPlatformsListParams) SetIDGt(iDGt *string) { 499 o.IDGt = iDGt 500 } 501 502 // WithIDGte adds the iDGte to the dcim platforms list params 503 func (o *DcimPlatformsListParams) WithIDGte(iDGte *string) *DcimPlatformsListParams { 504 o.SetIDGte(iDGte) 505 return o 506 } 507 508 // SetIDGte adds the idGte to the dcim platforms list params 509 func (o *DcimPlatformsListParams) SetIDGte(iDGte *string) { 510 o.IDGte = iDGte 511 } 512 513 // WithIDLt adds the iDLt to the dcim platforms list params 514 func (o *DcimPlatformsListParams) WithIDLt(iDLt *string) *DcimPlatformsListParams { 515 o.SetIDLt(iDLt) 516 return o 517 } 518 519 // SetIDLt adds the idLt to the dcim platforms list params 520 func (o *DcimPlatformsListParams) SetIDLt(iDLt *string) { 521 o.IDLt = iDLt 522 } 523 524 // WithIDLte adds the iDLte to the dcim platforms list params 525 func (o *DcimPlatformsListParams) WithIDLte(iDLte *string) *DcimPlatformsListParams { 526 o.SetIDLte(iDLte) 527 return o 528 } 529 530 // SetIDLte adds the idLte to the dcim platforms list params 531 func (o *DcimPlatformsListParams) SetIDLte(iDLte *string) { 532 o.IDLte = iDLte 533 } 534 535 // WithIDn adds the iDn to the dcim platforms list params 536 func (o *DcimPlatformsListParams) WithIDn(iDn *string) *DcimPlatformsListParams { 537 o.SetIDn(iDn) 538 return o 539 } 540 541 // SetIDn adds the idN to the dcim platforms list params 542 func (o *DcimPlatformsListParams) SetIDn(iDn *string) { 543 o.IDn = iDn 544 } 545 546 // WithLastUpdated adds the lastUpdated to the dcim platforms list params 547 func (o *DcimPlatformsListParams) WithLastUpdated(lastUpdated *string) *DcimPlatformsListParams { 548 o.SetLastUpdated(lastUpdated) 549 return o 550 } 551 552 // SetLastUpdated adds the lastUpdated to the dcim platforms list params 553 func (o *DcimPlatformsListParams) SetLastUpdated(lastUpdated *string) { 554 o.LastUpdated = lastUpdated 555 } 556 557 // WithLastUpdatedGte adds the lastUpdatedGte to the dcim platforms list params 558 func (o *DcimPlatformsListParams) WithLastUpdatedGte(lastUpdatedGte *string) *DcimPlatformsListParams { 559 o.SetLastUpdatedGte(lastUpdatedGte) 560 return o 561 } 562 563 // SetLastUpdatedGte adds the lastUpdatedGte to the dcim platforms list params 564 func (o *DcimPlatformsListParams) SetLastUpdatedGte(lastUpdatedGte *string) { 565 o.LastUpdatedGte = lastUpdatedGte 566 } 567 568 // WithLastUpdatedLte adds the lastUpdatedLte to the dcim platforms list params 569 func (o *DcimPlatformsListParams) WithLastUpdatedLte(lastUpdatedLte *string) *DcimPlatformsListParams { 570 o.SetLastUpdatedLte(lastUpdatedLte) 571 return o 572 } 573 574 // SetLastUpdatedLte adds the lastUpdatedLte to the dcim platforms list params 575 func (o *DcimPlatformsListParams) SetLastUpdatedLte(lastUpdatedLte *string) { 576 o.LastUpdatedLte = lastUpdatedLte 577 } 578 579 // WithLimit adds the limit to the dcim platforms list params 580 func (o *DcimPlatformsListParams) WithLimit(limit *int64) *DcimPlatformsListParams { 581 o.SetLimit(limit) 582 return o 583 } 584 585 // SetLimit adds the limit to the dcim platforms list params 586 func (o *DcimPlatformsListParams) SetLimit(limit *int64) { 587 o.Limit = limit 588 } 589 590 // WithManufacturer adds the manufacturer to the dcim platforms list params 591 func (o *DcimPlatformsListParams) WithManufacturer(manufacturer *string) *DcimPlatformsListParams { 592 o.SetManufacturer(manufacturer) 593 return o 594 } 595 596 // SetManufacturer adds the manufacturer to the dcim platforms list params 597 func (o *DcimPlatformsListParams) SetManufacturer(manufacturer *string) { 598 o.Manufacturer = manufacturer 599 } 600 601 // WithManufacturern adds the manufacturern to the dcim platforms list params 602 func (o *DcimPlatformsListParams) WithManufacturern(manufacturern *string) *DcimPlatformsListParams { 603 o.SetManufacturern(manufacturern) 604 return o 605 } 606 607 // SetManufacturern adds the manufacturerN to the dcim platforms list params 608 func (o *DcimPlatformsListParams) SetManufacturern(manufacturern *string) { 609 o.Manufacturern = manufacturern 610 } 611 612 // WithManufacturerID adds the manufacturerID to the dcim platforms list params 613 func (o *DcimPlatformsListParams) WithManufacturerID(manufacturerID *string) *DcimPlatformsListParams { 614 o.SetManufacturerID(manufacturerID) 615 return o 616 } 617 618 // SetManufacturerID adds the manufacturerId to the dcim platforms list params 619 func (o *DcimPlatformsListParams) SetManufacturerID(manufacturerID *string) { 620 o.ManufacturerID = manufacturerID 621 } 622 623 // WithManufacturerIDn adds the manufacturerIDn to the dcim platforms list params 624 func (o *DcimPlatformsListParams) WithManufacturerIDn(manufacturerIDn *string) *DcimPlatformsListParams { 625 o.SetManufacturerIDn(manufacturerIDn) 626 return o 627 } 628 629 // SetManufacturerIDn adds the manufacturerIdN to the dcim platforms list params 630 func (o *DcimPlatformsListParams) SetManufacturerIDn(manufacturerIDn *string) { 631 o.ManufacturerIDn = manufacturerIDn 632 } 633 634 // WithName adds the name to the dcim platforms list params 635 func (o *DcimPlatformsListParams) WithName(name *string) *DcimPlatformsListParams { 636 o.SetName(name) 637 return o 638 } 639 640 // SetName adds the name to the dcim platforms list params 641 func (o *DcimPlatformsListParams) SetName(name *string) { 642 o.Name = name 643 } 644 645 // WithNameEmpty adds the nameEmpty to the dcim platforms list params 646 func (o *DcimPlatformsListParams) WithNameEmpty(nameEmpty *string) *DcimPlatformsListParams { 647 o.SetNameEmpty(nameEmpty) 648 return o 649 } 650 651 // SetNameEmpty adds the nameEmpty to the dcim platforms list params 652 func (o *DcimPlatformsListParams) SetNameEmpty(nameEmpty *string) { 653 o.NameEmpty = nameEmpty 654 } 655 656 // WithNameIc adds the nameIc to the dcim platforms list params 657 func (o *DcimPlatformsListParams) WithNameIc(nameIc *string) *DcimPlatformsListParams { 658 o.SetNameIc(nameIc) 659 return o 660 } 661 662 // SetNameIc adds the nameIc to the dcim platforms list params 663 func (o *DcimPlatformsListParams) SetNameIc(nameIc *string) { 664 o.NameIc = nameIc 665 } 666 667 // WithNameIe adds the nameIe to the dcim platforms list params 668 func (o *DcimPlatformsListParams) WithNameIe(nameIe *string) *DcimPlatformsListParams { 669 o.SetNameIe(nameIe) 670 return o 671 } 672 673 // SetNameIe adds the nameIe to the dcim platforms list params 674 func (o *DcimPlatformsListParams) SetNameIe(nameIe *string) { 675 o.NameIe = nameIe 676 } 677 678 // WithNameIew adds the nameIew to the dcim platforms list params 679 func (o *DcimPlatformsListParams) WithNameIew(nameIew *string) *DcimPlatformsListParams { 680 o.SetNameIew(nameIew) 681 return o 682 } 683 684 // SetNameIew adds the nameIew to the dcim platforms list params 685 func (o *DcimPlatformsListParams) SetNameIew(nameIew *string) { 686 o.NameIew = nameIew 687 } 688 689 // WithNameIsw adds the nameIsw to the dcim platforms list params 690 func (o *DcimPlatformsListParams) WithNameIsw(nameIsw *string) *DcimPlatformsListParams { 691 o.SetNameIsw(nameIsw) 692 return o 693 } 694 695 // SetNameIsw adds the nameIsw to the dcim platforms list params 696 func (o *DcimPlatformsListParams) SetNameIsw(nameIsw *string) { 697 o.NameIsw = nameIsw 698 } 699 700 // WithNamen adds the namen to the dcim platforms list params 701 func (o *DcimPlatformsListParams) WithNamen(namen *string) *DcimPlatformsListParams { 702 o.SetNamen(namen) 703 return o 704 } 705 706 // SetNamen adds the nameN to the dcim platforms list params 707 func (o *DcimPlatformsListParams) SetNamen(namen *string) { 708 o.Namen = namen 709 } 710 711 // WithNameNic adds the nameNic to the dcim platforms list params 712 func (o *DcimPlatformsListParams) WithNameNic(nameNic *string) *DcimPlatformsListParams { 713 o.SetNameNic(nameNic) 714 return o 715 } 716 717 // SetNameNic adds the nameNic to the dcim platforms list params 718 func (o *DcimPlatformsListParams) SetNameNic(nameNic *string) { 719 o.NameNic = nameNic 720 } 721 722 // WithNameNie adds the nameNie to the dcim platforms list params 723 func (o *DcimPlatformsListParams) WithNameNie(nameNie *string) *DcimPlatformsListParams { 724 o.SetNameNie(nameNie) 725 return o 726 } 727 728 // SetNameNie adds the nameNie to the dcim platforms list params 729 func (o *DcimPlatformsListParams) SetNameNie(nameNie *string) { 730 o.NameNie = nameNie 731 } 732 733 // WithNameNiew adds the nameNiew to the dcim platforms list params 734 func (o *DcimPlatformsListParams) WithNameNiew(nameNiew *string) *DcimPlatformsListParams { 735 o.SetNameNiew(nameNiew) 736 return o 737 } 738 739 // SetNameNiew adds the nameNiew to the dcim platforms list params 740 func (o *DcimPlatformsListParams) SetNameNiew(nameNiew *string) { 741 o.NameNiew = nameNiew 742 } 743 744 // WithNameNisw adds the nameNisw to the dcim platforms list params 745 func (o *DcimPlatformsListParams) WithNameNisw(nameNisw *string) *DcimPlatformsListParams { 746 o.SetNameNisw(nameNisw) 747 return o 748 } 749 750 // SetNameNisw adds the nameNisw to the dcim platforms list params 751 func (o *DcimPlatformsListParams) SetNameNisw(nameNisw *string) { 752 o.NameNisw = nameNisw 753 } 754 755 // WithNapalmDriver adds the napalmDriver to the dcim platforms list params 756 func (o *DcimPlatformsListParams) WithNapalmDriver(napalmDriver *string) *DcimPlatformsListParams { 757 o.SetNapalmDriver(napalmDriver) 758 return o 759 } 760 761 // SetNapalmDriver adds the napalmDriver to the dcim platforms list params 762 func (o *DcimPlatformsListParams) SetNapalmDriver(napalmDriver *string) { 763 o.NapalmDriver = napalmDriver 764 } 765 766 // WithNapalmDriverEmpty adds the napalmDriverEmpty to the dcim platforms list params 767 func (o *DcimPlatformsListParams) WithNapalmDriverEmpty(napalmDriverEmpty *string) *DcimPlatformsListParams { 768 o.SetNapalmDriverEmpty(napalmDriverEmpty) 769 return o 770 } 771 772 // SetNapalmDriverEmpty adds the napalmDriverEmpty to the dcim platforms list params 773 func (o *DcimPlatformsListParams) SetNapalmDriverEmpty(napalmDriverEmpty *string) { 774 o.NapalmDriverEmpty = napalmDriverEmpty 775 } 776 777 // WithNapalmDriverIc adds the napalmDriverIc to the dcim platforms list params 778 func (o *DcimPlatformsListParams) WithNapalmDriverIc(napalmDriverIc *string) *DcimPlatformsListParams { 779 o.SetNapalmDriverIc(napalmDriverIc) 780 return o 781 } 782 783 // SetNapalmDriverIc adds the napalmDriverIc to the dcim platforms list params 784 func (o *DcimPlatformsListParams) SetNapalmDriverIc(napalmDriverIc *string) { 785 o.NapalmDriverIc = napalmDriverIc 786 } 787 788 // WithNapalmDriverIe adds the napalmDriverIe to the dcim platforms list params 789 func (o *DcimPlatformsListParams) WithNapalmDriverIe(napalmDriverIe *string) *DcimPlatformsListParams { 790 o.SetNapalmDriverIe(napalmDriverIe) 791 return o 792 } 793 794 // SetNapalmDriverIe adds the napalmDriverIe to the dcim platforms list params 795 func (o *DcimPlatformsListParams) SetNapalmDriverIe(napalmDriverIe *string) { 796 o.NapalmDriverIe = napalmDriverIe 797 } 798 799 // WithNapalmDriverIew adds the napalmDriverIew to the dcim platforms list params 800 func (o *DcimPlatformsListParams) WithNapalmDriverIew(napalmDriverIew *string) *DcimPlatformsListParams { 801 o.SetNapalmDriverIew(napalmDriverIew) 802 return o 803 } 804 805 // SetNapalmDriverIew adds the napalmDriverIew to the dcim platforms list params 806 func (o *DcimPlatformsListParams) SetNapalmDriverIew(napalmDriverIew *string) { 807 o.NapalmDriverIew = napalmDriverIew 808 } 809 810 // WithNapalmDriverIsw adds the napalmDriverIsw to the dcim platforms list params 811 func (o *DcimPlatformsListParams) WithNapalmDriverIsw(napalmDriverIsw *string) *DcimPlatformsListParams { 812 o.SetNapalmDriverIsw(napalmDriverIsw) 813 return o 814 } 815 816 // SetNapalmDriverIsw adds the napalmDriverIsw to the dcim platforms list params 817 func (o *DcimPlatformsListParams) SetNapalmDriverIsw(napalmDriverIsw *string) { 818 o.NapalmDriverIsw = napalmDriverIsw 819 } 820 821 // WithNapalmDrivern adds the napalmDrivern to the dcim platforms list params 822 func (o *DcimPlatformsListParams) WithNapalmDrivern(napalmDrivern *string) *DcimPlatformsListParams { 823 o.SetNapalmDrivern(napalmDrivern) 824 return o 825 } 826 827 // SetNapalmDrivern adds the napalmDriverN to the dcim platforms list params 828 func (o *DcimPlatformsListParams) SetNapalmDrivern(napalmDrivern *string) { 829 o.NapalmDrivern = napalmDrivern 830 } 831 832 // WithNapalmDriverNic adds the napalmDriverNic to the dcim platforms list params 833 func (o *DcimPlatformsListParams) WithNapalmDriverNic(napalmDriverNic *string) *DcimPlatformsListParams { 834 o.SetNapalmDriverNic(napalmDriverNic) 835 return o 836 } 837 838 // SetNapalmDriverNic adds the napalmDriverNic to the dcim platforms list params 839 func (o *DcimPlatformsListParams) SetNapalmDriverNic(napalmDriverNic *string) { 840 o.NapalmDriverNic = napalmDriverNic 841 } 842 843 // WithNapalmDriverNie adds the napalmDriverNie to the dcim platforms list params 844 func (o *DcimPlatformsListParams) WithNapalmDriverNie(napalmDriverNie *string) *DcimPlatformsListParams { 845 o.SetNapalmDriverNie(napalmDriverNie) 846 return o 847 } 848 849 // SetNapalmDriverNie adds the napalmDriverNie to the dcim platforms list params 850 func (o *DcimPlatformsListParams) SetNapalmDriverNie(napalmDriverNie *string) { 851 o.NapalmDriverNie = napalmDriverNie 852 } 853 854 // WithNapalmDriverNiew adds the napalmDriverNiew to the dcim platforms list params 855 func (o *DcimPlatformsListParams) WithNapalmDriverNiew(napalmDriverNiew *string) *DcimPlatformsListParams { 856 o.SetNapalmDriverNiew(napalmDriverNiew) 857 return o 858 } 859 860 // SetNapalmDriverNiew adds the napalmDriverNiew to the dcim platforms list params 861 func (o *DcimPlatformsListParams) SetNapalmDriverNiew(napalmDriverNiew *string) { 862 o.NapalmDriverNiew = napalmDriverNiew 863 } 864 865 // WithNapalmDriverNisw adds the napalmDriverNisw to the dcim platforms list params 866 func (o *DcimPlatformsListParams) WithNapalmDriverNisw(napalmDriverNisw *string) *DcimPlatformsListParams { 867 o.SetNapalmDriverNisw(napalmDriverNisw) 868 return o 869 } 870 871 // SetNapalmDriverNisw adds the napalmDriverNisw to the dcim platforms list params 872 func (o *DcimPlatformsListParams) SetNapalmDriverNisw(napalmDriverNisw *string) { 873 o.NapalmDriverNisw = napalmDriverNisw 874 } 875 876 // WithOffset adds the offset to the dcim platforms list params 877 func (o *DcimPlatformsListParams) WithOffset(offset *int64) *DcimPlatformsListParams { 878 o.SetOffset(offset) 879 return o 880 } 881 882 // SetOffset adds the offset to the dcim platforms list params 883 func (o *DcimPlatformsListParams) SetOffset(offset *int64) { 884 o.Offset = offset 885 } 886 887 // WithQ adds the q to the dcim platforms list params 888 func (o *DcimPlatformsListParams) WithQ(q *string) *DcimPlatformsListParams { 889 o.SetQ(q) 890 return o 891 } 892 893 // SetQ adds the q to the dcim platforms list params 894 func (o *DcimPlatformsListParams) SetQ(q *string) { 895 o.Q = q 896 } 897 898 // WithSlug adds the slug to the dcim platforms list params 899 func (o *DcimPlatformsListParams) WithSlug(slug *string) *DcimPlatformsListParams { 900 o.SetSlug(slug) 901 return o 902 } 903 904 // SetSlug adds the slug to the dcim platforms list params 905 func (o *DcimPlatformsListParams) SetSlug(slug *string) { 906 o.Slug = slug 907 } 908 909 // WithSlugEmpty adds the slugEmpty to the dcim platforms list params 910 func (o *DcimPlatformsListParams) WithSlugEmpty(slugEmpty *string) *DcimPlatformsListParams { 911 o.SetSlugEmpty(slugEmpty) 912 return o 913 } 914 915 // SetSlugEmpty adds the slugEmpty to the dcim platforms list params 916 func (o *DcimPlatformsListParams) SetSlugEmpty(slugEmpty *string) { 917 o.SlugEmpty = slugEmpty 918 } 919 920 // WithSlugIc adds the slugIc to the dcim platforms list params 921 func (o *DcimPlatformsListParams) WithSlugIc(slugIc *string) *DcimPlatformsListParams { 922 o.SetSlugIc(slugIc) 923 return o 924 } 925 926 // SetSlugIc adds the slugIc to the dcim platforms list params 927 func (o *DcimPlatformsListParams) SetSlugIc(slugIc *string) { 928 o.SlugIc = slugIc 929 } 930 931 // WithSlugIe adds the slugIe to the dcim platforms list params 932 func (o *DcimPlatformsListParams) WithSlugIe(slugIe *string) *DcimPlatformsListParams { 933 o.SetSlugIe(slugIe) 934 return o 935 } 936 937 // SetSlugIe adds the slugIe to the dcim platforms list params 938 func (o *DcimPlatformsListParams) SetSlugIe(slugIe *string) { 939 o.SlugIe = slugIe 940 } 941 942 // WithSlugIew adds the slugIew to the dcim platforms list params 943 func (o *DcimPlatformsListParams) WithSlugIew(slugIew *string) *DcimPlatformsListParams { 944 o.SetSlugIew(slugIew) 945 return o 946 } 947 948 // SetSlugIew adds the slugIew to the dcim platforms list params 949 func (o *DcimPlatformsListParams) SetSlugIew(slugIew *string) { 950 o.SlugIew = slugIew 951 } 952 953 // WithSlugIsw adds the slugIsw to the dcim platforms list params 954 func (o *DcimPlatformsListParams) WithSlugIsw(slugIsw *string) *DcimPlatformsListParams { 955 o.SetSlugIsw(slugIsw) 956 return o 957 } 958 959 // SetSlugIsw adds the slugIsw to the dcim platforms list params 960 func (o *DcimPlatformsListParams) SetSlugIsw(slugIsw *string) { 961 o.SlugIsw = slugIsw 962 } 963 964 // WithSlugn adds the slugn to the dcim platforms list params 965 func (o *DcimPlatformsListParams) WithSlugn(slugn *string) *DcimPlatformsListParams { 966 o.SetSlugn(slugn) 967 return o 968 } 969 970 // SetSlugn adds the slugN to the dcim platforms list params 971 func (o *DcimPlatformsListParams) SetSlugn(slugn *string) { 972 o.Slugn = slugn 973 } 974 975 // WithSlugNic adds the slugNic to the dcim platforms list params 976 func (o *DcimPlatformsListParams) WithSlugNic(slugNic *string) *DcimPlatformsListParams { 977 o.SetSlugNic(slugNic) 978 return o 979 } 980 981 // SetSlugNic adds the slugNic to the dcim platforms list params 982 func (o *DcimPlatformsListParams) SetSlugNic(slugNic *string) { 983 o.SlugNic = slugNic 984 } 985 986 // WithSlugNie adds the slugNie to the dcim platforms list params 987 func (o *DcimPlatformsListParams) WithSlugNie(slugNie *string) *DcimPlatformsListParams { 988 o.SetSlugNie(slugNie) 989 return o 990 } 991 992 // SetSlugNie adds the slugNie to the dcim platforms list params 993 func (o *DcimPlatformsListParams) SetSlugNie(slugNie *string) { 994 o.SlugNie = slugNie 995 } 996 997 // WithSlugNiew adds the slugNiew to the dcim platforms list params 998 func (o *DcimPlatformsListParams) WithSlugNiew(slugNiew *string) *DcimPlatformsListParams { 999 o.SetSlugNiew(slugNiew) 1000 return o 1001 } 1002 1003 // SetSlugNiew adds the slugNiew to the dcim platforms list params 1004 func (o *DcimPlatformsListParams) SetSlugNiew(slugNiew *string) { 1005 o.SlugNiew = slugNiew 1006 } 1007 1008 // WithSlugNisw adds the slugNisw to the dcim platforms list params 1009 func (o *DcimPlatformsListParams) WithSlugNisw(slugNisw *string) *DcimPlatformsListParams { 1010 o.SetSlugNisw(slugNisw) 1011 return o 1012 } 1013 1014 // SetSlugNisw adds the slugNisw to the dcim platforms list params 1015 func (o *DcimPlatformsListParams) SetSlugNisw(slugNisw *string) { 1016 o.SlugNisw = slugNisw 1017 } 1018 1019 // WriteToRequest writes these params to a swagger request 1020 func (o *DcimPlatformsListParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { 1021 1022 if err := r.SetTimeout(o.timeout); err != nil { 1023 return err 1024 } 1025 var res []error 1026 1027 if o.Created != nil { 1028 1029 // query param created 1030 var qrCreated string 1031 1032 if o.Created != nil { 1033 qrCreated = *o.Created 1034 } 1035 qCreated := qrCreated 1036 if qCreated != "" { 1037 1038 if err := r.SetQueryParam("created", qCreated); err != nil { 1039 return err 1040 } 1041 } 1042 } 1043 1044 if o.CreatedGte != nil { 1045 1046 // query param created__gte 1047 var qrCreatedGte string 1048 1049 if o.CreatedGte != nil { 1050 qrCreatedGte = *o.CreatedGte 1051 } 1052 qCreatedGte := qrCreatedGte 1053 if qCreatedGte != "" { 1054 1055 if err := r.SetQueryParam("created__gte", qCreatedGte); err != nil { 1056 return err 1057 } 1058 } 1059 } 1060 1061 if o.CreatedLte != nil { 1062 1063 // query param created__lte 1064 var qrCreatedLte string 1065 1066 if o.CreatedLte != nil { 1067 qrCreatedLte = *o.CreatedLte 1068 } 1069 qCreatedLte := qrCreatedLte 1070 if qCreatedLte != "" { 1071 1072 if err := r.SetQueryParam("created__lte", qCreatedLte); err != nil { 1073 return err 1074 } 1075 } 1076 } 1077 1078 if o.Description != nil { 1079 1080 // query param description 1081 var qrDescription string 1082 1083 if o.Description != nil { 1084 qrDescription = *o.Description 1085 } 1086 qDescription := qrDescription 1087 if qDescription != "" { 1088 1089 if err := r.SetQueryParam("description", qDescription); err != nil { 1090 return err 1091 } 1092 } 1093 } 1094 1095 if o.DescriptionEmpty != nil { 1096 1097 // query param description__empty 1098 var qrDescriptionEmpty string 1099 1100 if o.DescriptionEmpty != nil { 1101 qrDescriptionEmpty = *o.DescriptionEmpty 1102 } 1103 qDescriptionEmpty := qrDescriptionEmpty 1104 if qDescriptionEmpty != "" { 1105 1106 if err := r.SetQueryParam("description__empty", qDescriptionEmpty); err != nil { 1107 return err 1108 } 1109 } 1110 } 1111 1112 if o.DescriptionIc != nil { 1113 1114 // query param description__ic 1115 var qrDescriptionIc string 1116 1117 if o.DescriptionIc != nil { 1118 qrDescriptionIc = *o.DescriptionIc 1119 } 1120 qDescriptionIc := qrDescriptionIc 1121 if qDescriptionIc != "" { 1122 1123 if err := r.SetQueryParam("description__ic", qDescriptionIc); err != nil { 1124 return err 1125 } 1126 } 1127 } 1128 1129 if o.DescriptionIe != nil { 1130 1131 // query param description__ie 1132 var qrDescriptionIe string 1133 1134 if o.DescriptionIe != nil { 1135 qrDescriptionIe = *o.DescriptionIe 1136 } 1137 qDescriptionIe := qrDescriptionIe 1138 if qDescriptionIe != "" { 1139 1140 if err := r.SetQueryParam("description__ie", qDescriptionIe); err != nil { 1141 return err 1142 } 1143 } 1144 } 1145 1146 if o.DescriptionIew != nil { 1147 1148 // query param description__iew 1149 var qrDescriptionIew string 1150 1151 if o.DescriptionIew != nil { 1152 qrDescriptionIew = *o.DescriptionIew 1153 } 1154 qDescriptionIew := qrDescriptionIew 1155 if qDescriptionIew != "" { 1156 1157 if err := r.SetQueryParam("description__iew", qDescriptionIew); err != nil { 1158 return err 1159 } 1160 } 1161 } 1162 1163 if o.DescriptionIsw != nil { 1164 1165 // query param description__isw 1166 var qrDescriptionIsw string 1167 1168 if o.DescriptionIsw != nil { 1169 qrDescriptionIsw = *o.DescriptionIsw 1170 } 1171 qDescriptionIsw := qrDescriptionIsw 1172 if qDescriptionIsw != "" { 1173 1174 if err := r.SetQueryParam("description__isw", qDescriptionIsw); err != nil { 1175 return err 1176 } 1177 } 1178 } 1179 1180 if o.Descriptionn != nil { 1181 1182 // query param description__n 1183 var qrDescriptionn string 1184 1185 if o.Descriptionn != nil { 1186 qrDescriptionn = *o.Descriptionn 1187 } 1188 qDescriptionn := qrDescriptionn 1189 if qDescriptionn != "" { 1190 1191 if err := r.SetQueryParam("description__n", qDescriptionn); err != nil { 1192 return err 1193 } 1194 } 1195 } 1196 1197 if o.DescriptionNic != nil { 1198 1199 // query param description__nic 1200 var qrDescriptionNic string 1201 1202 if o.DescriptionNic != nil { 1203 qrDescriptionNic = *o.DescriptionNic 1204 } 1205 qDescriptionNic := qrDescriptionNic 1206 if qDescriptionNic != "" { 1207 1208 if err := r.SetQueryParam("description__nic", qDescriptionNic); err != nil { 1209 return err 1210 } 1211 } 1212 } 1213 1214 if o.DescriptionNie != nil { 1215 1216 // query param description__nie 1217 var qrDescriptionNie string 1218 1219 if o.DescriptionNie != nil { 1220 qrDescriptionNie = *o.DescriptionNie 1221 } 1222 qDescriptionNie := qrDescriptionNie 1223 if qDescriptionNie != "" { 1224 1225 if err := r.SetQueryParam("description__nie", qDescriptionNie); err != nil { 1226 return err 1227 } 1228 } 1229 } 1230 1231 if o.DescriptionNiew != nil { 1232 1233 // query param description__niew 1234 var qrDescriptionNiew string 1235 1236 if o.DescriptionNiew != nil { 1237 qrDescriptionNiew = *o.DescriptionNiew 1238 } 1239 qDescriptionNiew := qrDescriptionNiew 1240 if qDescriptionNiew != "" { 1241 1242 if err := r.SetQueryParam("description__niew", qDescriptionNiew); err != nil { 1243 return err 1244 } 1245 } 1246 } 1247 1248 if o.DescriptionNisw != nil { 1249 1250 // query param description__nisw 1251 var qrDescriptionNisw string 1252 1253 if o.DescriptionNisw != nil { 1254 qrDescriptionNisw = *o.DescriptionNisw 1255 } 1256 qDescriptionNisw := qrDescriptionNisw 1257 if qDescriptionNisw != "" { 1258 1259 if err := r.SetQueryParam("description__nisw", qDescriptionNisw); err != nil { 1260 return err 1261 } 1262 } 1263 } 1264 1265 if o.ID != nil { 1266 1267 // query param id 1268 var qrID string 1269 1270 if o.ID != nil { 1271 qrID = *o.ID 1272 } 1273 qID := qrID 1274 if qID != "" { 1275 1276 if err := r.SetQueryParam("id", qID); err != nil { 1277 return err 1278 } 1279 } 1280 } 1281 1282 if o.IDGt != nil { 1283 1284 // query param id__gt 1285 var qrIDGt string 1286 1287 if o.IDGt != nil { 1288 qrIDGt = *o.IDGt 1289 } 1290 qIDGt := qrIDGt 1291 if qIDGt != "" { 1292 1293 if err := r.SetQueryParam("id__gt", qIDGt); err != nil { 1294 return err 1295 } 1296 } 1297 } 1298 1299 if o.IDGte != nil { 1300 1301 // query param id__gte 1302 var qrIDGte string 1303 1304 if o.IDGte != nil { 1305 qrIDGte = *o.IDGte 1306 } 1307 qIDGte := qrIDGte 1308 if qIDGte != "" { 1309 1310 if err := r.SetQueryParam("id__gte", qIDGte); err != nil { 1311 return err 1312 } 1313 } 1314 } 1315 1316 if o.IDLt != nil { 1317 1318 // query param id__lt 1319 var qrIDLt string 1320 1321 if o.IDLt != nil { 1322 qrIDLt = *o.IDLt 1323 } 1324 qIDLt := qrIDLt 1325 if qIDLt != "" { 1326 1327 if err := r.SetQueryParam("id__lt", qIDLt); err != nil { 1328 return err 1329 } 1330 } 1331 } 1332 1333 if o.IDLte != nil { 1334 1335 // query param id__lte 1336 var qrIDLte string 1337 1338 if o.IDLte != nil { 1339 qrIDLte = *o.IDLte 1340 } 1341 qIDLte := qrIDLte 1342 if qIDLte != "" { 1343 1344 if err := r.SetQueryParam("id__lte", qIDLte); err != nil { 1345 return err 1346 } 1347 } 1348 } 1349 1350 if o.IDn != nil { 1351 1352 // query param id__n 1353 var qrIDn string 1354 1355 if o.IDn != nil { 1356 qrIDn = *o.IDn 1357 } 1358 qIDn := qrIDn 1359 if qIDn != "" { 1360 1361 if err := r.SetQueryParam("id__n", qIDn); err != nil { 1362 return err 1363 } 1364 } 1365 } 1366 1367 if o.LastUpdated != nil { 1368 1369 // query param last_updated 1370 var qrLastUpdated string 1371 1372 if o.LastUpdated != nil { 1373 qrLastUpdated = *o.LastUpdated 1374 } 1375 qLastUpdated := qrLastUpdated 1376 if qLastUpdated != "" { 1377 1378 if err := r.SetQueryParam("last_updated", qLastUpdated); err != nil { 1379 return err 1380 } 1381 } 1382 } 1383 1384 if o.LastUpdatedGte != nil { 1385 1386 // query param last_updated__gte 1387 var qrLastUpdatedGte string 1388 1389 if o.LastUpdatedGte != nil { 1390 qrLastUpdatedGte = *o.LastUpdatedGte 1391 } 1392 qLastUpdatedGte := qrLastUpdatedGte 1393 if qLastUpdatedGte != "" { 1394 1395 if err := r.SetQueryParam("last_updated__gte", qLastUpdatedGte); err != nil { 1396 return err 1397 } 1398 } 1399 } 1400 1401 if o.LastUpdatedLte != nil { 1402 1403 // query param last_updated__lte 1404 var qrLastUpdatedLte string 1405 1406 if o.LastUpdatedLte != nil { 1407 qrLastUpdatedLte = *o.LastUpdatedLte 1408 } 1409 qLastUpdatedLte := qrLastUpdatedLte 1410 if qLastUpdatedLte != "" { 1411 1412 if err := r.SetQueryParam("last_updated__lte", qLastUpdatedLte); err != nil { 1413 return err 1414 } 1415 } 1416 } 1417 1418 if o.Limit != nil { 1419 1420 // query param limit 1421 var qrLimit int64 1422 1423 if o.Limit != nil { 1424 qrLimit = *o.Limit 1425 } 1426 qLimit := swag.FormatInt64(qrLimit) 1427 if qLimit != "" { 1428 1429 if err := r.SetQueryParam("limit", qLimit); err != nil { 1430 return err 1431 } 1432 } 1433 } 1434 1435 if o.Manufacturer != nil { 1436 1437 // query param manufacturer 1438 var qrManufacturer string 1439 1440 if o.Manufacturer != nil { 1441 qrManufacturer = *o.Manufacturer 1442 } 1443 qManufacturer := qrManufacturer 1444 if qManufacturer != "" { 1445 1446 if err := r.SetQueryParam("manufacturer", qManufacturer); err != nil { 1447 return err 1448 } 1449 } 1450 } 1451 1452 if o.Manufacturern != nil { 1453 1454 // query param manufacturer__n 1455 var qrManufacturern string 1456 1457 if o.Manufacturern != nil { 1458 qrManufacturern = *o.Manufacturern 1459 } 1460 qManufacturern := qrManufacturern 1461 if qManufacturern != "" { 1462 1463 if err := r.SetQueryParam("manufacturer__n", qManufacturern); err != nil { 1464 return err 1465 } 1466 } 1467 } 1468 1469 if o.ManufacturerID != nil { 1470 1471 // query param manufacturer_id 1472 var qrManufacturerID string 1473 1474 if o.ManufacturerID != nil { 1475 qrManufacturerID = *o.ManufacturerID 1476 } 1477 qManufacturerID := qrManufacturerID 1478 if qManufacturerID != "" { 1479 1480 if err := r.SetQueryParam("manufacturer_id", qManufacturerID); err != nil { 1481 return err 1482 } 1483 } 1484 } 1485 1486 if o.ManufacturerIDn != nil { 1487 1488 // query param manufacturer_id__n 1489 var qrManufacturerIDn string 1490 1491 if o.ManufacturerIDn != nil { 1492 qrManufacturerIDn = *o.ManufacturerIDn 1493 } 1494 qManufacturerIDn := qrManufacturerIDn 1495 if qManufacturerIDn != "" { 1496 1497 if err := r.SetQueryParam("manufacturer_id__n", qManufacturerIDn); err != nil { 1498 return err 1499 } 1500 } 1501 } 1502 1503 if o.Name != nil { 1504 1505 // query param name 1506 var qrName string 1507 1508 if o.Name != nil { 1509 qrName = *o.Name 1510 } 1511 qName := qrName 1512 if qName != "" { 1513 1514 if err := r.SetQueryParam("name", qName); err != nil { 1515 return err 1516 } 1517 } 1518 } 1519 1520 if o.NameEmpty != nil { 1521 1522 // query param name__empty 1523 var qrNameEmpty string 1524 1525 if o.NameEmpty != nil { 1526 qrNameEmpty = *o.NameEmpty 1527 } 1528 qNameEmpty := qrNameEmpty 1529 if qNameEmpty != "" { 1530 1531 if err := r.SetQueryParam("name__empty", qNameEmpty); err != nil { 1532 return err 1533 } 1534 } 1535 } 1536 1537 if o.NameIc != nil { 1538 1539 // query param name__ic 1540 var qrNameIc string 1541 1542 if o.NameIc != nil { 1543 qrNameIc = *o.NameIc 1544 } 1545 qNameIc := qrNameIc 1546 if qNameIc != "" { 1547 1548 if err := r.SetQueryParam("name__ic", qNameIc); err != nil { 1549 return err 1550 } 1551 } 1552 } 1553 1554 if o.NameIe != nil { 1555 1556 // query param name__ie 1557 var qrNameIe string 1558 1559 if o.NameIe != nil { 1560 qrNameIe = *o.NameIe 1561 } 1562 qNameIe := qrNameIe 1563 if qNameIe != "" { 1564 1565 if err := r.SetQueryParam("name__ie", qNameIe); err != nil { 1566 return err 1567 } 1568 } 1569 } 1570 1571 if o.NameIew != nil { 1572 1573 // query param name__iew 1574 var qrNameIew string 1575 1576 if o.NameIew != nil { 1577 qrNameIew = *o.NameIew 1578 } 1579 qNameIew := qrNameIew 1580 if qNameIew != "" { 1581 1582 if err := r.SetQueryParam("name__iew", qNameIew); err != nil { 1583 return err 1584 } 1585 } 1586 } 1587 1588 if o.NameIsw != nil { 1589 1590 // query param name__isw 1591 var qrNameIsw string 1592 1593 if o.NameIsw != nil { 1594 qrNameIsw = *o.NameIsw 1595 } 1596 qNameIsw := qrNameIsw 1597 if qNameIsw != "" { 1598 1599 if err := r.SetQueryParam("name__isw", qNameIsw); err != nil { 1600 return err 1601 } 1602 } 1603 } 1604 1605 if o.Namen != nil { 1606 1607 // query param name__n 1608 var qrNamen string 1609 1610 if o.Namen != nil { 1611 qrNamen = *o.Namen 1612 } 1613 qNamen := qrNamen 1614 if qNamen != "" { 1615 1616 if err := r.SetQueryParam("name__n", qNamen); err != nil { 1617 return err 1618 } 1619 } 1620 } 1621 1622 if o.NameNic != nil { 1623 1624 // query param name__nic 1625 var qrNameNic string 1626 1627 if o.NameNic != nil { 1628 qrNameNic = *o.NameNic 1629 } 1630 qNameNic := qrNameNic 1631 if qNameNic != "" { 1632 1633 if err := r.SetQueryParam("name__nic", qNameNic); err != nil { 1634 return err 1635 } 1636 } 1637 } 1638 1639 if o.NameNie != nil { 1640 1641 // query param name__nie 1642 var qrNameNie string 1643 1644 if o.NameNie != nil { 1645 qrNameNie = *o.NameNie 1646 } 1647 qNameNie := qrNameNie 1648 if qNameNie != "" { 1649 1650 if err := r.SetQueryParam("name__nie", qNameNie); err != nil { 1651 return err 1652 } 1653 } 1654 } 1655 1656 if o.NameNiew != nil { 1657 1658 // query param name__niew 1659 var qrNameNiew string 1660 1661 if o.NameNiew != nil { 1662 qrNameNiew = *o.NameNiew 1663 } 1664 qNameNiew := qrNameNiew 1665 if qNameNiew != "" { 1666 1667 if err := r.SetQueryParam("name__niew", qNameNiew); err != nil { 1668 return err 1669 } 1670 } 1671 } 1672 1673 if o.NameNisw != nil { 1674 1675 // query param name__nisw 1676 var qrNameNisw string 1677 1678 if o.NameNisw != nil { 1679 qrNameNisw = *o.NameNisw 1680 } 1681 qNameNisw := qrNameNisw 1682 if qNameNisw != "" { 1683 1684 if err := r.SetQueryParam("name__nisw", qNameNisw); err != nil { 1685 return err 1686 } 1687 } 1688 } 1689 1690 if o.NapalmDriver != nil { 1691 1692 // query param napalm_driver 1693 var qrNapalmDriver string 1694 1695 if o.NapalmDriver != nil { 1696 qrNapalmDriver = *o.NapalmDriver 1697 } 1698 qNapalmDriver := qrNapalmDriver 1699 if qNapalmDriver != "" { 1700 1701 if err := r.SetQueryParam("napalm_driver", qNapalmDriver); err != nil { 1702 return err 1703 } 1704 } 1705 } 1706 1707 if o.NapalmDriverEmpty != nil { 1708 1709 // query param napalm_driver__empty 1710 var qrNapalmDriverEmpty string 1711 1712 if o.NapalmDriverEmpty != nil { 1713 qrNapalmDriverEmpty = *o.NapalmDriverEmpty 1714 } 1715 qNapalmDriverEmpty := qrNapalmDriverEmpty 1716 if qNapalmDriverEmpty != "" { 1717 1718 if err := r.SetQueryParam("napalm_driver__empty", qNapalmDriverEmpty); err != nil { 1719 return err 1720 } 1721 } 1722 } 1723 1724 if o.NapalmDriverIc != nil { 1725 1726 // query param napalm_driver__ic 1727 var qrNapalmDriverIc string 1728 1729 if o.NapalmDriverIc != nil { 1730 qrNapalmDriverIc = *o.NapalmDriverIc 1731 } 1732 qNapalmDriverIc := qrNapalmDriverIc 1733 if qNapalmDriverIc != "" { 1734 1735 if err := r.SetQueryParam("napalm_driver__ic", qNapalmDriverIc); err != nil { 1736 return err 1737 } 1738 } 1739 } 1740 1741 if o.NapalmDriverIe != nil { 1742 1743 // query param napalm_driver__ie 1744 var qrNapalmDriverIe string 1745 1746 if o.NapalmDriverIe != nil { 1747 qrNapalmDriverIe = *o.NapalmDriverIe 1748 } 1749 qNapalmDriverIe := qrNapalmDriverIe 1750 if qNapalmDriverIe != "" { 1751 1752 if err := r.SetQueryParam("napalm_driver__ie", qNapalmDriverIe); err != nil { 1753 return err 1754 } 1755 } 1756 } 1757 1758 if o.NapalmDriverIew != nil { 1759 1760 // query param napalm_driver__iew 1761 var qrNapalmDriverIew string 1762 1763 if o.NapalmDriverIew != nil { 1764 qrNapalmDriverIew = *o.NapalmDriverIew 1765 } 1766 qNapalmDriverIew := qrNapalmDriverIew 1767 if qNapalmDriverIew != "" { 1768 1769 if err := r.SetQueryParam("napalm_driver__iew", qNapalmDriverIew); err != nil { 1770 return err 1771 } 1772 } 1773 } 1774 1775 if o.NapalmDriverIsw != nil { 1776 1777 // query param napalm_driver__isw 1778 var qrNapalmDriverIsw string 1779 1780 if o.NapalmDriverIsw != nil { 1781 qrNapalmDriverIsw = *o.NapalmDriverIsw 1782 } 1783 qNapalmDriverIsw := qrNapalmDriverIsw 1784 if qNapalmDriverIsw != "" { 1785 1786 if err := r.SetQueryParam("napalm_driver__isw", qNapalmDriverIsw); err != nil { 1787 return err 1788 } 1789 } 1790 } 1791 1792 if o.NapalmDrivern != nil { 1793 1794 // query param napalm_driver__n 1795 var qrNapalmDrivern string 1796 1797 if o.NapalmDrivern != nil { 1798 qrNapalmDrivern = *o.NapalmDrivern 1799 } 1800 qNapalmDrivern := qrNapalmDrivern 1801 if qNapalmDrivern != "" { 1802 1803 if err := r.SetQueryParam("napalm_driver__n", qNapalmDrivern); err != nil { 1804 return err 1805 } 1806 } 1807 } 1808 1809 if o.NapalmDriverNic != nil { 1810 1811 // query param napalm_driver__nic 1812 var qrNapalmDriverNic string 1813 1814 if o.NapalmDriverNic != nil { 1815 qrNapalmDriverNic = *o.NapalmDriverNic 1816 } 1817 qNapalmDriverNic := qrNapalmDriverNic 1818 if qNapalmDriverNic != "" { 1819 1820 if err := r.SetQueryParam("napalm_driver__nic", qNapalmDriverNic); err != nil { 1821 return err 1822 } 1823 } 1824 } 1825 1826 if o.NapalmDriverNie != nil { 1827 1828 // query param napalm_driver__nie 1829 var qrNapalmDriverNie string 1830 1831 if o.NapalmDriverNie != nil { 1832 qrNapalmDriverNie = *o.NapalmDriverNie 1833 } 1834 qNapalmDriverNie := qrNapalmDriverNie 1835 if qNapalmDriverNie != "" { 1836 1837 if err := r.SetQueryParam("napalm_driver__nie", qNapalmDriverNie); err != nil { 1838 return err 1839 } 1840 } 1841 } 1842 1843 if o.NapalmDriverNiew != nil { 1844 1845 // query param napalm_driver__niew 1846 var qrNapalmDriverNiew string 1847 1848 if o.NapalmDriverNiew != nil { 1849 qrNapalmDriverNiew = *o.NapalmDriverNiew 1850 } 1851 qNapalmDriverNiew := qrNapalmDriverNiew 1852 if qNapalmDriverNiew != "" { 1853 1854 if err := r.SetQueryParam("napalm_driver__niew", qNapalmDriverNiew); err != nil { 1855 return err 1856 } 1857 } 1858 } 1859 1860 if o.NapalmDriverNisw != nil { 1861 1862 // query param napalm_driver__nisw 1863 var qrNapalmDriverNisw string 1864 1865 if o.NapalmDriverNisw != nil { 1866 qrNapalmDriverNisw = *o.NapalmDriverNisw 1867 } 1868 qNapalmDriverNisw := qrNapalmDriverNisw 1869 if qNapalmDriverNisw != "" { 1870 1871 if err := r.SetQueryParam("napalm_driver__nisw", qNapalmDriverNisw); err != nil { 1872 return err 1873 } 1874 } 1875 } 1876 1877 if o.Offset != nil { 1878 1879 // query param offset 1880 var qrOffset int64 1881 1882 if o.Offset != nil { 1883 qrOffset = *o.Offset 1884 } 1885 qOffset := swag.FormatInt64(qrOffset) 1886 if qOffset != "" { 1887 1888 if err := r.SetQueryParam("offset", qOffset); err != nil { 1889 return err 1890 } 1891 } 1892 } 1893 1894 if o.Q != nil { 1895 1896 // query param q 1897 var qrQ string 1898 1899 if o.Q != nil { 1900 qrQ = *o.Q 1901 } 1902 qQ := qrQ 1903 if qQ != "" { 1904 1905 if err := r.SetQueryParam("q", qQ); err != nil { 1906 return err 1907 } 1908 } 1909 } 1910 1911 if o.Slug != nil { 1912 1913 // query param slug 1914 var qrSlug string 1915 1916 if o.Slug != nil { 1917 qrSlug = *o.Slug 1918 } 1919 qSlug := qrSlug 1920 if qSlug != "" { 1921 1922 if err := r.SetQueryParam("slug", qSlug); err != nil { 1923 return err 1924 } 1925 } 1926 } 1927 1928 if o.SlugEmpty != nil { 1929 1930 // query param slug__empty 1931 var qrSlugEmpty string 1932 1933 if o.SlugEmpty != nil { 1934 qrSlugEmpty = *o.SlugEmpty 1935 } 1936 qSlugEmpty := qrSlugEmpty 1937 if qSlugEmpty != "" { 1938 1939 if err := r.SetQueryParam("slug__empty", qSlugEmpty); err != nil { 1940 return err 1941 } 1942 } 1943 } 1944 1945 if o.SlugIc != nil { 1946 1947 // query param slug__ic 1948 var qrSlugIc string 1949 1950 if o.SlugIc != nil { 1951 qrSlugIc = *o.SlugIc 1952 } 1953 qSlugIc := qrSlugIc 1954 if qSlugIc != "" { 1955 1956 if err := r.SetQueryParam("slug__ic", qSlugIc); err != nil { 1957 return err 1958 } 1959 } 1960 } 1961 1962 if o.SlugIe != nil { 1963 1964 // query param slug__ie 1965 var qrSlugIe string 1966 1967 if o.SlugIe != nil { 1968 qrSlugIe = *o.SlugIe 1969 } 1970 qSlugIe := qrSlugIe 1971 if qSlugIe != "" { 1972 1973 if err := r.SetQueryParam("slug__ie", qSlugIe); err != nil { 1974 return err 1975 } 1976 } 1977 } 1978 1979 if o.SlugIew != nil { 1980 1981 // query param slug__iew 1982 var qrSlugIew string 1983 1984 if o.SlugIew != nil { 1985 qrSlugIew = *o.SlugIew 1986 } 1987 qSlugIew := qrSlugIew 1988 if qSlugIew != "" { 1989 1990 if err := r.SetQueryParam("slug__iew", qSlugIew); err != nil { 1991 return err 1992 } 1993 } 1994 } 1995 1996 if o.SlugIsw != nil { 1997 1998 // query param slug__isw 1999 var qrSlugIsw string 2000 2001 if o.SlugIsw != nil { 2002 qrSlugIsw = *o.SlugIsw 2003 } 2004 qSlugIsw := qrSlugIsw 2005 if qSlugIsw != "" { 2006 2007 if err := r.SetQueryParam("slug__isw", qSlugIsw); err != nil { 2008 return err 2009 } 2010 } 2011 } 2012 2013 if o.Slugn != nil { 2014 2015 // query param slug__n 2016 var qrSlugn string 2017 2018 if o.Slugn != nil { 2019 qrSlugn = *o.Slugn 2020 } 2021 qSlugn := qrSlugn 2022 if qSlugn != "" { 2023 2024 if err := r.SetQueryParam("slug__n", qSlugn); err != nil { 2025 return err 2026 } 2027 } 2028 } 2029 2030 if o.SlugNic != nil { 2031 2032 // query param slug__nic 2033 var qrSlugNic string 2034 2035 if o.SlugNic != nil { 2036 qrSlugNic = *o.SlugNic 2037 } 2038 qSlugNic := qrSlugNic 2039 if qSlugNic != "" { 2040 2041 if err := r.SetQueryParam("slug__nic", qSlugNic); err != nil { 2042 return err 2043 } 2044 } 2045 } 2046 2047 if o.SlugNie != nil { 2048 2049 // query param slug__nie 2050 var qrSlugNie string 2051 2052 if o.SlugNie != nil { 2053 qrSlugNie = *o.SlugNie 2054 } 2055 qSlugNie := qrSlugNie 2056 if qSlugNie != "" { 2057 2058 if err := r.SetQueryParam("slug__nie", qSlugNie); err != nil { 2059 return err 2060 } 2061 } 2062 } 2063 2064 if o.SlugNiew != nil { 2065 2066 // query param slug__niew 2067 var qrSlugNiew string 2068 2069 if o.SlugNiew != nil { 2070 qrSlugNiew = *o.SlugNiew 2071 } 2072 qSlugNiew := qrSlugNiew 2073 if qSlugNiew != "" { 2074 2075 if err := r.SetQueryParam("slug__niew", qSlugNiew); err != nil { 2076 return err 2077 } 2078 } 2079 } 2080 2081 if o.SlugNisw != nil { 2082 2083 // query param slug__nisw 2084 var qrSlugNisw string 2085 2086 if o.SlugNisw != nil { 2087 qrSlugNisw = *o.SlugNisw 2088 } 2089 qSlugNisw := qrSlugNisw 2090 if qSlugNisw != "" { 2091 2092 if err := r.SetQueryParam("slug__nisw", qSlugNisw); err != nil { 2093 return err 2094 } 2095 } 2096 } 2097 2098 if len(res) > 0 { 2099 return errors.CompositeValidationError(res...) 2100 } 2101 return nil 2102 }