github.com/digitalocean/go-netbox@v0.0.2/netbox/client/extras/extras_custom_links_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 // NewExtrasCustomLinksListParams creates a new ExtrasCustomLinksListParams 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 NewExtrasCustomLinksListParams() *ExtrasCustomLinksListParams { 42 return &ExtrasCustomLinksListParams{ 43 timeout: cr.DefaultTimeout, 44 } 45 } 46 47 // NewExtrasCustomLinksListParamsWithTimeout creates a new ExtrasCustomLinksListParams object 48 // with the ability to set a timeout on a request. 49 func NewExtrasCustomLinksListParamsWithTimeout(timeout time.Duration) *ExtrasCustomLinksListParams { 50 return &ExtrasCustomLinksListParams{ 51 timeout: timeout, 52 } 53 } 54 55 // NewExtrasCustomLinksListParamsWithContext creates a new ExtrasCustomLinksListParams object 56 // with the ability to set a context for a request. 57 func NewExtrasCustomLinksListParamsWithContext(ctx context.Context) *ExtrasCustomLinksListParams { 58 return &ExtrasCustomLinksListParams{ 59 Context: ctx, 60 } 61 } 62 63 // NewExtrasCustomLinksListParamsWithHTTPClient creates a new ExtrasCustomLinksListParams object 64 // with the ability to set a custom HTTPClient for a request. 65 func NewExtrasCustomLinksListParamsWithHTTPClient(client *http.Client) *ExtrasCustomLinksListParams { 66 return &ExtrasCustomLinksListParams{ 67 HTTPClient: client, 68 } 69 } 70 71 /* ExtrasCustomLinksListParams contains all the parameters to send to the API endpoint 72 for the extras custom links list operation. 73 74 Typically these are written to a http.Request. 75 */ 76 type ExtrasCustomLinksListParams struct { 77 78 // ContentType. 79 ContentType *string 80 81 // ContentTypen. 82 ContentTypen *string 83 84 // GroupName. 85 GroupName *string 86 87 // GroupNameEmpty. 88 GroupNameEmpty *string 89 90 // GroupNameIc. 91 GroupNameIc *string 92 93 // GroupNameIe. 94 GroupNameIe *string 95 96 // GroupNameIew. 97 GroupNameIew *string 98 99 // GroupNameIsw. 100 GroupNameIsw *string 101 102 // GroupNamen. 103 GroupNamen *string 104 105 // GroupNameNic. 106 GroupNameNic *string 107 108 // GroupNameNie. 109 GroupNameNie *string 110 111 // GroupNameNiew. 112 GroupNameNiew *string 113 114 // GroupNameNisw. 115 GroupNameNisw *string 116 117 // ID. 118 ID *string 119 120 // IDGt. 121 IDGt *string 122 123 // IDGte. 124 IDGte *string 125 126 // IDLt. 127 IDLt *string 128 129 // IDLte. 130 IDLte *string 131 132 // IDn. 133 IDn *string 134 135 /* Limit. 136 137 Number of results to return per page. 138 */ 139 Limit *int64 140 141 // LinkText. 142 LinkText *string 143 144 // LinkTextEmpty. 145 LinkTextEmpty *string 146 147 // LinkTextIc. 148 LinkTextIc *string 149 150 // LinkTextIe. 151 LinkTextIe *string 152 153 // LinkTextIew. 154 LinkTextIew *string 155 156 // LinkTextIsw. 157 LinkTextIsw *string 158 159 // LinkTextn. 160 LinkTextn *string 161 162 // LinkTextNic. 163 LinkTextNic *string 164 165 // LinkTextNie. 166 LinkTextNie *string 167 168 // LinkTextNiew. 169 LinkTextNiew *string 170 171 // LinkTextNisw. 172 LinkTextNisw *string 173 174 // LinkURL. 175 LinkURL *string 176 177 // LinkURLEmpty. 178 LinkURLEmpty *string 179 180 // LinkURLIc. 181 LinkURLIc *string 182 183 // LinkURLIe. 184 LinkURLIe *string 185 186 // LinkURLIew. 187 LinkURLIew *string 188 189 // LinkURLIsw. 190 LinkURLIsw *string 191 192 // LinkURLn. 193 LinkURLn *string 194 195 // LinkURLNic. 196 LinkURLNic *string 197 198 // LinkURLNie. 199 LinkURLNie *string 200 201 // LinkURLNiew. 202 LinkURLNiew *string 203 204 // LinkURLNisw. 205 LinkURLNisw *string 206 207 // Name. 208 Name *string 209 210 // NameEmpty. 211 NameEmpty *string 212 213 // NameIc. 214 NameIc *string 215 216 // NameIe. 217 NameIe *string 218 219 // NameIew. 220 NameIew *string 221 222 // NameIsw. 223 NameIsw *string 224 225 // Namen. 226 Namen *string 227 228 // NameNic. 229 NameNic *string 230 231 // NameNie. 232 NameNie *string 233 234 // NameNiew. 235 NameNiew *string 236 237 // NameNisw. 238 NameNisw *string 239 240 // NewWindow. 241 NewWindow *string 242 243 /* Offset. 244 245 The initial index from which to return the results. 246 */ 247 Offset *int64 248 249 // Weight. 250 Weight *string 251 252 // WeightGt. 253 WeightGt *string 254 255 // WeightGte. 256 WeightGte *string 257 258 // WeightLt. 259 WeightLt *string 260 261 // WeightLte. 262 WeightLte *string 263 264 // Weightn. 265 Weightn *string 266 267 timeout time.Duration 268 Context context.Context 269 HTTPClient *http.Client 270 } 271 272 // WithDefaults hydrates default values in the extras custom links list params (not the query body). 273 // 274 // All values with no default are reset to their zero value. 275 func (o *ExtrasCustomLinksListParams) WithDefaults() *ExtrasCustomLinksListParams { 276 o.SetDefaults() 277 return o 278 } 279 280 // SetDefaults hydrates default values in the extras custom links list params (not the query body). 281 // 282 // All values with no default are reset to their zero value. 283 func (o *ExtrasCustomLinksListParams) SetDefaults() { 284 // no default values defined for this parameter 285 } 286 287 // WithTimeout adds the timeout to the extras custom links list params 288 func (o *ExtrasCustomLinksListParams) WithTimeout(timeout time.Duration) *ExtrasCustomLinksListParams { 289 o.SetTimeout(timeout) 290 return o 291 } 292 293 // SetTimeout adds the timeout to the extras custom links list params 294 func (o *ExtrasCustomLinksListParams) SetTimeout(timeout time.Duration) { 295 o.timeout = timeout 296 } 297 298 // WithContext adds the context to the extras custom links list params 299 func (o *ExtrasCustomLinksListParams) WithContext(ctx context.Context) *ExtrasCustomLinksListParams { 300 o.SetContext(ctx) 301 return o 302 } 303 304 // SetContext adds the context to the extras custom links list params 305 func (o *ExtrasCustomLinksListParams) SetContext(ctx context.Context) { 306 o.Context = ctx 307 } 308 309 // WithHTTPClient adds the HTTPClient to the extras custom links list params 310 func (o *ExtrasCustomLinksListParams) WithHTTPClient(client *http.Client) *ExtrasCustomLinksListParams { 311 o.SetHTTPClient(client) 312 return o 313 } 314 315 // SetHTTPClient adds the HTTPClient to the extras custom links list params 316 func (o *ExtrasCustomLinksListParams) SetHTTPClient(client *http.Client) { 317 o.HTTPClient = client 318 } 319 320 // WithContentType adds the contentType to the extras custom links list params 321 func (o *ExtrasCustomLinksListParams) WithContentType(contentType *string) *ExtrasCustomLinksListParams { 322 o.SetContentType(contentType) 323 return o 324 } 325 326 // SetContentType adds the contentType to the extras custom links list params 327 func (o *ExtrasCustomLinksListParams) SetContentType(contentType *string) { 328 o.ContentType = contentType 329 } 330 331 // WithContentTypen adds the contentTypen to the extras custom links list params 332 func (o *ExtrasCustomLinksListParams) WithContentTypen(contentTypen *string) *ExtrasCustomLinksListParams { 333 o.SetContentTypen(contentTypen) 334 return o 335 } 336 337 // SetContentTypen adds the contentTypeN to the extras custom links list params 338 func (o *ExtrasCustomLinksListParams) SetContentTypen(contentTypen *string) { 339 o.ContentTypen = contentTypen 340 } 341 342 // WithGroupName adds the groupName to the extras custom links list params 343 func (o *ExtrasCustomLinksListParams) WithGroupName(groupName *string) *ExtrasCustomLinksListParams { 344 o.SetGroupName(groupName) 345 return o 346 } 347 348 // SetGroupName adds the groupName to the extras custom links list params 349 func (o *ExtrasCustomLinksListParams) SetGroupName(groupName *string) { 350 o.GroupName = groupName 351 } 352 353 // WithGroupNameEmpty adds the groupNameEmpty to the extras custom links list params 354 func (o *ExtrasCustomLinksListParams) WithGroupNameEmpty(groupNameEmpty *string) *ExtrasCustomLinksListParams { 355 o.SetGroupNameEmpty(groupNameEmpty) 356 return o 357 } 358 359 // SetGroupNameEmpty adds the groupNameEmpty to the extras custom links list params 360 func (o *ExtrasCustomLinksListParams) SetGroupNameEmpty(groupNameEmpty *string) { 361 o.GroupNameEmpty = groupNameEmpty 362 } 363 364 // WithGroupNameIc adds the groupNameIc to the extras custom links list params 365 func (o *ExtrasCustomLinksListParams) WithGroupNameIc(groupNameIc *string) *ExtrasCustomLinksListParams { 366 o.SetGroupNameIc(groupNameIc) 367 return o 368 } 369 370 // SetGroupNameIc adds the groupNameIc to the extras custom links list params 371 func (o *ExtrasCustomLinksListParams) SetGroupNameIc(groupNameIc *string) { 372 o.GroupNameIc = groupNameIc 373 } 374 375 // WithGroupNameIe adds the groupNameIe to the extras custom links list params 376 func (o *ExtrasCustomLinksListParams) WithGroupNameIe(groupNameIe *string) *ExtrasCustomLinksListParams { 377 o.SetGroupNameIe(groupNameIe) 378 return o 379 } 380 381 // SetGroupNameIe adds the groupNameIe to the extras custom links list params 382 func (o *ExtrasCustomLinksListParams) SetGroupNameIe(groupNameIe *string) { 383 o.GroupNameIe = groupNameIe 384 } 385 386 // WithGroupNameIew adds the groupNameIew to the extras custom links list params 387 func (o *ExtrasCustomLinksListParams) WithGroupNameIew(groupNameIew *string) *ExtrasCustomLinksListParams { 388 o.SetGroupNameIew(groupNameIew) 389 return o 390 } 391 392 // SetGroupNameIew adds the groupNameIew to the extras custom links list params 393 func (o *ExtrasCustomLinksListParams) SetGroupNameIew(groupNameIew *string) { 394 o.GroupNameIew = groupNameIew 395 } 396 397 // WithGroupNameIsw adds the groupNameIsw to the extras custom links list params 398 func (o *ExtrasCustomLinksListParams) WithGroupNameIsw(groupNameIsw *string) *ExtrasCustomLinksListParams { 399 o.SetGroupNameIsw(groupNameIsw) 400 return o 401 } 402 403 // SetGroupNameIsw adds the groupNameIsw to the extras custom links list params 404 func (o *ExtrasCustomLinksListParams) SetGroupNameIsw(groupNameIsw *string) { 405 o.GroupNameIsw = groupNameIsw 406 } 407 408 // WithGroupNamen adds the groupNamen to the extras custom links list params 409 func (o *ExtrasCustomLinksListParams) WithGroupNamen(groupNamen *string) *ExtrasCustomLinksListParams { 410 o.SetGroupNamen(groupNamen) 411 return o 412 } 413 414 // SetGroupNamen adds the groupNameN to the extras custom links list params 415 func (o *ExtrasCustomLinksListParams) SetGroupNamen(groupNamen *string) { 416 o.GroupNamen = groupNamen 417 } 418 419 // WithGroupNameNic adds the groupNameNic to the extras custom links list params 420 func (o *ExtrasCustomLinksListParams) WithGroupNameNic(groupNameNic *string) *ExtrasCustomLinksListParams { 421 o.SetGroupNameNic(groupNameNic) 422 return o 423 } 424 425 // SetGroupNameNic adds the groupNameNic to the extras custom links list params 426 func (o *ExtrasCustomLinksListParams) SetGroupNameNic(groupNameNic *string) { 427 o.GroupNameNic = groupNameNic 428 } 429 430 // WithGroupNameNie adds the groupNameNie to the extras custom links list params 431 func (o *ExtrasCustomLinksListParams) WithGroupNameNie(groupNameNie *string) *ExtrasCustomLinksListParams { 432 o.SetGroupNameNie(groupNameNie) 433 return o 434 } 435 436 // SetGroupNameNie adds the groupNameNie to the extras custom links list params 437 func (o *ExtrasCustomLinksListParams) SetGroupNameNie(groupNameNie *string) { 438 o.GroupNameNie = groupNameNie 439 } 440 441 // WithGroupNameNiew adds the groupNameNiew to the extras custom links list params 442 func (o *ExtrasCustomLinksListParams) WithGroupNameNiew(groupNameNiew *string) *ExtrasCustomLinksListParams { 443 o.SetGroupNameNiew(groupNameNiew) 444 return o 445 } 446 447 // SetGroupNameNiew adds the groupNameNiew to the extras custom links list params 448 func (o *ExtrasCustomLinksListParams) SetGroupNameNiew(groupNameNiew *string) { 449 o.GroupNameNiew = groupNameNiew 450 } 451 452 // WithGroupNameNisw adds the groupNameNisw to the extras custom links list params 453 func (o *ExtrasCustomLinksListParams) WithGroupNameNisw(groupNameNisw *string) *ExtrasCustomLinksListParams { 454 o.SetGroupNameNisw(groupNameNisw) 455 return o 456 } 457 458 // SetGroupNameNisw adds the groupNameNisw to the extras custom links list params 459 func (o *ExtrasCustomLinksListParams) SetGroupNameNisw(groupNameNisw *string) { 460 o.GroupNameNisw = groupNameNisw 461 } 462 463 // WithID adds the id to the extras custom links list params 464 func (o *ExtrasCustomLinksListParams) WithID(id *string) *ExtrasCustomLinksListParams { 465 o.SetID(id) 466 return o 467 } 468 469 // SetID adds the id to the extras custom links list params 470 func (o *ExtrasCustomLinksListParams) SetID(id *string) { 471 o.ID = id 472 } 473 474 // WithIDGt adds the iDGt to the extras custom links list params 475 func (o *ExtrasCustomLinksListParams) WithIDGt(iDGt *string) *ExtrasCustomLinksListParams { 476 o.SetIDGt(iDGt) 477 return o 478 } 479 480 // SetIDGt adds the idGt to the extras custom links list params 481 func (o *ExtrasCustomLinksListParams) SetIDGt(iDGt *string) { 482 o.IDGt = iDGt 483 } 484 485 // WithIDGte adds the iDGte to the extras custom links list params 486 func (o *ExtrasCustomLinksListParams) WithIDGte(iDGte *string) *ExtrasCustomLinksListParams { 487 o.SetIDGte(iDGte) 488 return o 489 } 490 491 // SetIDGte adds the idGte to the extras custom links list params 492 func (o *ExtrasCustomLinksListParams) SetIDGte(iDGte *string) { 493 o.IDGte = iDGte 494 } 495 496 // WithIDLt adds the iDLt to the extras custom links list params 497 func (o *ExtrasCustomLinksListParams) WithIDLt(iDLt *string) *ExtrasCustomLinksListParams { 498 o.SetIDLt(iDLt) 499 return o 500 } 501 502 // SetIDLt adds the idLt to the extras custom links list params 503 func (o *ExtrasCustomLinksListParams) SetIDLt(iDLt *string) { 504 o.IDLt = iDLt 505 } 506 507 // WithIDLte adds the iDLte to the extras custom links list params 508 func (o *ExtrasCustomLinksListParams) WithIDLte(iDLte *string) *ExtrasCustomLinksListParams { 509 o.SetIDLte(iDLte) 510 return o 511 } 512 513 // SetIDLte adds the idLte to the extras custom links list params 514 func (o *ExtrasCustomLinksListParams) SetIDLte(iDLte *string) { 515 o.IDLte = iDLte 516 } 517 518 // WithIDn adds the iDn to the extras custom links list params 519 func (o *ExtrasCustomLinksListParams) WithIDn(iDn *string) *ExtrasCustomLinksListParams { 520 o.SetIDn(iDn) 521 return o 522 } 523 524 // SetIDn adds the idN to the extras custom links list params 525 func (o *ExtrasCustomLinksListParams) SetIDn(iDn *string) { 526 o.IDn = iDn 527 } 528 529 // WithLimit adds the limit to the extras custom links list params 530 func (o *ExtrasCustomLinksListParams) WithLimit(limit *int64) *ExtrasCustomLinksListParams { 531 o.SetLimit(limit) 532 return o 533 } 534 535 // SetLimit adds the limit to the extras custom links list params 536 func (o *ExtrasCustomLinksListParams) SetLimit(limit *int64) { 537 o.Limit = limit 538 } 539 540 // WithLinkText adds the linkText to the extras custom links list params 541 func (o *ExtrasCustomLinksListParams) WithLinkText(linkText *string) *ExtrasCustomLinksListParams { 542 o.SetLinkText(linkText) 543 return o 544 } 545 546 // SetLinkText adds the linkText to the extras custom links list params 547 func (o *ExtrasCustomLinksListParams) SetLinkText(linkText *string) { 548 o.LinkText = linkText 549 } 550 551 // WithLinkTextEmpty adds the linkTextEmpty to the extras custom links list params 552 func (o *ExtrasCustomLinksListParams) WithLinkTextEmpty(linkTextEmpty *string) *ExtrasCustomLinksListParams { 553 o.SetLinkTextEmpty(linkTextEmpty) 554 return o 555 } 556 557 // SetLinkTextEmpty adds the linkTextEmpty to the extras custom links list params 558 func (o *ExtrasCustomLinksListParams) SetLinkTextEmpty(linkTextEmpty *string) { 559 o.LinkTextEmpty = linkTextEmpty 560 } 561 562 // WithLinkTextIc adds the linkTextIc to the extras custom links list params 563 func (o *ExtrasCustomLinksListParams) WithLinkTextIc(linkTextIc *string) *ExtrasCustomLinksListParams { 564 o.SetLinkTextIc(linkTextIc) 565 return o 566 } 567 568 // SetLinkTextIc adds the linkTextIc to the extras custom links list params 569 func (o *ExtrasCustomLinksListParams) SetLinkTextIc(linkTextIc *string) { 570 o.LinkTextIc = linkTextIc 571 } 572 573 // WithLinkTextIe adds the linkTextIe to the extras custom links list params 574 func (o *ExtrasCustomLinksListParams) WithLinkTextIe(linkTextIe *string) *ExtrasCustomLinksListParams { 575 o.SetLinkTextIe(linkTextIe) 576 return o 577 } 578 579 // SetLinkTextIe adds the linkTextIe to the extras custom links list params 580 func (o *ExtrasCustomLinksListParams) SetLinkTextIe(linkTextIe *string) { 581 o.LinkTextIe = linkTextIe 582 } 583 584 // WithLinkTextIew adds the linkTextIew to the extras custom links list params 585 func (o *ExtrasCustomLinksListParams) WithLinkTextIew(linkTextIew *string) *ExtrasCustomLinksListParams { 586 o.SetLinkTextIew(linkTextIew) 587 return o 588 } 589 590 // SetLinkTextIew adds the linkTextIew to the extras custom links list params 591 func (o *ExtrasCustomLinksListParams) SetLinkTextIew(linkTextIew *string) { 592 o.LinkTextIew = linkTextIew 593 } 594 595 // WithLinkTextIsw adds the linkTextIsw to the extras custom links list params 596 func (o *ExtrasCustomLinksListParams) WithLinkTextIsw(linkTextIsw *string) *ExtrasCustomLinksListParams { 597 o.SetLinkTextIsw(linkTextIsw) 598 return o 599 } 600 601 // SetLinkTextIsw adds the linkTextIsw to the extras custom links list params 602 func (o *ExtrasCustomLinksListParams) SetLinkTextIsw(linkTextIsw *string) { 603 o.LinkTextIsw = linkTextIsw 604 } 605 606 // WithLinkTextn adds the linkTextn to the extras custom links list params 607 func (o *ExtrasCustomLinksListParams) WithLinkTextn(linkTextn *string) *ExtrasCustomLinksListParams { 608 o.SetLinkTextn(linkTextn) 609 return o 610 } 611 612 // SetLinkTextn adds the linkTextN to the extras custom links list params 613 func (o *ExtrasCustomLinksListParams) SetLinkTextn(linkTextn *string) { 614 o.LinkTextn = linkTextn 615 } 616 617 // WithLinkTextNic adds the linkTextNic to the extras custom links list params 618 func (o *ExtrasCustomLinksListParams) WithLinkTextNic(linkTextNic *string) *ExtrasCustomLinksListParams { 619 o.SetLinkTextNic(linkTextNic) 620 return o 621 } 622 623 // SetLinkTextNic adds the linkTextNic to the extras custom links list params 624 func (o *ExtrasCustomLinksListParams) SetLinkTextNic(linkTextNic *string) { 625 o.LinkTextNic = linkTextNic 626 } 627 628 // WithLinkTextNie adds the linkTextNie to the extras custom links list params 629 func (o *ExtrasCustomLinksListParams) WithLinkTextNie(linkTextNie *string) *ExtrasCustomLinksListParams { 630 o.SetLinkTextNie(linkTextNie) 631 return o 632 } 633 634 // SetLinkTextNie adds the linkTextNie to the extras custom links list params 635 func (o *ExtrasCustomLinksListParams) SetLinkTextNie(linkTextNie *string) { 636 o.LinkTextNie = linkTextNie 637 } 638 639 // WithLinkTextNiew adds the linkTextNiew to the extras custom links list params 640 func (o *ExtrasCustomLinksListParams) WithLinkTextNiew(linkTextNiew *string) *ExtrasCustomLinksListParams { 641 o.SetLinkTextNiew(linkTextNiew) 642 return o 643 } 644 645 // SetLinkTextNiew adds the linkTextNiew to the extras custom links list params 646 func (o *ExtrasCustomLinksListParams) SetLinkTextNiew(linkTextNiew *string) { 647 o.LinkTextNiew = linkTextNiew 648 } 649 650 // WithLinkTextNisw adds the linkTextNisw to the extras custom links list params 651 func (o *ExtrasCustomLinksListParams) WithLinkTextNisw(linkTextNisw *string) *ExtrasCustomLinksListParams { 652 o.SetLinkTextNisw(linkTextNisw) 653 return o 654 } 655 656 // SetLinkTextNisw adds the linkTextNisw to the extras custom links list params 657 func (o *ExtrasCustomLinksListParams) SetLinkTextNisw(linkTextNisw *string) { 658 o.LinkTextNisw = linkTextNisw 659 } 660 661 // WithLinkURL adds the linkURL to the extras custom links list params 662 func (o *ExtrasCustomLinksListParams) WithLinkURL(linkURL *string) *ExtrasCustomLinksListParams { 663 o.SetLinkURL(linkURL) 664 return o 665 } 666 667 // SetLinkURL adds the linkUrl to the extras custom links list params 668 func (o *ExtrasCustomLinksListParams) SetLinkURL(linkURL *string) { 669 o.LinkURL = linkURL 670 } 671 672 // WithLinkURLEmpty adds the linkURLEmpty to the extras custom links list params 673 func (o *ExtrasCustomLinksListParams) WithLinkURLEmpty(linkURLEmpty *string) *ExtrasCustomLinksListParams { 674 o.SetLinkURLEmpty(linkURLEmpty) 675 return o 676 } 677 678 // SetLinkURLEmpty adds the linkUrlEmpty to the extras custom links list params 679 func (o *ExtrasCustomLinksListParams) SetLinkURLEmpty(linkURLEmpty *string) { 680 o.LinkURLEmpty = linkURLEmpty 681 } 682 683 // WithLinkURLIc adds the linkURLIc to the extras custom links list params 684 func (o *ExtrasCustomLinksListParams) WithLinkURLIc(linkURLIc *string) *ExtrasCustomLinksListParams { 685 o.SetLinkURLIc(linkURLIc) 686 return o 687 } 688 689 // SetLinkURLIc adds the linkUrlIc to the extras custom links list params 690 func (o *ExtrasCustomLinksListParams) SetLinkURLIc(linkURLIc *string) { 691 o.LinkURLIc = linkURLIc 692 } 693 694 // WithLinkURLIe adds the linkURLIe to the extras custom links list params 695 func (o *ExtrasCustomLinksListParams) WithLinkURLIe(linkURLIe *string) *ExtrasCustomLinksListParams { 696 o.SetLinkURLIe(linkURLIe) 697 return o 698 } 699 700 // SetLinkURLIe adds the linkUrlIe to the extras custom links list params 701 func (o *ExtrasCustomLinksListParams) SetLinkURLIe(linkURLIe *string) { 702 o.LinkURLIe = linkURLIe 703 } 704 705 // WithLinkURLIew adds the linkURLIew to the extras custom links list params 706 func (o *ExtrasCustomLinksListParams) WithLinkURLIew(linkURLIew *string) *ExtrasCustomLinksListParams { 707 o.SetLinkURLIew(linkURLIew) 708 return o 709 } 710 711 // SetLinkURLIew adds the linkUrlIew to the extras custom links list params 712 func (o *ExtrasCustomLinksListParams) SetLinkURLIew(linkURLIew *string) { 713 o.LinkURLIew = linkURLIew 714 } 715 716 // WithLinkURLIsw adds the linkURLIsw to the extras custom links list params 717 func (o *ExtrasCustomLinksListParams) WithLinkURLIsw(linkURLIsw *string) *ExtrasCustomLinksListParams { 718 o.SetLinkURLIsw(linkURLIsw) 719 return o 720 } 721 722 // SetLinkURLIsw adds the linkUrlIsw to the extras custom links list params 723 func (o *ExtrasCustomLinksListParams) SetLinkURLIsw(linkURLIsw *string) { 724 o.LinkURLIsw = linkURLIsw 725 } 726 727 // WithLinkURLn adds the linkURLn to the extras custom links list params 728 func (o *ExtrasCustomLinksListParams) WithLinkURLn(linkURLn *string) *ExtrasCustomLinksListParams { 729 o.SetLinkURLn(linkURLn) 730 return o 731 } 732 733 // SetLinkURLn adds the linkUrlN to the extras custom links list params 734 func (o *ExtrasCustomLinksListParams) SetLinkURLn(linkURLn *string) { 735 o.LinkURLn = linkURLn 736 } 737 738 // WithLinkURLNic adds the linkURLNic to the extras custom links list params 739 func (o *ExtrasCustomLinksListParams) WithLinkURLNic(linkURLNic *string) *ExtrasCustomLinksListParams { 740 o.SetLinkURLNic(linkURLNic) 741 return o 742 } 743 744 // SetLinkURLNic adds the linkUrlNic to the extras custom links list params 745 func (o *ExtrasCustomLinksListParams) SetLinkURLNic(linkURLNic *string) { 746 o.LinkURLNic = linkURLNic 747 } 748 749 // WithLinkURLNie adds the linkURLNie to the extras custom links list params 750 func (o *ExtrasCustomLinksListParams) WithLinkURLNie(linkURLNie *string) *ExtrasCustomLinksListParams { 751 o.SetLinkURLNie(linkURLNie) 752 return o 753 } 754 755 // SetLinkURLNie adds the linkUrlNie to the extras custom links list params 756 func (o *ExtrasCustomLinksListParams) SetLinkURLNie(linkURLNie *string) { 757 o.LinkURLNie = linkURLNie 758 } 759 760 // WithLinkURLNiew adds the linkURLNiew to the extras custom links list params 761 func (o *ExtrasCustomLinksListParams) WithLinkURLNiew(linkURLNiew *string) *ExtrasCustomLinksListParams { 762 o.SetLinkURLNiew(linkURLNiew) 763 return o 764 } 765 766 // SetLinkURLNiew adds the linkUrlNiew to the extras custom links list params 767 func (o *ExtrasCustomLinksListParams) SetLinkURLNiew(linkURLNiew *string) { 768 o.LinkURLNiew = linkURLNiew 769 } 770 771 // WithLinkURLNisw adds the linkURLNisw to the extras custom links list params 772 func (o *ExtrasCustomLinksListParams) WithLinkURLNisw(linkURLNisw *string) *ExtrasCustomLinksListParams { 773 o.SetLinkURLNisw(linkURLNisw) 774 return o 775 } 776 777 // SetLinkURLNisw adds the linkUrlNisw to the extras custom links list params 778 func (o *ExtrasCustomLinksListParams) SetLinkURLNisw(linkURLNisw *string) { 779 o.LinkURLNisw = linkURLNisw 780 } 781 782 // WithName adds the name to the extras custom links list params 783 func (o *ExtrasCustomLinksListParams) WithName(name *string) *ExtrasCustomLinksListParams { 784 o.SetName(name) 785 return o 786 } 787 788 // SetName adds the name to the extras custom links list params 789 func (o *ExtrasCustomLinksListParams) SetName(name *string) { 790 o.Name = name 791 } 792 793 // WithNameEmpty adds the nameEmpty to the extras custom links list params 794 func (o *ExtrasCustomLinksListParams) WithNameEmpty(nameEmpty *string) *ExtrasCustomLinksListParams { 795 o.SetNameEmpty(nameEmpty) 796 return o 797 } 798 799 // SetNameEmpty adds the nameEmpty to the extras custom links list params 800 func (o *ExtrasCustomLinksListParams) SetNameEmpty(nameEmpty *string) { 801 o.NameEmpty = nameEmpty 802 } 803 804 // WithNameIc adds the nameIc to the extras custom links list params 805 func (o *ExtrasCustomLinksListParams) WithNameIc(nameIc *string) *ExtrasCustomLinksListParams { 806 o.SetNameIc(nameIc) 807 return o 808 } 809 810 // SetNameIc adds the nameIc to the extras custom links list params 811 func (o *ExtrasCustomLinksListParams) SetNameIc(nameIc *string) { 812 o.NameIc = nameIc 813 } 814 815 // WithNameIe adds the nameIe to the extras custom links list params 816 func (o *ExtrasCustomLinksListParams) WithNameIe(nameIe *string) *ExtrasCustomLinksListParams { 817 o.SetNameIe(nameIe) 818 return o 819 } 820 821 // SetNameIe adds the nameIe to the extras custom links list params 822 func (o *ExtrasCustomLinksListParams) SetNameIe(nameIe *string) { 823 o.NameIe = nameIe 824 } 825 826 // WithNameIew adds the nameIew to the extras custom links list params 827 func (o *ExtrasCustomLinksListParams) WithNameIew(nameIew *string) *ExtrasCustomLinksListParams { 828 o.SetNameIew(nameIew) 829 return o 830 } 831 832 // SetNameIew adds the nameIew to the extras custom links list params 833 func (o *ExtrasCustomLinksListParams) SetNameIew(nameIew *string) { 834 o.NameIew = nameIew 835 } 836 837 // WithNameIsw adds the nameIsw to the extras custom links list params 838 func (o *ExtrasCustomLinksListParams) WithNameIsw(nameIsw *string) *ExtrasCustomLinksListParams { 839 o.SetNameIsw(nameIsw) 840 return o 841 } 842 843 // SetNameIsw adds the nameIsw to the extras custom links list params 844 func (o *ExtrasCustomLinksListParams) SetNameIsw(nameIsw *string) { 845 o.NameIsw = nameIsw 846 } 847 848 // WithNamen adds the namen to the extras custom links list params 849 func (o *ExtrasCustomLinksListParams) WithNamen(namen *string) *ExtrasCustomLinksListParams { 850 o.SetNamen(namen) 851 return o 852 } 853 854 // SetNamen adds the nameN to the extras custom links list params 855 func (o *ExtrasCustomLinksListParams) SetNamen(namen *string) { 856 o.Namen = namen 857 } 858 859 // WithNameNic adds the nameNic to the extras custom links list params 860 func (o *ExtrasCustomLinksListParams) WithNameNic(nameNic *string) *ExtrasCustomLinksListParams { 861 o.SetNameNic(nameNic) 862 return o 863 } 864 865 // SetNameNic adds the nameNic to the extras custom links list params 866 func (o *ExtrasCustomLinksListParams) SetNameNic(nameNic *string) { 867 o.NameNic = nameNic 868 } 869 870 // WithNameNie adds the nameNie to the extras custom links list params 871 func (o *ExtrasCustomLinksListParams) WithNameNie(nameNie *string) *ExtrasCustomLinksListParams { 872 o.SetNameNie(nameNie) 873 return o 874 } 875 876 // SetNameNie adds the nameNie to the extras custom links list params 877 func (o *ExtrasCustomLinksListParams) SetNameNie(nameNie *string) { 878 o.NameNie = nameNie 879 } 880 881 // WithNameNiew adds the nameNiew to the extras custom links list params 882 func (o *ExtrasCustomLinksListParams) WithNameNiew(nameNiew *string) *ExtrasCustomLinksListParams { 883 o.SetNameNiew(nameNiew) 884 return o 885 } 886 887 // SetNameNiew adds the nameNiew to the extras custom links list params 888 func (o *ExtrasCustomLinksListParams) SetNameNiew(nameNiew *string) { 889 o.NameNiew = nameNiew 890 } 891 892 // WithNameNisw adds the nameNisw to the extras custom links list params 893 func (o *ExtrasCustomLinksListParams) WithNameNisw(nameNisw *string) *ExtrasCustomLinksListParams { 894 o.SetNameNisw(nameNisw) 895 return o 896 } 897 898 // SetNameNisw adds the nameNisw to the extras custom links list params 899 func (o *ExtrasCustomLinksListParams) SetNameNisw(nameNisw *string) { 900 o.NameNisw = nameNisw 901 } 902 903 // WithNewWindow adds the newWindow to the extras custom links list params 904 func (o *ExtrasCustomLinksListParams) WithNewWindow(newWindow *string) *ExtrasCustomLinksListParams { 905 o.SetNewWindow(newWindow) 906 return o 907 } 908 909 // SetNewWindow adds the newWindow to the extras custom links list params 910 func (o *ExtrasCustomLinksListParams) SetNewWindow(newWindow *string) { 911 o.NewWindow = newWindow 912 } 913 914 // WithOffset adds the offset to the extras custom links list params 915 func (o *ExtrasCustomLinksListParams) WithOffset(offset *int64) *ExtrasCustomLinksListParams { 916 o.SetOffset(offset) 917 return o 918 } 919 920 // SetOffset adds the offset to the extras custom links list params 921 func (o *ExtrasCustomLinksListParams) SetOffset(offset *int64) { 922 o.Offset = offset 923 } 924 925 // WithWeight adds the weight to the extras custom links list params 926 func (o *ExtrasCustomLinksListParams) WithWeight(weight *string) *ExtrasCustomLinksListParams { 927 o.SetWeight(weight) 928 return o 929 } 930 931 // SetWeight adds the weight to the extras custom links list params 932 func (o *ExtrasCustomLinksListParams) SetWeight(weight *string) { 933 o.Weight = weight 934 } 935 936 // WithWeightGt adds the weightGt to the extras custom links list params 937 func (o *ExtrasCustomLinksListParams) WithWeightGt(weightGt *string) *ExtrasCustomLinksListParams { 938 o.SetWeightGt(weightGt) 939 return o 940 } 941 942 // SetWeightGt adds the weightGt to the extras custom links list params 943 func (o *ExtrasCustomLinksListParams) SetWeightGt(weightGt *string) { 944 o.WeightGt = weightGt 945 } 946 947 // WithWeightGte adds the weightGte to the extras custom links list params 948 func (o *ExtrasCustomLinksListParams) WithWeightGte(weightGte *string) *ExtrasCustomLinksListParams { 949 o.SetWeightGte(weightGte) 950 return o 951 } 952 953 // SetWeightGte adds the weightGte to the extras custom links list params 954 func (o *ExtrasCustomLinksListParams) SetWeightGte(weightGte *string) { 955 o.WeightGte = weightGte 956 } 957 958 // WithWeightLt adds the weightLt to the extras custom links list params 959 func (o *ExtrasCustomLinksListParams) WithWeightLt(weightLt *string) *ExtrasCustomLinksListParams { 960 o.SetWeightLt(weightLt) 961 return o 962 } 963 964 // SetWeightLt adds the weightLt to the extras custom links list params 965 func (o *ExtrasCustomLinksListParams) SetWeightLt(weightLt *string) { 966 o.WeightLt = weightLt 967 } 968 969 // WithWeightLte adds the weightLte to the extras custom links list params 970 func (o *ExtrasCustomLinksListParams) WithWeightLte(weightLte *string) *ExtrasCustomLinksListParams { 971 o.SetWeightLte(weightLte) 972 return o 973 } 974 975 // SetWeightLte adds the weightLte to the extras custom links list params 976 func (o *ExtrasCustomLinksListParams) SetWeightLte(weightLte *string) { 977 o.WeightLte = weightLte 978 } 979 980 // WithWeightn adds the weightn to the extras custom links list params 981 func (o *ExtrasCustomLinksListParams) WithWeightn(weightn *string) *ExtrasCustomLinksListParams { 982 o.SetWeightn(weightn) 983 return o 984 } 985 986 // SetWeightn adds the weightN to the extras custom links list params 987 func (o *ExtrasCustomLinksListParams) SetWeightn(weightn *string) { 988 o.Weightn = weightn 989 } 990 991 // WriteToRequest writes these params to a swagger request 992 func (o *ExtrasCustomLinksListParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { 993 994 if err := r.SetTimeout(o.timeout); err != nil { 995 return err 996 } 997 var res []error 998 999 if o.ContentType != nil { 1000 1001 // query param content_type 1002 var qrContentType string 1003 1004 if o.ContentType != nil { 1005 qrContentType = *o.ContentType 1006 } 1007 qContentType := qrContentType 1008 if qContentType != "" { 1009 1010 if err := r.SetQueryParam("content_type", qContentType); err != nil { 1011 return err 1012 } 1013 } 1014 } 1015 1016 if o.ContentTypen != nil { 1017 1018 // query param content_type__n 1019 var qrContentTypen string 1020 1021 if o.ContentTypen != nil { 1022 qrContentTypen = *o.ContentTypen 1023 } 1024 qContentTypen := qrContentTypen 1025 if qContentTypen != "" { 1026 1027 if err := r.SetQueryParam("content_type__n", qContentTypen); err != nil { 1028 return err 1029 } 1030 } 1031 } 1032 1033 if o.GroupName != nil { 1034 1035 // query param group_name 1036 var qrGroupName string 1037 1038 if o.GroupName != nil { 1039 qrGroupName = *o.GroupName 1040 } 1041 qGroupName := qrGroupName 1042 if qGroupName != "" { 1043 1044 if err := r.SetQueryParam("group_name", qGroupName); err != nil { 1045 return err 1046 } 1047 } 1048 } 1049 1050 if o.GroupNameEmpty != nil { 1051 1052 // query param group_name__empty 1053 var qrGroupNameEmpty string 1054 1055 if o.GroupNameEmpty != nil { 1056 qrGroupNameEmpty = *o.GroupNameEmpty 1057 } 1058 qGroupNameEmpty := qrGroupNameEmpty 1059 if qGroupNameEmpty != "" { 1060 1061 if err := r.SetQueryParam("group_name__empty", qGroupNameEmpty); err != nil { 1062 return err 1063 } 1064 } 1065 } 1066 1067 if o.GroupNameIc != nil { 1068 1069 // query param group_name__ic 1070 var qrGroupNameIc string 1071 1072 if o.GroupNameIc != nil { 1073 qrGroupNameIc = *o.GroupNameIc 1074 } 1075 qGroupNameIc := qrGroupNameIc 1076 if qGroupNameIc != "" { 1077 1078 if err := r.SetQueryParam("group_name__ic", qGroupNameIc); err != nil { 1079 return err 1080 } 1081 } 1082 } 1083 1084 if o.GroupNameIe != nil { 1085 1086 // query param group_name__ie 1087 var qrGroupNameIe string 1088 1089 if o.GroupNameIe != nil { 1090 qrGroupNameIe = *o.GroupNameIe 1091 } 1092 qGroupNameIe := qrGroupNameIe 1093 if qGroupNameIe != "" { 1094 1095 if err := r.SetQueryParam("group_name__ie", qGroupNameIe); err != nil { 1096 return err 1097 } 1098 } 1099 } 1100 1101 if o.GroupNameIew != nil { 1102 1103 // query param group_name__iew 1104 var qrGroupNameIew string 1105 1106 if o.GroupNameIew != nil { 1107 qrGroupNameIew = *o.GroupNameIew 1108 } 1109 qGroupNameIew := qrGroupNameIew 1110 if qGroupNameIew != "" { 1111 1112 if err := r.SetQueryParam("group_name__iew", qGroupNameIew); err != nil { 1113 return err 1114 } 1115 } 1116 } 1117 1118 if o.GroupNameIsw != nil { 1119 1120 // query param group_name__isw 1121 var qrGroupNameIsw string 1122 1123 if o.GroupNameIsw != nil { 1124 qrGroupNameIsw = *o.GroupNameIsw 1125 } 1126 qGroupNameIsw := qrGroupNameIsw 1127 if qGroupNameIsw != "" { 1128 1129 if err := r.SetQueryParam("group_name__isw", qGroupNameIsw); err != nil { 1130 return err 1131 } 1132 } 1133 } 1134 1135 if o.GroupNamen != nil { 1136 1137 // query param group_name__n 1138 var qrGroupNamen string 1139 1140 if o.GroupNamen != nil { 1141 qrGroupNamen = *o.GroupNamen 1142 } 1143 qGroupNamen := qrGroupNamen 1144 if qGroupNamen != "" { 1145 1146 if err := r.SetQueryParam("group_name__n", qGroupNamen); err != nil { 1147 return err 1148 } 1149 } 1150 } 1151 1152 if o.GroupNameNic != nil { 1153 1154 // query param group_name__nic 1155 var qrGroupNameNic string 1156 1157 if o.GroupNameNic != nil { 1158 qrGroupNameNic = *o.GroupNameNic 1159 } 1160 qGroupNameNic := qrGroupNameNic 1161 if qGroupNameNic != "" { 1162 1163 if err := r.SetQueryParam("group_name__nic", qGroupNameNic); err != nil { 1164 return err 1165 } 1166 } 1167 } 1168 1169 if o.GroupNameNie != nil { 1170 1171 // query param group_name__nie 1172 var qrGroupNameNie string 1173 1174 if o.GroupNameNie != nil { 1175 qrGroupNameNie = *o.GroupNameNie 1176 } 1177 qGroupNameNie := qrGroupNameNie 1178 if qGroupNameNie != "" { 1179 1180 if err := r.SetQueryParam("group_name__nie", qGroupNameNie); err != nil { 1181 return err 1182 } 1183 } 1184 } 1185 1186 if o.GroupNameNiew != nil { 1187 1188 // query param group_name__niew 1189 var qrGroupNameNiew string 1190 1191 if o.GroupNameNiew != nil { 1192 qrGroupNameNiew = *o.GroupNameNiew 1193 } 1194 qGroupNameNiew := qrGroupNameNiew 1195 if qGroupNameNiew != "" { 1196 1197 if err := r.SetQueryParam("group_name__niew", qGroupNameNiew); err != nil { 1198 return err 1199 } 1200 } 1201 } 1202 1203 if o.GroupNameNisw != nil { 1204 1205 // query param group_name__nisw 1206 var qrGroupNameNisw string 1207 1208 if o.GroupNameNisw != nil { 1209 qrGroupNameNisw = *o.GroupNameNisw 1210 } 1211 qGroupNameNisw := qrGroupNameNisw 1212 if qGroupNameNisw != "" { 1213 1214 if err := r.SetQueryParam("group_name__nisw", qGroupNameNisw); err != nil { 1215 return err 1216 } 1217 } 1218 } 1219 1220 if o.ID != nil { 1221 1222 // query param id 1223 var qrID string 1224 1225 if o.ID != nil { 1226 qrID = *o.ID 1227 } 1228 qID := qrID 1229 if qID != "" { 1230 1231 if err := r.SetQueryParam("id", qID); err != nil { 1232 return err 1233 } 1234 } 1235 } 1236 1237 if o.IDGt != nil { 1238 1239 // query param id__gt 1240 var qrIDGt string 1241 1242 if o.IDGt != nil { 1243 qrIDGt = *o.IDGt 1244 } 1245 qIDGt := qrIDGt 1246 if qIDGt != "" { 1247 1248 if err := r.SetQueryParam("id__gt", qIDGt); err != nil { 1249 return err 1250 } 1251 } 1252 } 1253 1254 if o.IDGte != nil { 1255 1256 // query param id__gte 1257 var qrIDGte string 1258 1259 if o.IDGte != nil { 1260 qrIDGte = *o.IDGte 1261 } 1262 qIDGte := qrIDGte 1263 if qIDGte != "" { 1264 1265 if err := r.SetQueryParam("id__gte", qIDGte); err != nil { 1266 return err 1267 } 1268 } 1269 } 1270 1271 if o.IDLt != nil { 1272 1273 // query param id__lt 1274 var qrIDLt string 1275 1276 if o.IDLt != nil { 1277 qrIDLt = *o.IDLt 1278 } 1279 qIDLt := qrIDLt 1280 if qIDLt != "" { 1281 1282 if err := r.SetQueryParam("id__lt", qIDLt); err != nil { 1283 return err 1284 } 1285 } 1286 } 1287 1288 if o.IDLte != nil { 1289 1290 // query param id__lte 1291 var qrIDLte string 1292 1293 if o.IDLte != nil { 1294 qrIDLte = *o.IDLte 1295 } 1296 qIDLte := qrIDLte 1297 if qIDLte != "" { 1298 1299 if err := r.SetQueryParam("id__lte", qIDLte); err != nil { 1300 return err 1301 } 1302 } 1303 } 1304 1305 if o.IDn != nil { 1306 1307 // query param id__n 1308 var qrIDn string 1309 1310 if o.IDn != nil { 1311 qrIDn = *o.IDn 1312 } 1313 qIDn := qrIDn 1314 if qIDn != "" { 1315 1316 if err := r.SetQueryParam("id__n", qIDn); err != nil { 1317 return err 1318 } 1319 } 1320 } 1321 1322 if o.Limit != nil { 1323 1324 // query param limit 1325 var qrLimit int64 1326 1327 if o.Limit != nil { 1328 qrLimit = *o.Limit 1329 } 1330 qLimit := swag.FormatInt64(qrLimit) 1331 if qLimit != "" { 1332 1333 if err := r.SetQueryParam("limit", qLimit); err != nil { 1334 return err 1335 } 1336 } 1337 } 1338 1339 if o.LinkText != nil { 1340 1341 // query param link_text 1342 var qrLinkText string 1343 1344 if o.LinkText != nil { 1345 qrLinkText = *o.LinkText 1346 } 1347 qLinkText := qrLinkText 1348 if qLinkText != "" { 1349 1350 if err := r.SetQueryParam("link_text", qLinkText); err != nil { 1351 return err 1352 } 1353 } 1354 } 1355 1356 if o.LinkTextEmpty != nil { 1357 1358 // query param link_text__empty 1359 var qrLinkTextEmpty string 1360 1361 if o.LinkTextEmpty != nil { 1362 qrLinkTextEmpty = *o.LinkTextEmpty 1363 } 1364 qLinkTextEmpty := qrLinkTextEmpty 1365 if qLinkTextEmpty != "" { 1366 1367 if err := r.SetQueryParam("link_text__empty", qLinkTextEmpty); err != nil { 1368 return err 1369 } 1370 } 1371 } 1372 1373 if o.LinkTextIc != nil { 1374 1375 // query param link_text__ic 1376 var qrLinkTextIc string 1377 1378 if o.LinkTextIc != nil { 1379 qrLinkTextIc = *o.LinkTextIc 1380 } 1381 qLinkTextIc := qrLinkTextIc 1382 if qLinkTextIc != "" { 1383 1384 if err := r.SetQueryParam("link_text__ic", qLinkTextIc); err != nil { 1385 return err 1386 } 1387 } 1388 } 1389 1390 if o.LinkTextIe != nil { 1391 1392 // query param link_text__ie 1393 var qrLinkTextIe string 1394 1395 if o.LinkTextIe != nil { 1396 qrLinkTextIe = *o.LinkTextIe 1397 } 1398 qLinkTextIe := qrLinkTextIe 1399 if qLinkTextIe != "" { 1400 1401 if err := r.SetQueryParam("link_text__ie", qLinkTextIe); err != nil { 1402 return err 1403 } 1404 } 1405 } 1406 1407 if o.LinkTextIew != nil { 1408 1409 // query param link_text__iew 1410 var qrLinkTextIew string 1411 1412 if o.LinkTextIew != nil { 1413 qrLinkTextIew = *o.LinkTextIew 1414 } 1415 qLinkTextIew := qrLinkTextIew 1416 if qLinkTextIew != "" { 1417 1418 if err := r.SetQueryParam("link_text__iew", qLinkTextIew); err != nil { 1419 return err 1420 } 1421 } 1422 } 1423 1424 if o.LinkTextIsw != nil { 1425 1426 // query param link_text__isw 1427 var qrLinkTextIsw string 1428 1429 if o.LinkTextIsw != nil { 1430 qrLinkTextIsw = *o.LinkTextIsw 1431 } 1432 qLinkTextIsw := qrLinkTextIsw 1433 if qLinkTextIsw != "" { 1434 1435 if err := r.SetQueryParam("link_text__isw", qLinkTextIsw); err != nil { 1436 return err 1437 } 1438 } 1439 } 1440 1441 if o.LinkTextn != nil { 1442 1443 // query param link_text__n 1444 var qrLinkTextn string 1445 1446 if o.LinkTextn != nil { 1447 qrLinkTextn = *o.LinkTextn 1448 } 1449 qLinkTextn := qrLinkTextn 1450 if qLinkTextn != "" { 1451 1452 if err := r.SetQueryParam("link_text__n", qLinkTextn); err != nil { 1453 return err 1454 } 1455 } 1456 } 1457 1458 if o.LinkTextNic != nil { 1459 1460 // query param link_text__nic 1461 var qrLinkTextNic string 1462 1463 if o.LinkTextNic != nil { 1464 qrLinkTextNic = *o.LinkTextNic 1465 } 1466 qLinkTextNic := qrLinkTextNic 1467 if qLinkTextNic != "" { 1468 1469 if err := r.SetQueryParam("link_text__nic", qLinkTextNic); err != nil { 1470 return err 1471 } 1472 } 1473 } 1474 1475 if o.LinkTextNie != nil { 1476 1477 // query param link_text__nie 1478 var qrLinkTextNie string 1479 1480 if o.LinkTextNie != nil { 1481 qrLinkTextNie = *o.LinkTextNie 1482 } 1483 qLinkTextNie := qrLinkTextNie 1484 if qLinkTextNie != "" { 1485 1486 if err := r.SetQueryParam("link_text__nie", qLinkTextNie); err != nil { 1487 return err 1488 } 1489 } 1490 } 1491 1492 if o.LinkTextNiew != nil { 1493 1494 // query param link_text__niew 1495 var qrLinkTextNiew string 1496 1497 if o.LinkTextNiew != nil { 1498 qrLinkTextNiew = *o.LinkTextNiew 1499 } 1500 qLinkTextNiew := qrLinkTextNiew 1501 if qLinkTextNiew != "" { 1502 1503 if err := r.SetQueryParam("link_text__niew", qLinkTextNiew); err != nil { 1504 return err 1505 } 1506 } 1507 } 1508 1509 if o.LinkTextNisw != nil { 1510 1511 // query param link_text__nisw 1512 var qrLinkTextNisw string 1513 1514 if o.LinkTextNisw != nil { 1515 qrLinkTextNisw = *o.LinkTextNisw 1516 } 1517 qLinkTextNisw := qrLinkTextNisw 1518 if qLinkTextNisw != "" { 1519 1520 if err := r.SetQueryParam("link_text__nisw", qLinkTextNisw); err != nil { 1521 return err 1522 } 1523 } 1524 } 1525 1526 if o.LinkURL != nil { 1527 1528 // query param link_url 1529 var qrLinkURL string 1530 1531 if o.LinkURL != nil { 1532 qrLinkURL = *o.LinkURL 1533 } 1534 qLinkURL := qrLinkURL 1535 if qLinkURL != "" { 1536 1537 if err := r.SetQueryParam("link_url", qLinkURL); err != nil { 1538 return err 1539 } 1540 } 1541 } 1542 1543 if o.LinkURLEmpty != nil { 1544 1545 // query param link_url__empty 1546 var qrLinkURLEmpty string 1547 1548 if o.LinkURLEmpty != nil { 1549 qrLinkURLEmpty = *o.LinkURLEmpty 1550 } 1551 qLinkURLEmpty := qrLinkURLEmpty 1552 if qLinkURLEmpty != "" { 1553 1554 if err := r.SetQueryParam("link_url__empty", qLinkURLEmpty); err != nil { 1555 return err 1556 } 1557 } 1558 } 1559 1560 if o.LinkURLIc != nil { 1561 1562 // query param link_url__ic 1563 var qrLinkURLIc string 1564 1565 if o.LinkURLIc != nil { 1566 qrLinkURLIc = *o.LinkURLIc 1567 } 1568 qLinkURLIc := qrLinkURLIc 1569 if qLinkURLIc != "" { 1570 1571 if err := r.SetQueryParam("link_url__ic", qLinkURLIc); err != nil { 1572 return err 1573 } 1574 } 1575 } 1576 1577 if o.LinkURLIe != nil { 1578 1579 // query param link_url__ie 1580 var qrLinkURLIe string 1581 1582 if o.LinkURLIe != nil { 1583 qrLinkURLIe = *o.LinkURLIe 1584 } 1585 qLinkURLIe := qrLinkURLIe 1586 if qLinkURLIe != "" { 1587 1588 if err := r.SetQueryParam("link_url__ie", qLinkURLIe); err != nil { 1589 return err 1590 } 1591 } 1592 } 1593 1594 if o.LinkURLIew != nil { 1595 1596 // query param link_url__iew 1597 var qrLinkURLIew string 1598 1599 if o.LinkURLIew != nil { 1600 qrLinkURLIew = *o.LinkURLIew 1601 } 1602 qLinkURLIew := qrLinkURLIew 1603 if qLinkURLIew != "" { 1604 1605 if err := r.SetQueryParam("link_url__iew", qLinkURLIew); err != nil { 1606 return err 1607 } 1608 } 1609 } 1610 1611 if o.LinkURLIsw != nil { 1612 1613 // query param link_url__isw 1614 var qrLinkURLIsw string 1615 1616 if o.LinkURLIsw != nil { 1617 qrLinkURLIsw = *o.LinkURLIsw 1618 } 1619 qLinkURLIsw := qrLinkURLIsw 1620 if qLinkURLIsw != "" { 1621 1622 if err := r.SetQueryParam("link_url__isw", qLinkURLIsw); err != nil { 1623 return err 1624 } 1625 } 1626 } 1627 1628 if o.LinkURLn != nil { 1629 1630 // query param link_url__n 1631 var qrLinkURLn string 1632 1633 if o.LinkURLn != nil { 1634 qrLinkURLn = *o.LinkURLn 1635 } 1636 qLinkURLn := qrLinkURLn 1637 if qLinkURLn != "" { 1638 1639 if err := r.SetQueryParam("link_url__n", qLinkURLn); err != nil { 1640 return err 1641 } 1642 } 1643 } 1644 1645 if o.LinkURLNic != nil { 1646 1647 // query param link_url__nic 1648 var qrLinkURLNic string 1649 1650 if o.LinkURLNic != nil { 1651 qrLinkURLNic = *o.LinkURLNic 1652 } 1653 qLinkURLNic := qrLinkURLNic 1654 if qLinkURLNic != "" { 1655 1656 if err := r.SetQueryParam("link_url__nic", qLinkURLNic); err != nil { 1657 return err 1658 } 1659 } 1660 } 1661 1662 if o.LinkURLNie != nil { 1663 1664 // query param link_url__nie 1665 var qrLinkURLNie string 1666 1667 if o.LinkURLNie != nil { 1668 qrLinkURLNie = *o.LinkURLNie 1669 } 1670 qLinkURLNie := qrLinkURLNie 1671 if qLinkURLNie != "" { 1672 1673 if err := r.SetQueryParam("link_url__nie", qLinkURLNie); err != nil { 1674 return err 1675 } 1676 } 1677 } 1678 1679 if o.LinkURLNiew != nil { 1680 1681 // query param link_url__niew 1682 var qrLinkURLNiew string 1683 1684 if o.LinkURLNiew != nil { 1685 qrLinkURLNiew = *o.LinkURLNiew 1686 } 1687 qLinkURLNiew := qrLinkURLNiew 1688 if qLinkURLNiew != "" { 1689 1690 if err := r.SetQueryParam("link_url__niew", qLinkURLNiew); err != nil { 1691 return err 1692 } 1693 } 1694 } 1695 1696 if o.LinkURLNisw != nil { 1697 1698 // query param link_url__nisw 1699 var qrLinkURLNisw string 1700 1701 if o.LinkURLNisw != nil { 1702 qrLinkURLNisw = *o.LinkURLNisw 1703 } 1704 qLinkURLNisw := qrLinkURLNisw 1705 if qLinkURLNisw != "" { 1706 1707 if err := r.SetQueryParam("link_url__nisw", qLinkURLNisw); err != nil { 1708 return err 1709 } 1710 } 1711 } 1712 1713 if o.Name != nil { 1714 1715 // query param name 1716 var qrName string 1717 1718 if o.Name != nil { 1719 qrName = *o.Name 1720 } 1721 qName := qrName 1722 if qName != "" { 1723 1724 if err := r.SetQueryParam("name", qName); err != nil { 1725 return err 1726 } 1727 } 1728 } 1729 1730 if o.NameEmpty != nil { 1731 1732 // query param name__empty 1733 var qrNameEmpty string 1734 1735 if o.NameEmpty != nil { 1736 qrNameEmpty = *o.NameEmpty 1737 } 1738 qNameEmpty := qrNameEmpty 1739 if qNameEmpty != "" { 1740 1741 if err := r.SetQueryParam("name__empty", qNameEmpty); err != nil { 1742 return err 1743 } 1744 } 1745 } 1746 1747 if o.NameIc != nil { 1748 1749 // query param name__ic 1750 var qrNameIc string 1751 1752 if o.NameIc != nil { 1753 qrNameIc = *o.NameIc 1754 } 1755 qNameIc := qrNameIc 1756 if qNameIc != "" { 1757 1758 if err := r.SetQueryParam("name__ic", qNameIc); err != nil { 1759 return err 1760 } 1761 } 1762 } 1763 1764 if o.NameIe != nil { 1765 1766 // query param name__ie 1767 var qrNameIe string 1768 1769 if o.NameIe != nil { 1770 qrNameIe = *o.NameIe 1771 } 1772 qNameIe := qrNameIe 1773 if qNameIe != "" { 1774 1775 if err := r.SetQueryParam("name__ie", qNameIe); err != nil { 1776 return err 1777 } 1778 } 1779 } 1780 1781 if o.NameIew != nil { 1782 1783 // query param name__iew 1784 var qrNameIew string 1785 1786 if o.NameIew != nil { 1787 qrNameIew = *o.NameIew 1788 } 1789 qNameIew := qrNameIew 1790 if qNameIew != "" { 1791 1792 if err := r.SetQueryParam("name__iew", qNameIew); err != nil { 1793 return err 1794 } 1795 } 1796 } 1797 1798 if o.NameIsw != nil { 1799 1800 // query param name__isw 1801 var qrNameIsw string 1802 1803 if o.NameIsw != nil { 1804 qrNameIsw = *o.NameIsw 1805 } 1806 qNameIsw := qrNameIsw 1807 if qNameIsw != "" { 1808 1809 if err := r.SetQueryParam("name__isw", qNameIsw); err != nil { 1810 return err 1811 } 1812 } 1813 } 1814 1815 if o.Namen != nil { 1816 1817 // query param name__n 1818 var qrNamen string 1819 1820 if o.Namen != nil { 1821 qrNamen = *o.Namen 1822 } 1823 qNamen := qrNamen 1824 if qNamen != "" { 1825 1826 if err := r.SetQueryParam("name__n", qNamen); err != nil { 1827 return err 1828 } 1829 } 1830 } 1831 1832 if o.NameNic != nil { 1833 1834 // query param name__nic 1835 var qrNameNic string 1836 1837 if o.NameNic != nil { 1838 qrNameNic = *o.NameNic 1839 } 1840 qNameNic := qrNameNic 1841 if qNameNic != "" { 1842 1843 if err := r.SetQueryParam("name__nic", qNameNic); err != nil { 1844 return err 1845 } 1846 } 1847 } 1848 1849 if o.NameNie != nil { 1850 1851 // query param name__nie 1852 var qrNameNie string 1853 1854 if o.NameNie != nil { 1855 qrNameNie = *o.NameNie 1856 } 1857 qNameNie := qrNameNie 1858 if qNameNie != "" { 1859 1860 if err := r.SetQueryParam("name__nie", qNameNie); err != nil { 1861 return err 1862 } 1863 } 1864 } 1865 1866 if o.NameNiew != nil { 1867 1868 // query param name__niew 1869 var qrNameNiew string 1870 1871 if o.NameNiew != nil { 1872 qrNameNiew = *o.NameNiew 1873 } 1874 qNameNiew := qrNameNiew 1875 if qNameNiew != "" { 1876 1877 if err := r.SetQueryParam("name__niew", qNameNiew); err != nil { 1878 return err 1879 } 1880 } 1881 } 1882 1883 if o.NameNisw != nil { 1884 1885 // query param name__nisw 1886 var qrNameNisw string 1887 1888 if o.NameNisw != nil { 1889 qrNameNisw = *o.NameNisw 1890 } 1891 qNameNisw := qrNameNisw 1892 if qNameNisw != "" { 1893 1894 if err := r.SetQueryParam("name__nisw", qNameNisw); err != nil { 1895 return err 1896 } 1897 } 1898 } 1899 1900 if o.NewWindow != nil { 1901 1902 // query param new_window 1903 var qrNewWindow string 1904 1905 if o.NewWindow != nil { 1906 qrNewWindow = *o.NewWindow 1907 } 1908 qNewWindow := qrNewWindow 1909 if qNewWindow != "" { 1910 1911 if err := r.SetQueryParam("new_window", qNewWindow); err != nil { 1912 return err 1913 } 1914 } 1915 } 1916 1917 if o.Offset != nil { 1918 1919 // query param offset 1920 var qrOffset int64 1921 1922 if o.Offset != nil { 1923 qrOffset = *o.Offset 1924 } 1925 qOffset := swag.FormatInt64(qrOffset) 1926 if qOffset != "" { 1927 1928 if err := r.SetQueryParam("offset", qOffset); err != nil { 1929 return err 1930 } 1931 } 1932 } 1933 1934 if o.Weight != nil { 1935 1936 // query param weight 1937 var qrWeight string 1938 1939 if o.Weight != nil { 1940 qrWeight = *o.Weight 1941 } 1942 qWeight := qrWeight 1943 if qWeight != "" { 1944 1945 if err := r.SetQueryParam("weight", qWeight); err != nil { 1946 return err 1947 } 1948 } 1949 } 1950 1951 if o.WeightGt != nil { 1952 1953 // query param weight__gt 1954 var qrWeightGt string 1955 1956 if o.WeightGt != nil { 1957 qrWeightGt = *o.WeightGt 1958 } 1959 qWeightGt := qrWeightGt 1960 if qWeightGt != "" { 1961 1962 if err := r.SetQueryParam("weight__gt", qWeightGt); err != nil { 1963 return err 1964 } 1965 } 1966 } 1967 1968 if o.WeightGte != nil { 1969 1970 // query param weight__gte 1971 var qrWeightGte string 1972 1973 if o.WeightGte != nil { 1974 qrWeightGte = *o.WeightGte 1975 } 1976 qWeightGte := qrWeightGte 1977 if qWeightGte != "" { 1978 1979 if err := r.SetQueryParam("weight__gte", qWeightGte); err != nil { 1980 return err 1981 } 1982 } 1983 } 1984 1985 if o.WeightLt != nil { 1986 1987 // query param weight__lt 1988 var qrWeightLt string 1989 1990 if o.WeightLt != nil { 1991 qrWeightLt = *o.WeightLt 1992 } 1993 qWeightLt := qrWeightLt 1994 if qWeightLt != "" { 1995 1996 if err := r.SetQueryParam("weight__lt", qWeightLt); err != nil { 1997 return err 1998 } 1999 } 2000 } 2001 2002 if o.WeightLte != nil { 2003 2004 // query param weight__lte 2005 var qrWeightLte string 2006 2007 if o.WeightLte != nil { 2008 qrWeightLte = *o.WeightLte 2009 } 2010 qWeightLte := qrWeightLte 2011 if qWeightLte != "" { 2012 2013 if err := r.SetQueryParam("weight__lte", qWeightLte); err != nil { 2014 return err 2015 } 2016 } 2017 } 2018 2019 if o.Weightn != nil { 2020 2021 // query param weight__n 2022 var qrWeightn string 2023 2024 if o.Weightn != nil { 2025 qrWeightn = *o.Weightn 2026 } 2027 qWeightn := qrWeightn 2028 if qWeightn != "" { 2029 2030 if err := r.SetQueryParam("weight__n", qWeightn); err != nil { 2031 return err 2032 } 2033 } 2034 } 2035 2036 if len(res) > 0 { 2037 return errors.CompositeValidationError(res...) 2038 } 2039 return nil 2040 }