github.com/digitalocean/go-netbox@v0.0.2/netbox/client/virtualization/virtualization_clusters_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 virtualization 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 // NewVirtualizationClustersListParams creates a new VirtualizationClustersListParams 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 NewVirtualizationClustersListParams() *VirtualizationClustersListParams { 42 return &VirtualizationClustersListParams{ 43 timeout: cr.DefaultTimeout, 44 } 45 } 46 47 // NewVirtualizationClustersListParamsWithTimeout creates a new VirtualizationClustersListParams object 48 // with the ability to set a timeout on a request. 49 func NewVirtualizationClustersListParamsWithTimeout(timeout time.Duration) *VirtualizationClustersListParams { 50 return &VirtualizationClustersListParams{ 51 timeout: timeout, 52 } 53 } 54 55 // NewVirtualizationClustersListParamsWithContext creates a new VirtualizationClustersListParams object 56 // with the ability to set a context for a request. 57 func NewVirtualizationClustersListParamsWithContext(ctx context.Context) *VirtualizationClustersListParams { 58 return &VirtualizationClustersListParams{ 59 Context: ctx, 60 } 61 } 62 63 // NewVirtualizationClustersListParamsWithHTTPClient creates a new VirtualizationClustersListParams object 64 // with the ability to set a custom HTTPClient for a request. 65 func NewVirtualizationClustersListParamsWithHTTPClient(client *http.Client) *VirtualizationClustersListParams { 66 return &VirtualizationClustersListParams{ 67 HTTPClient: client, 68 } 69 } 70 71 /* VirtualizationClustersListParams contains all the parameters to send to the API endpoint 72 for the virtualization clusters list operation. 73 74 Typically these are written to a http.Request. 75 */ 76 type VirtualizationClustersListParams struct { 77 78 // Created. 79 Created *string 80 81 // CreatedGte. 82 CreatedGte *string 83 84 // CreatedLte. 85 CreatedLte *string 86 87 // Group. 88 Group *string 89 90 // Groupn. 91 Groupn *string 92 93 // GroupID. 94 GroupID *string 95 96 // GroupIDn. 97 GroupIDn *string 98 99 // ID. 100 ID *string 101 102 // IDGt. 103 IDGt *string 104 105 // IDGte. 106 IDGte *string 107 108 // IDLt. 109 IDLt *string 110 111 // IDLte. 112 IDLte *string 113 114 // IDn. 115 IDn *string 116 117 // LastUpdated. 118 LastUpdated *string 119 120 // LastUpdatedGte. 121 LastUpdatedGte *string 122 123 // LastUpdatedLte. 124 LastUpdatedLte *string 125 126 /* Limit. 127 128 Number of results to return per page. 129 */ 130 Limit *int64 131 132 // Name. 133 Name *string 134 135 // NameEmpty. 136 NameEmpty *string 137 138 // NameIc. 139 NameIc *string 140 141 // NameIe. 142 NameIe *string 143 144 // NameIew. 145 NameIew *string 146 147 // NameIsw. 148 NameIsw *string 149 150 // Namen. 151 Namen *string 152 153 // NameNic. 154 NameNic *string 155 156 // NameNie. 157 NameNie *string 158 159 // NameNiew. 160 NameNiew *string 161 162 // NameNisw. 163 NameNisw *string 164 165 /* Offset. 166 167 The initial index from which to return the results. 168 */ 169 Offset *int64 170 171 // Q. 172 Q *string 173 174 // Region. 175 Region *string 176 177 // Regionn. 178 Regionn *string 179 180 // RegionID. 181 RegionID *string 182 183 // RegionIDn. 184 RegionIDn *string 185 186 // Site. 187 Site *string 188 189 // Siten. 190 Siten *string 191 192 // SiteGroup. 193 SiteGroup *string 194 195 // SiteGroupn. 196 SiteGroupn *string 197 198 // SiteGroupID. 199 SiteGroupID *string 200 201 // SiteGroupIDn. 202 SiteGroupIDn *string 203 204 // SiteID. 205 SiteID *string 206 207 // SiteIDn. 208 SiteIDn *string 209 210 // Tag. 211 Tag *string 212 213 // Tagn. 214 Tagn *string 215 216 // Tenant. 217 Tenant *string 218 219 // Tenantn. 220 Tenantn *string 221 222 // TenantGroup. 223 TenantGroup *string 224 225 // TenantGroupn. 226 TenantGroupn *string 227 228 // TenantGroupID. 229 TenantGroupID *string 230 231 // TenantGroupIDn. 232 TenantGroupIDn *string 233 234 // TenantID. 235 TenantID *string 236 237 // TenantIDn. 238 TenantIDn *string 239 240 // Type. 241 Type *string 242 243 // Typen. 244 Typen *string 245 246 // TypeID. 247 TypeID *string 248 249 // TypeIDn. 250 TypeIDn *string 251 252 timeout time.Duration 253 Context context.Context 254 HTTPClient *http.Client 255 } 256 257 // WithDefaults hydrates default values in the virtualization clusters list params (not the query body). 258 // 259 // All values with no default are reset to their zero value. 260 func (o *VirtualizationClustersListParams) WithDefaults() *VirtualizationClustersListParams { 261 o.SetDefaults() 262 return o 263 } 264 265 // SetDefaults hydrates default values in the virtualization clusters list params (not the query body). 266 // 267 // All values with no default are reset to their zero value. 268 func (o *VirtualizationClustersListParams) SetDefaults() { 269 // no default values defined for this parameter 270 } 271 272 // WithTimeout adds the timeout to the virtualization clusters list params 273 func (o *VirtualizationClustersListParams) WithTimeout(timeout time.Duration) *VirtualizationClustersListParams { 274 o.SetTimeout(timeout) 275 return o 276 } 277 278 // SetTimeout adds the timeout to the virtualization clusters list params 279 func (o *VirtualizationClustersListParams) SetTimeout(timeout time.Duration) { 280 o.timeout = timeout 281 } 282 283 // WithContext adds the context to the virtualization clusters list params 284 func (o *VirtualizationClustersListParams) WithContext(ctx context.Context) *VirtualizationClustersListParams { 285 o.SetContext(ctx) 286 return o 287 } 288 289 // SetContext adds the context to the virtualization clusters list params 290 func (o *VirtualizationClustersListParams) SetContext(ctx context.Context) { 291 o.Context = ctx 292 } 293 294 // WithHTTPClient adds the HTTPClient to the virtualization clusters list params 295 func (o *VirtualizationClustersListParams) WithHTTPClient(client *http.Client) *VirtualizationClustersListParams { 296 o.SetHTTPClient(client) 297 return o 298 } 299 300 // SetHTTPClient adds the HTTPClient to the virtualization clusters list params 301 func (o *VirtualizationClustersListParams) SetHTTPClient(client *http.Client) { 302 o.HTTPClient = client 303 } 304 305 // WithCreated adds the created to the virtualization clusters list params 306 func (o *VirtualizationClustersListParams) WithCreated(created *string) *VirtualizationClustersListParams { 307 o.SetCreated(created) 308 return o 309 } 310 311 // SetCreated adds the created to the virtualization clusters list params 312 func (o *VirtualizationClustersListParams) SetCreated(created *string) { 313 o.Created = created 314 } 315 316 // WithCreatedGte adds the createdGte to the virtualization clusters list params 317 func (o *VirtualizationClustersListParams) WithCreatedGte(createdGte *string) *VirtualizationClustersListParams { 318 o.SetCreatedGte(createdGte) 319 return o 320 } 321 322 // SetCreatedGte adds the createdGte to the virtualization clusters list params 323 func (o *VirtualizationClustersListParams) SetCreatedGte(createdGte *string) { 324 o.CreatedGte = createdGte 325 } 326 327 // WithCreatedLte adds the createdLte to the virtualization clusters list params 328 func (o *VirtualizationClustersListParams) WithCreatedLte(createdLte *string) *VirtualizationClustersListParams { 329 o.SetCreatedLte(createdLte) 330 return o 331 } 332 333 // SetCreatedLte adds the createdLte to the virtualization clusters list params 334 func (o *VirtualizationClustersListParams) SetCreatedLte(createdLte *string) { 335 o.CreatedLte = createdLte 336 } 337 338 // WithGroup adds the group to the virtualization clusters list params 339 func (o *VirtualizationClustersListParams) WithGroup(group *string) *VirtualizationClustersListParams { 340 o.SetGroup(group) 341 return o 342 } 343 344 // SetGroup adds the group to the virtualization clusters list params 345 func (o *VirtualizationClustersListParams) SetGroup(group *string) { 346 o.Group = group 347 } 348 349 // WithGroupn adds the groupn to the virtualization clusters list params 350 func (o *VirtualizationClustersListParams) WithGroupn(groupn *string) *VirtualizationClustersListParams { 351 o.SetGroupn(groupn) 352 return o 353 } 354 355 // SetGroupn adds the groupN to the virtualization clusters list params 356 func (o *VirtualizationClustersListParams) SetGroupn(groupn *string) { 357 o.Groupn = groupn 358 } 359 360 // WithGroupID adds the groupID to the virtualization clusters list params 361 func (o *VirtualizationClustersListParams) WithGroupID(groupID *string) *VirtualizationClustersListParams { 362 o.SetGroupID(groupID) 363 return o 364 } 365 366 // SetGroupID adds the groupId to the virtualization clusters list params 367 func (o *VirtualizationClustersListParams) SetGroupID(groupID *string) { 368 o.GroupID = groupID 369 } 370 371 // WithGroupIDn adds the groupIDn to the virtualization clusters list params 372 func (o *VirtualizationClustersListParams) WithGroupIDn(groupIDn *string) *VirtualizationClustersListParams { 373 o.SetGroupIDn(groupIDn) 374 return o 375 } 376 377 // SetGroupIDn adds the groupIdN to the virtualization clusters list params 378 func (o *VirtualizationClustersListParams) SetGroupIDn(groupIDn *string) { 379 o.GroupIDn = groupIDn 380 } 381 382 // WithID adds the id to the virtualization clusters list params 383 func (o *VirtualizationClustersListParams) WithID(id *string) *VirtualizationClustersListParams { 384 o.SetID(id) 385 return o 386 } 387 388 // SetID adds the id to the virtualization clusters list params 389 func (o *VirtualizationClustersListParams) SetID(id *string) { 390 o.ID = id 391 } 392 393 // WithIDGt adds the iDGt to the virtualization clusters list params 394 func (o *VirtualizationClustersListParams) WithIDGt(iDGt *string) *VirtualizationClustersListParams { 395 o.SetIDGt(iDGt) 396 return o 397 } 398 399 // SetIDGt adds the idGt to the virtualization clusters list params 400 func (o *VirtualizationClustersListParams) SetIDGt(iDGt *string) { 401 o.IDGt = iDGt 402 } 403 404 // WithIDGte adds the iDGte to the virtualization clusters list params 405 func (o *VirtualizationClustersListParams) WithIDGte(iDGte *string) *VirtualizationClustersListParams { 406 o.SetIDGte(iDGte) 407 return o 408 } 409 410 // SetIDGte adds the idGte to the virtualization clusters list params 411 func (o *VirtualizationClustersListParams) SetIDGte(iDGte *string) { 412 o.IDGte = iDGte 413 } 414 415 // WithIDLt adds the iDLt to the virtualization clusters list params 416 func (o *VirtualizationClustersListParams) WithIDLt(iDLt *string) *VirtualizationClustersListParams { 417 o.SetIDLt(iDLt) 418 return o 419 } 420 421 // SetIDLt adds the idLt to the virtualization clusters list params 422 func (o *VirtualizationClustersListParams) SetIDLt(iDLt *string) { 423 o.IDLt = iDLt 424 } 425 426 // WithIDLte adds the iDLte to the virtualization clusters list params 427 func (o *VirtualizationClustersListParams) WithIDLte(iDLte *string) *VirtualizationClustersListParams { 428 o.SetIDLte(iDLte) 429 return o 430 } 431 432 // SetIDLte adds the idLte to the virtualization clusters list params 433 func (o *VirtualizationClustersListParams) SetIDLte(iDLte *string) { 434 o.IDLte = iDLte 435 } 436 437 // WithIDn adds the iDn to the virtualization clusters list params 438 func (o *VirtualizationClustersListParams) WithIDn(iDn *string) *VirtualizationClustersListParams { 439 o.SetIDn(iDn) 440 return o 441 } 442 443 // SetIDn adds the idN to the virtualization clusters list params 444 func (o *VirtualizationClustersListParams) SetIDn(iDn *string) { 445 o.IDn = iDn 446 } 447 448 // WithLastUpdated adds the lastUpdated to the virtualization clusters list params 449 func (o *VirtualizationClustersListParams) WithLastUpdated(lastUpdated *string) *VirtualizationClustersListParams { 450 o.SetLastUpdated(lastUpdated) 451 return o 452 } 453 454 // SetLastUpdated adds the lastUpdated to the virtualization clusters list params 455 func (o *VirtualizationClustersListParams) SetLastUpdated(lastUpdated *string) { 456 o.LastUpdated = lastUpdated 457 } 458 459 // WithLastUpdatedGte adds the lastUpdatedGte to the virtualization clusters list params 460 func (o *VirtualizationClustersListParams) WithLastUpdatedGte(lastUpdatedGte *string) *VirtualizationClustersListParams { 461 o.SetLastUpdatedGte(lastUpdatedGte) 462 return o 463 } 464 465 // SetLastUpdatedGte adds the lastUpdatedGte to the virtualization clusters list params 466 func (o *VirtualizationClustersListParams) SetLastUpdatedGte(lastUpdatedGte *string) { 467 o.LastUpdatedGte = lastUpdatedGte 468 } 469 470 // WithLastUpdatedLte adds the lastUpdatedLte to the virtualization clusters list params 471 func (o *VirtualizationClustersListParams) WithLastUpdatedLte(lastUpdatedLte *string) *VirtualizationClustersListParams { 472 o.SetLastUpdatedLte(lastUpdatedLte) 473 return o 474 } 475 476 // SetLastUpdatedLte adds the lastUpdatedLte to the virtualization clusters list params 477 func (o *VirtualizationClustersListParams) SetLastUpdatedLte(lastUpdatedLte *string) { 478 o.LastUpdatedLte = lastUpdatedLte 479 } 480 481 // WithLimit adds the limit to the virtualization clusters list params 482 func (o *VirtualizationClustersListParams) WithLimit(limit *int64) *VirtualizationClustersListParams { 483 o.SetLimit(limit) 484 return o 485 } 486 487 // SetLimit adds the limit to the virtualization clusters list params 488 func (o *VirtualizationClustersListParams) SetLimit(limit *int64) { 489 o.Limit = limit 490 } 491 492 // WithName adds the name to the virtualization clusters list params 493 func (o *VirtualizationClustersListParams) WithName(name *string) *VirtualizationClustersListParams { 494 o.SetName(name) 495 return o 496 } 497 498 // SetName adds the name to the virtualization clusters list params 499 func (o *VirtualizationClustersListParams) SetName(name *string) { 500 o.Name = name 501 } 502 503 // WithNameEmpty adds the nameEmpty to the virtualization clusters list params 504 func (o *VirtualizationClustersListParams) WithNameEmpty(nameEmpty *string) *VirtualizationClustersListParams { 505 o.SetNameEmpty(nameEmpty) 506 return o 507 } 508 509 // SetNameEmpty adds the nameEmpty to the virtualization clusters list params 510 func (o *VirtualizationClustersListParams) SetNameEmpty(nameEmpty *string) { 511 o.NameEmpty = nameEmpty 512 } 513 514 // WithNameIc adds the nameIc to the virtualization clusters list params 515 func (o *VirtualizationClustersListParams) WithNameIc(nameIc *string) *VirtualizationClustersListParams { 516 o.SetNameIc(nameIc) 517 return o 518 } 519 520 // SetNameIc adds the nameIc to the virtualization clusters list params 521 func (o *VirtualizationClustersListParams) SetNameIc(nameIc *string) { 522 o.NameIc = nameIc 523 } 524 525 // WithNameIe adds the nameIe to the virtualization clusters list params 526 func (o *VirtualizationClustersListParams) WithNameIe(nameIe *string) *VirtualizationClustersListParams { 527 o.SetNameIe(nameIe) 528 return o 529 } 530 531 // SetNameIe adds the nameIe to the virtualization clusters list params 532 func (o *VirtualizationClustersListParams) SetNameIe(nameIe *string) { 533 o.NameIe = nameIe 534 } 535 536 // WithNameIew adds the nameIew to the virtualization clusters list params 537 func (o *VirtualizationClustersListParams) WithNameIew(nameIew *string) *VirtualizationClustersListParams { 538 o.SetNameIew(nameIew) 539 return o 540 } 541 542 // SetNameIew adds the nameIew to the virtualization clusters list params 543 func (o *VirtualizationClustersListParams) SetNameIew(nameIew *string) { 544 o.NameIew = nameIew 545 } 546 547 // WithNameIsw adds the nameIsw to the virtualization clusters list params 548 func (o *VirtualizationClustersListParams) WithNameIsw(nameIsw *string) *VirtualizationClustersListParams { 549 o.SetNameIsw(nameIsw) 550 return o 551 } 552 553 // SetNameIsw adds the nameIsw to the virtualization clusters list params 554 func (o *VirtualizationClustersListParams) SetNameIsw(nameIsw *string) { 555 o.NameIsw = nameIsw 556 } 557 558 // WithNamen adds the namen to the virtualization clusters list params 559 func (o *VirtualizationClustersListParams) WithNamen(namen *string) *VirtualizationClustersListParams { 560 o.SetNamen(namen) 561 return o 562 } 563 564 // SetNamen adds the nameN to the virtualization clusters list params 565 func (o *VirtualizationClustersListParams) SetNamen(namen *string) { 566 o.Namen = namen 567 } 568 569 // WithNameNic adds the nameNic to the virtualization clusters list params 570 func (o *VirtualizationClustersListParams) WithNameNic(nameNic *string) *VirtualizationClustersListParams { 571 o.SetNameNic(nameNic) 572 return o 573 } 574 575 // SetNameNic adds the nameNic to the virtualization clusters list params 576 func (o *VirtualizationClustersListParams) SetNameNic(nameNic *string) { 577 o.NameNic = nameNic 578 } 579 580 // WithNameNie adds the nameNie to the virtualization clusters list params 581 func (o *VirtualizationClustersListParams) WithNameNie(nameNie *string) *VirtualizationClustersListParams { 582 o.SetNameNie(nameNie) 583 return o 584 } 585 586 // SetNameNie adds the nameNie to the virtualization clusters list params 587 func (o *VirtualizationClustersListParams) SetNameNie(nameNie *string) { 588 o.NameNie = nameNie 589 } 590 591 // WithNameNiew adds the nameNiew to the virtualization clusters list params 592 func (o *VirtualizationClustersListParams) WithNameNiew(nameNiew *string) *VirtualizationClustersListParams { 593 o.SetNameNiew(nameNiew) 594 return o 595 } 596 597 // SetNameNiew adds the nameNiew to the virtualization clusters list params 598 func (o *VirtualizationClustersListParams) SetNameNiew(nameNiew *string) { 599 o.NameNiew = nameNiew 600 } 601 602 // WithNameNisw adds the nameNisw to the virtualization clusters list params 603 func (o *VirtualizationClustersListParams) WithNameNisw(nameNisw *string) *VirtualizationClustersListParams { 604 o.SetNameNisw(nameNisw) 605 return o 606 } 607 608 // SetNameNisw adds the nameNisw to the virtualization clusters list params 609 func (o *VirtualizationClustersListParams) SetNameNisw(nameNisw *string) { 610 o.NameNisw = nameNisw 611 } 612 613 // WithOffset adds the offset to the virtualization clusters list params 614 func (o *VirtualizationClustersListParams) WithOffset(offset *int64) *VirtualizationClustersListParams { 615 o.SetOffset(offset) 616 return o 617 } 618 619 // SetOffset adds the offset to the virtualization clusters list params 620 func (o *VirtualizationClustersListParams) SetOffset(offset *int64) { 621 o.Offset = offset 622 } 623 624 // WithQ adds the q to the virtualization clusters list params 625 func (o *VirtualizationClustersListParams) WithQ(q *string) *VirtualizationClustersListParams { 626 o.SetQ(q) 627 return o 628 } 629 630 // SetQ adds the q to the virtualization clusters list params 631 func (o *VirtualizationClustersListParams) SetQ(q *string) { 632 o.Q = q 633 } 634 635 // WithRegion adds the region to the virtualization clusters list params 636 func (o *VirtualizationClustersListParams) WithRegion(region *string) *VirtualizationClustersListParams { 637 o.SetRegion(region) 638 return o 639 } 640 641 // SetRegion adds the region to the virtualization clusters list params 642 func (o *VirtualizationClustersListParams) SetRegion(region *string) { 643 o.Region = region 644 } 645 646 // WithRegionn adds the regionn to the virtualization clusters list params 647 func (o *VirtualizationClustersListParams) WithRegionn(regionn *string) *VirtualizationClustersListParams { 648 o.SetRegionn(regionn) 649 return o 650 } 651 652 // SetRegionn adds the regionN to the virtualization clusters list params 653 func (o *VirtualizationClustersListParams) SetRegionn(regionn *string) { 654 o.Regionn = regionn 655 } 656 657 // WithRegionID adds the regionID to the virtualization clusters list params 658 func (o *VirtualizationClustersListParams) WithRegionID(regionID *string) *VirtualizationClustersListParams { 659 o.SetRegionID(regionID) 660 return o 661 } 662 663 // SetRegionID adds the regionId to the virtualization clusters list params 664 func (o *VirtualizationClustersListParams) SetRegionID(regionID *string) { 665 o.RegionID = regionID 666 } 667 668 // WithRegionIDn adds the regionIDn to the virtualization clusters list params 669 func (o *VirtualizationClustersListParams) WithRegionIDn(regionIDn *string) *VirtualizationClustersListParams { 670 o.SetRegionIDn(regionIDn) 671 return o 672 } 673 674 // SetRegionIDn adds the regionIdN to the virtualization clusters list params 675 func (o *VirtualizationClustersListParams) SetRegionIDn(regionIDn *string) { 676 o.RegionIDn = regionIDn 677 } 678 679 // WithSite adds the site to the virtualization clusters list params 680 func (o *VirtualizationClustersListParams) WithSite(site *string) *VirtualizationClustersListParams { 681 o.SetSite(site) 682 return o 683 } 684 685 // SetSite adds the site to the virtualization clusters list params 686 func (o *VirtualizationClustersListParams) SetSite(site *string) { 687 o.Site = site 688 } 689 690 // WithSiten adds the siten to the virtualization clusters list params 691 func (o *VirtualizationClustersListParams) WithSiten(siten *string) *VirtualizationClustersListParams { 692 o.SetSiten(siten) 693 return o 694 } 695 696 // SetSiten adds the siteN to the virtualization clusters list params 697 func (o *VirtualizationClustersListParams) SetSiten(siten *string) { 698 o.Siten = siten 699 } 700 701 // WithSiteGroup adds the siteGroup to the virtualization clusters list params 702 func (o *VirtualizationClustersListParams) WithSiteGroup(siteGroup *string) *VirtualizationClustersListParams { 703 o.SetSiteGroup(siteGroup) 704 return o 705 } 706 707 // SetSiteGroup adds the siteGroup to the virtualization clusters list params 708 func (o *VirtualizationClustersListParams) SetSiteGroup(siteGroup *string) { 709 o.SiteGroup = siteGroup 710 } 711 712 // WithSiteGroupn adds the siteGroupn to the virtualization clusters list params 713 func (o *VirtualizationClustersListParams) WithSiteGroupn(siteGroupn *string) *VirtualizationClustersListParams { 714 o.SetSiteGroupn(siteGroupn) 715 return o 716 } 717 718 // SetSiteGroupn adds the siteGroupN to the virtualization clusters list params 719 func (o *VirtualizationClustersListParams) SetSiteGroupn(siteGroupn *string) { 720 o.SiteGroupn = siteGroupn 721 } 722 723 // WithSiteGroupID adds the siteGroupID to the virtualization clusters list params 724 func (o *VirtualizationClustersListParams) WithSiteGroupID(siteGroupID *string) *VirtualizationClustersListParams { 725 o.SetSiteGroupID(siteGroupID) 726 return o 727 } 728 729 // SetSiteGroupID adds the siteGroupId to the virtualization clusters list params 730 func (o *VirtualizationClustersListParams) SetSiteGroupID(siteGroupID *string) { 731 o.SiteGroupID = siteGroupID 732 } 733 734 // WithSiteGroupIDn adds the siteGroupIDn to the virtualization clusters list params 735 func (o *VirtualizationClustersListParams) WithSiteGroupIDn(siteGroupIDn *string) *VirtualizationClustersListParams { 736 o.SetSiteGroupIDn(siteGroupIDn) 737 return o 738 } 739 740 // SetSiteGroupIDn adds the siteGroupIdN to the virtualization clusters list params 741 func (o *VirtualizationClustersListParams) SetSiteGroupIDn(siteGroupIDn *string) { 742 o.SiteGroupIDn = siteGroupIDn 743 } 744 745 // WithSiteID adds the siteID to the virtualization clusters list params 746 func (o *VirtualizationClustersListParams) WithSiteID(siteID *string) *VirtualizationClustersListParams { 747 o.SetSiteID(siteID) 748 return o 749 } 750 751 // SetSiteID adds the siteId to the virtualization clusters list params 752 func (o *VirtualizationClustersListParams) SetSiteID(siteID *string) { 753 o.SiteID = siteID 754 } 755 756 // WithSiteIDn adds the siteIDn to the virtualization clusters list params 757 func (o *VirtualizationClustersListParams) WithSiteIDn(siteIDn *string) *VirtualizationClustersListParams { 758 o.SetSiteIDn(siteIDn) 759 return o 760 } 761 762 // SetSiteIDn adds the siteIdN to the virtualization clusters list params 763 func (o *VirtualizationClustersListParams) SetSiteIDn(siteIDn *string) { 764 o.SiteIDn = siteIDn 765 } 766 767 // WithTag adds the tag to the virtualization clusters list params 768 func (o *VirtualizationClustersListParams) WithTag(tag *string) *VirtualizationClustersListParams { 769 o.SetTag(tag) 770 return o 771 } 772 773 // SetTag adds the tag to the virtualization clusters list params 774 func (o *VirtualizationClustersListParams) SetTag(tag *string) { 775 o.Tag = tag 776 } 777 778 // WithTagn adds the tagn to the virtualization clusters list params 779 func (o *VirtualizationClustersListParams) WithTagn(tagn *string) *VirtualizationClustersListParams { 780 o.SetTagn(tagn) 781 return o 782 } 783 784 // SetTagn adds the tagN to the virtualization clusters list params 785 func (o *VirtualizationClustersListParams) SetTagn(tagn *string) { 786 o.Tagn = tagn 787 } 788 789 // WithTenant adds the tenant to the virtualization clusters list params 790 func (o *VirtualizationClustersListParams) WithTenant(tenant *string) *VirtualizationClustersListParams { 791 o.SetTenant(tenant) 792 return o 793 } 794 795 // SetTenant adds the tenant to the virtualization clusters list params 796 func (o *VirtualizationClustersListParams) SetTenant(tenant *string) { 797 o.Tenant = tenant 798 } 799 800 // WithTenantn adds the tenantn to the virtualization clusters list params 801 func (o *VirtualizationClustersListParams) WithTenantn(tenantn *string) *VirtualizationClustersListParams { 802 o.SetTenantn(tenantn) 803 return o 804 } 805 806 // SetTenantn adds the tenantN to the virtualization clusters list params 807 func (o *VirtualizationClustersListParams) SetTenantn(tenantn *string) { 808 o.Tenantn = tenantn 809 } 810 811 // WithTenantGroup adds the tenantGroup to the virtualization clusters list params 812 func (o *VirtualizationClustersListParams) WithTenantGroup(tenantGroup *string) *VirtualizationClustersListParams { 813 o.SetTenantGroup(tenantGroup) 814 return o 815 } 816 817 // SetTenantGroup adds the tenantGroup to the virtualization clusters list params 818 func (o *VirtualizationClustersListParams) SetTenantGroup(tenantGroup *string) { 819 o.TenantGroup = tenantGroup 820 } 821 822 // WithTenantGroupn adds the tenantGroupn to the virtualization clusters list params 823 func (o *VirtualizationClustersListParams) WithTenantGroupn(tenantGroupn *string) *VirtualizationClustersListParams { 824 o.SetTenantGroupn(tenantGroupn) 825 return o 826 } 827 828 // SetTenantGroupn adds the tenantGroupN to the virtualization clusters list params 829 func (o *VirtualizationClustersListParams) SetTenantGroupn(tenantGroupn *string) { 830 o.TenantGroupn = tenantGroupn 831 } 832 833 // WithTenantGroupID adds the tenantGroupID to the virtualization clusters list params 834 func (o *VirtualizationClustersListParams) WithTenantGroupID(tenantGroupID *string) *VirtualizationClustersListParams { 835 o.SetTenantGroupID(tenantGroupID) 836 return o 837 } 838 839 // SetTenantGroupID adds the tenantGroupId to the virtualization clusters list params 840 func (o *VirtualizationClustersListParams) SetTenantGroupID(tenantGroupID *string) { 841 o.TenantGroupID = tenantGroupID 842 } 843 844 // WithTenantGroupIDn adds the tenantGroupIDn to the virtualization clusters list params 845 func (o *VirtualizationClustersListParams) WithTenantGroupIDn(tenantGroupIDn *string) *VirtualizationClustersListParams { 846 o.SetTenantGroupIDn(tenantGroupIDn) 847 return o 848 } 849 850 // SetTenantGroupIDn adds the tenantGroupIdN to the virtualization clusters list params 851 func (o *VirtualizationClustersListParams) SetTenantGroupIDn(tenantGroupIDn *string) { 852 o.TenantGroupIDn = tenantGroupIDn 853 } 854 855 // WithTenantID adds the tenantID to the virtualization clusters list params 856 func (o *VirtualizationClustersListParams) WithTenantID(tenantID *string) *VirtualizationClustersListParams { 857 o.SetTenantID(tenantID) 858 return o 859 } 860 861 // SetTenantID adds the tenantId to the virtualization clusters list params 862 func (o *VirtualizationClustersListParams) SetTenantID(tenantID *string) { 863 o.TenantID = tenantID 864 } 865 866 // WithTenantIDn adds the tenantIDn to the virtualization clusters list params 867 func (o *VirtualizationClustersListParams) WithTenantIDn(tenantIDn *string) *VirtualizationClustersListParams { 868 o.SetTenantIDn(tenantIDn) 869 return o 870 } 871 872 // SetTenantIDn adds the tenantIdN to the virtualization clusters list params 873 func (o *VirtualizationClustersListParams) SetTenantIDn(tenantIDn *string) { 874 o.TenantIDn = tenantIDn 875 } 876 877 // WithType adds the typeVar to the virtualization clusters list params 878 func (o *VirtualizationClustersListParams) WithType(typeVar *string) *VirtualizationClustersListParams { 879 o.SetType(typeVar) 880 return o 881 } 882 883 // SetType adds the type to the virtualization clusters list params 884 func (o *VirtualizationClustersListParams) SetType(typeVar *string) { 885 o.Type = typeVar 886 } 887 888 // WithTypen adds the typen to the virtualization clusters list params 889 func (o *VirtualizationClustersListParams) WithTypen(typen *string) *VirtualizationClustersListParams { 890 o.SetTypen(typen) 891 return o 892 } 893 894 // SetTypen adds the typeN to the virtualization clusters list params 895 func (o *VirtualizationClustersListParams) SetTypen(typen *string) { 896 o.Typen = typen 897 } 898 899 // WithTypeID adds the typeID to the virtualization clusters list params 900 func (o *VirtualizationClustersListParams) WithTypeID(typeID *string) *VirtualizationClustersListParams { 901 o.SetTypeID(typeID) 902 return o 903 } 904 905 // SetTypeID adds the typeId to the virtualization clusters list params 906 func (o *VirtualizationClustersListParams) SetTypeID(typeID *string) { 907 o.TypeID = typeID 908 } 909 910 // WithTypeIDn adds the typeIDn to the virtualization clusters list params 911 func (o *VirtualizationClustersListParams) WithTypeIDn(typeIDn *string) *VirtualizationClustersListParams { 912 o.SetTypeIDn(typeIDn) 913 return o 914 } 915 916 // SetTypeIDn adds the typeIdN to the virtualization clusters list params 917 func (o *VirtualizationClustersListParams) SetTypeIDn(typeIDn *string) { 918 o.TypeIDn = typeIDn 919 } 920 921 // WriteToRequest writes these params to a swagger request 922 func (o *VirtualizationClustersListParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { 923 924 if err := r.SetTimeout(o.timeout); err != nil { 925 return err 926 } 927 var res []error 928 929 if o.Created != nil { 930 931 // query param created 932 var qrCreated string 933 934 if o.Created != nil { 935 qrCreated = *o.Created 936 } 937 qCreated := qrCreated 938 if qCreated != "" { 939 940 if err := r.SetQueryParam("created", qCreated); err != nil { 941 return err 942 } 943 } 944 } 945 946 if o.CreatedGte != nil { 947 948 // query param created__gte 949 var qrCreatedGte string 950 951 if o.CreatedGte != nil { 952 qrCreatedGte = *o.CreatedGte 953 } 954 qCreatedGte := qrCreatedGte 955 if qCreatedGte != "" { 956 957 if err := r.SetQueryParam("created__gte", qCreatedGte); err != nil { 958 return err 959 } 960 } 961 } 962 963 if o.CreatedLte != nil { 964 965 // query param created__lte 966 var qrCreatedLte string 967 968 if o.CreatedLte != nil { 969 qrCreatedLte = *o.CreatedLte 970 } 971 qCreatedLte := qrCreatedLte 972 if qCreatedLte != "" { 973 974 if err := r.SetQueryParam("created__lte", qCreatedLte); err != nil { 975 return err 976 } 977 } 978 } 979 980 if o.Group != nil { 981 982 // query param group 983 var qrGroup string 984 985 if o.Group != nil { 986 qrGroup = *o.Group 987 } 988 qGroup := qrGroup 989 if qGroup != "" { 990 991 if err := r.SetQueryParam("group", qGroup); err != nil { 992 return err 993 } 994 } 995 } 996 997 if o.Groupn != nil { 998 999 // query param group__n 1000 var qrGroupn string 1001 1002 if o.Groupn != nil { 1003 qrGroupn = *o.Groupn 1004 } 1005 qGroupn := qrGroupn 1006 if qGroupn != "" { 1007 1008 if err := r.SetQueryParam("group__n", qGroupn); err != nil { 1009 return err 1010 } 1011 } 1012 } 1013 1014 if o.GroupID != nil { 1015 1016 // query param group_id 1017 var qrGroupID string 1018 1019 if o.GroupID != nil { 1020 qrGroupID = *o.GroupID 1021 } 1022 qGroupID := qrGroupID 1023 if qGroupID != "" { 1024 1025 if err := r.SetQueryParam("group_id", qGroupID); err != nil { 1026 return err 1027 } 1028 } 1029 } 1030 1031 if o.GroupIDn != nil { 1032 1033 // query param group_id__n 1034 var qrGroupIDn string 1035 1036 if o.GroupIDn != nil { 1037 qrGroupIDn = *o.GroupIDn 1038 } 1039 qGroupIDn := qrGroupIDn 1040 if qGroupIDn != "" { 1041 1042 if err := r.SetQueryParam("group_id__n", qGroupIDn); err != nil { 1043 return err 1044 } 1045 } 1046 } 1047 1048 if o.ID != nil { 1049 1050 // query param id 1051 var qrID string 1052 1053 if o.ID != nil { 1054 qrID = *o.ID 1055 } 1056 qID := qrID 1057 if qID != "" { 1058 1059 if err := r.SetQueryParam("id", qID); err != nil { 1060 return err 1061 } 1062 } 1063 } 1064 1065 if o.IDGt != nil { 1066 1067 // query param id__gt 1068 var qrIDGt string 1069 1070 if o.IDGt != nil { 1071 qrIDGt = *o.IDGt 1072 } 1073 qIDGt := qrIDGt 1074 if qIDGt != "" { 1075 1076 if err := r.SetQueryParam("id__gt", qIDGt); err != nil { 1077 return err 1078 } 1079 } 1080 } 1081 1082 if o.IDGte != nil { 1083 1084 // query param id__gte 1085 var qrIDGte string 1086 1087 if o.IDGte != nil { 1088 qrIDGte = *o.IDGte 1089 } 1090 qIDGte := qrIDGte 1091 if qIDGte != "" { 1092 1093 if err := r.SetQueryParam("id__gte", qIDGte); err != nil { 1094 return err 1095 } 1096 } 1097 } 1098 1099 if o.IDLt != nil { 1100 1101 // query param id__lt 1102 var qrIDLt string 1103 1104 if o.IDLt != nil { 1105 qrIDLt = *o.IDLt 1106 } 1107 qIDLt := qrIDLt 1108 if qIDLt != "" { 1109 1110 if err := r.SetQueryParam("id__lt", qIDLt); err != nil { 1111 return err 1112 } 1113 } 1114 } 1115 1116 if o.IDLte != nil { 1117 1118 // query param id__lte 1119 var qrIDLte string 1120 1121 if o.IDLte != nil { 1122 qrIDLte = *o.IDLte 1123 } 1124 qIDLte := qrIDLte 1125 if qIDLte != "" { 1126 1127 if err := r.SetQueryParam("id__lte", qIDLte); err != nil { 1128 return err 1129 } 1130 } 1131 } 1132 1133 if o.IDn != nil { 1134 1135 // query param id__n 1136 var qrIDn string 1137 1138 if o.IDn != nil { 1139 qrIDn = *o.IDn 1140 } 1141 qIDn := qrIDn 1142 if qIDn != "" { 1143 1144 if err := r.SetQueryParam("id__n", qIDn); err != nil { 1145 return err 1146 } 1147 } 1148 } 1149 1150 if o.LastUpdated != nil { 1151 1152 // query param last_updated 1153 var qrLastUpdated string 1154 1155 if o.LastUpdated != nil { 1156 qrLastUpdated = *o.LastUpdated 1157 } 1158 qLastUpdated := qrLastUpdated 1159 if qLastUpdated != "" { 1160 1161 if err := r.SetQueryParam("last_updated", qLastUpdated); err != nil { 1162 return err 1163 } 1164 } 1165 } 1166 1167 if o.LastUpdatedGte != nil { 1168 1169 // query param last_updated__gte 1170 var qrLastUpdatedGte string 1171 1172 if o.LastUpdatedGte != nil { 1173 qrLastUpdatedGte = *o.LastUpdatedGte 1174 } 1175 qLastUpdatedGte := qrLastUpdatedGte 1176 if qLastUpdatedGte != "" { 1177 1178 if err := r.SetQueryParam("last_updated__gte", qLastUpdatedGte); err != nil { 1179 return err 1180 } 1181 } 1182 } 1183 1184 if o.LastUpdatedLte != nil { 1185 1186 // query param last_updated__lte 1187 var qrLastUpdatedLte string 1188 1189 if o.LastUpdatedLte != nil { 1190 qrLastUpdatedLte = *o.LastUpdatedLte 1191 } 1192 qLastUpdatedLte := qrLastUpdatedLte 1193 if qLastUpdatedLte != "" { 1194 1195 if err := r.SetQueryParam("last_updated__lte", qLastUpdatedLte); err != nil { 1196 return err 1197 } 1198 } 1199 } 1200 1201 if o.Limit != nil { 1202 1203 // query param limit 1204 var qrLimit int64 1205 1206 if o.Limit != nil { 1207 qrLimit = *o.Limit 1208 } 1209 qLimit := swag.FormatInt64(qrLimit) 1210 if qLimit != "" { 1211 1212 if err := r.SetQueryParam("limit", qLimit); err != nil { 1213 return err 1214 } 1215 } 1216 } 1217 1218 if o.Name != nil { 1219 1220 // query param name 1221 var qrName string 1222 1223 if o.Name != nil { 1224 qrName = *o.Name 1225 } 1226 qName := qrName 1227 if qName != "" { 1228 1229 if err := r.SetQueryParam("name", qName); err != nil { 1230 return err 1231 } 1232 } 1233 } 1234 1235 if o.NameEmpty != nil { 1236 1237 // query param name__empty 1238 var qrNameEmpty string 1239 1240 if o.NameEmpty != nil { 1241 qrNameEmpty = *o.NameEmpty 1242 } 1243 qNameEmpty := qrNameEmpty 1244 if qNameEmpty != "" { 1245 1246 if err := r.SetQueryParam("name__empty", qNameEmpty); err != nil { 1247 return err 1248 } 1249 } 1250 } 1251 1252 if o.NameIc != nil { 1253 1254 // query param name__ic 1255 var qrNameIc string 1256 1257 if o.NameIc != nil { 1258 qrNameIc = *o.NameIc 1259 } 1260 qNameIc := qrNameIc 1261 if qNameIc != "" { 1262 1263 if err := r.SetQueryParam("name__ic", qNameIc); err != nil { 1264 return err 1265 } 1266 } 1267 } 1268 1269 if o.NameIe != nil { 1270 1271 // query param name__ie 1272 var qrNameIe string 1273 1274 if o.NameIe != nil { 1275 qrNameIe = *o.NameIe 1276 } 1277 qNameIe := qrNameIe 1278 if qNameIe != "" { 1279 1280 if err := r.SetQueryParam("name__ie", qNameIe); err != nil { 1281 return err 1282 } 1283 } 1284 } 1285 1286 if o.NameIew != nil { 1287 1288 // query param name__iew 1289 var qrNameIew string 1290 1291 if o.NameIew != nil { 1292 qrNameIew = *o.NameIew 1293 } 1294 qNameIew := qrNameIew 1295 if qNameIew != "" { 1296 1297 if err := r.SetQueryParam("name__iew", qNameIew); err != nil { 1298 return err 1299 } 1300 } 1301 } 1302 1303 if o.NameIsw != nil { 1304 1305 // query param name__isw 1306 var qrNameIsw string 1307 1308 if o.NameIsw != nil { 1309 qrNameIsw = *o.NameIsw 1310 } 1311 qNameIsw := qrNameIsw 1312 if qNameIsw != "" { 1313 1314 if err := r.SetQueryParam("name__isw", qNameIsw); err != nil { 1315 return err 1316 } 1317 } 1318 } 1319 1320 if o.Namen != nil { 1321 1322 // query param name__n 1323 var qrNamen string 1324 1325 if o.Namen != nil { 1326 qrNamen = *o.Namen 1327 } 1328 qNamen := qrNamen 1329 if qNamen != "" { 1330 1331 if err := r.SetQueryParam("name__n", qNamen); err != nil { 1332 return err 1333 } 1334 } 1335 } 1336 1337 if o.NameNic != nil { 1338 1339 // query param name__nic 1340 var qrNameNic string 1341 1342 if o.NameNic != nil { 1343 qrNameNic = *o.NameNic 1344 } 1345 qNameNic := qrNameNic 1346 if qNameNic != "" { 1347 1348 if err := r.SetQueryParam("name__nic", qNameNic); err != nil { 1349 return err 1350 } 1351 } 1352 } 1353 1354 if o.NameNie != nil { 1355 1356 // query param name__nie 1357 var qrNameNie string 1358 1359 if o.NameNie != nil { 1360 qrNameNie = *o.NameNie 1361 } 1362 qNameNie := qrNameNie 1363 if qNameNie != "" { 1364 1365 if err := r.SetQueryParam("name__nie", qNameNie); err != nil { 1366 return err 1367 } 1368 } 1369 } 1370 1371 if o.NameNiew != nil { 1372 1373 // query param name__niew 1374 var qrNameNiew string 1375 1376 if o.NameNiew != nil { 1377 qrNameNiew = *o.NameNiew 1378 } 1379 qNameNiew := qrNameNiew 1380 if qNameNiew != "" { 1381 1382 if err := r.SetQueryParam("name__niew", qNameNiew); err != nil { 1383 return err 1384 } 1385 } 1386 } 1387 1388 if o.NameNisw != nil { 1389 1390 // query param name__nisw 1391 var qrNameNisw string 1392 1393 if o.NameNisw != nil { 1394 qrNameNisw = *o.NameNisw 1395 } 1396 qNameNisw := qrNameNisw 1397 if qNameNisw != "" { 1398 1399 if err := r.SetQueryParam("name__nisw", qNameNisw); err != nil { 1400 return err 1401 } 1402 } 1403 } 1404 1405 if o.Offset != nil { 1406 1407 // query param offset 1408 var qrOffset int64 1409 1410 if o.Offset != nil { 1411 qrOffset = *o.Offset 1412 } 1413 qOffset := swag.FormatInt64(qrOffset) 1414 if qOffset != "" { 1415 1416 if err := r.SetQueryParam("offset", qOffset); err != nil { 1417 return err 1418 } 1419 } 1420 } 1421 1422 if o.Q != nil { 1423 1424 // query param q 1425 var qrQ string 1426 1427 if o.Q != nil { 1428 qrQ = *o.Q 1429 } 1430 qQ := qrQ 1431 if qQ != "" { 1432 1433 if err := r.SetQueryParam("q", qQ); err != nil { 1434 return err 1435 } 1436 } 1437 } 1438 1439 if o.Region != nil { 1440 1441 // query param region 1442 var qrRegion string 1443 1444 if o.Region != nil { 1445 qrRegion = *o.Region 1446 } 1447 qRegion := qrRegion 1448 if qRegion != "" { 1449 1450 if err := r.SetQueryParam("region", qRegion); err != nil { 1451 return err 1452 } 1453 } 1454 } 1455 1456 if o.Regionn != nil { 1457 1458 // query param region__n 1459 var qrRegionn string 1460 1461 if o.Regionn != nil { 1462 qrRegionn = *o.Regionn 1463 } 1464 qRegionn := qrRegionn 1465 if qRegionn != "" { 1466 1467 if err := r.SetQueryParam("region__n", qRegionn); err != nil { 1468 return err 1469 } 1470 } 1471 } 1472 1473 if o.RegionID != nil { 1474 1475 // query param region_id 1476 var qrRegionID string 1477 1478 if o.RegionID != nil { 1479 qrRegionID = *o.RegionID 1480 } 1481 qRegionID := qrRegionID 1482 if qRegionID != "" { 1483 1484 if err := r.SetQueryParam("region_id", qRegionID); err != nil { 1485 return err 1486 } 1487 } 1488 } 1489 1490 if o.RegionIDn != nil { 1491 1492 // query param region_id__n 1493 var qrRegionIDn string 1494 1495 if o.RegionIDn != nil { 1496 qrRegionIDn = *o.RegionIDn 1497 } 1498 qRegionIDn := qrRegionIDn 1499 if qRegionIDn != "" { 1500 1501 if err := r.SetQueryParam("region_id__n", qRegionIDn); err != nil { 1502 return err 1503 } 1504 } 1505 } 1506 1507 if o.Site != nil { 1508 1509 // query param site 1510 var qrSite string 1511 1512 if o.Site != nil { 1513 qrSite = *o.Site 1514 } 1515 qSite := qrSite 1516 if qSite != "" { 1517 1518 if err := r.SetQueryParam("site", qSite); err != nil { 1519 return err 1520 } 1521 } 1522 } 1523 1524 if o.Siten != nil { 1525 1526 // query param site__n 1527 var qrSiten string 1528 1529 if o.Siten != nil { 1530 qrSiten = *o.Siten 1531 } 1532 qSiten := qrSiten 1533 if qSiten != "" { 1534 1535 if err := r.SetQueryParam("site__n", qSiten); err != nil { 1536 return err 1537 } 1538 } 1539 } 1540 1541 if o.SiteGroup != nil { 1542 1543 // query param site_group 1544 var qrSiteGroup string 1545 1546 if o.SiteGroup != nil { 1547 qrSiteGroup = *o.SiteGroup 1548 } 1549 qSiteGroup := qrSiteGroup 1550 if qSiteGroup != "" { 1551 1552 if err := r.SetQueryParam("site_group", qSiteGroup); err != nil { 1553 return err 1554 } 1555 } 1556 } 1557 1558 if o.SiteGroupn != nil { 1559 1560 // query param site_group__n 1561 var qrSiteGroupn string 1562 1563 if o.SiteGroupn != nil { 1564 qrSiteGroupn = *o.SiteGroupn 1565 } 1566 qSiteGroupn := qrSiteGroupn 1567 if qSiteGroupn != "" { 1568 1569 if err := r.SetQueryParam("site_group__n", qSiteGroupn); err != nil { 1570 return err 1571 } 1572 } 1573 } 1574 1575 if o.SiteGroupID != nil { 1576 1577 // query param site_group_id 1578 var qrSiteGroupID string 1579 1580 if o.SiteGroupID != nil { 1581 qrSiteGroupID = *o.SiteGroupID 1582 } 1583 qSiteGroupID := qrSiteGroupID 1584 if qSiteGroupID != "" { 1585 1586 if err := r.SetQueryParam("site_group_id", qSiteGroupID); err != nil { 1587 return err 1588 } 1589 } 1590 } 1591 1592 if o.SiteGroupIDn != nil { 1593 1594 // query param site_group_id__n 1595 var qrSiteGroupIDn string 1596 1597 if o.SiteGroupIDn != nil { 1598 qrSiteGroupIDn = *o.SiteGroupIDn 1599 } 1600 qSiteGroupIDn := qrSiteGroupIDn 1601 if qSiteGroupIDn != "" { 1602 1603 if err := r.SetQueryParam("site_group_id__n", qSiteGroupIDn); err != nil { 1604 return err 1605 } 1606 } 1607 } 1608 1609 if o.SiteID != nil { 1610 1611 // query param site_id 1612 var qrSiteID string 1613 1614 if o.SiteID != nil { 1615 qrSiteID = *o.SiteID 1616 } 1617 qSiteID := qrSiteID 1618 if qSiteID != "" { 1619 1620 if err := r.SetQueryParam("site_id", qSiteID); err != nil { 1621 return err 1622 } 1623 } 1624 } 1625 1626 if o.SiteIDn != nil { 1627 1628 // query param site_id__n 1629 var qrSiteIDn string 1630 1631 if o.SiteIDn != nil { 1632 qrSiteIDn = *o.SiteIDn 1633 } 1634 qSiteIDn := qrSiteIDn 1635 if qSiteIDn != "" { 1636 1637 if err := r.SetQueryParam("site_id__n", qSiteIDn); err != nil { 1638 return err 1639 } 1640 } 1641 } 1642 1643 if o.Tag != nil { 1644 1645 // query param tag 1646 var qrTag string 1647 1648 if o.Tag != nil { 1649 qrTag = *o.Tag 1650 } 1651 qTag := qrTag 1652 if qTag != "" { 1653 1654 if err := r.SetQueryParam("tag", qTag); err != nil { 1655 return err 1656 } 1657 } 1658 } 1659 1660 if o.Tagn != nil { 1661 1662 // query param tag__n 1663 var qrTagn string 1664 1665 if o.Tagn != nil { 1666 qrTagn = *o.Tagn 1667 } 1668 qTagn := qrTagn 1669 if qTagn != "" { 1670 1671 if err := r.SetQueryParam("tag__n", qTagn); err != nil { 1672 return err 1673 } 1674 } 1675 } 1676 1677 if o.Tenant != nil { 1678 1679 // query param tenant 1680 var qrTenant string 1681 1682 if o.Tenant != nil { 1683 qrTenant = *o.Tenant 1684 } 1685 qTenant := qrTenant 1686 if qTenant != "" { 1687 1688 if err := r.SetQueryParam("tenant", qTenant); err != nil { 1689 return err 1690 } 1691 } 1692 } 1693 1694 if o.Tenantn != nil { 1695 1696 // query param tenant__n 1697 var qrTenantn string 1698 1699 if o.Tenantn != nil { 1700 qrTenantn = *o.Tenantn 1701 } 1702 qTenantn := qrTenantn 1703 if qTenantn != "" { 1704 1705 if err := r.SetQueryParam("tenant__n", qTenantn); err != nil { 1706 return err 1707 } 1708 } 1709 } 1710 1711 if o.TenantGroup != nil { 1712 1713 // query param tenant_group 1714 var qrTenantGroup string 1715 1716 if o.TenantGroup != nil { 1717 qrTenantGroup = *o.TenantGroup 1718 } 1719 qTenantGroup := qrTenantGroup 1720 if qTenantGroup != "" { 1721 1722 if err := r.SetQueryParam("tenant_group", qTenantGroup); err != nil { 1723 return err 1724 } 1725 } 1726 } 1727 1728 if o.TenantGroupn != nil { 1729 1730 // query param tenant_group__n 1731 var qrTenantGroupn string 1732 1733 if o.TenantGroupn != nil { 1734 qrTenantGroupn = *o.TenantGroupn 1735 } 1736 qTenantGroupn := qrTenantGroupn 1737 if qTenantGroupn != "" { 1738 1739 if err := r.SetQueryParam("tenant_group__n", qTenantGroupn); err != nil { 1740 return err 1741 } 1742 } 1743 } 1744 1745 if o.TenantGroupID != nil { 1746 1747 // query param tenant_group_id 1748 var qrTenantGroupID string 1749 1750 if o.TenantGroupID != nil { 1751 qrTenantGroupID = *o.TenantGroupID 1752 } 1753 qTenantGroupID := qrTenantGroupID 1754 if qTenantGroupID != "" { 1755 1756 if err := r.SetQueryParam("tenant_group_id", qTenantGroupID); err != nil { 1757 return err 1758 } 1759 } 1760 } 1761 1762 if o.TenantGroupIDn != nil { 1763 1764 // query param tenant_group_id__n 1765 var qrTenantGroupIDn string 1766 1767 if o.TenantGroupIDn != nil { 1768 qrTenantGroupIDn = *o.TenantGroupIDn 1769 } 1770 qTenantGroupIDn := qrTenantGroupIDn 1771 if qTenantGroupIDn != "" { 1772 1773 if err := r.SetQueryParam("tenant_group_id__n", qTenantGroupIDn); err != nil { 1774 return err 1775 } 1776 } 1777 } 1778 1779 if o.TenantID != nil { 1780 1781 // query param tenant_id 1782 var qrTenantID string 1783 1784 if o.TenantID != nil { 1785 qrTenantID = *o.TenantID 1786 } 1787 qTenantID := qrTenantID 1788 if qTenantID != "" { 1789 1790 if err := r.SetQueryParam("tenant_id", qTenantID); err != nil { 1791 return err 1792 } 1793 } 1794 } 1795 1796 if o.TenantIDn != nil { 1797 1798 // query param tenant_id__n 1799 var qrTenantIDn string 1800 1801 if o.TenantIDn != nil { 1802 qrTenantIDn = *o.TenantIDn 1803 } 1804 qTenantIDn := qrTenantIDn 1805 if qTenantIDn != "" { 1806 1807 if err := r.SetQueryParam("tenant_id__n", qTenantIDn); err != nil { 1808 return err 1809 } 1810 } 1811 } 1812 1813 if o.Type != nil { 1814 1815 // query param type 1816 var qrType string 1817 1818 if o.Type != nil { 1819 qrType = *o.Type 1820 } 1821 qType := qrType 1822 if qType != "" { 1823 1824 if err := r.SetQueryParam("type", qType); err != nil { 1825 return err 1826 } 1827 } 1828 } 1829 1830 if o.Typen != nil { 1831 1832 // query param type__n 1833 var qrTypen string 1834 1835 if o.Typen != nil { 1836 qrTypen = *o.Typen 1837 } 1838 qTypen := qrTypen 1839 if qTypen != "" { 1840 1841 if err := r.SetQueryParam("type__n", qTypen); err != nil { 1842 return err 1843 } 1844 } 1845 } 1846 1847 if o.TypeID != nil { 1848 1849 // query param type_id 1850 var qrTypeID string 1851 1852 if o.TypeID != nil { 1853 qrTypeID = *o.TypeID 1854 } 1855 qTypeID := qrTypeID 1856 if qTypeID != "" { 1857 1858 if err := r.SetQueryParam("type_id", qTypeID); err != nil { 1859 return err 1860 } 1861 } 1862 } 1863 1864 if o.TypeIDn != nil { 1865 1866 // query param type_id__n 1867 var qrTypeIDn string 1868 1869 if o.TypeIDn != nil { 1870 qrTypeIDn = *o.TypeIDn 1871 } 1872 qTypeIDn := qrTypeIDn 1873 if qTypeIDn != "" { 1874 1875 if err := r.SetQueryParam("type_id__n", qTypeIDn); err != nil { 1876 return err 1877 } 1878 } 1879 } 1880 1881 if len(res) > 0 { 1882 return errors.CompositeValidationError(res...) 1883 } 1884 return nil 1885 }