github.com/digitalocean/go-netbox@v0.0.2/netbox/client/dcim/dcim_rack_roles_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 // NewDcimRackRolesListParams creates a new DcimRackRolesListParams 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 NewDcimRackRolesListParams() *DcimRackRolesListParams { 42 return &DcimRackRolesListParams{ 43 timeout: cr.DefaultTimeout, 44 } 45 } 46 47 // NewDcimRackRolesListParamsWithTimeout creates a new DcimRackRolesListParams object 48 // with the ability to set a timeout on a request. 49 func NewDcimRackRolesListParamsWithTimeout(timeout time.Duration) *DcimRackRolesListParams { 50 return &DcimRackRolesListParams{ 51 timeout: timeout, 52 } 53 } 54 55 // NewDcimRackRolesListParamsWithContext creates a new DcimRackRolesListParams object 56 // with the ability to set a context for a request. 57 func NewDcimRackRolesListParamsWithContext(ctx context.Context) *DcimRackRolesListParams { 58 return &DcimRackRolesListParams{ 59 Context: ctx, 60 } 61 } 62 63 // NewDcimRackRolesListParamsWithHTTPClient creates a new DcimRackRolesListParams object 64 // with the ability to set a custom HTTPClient for a request. 65 func NewDcimRackRolesListParamsWithHTTPClient(client *http.Client) *DcimRackRolesListParams { 66 return &DcimRackRolesListParams{ 67 HTTPClient: client, 68 } 69 } 70 71 /* DcimRackRolesListParams contains all the parameters to send to the API endpoint 72 for the dcim rack roles list operation. 73 74 Typically these are written to a http.Request. 75 */ 76 type DcimRackRolesListParams struct { 77 78 // Color. 79 Color *string 80 81 // ColorEmpty. 82 ColorEmpty *string 83 84 // ColorIc. 85 ColorIc *string 86 87 // ColorIe. 88 ColorIe *string 89 90 // ColorIew. 91 ColorIew *string 92 93 // ColorIsw. 94 ColorIsw *string 95 96 // Colorn. 97 Colorn *string 98 99 // ColorNic. 100 ColorNic *string 101 102 // ColorNie. 103 ColorNie *string 104 105 // ColorNiew. 106 ColorNiew *string 107 108 // ColorNisw. 109 ColorNisw *string 110 111 // Created. 112 Created *string 113 114 // CreatedGte. 115 CreatedGte *string 116 117 // CreatedLte. 118 CreatedLte *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 rack roles list params (not the query body). 234 // 235 // All values with no default are reset to their zero value. 236 func (o *DcimRackRolesListParams) WithDefaults() *DcimRackRolesListParams { 237 o.SetDefaults() 238 return o 239 } 240 241 // SetDefaults hydrates default values in the dcim rack roles list params (not the query body). 242 // 243 // All values with no default are reset to their zero value. 244 func (o *DcimRackRolesListParams) SetDefaults() { 245 // no default values defined for this parameter 246 } 247 248 // WithTimeout adds the timeout to the dcim rack roles list params 249 func (o *DcimRackRolesListParams) WithTimeout(timeout time.Duration) *DcimRackRolesListParams { 250 o.SetTimeout(timeout) 251 return o 252 } 253 254 // SetTimeout adds the timeout to the dcim rack roles list params 255 func (o *DcimRackRolesListParams) SetTimeout(timeout time.Duration) { 256 o.timeout = timeout 257 } 258 259 // WithContext adds the context to the dcim rack roles list params 260 func (o *DcimRackRolesListParams) WithContext(ctx context.Context) *DcimRackRolesListParams { 261 o.SetContext(ctx) 262 return o 263 } 264 265 // SetContext adds the context to the dcim rack roles list params 266 func (o *DcimRackRolesListParams) SetContext(ctx context.Context) { 267 o.Context = ctx 268 } 269 270 // WithHTTPClient adds the HTTPClient to the dcim rack roles list params 271 func (o *DcimRackRolesListParams) WithHTTPClient(client *http.Client) *DcimRackRolesListParams { 272 o.SetHTTPClient(client) 273 return o 274 } 275 276 // SetHTTPClient adds the HTTPClient to the dcim rack roles list params 277 func (o *DcimRackRolesListParams) SetHTTPClient(client *http.Client) { 278 o.HTTPClient = client 279 } 280 281 // WithColor adds the color to the dcim rack roles list params 282 func (o *DcimRackRolesListParams) WithColor(color *string) *DcimRackRolesListParams { 283 o.SetColor(color) 284 return o 285 } 286 287 // SetColor adds the color to the dcim rack roles list params 288 func (o *DcimRackRolesListParams) SetColor(color *string) { 289 o.Color = color 290 } 291 292 // WithColorEmpty adds the colorEmpty to the dcim rack roles list params 293 func (o *DcimRackRolesListParams) WithColorEmpty(colorEmpty *string) *DcimRackRolesListParams { 294 o.SetColorEmpty(colorEmpty) 295 return o 296 } 297 298 // SetColorEmpty adds the colorEmpty to the dcim rack roles list params 299 func (o *DcimRackRolesListParams) SetColorEmpty(colorEmpty *string) { 300 o.ColorEmpty = colorEmpty 301 } 302 303 // WithColorIc adds the colorIc to the dcim rack roles list params 304 func (o *DcimRackRolesListParams) WithColorIc(colorIc *string) *DcimRackRolesListParams { 305 o.SetColorIc(colorIc) 306 return o 307 } 308 309 // SetColorIc adds the colorIc to the dcim rack roles list params 310 func (o *DcimRackRolesListParams) SetColorIc(colorIc *string) { 311 o.ColorIc = colorIc 312 } 313 314 // WithColorIe adds the colorIe to the dcim rack roles list params 315 func (o *DcimRackRolesListParams) WithColorIe(colorIe *string) *DcimRackRolesListParams { 316 o.SetColorIe(colorIe) 317 return o 318 } 319 320 // SetColorIe adds the colorIe to the dcim rack roles list params 321 func (o *DcimRackRolesListParams) SetColorIe(colorIe *string) { 322 o.ColorIe = colorIe 323 } 324 325 // WithColorIew adds the colorIew to the dcim rack roles list params 326 func (o *DcimRackRolesListParams) WithColorIew(colorIew *string) *DcimRackRolesListParams { 327 o.SetColorIew(colorIew) 328 return o 329 } 330 331 // SetColorIew adds the colorIew to the dcim rack roles list params 332 func (o *DcimRackRolesListParams) SetColorIew(colorIew *string) { 333 o.ColorIew = colorIew 334 } 335 336 // WithColorIsw adds the colorIsw to the dcim rack roles list params 337 func (o *DcimRackRolesListParams) WithColorIsw(colorIsw *string) *DcimRackRolesListParams { 338 o.SetColorIsw(colorIsw) 339 return o 340 } 341 342 // SetColorIsw adds the colorIsw to the dcim rack roles list params 343 func (o *DcimRackRolesListParams) SetColorIsw(colorIsw *string) { 344 o.ColorIsw = colorIsw 345 } 346 347 // WithColorn adds the colorn to the dcim rack roles list params 348 func (o *DcimRackRolesListParams) WithColorn(colorn *string) *DcimRackRolesListParams { 349 o.SetColorn(colorn) 350 return o 351 } 352 353 // SetColorn adds the colorN to the dcim rack roles list params 354 func (o *DcimRackRolesListParams) SetColorn(colorn *string) { 355 o.Colorn = colorn 356 } 357 358 // WithColorNic adds the colorNic to the dcim rack roles list params 359 func (o *DcimRackRolesListParams) WithColorNic(colorNic *string) *DcimRackRolesListParams { 360 o.SetColorNic(colorNic) 361 return o 362 } 363 364 // SetColorNic adds the colorNic to the dcim rack roles list params 365 func (o *DcimRackRolesListParams) SetColorNic(colorNic *string) { 366 o.ColorNic = colorNic 367 } 368 369 // WithColorNie adds the colorNie to the dcim rack roles list params 370 func (o *DcimRackRolesListParams) WithColorNie(colorNie *string) *DcimRackRolesListParams { 371 o.SetColorNie(colorNie) 372 return o 373 } 374 375 // SetColorNie adds the colorNie to the dcim rack roles list params 376 func (o *DcimRackRolesListParams) SetColorNie(colorNie *string) { 377 o.ColorNie = colorNie 378 } 379 380 // WithColorNiew adds the colorNiew to the dcim rack roles list params 381 func (o *DcimRackRolesListParams) WithColorNiew(colorNiew *string) *DcimRackRolesListParams { 382 o.SetColorNiew(colorNiew) 383 return o 384 } 385 386 // SetColorNiew adds the colorNiew to the dcim rack roles list params 387 func (o *DcimRackRolesListParams) SetColorNiew(colorNiew *string) { 388 o.ColorNiew = colorNiew 389 } 390 391 // WithColorNisw adds the colorNisw to the dcim rack roles list params 392 func (o *DcimRackRolesListParams) WithColorNisw(colorNisw *string) *DcimRackRolesListParams { 393 o.SetColorNisw(colorNisw) 394 return o 395 } 396 397 // SetColorNisw adds the colorNisw to the dcim rack roles list params 398 func (o *DcimRackRolesListParams) SetColorNisw(colorNisw *string) { 399 o.ColorNisw = colorNisw 400 } 401 402 // WithCreated adds the created to the dcim rack roles list params 403 func (o *DcimRackRolesListParams) WithCreated(created *string) *DcimRackRolesListParams { 404 o.SetCreated(created) 405 return o 406 } 407 408 // SetCreated adds the created to the dcim rack roles list params 409 func (o *DcimRackRolesListParams) SetCreated(created *string) { 410 o.Created = created 411 } 412 413 // WithCreatedGte adds the createdGte to the dcim rack roles list params 414 func (o *DcimRackRolesListParams) WithCreatedGte(createdGte *string) *DcimRackRolesListParams { 415 o.SetCreatedGte(createdGte) 416 return o 417 } 418 419 // SetCreatedGte adds the createdGte to the dcim rack roles list params 420 func (o *DcimRackRolesListParams) SetCreatedGte(createdGte *string) { 421 o.CreatedGte = createdGte 422 } 423 424 // WithCreatedLte adds the createdLte to the dcim rack roles list params 425 func (o *DcimRackRolesListParams) WithCreatedLte(createdLte *string) *DcimRackRolesListParams { 426 o.SetCreatedLte(createdLte) 427 return o 428 } 429 430 // SetCreatedLte adds the createdLte to the dcim rack roles list params 431 func (o *DcimRackRolesListParams) SetCreatedLte(createdLte *string) { 432 o.CreatedLte = createdLte 433 } 434 435 // WithID adds the id to the dcim rack roles list params 436 func (o *DcimRackRolesListParams) WithID(id *string) *DcimRackRolesListParams { 437 o.SetID(id) 438 return o 439 } 440 441 // SetID adds the id to the dcim rack roles list params 442 func (o *DcimRackRolesListParams) SetID(id *string) { 443 o.ID = id 444 } 445 446 // WithIDGt adds the iDGt to the dcim rack roles list params 447 func (o *DcimRackRolesListParams) WithIDGt(iDGt *string) *DcimRackRolesListParams { 448 o.SetIDGt(iDGt) 449 return o 450 } 451 452 // SetIDGt adds the idGt to the dcim rack roles list params 453 func (o *DcimRackRolesListParams) SetIDGt(iDGt *string) { 454 o.IDGt = iDGt 455 } 456 457 // WithIDGte adds the iDGte to the dcim rack roles list params 458 func (o *DcimRackRolesListParams) WithIDGte(iDGte *string) *DcimRackRolesListParams { 459 o.SetIDGte(iDGte) 460 return o 461 } 462 463 // SetIDGte adds the idGte to the dcim rack roles list params 464 func (o *DcimRackRolesListParams) SetIDGte(iDGte *string) { 465 o.IDGte = iDGte 466 } 467 468 // WithIDLt adds the iDLt to the dcim rack roles list params 469 func (o *DcimRackRolesListParams) WithIDLt(iDLt *string) *DcimRackRolesListParams { 470 o.SetIDLt(iDLt) 471 return o 472 } 473 474 // SetIDLt adds the idLt to the dcim rack roles list params 475 func (o *DcimRackRolesListParams) SetIDLt(iDLt *string) { 476 o.IDLt = iDLt 477 } 478 479 // WithIDLte adds the iDLte to the dcim rack roles list params 480 func (o *DcimRackRolesListParams) WithIDLte(iDLte *string) *DcimRackRolesListParams { 481 o.SetIDLte(iDLte) 482 return o 483 } 484 485 // SetIDLte adds the idLte to the dcim rack roles list params 486 func (o *DcimRackRolesListParams) SetIDLte(iDLte *string) { 487 o.IDLte = iDLte 488 } 489 490 // WithIDn adds the iDn to the dcim rack roles list params 491 func (o *DcimRackRolesListParams) WithIDn(iDn *string) *DcimRackRolesListParams { 492 o.SetIDn(iDn) 493 return o 494 } 495 496 // SetIDn adds the idN to the dcim rack roles list params 497 func (o *DcimRackRolesListParams) SetIDn(iDn *string) { 498 o.IDn = iDn 499 } 500 501 // WithLastUpdated adds the lastUpdated to the dcim rack roles list params 502 func (o *DcimRackRolesListParams) WithLastUpdated(lastUpdated *string) *DcimRackRolesListParams { 503 o.SetLastUpdated(lastUpdated) 504 return o 505 } 506 507 // SetLastUpdated adds the lastUpdated to the dcim rack roles list params 508 func (o *DcimRackRolesListParams) SetLastUpdated(lastUpdated *string) { 509 o.LastUpdated = lastUpdated 510 } 511 512 // WithLastUpdatedGte adds the lastUpdatedGte to the dcim rack roles list params 513 func (o *DcimRackRolesListParams) WithLastUpdatedGte(lastUpdatedGte *string) *DcimRackRolesListParams { 514 o.SetLastUpdatedGte(lastUpdatedGte) 515 return o 516 } 517 518 // SetLastUpdatedGte adds the lastUpdatedGte to the dcim rack roles list params 519 func (o *DcimRackRolesListParams) SetLastUpdatedGte(lastUpdatedGte *string) { 520 o.LastUpdatedGte = lastUpdatedGte 521 } 522 523 // WithLastUpdatedLte adds the lastUpdatedLte to the dcim rack roles list params 524 func (o *DcimRackRolesListParams) WithLastUpdatedLte(lastUpdatedLte *string) *DcimRackRolesListParams { 525 o.SetLastUpdatedLte(lastUpdatedLte) 526 return o 527 } 528 529 // SetLastUpdatedLte adds the lastUpdatedLte to the dcim rack roles list params 530 func (o *DcimRackRolesListParams) SetLastUpdatedLte(lastUpdatedLte *string) { 531 o.LastUpdatedLte = lastUpdatedLte 532 } 533 534 // WithLimit adds the limit to the dcim rack roles list params 535 func (o *DcimRackRolesListParams) WithLimit(limit *int64) *DcimRackRolesListParams { 536 o.SetLimit(limit) 537 return o 538 } 539 540 // SetLimit adds the limit to the dcim rack roles list params 541 func (o *DcimRackRolesListParams) SetLimit(limit *int64) { 542 o.Limit = limit 543 } 544 545 // WithName adds the name to the dcim rack roles list params 546 func (o *DcimRackRolesListParams) WithName(name *string) *DcimRackRolesListParams { 547 o.SetName(name) 548 return o 549 } 550 551 // SetName adds the name to the dcim rack roles list params 552 func (o *DcimRackRolesListParams) SetName(name *string) { 553 o.Name = name 554 } 555 556 // WithNameEmpty adds the nameEmpty to the dcim rack roles list params 557 func (o *DcimRackRolesListParams) WithNameEmpty(nameEmpty *string) *DcimRackRolesListParams { 558 o.SetNameEmpty(nameEmpty) 559 return o 560 } 561 562 // SetNameEmpty adds the nameEmpty to the dcim rack roles list params 563 func (o *DcimRackRolesListParams) SetNameEmpty(nameEmpty *string) { 564 o.NameEmpty = nameEmpty 565 } 566 567 // WithNameIc adds the nameIc to the dcim rack roles list params 568 func (o *DcimRackRolesListParams) WithNameIc(nameIc *string) *DcimRackRolesListParams { 569 o.SetNameIc(nameIc) 570 return o 571 } 572 573 // SetNameIc adds the nameIc to the dcim rack roles list params 574 func (o *DcimRackRolesListParams) SetNameIc(nameIc *string) { 575 o.NameIc = nameIc 576 } 577 578 // WithNameIe adds the nameIe to the dcim rack roles list params 579 func (o *DcimRackRolesListParams) WithNameIe(nameIe *string) *DcimRackRolesListParams { 580 o.SetNameIe(nameIe) 581 return o 582 } 583 584 // SetNameIe adds the nameIe to the dcim rack roles list params 585 func (o *DcimRackRolesListParams) SetNameIe(nameIe *string) { 586 o.NameIe = nameIe 587 } 588 589 // WithNameIew adds the nameIew to the dcim rack roles list params 590 func (o *DcimRackRolesListParams) WithNameIew(nameIew *string) *DcimRackRolesListParams { 591 o.SetNameIew(nameIew) 592 return o 593 } 594 595 // SetNameIew adds the nameIew to the dcim rack roles list params 596 func (o *DcimRackRolesListParams) SetNameIew(nameIew *string) { 597 o.NameIew = nameIew 598 } 599 600 // WithNameIsw adds the nameIsw to the dcim rack roles list params 601 func (o *DcimRackRolesListParams) WithNameIsw(nameIsw *string) *DcimRackRolesListParams { 602 o.SetNameIsw(nameIsw) 603 return o 604 } 605 606 // SetNameIsw adds the nameIsw to the dcim rack roles list params 607 func (o *DcimRackRolesListParams) SetNameIsw(nameIsw *string) { 608 o.NameIsw = nameIsw 609 } 610 611 // WithNamen adds the namen to the dcim rack roles list params 612 func (o *DcimRackRolesListParams) WithNamen(namen *string) *DcimRackRolesListParams { 613 o.SetNamen(namen) 614 return o 615 } 616 617 // SetNamen adds the nameN to the dcim rack roles list params 618 func (o *DcimRackRolesListParams) SetNamen(namen *string) { 619 o.Namen = namen 620 } 621 622 // WithNameNic adds the nameNic to the dcim rack roles list params 623 func (o *DcimRackRolesListParams) WithNameNic(nameNic *string) *DcimRackRolesListParams { 624 o.SetNameNic(nameNic) 625 return o 626 } 627 628 // SetNameNic adds the nameNic to the dcim rack roles list params 629 func (o *DcimRackRolesListParams) SetNameNic(nameNic *string) { 630 o.NameNic = nameNic 631 } 632 633 // WithNameNie adds the nameNie to the dcim rack roles list params 634 func (o *DcimRackRolesListParams) WithNameNie(nameNie *string) *DcimRackRolesListParams { 635 o.SetNameNie(nameNie) 636 return o 637 } 638 639 // SetNameNie adds the nameNie to the dcim rack roles list params 640 func (o *DcimRackRolesListParams) SetNameNie(nameNie *string) { 641 o.NameNie = nameNie 642 } 643 644 // WithNameNiew adds the nameNiew to the dcim rack roles list params 645 func (o *DcimRackRolesListParams) WithNameNiew(nameNiew *string) *DcimRackRolesListParams { 646 o.SetNameNiew(nameNiew) 647 return o 648 } 649 650 // SetNameNiew adds the nameNiew to the dcim rack roles list params 651 func (o *DcimRackRolesListParams) SetNameNiew(nameNiew *string) { 652 o.NameNiew = nameNiew 653 } 654 655 // WithNameNisw adds the nameNisw to the dcim rack roles list params 656 func (o *DcimRackRolesListParams) WithNameNisw(nameNisw *string) *DcimRackRolesListParams { 657 o.SetNameNisw(nameNisw) 658 return o 659 } 660 661 // SetNameNisw adds the nameNisw to the dcim rack roles list params 662 func (o *DcimRackRolesListParams) SetNameNisw(nameNisw *string) { 663 o.NameNisw = nameNisw 664 } 665 666 // WithOffset adds the offset to the dcim rack roles list params 667 func (o *DcimRackRolesListParams) WithOffset(offset *int64) *DcimRackRolesListParams { 668 o.SetOffset(offset) 669 return o 670 } 671 672 // SetOffset adds the offset to the dcim rack roles list params 673 func (o *DcimRackRolesListParams) SetOffset(offset *int64) { 674 o.Offset = offset 675 } 676 677 // WithQ adds the q to the dcim rack roles list params 678 func (o *DcimRackRolesListParams) WithQ(q *string) *DcimRackRolesListParams { 679 o.SetQ(q) 680 return o 681 } 682 683 // SetQ adds the q to the dcim rack roles list params 684 func (o *DcimRackRolesListParams) SetQ(q *string) { 685 o.Q = q 686 } 687 688 // WithSlug adds the slug to the dcim rack roles list params 689 func (o *DcimRackRolesListParams) WithSlug(slug *string) *DcimRackRolesListParams { 690 o.SetSlug(slug) 691 return o 692 } 693 694 // SetSlug adds the slug to the dcim rack roles list params 695 func (o *DcimRackRolesListParams) SetSlug(slug *string) { 696 o.Slug = slug 697 } 698 699 // WithSlugEmpty adds the slugEmpty to the dcim rack roles list params 700 func (o *DcimRackRolesListParams) WithSlugEmpty(slugEmpty *string) *DcimRackRolesListParams { 701 o.SetSlugEmpty(slugEmpty) 702 return o 703 } 704 705 // SetSlugEmpty adds the slugEmpty to the dcim rack roles list params 706 func (o *DcimRackRolesListParams) SetSlugEmpty(slugEmpty *string) { 707 o.SlugEmpty = slugEmpty 708 } 709 710 // WithSlugIc adds the slugIc to the dcim rack roles list params 711 func (o *DcimRackRolesListParams) WithSlugIc(slugIc *string) *DcimRackRolesListParams { 712 o.SetSlugIc(slugIc) 713 return o 714 } 715 716 // SetSlugIc adds the slugIc to the dcim rack roles list params 717 func (o *DcimRackRolesListParams) SetSlugIc(slugIc *string) { 718 o.SlugIc = slugIc 719 } 720 721 // WithSlugIe adds the slugIe to the dcim rack roles list params 722 func (o *DcimRackRolesListParams) WithSlugIe(slugIe *string) *DcimRackRolesListParams { 723 o.SetSlugIe(slugIe) 724 return o 725 } 726 727 // SetSlugIe adds the slugIe to the dcim rack roles list params 728 func (o *DcimRackRolesListParams) SetSlugIe(slugIe *string) { 729 o.SlugIe = slugIe 730 } 731 732 // WithSlugIew adds the slugIew to the dcim rack roles list params 733 func (o *DcimRackRolesListParams) WithSlugIew(slugIew *string) *DcimRackRolesListParams { 734 o.SetSlugIew(slugIew) 735 return o 736 } 737 738 // SetSlugIew adds the slugIew to the dcim rack roles list params 739 func (o *DcimRackRolesListParams) SetSlugIew(slugIew *string) { 740 o.SlugIew = slugIew 741 } 742 743 // WithSlugIsw adds the slugIsw to the dcim rack roles list params 744 func (o *DcimRackRolesListParams) WithSlugIsw(slugIsw *string) *DcimRackRolesListParams { 745 o.SetSlugIsw(slugIsw) 746 return o 747 } 748 749 // SetSlugIsw adds the slugIsw to the dcim rack roles list params 750 func (o *DcimRackRolesListParams) SetSlugIsw(slugIsw *string) { 751 o.SlugIsw = slugIsw 752 } 753 754 // WithSlugn adds the slugn to the dcim rack roles list params 755 func (o *DcimRackRolesListParams) WithSlugn(slugn *string) *DcimRackRolesListParams { 756 o.SetSlugn(slugn) 757 return o 758 } 759 760 // SetSlugn adds the slugN to the dcim rack roles list params 761 func (o *DcimRackRolesListParams) SetSlugn(slugn *string) { 762 o.Slugn = slugn 763 } 764 765 // WithSlugNic adds the slugNic to the dcim rack roles list params 766 func (o *DcimRackRolesListParams) WithSlugNic(slugNic *string) *DcimRackRolesListParams { 767 o.SetSlugNic(slugNic) 768 return o 769 } 770 771 // SetSlugNic adds the slugNic to the dcim rack roles list params 772 func (o *DcimRackRolesListParams) SetSlugNic(slugNic *string) { 773 o.SlugNic = slugNic 774 } 775 776 // WithSlugNie adds the slugNie to the dcim rack roles list params 777 func (o *DcimRackRolesListParams) WithSlugNie(slugNie *string) *DcimRackRolesListParams { 778 o.SetSlugNie(slugNie) 779 return o 780 } 781 782 // SetSlugNie adds the slugNie to the dcim rack roles list params 783 func (o *DcimRackRolesListParams) SetSlugNie(slugNie *string) { 784 o.SlugNie = slugNie 785 } 786 787 // WithSlugNiew adds the slugNiew to the dcim rack roles list params 788 func (o *DcimRackRolesListParams) WithSlugNiew(slugNiew *string) *DcimRackRolesListParams { 789 o.SetSlugNiew(slugNiew) 790 return o 791 } 792 793 // SetSlugNiew adds the slugNiew to the dcim rack roles list params 794 func (o *DcimRackRolesListParams) SetSlugNiew(slugNiew *string) { 795 o.SlugNiew = slugNiew 796 } 797 798 // WithSlugNisw adds the slugNisw to the dcim rack roles list params 799 func (o *DcimRackRolesListParams) WithSlugNisw(slugNisw *string) *DcimRackRolesListParams { 800 o.SetSlugNisw(slugNisw) 801 return o 802 } 803 804 // SetSlugNisw adds the slugNisw to the dcim rack roles list params 805 func (o *DcimRackRolesListParams) SetSlugNisw(slugNisw *string) { 806 o.SlugNisw = slugNisw 807 } 808 809 // WriteToRequest writes these params to a swagger request 810 func (o *DcimRackRolesListParams) 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.Color != nil { 818 819 // query param color 820 var qrColor string 821 822 if o.Color != nil { 823 qrColor = *o.Color 824 } 825 qColor := qrColor 826 if qColor != "" { 827 828 if err := r.SetQueryParam("color", qColor); err != nil { 829 return err 830 } 831 } 832 } 833 834 if o.ColorEmpty != nil { 835 836 // query param color__empty 837 var qrColorEmpty string 838 839 if o.ColorEmpty != nil { 840 qrColorEmpty = *o.ColorEmpty 841 } 842 qColorEmpty := qrColorEmpty 843 if qColorEmpty != "" { 844 845 if err := r.SetQueryParam("color__empty", qColorEmpty); err != nil { 846 return err 847 } 848 } 849 } 850 851 if o.ColorIc != nil { 852 853 // query param color__ic 854 var qrColorIc string 855 856 if o.ColorIc != nil { 857 qrColorIc = *o.ColorIc 858 } 859 qColorIc := qrColorIc 860 if qColorIc != "" { 861 862 if err := r.SetQueryParam("color__ic", qColorIc); err != nil { 863 return err 864 } 865 } 866 } 867 868 if o.ColorIe != nil { 869 870 // query param color__ie 871 var qrColorIe string 872 873 if o.ColorIe != nil { 874 qrColorIe = *o.ColorIe 875 } 876 qColorIe := qrColorIe 877 if qColorIe != "" { 878 879 if err := r.SetQueryParam("color__ie", qColorIe); err != nil { 880 return err 881 } 882 } 883 } 884 885 if o.ColorIew != nil { 886 887 // query param color__iew 888 var qrColorIew string 889 890 if o.ColorIew != nil { 891 qrColorIew = *o.ColorIew 892 } 893 qColorIew := qrColorIew 894 if qColorIew != "" { 895 896 if err := r.SetQueryParam("color__iew", qColorIew); err != nil { 897 return err 898 } 899 } 900 } 901 902 if o.ColorIsw != nil { 903 904 // query param color__isw 905 var qrColorIsw string 906 907 if o.ColorIsw != nil { 908 qrColorIsw = *o.ColorIsw 909 } 910 qColorIsw := qrColorIsw 911 if qColorIsw != "" { 912 913 if err := r.SetQueryParam("color__isw", qColorIsw); err != nil { 914 return err 915 } 916 } 917 } 918 919 if o.Colorn != nil { 920 921 // query param color__n 922 var qrColorn string 923 924 if o.Colorn != nil { 925 qrColorn = *o.Colorn 926 } 927 qColorn := qrColorn 928 if qColorn != "" { 929 930 if err := r.SetQueryParam("color__n", qColorn); err != nil { 931 return err 932 } 933 } 934 } 935 936 if o.ColorNic != nil { 937 938 // query param color__nic 939 var qrColorNic string 940 941 if o.ColorNic != nil { 942 qrColorNic = *o.ColorNic 943 } 944 qColorNic := qrColorNic 945 if qColorNic != "" { 946 947 if err := r.SetQueryParam("color__nic", qColorNic); err != nil { 948 return err 949 } 950 } 951 } 952 953 if o.ColorNie != nil { 954 955 // query param color__nie 956 var qrColorNie string 957 958 if o.ColorNie != nil { 959 qrColorNie = *o.ColorNie 960 } 961 qColorNie := qrColorNie 962 if qColorNie != "" { 963 964 if err := r.SetQueryParam("color__nie", qColorNie); err != nil { 965 return err 966 } 967 } 968 } 969 970 if o.ColorNiew != nil { 971 972 // query param color__niew 973 var qrColorNiew string 974 975 if o.ColorNiew != nil { 976 qrColorNiew = *o.ColorNiew 977 } 978 qColorNiew := qrColorNiew 979 if qColorNiew != "" { 980 981 if err := r.SetQueryParam("color__niew", qColorNiew); err != nil { 982 return err 983 } 984 } 985 } 986 987 if o.ColorNisw != nil { 988 989 // query param color__nisw 990 var qrColorNisw string 991 992 if o.ColorNisw != nil { 993 qrColorNisw = *o.ColorNisw 994 } 995 qColorNisw := qrColorNisw 996 if qColorNisw != "" { 997 998 if err := r.SetQueryParam("color__nisw", qColorNisw); err != nil { 999 return err 1000 } 1001 } 1002 } 1003 1004 if o.Created != nil { 1005 1006 // query param created 1007 var qrCreated string 1008 1009 if o.Created != nil { 1010 qrCreated = *o.Created 1011 } 1012 qCreated := qrCreated 1013 if qCreated != "" { 1014 1015 if err := r.SetQueryParam("created", qCreated); err != nil { 1016 return err 1017 } 1018 } 1019 } 1020 1021 if o.CreatedGte != nil { 1022 1023 // query param created__gte 1024 var qrCreatedGte string 1025 1026 if o.CreatedGte != nil { 1027 qrCreatedGte = *o.CreatedGte 1028 } 1029 qCreatedGte := qrCreatedGte 1030 if qCreatedGte != "" { 1031 1032 if err := r.SetQueryParam("created__gte", qCreatedGte); err != nil { 1033 return err 1034 } 1035 } 1036 } 1037 1038 if o.CreatedLte != nil { 1039 1040 // query param created__lte 1041 var qrCreatedLte string 1042 1043 if o.CreatedLte != nil { 1044 qrCreatedLte = *o.CreatedLte 1045 } 1046 qCreatedLte := qrCreatedLte 1047 if qCreatedLte != "" { 1048 1049 if err := r.SetQueryParam("created__lte", qCreatedLte); 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 }