github.com/digitalocean/go-netbox@v0.0.2/netbox/client/dcim/dcim_site_groups_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 // NewDcimSiteGroupsListParams creates a new DcimSiteGroupsListParams 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 NewDcimSiteGroupsListParams() *DcimSiteGroupsListParams { 42 return &DcimSiteGroupsListParams{ 43 timeout: cr.DefaultTimeout, 44 } 45 } 46 47 // NewDcimSiteGroupsListParamsWithTimeout creates a new DcimSiteGroupsListParams object 48 // with the ability to set a timeout on a request. 49 func NewDcimSiteGroupsListParamsWithTimeout(timeout time.Duration) *DcimSiteGroupsListParams { 50 return &DcimSiteGroupsListParams{ 51 timeout: timeout, 52 } 53 } 54 55 // NewDcimSiteGroupsListParamsWithContext creates a new DcimSiteGroupsListParams object 56 // with the ability to set a context for a request. 57 func NewDcimSiteGroupsListParamsWithContext(ctx context.Context) *DcimSiteGroupsListParams { 58 return &DcimSiteGroupsListParams{ 59 Context: ctx, 60 } 61 } 62 63 // NewDcimSiteGroupsListParamsWithHTTPClient creates a new DcimSiteGroupsListParams object 64 // with the ability to set a custom HTTPClient for a request. 65 func NewDcimSiteGroupsListParamsWithHTTPClient(client *http.Client) *DcimSiteGroupsListParams { 66 return &DcimSiteGroupsListParams{ 67 HTTPClient: client, 68 } 69 } 70 71 /* DcimSiteGroupsListParams contains all the parameters to send to the API endpoint 72 for the dcim site groups list operation. 73 74 Typically these are written to a http.Request. 75 */ 76 type DcimSiteGroupsListParams 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 // Slug. 208 Slug *string 209 210 // SlugEmpty. 211 SlugEmpty *string 212 213 // SlugIc. 214 SlugIc *string 215 216 // SlugIe. 217 SlugIe *string 218 219 // SlugIew. 220 SlugIew *string 221 222 // SlugIsw. 223 SlugIsw *string 224 225 // Slugn. 226 Slugn *string 227 228 // SlugNic. 229 SlugNic *string 230 231 // SlugNie. 232 SlugNie *string 233 234 // SlugNiew. 235 SlugNiew *string 236 237 // SlugNisw. 238 SlugNisw *string 239 240 timeout time.Duration 241 Context context.Context 242 HTTPClient *http.Client 243 } 244 245 // WithDefaults hydrates default values in the dcim site groups list params (not the query body). 246 // 247 // All values with no default are reset to their zero value. 248 func (o *DcimSiteGroupsListParams) WithDefaults() *DcimSiteGroupsListParams { 249 o.SetDefaults() 250 return o 251 } 252 253 // SetDefaults hydrates default values in the dcim site groups list params (not the query body). 254 // 255 // All values with no default are reset to their zero value. 256 func (o *DcimSiteGroupsListParams) SetDefaults() { 257 // no default values defined for this parameter 258 } 259 260 // WithTimeout adds the timeout to the dcim site groups list params 261 func (o *DcimSiteGroupsListParams) WithTimeout(timeout time.Duration) *DcimSiteGroupsListParams { 262 o.SetTimeout(timeout) 263 return o 264 } 265 266 // SetTimeout adds the timeout to the dcim site groups list params 267 func (o *DcimSiteGroupsListParams) SetTimeout(timeout time.Duration) { 268 o.timeout = timeout 269 } 270 271 // WithContext adds the context to the dcim site groups list params 272 func (o *DcimSiteGroupsListParams) WithContext(ctx context.Context) *DcimSiteGroupsListParams { 273 o.SetContext(ctx) 274 return o 275 } 276 277 // SetContext adds the context to the dcim site groups list params 278 func (o *DcimSiteGroupsListParams) SetContext(ctx context.Context) { 279 o.Context = ctx 280 } 281 282 // WithHTTPClient adds the HTTPClient to the dcim site groups list params 283 func (o *DcimSiteGroupsListParams) WithHTTPClient(client *http.Client) *DcimSiteGroupsListParams { 284 o.SetHTTPClient(client) 285 return o 286 } 287 288 // SetHTTPClient adds the HTTPClient to the dcim site groups list params 289 func (o *DcimSiteGroupsListParams) SetHTTPClient(client *http.Client) { 290 o.HTTPClient = client 291 } 292 293 // WithCreated adds the created to the dcim site groups list params 294 func (o *DcimSiteGroupsListParams) WithCreated(created *string) *DcimSiteGroupsListParams { 295 o.SetCreated(created) 296 return o 297 } 298 299 // SetCreated adds the created to the dcim site groups list params 300 func (o *DcimSiteGroupsListParams) SetCreated(created *string) { 301 o.Created = created 302 } 303 304 // WithCreatedGte adds the createdGte to the dcim site groups list params 305 func (o *DcimSiteGroupsListParams) WithCreatedGte(createdGte *string) *DcimSiteGroupsListParams { 306 o.SetCreatedGte(createdGte) 307 return o 308 } 309 310 // SetCreatedGte adds the createdGte to the dcim site groups list params 311 func (o *DcimSiteGroupsListParams) SetCreatedGte(createdGte *string) { 312 o.CreatedGte = createdGte 313 } 314 315 // WithCreatedLte adds the createdLte to the dcim site groups list params 316 func (o *DcimSiteGroupsListParams) WithCreatedLte(createdLte *string) *DcimSiteGroupsListParams { 317 o.SetCreatedLte(createdLte) 318 return o 319 } 320 321 // SetCreatedLte adds the createdLte to the dcim site groups list params 322 func (o *DcimSiteGroupsListParams) SetCreatedLte(createdLte *string) { 323 o.CreatedLte = createdLte 324 } 325 326 // WithDescription adds the description to the dcim site groups list params 327 func (o *DcimSiteGroupsListParams) WithDescription(description *string) *DcimSiteGroupsListParams { 328 o.SetDescription(description) 329 return o 330 } 331 332 // SetDescription adds the description to the dcim site groups list params 333 func (o *DcimSiteGroupsListParams) SetDescription(description *string) { 334 o.Description = description 335 } 336 337 // WithDescriptionEmpty adds the descriptionEmpty to the dcim site groups list params 338 func (o *DcimSiteGroupsListParams) WithDescriptionEmpty(descriptionEmpty *string) *DcimSiteGroupsListParams { 339 o.SetDescriptionEmpty(descriptionEmpty) 340 return o 341 } 342 343 // SetDescriptionEmpty adds the descriptionEmpty to the dcim site groups list params 344 func (o *DcimSiteGroupsListParams) SetDescriptionEmpty(descriptionEmpty *string) { 345 o.DescriptionEmpty = descriptionEmpty 346 } 347 348 // WithDescriptionIc adds the descriptionIc to the dcim site groups list params 349 func (o *DcimSiteGroupsListParams) WithDescriptionIc(descriptionIc *string) *DcimSiteGroupsListParams { 350 o.SetDescriptionIc(descriptionIc) 351 return o 352 } 353 354 // SetDescriptionIc adds the descriptionIc to the dcim site groups list params 355 func (o *DcimSiteGroupsListParams) SetDescriptionIc(descriptionIc *string) { 356 o.DescriptionIc = descriptionIc 357 } 358 359 // WithDescriptionIe adds the descriptionIe to the dcim site groups list params 360 func (o *DcimSiteGroupsListParams) WithDescriptionIe(descriptionIe *string) *DcimSiteGroupsListParams { 361 o.SetDescriptionIe(descriptionIe) 362 return o 363 } 364 365 // SetDescriptionIe adds the descriptionIe to the dcim site groups list params 366 func (o *DcimSiteGroupsListParams) SetDescriptionIe(descriptionIe *string) { 367 o.DescriptionIe = descriptionIe 368 } 369 370 // WithDescriptionIew adds the descriptionIew to the dcim site groups list params 371 func (o *DcimSiteGroupsListParams) WithDescriptionIew(descriptionIew *string) *DcimSiteGroupsListParams { 372 o.SetDescriptionIew(descriptionIew) 373 return o 374 } 375 376 // SetDescriptionIew adds the descriptionIew to the dcim site groups list params 377 func (o *DcimSiteGroupsListParams) SetDescriptionIew(descriptionIew *string) { 378 o.DescriptionIew = descriptionIew 379 } 380 381 // WithDescriptionIsw adds the descriptionIsw to the dcim site groups list params 382 func (o *DcimSiteGroupsListParams) WithDescriptionIsw(descriptionIsw *string) *DcimSiteGroupsListParams { 383 o.SetDescriptionIsw(descriptionIsw) 384 return o 385 } 386 387 // SetDescriptionIsw adds the descriptionIsw to the dcim site groups list params 388 func (o *DcimSiteGroupsListParams) SetDescriptionIsw(descriptionIsw *string) { 389 o.DescriptionIsw = descriptionIsw 390 } 391 392 // WithDescriptionn adds the descriptionn to the dcim site groups list params 393 func (o *DcimSiteGroupsListParams) WithDescriptionn(descriptionn *string) *DcimSiteGroupsListParams { 394 o.SetDescriptionn(descriptionn) 395 return o 396 } 397 398 // SetDescriptionn adds the descriptionN to the dcim site groups list params 399 func (o *DcimSiteGroupsListParams) SetDescriptionn(descriptionn *string) { 400 o.Descriptionn = descriptionn 401 } 402 403 // WithDescriptionNic adds the descriptionNic to the dcim site groups list params 404 func (o *DcimSiteGroupsListParams) WithDescriptionNic(descriptionNic *string) *DcimSiteGroupsListParams { 405 o.SetDescriptionNic(descriptionNic) 406 return o 407 } 408 409 // SetDescriptionNic adds the descriptionNic to the dcim site groups list params 410 func (o *DcimSiteGroupsListParams) SetDescriptionNic(descriptionNic *string) { 411 o.DescriptionNic = descriptionNic 412 } 413 414 // WithDescriptionNie adds the descriptionNie to the dcim site groups list params 415 func (o *DcimSiteGroupsListParams) WithDescriptionNie(descriptionNie *string) *DcimSiteGroupsListParams { 416 o.SetDescriptionNie(descriptionNie) 417 return o 418 } 419 420 // SetDescriptionNie adds the descriptionNie to the dcim site groups list params 421 func (o *DcimSiteGroupsListParams) SetDescriptionNie(descriptionNie *string) { 422 o.DescriptionNie = descriptionNie 423 } 424 425 // WithDescriptionNiew adds the descriptionNiew to the dcim site groups list params 426 func (o *DcimSiteGroupsListParams) WithDescriptionNiew(descriptionNiew *string) *DcimSiteGroupsListParams { 427 o.SetDescriptionNiew(descriptionNiew) 428 return o 429 } 430 431 // SetDescriptionNiew adds the descriptionNiew to the dcim site groups list params 432 func (o *DcimSiteGroupsListParams) SetDescriptionNiew(descriptionNiew *string) { 433 o.DescriptionNiew = descriptionNiew 434 } 435 436 // WithDescriptionNisw adds the descriptionNisw to the dcim site groups list params 437 func (o *DcimSiteGroupsListParams) WithDescriptionNisw(descriptionNisw *string) *DcimSiteGroupsListParams { 438 o.SetDescriptionNisw(descriptionNisw) 439 return o 440 } 441 442 // SetDescriptionNisw adds the descriptionNisw to the dcim site groups list params 443 func (o *DcimSiteGroupsListParams) SetDescriptionNisw(descriptionNisw *string) { 444 o.DescriptionNisw = descriptionNisw 445 } 446 447 // WithID adds the id to the dcim site groups list params 448 func (o *DcimSiteGroupsListParams) WithID(id *string) *DcimSiteGroupsListParams { 449 o.SetID(id) 450 return o 451 } 452 453 // SetID adds the id to the dcim site groups list params 454 func (o *DcimSiteGroupsListParams) SetID(id *string) { 455 o.ID = id 456 } 457 458 // WithIDGt adds the iDGt to the dcim site groups list params 459 func (o *DcimSiteGroupsListParams) WithIDGt(iDGt *string) *DcimSiteGroupsListParams { 460 o.SetIDGt(iDGt) 461 return o 462 } 463 464 // SetIDGt adds the idGt to the dcim site groups list params 465 func (o *DcimSiteGroupsListParams) SetIDGt(iDGt *string) { 466 o.IDGt = iDGt 467 } 468 469 // WithIDGte adds the iDGte to the dcim site groups list params 470 func (o *DcimSiteGroupsListParams) WithIDGte(iDGte *string) *DcimSiteGroupsListParams { 471 o.SetIDGte(iDGte) 472 return o 473 } 474 475 // SetIDGte adds the idGte to the dcim site groups list params 476 func (o *DcimSiteGroupsListParams) SetIDGte(iDGte *string) { 477 o.IDGte = iDGte 478 } 479 480 // WithIDLt adds the iDLt to the dcim site groups list params 481 func (o *DcimSiteGroupsListParams) WithIDLt(iDLt *string) *DcimSiteGroupsListParams { 482 o.SetIDLt(iDLt) 483 return o 484 } 485 486 // SetIDLt adds the idLt to the dcim site groups list params 487 func (o *DcimSiteGroupsListParams) SetIDLt(iDLt *string) { 488 o.IDLt = iDLt 489 } 490 491 // WithIDLte adds the iDLte to the dcim site groups list params 492 func (o *DcimSiteGroupsListParams) WithIDLte(iDLte *string) *DcimSiteGroupsListParams { 493 o.SetIDLte(iDLte) 494 return o 495 } 496 497 // SetIDLte adds the idLte to the dcim site groups list params 498 func (o *DcimSiteGroupsListParams) SetIDLte(iDLte *string) { 499 o.IDLte = iDLte 500 } 501 502 // WithIDn adds the iDn to the dcim site groups list params 503 func (o *DcimSiteGroupsListParams) WithIDn(iDn *string) *DcimSiteGroupsListParams { 504 o.SetIDn(iDn) 505 return o 506 } 507 508 // SetIDn adds the idN to the dcim site groups list params 509 func (o *DcimSiteGroupsListParams) SetIDn(iDn *string) { 510 o.IDn = iDn 511 } 512 513 // WithLastUpdated adds the lastUpdated to the dcim site groups list params 514 func (o *DcimSiteGroupsListParams) WithLastUpdated(lastUpdated *string) *DcimSiteGroupsListParams { 515 o.SetLastUpdated(lastUpdated) 516 return o 517 } 518 519 // SetLastUpdated adds the lastUpdated to the dcim site groups list params 520 func (o *DcimSiteGroupsListParams) SetLastUpdated(lastUpdated *string) { 521 o.LastUpdated = lastUpdated 522 } 523 524 // WithLastUpdatedGte adds the lastUpdatedGte to the dcim site groups list params 525 func (o *DcimSiteGroupsListParams) WithLastUpdatedGte(lastUpdatedGte *string) *DcimSiteGroupsListParams { 526 o.SetLastUpdatedGte(lastUpdatedGte) 527 return o 528 } 529 530 // SetLastUpdatedGte adds the lastUpdatedGte to the dcim site groups list params 531 func (o *DcimSiteGroupsListParams) SetLastUpdatedGte(lastUpdatedGte *string) { 532 o.LastUpdatedGte = lastUpdatedGte 533 } 534 535 // WithLastUpdatedLte adds the lastUpdatedLte to the dcim site groups list params 536 func (o *DcimSiteGroupsListParams) WithLastUpdatedLte(lastUpdatedLte *string) *DcimSiteGroupsListParams { 537 o.SetLastUpdatedLte(lastUpdatedLte) 538 return o 539 } 540 541 // SetLastUpdatedLte adds the lastUpdatedLte to the dcim site groups list params 542 func (o *DcimSiteGroupsListParams) SetLastUpdatedLte(lastUpdatedLte *string) { 543 o.LastUpdatedLte = lastUpdatedLte 544 } 545 546 // WithLimit adds the limit to the dcim site groups list params 547 func (o *DcimSiteGroupsListParams) WithLimit(limit *int64) *DcimSiteGroupsListParams { 548 o.SetLimit(limit) 549 return o 550 } 551 552 // SetLimit adds the limit to the dcim site groups list params 553 func (o *DcimSiteGroupsListParams) SetLimit(limit *int64) { 554 o.Limit = limit 555 } 556 557 // WithName adds the name to the dcim site groups list params 558 func (o *DcimSiteGroupsListParams) WithName(name *string) *DcimSiteGroupsListParams { 559 o.SetName(name) 560 return o 561 } 562 563 // SetName adds the name to the dcim site groups list params 564 func (o *DcimSiteGroupsListParams) SetName(name *string) { 565 o.Name = name 566 } 567 568 // WithNameEmpty adds the nameEmpty to the dcim site groups list params 569 func (o *DcimSiteGroupsListParams) WithNameEmpty(nameEmpty *string) *DcimSiteGroupsListParams { 570 o.SetNameEmpty(nameEmpty) 571 return o 572 } 573 574 // SetNameEmpty adds the nameEmpty to the dcim site groups list params 575 func (o *DcimSiteGroupsListParams) SetNameEmpty(nameEmpty *string) { 576 o.NameEmpty = nameEmpty 577 } 578 579 // WithNameIc adds the nameIc to the dcim site groups list params 580 func (o *DcimSiteGroupsListParams) WithNameIc(nameIc *string) *DcimSiteGroupsListParams { 581 o.SetNameIc(nameIc) 582 return o 583 } 584 585 // SetNameIc adds the nameIc to the dcim site groups list params 586 func (o *DcimSiteGroupsListParams) SetNameIc(nameIc *string) { 587 o.NameIc = nameIc 588 } 589 590 // WithNameIe adds the nameIe to the dcim site groups list params 591 func (o *DcimSiteGroupsListParams) WithNameIe(nameIe *string) *DcimSiteGroupsListParams { 592 o.SetNameIe(nameIe) 593 return o 594 } 595 596 // SetNameIe adds the nameIe to the dcim site groups list params 597 func (o *DcimSiteGroupsListParams) SetNameIe(nameIe *string) { 598 o.NameIe = nameIe 599 } 600 601 // WithNameIew adds the nameIew to the dcim site groups list params 602 func (o *DcimSiteGroupsListParams) WithNameIew(nameIew *string) *DcimSiteGroupsListParams { 603 o.SetNameIew(nameIew) 604 return o 605 } 606 607 // SetNameIew adds the nameIew to the dcim site groups list params 608 func (o *DcimSiteGroupsListParams) SetNameIew(nameIew *string) { 609 o.NameIew = nameIew 610 } 611 612 // WithNameIsw adds the nameIsw to the dcim site groups list params 613 func (o *DcimSiteGroupsListParams) WithNameIsw(nameIsw *string) *DcimSiteGroupsListParams { 614 o.SetNameIsw(nameIsw) 615 return o 616 } 617 618 // SetNameIsw adds the nameIsw to the dcim site groups list params 619 func (o *DcimSiteGroupsListParams) SetNameIsw(nameIsw *string) { 620 o.NameIsw = nameIsw 621 } 622 623 // WithNamen adds the namen to the dcim site groups list params 624 func (o *DcimSiteGroupsListParams) WithNamen(namen *string) *DcimSiteGroupsListParams { 625 o.SetNamen(namen) 626 return o 627 } 628 629 // SetNamen adds the nameN to the dcim site groups list params 630 func (o *DcimSiteGroupsListParams) SetNamen(namen *string) { 631 o.Namen = namen 632 } 633 634 // WithNameNic adds the nameNic to the dcim site groups list params 635 func (o *DcimSiteGroupsListParams) WithNameNic(nameNic *string) *DcimSiteGroupsListParams { 636 o.SetNameNic(nameNic) 637 return o 638 } 639 640 // SetNameNic adds the nameNic to the dcim site groups list params 641 func (o *DcimSiteGroupsListParams) SetNameNic(nameNic *string) { 642 o.NameNic = nameNic 643 } 644 645 // WithNameNie adds the nameNie to the dcim site groups list params 646 func (o *DcimSiteGroupsListParams) WithNameNie(nameNie *string) *DcimSiteGroupsListParams { 647 o.SetNameNie(nameNie) 648 return o 649 } 650 651 // SetNameNie adds the nameNie to the dcim site groups list params 652 func (o *DcimSiteGroupsListParams) SetNameNie(nameNie *string) { 653 o.NameNie = nameNie 654 } 655 656 // WithNameNiew adds the nameNiew to the dcim site groups list params 657 func (o *DcimSiteGroupsListParams) WithNameNiew(nameNiew *string) *DcimSiteGroupsListParams { 658 o.SetNameNiew(nameNiew) 659 return o 660 } 661 662 // SetNameNiew adds the nameNiew to the dcim site groups list params 663 func (o *DcimSiteGroupsListParams) SetNameNiew(nameNiew *string) { 664 o.NameNiew = nameNiew 665 } 666 667 // WithNameNisw adds the nameNisw to the dcim site groups list params 668 func (o *DcimSiteGroupsListParams) WithNameNisw(nameNisw *string) *DcimSiteGroupsListParams { 669 o.SetNameNisw(nameNisw) 670 return o 671 } 672 673 // SetNameNisw adds the nameNisw to the dcim site groups list params 674 func (o *DcimSiteGroupsListParams) SetNameNisw(nameNisw *string) { 675 o.NameNisw = nameNisw 676 } 677 678 // WithOffset adds the offset to the dcim site groups list params 679 func (o *DcimSiteGroupsListParams) WithOffset(offset *int64) *DcimSiteGroupsListParams { 680 o.SetOffset(offset) 681 return o 682 } 683 684 // SetOffset adds the offset to the dcim site groups list params 685 func (o *DcimSiteGroupsListParams) SetOffset(offset *int64) { 686 o.Offset = offset 687 } 688 689 // WithParent adds the parent to the dcim site groups list params 690 func (o *DcimSiteGroupsListParams) WithParent(parent *string) *DcimSiteGroupsListParams { 691 o.SetParent(parent) 692 return o 693 } 694 695 // SetParent adds the parent to the dcim site groups list params 696 func (o *DcimSiteGroupsListParams) SetParent(parent *string) { 697 o.Parent = parent 698 } 699 700 // WithParentn adds the parentn to the dcim site groups list params 701 func (o *DcimSiteGroupsListParams) WithParentn(parentn *string) *DcimSiteGroupsListParams { 702 o.SetParentn(parentn) 703 return o 704 } 705 706 // SetParentn adds the parentN to the dcim site groups list params 707 func (o *DcimSiteGroupsListParams) SetParentn(parentn *string) { 708 o.Parentn = parentn 709 } 710 711 // WithParentID adds the parentID to the dcim site groups list params 712 func (o *DcimSiteGroupsListParams) WithParentID(parentID *string) *DcimSiteGroupsListParams { 713 o.SetParentID(parentID) 714 return o 715 } 716 717 // SetParentID adds the parentId to the dcim site groups list params 718 func (o *DcimSiteGroupsListParams) SetParentID(parentID *string) { 719 o.ParentID = parentID 720 } 721 722 // WithParentIDn adds the parentIDn to the dcim site groups list params 723 func (o *DcimSiteGroupsListParams) WithParentIDn(parentIDn *string) *DcimSiteGroupsListParams { 724 o.SetParentIDn(parentIDn) 725 return o 726 } 727 728 // SetParentIDn adds the parentIdN to the dcim site groups list params 729 func (o *DcimSiteGroupsListParams) SetParentIDn(parentIDn *string) { 730 o.ParentIDn = parentIDn 731 } 732 733 // WithQ adds the q to the dcim site groups list params 734 func (o *DcimSiteGroupsListParams) WithQ(q *string) *DcimSiteGroupsListParams { 735 o.SetQ(q) 736 return o 737 } 738 739 // SetQ adds the q to the dcim site groups list params 740 func (o *DcimSiteGroupsListParams) SetQ(q *string) { 741 o.Q = q 742 } 743 744 // WithSlug adds the slug to the dcim site groups list params 745 func (o *DcimSiteGroupsListParams) WithSlug(slug *string) *DcimSiteGroupsListParams { 746 o.SetSlug(slug) 747 return o 748 } 749 750 // SetSlug adds the slug to the dcim site groups list params 751 func (o *DcimSiteGroupsListParams) SetSlug(slug *string) { 752 o.Slug = slug 753 } 754 755 // WithSlugEmpty adds the slugEmpty to the dcim site groups list params 756 func (o *DcimSiteGroupsListParams) WithSlugEmpty(slugEmpty *string) *DcimSiteGroupsListParams { 757 o.SetSlugEmpty(slugEmpty) 758 return o 759 } 760 761 // SetSlugEmpty adds the slugEmpty to the dcim site groups list params 762 func (o *DcimSiteGroupsListParams) SetSlugEmpty(slugEmpty *string) { 763 o.SlugEmpty = slugEmpty 764 } 765 766 // WithSlugIc adds the slugIc to the dcim site groups list params 767 func (o *DcimSiteGroupsListParams) WithSlugIc(slugIc *string) *DcimSiteGroupsListParams { 768 o.SetSlugIc(slugIc) 769 return o 770 } 771 772 // SetSlugIc adds the slugIc to the dcim site groups list params 773 func (o *DcimSiteGroupsListParams) SetSlugIc(slugIc *string) { 774 o.SlugIc = slugIc 775 } 776 777 // WithSlugIe adds the slugIe to the dcim site groups list params 778 func (o *DcimSiteGroupsListParams) WithSlugIe(slugIe *string) *DcimSiteGroupsListParams { 779 o.SetSlugIe(slugIe) 780 return o 781 } 782 783 // SetSlugIe adds the slugIe to the dcim site groups list params 784 func (o *DcimSiteGroupsListParams) SetSlugIe(slugIe *string) { 785 o.SlugIe = slugIe 786 } 787 788 // WithSlugIew adds the slugIew to the dcim site groups list params 789 func (o *DcimSiteGroupsListParams) WithSlugIew(slugIew *string) *DcimSiteGroupsListParams { 790 o.SetSlugIew(slugIew) 791 return o 792 } 793 794 // SetSlugIew adds the slugIew to the dcim site groups list params 795 func (o *DcimSiteGroupsListParams) SetSlugIew(slugIew *string) { 796 o.SlugIew = slugIew 797 } 798 799 // WithSlugIsw adds the slugIsw to the dcim site groups list params 800 func (o *DcimSiteGroupsListParams) WithSlugIsw(slugIsw *string) *DcimSiteGroupsListParams { 801 o.SetSlugIsw(slugIsw) 802 return o 803 } 804 805 // SetSlugIsw adds the slugIsw to the dcim site groups list params 806 func (o *DcimSiteGroupsListParams) SetSlugIsw(slugIsw *string) { 807 o.SlugIsw = slugIsw 808 } 809 810 // WithSlugn adds the slugn to the dcim site groups list params 811 func (o *DcimSiteGroupsListParams) WithSlugn(slugn *string) *DcimSiteGroupsListParams { 812 o.SetSlugn(slugn) 813 return o 814 } 815 816 // SetSlugn adds the slugN to the dcim site groups list params 817 func (o *DcimSiteGroupsListParams) SetSlugn(slugn *string) { 818 o.Slugn = slugn 819 } 820 821 // WithSlugNic adds the slugNic to the dcim site groups list params 822 func (o *DcimSiteGroupsListParams) WithSlugNic(slugNic *string) *DcimSiteGroupsListParams { 823 o.SetSlugNic(slugNic) 824 return o 825 } 826 827 // SetSlugNic adds the slugNic to the dcim site groups list params 828 func (o *DcimSiteGroupsListParams) SetSlugNic(slugNic *string) { 829 o.SlugNic = slugNic 830 } 831 832 // WithSlugNie adds the slugNie to the dcim site groups list params 833 func (o *DcimSiteGroupsListParams) WithSlugNie(slugNie *string) *DcimSiteGroupsListParams { 834 o.SetSlugNie(slugNie) 835 return o 836 } 837 838 // SetSlugNie adds the slugNie to the dcim site groups list params 839 func (o *DcimSiteGroupsListParams) SetSlugNie(slugNie *string) { 840 o.SlugNie = slugNie 841 } 842 843 // WithSlugNiew adds the slugNiew to the dcim site groups list params 844 func (o *DcimSiteGroupsListParams) WithSlugNiew(slugNiew *string) *DcimSiteGroupsListParams { 845 o.SetSlugNiew(slugNiew) 846 return o 847 } 848 849 // SetSlugNiew adds the slugNiew to the dcim site groups list params 850 func (o *DcimSiteGroupsListParams) SetSlugNiew(slugNiew *string) { 851 o.SlugNiew = slugNiew 852 } 853 854 // WithSlugNisw adds the slugNisw to the dcim site groups list params 855 func (o *DcimSiteGroupsListParams) WithSlugNisw(slugNisw *string) *DcimSiteGroupsListParams { 856 o.SetSlugNisw(slugNisw) 857 return o 858 } 859 860 // SetSlugNisw adds the slugNisw to the dcim site groups list params 861 func (o *DcimSiteGroupsListParams) SetSlugNisw(slugNisw *string) { 862 o.SlugNisw = slugNisw 863 } 864 865 // WriteToRequest writes these params to a swagger request 866 func (o *DcimSiteGroupsListParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { 867 868 if err := r.SetTimeout(o.timeout); err != nil { 869 return err 870 } 871 var res []error 872 873 if o.Created != nil { 874 875 // query param created 876 var qrCreated string 877 878 if o.Created != nil { 879 qrCreated = *o.Created 880 } 881 qCreated := qrCreated 882 if qCreated != "" { 883 884 if err := r.SetQueryParam("created", qCreated); err != nil { 885 return err 886 } 887 } 888 } 889 890 if o.CreatedGte != nil { 891 892 // query param created__gte 893 var qrCreatedGte string 894 895 if o.CreatedGte != nil { 896 qrCreatedGte = *o.CreatedGte 897 } 898 qCreatedGte := qrCreatedGte 899 if qCreatedGte != "" { 900 901 if err := r.SetQueryParam("created__gte", qCreatedGte); err != nil { 902 return err 903 } 904 } 905 } 906 907 if o.CreatedLte != nil { 908 909 // query param created__lte 910 var qrCreatedLte string 911 912 if o.CreatedLte != nil { 913 qrCreatedLte = *o.CreatedLte 914 } 915 qCreatedLte := qrCreatedLte 916 if qCreatedLte != "" { 917 918 if err := r.SetQueryParam("created__lte", qCreatedLte); err != nil { 919 return err 920 } 921 } 922 } 923 924 if o.Description != nil { 925 926 // query param description 927 var qrDescription string 928 929 if o.Description != nil { 930 qrDescription = *o.Description 931 } 932 qDescription := qrDescription 933 if qDescription != "" { 934 935 if err := r.SetQueryParam("description", qDescription); err != nil { 936 return err 937 } 938 } 939 } 940 941 if o.DescriptionEmpty != nil { 942 943 // query param description__empty 944 var qrDescriptionEmpty string 945 946 if o.DescriptionEmpty != nil { 947 qrDescriptionEmpty = *o.DescriptionEmpty 948 } 949 qDescriptionEmpty := qrDescriptionEmpty 950 if qDescriptionEmpty != "" { 951 952 if err := r.SetQueryParam("description__empty", qDescriptionEmpty); err != nil { 953 return err 954 } 955 } 956 } 957 958 if o.DescriptionIc != nil { 959 960 // query param description__ic 961 var qrDescriptionIc string 962 963 if o.DescriptionIc != nil { 964 qrDescriptionIc = *o.DescriptionIc 965 } 966 qDescriptionIc := qrDescriptionIc 967 if qDescriptionIc != "" { 968 969 if err := r.SetQueryParam("description__ic", qDescriptionIc); err != nil { 970 return err 971 } 972 } 973 } 974 975 if o.DescriptionIe != nil { 976 977 // query param description__ie 978 var qrDescriptionIe string 979 980 if o.DescriptionIe != nil { 981 qrDescriptionIe = *o.DescriptionIe 982 } 983 qDescriptionIe := qrDescriptionIe 984 if qDescriptionIe != "" { 985 986 if err := r.SetQueryParam("description__ie", qDescriptionIe); err != nil { 987 return err 988 } 989 } 990 } 991 992 if o.DescriptionIew != nil { 993 994 // query param description__iew 995 var qrDescriptionIew string 996 997 if o.DescriptionIew != nil { 998 qrDescriptionIew = *o.DescriptionIew 999 } 1000 qDescriptionIew := qrDescriptionIew 1001 if qDescriptionIew != "" { 1002 1003 if err := r.SetQueryParam("description__iew", qDescriptionIew); err != nil { 1004 return err 1005 } 1006 } 1007 } 1008 1009 if o.DescriptionIsw != nil { 1010 1011 // query param description__isw 1012 var qrDescriptionIsw string 1013 1014 if o.DescriptionIsw != nil { 1015 qrDescriptionIsw = *o.DescriptionIsw 1016 } 1017 qDescriptionIsw := qrDescriptionIsw 1018 if qDescriptionIsw != "" { 1019 1020 if err := r.SetQueryParam("description__isw", qDescriptionIsw); err != nil { 1021 return err 1022 } 1023 } 1024 } 1025 1026 if o.Descriptionn != nil { 1027 1028 // query param description__n 1029 var qrDescriptionn string 1030 1031 if o.Descriptionn != nil { 1032 qrDescriptionn = *o.Descriptionn 1033 } 1034 qDescriptionn := qrDescriptionn 1035 if qDescriptionn != "" { 1036 1037 if err := r.SetQueryParam("description__n", qDescriptionn); err != nil { 1038 return err 1039 } 1040 } 1041 } 1042 1043 if o.DescriptionNic != nil { 1044 1045 // query param description__nic 1046 var qrDescriptionNic string 1047 1048 if o.DescriptionNic != nil { 1049 qrDescriptionNic = *o.DescriptionNic 1050 } 1051 qDescriptionNic := qrDescriptionNic 1052 if qDescriptionNic != "" { 1053 1054 if err := r.SetQueryParam("description__nic", qDescriptionNic); err != nil { 1055 return err 1056 } 1057 } 1058 } 1059 1060 if o.DescriptionNie != nil { 1061 1062 // query param description__nie 1063 var qrDescriptionNie string 1064 1065 if o.DescriptionNie != nil { 1066 qrDescriptionNie = *o.DescriptionNie 1067 } 1068 qDescriptionNie := qrDescriptionNie 1069 if qDescriptionNie != "" { 1070 1071 if err := r.SetQueryParam("description__nie", qDescriptionNie); err != nil { 1072 return err 1073 } 1074 } 1075 } 1076 1077 if o.DescriptionNiew != nil { 1078 1079 // query param description__niew 1080 var qrDescriptionNiew string 1081 1082 if o.DescriptionNiew != nil { 1083 qrDescriptionNiew = *o.DescriptionNiew 1084 } 1085 qDescriptionNiew := qrDescriptionNiew 1086 if qDescriptionNiew != "" { 1087 1088 if err := r.SetQueryParam("description__niew", qDescriptionNiew); err != nil { 1089 return err 1090 } 1091 } 1092 } 1093 1094 if o.DescriptionNisw != nil { 1095 1096 // query param description__nisw 1097 var qrDescriptionNisw string 1098 1099 if o.DescriptionNisw != nil { 1100 qrDescriptionNisw = *o.DescriptionNisw 1101 } 1102 qDescriptionNisw := qrDescriptionNisw 1103 if qDescriptionNisw != "" { 1104 1105 if err := r.SetQueryParam("description__nisw", qDescriptionNisw); err != nil { 1106 return err 1107 } 1108 } 1109 } 1110 1111 if o.ID != nil { 1112 1113 // query param id 1114 var qrID string 1115 1116 if o.ID != nil { 1117 qrID = *o.ID 1118 } 1119 qID := qrID 1120 if qID != "" { 1121 1122 if err := r.SetQueryParam("id", qID); err != nil { 1123 return err 1124 } 1125 } 1126 } 1127 1128 if o.IDGt != nil { 1129 1130 // query param id__gt 1131 var qrIDGt string 1132 1133 if o.IDGt != nil { 1134 qrIDGt = *o.IDGt 1135 } 1136 qIDGt := qrIDGt 1137 if qIDGt != "" { 1138 1139 if err := r.SetQueryParam("id__gt", qIDGt); err != nil { 1140 return err 1141 } 1142 } 1143 } 1144 1145 if o.IDGte != nil { 1146 1147 // query param id__gte 1148 var qrIDGte string 1149 1150 if o.IDGte != nil { 1151 qrIDGte = *o.IDGte 1152 } 1153 qIDGte := qrIDGte 1154 if qIDGte != "" { 1155 1156 if err := r.SetQueryParam("id__gte", qIDGte); err != nil { 1157 return err 1158 } 1159 } 1160 } 1161 1162 if o.IDLt != nil { 1163 1164 // query param id__lt 1165 var qrIDLt string 1166 1167 if o.IDLt != nil { 1168 qrIDLt = *o.IDLt 1169 } 1170 qIDLt := qrIDLt 1171 if qIDLt != "" { 1172 1173 if err := r.SetQueryParam("id__lt", qIDLt); err != nil { 1174 return err 1175 } 1176 } 1177 } 1178 1179 if o.IDLte != nil { 1180 1181 // query param id__lte 1182 var qrIDLte string 1183 1184 if o.IDLte != nil { 1185 qrIDLte = *o.IDLte 1186 } 1187 qIDLte := qrIDLte 1188 if qIDLte != "" { 1189 1190 if err := r.SetQueryParam("id__lte", qIDLte); err != nil { 1191 return err 1192 } 1193 } 1194 } 1195 1196 if o.IDn != nil { 1197 1198 // query param id__n 1199 var qrIDn string 1200 1201 if o.IDn != nil { 1202 qrIDn = *o.IDn 1203 } 1204 qIDn := qrIDn 1205 if qIDn != "" { 1206 1207 if err := r.SetQueryParam("id__n", qIDn); err != nil { 1208 return err 1209 } 1210 } 1211 } 1212 1213 if o.LastUpdated != nil { 1214 1215 // query param last_updated 1216 var qrLastUpdated string 1217 1218 if o.LastUpdated != nil { 1219 qrLastUpdated = *o.LastUpdated 1220 } 1221 qLastUpdated := qrLastUpdated 1222 if qLastUpdated != "" { 1223 1224 if err := r.SetQueryParam("last_updated", qLastUpdated); err != nil { 1225 return err 1226 } 1227 } 1228 } 1229 1230 if o.LastUpdatedGte != nil { 1231 1232 // query param last_updated__gte 1233 var qrLastUpdatedGte string 1234 1235 if o.LastUpdatedGte != nil { 1236 qrLastUpdatedGte = *o.LastUpdatedGte 1237 } 1238 qLastUpdatedGte := qrLastUpdatedGte 1239 if qLastUpdatedGte != "" { 1240 1241 if err := r.SetQueryParam("last_updated__gte", qLastUpdatedGte); err != nil { 1242 return err 1243 } 1244 } 1245 } 1246 1247 if o.LastUpdatedLte != nil { 1248 1249 // query param last_updated__lte 1250 var qrLastUpdatedLte string 1251 1252 if o.LastUpdatedLte != nil { 1253 qrLastUpdatedLte = *o.LastUpdatedLte 1254 } 1255 qLastUpdatedLte := qrLastUpdatedLte 1256 if qLastUpdatedLte != "" { 1257 1258 if err := r.SetQueryParam("last_updated__lte", qLastUpdatedLte); err != nil { 1259 return err 1260 } 1261 } 1262 } 1263 1264 if o.Limit != nil { 1265 1266 // query param limit 1267 var qrLimit int64 1268 1269 if o.Limit != nil { 1270 qrLimit = *o.Limit 1271 } 1272 qLimit := swag.FormatInt64(qrLimit) 1273 if qLimit != "" { 1274 1275 if err := r.SetQueryParam("limit", qLimit); err != nil { 1276 return err 1277 } 1278 } 1279 } 1280 1281 if o.Name != nil { 1282 1283 // query param name 1284 var qrName string 1285 1286 if o.Name != nil { 1287 qrName = *o.Name 1288 } 1289 qName := qrName 1290 if qName != "" { 1291 1292 if err := r.SetQueryParam("name", qName); err != nil { 1293 return err 1294 } 1295 } 1296 } 1297 1298 if o.NameEmpty != nil { 1299 1300 // query param name__empty 1301 var qrNameEmpty string 1302 1303 if o.NameEmpty != nil { 1304 qrNameEmpty = *o.NameEmpty 1305 } 1306 qNameEmpty := qrNameEmpty 1307 if qNameEmpty != "" { 1308 1309 if err := r.SetQueryParam("name__empty", qNameEmpty); err != nil { 1310 return err 1311 } 1312 } 1313 } 1314 1315 if o.NameIc != nil { 1316 1317 // query param name__ic 1318 var qrNameIc string 1319 1320 if o.NameIc != nil { 1321 qrNameIc = *o.NameIc 1322 } 1323 qNameIc := qrNameIc 1324 if qNameIc != "" { 1325 1326 if err := r.SetQueryParam("name__ic", qNameIc); err != nil { 1327 return err 1328 } 1329 } 1330 } 1331 1332 if o.NameIe != nil { 1333 1334 // query param name__ie 1335 var qrNameIe string 1336 1337 if o.NameIe != nil { 1338 qrNameIe = *o.NameIe 1339 } 1340 qNameIe := qrNameIe 1341 if qNameIe != "" { 1342 1343 if err := r.SetQueryParam("name__ie", qNameIe); err != nil { 1344 return err 1345 } 1346 } 1347 } 1348 1349 if o.NameIew != nil { 1350 1351 // query param name__iew 1352 var qrNameIew string 1353 1354 if o.NameIew != nil { 1355 qrNameIew = *o.NameIew 1356 } 1357 qNameIew := qrNameIew 1358 if qNameIew != "" { 1359 1360 if err := r.SetQueryParam("name__iew", qNameIew); err != nil { 1361 return err 1362 } 1363 } 1364 } 1365 1366 if o.NameIsw != nil { 1367 1368 // query param name__isw 1369 var qrNameIsw string 1370 1371 if o.NameIsw != nil { 1372 qrNameIsw = *o.NameIsw 1373 } 1374 qNameIsw := qrNameIsw 1375 if qNameIsw != "" { 1376 1377 if err := r.SetQueryParam("name__isw", qNameIsw); err != nil { 1378 return err 1379 } 1380 } 1381 } 1382 1383 if o.Namen != nil { 1384 1385 // query param name__n 1386 var qrNamen string 1387 1388 if o.Namen != nil { 1389 qrNamen = *o.Namen 1390 } 1391 qNamen := qrNamen 1392 if qNamen != "" { 1393 1394 if err := r.SetQueryParam("name__n", qNamen); err != nil { 1395 return err 1396 } 1397 } 1398 } 1399 1400 if o.NameNic != nil { 1401 1402 // query param name__nic 1403 var qrNameNic string 1404 1405 if o.NameNic != nil { 1406 qrNameNic = *o.NameNic 1407 } 1408 qNameNic := qrNameNic 1409 if qNameNic != "" { 1410 1411 if err := r.SetQueryParam("name__nic", qNameNic); err != nil { 1412 return err 1413 } 1414 } 1415 } 1416 1417 if o.NameNie != nil { 1418 1419 // query param name__nie 1420 var qrNameNie string 1421 1422 if o.NameNie != nil { 1423 qrNameNie = *o.NameNie 1424 } 1425 qNameNie := qrNameNie 1426 if qNameNie != "" { 1427 1428 if err := r.SetQueryParam("name__nie", qNameNie); err != nil { 1429 return err 1430 } 1431 } 1432 } 1433 1434 if o.NameNiew != nil { 1435 1436 // query param name__niew 1437 var qrNameNiew string 1438 1439 if o.NameNiew != nil { 1440 qrNameNiew = *o.NameNiew 1441 } 1442 qNameNiew := qrNameNiew 1443 if qNameNiew != "" { 1444 1445 if err := r.SetQueryParam("name__niew", qNameNiew); err != nil { 1446 return err 1447 } 1448 } 1449 } 1450 1451 if o.NameNisw != nil { 1452 1453 // query param name__nisw 1454 var qrNameNisw string 1455 1456 if o.NameNisw != nil { 1457 qrNameNisw = *o.NameNisw 1458 } 1459 qNameNisw := qrNameNisw 1460 if qNameNisw != "" { 1461 1462 if err := r.SetQueryParam("name__nisw", qNameNisw); err != nil { 1463 return err 1464 } 1465 } 1466 } 1467 1468 if o.Offset != nil { 1469 1470 // query param offset 1471 var qrOffset int64 1472 1473 if o.Offset != nil { 1474 qrOffset = *o.Offset 1475 } 1476 qOffset := swag.FormatInt64(qrOffset) 1477 if qOffset != "" { 1478 1479 if err := r.SetQueryParam("offset", qOffset); err != nil { 1480 return err 1481 } 1482 } 1483 } 1484 1485 if o.Parent != nil { 1486 1487 // query param parent 1488 var qrParent string 1489 1490 if o.Parent != nil { 1491 qrParent = *o.Parent 1492 } 1493 qParent := qrParent 1494 if qParent != "" { 1495 1496 if err := r.SetQueryParam("parent", qParent); err != nil { 1497 return err 1498 } 1499 } 1500 } 1501 1502 if o.Parentn != nil { 1503 1504 // query param parent__n 1505 var qrParentn string 1506 1507 if o.Parentn != nil { 1508 qrParentn = *o.Parentn 1509 } 1510 qParentn := qrParentn 1511 if qParentn != "" { 1512 1513 if err := r.SetQueryParam("parent__n", qParentn); err != nil { 1514 return err 1515 } 1516 } 1517 } 1518 1519 if o.ParentID != nil { 1520 1521 // query param parent_id 1522 var qrParentID string 1523 1524 if o.ParentID != nil { 1525 qrParentID = *o.ParentID 1526 } 1527 qParentID := qrParentID 1528 if qParentID != "" { 1529 1530 if err := r.SetQueryParam("parent_id", qParentID); err != nil { 1531 return err 1532 } 1533 } 1534 } 1535 1536 if o.ParentIDn != nil { 1537 1538 // query param parent_id__n 1539 var qrParentIDn string 1540 1541 if o.ParentIDn != nil { 1542 qrParentIDn = *o.ParentIDn 1543 } 1544 qParentIDn := qrParentIDn 1545 if qParentIDn != "" { 1546 1547 if err := r.SetQueryParam("parent_id__n", qParentIDn); err != nil { 1548 return err 1549 } 1550 } 1551 } 1552 1553 if o.Q != nil { 1554 1555 // query param q 1556 var qrQ string 1557 1558 if o.Q != nil { 1559 qrQ = *o.Q 1560 } 1561 qQ := qrQ 1562 if qQ != "" { 1563 1564 if err := r.SetQueryParam("q", qQ); err != nil { 1565 return err 1566 } 1567 } 1568 } 1569 1570 if o.Slug != nil { 1571 1572 // query param slug 1573 var qrSlug string 1574 1575 if o.Slug != nil { 1576 qrSlug = *o.Slug 1577 } 1578 qSlug := qrSlug 1579 if qSlug != "" { 1580 1581 if err := r.SetQueryParam("slug", qSlug); err != nil { 1582 return err 1583 } 1584 } 1585 } 1586 1587 if o.SlugEmpty != nil { 1588 1589 // query param slug__empty 1590 var qrSlugEmpty string 1591 1592 if o.SlugEmpty != nil { 1593 qrSlugEmpty = *o.SlugEmpty 1594 } 1595 qSlugEmpty := qrSlugEmpty 1596 if qSlugEmpty != "" { 1597 1598 if err := r.SetQueryParam("slug__empty", qSlugEmpty); err != nil { 1599 return err 1600 } 1601 } 1602 } 1603 1604 if o.SlugIc != nil { 1605 1606 // query param slug__ic 1607 var qrSlugIc string 1608 1609 if o.SlugIc != nil { 1610 qrSlugIc = *o.SlugIc 1611 } 1612 qSlugIc := qrSlugIc 1613 if qSlugIc != "" { 1614 1615 if err := r.SetQueryParam("slug__ic", qSlugIc); err != nil { 1616 return err 1617 } 1618 } 1619 } 1620 1621 if o.SlugIe != nil { 1622 1623 // query param slug__ie 1624 var qrSlugIe string 1625 1626 if o.SlugIe != nil { 1627 qrSlugIe = *o.SlugIe 1628 } 1629 qSlugIe := qrSlugIe 1630 if qSlugIe != "" { 1631 1632 if err := r.SetQueryParam("slug__ie", qSlugIe); err != nil { 1633 return err 1634 } 1635 } 1636 } 1637 1638 if o.SlugIew != nil { 1639 1640 // query param slug__iew 1641 var qrSlugIew string 1642 1643 if o.SlugIew != nil { 1644 qrSlugIew = *o.SlugIew 1645 } 1646 qSlugIew := qrSlugIew 1647 if qSlugIew != "" { 1648 1649 if err := r.SetQueryParam("slug__iew", qSlugIew); err != nil { 1650 return err 1651 } 1652 } 1653 } 1654 1655 if o.SlugIsw != nil { 1656 1657 // query param slug__isw 1658 var qrSlugIsw string 1659 1660 if o.SlugIsw != nil { 1661 qrSlugIsw = *o.SlugIsw 1662 } 1663 qSlugIsw := qrSlugIsw 1664 if qSlugIsw != "" { 1665 1666 if err := r.SetQueryParam("slug__isw", qSlugIsw); err != nil { 1667 return err 1668 } 1669 } 1670 } 1671 1672 if o.Slugn != nil { 1673 1674 // query param slug__n 1675 var qrSlugn string 1676 1677 if o.Slugn != nil { 1678 qrSlugn = *o.Slugn 1679 } 1680 qSlugn := qrSlugn 1681 if qSlugn != "" { 1682 1683 if err := r.SetQueryParam("slug__n", qSlugn); err != nil { 1684 return err 1685 } 1686 } 1687 } 1688 1689 if o.SlugNic != nil { 1690 1691 // query param slug__nic 1692 var qrSlugNic string 1693 1694 if o.SlugNic != nil { 1695 qrSlugNic = *o.SlugNic 1696 } 1697 qSlugNic := qrSlugNic 1698 if qSlugNic != "" { 1699 1700 if err := r.SetQueryParam("slug__nic", qSlugNic); err != nil { 1701 return err 1702 } 1703 } 1704 } 1705 1706 if o.SlugNie != nil { 1707 1708 // query param slug__nie 1709 var qrSlugNie string 1710 1711 if o.SlugNie != nil { 1712 qrSlugNie = *o.SlugNie 1713 } 1714 qSlugNie := qrSlugNie 1715 if qSlugNie != "" { 1716 1717 if err := r.SetQueryParam("slug__nie", qSlugNie); err != nil { 1718 return err 1719 } 1720 } 1721 } 1722 1723 if o.SlugNiew != nil { 1724 1725 // query param slug__niew 1726 var qrSlugNiew string 1727 1728 if o.SlugNiew != nil { 1729 qrSlugNiew = *o.SlugNiew 1730 } 1731 qSlugNiew := qrSlugNiew 1732 if qSlugNiew != "" { 1733 1734 if err := r.SetQueryParam("slug__niew", qSlugNiew); err != nil { 1735 return err 1736 } 1737 } 1738 } 1739 1740 if o.SlugNisw != nil { 1741 1742 // query param slug__nisw 1743 var qrSlugNisw string 1744 1745 if o.SlugNisw != nil { 1746 qrSlugNisw = *o.SlugNisw 1747 } 1748 qSlugNisw := qrSlugNisw 1749 if qSlugNisw != "" { 1750 1751 if err := r.SetQueryParam("slug__nisw", qSlugNisw); err != nil { 1752 return err 1753 } 1754 } 1755 } 1756 1757 if len(res) > 0 { 1758 return errors.CompositeValidationError(res...) 1759 } 1760 return nil 1761 }