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