github.com/digitalocean/go-netbox@v0.0.2/netbox/client/virtualization/virtualization_virtual_machines_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 // NewVirtualizationVirtualMachinesListParams creates a new VirtualizationVirtualMachinesListParams 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 NewVirtualizationVirtualMachinesListParams() *VirtualizationVirtualMachinesListParams { 42 return &VirtualizationVirtualMachinesListParams{ 43 timeout: cr.DefaultTimeout, 44 } 45 } 46 47 // NewVirtualizationVirtualMachinesListParamsWithTimeout creates a new VirtualizationVirtualMachinesListParams object 48 // with the ability to set a timeout on a request. 49 func NewVirtualizationVirtualMachinesListParamsWithTimeout(timeout time.Duration) *VirtualizationVirtualMachinesListParams { 50 return &VirtualizationVirtualMachinesListParams{ 51 timeout: timeout, 52 } 53 } 54 55 // NewVirtualizationVirtualMachinesListParamsWithContext creates a new VirtualizationVirtualMachinesListParams object 56 // with the ability to set a context for a request. 57 func NewVirtualizationVirtualMachinesListParamsWithContext(ctx context.Context) *VirtualizationVirtualMachinesListParams { 58 return &VirtualizationVirtualMachinesListParams{ 59 Context: ctx, 60 } 61 } 62 63 // NewVirtualizationVirtualMachinesListParamsWithHTTPClient creates a new VirtualizationVirtualMachinesListParams object 64 // with the ability to set a custom HTTPClient for a request. 65 func NewVirtualizationVirtualMachinesListParamsWithHTTPClient(client *http.Client) *VirtualizationVirtualMachinesListParams { 66 return &VirtualizationVirtualMachinesListParams{ 67 HTTPClient: client, 68 } 69 } 70 71 /* VirtualizationVirtualMachinesListParams contains all the parameters to send to the API endpoint 72 for the virtualization virtual machines list operation. 73 74 Typically these are written to a http.Request. 75 */ 76 type VirtualizationVirtualMachinesListParams struct { 77 78 // Cluster. 79 Cluster *string 80 81 // Clustern. 82 Clustern *string 83 84 // ClusterGroup. 85 ClusterGroup *string 86 87 // ClusterGroupn. 88 ClusterGroupn *string 89 90 // ClusterGroupID. 91 ClusterGroupID *string 92 93 // ClusterGroupIDn. 94 ClusterGroupIDn *string 95 96 // ClusterID. 97 ClusterID *string 98 99 // ClusterIDn. 100 ClusterIDn *string 101 102 // ClusterType. 103 ClusterType *string 104 105 // ClusterTypen. 106 ClusterTypen *string 107 108 // ClusterTypeID. 109 ClusterTypeID *string 110 111 // ClusterTypeIDn. 112 ClusterTypeIDn *string 113 114 // Created. 115 Created *string 116 117 // CreatedGte. 118 CreatedGte *string 119 120 // CreatedLte. 121 CreatedLte *string 122 123 // Disk. 124 Disk *string 125 126 // DiskGt. 127 DiskGt *string 128 129 // DiskGte. 130 DiskGte *string 131 132 // DiskLt. 133 DiskLt *string 134 135 // DiskLte. 136 DiskLte *string 137 138 // Diskn. 139 Diskn *string 140 141 // HasPrimaryIP. 142 HasPrimaryIP *string 143 144 // ID. 145 ID *string 146 147 // IDGt. 148 IDGt *string 149 150 // IDGte. 151 IDGte *string 152 153 // IDLt. 154 IDLt *string 155 156 // IDLte. 157 IDLte *string 158 159 // IDn. 160 IDn *string 161 162 // LastUpdated. 163 LastUpdated *string 164 165 // LastUpdatedGte. 166 LastUpdatedGte *string 167 168 // LastUpdatedLte. 169 LastUpdatedLte *string 170 171 /* Limit. 172 173 Number of results to return per page. 174 */ 175 Limit *int64 176 177 // LocalContextData. 178 LocalContextData *string 179 180 // MacAddress. 181 MacAddress *string 182 183 // MacAddressIc. 184 MacAddressIc *string 185 186 // MacAddressIe. 187 MacAddressIe *string 188 189 // MacAddressIew. 190 MacAddressIew *string 191 192 // MacAddressIsw. 193 MacAddressIsw *string 194 195 // MacAddressn. 196 MacAddressn *string 197 198 // MacAddressNic. 199 MacAddressNic *string 200 201 // MacAddressNie. 202 MacAddressNie *string 203 204 // MacAddressNiew. 205 MacAddressNiew *string 206 207 // MacAddressNisw. 208 MacAddressNisw *string 209 210 // Memory. 211 Memory *string 212 213 // MemoryGt. 214 MemoryGt *string 215 216 // MemoryGte. 217 MemoryGte *string 218 219 // MemoryLt. 220 MemoryLt *string 221 222 // MemoryLte. 223 MemoryLte *string 224 225 // Memoryn. 226 Memoryn *string 227 228 // Name. 229 Name *string 230 231 // NameEmpty. 232 NameEmpty *string 233 234 // NameIc. 235 NameIc *string 236 237 // NameIe. 238 NameIe *string 239 240 // NameIew. 241 NameIew *string 242 243 // NameIsw. 244 NameIsw *string 245 246 // Namen. 247 Namen *string 248 249 // NameNic. 250 NameNic *string 251 252 // NameNie. 253 NameNie *string 254 255 // NameNiew. 256 NameNiew *string 257 258 // NameNisw. 259 NameNisw *string 260 261 /* Offset. 262 263 The initial index from which to return the results. 264 */ 265 Offset *int64 266 267 // Platform. 268 Platform *string 269 270 // Platformn. 271 Platformn *string 272 273 // PlatformID. 274 PlatformID *string 275 276 // PlatformIDn. 277 PlatformIDn *string 278 279 // Q. 280 Q *string 281 282 // Region. 283 Region *string 284 285 // Regionn. 286 Regionn *string 287 288 // RegionID. 289 RegionID *string 290 291 // RegionIDn. 292 RegionIDn *string 293 294 // Role. 295 Role *string 296 297 // Rolen. 298 Rolen *string 299 300 // RoleID. 301 RoleID *string 302 303 // RoleIDn. 304 RoleIDn *string 305 306 // Site. 307 Site *string 308 309 // Siten. 310 Siten *string 311 312 // SiteGroup. 313 SiteGroup *string 314 315 // SiteGroupn. 316 SiteGroupn *string 317 318 // SiteGroupID. 319 SiteGroupID *string 320 321 // SiteGroupIDn. 322 SiteGroupIDn *string 323 324 // SiteID. 325 SiteID *string 326 327 // SiteIDn. 328 SiteIDn *string 329 330 // Status. 331 Status *string 332 333 // Statusn. 334 Statusn *string 335 336 // Tag. 337 Tag *string 338 339 // Tagn. 340 Tagn *string 341 342 // Tenant. 343 Tenant *string 344 345 // Tenantn. 346 Tenantn *string 347 348 // TenantGroup. 349 TenantGroup *string 350 351 // TenantGroupn. 352 TenantGroupn *string 353 354 // TenantGroupID. 355 TenantGroupID *string 356 357 // TenantGroupIDn. 358 TenantGroupIDn *string 359 360 // TenantID. 361 TenantID *string 362 363 // TenantIDn. 364 TenantIDn *string 365 366 // Vcpus. 367 Vcpus *string 368 369 // VcpusGt. 370 VcpusGt *string 371 372 // VcpusGte. 373 VcpusGte *string 374 375 // VcpusLt. 376 VcpusLt *string 377 378 // VcpusLte. 379 VcpusLte *string 380 381 // Vcpusn. 382 Vcpusn *string 383 384 timeout time.Duration 385 Context context.Context 386 HTTPClient *http.Client 387 } 388 389 // WithDefaults hydrates default values in the virtualization virtual machines list params (not the query body). 390 // 391 // All values with no default are reset to their zero value. 392 func (o *VirtualizationVirtualMachinesListParams) WithDefaults() *VirtualizationVirtualMachinesListParams { 393 o.SetDefaults() 394 return o 395 } 396 397 // SetDefaults hydrates default values in the virtualization virtual machines list params (not the query body). 398 // 399 // All values with no default are reset to their zero value. 400 func (o *VirtualizationVirtualMachinesListParams) SetDefaults() { 401 // no default values defined for this parameter 402 } 403 404 // WithTimeout adds the timeout to the virtualization virtual machines list params 405 func (o *VirtualizationVirtualMachinesListParams) WithTimeout(timeout time.Duration) *VirtualizationVirtualMachinesListParams { 406 o.SetTimeout(timeout) 407 return o 408 } 409 410 // SetTimeout adds the timeout to the virtualization virtual machines list params 411 func (o *VirtualizationVirtualMachinesListParams) SetTimeout(timeout time.Duration) { 412 o.timeout = timeout 413 } 414 415 // WithContext adds the context to the virtualization virtual machines list params 416 func (o *VirtualizationVirtualMachinesListParams) WithContext(ctx context.Context) *VirtualizationVirtualMachinesListParams { 417 o.SetContext(ctx) 418 return o 419 } 420 421 // SetContext adds the context to the virtualization virtual machines list params 422 func (o *VirtualizationVirtualMachinesListParams) SetContext(ctx context.Context) { 423 o.Context = ctx 424 } 425 426 // WithHTTPClient adds the HTTPClient to the virtualization virtual machines list params 427 func (o *VirtualizationVirtualMachinesListParams) WithHTTPClient(client *http.Client) *VirtualizationVirtualMachinesListParams { 428 o.SetHTTPClient(client) 429 return o 430 } 431 432 // SetHTTPClient adds the HTTPClient to the virtualization virtual machines list params 433 func (o *VirtualizationVirtualMachinesListParams) SetHTTPClient(client *http.Client) { 434 o.HTTPClient = client 435 } 436 437 // WithCluster adds the cluster to the virtualization virtual machines list params 438 func (o *VirtualizationVirtualMachinesListParams) WithCluster(cluster *string) *VirtualizationVirtualMachinesListParams { 439 o.SetCluster(cluster) 440 return o 441 } 442 443 // SetCluster adds the cluster to the virtualization virtual machines list params 444 func (o *VirtualizationVirtualMachinesListParams) SetCluster(cluster *string) { 445 o.Cluster = cluster 446 } 447 448 // WithClustern adds the clustern to the virtualization virtual machines list params 449 func (o *VirtualizationVirtualMachinesListParams) WithClustern(clustern *string) *VirtualizationVirtualMachinesListParams { 450 o.SetClustern(clustern) 451 return o 452 } 453 454 // SetClustern adds the clusterN to the virtualization virtual machines list params 455 func (o *VirtualizationVirtualMachinesListParams) SetClustern(clustern *string) { 456 o.Clustern = clustern 457 } 458 459 // WithClusterGroup adds the clusterGroup to the virtualization virtual machines list params 460 func (o *VirtualizationVirtualMachinesListParams) WithClusterGroup(clusterGroup *string) *VirtualizationVirtualMachinesListParams { 461 o.SetClusterGroup(clusterGroup) 462 return o 463 } 464 465 // SetClusterGroup adds the clusterGroup to the virtualization virtual machines list params 466 func (o *VirtualizationVirtualMachinesListParams) SetClusterGroup(clusterGroup *string) { 467 o.ClusterGroup = clusterGroup 468 } 469 470 // WithClusterGroupn adds the clusterGroupn to the virtualization virtual machines list params 471 func (o *VirtualizationVirtualMachinesListParams) WithClusterGroupn(clusterGroupn *string) *VirtualizationVirtualMachinesListParams { 472 o.SetClusterGroupn(clusterGroupn) 473 return o 474 } 475 476 // SetClusterGroupn adds the clusterGroupN to the virtualization virtual machines list params 477 func (o *VirtualizationVirtualMachinesListParams) SetClusterGroupn(clusterGroupn *string) { 478 o.ClusterGroupn = clusterGroupn 479 } 480 481 // WithClusterGroupID adds the clusterGroupID to the virtualization virtual machines list params 482 func (o *VirtualizationVirtualMachinesListParams) WithClusterGroupID(clusterGroupID *string) *VirtualizationVirtualMachinesListParams { 483 o.SetClusterGroupID(clusterGroupID) 484 return o 485 } 486 487 // SetClusterGroupID adds the clusterGroupId to the virtualization virtual machines list params 488 func (o *VirtualizationVirtualMachinesListParams) SetClusterGroupID(clusterGroupID *string) { 489 o.ClusterGroupID = clusterGroupID 490 } 491 492 // WithClusterGroupIDn adds the clusterGroupIDn to the virtualization virtual machines list params 493 func (o *VirtualizationVirtualMachinesListParams) WithClusterGroupIDn(clusterGroupIDn *string) *VirtualizationVirtualMachinesListParams { 494 o.SetClusterGroupIDn(clusterGroupIDn) 495 return o 496 } 497 498 // SetClusterGroupIDn adds the clusterGroupIdN to the virtualization virtual machines list params 499 func (o *VirtualizationVirtualMachinesListParams) SetClusterGroupIDn(clusterGroupIDn *string) { 500 o.ClusterGroupIDn = clusterGroupIDn 501 } 502 503 // WithClusterID adds the clusterID to the virtualization virtual machines list params 504 func (o *VirtualizationVirtualMachinesListParams) WithClusterID(clusterID *string) *VirtualizationVirtualMachinesListParams { 505 o.SetClusterID(clusterID) 506 return o 507 } 508 509 // SetClusterID adds the clusterId to the virtualization virtual machines list params 510 func (o *VirtualizationVirtualMachinesListParams) SetClusterID(clusterID *string) { 511 o.ClusterID = clusterID 512 } 513 514 // WithClusterIDn adds the clusterIDn to the virtualization virtual machines list params 515 func (o *VirtualizationVirtualMachinesListParams) WithClusterIDn(clusterIDn *string) *VirtualizationVirtualMachinesListParams { 516 o.SetClusterIDn(clusterIDn) 517 return o 518 } 519 520 // SetClusterIDn adds the clusterIdN to the virtualization virtual machines list params 521 func (o *VirtualizationVirtualMachinesListParams) SetClusterIDn(clusterIDn *string) { 522 o.ClusterIDn = clusterIDn 523 } 524 525 // WithClusterType adds the clusterType to the virtualization virtual machines list params 526 func (o *VirtualizationVirtualMachinesListParams) WithClusterType(clusterType *string) *VirtualizationVirtualMachinesListParams { 527 o.SetClusterType(clusterType) 528 return o 529 } 530 531 // SetClusterType adds the clusterType to the virtualization virtual machines list params 532 func (o *VirtualizationVirtualMachinesListParams) SetClusterType(clusterType *string) { 533 o.ClusterType = clusterType 534 } 535 536 // WithClusterTypen adds the clusterTypen to the virtualization virtual machines list params 537 func (o *VirtualizationVirtualMachinesListParams) WithClusterTypen(clusterTypen *string) *VirtualizationVirtualMachinesListParams { 538 o.SetClusterTypen(clusterTypen) 539 return o 540 } 541 542 // SetClusterTypen adds the clusterTypeN to the virtualization virtual machines list params 543 func (o *VirtualizationVirtualMachinesListParams) SetClusterTypen(clusterTypen *string) { 544 o.ClusterTypen = clusterTypen 545 } 546 547 // WithClusterTypeID adds the clusterTypeID to the virtualization virtual machines list params 548 func (o *VirtualizationVirtualMachinesListParams) WithClusterTypeID(clusterTypeID *string) *VirtualizationVirtualMachinesListParams { 549 o.SetClusterTypeID(clusterTypeID) 550 return o 551 } 552 553 // SetClusterTypeID adds the clusterTypeId to the virtualization virtual machines list params 554 func (o *VirtualizationVirtualMachinesListParams) SetClusterTypeID(clusterTypeID *string) { 555 o.ClusterTypeID = clusterTypeID 556 } 557 558 // WithClusterTypeIDn adds the clusterTypeIDn to the virtualization virtual machines list params 559 func (o *VirtualizationVirtualMachinesListParams) WithClusterTypeIDn(clusterTypeIDn *string) *VirtualizationVirtualMachinesListParams { 560 o.SetClusterTypeIDn(clusterTypeIDn) 561 return o 562 } 563 564 // SetClusterTypeIDn adds the clusterTypeIdN to the virtualization virtual machines list params 565 func (o *VirtualizationVirtualMachinesListParams) SetClusterTypeIDn(clusterTypeIDn *string) { 566 o.ClusterTypeIDn = clusterTypeIDn 567 } 568 569 // WithCreated adds the created to the virtualization virtual machines list params 570 func (o *VirtualizationVirtualMachinesListParams) WithCreated(created *string) *VirtualizationVirtualMachinesListParams { 571 o.SetCreated(created) 572 return o 573 } 574 575 // SetCreated adds the created to the virtualization virtual machines list params 576 func (o *VirtualizationVirtualMachinesListParams) SetCreated(created *string) { 577 o.Created = created 578 } 579 580 // WithCreatedGte adds the createdGte to the virtualization virtual machines list params 581 func (o *VirtualizationVirtualMachinesListParams) WithCreatedGte(createdGte *string) *VirtualizationVirtualMachinesListParams { 582 o.SetCreatedGte(createdGte) 583 return o 584 } 585 586 // SetCreatedGte adds the createdGte to the virtualization virtual machines list params 587 func (o *VirtualizationVirtualMachinesListParams) SetCreatedGte(createdGte *string) { 588 o.CreatedGte = createdGte 589 } 590 591 // WithCreatedLte adds the createdLte to the virtualization virtual machines list params 592 func (o *VirtualizationVirtualMachinesListParams) WithCreatedLte(createdLte *string) *VirtualizationVirtualMachinesListParams { 593 o.SetCreatedLte(createdLte) 594 return o 595 } 596 597 // SetCreatedLte adds the createdLte to the virtualization virtual machines list params 598 func (o *VirtualizationVirtualMachinesListParams) SetCreatedLte(createdLte *string) { 599 o.CreatedLte = createdLte 600 } 601 602 // WithDisk adds the disk to the virtualization virtual machines list params 603 func (o *VirtualizationVirtualMachinesListParams) WithDisk(disk *string) *VirtualizationVirtualMachinesListParams { 604 o.SetDisk(disk) 605 return o 606 } 607 608 // SetDisk adds the disk to the virtualization virtual machines list params 609 func (o *VirtualizationVirtualMachinesListParams) SetDisk(disk *string) { 610 o.Disk = disk 611 } 612 613 // WithDiskGt adds the diskGt to the virtualization virtual machines list params 614 func (o *VirtualizationVirtualMachinesListParams) WithDiskGt(diskGt *string) *VirtualizationVirtualMachinesListParams { 615 o.SetDiskGt(diskGt) 616 return o 617 } 618 619 // SetDiskGt adds the diskGt to the virtualization virtual machines list params 620 func (o *VirtualizationVirtualMachinesListParams) SetDiskGt(diskGt *string) { 621 o.DiskGt = diskGt 622 } 623 624 // WithDiskGte adds the diskGte to the virtualization virtual machines list params 625 func (o *VirtualizationVirtualMachinesListParams) WithDiskGte(diskGte *string) *VirtualizationVirtualMachinesListParams { 626 o.SetDiskGte(diskGte) 627 return o 628 } 629 630 // SetDiskGte adds the diskGte to the virtualization virtual machines list params 631 func (o *VirtualizationVirtualMachinesListParams) SetDiskGte(diskGte *string) { 632 o.DiskGte = diskGte 633 } 634 635 // WithDiskLt adds the diskLt to the virtualization virtual machines list params 636 func (o *VirtualizationVirtualMachinesListParams) WithDiskLt(diskLt *string) *VirtualizationVirtualMachinesListParams { 637 o.SetDiskLt(diskLt) 638 return o 639 } 640 641 // SetDiskLt adds the diskLt to the virtualization virtual machines list params 642 func (o *VirtualizationVirtualMachinesListParams) SetDiskLt(diskLt *string) { 643 o.DiskLt = diskLt 644 } 645 646 // WithDiskLte adds the diskLte to the virtualization virtual machines list params 647 func (o *VirtualizationVirtualMachinesListParams) WithDiskLte(diskLte *string) *VirtualizationVirtualMachinesListParams { 648 o.SetDiskLte(diskLte) 649 return o 650 } 651 652 // SetDiskLte adds the diskLte to the virtualization virtual machines list params 653 func (o *VirtualizationVirtualMachinesListParams) SetDiskLte(diskLte *string) { 654 o.DiskLte = diskLte 655 } 656 657 // WithDiskn adds the diskn to the virtualization virtual machines list params 658 func (o *VirtualizationVirtualMachinesListParams) WithDiskn(diskn *string) *VirtualizationVirtualMachinesListParams { 659 o.SetDiskn(diskn) 660 return o 661 } 662 663 // SetDiskn adds the diskN to the virtualization virtual machines list params 664 func (o *VirtualizationVirtualMachinesListParams) SetDiskn(diskn *string) { 665 o.Diskn = diskn 666 } 667 668 // WithHasPrimaryIP adds the hasPrimaryIP to the virtualization virtual machines list params 669 func (o *VirtualizationVirtualMachinesListParams) WithHasPrimaryIP(hasPrimaryIP *string) *VirtualizationVirtualMachinesListParams { 670 o.SetHasPrimaryIP(hasPrimaryIP) 671 return o 672 } 673 674 // SetHasPrimaryIP adds the hasPrimaryIp to the virtualization virtual machines list params 675 func (o *VirtualizationVirtualMachinesListParams) SetHasPrimaryIP(hasPrimaryIP *string) { 676 o.HasPrimaryIP = hasPrimaryIP 677 } 678 679 // WithID adds the id to the virtualization virtual machines list params 680 func (o *VirtualizationVirtualMachinesListParams) WithID(id *string) *VirtualizationVirtualMachinesListParams { 681 o.SetID(id) 682 return o 683 } 684 685 // SetID adds the id to the virtualization virtual machines list params 686 func (o *VirtualizationVirtualMachinesListParams) SetID(id *string) { 687 o.ID = id 688 } 689 690 // WithIDGt adds the iDGt to the virtualization virtual machines list params 691 func (o *VirtualizationVirtualMachinesListParams) WithIDGt(iDGt *string) *VirtualizationVirtualMachinesListParams { 692 o.SetIDGt(iDGt) 693 return o 694 } 695 696 // SetIDGt adds the idGt to the virtualization virtual machines list params 697 func (o *VirtualizationVirtualMachinesListParams) SetIDGt(iDGt *string) { 698 o.IDGt = iDGt 699 } 700 701 // WithIDGte adds the iDGte to the virtualization virtual machines list params 702 func (o *VirtualizationVirtualMachinesListParams) WithIDGte(iDGte *string) *VirtualizationVirtualMachinesListParams { 703 o.SetIDGte(iDGte) 704 return o 705 } 706 707 // SetIDGte adds the idGte to the virtualization virtual machines list params 708 func (o *VirtualizationVirtualMachinesListParams) SetIDGte(iDGte *string) { 709 o.IDGte = iDGte 710 } 711 712 // WithIDLt adds the iDLt to the virtualization virtual machines list params 713 func (o *VirtualizationVirtualMachinesListParams) WithIDLt(iDLt *string) *VirtualizationVirtualMachinesListParams { 714 o.SetIDLt(iDLt) 715 return o 716 } 717 718 // SetIDLt adds the idLt to the virtualization virtual machines list params 719 func (o *VirtualizationVirtualMachinesListParams) SetIDLt(iDLt *string) { 720 o.IDLt = iDLt 721 } 722 723 // WithIDLte adds the iDLte to the virtualization virtual machines list params 724 func (o *VirtualizationVirtualMachinesListParams) WithIDLte(iDLte *string) *VirtualizationVirtualMachinesListParams { 725 o.SetIDLte(iDLte) 726 return o 727 } 728 729 // SetIDLte adds the idLte to the virtualization virtual machines list params 730 func (o *VirtualizationVirtualMachinesListParams) SetIDLte(iDLte *string) { 731 o.IDLte = iDLte 732 } 733 734 // WithIDn adds the iDn to the virtualization virtual machines list params 735 func (o *VirtualizationVirtualMachinesListParams) WithIDn(iDn *string) *VirtualizationVirtualMachinesListParams { 736 o.SetIDn(iDn) 737 return o 738 } 739 740 // SetIDn adds the idN to the virtualization virtual machines list params 741 func (o *VirtualizationVirtualMachinesListParams) SetIDn(iDn *string) { 742 o.IDn = iDn 743 } 744 745 // WithLastUpdated adds the lastUpdated to the virtualization virtual machines list params 746 func (o *VirtualizationVirtualMachinesListParams) WithLastUpdated(lastUpdated *string) *VirtualizationVirtualMachinesListParams { 747 o.SetLastUpdated(lastUpdated) 748 return o 749 } 750 751 // SetLastUpdated adds the lastUpdated to the virtualization virtual machines list params 752 func (o *VirtualizationVirtualMachinesListParams) SetLastUpdated(lastUpdated *string) { 753 o.LastUpdated = lastUpdated 754 } 755 756 // WithLastUpdatedGte adds the lastUpdatedGte to the virtualization virtual machines list params 757 func (o *VirtualizationVirtualMachinesListParams) WithLastUpdatedGte(lastUpdatedGte *string) *VirtualizationVirtualMachinesListParams { 758 o.SetLastUpdatedGte(lastUpdatedGte) 759 return o 760 } 761 762 // SetLastUpdatedGte adds the lastUpdatedGte to the virtualization virtual machines list params 763 func (o *VirtualizationVirtualMachinesListParams) SetLastUpdatedGte(lastUpdatedGte *string) { 764 o.LastUpdatedGte = lastUpdatedGte 765 } 766 767 // WithLastUpdatedLte adds the lastUpdatedLte to the virtualization virtual machines list params 768 func (o *VirtualizationVirtualMachinesListParams) WithLastUpdatedLte(lastUpdatedLte *string) *VirtualizationVirtualMachinesListParams { 769 o.SetLastUpdatedLte(lastUpdatedLte) 770 return o 771 } 772 773 // SetLastUpdatedLte adds the lastUpdatedLte to the virtualization virtual machines list params 774 func (o *VirtualizationVirtualMachinesListParams) SetLastUpdatedLte(lastUpdatedLte *string) { 775 o.LastUpdatedLte = lastUpdatedLte 776 } 777 778 // WithLimit adds the limit to the virtualization virtual machines list params 779 func (o *VirtualizationVirtualMachinesListParams) WithLimit(limit *int64) *VirtualizationVirtualMachinesListParams { 780 o.SetLimit(limit) 781 return o 782 } 783 784 // SetLimit adds the limit to the virtualization virtual machines list params 785 func (o *VirtualizationVirtualMachinesListParams) SetLimit(limit *int64) { 786 o.Limit = limit 787 } 788 789 // WithLocalContextData adds the localContextData to the virtualization virtual machines list params 790 func (o *VirtualizationVirtualMachinesListParams) WithLocalContextData(localContextData *string) *VirtualizationVirtualMachinesListParams { 791 o.SetLocalContextData(localContextData) 792 return o 793 } 794 795 // SetLocalContextData adds the localContextData to the virtualization virtual machines list params 796 func (o *VirtualizationVirtualMachinesListParams) SetLocalContextData(localContextData *string) { 797 o.LocalContextData = localContextData 798 } 799 800 // WithMacAddress adds the macAddress to the virtualization virtual machines list params 801 func (o *VirtualizationVirtualMachinesListParams) WithMacAddress(macAddress *string) *VirtualizationVirtualMachinesListParams { 802 o.SetMacAddress(macAddress) 803 return o 804 } 805 806 // SetMacAddress adds the macAddress to the virtualization virtual machines list params 807 func (o *VirtualizationVirtualMachinesListParams) SetMacAddress(macAddress *string) { 808 o.MacAddress = macAddress 809 } 810 811 // WithMacAddressIc adds the macAddressIc to the virtualization virtual machines list params 812 func (o *VirtualizationVirtualMachinesListParams) WithMacAddressIc(macAddressIc *string) *VirtualizationVirtualMachinesListParams { 813 o.SetMacAddressIc(macAddressIc) 814 return o 815 } 816 817 // SetMacAddressIc adds the macAddressIc to the virtualization virtual machines list params 818 func (o *VirtualizationVirtualMachinesListParams) SetMacAddressIc(macAddressIc *string) { 819 o.MacAddressIc = macAddressIc 820 } 821 822 // WithMacAddressIe adds the macAddressIe to the virtualization virtual machines list params 823 func (o *VirtualizationVirtualMachinesListParams) WithMacAddressIe(macAddressIe *string) *VirtualizationVirtualMachinesListParams { 824 o.SetMacAddressIe(macAddressIe) 825 return o 826 } 827 828 // SetMacAddressIe adds the macAddressIe to the virtualization virtual machines list params 829 func (o *VirtualizationVirtualMachinesListParams) SetMacAddressIe(macAddressIe *string) { 830 o.MacAddressIe = macAddressIe 831 } 832 833 // WithMacAddressIew adds the macAddressIew to the virtualization virtual machines list params 834 func (o *VirtualizationVirtualMachinesListParams) WithMacAddressIew(macAddressIew *string) *VirtualizationVirtualMachinesListParams { 835 o.SetMacAddressIew(macAddressIew) 836 return o 837 } 838 839 // SetMacAddressIew adds the macAddressIew to the virtualization virtual machines list params 840 func (o *VirtualizationVirtualMachinesListParams) SetMacAddressIew(macAddressIew *string) { 841 o.MacAddressIew = macAddressIew 842 } 843 844 // WithMacAddressIsw adds the macAddressIsw to the virtualization virtual machines list params 845 func (o *VirtualizationVirtualMachinesListParams) WithMacAddressIsw(macAddressIsw *string) *VirtualizationVirtualMachinesListParams { 846 o.SetMacAddressIsw(macAddressIsw) 847 return o 848 } 849 850 // SetMacAddressIsw adds the macAddressIsw to the virtualization virtual machines list params 851 func (o *VirtualizationVirtualMachinesListParams) SetMacAddressIsw(macAddressIsw *string) { 852 o.MacAddressIsw = macAddressIsw 853 } 854 855 // WithMacAddressn adds the macAddressn to the virtualization virtual machines list params 856 func (o *VirtualizationVirtualMachinesListParams) WithMacAddressn(macAddressn *string) *VirtualizationVirtualMachinesListParams { 857 o.SetMacAddressn(macAddressn) 858 return o 859 } 860 861 // SetMacAddressn adds the macAddressN to the virtualization virtual machines list params 862 func (o *VirtualizationVirtualMachinesListParams) SetMacAddressn(macAddressn *string) { 863 o.MacAddressn = macAddressn 864 } 865 866 // WithMacAddressNic adds the macAddressNic to the virtualization virtual machines list params 867 func (o *VirtualizationVirtualMachinesListParams) WithMacAddressNic(macAddressNic *string) *VirtualizationVirtualMachinesListParams { 868 o.SetMacAddressNic(macAddressNic) 869 return o 870 } 871 872 // SetMacAddressNic adds the macAddressNic to the virtualization virtual machines list params 873 func (o *VirtualizationVirtualMachinesListParams) SetMacAddressNic(macAddressNic *string) { 874 o.MacAddressNic = macAddressNic 875 } 876 877 // WithMacAddressNie adds the macAddressNie to the virtualization virtual machines list params 878 func (o *VirtualizationVirtualMachinesListParams) WithMacAddressNie(macAddressNie *string) *VirtualizationVirtualMachinesListParams { 879 o.SetMacAddressNie(macAddressNie) 880 return o 881 } 882 883 // SetMacAddressNie adds the macAddressNie to the virtualization virtual machines list params 884 func (o *VirtualizationVirtualMachinesListParams) SetMacAddressNie(macAddressNie *string) { 885 o.MacAddressNie = macAddressNie 886 } 887 888 // WithMacAddressNiew adds the macAddressNiew to the virtualization virtual machines list params 889 func (o *VirtualizationVirtualMachinesListParams) WithMacAddressNiew(macAddressNiew *string) *VirtualizationVirtualMachinesListParams { 890 o.SetMacAddressNiew(macAddressNiew) 891 return o 892 } 893 894 // SetMacAddressNiew adds the macAddressNiew to the virtualization virtual machines list params 895 func (o *VirtualizationVirtualMachinesListParams) SetMacAddressNiew(macAddressNiew *string) { 896 o.MacAddressNiew = macAddressNiew 897 } 898 899 // WithMacAddressNisw adds the macAddressNisw to the virtualization virtual machines list params 900 func (o *VirtualizationVirtualMachinesListParams) WithMacAddressNisw(macAddressNisw *string) *VirtualizationVirtualMachinesListParams { 901 o.SetMacAddressNisw(macAddressNisw) 902 return o 903 } 904 905 // SetMacAddressNisw adds the macAddressNisw to the virtualization virtual machines list params 906 func (o *VirtualizationVirtualMachinesListParams) SetMacAddressNisw(macAddressNisw *string) { 907 o.MacAddressNisw = macAddressNisw 908 } 909 910 // WithMemory adds the memory to the virtualization virtual machines list params 911 func (o *VirtualizationVirtualMachinesListParams) WithMemory(memory *string) *VirtualizationVirtualMachinesListParams { 912 o.SetMemory(memory) 913 return o 914 } 915 916 // SetMemory adds the memory to the virtualization virtual machines list params 917 func (o *VirtualizationVirtualMachinesListParams) SetMemory(memory *string) { 918 o.Memory = memory 919 } 920 921 // WithMemoryGt adds the memoryGt to the virtualization virtual machines list params 922 func (o *VirtualizationVirtualMachinesListParams) WithMemoryGt(memoryGt *string) *VirtualizationVirtualMachinesListParams { 923 o.SetMemoryGt(memoryGt) 924 return o 925 } 926 927 // SetMemoryGt adds the memoryGt to the virtualization virtual machines list params 928 func (o *VirtualizationVirtualMachinesListParams) SetMemoryGt(memoryGt *string) { 929 o.MemoryGt = memoryGt 930 } 931 932 // WithMemoryGte adds the memoryGte to the virtualization virtual machines list params 933 func (o *VirtualizationVirtualMachinesListParams) WithMemoryGte(memoryGte *string) *VirtualizationVirtualMachinesListParams { 934 o.SetMemoryGte(memoryGte) 935 return o 936 } 937 938 // SetMemoryGte adds the memoryGte to the virtualization virtual machines list params 939 func (o *VirtualizationVirtualMachinesListParams) SetMemoryGte(memoryGte *string) { 940 o.MemoryGte = memoryGte 941 } 942 943 // WithMemoryLt adds the memoryLt to the virtualization virtual machines list params 944 func (o *VirtualizationVirtualMachinesListParams) WithMemoryLt(memoryLt *string) *VirtualizationVirtualMachinesListParams { 945 o.SetMemoryLt(memoryLt) 946 return o 947 } 948 949 // SetMemoryLt adds the memoryLt to the virtualization virtual machines list params 950 func (o *VirtualizationVirtualMachinesListParams) SetMemoryLt(memoryLt *string) { 951 o.MemoryLt = memoryLt 952 } 953 954 // WithMemoryLte adds the memoryLte to the virtualization virtual machines list params 955 func (o *VirtualizationVirtualMachinesListParams) WithMemoryLte(memoryLte *string) *VirtualizationVirtualMachinesListParams { 956 o.SetMemoryLte(memoryLte) 957 return o 958 } 959 960 // SetMemoryLte adds the memoryLte to the virtualization virtual machines list params 961 func (o *VirtualizationVirtualMachinesListParams) SetMemoryLte(memoryLte *string) { 962 o.MemoryLte = memoryLte 963 } 964 965 // WithMemoryn adds the memoryn to the virtualization virtual machines list params 966 func (o *VirtualizationVirtualMachinesListParams) WithMemoryn(memoryn *string) *VirtualizationVirtualMachinesListParams { 967 o.SetMemoryn(memoryn) 968 return o 969 } 970 971 // SetMemoryn adds the memoryN to the virtualization virtual machines list params 972 func (o *VirtualizationVirtualMachinesListParams) SetMemoryn(memoryn *string) { 973 o.Memoryn = memoryn 974 } 975 976 // WithName adds the name to the virtualization virtual machines list params 977 func (o *VirtualizationVirtualMachinesListParams) WithName(name *string) *VirtualizationVirtualMachinesListParams { 978 o.SetName(name) 979 return o 980 } 981 982 // SetName adds the name to the virtualization virtual machines list params 983 func (o *VirtualizationVirtualMachinesListParams) SetName(name *string) { 984 o.Name = name 985 } 986 987 // WithNameEmpty adds the nameEmpty to the virtualization virtual machines list params 988 func (o *VirtualizationVirtualMachinesListParams) WithNameEmpty(nameEmpty *string) *VirtualizationVirtualMachinesListParams { 989 o.SetNameEmpty(nameEmpty) 990 return o 991 } 992 993 // SetNameEmpty adds the nameEmpty to the virtualization virtual machines list params 994 func (o *VirtualizationVirtualMachinesListParams) SetNameEmpty(nameEmpty *string) { 995 o.NameEmpty = nameEmpty 996 } 997 998 // WithNameIc adds the nameIc to the virtualization virtual machines list params 999 func (o *VirtualizationVirtualMachinesListParams) WithNameIc(nameIc *string) *VirtualizationVirtualMachinesListParams { 1000 o.SetNameIc(nameIc) 1001 return o 1002 } 1003 1004 // SetNameIc adds the nameIc to the virtualization virtual machines list params 1005 func (o *VirtualizationVirtualMachinesListParams) SetNameIc(nameIc *string) { 1006 o.NameIc = nameIc 1007 } 1008 1009 // WithNameIe adds the nameIe to the virtualization virtual machines list params 1010 func (o *VirtualizationVirtualMachinesListParams) WithNameIe(nameIe *string) *VirtualizationVirtualMachinesListParams { 1011 o.SetNameIe(nameIe) 1012 return o 1013 } 1014 1015 // SetNameIe adds the nameIe to the virtualization virtual machines list params 1016 func (o *VirtualizationVirtualMachinesListParams) SetNameIe(nameIe *string) { 1017 o.NameIe = nameIe 1018 } 1019 1020 // WithNameIew adds the nameIew to the virtualization virtual machines list params 1021 func (o *VirtualizationVirtualMachinesListParams) WithNameIew(nameIew *string) *VirtualizationVirtualMachinesListParams { 1022 o.SetNameIew(nameIew) 1023 return o 1024 } 1025 1026 // SetNameIew adds the nameIew to the virtualization virtual machines list params 1027 func (o *VirtualizationVirtualMachinesListParams) SetNameIew(nameIew *string) { 1028 o.NameIew = nameIew 1029 } 1030 1031 // WithNameIsw adds the nameIsw to the virtualization virtual machines list params 1032 func (o *VirtualizationVirtualMachinesListParams) WithNameIsw(nameIsw *string) *VirtualizationVirtualMachinesListParams { 1033 o.SetNameIsw(nameIsw) 1034 return o 1035 } 1036 1037 // SetNameIsw adds the nameIsw to the virtualization virtual machines list params 1038 func (o *VirtualizationVirtualMachinesListParams) SetNameIsw(nameIsw *string) { 1039 o.NameIsw = nameIsw 1040 } 1041 1042 // WithNamen adds the namen to the virtualization virtual machines list params 1043 func (o *VirtualizationVirtualMachinesListParams) WithNamen(namen *string) *VirtualizationVirtualMachinesListParams { 1044 o.SetNamen(namen) 1045 return o 1046 } 1047 1048 // SetNamen adds the nameN to the virtualization virtual machines list params 1049 func (o *VirtualizationVirtualMachinesListParams) SetNamen(namen *string) { 1050 o.Namen = namen 1051 } 1052 1053 // WithNameNic adds the nameNic to the virtualization virtual machines list params 1054 func (o *VirtualizationVirtualMachinesListParams) WithNameNic(nameNic *string) *VirtualizationVirtualMachinesListParams { 1055 o.SetNameNic(nameNic) 1056 return o 1057 } 1058 1059 // SetNameNic adds the nameNic to the virtualization virtual machines list params 1060 func (o *VirtualizationVirtualMachinesListParams) SetNameNic(nameNic *string) { 1061 o.NameNic = nameNic 1062 } 1063 1064 // WithNameNie adds the nameNie to the virtualization virtual machines list params 1065 func (o *VirtualizationVirtualMachinesListParams) WithNameNie(nameNie *string) *VirtualizationVirtualMachinesListParams { 1066 o.SetNameNie(nameNie) 1067 return o 1068 } 1069 1070 // SetNameNie adds the nameNie to the virtualization virtual machines list params 1071 func (o *VirtualizationVirtualMachinesListParams) SetNameNie(nameNie *string) { 1072 o.NameNie = nameNie 1073 } 1074 1075 // WithNameNiew adds the nameNiew to the virtualization virtual machines list params 1076 func (o *VirtualizationVirtualMachinesListParams) WithNameNiew(nameNiew *string) *VirtualizationVirtualMachinesListParams { 1077 o.SetNameNiew(nameNiew) 1078 return o 1079 } 1080 1081 // SetNameNiew adds the nameNiew to the virtualization virtual machines list params 1082 func (o *VirtualizationVirtualMachinesListParams) SetNameNiew(nameNiew *string) { 1083 o.NameNiew = nameNiew 1084 } 1085 1086 // WithNameNisw adds the nameNisw to the virtualization virtual machines list params 1087 func (o *VirtualizationVirtualMachinesListParams) WithNameNisw(nameNisw *string) *VirtualizationVirtualMachinesListParams { 1088 o.SetNameNisw(nameNisw) 1089 return o 1090 } 1091 1092 // SetNameNisw adds the nameNisw to the virtualization virtual machines list params 1093 func (o *VirtualizationVirtualMachinesListParams) SetNameNisw(nameNisw *string) { 1094 o.NameNisw = nameNisw 1095 } 1096 1097 // WithOffset adds the offset to the virtualization virtual machines list params 1098 func (o *VirtualizationVirtualMachinesListParams) WithOffset(offset *int64) *VirtualizationVirtualMachinesListParams { 1099 o.SetOffset(offset) 1100 return o 1101 } 1102 1103 // SetOffset adds the offset to the virtualization virtual machines list params 1104 func (o *VirtualizationVirtualMachinesListParams) SetOffset(offset *int64) { 1105 o.Offset = offset 1106 } 1107 1108 // WithPlatform adds the platform to the virtualization virtual machines list params 1109 func (o *VirtualizationVirtualMachinesListParams) WithPlatform(platform *string) *VirtualizationVirtualMachinesListParams { 1110 o.SetPlatform(platform) 1111 return o 1112 } 1113 1114 // SetPlatform adds the platform to the virtualization virtual machines list params 1115 func (o *VirtualizationVirtualMachinesListParams) SetPlatform(platform *string) { 1116 o.Platform = platform 1117 } 1118 1119 // WithPlatformn adds the platformn to the virtualization virtual machines list params 1120 func (o *VirtualizationVirtualMachinesListParams) WithPlatformn(platformn *string) *VirtualizationVirtualMachinesListParams { 1121 o.SetPlatformn(platformn) 1122 return o 1123 } 1124 1125 // SetPlatformn adds the platformN to the virtualization virtual machines list params 1126 func (o *VirtualizationVirtualMachinesListParams) SetPlatformn(platformn *string) { 1127 o.Platformn = platformn 1128 } 1129 1130 // WithPlatformID adds the platformID to the virtualization virtual machines list params 1131 func (o *VirtualizationVirtualMachinesListParams) WithPlatformID(platformID *string) *VirtualizationVirtualMachinesListParams { 1132 o.SetPlatformID(platformID) 1133 return o 1134 } 1135 1136 // SetPlatformID adds the platformId to the virtualization virtual machines list params 1137 func (o *VirtualizationVirtualMachinesListParams) SetPlatformID(platformID *string) { 1138 o.PlatformID = platformID 1139 } 1140 1141 // WithPlatformIDn adds the platformIDn to the virtualization virtual machines list params 1142 func (o *VirtualizationVirtualMachinesListParams) WithPlatformIDn(platformIDn *string) *VirtualizationVirtualMachinesListParams { 1143 o.SetPlatformIDn(platformIDn) 1144 return o 1145 } 1146 1147 // SetPlatformIDn adds the platformIdN to the virtualization virtual machines list params 1148 func (o *VirtualizationVirtualMachinesListParams) SetPlatformIDn(platformIDn *string) { 1149 o.PlatformIDn = platformIDn 1150 } 1151 1152 // WithQ adds the q to the virtualization virtual machines list params 1153 func (o *VirtualizationVirtualMachinesListParams) WithQ(q *string) *VirtualizationVirtualMachinesListParams { 1154 o.SetQ(q) 1155 return o 1156 } 1157 1158 // SetQ adds the q to the virtualization virtual machines list params 1159 func (o *VirtualizationVirtualMachinesListParams) SetQ(q *string) { 1160 o.Q = q 1161 } 1162 1163 // WithRegion adds the region to the virtualization virtual machines list params 1164 func (o *VirtualizationVirtualMachinesListParams) WithRegion(region *string) *VirtualizationVirtualMachinesListParams { 1165 o.SetRegion(region) 1166 return o 1167 } 1168 1169 // SetRegion adds the region to the virtualization virtual machines list params 1170 func (o *VirtualizationVirtualMachinesListParams) SetRegion(region *string) { 1171 o.Region = region 1172 } 1173 1174 // WithRegionn adds the regionn to the virtualization virtual machines list params 1175 func (o *VirtualizationVirtualMachinesListParams) WithRegionn(regionn *string) *VirtualizationVirtualMachinesListParams { 1176 o.SetRegionn(regionn) 1177 return o 1178 } 1179 1180 // SetRegionn adds the regionN to the virtualization virtual machines list params 1181 func (o *VirtualizationVirtualMachinesListParams) SetRegionn(regionn *string) { 1182 o.Regionn = regionn 1183 } 1184 1185 // WithRegionID adds the regionID to the virtualization virtual machines list params 1186 func (o *VirtualizationVirtualMachinesListParams) WithRegionID(regionID *string) *VirtualizationVirtualMachinesListParams { 1187 o.SetRegionID(regionID) 1188 return o 1189 } 1190 1191 // SetRegionID adds the regionId to the virtualization virtual machines list params 1192 func (o *VirtualizationVirtualMachinesListParams) SetRegionID(regionID *string) { 1193 o.RegionID = regionID 1194 } 1195 1196 // WithRegionIDn adds the regionIDn to the virtualization virtual machines list params 1197 func (o *VirtualizationVirtualMachinesListParams) WithRegionIDn(regionIDn *string) *VirtualizationVirtualMachinesListParams { 1198 o.SetRegionIDn(regionIDn) 1199 return o 1200 } 1201 1202 // SetRegionIDn adds the regionIdN to the virtualization virtual machines list params 1203 func (o *VirtualizationVirtualMachinesListParams) SetRegionIDn(regionIDn *string) { 1204 o.RegionIDn = regionIDn 1205 } 1206 1207 // WithRole adds the role to the virtualization virtual machines list params 1208 func (o *VirtualizationVirtualMachinesListParams) WithRole(role *string) *VirtualizationVirtualMachinesListParams { 1209 o.SetRole(role) 1210 return o 1211 } 1212 1213 // SetRole adds the role to the virtualization virtual machines list params 1214 func (o *VirtualizationVirtualMachinesListParams) SetRole(role *string) { 1215 o.Role = role 1216 } 1217 1218 // WithRolen adds the rolen to the virtualization virtual machines list params 1219 func (o *VirtualizationVirtualMachinesListParams) WithRolen(rolen *string) *VirtualizationVirtualMachinesListParams { 1220 o.SetRolen(rolen) 1221 return o 1222 } 1223 1224 // SetRolen adds the roleN to the virtualization virtual machines list params 1225 func (o *VirtualizationVirtualMachinesListParams) SetRolen(rolen *string) { 1226 o.Rolen = rolen 1227 } 1228 1229 // WithRoleID adds the roleID to the virtualization virtual machines list params 1230 func (o *VirtualizationVirtualMachinesListParams) WithRoleID(roleID *string) *VirtualizationVirtualMachinesListParams { 1231 o.SetRoleID(roleID) 1232 return o 1233 } 1234 1235 // SetRoleID adds the roleId to the virtualization virtual machines list params 1236 func (o *VirtualizationVirtualMachinesListParams) SetRoleID(roleID *string) { 1237 o.RoleID = roleID 1238 } 1239 1240 // WithRoleIDn adds the roleIDn to the virtualization virtual machines list params 1241 func (o *VirtualizationVirtualMachinesListParams) WithRoleIDn(roleIDn *string) *VirtualizationVirtualMachinesListParams { 1242 o.SetRoleIDn(roleIDn) 1243 return o 1244 } 1245 1246 // SetRoleIDn adds the roleIdN to the virtualization virtual machines list params 1247 func (o *VirtualizationVirtualMachinesListParams) SetRoleIDn(roleIDn *string) { 1248 o.RoleIDn = roleIDn 1249 } 1250 1251 // WithSite adds the site to the virtualization virtual machines list params 1252 func (o *VirtualizationVirtualMachinesListParams) WithSite(site *string) *VirtualizationVirtualMachinesListParams { 1253 o.SetSite(site) 1254 return o 1255 } 1256 1257 // SetSite adds the site to the virtualization virtual machines list params 1258 func (o *VirtualizationVirtualMachinesListParams) SetSite(site *string) { 1259 o.Site = site 1260 } 1261 1262 // WithSiten adds the siten to the virtualization virtual machines list params 1263 func (o *VirtualizationVirtualMachinesListParams) WithSiten(siten *string) *VirtualizationVirtualMachinesListParams { 1264 o.SetSiten(siten) 1265 return o 1266 } 1267 1268 // SetSiten adds the siteN to the virtualization virtual machines list params 1269 func (o *VirtualizationVirtualMachinesListParams) SetSiten(siten *string) { 1270 o.Siten = siten 1271 } 1272 1273 // WithSiteGroup adds the siteGroup to the virtualization virtual machines list params 1274 func (o *VirtualizationVirtualMachinesListParams) WithSiteGroup(siteGroup *string) *VirtualizationVirtualMachinesListParams { 1275 o.SetSiteGroup(siteGroup) 1276 return o 1277 } 1278 1279 // SetSiteGroup adds the siteGroup to the virtualization virtual machines list params 1280 func (o *VirtualizationVirtualMachinesListParams) SetSiteGroup(siteGroup *string) { 1281 o.SiteGroup = siteGroup 1282 } 1283 1284 // WithSiteGroupn adds the siteGroupn to the virtualization virtual machines list params 1285 func (o *VirtualizationVirtualMachinesListParams) WithSiteGroupn(siteGroupn *string) *VirtualizationVirtualMachinesListParams { 1286 o.SetSiteGroupn(siteGroupn) 1287 return o 1288 } 1289 1290 // SetSiteGroupn adds the siteGroupN to the virtualization virtual machines list params 1291 func (o *VirtualizationVirtualMachinesListParams) SetSiteGroupn(siteGroupn *string) { 1292 o.SiteGroupn = siteGroupn 1293 } 1294 1295 // WithSiteGroupID adds the siteGroupID to the virtualization virtual machines list params 1296 func (o *VirtualizationVirtualMachinesListParams) WithSiteGroupID(siteGroupID *string) *VirtualizationVirtualMachinesListParams { 1297 o.SetSiteGroupID(siteGroupID) 1298 return o 1299 } 1300 1301 // SetSiteGroupID adds the siteGroupId to the virtualization virtual machines list params 1302 func (o *VirtualizationVirtualMachinesListParams) SetSiteGroupID(siteGroupID *string) { 1303 o.SiteGroupID = siteGroupID 1304 } 1305 1306 // WithSiteGroupIDn adds the siteGroupIDn to the virtualization virtual machines list params 1307 func (o *VirtualizationVirtualMachinesListParams) WithSiteGroupIDn(siteGroupIDn *string) *VirtualizationVirtualMachinesListParams { 1308 o.SetSiteGroupIDn(siteGroupIDn) 1309 return o 1310 } 1311 1312 // SetSiteGroupIDn adds the siteGroupIdN to the virtualization virtual machines list params 1313 func (o *VirtualizationVirtualMachinesListParams) SetSiteGroupIDn(siteGroupIDn *string) { 1314 o.SiteGroupIDn = siteGroupIDn 1315 } 1316 1317 // WithSiteID adds the siteID to the virtualization virtual machines list params 1318 func (o *VirtualizationVirtualMachinesListParams) WithSiteID(siteID *string) *VirtualizationVirtualMachinesListParams { 1319 o.SetSiteID(siteID) 1320 return o 1321 } 1322 1323 // SetSiteID adds the siteId to the virtualization virtual machines list params 1324 func (o *VirtualizationVirtualMachinesListParams) SetSiteID(siteID *string) { 1325 o.SiteID = siteID 1326 } 1327 1328 // WithSiteIDn adds the siteIDn to the virtualization virtual machines list params 1329 func (o *VirtualizationVirtualMachinesListParams) WithSiteIDn(siteIDn *string) *VirtualizationVirtualMachinesListParams { 1330 o.SetSiteIDn(siteIDn) 1331 return o 1332 } 1333 1334 // SetSiteIDn adds the siteIdN to the virtualization virtual machines list params 1335 func (o *VirtualizationVirtualMachinesListParams) SetSiteIDn(siteIDn *string) { 1336 o.SiteIDn = siteIDn 1337 } 1338 1339 // WithStatus adds the status to the virtualization virtual machines list params 1340 func (o *VirtualizationVirtualMachinesListParams) WithStatus(status *string) *VirtualizationVirtualMachinesListParams { 1341 o.SetStatus(status) 1342 return o 1343 } 1344 1345 // SetStatus adds the status to the virtualization virtual machines list params 1346 func (o *VirtualizationVirtualMachinesListParams) SetStatus(status *string) { 1347 o.Status = status 1348 } 1349 1350 // WithStatusn adds the statusn to the virtualization virtual machines list params 1351 func (o *VirtualizationVirtualMachinesListParams) WithStatusn(statusn *string) *VirtualizationVirtualMachinesListParams { 1352 o.SetStatusn(statusn) 1353 return o 1354 } 1355 1356 // SetStatusn adds the statusN to the virtualization virtual machines list params 1357 func (o *VirtualizationVirtualMachinesListParams) SetStatusn(statusn *string) { 1358 o.Statusn = statusn 1359 } 1360 1361 // WithTag adds the tag to the virtualization virtual machines list params 1362 func (o *VirtualizationVirtualMachinesListParams) WithTag(tag *string) *VirtualizationVirtualMachinesListParams { 1363 o.SetTag(tag) 1364 return o 1365 } 1366 1367 // SetTag adds the tag to the virtualization virtual machines list params 1368 func (o *VirtualizationVirtualMachinesListParams) SetTag(tag *string) { 1369 o.Tag = tag 1370 } 1371 1372 // WithTagn adds the tagn to the virtualization virtual machines list params 1373 func (o *VirtualizationVirtualMachinesListParams) WithTagn(tagn *string) *VirtualizationVirtualMachinesListParams { 1374 o.SetTagn(tagn) 1375 return o 1376 } 1377 1378 // SetTagn adds the tagN to the virtualization virtual machines list params 1379 func (o *VirtualizationVirtualMachinesListParams) SetTagn(tagn *string) { 1380 o.Tagn = tagn 1381 } 1382 1383 // WithTenant adds the tenant to the virtualization virtual machines list params 1384 func (o *VirtualizationVirtualMachinesListParams) WithTenant(tenant *string) *VirtualizationVirtualMachinesListParams { 1385 o.SetTenant(tenant) 1386 return o 1387 } 1388 1389 // SetTenant adds the tenant to the virtualization virtual machines list params 1390 func (o *VirtualizationVirtualMachinesListParams) SetTenant(tenant *string) { 1391 o.Tenant = tenant 1392 } 1393 1394 // WithTenantn adds the tenantn to the virtualization virtual machines list params 1395 func (o *VirtualizationVirtualMachinesListParams) WithTenantn(tenantn *string) *VirtualizationVirtualMachinesListParams { 1396 o.SetTenantn(tenantn) 1397 return o 1398 } 1399 1400 // SetTenantn adds the tenantN to the virtualization virtual machines list params 1401 func (o *VirtualizationVirtualMachinesListParams) SetTenantn(tenantn *string) { 1402 o.Tenantn = tenantn 1403 } 1404 1405 // WithTenantGroup adds the tenantGroup to the virtualization virtual machines list params 1406 func (o *VirtualizationVirtualMachinesListParams) WithTenantGroup(tenantGroup *string) *VirtualizationVirtualMachinesListParams { 1407 o.SetTenantGroup(tenantGroup) 1408 return o 1409 } 1410 1411 // SetTenantGroup adds the tenantGroup to the virtualization virtual machines list params 1412 func (o *VirtualizationVirtualMachinesListParams) SetTenantGroup(tenantGroup *string) { 1413 o.TenantGroup = tenantGroup 1414 } 1415 1416 // WithTenantGroupn adds the tenantGroupn to the virtualization virtual machines list params 1417 func (o *VirtualizationVirtualMachinesListParams) WithTenantGroupn(tenantGroupn *string) *VirtualizationVirtualMachinesListParams { 1418 o.SetTenantGroupn(tenantGroupn) 1419 return o 1420 } 1421 1422 // SetTenantGroupn adds the tenantGroupN to the virtualization virtual machines list params 1423 func (o *VirtualizationVirtualMachinesListParams) SetTenantGroupn(tenantGroupn *string) { 1424 o.TenantGroupn = tenantGroupn 1425 } 1426 1427 // WithTenantGroupID adds the tenantGroupID to the virtualization virtual machines list params 1428 func (o *VirtualizationVirtualMachinesListParams) WithTenantGroupID(tenantGroupID *string) *VirtualizationVirtualMachinesListParams { 1429 o.SetTenantGroupID(tenantGroupID) 1430 return o 1431 } 1432 1433 // SetTenantGroupID adds the tenantGroupId to the virtualization virtual machines list params 1434 func (o *VirtualizationVirtualMachinesListParams) SetTenantGroupID(tenantGroupID *string) { 1435 o.TenantGroupID = tenantGroupID 1436 } 1437 1438 // WithTenantGroupIDn adds the tenantGroupIDn to the virtualization virtual machines list params 1439 func (o *VirtualizationVirtualMachinesListParams) WithTenantGroupIDn(tenantGroupIDn *string) *VirtualizationVirtualMachinesListParams { 1440 o.SetTenantGroupIDn(tenantGroupIDn) 1441 return o 1442 } 1443 1444 // SetTenantGroupIDn adds the tenantGroupIdN to the virtualization virtual machines list params 1445 func (o *VirtualizationVirtualMachinesListParams) SetTenantGroupIDn(tenantGroupIDn *string) { 1446 o.TenantGroupIDn = tenantGroupIDn 1447 } 1448 1449 // WithTenantID adds the tenantID to the virtualization virtual machines list params 1450 func (o *VirtualizationVirtualMachinesListParams) WithTenantID(tenantID *string) *VirtualizationVirtualMachinesListParams { 1451 o.SetTenantID(tenantID) 1452 return o 1453 } 1454 1455 // SetTenantID adds the tenantId to the virtualization virtual machines list params 1456 func (o *VirtualizationVirtualMachinesListParams) SetTenantID(tenantID *string) { 1457 o.TenantID = tenantID 1458 } 1459 1460 // WithTenantIDn adds the tenantIDn to the virtualization virtual machines list params 1461 func (o *VirtualizationVirtualMachinesListParams) WithTenantIDn(tenantIDn *string) *VirtualizationVirtualMachinesListParams { 1462 o.SetTenantIDn(tenantIDn) 1463 return o 1464 } 1465 1466 // SetTenantIDn adds the tenantIdN to the virtualization virtual machines list params 1467 func (o *VirtualizationVirtualMachinesListParams) SetTenantIDn(tenantIDn *string) { 1468 o.TenantIDn = tenantIDn 1469 } 1470 1471 // WithVcpus adds the vcpus to the virtualization virtual machines list params 1472 func (o *VirtualizationVirtualMachinesListParams) WithVcpus(vcpus *string) *VirtualizationVirtualMachinesListParams { 1473 o.SetVcpus(vcpus) 1474 return o 1475 } 1476 1477 // SetVcpus adds the vcpus to the virtualization virtual machines list params 1478 func (o *VirtualizationVirtualMachinesListParams) SetVcpus(vcpus *string) { 1479 o.Vcpus = vcpus 1480 } 1481 1482 // WithVcpusGt adds the vcpusGt to the virtualization virtual machines list params 1483 func (o *VirtualizationVirtualMachinesListParams) WithVcpusGt(vcpusGt *string) *VirtualizationVirtualMachinesListParams { 1484 o.SetVcpusGt(vcpusGt) 1485 return o 1486 } 1487 1488 // SetVcpusGt adds the vcpusGt to the virtualization virtual machines list params 1489 func (o *VirtualizationVirtualMachinesListParams) SetVcpusGt(vcpusGt *string) { 1490 o.VcpusGt = vcpusGt 1491 } 1492 1493 // WithVcpusGte adds the vcpusGte to the virtualization virtual machines list params 1494 func (o *VirtualizationVirtualMachinesListParams) WithVcpusGte(vcpusGte *string) *VirtualizationVirtualMachinesListParams { 1495 o.SetVcpusGte(vcpusGte) 1496 return o 1497 } 1498 1499 // SetVcpusGte adds the vcpusGte to the virtualization virtual machines list params 1500 func (o *VirtualizationVirtualMachinesListParams) SetVcpusGte(vcpusGte *string) { 1501 o.VcpusGte = vcpusGte 1502 } 1503 1504 // WithVcpusLt adds the vcpusLt to the virtualization virtual machines list params 1505 func (o *VirtualizationVirtualMachinesListParams) WithVcpusLt(vcpusLt *string) *VirtualizationVirtualMachinesListParams { 1506 o.SetVcpusLt(vcpusLt) 1507 return o 1508 } 1509 1510 // SetVcpusLt adds the vcpusLt to the virtualization virtual machines list params 1511 func (o *VirtualizationVirtualMachinesListParams) SetVcpusLt(vcpusLt *string) { 1512 o.VcpusLt = vcpusLt 1513 } 1514 1515 // WithVcpusLte adds the vcpusLte to the virtualization virtual machines list params 1516 func (o *VirtualizationVirtualMachinesListParams) WithVcpusLte(vcpusLte *string) *VirtualizationVirtualMachinesListParams { 1517 o.SetVcpusLte(vcpusLte) 1518 return o 1519 } 1520 1521 // SetVcpusLte adds the vcpusLte to the virtualization virtual machines list params 1522 func (o *VirtualizationVirtualMachinesListParams) SetVcpusLte(vcpusLte *string) { 1523 o.VcpusLte = vcpusLte 1524 } 1525 1526 // WithVcpusn adds the vcpusn to the virtualization virtual machines list params 1527 func (o *VirtualizationVirtualMachinesListParams) WithVcpusn(vcpusn *string) *VirtualizationVirtualMachinesListParams { 1528 o.SetVcpusn(vcpusn) 1529 return o 1530 } 1531 1532 // SetVcpusn adds the vcpusN to the virtualization virtual machines list params 1533 func (o *VirtualizationVirtualMachinesListParams) SetVcpusn(vcpusn *string) { 1534 o.Vcpusn = vcpusn 1535 } 1536 1537 // WriteToRequest writes these params to a swagger request 1538 func (o *VirtualizationVirtualMachinesListParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { 1539 1540 if err := r.SetTimeout(o.timeout); err != nil { 1541 return err 1542 } 1543 var res []error 1544 1545 if o.Cluster != nil { 1546 1547 // query param cluster 1548 var qrCluster string 1549 1550 if o.Cluster != nil { 1551 qrCluster = *o.Cluster 1552 } 1553 qCluster := qrCluster 1554 if qCluster != "" { 1555 1556 if err := r.SetQueryParam("cluster", qCluster); err != nil { 1557 return err 1558 } 1559 } 1560 } 1561 1562 if o.Clustern != nil { 1563 1564 // query param cluster__n 1565 var qrClustern string 1566 1567 if o.Clustern != nil { 1568 qrClustern = *o.Clustern 1569 } 1570 qClustern := qrClustern 1571 if qClustern != "" { 1572 1573 if err := r.SetQueryParam("cluster__n", qClustern); err != nil { 1574 return err 1575 } 1576 } 1577 } 1578 1579 if o.ClusterGroup != nil { 1580 1581 // query param cluster_group 1582 var qrClusterGroup string 1583 1584 if o.ClusterGroup != nil { 1585 qrClusterGroup = *o.ClusterGroup 1586 } 1587 qClusterGroup := qrClusterGroup 1588 if qClusterGroup != "" { 1589 1590 if err := r.SetQueryParam("cluster_group", qClusterGroup); err != nil { 1591 return err 1592 } 1593 } 1594 } 1595 1596 if o.ClusterGroupn != nil { 1597 1598 // query param cluster_group__n 1599 var qrClusterGroupn string 1600 1601 if o.ClusterGroupn != nil { 1602 qrClusterGroupn = *o.ClusterGroupn 1603 } 1604 qClusterGroupn := qrClusterGroupn 1605 if qClusterGroupn != "" { 1606 1607 if err := r.SetQueryParam("cluster_group__n", qClusterGroupn); err != nil { 1608 return err 1609 } 1610 } 1611 } 1612 1613 if o.ClusterGroupID != nil { 1614 1615 // query param cluster_group_id 1616 var qrClusterGroupID string 1617 1618 if o.ClusterGroupID != nil { 1619 qrClusterGroupID = *o.ClusterGroupID 1620 } 1621 qClusterGroupID := qrClusterGroupID 1622 if qClusterGroupID != "" { 1623 1624 if err := r.SetQueryParam("cluster_group_id", qClusterGroupID); err != nil { 1625 return err 1626 } 1627 } 1628 } 1629 1630 if o.ClusterGroupIDn != nil { 1631 1632 // query param cluster_group_id__n 1633 var qrClusterGroupIDn string 1634 1635 if o.ClusterGroupIDn != nil { 1636 qrClusterGroupIDn = *o.ClusterGroupIDn 1637 } 1638 qClusterGroupIDn := qrClusterGroupIDn 1639 if qClusterGroupIDn != "" { 1640 1641 if err := r.SetQueryParam("cluster_group_id__n", qClusterGroupIDn); err != nil { 1642 return err 1643 } 1644 } 1645 } 1646 1647 if o.ClusterID != nil { 1648 1649 // query param cluster_id 1650 var qrClusterID string 1651 1652 if o.ClusterID != nil { 1653 qrClusterID = *o.ClusterID 1654 } 1655 qClusterID := qrClusterID 1656 if qClusterID != "" { 1657 1658 if err := r.SetQueryParam("cluster_id", qClusterID); err != nil { 1659 return err 1660 } 1661 } 1662 } 1663 1664 if o.ClusterIDn != nil { 1665 1666 // query param cluster_id__n 1667 var qrClusterIDn string 1668 1669 if o.ClusterIDn != nil { 1670 qrClusterIDn = *o.ClusterIDn 1671 } 1672 qClusterIDn := qrClusterIDn 1673 if qClusterIDn != "" { 1674 1675 if err := r.SetQueryParam("cluster_id__n", qClusterIDn); err != nil { 1676 return err 1677 } 1678 } 1679 } 1680 1681 if o.ClusterType != nil { 1682 1683 // query param cluster_type 1684 var qrClusterType string 1685 1686 if o.ClusterType != nil { 1687 qrClusterType = *o.ClusterType 1688 } 1689 qClusterType := qrClusterType 1690 if qClusterType != "" { 1691 1692 if err := r.SetQueryParam("cluster_type", qClusterType); err != nil { 1693 return err 1694 } 1695 } 1696 } 1697 1698 if o.ClusterTypen != nil { 1699 1700 // query param cluster_type__n 1701 var qrClusterTypen string 1702 1703 if o.ClusterTypen != nil { 1704 qrClusterTypen = *o.ClusterTypen 1705 } 1706 qClusterTypen := qrClusterTypen 1707 if qClusterTypen != "" { 1708 1709 if err := r.SetQueryParam("cluster_type__n", qClusterTypen); err != nil { 1710 return err 1711 } 1712 } 1713 } 1714 1715 if o.ClusterTypeID != nil { 1716 1717 // query param cluster_type_id 1718 var qrClusterTypeID string 1719 1720 if o.ClusterTypeID != nil { 1721 qrClusterTypeID = *o.ClusterTypeID 1722 } 1723 qClusterTypeID := qrClusterTypeID 1724 if qClusterTypeID != "" { 1725 1726 if err := r.SetQueryParam("cluster_type_id", qClusterTypeID); err != nil { 1727 return err 1728 } 1729 } 1730 } 1731 1732 if o.ClusterTypeIDn != nil { 1733 1734 // query param cluster_type_id__n 1735 var qrClusterTypeIDn string 1736 1737 if o.ClusterTypeIDn != nil { 1738 qrClusterTypeIDn = *o.ClusterTypeIDn 1739 } 1740 qClusterTypeIDn := qrClusterTypeIDn 1741 if qClusterTypeIDn != "" { 1742 1743 if err := r.SetQueryParam("cluster_type_id__n", qClusterTypeIDn); err != nil { 1744 return err 1745 } 1746 } 1747 } 1748 1749 if o.Created != nil { 1750 1751 // query param created 1752 var qrCreated string 1753 1754 if o.Created != nil { 1755 qrCreated = *o.Created 1756 } 1757 qCreated := qrCreated 1758 if qCreated != "" { 1759 1760 if err := r.SetQueryParam("created", qCreated); err != nil { 1761 return err 1762 } 1763 } 1764 } 1765 1766 if o.CreatedGte != nil { 1767 1768 // query param created__gte 1769 var qrCreatedGte string 1770 1771 if o.CreatedGte != nil { 1772 qrCreatedGte = *o.CreatedGte 1773 } 1774 qCreatedGte := qrCreatedGte 1775 if qCreatedGte != "" { 1776 1777 if err := r.SetQueryParam("created__gte", qCreatedGte); err != nil { 1778 return err 1779 } 1780 } 1781 } 1782 1783 if o.CreatedLte != nil { 1784 1785 // query param created__lte 1786 var qrCreatedLte string 1787 1788 if o.CreatedLte != nil { 1789 qrCreatedLte = *o.CreatedLte 1790 } 1791 qCreatedLte := qrCreatedLte 1792 if qCreatedLte != "" { 1793 1794 if err := r.SetQueryParam("created__lte", qCreatedLte); err != nil { 1795 return err 1796 } 1797 } 1798 } 1799 1800 if o.Disk != nil { 1801 1802 // query param disk 1803 var qrDisk string 1804 1805 if o.Disk != nil { 1806 qrDisk = *o.Disk 1807 } 1808 qDisk := qrDisk 1809 if qDisk != "" { 1810 1811 if err := r.SetQueryParam("disk", qDisk); err != nil { 1812 return err 1813 } 1814 } 1815 } 1816 1817 if o.DiskGt != nil { 1818 1819 // query param disk__gt 1820 var qrDiskGt string 1821 1822 if o.DiskGt != nil { 1823 qrDiskGt = *o.DiskGt 1824 } 1825 qDiskGt := qrDiskGt 1826 if qDiskGt != "" { 1827 1828 if err := r.SetQueryParam("disk__gt", qDiskGt); err != nil { 1829 return err 1830 } 1831 } 1832 } 1833 1834 if o.DiskGte != nil { 1835 1836 // query param disk__gte 1837 var qrDiskGte string 1838 1839 if o.DiskGte != nil { 1840 qrDiskGte = *o.DiskGte 1841 } 1842 qDiskGte := qrDiskGte 1843 if qDiskGte != "" { 1844 1845 if err := r.SetQueryParam("disk__gte", qDiskGte); err != nil { 1846 return err 1847 } 1848 } 1849 } 1850 1851 if o.DiskLt != nil { 1852 1853 // query param disk__lt 1854 var qrDiskLt string 1855 1856 if o.DiskLt != nil { 1857 qrDiskLt = *o.DiskLt 1858 } 1859 qDiskLt := qrDiskLt 1860 if qDiskLt != "" { 1861 1862 if err := r.SetQueryParam("disk__lt", qDiskLt); err != nil { 1863 return err 1864 } 1865 } 1866 } 1867 1868 if o.DiskLte != nil { 1869 1870 // query param disk__lte 1871 var qrDiskLte string 1872 1873 if o.DiskLte != nil { 1874 qrDiskLte = *o.DiskLte 1875 } 1876 qDiskLte := qrDiskLte 1877 if qDiskLte != "" { 1878 1879 if err := r.SetQueryParam("disk__lte", qDiskLte); err != nil { 1880 return err 1881 } 1882 } 1883 } 1884 1885 if o.Diskn != nil { 1886 1887 // query param disk__n 1888 var qrDiskn string 1889 1890 if o.Diskn != nil { 1891 qrDiskn = *o.Diskn 1892 } 1893 qDiskn := qrDiskn 1894 if qDiskn != "" { 1895 1896 if err := r.SetQueryParam("disk__n", qDiskn); err != nil { 1897 return err 1898 } 1899 } 1900 } 1901 1902 if o.HasPrimaryIP != nil { 1903 1904 // query param has_primary_ip 1905 var qrHasPrimaryIP string 1906 1907 if o.HasPrimaryIP != nil { 1908 qrHasPrimaryIP = *o.HasPrimaryIP 1909 } 1910 qHasPrimaryIP := qrHasPrimaryIP 1911 if qHasPrimaryIP != "" { 1912 1913 if err := r.SetQueryParam("has_primary_ip", qHasPrimaryIP); err != nil { 1914 return err 1915 } 1916 } 1917 } 1918 1919 if o.ID != nil { 1920 1921 // query param id 1922 var qrID string 1923 1924 if o.ID != nil { 1925 qrID = *o.ID 1926 } 1927 qID := qrID 1928 if qID != "" { 1929 1930 if err := r.SetQueryParam("id", qID); err != nil { 1931 return err 1932 } 1933 } 1934 } 1935 1936 if o.IDGt != nil { 1937 1938 // query param id__gt 1939 var qrIDGt string 1940 1941 if o.IDGt != nil { 1942 qrIDGt = *o.IDGt 1943 } 1944 qIDGt := qrIDGt 1945 if qIDGt != "" { 1946 1947 if err := r.SetQueryParam("id__gt", qIDGt); err != nil { 1948 return err 1949 } 1950 } 1951 } 1952 1953 if o.IDGte != nil { 1954 1955 // query param id__gte 1956 var qrIDGte string 1957 1958 if o.IDGte != nil { 1959 qrIDGte = *o.IDGte 1960 } 1961 qIDGte := qrIDGte 1962 if qIDGte != "" { 1963 1964 if err := r.SetQueryParam("id__gte", qIDGte); err != nil { 1965 return err 1966 } 1967 } 1968 } 1969 1970 if o.IDLt != nil { 1971 1972 // query param id__lt 1973 var qrIDLt string 1974 1975 if o.IDLt != nil { 1976 qrIDLt = *o.IDLt 1977 } 1978 qIDLt := qrIDLt 1979 if qIDLt != "" { 1980 1981 if err := r.SetQueryParam("id__lt", qIDLt); err != nil { 1982 return err 1983 } 1984 } 1985 } 1986 1987 if o.IDLte != nil { 1988 1989 // query param id__lte 1990 var qrIDLte string 1991 1992 if o.IDLte != nil { 1993 qrIDLte = *o.IDLte 1994 } 1995 qIDLte := qrIDLte 1996 if qIDLte != "" { 1997 1998 if err := r.SetQueryParam("id__lte", qIDLte); err != nil { 1999 return err 2000 } 2001 } 2002 } 2003 2004 if o.IDn != nil { 2005 2006 // query param id__n 2007 var qrIDn string 2008 2009 if o.IDn != nil { 2010 qrIDn = *o.IDn 2011 } 2012 qIDn := qrIDn 2013 if qIDn != "" { 2014 2015 if err := r.SetQueryParam("id__n", qIDn); err != nil { 2016 return err 2017 } 2018 } 2019 } 2020 2021 if o.LastUpdated != nil { 2022 2023 // query param last_updated 2024 var qrLastUpdated string 2025 2026 if o.LastUpdated != nil { 2027 qrLastUpdated = *o.LastUpdated 2028 } 2029 qLastUpdated := qrLastUpdated 2030 if qLastUpdated != "" { 2031 2032 if err := r.SetQueryParam("last_updated", qLastUpdated); err != nil { 2033 return err 2034 } 2035 } 2036 } 2037 2038 if o.LastUpdatedGte != nil { 2039 2040 // query param last_updated__gte 2041 var qrLastUpdatedGte string 2042 2043 if o.LastUpdatedGte != nil { 2044 qrLastUpdatedGte = *o.LastUpdatedGte 2045 } 2046 qLastUpdatedGte := qrLastUpdatedGte 2047 if qLastUpdatedGte != "" { 2048 2049 if err := r.SetQueryParam("last_updated__gte", qLastUpdatedGte); err != nil { 2050 return err 2051 } 2052 } 2053 } 2054 2055 if o.LastUpdatedLte != nil { 2056 2057 // query param last_updated__lte 2058 var qrLastUpdatedLte string 2059 2060 if o.LastUpdatedLte != nil { 2061 qrLastUpdatedLte = *o.LastUpdatedLte 2062 } 2063 qLastUpdatedLte := qrLastUpdatedLte 2064 if qLastUpdatedLte != "" { 2065 2066 if err := r.SetQueryParam("last_updated__lte", qLastUpdatedLte); err != nil { 2067 return err 2068 } 2069 } 2070 } 2071 2072 if o.Limit != nil { 2073 2074 // query param limit 2075 var qrLimit int64 2076 2077 if o.Limit != nil { 2078 qrLimit = *o.Limit 2079 } 2080 qLimit := swag.FormatInt64(qrLimit) 2081 if qLimit != "" { 2082 2083 if err := r.SetQueryParam("limit", qLimit); err != nil { 2084 return err 2085 } 2086 } 2087 } 2088 2089 if o.LocalContextData != nil { 2090 2091 // query param local_context_data 2092 var qrLocalContextData string 2093 2094 if o.LocalContextData != nil { 2095 qrLocalContextData = *o.LocalContextData 2096 } 2097 qLocalContextData := qrLocalContextData 2098 if qLocalContextData != "" { 2099 2100 if err := r.SetQueryParam("local_context_data", qLocalContextData); err != nil { 2101 return err 2102 } 2103 } 2104 } 2105 2106 if o.MacAddress != nil { 2107 2108 // query param mac_address 2109 var qrMacAddress string 2110 2111 if o.MacAddress != nil { 2112 qrMacAddress = *o.MacAddress 2113 } 2114 qMacAddress := qrMacAddress 2115 if qMacAddress != "" { 2116 2117 if err := r.SetQueryParam("mac_address", qMacAddress); err != nil { 2118 return err 2119 } 2120 } 2121 } 2122 2123 if o.MacAddressIc != nil { 2124 2125 // query param mac_address__ic 2126 var qrMacAddressIc string 2127 2128 if o.MacAddressIc != nil { 2129 qrMacAddressIc = *o.MacAddressIc 2130 } 2131 qMacAddressIc := qrMacAddressIc 2132 if qMacAddressIc != "" { 2133 2134 if err := r.SetQueryParam("mac_address__ic", qMacAddressIc); err != nil { 2135 return err 2136 } 2137 } 2138 } 2139 2140 if o.MacAddressIe != nil { 2141 2142 // query param mac_address__ie 2143 var qrMacAddressIe string 2144 2145 if o.MacAddressIe != nil { 2146 qrMacAddressIe = *o.MacAddressIe 2147 } 2148 qMacAddressIe := qrMacAddressIe 2149 if qMacAddressIe != "" { 2150 2151 if err := r.SetQueryParam("mac_address__ie", qMacAddressIe); err != nil { 2152 return err 2153 } 2154 } 2155 } 2156 2157 if o.MacAddressIew != nil { 2158 2159 // query param mac_address__iew 2160 var qrMacAddressIew string 2161 2162 if o.MacAddressIew != nil { 2163 qrMacAddressIew = *o.MacAddressIew 2164 } 2165 qMacAddressIew := qrMacAddressIew 2166 if qMacAddressIew != "" { 2167 2168 if err := r.SetQueryParam("mac_address__iew", qMacAddressIew); err != nil { 2169 return err 2170 } 2171 } 2172 } 2173 2174 if o.MacAddressIsw != nil { 2175 2176 // query param mac_address__isw 2177 var qrMacAddressIsw string 2178 2179 if o.MacAddressIsw != nil { 2180 qrMacAddressIsw = *o.MacAddressIsw 2181 } 2182 qMacAddressIsw := qrMacAddressIsw 2183 if qMacAddressIsw != "" { 2184 2185 if err := r.SetQueryParam("mac_address__isw", qMacAddressIsw); err != nil { 2186 return err 2187 } 2188 } 2189 } 2190 2191 if o.MacAddressn != nil { 2192 2193 // query param mac_address__n 2194 var qrMacAddressn string 2195 2196 if o.MacAddressn != nil { 2197 qrMacAddressn = *o.MacAddressn 2198 } 2199 qMacAddressn := qrMacAddressn 2200 if qMacAddressn != "" { 2201 2202 if err := r.SetQueryParam("mac_address__n", qMacAddressn); err != nil { 2203 return err 2204 } 2205 } 2206 } 2207 2208 if o.MacAddressNic != nil { 2209 2210 // query param mac_address__nic 2211 var qrMacAddressNic string 2212 2213 if o.MacAddressNic != nil { 2214 qrMacAddressNic = *o.MacAddressNic 2215 } 2216 qMacAddressNic := qrMacAddressNic 2217 if qMacAddressNic != "" { 2218 2219 if err := r.SetQueryParam("mac_address__nic", qMacAddressNic); err != nil { 2220 return err 2221 } 2222 } 2223 } 2224 2225 if o.MacAddressNie != nil { 2226 2227 // query param mac_address__nie 2228 var qrMacAddressNie string 2229 2230 if o.MacAddressNie != nil { 2231 qrMacAddressNie = *o.MacAddressNie 2232 } 2233 qMacAddressNie := qrMacAddressNie 2234 if qMacAddressNie != "" { 2235 2236 if err := r.SetQueryParam("mac_address__nie", qMacAddressNie); err != nil { 2237 return err 2238 } 2239 } 2240 } 2241 2242 if o.MacAddressNiew != nil { 2243 2244 // query param mac_address__niew 2245 var qrMacAddressNiew string 2246 2247 if o.MacAddressNiew != nil { 2248 qrMacAddressNiew = *o.MacAddressNiew 2249 } 2250 qMacAddressNiew := qrMacAddressNiew 2251 if qMacAddressNiew != "" { 2252 2253 if err := r.SetQueryParam("mac_address__niew", qMacAddressNiew); err != nil { 2254 return err 2255 } 2256 } 2257 } 2258 2259 if o.MacAddressNisw != nil { 2260 2261 // query param mac_address__nisw 2262 var qrMacAddressNisw string 2263 2264 if o.MacAddressNisw != nil { 2265 qrMacAddressNisw = *o.MacAddressNisw 2266 } 2267 qMacAddressNisw := qrMacAddressNisw 2268 if qMacAddressNisw != "" { 2269 2270 if err := r.SetQueryParam("mac_address__nisw", qMacAddressNisw); err != nil { 2271 return err 2272 } 2273 } 2274 } 2275 2276 if o.Memory != nil { 2277 2278 // query param memory 2279 var qrMemory string 2280 2281 if o.Memory != nil { 2282 qrMemory = *o.Memory 2283 } 2284 qMemory := qrMemory 2285 if qMemory != "" { 2286 2287 if err := r.SetQueryParam("memory", qMemory); err != nil { 2288 return err 2289 } 2290 } 2291 } 2292 2293 if o.MemoryGt != nil { 2294 2295 // query param memory__gt 2296 var qrMemoryGt string 2297 2298 if o.MemoryGt != nil { 2299 qrMemoryGt = *o.MemoryGt 2300 } 2301 qMemoryGt := qrMemoryGt 2302 if qMemoryGt != "" { 2303 2304 if err := r.SetQueryParam("memory__gt", qMemoryGt); err != nil { 2305 return err 2306 } 2307 } 2308 } 2309 2310 if o.MemoryGte != nil { 2311 2312 // query param memory__gte 2313 var qrMemoryGte string 2314 2315 if o.MemoryGte != nil { 2316 qrMemoryGte = *o.MemoryGte 2317 } 2318 qMemoryGte := qrMemoryGte 2319 if qMemoryGte != "" { 2320 2321 if err := r.SetQueryParam("memory__gte", qMemoryGte); err != nil { 2322 return err 2323 } 2324 } 2325 } 2326 2327 if o.MemoryLt != nil { 2328 2329 // query param memory__lt 2330 var qrMemoryLt string 2331 2332 if o.MemoryLt != nil { 2333 qrMemoryLt = *o.MemoryLt 2334 } 2335 qMemoryLt := qrMemoryLt 2336 if qMemoryLt != "" { 2337 2338 if err := r.SetQueryParam("memory__lt", qMemoryLt); err != nil { 2339 return err 2340 } 2341 } 2342 } 2343 2344 if o.MemoryLte != nil { 2345 2346 // query param memory__lte 2347 var qrMemoryLte string 2348 2349 if o.MemoryLte != nil { 2350 qrMemoryLte = *o.MemoryLte 2351 } 2352 qMemoryLte := qrMemoryLte 2353 if qMemoryLte != "" { 2354 2355 if err := r.SetQueryParam("memory__lte", qMemoryLte); err != nil { 2356 return err 2357 } 2358 } 2359 } 2360 2361 if o.Memoryn != nil { 2362 2363 // query param memory__n 2364 var qrMemoryn string 2365 2366 if o.Memoryn != nil { 2367 qrMemoryn = *o.Memoryn 2368 } 2369 qMemoryn := qrMemoryn 2370 if qMemoryn != "" { 2371 2372 if err := r.SetQueryParam("memory__n", qMemoryn); err != nil { 2373 return err 2374 } 2375 } 2376 } 2377 2378 if o.Name != nil { 2379 2380 // query param name 2381 var qrName string 2382 2383 if o.Name != nil { 2384 qrName = *o.Name 2385 } 2386 qName := qrName 2387 if qName != "" { 2388 2389 if err := r.SetQueryParam("name", qName); err != nil { 2390 return err 2391 } 2392 } 2393 } 2394 2395 if o.NameEmpty != nil { 2396 2397 // query param name__empty 2398 var qrNameEmpty string 2399 2400 if o.NameEmpty != nil { 2401 qrNameEmpty = *o.NameEmpty 2402 } 2403 qNameEmpty := qrNameEmpty 2404 if qNameEmpty != "" { 2405 2406 if err := r.SetQueryParam("name__empty", qNameEmpty); err != nil { 2407 return err 2408 } 2409 } 2410 } 2411 2412 if o.NameIc != nil { 2413 2414 // query param name__ic 2415 var qrNameIc string 2416 2417 if o.NameIc != nil { 2418 qrNameIc = *o.NameIc 2419 } 2420 qNameIc := qrNameIc 2421 if qNameIc != "" { 2422 2423 if err := r.SetQueryParam("name__ic", qNameIc); err != nil { 2424 return err 2425 } 2426 } 2427 } 2428 2429 if o.NameIe != nil { 2430 2431 // query param name__ie 2432 var qrNameIe string 2433 2434 if o.NameIe != nil { 2435 qrNameIe = *o.NameIe 2436 } 2437 qNameIe := qrNameIe 2438 if qNameIe != "" { 2439 2440 if err := r.SetQueryParam("name__ie", qNameIe); err != nil { 2441 return err 2442 } 2443 } 2444 } 2445 2446 if o.NameIew != nil { 2447 2448 // query param name__iew 2449 var qrNameIew string 2450 2451 if o.NameIew != nil { 2452 qrNameIew = *o.NameIew 2453 } 2454 qNameIew := qrNameIew 2455 if qNameIew != "" { 2456 2457 if err := r.SetQueryParam("name__iew", qNameIew); err != nil { 2458 return err 2459 } 2460 } 2461 } 2462 2463 if o.NameIsw != nil { 2464 2465 // query param name__isw 2466 var qrNameIsw string 2467 2468 if o.NameIsw != nil { 2469 qrNameIsw = *o.NameIsw 2470 } 2471 qNameIsw := qrNameIsw 2472 if qNameIsw != "" { 2473 2474 if err := r.SetQueryParam("name__isw", qNameIsw); err != nil { 2475 return err 2476 } 2477 } 2478 } 2479 2480 if o.Namen != nil { 2481 2482 // query param name__n 2483 var qrNamen string 2484 2485 if o.Namen != nil { 2486 qrNamen = *o.Namen 2487 } 2488 qNamen := qrNamen 2489 if qNamen != "" { 2490 2491 if err := r.SetQueryParam("name__n", qNamen); err != nil { 2492 return err 2493 } 2494 } 2495 } 2496 2497 if o.NameNic != nil { 2498 2499 // query param name__nic 2500 var qrNameNic string 2501 2502 if o.NameNic != nil { 2503 qrNameNic = *o.NameNic 2504 } 2505 qNameNic := qrNameNic 2506 if qNameNic != "" { 2507 2508 if err := r.SetQueryParam("name__nic", qNameNic); err != nil { 2509 return err 2510 } 2511 } 2512 } 2513 2514 if o.NameNie != nil { 2515 2516 // query param name__nie 2517 var qrNameNie string 2518 2519 if o.NameNie != nil { 2520 qrNameNie = *o.NameNie 2521 } 2522 qNameNie := qrNameNie 2523 if qNameNie != "" { 2524 2525 if err := r.SetQueryParam("name__nie", qNameNie); err != nil { 2526 return err 2527 } 2528 } 2529 } 2530 2531 if o.NameNiew != nil { 2532 2533 // query param name__niew 2534 var qrNameNiew string 2535 2536 if o.NameNiew != nil { 2537 qrNameNiew = *o.NameNiew 2538 } 2539 qNameNiew := qrNameNiew 2540 if qNameNiew != "" { 2541 2542 if err := r.SetQueryParam("name__niew", qNameNiew); err != nil { 2543 return err 2544 } 2545 } 2546 } 2547 2548 if o.NameNisw != nil { 2549 2550 // query param name__nisw 2551 var qrNameNisw string 2552 2553 if o.NameNisw != nil { 2554 qrNameNisw = *o.NameNisw 2555 } 2556 qNameNisw := qrNameNisw 2557 if qNameNisw != "" { 2558 2559 if err := r.SetQueryParam("name__nisw", qNameNisw); err != nil { 2560 return err 2561 } 2562 } 2563 } 2564 2565 if o.Offset != nil { 2566 2567 // query param offset 2568 var qrOffset int64 2569 2570 if o.Offset != nil { 2571 qrOffset = *o.Offset 2572 } 2573 qOffset := swag.FormatInt64(qrOffset) 2574 if qOffset != "" { 2575 2576 if err := r.SetQueryParam("offset", qOffset); err != nil { 2577 return err 2578 } 2579 } 2580 } 2581 2582 if o.Platform != nil { 2583 2584 // query param platform 2585 var qrPlatform string 2586 2587 if o.Platform != nil { 2588 qrPlatform = *o.Platform 2589 } 2590 qPlatform := qrPlatform 2591 if qPlatform != "" { 2592 2593 if err := r.SetQueryParam("platform", qPlatform); err != nil { 2594 return err 2595 } 2596 } 2597 } 2598 2599 if o.Platformn != nil { 2600 2601 // query param platform__n 2602 var qrPlatformn string 2603 2604 if o.Platformn != nil { 2605 qrPlatformn = *o.Platformn 2606 } 2607 qPlatformn := qrPlatformn 2608 if qPlatformn != "" { 2609 2610 if err := r.SetQueryParam("platform__n", qPlatformn); err != nil { 2611 return err 2612 } 2613 } 2614 } 2615 2616 if o.PlatformID != nil { 2617 2618 // query param platform_id 2619 var qrPlatformID string 2620 2621 if o.PlatformID != nil { 2622 qrPlatformID = *o.PlatformID 2623 } 2624 qPlatformID := qrPlatformID 2625 if qPlatformID != "" { 2626 2627 if err := r.SetQueryParam("platform_id", qPlatformID); err != nil { 2628 return err 2629 } 2630 } 2631 } 2632 2633 if o.PlatformIDn != nil { 2634 2635 // query param platform_id__n 2636 var qrPlatformIDn string 2637 2638 if o.PlatformIDn != nil { 2639 qrPlatformIDn = *o.PlatformIDn 2640 } 2641 qPlatformIDn := qrPlatformIDn 2642 if qPlatformIDn != "" { 2643 2644 if err := r.SetQueryParam("platform_id__n", qPlatformIDn); err != nil { 2645 return err 2646 } 2647 } 2648 } 2649 2650 if o.Q != nil { 2651 2652 // query param q 2653 var qrQ string 2654 2655 if o.Q != nil { 2656 qrQ = *o.Q 2657 } 2658 qQ := qrQ 2659 if qQ != "" { 2660 2661 if err := r.SetQueryParam("q", qQ); err != nil { 2662 return err 2663 } 2664 } 2665 } 2666 2667 if o.Region != nil { 2668 2669 // query param region 2670 var qrRegion string 2671 2672 if o.Region != nil { 2673 qrRegion = *o.Region 2674 } 2675 qRegion := qrRegion 2676 if qRegion != "" { 2677 2678 if err := r.SetQueryParam("region", qRegion); err != nil { 2679 return err 2680 } 2681 } 2682 } 2683 2684 if o.Regionn != nil { 2685 2686 // query param region__n 2687 var qrRegionn string 2688 2689 if o.Regionn != nil { 2690 qrRegionn = *o.Regionn 2691 } 2692 qRegionn := qrRegionn 2693 if qRegionn != "" { 2694 2695 if err := r.SetQueryParam("region__n", qRegionn); err != nil { 2696 return err 2697 } 2698 } 2699 } 2700 2701 if o.RegionID != nil { 2702 2703 // query param region_id 2704 var qrRegionID string 2705 2706 if o.RegionID != nil { 2707 qrRegionID = *o.RegionID 2708 } 2709 qRegionID := qrRegionID 2710 if qRegionID != "" { 2711 2712 if err := r.SetQueryParam("region_id", qRegionID); err != nil { 2713 return err 2714 } 2715 } 2716 } 2717 2718 if o.RegionIDn != nil { 2719 2720 // query param region_id__n 2721 var qrRegionIDn string 2722 2723 if o.RegionIDn != nil { 2724 qrRegionIDn = *o.RegionIDn 2725 } 2726 qRegionIDn := qrRegionIDn 2727 if qRegionIDn != "" { 2728 2729 if err := r.SetQueryParam("region_id__n", qRegionIDn); err != nil { 2730 return err 2731 } 2732 } 2733 } 2734 2735 if o.Role != nil { 2736 2737 // query param role 2738 var qrRole string 2739 2740 if o.Role != nil { 2741 qrRole = *o.Role 2742 } 2743 qRole := qrRole 2744 if qRole != "" { 2745 2746 if err := r.SetQueryParam("role", qRole); err != nil { 2747 return err 2748 } 2749 } 2750 } 2751 2752 if o.Rolen != nil { 2753 2754 // query param role__n 2755 var qrRolen string 2756 2757 if o.Rolen != nil { 2758 qrRolen = *o.Rolen 2759 } 2760 qRolen := qrRolen 2761 if qRolen != "" { 2762 2763 if err := r.SetQueryParam("role__n", qRolen); err != nil { 2764 return err 2765 } 2766 } 2767 } 2768 2769 if o.RoleID != nil { 2770 2771 // query param role_id 2772 var qrRoleID string 2773 2774 if o.RoleID != nil { 2775 qrRoleID = *o.RoleID 2776 } 2777 qRoleID := qrRoleID 2778 if qRoleID != "" { 2779 2780 if err := r.SetQueryParam("role_id", qRoleID); err != nil { 2781 return err 2782 } 2783 } 2784 } 2785 2786 if o.RoleIDn != nil { 2787 2788 // query param role_id__n 2789 var qrRoleIDn string 2790 2791 if o.RoleIDn != nil { 2792 qrRoleIDn = *o.RoleIDn 2793 } 2794 qRoleIDn := qrRoleIDn 2795 if qRoleIDn != "" { 2796 2797 if err := r.SetQueryParam("role_id__n", qRoleIDn); err != nil { 2798 return err 2799 } 2800 } 2801 } 2802 2803 if o.Site != nil { 2804 2805 // query param site 2806 var qrSite string 2807 2808 if o.Site != nil { 2809 qrSite = *o.Site 2810 } 2811 qSite := qrSite 2812 if qSite != "" { 2813 2814 if err := r.SetQueryParam("site", qSite); err != nil { 2815 return err 2816 } 2817 } 2818 } 2819 2820 if o.Siten != nil { 2821 2822 // query param site__n 2823 var qrSiten string 2824 2825 if o.Siten != nil { 2826 qrSiten = *o.Siten 2827 } 2828 qSiten := qrSiten 2829 if qSiten != "" { 2830 2831 if err := r.SetQueryParam("site__n", qSiten); err != nil { 2832 return err 2833 } 2834 } 2835 } 2836 2837 if o.SiteGroup != nil { 2838 2839 // query param site_group 2840 var qrSiteGroup string 2841 2842 if o.SiteGroup != nil { 2843 qrSiteGroup = *o.SiteGroup 2844 } 2845 qSiteGroup := qrSiteGroup 2846 if qSiteGroup != "" { 2847 2848 if err := r.SetQueryParam("site_group", qSiteGroup); err != nil { 2849 return err 2850 } 2851 } 2852 } 2853 2854 if o.SiteGroupn != nil { 2855 2856 // query param site_group__n 2857 var qrSiteGroupn string 2858 2859 if o.SiteGroupn != nil { 2860 qrSiteGroupn = *o.SiteGroupn 2861 } 2862 qSiteGroupn := qrSiteGroupn 2863 if qSiteGroupn != "" { 2864 2865 if err := r.SetQueryParam("site_group__n", qSiteGroupn); err != nil { 2866 return err 2867 } 2868 } 2869 } 2870 2871 if o.SiteGroupID != nil { 2872 2873 // query param site_group_id 2874 var qrSiteGroupID string 2875 2876 if o.SiteGroupID != nil { 2877 qrSiteGroupID = *o.SiteGroupID 2878 } 2879 qSiteGroupID := qrSiteGroupID 2880 if qSiteGroupID != "" { 2881 2882 if err := r.SetQueryParam("site_group_id", qSiteGroupID); err != nil { 2883 return err 2884 } 2885 } 2886 } 2887 2888 if o.SiteGroupIDn != nil { 2889 2890 // query param site_group_id__n 2891 var qrSiteGroupIDn string 2892 2893 if o.SiteGroupIDn != nil { 2894 qrSiteGroupIDn = *o.SiteGroupIDn 2895 } 2896 qSiteGroupIDn := qrSiteGroupIDn 2897 if qSiteGroupIDn != "" { 2898 2899 if err := r.SetQueryParam("site_group_id__n", qSiteGroupIDn); err != nil { 2900 return err 2901 } 2902 } 2903 } 2904 2905 if o.SiteID != nil { 2906 2907 // query param site_id 2908 var qrSiteID string 2909 2910 if o.SiteID != nil { 2911 qrSiteID = *o.SiteID 2912 } 2913 qSiteID := qrSiteID 2914 if qSiteID != "" { 2915 2916 if err := r.SetQueryParam("site_id", qSiteID); err != nil { 2917 return err 2918 } 2919 } 2920 } 2921 2922 if o.SiteIDn != nil { 2923 2924 // query param site_id__n 2925 var qrSiteIDn string 2926 2927 if o.SiteIDn != nil { 2928 qrSiteIDn = *o.SiteIDn 2929 } 2930 qSiteIDn := qrSiteIDn 2931 if qSiteIDn != "" { 2932 2933 if err := r.SetQueryParam("site_id__n", qSiteIDn); err != nil { 2934 return err 2935 } 2936 } 2937 } 2938 2939 if o.Status != nil { 2940 2941 // query param status 2942 var qrStatus string 2943 2944 if o.Status != nil { 2945 qrStatus = *o.Status 2946 } 2947 qStatus := qrStatus 2948 if qStatus != "" { 2949 2950 if err := r.SetQueryParam("status", qStatus); err != nil { 2951 return err 2952 } 2953 } 2954 } 2955 2956 if o.Statusn != nil { 2957 2958 // query param status__n 2959 var qrStatusn string 2960 2961 if o.Statusn != nil { 2962 qrStatusn = *o.Statusn 2963 } 2964 qStatusn := qrStatusn 2965 if qStatusn != "" { 2966 2967 if err := r.SetQueryParam("status__n", qStatusn); err != nil { 2968 return err 2969 } 2970 } 2971 } 2972 2973 if o.Tag != nil { 2974 2975 // query param tag 2976 var qrTag string 2977 2978 if o.Tag != nil { 2979 qrTag = *o.Tag 2980 } 2981 qTag := qrTag 2982 if qTag != "" { 2983 2984 if err := r.SetQueryParam("tag", qTag); err != nil { 2985 return err 2986 } 2987 } 2988 } 2989 2990 if o.Tagn != nil { 2991 2992 // query param tag__n 2993 var qrTagn string 2994 2995 if o.Tagn != nil { 2996 qrTagn = *o.Tagn 2997 } 2998 qTagn := qrTagn 2999 if qTagn != "" { 3000 3001 if err := r.SetQueryParam("tag__n", qTagn); err != nil { 3002 return err 3003 } 3004 } 3005 } 3006 3007 if o.Tenant != nil { 3008 3009 // query param tenant 3010 var qrTenant string 3011 3012 if o.Tenant != nil { 3013 qrTenant = *o.Tenant 3014 } 3015 qTenant := qrTenant 3016 if qTenant != "" { 3017 3018 if err := r.SetQueryParam("tenant", qTenant); err != nil { 3019 return err 3020 } 3021 } 3022 } 3023 3024 if o.Tenantn != nil { 3025 3026 // query param tenant__n 3027 var qrTenantn string 3028 3029 if o.Tenantn != nil { 3030 qrTenantn = *o.Tenantn 3031 } 3032 qTenantn := qrTenantn 3033 if qTenantn != "" { 3034 3035 if err := r.SetQueryParam("tenant__n", qTenantn); err != nil { 3036 return err 3037 } 3038 } 3039 } 3040 3041 if o.TenantGroup != nil { 3042 3043 // query param tenant_group 3044 var qrTenantGroup string 3045 3046 if o.TenantGroup != nil { 3047 qrTenantGroup = *o.TenantGroup 3048 } 3049 qTenantGroup := qrTenantGroup 3050 if qTenantGroup != "" { 3051 3052 if err := r.SetQueryParam("tenant_group", qTenantGroup); err != nil { 3053 return err 3054 } 3055 } 3056 } 3057 3058 if o.TenantGroupn != nil { 3059 3060 // query param tenant_group__n 3061 var qrTenantGroupn string 3062 3063 if o.TenantGroupn != nil { 3064 qrTenantGroupn = *o.TenantGroupn 3065 } 3066 qTenantGroupn := qrTenantGroupn 3067 if qTenantGroupn != "" { 3068 3069 if err := r.SetQueryParam("tenant_group__n", qTenantGroupn); err != nil { 3070 return err 3071 } 3072 } 3073 } 3074 3075 if o.TenantGroupID != nil { 3076 3077 // query param tenant_group_id 3078 var qrTenantGroupID string 3079 3080 if o.TenantGroupID != nil { 3081 qrTenantGroupID = *o.TenantGroupID 3082 } 3083 qTenantGroupID := qrTenantGroupID 3084 if qTenantGroupID != "" { 3085 3086 if err := r.SetQueryParam("tenant_group_id", qTenantGroupID); err != nil { 3087 return err 3088 } 3089 } 3090 } 3091 3092 if o.TenantGroupIDn != nil { 3093 3094 // query param tenant_group_id__n 3095 var qrTenantGroupIDn string 3096 3097 if o.TenantGroupIDn != nil { 3098 qrTenantGroupIDn = *o.TenantGroupIDn 3099 } 3100 qTenantGroupIDn := qrTenantGroupIDn 3101 if qTenantGroupIDn != "" { 3102 3103 if err := r.SetQueryParam("tenant_group_id__n", qTenantGroupIDn); err != nil { 3104 return err 3105 } 3106 } 3107 } 3108 3109 if o.TenantID != nil { 3110 3111 // query param tenant_id 3112 var qrTenantID string 3113 3114 if o.TenantID != nil { 3115 qrTenantID = *o.TenantID 3116 } 3117 qTenantID := qrTenantID 3118 if qTenantID != "" { 3119 3120 if err := r.SetQueryParam("tenant_id", qTenantID); err != nil { 3121 return err 3122 } 3123 } 3124 } 3125 3126 if o.TenantIDn != nil { 3127 3128 // query param tenant_id__n 3129 var qrTenantIDn string 3130 3131 if o.TenantIDn != nil { 3132 qrTenantIDn = *o.TenantIDn 3133 } 3134 qTenantIDn := qrTenantIDn 3135 if qTenantIDn != "" { 3136 3137 if err := r.SetQueryParam("tenant_id__n", qTenantIDn); err != nil { 3138 return err 3139 } 3140 } 3141 } 3142 3143 if o.Vcpus != nil { 3144 3145 // query param vcpus 3146 var qrVcpus string 3147 3148 if o.Vcpus != nil { 3149 qrVcpus = *o.Vcpus 3150 } 3151 qVcpus := qrVcpus 3152 if qVcpus != "" { 3153 3154 if err := r.SetQueryParam("vcpus", qVcpus); err != nil { 3155 return err 3156 } 3157 } 3158 } 3159 3160 if o.VcpusGt != nil { 3161 3162 // query param vcpus__gt 3163 var qrVcpusGt string 3164 3165 if o.VcpusGt != nil { 3166 qrVcpusGt = *o.VcpusGt 3167 } 3168 qVcpusGt := qrVcpusGt 3169 if qVcpusGt != "" { 3170 3171 if err := r.SetQueryParam("vcpus__gt", qVcpusGt); err != nil { 3172 return err 3173 } 3174 } 3175 } 3176 3177 if o.VcpusGte != nil { 3178 3179 // query param vcpus__gte 3180 var qrVcpusGte string 3181 3182 if o.VcpusGte != nil { 3183 qrVcpusGte = *o.VcpusGte 3184 } 3185 qVcpusGte := qrVcpusGte 3186 if qVcpusGte != "" { 3187 3188 if err := r.SetQueryParam("vcpus__gte", qVcpusGte); err != nil { 3189 return err 3190 } 3191 } 3192 } 3193 3194 if o.VcpusLt != nil { 3195 3196 // query param vcpus__lt 3197 var qrVcpusLt string 3198 3199 if o.VcpusLt != nil { 3200 qrVcpusLt = *o.VcpusLt 3201 } 3202 qVcpusLt := qrVcpusLt 3203 if qVcpusLt != "" { 3204 3205 if err := r.SetQueryParam("vcpus__lt", qVcpusLt); err != nil { 3206 return err 3207 } 3208 } 3209 } 3210 3211 if o.VcpusLte != nil { 3212 3213 // query param vcpus__lte 3214 var qrVcpusLte string 3215 3216 if o.VcpusLte != nil { 3217 qrVcpusLte = *o.VcpusLte 3218 } 3219 qVcpusLte := qrVcpusLte 3220 if qVcpusLte != "" { 3221 3222 if err := r.SetQueryParam("vcpus__lte", qVcpusLte); err != nil { 3223 return err 3224 } 3225 } 3226 } 3227 3228 if o.Vcpusn != nil { 3229 3230 // query param vcpus__n 3231 var qrVcpusn string 3232 3233 if o.Vcpusn != nil { 3234 qrVcpusn = *o.Vcpusn 3235 } 3236 qVcpusn := qrVcpusn 3237 if qVcpusn != "" { 3238 3239 if err := r.SetQueryParam("vcpus__n", qVcpusn); err != nil { 3240 return err 3241 } 3242 } 3243 } 3244 3245 if len(res) > 0 { 3246 return errors.CompositeValidationError(res...) 3247 } 3248 return nil 3249 }