github.com/digitalocean/go-netbox@v0.0.2/netbox/client/extras/extras_image_attachments_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 extras 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 // NewExtrasImageAttachmentsListParams creates a new ExtrasImageAttachmentsListParams 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 NewExtrasImageAttachmentsListParams() *ExtrasImageAttachmentsListParams { 42 return &ExtrasImageAttachmentsListParams{ 43 timeout: cr.DefaultTimeout, 44 } 45 } 46 47 // NewExtrasImageAttachmentsListParamsWithTimeout creates a new ExtrasImageAttachmentsListParams object 48 // with the ability to set a timeout on a request. 49 func NewExtrasImageAttachmentsListParamsWithTimeout(timeout time.Duration) *ExtrasImageAttachmentsListParams { 50 return &ExtrasImageAttachmentsListParams{ 51 timeout: timeout, 52 } 53 } 54 55 // NewExtrasImageAttachmentsListParamsWithContext creates a new ExtrasImageAttachmentsListParams object 56 // with the ability to set a context for a request. 57 func NewExtrasImageAttachmentsListParamsWithContext(ctx context.Context) *ExtrasImageAttachmentsListParams { 58 return &ExtrasImageAttachmentsListParams{ 59 Context: ctx, 60 } 61 } 62 63 // NewExtrasImageAttachmentsListParamsWithHTTPClient creates a new ExtrasImageAttachmentsListParams object 64 // with the ability to set a custom HTTPClient for a request. 65 func NewExtrasImageAttachmentsListParamsWithHTTPClient(client *http.Client) *ExtrasImageAttachmentsListParams { 66 return &ExtrasImageAttachmentsListParams{ 67 HTTPClient: client, 68 } 69 } 70 71 /* ExtrasImageAttachmentsListParams contains all the parameters to send to the API endpoint 72 for the extras image attachments list operation. 73 74 Typically these are written to a http.Request. 75 */ 76 type ExtrasImageAttachmentsListParams struct { 77 78 // ContentType. 79 ContentType *string 80 81 // ContentTypen. 82 ContentTypen *string 83 84 // ContentTypeID. 85 ContentTypeID *string 86 87 // ContentTypeIDn. 88 ContentTypeIDn *string 89 90 // Created. 91 Created *string 92 93 // ID. 94 ID *string 95 96 // IDGt. 97 IDGt *string 98 99 // IDGte. 100 IDGte *string 101 102 // IDLt. 103 IDLt *string 104 105 // IDLte. 106 IDLte *string 107 108 // IDn. 109 IDn *string 110 111 /* Limit. 112 113 Number of results to return per page. 114 */ 115 Limit *int64 116 117 // Name. 118 Name *string 119 120 // NameEmpty. 121 NameEmpty *string 122 123 // NameIc. 124 NameIc *string 125 126 // NameIe. 127 NameIe *string 128 129 // NameIew. 130 NameIew *string 131 132 // NameIsw. 133 NameIsw *string 134 135 // Namen. 136 Namen *string 137 138 // NameNic. 139 NameNic *string 140 141 // NameNie. 142 NameNie *string 143 144 // NameNiew. 145 NameNiew *string 146 147 // NameNisw. 148 NameNisw *string 149 150 // ObjectID. 151 ObjectID *string 152 153 // ObjectIDGt. 154 ObjectIDGt *string 155 156 // ObjectIDGte. 157 ObjectIDGte *string 158 159 // ObjectIDLt. 160 ObjectIDLt *string 161 162 // ObjectIDLte. 163 ObjectIDLte *string 164 165 // ObjectIDn. 166 ObjectIDn *string 167 168 /* Offset. 169 170 The initial index from which to return the results. 171 */ 172 Offset *int64 173 174 timeout time.Duration 175 Context context.Context 176 HTTPClient *http.Client 177 } 178 179 // WithDefaults hydrates default values in the extras image attachments list params (not the query body). 180 // 181 // All values with no default are reset to their zero value. 182 func (o *ExtrasImageAttachmentsListParams) WithDefaults() *ExtrasImageAttachmentsListParams { 183 o.SetDefaults() 184 return o 185 } 186 187 // SetDefaults hydrates default values in the extras image attachments list params (not the query body). 188 // 189 // All values with no default are reset to their zero value. 190 func (o *ExtrasImageAttachmentsListParams) SetDefaults() { 191 // no default values defined for this parameter 192 } 193 194 // WithTimeout adds the timeout to the extras image attachments list params 195 func (o *ExtrasImageAttachmentsListParams) WithTimeout(timeout time.Duration) *ExtrasImageAttachmentsListParams { 196 o.SetTimeout(timeout) 197 return o 198 } 199 200 // SetTimeout adds the timeout to the extras image attachments list params 201 func (o *ExtrasImageAttachmentsListParams) SetTimeout(timeout time.Duration) { 202 o.timeout = timeout 203 } 204 205 // WithContext adds the context to the extras image attachments list params 206 func (o *ExtrasImageAttachmentsListParams) WithContext(ctx context.Context) *ExtrasImageAttachmentsListParams { 207 o.SetContext(ctx) 208 return o 209 } 210 211 // SetContext adds the context to the extras image attachments list params 212 func (o *ExtrasImageAttachmentsListParams) SetContext(ctx context.Context) { 213 o.Context = ctx 214 } 215 216 // WithHTTPClient adds the HTTPClient to the extras image attachments list params 217 func (o *ExtrasImageAttachmentsListParams) WithHTTPClient(client *http.Client) *ExtrasImageAttachmentsListParams { 218 o.SetHTTPClient(client) 219 return o 220 } 221 222 // SetHTTPClient adds the HTTPClient to the extras image attachments list params 223 func (o *ExtrasImageAttachmentsListParams) SetHTTPClient(client *http.Client) { 224 o.HTTPClient = client 225 } 226 227 // WithContentType adds the contentType to the extras image attachments list params 228 func (o *ExtrasImageAttachmentsListParams) WithContentType(contentType *string) *ExtrasImageAttachmentsListParams { 229 o.SetContentType(contentType) 230 return o 231 } 232 233 // SetContentType adds the contentType to the extras image attachments list params 234 func (o *ExtrasImageAttachmentsListParams) SetContentType(contentType *string) { 235 o.ContentType = contentType 236 } 237 238 // WithContentTypen adds the contentTypen to the extras image attachments list params 239 func (o *ExtrasImageAttachmentsListParams) WithContentTypen(contentTypen *string) *ExtrasImageAttachmentsListParams { 240 o.SetContentTypen(contentTypen) 241 return o 242 } 243 244 // SetContentTypen adds the contentTypeN to the extras image attachments list params 245 func (o *ExtrasImageAttachmentsListParams) SetContentTypen(contentTypen *string) { 246 o.ContentTypen = contentTypen 247 } 248 249 // WithContentTypeID adds the contentTypeID to the extras image attachments list params 250 func (o *ExtrasImageAttachmentsListParams) WithContentTypeID(contentTypeID *string) *ExtrasImageAttachmentsListParams { 251 o.SetContentTypeID(contentTypeID) 252 return o 253 } 254 255 // SetContentTypeID adds the contentTypeId to the extras image attachments list params 256 func (o *ExtrasImageAttachmentsListParams) SetContentTypeID(contentTypeID *string) { 257 o.ContentTypeID = contentTypeID 258 } 259 260 // WithContentTypeIDn adds the contentTypeIDn to the extras image attachments list params 261 func (o *ExtrasImageAttachmentsListParams) WithContentTypeIDn(contentTypeIDn *string) *ExtrasImageAttachmentsListParams { 262 o.SetContentTypeIDn(contentTypeIDn) 263 return o 264 } 265 266 // SetContentTypeIDn adds the contentTypeIdN to the extras image attachments list params 267 func (o *ExtrasImageAttachmentsListParams) SetContentTypeIDn(contentTypeIDn *string) { 268 o.ContentTypeIDn = contentTypeIDn 269 } 270 271 // WithCreated adds the created to the extras image attachments list params 272 func (o *ExtrasImageAttachmentsListParams) WithCreated(created *string) *ExtrasImageAttachmentsListParams { 273 o.SetCreated(created) 274 return o 275 } 276 277 // SetCreated adds the created to the extras image attachments list params 278 func (o *ExtrasImageAttachmentsListParams) SetCreated(created *string) { 279 o.Created = created 280 } 281 282 // WithID adds the id to the extras image attachments list params 283 func (o *ExtrasImageAttachmentsListParams) WithID(id *string) *ExtrasImageAttachmentsListParams { 284 o.SetID(id) 285 return o 286 } 287 288 // SetID adds the id to the extras image attachments list params 289 func (o *ExtrasImageAttachmentsListParams) SetID(id *string) { 290 o.ID = id 291 } 292 293 // WithIDGt adds the iDGt to the extras image attachments list params 294 func (o *ExtrasImageAttachmentsListParams) WithIDGt(iDGt *string) *ExtrasImageAttachmentsListParams { 295 o.SetIDGt(iDGt) 296 return o 297 } 298 299 // SetIDGt adds the idGt to the extras image attachments list params 300 func (o *ExtrasImageAttachmentsListParams) SetIDGt(iDGt *string) { 301 o.IDGt = iDGt 302 } 303 304 // WithIDGte adds the iDGte to the extras image attachments list params 305 func (o *ExtrasImageAttachmentsListParams) WithIDGte(iDGte *string) *ExtrasImageAttachmentsListParams { 306 o.SetIDGte(iDGte) 307 return o 308 } 309 310 // SetIDGte adds the idGte to the extras image attachments list params 311 func (o *ExtrasImageAttachmentsListParams) SetIDGte(iDGte *string) { 312 o.IDGte = iDGte 313 } 314 315 // WithIDLt adds the iDLt to the extras image attachments list params 316 func (o *ExtrasImageAttachmentsListParams) WithIDLt(iDLt *string) *ExtrasImageAttachmentsListParams { 317 o.SetIDLt(iDLt) 318 return o 319 } 320 321 // SetIDLt adds the idLt to the extras image attachments list params 322 func (o *ExtrasImageAttachmentsListParams) SetIDLt(iDLt *string) { 323 o.IDLt = iDLt 324 } 325 326 // WithIDLte adds the iDLte to the extras image attachments list params 327 func (o *ExtrasImageAttachmentsListParams) WithIDLte(iDLte *string) *ExtrasImageAttachmentsListParams { 328 o.SetIDLte(iDLte) 329 return o 330 } 331 332 // SetIDLte adds the idLte to the extras image attachments list params 333 func (o *ExtrasImageAttachmentsListParams) SetIDLte(iDLte *string) { 334 o.IDLte = iDLte 335 } 336 337 // WithIDn adds the iDn to the extras image attachments list params 338 func (o *ExtrasImageAttachmentsListParams) WithIDn(iDn *string) *ExtrasImageAttachmentsListParams { 339 o.SetIDn(iDn) 340 return o 341 } 342 343 // SetIDn adds the idN to the extras image attachments list params 344 func (o *ExtrasImageAttachmentsListParams) SetIDn(iDn *string) { 345 o.IDn = iDn 346 } 347 348 // WithLimit adds the limit to the extras image attachments list params 349 func (o *ExtrasImageAttachmentsListParams) WithLimit(limit *int64) *ExtrasImageAttachmentsListParams { 350 o.SetLimit(limit) 351 return o 352 } 353 354 // SetLimit adds the limit to the extras image attachments list params 355 func (o *ExtrasImageAttachmentsListParams) SetLimit(limit *int64) { 356 o.Limit = limit 357 } 358 359 // WithName adds the name to the extras image attachments list params 360 func (o *ExtrasImageAttachmentsListParams) WithName(name *string) *ExtrasImageAttachmentsListParams { 361 o.SetName(name) 362 return o 363 } 364 365 // SetName adds the name to the extras image attachments list params 366 func (o *ExtrasImageAttachmentsListParams) SetName(name *string) { 367 o.Name = name 368 } 369 370 // WithNameEmpty adds the nameEmpty to the extras image attachments list params 371 func (o *ExtrasImageAttachmentsListParams) WithNameEmpty(nameEmpty *string) *ExtrasImageAttachmentsListParams { 372 o.SetNameEmpty(nameEmpty) 373 return o 374 } 375 376 // SetNameEmpty adds the nameEmpty to the extras image attachments list params 377 func (o *ExtrasImageAttachmentsListParams) SetNameEmpty(nameEmpty *string) { 378 o.NameEmpty = nameEmpty 379 } 380 381 // WithNameIc adds the nameIc to the extras image attachments list params 382 func (o *ExtrasImageAttachmentsListParams) WithNameIc(nameIc *string) *ExtrasImageAttachmentsListParams { 383 o.SetNameIc(nameIc) 384 return o 385 } 386 387 // SetNameIc adds the nameIc to the extras image attachments list params 388 func (o *ExtrasImageAttachmentsListParams) SetNameIc(nameIc *string) { 389 o.NameIc = nameIc 390 } 391 392 // WithNameIe adds the nameIe to the extras image attachments list params 393 func (o *ExtrasImageAttachmentsListParams) WithNameIe(nameIe *string) *ExtrasImageAttachmentsListParams { 394 o.SetNameIe(nameIe) 395 return o 396 } 397 398 // SetNameIe adds the nameIe to the extras image attachments list params 399 func (o *ExtrasImageAttachmentsListParams) SetNameIe(nameIe *string) { 400 o.NameIe = nameIe 401 } 402 403 // WithNameIew adds the nameIew to the extras image attachments list params 404 func (o *ExtrasImageAttachmentsListParams) WithNameIew(nameIew *string) *ExtrasImageAttachmentsListParams { 405 o.SetNameIew(nameIew) 406 return o 407 } 408 409 // SetNameIew adds the nameIew to the extras image attachments list params 410 func (o *ExtrasImageAttachmentsListParams) SetNameIew(nameIew *string) { 411 o.NameIew = nameIew 412 } 413 414 // WithNameIsw adds the nameIsw to the extras image attachments list params 415 func (o *ExtrasImageAttachmentsListParams) WithNameIsw(nameIsw *string) *ExtrasImageAttachmentsListParams { 416 o.SetNameIsw(nameIsw) 417 return o 418 } 419 420 // SetNameIsw adds the nameIsw to the extras image attachments list params 421 func (o *ExtrasImageAttachmentsListParams) SetNameIsw(nameIsw *string) { 422 o.NameIsw = nameIsw 423 } 424 425 // WithNamen adds the namen to the extras image attachments list params 426 func (o *ExtrasImageAttachmentsListParams) WithNamen(namen *string) *ExtrasImageAttachmentsListParams { 427 o.SetNamen(namen) 428 return o 429 } 430 431 // SetNamen adds the nameN to the extras image attachments list params 432 func (o *ExtrasImageAttachmentsListParams) SetNamen(namen *string) { 433 o.Namen = namen 434 } 435 436 // WithNameNic adds the nameNic to the extras image attachments list params 437 func (o *ExtrasImageAttachmentsListParams) WithNameNic(nameNic *string) *ExtrasImageAttachmentsListParams { 438 o.SetNameNic(nameNic) 439 return o 440 } 441 442 // SetNameNic adds the nameNic to the extras image attachments list params 443 func (o *ExtrasImageAttachmentsListParams) SetNameNic(nameNic *string) { 444 o.NameNic = nameNic 445 } 446 447 // WithNameNie adds the nameNie to the extras image attachments list params 448 func (o *ExtrasImageAttachmentsListParams) WithNameNie(nameNie *string) *ExtrasImageAttachmentsListParams { 449 o.SetNameNie(nameNie) 450 return o 451 } 452 453 // SetNameNie adds the nameNie to the extras image attachments list params 454 func (o *ExtrasImageAttachmentsListParams) SetNameNie(nameNie *string) { 455 o.NameNie = nameNie 456 } 457 458 // WithNameNiew adds the nameNiew to the extras image attachments list params 459 func (o *ExtrasImageAttachmentsListParams) WithNameNiew(nameNiew *string) *ExtrasImageAttachmentsListParams { 460 o.SetNameNiew(nameNiew) 461 return o 462 } 463 464 // SetNameNiew adds the nameNiew to the extras image attachments list params 465 func (o *ExtrasImageAttachmentsListParams) SetNameNiew(nameNiew *string) { 466 o.NameNiew = nameNiew 467 } 468 469 // WithNameNisw adds the nameNisw to the extras image attachments list params 470 func (o *ExtrasImageAttachmentsListParams) WithNameNisw(nameNisw *string) *ExtrasImageAttachmentsListParams { 471 o.SetNameNisw(nameNisw) 472 return o 473 } 474 475 // SetNameNisw adds the nameNisw to the extras image attachments list params 476 func (o *ExtrasImageAttachmentsListParams) SetNameNisw(nameNisw *string) { 477 o.NameNisw = nameNisw 478 } 479 480 // WithObjectID adds the objectID to the extras image attachments list params 481 func (o *ExtrasImageAttachmentsListParams) WithObjectID(objectID *string) *ExtrasImageAttachmentsListParams { 482 o.SetObjectID(objectID) 483 return o 484 } 485 486 // SetObjectID adds the objectId to the extras image attachments list params 487 func (o *ExtrasImageAttachmentsListParams) SetObjectID(objectID *string) { 488 o.ObjectID = objectID 489 } 490 491 // WithObjectIDGt adds the objectIDGt to the extras image attachments list params 492 func (o *ExtrasImageAttachmentsListParams) WithObjectIDGt(objectIDGt *string) *ExtrasImageAttachmentsListParams { 493 o.SetObjectIDGt(objectIDGt) 494 return o 495 } 496 497 // SetObjectIDGt adds the objectIdGt to the extras image attachments list params 498 func (o *ExtrasImageAttachmentsListParams) SetObjectIDGt(objectIDGt *string) { 499 o.ObjectIDGt = objectIDGt 500 } 501 502 // WithObjectIDGte adds the objectIDGte to the extras image attachments list params 503 func (o *ExtrasImageAttachmentsListParams) WithObjectIDGte(objectIDGte *string) *ExtrasImageAttachmentsListParams { 504 o.SetObjectIDGte(objectIDGte) 505 return o 506 } 507 508 // SetObjectIDGte adds the objectIdGte to the extras image attachments list params 509 func (o *ExtrasImageAttachmentsListParams) SetObjectIDGte(objectIDGte *string) { 510 o.ObjectIDGte = objectIDGte 511 } 512 513 // WithObjectIDLt adds the objectIDLt to the extras image attachments list params 514 func (o *ExtrasImageAttachmentsListParams) WithObjectIDLt(objectIDLt *string) *ExtrasImageAttachmentsListParams { 515 o.SetObjectIDLt(objectIDLt) 516 return o 517 } 518 519 // SetObjectIDLt adds the objectIdLt to the extras image attachments list params 520 func (o *ExtrasImageAttachmentsListParams) SetObjectIDLt(objectIDLt *string) { 521 o.ObjectIDLt = objectIDLt 522 } 523 524 // WithObjectIDLte adds the objectIDLte to the extras image attachments list params 525 func (o *ExtrasImageAttachmentsListParams) WithObjectIDLte(objectIDLte *string) *ExtrasImageAttachmentsListParams { 526 o.SetObjectIDLte(objectIDLte) 527 return o 528 } 529 530 // SetObjectIDLte adds the objectIdLte to the extras image attachments list params 531 func (o *ExtrasImageAttachmentsListParams) SetObjectIDLte(objectIDLte *string) { 532 o.ObjectIDLte = objectIDLte 533 } 534 535 // WithObjectIDn adds the objectIDn to the extras image attachments list params 536 func (o *ExtrasImageAttachmentsListParams) WithObjectIDn(objectIDn *string) *ExtrasImageAttachmentsListParams { 537 o.SetObjectIDn(objectIDn) 538 return o 539 } 540 541 // SetObjectIDn adds the objectIdN to the extras image attachments list params 542 func (o *ExtrasImageAttachmentsListParams) SetObjectIDn(objectIDn *string) { 543 o.ObjectIDn = objectIDn 544 } 545 546 // WithOffset adds the offset to the extras image attachments list params 547 func (o *ExtrasImageAttachmentsListParams) WithOffset(offset *int64) *ExtrasImageAttachmentsListParams { 548 o.SetOffset(offset) 549 return o 550 } 551 552 // SetOffset adds the offset to the extras image attachments list params 553 func (o *ExtrasImageAttachmentsListParams) SetOffset(offset *int64) { 554 o.Offset = offset 555 } 556 557 // WriteToRequest writes these params to a swagger request 558 func (o *ExtrasImageAttachmentsListParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { 559 560 if err := r.SetTimeout(o.timeout); err != nil { 561 return err 562 } 563 var res []error 564 565 if o.ContentType != nil { 566 567 // query param content_type 568 var qrContentType string 569 570 if o.ContentType != nil { 571 qrContentType = *o.ContentType 572 } 573 qContentType := qrContentType 574 if qContentType != "" { 575 576 if err := r.SetQueryParam("content_type", qContentType); err != nil { 577 return err 578 } 579 } 580 } 581 582 if o.ContentTypen != nil { 583 584 // query param content_type__n 585 var qrContentTypen string 586 587 if o.ContentTypen != nil { 588 qrContentTypen = *o.ContentTypen 589 } 590 qContentTypen := qrContentTypen 591 if qContentTypen != "" { 592 593 if err := r.SetQueryParam("content_type__n", qContentTypen); err != nil { 594 return err 595 } 596 } 597 } 598 599 if o.ContentTypeID != nil { 600 601 // query param content_type_id 602 var qrContentTypeID string 603 604 if o.ContentTypeID != nil { 605 qrContentTypeID = *o.ContentTypeID 606 } 607 qContentTypeID := qrContentTypeID 608 if qContentTypeID != "" { 609 610 if err := r.SetQueryParam("content_type_id", qContentTypeID); err != nil { 611 return err 612 } 613 } 614 } 615 616 if o.ContentTypeIDn != nil { 617 618 // query param content_type_id__n 619 var qrContentTypeIDn string 620 621 if o.ContentTypeIDn != nil { 622 qrContentTypeIDn = *o.ContentTypeIDn 623 } 624 qContentTypeIDn := qrContentTypeIDn 625 if qContentTypeIDn != "" { 626 627 if err := r.SetQueryParam("content_type_id__n", qContentTypeIDn); err != nil { 628 return err 629 } 630 } 631 } 632 633 if o.Created != nil { 634 635 // query param created 636 var qrCreated string 637 638 if o.Created != nil { 639 qrCreated = *o.Created 640 } 641 qCreated := qrCreated 642 if qCreated != "" { 643 644 if err := r.SetQueryParam("created", qCreated); err != nil { 645 return err 646 } 647 } 648 } 649 650 if o.ID != nil { 651 652 // query param id 653 var qrID string 654 655 if o.ID != nil { 656 qrID = *o.ID 657 } 658 qID := qrID 659 if qID != "" { 660 661 if err := r.SetQueryParam("id", qID); err != nil { 662 return err 663 } 664 } 665 } 666 667 if o.IDGt != nil { 668 669 // query param id__gt 670 var qrIDGt string 671 672 if o.IDGt != nil { 673 qrIDGt = *o.IDGt 674 } 675 qIDGt := qrIDGt 676 if qIDGt != "" { 677 678 if err := r.SetQueryParam("id__gt", qIDGt); err != nil { 679 return err 680 } 681 } 682 } 683 684 if o.IDGte != nil { 685 686 // query param id__gte 687 var qrIDGte string 688 689 if o.IDGte != nil { 690 qrIDGte = *o.IDGte 691 } 692 qIDGte := qrIDGte 693 if qIDGte != "" { 694 695 if err := r.SetQueryParam("id__gte", qIDGte); err != nil { 696 return err 697 } 698 } 699 } 700 701 if o.IDLt != nil { 702 703 // query param id__lt 704 var qrIDLt string 705 706 if o.IDLt != nil { 707 qrIDLt = *o.IDLt 708 } 709 qIDLt := qrIDLt 710 if qIDLt != "" { 711 712 if err := r.SetQueryParam("id__lt", qIDLt); err != nil { 713 return err 714 } 715 } 716 } 717 718 if o.IDLte != nil { 719 720 // query param id__lte 721 var qrIDLte string 722 723 if o.IDLte != nil { 724 qrIDLte = *o.IDLte 725 } 726 qIDLte := qrIDLte 727 if qIDLte != "" { 728 729 if err := r.SetQueryParam("id__lte", qIDLte); err != nil { 730 return err 731 } 732 } 733 } 734 735 if o.IDn != nil { 736 737 // query param id__n 738 var qrIDn string 739 740 if o.IDn != nil { 741 qrIDn = *o.IDn 742 } 743 qIDn := qrIDn 744 if qIDn != "" { 745 746 if err := r.SetQueryParam("id__n", qIDn); err != nil { 747 return err 748 } 749 } 750 } 751 752 if o.Limit != nil { 753 754 // query param limit 755 var qrLimit int64 756 757 if o.Limit != nil { 758 qrLimit = *o.Limit 759 } 760 qLimit := swag.FormatInt64(qrLimit) 761 if qLimit != "" { 762 763 if err := r.SetQueryParam("limit", qLimit); err != nil { 764 return err 765 } 766 } 767 } 768 769 if o.Name != nil { 770 771 // query param name 772 var qrName string 773 774 if o.Name != nil { 775 qrName = *o.Name 776 } 777 qName := qrName 778 if qName != "" { 779 780 if err := r.SetQueryParam("name", qName); err != nil { 781 return err 782 } 783 } 784 } 785 786 if o.NameEmpty != nil { 787 788 // query param name__empty 789 var qrNameEmpty string 790 791 if o.NameEmpty != nil { 792 qrNameEmpty = *o.NameEmpty 793 } 794 qNameEmpty := qrNameEmpty 795 if qNameEmpty != "" { 796 797 if err := r.SetQueryParam("name__empty", qNameEmpty); err != nil { 798 return err 799 } 800 } 801 } 802 803 if o.NameIc != nil { 804 805 // query param name__ic 806 var qrNameIc string 807 808 if o.NameIc != nil { 809 qrNameIc = *o.NameIc 810 } 811 qNameIc := qrNameIc 812 if qNameIc != "" { 813 814 if err := r.SetQueryParam("name__ic", qNameIc); err != nil { 815 return err 816 } 817 } 818 } 819 820 if o.NameIe != nil { 821 822 // query param name__ie 823 var qrNameIe string 824 825 if o.NameIe != nil { 826 qrNameIe = *o.NameIe 827 } 828 qNameIe := qrNameIe 829 if qNameIe != "" { 830 831 if err := r.SetQueryParam("name__ie", qNameIe); err != nil { 832 return err 833 } 834 } 835 } 836 837 if o.NameIew != nil { 838 839 // query param name__iew 840 var qrNameIew string 841 842 if o.NameIew != nil { 843 qrNameIew = *o.NameIew 844 } 845 qNameIew := qrNameIew 846 if qNameIew != "" { 847 848 if err := r.SetQueryParam("name__iew", qNameIew); err != nil { 849 return err 850 } 851 } 852 } 853 854 if o.NameIsw != nil { 855 856 // query param name__isw 857 var qrNameIsw string 858 859 if o.NameIsw != nil { 860 qrNameIsw = *o.NameIsw 861 } 862 qNameIsw := qrNameIsw 863 if qNameIsw != "" { 864 865 if err := r.SetQueryParam("name__isw", qNameIsw); err != nil { 866 return err 867 } 868 } 869 } 870 871 if o.Namen != nil { 872 873 // query param name__n 874 var qrNamen string 875 876 if o.Namen != nil { 877 qrNamen = *o.Namen 878 } 879 qNamen := qrNamen 880 if qNamen != "" { 881 882 if err := r.SetQueryParam("name__n", qNamen); err != nil { 883 return err 884 } 885 } 886 } 887 888 if o.NameNic != nil { 889 890 // query param name__nic 891 var qrNameNic string 892 893 if o.NameNic != nil { 894 qrNameNic = *o.NameNic 895 } 896 qNameNic := qrNameNic 897 if qNameNic != "" { 898 899 if err := r.SetQueryParam("name__nic", qNameNic); err != nil { 900 return err 901 } 902 } 903 } 904 905 if o.NameNie != nil { 906 907 // query param name__nie 908 var qrNameNie string 909 910 if o.NameNie != nil { 911 qrNameNie = *o.NameNie 912 } 913 qNameNie := qrNameNie 914 if qNameNie != "" { 915 916 if err := r.SetQueryParam("name__nie", qNameNie); err != nil { 917 return err 918 } 919 } 920 } 921 922 if o.NameNiew != nil { 923 924 // query param name__niew 925 var qrNameNiew string 926 927 if o.NameNiew != nil { 928 qrNameNiew = *o.NameNiew 929 } 930 qNameNiew := qrNameNiew 931 if qNameNiew != "" { 932 933 if err := r.SetQueryParam("name__niew", qNameNiew); err != nil { 934 return err 935 } 936 } 937 } 938 939 if o.NameNisw != nil { 940 941 // query param name__nisw 942 var qrNameNisw string 943 944 if o.NameNisw != nil { 945 qrNameNisw = *o.NameNisw 946 } 947 qNameNisw := qrNameNisw 948 if qNameNisw != "" { 949 950 if err := r.SetQueryParam("name__nisw", qNameNisw); err != nil { 951 return err 952 } 953 } 954 } 955 956 if o.ObjectID != nil { 957 958 // query param object_id 959 var qrObjectID string 960 961 if o.ObjectID != nil { 962 qrObjectID = *o.ObjectID 963 } 964 qObjectID := qrObjectID 965 if qObjectID != "" { 966 967 if err := r.SetQueryParam("object_id", qObjectID); err != nil { 968 return err 969 } 970 } 971 } 972 973 if o.ObjectIDGt != nil { 974 975 // query param object_id__gt 976 var qrObjectIDGt string 977 978 if o.ObjectIDGt != nil { 979 qrObjectIDGt = *o.ObjectIDGt 980 } 981 qObjectIDGt := qrObjectIDGt 982 if qObjectIDGt != "" { 983 984 if err := r.SetQueryParam("object_id__gt", qObjectIDGt); err != nil { 985 return err 986 } 987 } 988 } 989 990 if o.ObjectIDGte != nil { 991 992 // query param object_id__gte 993 var qrObjectIDGte string 994 995 if o.ObjectIDGte != nil { 996 qrObjectIDGte = *o.ObjectIDGte 997 } 998 qObjectIDGte := qrObjectIDGte 999 if qObjectIDGte != "" { 1000 1001 if err := r.SetQueryParam("object_id__gte", qObjectIDGte); err != nil { 1002 return err 1003 } 1004 } 1005 } 1006 1007 if o.ObjectIDLt != nil { 1008 1009 // query param object_id__lt 1010 var qrObjectIDLt string 1011 1012 if o.ObjectIDLt != nil { 1013 qrObjectIDLt = *o.ObjectIDLt 1014 } 1015 qObjectIDLt := qrObjectIDLt 1016 if qObjectIDLt != "" { 1017 1018 if err := r.SetQueryParam("object_id__lt", qObjectIDLt); err != nil { 1019 return err 1020 } 1021 } 1022 } 1023 1024 if o.ObjectIDLte != nil { 1025 1026 // query param object_id__lte 1027 var qrObjectIDLte string 1028 1029 if o.ObjectIDLte != nil { 1030 qrObjectIDLte = *o.ObjectIDLte 1031 } 1032 qObjectIDLte := qrObjectIDLte 1033 if qObjectIDLte != "" { 1034 1035 if err := r.SetQueryParam("object_id__lte", qObjectIDLte); err != nil { 1036 return err 1037 } 1038 } 1039 } 1040 1041 if o.ObjectIDn != nil { 1042 1043 // query param object_id__n 1044 var qrObjectIDn string 1045 1046 if o.ObjectIDn != nil { 1047 qrObjectIDn = *o.ObjectIDn 1048 } 1049 qObjectIDn := qrObjectIDn 1050 if qObjectIDn != "" { 1051 1052 if err := r.SetQueryParam("object_id__n", qObjectIDn); err != nil { 1053 return err 1054 } 1055 } 1056 } 1057 1058 if o.Offset != nil { 1059 1060 // query param offset 1061 var qrOffset int64 1062 1063 if o.Offset != nil { 1064 qrOffset = *o.Offset 1065 } 1066 qOffset := swag.FormatInt64(qrOffset) 1067 if qOffset != "" { 1068 1069 if err := r.SetQueryParam("offset", qOffset); err != nil { 1070 return err 1071 } 1072 } 1073 } 1074 1075 if len(res) > 0 { 1076 return errors.CompositeValidationError(res...) 1077 } 1078 return nil 1079 }