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