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