github.com/sacloud/iaas-api-go@v1.12.0/zz_models.go (about) 1 // Copyright 2022-2023 The sacloud/iaas-api-go Authors 2 // 3 // Licensed under the Apache License, Version 2.0 (the "License"); 4 // you may not use this file except in compliance with the License. 5 // You may obtain a copy of the License at 6 // 7 // http://www.apache.org/licenses/LICENSE-2.0 8 // 9 // Unless required by applicable law or agreed to in writing, software 10 // distributed under the License is distributed on an "AS IS" BASIS, 11 // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12 // See the License for the specific language governing permissions and 13 // limitations under the License. 14 15 // generated by 'github.com/sacloud/iaas-api-go/internal/tools/gen-api-models'; DO NOT EDIT 16 17 package iaas 18 19 import ( 20 "time" 21 22 "github.com/sacloud/iaas-api-go/accessor" 23 "github.com/sacloud/iaas-api-go/search" 24 "github.com/sacloud/iaas-api-go/types" 25 ) 26 27 /************************************************* 28 * Archive 29 *************************************************/ 30 31 // Archive represents API parameter/response structure 32 type Archive struct { 33 ID types.ID 34 Name string 35 Description string 36 Tags types.Tags 37 DisplayOrder int64 38 Availability types.EAvailability 39 Scope types.EScope 40 SizeMB int 41 MigratedMB int 42 DiskPlanID types.ID `mapconv:"Plan.ID"` 43 DiskPlanName string `mapconv:"Plan.Name"` 44 DiskPlanStorageClass string `mapconv:"Plan.StorageClass"` 45 SourceDiskID types.ID `mapconv:"SourceDisk.ID,omitempty"` 46 SourceDiskAvailability types.EAvailability `mapconv:"SourceDisk.Availability,omitempty"` 47 SourceArchiveID types.ID `mapconv:"SourceArchive.ID,omitempty"` 48 SourceArchiveAvailability types.EAvailability `mapconv:"SourceArchive.Availability,omitempty"` 49 BundleInfo *BundleInfo `json:",omitempty" mapconv:",omitempty,recursive"` 50 Storage *Storage `json:",omitempty" mapconv:",omitempty,recursive"` 51 IconID types.ID `mapconv:"Icon.ID"` 52 CreatedAt time.Time 53 ModifiedAt time.Time 54 OriginalArchiveID types.ID `mapconv:"OriginalArchive.ID,omitempty"` 55 SourceInfo *SourceArchiveInfo `mapconv:",omitempty,recursive"` 56 } 57 58 // setDefaults implements iaas.argumentDefaulter 59 func (o *Archive) setDefaults() interface{} { 60 return &struct { 61 ID types.ID 62 Name string 63 Description string 64 Tags types.Tags 65 DisplayOrder int64 66 Availability types.EAvailability 67 Scope types.EScope 68 SizeMB int 69 MigratedMB int 70 DiskPlanID types.ID `mapconv:"Plan.ID"` 71 DiskPlanName string `mapconv:"Plan.Name"` 72 DiskPlanStorageClass string `mapconv:"Plan.StorageClass"` 73 SourceDiskID types.ID `mapconv:"SourceDisk.ID,omitempty"` 74 SourceDiskAvailability types.EAvailability `mapconv:"SourceDisk.Availability,omitempty"` 75 SourceArchiveID types.ID `mapconv:"SourceArchive.ID,omitempty"` 76 SourceArchiveAvailability types.EAvailability `mapconv:"SourceArchive.Availability,omitempty"` 77 BundleInfo *BundleInfo `json:",omitempty" mapconv:",omitempty,recursive"` 78 Storage *Storage `json:",omitempty" mapconv:",omitempty,recursive"` 79 IconID types.ID `mapconv:"Icon.ID"` 80 CreatedAt time.Time 81 ModifiedAt time.Time 82 OriginalArchiveID types.ID `mapconv:"OriginalArchive.ID,omitempty"` 83 SourceInfo *SourceArchiveInfo `mapconv:",omitempty,recursive"` 84 }{ 85 ID: o.GetID(), 86 Name: o.GetName(), 87 Description: o.GetDescription(), 88 Tags: o.GetTags(), 89 DisplayOrder: o.GetDisplayOrder(), 90 Availability: o.GetAvailability(), 91 Scope: o.GetScope(), 92 SizeMB: o.GetSizeMB(), 93 MigratedMB: o.GetMigratedMB(), 94 DiskPlanID: o.GetDiskPlanID(), 95 DiskPlanName: o.GetDiskPlanName(), 96 DiskPlanStorageClass: o.GetDiskPlanStorageClass(), 97 SourceDiskID: o.GetSourceDiskID(), 98 SourceDiskAvailability: o.GetSourceDiskAvailability(), 99 SourceArchiveID: o.GetSourceArchiveID(), 100 SourceArchiveAvailability: o.GetSourceArchiveAvailability(), 101 BundleInfo: o.GetBundleInfo(), 102 Storage: o.GetStorage(), 103 IconID: o.GetIconID(), 104 CreatedAt: o.GetCreatedAt(), 105 ModifiedAt: o.GetModifiedAt(), 106 OriginalArchiveID: o.GetOriginalArchiveID(), 107 SourceInfo: o.GetSourceInfo(), 108 } 109 } 110 111 // GetID returns value of ID 112 func (o *Archive) GetID() types.ID { 113 return o.ID 114 } 115 116 // SetID sets value to ID 117 func (o *Archive) SetID(v types.ID) { 118 o.ID = v 119 } 120 121 // SetStringID . 122 func (o *Archive) SetStringID(id string) { 123 accessor.SetStringID(o, id) 124 } 125 126 // GetStringID . 127 func (o *Archive) GetStringID() string { 128 return accessor.GetStringID(o) 129 } 130 131 // SetInt64ID . 132 func (o *Archive) SetInt64ID(id int64) { 133 accessor.SetInt64ID(o, id) 134 } 135 136 // GetInt64ID . 137 func (o *Archive) GetInt64ID() int64 { 138 return accessor.GetInt64ID(o) 139 } 140 141 // GetName returns value of Name 142 func (o *Archive) GetName() string { 143 return o.Name 144 } 145 146 // SetName sets value to Name 147 func (o *Archive) SetName(v string) { 148 o.Name = v 149 } 150 151 // GetDescription returns value of Description 152 func (o *Archive) GetDescription() string { 153 return o.Description 154 } 155 156 // SetDescription sets value to Description 157 func (o *Archive) SetDescription(v string) { 158 o.Description = v 159 } 160 161 // GetTags returns value of Tags 162 func (o *Archive) GetTags() types.Tags { 163 return o.Tags 164 } 165 166 // SetTags sets value to Tags 167 func (o *Archive) SetTags(v types.Tags) { 168 o.Tags = v 169 } 170 171 // HasTag 指定のタグが存在する場合trueを返す 172 func (o *Archive) HasTag(tag string) bool { 173 return accessor.HasTag(o, tag) 174 } 175 176 // AppendTag 指定のタグを追加 177 func (o *Archive) AppendTag(tag string) { 178 accessor.AppendTag(o, tag) 179 } 180 181 // RemoveTag 指定のタグを削除 182 func (o *Archive) RemoveTag(tag string) { 183 accessor.RemoveTag(o, tag) 184 } 185 186 // ClearTags タグを全クリア 187 func (o *Archive) ClearTags() { 188 accessor.ClearTags(o) 189 } 190 191 // GetDisplayOrder returns value of DisplayOrder 192 func (o *Archive) GetDisplayOrder() int64 { 193 return o.DisplayOrder 194 } 195 196 // SetDisplayOrder sets value to DisplayOrder 197 func (o *Archive) SetDisplayOrder(v int64) { 198 o.DisplayOrder = v 199 } 200 201 // GetAvailability returns value of Availability 202 func (o *Archive) GetAvailability() types.EAvailability { 203 return o.Availability 204 } 205 206 // SetAvailability sets value to Availability 207 func (o *Archive) SetAvailability(v types.EAvailability) { 208 o.Availability = v 209 } 210 211 // GetScope returns value of Scope 212 func (o *Archive) GetScope() types.EScope { 213 return o.Scope 214 } 215 216 // SetScope sets value to Scope 217 func (o *Archive) SetScope(v types.EScope) { 218 o.Scope = v 219 } 220 221 // GetSizeMB returns value of SizeMB 222 func (o *Archive) GetSizeMB() int { 223 return o.SizeMB 224 } 225 226 // SetSizeMB sets value to SizeMB 227 func (o *Archive) SetSizeMB(v int) { 228 o.SizeMB = v 229 } 230 231 // GetSizeGB . 232 func (o *Archive) GetSizeGB() int { 233 return accessor.GetSizeGB(o) 234 } 235 236 // SetSizeGB . 237 func (o *Archive) SetSizeGB(size int) { 238 accessor.SetSizeGB(o, size) 239 } 240 241 // GetMigratedMB returns value of MigratedMB 242 func (o *Archive) GetMigratedMB() int { 243 return o.MigratedMB 244 } 245 246 // SetMigratedMB sets value to MigratedMB 247 func (o *Archive) SetMigratedMB(v int) { 248 o.MigratedMB = v 249 } 250 251 // GetMigratedGB . 252 func (o *Archive) GetMigratedGB() int { 253 return accessor.GetMigratedGB(o) 254 } 255 256 // GetDiskPlanID returns value of DiskPlanID 257 func (o *Archive) GetDiskPlanID() types.ID { 258 return o.DiskPlanID 259 } 260 261 // SetDiskPlanID sets value to DiskPlanID 262 func (o *Archive) SetDiskPlanID(v types.ID) { 263 o.DiskPlanID = v 264 } 265 266 // GetDiskPlanName returns value of DiskPlanName 267 func (o *Archive) GetDiskPlanName() string { 268 return o.DiskPlanName 269 } 270 271 // SetDiskPlanName sets value to DiskPlanName 272 func (o *Archive) SetDiskPlanName(v string) { 273 o.DiskPlanName = v 274 } 275 276 // GetDiskPlanStorageClass returns value of DiskPlanStorageClass 277 func (o *Archive) GetDiskPlanStorageClass() string { 278 return o.DiskPlanStorageClass 279 } 280 281 // SetDiskPlanStorageClass sets value to DiskPlanStorageClass 282 func (o *Archive) SetDiskPlanStorageClass(v string) { 283 o.DiskPlanStorageClass = v 284 } 285 286 // GetSourceDiskID returns value of SourceDiskID 287 func (o *Archive) GetSourceDiskID() types.ID { 288 return o.SourceDiskID 289 } 290 291 // SetSourceDiskID sets value to SourceDiskID 292 func (o *Archive) SetSourceDiskID(v types.ID) { 293 o.SourceDiskID = v 294 } 295 296 // GetSourceDiskAvailability returns value of SourceDiskAvailability 297 func (o *Archive) GetSourceDiskAvailability() types.EAvailability { 298 return o.SourceDiskAvailability 299 } 300 301 // SetSourceDiskAvailability sets value to SourceDiskAvailability 302 func (o *Archive) SetSourceDiskAvailability(v types.EAvailability) { 303 o.SourceDiskAvailability = v 304 } 305 306 // GetSourceArchiveID returns value of SourceArchiveID 307 func (o *Archive) GetSourceArchiveID() types.ID { 308 return o.SourceArchiveID 309 } 310 311 // SetSourceArchiveID sets value to SourceArchiveID 312 func (o *Archive) SetSourceArchiveID(v types.ID) { 313 o.SourceArchiveID = v 314 } 315 316 // GetSourceArchiveAvailability returns value of SourceArchiveAvailability 317 func (o *Archive) GetSourceArchiveAvailability() types.EAvailability { 318 return o.SourceArchiveAvailability 319 } 320 321 // SetSourceArchiveAvailability sets value to SourceArchiveAvailability 322 func (o *Archive) SetSourceArchiveAvailability(v types.EAvailability) { 323 o.SourceArchiveAvailability = v 324 } 325 326 // GetBundleInfo returns value of BundleInfo 327 func (o *Archive) GetBundleInfo() *BundleInfo { 328 return o.BundleInfo 329 } 330 331 // SetBundleInfo sets value to BundleInfo 332 func (o *Archive) SetBundleInfo(v *BundleInfo) { 333 o.BundleInfo = v 334 } 335 336 // GetStorage returns value of Storage 337 func (o *Archive) GetStorage() *Storage { 338 return o.Storage 339 } 340 341 // SetStorage sets value to Storage 342 func (o *Archive) SetStorage(v *Storage) { 343 o.Storage = v 344 } 345 346 // GetIconID returns value of IconID 347 func (o *Archive) GetIconID() types.ID { 348 return o.IconID 349 } 350 351 // SetIconID sets value to IconID 352 func (o *Archive) SetIconID(v types.ID) { 353 o.IconID = v 354 } 355 356 // GetCreatedAt returns value of CreatedAt 357 func (o *Archive) GetCreatedAt() time.Time { 358 return o.CreatedAt 359 } 360 361 // SetCreatedAt sets value to CreatedAt 362 func (o *Archive) SetCreatedAt(v time.Time) { 363 o.CreatedAt = v 364 } 365 366 // GetModifiedAt returns value of ModifiedAt 367 func (o *Archive) GetModifiedAt() time.Time { 368 return o.ModifiedAt 369 } 370 371 // SetModifiedAt sets value to ModifiedAt 372 func (o *Archive) SetModifiedAt(v time.Time) { 373 o.ModifiedAt = v 374 } 375 376 // GetOriginalArchiveID returns value of OriginalArchiveID 377 func (o *Archive) GetOriginalArchiveID() types.ID { 378 return o.OriginalArchiveID 379 } 380 381 // SetOriginalArchiveID sets value to OriginalArchiveID 382 func (o *Archive) SetOriginalArchiveID(v types.ID) { 383 o.OriginalArchiveID = v 384 } 385 386 // GetSourceInfo returns value of SourceInfo 387 func (o *Archive) GetSourceInfo() *SourceArchiveInfo { 388 return o.SourceInfo 389 } 390 391 // SetSourceInfo sets value to SourceInfo 392 func (o *Archive) SetSourceInfo(v *SourceArchiveInfo) { 393 o.SourceInfo = v 394 } 395 396 /************************************************* 397 * BundleInfo 398 *************************************************/ 399 400 // BundleInfo represents API parameter/response structure 401 type BundleInfo struct { 402 ID types.ID 403 HostClass string `json:",omitempty" mapconv:",omitempty"` 404 ServiceClass string `json:",omitempty" mapconv:",omitempty"` 405 } 406 407 // setDefaults implements iaas.argumentDefaulter 408 func (o *BundleInfo) setDefaults() interface{} { 409 return &struct { 410 ID types.ID 411 HostClass string `json:",omitempty" mapconv:",omitempty"` 412 ServiceClass string `json:",omitempty" mapconv:",omitempty"` 413 }{ 414 ID: o.GetID(), 415 HostClass: o.GetHostClass(), 416 ServiceClass: o.GetServiceClass(), 417 } 418 } 419 420 // GetID returns value of ID 421 func (o *BundleInfo) GetID() types.ID { 422 return o.ID 423 } 424 425 // SetID sets value to ID 426 func (o *BundleInfo) SetID(v types.ID) { 427 o.ID = v 428 } 429 430 // SetStringID . 431 func (o *BundleInfo) SetStringID(id string) { 432 accessor.SetStringID(o, id) 433 } 434 435 // GetStringID . 436 func (o *BundleInfo) GetStringID() string { 437 return accessor.GetStringID(o) 438 } 439 440 // SetInt64ID . 441 func (o *BundleInfo) SetInt64ID(id int64) { 442 accessor.SetInt64ID(o, id) 443 } 444 445 // GetInt64ID . 446 func (o *BundleInfo) GetInt64ID() int64 { 447 return accessor.GetInt64ID(o) 448 } 449 450 // GetHostClass returns value of HostClass 451 func (o *BundleInfo) GetHostClass() string { 452 return o.HostClass 453 } 454 455 // SetHostClass sets value to HostClass 456 func (o *BundleInfo) SetHostClass(v string) { 457 o.HostClass = v 458 } 459 460 // GetServiceClass returns value of ServiceClass 461 func (o *BundleInfo) GetServiceClass() string { 462 return o.ServiceClass 463 } 464 465 // SetServiceClass sets value to ServiceClass 466 func (o *BundleInfo) SetServiceClass(v string) { 467 o.ServiceClass = v 468 } 469 470 /************************************************* 471 * Storage 472 *************************************************/ 473 474 // Storage represents API parameter/response structure 475 type Storage struct { 476 ID types.ID 477 Name string 478 Class string `json:",omitempty" mapconv:",omitempty"` 479 Generation int `json:",omitempty" mapconv:",omitempty"` 480 } 481 482 // setDefaults implements iaas.argumentDefaulter 483 func (o *Storage) setDefaults() interface{} { 484 return &struct { 485 ID types.ID 486 Name string 487 Class string `json:",omitempty" mapconv:",omitempty"` 488 Generation int `json:",omitempty" mapconv:",omitempty"` 489 }{ 490 ID: o.GetID(), 491 Name: o.GetName(), 492 Class: o.GetClass(), 493 Generation: o.GetGeneration(), 494 } 495 } 496 497 // GetID returns value of ID 498 func (o *Storage) GetID() types.ID { 499 return o.ID 500 } 501 502 // SetID sets value to ID 503 func (o *Storage) SetID(v types.ID) { 504 o.ID = v 505 } 506 507 // SetStringID . 508 func (o *Storage) SetStringID(id string) { 509 accessor.SetStringID(o, id) 510 } 511 512 // GetStringID . 513 func (o *Storage) GetStringID() string { 514 return accessor.GetStringID(o) 515 } 516 517 // SetInt64ID . 518 func (o *Storage) SetInt64ID(id int64) { 519 accessor.SetInt64ID(o, id) 520 } 521 522 // GetInt64ID . 523 func (o *Storage) GetInt64ID() int64 { 524 return accessor.GetInt64ID(o) 525 } 526 527 // GetName returns value of Name 528 func (o *Storage) GetName() string { 529 return o.Name 530 } 531 532 // SetName sets value to Name 533 func (o *Storage) SetName(v string) { 534 o.Name = v 535 } 536 537 // GetClass returns value of Class 538 func (o *Storage) GetClass() string { 539 return o.Class 540 } 541 542 // SetClass sets value to Class 543 func (o *Storage) SetClass(v string) { 544 o.Class = v 545 } 546 547 // GetGeneration returns value of Generation 548 func (o *Storage) GetGeneration() int { 549 return o.Generation 550 } 551 552 // SetGeneration sets value to Generation 553 func (o *Storage) SetGeneration(v int) { 554 o.Generation = v 555 } 556 557 /************************************************* 558 * SourceArchiveInfo 559 *************************************************/ 560 561 // SourceArchiveInfo represents API parameter/response structure 562 type SourceArchiveInfo struct { 563 ID types.ID `mapconv:"ArchiveUnderZone.ID"` 564 AccountID types.ID `mapconv:"ArchiveUnderZone.Account.ID"` 565 ZoneID types.ID `mapconv:"ArchiveUnderZone.Zone.ID"` 566 ZoneName string `mapconv:"ArchiveUnderZone.Zone.Name"` 567 } 568 569 // setDefaults implements iaas.argumentDefaulter 570 func (o *SourceArchiveInfo) setDefaults() interface{} { 571 return &struct { 572 ID types.ID `mapconv:"ArchiveUnderZone.ID"` 573 AccountID types.ID `mapconv:"ArchiveUnderZone.Account.ID"` 574 ZoneID types.ID `mapconv:"ArchiveUnderZone.Zone.ID"` 575 ZoneName string `mapconv:"ArchiveUnderZone.Zone.Name"` 576 }{ 577 ID: o.GetID(), 578 AccountID: o.GetAccountID(), 579 ZoneID: o.GetZoneID(), 580 ZoneName: o.GetZoneName(), 581 } 582 } 583 584 // GetID returns value of ID 585 func (o *SourceArchiveInfo) GetID() types.ID { 586 return o.ID 587 } 588 589 // SetID sets value to ID 590 func (o *SourceArchiveInfo) SetID(v types.ID) { 591 o.ID = v 592 } 593 594 // GetAccountID returns value of AccountID 595 func (o *SourceArchiveInfo) GetAccountID() types.ID { 596 return o.AccountID 597 } 598 599 // SetAccountID sets value to AccountID 600 func (o *SourceArchiveInfo) SetAccountID(v types.ID) { 601 o.AccountID = v 602 } 603 604 // GetZoneID returns value of ZoneID 605 func (o *SourceArchiveInfo) GetZoneID() types.ID { 606 return o.ZoneID 607 } 608 609 // SetZoneID sets value to ZoneID 610 func (o *SourceArchiveInfo) SetZoneID(v types.ID) { 611 o.ZoneID = v 612 } 613 614 // GetZoneName returns value of ZoneName 615 func (o *SourceArchiveInfo) GetZoneName() string { 616 return o.ZoneName 617 } 618 619 // SetZoneName sets value to ZoneName 620 func (o *SourceArchiveInfo) SetZoneName(v string) { 621 o.ZoneName = v 622 } 623 624 /************************************************* 625 * FindCondition 626 *************************************************/ 627 628 // FindCondition represents API parameter/response structure 629 type FindCondition struct { 630 Count int `mapconv:",omitempty"` 631 From int `mapconv:",omitempty"` 632 Sort search.SortKeys `json:",omitempty" mapconv:",omitempty"` 633 Filter search.Filter `json:",omitempty" mapconv:",omitempty"` 634 Include []string `json:",omitempty" mapconv:",omitempty"` 635 Exclude []string `json:",omitempty" mapconv:",omitempty"` 636 } 637 638 // setDefaults implements iaas.argumentDefaulter 639 func (o *FindCondition) setDefaults() interface{} { 640 return &struct { 641 Count int `mapconv:",omitempty"` 642 From int `mapconv:",omitempty"` 643 Sort search.SortKeys `json:",omitempty" mapconv:",omitempty"` 644 Filter search.Filter `json:",omitempty" mapconv:",omitempty"` 645 Include []string `json:",omitempty" mapconv:",omitempty"` 646 Exclude []string `json:",omitempty" mapconv:",omitempty"` 647 }{ 648 Count: o.GetCount(), 649 From: o.GetFrom(), 650 Sort: o.GetSort(), 651 Filter: o.GetFilter(), 652 Include: o.GetInclude(), 653 Exclude: o.GetExclude(), 654 } 655 } 656 657 // ClearFilter フィルタのクリア 658 func (o *FindCondition) ClearFilter() { 659 accessor.ClearFilter(o) 660 } 661 662 // GetCount returns value of Count 663 func (o *FindCondition) GetCount() int { 664 return o.Count 665 } 666 667 // SetCount sets value to Count 668 func (o *FindCondition) SetCount(v int) { 669 o.Count = v 670 } 671 672 // GetFrom returns value of From 673 func (o *FindCondition) GetFrom() int { 674 return o.From 675 } 676 677 // SetFrom sets value to From 678 func (o *FindCondition) SetFrom(v int) { 679 o.From = v 680 } 681 682 // GetSort returns value of Sort 683 func (o *FindCondition) GetSort() search.SortKeys { 684 return o.Sort 685 } 686 687 // SetSort sets value to Sort 688 func (o *FindCondition) SetSort(v search.SortKeys) { 689 o.Sort = v 690 } 691 692 // GetFilter returns value of Filter 693 func (o *FindCondition) GetFilter() search.Filter { 694 return o.Filter 695 } 696 697 // SetFilter sets value to Filter 698 func (o *FindCondition) SetFilter(v search.Filter) { 699 o.Filter = v 700 } 701 702 // GetInclude returns value of Include 703 func (o *FindCondition) GetInclude() []string { 704 return o.Include 705 } 706 707 // SetInclude sets value to Include 708 func (o *FindCondition) SetInclude(v []string) { 709 o.Include = v 710 } 711 712 // GetExclude returns value of Exclude 713 func (o *FindCondition) GetExclude() []string { 714 return o.Exclude 715 } 716 717 // SetExclude sets value to Exclude 718 func (o *FindCondition) SetExclude(v []string) { 719 o.Exclude = v 720 } 721 722 /************************************************* 723 * ArchiveCreateRequest 724 *************************************************/ 725 726 // ArchiveCreateRequest represents API parameter/response structure 727 type ArchiveCreateRequest struct { 728 SourceDiskID types.ID `mapconv:"SourceDisk.ID,omitempty"` 729 SourceArchiveID types.ID `mapconv:"SourceArchive.ID,omitempty"` 730 Name string 731 Description string 732 Tags types.Tags 733 IconID types.ID `mapconv:"Icon.ID"` 734 } 735 736 // setDefaults implements iaas.argumentDefaulter 737 func (o *ArchiveCreateRequest) setDefaults() interface{} { 738 return &struct { 739 SourceDiskID types.ID `mapconv:"SourceDisk.ID,omitempty"` 740 SourceArchiveID types.ID `mapconv:"SourceArchive.ID,omitempty"` 741 Name string 742 Description string 743 Tags types.Tags 744 IconID types.ID `mapconv:"Icon.ID"` 745 }{ 746 SourceDiskID: o.GetSourceDiskID(), 747 SourceArchiveID: o.GetSourceArchiveID(), 748 Name: o.GetName(), 749 Description: o.GetDescription(), 750 Tags: o.GetTags(), 751 IconID: o.GetIconID(), 752 } 753 } 754 755 // GetSourceDiskID returns value of SourceDiskID 756 func (o *ArchiveCreateRequest) GetSourceDiskID() types.ID { 757 return o.SourceDiskID 758 } 759 760 // SetSourceDiskID sets value to SourceDiskID 761 func (o *ArchiveCreateRequest) SetSourceDiskID(v types.ID) { 762 o.SourceDiskID = v 763 } 764 765 // GetSourceArchiveID returns value of SourceArchiveID 766 func (o *ArchiveCreateRequest) GetSourceArchiveID() types.ID { 767 return o.SourceArchiveID 768 } 769 770 // SetSourceArchiveID sets value to SourceArchiveID 771 func (o *ArchiveCreateRequest) SetSourceArchiveID(v types.ID) { 772 o.SourceArchiveID = v 773 } 774 775 // GetName returns value of Name 776 func (o *ArchiveCreateRequest) GetName() string { 777 return o.Name 778 } 779 780 // SetName sets value to Name 781 func (o *ArchiveCreateRequest) SetName(v string) { 782 o.Name = v 783 } 784 785 // GetDescription returns value of Description 786 func (o *ArchiveCreateRequest) GetDescription() string { 787 return o.Description 788 } 789 790 // SetDescription sets value to Description 791 func (o *ArchiveCreateRequest) SetDescription(v string) { 792 o.Description = v 793 } 794 795 // GetTags returns value of Tags 796 func (o *ArchiveCreateRequest) GetTags() types.Tags { 797 return o.Tags 798 } 799 800 // SetTags sets value to Tags 801 func (o *ArchiveCreateRequest) SetTags(v types.Tags) { 802 o.Tags = v 803 } 804 805 // HasTag 指定のタグが存在する場合trueを返す 806 func (o *ArchiveCreateRequest) HasTag(tag string) bool { 807 return accessor.HasTag(o, tag) 808 } 809 810 // AppendTag 指定のタグを追加 811 func (o *ArchiveCreateRequest) AppendTag(tag string) { 812 accessor.AppendTag(o, tag) 813 } 814 815 // RemoveTag 指定のタグを削除 816 func (o *ArchiveCreateRequest) RemoveTag(tag string) { 817 accessor.RemoveTag(o, tag) 818 } 819 820 // ClearTags タグを全クリア 821 func (o *ArchiveCreateRequest) ClearTags() { 822 accessor.ClearTags(o) 823 } 824 825 // GetIconID returns value of IconID 826 func (o *ArchiveCreateRequest) GetIconID() types.ID { 827 return o.IconID 828 } 829 830 // SetIconID sets value to IconID 831 func (o *ArchiveCreateRequest) SetIconID(v types.ID) { 832 o.IconID = v 833 } 834 835 /************************************************* 836 * FTPServer 837 *************************************************/ 838 839 // FTPServer represents API parameter/response structure 840 type FTPServer struct { 841 HostName string 842 IPAddress string 843 User string 844 Password string 845 } 846 847 // setDefaults implements iaas.argumentDefaulter 848 func (o *FTPServer) setDefaults() interface{} { 849 return &struct { 850 HostName string 851 IPAddress string 852 User string 853 Password string 854 }{ 855 HostName: o.GetHostName(), 856 IPAddress: o.GetIPAddress(), 857 User: o.GetUser(), 858 Password: o.GetPassword(), 859 } 860 } 861 862 // GetHostName returns value of HostName 863 func (o *FTPServer) GetHostName() string { 864 return o.HostName 865 } 866 867 // SetHostName sets value to HostName 868 func (o *FTPServer) SetHostName(v string) { 869 o.HostName = v 870 } 871 872 // GetIPAddress returns value of IPAddress 873 func (o *FTPServer) GetIPAddress() string { 874 return o.IPAddress 875 } 876 877 // SetIPAddress sets value to IPAddress 878 func (o *FTPServer) SetIPAddress(v string) { 879 o.IPAddress = v 880 } 881 882 // GetUser returns value of User 883 func (o *FTPServer) GetUser() string { 884 return o.User 885 } 886 887 // SetUser sets value to User 888 func (o *FTPServer) SetUser(v string) { 889 o.User = v 890 } 891 892 // GetPassword returns value of Password 893 func (o *FTPServer) GetPassword() string { 894 return o.Password 895 } 896 897 // SetPassword sets value to Password 898 func (o *FTPServer) SetPassword(v string) { 899 o.Password = v 900 } 901 902 /************************************************* 903 * ArchiveCreateBlankRequest 904 *************************************************/ 905 906 // ArchiveCreateBlankRequest represents API parameter/response structure 907 type ArchiveCreateBlankRequest struct { 908 SizeMB int 909 Name string 910 Description string 911 Tags types.Tags 912 IconID types.ID `mapconv:"Icon.ID"` 913 } 914 915 // setDefaults implements iaas.argumentDefaulter 916 func (o *ArchiveCreateBlankRequest) setDefaults() interface{} { 917 return &struct { 918 SizeMB int 919 Name string 920 Description string 921 Tags types.Tags 922 IconID types.ID `mapconv:"Icon.ID"` 923 }{ 924 SizeMB: o.GetSizeMB(), 925 Name: o.GetName(), 926 Description: o.GetDescription(), 927 Tags: o.GetTags(), 928 IconID: o.GetIconID(), 929 } 930 } 931 932 // GetSizeMB returns value of SizeMB 933 func (o *ArchiveCreateBlankRequest) GetSizeMB() int { 934 return o.SizeMB 935 } 936 937 // SetSizeMB sets value to SizeMB 938 func (o *ArchiveCreateBlankRequest) SetSizeMB(v int) { 939 o.SizeMB = v 940 } 941 942 // GetSizeGB . 943 func (o *ArchiveCreateBlankRequest) GetSizeGB() int { 944 return accessor.GetSizeGB(o) 945 } 946 947 // SetSizeGB . 948 func (o *ArchiveCreateBlankRequest) SetSizeGB(size int) { 949 accessor.SetSizeGB(o, size) 950 } 951 952 // GetName returns value of Name 953 func (o *ArchiveCreateBlankRequest) GetName() string { 954 return o.Name 955 } 956 957 // SetName sets value to Name 958 func (o *ArchiveCreateBlankRequest) SetName(v string) { 959 o.Name = v 960 } 961 962 // GetDescription returns value of Description 963 func (o *ArchiveCreateBlankRequest) GetDescription() string { 964 return o.Description 965 } 966 967 // SetDescription sets value to Description 968 func (o *ArchiveCreateBlankRequest) SetDescription(v string) { 969 o.Description = v 970 } 971 972 // GetTags returns value of Tags 973 func (o *ArchiveCreateBlankRequest) GetTags() types.Tags { 974 return o.Tags 975 } 976 977 // SetTags sets value to Tags 978 func (o *ArchiveCreateBlankRequest) SetTags(v types.Tags) { 979 o.Tags = v 980 } 981 982 // HasTag 指定のタグが存在する場合trueを返す 983 func (o *ArchiveCreateBlankRequest) HasTag(tag string) bool { 984 return accessor.HasTag(o, tag) 985 } 986 987 // AppendTag 指定のタグを追加 988 func (o *ArchiveCreateBlankRequest) AppendTag(tag string) { 989 accessor.AppendTag(o, tag) 990 } 991 992 // RemoveTag 指定のタグを削除 993 func (o *ArchiveCreateBlankRequest) RemoveTag(tag string) { 994 accessor.RemoveTag(o, tag) 995 } 996 997 // ClearTags タグを全クリア 998 func (o *ArchiveCreateBlankRequest) ClearTags() { 999 accessor.ClearTags(o) 1000 } 1001 1002 // GetIconID returns value of IconID 1003 func (o *ArchiveCreateBlankRequest) GetIconID() types.ID { 1004 return o.IconID 1005 } 1006 1007 // SetIconID sets value to IconID 1008 func (o *ArchiveCreateBlankRequest) SetIconID(v types.ID) { 1009 o.IconID = v 1010 } 1011 1012 /************************************************* 1013 * ArchiveUpdateRequest 1014 *************************************************/ 1015 1016 // ArchiveUpdateRequest represents API parameter/response structure 1017 type ArchiveUpdateRequest struct { 1018 Name string 1019 Description string 1020 Tags types.Tags 1021 IconID types.ID `mapconv:"Icon.ID"` 1022 } 1023 1024 // setDefaults implements iaas.argumentDefaulter 1025 func (o *ArchiveUpdateRequest) setDefaults() interface{} { 1026 return &struct { 1027 Name string 1028 Description string 1029 Tags types.Tags 1030 IconID types.ID `mapconv:"Icon.ID"` 1031 }{ 1032 Name: o.GetName(), 1033 Description: o.GetDescription(), 1034 Tags: o.GetTags(), 1035 IconID: o.GetIconID(), 1036 } 1037 } 1038 1039 // GetName returns value of Name 1040 func (o *ArchiveUpdateRequest) GetName() string { 1041 return o.Name 1042 } 1043 1044 // SetName sets value to Name 1045 func (o *ArchiveUpdateRequest) SetName(v string) { 1046 o.Name = v 1047 } 1048 1049 // GetDescription returns value of Description 1050 func (o *ArchiveUpdateRequest) GetDescription() string { 1051 return o.Description 1052 } 1053 1054 // SetDescription sets value to Description 1055 func (o *ArchiveUpdateRequest) SetDescription(v string) { 1056 o.Description = v 1057 } 1058 1059 // GetTags returns value of Tags 1060 func (o *ArchiveUpdateRequest) GetTags() types.Tags { 1061 return o.Tags 1062 } 1063 1064 // SetTags sets value to Tags 1065 func (o *ArchiveUpdateRequest) SetTags(v types.Tags) { 1066 o.Tags = v 1067 } 1068 1069 // HasTag 指定のタグが存在する場合trueを返す 1070 func (o *ArchiveUpdateRequest) HasTag(tag string) bool { 1071 return accessor.HasTag(o, tag) 1072 } 1073 1074 // AppendTag 指定のタグを追加 1075 func (o *ArchiveUpdateRequest) AppendTag(tag string) { 1076 accessor.AppendTag(o, tag) 1077 } 1078 1079 // RemoveTag 指定のタグを削除 1080 func (o *ArchiveUpdateRequest) RemoveTag(tag string) { 1081 accessor.RemoveTag(o, tag) 1082 } 1083 1084 // ClearTags タグを全クリア 1085 func (o *ArchiveUpdateRequest) ClearTags() { 1086 accessor.ClearTags(o) 1087 } 1088 1089 // GetIconID returns value of IconID 1090 func (o *ArchiveUpdateRequest) GetIconID() types.ID { 1091 return o.IconID 1092 } 1093 1094 // SetIconID sets value to IconID 1095 func (o *ArchiveUpdateRequest) SetIconID(v types.ID) { 1096 o.IconID = v 1097 } 1098 1099 /************************************************* 1100 * OpenFTPRequest 1101 *************************************************/ 1102 1103 // OpenFTPRequest represents API parameter/response structure 1104 type OpenFTPRequest struct { 1105 ChangePassword bool 1106 } 1107 1108 // setDefaults implements iaas.argumentDefaulter 1109 func (o *OpenFTPRequest) setDefaults() interface{} { 1110 return &struct { 1111 ChangePassword bool 1112 }{ 1113 ChangePassword: o.GetChangePassword(), 1114 } 1115 } 1116 1117 // GetChangePassword returns value of ChangePassword 1118 func (o *OpenFTPRequest) GetChangePassword() bool { 1119 return o.ChangePassword 1120 } 1121 1122 // SetChangePassword sets value to ChangePassword 1123 func (o *OpenFTPRequest) SetChangePassword(v bool) { 1124 o.ChangePassword = v 1125 } 1126 1127 /************************************************* 1128 * ArchiveShareInfo 1129 *************************************************/ 1130 1131 // ArchiveShareInfo represents API parameter/response structure 1132 type ArchiveShareInfo struct { 1133 SharedKey types.ArchiveShareKey 1134 } 1135 1136 // setDefaults implements iaas.argumentDefaulter 1137 func (o *ArchiveShareInfo) setDefaults() interface{} { 1138 return &struct { 1139 SharedKey types.ArchiveShareKey 1140 }{ 1141 SharedKey: o.GetSharedKey(), 1142 } 1143 } 1144 1145 // GetSharedKey returns value of SharedKey 1146 func (o *ArchiveShareInfo) GetSharedKey() types.ArchiveShareKey { 1147 return o.SharedKey 1148 } 1149 1150 // SetSharedKey sets value to SharedKey 1151 func (o *ArchiveShareInfo) SetSharedKey(v types.ArchiveShareKey) { 1152 o.SharedKey = v 1153 } 1154 1155 /************************************************* 1156 * ArchiveCreateRequestFromShared 1157 *************************************************/ 1158 1159 // ArchiveCreateRequestFromShared represents API parameter/response structure 1160 type ArchiveCreateRequestFromShared struct { 1161 Name string 1162 Description string 1163 Tags types.Tags 1164 IconID types.ID `mapconv:"Icon.ID"` 1165 SourceSharedKey types.ArchiveShareKey 1166 } 1167 1168 // setDefaults implements iaas.argumentDefaulter 1169 func (o *ArchiveCreateRequestFromShared) setDefaults() interface{} { 1170 return &struct { 1171 Name string 1172 Description string 1173 Tags types.Tags 1174 IconID types.ID `mapconv:"Icon.ID"` 1175 SourceSharedKey types.ArchiveShareKey 1176 }{ 1177 Name: o.GetName(), 1178 Description: o.GetDescription(), 1179 Tags: o.GetTags(), 1180 IconID: o.GetIconID(), 1181 SourceSharedKey: o.GetSourceSharedKey(), 1182 } 1183 } 1184 1185 // GetName returns value of Name 1186 func (o *ArchiveCreateRequestFromShared) GetName() string { 1187 return o.Name 1188 } 1189 1190 // SetName sets value to Name 1191 func (o *ArchiveCreateRequestFromShared) SetName(v string) { 1192 o.Name = v 1193 } 1194 1195 // GetDescription returns value of Description 1196 func (o *ArchiveCreateRequestFromShared) GetDescription() string { 1197 return o.Description 1198 } 1199 1200 // SetDescription sets value to Description 1201 func (o *ArchiveCreateRequestFromShared) SetDescription(v string) { 1202 o.Description = v 1203 } 1204 1205 // GetTags returns value of Tags 1206 func (o *ArchiveCreateRequestFromShared) GetTags() types.Tags { 1207 return o.Tags 1208 } 1209 1210 // SetTags sets value to Tags 1211 func (o *ArchiveCreateRequestFromShared) SetTags(v types.Tags) { 1212 o.Tags = v 1213 } 1214 1215 // HasTag 指定のタグが存在する場合trueを返す 1216 func (o *ArchiveCreateRequestFromShared) HasTag(tag string) bool { 1217 return accessor.HasTag(o, tag) 1218 } 1219 1220 // AppendTag 指定のタグを追加 1221 func (o *ArchiveCreateRequestFromShared) AppendTag(tag string) { 1222 accessor.AppendTag(o, tag) 1223 } 1224 1225 // RemoveTag 指定のタグを削除 1226 func (o *ArchiveCreateRequestFromShared) RemoveTag(tag string) { 1227 accessor.RemoveTag(o, tag) 1228 } 1229 1230 // ClearTags タグを全クリア 1231 func (o *ArchiveCreateRequestFromShared) ClearTags() { 1232 accessor.ClearTags(o) 1233 } 1234 1235 // GetIconID returns value of IconID 1236 func (o *ArchiveCreateRequestFromShared) GetIconID() types.ID { 1237 return o.IconID 1238 } 1239 1240 // SetIconID sets value to IconID 1241 func (o *ArchiveCreateRequestFromShared) SetIconID(v types.ID) { 1242 o.IconID = v 1243 } 1244 1245 // GetSourceSharedKey returns value of SourceSharedKey 1246 func (o *ArchiveCreateRequestFromShared) GetSourceSharedKey() types.ArchiveShareKey { 1247 return o.SourceSharedKey 1248 } 1249 1250 // SetSourceSharedKey sets value to SourceSharedKey 1251 func (o *ArchiveCreateRequestFromShared) SetSourceSharedKey(v types.ArchiveShareKey) { 1252 o.SourceSharedKey = v 1253 } 1254 1255 /************************************************* 1256 * ArchiveTransferRequest 1257 *************************************************/ 1258 1259 // ArchiveTransferRequest represents API parameter/response structure 1260 type ArchiveTransferRequest struct { 1261 SizeMB int 1262 Name string 1263 Description string 1264 Tags types.Tags 1265 IconID types.ID `mapconv:"Icon.ID"` 1266 } 1267 1268 // setDefaults implements iaas.argumentDefaulter 1269 func (o *ArchiveTransferRequest) setDefaults() interface{} { 1270 return &struct { 1271 SizeMB int 1272 Name string 1273 Description string 1274 Tags types.Tags 1275 IconID types.ID `mapconv:"Icon.ID"` 1276 }{ 1277 SizeMB: o.GetSizeMB(), 1278 Name: o.GetName(), 1279 Description: o.GetDescription(), 1280 Tags: o.GetTags(), 1281 IconID: o.GetIconID(), 1282 } 1283 } 1284 1285 // GetSizeMB returns value of SizeMB 1286 func (o *ArchiveTransferRequest) GetSizeMB() int { 1287 return o.SizeMB 1288 } 1289 1290 // SetSizeMB sets value to SizeMB 1291 func (o *ArchiveTransferRequest) SetSizeMB(v int) { 1292 o.SizeMB = v 1293 } 1294 1295 // GetSizeGB . 1296 func (o *ArchiveTransferRequest) GetSizeGB() int { 1297 return accessor.GetSizeGB(o) 1298 } 1299 1300 // SetSizeGB . 1301 func (o *ArchiveTransferRequest) SetSizeGB(size int) { 1302 accessor.SetSizeGB(o, size) 1303 } 1304 1305 // GetName returns value of Name 1306 func (o *ArchiveTransferRequest) GetName() string { 1307 return o.Name 1308 } 1309 1310 // SetName sets value to Name 1311 func (o *ArchiveTransferRequest) SetName(v string) { 1312 o.Name = v 1313 } 1314 1315 // GetDescription returns value of Description 1316 func (o *ArchiveTransferRequest) GetDescription() string { 1317 return o.Description 1318 } 1319 1320 // SetDescription sets value to Description 1321 func (o *ArchiveTransferRequest) SetDescription(v string) { 1322 o.Description = v 1323 } 1324 1325 // GetTags returns value of Tags 1326 func (o *ArchiveTransferRequest) GetTags() types.Tags { 1327 return o.Tags 1328 } 1329 1330 // SetTags sets value to Tags 1331 func (o *ArchiveTransferRequest) SetTags(v types.Tags) { 1332 o.Tags = v 1333 } 1334 1335 // HasTag 指定のタグが存在する場合trueを返す 1336 func (o *ArchiveTransferRequest) HasTag(tag string) bool { 1337 return accessor.HasTag(o, tag) 1338 } 1339 1340 // AppendTag 指定のタグを追加 1341 func (o *ArchiveTransferRequest) AppendTag(tag string) { 1342 accessor.AppendTag(o, tag) 1343 } 1344 1345 // RemoveTag 指定のタグを削除 1346 func (o *ArchiveTransferRequest) RemoveTag(tag string) { 1347 accessor.RemoveTag(o, tag) 1348 } 1349 1350 // ClearTags タグを全クリア 1351 func (o *ArchiveTransferRequest) ClearTags() { 1352 accessor.ClearTags(o) 1353 } 1354 1355 // GetIconID returns value of IconID 1356 func (o *ArchiveTransferRequest) GetIconID() types.ID { 1357 return o.IconID 1358 } 1359 1360 // SetIconID sets value to IconID 1361 func (o *ArchiveTransferRequest) SetIconID(v types.ID) { 1362 o.IconID = v 1363 } 1364 1365 /************************************************* 1366 * AuthStatus 1367 *************************************************/ 1368 1369 // AuthStatus represents API parameter/response structure 1370 type AuthStatus struct { 1371 AccountID types.ID `mapconv:"Account.ID"` 1372 AccountName string `mapconv:"Account.Name"` 1373 AccountCode string `mapconv:"Account.Code"` 1374 AccountClass string `mapconv:"Account.Class"` 1375 MemberCode string `mapconv:"Member.Code"` 1376 MemberClass string `mapconv:"Member.Class"` 1377 AuthClass types.EAuthClass 1378 AuthMethod types.EAuthMethod 1379 IsAPIKey bool 1380 ExternalPermission types.ExternalPermission 1381 OperationPenalty types.EOperationPenalty 1382 Permission types.EPermission 1383 } 1384 1385 // setDefaults implements iaas.argumentDefaulter 1386 func (o *AuthStatus) setDefaults() interface{} { 1387 return &struct { 1388 AccountID types.ID `mapconv:"Account.ID"` 1389 AccountName string `mapconv:"Account.Name"` 1390 AccountCode string `mapconv:"Account.Code"` 1391 AccountClass string `mapconv:"Account.Class"` 1392 MemberCode string `mapconv:"Member.Code"` 1393 MemberClass string `mapconv:"Member.Class"` 1394 AuthClass types.EAuthClass 1395 AuthMethod types.EAuthMethod 1396 IsAPIKey bool 1397 ExternalPermission types.ExternalPermission 1398 OperationPenalty types.EOperationPenalty 1399 Permission types.EPermission 1400 }{ 1401 AccountID: o.GetAccountID(), 1402 AccountName: o.GetAccountName(), 1403 AccountCode: o.GetAccountCode(), 1404 AccountClass: o.GetAccountClass(), 1405 MemberCode: o.GetMemberCode(), 1406 MemberClass: o.GetMemberClass(), 1407 AuthClass: o.GetAuthClass(), 1408 AuthMethod: o.GetAuthMethod(), 1409 IsAPIKey: o.GetIsAPIKey(), 1410 ExternalPermission: o.GetExternalPermission(), 1411 OperationPenalty: o.GetOperationPenalty(), 1412 Permission: o.GetPermission(), 1413 } 1414 } 1415 1416 // GetAccountID returns value of AccountID 1417 func (o *AuthStatus) GetAccountID() types.ID { 1418 return o.AccountID 1419 } 1420 1421 // SetAccountID sets value to AccountID 1422 func (o *AuthStatus) SetAccountID(v types.ID) { 1423 o.AccountID = v 1424 } 1425 1426 // GetAccountName returns value of AccountName 1427 func (o *AuthStatus) GetAccountName() string { 1428 return o.AccountName 1429 } 1430 1431 // SetAccountName sets value to AccountName 1432 func (o *AuthStatus) SetAccountName(v string) { 1433 o.AccountName = v 1434 } 1435 1436 // GetAccountCode returns value of AccountCode 1437 func (o *AuthStatus) GetAccountCode() string { 1438 return o.AccountCode 1439 } 1440 1441 // SetAccountCode sets value to AccountCode 1442 func (o *AuthStatus) SetAccountCode(v string) { 1443 o.AccountCode = v 1444 } 1445 1446 // GetAccountClass returns value of AccountClass 1447 func (o *AuthStatus) GetAccountClass() string { 1448 return o.AccountClass 1449 } 1450 1451 // SetAccountClass sets value to AccountClass 1452 func (o *AuthStatus) SetAccountClass(v string) { 1453 o.AccountClass = v 1454 } 1455 1456 // GetMemberCode returns value of MemberCode 1457 func (o *AuthStatus) GetMemberCode() string { 1458 return o.MemberCode 1459 } 1460 1461 // SetMemberCode sets value to MemberCode 1462 func (o *AuthStatus) SetMemberCode(v string) { 1463 o.MemberCode = v 1464 } 1465 1466 // GetMemberClass returns value of MemberClass 1467 func (o *AuthStatus) GetMemberClass() string { 1468 return o.MemberClass 1469 } 1470 1471 // SetMemberClass sets value to MemberClass 1472 func (o *AuthStatus) SetMemberClass(v string) { 1473 o.MemberClass = v 1474 } 1475 1476 // GetAuthClass returns value of AuthClass 1477 func (o *AuthStatus) GetAuthClass() types.EAuthClass { 1478 return o.AuthClass 1479 } 1480 1481 // SetAuthClass sets value to AuthClass 1482 func (o *AuthStatus) SetAuthClass(v types.EAuthClass) { 1483 o.AuthClass = v 1484 } 1485 1486 // GetAuthMethod returns value of AuthMethod 1487 func (o *AuthStatus) GetAuthMethod() types.EAuthMethod { 1488 return o.AuthMethod 1489 } 1490 1491 // SetAuthMethod sets value to AuthMethod 1492 func (o *AuthStatus) SetAuthMethod(v types.EAuthMethod) { 1493 o.AuthMethod = v 1494 } 1495 1496 // GetIsAPIKey returns value of IsAPIKey 1497 func (o *AuthStatus) GetIsAPIKey() bool { 1498 return o.IsAPIKey 1499 } 1500 1501 // SetIsAPIKey sets value to IsAPIKey 1502 func (o *AuthStatus) SetIsAPIKey(v bool) { 1503 o.IsAPIKey = v 1504 } 1505 1506 // GetExternalPermission returns value of ExternalPermission 1507 func (o *AuthStatus) GetExternalPermission() types.ExternalPermission { 1508 return o.ExternalPermission 1509 } 1510 1511 // SetExternalPermission sets value to ExternalPermission 1512 func (o *AuthStatus) SetExternalPermission(v types.ExternalPermission) { 1513 o.ExternalPermission = v 1514 } 1515 1516 // GetOperationPenalty returns value of OperationPenalty 1517 func (o *AuthStatus) GetOperationPenalty() types.EOperationPenalty { 1518 return o.OperationPenalty 1519 } 1520 1521 // SetOperationPenalty sets value to OperationPenalty 1522 func (o *AuthStatus) SetOperationPenalty(v types.EOperationPenalty) { 1523 o.OperationPenalty = v 1524 } 1525 1526 // GetPermission returns value of Permission 1527 func (o *AuthStatus) GetPermission() types.EPermission { 1528 return o.Permission 1529 } 1530 1531 // SetPermission sets value to Permission 1532 func (o *AuthStatus) SetPermission(v types.EPermission) { 1533 o.Permission = v 1534 } 1535 1536 /************************************************* 1537 * AutoBackup 1538 *************************************************/ 1539 1540 // AutoBackup represents API parameter/response structure 1541 type AutoBackup struct { 1542 ID types.ID 1543 Name string 1544 Description string 1545 Tags types.Tags 1546 Availability types.EAvailability 1547 IconID types.ID `mapconv:"Icon.ID"` 1548 CreatedAt time.Time 1549 ModifiedAt time.Time 1550 BackupSpanWeekdays []types.EDayOfTheWeek `mapconv:"Settings.Autobackup.BackupSpanWeekdays"` 1551 MaximumNumberOfArchives int `mapconv:"Settings.Autobackup.MaximumNumberOfArchives"` 1552 SettingsHash string `json:",omitempty" mapconv:",omitempty"` 1553 DiskID types.ID `mapconv:"Status.DiskID"` 1554 AccountID types.ID `mapconv:"Status.AccountID"` 1555 ZoneID types.ID `mapconv:"Status.ZoneID"` 1556 ZoneName string `mapconv:"Status.ZoneName"` 1557 } 1558 1559 // setDefaults implements iaas.argumentDefaulter 1560 func (o *AutoBackup) setDefaults() interface{} { 1561 return &struct { 1562 ID types.ID 1563 Name string 1564 Description string 1565 Tags types.Tags 1566 Availability types.EAvailability 1567 IconID types.ID `mapconv:"Icon.ID"` 1568 CreatedAt time.Time 1569 ModifiedAt time.Time 1570 BackupSpanWeekdays []types.EDayOfTheWeek `mapconv:"Settings.Autobackup.BackupSpanWeekdays"` 1571 MaximumNumberOfArchives int `mapconv:"Settings.Autobackup.MaximumNumberOfArchives"` 1572 SettingsHash string `json:",omitempty" mapconv:",omitempty"` 1573 DiskID types.ID `mapconv:"Status.DiskID"` 1574 AccountID types.ID `mapconv:"Status.AccountID"` 1575 ZoneID types.ID `mapconv:"Status.ZoneID"` 1576 ZoneName string `mapconv:"Status.ZoneName"` 1577 }{ 1578 ID: o.GetID(), 1579 Name: o.GetName(), 1580 Description: o.GetDescription(), 1581 Tags: o.GetTags(), 1582 Availability: o.GetAvailability(), 1583 IconID: o.GetIconID(), 1584 CreatedAt: o.GetCreatedAt(), 1585 ModifiedAt: o.GetModifiedAt(), 1586 BackupSpanWeekdays: o.GetBackupSpanWeekdays(), 1587 MaximumNumberOfArchives: o.GetMaximumNumberOfArchives(), 1588 SettingsHash: o.GetSettingsHash(), 1589 DiskID: o.GetDiskID(), 1590 AccountID: o.GetAccountID(), 1591 ZoneID: o.GetZoneID(), 1592 ZoneName: o.GetZoneName(), 1593 } 1594 } 1595 1596 // GetID returns value of ID 1597 func (o *AutoBackup) GetID() types.ID { 1598 return o.ID 1599 } 1600 1601 // SetID sets value to ID 1602 func (o *AutoBackup) SetID(v types.ID) { 1603 o.ID = v 1604 } 1605 1606 // SetStringID . 1607 func (o *AutoBackup) SetStringID(id string) { 1608 accessor.SetStringID(o, id) 1609 } 1610 1611 // GetStringID . 1612 func (o *AutoBackup) GetStringID() string { 1613 return accessor.GetStringID(o) 1614 } 1615 1616 // SetInt64ID . 1617 func (o *AutoBackup) SetInt64ID(id int64) { 1618 accessor.SetInt64ID(o, id) 1619 } 1620 1621 // GetInt64ID . 1622 func (o *AutoBackup) GetInt64ID() int64 { 1623 return accessor.GetInt64ID(o) 1624 } 1625 1626 // GetName returns value of Name 1627 func (o *AutoBackup) GetName() string { 1628 return o.Name 1629 } 1630 1631 // SetName sets value to Name 1632 func (o *AutoBackup) SetName(v string) { 1633 o.Name = v 1634 } 1635 1636 // GetDescription returns value of Description 1637 func (o *AutoBackup) GetDescription() string { 1638 return o.Description 1639 } 1640 1641 // SetDescription sets value to Description 1642 func (o *AutoBackup) SetDescription(v string) { 1643 o.Description = v 1644 } 1645 1646 // GetTags returns value of Tags 1647 func (o *AutoBackup) GetTags() types.Tags { 1648 return o.Tags 1649 } 1650 1651 // SetTags sets value to Tags 1652 func (o *AutoBackup) SetTags(v types.Tags) { 1653 o.Tags = v 1654 } 1655 1656 // HasTag 指定のタグが存在する場合trueを返す 1657 func (o *AutoBackup) HasTag(tag string) bool { 1658 return accessor.HasTag(o, tag) 1659 } 1660 1661 // AppendTag 指定のタグを追加 1662 func (o *AutoBackup) AppendTag(tag string) { 1663 accessor.AppendTag(o, tag) 1664 } 1665 1666 // RemoveTag 指定のタグを削除 1667 func (o *AutoBackup) RemoveTag(tag string) { 1668 accessor.RemoveTag(o, tag) 1669 } 1670 1671 // ClearTags タグを全クリア 1672 func (o *AutoBackup) ClearTags() { 1673 accessor.ClearTags(o) 1674 } 1675 1676 // GetAvailability returns value of Availability 1677 func (o *AutoBackup) GetAvailability() types.EAvailability { 1678 return o.Availability 1679 } 1680 1681 // SetAvailability sets value to Availability 1682 func (o *AutoBackup) SetAvailability(v types.EAvailability) { 1683 o.Availability = v 1684 } 1685 1686 // GetIconID returns value of IconID 1687 func (o *AutoBackup) GetIconID() types.ID { 1688 return o.IconID 1689 } 1690 1691 // SetIconID sets value to IconID 1692 func (o *AutoBackup) SetIconID(v types.ID) { 1693 o.IconID = v 1694 } 1695 1696 // GetCreatedAt returns value of CreatedAt 1697 func (o *AutoBackup) GetCreatedAt() time.Time { 1698 return o.CreatedAt 1699 } 1700 1701 // SetCreatedAt sets value to CreatedAt 1702 func (o *AutoBackup) SetCreatedAt(v time.Time) { 1703 o.CreatedAt = v 1704 } 1705 1706 // GetModifiedAt returns value of ModifiedAt 1707 func (o *AutoBackup) GetModifiedAt() time.Time { 1708 return o.ModifiedAt 1709 } 1710 1711 // SetModifiedAt sets value to ModifiedAt 1712 func (o *AutoBackup) SetModifiedAt(v time.Time) { 1713 o.ModifiedAt = v 1714 } 1715 1716 // GetBackupSpanWeekdays returns value of BackupSpanWeekdays 1717 func (o *AutoBackup) GetBackupSpanWeekdays() []types.EDayOfTheWeek { 1718 return o.BackupSpanWeekdays 1719 } 1720 1721 // SetBackupSpanWeekdays sets value to BackupSpanWeekdays 1722 func (o *AutoBackup) SetBackupSpanWeekdays(v []types.EDayOfTheWeek) { 1723 o.BackupSpanWeekdays = v 1724 } 1725 1726 // GetMaximumNumberOfArchives returns value of MaximumNumberOfArchives 1727 func (o *AutoBackup) GetMaximumNumberOfArchives() int { 1728 return o.MaximumNumberOfArchives 1729 } 1730 1731 // SetMaximumNumberOfArchives sets value to MaximumNumberOfArchives 1732 func (o *AutoBackup) SetMaximumNumberOfArchives(v int) { 1733 o.MaximumNumberOfArchives = v 1734 } 1735 1736 // GetSettingsHash returns value of SettingsHash 1737 func (o *AutoBackup) GetSettingsHash() string { 1738 return o.SettingsHash 1739 } 1740 1741 // SetSettingsHash sets value to SettingsHash 1742 func (o *AutoBackup) SetSettingsHash(v string) { 1743 o.SettingsHash = v 1744 } 1745 1746 // GetDiskID returns value of DiskID 1747 func (o *AutoBackup) GetDiskID() types.ID { 1748 return o.DiskID 1749 } 1750 1751 // SetDiskID sets value to DiskID 1752 func (o *AutoBackup) SetDiskID(v types.ID) { 1753 o.DiskID = v 1754 } 1755 1756 // GetAccountID returns value of AccountID 1757 func (o *AutoBackup) GetAccountID() types.ID { 1758 return o.AccountID 1759 } 1760 1761 // SetAccountID sets value to AccountID 1762 func (o *AutoBackup) SetAccountID(v types.ID) { 1763 o.AccountID = v 1764 } 1765 1766 // GetZoneID returns value of ZoneID 1767 func (o *AutoBackup) GetZoneID() types.ID { 1768 return o.ZoneID 1769 } 1770 1771 // SetZoneID sets value to ZoneID 1772 func (o *AutoBackup) SetZoneID(v types.ID) { 1773 o.ZoneID = v 1774 } 1775 1776 // GetZoneName returns value of ZoneName 1777 func (o *AutoBackup) GetZoneName() string { 1778 return o.ZoneName 1779 } 1780 1781 // SetZoneName sets value to ZoneName 1782 func (o *AutoBackup) SetZoneName(v string) { 1783 o.ZoneName = v 1784 } 1785 1786 /************************************************* 1787 * AutoBackupCreateRequest 1788 *************************************************/ 1789 1790 // AutoBackupCreateRequest represents API parameter/response structure 1791 type AutoBackupCreateRequest struct { 1792 DiskID types.ID `mapconv:"Status.DiskID"` 1793 BackupSpanWeekdays []types.EDayOfTheWeek `mapconv:"Settings.Autobackup.BackupSpanWeekdays"` 1794 MaximumNumberOfArchives int `mapconv:"Settings.Autobackup.MaximumNumberOfArchives"` 1795 Name string 1796 Description string 1797 Tags types.Tags 1798 IconID types.ID `mapconv:"Icon.ID"` 1799 } 1800 1801 // setDefaults implements iaas.argumentDefaulter 1802 func (o *AutoBackupCreateRequest) setDefaults() interface{} { 1803 return &struct { 1804 DiskID types.ID `mapconv:"Status.DiskID"` 1805 BackupSpanWeekdays []types.EDayOfTheWeek `mapconv:"Settings.Autobackup.BackupSpanWeekdays"` 1806 MaximumNumberOfArchives int `mapconv:"Settings.Autobackup.MaximumNumberOfArchives"` 1807 Name string 1808 Description string 1809 Tags types.Tags 1810 IconID types.ID `mapconv:"Icon.ID"` 1811 Class string `mapconv:"Provider.Class"` 1812 BackupSpanType types.EBackupSpanType `mapconv:"Settings.Autobackup.BackupSpanType"` 1813 }{ 1814 DiskID: o.GetDiskID(), 1815 BackupSpanWeekdays: o.GetBackupSpanWeekdays(), 1816 MaximumNumberOfArchives: o.GetMaximumNumberOfArchives(), 1817 Name: o.GetName(), 1818 Description: o.GetDescription(), 1819 Tags: o.GetTags(), 1820 IconID: o.GetIconID(), 1821 Class: "autobackup", 1822 BackupSpanType: types.BackupSpanTypes.Weekdays, 1823 } 1824 } 1825 1826 // GetDiskID returns value of DiskID 1827 func (o *AutoBackupCreateRequest) GetDiskID() types.ID { 1828 return o.DiskID 1829 } 1830 1831 // SetDiskID sets value to DiskID 1832 func (o *AutoBackupCreateRequest) SetDiskID(v types.ID) { 1833 o.DiskID = v 1834 } 1835 1836 // GetBackupSpanWeekdays returns value of BackupSpanWeekdays 1837 func (o *AutoBackupCreateRequest) GetBackupSpanWeekdays() []types.EDayOfTheWeek { 1838 return o.BackupSpanWeekdays 1839 } 1840 1841 // SetBackupSpanWeekdays sets value to BackupSpanWeekdays 1842 func (o *AutoBackupCreateRequest) SetBackupSpanWeekdays(v []types.EDayOfTheWeek) { 1843 o.BackupSpanWeekdays = v 1844 } 1845 1846 // GetMaximumNumberOfArchives returns value of MaximumNumberOfArchives 1847 func (o *AutoBackupCreateRequest) GetMaximumNumberOfArchives() int { 1848 return o.MaximumNumberOfArchives 1849 } 1850 1851 // SetMaximumNumberOfArchives sets value to MaximumNumberOfArchives 1852 func (o *AutoBackupCreateRequest) SetMaximumNumberOfArchives(v int) { 1853 o.MaximumNumberOfArchives = v 1854 } 1855 1856 // GetName returns value of Name 1857 func (o *AutoBackupCreateRequest) GetName() string { 1858 return o.Name 1859 } 1860 1861 // SetName sets value to Name 1862 func (o *AutoBackupCreateRequest) SetName(v string) { 1863 o.Name = v 1864 } 1865 1866 // GetDescription returns value of Description 1867 func (o *AutoBackupCreateRequest) GetDescription() string { 1868 return o.Description 1869 } 1870 1871 // SetDescription sets value to Description 1872 func (o *AutoBackupCreateRequest) SetDescription(v string) { 1873 o.Description = v 1874 } 1875 1876 // GetTags returns value of Tags 1877 func (o *AutoBackupCreateRequest) GetTags() types.Tags { 1878 return o.Tags 1879 } 1880 1881 // SetTags sets value to Tags 1882 func (o *AutoBackupCreateRequest) SetTags(v types.Tags) { 1883 o.Tags = v 1884 } 1885 1886 // HasTag 指定のタグが存在する場合trueを返す 1887 func (o *AutoBackupCreateRequest) HasTag(tag string) bool { 1888 return accessor.HasTag(o, tag) 1889 } 1890 1891 // AppendTag 指定のタグを追加 1892 func (o *AutoBackupCreateRequest) AppendTag(tag string) { 1893 accessor.AppendTag(o, tag) 1894 } 1895 1896 // RemoveTag 指定のタグを削除 1897 func (o *AutoBackupCreateRequest) RemoveTag(tag string) { 1898 accessor.RemoveTag(o, tag) 1899 } 1900 1901 // ClearTags タグを全クリア 1902 func (o *AutoBackupCreateRequest) ClearTags() { 1903 accessor.ClearTags(o) 1904 } 1905 1906 // GetIconID returns value of IconID 1907 func (o *AutoBackupCreateRequest) GetIconID() types.ID { 1908 return o.IconID 1909 } 1910 1911 // SetIconID sets value to IconID 1912 func (o *AutoBackupCreateRequest) SetIconID(v types.ID) { 1913 o.IconID = v 1914 } 1915 1916 /************************************************* 1917 * AutoBackupUpdateRequest 1918 *************************************************/ 1919 1920 // AutoBackupUpdateRequest represents API parameter/response structure 1921 type AutoBackupUpdateRequest struct { 1922 Name string 1923 Description string 1924 Tags types.Tags 1925 IconID types.ID `mapconv:"Icon.ID"` 1926 BackupSpanWeekdays []types.EDayOfTheWeek `mapconv:"Settings.Autobackup.BackupSpanWeekdays"` 1927 MaximumNumberOfArchives int `mapconv:"Settings.Autobackup.MaximumNumberOfArchives"` 1928 SettingsHash string `json:",omitempty" mapconv:",omitempty"` 1929 } 1930 1931 // setDefaults implements iaas.argumentDefaulter 1932 func (o *AutoBackupUpdateRequest) setDefaults() interface{} { 1933 return &struct { 1934 Name string 1935 Description string 1936 Tags types.Tags 1937 IconID types.ID `mapconv:"Icon.ID"` 1938 BackupSpanWeekdays []types.EDayOfTheWeek `mapconv:"Settings.Autobackup.BackupSpanWeekdays"` 1939 MaximumNumberOfArchives int `mapconv:"Settings.Autobackup.MaximumNumberOfArchives"` 1940 SettingsHash string `json:",omitempty" mapconv:",omitempty"` 1941 BackupSpanType types.EBackupSpanType `mapconv:"Settings.Autobackup.BackupSpanType"` 1942 }{ 1943 Name: o.GetName(), 1944 Description: o.GetDescription(), 1945 Tags: o.GetTags(), 1946 IconID: o.GetIconID(), 1947 BackupSpanWeekdays: o.GetBackupSpanWeekdays(), 1948 MaximumNumberOfArchives: o.GetMaximumNumberOfArchives(), 1949 SettingsHash: o.GetSettingsHash(), 1950 BackupSpanType: types.BackupSpanTypes.Weekdays, 1951 } 1952 } 1953 1954 // GetName returns value of Name 1955 func (o *AutoBackupUpdateRequest) GetName() string { 1956 return o.Name 1957 } 1958 1959 // SetName sets value to Name 1960 func (o *AutoBackupUpdateRequest) SetName(v string) { 1961 o.Name = v 1962 } 1963 1964 // GetDescription returns value of Description 1965 func (o *AutoBackupUpdateRequest) GetDescription() string { 1966 return o.Description 1967 } 1968 1969 // SetDescription sets value to Description 1970 func (o *AutoBackupUpdateRequest) SetDescription(v string) { 1971 o.Description = v 1972 } 1973 1974 // GetTags returns value of Tags 1975 func (o *AutoBackupUpdateRequest) GetTags() types.Tags { 1976 return o.Tags 1977 } 1978 1979 // SetTags sets value to Tags 1980 func (o *AutoBackupUpdateRequest) SetTags(v types.Tags) { 1981 o.Tags = v 1982 } 1983 1984 // HasTag 指定のタグが存在する場合trueを返す 1985 func (o *AutoBackupUpdateRequest) HasTag(tag string) bool { 1986 return accessor.HasTag(o, tag) 1987 } 1988 1989 // AppendTag 指定のタグを追加 1990 func (o *AutoBackupUpdateRequest) AppendTag(tag string) { 1991 accessor.AppendTag(o, tag) 1992 } 1993 1994 // RemoveTag 指定のタグを削除 1995 func (o *AutoBackupUpdateRequest) RemoveTag(tag string) { 1996 accessor.RemoveTag(o, tag) 1997 } 1998 1999 // ClearTags タグを全クリア 2000 func (o *AutoBackupUpdateRequest) ClearTags() { 2001 accessor.ClearTags(o) 2002 } 2003 2004 // GetIconID returns value of IconID 2005 func (o *AutoBackupUpdateRequest) GetIconID() types.ID { 2006 return o.IconID 2007 } 2008 2009 // SetIconID sets value to IconID 2010 func (o *AutoBackupUpdateRequest) SetIconID(v types.ID) { 2011 o.IconID = v 2012 } 2013 2014 // GetBackupSpanWeekdays returns value of BackupSpanWeekdays 2015 func (o *AutoBackupUpdateRequest) GetBackupSpanWeekdays() []types.EDayOfTheWeek { 2016 return o.BackupSpanWeekdays 2017 } 2018 2019 // SetBackupSpanWeekdays sets value to BackupSpanWeekdays 2020 func (o *AutoBackupUpdateRequest) SetBackupSpanWeekdays(v []types.EDayOfTheWeek) { 2021 o.BackupSpanWeekdays = v 2022 } 2023 2024 // GetMaximumNumberOfArchives returns value of MaximumNumberOfArchives 2025 func (o *AutoBackupUpdateRequest) GetMaximumNumberOfArchives() int { 2026 return o.MaximumNumberOfArchives 2027 } 2028 2029 // SetMaximumNumberOfArchives sets value to MaximumNumberOfArchives 2030 func (o *AutoBackupUpdateRequest) SetMaximumNumberOfArchives(v int) { 2031 o.MaximumNumberOfArchives = v 2032 } 2033 2034 // GetSettingsHash returns value of SettingsHash 2035 func (o *AutoBackupUpdateRequest) GetSettingsHash() string { 2036 return o.SettingsHash 2037 } 2038 2039 // SetSettingsHash sets value to SettingsHash 2040 func (o *AutoBackupUpdateRequest) SetSettingsHash(v string) { 2041 o.SettingsHash = v 2042 } 2043 2044 /************************************************* 2045 * AutoBackupUpdateSettingsRequest 2046 *************************************************/ 2047 2048 // AutoBackupUpdateSettingsRequest represents API parameter/response structure 2049 type AutoBackupUpdateSettingsRequest struct { 2050 BackupSpanWeekdays []types.EDayOfTheWeek `mapconv:"Settings.Autobackup.BackupSpanWeekdays"` 2051 MaximumNumberOfArchives int `mapconv:"Settings.Autobackup.MaximumNumberOfArchives"` 2052 SettingsHash string `json:",omitempty" mapconv:",omitempty"` 2053 } 2054 2055 // setDefaults implements iaas.argumentDefaulter 2056 func (o *AutoBackupUpdateSettingsRequest) setDefaults() interface{} { 2057 return &struct { 2058 BackupSpanWeekdays []types.EDayOfTheWeek `mapconv:"Settings.Autobackup.BackupSpanWeekdays"` 2059 MaximumNumberOfArchives int `mapconv:"Settings.Autobackup.MaximumNumberOfArchives"` 2060 SettingsHash string `json:",omitempty" mapconv:",omitempty"` 2061 BackupSpanType types.EBackupSpanType `mapconv:"Settings.Autobackup.BackupSpanType"` 2062 }{ 2063 BackupSpanWeekdays: o.GetBackupSpanWeekdays(), 2064 MaximumNumberOfArchives: o.GetMaximumNumberOfArchives(), 2065 SettingsHash: o.GetSettingsHash(), 2066 BackupSpanType: types.BackupSpanTypes.Weekdays, 2067 } 2068 } 2069 2070 // GetBackupSpanWeekdays returns value of BackupSpanWeekdays 2071 func (o *AutoBackupUpdateSettingsRequest) GetBackupSpanWeekdays() []types.EDayOfTheWeek { 2072 return o.BackupSpanWeekdays 2073 } 2074 2075 // SetBackupSpanWeekdays sets value to BackupSpanWeekdays 2076 func (o *AutoBackupUpdateSettingsRequest) SetBackupSpanWeekdays(v []types.EDayOfTheWeek) { 2077 o.BackupSpanWeekdays = v 2078 } 2079 2080 // GetMaximumNumberOfArchives returns value of MaximumNumberOfArchives 2081 func (o *AutoBackupUpdateSettingsRequest) GetMaximumNumberOfArchives() int { 2082 return o.MaximumNumberOfArchives 2083 } 2084 2085 // SetMaximumNumberOfArchives sets value to MaximumNumberOfArchives 2086 func (o *AutoBackupUpdateSettingsRequest) SetMaximumNumberOfArchives(v int) { 2087 o.MaximumNumberOfArchives = v 2088 } 2089 2090 // GetSettingsHash returns value of SettingsHash 2091 func (o *AutoBackupUpdateSettingsRequest) GetSettingsHash() string { 2092 return o.SettingsHash 2093 } 2094 2095 // SetSettingsHash sets value to SettingsHash 2096 func (o *AutoBackupUpdateSettingsRequest) SetSettingsHash(v string) { 2097 o.SettingsHash = v 2098 } 2099 2100 /************************************************* 2101 * AutoScale 2102 *************************************************/ 2103 2104 // AutoScale represents API parameter/response structure 2105 type AutoScale struct { 2106 ID types.ID 2107 Name string 2108 Description string 2109 Tags types.Tags 2110 Availability types.EAvailability 2111 IconID types.ID `mapconv:"Icon.ID"` 2112 CreatedAt time.Time 2113 ModifiedAt time.Time 2114 Disabled bool `mapconv:"Settings.Disabled"` 2115 Zones []string `mapconv:"Settings.Zones"` 2116 Config string `mapconv:"Settings.Config"` 2117 TriggerType types.EAutoScaleTriggerType `mapconv:"Settings.TriggerType"` 2118 CPUThresholdScaling *AutoScaleCPUThresholdScaling `mapconv:"Settings.CPUThresholdScaling,recursive"` 2119 RouterThresholdScaling *AutoScaleRouterThresholdScaling `mapconv:"Settings.RouterThresholdScaling,recursive"` 2120 ScheduleScaling []*AutoScaleScheduleScaling `mapconv:"Settings.ScheduleScaling,recursive"` 2121 SettingsHash string `json:",omitempty" mapconv:",omitempty"` 2122 APIKeyID string `mapconv:"Status.APIKey.ID"` 2123 } 2124 2125 // setDefaults implements iaas.argumentDefaulter 2126 func (o *AutoScale) setDefaults() interface{} { 2127 return &struct { 2128 ID types.ID 2129 Name string 2130 Description string 2131 Tags types.Tags 2132 Availability types.EAvailability 2133 IconID types.ID `mapconv:"Icon.ID"` 2134 CreatedAt time.Time 2135 ModifiedAt time.Time 2136 Disabled bool `mapconv:"Settings.Disabled"` 2137 Zones []string `mapconv:"Settings.Zones"` 2138 Config string `mapconv:"Settings.Config"` 2139 TriggerType types.EAutoScaleTriggerType `mapconv:"Settings.TriggerType"` 2140 CPUThresholdScaling *AutoScaleCPUThresholdScaling `mapconv:"Settings.CPUThresholdScaling,recursive"` 2141 RouterThresholdScaling *AutoScaleRouterThresholdScaling `mapconv:"Settings.RouterThresholdScaling,recursive"` 2142 ScheduleScaling []*AutoScaleScheduleScaling `mapconv:"Settings.ScheduleScaling,recursive"` 2143 SettingsHash string `json:",omitempty" mapconv:",omitempty"` 2144 APIKeyID string `mapconv:"Status.APIKey.ID"` 2145 }{ 2146 ID: o.GetID(), 2147 Name: o.GetName(), 2148 Description: o.GetDescription(), 2149 Tags: o.GetTags(), 2150 Availability: o.GetAvailability(), 2151 IconID: o.GetIconID(), 2152 CreatedAt: o.GetCreatedAt(), 2153 ModifiedAt: o.GetModifiedAt(), 2154 Disabled: o.GetDisabled(), 2155 Zones: o.GetZones(), 2156 Config: o.GetConfig(), 2157 TriggerType: o.GetTriggerType(), 2158 CPUThresholdScaling: o.GetCPUThresholdScaling(), 2159 RouterThresholdScaling: o.GetRouterThresholdScaling(), 2160 ScheduleScaling: o.GetScheduleScaling(), 2161 SettingsHash: o.GetSettingsHash(), 2162 APIKeyID: o.GetAPIKeyID(), 2163 } 2164 } 2165 2166 // GetID returns value of ID 2167 func (o *AutoScale) GetID() types.ID { 2168 return o.ID 2169 } 2170 2171 // SetID sets value to ID 2172 func (o *AutoScale) SetID(v types.ID) { 2173 o.ID = v 2174 } 2175 2176 // SetStringID . 2177 func (o *AutoScale) SetStringID(id string) { 2178 accessor.SetStringID(o, id) 2179 } 2180 2181 // GetStringID . 2182 func (o *AutoScale) GetStringID() string { 2183 return accessor.GetStringID(o) 2184 } 2185 2186 // SetInt64ID . 2187 func (o *AutoScale) SetInt64ID(id int64) { 2188 accessor.SetInt64ID(o, id) 2189 } 2190 2191 // GetInt64ID . 2192 func (o *AutoScale) GetInt64ID() int64 { 2193 return accessor.GetInt64ID(o) 2194 } 2195 2196 // GetName returns value of Name 2197 func (o *AutoScale) GetName() string { 2198 return o.Name 2199 } 2200 2201 // SetName sets value to Name 2202 func (o *AutoScale) SetName(v string) { 2203 o.Name = v 2204 } 2205 2206 // GetDescription returns value of Description 2207 func (o *AutoScale) GetDescription() string { 2208 return o.Description 2209 } 2210 2211 // SetDescription sets value to Description 2212 func (o *AutoScale) SetDescription(v string) { 2213 o.Description = v 2214 } 2215 2216 // GetTags returns value of Tags 2217 func (o *AutoScale) GetTags() types.Tags { 2218 return o.Tags 2219 } 2220 2221 // SetTags sets value to Tags 2222 func (o *AutoScale) SetTags(v types.Tags) { 2223 o.Tags = v 2224 } 2225 2226 // HasTag 指定のタグが存在する場合trueを返す 2227 func (o *AutoScale) HasTag(tag string) bool { 2228 return accessor.HasTag(o, tag) 2229 } 2230 2231 // AppendTag 指定のタグを追加 2232 func (o *AutoScale) AppendTag(tag string) { 2233 accessor.AppendTag(o, tag) 2234 } 2235 2236 // RemoveTag 指定のタグを削除 2237 func (o *AutoScale) RemoveTag(tag string) { 2238 accessor.RemoveTag(o, tag) 2239 } 2240 2241 // ClearTags タグを全クリア 2242 func (o *AutoScale) ClearTags() { 2243 accessor.ClearTags(o) 2244 } 2245 2246 // GetAvailability returns value of Availability 2247 func (o *AutoScale) GetAvailability() types.EAvailability { 2248 return o.Availability 2249 } 2250 2251 // SetAvailability sets value to Availability 2252 func (o *AutoScale) SetAvailability(v types.EAvailability) { 2253 o.Availability = v 2254 } 2255 2256 // GetIconID returns value of IconID 2257 func (o *AutoScale) GetIconID() types.ID { 2258 return o.IconID 2259 } 2260 2261 // SetIconID sets value to IconID 2262 func (o *AutoScale) SetIconID(v types.ID) { 2263 o.IconID = v 2264 } 2265 2266 // GetCreatedAt returns value of CreatedAt 2267 func (o *AutoScale) GetCreatedAt() time.Time { 2268 return o.CreatedAt 2269 } 2270 2271 // SetCreatedAt sets value to CreatedAt 2272 func (o *AutoScale) SetCreatedAt(v time.Time) { 2273 o.CreatedAt = v 2274 } 2275 2276 // GetModifiedAt returns value of ModifiedAt 2277 func (o *AutoScale) GetModifiedAt() time.Time { 2278 return o.ModifiedAt 2279 } 2280 2281 // SetModifiedAt sets value to ModifiedAt 2282 func (o *AutoScale) SetModifiedAt(v time.Time) { 2283 o.ModifiedAt = v 2284 } 2285 2286 // GetDisabled returns value of Disabled 2287 func (o *AutoScale) GetDisabled() bool { 2288 return o.Disabled 2289 } 2290 2291 // SetDisabled sets value to Disabled 2292 func (o *AutoScale) SetDisabled(v bool) { 2293 o.Disabled = v 2294 } 2295 2296 // GetZones returns value of Zones 2297 func (o *AutoScale) GetZones() []string { 2298 return o.Zones 2299 } 2300 2301 // SetZones sets value to Zones 2302 func (o *AutoScale) SetZones(v []string) { 2303 o.Zones = v 2304 } 2305 2306 // GetConfig returns value of Config 2307 func (o *AutoScale) GetConfig() string { 2308 return o.Config 2309 } 2310 2311 // SetConfig sets value to Config 2312 func (o *AutoScale) SetConfig(v string) { 2313 o.Config = v 2314 } 2315 2316 // GetTriggerType returns value of TriggerType 2317 func (o *AutoScale) GetTriggerType() types.EAutoScaleTriggerType { 2318 return o.TriggerType 2319 } 2320 2321 // SetTriggerType sets value to TriggerType 2322 func (o *AutoScale) SetTriggerType(v types.EAutoScaleTriggerType) { 2323 o.TriggerType = v 2324 } 2325 2326 // GetCPUThresholdScaling returns value of CPUThresholdScaling 2327 func (o *AutoScale) GetCPUThresholdScaling() *AutoScaleCPUThresholdScaling { 2328 return o.CPUThresholdScaling 2329 } 2330 2331 // SetCPUThresholdScaling sets value to CPUThresholdScaling 2332 func (o *AutoScale) SetCPUThresholdScaling(v *AutoScaleCPUThresholdScaling) { 2333 o.CPUThresholdScaling = v 2334 } 2335 2336 // GetRouterThresholdScaling returns value of RouterThresholdScaling 2337 func (o *AutoScale) GetRouterThresholdScaling() *AutoScaleRouterThresholdScaling { 2338 return o.RouterThresholdScaling 2339 } 2340 2341 // SetRouterThresholdScaling sets value to RouterThresholdScaling 2342 func (o *AutoScale) SetRouterThresholdScaling(v *AutoScaleRouterThresholdScaling) { 2343 o.RouterThresholdScaling = v 2344 } 2345 2346 // GetScheduleScaling returns value of ScheduleScaling 2347 func (o *AutoScale) GetScheduleScaling() []*AutoScaleScheduleScaling { 2348 return o.ScheduleScaling 2349 } 2350 2351 // SetScheduleScaling sets value to ScheduleScaling 2352 func (o *AutoScale) SetScheduleScaling(v []*AutoScaleScheduleScaling) { 2353 o.ScheduleScaling = v 2354 } 2355 2356 // GetSettingsHash returns value of SettingsHash 2357 func (o *AutoScale) GetSettingsHash() string { 2358 return o.SettingsHash 2359 } 2360 2361 // SetSettingsHash sets value to SettingsHash 2362 func (o *AutoScale) SetSettingsHash(v string) { 2363 o.SettingsHash = v 2364 } 2365 2366 // GetAPIKeyID returns value of APIKeyID 2367 func (o *AutoScale) GetAPIKeyID() string { 2368 return o.APIKeyID 2369 } 2370 2371 // SetAPIKeyID sets value to APIKeyID 2372 func (o *AutoScale) SetAPIKeyID(v string) { 2373 o.APIKeyID = v 2374 } 2375 2376 /************************************************* 2377 * AutoScaleCPUThresholdScaling 2378 *************************************************/ 2379 2380 // AutoScaleCPUThresholdScaling represents API parameter/response structure 2381 type AutoScaleCPUThresholdScaling struct { 2382 ServerPrefix string 2383 Up int 2384 Down int 2385 } 2386 2387 // setDefaults implements iaas.argumentDefaulter 2388 func (o *AutoScaleCPUThresholdScaling) setDefaults() interface{} { 2389 return &struct { 2390 ServerPrefix string 2391 Up int 2392 Down int 2393 }{ 2394 ServerPrefix: o.GetServerPrefix(), 2395 Up: o.GetUp(), 2396 Down: o.GetDown(), 2397 } 2398 } 2399 2400 // GetServerPrefix returns value of ServerPrefix 2401 func (o *AutoScaleCPUThresholdScaling) GetServerPrefix() string { 2402 return o.ServerPrefix 2403 } 2404 2405 // SetServerPrefix sets value to ServerPrefix 2406 func (o *AutoScaleCPUThresholdScaling) SetServerPrefix(v string) { 2407 o.ServerPrefix = v 2408 } 2409 2410 // GetUp returns value of Up 2411 func (o *AutoScaleCPUThresholdScaling) GetUp() int { 2412 return o.Up 2413 } 2414 2415 // SetUp sets value to Up 2416 func (o *AutoScaleCPUThresholdScaling) SetUp(v int) { 2417 o.Up = v 2418 } 2419 2420 // GetDown returns value of Down 2421 func (o *AutoScaleCPUThresholdScaling) GetDown() int { 2422 return o.Down 2423 } 2424 2425 // SetDown sets value to Down 2426 func (o *AutoScaleCPUThresholdScaling) SetDown(v int) { 2427 o.Down = v 2428 } 2429 2430 /************************************************* 2431 * AutoScaleRouterThresholdScaling 2432 *************************************************/ 2433 2434 // AutoScaleRouterThresholdScaling represents API parameter/response structure 2435 type AutoScaleRouterThresholdScaling struct { 2436 RouterPrefix string 2437 Direction string 2438 Mbps int 2439 } 2440 2441 // setDefaults implements iaas.argumentDefaulter 2442 func (o *AutoScaleRouterThresholdScaling) setDefaults() interface{} { 2443 return &struct { 2444 RouterPrefix string 2445 Direction string 2446 Mbps int 2447 }{ 2448 RouterPrefix: o.GetRouterPrefix(), 2449 Direction: o.GetDirection(), 2450 Mbps: o.GetMbps(), 2451 } 2452 } 2453 2454 // GetRouterPrefix returns value of RouterPrefix 2455 func (o *AutoScaleRouterThresholdScaling) GetRouterPrefix() string { 2456 return o.RouterPrefix 2457 } 2458 2459 // SetRouterPrefix sets value to RouterPrefix 2460 func (o *AutoScaleRouterThresholdScaling) SetRouterPrefix(v string) { 2461 o.RouterPrefix = v 2462 } 2463 2464 // GetDirection returns value of Direction 2465 func (o *AutoScaleRouterThresholdScaling) GetDirection() string { 2466 return o.Direction 2467 } 2468 2469 // SetDirection sets value to Direction 2470 func (o *AutoScaleRouterThresholdScaling) SetDirection(v string) { 2471 o.Direction = v 2472 } 2473 2474 // GetMbps returns value of Mbps 2475 func (o *AutoScaleRouterThresholdScaling) GetMbps() int { 2476 return o.Mbps 2477 } 2478 2479 // SetMbps sets value to Mbps 2480 func (o *AutoScaleRouterThresholdScaling) SetMbps(v int) { 2481 o.Mbps = v 2482 } 2483 2484 /************************************************* 2485 * AutoScaleScheduleScaling 2486 *************************************************/ 2487 2488 // AutoScaleScheduleScaling represents API parameter/response structure 2489 type AutoScaleScheduleScaling struct { 2490 Action types.EAutoScaleAction 2491 Hour int 2492 Minute int 2493 DayOfWeek []types.EDayOfTheWeek 2494 } 2495 2496 // setDefaults implements iaas.argumentDefaulter 2497 func (o *AutoScaleScheduleScaling) setDefaults() interface{} { 2498 return &struct { 2499 Action types.EAutoScaleAction 2500 Hour int 2501 Minute int 2502 DayOfWeek []types.EDayOfTheWeek 2503 }{ 2504 Action: o.GetAction(), 2505 Hour: o.GetHour(), 2506 Minute: o.GetMinute(), 2507 DayOfWeek: o.GetDayOfWeek(), 2508 } 2509 } 2510 2511 // GetAction returns value of Action 2512 func (o *AutoScaleScheduleScaling) GetAction() types.EAutoScaleAction { 2513 return o.Action 2514 } 2515 2516 // SetAction sets value to Action 2517 func (o *AutoScaleScheduleScaling) SetAction(v types.EAutoScaleAction) { 2518 o.Action = v 2519 } 2520 2521 // GetHour returns value of Hour 2522 func (o *AutoScaleScheduleScaling) GetHour() int { 2523 return o.Hour 2524 } 2525 2526 // SetHour sets value to Hour 2527 func (o *AutoScaleScheduleScaling) SetHour(v int) { 2528 o.Hour = v 2529 } 2530 2531 // GetMinute returns value of Minute 2532 func (o *AutoScaleScheduleScaling) GetMinute() int { 2533 return o.Minute 2534 } 2535 2536 // SetMinute sets value to Minute 2537 func (o *AutoScaleScheduleScaling) SetMinute(v int) { 2538 o.Minute = v 2539 } 2540 2541 // GetDayOfWeek returns value of DayOfWeek 2542 func (o *AutoScaleScheduleScaling) GetDayOfWeek() []types.EDayOfTheWeek { 2543 return o.DayOfWeek 2544 } 2545 2546 // SetDayOfWeek sets value to DayOfWeek 2547 func (o *AutoScaleScheduleScaling) SetDayOfWeek(v []types.EDayOfTheWeek) { 2548 o.DayOfWeek = v 2549 } 2550 2551 /************************************************* 2552 * AutoScaleCreateRequest 2553 *************************************************/ 2554 2555 // AutoScaleCreateRequest represents API parameter/response structure 2556 type AutoScaleCreateRequest struct { 2557 Name string 2558 Description string 2559 Tags types.Tags 2560 IconID types.ID `mapconv:"Icon.ID"` 2561 Disabled bool `mapconv:"Settings.Disabled"` 2562 Zones []string `mapconv:"Settings.Zones"` 2563 Config string `mapconv:"Settings.Config"` 2564 TriggerType types.EAutoScaleTriggerType `mapconv:"Settings.TriggerType"` 2565 CPUThresholdScaling *AutoScaleCPUThresholdScaling `mapconv:"Settings.CPUThresholdScaling,recursive"` 2566 RouterThresholdScaling *AutoScaleRouterThresholdScaling `mapconv:"Settings.RouterThresholdScaling,recursive"` 2567 ScheduleScaling []*AutoScaleScheduleScaling `mapconv:"Settings.ScheduleScaling,recursive"` 2568 APIKeyID string `mapconv:"Status.APIKey.ID"` 2569 } 2570 2571 // setDefaults implements iaas.argumentDefaulter 2572 func (o *AutoScaleCreateRequest) setDefaults() interface{} { 2573 return &struct { 2574 Name string 2575 Description string 2576 Tags types.Tags 2577 IconID types.ID `mapconv:"Icon.ID"` 2578 Disabled bool `mapconv:"Settings.Disabled"` 2579 Zones []string `mapconv:"Settings.Zones"` 2580 Config string `mapconv:"Settings.Config"` 2581 TriggerType types.EAutoScaleTriggerType `mapconv:"Settings.TriggerType"` 2582 CPUThresholdScaling *AutoScaleCPUThresholdScaling `mapconv:"Settings.CPUThresholdScaling,recursive"` 2583 RouterThresholdScaling *AutoScaleRouterThresholdScaling `mapconv:"Settings.RouterThresholdScaling,recursive"` 2584 ScheduleScaling []*AutoScaleScheduleScaling `mapconv:"Settings.ScheduleScaling,recursive"` 2585 APIKeyID string `mapconv:"Status.APIKey.ID"` 2586 Class string `mapconv:"Provider.Class"` 2587 ServiceClass string 2588 }{ 2589 Name: o.GetName(), 2590 Description: o.GetDescription(), 2591 Tags: o.GetTags(), 2592 IconID: o.GetIconID(), 2593 Disabled: o.GetDisabled(), 2594 Zones: o.GetZones(), 2595 Config: o.GetConfig(), 2596 TriggerType: o.GetTriggerType(), 2597 CPUThresholdScaling: o.GetCPUThresholdScaling(), 2598 RouterThresholdScaling: o.GetRouterThresholdScaling(), 2599 ScheduleScaling: o.GetScheduleScaling(), 2600 APIKeyID: o.GetAPIKeyID(), 2601 Class: "autoscale", 2602 ServiceClass: "cloud/autoscale/1", 2603 } 2604 } 2605 2606 // GetName returns value of Name 2607 func (o *AutoScaleCreateRequest) GetName() string { 2608 return o.Name 2609 } 2610 2611 // SetName sets value to Name 2612 func (o *AutoScaleCreateRequest) SetName(v string) { 2613 o.Name = v 2614 } 2615 2616 // GetDescription returns value of Description 2617 func (o *AutoScaleCreateRequest) GetDescription() string { 2618 return o.Description 2619 } 2620 2621 // SetDescription sets value to Description 2622 func (o *AutoScaleCreateRequest) SetDescription(v string) { 2623 o.Description = v 2624 } 2625 2626 // GetTags returns value of Tags 2627 func (o *AutoScaleCreateRequest) GetTags() types.Tags { 2628 return o.Tags 2629 } 2630 2631 // SetTags sets value to Tags 2632 func (o *AutoScaleCreateRequest) SetTags(v types.Tags) { 2633 o.Tags = v 2634 } 2635 2636 // HasTag 指定のタグが存在する場合trueを返す 2637 func (o *AutoScaleCreateRequest) HasTag(tag string) bool { 2638 return accessor.HasTag(o, tag) 2639 } 2640 2641 // AppendTag 指定のタグを追加 2642 func (o *AutoScaleCreateRequest) AppendTag(tag string) { 2643 accessor.AppendTag(o, tag) 2644 } 2645 2646 // RemoveTag 指定のタグを削除 2647 func (o *AutoScaleCreateRequest) RemoveTag(tag string) { 2648 accessor.RemoveTag(o, tag) 2649 } 2650 2651 // ClearTags タグを全クリア 2652 func (o *AutoScaleCreateRequest) ClearTags() { 2653 accessor.ClearTags(o) 2654 } 2655 2656 // GetIconID returns value of IconID 2657 func (o *AutoScaleCreateRequest) GetIconID() types.ID { 2658 return o.IconID 2659 } 2660 2661 // SetIconID sets value to IconID 2662 func (o *AutoScaleCreateRequest) SetIconID(v types.ID) { 2663 o.IconID = v 2664 } 2665 2666 // GetDisabled returns value of Disabled 2667 func (o *AutoScaleCreateRequest) GetDisabled() bool { 2668 return o.Disabled 2669 } 2670 2671 // SetDisabled sets value to Disabled 2672 func (o *AutoScaleCreateRequest) SetDisabled(v bool) { 2673 o.Disabled = v 2674 } 2675 2676 // GetZones returns value of Zones 2677 func (o *AutoScaleCreateRequest) GetZones() []string { 2678 return o.Zones 2679 } 2680 2681 // SetZones sets value to Zones 2682 func (o *AutoScaleCreateRequest) SetZones(v []string) { 2683 o.Zones = v 2684 } 2685 2686 // GetConfig returns value of Config 2687 func (o *AutoScaleCreateRequest) GetConfig() string { 2688 return o.Config 2689 } 2690 2691 // SetConfig sets value to Config 2692 func (o *AutoScaleCreateRequest) SetConfig(v string) { 2693 o.Config = v 2694 } 2695 2696 // GetTriggerType returns value of TriggerType 2697 func (o *AutoScaleCreateRequest) GetTriggerType() types.EAutoScaleTriggerType { 2698 return o.TriggerType 2699 } 2700 2701 // SetTriggerType sets value to TriggerType 2702 func (o *AutoScaleCreateRequest) SetTriggerType(v types.EAutoScaleTriggerType) { 2703 o.TriggerType = v 2704 } 2705 2706 // GetCPUThresholdScaling returns value of CPUThresholdScaling 2707 func (o *AutoScaleCreateRequest) GetCPUThresholdScaling() *AutoScaleCPUThresholdScaling { 2708 return o.CPUThresholdScaling 2709 } 2710 2711 // SetCPUThresholdScaling sets value to CPUThresholdScaling 2712 func (o *AutoScaleCreateRequest) SetCPUThresholdScaling(v *AutoScaleCPUThresholdScaling) { 2713 o.CPUThresholdScaling = v 2714 } 2715 2716 // GetRouterThresholdScaling returns value of RouterThresholdScaling 2717 func (o *AutoScaleCreateRequest) GetRouterThresholdScaling() *AutoScaleRouterThresholdScaling { 2718 return o.RouterThresholdScaling 2719 } 2720 2721 // SetRouterThresholdScaling sets value to RouterThresholdScaling 2722 func (o *AutoScaleCreateRequest) SetRouterThresholdScaling(v *AutoScaleRouterThresholdScaling) { 2723 o.RouterThresholdScaling = v 2724 } 2725 2726 // GetScheduleScaling returns value of ScheduleScaling 2727 func (o *AutoScaleCreateRequest) GetScheduleScaling() []*AutoScaleScheduleScaling { 2728 return o.ScheduleScaling 2729 } 2730 2731 // SetScheduleScaling sets value to ScheduleScaling 2732 func (o *AutoScaleCreateRequest) SetScheduleScaling(v []*AutoScaleScheduleScaling) { 2733 o.ScheduleScaling = v 2734 } 2735 2736 // GetAPIKeyID returns value of APIKeyID 2737 func (o *AutoScaleCreateRequest) GetAPIKeyID() string { 2738 return o.APIKeyID 2739 } 2740 2741 // SetAPIKeyID sets value to APIKeyID 2742 func (o *AutoScaleCreateRequest) SetAPIKeyID(v string) { 2743 o.APIKeyID = v 2744 } 2745 2746 /************************************************* 2747 * AutoScaleUpdateRequest 2748 *************************************************/ 2749 2750 // AutoScaleUpdateRequest represents API parameter/response structure 2751 type AutoScaleUpdateRequest struct { 2752 Name string 2753 Description string 2754 Tags types.Tags 2755 IconID types.ID `mapconv:"Icon.ID"` 2756 Disabled bool `mapconv:"Settings.Disabled"` 2757 Zones []string `mapconv:"Settings.Zones"` 2758 Config string `mapconv:"Settings.Config"` 2759 TriggerType types.EAutoScaleTriggerType `mapconv:"Settings.TriggerType"` 2760 CPUThresholdScaling *AutoScaleCPUThresholdScaling `mapconv:"Settings.CPUThresholdScaling,recursive"` 2761 RouterThresholdScaling *AutoScaleRouterThresholdScaling `mapconv:"Settings.RouterThresholdScaling,recursive"` 2762 ScheduleScaling []*AutoScaleScheduleScaling `mapconv:"Settings.ScheduleScaling,recursive"` 2763 SettingsHash string `json:",omitempty" mapconv:",omitempty"` 2764 } 2765 2766 // setDefaults implements iaas.argumentDefaulter 2767 func (o *AutoScaleUpdateRequest) setDefaults() interface{} { 2768 return &struct { 2769 Name string 2770 Description string 2771 Tags types.Tags 2772 IconID types.ID `mapconv:"Icon.ID"` 2773 Disabled bool `mapconv:"Settings.Disabled"` 2774 Zones []string `mapconv:"Settings.Zones"` 2775 Config string `mapconv:"Settings.Config"` 2776 TriggerType types.EAutoScaleTriggerType `mapconv:"Settings.TriggerType"` 2777 CPUThresholdScaling *AutoScaleCPUThresholdScaling `mapconv:"Settings.CPUThresholdScaling,recursive"` 2778 RouterThresholdScaling *AutoScaleRouterThresholdScaling `mapconv:"Settings.RouterThresholdScaling,recursive"` 2779 ScheduleScaling []*AutoScaleScheduleScaling `mapconv:"Settings.ScheduleScaling,recursive"` 2780 SettingsHash string `json:",omitempty" mapconv:",omitempty"` 2781 }{ 2782 Name: o.GetName(), 2783 Description: o.GetDescription(), 2784 Tags: o.GetTags(), 2785 IconID: o.GetIconID(), 2786 Disabled: o.GetDisabled(), 2787 Zones: o.GetZones(), 2788 Config: o.GetConfig(), 2789 TriggerType: o.GetTriggerType(), 2790 CPUThresholdScaling: o.GetCPUThresholdScaling(), 2791 RouterThresholdScaling: o.GetRouterThresholdScaling(), 2792 ScheduleScaling: o.GetScheduleScaling(), 2793 SettingsHash: o.GetSettingsHash(), 2794 } 2795 } 2796 2797 // GetName returns value of Name 2798 func (o *AutoScaleUpdateRequest) GetName() string { 2799 return o.Name 2800 } 2801 2802 // SetName sets value to Name 2803 func (o *AutoScaleUpdateRequest) SetName(v string) { 2804 o.Name = v 2805 } 2806 2807 // GetDescription returns value of Description 2808 func (o *AutoScaleUpdateRequest) GetDescription() string { 2809 return o.Description 2810 } 2811 2812 // SetDescription sets value to Description 2813 func (o *AutoScaleUpdateRequest) SetDescription(v string) { 2814 o.Description = v 2815 } 2816 2817 // GetTags returns value of Tags 2818 func (o *AutoScaleUpdateRequest) GetTags() types.Tags { 2819 return o.Tags 2820 } 2821 2822 // SetTags sets value to Tags 2823 func (o *AutoScaleUpdateRequest) SetTags(v types.Tags) { 2824 o.Tags = v 2825 } 2826 2827 // HasTag 指定のタグが存在する場合trueを返す 2828 func (o *AutoScaleUpdateRequest) HasTag(tag string) bool { 2829 return accessor.HasTag(o, tag) 2830 } 2831 2832 // AppendTag 指定のタグを追加 2833 func (o *AutoScaleUpdateRequest) AppendTag(tag string) { 2834 accessor.AppendTag(o, tag) 2835 } 2836 2837 // RemoveTag 指定のタグを削除 2838 func (o *AutoScaleUpdateRequest) RemoveTag(tag string) { 2839 accessor.RemoveTag(o, tag) 2840 } 2841 2842 // ClearTags タグを全クリア 2843 func (o *AutoScaleUpdateRequest) ClearTags() { 2844 accessor.ClearTags(o) 2845 } 2846 2847 // GetIconID returns value of IconID 2848 func (o *AutoScaleUpdateRequest) GetIconID() types.ID { 2849 return o.IconID 2850 } 2851 2852 // SetIconID sets value to IconID 2853 func (o *AutoScaleUpdateRequest) SetIconID(v types.ID) { 2854 o.IconID = v 2855 } 2856 2857 // GetDisabled returns value of Disabled 2858 func (o *AutoScaleUpdateRequest) GetDisabled() bool { 2859 return o.Disabled 2860 } 2861 2862 // SetDisabled sets value to Disabled 2863 func (o *AutoScaleUpdateRequest) SetDisabled(v bool) { 2864 o.Disabled = v 2865 } 2866 2867 // GetZones returns value of Zones 2868 func (o *AutoScaleUpdateRequest) GetZones() []string { 2869 return o.Zones 2870 } 2871 2872 // SetZones sets value to Zones 2873 func (o *AutoScaleUpdateRequest) SetZones(v []string) { 2874 o.Zones = v 2875 } 2876 2877 // GetConfig returns value of Config 2878 func (o *AutoScaleUpdateRequest) GetConfig() string { 2879 return o.Config 2880 } 2881 2882 // SetConfig sets value to Config 2883 func (o *AutoScaleUpdateRequest) SetConfig(v string) { 2884 o.Config = v 2885 } 2886 2887 // GetTriggerType returns value of TriggerType 2888 func (o *AutoScaleUpdateRequest) GetTriggerType() types.EAutoScaleTriggerType { 2889 return o.TriggerType 2890 } 2891 2892 // SetTriggerType sets value to TriggerType 2893 func (o *AutoScaleUpdateRequest) SetTriggerType(v types.EAutoScaleTriggerType) { 2894 o.TriggerType = v 2895 } 2896 2897 // GetCPUThresholdScaling returns value of CPUThresholdScaling 2898 func (o *AutoScaleUpdateRequest) GetCPUThresholdScaling() *AutoScaleCPUThresholdScaling { 2899 return o.CPUThresholdScaling 2900 } 2901 2902 // SetCPUThresholdScaling sets value to CPUThresholdScaling 2903 func (o *AutoScaleUpdateRequest) SetCPUThresholdScaling(v *AutoScaleCPUThresholdScaling) { 2904 o.CPUThresholdScaling = v 2905 } 2906 2907 // GetRouterThresholdScaling returns value of RouterThresholdScaling 2908 func (o *AutoScaleUpdateRequest) GetRouterThresholdScaling() *AutoScaleRouterThresholdScaling { 2909 return o.RouterThresholdScaling 2910 } 2911 2912 // SetRouterThresholdScaling sets value to RouterThresholdScaling 2913 func (o *AutoScaleUpdateRequest) SetRouterThresholdScaling(v *AutoScaleRouterThresholdScaling) { 2914 o.RouterThresholdScaling = v 2915 } 2916 2917 // GetScheduleScaling returns value of ScheduleScaling 2918 func (o *AutoScaleUpdateRequest) GetScheduleScaling() []*AutoScaleScheduleScaling { 2919 return o.ScheduleScaling 2920 } 2921 2922 // SetScheduleScaling sets value to ScheduleScaling 2923 func (o *AutoScaleUpdateRequest) SetScheduleScaling(v []*AutoScaleScheduleScaling) { 2924 o.ScheduleScaling = v 2925 } 2926 2927 // GetSettingsHash returns value of SettingsHash 2928 func (o *AutoScaleUpdateRequest) GetSettingsHash() string { 2929 return o.SettingsHash 2930 } 2931 2932 // SetSettingsHash sets value to SettingsHash 2933 func (o *AutoScaleUpdateRequest) SetSettingsHash(v string) { 2934 o.SettingsHash = v 2935 } 2936 2937 /************************************************* 2938 * AutoScaleUpdateSettingsRequest 2939 *************************************************/ 2940 2941 // AutoScaleUpdateSettingsRequest represents API parameter/response structure 2942 type AutoScaleUpdateSettingsRequest struct { 2943 Disabled bool `mapconv:"Settings.Disabled"` 2944 Zones []string `mapconv:"Settings.Zones"` 2945 Config string `mapconv:"Settings.Config"` 2946 TriggerType types.EAutoScaleTriggerType `mapconv:"Settings.TriggerType"` 2947 CPUThresholdScaling *AutoScaleCPUThresholdScaling `mapconv:"Settings.CPUThresholdScaling,recursive"` 2948 RouterThresholdScaling *AutoScaleRouterThresholdScaling `mapconv:"Settings.RouterThresholdScaling,recursive"` 2949 ScheduleScaling []*AutoScaleScheduleScaling `mapconv:"Settings.ScheduleScaling,recursive"` 2950 SettingsHash string `json:",omitempty" mapconv:",omitempty"` 2951 } 2952 2953 // setDefaults implements iaas.argumentDefaulter 2954 func (o *AutoScaleUpdateSettingsRequest) setDefaults() interface{} { 2955 return &struct { 2956 Disabled bool `mapconv:"Settings.Disabled"` 2957 Zones []string `mapconv:"Settings.Zones"` 2958 Config string `mapconv:"Settings.Config"` 2959 TriggerType types.EAutoScaleTriggerType `mapconv:"Settings.TriggerType"` 2960 CPUThresholdScaling *AutoScaleCPUThresholdScaling `mapconv:"Settings.CPUThresholdScaling,recursive"` 2961 RouterThresholdScaling *AutoScaleRouterThresholdScaling `mapconv:"Settings.RouterThresholdScaling,recursive"` 2962 ScheduleScaling []*AutoScaleScheduleScaling `mapconv:"Settings.ScheduleScaling,recursive"` 2963 SettingsHash string `json:",omitempty" mapconv:",omitempty"` 2964 }{ 2965 Disabled: o.GetDisabled(), 2966 Zones: o.GetZones(), 2967 Config: o.GetConfig(), 2968 TriggerType: o.GetTriggerType(), 2969 CPUThresholdScaling: o.GetCPUThresholdScaling(), 2970 RouterThresholdScaling: o.GetRouterThresholdScaling(), 2971 ScheduleScaling: o.GetScheduleScaling(), 2972 SettingsHash: o.GetSettingsHash(), 2973 } 2974 } 2975 2976 // GetDisabled returns value of Disabled 2977 func (o *AutoScaleUpdateSettingsRequest) GetDisabled() bool { 2978 return o.Disabled 2979 } 2980 2981 // SetDisabled sets value to Disabled 2982 func (o *AutoScaleUpdateSettingsRequest) SetDisabled(v bool) { 2983 o.Disabled = v 2984 } 2985 2986 // GetZones returns value of Zones 2987 func (o *AutoScaleUpdateSettingsRequest) GetZones() []string { 2988 return o.Zones 2989 } 2990 2991 // SetZones sets value to Zones 2992 func (o *AutoScaleUpdateSettingsRequest) SetZones(v []string) { 2993 o.Zones = v 2994 } 2995 2996 // GetConfig returns value of Config 2997 func (o *AutoScaleUpdateSettingsRequest) GetConfig() string { 2998 return o.Config 2999 } 3000 3001 // SetConfig sets value to Config 3002 func (o *AutoScaleUpdateSettingsRequest) SetConfig(v string) { 3003 o.Config = v 3004 } 3005 3006 // GetTriggerType returns value of TriggerType 3007 func (o *AutoScaleUpdateSettingsRequest) GetTriggerType() types.EAutoScaleTriggerType { 3008 return o.TriggerType 3009 } 3010 3011 // SetTriggerType sets value to TriggerType 3012 func (o *AutoScaleUpdateSettingsRequest) SetTriggerType(v types.EAutoScaleTriggerType) { 3013 o.TriggerType = v 3014 } 3015 3016 // GetCPUThresholdScaling returns value of CPUThresholdScaling 3017 func (o *AutoScaleUpdateSettingsRequest) GetCPUThresholdScaling() *AutoScaleCPUThresholdScaling { 3018 return o.CPUThresholdScaling 3019 } 3020 3021 // SetCPUThresholdScaling sets value to CPUThresholdScaling 3022 func (o *AutoScaleUpdateSettingsRequest) SetCPUThresholdScaling(v *AutoScaleCPUThresholdScaling) { 3023 o.CPUThresholdScaling = v 3024 } 3025 3026 // GetRouterThresholdScaling returns value of RouterThresholdScaling 3027 func (o *AutoScaleUpdateSettingsRequest) GetRouterThresholdScaling() *AutoScaleRouterThresholdScaling { 3028 return o.RouterThresholdScaling 3029 } 3030 3031 // SetRouterThresholdScaling sets value to RouterThresholdScaling 3032 func (o *AutoScaleUpdateSettingsRequest) SetRouterThresholdScaling(v *AutoScaleRouterThresholdScaling) { 3033 o.RouterThresholdScaling = v 3034 } 3035 3036 // GetScheduleScaling returns value of ScheduleScaling 3037 func (o *AutoScaleUpdateSettingsRequest) GetScheduleScaling() []*AutoScaleScheduleScaling { 3038 return o.ScheduleScaling 3039 } 3040 3041 // SetScheduleScaling sets value to ScheduleScaling 3042 func (o *AutoScaleUpdateSettingsRequest) SetScheduleScaling(v []*AutoScaleScheduleScaling) { 3043 o.ScheduleScaling = v 3044 } 3045 3046 // GetSettingsHash returns value of SettingsHash 3047 func (o *AutoScaleUpdateSettingsRequest) GetSettingsHash() string { 3048 return o.SettingsHash 3049 } 3050 3051 // SetSettingsHash sets value to SettingsHash 3052 func (o *AutoScaleUpdateSettingsRequest) SetSettingsHash(v string) { 3053 o.SettingsHash = v 3054 } 3055 3056 /************************************************* 3057 * AutoScaleStatus 3058 *************************************************/ 3059 3060 // AutoScaleStatus represents API parameter/response structure 3061 type AutoScaleStatus struct { 3062 LatestLogs []string 3063 ResourcesText string 3064 } 3065 3066 // setDefaults implements iaas.argumentDefaulter 3067 func (o *AutoScaleStatus) setDefaults() interface{} { 3068 return &struct { 3069 LatestLogs []string 3070 ResourcesText string 3071 }{ 3072 LatestLogs: o.GetLatestLogs(), 3073 ResourcesText: o.GetResourcesText(), 3074 } 3075 } 3076 3077 // GetLatestLogs returns value of LatestLogs 3078 func (o *AutoScaleStatus) GetLatestLogs() []string { 3079 return o.LatestLogs 3080 } 3081 3082 // SetLatestLogs sets value to LatestLogs 3083 func (o *AutoScaleStatus) SetLatestLogs(v []string) { 3084 o.LatestLogs = v 3085 } 3086 3087 // GetResourcesText returns value of ResourcesText 3088 func (o *AutoScaleStatus) GetResourcesText() string { 3089 return o.ResourcesText 3090 } 3091 3092 // SetResourcesText sets value to ResourcesText 3093 func (o *AutoScaleStatus) SetResourcesText(v string) { 3094 o.ResourcesText = v 3095 } 3096 3097 /************************************************* 3098 * Bill 3099 *************************************************/ 3100 3101 // Bill represents API parameter/response structure 3102 type Bill struct { 3103 ID types.ID 3104 Amount int64 3105 Date time.Time 3106 MemberID string 3107 Paid bool 3108 PayLimit time.Time 3109 PaymentClassID types.ID 3110 } 3111 3112 // setDefaults implements iaas.argumentDefaulter 3113 func (o *Bill) setDefaults() interface{} { 3114 return &struct { 3115 ID types.ID 3116 Amount int64 3117 Date time.Time 3118 MemberID string 3119 Paid bool 3120 PayLimit time.Time 3121 PaymentClassID types.ID 3122 }{ 3123 ID: o.GetID(), 3124 Amount: o.GetAmount(), 3125 Date: o.GetDate(), 3126 MemberID: o.GetMemberID(), 3127 Paid: o.GetPaid(), 3128 PayLimit: o.GetPayLimit(), 3129 PaymentClassID: o.GetPaymentClassID(), 3130 } 3131 } 3132 3133 // GetID returns value of ID 3134 func (o *Bill) GetID() types.ID { 3135 return o.ID 3136 } 3137 3138 // SetID sets value to ID 3139 func (o *Bill) SetID(v types.ID) { 3140 o.ID = v 3141 } 3142 3143 // SetStringID . 3144 func (o *Bill) SetStringID(id string) { 3145 accessor.SetStringID(o, id) 3146 } 3147 3148 // GetStringID . 3149 func (o *Bill) GetStringID() string { 3150 return accessor.GetStringID(o) 3151 } 3152 3153 // SetInt64ID . 3154 func (o *Bill) SetInt64ID(id int64) { 3155 accessor.SetInt64ID(o, id) 3156 } 3157 3158 // GetInt64ID . 3159 func (o *Bill) GetInt64ID() int64 { 3160 return accessor.GetInt64ID(o) 3161 } 3162 3163 // GetAmount returns value of Amount 3164 func (o *Bill) GetAmount() int64 { 3165 return o.Amount 3166 } 3167 3168 // SetAmount sets value to Amount 3169 func (o *Bill) SetAmount(v int64) { 3170 o.Amount = v 3171 } 3172 3173 // GetDate returns value of Date 3174 func (o *Bill) GetDate() time.Time { 3175 return o.Date 3176 } 3177 3178 // SetDate sets value to Date 3179 func (o *Bill) SetDate(v time.Time) { 3180 o.Date = v 3181 } 3182 3183 // GetMemberID returns value of MemberID 3184 func (o *Bill) GetMemberID() string { 3185 return o.MemberID 3186 } 3187 3188 // SetMemberID sets value to MemberID 3189 func (o *Bill) SetMemberID(v string) { 3190 o.MemberID = v 3191 } 3192 3193 // GetPaid returns value of Paid 3194 func (o *Bill) GetPaid() bool { 3195 return o.Paid 3196 } 3197 3198 // SetPaid sets value to Paid 3199 func (o *Bill) SetPaid(v bool) { 3200 o.Paid = v 3201 } 3202 3203 // GetPayLimit returns value of PayLimit 3204 func (o *Bill) GetPayLimit() time.Time { 3205 return o.PayLimit 3206 } 3207 3208 // SetPayLimit sets value to PayLimit 3209 func (o *Bill) SetPayLimit(v time.Time) { 3210 o.PayLimit = v 3211 } 3212 3213 // GetPaymentClassID returns value of PaymentClassID 3214 func (o *Bill) GetPaymentClassID() types.ID { 3215 return o.PaymentClassID 3216 } 3217 3218 // SetPaymentClassID sets value to PaymentClassID 3219 func (o *Bill) SetPaymentClassID(v types.ID) { 3220 o.PaymentClassID = v 3221 } 3222 3223 /************************************************* 3224 * BillDetail 3225 *************************************************/ 3226 3227 // BillDetail represents API parameter/response structure 3228 type BillDetail struct { 3229 ID types.ID 3230 Amount int64 3231 Description string 3232 ServiceClassID types.ID 3233 ServiceClassPath string 3234 Usage int64 3235 FormattedUsage string 3236 ServiceUsagePath string 3237 Zone string 3238 ContractEndAt time.Time 3239 } 3240 3241 // setDefaults implements iaas.argumentDefaulter 3242 func (o *BillDetail) setDefaults() interface{} { 3243 return &struct { 3244 ID types.ID 3245 Amount int64 3246 Description string 3247 ServiceClassID types.ID 3248 ServiceClassPath string 3249 Usage int64 3250 FormattedUsage string 3251 ServiceUsagePath string 3252 Zone string 3253 ContractEndAt time.Time 3254 }{ 3255 ID: o.GetID(), 3256 Amount: o.GetAmount(), 3257 Description: o.GetDescription(), 3258 ServiceClassID: o.GetServiceClassID(), 3259 ServiceClassPath: o.GetServiceClassPath(), 3260 Usage: o.GetUsage(), 3261 FormattedUsage: o.GetFormattedUsage(), 3262 ServiceUsagePath: o.GetServiceUsagePath(), 3263 Zone: o.GetZone(), 3264 ContractEndAt: o.GetContractEndAt(), 3265 } 3266 } 3267 3268 // GetID returns value of ID 3269 func (o *BillDetail) GetID() types.ID { 3270 return o.ID 3271 } 3272 3273 // SetID sets value to ID 3274 func (o *BillDetail) SetID(v types.ID) { 3275 o.ID = v 3276 } 3277 3278 // SetStringID . 3279 func (o *BillDetail) SetStringID(id string) { 3280 accessor.SetStringID(o, id) 3281 } 3282 3283 // GetStringID . 3284 func (o *BillDetail) GetStringID() string { 3285 return accessor.GetStringID(o) 3286 } 3287 3288 // SetInt64ID . 3289 func (o *BillDetail) SetInt64ID(id int64) { 3290 accessor.SetInt64ID(o, id) 3291 } 3292 3293 // GetInt64ID . 3294 func (o *BillDetail) GetInt64ID() int64 { 3295 return accessor.GetInt64ID(o) 3296 } 3297 3298 // GetAmount returns value of Amount 3299 func (o *BillDetail) GetAmount() int64 { 3300 return o.Amount 3301 } 3302 3303 // SetAmount sets value to Amount 3304 func (o *BillDetail) SetAmount(v int64) { 3305 o.Amount = v 3306 } 3307 3308 // GetDescription returns value of Description 3309 func (o *BillDetail) GetDescription() string { 3310 return o.Description 3311 } 3312 3313 // SetDescription sets value to Description 3314 func (o *BillDetail) SetDescription(v string) { 3315 o.Description = v 3316 } 3317 3318 // GetServiceClassID returns value of ServiceClassID 3319 func (o *BillDetail) GetServiceClassID() types.ID { 3320 return o.ServiceClassID 3321 } 3322 3323 // SetServiceClassID sets value to ServiceClassID 3324 func (o *BillDetail) SetServiceClassID(v types.ID) { 3325 o.ServiceClassID = v 3326 } 3327 3328 // GetServiceClassPath returns value of ServiceClassPath 3329 func (o *BillDetail) GetServiceClassPath() string { 3330 return o.ServiceClassPath 3331 } 3332 3333 // SetServiceClassPath sets value to ServiceClassPath 3334 func (o *BillDetail) SetServiceClassPath(v string) { 3335 o.ServiceClassPath = v 3336 } 3337 3338 // GetUsage returns value of Usage 3339 func (o *BillDetail) GetUsage() int64 { 3340 return o.Usage 3341 } 3342 3343 // SetUsage sets value to Usage 3344 func (o *BillDetail) SetUsage(v int64) { 3345 o.Usage = v 3346 } 3347 3348 // GetFormattedUsage returns value of FormattedUsage 3349 func (o *BillDetail) GetFormattedUsage() string { 3350 return o.FormattedUsage 3351 } 3352 3353 // SetFormattedUsage sets value to FormattedUsage 3354 func (o *BillDetail) SetFormattedUsage(v string) { 3355 o.FormattedUsage = v 3356 } 3357 3358 // GetServiceUsagePath returns value of ServiceUsagePath 3359 func (o *BillDetail) GetServiceUsagePath() string { 3360 return o.ServiceUsagePath 3361 } 3362 3363 // SetServiceUsagePath sets value to ServiceUsagePath 3364 func (o *BillDetail) SetServiceUsagePath(v string) { 3365 o.ServiceUsagePath = v 3366 } 3367 3368 // GetZone returns value of Zone 3369 func (o *BillDetail) GetZone() string { 3370 return o.Zone 3371 } 3372 3373 // SetZone sets value to Zone 3374 func (o *BillDetail) SetZone(v string) { 3375 o.Zone = v 3376 } 3377 3378 // GetContractEndAt returns value of ContractEndAt 3379 func (o *BillDetail) GetContractEndAt() time.Time { 3380 return o.ContractEndAt 3381 } 3382 3383 // SetContractEndAt sets value to ContractEndAt 3384 func (o *BillDetail) SetContractEndAt(v time.Time) { 3385 o.ContractEndAt = v 3386 } 3387 3388 /************************************************* 3389 * BillDetailCSV 3390 *************************************************/ 3391 3392 // BillDetailCSV represents API parameter/response structure 3393 type BillDetailCSV struct { 3394 Count int 3395 ResponsedAt time.Time 3396 Filename string 3397 RawBody string 3398 HeaderRow []string 3399 BodyRows [][]string 3400 } 3401 3402 // setDefaults implements iaas.argumentDefaulter 3403 func (o *BillDetailCSV) setDefaults() interface{} { 3404 return &struct { 3405 Count int 3406 ResponsedAt time.Time 3407 Filename string 3408 RawBody string 3409 HeaderRow []string 3410 BodyRows [][]string 3411 }{ 3412 Count: o.GetCount(), 3413 ResponsedAt: o.GetResponsedAt(), 3414 Filename: o.GetFilename(), 3415 RawBody: o.GetRawBody(), 3416 HeaderRow: o.GetHeaderRow(), 3417 BodyRows: o.GetBodyRows(), 3418 } 3419 } 3420 3421 // GetCount returns value of Count 3422 func (o *BillDetailCSV) GetCount() int { 3423 return o.Count 3424 } 3425 3426 // SetCount sets value to Count 3427 func (o *BillDetailCSV) SetCount(v int) { 3428 o.Count = v 3429 } 3430 3431 // GetResponsedAt returns value of ResponsedAt 3432 func (o *BillDetailCSV) GetResponsedAt() time.Time { 3433 return o.ResponsedAt 3434 } 3435 3436 // SetResponsedAt sets value to ResponsedAt 3437 func (o *BillDetailCSV) SetResponsedAt(v time.Time) { 3438 o.ResponsedAt = v 3439 } 3440 3441 // GetFilename returns value of Filename 3442 func (o *BillDetailCSV) GetFilename() string { 3443 return o.Filename 3444 } 3445 3446 // SetFilename sets value to Filename 3447 func (o *BillDetailCSV) SetFilename(v string) { 3448 o.Filename = v 3449 } 3450 3451 // GetRawBody returns value of RawBody 3452 func (o *BillDetailCSV) GetRawBody() string { 3453 return o.RawBody 3454 } 3455 3456 // SetRawBody sets value to RawBody 3457 func (o *BillDetailCSV) SetRawBody(v string) { 3458 o.RawBody = v 3459 } 3460 3461 // GetHeaderRow returns value of HeaderRow 3462 func (o *BillDetailCSV) GetHeaderRow() []string { 3463 return o.HeaderRow 3464 } 3465 3466 // SetHeaderRow sets value to HeaderRow 3467 func (o *BillDetailCSV) SetHeaderRow(v []string) { 3468 o.HeaderRow = v 3469 } 3470 3471 // GetBodyRows returns value of BodyRows 3472 func (o *BillDetailCSV) GetBodyRows() [][]string { 3473 return o.BodyRows 3474 } 3475 3476 // SetBodyRows sets value to BodyRows 3477 func (o *BillDetailCSV) SetBodyRows(v [][]string) { 3478 o.BodyRows = v 3479 } 3480 3481 /************************************************* 3482 * Bridge 3483 *************************************************/ 3484 3485 // Bridge represents API parameter/response structure 3486 type Bridge struct { 3487 ID types.ID 3488 Name string 3489 Description string 3490 CreatedAt time.Time 3491 Region *Region `json:",omitempty"` 3492 BridgeInfo []*BridgeInfo `mapconv:"Info.[]Switches,recursive"` 3493 SwitchInZone *BridgeSwitchInfo 3494 } 3495 3496 // setDefaults implements iaas.argumentDefaulter 3497 func (o *Bridge) setDefaults() interface{} { 3498 return &struct { 3499 ID types.ID 3500 Name string 3501 Description string 3502 CreatedAt time.Time 3503 Region *Region `json:",omitempty"` 3504 BridgeInfo []*BridgeInfo `mapconv:"Info.[]Switches,recursive"` 3505 SwitchInZone *BridgeSwitchInfo 3506 }{ 3507 ID: o.GetID(), 3508 Name: o.GetName(), 3509 Description: o.GetDescription(), 3510 CreatedAt: o.GetCreatedAt(), 3511 Region: o.GetRegion(), 3512 BridgeInfo: o.GetBridgeInfo(), 3513 SwitchInZone: o.GetSwitchInZone(), 3514 } 3515 } 3516 3517 // GetID returns value of ID 3518 func (o *Bridge) GetID() types.ID { 3519 return o.ID 3520 } 3521 3522 // SetID sets value to ID 3523 func (o *Bridge) SetID(v types.ID) { 3524 o.ID = v 3525 } 3526 3527 // SetStringID . 3528 func (o *Bridge) SetStringID(id string) { 3529 accessor.SetStringID(o, id) 3530 } 3531 3532 // GetStringID . 3533 func (o *Bridge) GetStringID() string { 3534 return accessor.GetStringID(o) 3535 } 3536 3537 // SetInt64ID . 3538 func (o *Bridge) SetInt64ID(id int64) { 3539 accessor.SetInt64ID(o, id) 3540 } 3541 3542 // GetInt64ID . 3543 func (o *Bridge) GetInt64ID() int64 { 3544 return accessor.GetInt64ID(o) 3545 } 3546 3547 // GetName returns value of Name 3548 func (o *Bridge) GetName() string { 3549 return o.Name 3550 } 3551 3552 // SetName sets value to Name 3553 func (o *Bridge) SetName(v string) { 3554 o.Name = v 3555 } 3556 3557 // GetDescription returns value of Description 3558 func (o *Bridge) GetDescription() string { 3559 return o.Description 3560 } 3561 3562 // SetDescription sets value to Description 3563 func (o *Bridge) SetDescription(v string) { 3564 o.Description = v 3565 } 3566 3567 // GetCreatedAt returns value of CreatedAt 3568 func (o *Bridge) GetCreatedAt() time.Time { 3569 return o.CreatedAt 3570 } 3571 3572 // SetCreatedAt sets value to CreatedAt 3573 func (o *Bridge) SetCreatedAt(v time.Time) { 3574 o.CreatedAt = v 3575 } 3576 3577 // GetRegion returns value of Region 3578 func (o *Bridge) GetRegion() *Region { 3579 return o.Region 3580 } 3581 3582 // SetRegion sets value to Region 3583 func (o *Bridge) SetRegion(v *Region) { 3584 o.Region = v 3585 } 3586 3587 // GetBridgeInfo returns value of BridgeInfo 3588 func (o *Bridge) GetBridgeInfo() []*BridgeInfo { 3589 return o.BridgeInfo 3590 } 3591 3592 // SetBridgeInfo sets value to BridgeInfo 3593 func (o *Bridge) SetBridgeInfo(v []*BridgeInfo) { 3594 o.BridgeInfo = v 3595 } 3596 3597 // GetSwitchInZone returns value of SwitchInZone 3598 func (o *Bridge) GetSwitchInZone() *BridgeSwitchInfo { 3599 return o.SwitchInZone 3600 } 3601 3602 // SetSwitchInZone sets value to SwitchInZone 3603 func (o *Bridge) SetSwitchInZone(v *BridgeSwitchInfo) { 3604 o.SwitchInZone = v 3605 } 3606 3607 /************************************************* 3608 * Region 3609 *************************************************/ 3610 3611 // Region represents API parameter/response structure 3612 type Region struct { 3613 ID types.ID 3614 Name string 3615 Description string 3616 NameServers []string `json:",omitempty" mapconv:",omitempty"` 3617 } 3618 3619 // setDefaults implements iaas.argumentDefaulter 3620 func (o *Region) setDefaults() interface{} { 3621 return &struct { 3622 ID types.ID 3623 Name string 3624 Description string 3625 NameServers []string `json:",omitempty" mapconv:",omitempty"` 3626 }{ 3627 ID: o.GetID(), 3628 Name: o.GetName(), 3629 Description: o.GetDescription(), 3630 NameServers: o.GetNameServers(), 3631 } 3632 } 3633 3634 // GetID returns value of ID 3635 func (o *Region) GetID() types.ID { 3636 return o.ID 3637 } 3638 3639 // SetID sets value to ID 3640 func (o *Region) SetID(v types.ID) { 3641 o.ID = v 3642 } 3643 3644 // SetStringID . 3645 func (o *Region) SetStringID(id string) { 3646 accessor.SetStringID(o, id) 3647 } 3648 3649 // GetStringID . 3650 func (o *Region) GetStringID() string { 3651 return accessor.GetStringID(o) 3652 } 3653 3654 // SetInt64ID . 3655 func (o *Region) SetInt64ID(id int64) { 3656 accessor.SetInt64ID(o, id) 3657 } 3658 3659 // GetInt64ID . 3660 func (o *Region) GetInt64ID() int64 { 3661 return accessor.GetInt64ID(o) 3662 } 3663 3664 // GetName returns value of Name 3665 func (o *Region) GetName() string { 3666 return o.Name 3667 } 3668 3669 // SetName sets value to Name 3670 func (o *Region) SetName(v string) { 3671 o.Name = v 3672 } 3673 3674 // GetDescription returns value of Description 3675 func (o *Region) GetDescription() string { 3676 return o.Description 3677 } 3678 3679 // SetDescription sets value to Description 3680 func (o *Region) SetDescription(v string) { 3681 o.Description = v 3682 } 3683 3684 // GetNameServers returns value of NameServers 3685 func (o *Region) GetNameServers() []string { 3686 return o.NameServers 3687 } 3688 3689 // SetNameServers sets value to NameServers 3690 func (o *Region) SetNameServers(v []string) { 3691 o.NameServers = v 3692 } 3693 3694 /************************************************* 3695 * BridgeInfo 3696 *************************************************/ 3697 3698 // BridgeInfo represents API parameter/response structure 3699 type BridgeInfo struct { 3700 ID types.ID 3701 Name string 3702 ZoneID types.ID `mapconv:"Zone.ID"` 3703 ZoneName string `mapconv:"Zone.Name"` 3704 } 3705 3706 // setDefaults implements iaas.argumentDefaulter 3707 func (o *BridgeInfo) setDefaults() interface{} { 3708 return &struct { 3709 ID types.ID 3710 Name string 3711 ZoneID types.ID `mapconv:"Zone.ID"` 3712 ZoneName string `mapconv:"Zone.Name"` 3713 }{ 3714 ID: o.GetID(), 3715 Name: o.GetName(), 3716 ZoneID: o.GetZoneID(), 3717 ZoneName: o.GetZoneName(), 3718 } 3719 } 3720 3721 // GetID returns value of ID 3722 func (o *BridgeInfo) GetID() types.ID { 3723 return o.ID 3724 } 3725 3726 // SetID sets value to ID 3727 func (o *BridgeInfo) SetID(v types.ID) { 3728 o.ID = v 3729 } 3730 3731 // SetStringID . 3732 func (o *BridgeInfo) SetStringID(id string) { 3733 accessor.SetStringID(o, id) 3734 } 3735 3736 // GetStringID . 3737 func (o *BridgeInfo) GetStringID() string { 3738 return accessor.GetStringID(o) 3739 } 3740 3741 // SetInt64ID . 3742 func (o *BridgeInfo) SetInt64ID(id int64) { 3743 accessor.SetInt64ID(o, id) 3744 } 3745 3746 // GetInt64ID . 3747 func (o *BridgeInfo) GetInt64ID() int64 { 3748 return accessor.GetInt64ID(o) 3749 } 3750 3751 // GetName returns value of Name 3752 func (o *BridgeInfo) GetName() string { 3753 return o.Name 3754 } 3755 3756 // SetName sets value to Name 3757 func (o *BridgeInfo) SetName(v string) { 3758 o.Name = v 3759 } 3760 3761 // GetZoneID returns value of ZoneID 3762 func (o *BridgeInfo) GetZoneID() types.ID { 3763 return o.ZoneID 3764 } 3765 3766 // SetZoneID sets value to ZoneID 3767 func (o *BridgeInfo) SetZoneID(v types.ID) { 3768 o.ZoneID = v 3769 } 3770 3771 // GetZoneName returns value of ZoneName 3772 func (o *BridgeInfo) GetZoneName() string { 3773 return o.ZoneName 3774 } 3775 3776 // SetZoneName sets value to ZoneName 3777 func (o *BridgeInfo) SetZoneName(v string) { 3778 o.ZoneName = v 3779 } 3780 3781 /************************************************* 3782 * BridgeSwitchInfo 3783 *************************************************/ 3784 3785 // BridgeSwitchInfo represents API parameter/response structure 3786 type BridgeSwitchInfo struct { 3787 ID types.ID 3788 Name string 3789 Scope types.EScope 3790 ServerCount int 3791 ApplianceCount int 3792 } 3793 3794 // setDefaults implements iaas.argumentDefaulter 3795 func (o *BridgeSwitchInfo) setDefaults() interface{} { 3796 return &struct { 3797 ID types.ID 3798 Name string 3799 Scope types.EScope 3800 ServerCount int 3801 ApplianceCount int 3802 }{ 3803 ID: o.GetID(), 3804 Name: o.GetName(), 3805 Scope: o.GetScope(), 3806 ServerCount: o.GetServerCount(), 3807 ApplianceCount: o.GetApplianceCount(), 3808 } 3809 } 3810 3811 // GetID returns value of ID 3812 func (o *BridgeSwitchInfo) GetID() types.ID { 3813 return o.ID 3814 } 3815 3816 // SetID sets value to ID 3817 func (o *BridgeSwitchInfo) SetID(v types.ID) { 3818 o.ID = v 3819 } 3820 3821 // SetStringID . 3822 func (o *BridgeSwitchInfo) SetStringID(id string) { 3823 accessor.SetStringID(o, id) 3824 } 3825 3826 // GetStringID . 3827 func (o *BridgeSwitchInfo) GetStringID() string { 3828 return accessor.GetStringID(o) 3829 } 3830 3831 // SetInt64ID . 3832 func (o *BridgeSwitchInfo) SetInt64ID(id int64) { 3833 accessor.SetInt64ID(o, id) 3834 } 3835 3836 // GetInt64ID . 3837 func (o *BridgeSwitchInfo) GetInt64ID() int64 { 3838 return accessor.GetInt64ID(o) 3839 } 3840 3841 // GetName returns value of Name 3842 func (o *BridgeSwitchInfo) GetName() string { 3843 return o.Name 3844 } 3845 3846 // SetName sets value to Name 3847 func (o *BridgeSwitchInfo) SetName(v string) { 3848 o.Name = v 3849 } 3850 3851 // GetScope returns value of Scope 3852 func (o *BridgeSwitchInfo) GetScope() types.EScope { 3853 return o.Scope 3854 } 3855 3856 // SetScope sets value to Scope 3857 func (o *BridgeSwitchInfo) SetScope(v types.EScope) { 3858 o.Scope = v 3859 } 3860 3861 // GetServerCount returns value of ServerCount 3862 func (o *BridgeSwitchInfo) GetServerCount() int { 3863 return o.ServerCount 3864 } 3865 3866 // SetServerCount sets value to ServerCount 3867 func (o *BridgeSwitchInfo) SetServerCount(v int) { 3868 o.ServerCount = v 3869 } 3870 3871 // GetApplianceCount returns value of ApplianceCount 3872 func (o *BridgeSwitchInfo) GetApplianceCount() int { 3873 return o.ApplianceCount 3874 } 3875 3876 // SetApplianceCount sets value to ApplianceCount 3877 func (o *BridgeSwitchInfo) SetApplianceCount(v int) { 3878 o.ApplianceCount = v 3879 } 3880 3881 /************************************************* 3882 * BridgeCreateRequest 3883 *************************************************/ 3884 3885 // BridgeCreateRequest represents API parameter/response structure 3886 type BridgeCreateRequest struct { 3887 Name string 3888 Description string 3889 } 3890 3891 // setDefaults implements iaas.argumentDefaulter 3892 func (o *BridgeCreateRequest) setDefaults() interface{} { 3893 return &struct { 3894 Name string 3895 Description string 3896 }{ 3897 Name: o.GetName(), 3898 Description: o.GetDescription(), 3899 } 3900 } 3901 3902 // GetName returns value of Name 3903 func (o *BridgeCreateRequest) GetName() string { 3904 return o.Name 3905 } 3906 3907 // SetName sets value to Name 3908 func (o *BridgeCreateRequest) SetName(v string) { 3909 o.Name = v 3910 } 3911 3912 // GetDescription returns value of Description 3913 func (o *BridgeCreateRequest) GetDescription() string { 3914 return o.Description 3915 } 3916 3917 // SetDescription sets value to Description 3918 func (o *BridgeCreateRequest) SetDescription(v string) { 3919 o.Description = v 3920 } 3921 3922 /************************************************* 3923 * BridgeUpdateRequest 3924 *************************************************/ 3925 3926 // BridgeUpdateRequest represents API parameter/response structure 3927 type BridgeUpdateRequest struct { 3928 Name string 3929 Description string 3930 } 3931 3932 // setDefaults implements iaas.argumentDefaulter 3933 func (o *BridgeUpdateRequest) setDefaults() interface{} { 3934 return &struct { 3935 Name string 3936 Description string 3937 }{ 3938 Name: o.GetName(), 3939 Description: o.GetDescription(), 3940 } 3941 } 3942 3943 // GetName returns value of Name 3944 func (o *BridgeUpdateRequest) GetName() string { 3945 return o.Name 3946 } 3947 3948 // SetName sets value to Name 3949 func (o *BridgeUpdateRequest) SetName(v string) { 3950 o.Name = v 3951 } 3952 3953 // GetDescription returns value of Description 3954 func (o *BridgeUpdateRequest) GetDescription() string { 3955 return o.Description 3956 } 3957 3958 // SetDescription sets value to Description 3959 func (o *BridgeUpdateRequest) SetDescription(v string) { 3960 o.Description = v 3961 } 3962 3963 /************************************************* 3964 * CDROM 3965 *************************************************/ 3966 3967 // CDROM represents API parameter/response structure 3968 type CDROM struct { 3969 ID types.ID 3970 Name string 3971 Description string 3972 DisplayOrder int64 3973 Tags types.Tags 3974 Availability types.EAvailability 3975 Scope types.EScope 3976 Storage *Storage `json:",omitempty" mapconv:",omitempty,recursive"` 3977 SizeMB int 3978 IconID types.ID `mapconv:"Icon.ID"` 3979 CreatedAt time.Time 3980 ModifiedAt time.Time 3981 } 3982 3983 // setDefaults implements iaas.argumentDefaulter 3984 func (o *CDROM) setDefaults() interface{} { 3985 return &struct { 3986 ID types.ID 3987 Name string 3988 Description string 3989 DisplayOrder int64 3990 Tags types.Tags 3991 Availability types.EAvailability 3992 Scope types.EScope 3993 Storage *Storage `json:",omitempty" mapconv:",omitempty,recursive"` 3994 SizeMB int 3995 IconID types.ID `mapconv:"Icon.ID"` 3996 CreatedAt time.Time 3997 ModifiedAt time.Time 3998 }{ 3999 ID: o.GetID(), 4000 Name: o.GetName(), 4001 Description: o.GetDescription(), 4002 DisplayOrder: o.GetDisplayOrder(), 4003 Tags: o.GetTags(), 4004 Availability: o.GetAvailability(), 4005 Scope: o.GetScope(), 4006 Storage: o.GetStorage(), 4007 SizeMB: o.GetSizeMB(), 4008 IconID: o.GetIconID(), 4009 CreatedAt: o.GetCreatedAt(), 4010 ModifiedAt: o.GetModifiedAt(), 4011 } 4012 } 4013 4014 // GetID returns value of ID 4015 func (o *CDROM) GetID() types.ID { 4016 return o.ID 4017 } 4018 4019 // SetID sets value to ID 4020 func (o *CDROM) SetID(v types.ID) { 4021 o.ID = v 4022 } 4023 4024 // SetStringID . 4025 func (o *CDROM) SetStringID(id string) { 4026 accessor.SetStringID(o, id) 4027 } 4028 4029 // GetStringID . 4030 func (o *CDROM) GetStringID() string { 4031 return accessor.GetStringID(o) 4032 } 4033 4034 // SetInt64ID . 4035 func (o *CDROM) SetInt64ID(id int64) { 4036 accessor.SetInt64ID(o, id) 4037 } 4038 4039 // GetInt64ID . 4040 func (o *CDROM) GetInt64ID() int64 { 4041 return accessor.GetInt64ID(o) 4042 } 4043 4044 // GetName returns value of Name 4045 func (o *CDROM) GetName() string { 4046 return o.Name 4047 } 4048 4049 // SetName sets value to Name 4050 func (o *CDROM) SetName(v string) { 4051 o.Name = v 4052 } 4053 4054 // GetDescription returns value of Description 4055 func (o *CDROM) GetDescription() string { 4056 return o.Description 4057 } 4058 4059 // SetDescription sets value to Description 4060 func (o *CDROM) SetDescription(v string) { 4061 o.Description = v 4062 } 4063 4064 // GetDisplayOrder returns value of DisplayOrder 4065 func (o *CDROM) GetDisplayOrder() int64 { 4066 return o.DisplayOrder 4067 } 4068 4069 // SetDisplayOrder sets value to DisplayOrder 4070 func (o *CDROM) SetDisplayOrder(v int64) { 4071 o.DisplayOrder = v 4072 } 4073 4074 // GetTags returns value of Tags 4075 func (o *CDROM) GetTags() types.Tags { 4076 return o.Tags 4077 } 4078 4079 // SetTags sets value to Tags 4080 func (o *CDROM) SetTags(v types.Tags) { 4081 o.Tags = v 4082 } 4083 4084 // HasTag 指定のタグが存在する場合trueを返す 4085 func (o *CDROM) HasTag(tag string) bool { 4086 return accessor.HasTag(o, tag) 4087 } 4088 4089 // AppendTag 指定のタグを追加 4090 func (o *CDROM) AppendTag(tag string) { 4091 accessor.AppendTag(o, tag) 4092 } 4093 4094 // RemoveTag 指定のタグを削除 4095 func (o *CDROM) RemoveTag(tag string) { 4096 accessor.RemoveTag(o, tag) 4097 } 4098 4099 // ClearTags タグを全クリア 4100 func (o *CDROM) ClearTags() { 4101 accessor.ClearTags(o) 4102 } 4103 4104 // GetAvailability returns value of Availability 4105 func (o *CDROM) GetAvailability() types.EAvailability { 4106 return o.Availability 4107 } 4108 4109 // SetAvailability sets value to Availability 4110 func (o *CDROM) SetAvailability(v types.EAvailability) { 4111 o.Availability = v 4112 } 4113 4114 // GetScope returns value of Scope 4115 func (o *CDROM) GetScope() types.EScope { 4116 return o.Scope 4117 } 4118 4119 // SetScope sets value to Scope 4120 func (o *CDROM) SetScope(v types.EScope) { 4121 o.Scope = v 4122 } 4123 4124 // GetStorage returns value of Storage 4125 func (o *CDROM) GetStorage() *Storage { 4126 return o.Storage 4127 } 4128 4129 // SetStorage sets value to Storage 4130 func (o *CDROM) SetStorage(v *Storage) { 4131 o.Storage = v 4132 } 4133 4134 // GetSizeMB returns value of SizeMB 4135 func (o *CDROM) GetSizeMB() int { 4136 return o.SizeMB 4137 } 4138 4139 // SetSizeMB sets value to SizeMB 4140 func (o *CDROM) SetSizeMB(v int) { 4141 o.SizeMB = v 4142 } 4143 4144 // GetSizeGB . 4145 func (o *CDROM) GetSizeGB() int { 4146 return accessor.GetSizeGB(o) 4147 } 4148 4149 // SetSizeGB . 4150 func (o *CDROM) SetSizeGB(size int) { 4151 accessor.SetSizeGB(o, size) 4152 } 4153 4154 // GetIconID returns value of IconID 4155 func (o *CDROM) GetIconID() types.ID { 4156 return o.IconID 4157 } 4158 4159 // SetIconID sets value to IconID 4160 func (o *CDROM) SetIconID(v types.ID) { 4161 o.IconID = v 4162 } 4163 4164 // GetCreatedAt returns value of CreatedAt 4165 func (o *CDROM) GetCreatedAt() time.Time { 4166 return o.CreatedAt 4167 } 4168 4169 // SetCreatedAt sets value to CreatedAt 4170 func (o *CDROM) SetCreatedAt(v time.Time) { 4171 o.CreatedAt = v 4172 } 4173 4174 // GetModifiedAt returns value of ModifiedAt 4175 func (o *CDROM) GetModifiedAt() time.Time { 4176 return o.ModifiedAt 4177 } 4178 4179 // SetModifiedAt sets value to ModifiedAt 4180 func (o *CDROM) SetModifiedAt(v time.Time) { 4181 o.ModifiedAt = v 4182 } 4183 4184 /************************************************* 4185 * CDROMCreateRequest 4186 *************************************************/ 4187 4188 // CDROMCreateRequest represents API parameter/response structure 4189 type CDROMCreateRequest struct { 4190 SizeMB int 4191 Name string 4192 Description string 4193 Tags types.Tags 4194 IconID types.ID `mapconv:"Icon.ID"` 4195 } 4196 4197 // setDefaults implements iaas.argumentDefaulter 4198 func (o *CDROMCreateRequest) setDefaults() interface{} { 4199 return &struct { 4200 SizeMB int 4201 Name string 4202 Description string 4203 Tags types.Tags 4204 IconID types.ID `mapconv:"Icon.ID"` 4205 }{ 4206 SizeMB: o.GetSizeMB(), 4207 Name: o.GetName(), 4208 Description: o.GetDescription(), 4209 Tags: o.GetTags(), 4210 IconID: o.GetIconID(), 4211 } 4212 } 4213 4214 // GetSizeMB returns value of SizeMB 4215 func (o *CDROMCreateRequest) GetSizeMB() int { 4216 return o.SizeMB 4217 } 4218 4219 // SetSizeMB sets value to SizeMB 4220 func (o *CDROMCreateRequest) SetSizeMB(v int) { 4221 o.SizeMB = v 4222 } 4223 4224 // GetSizeGB . 4225 func (o *CDROMCreateRequest) GetSizeGB() int { 4226 return accessor.GetSizeGB(o) 4227 } 4228 4229 // SetSizeGB . 4230 func (o *CDROMCreateRequest) SetSizeGB(size int) { 4231 accessor.SetSizeGB(o, size) 4232 } 4233 4234 // GetName returns value of Name 4235 func (o *CDROMCreateRequest) GetName() string { 4236 return o.Name 4237 } 4238 4239 // SetName sets value to Name 4240 func (o *CDROMCreateRequest) SetName(v string) { 4241 o.Name = v 4242 } 4243 4244 // GetDescription returns value of Description 4245 func (o *CDROMCreateRequest) GetDescription() string { 4246 return o.Description 4247 } 4248 4249 // SetDescription sets value to Description 4250 func (o *CDROMCreateRequest) SetDescription(v string) { 4251 o.Description = v 4252 } 4253 4254 // GetTags returns value of Tags 4255 func (o *CDROMCreateRequest) GetTags() types.Tags { 4256 return o.Tags 4257 } 4258 4259 // SetTags sets value to Tags 4260 func (o *CDROMCreateRequest) SetTags(v types.Tags) { 4261 o.Tags = v 4262 } 4263 4264 // HasTag 指定のタグが存在する場合trueを返す 4265 func (o *CDROMCreateRequest) HasTag(tag string) bool { 4266 return accessor.HasTag(o, tag) 4267 } 4268 4269 // AppendTag 指定のタグを追加 4270 func (o *CDROMCreateRequest) AppendTag(tag string) { 4271 accessor.AppendTag(o, tag) 4272 } 4273 4274 // RemoveTag 指定のタグを削除 4275 func (o *CDROMCreateRequest) RemoveTag(tag string) { 4276 accessor.RemoveTag(o, tag) 4277 } 4278 4279 // ClearTags タグを全クリア 4280 func (o *CDROMCreateRequest) ClearTags() { 4281 accessor.ClearTags(o) 4282 } 4283 4284 // GetIconID returns value of IconID 4285 func (o *CDROMCreateRequest) GetIconID() types.ID { 4286 return o.IconID 4287 } 4288 4289 // SetIconID sets value to IconID 4290 func (o *CDROMCreateRequest) SetIconID(v types.ID) { 4291 o.IconID = v 4292 } 4293 4294 /************************************************* 4295 * CDROMUpdateRequest 4296 *************************************************/ 4297 4298 // CDROMUpdateRequest represents API parameter/response structure 4299 type CDROMUpdateRequest struct { 4300 Name string 4301 Description string 4302 Tags types.Tags 4303 IconID types.ID `mapconv:"Icon.ID"` 4304 } 4305 4306 // setDefaults implements iaas.argumentDefaulter 4307 func (o *CDROMUpdateRequest) setDefaults() interface{} { 4308 return &struct { 4309 Name string 4310 Description string 4311 Tags types.Tags 4312 IconID types.ID `mapconv:"Icon.ID"` 4313 }{ 4314 Name: o.GetName(), 4315 Description: o.GetDescription(), 4316 Tags: o.GetTags(), 4317 IconID: o.GetIconID(), 4318 } 4319 } 4320 4321 // GetName returns value of Name 4322 func (o *CDROMUpdateRequest) GetName() string { 4323 return o.Name 4324 } 4325 4326 // SetName sets value to Name 4327 func (o *CDROMUpdateRequest) SetName(v string) { 4328 o.Name = v 4329 } 4330 4331 // GetDescription returns value of Description 4332 func (o *CDROMUpdateRequest) GetDescription() string { 4333 return o.Description 4334 } 4335 4336 // SetDescription sets value to Description 4337 func (o *CDROMUpdateRequest) SetDescription(v string) { 4338 o.Description = v 4339 } 4340 4341 // GetTags returns value of Tags 4342 func (o *CDROMUpdateRequest) GetTags() types.Tags { 4343 return o.Tags 4344 } 4345 4346 // SetTags sets value to Tags 4347 func (o *CDROMUpdateRequest) SetTags(v types.Tags) { 4348 o.Tags = v 4349 } 4350 4351 // HasTag 指定のタグが存在する場合trueを返す 4352 func (o *CDROMUpdateRequest) HasTag(tag string) bool { 4353 return accessor.HasTag(o, tag) 4354 } 4355 4356 // AppendTag 指定のタグを追加 4357 func (o *CDROMUpdateRequest) AppendTag(tag string) { 4358 accessor.AppendTag(o, tag) 4359 } 4360 4361 // RemoveTag 指定のタグを削除 4362 func (o *CDROMUpdateRequest) RemoveTag(tag string) { 4363 accessor.RemoveTag(o, tag) 4364 } 4365 4366 // ClearTags タグを全クリア 4367 func (o *CDROMUpdateRequest) ClearTags() { 4368 accessor.ClearTags(o) 4369 } 4370 4371 // GetIconID returns value of IconID 4372 func (o *CDROMUpdateRequest) GetIconID() types.ID { 4373 return o.IconID 4374 } 4375 4376 // SetIconID sets value to IconID 4377 func (o *CDROMUpdateRequest) SetIconID(v types.ID) { 4378 o.IconID = v 4379 } 4380 4381 /************************************************* 4382 * CertificateAuthority 4383 *************************************************/ 4384 4385 // CertificateAuthority represents API parameter/response structure 4386 type CertificateAuthority struct { 4387 ID types.ID 4388 Name string 4389 Description string 4390 Tags types.Tags 4391 Availability types.EAvailability 4392 IconID types.ID `mapconv:"Icon.ID"` 4393 CreatedAt time.Time 4394 ModifiedAt time.Time 4395 Country string `mapconv:"Status.Country"` 4396 Organization string `mapconv:"Status.Organization"` 4397 OrganizationUnit []string `mapconv:"Status.OrganizationUnit"` 4398 CommonName string `mapconv:"Status.CommonName"` 4399 NotAfter time.Time `mapconv:"Status.NotAfter"` 4400 Subject string `mapconv:"Status.Subject"` 4401 } 4402 4403 // setDefaults implements iaas.argumentDefaulter 4404 func (o *CertificateAuthority) setDefaults() interface{} { 4405 return &struct { 4406 ID types.ID 4407 Name string 4408 Description string 4409 Tags types.Tags 4410 Availability types.EAvailability 4411 IconID types.ID `mapconv:"Icon.ID"` 4412 CreatedAt time.Time 4413 ModifiedAt time.Time 4414 Country string `mapconv:"Status.Country"` 4415 Organization string `mapconv:"Status.Organization"` 4416 OrganizationUnit []string `mapconv:"Status.OrganizationUnit"` 4417 CommonName string `mapconv:"Status.CommonName"` 4418 NotAfter time.Time `mapconv:"Status.NotAfter"` 4419 Subject string `mapconv:"Status.Subject"` 4420 }{ 4421 ID: o.GetID(), 4422 Name: o.GetName(), 4423 Description: o.GetDescription(), 4424 Tags: o.GetTags(), 4425 Availability: o.GetAvailability(), 4426 IconID: o.GetIconID(), 4427 CreatedAt: o.GetCreatedAt(), 4428 ModifiedAt: o.GetModifiedAt(), 4429 Country: o.GetCountry(), 4430 Organization: o.GetOrganization(), 4431 OrganizationUnit: o.GetOrganizationUnit(), 4432 CommonName: o.GetCommonName(), 4433 NotAfter: o.GetNotAfter(), 4434 Subject: o.GetSubject(), 4435 } 4436 } 4437 4438 // GetID returns value of ID 4439 func (o *CertificateAuthority) GetID() types.ID { 4440 return o.ID 4441 } 4442 4443 // SetID sets value to ID 4444 func (o *CertificateAuthority) SetID(v types.ID) { 4445 o.ID = v 4446 } 4447 4448 // SetStringID . 4449 func (o *CertificateAuthority) SetStringID(id string) { 4450 accessor.SetStringID(o, id) 4451 } 4452 4453 // GetStringID . 4454 func (o *CertificateAuthority) GetStringID() string { 4455 return accessor.GetStringID(o) 4456 } 4457 4458 // SetInt64ID . 4459 func (o *CertificateAuthority) SetInt64ID(id int64) { 4460 accessor.SetInt64ID(o, id) 4461 } 4462 4463 // GetInt64ID . 4464 func (o *CertificateAuthority) GetInt64ID() int64 { 4465 return accessor.GetInt64ID(o) 4466 } 4467 4468 // GetName returns value of Name 4469 func (o *CertificateAuthority) GetName() string { 4470 return o.Name 4471 } 4472 4473 // SetName sets value to Name 4474 func (o *CertificateAuthority) SetName(v string) { 4475 o.Name = v 4476 } 4477 4478 // GetDescription returns value of Description 4479 func (o *CertificateAuthority) GetDescription() string { 4480 return o.Description 4481 } 4482 4483 // SetDescription sets value to Description 4484 func (o *CertificateAuthority) SetDescription(v string) { 4485 o.Description = v 4486 } 4487 4488 // GetTags returns value of Tags 4489 func (o *CertificateAuthority) GetTags() types.Tags { 4490 return o.Tags 4491 } 4492 4493 // SetTags sets value to Tags 4494 func (o *CertificateAuthority) SetTags(v types.Tags) { 4495 o.Tags = v 4496 } 4497 4498 // HasTag 指定のタグが存在する場合trueを返す 4499 func (o *CertificateAuthority) HasTag(tag string) bool { 4500 return accessor.HasTag(o, tag) 4501 } 4502 4503 // AppendTag 指定のタグを追加 4504 func (o *CertificateAuthority) AppendTag(tag string) { 4505 accessor.AppendTag(o, tag) 4506 } 4507 4508 // RemoveTag 指定のタグを削除 4509 func (o *CertificateAuthority) RemoveTag(tag string) { 4510 accessor.RemoveTag(o, tag) 4511 } 4512 4513 // ClearTags タグを全クリア 4514 func (o *CertificateAuthority) ClearTags() { 4515 accessor.ClearTags(o) 4516 } 4517 4518 // GetAvailability returns value of Availability 4519 func (o *CertificateAuthority) GetAvailability() types.EAvailability { 4520 return o.Availability 4521 } 4522 4523 // SetAvailability sets value to Availability 4524 func (o *CertificateAuthority) SetAvailability(v types.EAvailability) { 4525 o.Availability = v 4526 } 4527 4528 // GetIconID returns value of IconID 4529 func (o *CertificateAuthority) GetIconID() types.ID { 4530 return o.IconID 4531 } 4532 4533 // SetIconID sets value to IconID 4534 func (o *CertificateAuthority) SetIconID(v types.ID) { 4535 o.IconID = v 4536 } 4537 4538 // GetCreatedAt returns value of CreatedAt 4539 func (o *CertificateAuthority) GetCreatedAt() time.Time { 4540 return o.CreatedAt 4541 } 4542 4543 // SetCreatedAt sets value to CreatedAt 4544 func (o *CertificateAuthority) SetCreatedAt(v time.Time) { 4545 o.CreatedAt = v 4546 } 4547 4548 // GetModifiedAt returns value of ModifiedAt 4549 func (o *CertificateAuthority) GetModifiedAt() time.Time { 4550 return o.ModifiedAt 4551 } 4552 4553 // SetModifiedAt sets value to ModifiedAt 4554 func (o *CertificateAuthority) SetModifiedAt(v time.Time) { 4555 o.ModifiedAt = v 4556 } 4557 4558 // GetCountry returns value of Country 4559 func (o *CertificateAuthority) GetCountry() string { 4560 return o.Country 4561 } 4562 4563 // SetCountry sets value to Country 4564 func (o *CertificateAuthority) SetCountry(v string) { 4565 o.Country = v 4566 } 4567 4568 // GetOrganization returns value of Organization 4569 func (o *CertificateAuthority) GetOrganization() string { 4570 return o.Organization 4571 } 4572 4573 // SetOrganization sets value to Organization 4574 func (o *CertificateAuthority) SetOrganization(v string) { 4575 o.Organization = v 4576 } 4577 4578 // GetOrganizationUnit returns value of OrganizationUnit 4579 func (o *CertificateAuthority) GetOrganizationUnit() []string { 4580 return o.OrganizationUnit 4581 } 4582 4583 // SetOrganizationUnit sets value to OrganizationUnit 4584 func (o *CertificateAuthority) SetOrganizationUnit(v []string) { 4585 o.OrganizationUnit = v 4586 } 4587 4588 // GetCommonName returns value of CommonName 4589 func (o *CertificateAuthority) GetCommonName() string { 4590 return o.CommonName 4591 } 4592 4593 // SetCommonName sets value to CommonName 4594 func (o *CertificateAuthority) SetCommonName(v string) { 4595 o.CommonName = v 4596 } 4597 4598 // GetNotAfter returns value of NotAfter 4599 func (o *CertificateAuthority) GetNotAfter() time.Time { 4600 return o.NotAfter 4601 } 4602 4603 // SetNotAfter sets value to NotAfter 4604 func (o *CertificateAuthority) SetNotAfter(v time.Time) { 4605 o.NotAfter = v 4606 } 4607 4608 // GetSubject returns value of Subject 4609 func (o *CertificateAuthority) GetSubject() string { 4610 return o.Subject 4611 } 4612 4613 // SetSubject sets value to Subject 4614 func (o *CertificateAuthority) SetSubject(v string) { 4615 o.Subject = v 4616 } 4617 4618 /************************************************* 4619 * CertificateAuthorityCreateRequest 4620 *************************************************/ 4621 4622 // CertificateAuthorityCreateRequest represents API parameter/response structure 4623 type CertificateAuthorityCreateRequest struct { 4624 Name string 4625 Description string 4626 Tags types.Tags 4627 IconID types.ID `mapconv:"Icon.ID"` 4628 Country string `mapconv:"Status.Country"` 4629 Organization string `mapconv:"Status.Organization"` 4630 OrganizationUnit []string `mapconv:"Status.OrganizationUnit"` 4631 CommonName string `mapconv:"Status.CommonName"` 4632 NotAfter time.Time `mapconv:"Status.NotAfter"` 4633 } 4634 4635 // setDefaults implements iaas.argumentDefaulter 4636 func (o *CertificateAuthorityCreateRequest) setDefaults() interface{} { 4637 return &struct { 4638 Name string 4639 Description string 4640 Tags types.Tags 4641 IconID types.ID `mapconv:"Icon.ID"` 4642 Country string `mapconv:"Status.Country"` 4643 Organization string `mapconv:"Status.Organization"` 4644 OrganizationUnit []string `mapconv:"Status.OrganizationUnit"` 4645 CommonName string `mapconv:"Status.CommonName"` 4646 NotAfter time.Time `mapconv:"Status.NotAfter"` 4647 Class string `mapconv:"Provider.Class"` 4648 }{ 4649 Name: o.GetName(), 4650 Description: o.GetDescription(), 4651 Tags: o.GetTags(), 4652 IconID: o.GetIconID(), 4653 Country: o.GetCountry(), 4654 Organization: o.GetOrganization(), 4655 OrganizationUnit: o.GetOrganizationUnit(), 4656 CommonName: o.GetCommonName(), 4657 NotAfter: o.GetNotAfter(), 4658 Class: "certificateauthority", 4659 } 4660 } 4661 4662 // GetName returns value of Name 4663 func (o *CertificateAuthorityCreateRequest) GetName() string { 4664 return o.Name 4665 } 4666 4667 // SetName sets value to Name 4668 func (o *CertificateAuthorityCreateRequest) SetName(v string) { 4669 o.Name = v 4670 } 4671 4672 // GetDescription returns value of Description 4673 func (o *CertificateAuthorityCreateRequest) GetDescription() string { 4674 return o.Description 4675 } 4676 4677 // SetDescription sets value to Description 4678 func (o *CertificateAuthorityCreateRequest) SetDescription(v string) { 4679 o.Description = v 4680 } 4681 4682 // GetTags returns value of Tags 4683 func (o *CertificateAuthorityCreateRequest) GetTags() types.Tags { 4684 return o.Tags 4685 } 4686 4687 // SetTags sets value to Tags 4688 func (o *CertificateAuthorityCreateRequest) SetTags(v types.Tags) { 4689 o.Tags = v 4690 } 4691 4692 // HasTag 指定のタグが存在する場合trueを返す 4693 func (o *CertificateAuthorityCreateRequest) HasTag(tag string) bool { 4694 return accessor.HasTag(o, tag) 4695 } 4696 4697 // AppendTag 指定のタグを追加 4698 func (o *CertificateAuthorityCreateRequest) AppendTag(tag string) { 4699 accessor.AppendTag(o, tag) 4700 } 4701 4702 // RemoveTag 指定のタグを削除 4703 func (o *CertificateAuthorityCreateRequest) RemoveTag(tag string) { 4704 accessor.RemoveTag(o, tag) 4705 } 4706 4707 // ClearTags タグを全クリア 4708 func (o *CertificateAuthorityCreateRequest) ClearTags() { 4709 accessor.ClearTags(o) 4710 } 4711 4712 // GetIconID returns value of IconID 4713 func (o *CertificateAuthorityCreateRequest) GetIconID() types.ID { 4714 return o.IconID 4715 } 4716 4717 // SetIconID sets value to IconID 4718 func (o *CertificateAuthorityCreateRequest) SetIconID(v types.ID) { 4719 o.IconID = v 4720 } 4721 4722 // GetCountry returns value of Country 4723 func (o *CertificateAuthorityCreateRequest) GetCountry() string { 4724 return o.Country 4725 } 4726 4727 // SetCountry sets value to Country 4728 func (o *CertificateAuthorityCreateRequest) SetCountry(v string) { 4729 o.Country = v 4730 } 4731 4732 // GetOrganization returns value of Organization 4733 func (o *CertificateAuthorityCreateRequest) GetOrganization() string { 4734 return o.Organization 4735 } 4736 4737 // SetOrganization sets value to Organization 4738 func (o *CertificateAuthorityCreateRequest) SetOrganization(v string) { 4739 o.Organization = v 4740 } 4741 4742 // GetOrganizationUnit returns value of OrganizationUnit 4743 func (o *CertificateAuthorityCreateRequest) GetOrganizationUnit() []string { 4744 return o.OrganizationUnit 4745 } 4746 4747 // SetOrganizationUnit sets value to OrganizationUnit 4748 func (o *CertificateAuthorityCreateRequest) SetOrganizationUnit(v []string) { 4749 o.OrganizationUnit = v 4750 } 4751 4752 // GetCommonName returns value of CommonName 4753 func (o *CertificateAuthorityCreateRequest) GetCommonName() string { 4754 return o.CommonName 4755 } 4756 4757 // SetCommonName sets value to CommonName 4758 func (o *CertificateAuthorityCreateRequest) SetCommonName(v string) { 4759 o.CommonName = v 4760 } 4761 4762 // GetNotAfter returns value of NotAfter 4763 func (o *CertificateAuthorityCreateRequest) GetNotAfter() time.Time { 4764 return o.NotAfter 4765 } 4766 4767 // SetNotAfter sets value to NotAfter 4768 func (o *CertificateAuthorityCreateRequest) SetNotAfter(v time.Time) { 4769 o.NotAfter = v 4770 } 4771 4772 /************************************************* 4773 * CertificateAuthorityUpdateRequest 4774 *************************************************/ 4775 4776 // CertificateAuthorityUpdateRequest represents API parameter/response structure 4777 type CertificateAuthorityUpdateRequest struct { 4778 Name string 4779 Description string 4780 Tags types.Tags 4781 IconID types.ID `mapconv:"Icon.ID"` 4782 } 4783 4784 // setDefaults implements iaas.argumentDefaulter 4785 func (o *CertificateAuthorityUpdateRequest) setDefaults() interface{} { 4786 return &struct { 4787 Name string 4788 Description string 4789 Tags types.Tags 4790 IconID types.ID `mapconv:"Icon.ID"` 4791 }{ 4792 Name: o.GetName(), 4793 Description: o.GetDescription(), 4794 Tags: o.GetTags(), 4795 IconID: o.GetIconID(), 4796 } 4797 } 4798 4799 // GetName returns value of Name 4800 func (o *CertificateAuthorityUpdateRequest) GetName() string { 4801 return o.Name 4802 } 4803 4804 // SetName sets value to Name 4805 func (o *CertificateAuthorityUpdateRequest) SetName(v string) { 4806 o.Name = v 4807 } 4808 4809 // GetDescription returns value of Description 4810 func (o *CertificateAuthorityUpdateRequest) GetDescription() string { 4811 return o.Description 4812 } 4813 4814 // SetDescription sets value to Description 4815 func (o *CertificateAuthorityUpdateRequest) SetDescription(v string) { 4816 o.Description = v 4817 } 4818 4819 // GetTags returns value of Tags 4820 func (o *CertificateAuthorityUpdateRequest) GetTags() types.Tags { 4821 return o.Tags 4822 } 4823 4824 // SetTags sets value to Tags 4825 func (o *CertificateAuthorityUpdateRequest) SetTags(v types.Tags) { 4826 o.Tags = v 4827 } 4828 4829 // HasTag 指定のタグが存在する場合trueを返す 4830 func (o *CertificateAuthorityUpdateRequest) HasTag(tag string) bool { 4831 return accessor.HasTag(o, tag) 4832 } 4833 4834 // AppendTag 指定のタグを追加 4835 func (o *CertificateAuthorityUpdateRequest) AppendTag(tag string) { 4836 accessor.AppendTag(o, tag) 4837 } 4838 4839 // RemoveTag 指定のタグを削除 4840 func (o *CertificateAuthorityUpdateRequest) RemoveTag(tag string) { 4841 accessor.RemoveTag(o, tag) 4842 } 4843 4844 // ClearTags タグを全クリア 4845 func (o *CertificateAuthorityUpdateRequest) ClearTags() { 4846 accessor.ClearTags(o) 4847 } 4848 4849 // GetIconID returns value of IconID 4850 func (o *CertificateAuthorityUpdateRequest) GetIconID() types.ID { 4851 return o.IconID 4852 } 4853 4854 // SetIconID sets value to IconID 4855 func (o *CertificateAuthorityUpdateRequest) SetIconID(v types.ID) { 4856 o.IconID = v 4857 } 4858 4859 /************************************************* 4860 * CertificateAuthorityDetail 4861 *************************************************/ 4862 4863 // CertificateAuthorityDetail represents API parameter/response structure 4864 type CertificateAuthorityDetail struct { 4865 Subject string 4866 CertificateData *CertificateData `mapconv:",recursive"` 4867 } 4868 4869 // setDefaults implements iaas.argumentDefaulter 4870 func (o *CertificateAuthorityDetail) setDefaults() interface{} { 4871 return &struct { 4872 Subject string 4873 CertificateData *CertificateData `mapconv:",recursive"` 4874 }{ 4875 Subject: o.GetSubject(), 4876 CertificateData: o.GetCertificateData(), 4877 } 4878 } 4879 4880 // GetSubject returns value of Subject 4881 func (o *CertificateAuthorityDetail) GetSubject() string { 4882 return o.Subject 4883 } 4884 4885 // SetSubject sets value to Subject 4886 func (o *CertificateAuthorityDetail) SetSubject(v string) { 4887 o.Subject = v 4888 } 4889 4890 // GetCertificateData returns value of CertificateData 4891 func (o *CertificateAuthorityDetail) GetCertificateData() *CertificateData { 4892 return o.CertificateData 4893 } 4894 4895 // SetCertificateData sets value to CertificateData 4896 func (o *CertificateAuthorityDetail) SetCertificateData(v *CertificateData) { 4897 o.CertificateData = v 4898 } 4899 4900 /************************************************* 4901 * CertificateData 4902 *************************************************/ 4903 4904 // CertificateData represents API parameter/response structure 4905 type CertificateData struct { 4906 CertificatePEM string 4907 Subject string 4908 SerialNumber string 4909 NotBefore time.Time 4910 NotAfter time.Time 4911 } 4912 4913 // setDefaults implements iaas.argumentDefaulter 4914 func (o *CertificateData) setDefaults() interface{} { 4915 return &struct { 4916 CertificatePEM string 4917 Subject string 4918 SerialNumber string 4919 NotBefore time.Time 4920 NotAfter time.Time 4921 }{ 4922 CertificatePEM: o.GetCertificatePEM(), 4923 Subject: o.GetSubject(), 4924 SerialNumber: o.GetSerialNumber(), 4925 NotBefore: o.GetNotBefore(), 4926 NotAfter: o.GetNotAfter(), 4927 } 4928 } 4929 4930 // GetCertificatePEM returns value of CertificatePEM 4931 func (o *CertificateData) GetCertificatePEM() string { 4932 return o.CertificatePEM 4933 } 4934 4935 // SetCertificatePEM sets value to CertificatePEM 4936 func (o *CertificateData) SetCertificatePEM(v string) { 4937 o.CertificatePEM = v 4938 } 4939 4940 // GetSubject returns value of Subject 4941 func (o *CertificateData) GetSubject() string { 4942 return o.Subject 4943 } 4944 4945 // SetSubject sets value to Subject 4946 func (o *CertificateData) SetSubject(v string) { 4947 o.Subject = v 4948 } 4949 4950 // GetSerialNumber returns value of SerialNumber 4951 func (o *CertificateData) GetSerialNumber() string { 4952 return o.SerialNumber 4953 } 4954 4955 // SetSerialNumber sets value to SerialNumber 4956 func (o *CertificateData) SetSerialNumber(v string) { 4957 o.SerialNumber = v 4958 } 4959 4960 // GetNotBefore returns value of NotBefore 4961 func (o *CertificateData) GetNotBefore() time.Time { 4962 return o.NotBefore 4963 } 4964 4965 // SetNotBefore sets value to NotBefore 4966 func (o *CertificateData) SetNotBefore(v time.Time) { 4967 o.NotBefore = v 4968 } 4969 4970 // GetNotAfter returns value of NotAfter 4971 func (o *CertificateData) GetNotAfter() time.Time { 4972 return o.NotAfter 4973 } 4974 4975 // SetNotAfter sets value to NotAfter 4976 func (o *CertificateData) SetNotAfter(v time.Time) { 4977 o.NotAfter = v 4978 } 4979 4980 /************************************************* 4981 * CertificateAuthorityAddClientOrServerResult 4982 *************************************************/ 4983 4984 // CertificateAuthorityAddClientOrServerResult represents API parameter/response structure 4985 type CertificateAuthorityAddClientOrServerResult struct { 4986 ID string 4987 } 4988 4989 // setDefaults implements iaas.argumentDefaulter 4990 func (o *CertificateAuthorityAddClientOrServerResult) setDefaults() interface{} { 4991 return &struct { 4992 ID string 4993 }{ 4994 ID: o.GetID(), 4995 } 4996 } 4997 4998 // GetID returns value of ID 4999 func (o *CertificateAuthorityAddClientOrServerResult) GetID() string { 5000 return o.ID 5001 } 5002 5003 // SetID sets value to ID 5004 func (o *CertificateAuthorityAddClientOrServerResult) SetID(v string) { 5005 o.ID = v 5006 } 5007 5008 /************************************************* 5009 * CertificateAuthorityAddClientParam 5010 *************************************************/ 5011 5012 // CertificateAuthorityAddClientParam represents API parameter/response structure 5013 type CertificateAuthorityAddClientParam struct { 5014 Country string 5015 Organization string 5016 OrganizationUnit []string 5017 CommonName string 5018 NotAfter time.Time 5019 IssuanceMethod types.ECertificateAuthorityIssuanceMethod 5020 EMail string 5021 CertificateSigningRequest string 5022 PublicKey string 5023 } 5024 5025 // setDefaults implements iaas.argumentDefaulter 5026 func (o *CertificateAuthorityAddClientParam) setDefaults() interface{} { 5027 return &struct { 5028 Country string 5029 Organization string 5030 OrganizationUnit []string 5031 CommonName string 5032 NotAfter time.Time 5033 IssuanceMethod types.ECertificateAuthorityIssuanceMethod 5034 EMail string 5035 CertificateSigningRequest string 5036 PublicKey string 5037 }{ 5038 Country: o.GetCountry(), 5039 Organization: o.GetOrganization(), 5040 OrganizationUnit: o.GetOrganizationUnit(), 5041 CommonName: o.GetCommonName(), 5042 NotAfter: o.GetNotAfter(), 5043 IssuanceMethod: o.GetIssuanceMethod(), 5044 EMail: o.GetEMail(), 5045 CertificateSigningRequest: o.GetCertificateSigningRequest(), 5046 PublicKey: o.GetPublicKey(), 5047 } 5048 } 5049 5050 // GetCountry returns value of Country 5051 func (o *CertificateAuthorityAddClientParam) GetCountry() string { 5052 return o.Country 5053 } 5054 5055 // SetCountry sets value to Country 5056 func (o *CertificateAuthorityAddClientParam) SetCountry(v string) { 5057 o.Country = v 5058 } 5059 5060 // GetOrganization returns value of Organization 5061 func (o *CertificateAuthorityAddClientParam) GetOrganization() string { 5062 return o.Organization 5063 } 5064 5065 // SetOrganization sets value to Organization 5066 func (o *CertificateAuthorityAddClientParam) SetOrganization(v string) { 5067 o.Organization = v 5068 } 5069 5070 // GetOrganizationUnit returns value of OrganizationUnit 5071 func (o *CertificateAuthorityAddClientParam) GetOrganizationUnit() []string { 5072 return o.OrganizationUnit 5073 } 5074 5075 // SetOrganizationUnit sets value to OrganizationUnit 5076 func (o *CertificateAuthorityAddClientParam) SetOrganizationUnit(v []string) { 5077 o.OrganizationUnit = v 5078 } 5079 5080 // GetCommonName returns value of CommonName 5081 func (o *CertificateAuthorityAddClientParam) GetCommonName() string { 5082 return o.CommonName 5083 } 5084 5085 // SetCommonName sets value to CommonName 5086 func (o *CertificateAuthorityAddClientParam) SetCommonName(v string) { 5087 o.CommonName = v 5088 } 5089 5090 // GetNotAfter returns value of NotAfter 5091 func (o *CertificateAuthorityAddClientParam) GetNotAfter() time.Time { 5092 return o.NotAfter 5093 } 5094 5095 // SetNotAfter sets value to NotAfter 5096 func (o *CertificateAuthorityAddClientParam) SetNotAfter(v time.Time) { 5097 o.NotAfter = v 5098 } 5099 5100 // GetIssuanceMethod returns value of IssuanceMethod 5101 func (o *CertificateAuthorityAddClientParam) GetIssuanceMethod() types.ECertificateAuthorityIssuanceMethod { 5102 return o.IssuanceMethod 5103 } 5104 5105 // SetIssuanceMethod sets value to IssuanceMethod 5106 func (o *CertificateAuthorityAddClientParam) SetIssuanceMethod(v types.ECertificateAuthorityIssuanceMethod) { 5107 o.IssuanceMethod = v 5108 } 5109 5110 // GetEMail returns value of EMail 5111 func (o *CertificateAuthorityAddClientParam) GetEMail() string { 5112 return o.EMail 5113 } 5114 5115 // SetEMail sets value to EMail 5116 func (o *CertificateAuthorityAddClientParam) SetEMail(v string) { 5117 o.EMail = v 5118 } 5119 5120 // GetCertificateSigningRequest returns value of CertificateSigningRequest 5121 func (o *CertificateAuthorityAddClientParam) GetCertificateSigningRequest() string { 5122 return o.CertificateSigningRequest 5123 } 5124 5125 // SetCertificateSigningRequest sets value to CertificateSigningRequest 5126 func (o *CertificateAuthorityAddClientParam) SetCertificateSigningRequest(v string) { 5127 o.CertificateSigningRequest = v 5128 } 5129 5130 // GetPublicKey returns value of PublicKey 5131 func (o *CertificateAuthorityAddClientParam) GetPublicKey() string { 5132 return o.PublicKey 5133 } 5134 5135 // SetPublicKey sets value to PublicKey 5136 func (o *CertificateAuthorityAddClientParam) SetPublicKey(v string) { 5137 o.PublicKey = v 5138 } 5139 5140 /************************************************* 5141 * CertificateAuthorityClient 5142 *************************************************/ 5143 5144 // CertificateAuthorityClient represents API parameter/response structure 5145 type CertificateAuthorityClient struct { 5146 ID string 5147 Subject string 5148 EMail string 5149 IssuanceMethod types.ECertificateAuthorityIssuanceMethod 5150 IssueState string 5151 URL string 5152 CertificateData *CertificateData `mapconv:",recursive"` 5153 } 5154 5155 // setDefaults implements iaas.argumentDefaulter 5156 func (o *CertificateAuthorityClient) setDefaults() interface{} { 5157 return &struct { 5158 ID string 5159 Subject string 5160 EMail string 5161 IssuanceMethod types.ECertificateAuthorityIssuanceMethod 5162 IssueState string 5163 URL string 5164 CertificateData *CertificateData `mapconv:",recursive"` 5165 }{ 5166 ID: o.GetID(), 5167 Subject: o.GetSubject(), 5168 EMail: o.GetEMail(), 5169 IssuanceMethod: o.GetIssuanceMethod(), 5170 IssueState: o.GetIssueState(), 5171 URL: o.GetURL(), 5172 CertificateData: o.GetCertificateData(), 5173 } 5174 } 5175 5176 // GetID returns value of ID 5177 func (o *CertificateAuthorityClient) GetID() string { 5178 return o.ID 5179 } 5180 5181 // SetID sets value to ID 5182 func (o *CertificateAuthorityClient) SetID(v string) { 5183 o.ID = v 5184 } 5185 5186 // GetSubject returns value of Subject 5187 func (o *CertificateAuthorityClient) GetSubject() string { 5188 return o.Subject 5189 } 5190 5191 // SetSubject sets value to Subject 5192 func (o *CertificateAuthorityClient) SetSubject(v string) { 5193 o.Subject = v 5194 } 5195 5196 // GetEMail returns value of EMail 5197 func (o *CertificateAuthorityClient) GetEMail() string { 5198 return o.EMail 5199 } 5200 5201 // SetEMail sets value to EMail 5202 func (o *CertificateAuthorityClient) SetEMail(v string) { 5203 o.EMail = v 5204 } 5205 5206 // GetIssuanceMethod returns value of IssuanceMethod 5207 func (o *CertificateAuthorityClient) GetIssuanceMethod() types.ECertificateAuthorityIssuanceMethod { 5208 return o.IssuanceMethod 5209 } 5210 5211 // SetIssuanceMethod sets value to IssuanceMethod 5212 func (o *CertificateAuthorityClient) SetIssuanceMethod(v types.ECertificateAuthorityIssuanceMethod) { 5213 o.IssuanceMethod = v 5214 } 5215 5216 // GetIssueState returns value of IssueState 5217 func (o *CertificateAuthorityClient) GetIssueState() string { 5218 return o.IssueState 5219 } 5220 5221 // SetIssueState sets value to IssueState 5222 func (o *CertificateAuthorityClient) SetIssueState(v string) { 5223 o.IssueState = v 5224 } 5225 5226 // GetURL returns value of URL 5227 func (o *CertificateAuthorityClient) GetURL() string { 5228 return o.URL 5229 } 5230 5231 // SetURL sets value to URL 5232 func (o *CertificateAuthorityClient) SetURL(v string) { 5233 o.URL = v 5234 } 5235 5236 // GetCertificateData returns value of CertificateData 5237 func (o *CertificateAuthorityClient) GetCertificateData() *CertificateData { 5238 return o.CertificateData 5239 } 5240 5241 // SetCertificateData sets value to CertificateData 5242 func (o *CertificateAuthorityClient) SetCertificateData(v *CertificateData) { 5243 o.CertificateData = v 5244 } 5245 5246 /************************************************* 5247 * CertificateAuthorityAddServerParam 5248 *************************************************/ 5249 5250 // CertificateAuthorityAddServerParam represents API parameter/response structure 5251 type CertificateAuthorityAddServerParam struct { 5252 Country string 5253 Organization string 5254 OrganizationUnit []string 5255 CommonName string 5256 NotAfter time.Time 5257 SANs []string 5258 CertificateSigningRequest string 5259 PublicKey string 5260 } 5261 5262 // setDefaults implements iaas.argumentDefaulter 5263 func (o *CertificateAuthorityAddServerParam) setDefaults() interface{} { 5264 return &struct { 5265 Country string 5266 Organization string 5267 OrganizationUnit []string 5268 CommonName string 5269 NotAfter time.Time 5270 SANs []string 5271 CertificateSigningRequest string 5272 PublicKey string 5273 }{ 5274 Country: o.GetCountry(), 5275 Organization: o.GetOrganization(), 5276 OrganizationUnit: o.GetOrganizationUnit(), 5277 CommonName: o.GetCommonName(), 5278 NotAfter: o.GetNotAfter(), 5279 SANs: o.GetSANs(), 5280 CertificateSigningRequest: o.GetCertificateSigningRequest(), 5281 PublicKey: o.GetPublicKey(), 5282 } 5283 } 5284 5285 // GetCountry returns value of Country 5286 func (o *CertificateAuthorityAddServerParam) GetCountry() string { 5287 return o.Country 5288 } 5289 5290 // SetCountry sets value to Country 5291 func (o *CertificateAuthorityAddServerParam) SetCountry(v string) { 5292 o.Country = v 5293 } 5294 5295 // GetOrganization returns value of Organization 5296 func (o *CertificateAuthorityAddServerParam) GetOrganization() string { 5297 return o.Organization 5298 } 5299 5300 // SetOrganization sets value to Organization 5301 func (o *CertificateAuthorityAddServerParam) SetOrganization(v string) { 5302 o.Organization = v 5303 } 5304 5305 // GetOrganizationUnit returns value of OrganizationUnit 5306 func (o *CertificateAuthorityAddServerParam) GetOrganizationUnit() []string { 5307 return o.OrganizationUnit 5308 } 5309 5310 // SetOrganizationUnit sets value to OrganizationUnit 5311 func (o *CertificateAuthorityAddServerParam) SetOrganizationUnit(v []string) { 5312 o.OrganizationUnit = v 5313 } 5314 5315 // GetCommonName returns value of CommonName 5316 func (o *CertificateAuthorityAddServerParam) GetCommonName() string { 5317 return o.CommonName 5318 } 5319 5320 // SetCommonName sets value to CommonName 5321 func (o *CertificateAuthorityAddServerParam) SetCommonName(v string) { 5322 o.CommonName = v 5323 } 5324 5325 // GetNotAfter returns value of NotAfter 5326 func (o *CertificateAuthorityAddServerParam) GetNotAfter() time.Time { 5327 return o.NotAfter 5328 } 5329 5330 // SetNotAfter sets value to NotAfter 5331 func (o *CertificateAuthorityAddServerParam) SetNotAfter(v time.Time) { 5332 o.NotAfter = v 5333 } 5334 5335 // GetSANs returns value of SANs 5336 func (o *CertificateAuthorityAddServerParam) GetSANs() []string { 5337 return o.SANs 5338 } 5339 5340 // SetSANs sets value to SANs 5341 func (o *CertificateAuthorityAddServerParam) SetSANs(v []string) { 5342 o.SANs = v 5343 } 5344 5345 // GetCertificateSigningRequest returns value of CertificateSigningRequest 5346 func (o *CertificateAuthorityAddServerParam) GetCertificateSigningRequest() string { 5347 return o.CertificateSigningRequest 5348 } 5349 5350 // SetCertificateSigningRequest sets value to CertificateSigningRequest 5351 func (o *CertificateAuthorityAddServerParam) SetCertificateSigningRequest(v string) { 5352 o.CertificateSigningRequest = v 5353 } 5354 5355 // GetPublicKey returns value of PublicKey 5356 func (o *CertificateAuthorityAddServerParam) GetPublicKey() string { 5357 return o.PublicKey 5358 } 5359 5360 // SetPublicKey sets value to PublicKey 5361 func (o *CertificateAuthorityAddServerParam) SetPublicKey(v string) { 5362 o.PublicKey = v 5363 } 5364 5365 /************************************************* 5366 * CertificateAuthorityServer 5367 *************************************************/ 5368 5369 // CertificateAuthorityServer represents API parameter/response structure 5370 type CertificateAuthorityServer struct { 5371 ID string 5372 Subject string 5373 SANs []string 5374 EMail string 5375 IssueState string 5376 CertificateData *CertificateData `mapconv:",recursive"` 5377 } 5378 5379 // setDefaults implements iaas.argumentDefaulter 5380 func (o *CertificateAuthorityServer) setDefaults() interface{} { 5381 return &struct { 5382 ID string 5383 Subject string 5384 SANs []string 5385 EMail string 5386 IssueState string 5387 CertificateData *CertificateData `mapconv:",recursive"` 5388 }{ 5389 ID: o.GetID(), 5390 Subject: o.GetSubject(), 5391 SANs: o.GetSANs(), 5392 EMail: o.GetEMail(), 5393 IssueState: o.GetIssueState(), 5394 CertificateData: o.GetCertificateData(), 5395 } 5396 } 5397 5398 // GetID returns value of ID 5399 func (o *CertificateAuthorityServer) GetID() string { 5400 return o.ID 5401 } 5402 5403 // SetID sets value to ID 5404 func (o *CertificateAuthorityServer) SetID(v string) { 5405 o.ID = v 5406 } 5407 5408 // GetSubject returns value of Subject 5409 func (o *CertificateAuthorityServer) GetSubject() string { 5410 return o.Subject 5411 } 5412 5413 // SetSubject sets value to Subject 5414 func (o *CertificateAuthorityServer) SetSubject(v string) { 5415 o.Subject = v 5416 } 5417 5418 // GetSANs returns value of SANs 5419 func (o *CertificateAuthorityServer) GetSANs() []string { 5420 return o.SANs 5421 } 5422 5423 // SetSANs sets value to SANs 5424 func (o *CertificateAuthorityServer) SetSANs(v []string) { 5425 o.SANs = v 5426 } 5427 5428 // GetEMail returns value of EMail 5429 func (o *CertificateAuthorityServer) GetEMail() string { 5430 return o.EMail 5431 } 5432 5433 // SetEMail sets value to EMail 5434 func (o *CertificateAuthorityServer) SetEMail(v string) { 5435 o.EMail = v 5436 } 5437 5438 // GetIssueState returns value of IssueState 5439 func (o *CertificateAuthorityServer) GetIssueState() string { 5440 return o.IssueState 5441 } 5442 5443 // SetIssueState sets value to IssueState 5444 func (o *CertificateAuthorityServer) SetIssueState(v string) { 5445 o.IssueState = v 5446 } 5447 5448 // GetCertificateData returns value of CertificateData 5449 func (o *CertificateAuthorityServer) GetCertificateData() *CertificateData { 5450 return o.CertificateData 5451 } 5452 5453 // SetCertificateData sets value to CertificateData 5454 func (o *CertificateAuthorityServer) SetCertificateData(v *CertificateData) { 5455 o.CertificateData = v 5456 } 5457 5458 /************************************************* 5459 * ContainerRegistry 5460 *************************************************/ 5461 5462 // ContainerRegistry represents API parameter/response structure 5463 type ContainerRegistry struct { 5464 ID types.ID 5465 Name string 5466 Description string 5467 Tags types.Tags 5468 Availability types.EAvailability 5469 IconID types.ID `mapconv:"Icon.ID"` 5470 CreatedAt time.Time 5471 ModifiedAt time.Time 5472 AccessLevel types.EContainerRegistryAccessLevel `mapconv:"Settings.ContainerRegistry.Public"` 5473 VirtualDomain string `mapconv:"Settings.ContainerRegistry.VirtualDomain"` 5474 SettingsHash string `json:",omitempty" mapconv:",omitempty"` 5475 SubDomainLabel string `mapconv:"Status.RegistryName"` 5476 FQDN string `mapconv:"Status.FQDN"` 5477 } 5478 5479 // setDefaults implements iaas.argumentDefaulter 5480 func (o *ContainerRegistry) setDefaults() interface{} { 5481 return &struct { 5482 ID types.ID 5483 Name string 5484 Description string 5485 Tags types.Tags 5486 Availability types.EAvailability 5487 IconID types.ID `mapconv:"Icon.ID"` 5488 CreatedAt time.Time 5489 ModifiedAt time.Time 5490 AccessLevel types.EContainerRegistryAccessLevel `mapconv:"Settings.ContainerRegistry.Public"` 5491 VirtualDomain string `mapconv:"Settings.ContainerRegistry.VirtualDomain"` 5492 SettingsHash string `json:",omitempty" mapconv:",omitempty"` 5493 SubDomainLabel string `mapconv:"Status.RegistryName"` 5494 FQDN string `mapconv:"Status.FQDN"` 5495 }{ 5496 ID: o.GetID(), 5497 Name: o.GetName(), 5498 Description: o.GetDescription(), 5499 Tags: o.GetTags(), 5500 Availability: o.GetAvailability(), 5501 IconID: o.GetIconID(), 5502 CreatedAt: o.GetCreatedAt(), 5503 ModifiedAt: o.GetModifiedAt(), 5504 AccessLevel: o.GetAccessLevel(), 5505 VirtualDomain: o.GetVirtualDomain(), 5506 SettingsHash: o.GetSettingsHash(), 5507 SubDomainLabel: o.GetSubDomainLabel(), 5508 FQDN: o.GetFQDN(), 5509 } 5510 } 5511 5512 // GetID returns value of ID 5513 func (o *ContainerRegistry) GetID() types.ID { 5514 return o.ID 5515 } 5516 5517 // SetID sets value to ID 5518 func (o *ContainerRegistry) SetID(v types.ID) { 5519 o.ID = v 5520 } 5521 5522 // SetStringID . 5523 func (o *ContainerRegistry) SetStringID(id string) { 5524 accessor.SetStringID(o, id) 5525 } 5526 5527 // GetStringID . 5528 func (o *ContainerRegistry) GetStringID() string { 5529 return accessor.GetStringID(o) 5530 } 5531 5532 // SetInt64ID . 5533 func (o *ContainerRegistry) SetInt64ID(id int64) { 5534 accessor.SetInt64ID(o, id) 5535 } 5536 5537 // GetInt64ID . 5538 func (o *ContainerRegistry) GetInt64ID() int64 { 5539 return accessor.GetInt64ID(o) 5540 } 5541 5542 // GetName returns value of Name 5543 func (o *ContainerRegistry) GetName() string { 5544 return o.Name 5545 } 5546 5547 // SetName sets value to Name 5548 func (o *ContainerRegistry) SetName(v string) { 5549 o.Name = v 5550 } 5551 5552 // GetDescription returns value of Description 5553 func (o *ContainerRegistry) GetDescription() string { 5554 return o.Description 5555 } 5556 5557 // SetDescription sets value to Description 5558 func (o *ContainerRegistry) SetDescription(v string) { 5559 o.Description = v 5560 } 5561 5562 // GetTags returns value of Tags 5563 func (o *ContainerRegistry) GetTags() types.Tags { 5564 return o.Tags 5565 } 5566 5567 // SetTags sets value to Tags 5568 func (o *ContainerRegistry) SetTags(v types.Tags) { 5569 o.Tags = v 5570 } 5571 5572 // HasTag 指定のタグが存在する場合trueを返す 5573 func (o *ContainerRegistry) HasTag(tag string) bool { 5574 return accessor.HasTag(o, tag) 5575 } 5576 5577 // AppendTag 指定のタグを追加 5578 func (o *ContainerRegistry) AppendTag(tag string) { 5579 accessor.AppendTag(o, tag) 5580 } 5581 5582 // RemoveTag 指定のタグを削除 5583 func (o *ContainerRegistry) RemoveTag(tag string) { 5584 accessor.RemoveTag(o, tag) 5585 } 5586 5587 // ClearTags タグを全クリア 5588 func (o *ContainerRegistry) ClearTags() { 5589 accessor.ClearTags(o) 5590 } 5591 5592 // GetAvailability returns value of Availability 5593 func (o *ContainerRegistry) GetAvailability() types.EAvailability { 5594 return o.Availability 5595 } 5596 5597 // SetAvailability sets value to Availability 5598 func (o *ContainerRegistry) SetAvailability(v types.EAvailability) { 5599 o.Availability = v 5600 } 5601 5602 // GetIconID returns value of IconID 5603 func (o *ContainerRegistry) GetIconID() types.ID { 5604 return o.IconID 5605 } 5606 5607 // SetIconID sets value to IconID 5608 func (o *ContainerRegistry) SetIconID(v types.ID) { 5609 o.IconID = v 5610 } 5611 5612 // GetCreatedAt returns value of CreatedAt 5613 func (o *ContainerRegistry) GetCreatedAt() time.Time { 5614 return o.CreatedAt 5615 } 5616 5617 // SetCreatedAt sets value to CreatedAt 5618 func (o *ContainerRegistry) SetCreatedAt(v time.Time) { 5619 o.CreatedAt = v 5620 } 5621 5622 // GetModifiedAt returns value of ModifiedAt 5623 func (o *ContainerRegistry) GetModifiedAt() time.Time { 5624 return o.ModifiedAt 5625 } 5626 5627 // SetModifiedAt sets value to ModifiedAt 5628 func (o *ContainerRegistry) SetModifiedAt(v time.Time) { 5629 o.ModifiedAt = v 5630 } 5631 5632 // GetAccessLevel returns value of AccessLevel 5633 func (o *ContainerRegistry) GetAccessLevel() types.EContainerRegistryAccessLevel { 5634 return o.AccessLevel 5635 } 5636 5637 // SetAccessLevel sets value to AccessLevel 5638 func (o *ContainerRegistry) SetAccessLevel(v types.EContainerRegistryAccessLevel) { 5639 o.AccessLevel = v 5640 } 5641 5642 // GetVirtualDomain returns value of VirtualDomain 5643 func (o *ContainerRegistry) GetVirtualDomain() string { 5644 return o.VirtualDomain 5645 } 5646 5647 // SetVirtualDomain sets value to VirtualDomain 5648 func (o *ContainerRegistry) SetVirtualDomain(v string) { 5649 o.VirtualDomain = v 5650 } 5651 5652 // GetSettingsHash returns value of SettingsHash 5653 func (o *ContainerRegistry) GetSettingsHash() string { 5654 return o.SettingsHash 5655 } 5656 5657 // SetSettingsHash sets value to SettingsHash 5658 func (o *ContainerRegistry) SetSettingsHash(v string) { 5659 o.SettingsHash = v 5660 } 5661 5662 // GetSubDomainLabel returns value of SubDomainLabel 5663 func (o *ContainerRegistry) GetSubDomainLabel() string { 5664 return o.SubDomainLabel 5665 } 5666 5667 // SetSubDomainLabel sets value to SubDomainLabel 5668 func (o *ContainerRegistry) SetSubDomainLabel(v string) { 5669 o.SubDomainLabel = v 5670 } 5671 5672 // GetFQDN returns value of FQDN 5673 func (o *ContainerRegistry) GetFQDN() string { 5674 return o.FQDN 5675 } 5676 5677 // SetFQDN sets value to FQDN 5678 func (o *ContainerRegistry) SetFQDN(v string) { 5679 o.FQDN = v 5680 } 5681 5682 /************************************************* 5683 * ContainerRegistryCreateRequest 5684 *************************************************/ 5685 5686 // ContainerRegistryCreateRequest represents API parameter/response structure 5687 type ContainerRegistryCreateRequest struct { 5688 Name string 5689 Description string 5690 Tags types.Tags 5691 IconID types.ID `mapconv:"Icon.ID"` 5692 AccessLevel types.EContainerRegistryAccessLevel `mapconv:"Settings.ContainerRegistry.Public"` 5693 VirtualDomain string `mapconv:"Settings.ContainerRegistry.VirtualDomain"` 5694 SubDomainLabel string `mapconv:"Status.RegistryName"` 5695 } 5696 5697 // setDefaults implements iaas.argumentDefaulter 5698 func (o *ContainerRegistryCreateRequest) setDefaults() interface{} { 5699 return &struct { 5700 Name string 5701 Description string 5702 Tags types.Tags 5703 IconID types.ID `mapconv:"Icon.ID"` 5704 AccessLevel types.EContainerRegistryAccessLevel `mapconv:"Settings.ContainerRegistry.Public"` 5705 VirtualDomain string `mapconv:"Settings.ContainerRegistry.VirtualDomain"` 5706 SubDomainLabel string `mapconv:"Status.RegistryName"` 5707 Class string `mapconv:"Provider.Class"` 5708 }{ 5709 Name: o.GetName(), 5710 Description: o.GetDescription(), 5711 Tags: o.GetTags(), 5712 IconID: o.GetIconID(), 5713 AccessLevel: o.GetAccessLevel(), 5714 VirtualDomain: o.GetVirtualDomain(), 5715 SubDomainLabel: o.GetSubDomainLabel(), 5716 Class: "containerregistry", 5717 } 5718 } 5719 5720 // GetName returns value of Name 5721 func (o *ContainerRegistryCreateRequest) GetName() string { 5722 return o.Name 5723 } 5724 5725 // SetName sets value to Name 5726 func (o *ContainerRegistryCreateRequest) SetName(v string) { 5727 o.Name = v 5728 } 5729 5730 // GetDescription returns value of Description 5731 func (o *ContainerRegistryCreateRequest) GetDescription() string { 5732 return o.Description 5733 } 5734 5735 // SetDescription sets value to Description 5736 func (o *ContainerRegistryCreateRequest) SetDescription(v string) { 5737 o.Description = v 5738 } 5739 5740 // GetTags returns value of Tags 5741 func (o *ContainerRegistryCreateRequest) GetTags() types.Tags { 5742 return o.Tags 5743 } 5744 5745 // SetTags sets value to Tags 5746 func (o *ContainerRegistryCreateRequest) SetTags(v types.Tags) { 5747 o.Tags = v 5748 } 5749 5750 // HasTag 指定のタグが存在する場合trueを返す 5751 func (o *ContainerRegistryCreateRequest) HasTag(tag string) bool { 5752 return accessor.HasTag(o, tag) 5753 } 5754 5755 // AppendTag 指定のタグを追加 5756 func (o *ContainerRegistryCreateRequest) AppendTag(tag string) { 5757 accessor.AppendTag(o, tag) 5758 } 5759 5760 // RemoveTag 指定のタグを削除 5761 func (o *ContainerRegistryCreateRequest) RemoveTag(tag string) { 5762 accessor.RemoveTag(o, tag) 5763 } 5764 5765 // ClearTags タグを全クリア 5766 func (o *ContainerRegistryCreateRequest) ClearTags() { 5767 accessor.ClearTags(o) 5768 } 5769 5770 // GetIconID returns value of IconID 5771 func (o *ContainerRegistryCreateRequest) GetIconID() types.ID { 5772 return o.IconID 5773 } 5774 5775 // SetIconID sets value to IconID 5776 func (o *ContainerRegistryCreateRequest) SetIconID(v types.ID) { 5777 o.IconID = v 5778 } 5779 5780 // GetAccessLevel returns value of AccessLevel 5781 func (o *ContainerRegistryCreateRequest) GetAccessLevel() types.EContainerRegistryAccessLevel { 5782 return o.AccessLevel 5783 } 5784 5785 // SetAccessLevel sets value to AccessLevel 5786 func (o *ContainerRegistryCreateRequest) SetAccessLevel(v types.EContainerRegistryAccessLevel) { 5787 o.AccessLevel = v 5788 } 5789 5790 // GetVirtualDomain returns value of VirtualDomain 5791 func (o *ContainerRegistryCreateRequest) GetVirtualDomain() string { 5792 return o.VirtualDomain 5793 } 5794 5795 // SetVirtualDomain sets value to VirtualDomain 5796 func (o *ContainerRegistryCreateRequest) SetVirtualDomain(v string) { 5797 o.VirtualDomain = v 5798 } 5799 5800 // GetSubDomainLabel returns value of SubDomainLabel 5801 func (o *ContainerRegistryCreateRequest) GetSubDomainLabel() string { 5802 return o.SubDomainLabel 5803 } 5804 5805 // SetSubDomainLabel sets value to SubDomainLabel 5806 func (o *ContainerRegistryCreateRequest) SetSubDomainLabel(v string) { 5807 o.SubDomainLabel = v 5808 } 5809 5810 /************************************************* 5811 * ContainerRegistryUpdateRequest 5812 *************************************************/ 5813 5814 // ContainerRegistryUpdateRequest represents API parameter/response structure 5815 type ContainerRegistryUpdateRequest struct { 5816 Name string 5817 Description string 5818 Tags types.Tags 5819 IconID types.ID `mapconv:"Icon.ID"` 5820 AccessLevel types.EContainerRegistryAccessLevel `mapconv:"Settings.ContainerRegistry.Public"` 5821 VirtualDomain string `mapconv:"Settings.ContainerRegistry.VirtualDomain"` 5822 SettingsHash string `json:",omitempty" mapconv:",omitempty"` 5823 } 5824 5825 // setDefaults implements iaas.argumentDefaulter 5826 func (o *ContainerRegistryUpdateRequest) setDefaults() interface{} { 5827 return &struct { 5828 Name string 5829 Description string 5830 Tags types.Tags 5831 IconID types.ID `mapconv:"Icon.ID"` 5832 AccessLevel types.EContainerRegistryAccessLevel `mapconv:"Settings.ContainerRegistry.Public"` 5833 VirtualDomain string `mapconv:"Settings.ContainerRegistry.VirtualDomain"` 5834 SettingsHash string `json:",omitempty" mapconv:",omitempty"` 5835 }{ 5836 Name: o.GetName(), 5837 Description: o.GetDescription(), 5838 Tags: o.GetTags(), 5839 IconID: o.GetIconID(), 5840 AccessLevel: o.GetAccessLevel(), 5841 VirtualDomain: o.GetVirtualDomain(), 5842 SettingsHash: o.GetSettingsHash(), 5843 } 5844 } 5845 5846 // GetName returns value of Name 5847 func (o *ContainerRegistryUpdateRequest) GetName() string { 5848 return o.Name 5849 } 5850 5851 // SetName sets value to Name 5852 func (o *ContainerRegistryUpdateRequest) SetName(v string) { 5853 o.Name = v 5854 } 5855 5856 // GetDescription returns value of Description 5857 func (o *ContainerRegistryUpdateRequest) GetDescription() string { 5858 return o.Description 5859 } 5860 5861 // SetDescription sets value to Description 5862 func (o *ContainerRegistryUpdateRequest) SetDescription(v string) { 5863 o.Description = v 5864 } 5865 5866 // GetTags returns value of Tags 5867 func (o *ContainerRegistryUpdateRequest) GetTags() types.Tags { 5868 return o.Tags 5869 } 5870 5871 // SetTags sets value to Tags 5872 func (o *ContainerRegistryUpdateRequest) SetTags(v types.Tags) { 5873 o.Tags = v 5874 } 5875 5876 // HasTag 指定のタグが存在する場合trueを返す 5877 func (o *ContainerRegistryUpdateRequest) HasTag(tag string) bool { 5878 return accessor.HasTag(o, tag) 5879 } 5880 5881 // AppendTag 指定のタグを追加 5882 func (o *ContainerRegistryUpdateRequest) AppendTag(tag string) { 5883 accessor.AppendTag(o, tag) 5884 } 5885 5886 // RemoveTag 指定のタグを削除 5887 func (o *ContainerRegistryUpdateRequest) RemoveTag(tag string) { 5888 accessor.RemoveTag(o, tag) 5889 } 5890 5891 // ClearTags タグを全クリア 5892 func (o *ContainerRegistryUpdateRequest) ClearTags() { 5893 accessor.ClearTags(o) 5894 } 5895 5896 // GetIconID returns value of IconID 5897 func (o *ContainerRegistryUpdateRequest) GetIconID() types.ID { 5898 return o.IconID 5899 } 5900 5901 // SetIconID sets value to IconID 5902 func (o *ContainerRegistryUpdateRequest) SetIconID(v types.ID) { 5903 o.IconID = v 5904 } 5905 5906 // GetAccessLevel returns value of AccessLevel 5907 func (o *ContainerRegistryUpdateRequest) GetAccessLevel() types.EContainerRegistryAccessLevel { 5908 return o.AccessLevel 5909 } 5910 5911 // SetAccessLevel sets value to AccessLevel 5912 func (o *ContainerRegistryUpdateRequest) SetAccessLevel(v types.EContainerRegistryAccessLevel) { 5913 o.AccessLevel = v 5914 } 5915 5916 // GetVirtualDomain returns value of VirtualDomain 5917 func (o *ContainerRegistryUpdateRequest) GetVirtualDomain() string { 5918 return o.VirtualDomain 5919 } 5920 5921 // SetVirtualDomain sets value to VirtualDomain 5922 func (o *ContainerRegistryUpdateRequest) SetVirtualDomain(v string) { 5923 o.VirtualDomain = v 5924 } 5925 5926 // GetSettingsHash returns value of SettingsHash 5927 func (o *ContainerRegistryUpdateRequest) GetSettingsHash() string { 5928 return o.SettingsHash 5929 } 5930 5931 // SetSettingsHash sets value to SettingsHash 5932 func (o *ContainerRegistryUpdateRequest) SetSettingsHash(v string) { 5933 o.SettingsHash = v 5934 } 5935 5936 /************************************************* 5937 * ContainerRegistryUpdateSettingsRequest 5938 *************************************************/ 5939 5940 // ContainerRegistryUpdateSettingsRequest represents API parameter/response structure 5941 type ContainerRegistryUpdateSettingsRequest struct { 5942 AccessLevel types.EContainerRegistryAccessLevel `mapconv:"Settings.ContainerRegistry.Public"` 5943 VirtualDomain string `mapconv:"Settings.ContainerRegistry.VirtualDomain"` 5944 SettingsHash string `json:",omitempty" mapconv:",omitempty"` 5945 } 5946 5947 // setDefaults implements iaas.argumentDefaulter 5948 func (o *ContainerRegistryUpdateSettingsRequest) setDefaults() interface{} { 5949 return &struct { 5950 AccessLevel types.EContainerRegistryAccessLevel `mapconv:"Settings.ContainerRegistry.Public"` 5951 VirtualDomain string `mapconv:"Settings.ContainerRegistry.VirtualDomain"` 5952 SettingsHash string `json:",omitempty" mapconv:",omitempty"` 5953 }{ 5954 AccessLevel: o.GetAccessLevel(), 5955 VirtualDomain: o.GetVirtualDomain(), 5956 SettingsHash: o.GetSettingsHash(), 5957 } 5958 } 5959 5960 // GetAccessLevel returns value of AccessLevel 5961 func (o *ContainerRegistryUpdateSettingsRequest) GetAccessLevel() types.EContainerRegistryAccessLevel { 5962 return o.AccessLevel 5963 } 5964 5965 // SetAccessLevel sets value to AccessLevel 5966 func (o *ContainerRegistryUpdateSettingsRequest) SetAccessLevel(v types.EContainerRegistryAccessLevel) { 5967 o.AccessLevel = v 5968 } 5969 5970 // GetVirtualDomain returns value of VirtualDomain 5971 func (o *ContainerRegistryUpdateSettingsRequest) GetVirtualDomain() string { 5972 return o.VirtualDomain 5973 } 5974 5975 // SetVirtualDomain sets value to VirtualDomain 5976 func (o *ContainerRegistryUpdateSettingsRequest) SetVirtualDomain(v string) { 5977 o.VirtualDomain = v 5978 } 5979 5980 // GetSettingsHash returns value of SettingsHash 5981 func (o *ContainerRegistryUpdateSettingsRequest) GetSettingsHash() string { 5982 return o.SettingsHash 5983 } 5984 5985 // SetSettingsHash sets value to SettingsHash 5986 func (o *ContainerRegistryUpdateSettingsRequest) SetSettingsHash(v string) { 5987 o.SettingsHash = v 5988 } 5989 5990 /************************************************* 5991 * ContainerRegistryUsers 5992 *************************************************/ 5993 5994 // ContainerRegistryUsers represents API parameter/response structure 5995 type ContainerRegistryUsers struct { 5996 Users []*ContainerRegistryUser 5997 } 5998 5999 // setDefaults implements iaas.argumentDefaulter 6000 func (o *ContainerRegistryUsers) setDefaults() interface{} { 6001 return &struct { 6002 Users []*ContainerRegistryUser 6003 }{ 6004 Users: o.GetUsers(), 6005 } 6006 } 6007 6008 // GetUsers returns value of Users 6009 func (o *ContainerRegistryUsers) GetUsers() []*ContainerRegistryUser { 6010 return o.Users 6011 } 6012 6013 // SetUsers sets value to Users 6014 func (o *ContainerRegistryUsers) SetUsers(v []*ContainerRegistryUser) { 6015 o.Users = v 6016 } 6017 6018 /************************************************* 6019 * ContainerRegistryUser 6020 *************************************************/ 6021 6022 // ContainerRegistryUser represents API parameter/response structure 6023 type ContainerRegistryUser struct { 6024 UserName string 6025 Permission types.EContainerRegistryPermission 6026 } 6027 6028 // setDefaults implements iaas.argumentDefaulter 6029 func (o *ContainerRegistryUser) setDefaults() interface{} { 6030 return &struct { 6031 UserName string 6032 Permission types.EContainerRegistryPermission 6033 }{ 6034 UserName: o.GetUserName(), 6035 Permission: o.GetPermission(), 6036 } 6037 } 6038 6039 // GetUserName returns value of UserName 6040 func (o *ContainerRegistryUser) GetUserName() string { 6041 return o.UserName 6042 } 6043 6044 // SetUserName sets value to UserName 6045 func (o *ContainerRegistryUser) SetUserName(v string) { 6046 o.UserName = v 6047 } 6048 6049 // GetPermission returns value of Permission 6050 func (o *ContainerRegistryUser) GetPermission() types.EContainerRegistryPermission { 6051 return o.Permission 6052 } 6053 6054 // SetPermission sets value to Permission 6055 func (o *ContainerRegistryUser) SetPermission(v types.EContainerRegistryPermission) { 6056 o.Permission = v 6057 } 6058 6059 /************************************************* 6060 * ContainerRegistryUserCreateRequest 6061 *************************************************/ 6062 6063 // ContainerRegistryUserCreateRequest represents API parameter/response structure 6064 type ContainerRegistryUserCreateRequest struct { 6065 UserName string 6066 Password string 6067 Permission types.EContainerRegistryPermission 6068 } 6069 6070 // setDefaults implements iaas.argumentDefaulter 6071 func (o *ContainerRegistryUserCreateRequest) setDefaults() interface{} { 6072 return &struct { 6073 UserName string 6074 Password string 6075 Permission types.EContainerRegistryPermission 6076 }{ 6077 UserName: o.GetUserName(), 6078 Password: o.GetPassword(), 6079 Permission: o.GetPermission(), 6080 } 6081 } 6082 6083 // GetUserName returns value of UserName 6084 func (o *ContainerRegistryUserCreateRequest) GetUserName() string { 6085 return o.UserName 6086 } 6087 6088 // SetUserName sets value to UserName 6089 func (o *ContainerRegistryUserCreateRequest) SetUserName(v string) { 6090 o.UserName = v 6091 } 6092 6093 // GetPassword returns value of Password 6094 func (o *ContainerRegistryUserCreateRequest) GetPassword() string { 6095 return o.Password 6096 } 6097 6098 // SetPassword sets value to Password 6099 func (o *ContainerRegistryUserCreateRequest) SetPassword(v string) { 6100 o.Password = v 6101 } 6102 6103 // GetPermission returns value of Permission 6104 func (o *ContainerRegistryUserCreateRequest) GetPermission() types.EContainerRegistryPermission { 6105 return o.Permission 6106 } 6107 6108 // SetPermission sets value to Permission 6109 func (o *ContainerRegistryUserCreateRequest) SetPermission(v types.EContainerRegistryPermission) { 6110 o.Permission = v 6111 } 6112 6113 /************************************************* 6114 * ContainerRegistryUserUpdateRequest 6115 *************************************************/ 6116 6117 // ContainerRegistryUserUpdateRequest represents API parameter/response structure 6118 type ContainerRegistryUserUpdateRequest struct { 6119 Password string 6120 Permission types.EContainerRegistryPermission 6121 } 6122 6123 // setDefaults implements iaas.argumentDefaulter 6124 func (o *ContainerRegistryUserUpdateRequest) setDefaults() interface{} { 6125 return &struct { 6126 Password string 6127 Permission types.EContainerRegistryPermission 6128 }{ 6129 Password: o.GetPassword(), 6130 Permission: o.GetPermission(), 6131 } 6132 } 6133 6134 // GetPassword returns value of Password 6135 func (o *ContainerRegistryUserUpdateRequest) GetPassword() string { 6136 return o.Password 6137 } 6138 6139 // SetPassword sets value to Password 6140 func (o *ContainerRegistryUserUpdateRequest) SetPassword(v string) { 6141 o.Password = v 6142 } 6143 6144 // GetPermission returns value of Permission 6145 func (o *ContainerRegistryUserUpdateRequest) GetPermission() types.EContainerRegistryPermission { 6146 return o.Permission 6147 } 6148 6149 // SetPermission sets value to Permission 6150 func (o *ContainerRegistryUserUpdateRequest) SetPermission(v types.EContainerRegistryPermission) { 6151 o.Permission = v 6152 } 6153 6154 /************************************************* 6155 * Coupon 6156 *************************************************/ 6157 6158 // Coupon represents API parameter/response structure 6159 type Coupon struct { 6160 ID types.ID 6161 MemberID string 6162 ContractID types.ID 6163 ServiceClassID types.ID 6164 Discount int64 6165 AppliedAt time.Time 6166 UntilAt time.Time 6167 } 6168 6169 // setDefaults implements iaas.argumentDefaulter 6170 func (o *Coupon) setDefaults() interface{} { 6171 return &struct { 6172 ID types.ID 6173 MemberID string 6174 ContractID types.ID 6175 ServiceClassID types.ID 6176 Discount int64 6177 AppliedAt time.Time 6178 UntilAt time.Time 6179 }{ 6180 ID: o.GetID(), 6181 MemberID: o.GetMemberID(), 6182 ContractID: o.GetContractID(), 6183 ServiceClassID: o.GetServiceClassID(), 6184 Discount: o.GetDiscount(), 6185 AppliedAt: o.GetAppliedAt(), 6186 UntilAt: o.GetUntilAt(), 6187 } 6188 } 6189 6190 // GetID returns value of ID 6191 func (o *Coupon) GetID() types.ID { 6192 return o.ID 6193 } 6194 6195 // SetID sets value to ID 6196 func (o *Coupon) SetID(v types.ID) { 6197 o.ID = v 6198 } 6199 6200 // SetStringID . 6201 func (o *Coupon) SetStringID(id string) { 6202 accessor.SetStringID(o, id) 6203 } 6204 6205 // GetStringID . 6206 func (o *Coupon) GetStringID() string { 6207 return accessor.GetStringID(o) 6208 } 6209 6210 // SetInt64ID . 6211 func (o *Coupon) SetInt64ID(id int64) { 6212 accessor.SetInt64ID(o, id) 6213 } 6214 6215 // GetInt64ID . 6216 func (o *Coupon) GetInt64ID() int64 { 6217 return accessor.GetInt64ID(o) 6218 } 6219 6220 // GetMemberID returns value of MemberID 6221 func (o *Coupon) GetMemberID() string { 6222 return o.MemberID 6223 } 6224 6225 // SetMemberID sets value to MemberID 6226 func (o *Coupon) SetMemberID(v string) { 6227 o.MemberID = v 6228 } 6229 6230 // GetContractID returns value of ContractID 6231 func (o *Coupon) GetContractID() types.ID { 6232 return o.ContractID 6233 } 6234 6235 // SetContractID sets value to ContractID 6236 func (o *Coupon) SetContractID(v types.ID) { 6237 o.ContractID = v 6238 } 6239 6240 // GetServiceClassID returns value of ServiceClassID 6241 func (o *Coupon) GetServiceClassID() types.ID { 6242 return o.ServiceClassID 6243 } 6244 6245 // SetServiceClassID sets value to ServiceClassID 6246 func (o *Coupon) SetServiceClassID(v types.ID) { 6247 o.ServiceClassID = v 6248 } 6249 6250 // GetDiscount returns value of Discount 6251 func (o *Coupon) GetDiscount() int64 { 6252 return o.Discount 6253 } 6254 6255 // SetDiscount sets value to Discount 6256 func (o *Coupon) SetDiscount(v int64) { 6257 o.Discount = v 6258 } 6259 6260 // GetAppliedAt returns value of AppliedAt 6261 func (o *Coupon) GetAppliedAt() time.Time { 6262 return o.AppliedAt 6263 } 6264 6265 // SetAppliedAt sets value to AppliedAt 6266 func (o *Coupon) SetAppliedAt(v time.Time) { 6267 o.AppliedAt = v 6268 } 6269 6270 // GetUntilAt returns value of UntilAt 6271 func (o *Coupon) GetUntilAt() time.Time { 6272 return o.UntilAt 6273 } 6274 6275 // SetUntilAt sets value to UntilAt 6276 func (o *Coupon) SetUntilAt(v time.Time) { 6277 o.UntilAt = v 6278 } 6279 6280 /************************************************* 6281 * Database 6282 *************************************************/ 6283 6284 // Database represents API parameter/response structure 6285 type Database struct { 6286 ID types.ID 6287 Class string 6288 Name string 6289 Description string 6290 Tags types.Tags 6291 Availability types.EAvailability 6292 IconID types.ID `mapconv:"Icon.ID"` 6293 CreatedAt time.Time 6294 ModifiedAt time.Time 6295 CommonSetting *DatabaseSettingCommon `mapconv:"Settings.DBConf.Common,recursive"` 6296 BackupSetting *DatabaseSettingBackup `mapconv:"Settings.DBConf.Backup,recursive"` 6297 ReplicationSetting *DatabaseReplicationSetting `mapconv:"Settings.DBConf.Replication,recursive"` 6298 InterfaceSettings []*DatabaseSettingsInterface `mapconv:"Settings.DBConf.[]Interfaces,omitempty,recursive"` 6299 SettingsHash string `json:",omitempty" mapconv:",omitempty"` 6300 InstanceHostName string `mapconv:"Instance.Host.Name"` 6301 InstanceHostInfoURL string `mapconv:"Instance.Host.InfoURL"` 6302 InstanceStatus types.EServerInstanceStatus `mapconv:"Instance.Status"` 6303 InstanceStatusChangedAt time.Time `mapconv:"Instance.StatusChangedAt"` 6304 PlanID types.ID `mapconv:"Remark.Plan.ID/Plan.ID"` 6305 SwitchID types.ID `mapconv:"Remark.Switch.ID"` 6306 Conf *DatabaseRemarkDBConfCommon `mapconv:"Remark.DBConf.Common,recursive"` 6307 DefaultRoute string `mapconv:"Remark.Network.DefaultRoute"` 6308 NetworkMaskLen int `mapconv:"Remark.Network.NetworkMaskLen"` 6309 IPAddresses []string `mapconv:"Remark.[]Servers.IPAddress"` 6310 ZoneID types.ID `mapconv:"Remark.Zone.ID"` 6311 Interfaces []*InterfaceView `json:",omitempty" mapconv:"[]Interfaces,recursive,omitempty"` 6312 } 6313 6314 // setDefaults implements iaas.argumentDefaulter 6315 func (o *Database) setDefaults() interface{} { 6316 return &struct { 6317 ID types.ID 6318 Class string 6319 Name string 6320 Description string 6321 Tags types.Tags 6322 Availability types.EAvailability 6323 IconID types.ID `mapconv:"Icon.ID"` 6324 CreatedAt time.Time 6325 ModifiedAt time.Time 6326 CommonSetting *DatabaseSettingCommon `mapconv:"Settings.DBConf.Common,recursive"` 6327 BackupSetting *DatabaseSettingBackup `mapconv:"Settings.DBConf.Backup,recursive"` 6328 ReplicationSetting *DatabaseReplicationSetting `mapconv:"Settings.DBConf.Replication,recursive"` 6329 InterfaceSettings []*DatabaseSettingsInterface `mapconv:"Settings.DBConf.[]Interfaces,omitempty,recursive"` 6330 SettingsHash string `json:",omitempty" mapconv:",omitempty"` 6331 InstanceHostName string `mapconv:"Instance.Host.Name"` 6332 InstanceHostInfoURL string `mapconv:"Instance.Host.InfoURL"` 6333 InstanceStatus types.EServerInstanceStatus `mapconv:"Instance.Status"` 6334 InstanceStatusChangedAt time.Time `mapconv:"Instance.StatusChangedAt"` 6335 PlanID types.ID `mapconv:"Remark.Plan.ID/Plan.ID"` 6336 SwitchID types.ID `mapconv:"Remark.Switch.ID"` 6337 Conf *DatabaseRemarkDBConfCommon `mapconv:"Remark.DBConf.Common,recursive"` 6338 DefaultRoute string `mapconv:"Remark.Network.DefaultRoute"` 6339 NetworkMaskLen int `mapconv:"Remark.Network.NetworkMaskLen"` 6340 IPAddresses []string `mapconv:"Remark.[]Servers.IPAddress"` 6341 ZoneID types.ID `mapconv:"Remark.Zone.ID"` 6342 Interfaces []*InterfaceView `json:",omitempty" mapconv:"[]Interfaces,recursive,omitempty"` 6343 }{ 6344 ID: o.GetID(), 6345 Class: o.GetClass(), 6346 Name: o.GetName(), 6347 Description: o.GetDescription(), 6348 Tags: o.GetTags(), 6349 Availability: o.GetAvailability(), 6350 IconID: o.GetIconID(), 6351 CreatedAt: o.GetCreatedAt(), 6352 ModifiedAt: o.GetModifiedAt(), 6353 CommonSetting: o.GetCommonSetting(), 6354 BackupSetting: o.GetBackupSetting(), 6355 ReplicationSetting: o.GetReplicationSetting(), 6356 InterfaceSettings: o.GetInterfaceSettings(), 6357 SettingsHash: o.GetSettingsHash(), 6358 InstanceHostName: o.GetInstanceHostName(), 6359 InstanceHostInfoURL: o.GetInstanceHostInfoURL(), 6360 InstanceStatus: o.GetInstanceStatus(), 6361 InstanceStatusChangedAt: o.GetInstanceStatusChangedAt(), 6362 PlanID: o.GetPlanID(), 6363 SwitchID: o.GetSwitchID(), 6364 Conf: o.GetConf(), 6365 DefaultRoute: o.GetDefaultRoute(), 6366 NetworkMaskLen: o.GetNetworkMaskLen(), 6367 IPAddresses: o.GetIPAddresses(), 6368 ZoneID: o.GetZoneID(), 6369 Interfaces: o.GetInterfaces(), 6370 } 6371 } 6372 6373 // GetID returns value of ID 6374 func (o *Database) GetID() types.ID { 6375 return o.ID 6376 } 6377 6378 // SetID sets value to ID 6379 func (o *Database) SetID(v types.ID) { 6380 o.ID = v 6381 } 6382 6383 // SetStringID . 6384 func (o *Database) SetStringID(id string) { 6385 accessor.SetStringID(o, id) 6386 } 6387 6388 // GetStringID . 6389 func (o *Database) GetStringID() string { 6390 return accessor.GetStringID(o) 6391 } 6392 6393 // SetInt64ID . 6394 func (o *Database) SetInt64ID(id int64) { 6395 accessor.SetInt64ID(o, id) 6396 } 6397 6398 // GetInt64ID . 6399 func (o *Database) GetInt64ID() int64 { 6400 return accessor.GetInt64ID(o) 6401 } 6402 6403 // GetClass returns value of Class 6404 func (o *Database) GetClass() string { 6405 return o.Class 6406 } 6407 6408 // SetClass sets value to Class 6409 func (o *Database) SetClass(v string) { 6410 o.Class = v 6411 } 6412 6413 // GetName returns value of Name 6414 func (o *Database) GetName() string { 6415 return o.Name 6416 } 6417 6418 // SetName sets value to Name 6419 func (o *Database) SetName(v string) { 6420 o.Name = v 6421 } 6422 6423 // GetDescription returns value of Description 6424 func (o *Database) GetDescription() string { 6425 return o.Description 6426 } 6427 6428 // SetDescription sets value to Description 6429 func (o *Database) SetDescription(v string) { 6430 o.Description = v 6431 } 6432 6433 // GetTags returns value of Tags 6434 func (o *Database) GetTags() types.Tags { 6435 return o.Tags 6436 } 6437 6438 // SetTags sets value to Tags 6439 func (o *Database) SetTags(v types.Tags) { 6440 o.Tags = v 6441 } 6442 6443 // HasTag 指定のタグが存在する場合trueを返す 6444 func (o *Database) HasTag(tag string) bool { 6445 return accessor.HasTag(o, tag) 6446 } 6447 6448 // AppendTag 指定のタグを追加 6449 func (o *Database) AppendTag(tag string) { 6450 accessor.AppendTag(o, tag) 6451 } 6452 6453 // RemoveTag 指定のタグを削除 6454 func (o *Database) RemoveTag(tag string) { 6455 accessor.RemoveTag(o, tag) 6456 } 6457 6458 // ClearTags タグを全クリア 6459 func (o *Database) ClearTags() { 6460 accessor.ClearTags(o) 6461 } 6462 6463 // GetAvailability returns value of Availability 6464 func (o *Database) GetAvailability() types.EAvailability { 6465 return o.Availability 6466 } 6467 6468 // SetAvailability sets value to Availability 6469 func (o *Database) SetAvailability(v types.EAvailability) { 6470 o.Availability = v 6471 } 6472 6473 // GetIconID returns value of IconID 6474 func (o *Database) GetIconID() types.ID { 6475 return o.IconID 6476 } 6477 6478 // SetIconID sets value to IconID 6479 func (o *Database) SetIconID(v types.ID) { 6480 o.IconID = v 6481 } 6482 6483 // GetCreatedAt returns value of CreatedAt 6484 func (o *Database) GetCreatedAt() time.Time { 6485 return o.CreatedAt 6486 } 6487 6488 // SetCreatedAt sets value to CreatedAt 6489 func (o *Database) SetCreatedAt(v time.Time) { 6490 o.CreatedAt = v 6491 } 6492 6493 // GetModifiedAt returns value of ModifiedAt 6494 func (o *Database) GetModifiedAt() time.Time { 6495 return o.ModifiedAt 6496 } 6497 6498 // SetModifiedAt sets value to ModifiedAt 6499 func (o *Database) SetModifiedAt(v time.Time) { 6500 o.ModifiedAt = v 6501 } 6502 6503 // GetCommonSetting returns value of CommonSetting 6504 func (o *Database) GetCommonSetting() *DatabaseSettingCommon { 6505 return o.CommonSetting 6506 } 6507 6508 // SetCommonSetting sets value to CommonSetting 6509 func (o *Database) SetCommonSetting(v *DatabaseSettingCommon) { 6510 o.CommonSetting = v 6511 } 6512 6513 // GetBackupSetting returns value of BackupSetting 6514 func (o *Database) GetBackupSetting() *DatabaseSettingBackup { 6515 return o.BackupSetting 6516 } 6517 6518 // SetBackupSetting sets value to BackupSetting 6519 func (o *Database) SetBackupSetting(v *DatabaseSettingBackup) { 6520 o.BackupSetting = v 6521 } 6522 6523 // GetReplicationSetting returns value of ReplicationSetting 6524 func (o *Database) GetReplicationSetting() *DatabaseReplicationSetting { 6525 return o.ReplicationSetting 6526 } 6527 6528 // SetReplicationSetting sets value to ReplicationSetting 6529 func (o *Database) SetReplicationSetting(v *DatabaseReplicationSetting) { 6530 o.ReplicationSetting = v 6531 } 6532 6533 // GetInterfaceSettings returns value of InterfaceSettings 6534 func (o *Database) GetInterfaceSettings() []*DatabaseSettingsInterface { 6535 return o.InterfaceSettings 6536 } 6537 6538 // SetInterfaceSettings sets value to InterfaceSettings 6539 func (o *Database) SetInterfaceSettings(v []*DatabaseSettingsInterface) { 6540 o.InterfaceSettings = v 6541 } 6542 6543 // GetSettingsHash returns value of SettingsHash 6544 func (o *Database) GetSettingsHash() string { 6545 return o.SettingsHash 6546 } 6547 6548 // SetSettingsHash sets value to SettingsHash 6549 func (o *Database) SetSettingsHash(v string) { 6550 o.SettingsHash = v 6551 } 6552 6553 // GetInstanceHostName returns value of InstanceHostName 6554 func (o *Database) GetInstanceHostName() string { 6555 return o.InstanceHostName 6556 } 6557 6558 // SetInstanceHostName sets value to InstanceHostName 6559 func (o *Database) SetInstanceHostName(v string) { 6560 o.InstanceHostName = v 6561 } 6562 6563 // GetInstanceHostInfoURL returns value of InstanceHostInfoURL 6564 func (o *Database) GetInstanceHostInfoURL() string { 6565 return o.InstanceHostInfoURL 6566 } 6567 6568 // SetInstanceHostInfoURL sets value to InstanceHostInfoURL 6569 func (o *Database) SetInstanceHostInfoURL(v string) { 6570 o.InstanceHostInfoURL = v 6571 } 6572 6573 // GetInstanceStatus returns value of InstanceStatus 6574 func (o *Database) GetInstanceStatus() types.EServerInstanceStatus { 6575 return o.InstanceStatus 6576 } 6577 6578 // SetInstanceStatus sets value to InstanceStatus 6579 func (o *Database) SetInstanceStatus(v types.EServerInstanceStatus) { 6580 o.InstanceStatus = v 6581 } 6582 6583 // GetInstanceStatusChangedAt returns value of InstanceStatusChangedAt 6584 func (o *Database) GetInstanceStatusChangedAt() time.Time { 6585 return o.InstanceStatusChangedAt 6586 } 6587 6588 // SetInstanceStatusChangedAt sets value to InstanceStatusChangedAt 6589 func (o *Database) SetInstanceStatusChangedAt(v time.Time) { 6590 o.InstanceStatusChangedAt = v 6591 } 6592 6593 // GetPlanID returns value of PlanID 6594 func (o *Database) GetPlanID() types.ID { 6595 return o.PlanID 6596 } 6597 6598 // SetPlanID sets value to PlanID 6599 func (o *Database) SetPlanID(v types.ID) { 6600 o.PlanID = v 6601 } 6602 6603 // GetSwitchID returns value of SwitchID 6604 func (o *Database) GetSwitchID() types.ID { 6605 return o.SwitchID 6606 } 6607 6608 // SetSwitchID sets value to SwitchID 6609 func (o *Database) SetSwitchID(v types.ID) { 6610 o.SwitchID = v 6611 } 6612 6613 // GetConf returns value of Conf 6614 func (o *Database) GetConf() *DatabaseRemarkDBConfCommon { 6615 return o.Conf 6616 } 6617 6618 // SetConf sets value to Conf 6619 func (o *Database) SetConf(v *DatabaseRemarkDBConfCommon) { 6620 o.Conf = v 6621 } 6622 6623 // GetDefaultRoute returns value of DefaultRoute 6624 func (o *Database) GetDefaultRoute() string { 6625 return o.DefaultRoute 6626 } 6627 6628 // SetDefaultRoute sets value to DefaultRoute 6629 func (o *Database) SetDefaultRoute(v string) { 6630 o.DefaultRoute = v 6631 } 6632 6633 // GetNetworkMaskLen returns value of NetworkMaskLen 6634 func (o *Database) GetNetworkMaskLen() int { 6635 return o.NetworkMaskLen 6636 } 6637 6638 // SetNetworkMaskLen sets value to NetworkMaskLen 6639 func (o *Database) SetNetworkMaskLen(v int) { 6640 o.NetworkMaskLen = v 6641 } 6642 6643 // GetIPAddresses returns value of IPAddresses 6644 func (o *Database) GetIPAddresses() []string { 6645 return o.IPAddresses 6646 } 6647 6648 // SetIPAddresses sets value to IPAddresses 6649 func (o *Database) SetIPAddresses(v []string) { 6650 o.IPAddresses = v 6651 } 6652 6653 // GetZoneID returns value of ZoneID 6654 func (o *Database) GetZoneID() types.ID { 6655 return o.ZoneID 6656 } 6657 6658 // SetZoneID sets value to ZoneID 6659 func (o *Database) SetZoneID(v types.ID) { 6660 o.ZoneID = v 6661 } 6662 6663 // GetInterfaces returns value of Interfaces 6664 func (o *Database) GetInterfaces() []*InterfaceView { 6665 return o.Interfaces 6666 } 6667 6668 // SetInterfaces sets value to Interfaces 6669 func (o *Database) SetInterfaces(v []*InterfaceView) { 6670 o.Interfaces = v 6671 } 6672 6673 /************************************************* 6674 * DatabaseSettingCommon 6675 *************************************************/ 6676 6677 // DatabaseSettingCommon represents API parameter/response structure 6678 type DatabaseSettingCommon struct { 6679 WebUI types.WebUI 6680 ServicePort int 6681 SourceNetwork []string 6682 DefaultUser string 6683 UserPassword string 6684 ReplicaUser string 6685 ReplicaPassword string 6686 } 6687 6688 // setDefaults implements iaas.argumentDefaulter 6689 func (o *DatabaseSettingCommon) setDefaults() interface{} { 6690 return &struct { 6691 WebUI types.WebUI 6692 ServicePort int 6693 SourceNetwork []string 6694 DefaultUser string 6695 UserPassword string 6696 ReplicaUser string 6697 ReplicaPassword string 6698 }{ 6699 WebUI: o.GetWebUI(), 6700 ServicePort: o.GetServicePort(), 6701 SourceNetwork: o.GetSourceNetwork(), 6702 DefaultUser: o.GetDefaultUser(), 6703 UserPassword: o.GetUserPassword(), 6704 ReplicaUser: o.GetReplicaUser(), 6705 ReplicaPassword: o.GetReplicaPassword(), 6706 } 6707 } 6708 6709 // GetWebUI returns value of WebUI 6710 func (o *DatabaseSettingCommon) GetWebUI() types.WebUI { 6711 return o.WebUI 6712 } 6713 6714 // SetWebUI sets value to WebUI 6715 func (o *DatabaseSettingCommon) SetWebUI(v types.WebUI) { 6716 o.WebUI = v 6717 } 6718 6719 // GetServicePort returns value of ServicePort 6720 func (o *DatabaseSettingCommon) GetServicePort() int { 6721 return o.ServicePort 6722 } 6723 6724 // SetServicePort sets value to ServicePort 6725 func (o *DatabaseSettingCommon) SetServicePort(v int) { 6726 o.ServicePort = v 6727 } 6728 6729 // GetSourceNetwork returns value of SourceNetwork 6730 func (o *DatabaseSettingCommon) GetSourceNetwork() []string { 6731 return o.SourceNetwork 6732 } 6733 6734 // SetSourceNetwork sets value to SourceNetwork 6735 func (o *DatabaseSettingCommon) SetSourceNetwork(v []string) { 6736 o.SourceNetwork = v 6737 } 6738 6739 // GetDefaultUser returns value of DefaultUser 6740 func (o *DatabaseSettingCommon) GetDefaultUser() string { 6741 return o.DefaultUser 6742 } 6743 6744 // SetDefaultUser sets value to DefaultUser 6745 func (o *DatabaseSettingCommon) SetDefaultUser(v string) { 6746 o.DefaultUser = v 6747 } 6748 6749 // GetUserPassword returns value of UserPassword 6750 func (o *DatabaseSettingCommon) GetUserPassword() string { 6751 return o.UserPassword 6752 } 6753 6754 // SetUserPassword sets value to UserPassword 6755 func (o *DatabaseSettingCommon) SetUserPassword(v string) { 6756 o.UserPassword = v 6757 } 6758 6759 // GetReplicaUser returns value of ReplicaUser 6760 func (o *DatabaseSettingCommon) GetReplicaUser() string { 6761 return o.ReplicaUser 6762 } 6763 6764 // SetReplicaUser sets value to ReplicaUser 6765 func (o *DatabaseSettingCommon) SetReplicaUser(v string) { 6766 o.ReplicaUser = v 6767 } 6768 6769 // GetReplicaPassword returns value of ReplicaPassword 6770 func (o *DatabaseSettingCommon) GetReplicaPassword() string { 6771 return o.ReplicaPassword 6772 } 6773 6774 // SetReplicaPassword sets value to ReplicaPassword 6775 func (o *DatabaseSettingCommon) SetReplicaPassword(v string) { 6776 o.ReplicaPassword = v 6777 } 6778 6779 /************************************************* 6780 * DatabaseSettingBackup 6781 *************************************************/ 6782 6783 // DatabaseSettingBackup represents API parameter/response structure 6784 type DatabaseSettingBackup struct { 6785 Rotate int 6786 Time string 6787 DayOfWeek []types.EDayOfTheWeek 6788 Connect string 6789 } 6790 6791 // setDefaults implements iaas.argumentDefaulter 6792 func (o *DatabaseSettingBackup) setDefaults() interface{} { 6793 return &struct { 6794 Rotate int 6795 Time string 6796 DayOfWeek []types.EDayOfTheWeek 6797 Connect string 6798 }{ 6799 Rotate: o.GetRotate(), 6800 Time: o.GetTime(), 6801 DayOfWeek: o.GetDayOfWeek(), 6802 Connect: o.GetConnect(), 6803 } 6804 } 6805 6806 // GetRotate returns value of Rotate 6807 func (o *DatabaseSettingBackup) GetRotate() int { 6808 return o.Rotate 6809 } 6810 6811 // SetRotate sets value to Rotate 6812 func (o *DatabaseSettingBackup) SetRotate(v int) { 6813 o.Rotate = v 6814 } 6815 6816 // GetTime returns value of Time 6817 func (o *DatabaseSettingBackup) GetTime() string { 6818 return o.Time 6819 } 6820 6821 // SetTime sets value to Time 6822 func (o *DatabaseSettingBackup) SetTime(v string) { 6823 o.Time = v 6824 } 6825 6826 // GetDayOfWeek returns value of DayOfWeek 6827 func (o *DatabaseSettingBackup) GetDayOfWeek() []types.EDayOfTheWeek { 6828 return o.DayOfWeek 6829 } 6830 6831 // SetDayOfWeek sets value to DayOfWeek 6832 func (o *DatabaseSettingBackup) SetDayOfWeek(v []types.EDayOfTheWeek) { 6833 o.DayOfWeek = v 6834 } 6835 6836 // GetConnect returns value of Connect 6837 func (o *DatabaseSettingBackup) GetConnect() string { 6838 return o.Connect 6839 } 6840 6841 // SetConnect sets value to Connect 6842 func (o *DatabaseSettingBackup) SetConnect(v string) { 6843 o.Connect = v 6844 } 6845 6846 /************************************************* 6847 * DatabaseReplicationSetting 6848 *************************************************/ 6849 6850 // DatabaseReplicationSetting represents API parameter/response structure 6851 type DatabaseReplicationSetting struct { 6852 Model types.EDatabaseReplicationModel 6853 IPAddress string 6854 Port int 6855 User string 6856 Password string 6857 ApplianceID types.ID `mapconv:"Appliance.ID"` 6858 } 6859 6860 // setDefaults implements iaas.argumentDefaulter 6861 func (o *DatabaseReplicationSetting) setDefaults() interface{} { 6862 return &struct { 6863 Model types.EDatabaseReplicationModel 6864 IPAddress string 6865 Port int 6866 User string 6867 Password string 6868 ApplianceID types.ID `mapconv:"Appliance.ID"` 6869 }{ 6870 Model: o.GetModel(), 6871 IPAddress: o.GetIPAddress(), 6872 Port: o.GetPort(), 6873 User: o.GetUser(), 6874 Password: o.GetPassword(), 6875 ApplianceID: o.GetApplianceID(), 6876 } 6877 } 6878 6879 // GetModel returns value of Model 6880 func (o *DatabaseReplicationSetting) GetModel() types.EDatabaseReplicationModel { 6881 return o.Model 6882 } 6883 6884 // SetModel sets value to Model 6885 func (o *DatabaseReplicationSetting) SetModel(v types.EDatabaseReplicationModel) { 6886 o.Model = v 6887 } 6888 6889 // GetIPAddress returns value of IPAddress 6890 func (o *DatabaseReplicationSetting) GetIPAddress() string { 6891 return o.IPAddress 6892 } 6893 6894 // SetIPAddress sets value to IPAddress 6895 func (o *DatabaseReplicationSetting) SetIPAddress(v string) { 6896 o.IPAddress = v 6897 } 6898 6899 // GetPort returns value of Port 6900 func (o *DatabaseReplicationSetting) GetPort() int { 6901 return o.Port 6902 } 6903 6904 // SetPort sets value to Port 6905 func (o *DatabaseReplicationSetting) SetPort(v int) { 6906 o.Port = v 6907 } 6908 6909 // GetUser returns value of User 6910 func (o *DatabaseReplicationSetting) GetUser() string { 6911 return o.User 6912 } 6913 6914 // SetUser sets value to User 6915 func (o *DatabaseReplicationSetting) SetUser(v string) { 6916 o.User = v 6917 } 6918 6919 // GetPassword returns value of Password 6920 func (o *DatabaseReplicationSetting) GetPassword() string { 6921 return o.Password 6922 } 6923 6924 // SetPassword sets value to Password 6925 func (o *DatabaseReplicationSetting) SetPassword(v string) { 6926 o.Password = v 6927 } 6928 6929 // GetApplianceID returns value of ApplianceID 6930 func (o *DatabaseReplicationSetting) GetApplianceID() types.ID { 6931 return o.ApplianceID 6932 } 6933 6934 // SetApplianceID sets value to ApplianceID 6935 func (o *DatabaseReplicationSetting) SetApplianceID(v types.ID) { 6936 o.ApplianceID = v 6937 } 6938 6939 /************************************************* 6940 * DatabaseSettingsInterface 6941 *************************************************/ 6942 6943 // DatabaseSettingsInterface represents API parameter/response structure 6944 type DatabaseSettingsInterface struct { 6945 VirtualIPAddress string 6946 Index int 6947 } 6948 6949 // setDefaults implements iaas.argumentDefaulter 6950 func (o *DatabaseSettingsInterface) setDefaults() interface{} { 6951 return &struct { 6952 VirtualIPAddress string 6953 Index int 6954 }{ 6955 VirtualIPAddress: o.GetVirtualIPAddress(), 6956 Index: o.GetIndex(), 6957 } 6958 } 6959 6960 // GetVirtualIPAddress returns value of VirtualIPAddress 6961 func (o *DatabaseSettingsInterface) GetVirtualIPAddress() string { 6962 return o.VirtualIPAddress 6963 } 6964 6965 // SetVirtualIPAddress sets value to VirtualIPAddress 6966 func (o *DatabaseSettingsInterface) SetVirtualIPAddress(v string) { 6967 o.VirtualIPAddress = v 6968 } 6969 6970 // GetIndex returns value of Index 6971 func (o *DatabaseSettingsInterface) GetIndex() int { 6972 return o.Index 6973 } 6974 6975 // SetIndex sets value to Index 6976 func (o *DatabaseSettingsInterface) SetIndex(v int) { 6977 o.Index = v 6978 } 6979 6980 /************************************************* 6981 * DatabaseRemarkDBConfCommon 6982 *************************************************/ 6983 6984 // DatabaseRemarkDBConfCommon represents API parameter/response structure 6985 type DatabaseRemarkDBConfCommon struct { 6986 DatabaseName string 6987 DatabaseVersion string 6988 DatabaseRevision string 6989 DefaultUser string 6990 UserPassword string 6991 } 6992 6993 // setDefaults implements iaas.argumentDefaulter 6994 func (o *DatabaseRemarkDBConfCommon) setDefaults() interface{} { 6995 return &struct { 6996 DatabaseName string 6997 DatabaseVersion string 6998 DatabaseRevision string 6999 DefaultUser string 7000 UserPassword string 7001 }{ 7002 DatabaseName: o.GetDatabaseName(), 7003 DatabaseVersion: o.GetDatabaseVersion(), 7004 DatabaseRevision: o.GetDatabaseRevision(), 7005 DefaultUser: o.GetDefaultUser(), 7006 UserPassword: o.GetUserPassword(), 7007 } 7008 } 7009 7010 // GetDatabaseName returns value of DatabaseName 7011 func (o *DatabaseRemarkDBConfCommon) GetDatabaseName() string { 7012 return o.DatabaseName 7013 } 7014 7015 // SetDatabaseName sets value to DatabaseName 7016 func (o *DatabaseRemarkDBConfCommon) SetDatabaseName(v string) { 7017 o.DatabaseName = v 7018 } 7019 7020 // GetDatabaseVersion returns value of DatabaseVersion 7021 func (o *DatabaseRemarkDBConfCommon) GetDatabaseVersion() string { 7022 return o.DatabaseVersion 7023 } 7024 7025 // SetDatabaseVersion sets value to DatabaseVersion 7026 func (o *DatabaseRemarkDBConfCommon) SetDatabaseVersion(v string) { 7027 o.DatabaseVersion = v 7028 } 7029 7030 // GetDatabaseRevision returns value of DatabaseRevision 7031 func (o *DatabaseRemarkDBConfCommon) GetDatabaseRevision() string { 7032 return o.DatabaseRevision 7033 } 7034 7035 // SetDatabaseRevision sets value to DatabaseRevision 7036 func (o *DatabaseRemarkDBConfCommon) SetDatabaseRevision(v string) { 7037 o.DatabaseRevision = v 7038 } 7039 7040 // GetDefaultUser returns value of DefaultUser 7041 func (o *DatabaseRemarkDBConfCommon) GetDefaultUser() string { 7042 return o.DefaultUser 7043 } 7044 7045 // SetDefaultUser sets value to DefaultUser 7046 func (o *DatabaseRemarkDBConfCommon) SetDefaultUser(v string) { 7047 o.DefaultUser = v 7048 } 7049 7050 // GetUserPassword returns value of UserPassword 7051 func (o *DatabaseRemarkDBConfCommon) GetUserPassword() string { 7052 return o.UserPassword 7053 } 7054 7055 // SetUserPassword sets value to UserPassword 7056 func (o *DatabaseRemarkDBConfCommon) SetUserPassword(v string) { 7057 o.UserPassword = v 7058 } 7059 7060 /************************************************* 7061 * InterfaceView 7062 *************************************************/ 7063 7064 // InterfaceView represents API parameter/response structure 7065 type InterfaceView struct { 7066 ID types.ID 7067 MACAddress string 7068 IPAddress string 7069 UserIPAddress string 7070 HostName string 7071 SwitchID types.ID `mapconv:"Switch.ID"` 7072 SwitchName string `mapconv:"Switch.Name"` 7073 SwitchScope types.EScope `mapconv:"Switch.Scope"` 7074 UserSubnetDefaultRoute string `mapconv:"Switch.UserSubnet.DefaultRoute"` 7075 UserSubnetNetworkMaskLen int `mapconv:"Switch.UserSubnet.NetworkMaskLen"` 7076 SubnetDefaultRoute string `mapconv:"Switch.Subnet.DefaultRoute"` 7077 SubnetNetworkMaskLen int `mapconv:"Switch.Subnet.NetworkMaskLen"` 7078 SubnetNetworkAddress string `mapconv:"Switch.Subnet.NetworkAddress"` 7079 SubnetBandWidthMbps int `mapconv:"Switch.Subnet.Internet.BandWidthMbps"` 7080 PacketFilterID types.ID `mapconv:"PacketFilter.ID"` 7081 PacketFilterName string `mapconv:"PacketFilter.Name"` 7082 PacketFilterRequiredHostVersion types.StringNumber `mapconv:"PacketFilter.RequiredHostVersionn"` 7083 UpstreamType types.EUpstreamNetworkType 7084 } 7085 7086 // setDefaults implements iaas.argumentDefaulter 7087 func (o *InterfaceView) setDefaults() interface{} { 7088 return &struct { 7089 ID types.ID 7090 MACAddress string 7091 IPAddress string 7092 UserIPAddress string 7093 HostName string 7094 SwitchID types.ID `mapconv:"Switch.ID"` 7095 SwitchName string `mapconv:"Switch.Name"` 7096 SwitchScope types.EScope `mapconv:"Switch.Scope"` 7097 UserSubnetDefaultRoute string `mapconv:"Switch.UserSubnet.DefaultRoute"` 7098 UserSubnetNetworkMaskLen int `mapconv:"Switch.UserSubnet.NetworkMaskLen"` 7099 SubnetDefaultRoute string `mapconv:"Switch.Subnet.DefaultRoute"` 7100 SubnetNetworkMaskLen int `mapconv:"Switch.Subnet.NetworkMaskLen"` 7101 SubnetNetworkAddress string `mapconv:"Switch.Subnet.NetworkAddress"` 7102 SubnetBandWidthMbps int `mapconv:"Switch.Subnet.Internet.BandWidthMbps"` 7103 PacketFilterID types.ID `mapconv:"PacketFilter.ID"` 7104 PacketFilterName string `mapconv:"PacketFilter.Name"` 7105 PacketFilterRequiredHostVersion types.StringNumber `mapconv:"PacketFilter.RequiredHostVersionn"` 7106 UpstreamType types.EUpstreamNetworkType 7107 }{ 7108 ID: o.GetID(), 7109 MACAddress: o.GetMACAddress(), 7110 IPAddress: o.GetIPAddress(), 7111 UserIPAddress: o.GetUserIPAddress(), 7112 HostName: o.GetHostName(), 7113 SwitchID: o.GetSwitchID(), 7114 SwitchName: o.GetSwitchName(), 7115 SwitchScope: o.GetSwitchScope(), 7116 UserSubnetDefaultRoute: o.GetUserSubnetDefaultRoute(), 7117 UserSubnetNetworkMaskLen: o.GetUserSubnetNetworkMaskLen(), 7118 SubnetDefaultRoute: o.GetSubnetDefaultRoute(), 7119 SubnetNetworkMaskLen: o.GetSubnetNetworkMaskLen(), 7120 SubnetNetworkAddress: o.GetSubnetNetworkAddress(), 7121 SubnetBandWidthMbps: o.GetSubnetBandWidthMbps(), 7122 PacketFilterID: o.GetPacketFilterID(), 7123 PacketFilterName: o.GetPacketFilterName(), 7124 PacketFilterRequiredHostVersion: o.GetPacketFilterRequiredHostVersion(), 7125 UpstreamType: o.GetUpstreamType(), 7126 } 7127 } 7128 7129 // GetID returns value of ID 7130 func (o *InterfaceView) GetID() types.ID { 7131 return o.ID 7132 } 7133 7134 // SetID sets value to ID 7135 func (o *InterfaceView) SetID(v types.ID) { 7136 o.ID = v 7137 } 7138 7139 // SetStringID . 7140 func (o *InterfaceView) SetStringID(id string) { 7141 accessor.SetStringID(o, id) 7142 } 7143 7144 // GetStringID . 7145 func (o *InterfaceView) GetStringID() string { 7146 return accessor.GetStringID(o) 7147 } 7148 7149 // SetInt64ID . 7150 func (o *InterfaceView) SetInt64ID(id int64) { 7151 accessor.SetInt64ID(o, id) 7152 } 7153 7154 // GetInt64ID . 7155 func (o *InterfaceView) GetInt64ID() int64 { 7156 return accessor.GetInt64ID(o) 7157 } 7158 7159 // GetMACAddress returns value of MACAddress 7160 func (o *InterfaceView) GetMACAddress() string { 7161 return o.MACAddress 7162 } 7163 7164 // SetMACAddress sets value to MACAddress 7165 func (o *InterfaceView) SetMACAddress(v string) { 7166 o.MACAddress = v 7167 } 7168 7169 // GetIPAddress returns value of IPAddress 7170 func (o *InterfaceView) GetIPAddress() string { 7171 return o.IPAddress 7172 } 7173 7174 // SetIPAddress sets value to IPAddress 7175 func (o *InterfaceView) SetIPAddress(v string) { 7176 o.IPAddress = v 7177 } 7178 7179 // GetUserIPAddress returns value of UserIPAddress 7180 func (o *InterfaceView) GetUserIPAddress() string { 7181 return o.UserIPAddress 7182 } 7183 7184 // SetUserIPAddress sets value to UserIPAddress 7185 func (o *InterfaceView) SetUserIPAddress(v string) { 7186 o.UserIPAddress = v 7187 } 7188 7189 // GetHostName returns value of HostName 7190 func (o *InterfaceView) GetHostName() string { 7191 return o.HostName 7192 } 7193 7194 // SetHostName sets value to HostName 7195 func (o *InterfaceView) SetHostName(v string) { 7196 o.HostName = v 7197 } 7198 7199 // GetSwitchID returns value of SwitchID 7200 func (o *InterfaceView) GetSwitchID() types.ID { 7201 return o.SwitchID 7202 } 7203 7204 // SetSwitchID sets value to SwitchID 7205 func (o *InterfaceView) SetSwitchID(v types.ID) { 7206 o.SwitchID = v 7207 } 7208 7209 // GetSwitchName returns value of SwitchName 7210 func (o *InterfaceView) GetSwitchName() string { 7211 return o.SwitchName 7212 } 7213 7214 // SetSwitchName sets value to SwitchName 7215 func (o *InterfaceView) SetSwitchName(v string) { 7216 o.SwitchName = v 7217 } 7218 7219 // GetSwitchScope returns value of SwitchScope 7220 func (o *InterfaceView) GetSwitchScope() types.EScope { 7221 return o.SwitchScope 7222 } 7223 7224 // SetSwitchScope sets value to SwitchScope 7225 func (o *InterfaceView) SetSwitchScope(v types.EScope) { 7226 o.SwitchScope = v 7227 } 7228 7229 // GetUserSubnetDefaultRoute returns value of UserSubnetDefaultRoute 7230 func (o *InterfaceView) GetUserSubnetDefaultRoute() string { 7231 return o.UserSubnetDefaultRoute 7232 } 7233 7234 // SetUserSubnetDefaultRoute sets value to UserSubnetDefaultRoute 7235 func (o *InterfaceView) SetUserSubnetDefaultRoute(v string) { 7236 o.UserSubnetDefaultRoute = v 7237 } 7238 7239 // GetUserSubnetNetworkMaskLen returns value of UserSubnetNetworkMaskLen 7240 func (o *InterfaceView) GetUserSubnetNetworkMaskLen() int { 7241 return o.UserSubnetNetworkMaskLen 7242 } 7243 7244 // SetUserSubnetNetworkMaskLen sets value to UserSubnetNetworkMaskLen 7245 func (o *InterfaceView) SetUserSubnetNetworkMaskLen(v int) { 7246 o.UserSubnetNetworkMaskLen = v 7247 } 7248 7249 // GetSubnetDefaultRoute returns value of SubnetDefaultRoute 7250 func (o *InterfaceView) GetSubnetDefaultRoute() string { 7251 return o.SubnetDefaultRoute 7252 } 7253 7254 // SetSubnetDefaultRoute sets value to SubnetDefaultRoute 7255 func (o *InterfaceView) SetSubnetDefaultRoute(v string) { 7256 o.SubnetDefaultRoute = v 7257 } 7258 7259 // GetSubnetNetworkMaskLen returns value of SubnetNetworkMaskLen 7260 func (o *InterfaceView) GetSubnetNetworkMaskLen() int { 7261 return o.SubnetNetworkMaskLen 7262 } 7263 7264 // SetSubnetNetworkMaskLen sets value to SubnetNetworkMaskLen 7265 func (o *InterfaceView) SetSubnetNetworkMaskLen(v int) { 7266 o.SubnetNetworkMaskLen = v 7267 } 7268 7269 // GetSubnetNetworkAddress returns value of SubnetNetworkAddress 7270 func (o *InterfaceView) GetSubnetNetworkAddress() string { 7271 return o.SubnetNetworkAddress 7272 } 7273 7274 // SetSubnetNetworkAddress sets value to SubnetNetworkAddress 7275 func (o *InterfaceView) SetSubnetNetworkAddress(v string) { 7276 o.SubnetNetworkAddress = v 7277 } 7278 7279 // GetSubnetBandWidthMbps returns value of SubnetBandWidthMbps 7280 func (o *InterfaceView) GetSubnetBandWidthMbps() int { 7281 return o.SubnetBandWidthMbps 7282 } 7283 7284 // SetSubnetBandWidthMbps sets value to SubnetBandWidthMbps 7285 func (o *InterfaceView) SetSubnetBandWidthMbps(v int) { 7286 o.SubnetBandWidthMbps = v 7287 } 7288 7289 // GetPacketFilterID returns value of PacketFilterID 7290 func (o *InterfaceView) GetPacketFilterID() types.ID { 7291 return o.PacketFilterID 7292 } 7293 7294 // SetPacketFilterID sets value to PacketFilterID 7295 func (o *InterfaceView) SetPacketFilterID(v types.ID) { 7296 o.PacketFilterID = v 7297 } 7298 7299 // GetPacketFilterName returns value of PacketFilterName 7300 func (o *InterfaceView) GetPacketFilterName() string { 7301 return o.PacketFilterName 7302 } 7303 7304 // SetPacketFilterName sets value to PacketFilterName 7305 func (o *InterfaceView) SetPacketFilterName(v string) { 7306 o.PacketFilterName = v 7307 } 7308 7309 // GetPacketFilterRequiredHostVersion returns value of PacketFilterRequiredHostVersion 7310 func (o *InterfaceView) GetPacketFilterRequiredHostVersion() types.StringNumber { 7311 return o.PacketFilterRequiredHostVersion 7312 } 7313 7314 // SetPacketFilterRequiredHostVersion sets value to PacketFilterRequiredHostVersion 7315 func (o *InterfaceView) SetPacketFilterRequiredHostVersion(v types.StringNumber) { 7316 o.PacketFilterRequiredHostVersion = v 7317 } 7318 7319 // GetUpstreamType returns value of UpstreamType 7320 func (o *InterfaceView) GetUpstreamType() types.EUpstreamNetworkType { 7321 return o.UpstreamType 7322 } 7323 7324 // SetUpstreamType sets value to UpstreamType 7325 func (o *InterfaceView) SetUpstreamType(v types.EUpstreamNetworkType) { 7326 o.UpstreamType = v 7327 } 7328 7329 /************************************************* 7330 * DatabaseCreateRequest 7331 *************************************************/ 7332 7333 // DatabaseCreateRequest represents API parameter/response structure 7334 type DatabaseCreateRequest struct { 7335 PlanID types.ID `mapconv:"Remark.Plan.ID/Plan.ID"` 7336 SwitchID types.ID `mapconv:"Remark.Switch.ID"` 7337 IPAddresses []string `mapconv:"Remark.[]Servers.IPAddress"` 7338 NetworkMaskLen int `mapconv:"Remark.Network.NetworkMaskLen"` 7339 DefaultRoute string `mapconv:"Remark.Network.DefaultRoute"` 7340 Conf *DatabaseRemarkDBConfCommon `mapconv:"Remark.DBConf.Common,recursive"` 7341 SourceID types.ID `mapconv:"Remark.SourceAppliance.ID"` 7342 CommonSetting *DatabaseSettingCommon `mapconv:"Settings.DBConf.Common,recursive"` 7343 BackupSetting *DatabaseSettingBackup `mapconv:"Settings.DBConf.Backup,recursive"` 7344 ReplicationSetting *DatabaseReplicationSetting `mapconv:"Settings.DBConf.Replication,recursive"` 7345 InterfaceSettings []*DatabaseSettingsInterface `mapconv:"Settings.DBConf.[]Interfaces,omitempty,recursive"` 7346 Name string 7347 Description string 7348 Tags types.Tags 7349 IconID types.ID `mapconv:"Icon.ID"` 7350 } 7351 7352 // setDefaults implements iaas.argumentDefaulter 7353 func (o *DatabaseCreateRequest) setDefaults() interface{} { 7354 return &struct { 7355 PlanID types.ID `mapconv:"Remark.Plan.ID/Plan.ID"` 7356 SwitchID types.ID `mapconv:"Remark.Switch.ID"` 7357 IPAddresses []string `mapconv:"Remark.[]Servers.IPAddress"` 7358 NetworkMaskLen int `mapconv:"Remark.Network.NetworkMaskLen"` 7359 DefaultRoute string `mapconv:"Remark.Network.DefaultRoute"` 7360 Conf *DatabaseRemarkDBConfCommon `mapconv:"Remark.DBConf.Common,recursive"` 7361 SourceID types.ID `mapconv:"Remark.SourceAppliance.ID"` 7362 CommonSetting *DatabaseSettingCommon `mapconv:"Settings.DBConf.Common,recursive"` 7363 BackupSetting *DatabaseSettingBackup `mapconv:"Settings.DBConf.Backup,recursive"` 7364 ReplicationSetting *DatabaseReplicationSetting `mapconv:"Settings.DBConf.Replication,recursive"` 7365 InterfaceSettings []*DatabaseSettingsInterface `mapconv:"Settings.DBConf.[]Interfaces,omitempty,recursive"` 7366 Name string 7367 Description string 7368 Tags types.Tags 7369 IconID types.ID `mapconv:"Icon.ID"` 7370 Class string 7371 }{ 7372 PlanID: o.GetPlanID(), 7373 SwitchID: o.GetSwitchID(), 7374 IPAddresses: o.GetIPAddresses(), 7375 NetworkMaskLen: o.GetNetworkMaskLen(), 7376 DefaultRoute: o.GetDefaultRoute(), 7377 Conf: o.GetConf(), 7378 SourceID: o.GetSourceID(), 7379 CommonSetting: o.GetCommonSetting(), 7380 BackupSetting: o.GetBackupSetting(), 7381 ReplicationSetting: o.GetReplicationSetting(), 7382 InterfaceSettings: o.GetInterfaceSettings(), 7383 Name: o.GetName(), 7384 Description: o.GetDescription(), 7385 Tags: o.GetTags(), 7386 IconID: o.GetIconID(), 7387 Class: "database", 7388 } 7389 } 7390 7391 // GetPlanID returns value of PlanID 7392 func (o *DatabaseCreateRequest) GetPlanID() types.ID { 7393 return o.PlanID 7394 } 7395 7396 // SetPlanID sets value to PlanID 7397 func (o *DatabaseCreateRequest) SetPlanID(v types.ID) { 7398 o.PlanID = v 7399 } 7400 7401 // GetSwitchID returns value of SwitchID 7402 func (o *DatabaseCreateRequest) GetSwitchID() types.ID { 7403 return o.SwitchID 7404 } 7405 7406 // SetSwitchID sets value to SwitchID 7407 func (o *DatabaseCreateRequest) SetSwitchID(v types.ID) { 7408 o.SwitchID = v 7409 } 7410 7411 // GetIPAddresses returns value of IPAddresses 7412 func (o *DatabaseCreateRequest) GetIPAddresses() []string { 7413 return o.IPAddresses 7414 } 7415 7416 // SetIPAddresses sets value to IPAddresses 7417 func (o *DatabaseCreateRequest) SetIPAddresses(v []string) { 7418 o.IPAddresses = v 7419 } 7420 7421 // GetNetworkMaskLen returns value of NetworkMaskLen 7422 func (o *DatabaseCreateRequest) GetNetworkMaskLen() int { 7423 return o.NetworkMaskLen 7424 } 7425 7426 // SetNetworkMaskLen sets value to NetworkMaskLen 7427 func (o *DatabaseCreateRequest) SetNetworkMaskLen(v int) { 7428 o.NetworkMaskLen = v 7429 } 7430 7431 // GetDefaultRoute returns value of DefaultRoute 7432 func (o *DatabaseCreateRequest) GetDefaultRoute() string { 7433 return o.DefaultRoute 7434 } 7435 7436 // SetDefaultRoute sets value to DefaultRoute 7437 func (o *DatabaseCreateRequest) SetDefaultRoute(v string) { 7438 o.DefaultRoute = v 7439 } 7440 7441 // GetConf returns value of Conf 7442 func (o *DatabaseCreateRequest) GetConf() *DatabaseRemarkDBConfCommon { 7443 return o.Conf 7444 } 7445 7446 // SetConf sets value to Conf 7447 func (o *DatabaseCreateRequest) SetConf(v *DatabaseRemarkDBConfCommon) { 7448 o.Conf = v 7449 } 7450 7451 // GetSourceID returns value of SourceID 7452 func (o *DatabaseCreateRequest) GetSourceID() types.ID { 7453 return o.SourceID 7454 } 7455 7456 // SetSourceID sets value to SourceID 7457 func (o *DatabaseCreateRequest) SetSourceID(v types.ID) { 7458 o.SourceID = v 7459 } 7460 7461 // GetCommonSetting returns value of CommonSetting 7462 func (o *DatabaseCreateRequest) GetCommonSetting() *DatabaseSettingCommon { 7463 return o.CommonSetting 7464 } 7465 7466 // SetCommonSetting sets value to CommonSetting 7467 func (o *DatabaseCreateRequest) SetCommonSetting(v *DatabaseSettingCommon) { 7468 o.CommonSetting = v 7469 } 7470 7471 // GetBackupSetting returns value of BackupSetting 7472 func (o *DatabaseCreateRequest) GetBackupSetting() *DatabaseSettingBackup { 7473 return o.BackupSetting 7474 } 7475 7476 // SetBackupSetting sets value to BackupSetting 7477 func (o *DatabaseCreateRequest) SetBackupSetting(v *DatabaseSettingBackup) { 7478 o.BackupSetting = v 7479 } 7480 7481 // GetReplicationSetting returns value of ReplicationSetting 7482 func (o *DatabaseCreateRequest) GetReplicationSetting() *DatabaseReplicationSetting { 7483 return o.ReplicationSetting 7484 } 7485 7486 // SetReplicationSetting sets value to ReplicationSetting 7487 func (o *DatabaseCreateRequest) SetReplicationSetting(v *DatabaseReplicationSetting) { 7488 o.ReplicationSetting = v 7489 } 7490 7491 // GetInterfaceSettings returns value of InterfaceSettings 7492 func (o *DatabaseCreateRequest) GetInterfaceSettings() []*DatabaseSettingsInterface { 7493 return o.InterfaceSettings 7494 } 7495 7496 // SetInterfaceSettings sets value to InterfaceSettings 7497 func (o *DatabaseCreateRequest) SetInterfaceSettings(v []*DatabaseSettingsInterface) { 7498 o.InterfaceSettings = v 7499 } 7500 7501 // GetName returns value of Name 7502 func (o *DatabaseCreateRequest) GetName() string { 7503 return o.Name 7504 } 7505 7506 // SetName sets value to Name 7507 func (o *DatabaseCreateRequest) SetName(v string) { 7508 o.Name = v 7509 } 7510 7511 // GetDescription returns value of Description 7512 func (o *DatabaseCreateRequest) GetDescription() string { 7513 return o.Description 7514 } 7515 7516 // SetDescription sets value to Description 7517 func (o *DatabaseCreateRequest) SetDescription(v string) { 7518 o.Description = v 7519 } 7520 7521 // GetTags returns value of Tags 7522 func (o *DatabaseCreateRequest) GetTags() types.Tags { 7523 return o.Tags 7524 } 7525 7526 // SetTags sets value to Tags 7527 func (o *DatabaseCreateRequest) SetTags(v types.Tags) { 7528 o.Tags = v 7529 } 7530 7531 // HasTag 指定のタグが存在する場合trueを返す 7532 func (o *DatabaseCreateRequest) HasTag(tag string) bool { 7533 return accessor.HasTag(o, tag) 7534 } 7535 7536 // AppendTag 指定のタグを追加 7537 func (o *DatabaseCreateRequest) AppendTag(tag string) { 7538 accessor.AppendTag(o, tag) 7539 } 7540 7541 // RemoveTag 指定のタグを削除 7542 func (o *DatabaseCreateRequest) RemoveTag(tag string) { 7543 accessor.RemoveTag(o, tag) 7544 } 7545 7546 // ClearTags タグを全クリア 7547 func (o *DatabaseCreateRequest) ClearTags() { 7548 accessor.ClearTags(o) 7549 } 7550 7551 // GetIconID returns value of IconID 7552 func (o *DatabaseCreateRequest) GetIconID() types.ID { 7553 return o.IconID 7554 } 7555 7556 // SetIconID sets value to IconID 7557 func (o *DatabaseCreateRequest) SetIconID(v types.ID) { 7558 o.IconID = v 7559 } 7560 7561 /************************************************* 7562 * DatabaseUpdateRequest 7563 *************************************************/ 7564 7565 // DatabaseUpdateRequest represents API parameter/response structure 7566 type DatabaseUpdateRequest struct { 7567 Name string 7568 Description string 7569 Tags types.Tags 7570 IconID types.ID `mapconv:"Icon.ID"` 7571 CommonSetting *DatabaseSettingCommon `mapconv:"Settings.DBConf.Common,recursive"` 7572 BackupSetting *DatabaseSettingBackup `mapconv:"Settings.DBConf.Backup,recursive"` 7573 ReplicationSetting *DatabaseReplicationSetting `mapconv:"Settings.DBConf.Replication,recursive"` 7574 InterfaceSettings []*DatabaseSettingsInterface `mapconv:"Settings.DBConf.[]Interfaces,omitempty,recursive"` 7575 SettingsHash string `json:",omitempty" mapconv:",omitempty"` 7576 } 7577 7578 // setDefaults implements iaas.argumentDefaulter 7579 func (o *DatabaseUpdateRequest) setDefaults() interface{} { 7580 return &struct { 7581 Name string 7582 Description string 7583 Tags types.Tags 7584 IconID types.ID `mapconv:"Icon.ID"` 7585 CommonSetting *DatabaseSettingCommon `mapconv:"Settings.DBConf.Common,recursive"` 7586 BackupSetting *DatabaseSettingBackup `mapconv:"Settings.DBConf.Backup,recursive"` 7587 ReplicationSetting *DatabaseReplicationSetting `mapconv:"Settings.DBConf.Replication,recursive"` 7588 InterfaceSettings []*DatabaseSettingsInterface `mapconv:"Settings.DBConf.[]Interfaces,omitempty,recursive"` 7589 SettingsHash string `json:",omitempty" mapconv:",omitempty"` 7590 }{ 7591 Name: o.GetName(), 7592 Description: o.GetDescription(), 7593 Tags: o.GetTags(), 7594 IconID: o.GetIconID(), 7595 CommonSetting: o.GetCommonSetting(), 7596 BackupSetting: o.GetBackupSetting(), 7597 ReplicationSetting: o.GetReplicationSetting(), 7598 InterfaceSettings: o.GetInterfaceSettings(), 7599 SettingsHash: o.GetSettingsHash(), 7600 } 7601 } 7602 7603 // GetName returns value of Name 7604 func (o *DatabaseUpdateRequest) GetName() string { 7605 return o.Name 7606 } 7607 7608 // SetName sets value to Name 7609 func (o *DatabaseUpdateRequest) SetName(v string) { 7610 o.Name = v 7611 } 7612 7613 // GetDescription returns value of Description 7614 func (o *DatabaseUpdateRequest) GetDescription() string { 7615 return o.Description 7616 } 7617 7618 // SetDescription sets value to Description 7619 func (o *DatabaseUpdateRequest) SetDescription(v string) { 7620 o.Description = v 7621 } 7622 7623 // GetTags returns value of Tags 7624 func (o *DatabaseUpdateRequest) GetTags() types.Tags { 7625 return o.Tags 7626 } 7627 7628 // SetTags sets value to Tags 7629 func (o *DatabaseUpdateRequest) SetTags(v types.Tags) { 7630 o.Tags = v 7631 } 7632 7633 // HasTag 指定のタグが存在する場合trueを返す 7634 func (o *DatabaseUpdateRequest) HasTag(tag string) bool { 7635 return accessor.HasTag(o, tag) 7636 } 7637 7638 // AppendTag 指定のタグを追加 7639 func (o *DatabaseUpdateRequest) AppendTag(tag string) { 7640 accessor.AppendTag(o, tag) 7641 } 7642 7643 // RemoveTag 指定のタグを削除 7644 func (o *DatabaseUpdateRequest) RemoveTag(tag string) { 7645 accessor.RemoveTag(o, tag) 7646 } 7647 7648 // ClearTags タグを全クリア 7649 func (o *DatabaseUpdateRequest) ClearTags() { 7650 accessor.ClearTags(o) 7651 } 7652 7653 // GetIconID returns value of IconID 7654 func (o *DatabaseUpdateRequest) GetIconID() types.ID { 7655 return o.IconID 7656 } 7657 7658 // SetIconID sets value to IconID 7659 func (o *DatabaseUpdateRequest) SetIconID(v types.ID) { 7660 o.IconID = v 7661 } 7662 7663 // GetCommonSetting returns value of CommonSetting 7664 func (o *DatabaseUpdateRequest) GetCommonSetting() *DatabaseSettingCommon { 7665 return o.CommonSetting 7666 } 7667 7668 // SetCommonSetting sets value to CommonSetting 7669 func (o *DatabaseUpdateRequest) SetCommonSetting(v *DatabaseSettingCommon) { 7670 o.CommonSetting = v 7671 } 7672 7673 // GetBackupSetting returns value of BackupSetting 7674 func (o *DatabaseUpdateRequest) GetBackupSetting() *DatabaseSettingBackup { 7675 return o.BackupSetting 7676 } 7677 7678 // SetBackupSetting sets value to BackupSetting 7679 func (o *DatabaseUpdateRequest) SetBackupSetting(v *DatabaseSettingBackup) { 7680 o.BackupSetting = v 7681 } 7682 7683 // GetReplicationSetting returns value of ReplicationSetting 7684 func (o *DatabaseUpdateRequest) GetReplicationSetting() *DatabaseReplicationSetting { 7685 return o.ReplicationSetting 7686 } 7687 7688 // SetReplicationSetting sets value to ReplicationSetting 7689 func (o *DatabaseUpdateRequest) SetReplicationSetting(v *DatabaseReplicationSetting) { 7690 o.ReplicationSetting = v 7691 } 7692 7693 // GetInterfaceSettings returns value of InterfaceSettings 7694 func (o *DatabaseUpdateRequest) GetInterfaceSettings() []*DatabaseSettingsInterface { 7695 return o.InterfaceSettings 7696 } 7697 7698 // SetInterfaceSettings sets value to InterfaceSettings 7699 func (o *DatabaseUpdateRequest) SetInterfaceSettings(v []*DatabaseSettingsInterface) { 7700 o.InterfaceSettings = v 7701 } 7702 7703 // GetSettingsHash returns value of SettingsHash 7704 func (o *DatabaseUpdateRequest) GetSettingsHash() string { 7705 return o.SettingsHash 7706 } 7707 7708 // SetSettingsHash sets value to SettingsHash 7709 func (o *DatabaseUpdateRequest) SetSettingsHash(v string) { 7710 o.SettingsHash = v 7711 } 7712 7713 /************************************************* 7714 * DatabaseUpdateSettingsRequest 7715 *************************************************/ 7716 7717 // DatabaseUpdateSettingsRequest represents API parameter/response structure 7718 type DatabaseUpdateSettingsRequest struct { 7719 CommonSetting *DatabaseSettingCommon `mapconv:"Settings.DBConf.Common,recursive"` 7720 BackupSetting *DatabaseSettingBackup `mapconv:"Settings.DBConf.Backup,recursive"` 7721 ReplicationSetting *DatabaseReplicationSetting `mapconv:"Settings.DBConf.Replication,recursive"` 7722 InterfaceSettings []*DatabaseSettingsInterface `mapconv:"Settings.DBConf.[]Interfaces,omitempty,recursive"` 7723 SettingsHash string `json:",omitempty" mapconv:",omitempty"` 7724 } 7725 7726 // setDefaults implements iaas.argumentDefaulter 7727 func (o *DatabaseUpdateSettingsRequest) setDefaults() interface{} { 7728 return &struct { 7729 CommonSetting *DatabaseSettingCommon `mapconv:"Settings.DBConf.Common,recursive"` 7730 BackupSetting *DatabaseSettingBackup `mapconv:"Settings.DBConf.Backup,recursive"` 7731 ReplicationSetting *DatabaseReplicationSetting `mapconv:"Settings.DBConf.Replication,recursive"` 7732 InterfaceSettings []*DatabaseSettingsInterface `mapconv:"Settings.DBConf.[]Interfaces,omitempty,recursive"` 7733 SettingsHash string `json:",omitempty" mapconv:",omitempty"` 7734 }{ 7735 CommonSetting: o.GetCommonSetting(), 7736 BackupSetting: o.GetBackupSetting(), 7737 ReplicationSetting: o.GetReplicationSetting(), 7738 InterfaceSettings: o.GetInterfaceSettings(), 7739 SettingsHash: o.GetSettingsHash(), 7740 } 7741 } 7742 7743 // GetCommonSetting returns value of CommonSetting 7744 func (o *DatabaseUpdateSettingsRequest) GetCommonSetting() *DatabaseSettingCommon { 7745 return o.CommonSetting 7746 } 7747 7748 // SetCommonSetting sets value to CommonSetting 7749 func (o *DatabaseUpdateSettingsRequest) SetCommonSetting(v *DatabaseSettingCommon) { 7750 o.CommonSetting = v 7751 } 7752 7753 // GetBackupSetting returns value of BackupSetting 7754 func (o *DatabaseUpdateSettingsRequest) GetBackupSetting() *DatabaseSettingBackup { 7755 return o.BackupSetting 7756 } 7757 7758 // SetBackupSetting sets value to BackupSetting 7759 func (o *DatabaseUpdateSettingsRequest) SetBackupSetting(v *DatabaseSettingBackup) { 7760 o.BackupSetting = v 7761 } 7762 7763 // GetReplicationSetting returns value of ReplicationSetting 7764 func (o *DatabaseUpdateSettingsRequest) GetReplicationSetting() *DatabaseReplicationSetting { 7765 return o.ReplicationSetting 7766 } 7767 7768 // SetReplicationSetting sets value to ReplicationSetting 7769 func (o *DatabaseUpdateSettingsRequest) SetReplicationSetting(v *DatabaseReplicationSetting) { 7770 o.ReplicationSetting = v 7771 } 7772 7773 // GetInterfaceSettings returns value of InterfaceSettings 7774 func (o *DatabaseUpdateSettingsRequest) GetInterfaceSettings() []*DatabaseSettingsInterface { 7775 return o.InterfaceSettings 7776 } 7777 7778 // SetInterfaceSettings sets value to InterfaceSettings 7779 func (o *DatabaseUpdateSettingsRequest) SetInterfaceSettings(v []*DatabaseSettingsInterface) { 7780 o.InterfaceSettings = v 7781 } 7782 7783 // GetSettingsHash returns value of SettingsHash 7784 func (o *DatabaseUpdateSettingsRequest) GetSettingsHash() string { 7785 return o.SettingsHash 7786 } 7787 7788 // SetSettingsHash sets value to SettingsHash 7789 func (o *DatabaseUpdateSettingsRequest) SetSettingsHash(v string) { 7790 o.SettingsHash = v 7791 } 7792 7793 /************************************************* 7794 * ShutdownOption 7795 *************************************************/ 7796 7797 // ShutdownOption represents API parameter/response structure 7798 type ShutdownOption struct { 7799 Force bool 7800 } 7801 7802 // setDefaults implements iaas.argumentDefaulter 7803 func (o *ShutdownOption) setDefaults() interface{} { 7804 return &struct { 7805 Force bool 7806 }{ 7807 Force: o.GetForce(), 7808 } 7809 } 7810 7811 // GetForce returns value of Force 7812 func (o *ShutdownOption) GetForce() bool { 7813 return o.Force 7814 } 7815 7816 // SetForce sets value to Force 7817 func (o *ShutdownOption) SetForce(v bool) { 7818 o.Force = v 7819 } 7820 7821 /************************************************* 7822 * CPUTimeActivity 7823 *************************************************/ 7824 7825 // CPUTimeActivity represents API parameter/response structure 7826 type CPUTimeActivity struct { 7827 Values []*MonitorCPUTimeValue `mapconv:"[]CPU"` 7828 } 7829 7830 // setDefaults implements iaas.argumentDefaulter 7831 func (o *CPUTimeActivity) setDefaults() interface{} { 7832 return &struct { 7833 Values []*MonitorCPUTimeValue `mapconv:"[]CPU"` 7834 }{ 7835 Values: o.GetValues(), 7836 } 7837 } 7838 7839 // GetValues returns value of Values 7840 func (o *CPUTimeActivity) GetValues() []*MonitorCPUTimeValue { 7841 return o.Values 7842 } 7843 7844 // SetValues sets value to Values 7845 func (o *CPUTimeActivity) SetValues(v []*MonitorCPUTimeValue) { 7846 o.Values = v 7847 } 7848 7849 /************************************************* 7850 * MonitorCPUTimeValue 7851 *************************************************/ 7852 7853 // MonitorCPUTimeValue represents API parameter/response structure 7854 type MonitorCPUTimeValue struct { 7855 Time time.Time `mapconv:",omitempty"` 7856 CPUTime float64 `mapconv:",omitempty"` 7857 } 7858 7859 // setDefaults implements iaas.argumentDefaulter 7860 func (o *MonitorCPUTimeValue) setDefaults() interface{} { 7861 return &struct { 7862 Time time.Time `mapconv:",omitempty"` 7863 CPUTime float64 `mapconv:",omitempty"` 7864 }{ 7865 Time: o.GetTime(), 7866 CPUTime: o.GetCPUTime(), 7867 } 7868 } 7869 7870 // GetTime returns value of Time 7871 func (o *MonitorCPUTimeValue) GetTime() time.Time { 7872 return o.Time 7873 } 7874 7875 // SetTime sets value to Time 7876 func (o *MonitorCPUTimeValue) SetTime(v time.Time) { 7877 o.Time = v 7878 } 7879 7880 // GetCPUTime returns value of CPUTime 7881 func (o *MonitorCPUTimeValue) GetCPUTime() float64 { 7882 return o.CPUTime 7883 } 7884 7885 // SetCPUTime sets value to CPUTime 7886 func (o *MonitorCPUTimeValue) SetCPUTime(v float64) { 7887 o.CPUTime = v 7888 } 7889 7890 /************************************************* 7891 * MonitorCondition 7892 *************************************************/ 7893 7894 // MonitorCondition represents API parameter/response structure 7895 type MonitorCondition struct { 7896 Start time.Time `json:",omitempty"` 7897 End time.Time `json:",omitempty"` 7898 } 7899 7900 // setDefaults implements iaas.argumentDefaulter 7901 func (o *MonitorCondition) setDefaults() interface{} { 7902 return &struct { 7903 Start time.Time `json:",omitempty"` 7904 End time.Time `json:",omitempty"` 7905 }{ 7906 Start: o.GetStart(), 7907 End: o.GetEnd(), 7908 } 7909 } 7910 7911 // GetStart returns value of Start 7912 func (o *MonitorCondition) GetStart() time.Time { 7913 if o.Start.IsZero() { 7914 return time.Now().Truncate(time.Second).Add(-time.Hour) 7915 } 7916 return o.Start 7917 } 7918 7919 // SetStart sets value to Start 7920 func (o *MonitorCondition) SetStart(v time.Time) { 7921 o.Start = v 7922 } 7923 7924 // GetEnd returns value of End 7925 func (o *MonitorCondition) GetEnd() time.Time { 7926 if o.End.IsZero() { 7927 return time.Now().Truncate(time.Second) 7928 } 7929 return o.End 7930 } 7931 7932 // SetEnd sets value to End 7933 func (o *MonitorCondition) SetEnd(v time.Time) { 7934 o.End = v 7935 } 7936 7937 /************************************************* 7938 * DiskActivity 7939 *************************************************/ 7940 7941 // DiskActivity represents API parameter/response structure 7942 type DiskActivity struct { 7943 Values []*MonitorDiskValue `mapconv:"[]Disk"` 7944 } 7945 7946 // setDefaults implements iaas.argumentDefaulter 7947 func (o *DiskActivity) setDefaults() interface{} { 7948 return &struct { 7949 Values []*MonitorDiskValue `mapconv:"[]Disk"` 7950 }{ 7951 Values: o.GetValues(), 7952 } 7953 } 7954 7955 // GetValues returns value of Values 7956 func (o *DiskActivity) GetValues() []*MonitorDiskValue { 7957 return o.Values 7958 } 7959 7960 // SetValues sets value to Values 7961 func (o *DiskActivity) SetValues(v []*MonitorDiskValue) { 7962 o.Values = v 7963 } 7964 7965 /************************************************* 7966 * MonitorDiskValue 7967 *************************************************/ 7968 7969 // MonitorDiskValue represents API parameter/response structure 7970 type MonitorDiskValue struct { 7971 Time time.Time `mapconv:",omitempty"` 7972 Read float64 `mapconv:",omitempty"` 7973 Write float64 `mapconv:",omitempty"` 7974 } 7975 7976 // setDefaults implements iaas.argumentDefaulter 7977 func (o *MonitorDiskValue) setDefaults() interface{} { 7978 return &struct { 7979 Time time.Time `mapconv:",omitempty"` 7980 Read float64 `mapconv:",omitempty"` 7981 Write float64 `mapconv:",omitempty"` 7982 }{ 7983 Time: o.GetTime(), 7984 Read: o.GetRead(), 7985 Write: o.GetWrite(), 7986 } 7987 } 7988 7989 // GetTime returns value of Time 7990 func (o *MonitorDiskValue) GetTime() time.Time { 7991 return o.Time 7992 } 7993 7994 // SetTime sets value to Time 7995 func (o *MonitorDiskValue) SetTime(v time.Time) { 7996 o.Time = v 7997 } 7998 7999 // GetRead returns value of Read 8000 func (o *MonitorDiskValue) GetRead() float64 { 8001 return o.Read 8002 } 8003 8004 // SetRead sets value to Read 8005 func (o *MonitorDiskValue) SetRead(v float64) { 8006 o.Read = v 8007 } 8008 8009 // GetWrite returns value of Write 8010 func (o *MonitorDiskValue) GetWrite() float64 { 8011 return o.Write 8012 } 8013 8014 // SetWrite sets value to Write 8015 func (o *MonitorDiskValue) SetWrite(v float64) { 8016 o.Write = v 8017 } 8018 8019 /************************************************* 8020 * InterfaceActivity 8021 *************************************************/ 8022 8023 // InterfaceActivity represents API parameter/response structure 8024 type InterfaceActivity struct { 8025 Values []*MonitorInterfaceValue `mapconv:"[]Interface"` 8026 } 8027 8028 // setDefaults implements iaas.argumentDefaulter 8029 func (o *InterfaceActivity) setDefaults() interface{} { 8030 return &struct { 8031 Values []*MonitorInterfaceValue `mapconv:"[]Interface"` 8032 }{ 8033 Values: o.GetValues(), 8034 } 8035 } 8036 8037 // GetValues returns value of Values 8038 func (o *InterfaceActivity) GetValues() []*MonitorInterfaceValue { 8039 return o.Values 8040 } 8041 8042 // SetValues sets value to Values 8043 func (o *InterfaceActivity) SetValues(v []*MonitorInterfaceValue) { 8044 o.Values = v 8045 } 8046 8047 /************************************************* 8048 * MonitorInterfaceValue 8049 *************************************************/ 8050 8051 // MonitorInterfaceValue represents API parameter/response structure 8052 type MonitorInterfaceValue struct { 8053 Time time.Time `mapconv:",omitempty"` 8054 Receive float64 `mapconv:",omitempty"` 8055 Send float64 `mapconv:",omitempty"` 8056 } 8057 8058 // setDefaults implements iaas.argumentDefaulter 8059 func (o *MonitorInterfaceValue) setDefaults() interface{} { 8060 return &struct { 8061 Time time.Time `mapconv:",omitempty"` 8062 Receive float64 `mapconv:",omitempty"` 8063 Send float64 `mapconv:",omitempty"` 8064 }{ 8065 Time: o.GetTime(), 8066 Receive: o.GetReceive(), 8067 Send: o.GetSend(), 8068 } 8069 } 8070 8071 // GetTime returns value of Time 8072 func (o *MonitorInterfaceValue) GetTime() time.Time { 8073 return o.Time 8074 } 8075 8076 // SetTime sets value to Time 8077 func (o *MonitorInterfaceValue) SetTime(v time.Time) { 8078 o.Time = v 8079 } 8080 8081 // GetReceive returns value of Receive 8082 func (o *MonitorInterfaceValue) GetReceive() float64 { 8083 return o.Receive 8084 } 8085 8086 // SetReceive sets value to Receive 8087 func (o *MonitorInterfaceValue) SetReceive(v float64) { 8088 o.Receive = v 8089 } 8090 8091 // GetSend returns value of Send 8092 func (o *MonitorInterfaceValue) GetSend() float64 { 8093 return o.Send 8094 } 8095 8096 // SetSend sets value to Send 8097 func (o *MonitorInterfaceValue) SetSend(v float64) { 8098 o.Send = v 8099 } 8100 8101 /************************************************* 8102 * DatabaseActivity 8103 *************************************************/ 8104 8105 // DatabaseActivity represents API parameter/response structure 8106 type DatabaseActivity struct { 8107 Values []*MonitorDatabaseValue `mapconv:"[]Database"` 8108 } 8109 8110 // setDefaults implements iaas.argumentDefaulter 8111 func (o *DatabaseActivity) setDefaults() interface{} { 8112 return &struct { 8113 Values []*MonitorDatabaseValue `mapconv:"[]Database"` 8114 }{ 8115 Values: o.GetValues(), 8116 } 8117 } 8118 8119 // GetValues returns value of Values 8120 func (o *DatabaseActivity) GetValues() []*MonitorDatabaseValue { 8121 return o.Values 8122 } 8123 8124 // SetValues sets value to Values 8125 func (o *DatabaseActivity) SetValues(v []*MonitorDatabaseValue) { 8126 o.Values = v 8127 } 8128 8129 /************************************************* 8130 * MonitorDatabaseValue 8131 *************************************************/ 8132 8133 // MonitorDatabaseValue represents API parameter/response structure 8134 type MonitorDatabaseValue struct { 8135 Time time.Time `mapconv:",omitempty"` 8136 TotalMemorySize float64 `mapconv:",omitempty"` 8137 UsedMemorySize float64 `mapconv:",omitempty"` 8138 TotalDisk1Size float64 `mapconv:",omitempty"` 8139 UsedDisk1Size float64 `mapconv:",omitempty"` 8140 TotalDisk2Size float64 `mapconv:",omitempty"` 8141 UsedDisk2Size float64 `mapconv:",omitempty"` 8142 BinlogUsedSizeKiB float64 `mapconv:",omitempty"` 8143 DelayTimeSec float64 `mapconv:",omitempty"` 8144 } 8145 8146 // setDefaults implements iaas.argumentDefaulter 8147 func (o *MonitorDatabaseValue) setDefaults() interface{} { 8148 return &struct { 8149 Time time.Time `mapconv:",omitempty"` 8150 TotalMemorySize float64 `mapconv:",omitempty"` 8151 UsedMemorySize float64 `mapconv:",omitempty"` 8152 TotalDisk1Size float64 `mapconv:",omitempty"` 8153 UsedDisk1Size float64 `mapconv:",omitempty"` 8154 TotalDisk2Size float64 `mapconv:",omitempty"` 8155 UsedDisk2Size float64 `mapconv:",omitempty"` 8156 BinlogUsedSizeKiB float64 `mapconv:",omitempty"` 8157 DelayTimeSec float64 `mapconv:",omitempty"` 8158 }{ 8159 Time: o.GetTime(), 8160 TotalMemorySize: o.GetTotalMemorySize(), 8161 UsedMemorySize: o.GetUsedMemorySize(), 8162 TotalDisk1Size: o.GetTotalDisk1Size(), 8163 UsedDisk1Size: o.GetUsedDisk1Size(), 8164 TotalDisk2Size: o.GetTotalDisk2Size(), 8165 UsedDisk2Size: o.GetUsedDisk2Size(), 8166 BinlogUsedSizeKiB: o.GetBinlogUsedSizeKiB(), 8167 DelayTimeSec: o.GetDelayTimeSec(), 8168 } 8169 } 8170 8171 // GetTime returns value of Time 8172 func (o *MonitorDatabaseValue) GetTime() time.Time { 8173 return o.Time 8174 } 8175 8176 // SetTime sets value to Time 8177 func (o *MonitorDatabaseValue) SetTime(v time.Time) { 8178 o.Time = v 8179 } 8180 8181 // GetTotalMemorySize returns value of TotalMemorySize 8182 func (o *MonitorDatabaseValue) GetTotalMemorySize() float64 { 8183 return o.TotalMemorySize 8184 } 8185 8186 // SetTotalMemorySize sets value to TotalMemorySize 8187 func (o *MonitorDatabaseValue) SetTotalMemorySize(v float64) { 8188 o.TotalMemorySize = v 8189 } 8190 8191 // GetUsedMemorySize returns value of UsedMemorySize 8192 func (o *MonitorDatabaseValue) GetUsedMemorySize() float64 { 8193 return o.UsedMemorySize 8194 } 8195 8196 // SetUsedMemorySize sets value to UsedMemorySize 8197 func (o *MonitorDatabaseValue) SetUsedMemorySize(v float64) { 8198 o.UsedMemorySize = v 8199 } 8200 8201 // GetTotalDisk1Size returns value of TotalDisk1Size 8202 func (o *MonitorDatabaseValue) GetTotalDisk1Size() float64 { 8203 return o.TotalDisk1Size 8204 } 8205 8206 // SetTotalDisk1Size sets value to TotalDisk1Size 8207 func (o *MonitorDatabaseValue) SetTotalDisk1Size(v float64) { 8208 o.TotalDisk1Size = v 8209 } 8210 8211 // GetUsedDisk1Size returns value of UsedDisk1Size 8212 func (o *MonitorDatabaseValue) GetUsedDisk1Size() float64 { 8213 return o.UsedDisk1Size 8214 } 8215 8216 // SetUsedDisk1Size sets value to UsedDisk1Size 8217 func (o *MonitorDatabaseValue) SetUsedDisk1Size(v float64) { 8218 o.UsedDisk1Size = v 8219 } 8220 8221 // GetTotalDisk2Size returns value of TotalDisk2Size 8222 func (o *MonitorDatabaseValue) GetTotalDisk2Size() float64 { 8223 return o.TotalDisk2Size 8224 } 8225 8226 // SetTotalDisk2Size sets value to TotalDisk2Size 8227 func (o *MonitorDatabaseValue) SetTotalDisk2Size(v float64) { 8228 o.TotalDisk2Size = v 8229 } 8230 8231 // GetUsedDisk2Size returns value of UsedDisk2Size 8232 func (o *MonitorDatabaseValue) GetUsedDisk2Size() float64 { 8233 return o.UsedDisk2Size 8234 } 8235 8236 // SetUsedDisk2Size sets value to UsedDisk2Size 8237 func (o *MonitorDatabaseValue) SetUsedDisk2Size(v float64) { 8238 o.UsedDisk2Size = v 8239 } 8240 8241 // GetBinlogUsedSizeKiB returns value of BinlogUsedSizeKiB 8242 func (o *MonitorDatabaseValue) GetBinlogUsedSizeKiB() float64 { 8243 return o.BinlogUsedSizeKiB 8244 } 8245 8246 // SetBinlogUsedSizeKiB sets value to BinlogUsedSizeKiB 8247 func (o *MonitorDatabaseValue) SetBinlogUsedSizeKiB(v float64) { 8248 o.BinlogUsedSizeKiB = v 8249 } 8250 8251 // GetDelayTimeSec returns value of DelayTimeSec 8252 func (o *MonitorDatabaseValue) GetDelayTimeSec() float64 { 8253 return o.DelayTimeSec 8254 } 8255 8256 // SetDelayTimeSec sets value to DelayTimeSec 8257 func (o *MonitorDatabaseValue) SetDelayTimeSec(v float64) { 8258 o.DelayTimeSec = v 8259 } 8260 8261 /************************************************* 8262 * DatabaseStatus 8263 *************************************************/ 8264 8265 // DatabaseStatus represents API parameter/response structure 8266 type DatabaseStatus struct { 8267 Status types.EServerInstanceStatus `mapconv:"SettingsResponse.Status"` 8268 MariaDBStatus string `mapconv:"SettingsResponse.DBConf.MariaDB.Status"` 8269 PostgresStatus string `mapconv:"SettingsResponse.DBConf.Postgres.Status"` 8270 IsFatal bool `mapconv:"SettingsResponse.IsFatal"` 8271 Version *DatabaseVersionInfo `mapconv:"SettingsResponse.DBConf.Version,recursive"` 8272 Logs []*DatabaseLog `mapconv:"SettingsResponse.DBConf.[]Log,recursive"` 8273 Backups []*DatabaseBackupHistory `mapconv:"SettingsResponse.DBConf.Backup.[]History,recursive"` 8274 } 8275 8276 // setDefaults implements iaas.argumentDefaulter 8277 func (o *DatabaseStatus) setDefaults() interface{} { 8278 return &struct { 8279 Status types.EServerInstanceStatus `mapconv:"SettingsResponse.Status"` 8280 MariaDBStatus string `mapconv:"SettingsResponse.DBConf.MariaDB.Status"` 8281 PostgresStatus string `mapconv:"SettingsResponse.DBConf.Postgres.Status"` 8282 IsFatal bool `mapconv:"SettingsResponse.IsFatal"` 8283 Version *DatabaseVersionInfo `mapconv:"SettingsResponse.DBConf.Version,recursive"` 8284 Logs []*DatabaseLog `mapconv:"SettingsResponse.DBConf.[]Log,recursive"` 8285 Backups []*DatabaseBackupHistory `mapconv:"SettingsResponse.DBConf.Backup.[]History,recursive"` 8286 }{ 8287 Status: o.GetStatus(), 8288 MariaDBStatus: o.GetMariaDBStatus(), 8289 PostgresStatus: o.GetPostgresStatus(), 8290 IsFatal: o.GetIsFatal(), 8291 Version: o.GetVersion(), 8292 Logs: o.GetLogs(), 8293 Backups: o.GetBackups(), 8294 } 8295 } 8296 8297 // GetStatus returns value of Status 8298 func (o *DatabaseStatus) GetStatus() types.EServerInstanceStatus { 8299 return o.Status 8300 } 8301 8302 // SetStatus sets value to Status 8303 func (o *DatabaseStatus) SetStatus(v types.EServerInstanceStatus) { 8304 o.Status = v 8305 } 8306 8307 // GetMariaDBStatus returns value of MariaDBStatus 8308 func (o *DatabaseStatus) GetMariaDBStatus() string { 8309 return o.MariaDBStatus 8310 } 8311 8312 // SetMariaDBStatus sets value to MariaDBStatus 8313 func (o *DatabaseStatus) SetMariaDBStatus(v string) { 8314 o.MariaDBStatus = v 8315 } 8316 8317 // GetPostgresStatus returns value of PostgresStatus 8318 func (o *DatabaseStatus) GetPostgresStatus() string { 8319 return o.PostgresStatus 8320 } 8321 8322 // SetPostgresStatus sets value to PostgresStatus 8323 func (o *DatabaseStatus) SetPostgresStatus(v string) { 8324 o.PostgresStatus = v 8325 } 8326 8327 // GetIsFatal returns value of IsFatal 8328 func (o *DatabaseStatus) GetIsFatal() bool { 8329 return o.IsFatal 8330 } 8331 8332 // SetIsFatal sets value to IsFatal 8333 func (o *DatabaseStatus) SetIsFatal(v bool) { 8334 o.IsFatal = v 8335 } 8336 8337 // GetVersion returns value of Version 8338 func (o *DatabaseStatus) GetVersion() *DatabaseVersionInfo { 8339 return o.Version 8340 } 8341 8342 // SetVersion sets value to Version 8343 func (o *DatabaseStatus) SetVersion(v *DatabaseVersionInfo) { 8344 o.Version = v 8345 } 8346 8347 // GetLogs returns value of Logs 8348 func (o *DatabaseStatus) GetLogs() []*DatabaseLog { 8349 return o.Logs 8350 } 8351 8352 // SetLogs sets value to Logs 8353 func (o *DatabaseStatus) SetLogs(v []*DatabaseLog) { 8354 o.Logs = v 8355 } 8356 8357 // GetBackups returns value of Backups 8358 func (o *DatabaseStatus) GetBackups() []*DatabaseBackupHistory { 8359 return o.Backups 8360 } 8361 8362 // SetBackups sets value to Backups 8363 func (o *DatabaseStatus) SetBackups(v []*DatabaseBackupHistory) { 8364 o.Backups = v 8365 } 8366 8367 /************************************************* 8368 * DatabaseVersionInfo 8369 *************************************************/ 8370 8371 // DatabaseVersionInfo represents API parameter/response structure 8372 type DatabaseVersionInfo struct { 8373 LastModified string 8374 CommitHash string 8375 Status string 8376 Tag string 8377 Expire string 8378 } 8379 8380 // setDefaults implements iaas.argumentDefaulter 8381 func (o *DatabaseVersionInfo) setDefaults() interface{} { 8382 return &struct { 8383 LastModified string 8384 CommitHash string 8385 Status string 8386 Tag string 8387 Expire string 8388 }{ 8389 LastModified: o.GetLastModified(), 8390 CommitHash: o.GetCommitHash(), 8391 Status: o.GetStatus(), 8392 Tag: o.GetTag(), 8393 Expire: o.GetExpire(), 8394 } 8395 } 8396 8397 // GetLastModified returns value of LastModified 8398 func (o *DatabaseVersionInfo) GetLastModified() string { 8399 return o.LastModified 8400 } 8401 8402 // SetLastModified sets value to LastModified 8403 func (o *DatabaseVersionInfo) SetLastModified(v string) { 8404 o.LastModified = v 8405 } 8406 8407 // GetCommitHash returns value of CommitHash 8408 func (o *DatabaseVersionInfo) GetCommitHash() string { 8409 return o.CommitHash 8410 } 8411 8412 // SetCommitHash sets value to CommitHash 8413 func (o *DatabaseVersionInfo) SetCommitHash(v string) { 8414 o.CommitHash = v 8415 } 8416 8417 // GetStatus returns value of Status 8418 func (o *DatabaseVersionInfo) GetStatus() string { 8419 return o.Status 8420 } 8421 8422 // SetStatus sets value to Status 8423 func (o *DatabaseVersionInfo) SetStatus(v string) { 8424 o.Status = v 8425 } 8426 8427 // GetTag returns value of Tag 8428 func (o *DatabaseVersionInfo) GetTag() string { 8429 return o.Tag 8430 } 8431 8432 // SetTag sets value to Tag 8433 func (o *DatabaseVersionInfo) SetTag(v string) { 8434 o.Tag = v 8435 } 8436 8437 // GetExpire returns value of Expire 8438 func (o *DatabaseVersionInfo) GetExpire() string { 8439 return o.Expire 8440 } 8441 8442 // SetExpire sets value to Expire 8443 func (o *DatabaseVersionInfo) SetExpire(v string) { 8444 o.Expire = v 8445 } 8446 8447 /************************************************* 8448 * DatabaseLog 8449 *************************************************/ 8450 8451 // DatabaseLog represents API parameter/response structure 8452 type DatabaseLog struct { 8453 Name string 8454 Data string 8455 Size types.StringNumber 8456 } 8457 8458 // setDefaults implements iaas.argumentDefaulter 8459 func (o *DatabaseLog) setDefaults() interface{} { 8460 return &struct { 8461 Name string 8462 Data string 8463 Size types.StringNumber 8464 }{ 8465 Name: o.GetName(), 8466 Data: o.GetData(), 8467 Size: o.GetSize(), 8468 } 8469 } 8470 8471 // GetName returns value of Name 8472 func (o *DatabaseLog) GetName() string { 8473 return o.Name 8474 } 8475 8476 // SetName sets value to Name 8477 func (o *DatabaseLog) SetName(v string) { 8478 o.Name = v 8479 } 8480 8481 // GetData returns value of Data 8482 func (o *DatabaseLog) GetData() string { 8483 return o.Data 8484 } 8485 8486 // SetData sets value to Data 8487 func (o *DatabaseLog) SetData(v string) { 8488 o.Data = v 8489 } 8490 8491 // GetSize returns value of Size 8492 func (o *DatabaseLog) GetSize() types.StringNumber { 8493 return o.Size 8494 } 8495 8496 // SetSize sets value to Size 8497 func (o *DatabaseLog) SetSize(v types.StringNumber) { 8498 o.Size = v 8499 } 8500 8501 /************************************************* 8502 * DatabaseBackupHistory 8503 *************************************************/ 8504 8505 // DatabaseBackupHistory represents API parameter/response structure 8506 type DatabaseBackupHistory struct { 8507 CreatedAt time.Time 8508 Availability string 8509 RecoveredAt time.Time 8510 Size int64 8511 } 8512 8513 // setDefaults implements iaas.argumentDefaulter 8514 func (o *DatabaseBackupHistory) setDefaults() interface{} { 8515 return &struct { 8516 CreatedAt time.Time 8517 Availability string 8518 RecoveredAt time.Time 8519 Size int64 8520 }{ 8521 CreatedAt: o.GetCreatedAt(), 8522 Availability: o.GetAvailability(), 8523 RecoveredAt: o.GetRecoveredAt(), 8524 Size: o.GetSize(), 8525 } 8526 } 8527 8528 // GetCreatedAt returns value of CreatedAt 8529 func (o *DatabaseBackupHistory) GetCreatedAt() time.Time { 8530 return o.CreatedAt 8531 } 8532 8533 // SetCreatedAt sets value to CreatedAt 8534 func (o *DatabaseBackupHistory) SetCreatedAt(v time.Time) { 8535 o.CreatedAt = v 8536 } 8537 8538 // GetAvailability returns value of Availability 8539 func (o *DatabaseBackupHistory) GetAvailability() string { 8540 return o.Availability 8541 } 8542 8543 // SetAvailability sets value to Availability 8544 func (o *DatabaseBackupHistory) SetAvailability(v string) { 8545 o.Availability = v 8546 } 8547 8548 // GetRecoveredAt returns value of RecoveredAt 8549 func (o *DatabaseBackupHistory) GetRecoveredAt() time.Time { 8550 return o.RecoveredAt 8551 } 8552 8553 // SetRecoveredAt sets value to RecoveredAt 8554 func (o *DatabaseBackupHistory) SetRecoveredAt(v time.Time) { 8555 o.RecoveredAt = v 8556 } 8557 8558 // GetSize returns value of Size 8559 func (o *DatabaseBackupHistory) GetSize() int64 { 8560 return o.Size 8561 } 8562 8563 // SetSize sets value to Size 8564 func (o *DatabaseBackupHistory) SetSize(v int64) { 8565 o.Size = v 8566 } 8567 8568 /************************************************* 8569 * DatabaseParameter 8570 *************************************************/ 8571 8572 // DatabaseParameter represents API parameter/response structure 8573 type DatabaseParameter struct { 8574 Settings map[string]interface{} `mapconv:"Parameter.Attr"` 8575 MetaInfo []*DatabaseParameterMeta `mapconv:"Remark.[]Form,recursive"` 8576 } 8577 8578 // setDefaults implements iaas.argumentDefaulter 8579 func (o *DatabaseParameter) setDefaults() interface{} { 8580 return &struct { 8581 Settings map[string]interface{} `mapconv:"Parameter.Attr"` 8582 MetaInfo []*DatabaseParameterMeta `mapconv:"Remark.[]Form,recursive"` 8583 }{ 8584 Settings: o.GetSettings(), 8585 MetaInfo: o.GetMetaInfo(), 8586 } 8587 } 8588 8589 // GetSettings returns value of Settings 8590 func (o *DatabaseParameter) GetSettings() map[string]interface{} { 8591 return o.Settings 8592 } 8593 8594 // SetSettings sets value to Settings 8595 func (o *DatabaseParameter) SetSettings(v map[string]interface{}) { 8596 o.Settings = v 8597 } 8598 8599 // GetMetaInfo returns value of MetaInfo 8600 func (o *DatabaseParameter) GetMetaInfo() []*DatabaseParameterMeta { 8601 return o.MetaInfo 8602 } 8603 8604 // SetMetaInfo sets value to MetaInfo 8605 func (o *DatabaseParameter) SetMetaInfo(v []*DatabaseParameterMeta) { 8606 o.MetaInfo = v 8607 } 8608 8609 /************************************************* 8610 * DatabaseParameterMeta 8611 *************************************************/ 8612 8613 // DatabaseParameterMeta represents API parameter/response structure 8614 type DatabaseParameterMeta struct { 8615 Type string `mapconv:"Options.Type"` 8616 Name string 8617 Label string 8618 Text string `mapconv:"Options.Text"` 8619 Example string `mapconv:"Options.Example"` 8620 Min float64 `mapconv:"Options.Min"` 8621 Max float64 `mapconv:"Options.Max"` 8622 MaxLen int `mapconv:"Options.MaxLen"` 8623 Reboot string `mapconv:"Options.Reboot"` 8624 } 8625 8626 // setDefaults implements iaas.argumentDefaulter 8627 func (o *DatabaseParameterMeta) setDefaults() interface{} { 8628 return &struct { 8629 Type string `mapconv:"Options.Type"` 8630 Name string 8631 Label string 8632 Text string `mapconv:"Options.Text"` 8633 Example string `mapconv:"Options.Example"` 8634 Min float64 `mapconv:"Options.Min"` 8635 Max float64 `mapconv:"Options.Max"` 8636 MaxLen int `mapconv:"Options.MaxLen"` 8637 Reboot string `mapconv:"Options.Reboot"` 8638 }{ 8639 Type: o.GetType(), 8640 Name: o.GetName(), 8641 Label: o.GetLabel(), 8642 Text: o.GetText(), 8643 Example: o.GetExample(), 8644 Min: o.GetMin(), 8645 Max: o.GetMax(), 8646 MaxLen: o.GetMaxLen(), 8647 Reboot: o.GetReboot(), 8648 } 8649 } 8650 8651 // GetType returns value of Type 8652 func (o *DatabaseParameterMeta) GetType() string { 8653 return o.Type 8654 } 8655 8656 // SetType sets value to Type 8657 func (o *DatabaseParameterMeta) SetType(v string) { 8658 o.Type = v 8659 } 8660 8661 // GetName returns value of Name 8662 func (o *DatabaseParameterMeta) GetName() string { 8663 return o.Name 8664 } 8665 8666 // SetName sets value to Name 8667 func (o *DatabaseParameterMeta) SetName(v string) { 8668 o.Name = v 8669 } 8670 8671 // GetLabel returns value of Label 8672 func (o *DatabaseParameterMeta) GetLabel() string { 8673 return o.Label 8674 } 8675 8676 // SetLabel sets value to Label 8677 func (o *DatabaseParameterMeta) SetLabel(v string) { 8678 o.Label = v 8679 } 8680 8681 // GetText returns value of Text 8682 func (o *DatabaseParameterMeta) GetText() string { 8683 return o.Text 8684 } 8685 8686 // SetText sets value to Text 8687 func (o *DatabaseParameterMeta) SetText(v string) { 8688 o.Text = v 8689 } 8690 8691 // GetExample returns value of Example 8692 func (o *DatabaseParameterMeta) GetExample() string { 8693 return o.Example 8694 } 8695 8696 // SetExample sets value to Example 8697 func (o *DatabaseParameterMeta) SetExample(v string) { 8698 o.Example = v 8699 } 8700 8701 // GetMin returns value of Min 8702 func (o *DatabaseParameterMeta) GetMin() float64 { 8703 return o.Min 8704 } 8705 8706 // SetMin sets value to Min 8707 func (o *DatabaseParameterMeta) SetMin(v float64) { 8708 o.Min = v 8709 } 8710 8711 // GetMax returns value of Max 8712 func (o *DatabaseParameterMeta) GetMax() float64 { 8713 return o.Max 8714 } 8715 8716 // SetMax sets value to Max 8717 func (o *DatabaseParameterMeta) SetMax(v float64) { 8718 o.Max = v 8719 } 8720 8721 // GetMaxLen returns value of MaxLen 8722 func (o *DatabaseParameterMeta) GetMaxLen() int { 8723 return o.MaxLen 8724 } 8725 8726 // SetMaxLen sets value to MaxLen 8727 func (o *DatabaseParameterMeta) SetMaxLen(v int) { 8728 o.MaxLen = v 8729 } 8730 8731 // GetReboot returns value of Reboot 8732 func (o *DatabaseParameterMeta) GetReboot() string { 8733 return o.Reboot 8734 } 8735 8736 // SetReboot sets value to Reboot 8737 func (o *DatabaseParameterMeta) SetReboot(v string) { 8738 o.Reboot = v 8739 } 8740 8741 /************************************************* 8742 * Disk 8743 *************************************************/ 8744 8745 // Disk represents API parameter/response structure 8746 type Disk struct { 8747 ID types.ID 8748 Name string 8749 Description string 8750 Tags types.Tags 8751 Availability types.EAvailability 8752 Connection types.EDiskConnection `json:",omitempty" mapconv:",omitempty"` 8753 ConnectionOrder int 8754 EncryptionAlgorithm types.EDiskEncryptionAlgorithm `json:",omitempty" mapconv:",omitempty"` 8755 ReinstallCount int 8756 JobStatus *JobStatus 8757 SizeMB int 8758 MigratedMB int 8759 DiskPlanID types.ID `mapconv:"Plan.ID"` 8760 DiskPlanName string `mapconv:"Plan.Name"` 8761 DiskPlanStorageClass string `mapconv:"Plan.StorageClass"` 8762 SourceDiskID types.ID `mapconv:"SourceDisk.ID,omitempty"` 8763 SourceDiskAvailability types.EAvailability `mapconv:"SourceDisk.Availability,omitempty"` 8764 SourceArchiveID types.ID `mapconv:"SourceArchive.ID,omitempty"` 8765 SourceArchiveAvailability types.EAvailability `mapconv:"SourceArchive.Availability,omitempty"` 8766 BundleInfo *BundleInfo `json:",omitempty" mapconv:",omitempty,recursive"` 8767 Storage *Storage `json:",omitempty" mapconv:",omitempty,recursive"` 8768 ServerID types.ID `mapconv:"Server.ID,omitempty"` 8769 ServerName string `mapconv:"Server.Name,omitempty"` 8770 IconID types.ID `mapconv:"Icon.ID"` 8771 CreatedAt time.Time 8772 ModifiedAt time.Time 8773 } 8774 8775 // setDefaults implements iaas.argumentDefaulter 8776 func (o *Disk) setDefaults() interface{} { 8777 return &struct { 8778 ID types.ID 8779 Name string 8780 Description string 8781 Tags types.Tags 8782 Availability types.EAvailability 8783 Connection types.EDiskConnection `json:",omitempty" mapconv:",omitempty"` 8784 ConnectionOrder int 8785 EncryptionAlgorithm types.EDiskEncryptionAlgorithm `json:",omitempty" mapconv:",omitempty"` 8786 ReinstallCount int 8787 JobStatus *JobStatus 8788 SizeMB int 8789 MigratedMB int 8790 DiskPlanID types.ID `mapconv:"Plan.ID"` 8791 DiskPlanName string `mapconv:"Plan.Name"` 8792 DiskPlanStorageClass string `mapconv:"Plan.StorageClass"` 8793 SourceDiskID types.ID `mapconv:"SourceDisk.ID,omitempty"` 8794 SourceDiskAvailability types.EAvailability `mapconv:"SourceDisk.Availability,omitempty"` 8795 SourceArchiveID types.ID `mapconv:"SourceArchive.ID,omitempty"` 8796 SourceArchiveAvailability types.EAvailability `mapconv:"SourceArchive.Availability,omitempty"` 8797 BundleInfo *BundleInfo `json:",omitempty" mapconv:",omitempty,recursive"` 8798 Storage *Storage `json:",omitempty" mapconv:",omitempty,recursive"` 8799 ServerID types.ID `mapconv:"Server.ID,omitempty"` 8800 ServerName string `mapconv:"Server.Name,omitempty"` 8801 IconID types.ID `mapconv:"Icon.ID"` 8802 CreatedAt time.Time 8803 ModifiedAt time.Time 8804 }{ 8805 ID: o.GetID(), 8806 Name: o.GetName(), 8807 Description: o.GetDescription(), 8808 Tags: o.GetTags(), 8809 Availability: o.GetAvailability(), 8810 Connection: o.GetConnection(), 8811 ConnectionOrder: o.GetConnectionOrder(), 8812 EncryptionAlgorithm: o.GetEncryptionAlgorithm(), 8813 ReinstallCount: o.GetReinstallCount(), 8814 JobStatus: o.GetJobStatus(), 8815 SizeMB: o.GetSizeMB(), 8816 MigratedMB: o.GetMigratedMB(), 8817 DiskPlanID: o.GetDiskPlanID(), 8818 DiskPlanName: o.GetDiskPlanName(), 8819 DiskPlanStorageClass: o.GetDiskPlanStorageClass(), 8820 SourceDiskID: o.GetSourceDiskID(), 8821 SourceDiskAvailability: o.GetSourceDiskAvailability(), 8822 SourceArchiveID: o.GetSourceArchiveID(), 8823 SourceArchiveAvailability: o.GetSourceArchiveAvailability(), 8824 BundleInfo: o.GetBundleInfo(), 8825 Storage: o.GetStorage(), 8826 ServerID: o.GetServerID(), 8827 ServerName: o.GetServerName(), 8828 IconID: o.GetIconID(), 8829 CreatedAt: o.GetCreatedAt(), 8830 ModifiedAt: o.GetModifiedAt(), 8831 } 8832 } 8833 8834 // GetID returns value of ID 8835 func (o *Disk) GetID() types.ID { 8836 return o.ID 8837 } 8838 8839 // SetID sets value to ID 8840 func (o *Disk) SetID(v types.ID) { 8841 o.ID = v 8842 } 8843 8844 // SetStringID . 8845 func (o *Disk) SetStringID(id string) { 8846 accessor.SetStringID(o, id) 8847 } 8848 8849 // GetStringID . 8850 func (o *Disk) GetStringID() string { 8851 return accessor.GetStringID(o) 8852 } 8853 8854 // SetInt64ID . 8855 func (o *Disk) SetInt64ID(id int64) { 8856 accessor.SetInt64ID(o, id) 8857 } 8858 8859 // GetInt64ID . 8860 func (o *Disk) GetInt64ID() int64 { 8861 return accessor.GetInt64ID(o) 8862 } 8863 8864 // GetName returns value of Name 8865 func (o *Disk) GetName() string { 8866 return o.Name 8867 } 8868 8869 // SetName sets value to Name 8870 func (o *Disk) SetName(v string) { 8871 o.Name = v 8872 } 8873 8874 // GetDescription returns value of Description 8875 func (o *Disk) GetDescription() string { 8876 return o.Description 8877 } 8878 8879 // SetDescription sets value to Description 8880 func (o *Disk) SetDescription(v string) { 8881 o.Description = v 8882 } 8883 8884 // GetTags returns value of Tags 8885 func (o *Disk) GetTags() types.Tags { 8886 return o.Tags 8887 } 8888 8889 // SetTags sets value to Tags 8890 func (o *Disk) SetTags(v types.Tags) { 8891 o.Tags = v 8892 } 8893 8894 // HasTag 指定のタグが存在する場合trueを返す 8895 func (o *Disk) HasTag(tag string) bool { 8896 return accessor.HasTag(o, tag) 8897 } 8898 8899 // AppendTag 指定のタグを追加 8900 func (o *Disk) AppendTag(tag string) { 8901 accessor.AppendTag(o, tag) 8902 } 8903 8904 // RemoveTag 指定のタグを削除 8905 func (o *Disk) RemoveTag(tag string) { 8906 accessor.RemoveTag(o, tag) 8907 } 8908 8909 // ClearTags タグを全クリア 8910 func (o *Disk) ClearTags() { 8911 accessor.ClearTags(o) 8912 } 8913 8914 // GetAvailability returns value of Availability 8915 func (o *Disk) GetAvailability() types.EAvailability { 8916 return o.Availability 8917 } 8918 8919 // SetAvailability sets value to Availability 8920 func (o *Disk) SetAvailability(v types.EAvailability) { 8921 o.Availability = v 8922 } 8923 8924 // GetConnection returns value of Connection 8925 func (o *Disk) GetConnection() types.EDiskConnection { 8926 return o.Connection 8927 } 8928 8929 // SetConnection sets value to Connection 8930 func (o *Disk) SetConnection(v types.EDiskConnection) { 8931 o.Connection = v 8932 } 8933 8934 // GetConnectionOrder returns value of ConnectionOrder 8935 func (o *Disk) GetConnectionOrder() int { 8936 return o.ConnectionOrder 8937 } 8938 8939 // SetConnectionOrder sets value to ConnectionOrder 8940 func (o *Disk) SetConnectionOrder(v int) { 8941 o.ConnectionOrder = v 8942 } 8943 8944 // GetEncryptionAlgorithm returns value of EncryptionAlgorithm 8945 func (o *Disk) GetEncryptionAlgorithm() types.EDiskEncryptionAlgorithm { 8946 return o.EncryptionAlgorithm 8947 } 8948 8949 // SetEncryptionAlgorithm sets value to EncryptionAlgorithm 8950 func (o *Disk) SetEncryptionAlgorithm(v types.EDiskEncryptionAlgorithm) { 8951 o.EncryptionAlgorithm = v 8952 } 8953 8954 // GetReinstallCount returns value of ReinstallCount 8955 func (o *Disk) GetReinstallCount() int { 8956 return o.ReinstallCount 8957 } 8958 8959 // SetReinstallCount sets value to ReinstallCount 8960 func (o *Disk) SetReinstallCount(v int) { 8961 o.ReinstallCount = v 8962 } 8963 8964 // GetJobStatus returns value of JobStatus 8965 func (o *Disk) GetJobStatus() *JobStatus { 8966 return o.JobStatus 8967 } 8968 8969 // SetJobStatus sets value to JobStatus 8970 func (o *Disk) SetJobStatus(v *JobStatus) { 8971 o.JobStatus = v 8972 } 8973 8974 // GetSizeMB returns value of SizeMB 8975 func (o *Disk) GetSizeMB() int { 8976 return o.SizeMB 8977 } 8978 8979 // SetSizeMB sets value to SizeMB 8980 func (o *Disk) SetSizeMB(v int) { 8981 o.SizeMB = v 8982 } 8983 8984 // GetSizeGB . 8985 func (o *Disk) GetSizeGB() int { 8986 return accessor.GetSizeGB(o) 8987 } 8988 8989 // SetSizeGB . 8990 func (o *Disk) SetSizeGB(size int) { 8991 accessor.SetSizeGB(o, size) 8992 } 8993 8994 // GetMigratedMB returns value of MigratedMB 8995 func (o *Disk) GetMigratedMB() int { 8996 return o.MigratedMB 8997 } 8998 8999 // SetMigratedMB sets value to MigratedMB 9000 func (o *Disk) SetMigratedMB(v int) { 9001 o.MigratedMB = v 9002 } 9003 9004 // GetMigratedGB . 9005 func (o *Disk) GetMigratedGB() int { 9006 return accessor.GetMigratedGB(o) 9007 } 9008 9009 // GetDiskPlanID returns value of DiskPlanID 9010 func (o *Disk) GetDiskPlanID() types.ID { 9011 return o.DiskPlanID 9012 } 9013 9014 // SetDiskPlanID sets value to DiskPlanID 9015 func (o *Disk) SetDiskPlanID(v types.ID) { 9016 o.DiskPlanID = v 9017 } 9018 9019 // GetDiskPlanName returns value of DiskPlanName 9020 func (o *Disk) GetDiskPlanName() string { 9021 return o.DiskPlanName 9022 } 9023 9024 // SetDiskPlanName sets value to DiskPlanName 9025 func (o *Disk) SetDiskPlanName(v string) { 9026 o.DiskPlanName = v 9027 } 9028 9029 // GetDiskPlanStorageClass returns value of DiskPlanStorageClass 9030 func (o *Disk) GetDiskPlanStorageClass() string { 9031 return o.DiskPlanStorageClass 9032 } 9033 9034 // SetDiskPlanStorageClass sets value to DiskPlanStorageClass 9035 func (o *Disk) SetDiskPlanStorageClass(v string) { 9036 o.DiskPlanStorageClass = v 9037 } 9038 9039 // GetSourceDiskID returns value of SourceDiskID 9040 func (o *Disk) GetSourceDiskID() types.ID { 9041 return o.SourceDiskID 9042 } 9043 9044 // SetSourceDiskID sets value to SourceDiskID 9045 func (o *Disk) SetSourceDiskID(v types.ID) { 9046 o.SourceDiskID = v 9047 } 9048 9049 // GetSourceDiskAvailability returns value of SourceDiskAvailability 9050 func (o *Disk) GetSourceDiskAvailability() types.EAvailability { 9051 return o.SourceDiskAvailability 9052 } 9053 9054 // SetSourceDiskAvailability sets value to SourceDiskAvailability 9055 func (o *Disk) SetSourceDiskAvailability(v types.EAvailability) { 9056 o.SourceDiskAvailability = v 9057 } 9058 9059 // GetSourceArchiveID returns value of SourceArchiveID 9060 func (o *Disk) GetSourceArchiveID() types.ID { 9061 return o.SourceArchiveID 9062 } 9063 9064 // SetSourceArchiveID sets value to SourceArchiveID 9065 func (o *Disk) SetSourceArchiveID(v types.ID) { 9066 o.SourceArchiveID = v 9067 } 9068 9069 // GetSourceArchiveAvailability returns value of SourceArchiveAvailability 9070 func (o *Disk) GetSourceArchiveAvailability() types.EAvailability { 9071 return o.SourceArchiveAvailability 9072 } 9073 9074 // SetSourceArchiveAvailability sets value to SourceArchiveAvailability 9075 func (o *Disk) SetSourceArchiveAvailability(v types.EAvailability) { 9076 o.SourceArchiveAvailability = v 9077 } 9078 9079 // GetBundleInfo returns value of BundleInfo 9080 func (o *Disk) GetBundleInfo() *BundleInfo { 9081 return o.BundleInfo 9082 } 9083 9084 // SetBundleInfo sets value to BundleInfo 9085 func (o *Disk) SetBundleInfo(v *BundleInfo) { 9086 o.BundleInfo = v 9087 } 9088 9089 // GetStorage returns value of Storage 9090 func (o *Disk) GetStorage() *Storage { 9091 return o.Storage 9092 } 9093 9094 // SetStorage sets value to Storage 9095 func (o *Disk) SetStorage(v *Storage) { 9096 o.Storage = v 9097 } 9098 9099 // GetServerID returns value of ServerID 9100 func (o *Disk) GetServerID() types.ID { 9101 return o.ServerID 9102 } 9103 9104 // SetServerID sets value to ServerID 9105 func (o *Disk) SetServerID(v types.ID) { 9106 o.ServerID = v 9107 } 9108 9109 // GetServerName returns value of ServerName 9110 func (o *Disk) GetServerName() string { 9111 return o.ServerName 9112 } 9113 9114 // SetServerName sets value to ServerName 9115 func (o *Disk) SetServerName(v string) { 9116 o.ServerName = v 9117 } 9118 9119 // GetIconID returns value of IconID 9120 func (o *Disk) GetIconID() types.ID { 9121 return o.IconID 9122 } 9123 9124 // SetIconID sets value to IconID 9125 func (o *Disk) SetIconID(v types.ID) { 9126 o.IconID = v 9127 } 9128 9129 // GetCreatedAt returns value of CreatedAt 9130 func (o *Disk) GetCreatedAt() time.Time { 9131 return o.CreatedAt 9132 } 9133 9134 // SetCreatedAt sets value to CreatedAt 9135 func (o *Disk) SetCreatedAt(v time.Time) { 9136 o.CreatedAt = v 9137 } 9138 9139 // GetModifiedAt returns value of ModifiedAt 9140 func (o *Disk) GetModifiedAt() time.Time { 9141 return o.ModifiedAt 9142 } 9143 9144 // SetModifiedAt sets value to ModifiedAt 9145 func (o *Disk) SetModifiedAt(v time.Time) { 9146 o.ModifiedAt = v 9147 } 9148 9149 /************************************************* 9150 * JobStatus 9151 *************************************************/ 9152 9153 // JobStatus represents API parameter/response structure 9154 type JobStatus struct { 9155 Status string 9156 ConfigError *JobConfigError 9157 } 9158 9159 // setDefaults implements iaas.argumentDefaulter 9160 func (o *JobStatus) setDefaults() interface{} { 9161 return &struct { 9162 Status string 9163 ConfigError *JobConfigError 9164 }{ 9165 Status: o.GetStatus(), 9166 ConfigError: o.GetConfigError(), 9167 } 9168 } 9169 9170 // GetStatus returns value of Status 9171 func (o *JobStatus) GetStatus() string { 9172 return o.Status 9173 } 9174 9175 // SetStatus sets value to Status 9176 func (o *JobStatus) SetStatus(v string) { 9177 o.Status = v 9178 } 9179 9180 // GetConfigError returns value of ConfigError 9181 func (o *JobStatus) GetConfigError() *JobConfigError { 9182 return o.ConfigError 9183 } 9184 9185 // SetConfigError sets value to ConfigError 9186 func (o *JobStatus) SetConfigError(v *JobConfigError) { 9187 o.ConfigError = v 9188 } 9189 9190 /************************************************* 9191 * JobConfigError 9192 *************************************************/ 9193 9194 // JobConfigError represents API parameter/response structure 9195 type JobConfigError struct { 9196 ErrorCode string 9197 ErrorMsg string 9198 Status string 9199 } 9200 9201 // setDefaults implements iaas.argumentDefaulter 9202 func (o *JobConfigError) setDefaults() interface{} { 9203 return &struct { 9204 ErrorCode string 9205 ErrorMsg string 9206 Status string 9207 }{ 9208 ErrorCode: o.GetErrorCode(), 9209 ErrorMsg: o.GetErrorMsg(), 9210 Status: o.GetStatus(), 9211 } 9212 } 9213 9214 // GetErrorCode returns value of ErrorCode 9215 func (o *JobConfigError) GetErrorCode() string { 9216 return o.ErrorCode 9217 } 9218 9219 // SetErrorCode sets value to ErrorCode 9220 func (o *JobConfigError) SetErrorCode(v string) { 9221 o.ErrorCode = v 9222 } 9223 9224 // GetErrorMsg returns value of ErrorMsg 9225 func (o *JobConfigError) GetErrorMsg() string { 9226 return o.ErrorMsg 9227 } 9228 9229 // SetErrorMsg sets value to ErrorMsg 9230 func (o *JobConfigError) SetErrorMsg(v string) { 9231 o.ErrorMsg = v 9232 } 9233 9234 // GetStatus returns value of Status 9235 func (o *JobConfigError) GetStatus() string { 9236 return o.Status 9237 } 9238 9239 // SetStatus sets value to Status 9240 func (o *JobConfigError) SetStatus(v string) { 9241 o.Status = v 9242 } 9243 9244 /************************************************* 9245 * DiskCreateRequest 9246 *************************************************/ 9247 9248 // DiskCreateRequest represents API parameter/response structure 9249 type DiskCreateRequest struct { 9250 DiskPlanID types.ID `mapconv:"Plan.ID"` 9251 Connection types.EDiskConnection `json:",omitempty" mapconv:",omitempty"` 9252 EncryptionAlgorithm types.EDiskEncryptionAlgorithm `json:",omitempty" mapconv:",omitempty"` 9253 SourceDiskID types.ID `mapconv:"SourceDisk.ID,omitempty"` 9254 SourceArchiveID types.ID `mapconv:"SourceArchive.ID,omitempty"` 9255 ServerID types.ID `mapconv:"Server.ID,omitempty"` 9256 SizeMB int 9257 Name string 9258 Description string 9259 Tags types.Tags 9260 IconID types.ID `mapconv:"Icon.ID"` 9261 } 9262 9263 // setDefaults implements iaas.argumentDefaulter 9264 func (o *DiskCreateRequest) setDefaults() interface{} { 9265 return &struct { 9266 DiskPlanID types.ID `mapconv:"Plan.ID"` 9267 Connection types.EDiskConnection `json:",omitempty" mapconv:",omitempty"` 9268 EncryptionAlgorithm types.EDiskEncryptionAlgorithm `json:",omitempty" mapconv:",omitempty"` 9269 SourceDiskID types.ID `mapconv:"SourceDisk.ID,omitempty"` 9270 SourceArchiveID types.ID `mapconv:"SourceArchive.ID,omitempty"` 9271 ServerID types.ID `mapconv:"Server.ID,omitempty"` 9272 SizeMB int 9273 Name string 9274 Description string 9275 Tags types.Tags 9276 IconID types.ID `mapconv:"Icon.ID"` 9277 }{ 9278 DiskPlanID: o.GetDiskPlanID(), 9279 Connection: o.GetConnection(), 9280 EncryptionAlgorithm: o.GetEncryptionAlgorithm(), 9281 SourceDiskID: o.GetSourceDiskID(), 9282 SourceArchiveID: o.GetSourceArchiveID(), 9283 ServerID: o.GetServerID(), 9284 SizeMB: o.GetSizeMB(), 9285 Name: o.GetName(), 9286 Description: o.GetDescription(), 9287 Tags: o.GetTags(), 9288 IconID: o.GetIconID(), 9289 } 9290 } 9291 9292 // GetDiskPlanID returns value of DiskPlanID 9293 func (o *DiskCreateRequest) GetDiskPlanID() types.ID { 9294 return o.DiskPlanID 9295 } 9296 9297 // SetDiskPlanID sets value to DiskPlanID 9298 func (o *DiskCreateRequest) SetDiskPlanID(v types.ID) { 9299 o.DiskPlanID = v 9300 } 9301 9302 // GetConnection returns value of Connection 9303 func (o *DiskCreateRequest) GetConnection() types.EDiskConnection { 9304 return o.Connection 9305 } 9306 9307 // SetConnection sets value to Connection 9308 func (o *DiskCreateRequest) SetConnection(v types.EDiskConnection) { 9309 o.Connection = v 9310 } 9311 9312 // GetEncryptionAlgorithm returns value of EncryptionAlgorithm 9313 func (o *DiskCreateRequest) GetEncryptionAlgorithm() types.EDiskEncryptionAlgorithm { 9314 return o.EncryptionAlgorithm 9315 } 9316 9317 // SetEncryptionAlgorithm sets value to EncryptionAlgorithm 9318 func (o *DiskCreateRequest) SetEncryptionAlgorithm(v types.EDiskEncryptionAlgorithm) { 9319 o.EncryptionAlgorithm = v 9320 } 9321 9322 // GetSourceDiskID returns value of SourceDiskID 9323 func (o *DiskCreateRequest) GetSourceDiskID() types.ID { 9324 return o.SourceDiskID 9325 } 9326 9327 // SetSourceDiskID sets value to SourceDiskID 9328 func (o *DiskCreateRequest) SetSourceDiskID(v types.ID) { 9329 o.SourceDiskID = v 9330 } 9331 9332 // GetSourceArchiveID returns value of SourceArchiveID 9333 func (o *DiskCreateRequest) GetSourceArchiveID() types.ID { 9334 return o.SourceArchiveID 9335 } 9336 9337 // SetSourceArchiveID sets value to SourceArchiveID 9338 func (o *DiskCreateRequest) SetSourceArchiveID(v types.ID) { 9339 o.SourceArchiveID = v 9340 } 9341 9342 // GetServerID returns value of ServerID 9343 func (o *DiskCreateRequest) GetServerID() types.ID { 9344 return o.ServerID 9345 } 9346 9347 // SetServerID sets value to ServerID 9348 func (o *DiskCreateRequest) SetServerID(v types.ID) { 9349 o.ServerID = v 9350 } 9351 9352 // GetSizeMB returns value of SizeMB 9353 func (o *DiskCreateRequest) GetSizeMB() int { 9354 return o.SizeMB 9355 } 9356 9357 // SetSizeMB sets value to SizeMB 9358 func (o *DiskCreateRequest) SetSizeMB(v int) { 9359 o.SizeMB = v 9360 } 9361 9362 // GetSizeGB . 9363 func (o *DiskCreateRequest) GetSizeGB() int { 9364 return accessor.GetSizeGB(o) 9365 } 9366 9367 // SetSizeGB . 9368 func (o *DiskCreateRequest) SetSizeGB(size int) { 9369 accessor.SetSizeGB(o, size) 9370 } 9371 9372 // GetName returns value of Name 9373 func (o *DiskCreateRequest) GetName() string { 9374 return o.Name 9375 } 9376 9377 // SetName sets value to Name 9378 func (o *DiskCreateRequest) SetName(v string) { 9379 o.Name = v 9380 } 9381 9382 // GetDescription returns value of Description 9383 func (o *DiskCreateRequest) GetDescription() string { 9384 return o.Description 9385 } 9386 9387 // SetDescription sets value to Description 9388 func (o *DiskCreateRequest) SetDescription(v string) { 9389 o.Description = v 9390 } 9391 9392 // GetTags returns value of Tags 9393 func (o *DiskCreateRequest) GetTags() types.Tags { 9394 return o.Tags 9395 } 9396 9397 // SetTags sets value to Tags 9398 func (o *DiskCreateRequest) SetTags(v types.Tags) { 9399 o.Tags = v 9400 } 9401 9402 // HasTag 指定のタグが存在する場合trueを返す 9403 func (o *DiskCreateRequest) HasTag(tag string) bool { 9404 return accessor.HasTag(o, tag) 9405 } 9406 9407 // AppendTag 指定のタグを追加 9408 func (o *DiskCreateRequest) AppendTag(tag string) { 9409 accessor.AppendTag(o, tag) 9410 } 9411 9412 // RemoveTag 指定のタグを削除 9413 func (o *DiskCreateRequest) RemoveTag(tag string) { 9414 accessor.RemoveTag(o, tag) 9415 } 9416 9417 // ClearTags タグを全クリア 9418 func (o *DiskCreateRequest) ClearTags() { 9419 accessor.ClearTags(o) 9420 } 9421 9422 // GetIconID returns value of IconID 9423 func (o *DiskCreateRequest) GetIconID() types.ID { 9424 return o.IconID 9425 } 9426 9427 // SetIconID sets value to IconID 9428 func (o *DiskCreateRequest) SetIconID(v types.ID) { 9429 o.IconID = v 9430 } 9431 9432 /************************************************* 9433 * DiskEditRequest 9434 *************************************************/ 9435 9436 // DiskEditRequest represents API parameter/response structure 9437 type DiskEditRequest struct { 9438 Background bool `json:",omitempty" mapconv:",omitempty"` 9439 Password string `json:",omitempty" mapconv:",omitempty"` 9440 SSHKey *DiskEditSSHKey `json:",omitempty" mapconv:",omitempty,recursive"` 9441 SSHKeys []*DiskEditSSHKey `json:",omitempty" mapconv:"[]SSHKeys,omitempty,recursive"` 9442 DisablePWAuth bool `json:",omitempty" mapconv:",omitempty"` 9443 EnableDHCP bool `json:",omitempty" mapconv:",omitempty"` 9444 ChangePartitionUUID bool `json:",omitempty" mapconv:",omitempty"` 9445 HostName string `json:",omitempty" mapconv:",omitempty"` 9446 Notes []*DiskEditNote `json:",omitempty" mapconv:"[]Notes,omitempty,recursive"` 9447 UserIPAddress string `json:",omitempty" mapconv:",omitempty"` 9448 UserSubnet *DiskEditUserSubnet `json:",omitempty" mapconv:",omitempty"` 9449 } 9450 9451 // setDefaults implements iaas.argumentDefaulter 9452 func (o *DiskEditRequest) setDefaults() interface{} { 9453 return &struct { 9454 Background bool `json:",omitempty" mapconv:",omitempty"` 9455 Password string `json:",omitempty" mapconv:",omitempty"` 9456 SSHKey *DiskEditSSHKey `json:",omitempty" mapconv:",omitempty,recursive"` 9457 SSHKeys []*DiskEditSSHKey `json:",omitempty" mapconv:"[]SSHKeys,omitempty,recursive"` 9458 DisablePWAuth bool `json:",omitempty" mapconv:",omitempty"` 9459 EnableDHCP bool `json:",omitempty" mapconv:",omitempty"` 9460 ChangePartitionUUID bool `json:",omitempty" mapconv:",omitempty"` 9461 HostName string `json:",omitempty" mapconv:",omitempty"` 9462 Notes []*DiskEditNote `json:",omitempty" mapconv:"[]Notes,omitempty,recursive"` 9463 UserIPAddress string `json:",omitempty" mapconv:",omitempty"` 9464 UserSubnet *DiskEditUserSubnet `json:",omitempty" mapconv:",omitempty"` 9465 }{ 9466 Background: o.GetBackground(), 9467 Password: o.GetPassword(), 9468 SSHKey: o.GetSSHKey(), 9469 SSHKeys: o.GetSSHKeys(), 9470 DisablePWAuth: o.GetDisablePWAuth(), 9471 EnableDHCP: o.GetEnableDHCP(), 9472 ChangePartitionUUID: o.GetChangePartitionUUID(), 9473 HostName: o.GetHostName(), 9474 Notes: o.GetNotes(), 9475 UserIPAddress: o.GetUserIPAddress(), 9476 UserSubnet: o.GetUserSubnet(), 9477 } 9478 } 9479 9480 // GetBackground returns value of Background 9481 func (o *DiskEditRequest) GetBackground() bool { 9482 return o.Background 9483 } 9484 9485 // SetBackground sets value to Background 9486 func (o *DiskEditRequest) SetBackground(v bool) { 9487 o.Background = v 9488 } 9489 9490 // GetPassword returns value of Password 9491 func (o *DiskEditRequest) GetPassword() string { 9492 return o.Password 9493 } 9494 9495 // SetPassword sets value to Password 9496 func (o *DiskEditRequest) SetPassword(v string) { 9497 o.Password = v 9498 } 9499 9500 // GetSSHKey returns value of SSHKey 9501 func (o *DiskEditRequest) GetSSHKey() *DiskEditSSHKey { 9502 return o.SSHKey 9503 } 9504 9505 // SetSSHKey sets value to SSHKey 9506 func (o *DiskEditRequest) SetSSHKey(v *DiskEditSSHKey) { 9507 o.SSHKey = v 9508 } 9509 9510 // GetSSHKeys returns value of SSHKeys 9511 func (o *DiskEditRequest) GetSSHKeys() []*DiskEditSSHKey { 9512 return o.SSHKeys 9513 } 9514 9515 // SetSSHKeys sets value to SSHKeys 9516 func (o *DiskEditRequest) SetSSHKeys(v []*DiskEditSSHKey) { 9517 o.SSHKeys = v 9518 } 9519 9520 // GetDisablePWAuth returns value of DisablePWAuth 9521 func (o *DiskEditRequest) GetDisablePWAuth() bool { 9522 return o.DisablePWAuth 9523 } 9524 9525 // SetDisablePWAuth sets value to DisablePWAuth 9526 func (o *DiskEditRequest) SetDisablePWAuth(v bool) { 9527 o.DisablePWAuth = v 9528 } 9529 9530 // GetEnableDHCP returns value of EnableDHCP 9531 func (o *DiskEditRequest) GetEnableDHCP() bool { 9532 return o.EnableDHCP 9533 } 9534 9535 // SetEnableDHCP sets value to EnableDHCP 9536 func (o *DiskEditRequest) SetEnableDHCP(v bool) { 9537 o.EnableDHCP = v 9538 } 9539 9540 // GetChangePartitionUUID returns value of ChangePartitionUUID 9541 func (o *DiskEditRequest) GetChangePartitionUUID() bool { 9542 return o.ChangePartitionUUID 9543 } 9544 9545 // SetChangePartitionUUID sets value to ChangePartitionUUID 9546 func (o *DiskEditRequest) SetChangePartitionUUID(v bool) { 9547 o.ChangePartitionUUID = v 9548 } 9549 9550 // GetHostName returns value of HostName 9551 func (o *DiskEditRequest) GetHostName() string { 9552 return o.HostName 9553 } 9554 9555 // SetHostName sets value to HostName 9556 func (o *DiskEditRequest) SetHostName(v string) { 9557 o.HostName = v 9558 } 9559 9560 // GetNotes returns value of Notes 9561 func (o *DiskEditRequest) GetNotes() []*DiskEditNote { 9562 return o.Notes 9563 } 9564 9565 // SetNotes sets value to Notes 9566 func (o *DiskEditRequest) SetNotes(v []*DiskEditNote) { 9567 o.Notes = v 9568 } 9569 9570 // GetUserIPAddress returns value of UserIPAddress 9571 func (o *DiskEditRequest) GetUserIPAddress() string { 9572 return o.UserIPAddress 9573 } 9574 9575 // SetUserIPAddress sets value to UserIPAddress 9576 func (o *DiskEditRequest) SetUserIPAddress(v string) { 9577 o.UserIPAddress = v 9578 } 9579 9580 // GetUserSubnet returns value of UserSubnet 9581 func (o *DiskEditRequest) GetUserSubnet() *DiskEditUserSubnet { 9582 return o.UserSubnet 9583 } 9584 9585 // SetUserSubnet sets value to UserSubnet 9586 func (o *DiskEditRequest) SetUserSubnet(v *DiskEditUserSubnet) { 9587 o.UserSubnet = v 9588 } 9589 9590 /************************************************* 9591 * DiskEditSSHKey 9592 *************************************************/ 9593 9594 // DiskEditSSHKey represents API parameter/response structure 9595 type DiskEditSSHKey struct { 9596 ID types.ID `json:",omitempty" mapconv:",omitempty"` 9597 PublicKey string `json:",omitempty" mapconv:",omitempty"` 9598 } 9599 9600 // setDefaults implements iaas.argumentDefaulter 9601 func (o *DiskEditSSHKey) setDefaults() interface{} { 9602 return &struct { 9603 ID types.ID `json:",omitempty" mapconv:",omitempty"` 9604 PublicKey string `json:",omitempty" mapconv:",omitempty"` 9605 }{ 9606 ID: o.GetID(), 9607 PublicKey: o.GetPublicKey(), 9608 } 9609 } 9610 9611 // GetID returns value of ID 9612 func (o *DiskEditSSHKey) GetID() types.ID { 9613 return o.ID 9614 } 9615 9616 // SetID sets value to ID 9617 func (o *DiskEditSSHKey) SetID(v types.ID) { 9618 o.ID = v 9619 } 9620 9621 // GetPublicKey returns value of PublicKey 9622 func (o *DiskEditSSHKey) GetPublicKey() string { 9623 return o.PublicKey 9624 } 9625 9626 // SetPublicKey sets value to PublicKey 9627 func (o *DiskEditSSHKey) SetPublicKey(v string) { 9628 o.PublicKey = v 9629 } 9630 9631 /************************************************* 9632 * DiskEditNote 9633 *************************************************/ 9634 9635 // DiskEditNote represents API parameter/response structure 9636 type DiskEditNote struct { 9637 ID types.ID `json:",omitempty" mapconv:",omitempty"` 9638 APIKeyID types.ID `json:",omitempty" mapconv:"APIKey.ID,omitempty"` 9639 Variables map[string]interface{} `json:",omitempty" mapconv:",omitempty"` 9640 } 9641 9642 // setDefaults implements iaas.argumentDefaulter 9643 func (o *DiskEditNote) setDefaults() interface{} { 9644 return &struct { 9645 ID types.ID `json:",omitempty" mapconv:",omitempty"` 9646 APIKeyID types.ID `json:",omitempty" mapconv:"APIKey.ID,omitempty"` 9647 Variables map[string]interface{} `json:",omitempty" mapconv:",omitempty"` 9648 }{ 9649 ID: o.GetID(), 9650 APIKeyID: o.GetAPIKeyID(), 9651 Variables: o.GetVariables(), 9652 } 9653 } 9654 9655 // GetID returns value of ID 9656 func (o *DiskEditNote) GetID() types.ID { 9657 return o.ID 9658 } 9659 9660 // SetID sets value to ID 9661 func (o *DiskEditNote) SetID(v types.ID) { 9662 o.ID = v 9663 } 9664 9665 // GetAPIKeyID returns value of APIKeyID 9666 func (o *DiskEditNote) GetAPIKeyID() types.ID { 9667 return o.APIKeyID 9668 } 9669 9670 // SetAPIKeyID sets value to APIKeyID 9671 func (o *DiskEditNote) SetAPIKeyID(v types.ID) { 9672 o.APIKeyID = v 9673 } 9674 9675 // GetVariables returns value of Variables 9676 func (o *DiskEditNote) GetVariables() map[string]interface{} { 9677 return o.Variables 9678 } 9679 9680 // SetVariables sets value to Variables 9681 func (o *DiskEditNote) SetVariables(v map[string]interface{}) { 9682 o.Variables = v 9683 } 9684 9685 /************************************************* 9686 * DiskEditUserSubnet 9687 *************************************************/ 9688 9689 // DiskEditUserSubnet represents API parameter/response structure 9690 type DiskEditUserSubnet struct { 9691 DefaultRoute string `json:",omitempty" mapconv:",omitempty"` 9692 NetworkMaskLen int `json:",omitempty" mapconv:",omitempty"` 9693 } 9694 9695 // setDefaults implements iaas.argumentDefaulter 9696 func (o *DiskEditUserSubnet) setDefaults() interface{} { 9697 return &struct { 9698 DefaultRoute string `json:",omitempty" mapconv:",omitempty"` 9699 NetworkMaskLen int `json:",omitempty" mapconv:",omitempty"` 9700 }{ 9701 DefaultRoute: o.GetDefaultRoute(), 9702 NetworkMaskLen: o.GetNetworkMaskLen(), 9703 } 9704 } 9705 9706 // GetDefaultRoute returns value of DefaultRoute 9707 func (o *DiskEditUserSubnet) GetDefaultRoute() string { 9708 return o.DefaultRoute 9709 } 9710 9711 // SetDefaultRoute sets value to DefaultRoute 9712 func (o *DiskEditUserSubnet) SetDefaultRoute(v string) { 9713 o.DefaultRoute = v 9714 } 9715 9716 // GetNetworkMaskLen returns value of NetworkMaskLen 9717 func (o *DiskEditUserSubnet) GetNetworkMaskLen() int { 9718 return o.NetworkMaskLen 9719 } 9720 9721 // SetNetworkMaskLen sets value to NetworkMaskLen 9722 func (o *DiskEditUserSubnet) SetNetworkMaskLen(v int) { 9723 o.NetworkMaskLen = v 9724 } 9725 9726 /************************************************* 9727 * DiskResizePartitionRequest 9728 *************************************************/ 9729 9730 // DiskResizePartitionRequest represents API parameter/response structure 9731 type DiskResizePartitionRequest struct { 9732 Background bool 9733 } 9734 9735 // setDefaults implements iaas.argumentDefaulter 9736 func (o *DiskResizePartitionRequest) setDefaults() interface{} { 9737 return &struct { 9738 Background bool 9739 }{ 9740 Background: o.GetBackground(), 9741 } 9742 } 9743 9744 // GetBackground returns value of Background 9745 func (o *DiskResizePartitionRequest) GetBackground() bool { 9746 return o.Background 9747 } 9748 9749 // SetBackground sets value to Background 9750 func (o *DiskResizePartitionRequest) SetBackground(v bool) { 9751 o.Background = v 9752 } 9753 9754 /************************************************* 9755 * DiskUpdateRequest 9756 *************************************************/ 9757 9758 // DiskUpdateRequest represents API parameter/response structure 9759 type DiskUpdateRequest struct { 9760 Name string 9761 Description string 9762 Tags types.Tags 9763 IconID types.ID `mapconv:"Icon.ID"` 9764 Connection types.EDiskConnection `json:",omitempty" mapconv:",omitempty"` 9765 } 9766 9767 // setDefaults implements iaas.argumentDefaulter 9768 func (o *DiskUpdateRequest) setDefaults() interface{} { 9769 return &struct { 9770 Name string 9771 Description string 9772 Tags types.Tags 9773 IconID types.ID `mapconv:"Icon.ID"` 9774 Connection types.EDiskConnection `json:",omitempty" mapconv:",omitempty"` 9775 }{ 9776 Name: o.GetName(), 9777 Description: o.GetDescription(), 9778 Tags: o.GetTags(), 9779 IconID: o.GetIconID(), 9780 Connection: o.GetConnection(), 9781 } 9782 } 9783 9784 // GetName returns value of Name 9785 func (o *DiskUpdateRequest) GetName() string { 9786 return o.Name 9787 } 9788 9789 // SetName sets value to Name 9790 func (o *DiskUpdateRequest) SetName(v string) { 9791 o.Name = v 9792 } 9793 9794 // GetDescription returns value of Description 9795 func (o *DiskUpdateRequest) GetDescription() string { 9796 return o.Description 9797 } 9798 9799 // SetDescription sets value to Description 9800 func (o *DiskUpdateRequest) SetDescription(v string) { 9801 o.Description = v 9802 } 9803 9804 // GetTags returns value of Tags 9805 func (o *DiskUpdateRequest) GetTags() types.Tags { 9806 return o.Tags 9807 } 9808 9809 // SetTags sets value to Tags 9810 func (o *DiskUpdateRequest) SetTags(v types.Tags) { 9811 o.Tags = v 9812 } 9813 9814 // HasTag 指定のタグが存在する場合trueを返す 9815 func (o *DiskUpdateRequest) HasTag(tag string) bool { 9816 return accessor.HasTag(o, tag) 9817 } 9818 9819 // AppendTag 指定のタグを追加 9820 func (o *DiskUpdateRequest) AppendTag(tag string) { 9821 accessor.AppendTag(o, tag) 9822 } 9823 9824 // RemoveTag 指定のタグを削除 9825 func (o *DiskUpdateRequest) RemoveTag(tag string) { 9826 accessor.RemoveTag(o, tag) 9827 } 9828 9829 // ClearTags タグを全クリア 9830 func (o *DiskUpdateRequest) ClearTags() { 9831 accessor.ClearTags(o) 9832 } 9833 9834 // GetIconID returns value of IconID 9835 func (o *DiskUpdateRequest) GetIconID() types.ID { 9836 return o.IconID 9837 } 9838 9839 // SetIconID sets value to IconID 9840 func (o *DiskUpdateRequest) SetIconID(v types.ID) { 9841 o.IconID = v 9842 } 9843 9844 // GetConnection returns value of Connection 9845 func (o *DiskUpdateRequest) GetConnection() types.EDiskConnection { 9846 return o.Connection 9847 } 9848 9849 // SetConnection sets value to Connection 9850 func (o *DiskUpdateRequest) SetConnection(v types.EDiskConnection) { 9851 o.Connection = v 9852 } 9853 9854 /************************************************* 9855 * DiskPlan 9856 *************************************************/ 9857 9858 // DiskPlan represents API parameter/response structure 9859 type DiskPlan struct { 9860 ID types.ID 9861 Name string 9862 StorageClass string 9863 Availability types.EAvailability 9864 Size []*DiskPlanSizeInfo `mapconv:"[]Size,recursive"` 9865 } 9866 9867 // setDefaults implements iaas.argumentDefaulter 9868 func (o *DiskPlan) setDefaults() interface{} { 9869 return &struct { 9870 ID types.ID 9871 Name string 9872 StorageClass string 9873 Availability types.EAvailability 9874 Size []*DiskPlanSizeInfo `mapconv:"[]Size,recursive"` 9875 }{ 9876 ID: o.GetID(), 9877 Name: o.GetName(), 9878 StorageClass: o.GetStorageClass(), 9879 Availability: o.GetAvailability(), 9880 Size: o.GetSize(), 9881 } 9882 } 9883 9884 // GetID returns value of ID 9885 func (o *DiskPlan) GetID() types.ID { 9886 return o.ID 9887 } 9888 9889 // SetID sets value to ID 9890 func (o *DiskPlan) SetID(v types.ID) { 9891 o.ID = v 9892 } 9893 9894 // SetStringID . 9895 func (o *DiskPlan) SetStringID(id string) { 9896 accessor.SetStringID(o, id) 9897 } 9898 9899 // GetStringID . 9900 func (o *DiskPlan) GetStringID() string { 9901 return accessor.GetStringID(o) 9902 } 9903 9904 // SetInt64ID . 9905 func (o *DiskPlan) SetInt64ID(id int64) { 9906 accessor.SetInt64ID(o, id) 9907 } 9908 9909 // GetInt64ID . 9910 func (o *DiskPlan) GetInt64ID() int64 { 9911 return accessor.GetInt64ID(o) 9912 } 9913 9914 // GetName returns value of Name 9915 func (o *DiskPlan) GetName() string { 9916 return o.Name 9917 } 9918 9919 // SetName sets value to Name 9920 func (o *DiskPlan) SetName(v string) { 9921 o.Name = v 9922 } 9923 9924 // GetStorageClass returns value of StorageClass 9925 func (o *DiskPlan) GetStorageClass() string { 9926 return o.StorageClass 9927 } 9928 9929 // SetStorageClass sets value to StorageClass 9930 func (o *DiskPlan) SetStorageClass(v string) { 9931 o.StorageClass = v 9932 } 9933 9934 // GetAvailability returns value of Availability 9935 func (o *DiskPlan) GetAvailability() types.EAvailability { 9936 return o.Availability 9937 } 9938 9939 // SetAvailability sets value to Availability 9940 func (o *DiskPlan) SetAvailability(v types.EAvailability) { 9941 o.Availability = v 9942 } 9943 9944 // GetSize returns value of Size 9945 func (o *DiskPlan) GetSize() []*DiskPlanSizeInfo { 9946 return o.Size 9947 } 9948 9949 // SetSize sets value to Size 9950 func (o *DiskPlan) SetSize(v []*DiskPlanSizeInfo) { 9951 o.Size = v 9952 } 9953 9954 /************************************************* 9955 * DiskPlanSizeInfo 9956 *************************************************/ 9957 9958 // DiskPlanSizeInfo represents API parameter/response structure 9959 type DiskPlanSizeInfo struct { 9960 Availability types.EAvailability 9961 DisplaySize int 9962 DisplaySuffix string 9963 SizeMB int 9964 } 9965 9966 // setDefaults implements iaas.argumentDefaulter 9967 func (o *DiskPlanSizeInfo) setDefaults() interface{} { 9968 return &struct { 9969 Availability types.EAvailability 9970 DisplaySize int 9971 DisplaySuffix string 9972 SizeMB int 9973 }{ 9974 Availability: o.GetAvailability(), 9975 DisplaySize: o.GetDisplaySize(), 9976 DisplaySuffix: o.GetDisplaySuffix(), 9977 SizeMB: o.GetSizeMB(), 9978 } 9979 } 9980 9981 // GetAvailability returns value of Availability 9982 func (o *DiskPlanSizeInfo) GetAvailability() types.EAvailability { 9983 return o.Availability 9984 } 9985 9986 // SetAvailability sets value to Availability 9987 func (o *DiskPlanSizeInfo) SetAvailability(v types.EAvailability) { 9988 o.Availability = v 9989 } 9990 9991 // GetDisplaySize returns value of DisplaySize 9992 func (o *DiskPlanSizeInfo) GetDisplaySize() int { 9993 return o.DisplaySize 9994 } 9995 9996 // SetDisplaySize sets value to DisplaySize 9997 func (o *DiskPlanSizeInfo) SetDisplaySize(v int) { 9998 o.DisplaySize = v 9999 } 10000 10001 // GetDisplaySuffix returns value of DisplaySuffix 10002 func (o *DiskPlanSizeInfo) GetDisplaySuffix() string { 10003 return o.DisplaySuffix 10004 } 10005 10006 // SetDisplaySuffix sets value to DisplaySuffix 10007 func (o *DiskPlanSizeInfo) SetDisplaySuffix(v string) { 10008 o.DisplaySuffix = v 10009 } 10010 10011 // GetSizeMB returns value of SizeMB 10012 func (o *DiskPlanSizeInfo) GetSizeMB() int { 10013 return o.SizeMB 10014 } 10015 10016 // SetSizeMB sets value to SizeMB 10017 func (o *DiskPlanSizeInfo) SetSizeMB(v int) { 10018 o.SizeMB = v 10019 } 10020 10021 // GetSizeGB . 10022 func (o *DiskPlanSizeInfo) GetSizeGB() int { 10023 return accessor.GetSizeGB(o) 10024 } 10025 10026 // SetSizeGB . 10027 func (o *DiskPlanSizeInfo) SetSizeGB(size int) { 10028 accessor.SetSizeGB(o, size) 10029 } 10030 10031 /************************************************* 10032 * DNS 10033 *************************************************/ 10034 10035 // DNS represents API parameter/response structure 10036 type DNS struct { 10037 ID types.ID 10038 Name string 10039 Description string 10040 Tags types.Tags 10041 Availability types.EAvailability 10042 IconID types.ID `mapconv:"Icon.ID"` 10043 CreatedAt time.Time 10044 ModifiedAt time.Time 10045 Records DNSRecords `mapconv:"Settings.DNS.[]ResourceRecordSets,recursive"` 10046 SettingsHash string `json:",omitempty" mapconv:",omitempty"` 10047 DNSZone string `mapconv:"Status.Zone"` 10048 DNSNameServers []string `mapconv:"Status.NS"` 10049 } 10050 10051 // setDefaults implements iaas.argumentDefaulter 10052 func (o *DNS) setDefaults() interface{} { 10053 return &struct { 10054 ID types.ID 10055 Name string 10056 Description string 10057 Tags types.Tags 10058 Availability types.EAvailability 10059 IconID types.ID `mapconv:"Icon.ID"` 10060 CreatedAt time.Time 10061 ModifiedAt time.Time 10062 Records DNSRecords `mapconv:"Settings.DNS.[]ResourceRecordSets,recursive"` 10063 SettingsHash string `json:",omitempty" mapconv:",omitempty"` 10064 DNSZone string `mapconv:"Status.Zone"` 10065 DNSNameServers []string `mapconv:"Status.NS"` 10066 }{ 10067 ID: o.GetID(), 10068 Name: o.GetName(), 10069 Description: o.GetDescription(), 10070 Tags: o.GetTags(), 10071 Availability: o.GetAvailability(), 10072 IconID: o.GetIconID(), 10073 CreatedAt: o.GetCreatedAt(), 10074 ModifiedAt: o.GetModifiedAt(), 10075 Records: o.GetRecords(), 10076 SettingsHash: o.GetSettingsHash(), 10077 DNSZone: o.GetDNSZone(), 10078 DNSNameServers: o.GetDNSNameServers(), 10079 } 10080 } 10081 10082 // GetID returns value of ID 10083 func (o *DNS) GetID() types.ID { 10084 return o.ID 10085 } 10086 10087 // SetID sets value to ID 10088 func (o *DNS) SetID(v types.ID) { 10089 o.ID = v 10090 } 10091 10092 // SetStringID . 10093 func (o *DNS) SetStringID(id string) { 10094 accessor.SetStringID(o, id) 10095 } 10096 10097 // GetStringID . 10098 func (o *DNS) GetStringID() string { 10099 return accessor.GetStringID(o) 10100 } 10101 10102 // SetInt64ID . 10103 func (o *DNS) SetInt64ID(id int64) { 10104 accessor.SetInt64ID(o, id) 10105 } 10106 10107 // GetInt64ID . 10108 func (o *DNS) GetInt64ID() int64 { 10109 return accessor.GetInt64ID(o) 10110 } 10111 10112 // GetName returns value of Name 10113 func (o *DNS) GetName() string { 10114 return o.Name 10115 } 10116 10117 // SetName sets value to Name 10118 func (o *DNS) SetName(v string) { 10119 o.Name = v 10120 } 10121 10122 // GetDescription returns value of Description 10123 func (o *DNS) GetDescription() string { 10124 return o.Description 10125 } 10126 10127 // SetDescription sets value to Description 10128 func (o *DNS) SetDescription(v string) { 10129 o.Description = v 10130 } 10131 10132 // GetTags returns value of Tags 10133 func (o *DNS) GetTags() types.Tags { 10134 return o.Tags 10135 } 10136 10137 // SetTags sets value to Tags 10138 func (o *DNS) SetTags(v types.Tags) { 10139 o.Tags = v 10140 } 10141 10142 // HasTag 指定のタグが存在する場合trueを返す 10143 func (o *DNS) HasTag(tag string) bool { 10144 return accessor.HasTag(o, tag) 10145 } 10146 10147 // AppendTag 指定のタグを追加 10148 func (o *DNS) AppendTag(tag string) { 10149 accessor.AppendTag(o, tag) 10150 } 10151 10152 // RemoveTag 指定のタグを削除 10153 func (o *DNS) RemoveTag(tag string) { 10154 accessor.RemoveTag(o, tag) 10155 } 10156 10157 // ClearTags タグを全クリア 10158 func (o *DNS) ClearTags() { 10159 accessor.ClearTags(o) 10160 } 10161 10162 // GetAvailability returns value of Availability 10163 func (o *DNS) GetAvailability() types.EAvailability { 10164 return o.Availability 10165 } 10166 10167 // SetAvailability sets value to Availability 10168 func (o *DNS) SetAvailability(v types.EAvailability) { 10169 o.Availability = v 10170 } 10171 10172 // GetIconID returns value of IconID 10173 func (o *DNS) GetIconID() types.ID { 10174 return o.IconID 10175 } 10176 10177 // SetIconID sets value to IconID 10178 func (o *DNS) SetIconID(v types.ID) { 10179 o.IconID = v 10180 } 10181 10182 // GetCreatedAt returns value of CreatedAt 10183 func (o *DNS) GetCreatedAt() time.Time { 10184 return o.CreatedAt 10185 } 10186 10187 // SetCreatedAt sets value to CreatedAt 10188 func (o *DNS) SetCreatedAt(v time.Time) { 10189 o.CreatedAt = v 10190 } 10191 10192 // GetModifiedAt returns value of ModifiedAt 10193 func (o *DNS) GetModifiedAt() time.Time { 10194 return o.ModifiedAt 10195 } 10196 10197 // SetModifiedAt sets value to ModifiedAt 10198 func (o *DNS) SetModifiedAt(v time.Time) { 10199 o.ModifiedAt = v 10200 } 10201 10202 // GetRecords returns value of Records 10203 func (o *DNS) GetRecords() DNSRecords { 10204 return o.Records 10205 } 10206 10207 // SetRecords sets value to Records 10208 func (o *DNS) SetRecords(v DNSRecords) { 10209 o.Records = v 10210 } 10211 10212 // GetSettingsHash returns value of SettingsHash 10213 func (o *DNS) GetSettingsHash() string { 10214 return o.SettingsHash 10215 } 10216 10217 // SetSettingsHash sets value to SettingsHash 10218 func (o *DNS) SetSettingsHash(v string) { 10219 o.SettingsHash = v 10220 } 10221 10222 // GetDNSZone returns value of DNSZone 10223 func (o *DNS) GetDNSZone() string { 10224 return o.DNSZone 10225 } 10226 10227 // SetDNSZone sets value to DNSZone 10228 func (o *DNS) SetDNSZone(v string) { 10229 o.DNSZone = v 10230 } 10231 10232 // GetDNSNameServers returns value of DNSNameServers 10233 func (o *DNS) GetDNSNameServers() []string { 10234 return o.DNSNameServers 10235 } 10236 10237 // SetDNSNameServers sets value to DNSNameServers 10238 func (o *DNS) SetDNSNameServers(v []string) { 10239 o.DNSNameServers = v 10240 } 10241 10242 /************************************************* 10243 * DNSRecord 10244 *************************************************/ 10245 10246 // DNSRecord represents API parameter/response structure 10247 type DNSRecord struct { 10248 Name string 10249 Type types.EDNSRecordType 10250 RData string 10251 TTL int 10252 } 10253 10254 // setDefaults implements iaas.argumentDefaulter 10255 func (o *DNSRecord) setDefaults() interface{} { 10256 return &struct { 10257 Name string 10258 Type types.EDNSRecordType 10259 RData string 10260 TTL int 10261 }{ 10262 Name: o.GetName(), 10263 Type: o.GetType(), 10264 RData: o.GetRData(), 10265 TTL: o.GetTTL(), 10266 } 10267 } 10268 10269 // GetName returns value of Name 10270 func (o *DNSRecord) GetName() string { 10271 return o.Name 10272 } 10273 10274 // SetName sets value to Name 10275 func (o *DNSRecord) SetName(v string) { 10276 o.Name = v 10277 } 10278 10279 // GetType returns value of Type 10280 func (o *DNSRecord) GetType() types.EDNSRecordType { 10281 return o.Type 10282 } 10283 10284 // SetType sets value to Type 10285 func (o *DNSRecord) SetType(v types.EDNSRecordType) { 10286 o.Type = v 10287 } 10288 10289 // GetRData returns value of RData 10290 func (o *DNSRecord) GetRData() string { 10291 return o.RData 10292 } 10293 10294 // SetRData sets value to RData 10295 func (o *DNSRecord) SetRData(v string) { 10296 o.RData = v 10297 } 10298 10299 // GetTTL returns value of TTL 10300 func (o *DNSRecord) GetTTL() int { 10301 return o.TTL 10302 } 10303 10304 // SetTTL sets value to TTL 10305 func (o *DNSRecord) SetTTL(v int) { 10306 o.TTL = v 10307 } 10308 10309 /************************************************* 10310 * DNSCreateRequest 10311 *************************************************/ 10312 10313 // DNSCreateRequest represents API parameter/response structure 10314 type DNSCreateRequest struct { 10315 Name string `mapconv:"Name/Status.Zone"` 10316 Records DNSRecords `mapconv:"Settings.DNS.[]ResourceRecordSets,recursive"` 10317 Description string 10318 Tags types.Tags 10319 IconID types.ID `mapconv:"Icon.ID"` 10320 } 10321 10322 // setDefaults implements iaas.argumentDefaulter 10323 func (o *DNSCreateRequest) setDefaults() interface{} { 10324 return &struct { 10325 Name string `mapconv:"Name/Status.Zone"` 10326 Records DNSRecords `mapconv:"Settings.DNS.[]ResourceRecordSets,recursive"` 10327 Description string 10328 Tags types.Tags 10329 IconID types.ID `mapconv:"Icon.ID"` 10330 Class string `mapconv:"Provider.Class"` 10331 }{ 10332 Name: o.GetName(), 10333 Records: o.GetRecords(), 10334 Description: o.GetDescription(), 10335 Tags: o.GetTags(), 10336 IconID: o.GetIconID(), 10337 Class: "dns", 10338 } 10339 } 10340 10341 // GetName returns value of Name 10342 func (o *DNSCreateRequest) GetName() string { 10343 return o.Name 10344 } 10345 10346 // SetName sets value to Name 10347 func (o *DNSCreateRequest) SetName(v string) { 10348 o.Name = v 10349 } 10350 10351 // GetRecords returns value of Records 10352 func (o *DNSCreateRequest) GetRecords() DNSRecords { 10353 return o.Records 10354 } 10355 10356 // SetRecords sets value to Records 10357 func (o *DNSCreateRequest) SetRecords(v DNSRecords) { 10358 o.Records = v 10359 } 10360 10361 // GetDescription returns value of Description 10362 func (o *DNSCreateRequest) GetDescription() string { 10363 return o.Description 10364 } 10365 10366 // SetDescription sets value to Description 10367 func (o *DNSCreateRequest) SetDescription(v string) { 10368 o.Description = v 10369 } 10370 10371 // GetTags returns value of Tags 10372 func (o *DNSCreateRequest) GetTags() types.Tags { 10373 return o.Tags 10374 } 10375 10376 // SetTags sets value to Tags 10377 func (o *DNSCreateRequest) SetTags(v types.Tags) { 10378 o.Tags = v 10379 } 10380 10381 // HasTag 指定のタグが存在する場合trueを返す 10382 func (o *DNSCreateRequest) HasTag(tag string) bool { 10383 return accessor.HasTag(o, tag) 10384 } 10385 10386 // AppendTag 指定のタグを追加 10387 func (o *DNSCreateRequest) AppendTag(tag string) { 10388 accessor.AppendTag(o, tag) 10389 } 10390 10391 // RemoveTag 指定のタグを削除 10392 func (o *DNSCreateRequest) RemoveTag(tag string) { 10393 accessor.RemoveTag(o, tag) 10394 } 10395 10396 // ClearTags タグを全クリア 10397 func (o *DNSCreateRequest) ClearTags() { 10398 accessor.ClearTags(o) 10399 } 10400 10401 // GetIconID returns value of IconID 10402 func (o *DNSCreateRequest) GetIconID() types.ID { 10403 return o.IconID 10404 } 10405 10406 // SetIconID sets value to IconID 10407 func (o *DNSCreateRequest) SetIconID(v types.ID) { 10408 o.IconID = v 10409 } 10410 10411 /************************************************* 10412 * DNSUpdateRequest 10413 *************************************************/ 10414 10415 // DNSUpdateRequest represents API parameter/response structure 10416 type DNSUpdateRequest struct { 10417 Description string 10418 Tags types.Tags 10419 IconID types.ID `mapconv:"Icon.ID"` 10420 Records DNSRecords `mapconv:"Settings.DNS.[]ResourceRecordSets,recursive"` 10421 SettingsHash string `json:",omitempty" mapconv:",omitempty"` 10422 } 10423 10424 // setDefaults implements iaas.argumentDefaulter 10425 func (o *DNSUpdateRequest) setDefaults() interface{} { 10426 return &struct { 10427 Description string 10428 Tags types.Tags 10429 IconID types.ID `mapconv:"Icon.ID"` 10430 Records DNSRecords `mapconv:"Settings.DNS.[]ResourceRecordSets,recursive"` 10431 SettingsHash string `json:",omitempty" mapconv:",omitempty"` 10432 }{ 10433 Description: o.GetDescription(), 10434 Tags: o.GetTags(), 10435 IconID: o.GetIconID(), 10436 Records: o.GetRecords(), 10437 SettingsHash: o.GetSettingsHash(), 10438 } 10439 } 10440 10441 // GetDescription returns value of Description 10442 func (o *DNSUpdateRequest) GetDescription() string { 10443 return o.Description 10444 } 10445 10446 // SetDescription sets value to Description 10447 func (o *DNSUpdateRequest) SetDescription(v string) { 10448 o.Description = v 10449 } 10450 10451 // GetTags returns value of Tags 10452 func (o *DNSUpdateRequest) GetTags() types.Tags { 10453 return o.Tags 10454 } 10455 10456 // SetTags sets value to Tags 10457 func (o *DNSUpdateRequest) SetTags(v types.Tags) { 10458 o.Tags = v 10459 } 10460 10461 // HasTag 指定のタグが存在する場合trueを返す 10462 func (o *DNSUpdateRequest) HasTag(tag string) bool { 10463 return accessor.HasTag(o, tag) 10464 } 10465 10466 // AppendTag 指定のタグを追加 10467 func (o *DNSUpdateRequest) AppendTag(tag string) { 10468 accessor.AppendTag(o, tag) 10469 } 10470 10471 // RemoveTag 指定のタグを削除 10472 func (o *DNSUpdateRequest) RemoveTag(tag string) { 10473 accessor.RemoveTag(o, tag) 10474 } 10475 10476 // ClearTags タグを全クリア 10477 func (o *DNSUpdateRequest) ClearTags() { 10478 accessor.ClearTags(o) 10479 } 10480 10481 // GetIconID returns value of IconID 10482 func (o *DNSUpdateRequest) GetIconID() types.ID { 10483 return o.IconID 10484 } 10485 10486 // SetIconID sets value to IconID 10487 func (o *DNSUpdateRequest) SetIconID(v types.ID) { 10488 o.IconID = v 10489 } 10490 10491 // GetRecords returns value of Records 10492 func (o *DNSUpdateRequest) GetRecords() DNSRecords { 10493 return o.Records 10494 } 10495 10496 // SetRecords sets value to Records 10497 func (o *DNSUpdateRequest) SetRecords(v DNSRecords) { 10498 o.Records = v 10499 } 10500 10501 // GetSettingsHash returns value of SettingsHash 10502 func (o *DNSUpdateRequest) GetSettingsHash() string { 10503 return o.SettingsHash 10504 } 10505 10506 // SetSettingsHash sets value to SettingsHash 10507 func (o *DNSUpdateRequest) SetSettingsHash(v string) { 10508 o.SettingsHash = v 10509 } 10510 10511 /************************************************* 10512 * DNSUpdateSettingsRequest 10513 *************************************************/ 10514 10515 // DNSUpdateSettingsRequest represents API parameter/response structure 10516 type DNSUpdateSettingsRequest struct { 10517 Records DNSRecords `mapconv:"Settings.DNS.[]ResourceRecordSets,recursive"` 10518 SettingsHash string `json:",omitempty" mapconv:",omitempty"` 10519 } 10520 10521 // setDefaults implements iaas.argumentDefaulter 10522 func (o *DNSUpdateSettingsRequest) setDefaults() interface{} { 10523 return &struct { 10524 Records DNSRecords `mapconv:"Settings.DNS.[]ResourceRecordSets,recursive"` 10525 SettingsHash string `json:",omitempty" mapconv:",omitempty"` 10526 }{ 10527 Records: o.GetRecords(), 10528 SettingsHash: o.GetSettingsHash(), 10529 } 10530 } 10531 10532 // GetRecords returns value of Records 10533 func (o *DNSUpdateSettingsRequest) GetRecords() DNSRecords { 10534 return o.Records 10535 } 10536 10537 // SetRecords sets value to Records 10538 func (o *DNSUpdateSettingsRequest) SetRecords(v DNSRecords) { 10539 o.Records = v 10540 } 10541 10542 // GetSettingsHash returns value of SettingsHash 10543 func (o *DNSUpdateSettingsRequest) GetSettingsHash() string { 10544 return o.SettingsHash 10545 } 10546 10547 // SetSettingsHash sets value to SettingsHash 10548 func (o *DNSUpdateSettingsRequest) SetSettingsHash(v string) { 10549 o.SettingsHash = v 10550 } 10551 10552 /************************************************* 10553 * EnhancedDB 10554 *************************************************/ 10555 10556 // EnhancedDB represents API parameter/response structure 10557 type EnhancedDB struct { 10558 ID types.ID 10559 Name string 10560 Description string 10561 Tags types.Tags 10562 Availability types.EAvailability 10563 IconID types.ID `mapconv:"Icon.ID"` 10564 CreatedAt time.Time 10565 ModifiedAt time.Time 10566 SettingsHash string `json:",omitempty" mapconv:",omitempty"` 10567 DatabaseName string `mapconv:"Status.DatabaseName"` 10568 DatabaseType types.EnhancedDBType `mapconv:"Status.DatabaseType"` 10569 Region types.EnhancedDBRegion `mapconv:"Status.Region"` 10570 HostName string `mapconv:"Status.HostName"` 10571 Port int `mapconv:"Status.Port"` 10572 } 10573 10574 // setDefaults implements iaas.argumentDefaulter 10575 func (o *EnhancedDB) setDefaults() interface{} { 10576 return &struct { 10577 ID types.ID 10578 Name string 10579 Description string 10580 Tags types.Tags 10581 Availability types.EAvailability 10582 IconID types.ID `mapconv:"Icon.ID"` 10583 CreatedAt time.Time 10584 ModifiedAt time.Time 10585 SettingsHash string `json:",omitempty" mapconv:",omitempty"` 10586 DatabaseName string `mapconv:"Status.DatabaseName"` 10587 DatabaseType types.EnhancedDBType `mapconv:"Status.DatabaseType"` 10588 Region types.EnhancedDBRegion `mapconv:"Status.Region"` 10589 HostName string `mapconv:"Status.HostName"` 10590 Port int `mapconv:"Status.Port"` 10591 }{ 10592 ID: o.GetID(), 10593 Name: o.GetName(), 10594 Description: o.GetDescription(), 10595 Tags: o.GetTags(), 10596 Availability: o.GetAvailability(), 10597 IconID: o.GetIconID(), 10598 CreatedAt: o.GetCreatedAt(), 10599 ModifiedAt: o.GetModifiedAt(), 10600 SettingsHash: o.GetSettingsHash(), 10601 DatabaseName: o.GetDatabaseName(), 10602 DatabaseType: o.GetDatabaseType(), 10603 Region: o.GetRegion(), 10604 HostName: o.GetHostName(), 10605 Port: o.GetPort(), 10606 } 10607 } 10608 10609 // GetID returns value of ID 10610 func (o *EnhancedDB) GetID() types.ID { 10611 return o.ID 10612 } 10613 10614 // SetID sets value to ID 10615 func (o *EnhancedDB) SetID(v types.ID) { 10616 o.ID = v 10617 } 10618 10619 // SetStringID . 10620 func (o *EnhancedDB) SetStringID(id string) { 10621 accessor.SetStringID(o, id) 10622 } 10623 10624 // GetStringID . 10625 func (o *EnhancedDB) GetStringID() string { 10626 return accessor.GetStringID(o) 10627 } 10628 10629 // SetInt64ID . 10630 func (o *EnhancedDB) SetInt64ID(id int64) { 10631 accessor.SetInt64ID(o, id) 10632 } 10633 10634 // GetInt64ID . 10635 func (o *EnhancedDB) GetInt64ID() int64 { 10636 return accessor.GetInt64ID(o) 10637 } 10638 10639 // GetName returns value of Name 10640 func (o *EnhancedDB) GetName() string { 10641 return o.Name 10642 } 10643 10644 // SetName sets value to Name 10645 func (o *EnhancedDB) SetName(v string) { 10646 o.Name = v 10647 } 10648 10649 // GetDescription returns value of Description 10650 func (o *EnhancedDB) GetDescription() string { 10651 return o.Description 10652 } 10653 10654 // SetDescription sets value to Description 10655 func (o *EnhancedDB) SetDescription(v string) { 10656 o.Description = v 10657 } 10658 10659 // GetTags returns value of Tags 10660 func (o *EnhancedDB) GetTags() types.Tags { 10661 return o.Tags 10662 } 10663 10664 // SetTags sets value to Tags 10665 func (o *EnhancedDB) SetTags(v types.Tags) { 10666 o.Tags = v 10667 } 10668 10669 // HasTag 指定のタグが存在する場合trueを返す 10670 func (o *EnhancedDB) HasTag(tag string) bool { 10671 return accessor.HasTag(o, tag) 10672 } 10673 10674 // AppendTag 指定のタグを追加 10675 func (o *EnhancedDB) AppendTag(tag string) { 10676 accessor.AppendTag(o, tag) 10677 } 10678 10679 // RemoveTag 指定のタグを削除 10680 func (o *EnhancedDB) RemoveTag(tag string) { 10681 accessor.RemoveTag(o, tag) 10682 } 10683 10684 // ClearTags タグを全クリア 10685 func (o *EnhancedDB) ClearTags() { 10686 accessor.ClearTags(o) 10687 } 10688 10689 // GetAvailability returns value of Availability 10690 func (o *EnhancedDB) GetAvailability() types.EAvailability { 10691 return o.Availability 10692 } 10693 10694 // SetAvailability sets value to Availability 10695 func (o *EnhancedDB) SetAvailability(v types.EAvailability) { 10696 o.Availability = v 10697 } 10698 10699 // GetIconID returns value of IconID 10700 func (o *EnhancedDB) GetIconID() types.ID { 10701 return o.IconID 10702 } 10703 10704 // SetIconID sets value to IconID 10705 func (o *EnhancedDB) SetIconID(v types.ID) { 10706 o.IconID = v 10707 } 10708 10709 // GetCreatedAt returns value of CreatedAt 10710 func (o *EnhancedDB) GetCreatedAt() time.Time { 10711 return o.CreatedAt 10712 } 10713 10714 // SetCreatedAt sets value to CreatedAt 10715 func (o *EnhancedDB) SetCreatedAt(v time.Time) { 10716 o.CreatedAt = v 10717 } 10718 10719 // GetModifiedAt returns value of ModifiedAt 10720 func (o *EnhancedDB) GetModifiedAt() time.Time { 10721 return o.ModifiedAt 10722 } 10723 10724 // SetModifiedAt sets value to ModifiedAt 10725 func (o *EnhancedDB) SetModifiedAt(v time.Time) { 10726 o.ModifiedAt = v 10727 } 10728 10729 // GetSettingsHash returns value of SettingsHash 10730 func (o *EnhancedDB) GetSettingsHash() string { 10731 return o.SettingsHash 10732 } 10733 10734 // SetSettingsHash sets value to SettingsHash 10735 func (o *EnhancedDB) SetSettingsHash(v string) { 10736 o.SettingsHash = v 10737 } 10738 10739 // GetDatabaseName returns value of DatabaseName 10740 func (o *EnhancedDB) GetDatabaseName() string { 10741 return o.DatabaseName 10742 } 10743 10744 // SetDatabaseName sets value to DatabaseName 10745 func (o *EnhancedDB) SetDatabaseName(v string) { 10746 o.DatabaseName = v 10747 } 10748 10749 // GetDatabaseType returns value of DatabaseType 10750 func (o *EnhancedDB) GetDatabaseType() types.EnhancedDBType { 10751 return o.DatabaseType 10752 } 10753 10754 // SetDatabaseType sets value to DatabaseType 10755 func (o *EnhancedDB) SetDatabaseType(v types.EnhancedDBType) { 10756 o.DatabaseType = v 10757 } 10758 10759 // GetRegion returns value of Region 10760 func (o *EnhancedDB) GetRegion() types.EnhancedDBRegion { 10761 return o.Region 10762 } 10763 10764 // SetRegion sets value to Region 10765 func (o *EnhancedDB) SetRegion(v types.EnhancedDBRegion) { 10766 o.Region = v 10767 } 10768 10769 // GetHostName returns value of HostName 10770 func (o *EnhancedDB) GetHostName() string { 10771 return o.HostName 10772 } 10773 10774 // SetHostName sets value to HostName 10775 func (o *EnhancedDB) SetHostName(v string) { 10776 o.HostName = v 10777 } 10778 10779 // GetPort returns value of Port 10780 func (o *EnhancedDB) GetPort() int { 10781 return o.Port 10782 } 10783 10784 // SetPort sets value to Port 10785 func (o *EnhancedDB) SetPort(v int) { 10786 o.Port = v 10787 } 10788 10789 /************************************************* 10790 * EnhancedDBCreateRequest 10791 *************************************************/ 10792 10793 // EnhancedDBCreateRequest represents API parameter/response structure 10794 type EnhancedDBCreateRequest struct { 10795 Name string 10796 Description string 10797 Tags types.Tags 10798 IconID types.ID `mapconv:"Icon.ID"` 10799 DatabaseName string `mapconv:"Status.DatabaseName"` 10800 DatabaseType types.EnhancedDBType `mapconv:"Status.DatabaseType"` 10801 Region types.EnhancedDBRegion `mapconv:"Status.Region"` 10802 } 10803 10804 // setDefaults implements iaas.argumentDefaulter 10805 func (o *EnhancedDBCreateRequest) setDefaults() interface{} { 10806 return &struct { 10807 Name string 10808 Description string 10809 Tags types.Tags 10810 IconID types.ID `mapconv:"Icon.ID"` 10811 DatabaseName string `mapconv:"Status.DatabaseName"` 10812 DatabaseType types.EnhancedDBType `mapconv:"Status.DatabaseType"` 10813 Region types.EnhancedDBRegion `mapconv:"Status.Region"` 10814 Class string `mapconv:"Provider.Class"` 10815 MaxConnections int `mapconv:"Config.MaxConnections"` 10816 AllowedNetworks []string `mapconv:"Config.AllowedNetworks"` 10817 }{ 10818 Name: o.GetName(), 10819 Description: o.GetDescription(), 10820 Tags: o.GetTags(), 10821 IconID: o.GetIconID(), 10822 DatabaseName: o.GetDatabaseName(), 10823 DatabaseType: o.GetDatabaseType(), 10824 Region: o.GetRegion(), 10825 Class: "enhanceddb", 10826 MaxConnections: 50, 10827 AllowedNetworks: []string{}, 10828 } 10829 } 10830 10831 // GetName returns value of Name 10832 func (o *EnhancedDBCreateRequest) GetName() string { 10833 return o.Name 10834 } 10835 10836 // SetName sets value to Name 10837 func (o *EnhancedDBCreateRequest) SetName(v string) { 10838 o.Name = v 10839 } 10840 10841 // GetDescription returns value of Description 10842 func (o *EnhancedDBCreateRequest) GetDescription() string { 10843 return o.Description 10844 } 10845 10846 // SetDescription sets value to Description 10847 func (o *EnhancedDBCreateRequest) SetDescription(v string) { 10848 o.Description = v 10849 } 10850 10851 // GetTags returns value of Tags 10852 func (o *EnhancedDBCreateRequest) GetTags() types.Tags { 10853 return o.Tags 10854 } 10855 10856 // SetTags sets value to Tags 10857 func (o *EnhancedDBCreateRequest) SetTags(v types.Tags) { 10858 o.Tags = v 10859 } 10860 10861 // HasTag 指定のタグが存在する場合trueを返す 10862 func (o *EnhancedDBCreateRequest) HasTag(tag string) bool { 10863 return accessor.HasTag(o, tag) 10864 } 10865 10866 // AppendTag 指定のタグを追加 10867 func (o *EnhancedDBCreateRequest) AppendTag(tag string) { 10868 accessor.AppendTag(o, tag) 10869 } 10870 10871 // RemoveTag 指定のタグを削除 10872 func (o *EnhancedDBCreateRequest) RemoveTag(tag string) { 10873 accessor.RemoveTag(o, tag) 10874 } 10875 10876 // ClearTags タグを全クリア 10877 func (o *EnhancedDBCreateRequest) ClearTags() { 10878 accessor.ClearTags(o) 10879 } 10880 10881 // GetIconID returns value of IconID 10882 func (o *EnhancedDBCreateRequest) GetIconID() types.ID { 10883 return o.IconID 10884 } 10885 10886 // SetIconID sets value to IconID 10887 func (o *EnhancedDBCreateRequest) SetIconID(v types.ID) { 10888 o.IconID = v 10889 } 10890 10891 // GetDatabaseName returns value of DatabaseName 10892 func (o *EnhancedDBCreateRequest) GetDatabaseName() string { 10893 return o.DatabaseName 10894 } 10895 10896 // SetDatabaseName sets value to DatabaseName 10897 func (o *EnhancedDBCreateRequest) SetDatabaseName(v string) { 10898 o.DatabaseName = v 10899 } 10900 10901 // GetDatabaseType returns value of DatabaseType 10902 func (o *EnhancedDBCreateRequest) GetDatabaseType() types.EnhancedDBType { 10903 return o.DatabaseType 10904 } 10905 10906 // SetDatabaseType sets value to DatabaseType 10907 func (o *EnhancedDBCreateRequest) SetDatabaseType(v types.EnhancedDBType) { 10908 o.DatabaseType = v 10909 } 10910 10911 // GetRegion returns value of Region 10912 func (o *EnhancedDBCreateRequest) GetRegion() types.EnhancedDBRegion { 10913 return o.Region 10914 } 10915 10916 // SetRegion sets value to Region 10917 func (o *EnhancedDBCreateRequest) SetRegion(v types.EnhancedDBRegion) { 10918 o.Region = v 10919 } 10920 10921 /************************************************* 10922 * EnhancedDBUpdateRequest 10923 *************************************************/ 10924 10925 // EnhancedDBUpdateRequest represents API parameter/response structure 10926 type EnhancedDBUpdateRequest struct { 10927 Name string 10928 Description string 10929 Tags types.Tags 10930 IconID types.ID `mapconv:"Icon.ID"` 10931 SettingsHash string `json:",omitempty" mapconv:",omitempty"` 10932 } 10933 10934 // setDefaults implements iaas.argumentDefaulter 10935 func (o *EnhancedDBUpdateRequest) setDefaults() interface{} { 10936 return &struct { 10937 Name string 10938 Description string 10939 Tags types.Tags 10940 IconID types.ID `mapconv:"Icon.ID"` 10941 SettingsHash string `json:",omitempty" mapconv:",omitempty"` 10942 }{ 10943 Name: o.GetName(), 10944 Description: o.GetDescription(), 10945 Tags: o.GetTags(), 10946 IconID: o.GetIconID(), 10947 SettingsHash: o.GetSettingsHash(), 10948 } 10949 } 10950 10951 // GetName returns value of Name 10952 func (o *EnhancedDBUpdateRequest) GetName() string { 10953 return o.Name 10954 } 10955 10956 // SetName sets value to Name 10957 func (o *EnhancedDBUpdateRequest) SetName(v string) { 10958 o.Name = v 10959 } 10960 10961 // GetDescription returns value of Description 10962 func (o *EnhancedDBUpdateRequest) GetDescription() string { 10963 return o.Description 10964 } 10965 10966 // SetDescription sets value to Description 10967 func (o *EnhancedDBUpdateRequest) SetDescription(v string) { 10968 o.Description = v 10969 } 10970 10971 // GetTags returns value of Tags 10972 func (o *EnhancedDBUpdateRequest) GetTags() types.Tags { 10973 return o.Tags 10974 } 10975 10976 // SetTags sets value to Tags 10977 func (o *EnhancedDBUpdateRequest) SetTags(v types.Tags) { 10978 o.Tags = v 10979 } 10980 10981 // HasTag 指定のタグが存在する場合trueを返す 10982 func (o *EnhancedDBUpdateRequest) HasTag(tag string) bool { 10983 return accessor.HasTag(o, tag) 10984 } 10985 10986 // AppendTag 指定のタグを追加 10987 func (o *EnhancedDBUpdateRequest) AppendTag(tag string) { 10988 accessor.AppendTag(o, tag) 10989 } 10990 10991 // RemoveTag 指定のタグを削除 10992 func (o *EnhancedDBUpdateRequest) RemoveTag(tag string) { 10993 accessor.RemoveTag(o, tag) 10994 } 10995 10996 // ClearTags タグを全クリア 10997 func (o *EnhancedDBUpdateRequest) ClearTags() { 10998 accessor.ClearTags(o) 10999 } 11000 11001 // GetIconID returns value of IconID 11002 func (o *EnhancedDBUpdateRequest) GetIconID() types.ID { 11003 return o.IconID 11004 } 11005 11006 // SetIconID sets value to IconID 11007 func (o *EnhancedDBUpdateRequest) SetIconID(v types.ID) { 11008 o.IconID = v 11009 } 11010 11011 // GetSettingsHash returns value of SettingsHash 11012 func (o *EnhancedDBUpdateRequest) GetSettingsHash() string { 11013 return o.SettingsHash 11014 } 11015 11016 // SetSettingsHash sets value to SettingsHash 11017 func (o *EnhancedDBUpdateRequest) SetSettingsHash(v string) { 11018 o.SettingsHash = v 11019 } 11020 11021 /************************************************* 11022 * EnhancedDBSetPasswordRequest 11023 *************************************************/ 11024 11025 // EnhancedDBSetPasswordRequest represents API parameter/response structure 11026 type EnhancedDBSetPasswordRequest struct { 11027 Password string `mapconv:"EnhancedDB.Password"` 11028 } 11029 11030 // setDefaults implements iaas.argumentDefaulter 11031 func (o *EnhancedDBSetPasswordRequest) setDefaults() interface{} { 11032 return &struct { 11033 Password string `mapconv:"EnhancedDB.Password"` 11034 }{ 11035 Password: o.GetPassword(), 11036 } 11037 } 11038 11039 // GetPassword returns value of Password 11040 func (o *EnhancedDBSetPasswordRequest) GetPassword() string { 11041 return o.Password 11042 } 11043 11044 // SetPassword sets value to Password 11045 func (o *EnhancedDBSetPasswordRequest) SetPassword(v string) { 11046 o.Password = v 11047 } 11048 11049 /************************************************* 11050 * EnhancedDBConfig 11051 *************************************************/ 11052 11053 // EnhancedDBConfig represents API parameter/response structure 11054 type EnhancedDBConfig struct { 11055 MaxConnections int 11056 AllowedNetworks []string 11057 } 11058 11059 // setDefaults implements iaas.argumentDefaulter 11060 func (o *EnhancedDBConfig) setDefaults() interface{} { 11061 return &struct { 11062 MaxConnections int 11063 AllowedNetworks []string 11064 }{ 11065 MaxConnections: o.GetMaxConnections(), 11066 AllowedNetworks: o.GetAllowedNetworks(), 11067 } 11068 } 11069 11070 // GetMaxConnections returns value of MaxConnections 11071 func (o *EnhancedDBConfig) GetMaxConnections() int { 11072 return o.MaxConnections 11073 } 11074 11075 // SetMaxConnections sets value to MaxConnections 11076 func (o *EnhancedDBConfig) SetMaxConnections(v int) { 11077 o.MaxConnections = v 11078 } 11079 11080 // GetAllowedNetworks returns value of AllowedNetworks 11081 func (o *EnhancedDBConfig) GetAllowedNetworks() []string { 11082 return o.AllowedNetworks 11083 } 11084 11085 // SetAllowedNetworks sets value to AllowedNetworks 11086 func (o *EnhancedDBConfig) SetAllowedNetworks(v []string) { 11087 o.AllowedNetworks = v 11088 } 11089 11090 /************************************************* 11091 * EnhancedDBSetConfigRequest 11092 *************************************************/ 11093 11094 // EnhancedDBSetConfigRequest represents API parameter/response structure 11095 type EnhancedDBSetConfigRequest struct { 11096 AllowedNetworks []string `mapconv:"EnhancedDB.AllowedNetworks"` 11097 } 11098 11099 // setDefaults implements iaas.argumentDefaulter 11100 func (o *EnhancedDBSetConfigRequest) setDefaults() interface{} { 11101 return &struct { 11102 AllowedNetworks []string `mapconv:"EnhancedDB.AllowedNetworks"` 11103 MaxConnections int `mapconv:"EnhancedDB.MaxConnections"` 11104 }{ 11105 AllowedNetworks: o.GetAllowedNetworks(), 11106 MaxConnections: 50, 11107 } 11108 } 11109 11110 // GetAllowedNetworks returns value of AllowedNetworks 11111 func (o *EnhancedDBSetConfigRequest) GetAllowedNetworks() []string { 11112 return o.AllowedNetworks 11113 } 11114 11115 // SetAllowedNetworks sets value to AllowedNetworks 11116 func (o *EnhancedDBSetConfigRequest) SetAllowedNetworks(v []string) { 11117 o.AllowedNetworks = v 11118 } 11119 11120 /************************************************* 11121 * ESME 11122 *************************************************/ 11123 11124 // ESME represents API parameter/response structure 11125 type ESME struct { 11126 ID types.ID 11127 Name string 11128 Description string 11129 Tags types.Tags 11130 Availability types.EAvailability 11131 IconID types.ID `mapconv:"Icon.ID"` 11132 CreatedAt time.Time 11133 ModifiedAt time.Time 11134 } 11135 11136 // setDefaults implements iaas.argumentDefaulter 11137 func (o *ESME) setDefaults() interface{} { 11138 return &struct { 11139 ID types.ID 11140 Name string 11141 Description string 11142 Tags types.Tags 11143 Availability types.EAvailability 11144 IconID types.ID `mapconv:"Icon.ID"` 11145 CreatedAt time.Time 11146 ModifiedAt time.Time 11147 }{ 11148 ID: o.GetID(), 11149 Name: o.GetName(), 11150 Description: o.GetDescription(), 11151 Tags: o.GetTags(), 11152 Availability: o.GetAvailability(), 11153 IconID: o.GetIconID(), 11154 CreatedAt: o.GetCreatedAt(), 11155 ModifiedAt: o.GetModifiedAt(), 11156 } 11157 } 11158 11159 // GetID returns value of ID 11160 func (o *ESME) GetID() types.ID { 11161 return o.ID 11162 } 11163 11164 // SetID sets value to ID 11165 func (o *ESME) SetID(v types.ID) { 11166 o.ID = v 11167 } 11168 11169 // SetStringID . 11170 func (o *ESME) SetStringID(id string) { 11171 accessor.SetStringID(o, id) 11172 } 11173 11174 // GetStringID . 11175 func (o *ESME) GetStringID() string { 11176 return accessor.GetStringID(o) 11177 } 11178 11179 // SetInt64ID . 11180 func (o *ESME) SetInt64ID(id int64) { 11181 accessor.SetInt64ID(o, id) 11182 } 11183 11184 // GetInt64ID . 11185 func (o *ESME) GetInt64ID() int64 { 11186 return accessor.GetInt64ID(o) 11187 } 11188 11189 // GetName returns value of Name 11190 func (o *ESME) GetName() string { 11191 return o.Name 11192 } 11193 11194 // SetName sets value to Name 11195 func (o *ESME) SetName(v string) { 11196 o.Name = v 11197 } 11198 11199 // GetDescription returns value of Description 11200 func (o *ESME) GetDescription() string { 11201 return o.Description 11202 } 11203 11204 // SetDescription sets value to Description 11205 func (o *ESME) SetDescription(v string) { 11206 o.Description = v 11207 } 11208 11209 // GetTags returns value of Tags 11210 func (o *ESME) GetTags() types.Tags { 11211 return o.Tags 11212 } 11213 11214 // SetTags sets value to Tags 11215 func (o *ESME) SetTags(v types.Tags) { 11216 o.Tags = v 11217 } 11218 11219 // HasTag 指定のタグが存在する場合trueを返す 11220 func (o *ESME) HasTag(tag string) bool { 11221 return accessor.HasTag(o, tag) 11222 } 11223 11224 // AppendTag 指定のタグを追加 11225 func (o *ESME) AppendTag(tag string) { 11226 accessor.AppendTag(o, tag) 11227 } 11228 11229 // RemoveTag 指定のタグを削除 11230 func (o *ESME) RemoveTag(tag string) { 11231 accessor.RemoveTag(o, tag) 11232 } 11233 11234 // ClearTags タグを全クリア 11235 func (o *ESME) ClearTags() { 11236 accessor.ClearTags(o) 11237 } 11238 11239 // GetAvailability returns value of Availability 11240 func (o *ESME) GetAvailability() types.EAvailability { 11241 return o.Availability 11242 } 11243 11244 // SetAvailability sets value to Availability 11245 func (o *ESME) SetAvailability(v types.EAvailability) { 11246 o.Availability = v 11247 } 11248 11249 // GetIconID returns value of IconID 11250 func (o *ESME) GetIconID() types.ID { 11251 return o.IconID 11252 } 11253 11254 // SetIconID sets value to IconID 11255 func (o *ESME) SetIconID(v types.ID) { 11256 o.IconID = v 11257 } 11258 11259 // GetCreatedAt returns value of CreatedAt 11260 func (o *ESME) GetCreatedAt() time.Time { 11261 return o.CreatedAt 11262 } 11263 11264 // SetCreatedAt sets value to CreatedAt 11265 func (o *ESME) SetCreatedAt(v time.Time) { 11266 o.CreatedAt = v 11267 } 11268 11269 // GetModifiedAt returns value of ModifiedAt 11270 func (o *ESME) GetModifiedAt() time.Time { 11271 return o.ModifiedAt 11272 } 11273 11274 // SetModifiedAt sets value to ModifiedAt 11275 func (o *ESME) SetModifiedAt(v time.Time) { 11276 o.ModifiedAt = v 11277 } 11278 11279 /************************************************* 11280 * ESMECreateRequest 11281 *************************************************/ 11282 11283 // ESMECreateRequest represents API parameter/response structure 11284 type ESMECreateRequest struct { 11285 Name string 11286 Description string 11287 Tags types.Tags 11288 IconID types.ID `mapconv:"Icon.ID"` 11289 } 11290 11291 // setDefaults implements iaas.argumentDefaulter 11292 func (o *ESMECreateRequest) setDefaults() interface{} { 11293 return &struct { 11294 Name string 11295 Description string 11296 Tags types.Tags 11297 IconID types.ID `mapconv:"Icon.ID"` 11298 Class string `mapconv:"Provider.Class"` 11299 }{ 11300 Name: o.GetName(), 11301 Description: o.GetDescription(), 11302 Tags: o.GetTags(), 11303 IconID: o.GetIconID(), 11304 Class: "esme", 11305 } 11306 } 11307 11308 // GetName returns value of Name 11309 func (o *ESMECreateRequest) GetName() string { 11310 return o.Name 11311 } 11312 11313 // SetName sets value to Name 11314 func (o *ESMECreateRequest) SetName(v string) { 11315 o.Name = v 11316 } 11317 11318 // GetDescription returns value of Description 11319 func (o *ESMECreateRequest) GetDescription() string { 11320 return o.Description 11321 } 11322 11323 // SetDescription sets value to Description 11324 func (o *ESMECreateRequest) SetDescription(v string) { 11325 o.Description = v 11326 } 11327 11328 // GetTags returns value of Tags 11329 func (o *ESMECreateRequest) GetTags() types.Tags { 11330 return o.Tags 11331 } 11332 11333 // SetTags sets value to Tags 11334 func (o *ESMECreateRequest) SetTags(v types.Tags) { 11335 o.Tags = v 11336 } 11337 11338 // HasTag 指定のタグが存在する場合trueを返す 11339 func (o *ESMECreateRequest) HasTag(tag string) bool { 11340 return accessor.HasTag(o, tag) 11341 } 11342 11343 // AppendTag 指定のタグを追加 11344 func (o *ESMECreateRequest) AppendTag(tag string) { 11345 accessor.AppendTag(o, tag) 11346 } 11347 11348 // RemoveTag 指定のタグを削除 11349 func (o *ESMECreateRequest) RemoveTag(tag string) { 11350 accessor.RemoveTag(o, tag) 11351 } 11352 11353 // ClearTags タグを全クリア 11354 func (o *ESMECreateRequest) ClearTags() { 11355 accessor.ClearTags(o) 11356 } 11357 11358 // GetIconID returns value of IconID 11359 func (o *ESMECreateRequest) GetIconID() types.ID { 11360 return o.IconID 11361 } 11362 11363 // SetIconID sets value to IconID 11364 func (o *ESMECreateRequest) SetIconID(v types.ID) { 11365 o.IconID = v 11366 } 11367 11368 /************************************************* 11369 * ESMEUpdateRequest 11370 *************************************************/ 11371 11372 // ESMEUpdateRequest represents API parameter/response structure 11373 type ESMEUpdateRequest struct { 11374 Name string 11375 Description string 11376 Tags types.Tags 11377 IconID types.ID `mapconv:"Icon.ID"` 11378 } 11379 11380 // setDefaults implements iaas.argumentDefaulter 11381 func (o *ESMEUpdateRequest) setDefaults() interface{} { 11382 return &struct { 11383 Name string 11384 Description string 11385 Tags types.Tags 11386 IconID types.ID `mapconv:"Icon.ID"` 11387 }{ 11388 Name: o.GetName(), 11389 Description: o.GetDescription(), 11390 Tags: o.GetTags(), 11391 IconID: o.GetIconID(), 11392 } 11393 } 11394 11395 // GetName returns value of Name 11396 func (o *ESMEUpdateRequest) GetName() string { 11397 return o.Name 11398 } 11399 11400 // SetName sets value to Name 11401 func (o *ESMEUpdateRequest) SetName(v string) { 11402 o.Name = v 11403 } 11404 11405 // GetDescription returns value of Description 11406 func (o *ESMEUpdateRequest) GetDescription() string { 11407 return o.Description 11408 } 11409 11410 // SetDescription sets value to Description 11411 func (o *ESMEUpdateRequest) SetDescription(v string) { 11412 o.Description = v 11413 } 11414 11415 // GetTags returns value of Tags 11416 func (o *ESMEUpdateRequest) GetTags() types.Tags { 11417 return o.Tags 11418 } 11419 11420 // SetTags sets value to Tags 11421 func (o *ESMEUpdateRequest) SetTags(v types.Tags) { 11422 o.Tags = v 11423 } 11424 11425 // HasTag 指定のタグが存在する場合trueを返す 11426 func (o *ESMEUpdateRequest) HasTag(tag string) bool { 11427 return accessor.HasTag(o, tag) 11428 } 11429 11430 // AppendTag 指定のタグを追加 11431 func (o *ESMEUpdateRequest) AppendTag(tag string) { 11432 accessor.AppendTag(o, tag) 11433 } 11434 11435 // RemoveTag 指定のタグを削除 11436 func (o *ESMEUpdateRequest) RemoveTag(tag string) { 11437 accessor.RemoveTag(o, tag) 11438 } 11439 11440 // ClearTags タグを全クリア 11441 func (o *ESMEUpdateRequest) ClearTags() { 11442 accessor.ClearTags(o) 11443 } 11444 11445 // GetIconID returns value of IconID 11446 func (o *ESMEUpdateRequest) GetIconID() types.ID { 11447 return o.IconID 11448 } 11449 11450 // SetIconID sets value to IconID 11451 func (o *ESMEUpdateRequest) SetIconID(v types.ID) { 11452 o.IconID = v 11453 } 11454 11455 /************************************************* 11456 * ESMESendMessageResult 11457 *************************************************/ 11458 11459 // ESMESendMessageResult represents API parameter/response structure 11460 type ESMESendMessageResult struct { 11461 MessageID string 11462 Status string 11463 OTP string 11464 } 11465 11466 // setDefaults implements iaas.argumentDefaulter 11467 func (o *ESMESendMessageResult) setDefaults() interface{} { 11468 return &struct { 11469 MessageID string 11470 Status string 11471 OTP string 11472 }{ 11473 MessageID: o.GetMessageID(), 11474 Status: o.GetStatus(), 11475 OTP: o.GetOTP(), 11476 } 11477 } 11478 11479 // GetMessageID returns value of MessageID 11480 func (o *ESMESendMessageResult) GetMessageID() string { 11481 return o.MessageID 11482 } 11483 11484 // SetMessageID sets value to MessageID 11485 func (o *ESMESendMessageResult) SetMessageID(v string) { 11486 o.MessageID = v 11487 } 11488 11489 // GetStatus returns value of Status 11490 func (o *ESMESendMessageResult) GetStatus() string { 11491 return o.Status 11492 } 11493 11494 // SetStatus sets value to Status 11495 func (o *ESMESendMessageResult) SetStatus(v string) { 11496 o.Status = v 11497 } 11498 11499 // GetOTP returns value of OTP 11500 func (o *ESMESendMessageResult) GetOTP() string { 11501 return o.OTP 11502 } 11503 11504 // SetOTP sets value to OTP 11505 func (o *ESMESendMessageResult) SetOTP(v string) { 11506 o.OTP = v 11507 } 11508 11509 /************************************************* 11510 * ESMESendMessageWithGeneratedOTPRequest 11511 *************************************************/ 11512 11513 // ESMESendMessageWithGeneratedOTPRequest represents API parameter/response structure 11514 type ESMESendMessageWithGeneratedOTPRequest struct { 11515 Destination string 11516 Sender string 11517 DomainName string 11518 } 11519 11520 // setDefaults implements iaas.argumentDefaulter 11521 func (o *ESMESendMessageWithGeneratedOTPRequest) setDefaults() interface{} { 11522 return &struct { 11523 Destination string 11524 Sender string 11525 DomainName string 11526 OTPOperation types.EOTPOperation 11527 }{ 11528 Destination: o.GetDestination(), 11529 Sender: o.GetSender(), 11530 DomainName: o.GetDomainName(), 11531 OTPOperation: "generate", 11532 } 11533 } 11534 11535 // GetDestination returns value of Destination 11536 func (o *ESMESendMessageWithGeneratedOTPRequest) GetDestination() string { 11537 return o.Destination 11538 } 11539 11540 // SetDestination sets value to Destination 11541 func (o *ESMESendMessageWithGeneratedOTPRequest) SetDestination(v string) { 11542 o.Destination = v 11543 } 11544 11545 // GetSender returns value of Sender 11546 func (o *ESMESendMessageWithGeneratedOTPRequest) GetSender() string { 11547 return o.Sender 11548 } 11549 11550 // SetSender sets value to Sender 11551 func (o *ESMESendMessageWithGeneratedOTPRequest) SetSender(v string) { 11552 o.Sender = v 11553 } 11554 11555 // GetDomainName returns value of DomainName 11556 func (o *ESMESendMessageWithGeneratedOTPRequest) GetDomainName() string { 11557 return o.DomainName 11558 } 11559 11560 // SetDomainName sets value to DomainName 11561 func (o *ESMESendMessageWithGeneratedOTPRequest) SetDomainName(v string) { 11562 o.DomainName = v 11563 } 11564 11565 /************************************************* 11566 * ESMESendMessageWithInputtedOTPRequest 11567 *************************************************/ 11568 11569 // ESMESendMessageWithInputtedOTPRequest represents API parameter/response structure 11570 type ESMESendMessageWithInputtedOTPRequest struct { 11571 Destination string 11572 Sender string 11573 DomainName string 11574 OTP string 11575 } 11576 11577 // setDefaults implements iaas.argumentDefaulter 11578 func (o *ESMESendMessageWithInputtedOTPRequest) setDefaults() interface{} { 11579 return &struct { 11580 Destination string 11581 Sender string 11582 DomainName string 11583 OTP string 11584 OTPOperation types.EOTPOperation 11585 }{ 11586 Destination: o.GetDestination(), 11587 Sender: o.GetSender(), 11588 DomainName: o.GetDomainName(), 11589 OTP: o.GetOTP(), 11590 OTPOperation: "input", 11591 } 11592 } 11593 11594 // GetDestination returns value of Destination 11595 func (o *ESMESendMessageWithInputtedOTPRequest) GetDestination() string { 11596 return o.Destination 11597 } 11598 11599 // SetDestination sets value to Destination 11600 func (o *ESMESendMessageWithInputtedOTPRequest) SetDestination(v string) { 11601 o.Destination = v 11602 } 11603 11604 // GetSender returns value of Sender 11605 func (o *ESMESendMessageWithInputtedOTPRequest) GetSender() string { 11606 return o.Sender 11607 } 11608 11609 // SetSender sets value to Sender 11610 func (o *ESMESendMessageWithInputtedOTPRequest) SetSender(v string) { 11611 o.Sender = v 11612 } 11613 11614 // GetDomainName returns value of DomainName 11615 func (o *ESMESendMessageWithInputtedOTPRequest) GetDomainName() string { 11616 return o.DomainName 11617 } 11618 11619 // SetDomainName sets value to DomainName 11620 func (o *ESMESendMessageWithInputtedOTPRequest) SetDomainName(v string) { 11621 o.DomainName = v 11622 } 11623 11624 // GetOTP returns value of OTP 11625 func (o *ESMESendMessageWithInputtedOTPRequest) GetOTP() string { 11626 return o.OTP 11627 } 11628 11629 // SetOTP sets value to OTP 11630 func (o *ESMESendMessageWithInputtedOTPRequest) SetOTP(v string) { 11631 o.OTP = v 11632 } 11633 11634 /************************************************* 11635 * ESMELogs 11636 *************************************************/ 11637 11638 // ESMELogs represents API parameter/response structure 11639 type ESMELogs struct { 11640 MessageID string 11641 Status string 11642 OTP string 11643 Destination string 11644 SentAt time.Time 11645 DoneAt time.Time 11646 RetryCount int 11647 } 11648 11649 // setDefaults implements iaas.argumentDefaulter 11650 func (o *ESMELogs) setDefaults() interface{} { 11651 return &struct { 11652 MessageID string 11653 Status string 11654 OTP string 11655 Destination string 11656 SentAt time.Time 11657 DoneAt time.Time 11658 RetryCount int 11659 }{ 11660 MessageID: o.GetMessageID(), 11661 Status: o.GetStatus(), 11662 OTP: o.GetOTP(), 11663 Destination: o.GetDestination(), 11664 SentAt: o.GetSentAt(), 11665 DoneAt: o.GetDoneAt(), 11666 RetryCount: o.GetRetryCount(), 11667 } 11668 } 11669 11670 // GetMessageID returns value of MessageID 11671 func (o *ESMELogs) GetMessageID() string { 11672 return o.MessageID 11673 } 11674 11675 // SetMessageID sets value to MessageID 11676 func (o *ESMELogs) SetMessageID(v string) { 11677 o.MessageID = v 11678 } 11679 11680 // GetStatus returns value of Status 11681 func (o *ESMELogs) GetStatus() string { 11682 return o.Status 11683 } 11684 11685 // SetStatus sets value to Status 11686 func (o *ESMELogs) SetStatus(v string) { 11687 o.Status = v 11688 } 11689 11690 // GetOTP returns value of OTP 11691 func (o *ESMELogs) GetOTP() string { 11692 return o.OTP 11693 } 11694 11695 // SetOTP sets value to OTP 11696 func (o *ESMELogs) SetOTP(v string) { 11697 o.OTP = v 11698 } 11699 11700 // GetDestination returns value of Destination 11701 func (o *ESMELogs) GetDestination() string { 11702 return o.Destination 11703 } 11704 11705 // SetDestination sets value to Destination 11706 func (o *ESMELogs) SetDestination(v string) { 11707 o.Destination = v 11708 } 11709 11710 // GetSentAt returns value of SentAt 11711 func (o *ESMELogs) GetSentAt() time.Time { 11712 return o.SentAt 11713 } 11714 11715 // SetSentAt sets value to SentAt 11716 func (o *ESMELogs) SetSentAt(v time.Time) { 11717 o.SentAt = v 11718 } 11719 11720 // GetDoneAt returns value of DoneAt 11721 func (o *ESMELogs) GetDoneAt() time.Time { 11722 return o.DoneAt 11723 } 11724 11725 // SetDoneAt sets value to DoneAt 11726 func (o *ESMELogs) SetDoneAt(v time.Time) { 11727 o.DoneAt = v 11728 } 11729 11730 // GetRetryCount returns value of RetryCount 11731 func (o *ESMELogs) GetRetryCount() int { 11732 return o.RetryCount 11733 } 11734 11735 // SetRetryCount sets value to RetryCount 11736 func (o *ESMELogs) SetRetryCount(v int) { 11737 o.RetryCount = v 11738 } 11739 11740 /************************************************* 11741 * GSLB 11742 *************************************************/ 11743 11744 // GSLB represents API parameter/response structure 11745 type GSLB struct { 11746 ID types.ID 11747 Name string 11748 Description string 11749 Tags types.Tags 11750 Availability types.EAvailability 11751 IconID types.ID `mapconv:"Icon.ID"` 11752 CreatedAt time.Time 11753 ModifiedAt time.Time 11754 SettingsHash string `json:",omitempty" mapconv:",omitempty"` 11755 FQDN string `mapconv:"Status.FQDN"` 11756 DelayLoop int `mapconv:"Settings.GSLB.DelayLoop"` 11757 Weighted types.StringFlag `mapconv:"Settings.GSLB.Weighted"` 11758 HealthCheck *GSLBHealthCheck `mapconv:"Settings.GSLB.HealthCheck,recursive"` 11759 SorryServer string `mapconv:"Settings.GSLB.SorryServer"` 11760 DestinationServers GSLBServers `mapconv:"Settings.GSLB.[]Servers,recursive"` 11761 } 11762 11763 // setDefaults implements iaas.argumentDefaulter 11764 func (o *GSLB) setDefaults() interface{} { 11765 return &struct { 11766 ID types.ID 11767 Name string 11768 Description string 11769 Tags types.Tags 11770 Availability types.EAvailability 11771 IconID types.ID `mapconv:"Icon.ID"` 11772 CreatedAt time.Time 11773 ModifiedAt time.Time 11774 SettingsHash string `json:",omitempty" mapconv:",omitempty"` 11775 FQDN string `mapconv:"Status.FQDN"` 11776 DelayLoop int `mapconv:"Settings.GSLB.DelayLoop"` 11777 Weighted types.StringFlag `mapconv:"Settings.GSLB.Weighted"` 11778 HealthCheck *GSLBHealthCheck `mapconv:"Settings.GSLB.HealthCheck,recursive"` 11779 SorryServer string `mapconv:"Settings.GSLB.SorryServer"` 11780 DestinationServers GSLBServers `mapconv:"Settings.GSLB.[]Servers,recursive"` 11781 }{ 11782 ID: o.GetID(), 11783 Name: o.GetName(), 11784 Description: o.GetDescription(), 11785 Tags: o.GetTags(), 11786 Availability: o.GetAvailability(), 11787 IconID: o.GetIconID(), 11788 CreatedAt: o.GetCreatedAt(), 11789 ModifiedAt: o.GetModifiedAt(), 11790 SettingsHash: o.GetSettingsHash(), 11791 FQDN: o.GetFQDN(), 11792 DelayLoop: o.GetDelayLoop(), 11793 Weighted: o.GetWeighted(), 11794 HealthCheck: o.GetHealthCheck(), 11795 SorryServer: o.GetSorryServer(), 11796 DestinationServers: o.GetDestinationServers(), 11797 } 11798 } 11799 11800 // GetID returns value of ID 11801 func (o *GSLB) GetID() types.ID { 11802 return o.ID 11803 } 11804 11805 // SetID sets value to ID 11806 func (o *GSLB) SetID(v types.ID) { 11807 o.ID = v 11808 } 11809 11810 // SetStringID . 11811 func (o *GSLB) SetStringID(id string) { 11812 accessor.SetStringID(o, id) 11813 } 11814 11815 // GetStringID . 11816 func (o *GSLB) GetStringID() string { 11817 return accessor.GetStringID(o) 11818 } 11819 11820 // SetInt64ID . 11821 func (o *GSLB) SetInt64ID(id int64) { 11822 accessor.SetInt64ID(o, id) 11823 } 11824 11825 // GetInt64ID . 11826 func (o *GSLB) GetInt64ID() int64 { 11827 return accessor.GetInt64ID(o) 11828 } 11829 11830 // GetName returns value of Name 11831 func (o *GSLB) GetName() string { 11832 return o.Name 11833 } 11834 11835 // SetName sets value to Name 11836 func (o *GSLB) SetName(v string) { 11837 o.Name = v 11838 } 11839 11840 // GetDescription returns value of Description 11841 func (o *GSLB) GetDescription() string { 11842 return o.Description 11843 } 11844 11845 // SetDescription sets value to Description 11846 func (o *GSLB) SetDescription(v string) { 11847 o.Description = v 11848 } 11849 11850 // GetTags returns value of Tags 11851 func (o *GSLB) GetTags() types.Tags { 11852 return o.Tags 11853 } 11854 11855 // SetTags sets value to Tags 11856 func (o *GSLB) SetTags(v types.Tags) { 11857 o.Tags = v 11858 } 11859 11860 // HasTag 指定のタグが存在する場合trueを返す 11861 func (o *GSLB) HasTag(tag string) bool { 11862 return accessor.HasTag(o, tag) 11863 } 11864 11865 // AppendTag 指定のタグを追加 11866 func (o *GSLB) AppendTag(tag string) { 11867 accessor.AppendTag(o, tag) 11868 } 11869 11870 // RemoveTag 指定のタグを削除 11871 func (o *GSLB) RemoveTag(tag string) { 11872 accessor.RemoveTag(o, tag) 11873 } 11874 11875 // ClearTags タグを全クリア 11876 func (o *GSLB) ClearTags() { 11877 accessor.ClearTags(o) 11878 } 11879 11880 // GetAvailability returns value of Availability 11881 func (o *GSLB) GetAvailability() types.EAvailability { 11882 return o.Availability 11883 } 11884 11885 // SetAvailability sets value to Availability 11886 func (o *GSLB) SetAvailability(v types.EAvailability) { 11887 o.Availability = v 11888 } 11889 11890 // GetIconID returns value of IconID 11891 func (o *GSLB) GetIconID() types.ID { 11892 return o.IconID 11893 } 11894 11895 // SetIconID sets value to IconID 11896 func (o *GSLB) SetIconID(v types.ID) { 11897 o.IconID = v 11898 } 11899 11900 // GetCreatedAt returns value of CreatedAt 11901 func (o *GSLB) GetCreatedAt() time.Time { 11902 return o.CreatedAt 11903 } 11904 11905 // SetCreatedAt sets value to CreatedAt 11906 func (o *GSLB) SetCreatedAt(v time.Time) { 11907 o.CreatedAt = v 11908 } 11909 11910 // GetModifiedAt returns value of ModifiedAt 11911 func (o *GSLB) GetModifiedAt() time.Time { 11912 return o.ModifiedAt 11913 } 11914 11915 // SetModifiedAt sets value to ModifiedAt 11916 func (o *GSLB) SetModifiedAt(v time.Time) { 11917 o.ModifiedAt = v 11918 } 11919 11920 // GetSettingsHash returns value of SettingsHash 11921 func (o *GSLB) GetSettingsHash() string { 11922 return o.SettingsHash 11923 } 11924 11925 // SetSettingsHash sets value to SettingsHash 11926 func (o *GSLB) SetSettingsHash(v string) { 11927 o.SettingsHash = v 11928 } 11929 11930 // GetFQDN returns value of FQDN 11931 func (o *GSLB) GetFQDN() string { 11932 return o.FQDN 11933 } 11934 11935 // SetFQDN sets value to FQDN 11936 func (o *GSLB) SetFQDN(v string) { 11937 o.FQDN = v 11938 } 11939 11940 // GetDelayLoop returns value of DelayLoop 11941 func (o *GSLB) GetDelayLoop() int { 11942 if o.DelayLoop == 0 { 11943 return 10 11944 } 11945 return o.DelayLoop 11946 } 11947 11948 // SetDelayLoop sets value to DelayLoop 11949 func (o *GSLB) SetDelayLoop(v int) { 11950 o.DelayLoop = v 11951 } 11952 11953 // GetWeighted returns value of Weighted 11954 func (o *GSLB) GetWeighted() types.StringFlag { 11955 return o.Weighted 11956 } 11957 11958 // SetWeighted sets value to Weighted 11959 func (o *GSLB) SetWeighted(v types.StringFlag) { 11960 o.Weighted = v 11961 } 11962 11963 // GetHealthCheck returns value of HealthCheck 11964 func (o *GSLB) GetHealthCheck() *GSLBHealthCheck { 11965 return o.HealthCheck 11966 } 11967 11968 // SetHealthCheck sets value to HealthCheck 11969 func (o *GSLB) SetHealthCheck(v *GSLBHealthCheck) { 11970 o.HealthCheck = v 11971 } 11972 11973 // GetSorryServer returns value of SorryServer 11974 func (o *GSLB) GetSorryServer() string { 11975 return o.SorryServer 11976 } 11977 11978 // SetSorryServer sets value to SorryServer 11979 func (o *GSLB) SetSorryServer(v string) { 11980 o.SorryServer = v 11981 } 11982 11983 // GetDestinationServers returns value of DestinationServers 11984 func (o *GSLB) GetDestinationServers() GSLBServers { 11985 return o.DestinationServers 11986 } 11987 11988 // SetDestinationServers sets value to DestinationServers 11989 func (o *GSLB) SetDestinationServers(v GSLBServers) { 11990 o.DestinationServers = v 11991 } 11992 11993 /************************************************* 11994 * GSLBHealthCheck 11995 *************************************************/ 11996 11997 // GSLBHealthCheck represents API parameter/response structure 11998 type GSLBHealthCheck struct { 11999 Protocol types.EGSLBHealthCheckProtocol 12000 HostHeader string `mapconv:"Host"` 12001 Path string `mapconv:"Path"` 12002 ResponseCode types.StringNumber `mapconv:"Status"` 12003 Port types.StringNumber `mapconv:"Port"` 12004 } 12005 12006 // setDefaults implements iaas.argumentDefaulter 12007 func (o *GSLBHealthCheck) setDefaults() interface{} { 12008 return &struct { 12009 Protocol types.EGSLBHealthCheckProtocol 12010 HostHeader string `mapconv:"Host"` 12011 Path string `mapconv:"Path"` 12012 ResponseCode types.StringNumber `mapconv:"Status"` 12013 Port types.StringNumber `mapconv:"Port"` 12014 }{ 12015 Protocol: o.GetProtocol(), 12016 HostHeader: o.GetHostHeader(), 12017 Path: o.GetPath(), 12018 ResponseCode: o.GetResponseCode(), 12019 Port: o.GetPort(), 12020 } 12021 } 12022 12023 // GetProtocol returns value of Protocol 12024 func (o *GSLBHealthCheck) GetProtocol() types.EGSLBHealthCheckProtocol { 12025 return o.Protocol 12026 } 12027 12028 // SetProtocol sets value to Protocol 12029 func (o *GSLBHealthCheck) SetProtocol(v types.EGSLBHealthCheckProtocol) { 12030 o.Protocol = v 12031 } 12032 12033 // GetHostHeader returns value of HostHeader 12034 func (o *GSLBHealthCheck) GetHostHeader() string { 12035 return o.HostHeader 12036 } 12037 12038 // SetHostHeader sets value to HostHeader 12039 func (o *GSLBHealthCheck) SetHostHeader(v string) { 12040 o.HostHeader = v 12041 } 12042 12043 // GetPath returns value of Path 12044 func (o *GSLBHealthCheck) GetPath() string { 12045 return o.Path 12046 } 12047 12048 // SetPath sets value to Path 12049 func (o *GSLBHealthCheck) SetPath(v string) { 12050 o.Path = v 12051 } 12052 12053 // GetResponseCode returns value of ResponseCode 12054 func (o *GSLBHealthCheck) GetResponseCode() types.StringNumber { 12055 return o.ResponseCode 12056 } 12057 12058 // SetResponseCode sets value to ResponseCode 12059 func (o *GSLBHealthCheck) SetResponseCode(v types.StringNumber) { 12060 o.ResponseCode = v 12061 } 12062 12063 // GetPort returns value of Port 12064 func (o *GSLBHealthCheck) GetPort() types.StringNumber { 12065 return o.Port 12066 } 12067 12068 // SetPort sets value to Port 12069 func (o *GSLBHealthCheck) SetPort(v types.StringNumber) { 12070 o.Port = v 12071 } 12072 12073 /************************************************* 12074 * GSLBServer 12075 *************************************************/ 12076 12077 // GSLBServer represents API parameter/response structure 12078 type GSLBServer struct { 12079 IPAddress string 12080 Enabled types.StringFlag 12081 Weight types.StringNumber 12082 } 12083 12084 // setDefaults implements iaas.argumentDefaulter 12085 func (o *GSLBServer) setDefaults() interface{} { 12086 return &struct { 12087 IPAddress string 12088 Enabled types.StringFlag 12089 Weight types.StringNumber 12090 }{ 12091 IPAddress: o.GetIPAddress(), 12092 Enabled: o.GetEnabled(), 12093 Weight: o.GetWeight(), 12094 } 12095 } 12096 12097 // GetIPAddress returns value of IPAddress 12098 func (o *GSLBServer) GetIPAddress() string { 12099 return o.IPAddress 12100 } 12101 12102 // SetIPAddress sets value to IPAddress 12103 func (o *GSLBServer) SetIPAddress(v string) { 12104 o.IPAddress = v 12105 } 12106 12107 // GetEnabled returns value of Enabled 12108 func (o *GSLBServer) GetEnabled() types.StringFlag { 12109 return o.Enabled 12110 } 12111 12112 // SetEnabled sets value to Enabled 12113 func (o *GSLBServer) SetEnabled(v types.StringFlag) { 12114 o.Enabled = v 12115 } 12116 12117 // GetWeight returns value of Weight 12118 func (o *GSLBServer) GetWeight() types.StringNumber { 12119 return o.Weight 12120 } 12121 12122 // SetWeight sets value to Weight 12123 func (o *GSLBServer) SetWeight(v types.StringNumber) { 12124 o.Weight = v 12125 } 12126 12127 /************************************************* 12128 * GSLBCreateRequest 12129 *************************************************/ 12130 12131 // GSLBCreateRequest represents API parameter/response structure 12132 type GSLBCreateRequest struct { 12133 HealthCheck *GSLBHealthCheck `mapconv:"Settings.GSLB.HealthCheck,recursive"` 12134 DelayLoop int `mapconv:"Settings.GSLB.DelayLoop"` 12135 Weighted types.StringFlag `mapconv:"Settings.GSLB.Weighted"` 12136 SorryServer string `mapconv:"Settings.GSLB.SorryServer"` 12137 DestinationServers GSLBServers `mapconv:"Settings.GSLB.[]Servers,recursive"` 12138 Name string 12139 Description string 12140 Tags types.Tags 12141 IconID types.ID `mapconv:"Icon.ID"` 12142 } 12143 12144 // setDefaults implements iaas.argumentDefaulter 12145 func (o *GSLBCreateRequest) setDefaults() interface{} { 12146 return &struct { 12147 HealthCheck *GSLBHealthCheck `mapconv:"Settings.GSLB.HealthCheck,recursive"` 12148 DelayLoop int `mapconv:"Settings.GSLB.DelayLoop"` 12149 Weighted types.StringFlag `mapconv:"Settings.GSLB.Weighted"` 12150 SorryServer string `mapconv:"Settings.GSLB.SorryServer"` 12151 DestinationServers GSLBServers `mapconv:"Settings.GSLB.[]Servers,recursive"` 12152 Name string 12153 Description string 12154 Tags types.Tags 12155 IconID types.ID `mapconv:"Icon.ID"` 12156 Class string `mapconv:"Provider.Class"` 12157 }{ 12158 HealthCheck: o.GetHealthCheck(), 12159 DelayLoop: o.GetDelayLoop(), 12160 Weighted: o.GetWeighted(), 12161 SorryServer: o.GetSorryServer(), 12162 DestinationServers: o.GetDestinationServers(), 12163 Name: o.GetName(), 12164 Description: o.GetDescription(), 12165 Tags: o.GetTags(), 12166 IconID: o.GetIconID(), 12167 Class: "gslb", 12168 } 12169 } 12170 12171 // GetHealthCheck returns value of HealthCheck 12172 func (o *GSLBCreateRequest) GetHealthCheck() *GSLBHealthCheck { 12173 return o.HealthCheck 12174 } 12175 12176 // SetHealthCheck sets value to HealthCheck 12177 func (o *GSLBCreateRequest) SetHealthCheck(v *GSLBHealthCheck) { 12178 o.HealthCheck = v 12179 } 12180 12181 // GetDelayLoop returns value of DelayLoop 12182 func (o *GSLBCreateRequest) GetDelayLoop() int { 12183 if o.DelayLoop == 0 { 12184 return 10 12185 } 12186 return o.DelayLoop 12187 } 12188 12189 // SetDelayLoop sets value to DelayLoop 12190 func (o *GSLBCreateRequest) SetDelayLoop(v int) { 12191 o.DelayLoop = v 12192 } 12193 12194 // GetWeighted returns value of Weighted 12195 func (o *GSLBCreateRequest) GetWeighted() types.StringFlag { 12196 return o.Weighted 12197 } 12198 12199 // SetWeighted sets value to Weighted 12200 func (o *GSLBCreateRequest) SetWeighted(v types.StringFlag) { 12201 o.Weighted = v 12202 } 12203 12204 // GetSorryServer returns value of SorryServer 12205 func (o *GSLBCreateRequest) GetSorryServer() string { 12206 return o.SorryServer 12207 } 12208 12209 // SetSorryServer sets value to SorryServer 12210 func (o *GSLBCreateRequest) SetSorryServer(v string) { 12211 o.SorryServer = v 12212 } 12213 12214 // GetDestinationServers returns value of DestinationServers 12215 func (o *GSLBCreateRequest) GetDestinationServers() GSLBServers { 12216 return o.DestinationServers 12217 } 12218 12219 // SetDestinationServers sets value to DestinationServers 12220 func (o *GSLBCreateRequest) SetDestinationServers(v GSLBServers) { 12221 o.DestinationServers = v 12222 } 12223 12224 // GetName returns value of Name 12225 func (o *GSLBCreateRequest) GetName() string { 12226 return o.Name 12227 } 12228 12229 // SetName sets value to Name 12230 func (o *GSLBCreateRequest) SetName(v string) { 12231 o.Name = v 12232 } 12233 12234 // GetDescription returns value of Description 12235 func (o *GSLBCreateRequest) GetDescription() string { 12236 return o.Description 12237 } 12238 12239 // SetDescription sets value to Description 12240 func (o *GSLBCreateRequest) SetDescription(v string) { 12241 o.Description = v 12242 } 12243 12244 // GetTags returns value of Tags 12245 func (o *GSLBCreateRequest) GetTags() types.Tags { 12246 return o.Tags 12247 } 12248 12249 // SetTags sets value to Tags 12250 func (o *GSLBCreateRequest) SetTags(v types.Tags) { 12251 o.Tags = v 12252 } 12253 12254 // HasTag 指定のタグが存在する場合trueを返す 12255 func (o *GSLBCreateRequest) HasTag(tag string) bool { 12256 return accessor.HasTag(o, tag) 12257 } 12258 12259 // AppendTag 指定のタグを追加 12260 func (o *GSLBCreateRequest) AppendTag(tag string) { 12261 accessor.AppendTag(o, tag) 12262 } 12263 12264 // RemoveTag 指定のタグを削除 12265 func (o *GSLBCreateRequest) RemoveTag(tag string) { 12266 accessor.RemoveTag(o, tag) 12267 } 12268 12269 // ClearTags タグを全クリア 12270 func (o *GSLBCreateRequest) ClearTags() { 12271 accessor.ClearTags(o) 12272 } 12273 12274 // GetIconID returns value of IconID 12275 func (o *GSLBCreateRequest) GetIconID() types.ID { 12276 return o.IconID 12277 } 12278 12279 // SetIconID sets value to IconID 12280 func (o *GSLBCreateRequest) SetIconID(v types.ID) { 12281 o.IconID = v 12282 } 12283 12284 /************************************************* 12285 * GSLBUpdateRequest 12286 *************************************************/ 12287 12288 // GSLBUpdateRequest represents API parameter/response structure 12289 type GSLBUpdateRequest struct { 12290 Name string 12291 Description string 12292 Tags types.Tags 12293 IconID types.ID `mapconv:"Icon.ID"` 12294 HealthCheck *GSLBHealthCheck `mapconv:"Settings.GSLB.HealthCheck,recursive"` 12295 DelayLoop int `mapconv:"Settings.GSLB.DelayLoop"` 12296 Weighted types.StringFlag `mapconv:"Settings.GSLB.Weighted"` 12297 SorryServer string `mapconv:"Settings.GSLB.SorryServer"` 12298 DestinationServers GSLBServers `mapconv:"Settings.GSLB.[]Servers,recursive"` 12299 SettingsHash string `json:",omitempty" mapconv:",omitempty"` 12300 } 12301 12302 // setDefaults implements iaas.argumentDefaulter 12303 func (o *GSLBUpdateRequest) setDefaults() interface{} { 12304 return &struct { 12305 Name string 12306 Description string 12307 Tags types.Tags 12308 IconID types.ID `mapconv:"Icon.ID"` 12309 HealthCheck *GSLBHealthCheck `mapconv:"Settings.GSLB.HealthCheck,recursive"` 12310 DelayLoop int `mapconv:"Settings.GSLB.DelayLoop"` 12311 Weighted types.StringFlag `mapconv:"Settings.GSLB.Weighted"` 12312 SorryServer string `mapconv:"Settings.GSLB.SorryServer"` 12313 DestinationServers GSLBServers `mapconv:"Settings.GSLB.[]Servers,recursive"` 12314 SettingsHash string `json:",omitempty" mapconv:",omitempty"` 12315 }{ 12316 Name: o.GetName(), 12317 Description: o.GetDescription(), 12318 Tags: o.GetTags(), 12319 IconID: o.GetIconID(), 12320 HealthCheck: o.GetHealthCheck(), 12321 DelayLoop: o.GetDelayLoop(), 12322 Weighted: o.GetWeighted(), 12323 SorryServer: o.GetSorryServer(), 12324 DestinationServers: o.GetDestinationServers(), 12325 SettingsHash: o.GetSettingsHash(), 12326 } 12327 } 12328 12329 // GetName returns value of Name 12330 func (o *GSLBUpdateRequest) GetName() string { 12331 return o.Name 12332 } 12333 12334 // SetName sets value to Name 12335 func (o *GSLBUpdateRequest) SetName(v string) { 12336 o.Name = v 12337 } 12338 12339 // GetDescription returns value of Description 12340 func (o *GSLBUpdateRequest) GetDescription() string { 12341 return o.Description 12342 } 12343 12344 // SetDescription sets value to Description 12345 func (o *GSLBUpdateRequest) SetDescription(v string) { 12346 o.Description = v 12347 } 12348 12349 // GetTags returns value of Tags 12350 func (o *GSLBUpdateRequest) GetTags() types.Tags { 12351 return o.Tags 12352 } 12353 12354 // SetTags sets value to Tags 12355 func (o *GSLBUpdateRequest) SetTags(v types.Tags) { 12356 o.Tags = v 12357 } 12358 12359 // HasTag 指定のタグが存在する場合trueを返す 12360 func (o *GSLBUpdateRequest) HasTag(tag string) bool { 12361 return accessor.HasTag(o, tag) 12362 } 12363 12364 // AppendTag 指定のタグを追加 12365 func (o *GSLBUpdateRequest) AppendTag(tag string) { 12366 accessor.AppendTag(o, tag) 12367 } 12368 12369 // RemoveTag 指定のタグを削除 12370 func (o *GSLBUpdateRequest) RemoveTag(tag string) { 12371 accessor.RemoveTag(o, tag) 12372 } 12373 12374 // ClearTags タグを全クリア 12375 func (o *GSLBUpdateRequest) ClearTags() { 12376 accessor.ClearTags(o) 12377 } 12378 12379 // GetIconID returns value of IconID 12380 func (o *GSLBUpdateRequest) GetIconID() types.ID { 12381 return o.IconID 12382 } 12383 12384 // SetIconID sets value to IconID 12385 func (o *GSLBUpdateRequest) SetIconID(v types.ID) { 12386 o.IconID = v 12387 } 12388 12389 // GetHealthCheck returns value of HealthCheck 12390 func (o *GSLBUpdateRequest) GetHealthCheck() *GSLBHealthCheck { 12391 return o.HealthCheck 12392 } 12393 12394 // SetHealthCheck sets value to HealthCheck 12395 func (o *GSLBUpdateRequest) SetHealthCheck(v *GSLBHealthCheck) { 12396 o.HealthCheck = v 12397 } 12398 12399 // GetDelayLoop returns value of DelayLoop 12400 func (o *GSLBUpdateRequest) GetDelayLoop() int { 12401 if o.DelayLoop == 0 { 12402 return 10 12403 } 12404 return o.DelayLoop 12405 } 12406 12407 // SetDelayLoop sets value to DelayLoop 12408 func (o *GSLBUpdateRequest) SetDelayLoop(v int) { 12409 o.DelayLoop = v 12410 } 12411 12412 // GetWeighted returns value of Weighted 12413 func (o *GSLBUpdateRequest) GetWeighted() types.StringFlag { 12414 return o.Weighted 12415 } 12416 12417 // SetWeighted sets value to Weighted 12418 func (o *GSLBUpdateRequest) SetWeighted(v types.StringFlag) { 12419 o.Weighted = v 12420 } 12421 12422 // GetSorryServer returns value of SorryServer 12423 func (o *GSLBUpdateRequest) GetSorryServer() string { 12424 return o.SorryServer 12425 } 12426 12427 // SetSorryServer sets value to SorryServer 12428 func (o *GSLBUpdateRequest) SetSorryServer(v string) { 12429 o.SorryServer = v 12430 } 12431 12432 // GetDestinationServers returns value of DestinationServers 12433 func (o *GSLBUpdateRequest) GetDestinationServers() GSLBServers { 12434 return o.DestinationServers 12435 } 12436 12437 // SetDestinationServers sets value to DestinationServers 12438 func (o *GSLBUpdateRequest) SetDestinationServers(v GSLBServers) { 12439 o.DestinationServers = v 12440 } 12441 12442 // GetSettingsHash returns value of SettingsHash 12443 func (o *GSLBUpdateRequest) GetSettingsHash() string { 12444 return o.SettingsHash 12445 } 12446 12447 // SetSettingsHash sets value to SettingsHash 12448 func (o *GSLBUpdateRequest) SetSettingsHash(v string) { 12449 o.SettingsHash = v 12450 } 12451 12452 /************************************************* 12453 * GSLBUpdateSettingsRequest 12454 *************************************************/ 12455 12456 // GSLBUpdateSettingsRequest represents API parameter/response structure 12457 type GSLBUpdateSettingsRequest struct { 12458 HealthCheck *GSLBHealthCheck `mapconv:"Settings.GSLB.HealthCheck,recursive"` 12459 DelayLoop int `mapconv:"Settings.GSLB.DelayLoop"` 12460 Weighted types.StringFlag `mapconv:"Settings.GSLB.Weighted"` 12461 SorryServer string `mapconv:"Settings.GSLB.SorryServer"` 12462 DestinationServers GSLBServers `mapconv:"Settings.GSLB.[]Servers,recursive"` 12463 SettingsHash string `json:",omitempty" mapconv:",omitempty"` 12464 } 12465 12466 // setDefaults implements iaas.argumentDefaulter 12467 func (o *GSLBUpdateSettingsRequest) setDefaults() interface{} { 12468 return &struct { 12469 HealthCheck *GSLBHealthCheck `mapconv:"Settings.GSLB.HealthCheck,recursive"` 12470 DelayLoop int `mapconv:"Settings.GSLB.DelayLoop"` 12471 Weighted types.StringFlag `mapconv:"Settings.GSLB.Weighted"` 12472 SorryServer string `mapconv:"Settings.GSLB.SorryServer"` 12473 DestinationServers GSLBServers `mapconv:"Settings.GSLB.[]Servers,recursive"` 12474 SettingsHash string `json:",omitempty" mapconv:",omitempty"` 12475 }{ 12476 HealthCheck: o.GetHealthCheck(), 12477 DelayLoop: o.GetDelayLoop(), 12478 Weighted: o.GetWeighted(), 12479 SorryServer: o.GetSorryServer(), 12480 DestinationServers: o.GetDestinationServers(), 12481 SettingsHash: o.GetSettingsHash(), 12482 } 12483 } 12484 12485 // GetHealthCheck returns value of HealthCheck 12486 func (o *GSLBUpdateSettingsRequest) GetHealthCheck() *GSLBHealthCheck { 12487 return o.HealthCheck 12488 } 12489 12490 // SetHealthCheck sets value to HealthCheck 12491 func (o *GSLBUpdateSettingsRequest) SetHealthCheck(v *GSLBHealthCheck) { 12492 o.HealthCheck = v 12493 } 12494 12495 // GetDelayLoop returns value of DelayLoop 12496 func (o *GSLBUpdateSettingsRequest) GetDelayLoop() int { 12497 if o.DelayLoop == 0 { 12498 return 10 12499 } 12500 return o.DelayLoop 12501 } 12502 12503 // SetDelayLoop sets value to DelayLoop 12504 func (o *GSLBUpdateSettingsRequest) SetDelayLoop(v int) { 12505 o.DelayLoop = v 12506 } 12507 12508 // GetWeighted returns value of Weighted 12509 func (o *GSLBUpdateSettingsRequest) GetWeighted() types.StringFlag { 12510 return o.Weighted 12511 } 12512 12513 // SetWeighted sets value to Weighted 12514 func (o *GSLBUpdateSettingsRequest) SetWeighted(v types.StringFlag) { 12515 o.Weighted = v 12516 } 12517 12518 // GetSorryServer returns value of SorryServer 12519 func (o *GSLBUpdateSettingsRequest) GetSorryServer() string { 12520 return o.SorryServer 12521 } 12522 12523 // SetSorryServer sets value to SorryServer 12524 func (o *GSLBUpdateSettingsRequest) SetSorryServer(v string) { 12525 o.SorryServer = v 12526 } 12527 12528 // GetDestinationServers returns value of DestinationServers 12529 func (o *GSLBUpdateSettingsRequest) GetDestinationServers() GSLBServers { 12530 return o.DestinationServers 12531 } 12532 12533 // SetDestinationServers sets value to DestinationServers 12534 func (o *GSLBUpdateSettingsRequest) SetDestinationServers(v GSLBServers) { 12535 o.DestinationServers = v 12536 } 12537 12538 // GetSettingsHash returns value of SettingsHash 12539 func (o *GSLBUpdateSettingsRequest) GetSettingsHash() string { 12540 return o.SettingsHash 12541 } 12542 12543 // SetSettingsHash sets value to SettingsHash 12544 func (o *GSLBUpdateSettingsRequest) SetSettingsHash(v string) { 12545 o.SettingsHash = v 12546 } 12547 12548 /************************************************* 12549 * Icon 12550 *************************************************/ 12551 12552 // Icon represents API parameter/response structure 12553 type Icon struct { 12554 ID types.ID 12555 Name string 12556 Tags types.Tags 12557 Availability types.EAvailability 12558 Scope types.EScope 12559 URL string 12560 CreatedAt time.Time 12561 ModifiedAt time.Time 12562 } 12563 12564 // setDefaults implements iaas.argumentDefaulter 12565 func (o *Icon) setDefaults() interface{} { 12566 return &struct { 12567 ID types.ID 12568 Name string 12569 Tags types.Tags 12570 Availability types.EAvailability 12571 Scope types.EScope 12572 URL string 12573 CreatedAt time.Time 12574 ModifiedAt time.Time 12575 }{ 12576 ID: o.GetID(), 12577 Name: o.GetName(), 12578 Tags: o.GetTags(), 12579 Availability: o.GetAvailability(), 12580 Scope: o.GetScope(), 12581 URL: o.GetURL(), 12582 CreatedAt: o.GetCreatedAt(), 12583 ModifiedAt: o.GetModifiedAt(), 12584 } 12585 } 12586 12587 // GetID returns value of ID 12588 func (o *Icon) GetID() types.ID { 12589 return o.ID 12590 } 12591 12592 // SetID sets value to ID 12593 func (o *Icon) SetID(v types.ID) { 12594 o.ID = v 12595 } 12596 12597 // SetStringID . 12598 func (o *Icon) SetStringID(id string) { 12599 accessor.SetStringID(o, id) 12600 } 12601 12602 // GetStringID . 12603 func (o *Icon) GetStringID() string { 12604 return accessor.GetStringID(o) 12605 } 12606 12607 // SetInt64ID . 12608 func (o *Icon) SetInt64ID(id int64) { 12609 accessor.SetInt64ID(o, id) 12610 } 12611 12612 // GetInt64ID . 12613 func (o *Icon) GetInt64ID() int64 { 12614 return accessor.GetInt64ID(o) 12615 } 12616 12617 // GetName returns value of Name 12618 func (o *Icon) GetName() string { 12619 return o.Name 12620 } 12621 12622 // SetName sets value to Name 12623 func (o *Icon) SetName(v string) { 12624 o.Name = v 12625 } 12626 12627 // GetTags returns value of Tags 12628 func (o *Icon) GetTags() types.Tags { 12629 return o.Tags 12630 } 12631 12632 // SetTags sets value to Tags 12633 func (o *Icon) SetTags(v types.Tags) { 12634 o.Tags = v 12635 } 12636 12637 // HasTag 指定のタグが存在する場合trueを返す 12638 func (o *Icon) HasTag(tag string) bool { 12639 return accessor.HasTag(o, tag) 12640 } 12641 12642 // AppendTag 指定のタグを追加 12643 func (o *Icon) AppendTag(tag string) { 12644 accessor.AppendTag(o, tag) 12645 } 12646 12647 // RemoveTag 指定のタグを削除 12648 func (o *Icon) RemoveTag(tag string) { 12649 accessor.RemoveTag(o, tag) 12650 } 12651 12652 // ClearTags タグを全クリア 12653 func (o *Icon) ClearTags() { 12654 accessor.ClearTags(o) 12655 } 12656 12657 // GetAvailability returns value of Availability 12658 func (o *Icon) GetAvailability() types.EAvailability { 12659 return o.Availability 12660 } 12661 12662 // SetAvailability sets value to Availability 12663 func (o *Icon) SetAvailability(v types.EAvailability) { 12664 o.Availability = v 12665 } 12666 12667 // GetScope returns value of Scope 12668 func (o *Icon) GetScope() types.EScope { 12669 return o.Scope 12670 } 12671 12672 // SetScope sets value to Scope 12673 func (o *Icon) SetScope(v types.EScope) { 12674 o.Scope = v 12675 } 12676 12677 // GetURL returns value of URL 12678 func (o *Icon) GetURL() string { 12679 return o.URL 12680 } 12681 12682 // SetURL sets value to URL 12683 func (o *Icon) SetURL(v string) { 12684 o.URL = v 12685 } 12686 12687 // GetCreatedAt returns value of CreatedAt 12688 func (o *Icon) GetCreatedAt() time.Time { 12689 return o.CreatedAt 12690 } 12691 12692 // SetCreatedAt sets value to CreatedAt 12693 func (o *Icon) SetCreatedAt(v time.Time) { 12694 o.CreatedAt = v 12695 } 12696 12697 // GetModifiedAt returns value of ModifiedAt 12698 func (o *Icon) GetModifiedAt() time.Time { 12699 return o.ModifiedAt 12700 } 12701 12702 // SetModifiedAt sets value to ModifiedAt 12703 func (o *Icon) SetModifiedAt(v time.Time) { 12704 o.ModifiedAt = v 12705 } 12706 12707 /************************************************* 12708 * IconCreateRequest 12709 *************************************************/ 12710 12711 // IconCreateRequest represents API parameter/response structure 12712 type IconCreateRequest struct { 12713 Name string 12714 Tags types.Tags 12715 Image string 12716 } 12717 12718 // setDefaults implements iaas.argumentDefaulter 12719 func (o *IconCreateRequest) setDefaults() interface{} { 12720 return &struct { 12721 Name string 12722 Tags types.Tags 12723 Image string 12724 }{ 12725 Name: o.GetName(), 12726 Tags: o.GetTags(), 12727 Image: o.GetImage(), 12728 } 12729 } 12730 12731 // GetName returns value of Name 12732 func (o *IconCreateRequest) GetName() string { 12733 return o.Name 12734 } 12735 12736 // SetName sets value to Name 12737 func (o *IconCreateRequest) SetName(v string) { 12738 o.Name = v 12739 } 12740 12741 // GetTags returns value of Tags 12742 func (o *IconCreateRequest) GetTags() types.Tags { 12743 return o.Tags 12744 } 12745 12746 // SetTags sets value to Tags 12747 func (o *IconCreateRequest) SetTags(v types.Tags) { 12748 o.Tags = v 12749 } 12750 12751 // HasTag 指定のタグが存在する場合trueを返す 12752 func (o *IconCreateRequest) HasTag(tag string) bool { 12753 return accessor.HasTag(o, tag) 12754 } 12755 12756 // AppendTag 指定のタグを追加 12757 func (o *IconCreateRequest) AppendTag(tag string) { 12758 accessor.AppendTag(o, tag) 12759 } 12760 12761 // RemoveTag 指定のタグを削除 12762 func (o *IconCreateRequest) RemoveTag(tag string) { 12763 accessor.RemoveTag(o, tag) 12764 } 12765 12766 // ClearTags タグを全クリア 12767 func (o *IconCreateRequest) ClearTags() { 12768 accessor.ClearTags(o) 12769 } 12770 12771 // GetImage returns value of Image 12772 func (o *IconCreateRequest) GetImage() string { 12773 return o.Image 12774 } 12775 12776 // SetImage sets value to Image 12777 func (o *IconCreateRequest) SetImage(v string) { 12778 o.Image = v 12779 } 12780 12781 /************************************************* 12782 * IconUpdateRequest 12783 *************************************************/ 12784 12785 // IconUpdateRequest represents API parameter/response structure 12786 type IconUpdateRequest struct { 12787 Name string 12788 Tags types.Tags 12789 } 12790 12791 // setDefaults implements iaas.argumentDefaulter 12792 func (o *IconUpdateRequest) setDefaults() interface{} { 12793 return &struct { 12794 Name string 12795 Tags types.Tags 12796 }{ 12797 Name: o.GetName(), 12798 Tags: o.GetTags(), 12799 } 12800 } 12801 12802 // GetName returns value of Name 12803 func (o *IconUpdateRequest) GetName() string { 12804 return o.Name 12805 } 12806 12807 // SetName sets value to Name 12808 func (o *IconUpdateRequest) SetName(v string) { 12809 o.Name = v 12810 } 12811 12812 // GetTags returns value of Tags 12813 func (o *IconUpdateRequest) GetTags() types.Tags { 12814 return o.Tags 12815 } 12816 12817 // SetTags sets value to Tags 12818 func (o *IconUpdateRequest) SetTags(v types.Tags) { 12819 o.Tags = v 12820 } 12821 12822 // HasTag 指定のタグが存在する場合trueを返す 12823 func (o *IconUpdateRequest) HasTag(tag string) bool { 12824 return accessor.HasTag(o, tag) 12825 } 12826 12827 // AppendTag 指定のタグを追加 12828 func (o *IconUpdateRequest) AppendTag(tag string) { 12829 accessor.AppendTag(o, tag) 12830 } 12831 12832 // RemoveTag 指定のタグを削除 12833 func (o *IconUpdateRequest) RemoveTag(tag string) { 12834 accessor.RemoveTag(o, tag) 12835 } 12836 12837 // ClearTags タグを全クリア 12838 func (o *IconUpdateRequest) ClearTags() { 12839 accessor.ClearTags(o) 12840 } 12841 12842 /************************************************* 12843 * Interface 12844 *************************************************/ 12845 12846 // Interface represents API parameter/response structure 12847 type Interface struct { 12848 ID types.ID 12849 MACAddress string 12850 IPAddress string 12851 UserIPAddress string 12852 HostName string 12853 SwitchID types.ID `mapconv:"Switch.ID,omitempty"` 12854 SwitchScope types.EScope `mapconv:"Switch.Scope,omitempty"` 12855 PacketFilterID types.ID `mapconv:"PacketFilter.ID,omitempty"` 12856 ServerID types.ID `mapconv:"Server.ID,omitempty"` 12857 CreatedAt time.Time 12858 } 12859 12860 // setDefaults implements iaas.argumentDefaulter 12861 func (o *Interface) setDefaults() interface{} { 12862 return &struct { 12863 ID types.ID 12864 MACAddress string 12865 IPAddress string 12866 UserIPAddress string 12867 HostName string 12868 SwitchID types.ID `mapconv:"Switch.ID,omitempty"` 12869 SwitchScope types.EScope `mapconv:"Switch.Scope,omitempty"` 12870 PacketFilterID types.ID `mapconv:"PacketFilter.ID,omitempty"` 12871 ServerID types.ID `mapconv:"Server.ID,omitempty"` 12872 CreatedAt time.Time 12873 }{ 12874 ID: o.GetID(), 12875 MACAddress: o.GetMACAddress(), 12876 IPAddress: o.GetIPAddress(), 12877 UserIPAddress: o.GetUserIPAddress(), 12878 HostName: o.GetHostName(), 12879 SwitchID: o.GetSwitchID(), 12880 SwitchScope: o.GetSwitchScope(), 12881 PacketFilterID: o.GetPacketFilterID(), 12882 ServerID: o.GetServerID(), 12883 CreatedAt: o.GetCreatedAt(), 12884 } 12885 } 12886 12887 // GetID returns value of ID 12888 func (o *Interface) GetID() types.ID { 12889 return o.ID 12890 } 12891 12892 // SetID sets value to ID 12893 func (o *Interface) SetID(v types.ID) { 12894 o.ID = v 12895 } 12896 12897 // SetStringID . 12898 func (o *Interface) SetStringID(id string) { 12899 accessor.SetStringID(o, id) 12900 } 12901 12902 // GetStringID . 12903 func (o *Interface) GetStringID() string { 12904 return accessor.GetStringID(o) 12905 } 12906 12907 // SetInt64ID . 12908 func (o *Interface) SetInt64ID(id int64) { 12909 accessor.SetInt64ID(o, id) 12910 } 12911 12912 // GetInt64ID . 12913 func (o *Interface) GetInt64ID() int64 { 12914 return accessor.GetInt64ID(o) 12915 } 12916 12917 // GetMACAddress returns value of MACAddress 12918 func (o *Interface) GetMACAddress() string { 12919 return o.MACAddress 12920 } 12921 12922 // SetMACAddress sets value to MACAddress 12923 func (o *Interface) SetMACAddress(v string) { 12924 o.MACAddress = v 12925 } 12926 12927 // GetIPAddress returns value of IPAddress 12928 func (o *Interface) GetIPAddress() string { 12929 return o.IPAddress 12930 } 12931 12932 // SetIPAddress sets value to IPAddress 12933 func (o *Interface) SetIPAddress(v string) { 12934 o.IPAddress = v 12935 } 12936 12937 // GetUserIPAddress returns value of UserIPAddress 12938 func (o *Interface) GetUserIPAddress() string { 12939 return o.UserIPAddress 12940 } 12941 12942 // SetUserIPAddress sets value to UserIPAddress 12943 func (o *Interface) SetUserIPAddress(v string) { 12944 o.UserIPAddress = v 12945 } 12946 12947 // GetHostName returns value of HostName 12948 func (o *Interface) GetHostName() string { 12949 return o.HostName 12950 } 12951 12952 // SetHostName sets value to HostName 12953 func (o *Interface) SetHostName(v string) { 12954 o.HostName = v 12955 } 12956 12957 // GetSwitchID returns value of SwitchID 12958 func (o *Interface) GetSwitchID() types.ID { 12959 return o.SwitchID 12960 } 12961 12962 // SetSwitchID sets value to SwitchID 12963 func (o *Interface) SetSwitchID(v types.ID) { 12964 o.SwitchID = v 12965 } 12966 12967 // GetSwitchScope returns value of SwitchScope 12968 func (o *Interface) GetSwitchScope() types.EScope { 12969 return o.SwitchScope 12970 } 12971 12972 // SetSwitchScope sets value to SwitchScope 12973 func (o *Interface) SetSwitchScope(v types.EScope) { 12974 o.SwitchScope = v 12975 } 12976 12977 // GetPacketFilterID returns value of PacketFilterID 12978 func (o *Interface) GetPacketFilterID() types.ID { 12979 return o.PacketFilterID 12980 } 12981 12982 // SetPacketFilterID sets value to PacketFilterID 12983 func (o *Interface) SetPacketFilterID(v types.ID) { 12984 o.PacketFilterID = v 12985 } 12986 12987 // GetServerID returns value of ServerID 12988 func (o *Interface) GetServerID() types.ID { 12989 return o.ServerID 12990 } 12991 12992 // SetServerID sets value to ServerID 12993 func (o *Interface) SetServerID(v types.ID) { 12994 o.ServerID = v 12995 } 12996 12997 // GetCreatedAt returns value of CreatedAt 12998 func (o *Interface) GetCreatedAt() time.Time { 12999 return o.CreatedAt 13000 } 13001 13002 // SetCreatedAt sets value to CreatedAt 13003 func (o *Interface) SetCreatedAt(v time.Time) { 13004 o.CreatedAt = v 13005 } 13006 13007 /************************************************* 13008 * InterfaceCreateRequest 13009 *************************************************/ 13010 13011 // InterfaceCreateRequest represents API parameter/response structure 13012 type InterfaceCreateRequest struct { 13013 ServerID types.ID `mapconv:"Server.ID,omitempty"` 13014 } 13015 13016 // setDefaults implements iaas.argumentDefaulter 13017 func (o *InterfaceCreateRequest) setDefaults() interface{} { 13018 return &struct { 13019 ServerID types.ID `mapconv:"Server.ID,omitempty"` 13020 }{ 13021 ServerID: o.GetServerID(), 13022 } 13023 } 13024 13025 // GetServerID returns value of ServerID 13026 func (o *InterfaceCreateRequest) GetServerID() types.ID { 13027 return o.ServerID 13028 } 13029 13030 // SetServerID sets value to ServerID 13031 func (o *InterfaceCreateRequest) SetServerID(v types.ID) { 13032 o.ServerID = v 13033 } 13034 13035 /************************************************* 13036 * InterfaceUpdateRequest 13037 *************************************************/ 13038 13039 // InterfaceUpdateRequest represents API parameter/response structure 13040 type InterfaceUpdateRequest struct { 13041 UserIPAddress string 13042 } 13043 13044 // setDefaults implements iaas.argumentDefaulter 13045 func (o *InterfaceUpdateRequest) setDefaults() interface{} { 13046 return &struct { 13047 UserIPAddress string 13048 }{ 13049 UserIPAddress: o.GetUserIPAddress(), 13050 } 13051 } 13052 13053 // GetUserIPAddress returns value of UserIPAddress 13054 func (o *InterfaceUpdateRequest) GetUserIPAddress() string { 13055 return o.UserIPAddress 13056 } 13057 13058 // SetUserIPAddress sets value to UserIPAddress 13059 func (o *InterfaceUpdateRequest) SetUserIPAddress(v string) { 13060 o.UserIPAddress = v 13061 } 13062 13063 /************************************************* 13064 * Internet 13065 *************************************************/ 13066 13067 // Internet represents API parameter/response structure 13068 type Internet struct { 13069 ID types.ID 13070 Name string 13071 Description string 13072 Tags types.Tags 13073 IconID types.ID `mapconv:"Icon.ID"` 13074 CreatedAt time.Time 13075 BandWidthMbps int 13076 NetworkMaskLen int 13077 Switch *SwitchInfo `mapconv:",recursive"` 13078 } 13079 13080 // setDefaults implements iaas.argumentDefaulter 13081 func (o *Internet) setDefaults() interface{} { 13082 return &struct { 13083 ID types.ID 13084 Name string 13085 Description string 13086 Tags types.Tags 13087 IconID types.ID `mapconv:"Icon.ID"` 13088 CreatedAt time.Time 13089 BandWidthMbps int 13090 NetworkMaskLen int 13091 Switch *SwitchInfo `mapconv:",recursive"` 13092 }{ 13093 ID: o.GetID(), 13094 Name: o.GetName(), 13095 Description: o.GetDescription(), 13096 Tags: o.GetTags(), 13097 IconID: o.GetIconID(), 13098 CreatedAt: o.GetCreatedAt(), 13099 BandWidthMbps: o.GetBandWidthMbps(), 13100 NetworkMaskLen: o.GetNetworkMaskLen(), 13101 Switch: o.GetSwitch(), 13102 } 13103 } 13104 13105 // GetID returns value of ID 13106 func (o *Internet) GetID() types.ID { 13107 return o.ID 13108 } 13109 13110 // SetID sets value to ID 13111 func (o *Internet) SetID(v types.ID) { 13112 o.ID = v 13113 } 13114 13115 // SetStringID . 13116 func (o *Internet) SetStringID(id string) { 13117 accessor.SetStringID(o, id) 13118 } 13119 13120 // GetStringID . 13121 func (o *Internet) GetStringID() string { 13122 return accessor.GetStringID(o) 13123 } 13124 13125 // SetInt64ID . 13126 func (o *Internet) SetInt64ID(id int64) { 13127 accessor.SetInt64ID(o, id) 13128 } 13129 13130 // GetInt64ID . 13131 func (o *Internet) GetInt64ID() int64 { 13132 return accessor.GetInt64ID(o) 13133 } 13134 13135 // GetName returns value of Name 13136 func (o *Internet) GetName() string { 13137 return o.Name 13138 } 13139 13140 // SetName sets value to Name 13141 func (o *Internet) SetName(v string) { 13142 o.Name = v 13143 } 13144 13145 // GetDescription returns value of Description 13146 func (o *Internet) GetDescription() string { 13147 return o.Description 13148 } 13149 13150 // SetDescription sets value to Description 13151 func (o *Internet) SetDescription(v string) { 13152 o.Description = v 13153 } 13154 13155 // GetTags returns value of Tags 13156 func (o *Internet) GetTags() types.Tags { 13157 return o.Tags 13158 } 13159 13160 // SetTags sets value to Tags 13161 func (o *Internet) SetTags(v types.Tags) { 13162 o.Tags = v 13163 } 13164 13165 // HasTag 指定のタグが存在する場合trueを返す 13166 func (o *Internet) HasTag(tag string) bool { 13167 return accessor.HasTag(o, tag) 13168 } 13169 13170 // AppendTag 指定のタグを追加 13171 func (o *Internet) AppendTag(tag string) { 13172 accessor.AppendTag(o, tag) 13173 } 13174 13175 // RemoveTag 指定のタグを削除 13176 func (o *Internet) RemoveTag(tag string) { 13177 accessor.RemoveTag(o, tag) 13178 } 13179 13180 // ClearTags タグを全クリア 13181 func (o *Internet) ClearTags() { 13182 accessor.ClearTags(o) 13183 } 13184 13185 // GetIconID returns value of IconID 13186 func (o *Internet) GetIconID() types.ID { 13187 return o.IconID 13188 } 13189 13190 // SetIconID sets value to IconID 13191 func (o *Internet) SetIconID(v types.ID) { 13192 o.IconID = v 13193 } 13194 13195 // GetCreatedAt returns value of CreatedAt 13196 func (o *Internet) GetCreatedAt() time.Time { 13197 return o.CreatedAt 13198 } 13199 13200 // SetCreatedAt sets value to CreatedAt 13201 func (o *Internet) SetCreatedAt(v time.Time) { 13202 o.CreatedAt = v 13203 } 13204 13205 // GetBandWidthMbps returns value of BandWidthMbps 13206 func (o *Internet) GetBandWidthMbps() int { 13207 return o.BandWidthMbps 13208 } 13209 13210 // SetBandWidthMbps sets value to BandWidthMbps 13211 func (o *Internet) SetBandWidthMbps(v int) { 13212 o.BandWidthMbps = v 13213 } 13214 13215 // GetNetworkMaskLen returns value of NetworkMaskLen 13216 func (o *Internet) GetNetworkMaskLen() int { 13217 return o.NetworkMaskLen 13218 } 13219 13220 // SetNetworkMaskLen sets value to NetworkMaskLen 13221 func (o *Internet) SetNetworkMaskLen(v int) { 13222 o.NetworkMaskLen = v 13223 } 13224 13225 // GetSwitch returns value of Switch 13226 func (o *Internet) GetSwitch() *SwitchInfo { 13227 return o.Switch 13228 } 13229 13230 // SetSwitch sets value to Switch 13231 func (o *Internet) SetSwitch(v *SwitchInfo) { 13232 o.Switch = v 13233 } 13234 13235 /************************************************* 13236 * SwitchInfo 13237 *************************************************/ 13238 13239 // SwitchInfo represents API parameter/response structure 13240 type SwitchInfo struct { 13241 ID types.ID 13242 Name string 13243 Description string 13244 Tags types.Tags 13245 Scope types.EScope 13246 Subnets []*InternetSubnet `mapconv:"[]Subnets,recursive"` 13247 IPv6Nets []*IPv6NetInfo `mapconv:"[]IPv6Nets,recursive,omitempty"` 13248 } 13249 13250 // setDefaults implements iaas.argumentDefaulter 13251 func (o *SwitchInfo) setDefaults() interface{} { 13252 return &struct { 13253 ID types.ID 13254 Name string 13255 Description string 13256 Tags types.Tags 13257 Scope types.EScope 13258 Subnets []*InternetSubnet `mapconv:"[]Subnets,recursive"` 13259 IPv6Nets []*IPv6NetInfo `mapconv:"[]IPv6Nets,recursive,omitempty"` 13260 }{ 13261 ID: o.GetID(), 13262 Name: o.GetName(), 13263 Description: o.GetDescription(), 13264 Tags: o.GetTags(), 13265 Scope: o.GetScope(), 13266 Subnets: o.GetSubnets(), 13267 IPv6Nets: o.GetIPv6Nets(), 13268 } 13269 } 13270 13271 // GetID returns value of ID 13272 func (o *SwitchInfo) GetID() types.ID { 13273 return o.ID 13274 } 13275 13276 // SetID sets value to ID 13277 func (o *SwitchInfo) SetID(v types.ID) { 13278 o.ID = v 13279 } 13280 13281 // SetStringID . 13282 func (o *SwitchInfo) SetStringID(id string) { 13283 accessor.SetStringID(o, id) 13284 } 13285 13286 // GetStringID . 13287 func (o *SwitchInfo) GetStringID() string { 13288 return accessor.GetStringID(o) 13289 } 13290 13291 // SetInt64ID . 13292 func (o *SwitchInfo) SetInt64ID(id int64) { 13293 accessor.SetInt64ID(o, id) 13294 } 13295 13296 // GetInt64ID . 13297 func (o *SwitchInfo) GetInt64ID() int64 { 13298 return accessor.GetInt64ID(o) 13299 } 13300 13301 // GetName returns value of Name 13302 func (o *SwitchInfo) GetName() string { 13303 return o.Name 13304 } 13305 13306 // SetName sets value to Name 13307 func (o *SwitchInfo) SetName(v string) { 13308 o.Name = v 13309 } 13310 13311 // GetDescription returns value of Description 13312 func (o *SwitchInfo) GetDescription() string { 13313 return o.Description 13314 } 13315 13316 // SetDescription sets value to Description 13317 func (o *SwitchInfo) SetDescription(v string) { 13318 o.Description = v 13319 } 13320 13321 // GetTags returns value of Tags 13322 func (o *SwitchInfo) GetTags() types.Tags { 13323 return o.Tags 13324 } 13325 13326 // SetTags sets value to Tags 13327 func (o *SwitchInfo) SetTags(v types.Tags) { 13328 o.Tags = v 13329 } 13330 13331 // HasTag 指定のタグが存在する場合trueを返す 13332 func (o *SwitchInfo) HasTag(tag string) bool { 13333 return accessor.HasTag(o, tag) 13334 } 13335 13336 // AppendTag 指定のタグを追加 13337 func (o *SwitchInfo) AppendTag(tag string) { 13338 accessor.AppendTag(o, tag) 13339 } 13340 13341 // RemoveTag 指定のタグを削除 13342 func (o *SwitchInfo) RemoveTag(tag string) { 13343 accessor.RemoveTag(o, tag) 13344 } 13345 13346 // ClearTags タグを全クリア 13347 func (o *SwitchInfo) ClearTags() { 13348 accessor.ClearTags(o) 13349 } 13350 13351 // GetScope returns value of Scope 13352 func (o *SwitchInfo) GetScope() types.EScope { 13353 return o.Scope 13354 } 13355 13356 // SetScope sets value to Scope 13357 func (o *SwitchInfo) SetScope(v types.EScope) { 13358 o.Scope = v 13359 } 13360 13361 // GetSubnets returns value of Subnets 13362 func (o *SwitchInfo) GetSubnets() []*InternetSubnet { 13363 return o.Subnets 13364 } 13365 13366 // SetSubnets sets value to Subnets 13367 func (o *SwitchInfo) SetSubnets(v []*InternetSubnet) { 13368 o.Subnets = v 13369 } 13370 13371 // GetIPv6Nets returns value of IPv6Nets 13372 func (o *SwitchInfo) GetIPv6Nets() []*IPv6NetInfo { 13373 return o.IPv6Nets 13374 } 13375 13376 // SetIPv6Nets sets value to IPv6Nets 13377 func (o *SwitchInfo) SetIPv6Nets(v []*IPv6NetInfo) { 13378 o.IPv6Nets = v 13379 } 13380 13381 /************************************************* 13382 * InternetSubnet 13383 *************************************************/ 13384 13385 // InternetSubnet represents API parameter/response structure 13386 type InternetSubnet struct { 13387 ID types.ID 13388 DefaultRoute string 13389 NextHop string 13390 StaticRoute string 13391 NetworkAddress string 13392 NetworkMaskLen int 13393 } 13394 13395 // setDefaults implements iaas.argumentDefaulter 13396 func (o *InternetSubnet) setDefaults() interface{} { 13397 return &struct { 13398 ID types.ID 13399 DefaultRoute string 13400 NextHop string 13401 StaticRoute string 13402 NetworkAddress string 13403 NetworkMaskLen int 13404 }{ 13405 ID: o.GetID(), 13406 DefaultRoute: o.GetDefaultRoute(), 13407 NextHop: o.GetNextHop(), 13408 StaticRoute: o.GetStaticRoute(), 13409 NetworkAddress: o.GetNetworkAddress(), 13410 NetworkMaskLen: o.GetNetworkMaskLen(), 13411 } 13412 } 13413 13414 // GetID returns value of ID 13415 func (o *InternetSubnet) GetID() types.ID { 13416 return o.ID 13417 } 13418 13419 // SetID sets value to ID 13420 func (o *InternetSubnet) SetID(v types.ID) { 13421 o.ID = v 13422 } 13423 13424 // SetStringID . 13425 func (o *InternetSubnet) SetStringID(id string) { 13426 accessor.SetStringID(o, id) 13427 } 13428 13429 // GetStringID . 13430 func (o *InternetSubnet) GetStringID() string { 13431 return accessor.GetStringID(o) 13432 } 13433 13434 // SetInt64ID . 13435 func (o *InternetSubnet) SetInt64ID(id int64) { 13436 accessor.SetInt64ID(o, id) 13437 } 13438 13439 // GetInt64ID . 13440 func (o *InternetSubnet) GetInt64ID() int64 { 13441 return accessor.GetInt64ID(o) 13442 } 13443 13444 // GetDefaultRoute returns value of DefaultRoute 13445 func (o *InternetSubnet) GetDefaultRoute() string { 13446 return o.DefaultRoute 13447 } 13448 13449 // SetDefaultRoute sets value to DefaultRoute 13450 func (o *InternetSubnet) SetDefaultRoute(v string) { 13451 o.DefaultRoute = v 13452 } 13453 13454 // GetNextHop returns value of NextHop 13455 func (o *InternetSubnet) GetNextHop() string { 13456 return o.NextHop 13457 } 13458 13459 // SetNextHop sets value to NextHop 13460 func (o *InternetSubnet) SetNextHop(v string) { 13461 o.NextHop = v 13462 } 13463 13464 // GetStaticRoute returns value of StaticRoute 13465 func (o *InternetSubnet) GetStaticRoute() string { 13466 return o.StaticRoute 13467 } 13468 13469 // SetStaticRoute sets value to StaticRoute 13470 func (o *InternetSubnet) SetStaticRoute(v string) { 13471 o.StaticRoute = v 13472 } 13473 13474 // GetNetworkAddress returns value of NetworkAddress 13475 func (o *InternetSubnet) GetNetworkAddress() string { 13476 return o.NetworkAddress 13477 } 13478 13479 // SetNetworkAddress sets value to NetworkAddress 13480 func (o *InternetSubnet) SetNetworkAddress(v string) { 13481 o.NetworkAddress = v 13482 } 13483 13484 // GetNetworkMaskLen returns value of NetworkMaskLen 13485 func (o *InternetSubnet) GetNetworkMaskLen() int { 13486 return o.NetworkMaskLen 13487 } 13488 13489 // SetNetworkMaskLen sets value to NetworkMaskLen 13490 func (o *InternetSubnet) SetNetworkMaskLen(v int) { 13491 o.NetworkMaskLen = v 13492 } 13493 13494 /************************************************* 13495 * IPv6NetInfo 13496 *************************************************/ 13497 13498 // IPv6NetInfo represents API parameter/response structure 13499 type IPv6NetInfo struct { 13500 ID types.ID 13501 IPv6Prefix string 13502 IPv6PrefixLen int 13503 } 13504 13505 // setDefaults implements iaas.argumentDefaulter 13506 func (o *IPv6NetInfo) setDefaults() interface{} { 13507 return &struct { 13508 ID types.ID 13509 IPv6Prefix string 13510 IPv6PrefixLen int 13511 }{ 13512 ID: o.GetID(), 13513 IPv6Prefix: o.GetIPv6Prefix(), 13514 IPv6PrefixLen: o.GetIPv6PrefixLen(), 13515 } 13516 } 13517 13518 // GetID returns value of ID 13519 func (o *IPv6NetInfo) GetID() types.ID { 13520 return o.ID 13521 } 13522 13523 // SetID sets value to ID 13524 func (o *IPv6NetInfo) SetID(v types.ID) { 13525 o.ID = v 13526 } 13527 13528 // SetStringID . 13529 func (o *IPv6NetInfo) SetStringID(id string) { 13530 accessor.SetStringID(o, id) 13531 } 13532 13533 // GetStringID . 13534 func (o *IPv6NetInfo) GetStringID() string { 13535 return accessor.GetStringID(o) 13536 } 13537 13538 // SetInt64ID . 13539 func (o *IPv6NetInfo) SetInt64ID(id int64) { 13540 accessor.SetInt64ID(o, id) 13541 } 13542 13543 // GetInt64ID . 13544 func (o *IPv6NetInfo) GetInt64ID() int64 { 13545 return accessor.GetInt64ID(o) 13546 } 13547 13548 // GetIPv6Prefix returns value of IPv6Prefix 13549 func (o *IPv6NetInfo) GetIPv6Prefix() string { 13550 return o.IPv6Prefix 13551 } 13552 13553 // SetIPv6Prefix sets value to IPv6Prefix 13554 func (o *IPv6NetInfo) SetIPv6Prefix(v string) { 13555 o.IPv6Prefix = v 13556 } 13557 13558 // GetIPv6PrefixLen returns value of IPv6PrefixLen 13559 func (o *IPv6NetInfo) GetIPv6PrefixLen() int { 13560 return o.IPv6PrefixLen 13561 } 13562 13563 // SetIPv6PrefixLen sets value to IPv6PrefixLen 13564 func (o *IPv6NetInfo) SetIPv6PrefixLen(v int) { 13565 o.IPv6PrefixLen = v 13566 } 13567 13568 /************************************************* 13569 * InternetCreateRequest 13570 *************************************************/ 13571 13572 // InternetCreateRequest represents API parameter/response structure 13573 type InternetCreateRequest struct { 13574 Name string 13575 Description string 13576 Tags types.Tags 13577 IconID types.ID `mapconv:"Icon.ID"` 13578 NetworkMaskLen int 13579 BandWidthMbps int 13580 } 13581 13582 // setDefaults implements iaas.argumentDefaulter 13583 func (o *InternetCreateRequest) setDefaults() interface{} { 13584 return &struct { 13585 Name string 13586 Description string 13587 Tags types.Tags 13588 IconID types.ID `mapconv:"Icon.ID"` 13589 NetworkMaskLen int 13590 BandWidthMbps int 13591 }{ 13592 Name: o.GetName(), 13593 Description: o.GetDescription(), 13594 Tags: o.GetTags(), 13595 IconID: o.GetIconID(), 13596 NetworkMaskLen: o.GetNetworkMaskLen(), 13597 BandWidthMbps: o.GetBandWidthMbps(), 13598 } 13599 } 13600 13601 // GetName returns value of Name 13602 func (o *InternetCreateRequest) GetName() string { 13603 return o.Name 13604 } 13605 13606 // SetName sets value to Name 13607 func (o *InternetCreateRequest) SetName(v string) { 13608 o.Name = v 13609 } 13610 13611 // GetDescription returns value of Description 13612 func (o *InternetCreateRequest) GetDescription() string { 13613 return o.Description 13614 } 13615 13616 // SetDescription sets value to Description 13617 func (o *InternetCreateRequest) SetDescription(v string) { 13618 o.Description = v 13619 } 13620 13621 // GetTags returns value of Tags 13622 func (o *InternetCreateRequest) GetTags() types.Tags { 13623 return o.Tags 13624 } 13625 13626 // SetTags sets value to Tags 13627 func (o *InternetCreateRequest) SetTags(v types.Tags) { 13628 o.Tags = v 13629 } 13630 13631 // HasTag 指定のタグが存在する場合trueを返す 13632 func (o *InternetCreateRequest) HasTag(tag string) bool { 13633 return accessor.HasTag(o, tag) 13634 } 13635 13636 // AppendTag 指定のタグを追加 13637 func (o *InternetCreateRequest) AppendTag(tag string) { 13638 accessor.AppendTag(o, tag) 13639 } 13640 13641 // RemoveTag 指定のタグを削除 13642 func (o *InternetCreateRequest) RemoveTag(tag string) { 13643 accessor.RemoveTag(o, tag) 13644 } 13645 13646 // ClearTags タグを全クリア 13647 func (o *InternetCreateRequest) ClearTags() { 13648 accessor.ClearTags(o) 13649 } 13650 13651 // GetIconID returns value of IconID 13652 func (o *InternetCreateRequest) GetIconID() types.ID { 13653 return o.IconID 13654 } 13655 13656 // SetIconID sets value to IconID 13657 func (o *InternetCreateRequest) SetIconID(v types.ID) { 13658 o.IconID = v 13659 } 13660 13661 // GetNetworkMaskLen returns value of NetworkMaskLen 13662 func (o *InternetCreateRequest) GetNetworkMaskLen() int { 13663 return o.NetworkMaskLen 13664 } 13665 13666 // SetNetworkMaskLen sets value to NetworkMaskLen 13667 func (o *InternetCreateRequest) SetNetworkMaskLen(v int) { 13668 o.NetworkMaskLen = v 13669 } 13670 13671 // GetBandWidthMbps returns value of BandWidthMbps 13672 func (o *InternetCreateRequest) GetBandWidthMbps() int { 13673 return o.BandWidthMbps 13674 } 13675 13676 // SetBandWidthMbps sets value to BandWidthMbps 13677 func (o *InternetCreateRequest) SetBandWidthMbps(v int) { 13678 o.BandWidthMbps = v 13679 } 13680 13681 /************************************************* 13682 * InternetUpdateRequest 13683 *************************************************/ 13684 13685 // InternetUpdateRequest represents API parameter/response structure 13686 type InternetUpdateRequest struct { 13687 Name string 13688 Description string 13689 Tags types.Tags 13690 IconID types.ID `mapconv:"Icon.ID"` 13691 } 13692 13693 // setDefaults implements iaas.argumentDefaulter 13694 func (o *InternetUpdateRequest) setDefaults() interface{} { 13695 return &struct { 13696 Name string 13697 Description string 13698 Tags types.Tags 13699 IconID types.ID `mapconv:"Icon.ID"` 13700 }{ 13701 Name: o.GetName(), 13702 Description: o.GetDescription(), 13703 Tags: o.GetTags(), 13704 IconID: o.GetIconID(), 13705 } 13706 } 13707 13708 // GetName returns value of Name 13709 func (o *InternetUpdateRequest) GetName() string { 13710 return o.Name 13711 } 13712 13713 // SetName sets value to Name 13714 func (o *InternetUpdateRequest) SetName(v string) { 13715 o.Name = v 13716 } 13717 13718 // GetDescription returns value of Description 13719 func (o *InternetUpdateRequest) GetDescription() string { 13720 return o.Description 13721 } 13722 13723 // SetDescription sets value to Description 13724 func (o *InternetUpdateRequest) SetDescription(v string) { 13725 o.Description = v 13726 } 13727 13728 // GetTags returns value of Tags 13729 func (o *InternetUpdateRequest) GetTags() types.Tags { 13730 return o.Tags 13731 } 13732 13733 // SetTags sets value to Tags 13734 func (o *InternetUpdateRequest) SetTags(v types.Tags) { 13735 o.Tags = v 13736 } 13737 13738 // HasTag 指定のタグが存在する場合trueを返す 13739 func (o *InternetUpdateRequest) HasTag(tag string) bool { 13740 return accessor.HasTag(o, tag) 13741 } 13742 13743 // AppendTag 指定のタグを追加 13744 func (o *InternetUpdateRequest) AppendTag(tag string) { 13745 accessor.AppendTag(o, tag) 13746 } 13747 13748 // RemoveTag 指定のタグを削除 13749 func (o *InternetUpdateRequest) RemoveTag(tag string) { 13750 accessor.RemoveTag(o, tag) 13751 } 13752 13753 // ClearTags タグを全クリア 13754 func (o *InternetUpdateRequest) ClearTags() { 13755 accessor.ClearTags(o) 13756 } 13757 13758 // GetIconID returns value of IconID 13759 func (o *InternetUpdateRequest) GetIconID() types.ID { 13760 return o.IconID 13761 } 13762 13763 // SetIconID sets value to IconID 13764 func (o *InternetUpdateRequest) SetIconID(v types.ID) { 13765 o.IconID = v 13766 } 13767 13768 /************************************************* 13769 * InternetUpdateBandWidthRequest 13770 *************************************************/ 13771 13772 // InternetUpdateBandWidthRequest represents API parameter/response structure 13773 type InternetUpdateBandWidthRequest struct { 13774 BandWidthMbps int 13775 } 13776 13777 // setDefaults implements iaas.argumentDefaulter 13778 func (o *InternetUpdateBandWidthRequest) setDefaults() interface{} { 13779 return &struct { 13780 BandWidthMbps int 13781 }{ 13782 BandWidthMbps: o.GetBandWidthMbps(), 13783 } 13784 } 13785 13786 // GetBandWidthMbps returns value of BandWidthMbps 13787 func (o *InternetUpdateBandWidthRequest) GetBandWidthMbps() int { 13788 return o.BandWidthMbps 13789 } 13790 13791 // SetBandWidthMbps sets value to BandWidthMbps 13792 func (o *InternetUpdateBandWidthRequest) SetBandWidthMbps(v int) { 13793 o.BandWidthMbps = v 13794 } 13795 13796 /************************************************* 13797 * InternetSubnetOperationResult 13798 *************************************************/ 13799 13800 // InternetSubnetOperationResult represents API parameter/response structure 13801 type InternetSubnetOperationResult struct { 13802 ID types.ID 13803 DefaultRoute string 13804 NextHop string 13805 StaticRoute string 13806 NetworkAddress string 13807 NetworkMaskLen int 13808 IPAddresses []string `mapconv:"[]IPAddresses.IPAddress"` 13809 } 13810 13811 // setDefaults implements iaas.argumentDefaulter 13812 func (o *InternetSubnetOperationResult) setDefaults() interface{} { 13813 return &struct { 13814 ID types.ID 13815 DefaultRoute string 13816 NextHop string 13817 StaticRoute string 13818 NetworkAddress string 13819 NetworkMaskLen int 13820 IPAddresses []string `mapconv:"[]IPAddresses.IPAddress"` 13821 }{ 13822 ID: o.GetID(), 13823 DefaultRoute: o.GetDefaultRoute(), 13824 NextHop: o.GetNextHop(), 13825 StaticRoute: o.GetStaticRoute(), 13826 NetworkAddress: o.GetNetworkAddress(), 13827 NetworkMaskLen: o.GetNetworkMaskLen(), 13828 IPAddresses: o.GetIPAddresses(), 13829 } 13830 } 13831 13832 // GetID returns value of ID 13833 func (o *InternetSubnetOperationResult) GetID() types.ID { 13834 return o.ID 13835 } 13836 13837 // SetID sets value to ID 13838 func (o *InternetSubnetOperationResult) SetID(v types.ID) { 13839 o.ID = v 13840 } 13841 13842 // SetStringID . 13843 func (o *InternetSubnetOperationResult) SetStringID(id string) { 13844 accessor.SetStringID(o, id) 13845 } 13846 13847 // GetStringID . 13848 func (o *InternetSubnetOperationResult) GetStringID() string { 13849 return accessor.GetStringID(o) 13850 } 13851 13852 // SetInt64ID . 13853 func (o *InternetSubnetOperationResult) SetInt64ID(id int64) { 13854 accessor.SetInt64ID(o, id) 13855 } 13856 13857 // GetInt64ID . 13858 func (o *InternetSubnetOperationResult) GetInt64ID() int64 { 13859 return accessor.GetInt64ID(o) 13860 } 13861 13862 // GetDefaultRoute returns value of DefaultRoute 13863 func (o *InternetSubnetOperationResult) GetDefaultRoute() string { 13864 return o.DefaultRoute 13865 } 13866 13867 // SetDefaultRoute sets value to DefaultRoute 13868 func (o *InternetSubnetOperationResult) SetDefaultRoute(v string) { 13869 o.DefaultRoute = v 13870 } 13871 13872 // GetNextHop returns value of NextHop 13873 func (o *InternetSubnetOperationResult) GetNextHop() string { 13874 return o.NextHop 13875 } 13876 13877 // SetNextHop sets value to NextHop 13878 func (o *InternetSubnetOperationResult) SetNextHop(v string) { 13879 o.NextHop = v 13880 } 13881 13882 // GetStaticRoute returns value of StaticRoute 13883 func (o *InternetSubnetOperationResult) GetStaticRoute() string { 13884 return o.StaticRoute 13885 } 13886 13887 // SetStaticRoute sets value to StaticRoute 13888 func (o *InternetSubnetOperationResult) SetStaticRoute(v string) { 13889 o.StaticRoute = v 13890 } 13891 13892 // GetNetworkAddress returns value of NetworkAddress 13893 func (o *InternetSubnetOperationResult) GetNetworkAddress() string { 13894 return o.NetworkAddress 13895 } 13896 13897 // SetNetworkAddress sets value to NetworkAddress 13898 func (o *InternetSubnetOperationResult) SetNetworkAddress(v string) { 13899 o.NetworkAddress = v 13900 } 13901 13902 // GetNetworkMaskLen returns value of NetworkMaskLen 13903 func (o *InternetSubnetOperationResult) GetNetworkMaskLen() int { 13904 return o.NetworkMaskLen 13905 } 13906 13907 // SetNetworkMaskLen sets value to NetworkMaskLen 13908 func (o *InternetSubnetOperationResult) SetNetworkMaskLen(v int) { 13909 o.NetworkMaskLen = v 13910 } 13911 13912 // GetIPAddresses returns value of IPAddresses 13913 func (o *InternetSubnetOperationResult) GetIPAddresses() []string { 13914 return o.IPAddresses 13915 } 13916 13917 // SetIPAddresses sets value to IPAddresses 13918 func (o *InternetSubnetOperationResult) SetIPAddresses(v []string) { 13919 o.IPAddresses = v 13920 } 13921 13922 /************************************************* 13923 * InternetAddSubnetRequest 13924 *************************************************/ 13925 13926 // InternetAddSubnetRequest represents API parameter/response structure 13927 type InternetAddSubnetRequest struct { 13928 NetworkMaskLen int 13929 NextHop string 13930 } 13931 13932 // setDefaults implements iaas.argumentDefaulter 13933 func (o *InternetAddSubnetRequest) setDefaults() interface{} { 13934 return &struct { 13935 NetworkMaskLen int 13936 NextHop string 13937 }{ 13938 NetworkMaskLen: o.GetNetworkMaskLen(), 13939 NextHop: o.GetNextHop(), 13940 } 13941 } 13942 13943 // GetNetworkMaskLen returns value of NetworkMaskLen 13944 func (o *InternetAddSubnetRequest) GetNetworkMaskLen() int { 13945 return o.NetworkMaskLen 13946 } 13947 13948 // SetNetworkMaskLen sets value to NetworkMaskLen 13949 func (o *InternetAddSubnetRequest) SetNetworkMaskLen(v int) { 13950 o.NetworkMaskLen = v 13951 } 13952 13953 // GetNextHop returns value of NextHop 13954 func (o *InternetAddSubnetRequest) GetNextHop() string { 13955 return o.NextHop 13956 } 13957 13958 // SetNextHop sets value to NextHop 13959 func (o *InternetAddSubnetRequest) SetNextHop(v string) { 13960 o.NextHop = v 13961 } 13962 13963 /************************************************* 13964 * InternetUpdateSubnetRequest 13965 *************************************************/ 13966 13967 // InternetUpdateSubnetRequest represents API parameter/response structure 13968 type InternetUpdateSubnetRequest struct { 13969 NextHop string 13970 } 13971 13972 // setDefaults implements iaas.argumentDefaulter 13973 func (o *InternetUpdateSubnetRequest) setDefaults() interface{} { 13974 return &struct { 13975 NextHop string 13976 }{ 13977 NextHop: o.GetNextHop(), 13978 } 13979 } 13980 13981 // GetNextHop returns value of NextHop 13982 func (o *InternetUpdateSubnetRequest) GetNextHop() string { 13983 return o.NextHop 13984 } 13985 13986 // SetNextHop sets value to NextHop 13987 func (o *InternetUpdateSubnetRequest) SetNextHop(v string) { 13988 o.NextHop = v 13989 } 13990 13991 /************************************************* 13992 * RouterActivity 13993 *************************************************/ 13994 13995 // RouterActivity represents API parameter/response structure 13996 type RouterActivity struct { 13997 Values []*MonitorRouterValue `mapconv:"[]Router"` 13998 } 13999 14000 // setDefaults implements iaas.argumentDefaulter 14001 func (o *RouterActivity) setDefaults() interface{} { 14002 return &struct { 14003 Values []*MonitorRouterValue `mapconv:"[]Router"` 14004 }{ 14005 Values: o.GetValues(), 14006 } 14007 } 14008 14009 // GetValues returns value of Values 14010 func (o *RouterActivity) GetValues() []*MonitorRouterValue { 14011 return o.Values 14012 } 14013 14014 // SetValues sets value to Values 14015 func (o *RouterActivity) SetValues(v []*MonitorRouterValue) { 14016 o.Values = v 14017 } 14018 14019 /************************************************* 14020 * MonitorRouterValue 14021 *************************************************/ 14022 14023 // MonitorRouterValue represents API parameter/response structure 14024 type MonitorRouterValue struct { 14025 Time time.Time `mapconv:",omitempty"` 14026 In float64 `mapconv:",omitempty"` 14027 Out float64 `mapconv:",omitempty"` 14028 } 14029 14030 // setDefaults implements iaas.argumentDefaulter 14031 func (o *MonitorRouterValue) setDefaults() interface{} { 14032 return &struct { 14033 Time time.Time `mapconv:",omitempty"` 14034 In float64 `mapconv:",omitempty"` 14035 Out float64 `mapconv:",omitempty"` 14036 }{ 14037 Time: o.GetTime(), 14038 In: o.GetIn(), 14039 Out: o.GetOut(), 14040 } 14041 } 14042 14043 // GetTime returns value of Time 14044 func (o *MonitorRouterValue) GetTime() time.Time { 14045 return o.Time 14046 } 14047 14048 // SetTime sets value to Time 14049 func (o *MonitorRouterValue) SetTime(v time.Time) { 14050 o.Time = v 14051 } 14052 14053 // GetIn returns value of In 14054 func (o *MonitorRouterValue) GetIn() float64 { 14055 return o.In 14056 } 14057 14058 // SetIn sets value to In 14059 func (o *MonitorRouterValue) SetIn(v float64) { 14060 o.In = v 14061 } 14062 14063 // GetOut returns value of Out 14064 func (o *MonitorRouterValue) GetOut() float64 { 14065 return o.Out 14066 } 14067 14068 // SetOut sets value to Out 14069 func (o *MonitorRouterValue) SetOut(v float64) { 14070 o.Out = v 14071 } 14072 14073 /************************************************* 14074 * InternetPlan 14075 *************************************************/ 14076 14077 // InternetPlan represents API parameter/response structure 14078 type InternetPlan struct { 14079 ID types.ID 14080 Name string 14081 BandWidthMbps int 14082 Availability types.EAvailability 14083 } 14084 14085 // setDefaults implements iaas.argumentDefaulter 14086 func (o *InternetPlan) setDefaults() interface{} { 14087 return &struct { 14088 ID types.ID 14089 Name string 14090 BandWidthMbps int 14091 Availability types.EAvailability 14092 }{ 14093 ID: o.GetID(), 14094 Name: o.GetName(), 14095 BandWidthMbps: o.GetBandWidthMbps(), 14096 Availability: o.GetAvailability(), 14097 } 14098 } 14099 14100 // GetID returns value of ID 14101 func (o *InternetPlan) GetID() types.ID { 14102 return o.ID 14103 } 14104 14105 // SetID sets value to ID 14106 func (o *InternetPlan) SetID(v types.ID) { 14107 o.ID = v 14108 } 14109 14110 // SetStringID . 14111 func (o *InternetPlan) SetStringID(id string) { 14112 accessor.SetStringID(o, id) 14113 } 14114 14115 // GetStringID . 14116 func (o *InternetPlan) GetStringID() string { 14117 return accessor.GetStringID(o) 14118 } 14119 14120 // SetInt64ID . 14121 func (o *InternetPlan) SetInt64ID(id int64) { 14122 accessor.SetInt64ID(o, id) 14123 } 14124 14125 // GetInt64ID . 14126 func (o *InternetPlan) GetInt64ID() int64 { 14127 return accessor.GetInt64ID(o) 14128 } 14129 14130 // GetName returns value of Name 14131 func (o *InternetPlan) GetName() string { 14132 return o.Name 14133 } 14134 14135 // SetName sets value to Name 14136 func (o *InternetPlan) SetName(v string) { 14137 o.Name = v 14138 } 14139 14140 // GetBandWidthMbps returns value of BandWidthMbps 14141 func (o *InternetPlan) GetBandWidthMbps() int { 14142 return o.BandWidthMbps 14143 } 14144 14145 // SetBandWidthMbps sets value to BandWidthMbps 14146 func (o *InternetPlan) SetBandWidthMbps(v int) { 14147 o.BandWidthMbps = v 14148 } 14149 14150 // GetAvailability returns value of Availability 14151 func (o *InternetPlan) GetAvailability() types.EAvailability { 14152 return o.Availability 14153 } 14154 14155 // SetAvailability sets value to Availability 14156 func (o *InternetPlan) SetAvailability(v types.EAvailability) { 14157 o.Availability = v 14158 } 14159 14160 /************************************************* 14161 * IPAddress 14162 *************************************************/ 14163 14164 // IPAddress represents API parameter/response structure 14165 type IPAddress struct { 14166 HostName string 14167 IPAddress string 14168 InterfaceID types.ID `mapconv:"Interface.ID,omitempty"` 14169 SubnetID types.ID `mapconv:"Subnet.ID,omitempty"` 14170 } 14171 14172 // setDefaults implements iaas.argumentDefaulter 14173 func (o *IPAddress) setDefaults() interface{} { 14174 return &struct { 14175 HostName string 14176 IPAddress string 14177 InterfaceID types.ID `mapconv:"Interface.ID,omitempty"` 14178 SubnetID types.ID `mapconv:"Subnet.ID,omitempty"` 14179 }{ 14180 HostName: o.GetHostName(), 14181 IPAddress: o.GetIPAddress(), 14182 InterfaceID: o.GetInterfaceID(), 14183 SubnetID: o.GetSubnetID(), 14184 } 14185 } 14186 14187 // GetHostName returns value of HostName 14188 func (o *IPAddress) GetHostName() string { 14189 return o.HostName 14190 } 14191 14192 // SetHostName sets value to HostName 14193 func (o *IPAddress) SetHostName(v string) { 14194 o.HostName = v 14195 } 14196 14197 // GetIPAddress returns value of IPAddress 14198 func (o *IPAddress) GetIPAddress() string { 14199 return o.IPAddress 14200 } 14201 14202 // SetIPAddress sets value to IPAddress 14203 func (o *IPAddress) SetIPAddress(v string) { 14204 o.IPAddress = v 14205 } 14206 14207 // GetInterfaceID returns value of InterfaceID 14208 func (o *IPAddress) GetInterfaceID() types.ID { 14209 return o.InterfaceID 14210 } 14211 14212 // SetInterfaceID sets value to InterfaceID 14213 func (o *IPAddress) SetInterfaceID(v types.ID) { 14214 o.InterfaceID = v 14215 } 14216 14217 // GetSubnetID returns value of SubnetID 14218 func (o *IPAddress) GetSubnetID() types.ID { 14219 return o.SubnetID 14220 } 14221 14222 // SetSubnetID sets value to SubnetID 14223 func (o *IPAddress) SetSubnetID(v types.ID) { 14224 o.SubnetID = v 14225 } 14226 14227 /************************************************* 14228 * IPv6Net 14229 *************************************************/ 14230 14231 // IPv6Net represents API parameter/response structure 14232 type IPv6Net struct { 14233 ID types.ID 14234 ServiceID types.ID 14235 IPv6Prefix string 14236 IPv6PrefixLen int 14237 IPv6PrefixTail string 14238 ServiceClass string 14239 IPv6TableID types.ID `mapconv:"IPv6Table.ID"` 14240 NamedIPv6AddrCount int 14241 CreatedAt time.Time 14242 SwitchID types.ID `mapconv:"Switch.ID,omitempty"` 14243 } 14244 14245 // setDefaults implements iaas.argumentDefaulter 14246 func (o *IPv6Net) setDefaults() interface{} { 14247 return &struct { 14248 ID types.ID 14249 ServiceID types.ID 14250 IPv6Prefix string 14251 IPv6PrefixLen int 14252 IPv6PrefixTail string 14253 ServiceClass string 14254 IPv6TableID types.ID `mapconv:"IPv6Table.ID"` 14255 NamedIPv6AddrCount int 14256 CreatedAt time.Time 14257 SwitchID types.ID `mapconv:"Switch.ID,omitempty"` 14258 }{ 14259 ID: o.GetID(), 14260 ServiceID: o.GetServiceID(), 14261 IPv6Prefix: o.GetIPv6Prefix(), 14262 IPv6PrefixLen: o.GetIPv6PrefixLen(), 14263 IPv6PrefixTail: o.GetIPv6PrefixTail(), 14264 ServiceClass: o.GetServiceClass(), 14265 IPv6TableID: o.GetIPv6TableID(), 14266 NamedIPv6AddrCount: o.GetNamedIPv6AddrCount(), 14267 CreatedAt: o.GetCreatedAt(), 14268 SwitchID: o.GetSwitchID(), 14269 } 14270 } 14271 14272 // GetID returns value of ID 14273 func (o *IPv6Net) GetID() types.ID { 14274 return o.ID 14275 } 14276 14277 // SetID sets value to ID 14278 func (o *IPv6Net) SetID(v types.ID) { 14279 o.ID = v 14280 } 14281 14282 // SetStringID . 14283 func (o *IPv6Net) SetStringID(id string) { 14284 accessor.SetStringID(o, id) 14285 } 14286 14287 // GetStringID . 14288 func (o *IPv6Net) GetStringID() string { 14289 return accessor.GetStringID(o) 14290 } 14291 14292 // SetInt64ID . 14293 func (o *IPv6Net) SetInt64ID(id int64) { 14294 accessor.SetInt64ID(o, id) 14295 } 14296 14297 // GetInt64ID . 14298 func (o *IPv6Net) GetInt64ID() int64 { 14299 return accessor.GetInt64ID(o) 14300 } 14301 14302 // GetServiceID returns value of ServiceID 14303 func (o *IPv6Net) GetServiceID() types.ID { 14304 return o.ServiceID 14305 } 14306 14307 // SetServiceID sets value to ServiceID 14308 func (o *IPv6Net) SetServiceID(v types.ID) { 14309 o.ServiceID = v 14310 } 14311 14312 // GetIPv6Prefix returns value of IPv6Prefix 14313 func (o *IPv6Net) GetIPv6Prefix() string { 14314 return o.IPv6Prefix 14315 } 14316 14317 // SetIPv6Prefix sets value to IPv6Prefix 14318 func (o *IPv6Net) SetIPv6Prefix(v string) { 14319 o.IPv6Prefix = v 14320 } 14321 14322 // GetIPv6PrefixLen returns value of IPv6PrefixLen 14323 func (o *IPv6Net) GetIPv6PrefixLen() int { 14324 return o.IPv6PrefixLen 14325 } 14326 14327 // SetIPv6PrefixLen sets value to IPv6PrefixLen 14328 func (o *IPv6Net) SetIPv6PrefixLen(v int) { 14329 o.IPv6PrefixLen = v 14330 } 14331 14332 // GetIPv6PrefixTail returns value of IPv6PrefixTail 14333 func (o *IPv6Net) GetIPv6PrefixTail() string { 14334 return o.IPv6PrefixTail 14335 } 14336 14337 // SetIPv6PrefixTail sets value to IPv6PrefixTail 14338 func (o *IPv6Net) SetIPv6PrefixTail(v string) { 14339 o.IPv6PrefixTail = v 14340 } 14341 14342 // GetServiceClass returns value of ServiceClass 14343 func (o *IPv6Net) GetServiceClass() string { 14344 return o.ServiceClass 14345 } 14346 14347 // SetServiceClass sets value to ServiceClass 14348 func (o *IPv6Net) SetServiceClass(v string) { 14349 o.ServiceClass = v 14350 } 14351 14352 // GetIPv6TableID returns value of IPv6TableID 14353 func (o *IPv6Net) GetIPv6TableID() types.ID { 14354 return o.IPv6TableID 14355 } 14356 14357 // SetIPv6TableID sets value to IPv6TableID 14358 func (o *IPv6Net) SetIPv6TableID(v types.ID) { 14359 o.IPv6TableID = v 14360 } 14361 14362 // GetNamedIPv6AddrCount returns value of NamedIPv6AddrCount 14363 func (o *IPv6Net) GetNamedIPv6AddrCount() int { 14364 return o.NamedIPv6AddrCount 14365 } 14366 14367 // SetNamedIPv6AddrCount sets value to NamedIPv6AddrCount 14368 func (o *IPv6Net) SetNamedIPv6AddrCount(v int) { 14369 o.NamedIPv6AddrCount = v 14370 } 14371 14372 // GetCreatedAt returns value of CreatedAt 14373 func (o *IPv6Net) GetCreatedAt() time.Time { 14374 return o.CreatedAt 14375 } 14376 14377 // SetCreatedAt sets value to CreatedAt 14378 func (o *IPv6Net) SetCreatedAt(v time.Time) { 14379 o.CreatedAt = v 14380 } 14381 14382 // GetSwitchID returns value of SwitchID 14383 func (o *IPv6Net) GetSwitchID() types.ID { 14384 return o.SwitchID 14385 } 14386 14387 // SetSwitchID sets value to SwitchID 14388 func (o *IPv6Net) SetSwitchID(v types.ID) { 14389 o.SwitchID = v 14390 } 14391 14392 /************************************************* 14393 * IPv6Addr 14394 *************************************************/ 14395 14396 // IPv6Addr represents API parameter/response structure 14397 type IPv6Addr struct { 14398 IPv6Addr string 14399 HostName string 14400 IPv6NetID types.ID `mapconv:"IPv6Net.ID"` 14401 SwitchID types.ID `mapconv:"IPv6Net.Switch.ID"` 14402 InterfaceID types.ID `mapconv:"Interface.ID,omitempty"` 14403 } 14404 14405 // setDefaults implements iaas.argumentDefaulter 14406 func (o *IPv6Addr) setDefaults() interface{} { 14407 return &struct { 14408 IPv6Addr string 14409 HostName string 14410 IPv6NetID types.ID `mapconv:"IPv6Net.ID"` 14411 SwitchID types.ID `mapconv:"IPv6Net.Switch.ID"` 14412 InterfaceID types.ID `mapconv:"Interface.ID,omitempty"` 14413 }{ 14414 IPv6Addr: o.GetIPv6Addr(), 14415 HostName: o.GetHostName(), 14416 IPv6NetID: o.GetIPv6NetID(), 14417 SwitchID: o.GetSwitchID(), 14418 InterfaceID: o.GetInterfaceID(), 14419 } 14420 } 14421 14422 // GetIPv6Addr returns value of IPv6Addr 14423 func (o *IPv6Addr) GetIPv6Addr() string { 14424 return o.IPv6Addr 14425 } 14426 14427 // SetIPv6Addr sets value to IPv6Addr 14428 func (o *IPv6Addr) SetIPv6Addr(v string) { 14429 o.IPv6Addr = v 14430 } 14431 14432 // GetHostName returns value of HostName 14433 func (o *IPv6Addr) GetHostName() string { 14434 return o.HostName 14435 } 14436 14437 // SetHostName sets value to HostName 14438 func (o *IPv6Addr) SetHostName(v string) { 14439 o.HostName = v 14440 } 14441 14442 // GetIPv6NetID returns value of IPv6NetID 14443 func (o *IPv6Addr) GetIPv6NetID() types.ID { 14444 return o.IPv6NetID 14445 } 14446 14447 // SetIPv6NetID sets value to IPv6NetID 14448 func (o *IPv6Addr) SetIPv6NetID(v types.ID) { 14449 o.IPv6NetID = v 14450 } 14451 14452 // GetSwitchID returns value of SwitchID 14453 func (o *IPv6Addr) GetSwitchID() types.ID { 14454 return o.SwitchID 14455 } 14456 14457 // SetSwitchID sets value to SwitchID 14458 func (o *IPv6Addr) SetSwitchID(v types.ID) { 14459 o.SwitchID = v 14460 } 14461 14462 // GetInterfaceID returns value of InterfaceID 14463 func (o *IPv6Addr) GetInterfaceID() types.ID { 14464 return o.InterfaceID 14465 } 14466 14467 // SetInterfaceID sets value to InterfaceID 14468 func (o *IPv6Addr) SetInterfaceID(v types.ID) { 14469 o.InterfaceID = v 14470 } 14471 14472 /************************************************* 14473 * IPv6AddrCreateRequest 14474 *************************************************/ 14475 14476 // IPv6AddrCreateRequest represents API parameter/response structure 14477 type IPv6AddrCreateRequest struct { 14478 IPv6Addr string 14479 HostName string 14480 } 14481 14482 // setDefaults implements iaas.argumentDefaulter 14483 func (o *IPv6AddrCreateRequest) setDefaults() interface{} { 14484 return &struct { 14485 IPv6Addr string 14486 HostName string 14487 }{ 14488 IPv6Addr: o.GetIPv6Addr(), 14489 HostName: o.GetHostName(), 14490 } 14491 } 14492 14493 // GetIPv6Addr returns value of IPv6Addr 14494 func (o *IPv6AddrCreateRequest) GetIPv6Addr() string { 14495 return o.IPv6Addr 14496 } 14497 14498 // SetIPv6Addr sets value to IPv6Addr 14499 func (o *IPv6AddrCreateRequest) SetIPv6Addr(v string) { 14500 o.IPv6Addr = v 14501 } 14502 14503 // GetHostName returns value of HostName 14504 func (o *IPv6AddrCreateRequest) GetHostName() string { 14505 return o.HostName 14506 } 14507 14508 // SetHostName sets value to HostName 14509 func (o *IPv6AddrCreateRequest) SetHostName(v string) { 14510 o.HostName = v 14511 } 14512 14513 /************************************************* 14514 * IPv6AddrUpdateRequest 14515 *************************************************/ 14516 14517 // IPv6AddrUpdateRequest represents API parameter/response structure 14518 type IPv6AddrUpdateRequest struct { 14519 HostName string 14520 } 14521 14522 // setDefaults implements iaas.argumentDefaulter 14523 func (o *IPv6AddrUpdateRequest) setDefaults() interface{} { 14524 return &struct { 14525 HostName string 14526 }{ 14527 HostName: o.GetHostName(), 14528 } 14529 } 14530 14531 // GetHostName returns value of HostName 14532 func (o *IPv6AddrUpdateRequest) GetHostName() string { 14533 return o.HostName 14534 } 14535 14536 // SetHostName sets value to HostName 14537 func (o *IPv6AddrUpdateRequest) SetHostName(v string) { 14538 o.HostName = v 14539 } 14540 14541 /************************************************* 14542 * License 14543 *************************************************/ 14544 14545 // License represents API parameter/response structure 14546 type License struct { 14547 ID types.ID 14548 Name string 14549 LicenseInfoID types.ID `mapconv:"LicenseInfo.ID"` 14550 LicenseInfoName string `mapconv:"LicenseInfo.Name"` 14551 CreatedAt time.Time 14552 ModifiedAt time.Time 14553 } 14554 14555 // setDefaults implements iaas.argumentDefaulter 14556 func (o *License) setDefaults() interface{} { 14557 return &struct { 14558 ID types.ID 14559 Name string 14560 LicenseInfoID types.ID `mapconv:"LicenseInfo.ID"` 14561 LicenseInfoName string `mapconv:"LicenseInfo.Name"` 14562 CreatedAt time.Time 14563 ModifiedAt time.Time 14564 }{ 14565 ID: o.GetID(), 14566 Name: o.GetName(), 14567 LicenseInfoID: o.GetLicenseInfoID(), 14568 LicenseInfoName: o.GetLicenseInfoName(), 14569 CreatedAt: o.GetCreatedAt(), 14570 ModifiedAt: o.GetModifiedAt(), 14571 } 14572 } 14573 14574 // GetID returns value of ID 14575 func (o *License) GetID() types.ID { 14576 return o.ID 14577 } 14578 14579 // SetID sets value to ID 14580 func (o *License) SetID(v types.ID) { 14581 o.ID = v 14582 } 14583 14584 // SetStringID . 14585 func (o *License) SetStringID(id string) { 14586 accessor.SetStringID(o, id) 14587 } 14588 14589 // GetStringID . 14590 func (o *License) GetStringID() string { 14591 return accessor.GetStringID(o) 14592 } 14593 14594 // SetInt64ID . 14595 func (o *License) SetInt64ID(id int64) { 14596 accessor.SetInt64ID(o, id) 14597 } 14598 14599 // GetInt64ID . 14600 func (o *License) GetInt64ID() int64 { 14601 return accessor.GetInt64ID(o) 14602 } 14603 14604 // GetName returns value of Name 14605 func (o *License) GetName() string { 14606 return o.Name 14607 } 14608 14609 // SetName sets value to Name 14610 func (o *License) SetName(v string) { 14611 o.Name = v 14612 } 14613 14614 // GetLicenseInfoID returns value of LicenseInfoID 14615 func (o *License) GetLicenseInfoID() types.ID { 14616 return o.LicenseInfoID 14617 } 14618 14619 // SetLicenseInfoID sets value to LicenseInfoID 14620 func (o *License) SetLicenseInfoID(v types.ID) { 14621 o.LicenseInfoID = v 14622 } 14623 14624 // GetLicenseInfoName returns value of LicenseInfoName 14625 func (o *License) GetLicenseInfoName() string { 14626 return o.LicenseInfoName 14627 } 14628 14629 // SetLicenseInfoName sets value to LicenseInfoName 14630 func (o *License) SetLicenseInfoName(v string) { 14631 o.LicenseInfoName = v 14632 } 14633 14634 // GetCreatedAt returns value of CreatedAt 14635 func (o *License) GetCreatedAt() time.Time { 14636 return o.CreatedAt 14637 } 14638 14639 // SetCreatedAt sets value to CreatedAt 14640 func (o *License) SetCreatedAt(v time.Time) { 14641 o.CreatedAt = v 14642 } 14643 14644 // GetModifiedAt returns value of ModifiedAt 14645 func (o *License) GetModifiedAt() time.Time { 14646 return o.ModifiedAt 14647 } 14648 14649 // SetModifiedAt sets value to ModifiedAt 14650 func (o *License) SetModifiedAt(v time.Time) { 14651 o.ModifiedAt = v 14652 } 14653 14654 /************************************************* 14655 * LicenseCreateRequest 14656 *************************************************/ 14657 14658 // LicenseCreateRequest represents API parameter/response structure 14659 type LicenseCreateRequest struct { 14660 Name string 14661 LicenseInfoID types.ID `mapconv:"LicenseInfo.ID"` 14662 } 14663 14664 // setDefaults implements iaas.argumentDefaulter 14665 func (o *LicenseCreateRequest) setDefaults() interface{} { 14666 return &struct { 14667 Name string 14668 LicenseInfoID types.ID `mapconv:"LicenseInfo.ID"` 14669 }{ 14670 Name: o.GetName(), 14671 LicenseInfoID: o.GetLicenseInfoID(), 14672 } 14673 } 14674 14675 // GetName returns value of Name 14676 func (o *LicenseCreateRequest) GetName() string { 14677 return o.Name 14678 } 14679 14680 // SetName sets value to Name 14681 func (o *LicenseCreateRequest) SetName(v string) { 14682 o.Name = v 14683 } 14684 14685 // GetLicenseInfoID returns value of LicenseInfoID 14686 func (o *LicenseCreateRequest) GetLicenseInfoID() types.ID { 14687 return o.LicenseInfoID 14688 } 14689 14690 // SetLicenseInfoID sets value to LicenseInfoID 14691 func (o *LicenseCreateRequest) SetLicenseInfoID(v types.ID) { 14692 o.LicenseInfoID = v 14693 } 14694 14695 /************************************************* 14696 * LicenseUpdateRequest 14697 *************************************************/ 14698 14699 // LicenseUpdateRequest represents API parameter/response structure 14700 type LicenseUpdateRequest struct { 14701 Name string 14702 } 14703 14704 // setDefaults implements iaas.argumentDefaulter 14705 func (o *LicenseUpdateRequest) setDefaults() interface{} { 14706 return &struct { 14707 Name string 14708 }{ 14709 Name: o.GetName(), 14710 } 14711 } 14712 14713 // GetName returns value of Name 14714 func (o *LicenseUpdateRequest) GetName() string { 14715 return o.Name 14716 } 14717 14718 // SetName sets value to Name 14719 func (o *LicenseUpdateRequest) SetName(v string) { 14720 o.Name = v 14721 } 14722 14723 /************************************************* 14724 * LicenseInfo 14725 *************************************************/ 14726 14727 // LicenseInfo represents API parameter/response structure 14728 type LicenseInfo struct { 14729 ID types.ID 14730 Name string 14731 CreatedAt time.Time 14732 ModifiedAt time.Time 14733 TermsOfUse string 14734 } 14735 14736 // setDefaults implements iaas.argumentDefaulter 14737 func (o *LicenseInfo) setDefaults() interface{} { 14738 return &struct { 14739 ID types.ID 14740 Name string 14741 CreatedAt time.Time 14742 ModifiedAt time.Time 14743 TermsOfUse string 14744 }{ 14745 ID: o.GetID(), 14746 Name: o.GetName(), 14747 CreatedAt: o.GetCreatedAt(), 14748 ModifiedAt: o.GetModifiedAt(), 14749 TermsOfUse: o.GetTermsOfUse(), 14750 } 14751 } 14752 14753 // GetID returns value of ID 14754 func (o *LicenseInfo) GetID() types.ID { 14755 return o.ID 14756 } 14757 14758 // SetID sets value to ID 14759 func (o *LicenseInfo) SetID(v types.ID) { 14760 o.ID = v 14761 } 14762 14763 // SetStringID . 14764 func (o *LicenseInfo) SetStringID(id string) { 14765 accessor.SetStringID(o, id) 14766 } 14767 14768 // GetStringID . 14769 func (o *LicenseInfo) GetStringID() string { 14770 return accessor.GetStringID(o) 14771 } 14772 14773 // SetInt64ID . 14774 func (o *LicenseInfo) SetInt64ID(id int64) { 14775 accessor.SetInt64ID(o, id) 14776 } 14777 14778 // GetInt64ID . 14779 func (o *LicenseInfo) GetInt64ID() int64 { 14780 return accessor.GetInt64ID(o) 14781 } 14782 14783 // GetName returns value of Name 14784 func (o *LicenseInfo) GetName() string { 14785 return o.Name 14786 } 14787 14788 // SetName sets value to Name 14789 func (o *LicenseInfo) SetName(v string) { 14790 o.Name = v 14791 } 14792 14793 // GetCreatedAt returns value of CreatedAt 14794 func (o *LicenseInfo) GetCreatedAt() time.Time { 14795 return o.CreatedAt 14796 } 14797 14798 // SetCreatedAt sets value to CreatedAt 14799 func (o *LicenseInfo) SetCreatedAt(v time.Time) { 14800 o.CreatedAt = v 14801 } 14802 14803 // GetModifiedAt returns value of ModifiedAt 14804 func (o *LicenseInfo) GetModifiedAt() time.Time { 14805 return o.ModifiedAt 14806 } 14807 14808 // SetModifiedAt sets value to ModifiedAt 14809 func (o *LicenseInfo) SetModifiedAt(v time.Time) { 14810 o.ModifiedAt = v 14811 } 14812 14813 // GetTermsOfUse returns value of TermsOfUse 14814 func (o *LicenseInfo) GetTermsOfUse() string { 14815 return o.TermsOfUse 14816 } 14817 14818 // SetTermsOfUse sets value to TermsOfUse 14819 func (o *LicenseInfo) SetTermsOfUse(v string) { 14820 o.TermsOfUse = v 14821 } 14822 14823 /************************************************* 14824 * LoadBalancer 14825 *************************************************/ 14826 14827 // LoadBalancer represents API parameter/response structure 14828 type LoadBalancer struct { 14829 ID types.ID 14830 Name string 14831 Description string 14832 Tags types.Tags 14833 Availability types.EAvailability 14834 Class string 14835 IconID types.ID `mapconv:"Icon.ID"` 14836 CreatedAt time.Time 14837 ModifiedAt time.Time 14838 InstanceHostName string `mapconv:"Instance.Host.Name"` 14839 InstanceHostInfoURL string `mapconv:"Instance.Host.InfoURL"` 14840 InstanceStatus types.EServerInstanceStatus `mapconv:"Instance.Status"` 14841 InstanceStatusChangedAt time.Time `mapconv:"Instance.StatusChangedAt"` 14842 PlanID types.ID `mapconv:"Remark.Plan.ID/Plan.ID"` 14843 SwitchID types.ID `mapconv:"Remark.Switch.ID"` 14844 DefaultRoute string `mapconv:"Remark.Network.DefaultRoute"` 14845 NetworkMaskLen int `mapconv:"Remark.Network.NetworkMaskLen"` 14846 IPAddresses []string `mapconv:"Remark.[]Servers.IPAddress"` 14847 ZoneID types.ID `mapconv:"Remark.Zone.ID"` 14848 VRID int `mapconv:"Remark.VRRP.VRID"` 14849 VirtualIPAddresses LoadBalancerVirtualIPAddresses `mapconv:"Settings.[]LoadBalancer,recursive"` 14850 SettingsHash string `json:",omitempty" mapconv:",omitempty"` 14851 Interfaces []*InterfaceView `json:",omitempty" mapconv:"[]Interfaces,recursive,omitempty"` 14852 } 14853 14854 // setDefaults implements iaas.argumentDefaulter 14855 func (o *LoadBalancer) setDefaults() interface{} { 14856 return &struct { 14857 ID types.ID 14858 Name string 14859 Description string 14860 Tags types.Tags 14861 Availability types.EAvailability 14862 Class string 14863 IconID types.ID `mapconv:"Icon.ID"` 14864 CreatedAt time.Time 14865 ModifiedAt time.Time 14866 InstanceHostName string `mapconv:"Instance.Host.Name"` 14867 InstanceHostInfoURL string `mapconv:"Instance.Host.InfoURL"` 14868 InstanceStatus types.EServerInstanceStatus `mapconv:"Instance.Status"` 14869 InstanceStatusChangedAt time.Time `mapconv:"Instance.StatusChangedAt"` 14870 PlanID types.ID `mapconv:"Remark.Plan.ID/Plan.ID"` 14871 SwitchID types.ID `mapconv:"Remark.Switch.ID"` 14872 DefaultRoute string `mapconv:"Remark.Network.DefaultRoute"` 14873 NetworkMaskLen int `mapconv:"Remark.Network.NetworkMaskLen"` 14874 IPAddresses []string `mapconv:"Remark.[]Servers.IPAddress"` 14875 ZoneID types.ID `mapconv:"Remark.Zone.ID"` 14876 VRID int `mapconv:"Remark.VRRP.VRID"` 14877 VirtualIPAddresses LoadBalancerVirtualIPAddresses `mapconv:"Settings.[]LoadBalancer,recursive"` 14878 SettingsHash string `json:",omitempty" mapconv:",omitempty"` 14879 Interfaces []*InterfaceView `json:",omitempty" mapconv:"[]Interfaces,recursive,omitempty"` 14880 }{ 14881 ID: o.GetID(), 14882 Name: o.GetName(), 14883 Description: o.GetDescription(), 14884 Tags: o.GetTags(), 14885 Availability: o.GetAvailability(), 14886 Class: o.GetClass(), 14887 IconID: o.GetIconID(), 14888 CreatedAt: o.GetCreatedAt(), 14889 ModifiedAt: o.GetModifiedAt(), 14890 InstanceHostName: o.GetInstanceHostName(), 14891 InstanceHostInfoURL: o.GetInstanceHostInfoURL(), 14892 InstanceStatus: o.GetInstanceStatus(), 14893 InstanceStatusChangedAt: o.GetInstanceStatusChangedAt(), 14894 PlanID: o.GetPlanID(), 14895 SwitchID: o.GetSwitchID(), 14896 DefaultRoute: o.GetDefaultRoute(), 14897 NetworkMaskLen: o.GetNetworkMaskLen(), 14898 IPAddresses: o.GetIPAddresses(), 14899 ZoneID: o.GetZoneID(), 14900 VRID: o.GetVRID(), 14901 VirtualIPAddresses: o.GetVirtualIPAddresses(), 14902 SettingsHash: o.GetSettingsHash(), 14903 Interfaces: o.GetInterfaces(), 14904 } 14905 } 14906 14907 // GetID returns value of ID 14908 func (o *LoadBalancer) GetID() types.ID { 14909 return o.ID 14910 } 14911 14912 // SetID sets value to ID 14913 func (o *LoadBalancer) SetID(v types.ID) { 14914 o.ID = v 14915 } 14916 14917 // SetStringID . 14918 func (o *LoadBalancer) SetStringID(id string) { 14919 accessor.SetStringID(o, id) 14920 } 14921 14922 // GetStringID . 14923 func (o *LoadBalancer) GetStringID() string { 14924 return accessor.GetStringID(o) 14925 } 14926 14927 // SetInt64ID . 14928 func (o *LoadBalancer) SetInt64ID(id int64) { 14929 accessor.SetInt64ID(o, id) 14930 } 14931 14932 // GetInt64ID . 14933 func (o *LoadBalancer) GetInt64ID() int64 { 14934 return accessor.GetInt64ID(o) 14935 } 14936 14937 // GetName returns value of Name 14938 func (o *LoadBalancer) GetName() string { 14939 return o.Name 14940 } 14941 14942 // SetName sets value to Name 14943 func (o *LoadBalancer) SetName(v string) { 14944 o.Name = v 14945 } 14946 14947 // GetDescription returns value of Description 14948 func (o *LoadBalancer) GetDescription() string { 14949 return o.Description 14950 } 14951 14952 // SetDescription sets value to Description 14953 func (o *LoadBalancer) SetDescription(v string) { 14954 o.Description = v 14955 } 14956 14957 // GetTags returns value of Tags 14958 func (o *LoadBalancer) GetTags() types.Tags { 14959 return o.Tags 14960 } 14961 14962 // SetTags sets value to Tags 14963 func (o *LoadBalancer) SetTags(v types.Tags) { 14964 o.Tags = v 14965 } 14966 14967 // HasTag 指定のタグが存在する場合trueを返す 14968 func (o *LoadBalancer) HasTag(tag string) bool { 14969 return accessor.HasTag(o, tag) 14970 } 14971 14972 // AppendTag 指定のタグを追加 14973 func (o *LoadBalancer) AppendTag(tag string) { 14974 accessor.AppendTag(o, tag) 14975 } 14976 14977 // RemoveTag 指定のタグを削除 14978 func (o *LoadBalancer) RemoveTag(tag string) { 14979 accessor.RemoveTag(o, tag) 14980 } 14981 14982 // ClearTags タグを全クリア 14983 func (o *LoadBalancer) ClearTags() { 14984 accessor.ClearTags(o) 14985 } 14986 14987 // GetAvailability returns value of Availability 14988 func (o *LoadBalancer) GetAvailability() types.EAvailability { 14989 return o.Availability 14990 } 14991 14992 // SetAvailability sets value to Availability 14993 func (o *LoadBalancer) SetAvailability(v types.EAvailability) { 14994 o.Availability = v 14995 } 14996 14997 // GetClass returns value of Class 14998 func (o *LoadBalancer) GetClass() string { 14999 return o.Class 15000 } 15001 15002 // SetClass sets value to Class 15003 func (o *LoadBalancer) SetClass(v string) { 15004 o.Class = v 15005 } 15006 15007 // GetIconID returns value of IconID 15008 func (o *LoadBalancer) GetIconID() types.ID { 15009 return o.IconID 15010 } 15011 15012 // SetIconID sets value to IconID 15013 func (o *LoadBalancer) SetIconID(v types.ID) { 15014 o.IconID = v 15015 } 15016 15017 // GetCreatedAt returns value of CreatedAt 15018 func (o *LoadBalancer) GetCreatedAt() time.Time { 15019 return o.CreatedAt 15020 } 15021 15022 // SetCreatedAt sets value to CreatedAt 15023 func (o *LoadBalancer) SetCreatedAt(v time.Time) { 15024 o.CreatedAt = v 15025 } 15026 15027 // GetModifiedAt returns value of ModifiedAt 15028 func (o *LoadBalancer) GetModifiedAt() time.Time { 15029 return o.ModifiedAt 15030 } 15031 15032 // SetModifiedAt sets value to ModifiedAt 15033 func (o *LoadBalancer) SetModifiedAt(v time.Time) { 15034 o.ModifiedAt = v 15035 } 15036 15037 // GetInstanceHostName returns value of InstanceHostName 15038 func (o *LoadBalancer) GetInstanceHostName() string { 15039 return o.InstanceHostName 15040 } 15041 15042 // SetInstanceHostName sets value to InstanceHostName 15043 func (o *LoadBalancer) SetInstanceHostName(v string) { 15044 o.InstanceHostName = v 15045 } 15046 15047 // GetInstanceHostInfoURL returns value of InstanceHostInfoURL 15048 func (o *LoadBalancer) GetInstanceHostInfoURL() string { 15049 return o.InstanceHostInfoURL 15050 } 15051 15052 // SetInstanceHostInfoURL sets value to InstanceHostInfoURL 15053 func (o *LoadBalancer) SetInstanceHostInfoURL(v string) { 15054 o.InstanceHostInfoURL = v 15055 } 15056 15057 // GetInstanceStatus returns value of InstanceStatus 15058 func (o *LoadBalancer) GetInstanceStatus() types.EServerInstanceStatus { 15059 return o.InstanceStatus 15060 } 15061 15062 // SetInstanceStatus sets value to InstanceStatus 15063 func (o *LoadBalancer) SetInstanceStatus(v types.EServerInstanceStatus) { 15064 o.InstanceStatus = v 15065 } 15066 15067 // GetInstanceStatusChangedAt returns value of InstanceStatusChangedAt 15068 func (o *LoadBalancer) GetInstanceStatusChangedAt() time.Time { 15069 return o.InstanceStatusChangedAt 15070 } 15071 15072 // SetInstanceStatusChangedAt sets value to InstanceStatusChangedAt 15073 func (o *LoadBalancer) SetInstanceStatusChangedAt(v time.Time) { 15074 o.InstanceStatusChangedAt = v 15075 } 15076 15077 // GetPlanID returns value of PlanID 15078 func (o *LoadBalancer) GetPlanID() types.ID { 15079 return o.PlanID 15080 } 15081 15082 // SetPlanID sets value to PlanID 15083 func (o *LoadBalancer) SetPlanID(v types.ID) { 15084 o.PlanID = v 15085 } 15086 15087 // GetSwitchID returns value of SwitchID 15088 func (o *LoadBalancer) GetSwitchID() types.ID { 15089 return o.SwitchID 15090 } 15091 15092 // SetSwitchID sets value to SwitchID 15093 func (o *LoadBalancer) SetSwitchID(v types.ID) { 15094 o.SwitchID = v 15095 } 15096 15097 // GetDefaultRoute returns value of DefaultRoute 15098 func (o *LoadBalancer) GetDefaultRoute() string { 15099 return o.DefaultRoute 15100 } 15101 15102 // SetDefaultRoute sets value to DefaultRoute 15103 func (o *LoadBalancer) SetDefaultRoute(v string) { 15104 o.DefaultRoute = v 15105 } 15106 15107 // GetNetworkMaskLen returns value of NetworkMaskLen 15108 func (o *LoadBalancer) GetNetworkMaskLen() int { 15109 return o.NetworkMaskLen 15110 } 15111 15112 // SetNetworkMaskLen sets value to NetworkMaskLen 15113 func (o *LoadBalancer) SetNetworkMaskLen(v int) { 15114 o.NetworkMaskLen = v 15115 } 15116 15117 // GetIPAddresses returns value of IPAddresses 15118 func (o *LoadBalancer) GetIPAddresses() []string { 15119 return o.IPAddresses 15120 } 15121 15122 // SetIPAddresses sets value to IPAddresses 15123 func (o *LoadBalancer) SetIPAddresses(v []string) { 15124 o.IPAddresses = v 15125 } 15126 15127 // GetZoneID returns value of ZoneID 15128 func (o *LoadBalancer) GetZoneID() types.ID { 15129 return o.ZoneID 15130 } 15131 15132 // SetZoneID sets value to ZoneID 15133 func (o *LoadBalancer) SetZoneID(v types.ID) { 15134 o.ZoneID = v 15135 } 15136 15137 // GetVRID returns value of VRID 15138 func (o *LoadBalancer) GetVRID() int { 15139 return o.VRID 15140 } 15141 15142 // SetVRID sets value to VRID 15143 func (o *LoadBalancer) SetVRID(v int) { 15144 o.VRID = v 15145 } 15146 15147 // GetVirtualIPAddresses returns value of VirtualIPAddresses 15148 func (o *LoadBalancer) GetVirtualIPAddresses() LoadBalancerVirtualIPAddresses { 15149 return o.VirtualIPAddresses 15150 } 15151 15152 // SetVirtualIPAddresses sets value to VirtualIPAddresses 15153 func (o *LoadBalancer) SetVirtualIPAddresses(v LoadBalancerVirtualIPAddresses) { 15154 o.VirtualIPAddresses = v 15155 } 15156 15157 // GetSettingsHash returns value of SettingsHash 15158 func (o *LoadBalancer) GetSettingsHash() string { 15159 return o.SettingsHash 15160 } 15161 15162 // SetSettingsHash sets value to SettingsHash 15163 func (o *LoadBalancer) SetSettingsHash(v string) { 15164 o.SettingsHash = v 15165 } 15166 15167 // GetInterfaces returns value of Interfaces 15168 func (o *LoadBalancer) GetInterfaces() []*InterfaceView { 15169 return o.Interfaces 15170 } 15171 15172 // SetInterfaces sets value to Interfaces 15173 func (o *LoadBalancer) SetInterfaces(v []*InterfaceView) { 15174 o.Interfaces = v 15175 } 15176 15177 /************************************************* 15178 * LoadBalancerVirtualIPAddress 15179 *************************************************/ 15180 15181 // LoadBalancerVirtualIPAddress represents API parameter/response structure 15182 type LoadBalancerVirtualIPAddress struct { 15183 VirtualIPAddress string 15184 Port types.StringNumber 15185 DelayLoop types.StringNumber `mapconv:",default=10"` 15186 SorryServer string 15187 Description string 15188 Servers LoadBalancerServers `mapconv:"[]Servers,recursive"` 15189 } 15190 15191 // setDefaults implements iaas.argumentDefaulter 15192 func (o *LoadBalancerVirtualIPAddress) setDefaults() interface{} { 15193 return &struct { 15194 VirtualIPAddress string 15195 Port types.StringNumber 15196 DelayLoop types.StringNumber `mapconv:",default=10"` 15197 SorryServer string 15198 Description string 15199 Servers LoadBalancerServers `mapconv:"[]Servers,recursive"` 15200 }{ 15201 VirtualIPAddress: o.GetVirtualIPAddress(), 15202 Port: o.GetPort(), 15203 DelayLoop: o.GetDelayLoop(), 15204 SorryServer: o.GetSorryServer(), 15205 Description: o.GetDescription(), 15206 Servers: o.GetServers(), 15207 } 15208 } 15209 15210 // GetVirtualIPAddress returns value of VirtualIPAddress 15211 func (o *LoadBalancerVirtualIPAddress) GetVirtualIPAddress() string { 15212 return o.VirtualIPAddress 15213 } 15214 15215 // SetVirtualIPAddress sets value to VirtualIPAddress 15216 func (o *LoadBalancerVirtualIPAddress) SetVirtualIPAddress(v string) { 15217 o.VirtualIPAddress = v 15218 } 15219 15220 // GetPort returns value of Port 15221 func (o *LoadBalancerVirtualIPAddress) GetPort() types.StringNumber { 15222 return o.Port 15223 } 15224 15225 // SetPort sets value to Port 15226 func (o *LoadBalancerVirtualIPAddress) SetPort(v types.StringNumber) { 15227 o.Port = v 15228 } 15229 15230 // GetDelayLoop returns value of DelayLoop 15231 func (o *LoadBalancerVirtualIPAddress) GetDelayLoop() types.StringNumber { 15232 if o.DelayLoop == types.StringNumber(float64(0)) { 15233 return 10 15234 } 15235 return o.DelayLoop 15236 } 15237 15238 // SetDelayLoop sets value to DelayLoop 15239 func (o *LoadBalancerVirtualIPAddress) SetDelayLoop(v types.StringNumber) { 15240 o.DelayLoop = v 15241 } 15242 15243 // GetSorryServer returns value of SorryServer 15244 func (o *LoadBalancerVirtualIPAddress) GetSorryServer() string { 15245 return o.SorryServer 15246 } 15247 15248 // SetSorryServer sets value to SorryServer 15249 func (o *LoadBalancerVirtualIPAddress) SetSorryServer(v string) { 15250 o.SorryServer = v 15251 } 15252 15253 // GetDescription returns value of Description 15254 func (o *LoadBalancerVirtualIPAddress) GetDescription() string { 15255 return o.Description 15256 } 15257 15258 // SetDescription sets value to Description 15259 func (o *LoadBalancerVirtualIPAddress) SetDescription(v string) { 15260 o.Description = v 15261 } 15262 15263 // GetServers returns value of Servers 15264 func (o *LoadBalancerVirtualIPAddress) GetServers() LoadBalancerServers { 15265 return o.Servers 15266 } 15267 15268 // SetServers sets value to Servers 15269 func (o *LoadBalancerVirtualIPAddress) SetServers(v LoadBalancerServers) { 15270 o.Servers = v 15271 } 15272 15273 /************************************************* 15274 * LoadBalancerServer 15275 *************************************************/ 15276 15277 // LoadBalancerServer represents API parameter/response structure 15278 type LoadBalancerServer struct { 15279 IPAddress string 15280 Port types.StringNumber 15281 Enabled types.StringFlag 15282 HealthCheck *LoadBalancerServerHealthCheck `mapconv:"HealthCheck,recursive"` 15283 } 15284 15285 // setDefaults implements iaas.argumentDefaulter 15286 func (o *LoadBalancerServer) setDefaults() interface{} { 15287 return &struct { 15288 IPAddress string 15289 Port types.StringNumber 15290 Enabled types.StringFlag 15291 HealthCheck *LoadBalancerServerHealthCheck `mapconv:"HealthCheck,recursive"` 15292 }{ 15293 IPAddress: o.GetIPAddress(), 15294 Port: o.GetPort(), 15295 Enabled: o.GetEnabled(), 15296 HealthCheck: o.GetHealthCheck(), 15297 } 15298 } 15299 15300 // GetIPAddress returns value of IPAddress 15301 func (o *LoadBalancerServer) GetIPAddress() string { 15302 return o.IPAddress 15303 } 15304 15305 // SetIPAddress sets value to IPAddress 15306 func (o *LoadBalancerServer) SetIPAddress(v string) { 15307 o.IPAddress = v 15308 } 15309 15310 // GetPort returns value of Port 15311 func (o *LoadBalancerServer) GetPort() types.StringNumber { 15312 return o.Port 15313 } 15314 15315 // SetPort sets value to Port 15316 func (o *LoadBalancerServer) SetPort(v types.StringNumber) { 15317 o.Port = v 15318 } 15319 15320 // GetEnabled returns value of Enabled 15321 func (o *LoadBalancerServer) GetEnabled() types.StringFlag { 15322 return o.Enabled 15323 } 15324 15325 // SetEnabled sets value to Enabled 15326 func (o *LoadBalancerServer) SetEnabled(v types.StringFlag) { 15327 o.Enabled = v 15328 } 15329 15330 // GetHealthCheck returns value of HealthCheck 15331 func (o *LoadBalancerServer) GetHealthCheck() *LoadBalancerServerHealthCheck { 15332 return o.HealthCheck 15333 } 15334 15335 // SetHealthCheck sets value to HealthCheck 15336 func (o *LoadBalancerServer) SetHealthCheck(v *LoadBalancerServerHealthCheck) { 15337 o.HealthCheck = v 15338 } 15339 15340 /************************************************* 15341 * LoadBalancerServerHealthCheck 15342 *************************************************/ 15343 15344 // LoadBalancerServerHealthCheck represents API parameter/response structure 15345 type LoadBalancerServerHealthCheck struct { 15346 Protocol types.ELoadBalancerHealthCheckProtocol 15347 Path string 15348 ResponseCode types.StringNumber `mapconv:"Status"` 15349 Retry types.StringNumber 15350 ConnectTimeout types.StringNumber 15351 } 15352 15353 // setDefaults implements iaas.argumentDefaulter 15354 func (o *LoadBalancerServerHealthCheck) setDefaults() interface{} { 15355 return &struct { 15356 Protocol types.ELoadBalancerHealthCheckProtocol 15357 Path string 15358 ResponseCode types.StringNumber `mapconv:"Status"` 15359 Retry types.StringNumber 15360 ConnectTimeout types.StringNumber 15361 }{ 15362 Protocol: o.GetProtocol(), 15363 Path: o.GetPath(), 15364 ResponseCode: o.GetResponseCode(), 15365 Retry: o.GetRetry(), 15366 ConnectTimeout: o.GetConnectTimeout(), 15367 } 15368 } 15369 15370 // GetProtocol returns value of Protocol 15371 func (o *LoadBalancerServerHealthCheck) GetProtocol() types.ELoadBalancerHealthCheckProtocol { 15372 return o.Protocol 15373 } 15374 15375 // SetProtocol sets value to Protocol 15376 func (o *LoadBalancerServerHealthCheck) SetProtocol(v types.ELoadBalancerHealthCheckProtocol) { 15377 o.Protocol = v 15378 } 15379 15380 // GetPath returns value of Path 15381 func (o *LoadBalancerServerHealthCheck) GetPath() string { 15382 return o.Path 15383 } 15384 15385 // SetPath sets value to Path 15386 func (o *LoadBalancerServerHealthCheck) SetPath(v string) { 15387 o.Path = v 15388 } 15389 15390 // GetResponseCode returns value of ResponseCode 15391 func (o *LoadBalancerServerHealthCheck) GetResponseCode() types.StringNumber { 15392 return o.ResponseCode 15393 } 15394 15395 // SetResponseCode sets value to ResponseCode 15396 func (o *LoadBalancerServerHealthCheck) SetResponseCode(v types.StringNumber) { 15397 o.ResponseCode = v 15398 } 15399 15400 // GetRetry returns value of Retry 15401 func (o *LoadBalancerServerHealthCheck) GetRetry() types.StringNumber { 15402 return o.Retry 15403 } 15404 15405 // SetRetry sets value to Retry 15406 func (o *LoadBalancerServerHealthCheck) SetRetry(v types.StringNumber) { 15407 o.Retry = v 15408 } 15409 15410 // GetConnectTimeout returns value of ConnectTimeout 15411 func (o *LoadBalancerServerHealthCheck) GetConnectTimeout() types.StringNumber { 15412 return o.ConnectTimeout 15413 } 15414 15415 // SetConnectTimeout sets value to ConnectTimeout 15416 func (o *LoadBalancerServerHealthCheck) SetConnectTimeout(v types.StringNumber) { 15417 o.ConnectTimeout = v 15418 } 15419 15420 /************************************************* 15421 * LoadBalancerCreateRequest 15422 *************************************************/ 15423 15424 // LoadBalancerCreateRequest represents API parameter/response structure 15425 type LoadBalancerCreateRequest struct { 15426 SwitchID types.ID `mapconv:"Remark.Switch.ID"` 15427 PlanID types.ID `mapconv:"Remark.Plan.ID/Plan.ID"` 15428 VRID int `mapconv:"Remark.VRRP.VRID"` 15429 IPAddresses []string `mapconv:"Remark.[]Servers.IPAddress"` 15430 NetworkMaskLen int `mapconv:"Remark.Network.NetworkMaskLen"` 15431 DefaultRoute string `mapconv:"Remark.Network.DefaultRoute"` 15432 Name string 15433 Description string 15434 Tags types.Tags 15435 IconID types.ID `mapconv:"Icon.ID"` 15436 VirtualIPAddresses LoadBalancerVirtualIPAddresses `mapconv:"Settings.[]LoadBalancer,recursive"` 15437 } 15438 15439 // setDefaults implements iaas.argumentDefaulter 15440 func (o *LoadBalancerCreateRequest) setDefaults() interface{} { 15441 return &struct { 15442 SwitchID types.ID `mapconv:"Remark.Switch.ID"` 15443 PlanID types.ID `mapconv:"Remark.Plan.ID/Plan.ID"` 15444 VRID int `mapconv:"Remark.VRRP.VRID"` 15445 IPAddresses []string `mapconv:"Remark.[]Servers.IPAddress"` 15446 NetworkMaskLen int `mapconv:"Remark.Network.NetworkMaskLen"` 15447 DefaultRoute string `mapconv:"Remark.Network.DefaultRoute"` 15448 Name string 15449 Description string 15450 Tags types.Tags 15451 IconID types.ID `mapconv:"Icon.ID"` 15452 VirtualIPAddresses LoadBalancerVirtualIPAddresses `mapconv:"Settings.[]LoadBalancer,recursive"` 15453 Class string 15454 }{ 15455 SwitchID: o.GetSwitchID(), 15456 PlanID: o.GetPlanID(), 15457 VRID: o.GetVRID(), 15458 IPAddresses: o.GetIPAddresses(), 15459 NetworkMaskLen: o.GetNetworkMaskLen(), 15460 DefaultRoute: o.GetDefaultRoute(), 15461 Name: o.GetName(), 15462 Description: o.GetDescription(), 15463 Tags: o.GetTags(), 15464 IconID: o.GetIconID(), 15465 VirtualIPAddresses: o.GetVirtualIPAddresses(), 15466 Class: "loadbalancer", 15467 } 15468 } 15469 15470 // GetSwitchID returns value of SwitchID 15471 func (o *LoadBalancerCreateRequest) GetSwitchID() types.ID { 15472 return o.SwitchID 15473 } 15474 15475 // SetSwitchID sets value to SwitchID 15476 func (o *LoadBalancerCreateRequest) SetSwitchID(v types.ID) { 15477 o.SwitchID = v 15478 } 15479 15480 // GetPlanID returns value of PlanID 15481 func (o *LoadBalancerCreateRequest) GetPlanID() types.ID { 15482 return o.PlanID 15483 } 15484 15485 // SetPlanID sets value to PlanID 15486 func (o *LoadBalancerCreateRequest) SetPlanID(v types.ID) { 15487 o.PlanID = v 15488 } 15489 15490 // GetVRID returns value of VRID 15491 func (o *LoadBalancerCreateRequest) GetVRID() int { 15492 return o.VRID 15493 } 15494 15495 // SetVRID sets value to VRID 15496 func (o *LoadBalancerCreateRequest) SetVRID(v int) { 15497 o.VRID = v 15498 } 15499 15500 // GetIPAddresses returns value of IPAddresses 15501 func (o *LoadBalancerCreateRequest) GetIPAddresses() []string { 15502 return o.IPAddresses 15503 } 15504 15505 // SetIPAddresses sets value to IPAddresses 15506 func (o *LoadBalancerCreateRequest) SetIPAddresses(v []string) { 15507 o.IPAddresses = v 15508 } 15509 15510 // GetNetworkMaskLen returns value of NetworkMaskLen 15511 func (o *LoadBalancerCreateRequest) GetNetworkMaskLen() int { 15512 return o.NetworkMaskLen 15513 } 15514 15515 // SetNetworkMaskLen sets value to NetworkMaskLen 15516 func (o *LoadBalancerCreateRequest) SetNetworkMaskLen(v int) { 15517 o.NetworkMaskLen = v 15518 } 15519 15520 // GetDefaultRoute returns value of DefaultRoute 15521 func (o *LoadBalancerCreateRequest) GetDefaultRoute() string { 15522 return o.DefaultRoute 15523 } 15524 15525 // SetDefaultRoute sets value to DefaultRoute 15526 func (o *LoadBalancerCreateRequest) SetDefaultRoute(v string) { 15527 o.DefaultRoute = v 15528 } 15529 15530 // GetName returns value of Name 15531 func (o *LoadBalancerCreateRequest) GetName() string { 15532 return o.Name 15533 } 15534 15535 // SetName sets value to Name 15536 func (o *LoadBalancerCreateRequest) SetName(v string) { 15537 o.Name = v 15538 } 15539 15540 // GetDescription returns value of Description 15541 func (o *LoadBalancerCreateRequest) GetDescription() string { 15542 return o.Description 15543 } 15544 15545 // SetDescription sets value to Description 15546 func (o *LoadBalancerCreateRequest) SetDescription(v string) { 15547 o.Description = v 15548 } 15549 15550 // GetTags returns value of Tags 15551 func (o *LoadBalancerCreateRequest) GetTags() types.Tags { 15552 return o.Tags 15553 } 15554 15555 // SetTags sets value to Tags 15556 func (o *LoadBalancerCreateRequest) SetTags(v types.Tags) { 15557 o.Tags = v 15558 } 15559 15560 // HasTag 指定のタグが存在する場合trueを返す 15561 func (o *LoadBalancerCreateRequest) HasTag(tag string) bool { 15562 return accessor.HasTag(o, tag) 15563 } 15564 15565 // AppendTag 指定のタグを追加 15566 func (o *LoadBalancerCreateRequest) AppendTag(tag string) { 15567 accessor.AppendTag(o, tag) 15568 } 15569 15570 // RemoveTag 指定のタグを削除 15571 func (o *LoadBalancerCreateRequest) RemoveTag(tag string) { 15572 accessor.RemoveTag(o, tag) 15573 } 15574 15575 // ClearTags タグを全クリア 15576 func (o *LoadBalancerCreateRequest) ClearTags() { 15577 accessor.ClearTags(o) 15578 } 15579 15580 // GetIconID returns value of IconID 15581 func (o *LoadBalancerCreateRequest) GetIconID() types.ID { 15582 return o.IconID 15583 } 15584 15585 // SetIconID sets value to IconID 15586 func (o *LoadBalancerCreateRequest) SetIconID(v types.ID) { 15587 o.IconID = v 15588 } 15589 15590 // GetVirtualIPAddresses returns value of VirtualIPAddresses 15591 func (o *LoadBalancerCreateRequest) GetVirtualIPAddresses() LoadBalancerVirtualIPAddresses { 15592 return o.VirtualIPAddresses 15593 } 15594 15595 // SetVirtualIPAddresses sets value to VirtualIPAddresses 15596 func (o *LoadBalancerCreateRequest) SetVirtualIPAddresses(v LoadBalancerVirtualIPAddresses) { 15597 o.VirtualIPAddresses = v 15598 } 15599 15600 /************************************************* 15601 * LoadBalancerUpdateRequest 15602 *************************************************/ 15603 15604 // LoadBalancerUpdateRequest represents API parameter/response structure 15605 type LoadBalancerUpdateRequest struct { 15606 Name string 15607 Description string 15608 Tags types.Tags 15609 IconID types.ID `mapconv:"Icon.ID"` 15610 VirtualIPAddresses LoadBalancerVirtualIPAddresses `mapconv:"Settings.[]LoadBalancer,recursive"` 15611 SettingsHash string `json:",omitempty" mapconv:",omitempty"` 15612 } 15613 15614 // setDefaults implements iaas.argumentDefaulter 15615 func (o *LoadBalancerUpdateRequest) setDefaults() interface{} { 15616 return &struct { 15617 Name string 15618 Description string 15619 Tags types.Tags 15620 IconID types.ID `mapconv:"Icon.ID"` 15621 VirtualIPAddresses LoadBalancerVirtualIPAddresses `mapconv:"Settings.[]LoadBalancer,recursive"` 15622 SettingsHash string `json:",omitempty" mapconv:",omitempty"` 15623 }{ 15624 Name: o.GetName(), 15625 Description: o.GetDescription(), 15626 Tags: o.GetTags(), 15627 IconID: o.GetIconID(), 15628 VirtualIPAddresses: o.GetVirtualIPAddresses(), 15629 SettingsHash: o.GetSettingsHash(), 15630 } 15631 } 15632 15633 // GetName returns value of Name 15634 func (o *LoadBalancerUpdateRequest) GetName() string { 15635 return o.Name 15636 } 15637 15638 // SetName sets value to Name 15639 func (o *LoadBalancerUpdateRequest) SetName(v string) { 15640 o.Name = v 15641 } 15642 15643 // GetDescription returns value of Description 15644 func (o *LoadBalancerUpdateRequest) GetDescription() string { 15645 return o.Description 15646 } 15647 15648 // SetDescription sets value to Description 15649 func (o *LoadBalancerUpdateRequest) SetDescription(v string) { 15650 o.Description = v 15651 } 15652 15653 // GetTags returns value of Tags 15654 func (o *LoadBalancerUpdateRequest) GetTags() types.Tags { 15655 return o.Tags 15656 } 15657 15658 // SetTags sets value to Tags 15659 func (o *LoadBalancerUpdateRequest) SetTags(v types.Tags) { 15660 o.Tags = v 15661 } 15662 15663 // HasTag 指定のタグが存在する場合trueを返す 15664 func (o *LoadBalancerUpdateRequest) HasTag(tag string) bool { 15665 return accessor.HasTag(o, tag) 15666 } 15667 15668 // AppendTag 指定のタグを追加 15669 func (o *LoadBalancerUpdateRequest) AppendTag(tag string) { 15670 accessor.AppendTag(o, tag) 15671 } 15672 15673 // RemoveTag 指定のタグを削除 15674 func (o *LoadBalancerUpdateRequest) RemoveTag(tag string) { 15675 accessor.RemoveTag(o, tag) 15676 } 15677 15678 // ClearTags タグを全クリア 15679 func (o *LoadBalancerUpdateRequest) ClearTags() { 15680 accessor.ClearTags(o) 15681 } 15682 15683 // GetIconID returns value of IconID 15684 func (o *LoadBalancerUpdateRequest) GetIconID() types.ID { 15685 return o.IconID 15686 } 15687 15688 // SetIconID sets value to IconID 15689 func (o *LoadBalancerUpdateRequest) SetIconID(v types.ID) { 15690 o.IconID = v 15691 } 15692 15693 // GetVirtualIPAddresses returns value of VirtualIPAddresses 15694 func (o *LoadBalancerUpdateRequest) GetVirtualIPAddresses() LoadBalancerVirtualIPAddresses { 15695 return o.VirtualIPAddresses 15696 } 15697 15698 // SetVirtualIPAddresses sets value to VirtualIPAddresses 15699 func (o *LoadBalancerUpdateRequest) SetVirtualIPAddresses(v LoadBalancerVirtualIPAddresses) { 15700 o.VirtualIPAddresses = v 15701 } 15702 15703 // GetSettingsHash returns value of SettingsHash 15704 func (o *LoadBalancerUpdateRequest) GetSettingsHash() string { 15705 return o.SettingsHash 15706 } 15707 15708 // SetSettingsHash sets value to SettingsHash 15709 func (o *LoadBalancerUpdateRequest) SetSettingsHash(v string) { 15710 o.SettingsHash = v 15711 } 15712 15713 /************************************************* 15714 * LoadBalancerUpdateSettingsRequest 15715 *************************************************/ 15716 15717 // LoadBalancerUpdateSettingsRequest represents API parameter/response structure 15718 type LoadBalancerUpdateSettingsRequest struct { 15719 VirtualIPAddresses LoadBalancerVirtualIPAddresses `mapconv:"Settings.[]LoadBalancer,recursive"` 15720 SettingsHash string `json:",omitempty" mapconv:",omitempty"` 15721 } 15722 15723 // setDefaults implements iaas.argumentDefaulter 15724 func (o *LoadBalancerUpdateSettingsRequest) setDefaults() interface{} { 15725 return &struct { 15726 VirtualIPAddresses LoadBalancerVirtualIPAddresses `mapconv:"Settings.[]LoadBalancer,recursive"` 15727 SettingsHash string `json:",omitempty" mapconv:",omitempty"` 15728 }{ 15729 VirtualIPAddresses: o.GetVirtualIPAddresses(), 15730 SettingsHash: o.GetSettingsHash(), 15731 } 15732 } 15733 15734 // GetVirtualIPAddresses returns value of VirtualIPAddresses 15735 func (o *LoadBalancerUpdateSettingsRequest) GetVirtualIPAddresses() LoadBalancerVirtualIPAddresses { 15736 return o.VirtualIPAddresses 15737 } 15738 15739 // SetVirtualIPAddresses sets value to VirtualIPAddresses 15740 func (o *LoadBalancerUpdateSettingsRequest) SetVirtualIPAddresses(v LoadBalancerVirtualIPAddresses) { 15741 o.VirtualIPAddresses = v 15742 } 15743 15744 // GetSettingsHash returns value of SettingsHash 15745 func (o *LoadBalancerUpdateSettingsRequest) GetSettingsHash() string { 15746 return o.SettingsHash 15747 } 15748 15749 // SetSettingsHash sets value to SettingsHash 15750 func (o *LoadBalancerUpdateSettingsRequest) SetSettingsHash(v string) { 15751 o.SettingsHash = v 15752 } 15753 15754 /************************************************* 15755 * LoadBalancerStatus 15756 *************************************************/ 15757 15758 // LoadBalancerStatus represents API parameter/response structure 15759 type LoadBalancerStatus struct { 15760 VirtualIPAddress string 15761 Port types.StringNumber 15762 CPS types.StringNumber 15763 Servers []*LoadBalancerServerStatus `mapconv:",recursive"` 15764 } 15765 15766 // setDefaults implements iaas.argumentDefaulter 15767 func (o *LoadBalancerStatus) setDefaults() interface{} { 15768 return &struct { 15769 VirtualIPAddress string 15770 Port types.StringNumber 15771 CPS types.StringNumber 15772 Servers []*LoadBalancerServerStatus `mapconv:",recursive"` 15773 }{ 15774 VirtualIPAddress: o.GetVirtualIPAddress(), 15775 Port: o.GetPort(), 15776 CPS: o.GetCPS(), 15777 Servers: o.GetServers(), 15778 } 15779 } 15780 15781 // GetVirtualIPAddress returns value of VirtualIPAddress 15782 func (o *LoadBalancerStatus) GetVirtualIPAddress() string { 15783 return o.VirtualIPAddress 15784 } 15785 15786 // SetVirtualIPAddress sets value to VirtualIPAddress 15787 func (o *LoadBalancerStatus) SetVirtualIPAddress(v string) { 15788 o.VirtualIPAddress = v 15789 } 15790 15791 // GetPort returns value of Port 15792 func (o *LoadBalancerStatus) GetPort() types.StringNumber { 15793 return o.Port 15794 } 15795 15796 // SetPort sets value to Port 15797 func (o *LoadBalancerStatus) SetPort(v types.StringNumber) { 15798 o.Port = v 15799 } 15800 15801 // GetCPS returns value of CPS 15802 func (o *LoadBalancerStatus) GetCPS() types.StringNumber { 15803 return o.CPS 15804 } 15805 15806 // SetCPS sets value to CPS 15807 func (o *LoadBalancerStatus) SetCPS(v types.StringNumber) { 15808 o.CPS = v 15809 } 15810 15811 // GetServers returns value of Servers 15812 func (o *LoadBalancerStatus) GetServers() []*LoadBalancerServerStatus { 15813 return o.Servers 15814 } 15815 15816 // SetServers sets value to Servers 15817 func (o *LoadBalancerStatus) SetServers(v []*LoadBalancerServerStatus) { 15818 o.Servers = v 15819 } 15820 15821 /************************************************* 15822 * LoadBalancerServerStatus 15823 *************************************************/ 15824 15825 // LoadBalancerServerStatus represents API parameter/response structure 15826 type LoadBalancerServerStatus struct { 15827 ActiveConn types.StringNumber 15828 Status types.EServerInstanceStatus 15829 IPAddress string 15830 Port types.StringNumber 15831 CPS types.StringNumber 15832 } 15833 15834 // setDefaults implements iaas.argumentDefaulter 15835 func (o *LoadBalancerServerStatus) setDefaults() interface{} { 15836 return &struct { 15837 ActiveConn types.StringNumber 15838 Status types.EServerInstanceStatus 15839 IPAddress string 15840 Port types.StringNumber 15841 CPS types.StringNumber 15842 }{ 15843 ActiveConn: o.GetActiveConn(), 15844 Status: o.GetStatus(), 15845 IPAddress: o.GetIPAddress(), 15846 Port: o.GetPort(), 15847 CPS: o.GetCPS(), 15848 } 15849 } 15850 15851 // GetActiveConn returns value of ActiveConn 15852 func (o *LoadBalancerServerStatus) GetActiveConn() types.StringNumber { 15853 return o.ActiveConn 15854 } 15855 15856 // SetActiveConn sets value to ActiveConn 15857 func (o *LoadBalancerServerStatus) SetActiveConn(v types.StringNumber) { 15858 o.ActiveConn = v 15859 } 15860 15861 // GetStatus returns value of Status 15862 func (o *LoadBalancerServerStatus) GetStatus() types.EServerInstanceStatus { 15863 return o.Status 15864 } 15865 15866 // SetStatus sets value to Status 15867 func (o *LoadBalancerServerStatus) SetStatus(v types.EServerInstanceStatus) { 15868 o.Status = v 15869 } 15870 15871 // GetIPAddress returns value of IPAddress 15872 func (o *LoadBalancerServerStatus) GetIPAddress() string { 15873 return o.IPAddress 15874 } 15875 15876 // SetIPAddress sets value to IPAddress 15877 func (o *LoadBalancerServerStatus) SetIPAddress(v string) { 15878 o.IPAddress = v 15879 } 15880 15881 // GetPort returns value of Port 15882 func (o *LoadBalancerServerStatus) GetPort() types.StringNumber { 15883 return o.Port 15884 } 15885 15886 // SetPort sets value to Port 15887 func (o *LoadBalancerServerStatus) SetPort(v types.StringNumber) { 15888 o.Port = v 15889 } 15890 15891 // GetCPS returns value of CPS 15892 func (o *LoadBalancerServerStatus) GetCPS() types.StringNumber { 15893 return o.CPS 15894 } 15895 15896 // SetCPS sets value to CPS 15897 func (o *LoadBalancerServerStatus) SetCPS(v types.StringNumber) { 15898 o.CPS = v 15899 } 15900 15901 /************************************************* 15902 * LocalRouter 15903 *************************************************/ 15904 15905 // LocalRouter represents API parameter/response structure 15906 type LocalRouter struct { 15907 ID types.ID 15908 Name string 15909 Description string 15910 Tags types.Tags 15911 Availability types.EAvailability 15912 IconID types.ID `mapconv:"Icon.ID"` 15913 CreatedAt time.Time 15914 ModifiedAt time.Time 15915 Switch *LocalRouterSwitch `mapconv:"Settings.LocalRouter.Switch,recursive"` 15916 Interface *LocalRouterInterface `mapconv:"Settings.LocalRouter.Interface,recursive"` 15917 Peers []*LocalRouterPeer `mapconv:"Settings.LocalRouter.[]Peers,recursive"` 15918 StaticRoutes []*LocalRouterStaticRoute `mapconv:"Settings.LocalRouter.[]StaticRoutes,recursive"` 15919 SettingsHash string `json:",omitempty" mapconv:",omitempty"` 15920 SecretKeys []string `mapconv:"Status.SecretKeys"` 15921 } 15922 15923 // setDefaults implements iaas.argumentDefaulter 15924 func (o *LocalRouter) setDefaults() interface{} { 15925 return &struct { 15926 ID types.ID 15927 Name string 15928 Description string 15929 Tags types.Tags 15930 Availability types.EAvailability 15931 IconID types.ID `mapconv:"Icon.ID"` 15932 CreatedAt time.Time 15933 ModifiedAt time.Time 15934 Switch *LocalRouterSwitch `mapconv:"Settings.LocalRouter.Switch,recursive"` 15935 Interface *LocalRouterInterface `mapconv:"Settings.LocalRouter.Interface,recursive"` 15936 Peers []*LocalRouterPeer `mapconv:"Settings.LocalRouter.[]Peers,recursive"` 15937 StaticRoutes []*LocalRouterStaticRoute `mapconv:"Settings.LocalRouter.[]StaticRoutes,recursive"` 15938 SettingsHash string `json:",omitempty" mapconv:",omitempty"` 15939 SecretKeys []string `mapconv:"Status.SecretKeys"` 15940 }{ 15941 ID: o.GetID(), 15942 Name: o.GetName(), 15943 Description: o.GetDescription(), 15944 Tags: o.GetTags(), 15945 Availability: o.GetAvailability(), 15946 IconID: o.GetIconID(), 15947 CreatedAt: o.GetCreatedAt(), 15948 ModifiedAt: o.GetModifiedAt(), 15949 Switch: o.GetSwitch(), 15950 Interface: o.GetInterface(), 15951 Peers: o.GetPeers(), 15952 StaticRoutes: o.GetStaticRoutes(), 15953 SettingsHash: o.GetSettingsHash(), 15954 SecretKeys: o.GetSecretKeys(), 15955 } 15956 } 15957 15958 // GetID returns value of ID 15959 func (o *LocalRouter) GetID() types.ID { 15960 return o.ID 15961 } 15962 15963 // SetID sets value to ID 15964 func (o *LocalRouter) SetID(v types.ID) { 15965 o.ID = v 15966 } 15967 15968 // SetStringID . 15969 func (o *LocalRouter) SetStringID(id string) { 15970 accessor.SetStringID(o, id) 15971 } 15972 15973 // GetStringID . 15974 func (o *LocalRouter) GetStringID() string { 15975 return accessor.GetStringID(o) 15976 } 15977 15978 // SetInt64ID . 15979 func (o *LocalRouter) SetInt64ID(id int64) { 15980 accessor.SetInt64ID(o, id) 15981 } 15982 15983 // GetInt64ID . 15984 func (o *LocalRouter) GetInt64ID() int64 { 15985 return accessor.GetInt64ID(o) 15986 } 15987 15988 // GetName returns value of Name 15989 func (o *LocalRouter) GetName() string { 15990 return o.Name 15991 } 15992 15993 // SetName sets value to Name 15994 func (o *LocalRouter) SetName(v string) { 15995 o.Name = v 15996 } 15997 15998 // GetDescription returns value of Description 15999 func (o *LocalRouter) GetDescription() string { 16000 return o.Description 16001 } 16002 16003 // SetDescription sets value to Description 16004 func (o *LocalRouter) SetDescription(v string) { 16005 o.Description = v 16006 } 16007 16008 // GetTags returns value of Tags 16009 func (o *LocalRouter) GetTags() types.Tags { 16010 return o.Tags 16011 } 16012 16013 // SetTags sets value to Tags 16014 func (o *LocalRouter) SetTags(v types.Tags) { 16015 o.Tags = v 16016 } 16017 16018 // HasTag 指定のタグが存在する場合trueを返す 16019 func (o *LocalRouter) HasTag(tag string) bool { 16020 return accessor.HasTag(o, tag) 16021 } 16022 16023 // AppendTag 指定のタグを追加 16024 func (o *LocalRouter) AppendTag(tag string) { 16025 accessor.AppendTag(o, tag) 16026 } 16027 16028 // RemoveTag 指定のタグを削除 16029 func (o *LocalRouter) RemoveTag(tag string) { 16030 accessor.RemoveTag(o, tag) 16031 } 16032 16033 // ClearTags タグを全クリア 16034 func (o *LocalRouter) ClearTags() { 16035 accessor.ClearTags(o) 16036 } 16037 16038 // GetAvailability returns value of Availability 16039 func (o *LocalRouter) GetAvailability() types.EAvailability { 16040 return o.Availability 16041 } 16042 16043 // SetAvailability sets value to Availability 16044 func (o *LocalRouter) SetAvailability(v types.EAvailability) { 16045 o.Availability = v 16046 } 16047 16048 // GetIconID returns value of IconID 16049 func (o *LocalRouter) GetIconID() types.ID { 16050 return o.IconID 16051 } 16052 16053 // SetIconID sets value to IconID 16054 func (o *LocalRouter) SetIconID(v types.ID) { 16055 o.IconID = v 16056 } 16057 16058 // GetCreatedAt returns value of CreatedAt 16059 func (o *LocalRouter) GetCreatedAt() time.Time { 16060 return o.CreatedAt 16061 } 16062 16063 // SetCreatedAt sets value to CreatedAt 16064 func (o *LocalRouter) SetCreatedAt(v time.Time) { 16065 o.CreatedAt = v 16066 } 16067 16068 // GetModifiedAt returns value of ModifiedAt 16069 func (o *LocalRouter) GetModifiedAt() time.Time { 16070 return o.ModifiedAt 16071 } 16072 16073 // SetModifiedAt sets value to ModifiedAt 16074 func (o *LocalRouter) SetModifiedAt(v time.Time) { 16075 o.ModifiedAt = v 16076 } 16077 16078 // GetSwitch returns value of Switch 16079 func (o *LocalRouter) GetSwitch() *LocalRouterSwitch { 16080 return o.Switch 16081 } 16082 16083 // SetSwitch sets value to Switch 16084 func (o *LocalRouter) SetSwitch(v *LocalRouterSwitch) { 16085 o.Switch = v 16086 } 16087 16088 // GetInterface returns value of Interface 16089 func (o *LocalRouter) GetInterface() *LocalRouterInterface { 16090 return o.Interface 16091 } 16092 16093 // SetInterface sets value to Interface 16094 func (o *LocalRouter) SetInterface(v *LocalRouterInterface) { 16095 o.Interface = v 16096 } 16097 16098 // GetPeers returns value of Peers 16099 func (o *LocalRouter) GetPeers() []*LocalRouterPeer { 16100 return o.Peers 16101 } 16102 16103 // SetPeers sets value to Peers 16104 func (o *LocalRouter) SetPeers(v []*LocalRouterPeer) { 16105 o.Peers = v 16106 } 16107 16108 // GetStaticRoutes returns value of StaticRoutes 16109 func (o *LocalRouter) GetStaticRoutes() []*LocalRouterStaticRoute { 16110 return o.StaticRoutes 16111 } 16112 16113 // SetStaticRoutes sets value to StaticRoutes 16114 func (o *LocalRouter) SetStaticRoutes(v []*LocalRouterStaticRoute) { 16115 o.StaticRoutes = v 16116 } 16117 16118 // GetSettingsHash returns value of SettingsHash 16119 func (o *LocalRouter) GetSettingsHash() string { 16120 return o.SettingsHash 16121 } 16122 16123 // SetSettingsHash sets value to SettingsHash 16124 func (o *LocalRouter) SetSettingsHash(v string) { 16125 o.SettingsHash = v 16126 } 16127 16128 // GetSecretKeys returns value of SecretKeys 16129 func (o *LocalRouter) GetSecretKeys() []string { 16130 return o.SecretKeys 16131 } 16132 16133 // SetSecretKeys sets value to SecretKeys 16134 func (o *LocalRouter) SetSecretKeys(v []string) { 16135 o.SecretKeys = v 16136 } 16137 16138 /************************************************* 16139 * LocalRouterSwitch 16140 *************************************************/ 16141 16142 // LocalRouterSwitch represents API parameter/response structure 16143 type LocalRouterSwitch struct { 16144 Code string 16145 Category string 16146 ZoneID string 16147 } 16148 16149 // setDefaults implements iaas.argumentDefaulter 16150 func (o *LocalRouterSwitch) setDefaults() interface{} { 16151 return &struct { 16152 Code string 16153 Category string 16154 ZoneID string 16155 }{ 16156 Code: o.GetCode(), 16157 Category: o.GetCategory(), 16158 ZoneID: o.GetZoneID(), 16159 } 16160 } 16161 16162 // GetCode returns value of Code 16163 func (o *LocalRouterSwitch) GetCode() string { 16164 return o.Code 16165 } 16166 16167 // SetCode sets value to Code 16168 func (o *LocalRouterSwitch) SetCode(v string) { 16169 o.Code = v 16170 } 16171 16172 // GetCategory returns value of Category 16173 func (o *LocalRouterSwitch) GetCategory() string { 16174 return o.Category 16175 } 16176 16177 // SetCategory sets value to Category 16178 func (o *LocalRouterSwitch) SetCategory(v string) { 16179 o.Category = v 16180 } 16181 16182 // GetZoneID returns value of ZoneID 16183 func (o *LocalRouterSwitch) GetZoneID() string { 16184 return o.ZoneID 16185 } 16186 16187 // SetZoneID sets value to ZoneID 16188 func (o *LocalRouterSwitch) SetZoneID(v string) { 16189 o.ZoneID = v 16190 } 16191 16192 /************************************************* 16193 * LocalRouterInterface 16194 *************************************************/ 16195 16196 // LocalRouterInterface represents API parameter/response structure 16197 type LocalRouterInterface struct { 16198 VirtualIPAddress string 16199 IPAddress []string 16200 NetworkMaskLen int 16201 VRID int 16202 } 16203 16204 // setDefaults implements iaas.argumentDefaulter 16205 func (o *LocalRouterInterface) setDefaults() interface{} { 16206 return &struct { 16207 VirtualIPAddress string 16208 IPAddress []string 16209 NetworkMaskLen int 16210 VRID int 16211 }{ 16212 VirtualIPAddress: o.GetVirtualIPAddress(), 16213 IPAddress: o.GetIPAddress(), 16214 NetworkMaskLen: o.GetNetworkMaskLen(), 16215 VRID: o.GetVRID(), 16216 } 16217 } 16218 16219 // GetVirtualIPAddress returns value of VirtualIPAddress 16220 func (o *LocalRouterInterface) GetVirtualIPAddress() string { 16221 return o.VirtualIPAddress 16222 } 16223 16224 // SetVirtualIPAddress sets value to VirtualIPAddress 16225 func (o *LocalRouterInterface) SetVirtualIPAddress(v string) { 16226 o.VirtualIPAddress = v 16227 } 16228 16229 // GetIPAddress returns value of IPAddress 16230 func (o *LocalRouterInterface) GetIPAddress() []string { 16231 return o.IPAddress 16232 } 16233 16234 // SetIPAddress sets value to IPAddress 16235 func (o *LocalRouterInterface) SetIPAddress(v []string) { 16236 o.IPAddress = v 16237 } 16238 16239 // GetNetworkMaskLen returns value of NetworkMaskLen 16240 func (o *LocalRouterInterface) GetNetworkMaskLen() int { 16241 return o.NetworkMaskLen 16242 } 16243 16244 // SetNetworkMaskLen sets value to NetworkMaskLen 16245 func (o *LocalRouterInterface) SetNetworkMaskLen(v int) { 16246 o.NetworkMaskLen = v 16247 } 16248 16249 // GetVRID returns value of VRID 16250 func (o *LocalRouterInterface) GetVRID() int { 16251 return o.VRID 16252 } 16253 16254 // SetVRID sets value to VRID 16255 func (o *LocalRouterInterface) SetVRID(v int) { 16256 o.VRID = v 16257 } 16258 16259 /************************************************* 16260 * LocalRouterPeer 16261 *************************************************/ 16262 16263 // LocalRouterPeer represents API parameter/response structure 16264 type LocalRouterPeer struct { 16265 ID types.ID 16266 SecretKey string 16267 Enabled bool 16268 Description string 16269 } 16270 16271 // setDefaults implements iaas.argumentDefaulter 16272 func (o *LocalRouterPeer) setDefaults() interface{} { 16273 return &struct { 16274 ID types.ID 16275 SecretKey string 16276 Enabled bool 16277 Description string 16278 }{ 16279 ID: o.GetID(), 16280 SecretKey: o.GetSecretKey(), 16281 Enabled: o.GetEnabled(), 16282 Description: o.GetDescription(), 16283 } 16284 } 16285 16286 // GetID returns value of ID 16287 func (o *LocalRouterPeer) GetID() types.ID { 16288 return o.ID 16289 } 16290 16291 // SetID sets value to ID 16292 func (o *LocalRouterPeer) SetID(v types.ID) { 16293 o.ID = v 16294 } 16295 16296 // GetSecretKey returns value of SecretKey 16297 func (o *LocalRouterPeer) GetSecretKey() string { 16298 return o.SecretKey 16299 } 16300 16301 // SetSecretKey sets value to SecretKey 16302 func (o *LocalRouterPeer) SetSecretKey(v string) { 16303 o.SecretKey = v 16304 } 16305 16306 // GetEnabled returns value of Enabled 16307 func (o *LocalRouterPeer) GetEnabled() bool { 16308 return o.Enabled 16309 } 16310 16311 // SetEnabled sets value to Enabled 16312 func (o *LocalRouterPeer) SetEnabled(v bool) { 16313 o.Enabled = v 16314 } 16315 16316 // GetDescription returns value of Description 16317 func (o *LocalRouterPeer) GetDescription() string { 16318 return o.Description 16319 } 16320 16321 // SetDescription sets value to Description 16322 func (o *LocalRouterPeer) SetDescription(v string) { 16323 o.Description = v 16324 } 16325 16326 /************************************************* 16327 * LocalRouterStaticRoute 16328 *************************************************/ 16329 16330 // LocalRouterStaticRoute represents API parameter/response structure 16331 type LocalRouterStaticRoute struct { 16332 Prefix string 16333 NextHop string 16334 } 16335 16336 // setDefaults implements iaas.argumentDefaulter 16337 func (o *LocalRouterStaticRoute) setDefaults() interface{} { 16338 return &struct { 16339 Prefix string 16340 NextHop string 16341 }{ 16342 Prefix: o.GetPrefix(), 16343 NextHop: o.GetNextHop(), 16344 } 16345 } 16346 16347 // GetPrefix returns value of Prefix 16348 func (o *LocalRouterStaticRoute) GetPrefix() string { 16349 return o.Prefix 16350 } 16351 16352 // SetPrefix sets value to Prefix 16353 func (o *LocalRouterStaticRoute) SetPrefix(v string) { 16354 o.Prefix = v 16355 } 16356 16357 // GetNextHop returns value of NextHop 16358 func (o *LocalRouterStaticRoute) GetNextHop() string { 16359 return o.NextHop 16360 } 16361 16362 // SetNextHop sets value to NextHop 16363 func (o *LocalRouterStaticRoute) SetNextHop(v string) { 16364 o.NextHop = v 16365 } 16366 16367 /************************************************* 16368 * LocalRouterCreateRequest 16369 *************************************************/ 16370 16371 // LocalRouterCreateRequest represents API parameter/response structure 16372 type LocalRouterCreateRequest struct { 16373 Name string 16374 Description string 16375 Tags types.Tags 16376 IconID types.ID `mapconv:"Icon.ID"` 16377 } 16378 16379 // setDefaults implements iaas.argumentDefaulter 16380 func (o *LocalRouterCreateRequest) setDefaults() interface{} { 16381 return &struct { 16382 Name string 16383 Description string 16384 Tags types.Tags 16385 IconID types.ID `mapconv:"Icon.ID"` 16386 Class string `mapconv:"Provider.Class"` 16387 }{ 16388 Name: o.GetName(), 16389 Description: o.GetDescription(), 16390 Tags: o.GetTags(), 16391 IconID: o.GetIconID(), 16392 Class: "localrouter", 16393 } 16394 } 16395 16396 // GetName returns value of Name 16397 func (o *LocalRouterCreateRequest) GetName() string { 16398 return o.Name 16399 } 16400 16401 // SetName sets value to Name 16402 func (o *LocalRouterCreateRequest) SetName(v string) { 16403 o.Name = v 16404 } 16405 16406 // GetDescription returns value of Description 16407 func (o *LocalRouterCreateRequest) GetDescription() string { 16408 return o.Description 16409 } 16410 16411 // SetDescription sets value to Description 16412 func (o *LocalRouterCreateRequest) SetDescription(v string) { 16413 o.Description = v 16414 } 16415 16416 // GetTags returns value of Tags 16417 func (o *LocalRouterCreateRequest) GetTags() types.Tags { 16418 return o.Tags 16419 } 16420 16421 // SetTags sets value to Tags 16422 func (o *LocalRouterCreateRequest) SetTags(v types.Tags) { 16423 o.Tags = v 16424 } 16425 16426 // HasTag 指定のタグが存在する場合trueを返す 16427 func (o *LocalRouterCreateRequest) HasTag(tag string) bool { 16428 return accessor.HasTag(o, tag) 16429 } 16430 16431 // AppendTag 指定のタグを追加 16432 func (o *LocalRouterCreateRequest) AppendTag(tag string) { 16433 accessor.AppendTag(o, tag) 16434 } 16435 16436 // RemoveTag 指定のタグを削除 16437 func (o *LocalRouterCreateRequest) RemoveTag(tag string) { 16438 accessor.RemoveTag(o, tag) 16439 } 16440 16441 // ClearTags タグを全クリア 16442 func (o *LocalRouterCreateRequest) ClearTags() { 16443 accessor.ClearTags(o) 16444 } 16445 16446 // GetIconID returns value of IconID 16447 func (o *LocalRouterCreateRequest) GetIconID() types.ID { 16448 return o.IconID 16449 } 16450 16451 // SetIconID sets value to IconID 16452 func (o *LocalRouterCreateRequest) SetIconID(v types.ID) { 16453 o.IconID = v 16454 } 16455 16456 /************************************************* 16457 * LocalRouterUpdateRequest 16458 *************************************************/ 16459 16460 // LocalRouterUpdateRequest represents API parameter/response structure 16461 type LocalRouterUpdateRequest struct { 16462 Switch *LocalRouterSwitch `mapconv:"Settings.LocalRouter.Switch,recursive"` 16463 Interface *LocalRouterInterface `mapconv:"Settings.LocalRouter.Interface,recursive"` 16464 Peers []*LocalRouterPeer `mapconv:"Settings.LocalRouter.[]Peers,recursive"` 16465 StaticRoutes []*LocalRouterStaticRoute `mapconv:"Settings.LocalRouter.[]StaticRoutes,recursive"` 16466 SettingsHash string `json:",omitempty" mapconv:",omitempty"` 16467 Name string 16468 Description string 16469 Tags types.Tags 16470 IconID types.ID `mapconv:"Icon.ID"` 16471 } 16472 16473 // setDefaults implements iaas.argumentDefaulter 16474 func (o *LocalRouterUpdateRequest) setDefaults() interface{} { 16475 return &struct { 16476 Switch *LocalRouterSwitch `mapconv:"Settings.LocalRouter.Switch,recursive"` 16477 Interface *LocalRouterInterface `mapconv:"Settings.LocalRouter.Interface,recursive"` 16478 Peers []*LocalRouterPeer `mapconv:"Settings.LocalRouter.[]Peers,recursive"` 16479 StaticRoutes []*LocalRouterStaticRoute `mapconv:"Settings.LocalRouter.[]StaticRoutes,recursive"` 16480 SettingsHash string `json:",omitempty" mapconv:",omitempty"` 16481 Name string 16482 Description string 16483 Tags types.Tags 16484 IconID types.ID `mapconv:"Icon.ID"` 16485 }{ 16486 Switch: o.GetSwitch(), 16487 Interface: o.GetInterface(), 16488 Peers: o.GetPeers(), 16489 StaticRoutes: o.GetStaticRoutes(), 16490 SettingsHash: o.GetSettingsHash(), 16491 Name: o.GetName(), 16492 Description: o.GetDescription(), 16493 Tags: o.GetTags(), 16494 IconID: o.GetIconID(), 16495 } 16496 } 16497 16498 // GetSwitch returns value of Switch 16499 func (o *LocalRouterUpdateRequest) GetSwitch() *LocalRouterSwitch { 16500 return o.Switch 16501 } 16502 16503 // SetSwitch sets value to Switch 16504 func (o *LocalRouterUpdateRequest) SetSwitch(v *LocalRouterSwitch) { 16505 o.Switch = v 16506 } 16507 16508 // GetInterface returns value of Interface 16509 func (o *LocalRouterUpdateRequest) GetInterface() *LocalRouterInterface { 16510 return o.Interface 16511 } 16512 16513 // SetInterface sets value to Interface 16514 func (o *LocalRouterUpdateRequest) SetInterface(v *LocalRouterInterface) { 16515 o.Interface = v 16516 } 16517 16518 // GetPeers returns value of Peers 16519 func (o *LocalRouterUpdateRequest) GetPeers() []*LocalRouterPeer { 16520 return o.Peers 16521 } 16522 16523 // SetPeers sets value to Peers 16524 func (o *LocalRouterUpdateRequest) SetPeers(v []*LocalRouterPeer) { 16525 o.Peers = v 16526 } 16527 16528 // GetStaticRoutes returns value of StaticRoutes 16529 func (o *LocalRouterUpdateRequest) GetStaticRoutes() []*LocalRouterStaticRoute { 16530 return o.StaticRoutes 16531 } 16532 16533 // SetStaticRoutes sets value to StaticRoutes 16534 func (o *LocalRouterUpdateRequest) SetStaticRoutes(v []*LocalRouterStaticRoute) { 16535 o.StaticRoutes = v 16536 } 16537 16538 // GetSettingsHash returns value of SettingsHash 16539 func (o *LocalRouterUpdateRequest) GetSettingsHash() string { 16540 return o.SettingsHash 16541 } 16542 16543 // SetSettingsHash sets value to SettingsHash 16544 func (o *LocalRouterUpdateRequest) SetSettingsHash(v string) { 16545 o.SettingsHash = v 16546 } 16547 16548 // GetName returns value of Name 16549 func (o *LocalRouterUpdateRequest) GetName() string { 16550 return o.Name 16551 } 16552 16553 // SetName sets value to Name 16554 func (o *LocalRouterUpdateRequest) SetName(v string) { 16555 o.Name = v 16556 } 16557 16558 // GetDescription returns value of Description 16559 func (o *LocalRouterUpdateRequest) GetDescription() string { 16560 return o.Description 16561 } 16562 16563 // SetDescription sets value to Description 16564 func (o *LocalRouterUpdateRequest) SetDescription(v string) { 16565 o.Description = v 16566 } 16567 16568 // GetTags returns value of Tags 16569 func (o *LocalRouterUpdateRequest) GetTags() types.Tags { 16570 return o.Tags 16571 } 16572 16573 // SetTags sets value to Tags 16574 func (o *LocalRouterUpdateRequest) SetTags(v types.Tags) { 16575 o.Tags = v 16576 } 16577 16578 // HasTag 指定のタグが存在する場合trueを返す 16579 func (o *LocalRouterUpdateRequest) HasTag(tag string) bool { 16580 return accessor.HasTag(o, tag) 16581 } 16582 16583 // AppendTag 指定のタグを追加 16584 func (o *LocalRouterUpdateRequest) AppendTag(tag string) { 16585 accessor.AppendTag(o, tag) 16586 } 16587 16588 // RemoveTag 指定のタグを削除 16589 func (o *LocalRouterUpdateRequest) RemoveTag(tag string) { 16590 accessor.RemoveTag(o, tag) 16591 } 16592 16593 // ClearTags タグを全クリア 16594 func (o *LocalRouterUpdateRequest) ClearTags() { 16595 accessor.ClearTags(o) 16596 } 16597 16598 // GetIconID returns value of IconID 16599 func (o *LocalRouterUpdateRequest) GetIconID() types.ID { 16600 return o.IconID 16601 } 16602 16603 // SetIconID sets value to IconID 16604 func (o *LocalRouterUpdateRequest) SetIconID(v types.ID) { 16605 o.IconID = v 16606 } 16607 16608 /************************************************* 16609 * LocalRouterUpdateSettingsRequest 16610 *************************************************/ 16611 16612 // LocalRouterUpdateSettingsRequest represents API parameter/response structure 16613 type LocalRouterUpdateSettingsRequest struct { 16614 Switch *LocalRouterSwitch `mapconv:"Settings.LocalRouter.Switch,recursive"` 16615 Interface *LocalRouterInterface `mapconv:"Settings.LocalRouter.Interface,recursive"` 16616 Peers []*LocalRouterPeer `mapconv:"Settings.LocalRouter.[]Peers,recursive"` 16617 StaticRoutes []*LocalRouterStaticRoute `mapconv:"Settings.LocalRouter.[]StaticRoutes,recursive"` 16618 SettingsHash string `json:",omitempty" mapconv:",omitempty"` 16619 } 16620 16621 // setDefaults implements iaas.argumentDefaulter 16622 func (o *LocalRouterUpdateSettingsRequest) setDefaults() interface{} { 16623 return &struct { 16624 Switch *LocalRouterSwitch `mapconv:"Settings.LocalRouter.Switch,recursive"` 16625 Interface *LocalRouterInterface `mapconv:"Settings.LocalRouter.Interface,recursive"` 16626 Peers []*LocalRouterPeer `mapconv:"Settings.LocalRouter.[]Peers,recursive"` 16627 StaticRoutes []*LocalRouterStaticRoute `mapconv:"Settings.LocalRouter.[]StaticRoutes,recursive"` 16628 SettingsHash string `json:",omitempty" mapconv:",omitempty"` 16629 }{ 16630 Switch: o.GetSwitch(), 16631 Interface: o.GetInterface(), 16632 Peers: o.GetPeers(), 16633 StaticRoutes: o.GetStaticRoutes(), 16634 SettingsHash: o.GetSettingsHash(), 16635 } 16636 } 16637 16638 // GetSwitch returns value of Switch 16639 func (o *LocalRouterUpdateSettingsRequest) GetSwitch() *LocalRouterSwitch { 16640 return o.Switch 16641 } 16642 16643 // SetSwitch sets value to Switch 16644 func (o *LocalRouterUpdateSettingsRequest) SetSwitch(v *LocalRouterSwitch) { 16645 o.Switch = v 16646 } 16647 16648 // GetInterface returns value of Interface 16649 func (o *LocalRouterUpdateSettingsRequest) GetInterface() *LocalRouterInterface { 16650 return o.Interface 16651 } 16652 16653 // SetInterface sets value to Interface 16654 func (o *LocalRouterUpdateSettingsRequest) SetInterface(v *LocalRouterInterface) { 16655 o.Interface = v 16656 } 16657 16658 // GetPeers returns value of Peers 16659 func (o *LocalRouterUpdateSettingsRequest) GetPeers() []*LocalRouterPeer { 16660 return o.Peers 16661 } 16662 16663 // SetPeers sets value to Peers 16664 func (o *LocalRouterUpdateSettingsRequest) SetPeers(v []*LocalRouterPeer) { 16665 o.Peers = v 16666 } 16667 16668 // GetStaticRoutes returns value of StaticRoutes 16669 func (o *LocalRouterUpdateSettingsRequest) GetStaticRoutes() []*LocalRouterStaticRoute { 16670 return o.StaticRoutes 16671 } 16672 16673 // SetStaticRoutes sets value to StaticRoutes 16674 func (o *LocalRouterUpdateSettingsRequest) SetStaticRoutes(v []*LocalRouterStaticRoute) { 16675 o.StaticRoutes = v 16676 } 16677 16678 // GetSettingsHash returns value of SettingsHash 16679 func (o *LocalRouterUpdateSettingsRequest) GetSettingsHash() string { 16680 return o.SettingsHash 16681 } 16682 16683 // SetSettingsHash sets value to SettingsHash 16684 func (o *LocalRouterUpdateSettingsRequest) SetSettingsHash(v string) { 16685 o.SettingsHash = v 16686 } 16687 16688 /************************************************* 16689 * LocalRouterHealth 16690 *************************************************/ 16691 16692 // LocalRouterHealth represents API parameter/response structure 16693 type LocalRouterHealth struct { 16694 Peers []*LocalRouterHealthPeer `mapconv:"[]Peers,recursive"` 16695 } 16696 16697 // setDefaults implements iaas.argumentDefaulter 16698 func (o *LocalRouterHealth) setDefaults() interface{} { 16699 return &struct { 16700 Peers []*LocalRouterHealthPeer `mapconv:"[]Peers,recursive"` 16701 }{ 16702 Peers: o.GetPeers(), 16703 } 16704 } 16705 16706 // GetPeers returns value of Peers 16707 func (o *LocalRouterHealth) GetPeers() []*LocalRouterHealthPeer { 16708 return o.Peers 16709 } 16710 16711 // SetPeers sets value to Peers 16712 func (o *LocalRouterHealth) SetPeers(v []*LocalRouterHealthPeer) { 16713 o.Peers = v 16714 } 16715 16716 /************************************************* 16717 * LocalRouterHealthPeer 16718 *************************************************/ 16719 16720 // LocalRouterHealthPeer represents API parameter/response structure 16721 type LocalRouterHealthPeer struct { 16722 ID types.ID 16723 Status types.EServerInstanceStatus 16724 Routes []string 16725 } 16726 16727 // setDefaults implements iaas.argumentDefaulter 16728 func (o *LocalRouterHealthPeer) setDefaults() interface{} { 16729 return &struct { 16730 ID types.ID 16731 Status types.EServerInstanceStatus 16732 Routes []string 16733 }{ 16734 ID: o.GetID(), 16735 Status: o.GetStatus(), 16736 Routes: o.GetRoutes(), 16737 } 16738 } 16739 16740 // GetID returns value of ID 16741 func (o *LocalRouterHealthPeer) GetID() types.ID { 16742 return o.ID 16743 } 16744 16745 // SetID sets value to ID 16746 func (o *LocalRouterHealthPeer) SetID(v types.ID) { 16747 o.ID = v 16748 } 16749 16750 // GetStatus returns value of Status 16751 func (o *LocalRouterHealthPeer) GetStatus() types.EServerInstanceStatus { 16752 return o.Status 16753 } 16754 16755 // SetStatus sets value to Status 16756 func (o *LocalRouterHealthPeer) SetStatus(v types.EServerInstanceStatus) { 16757 o.Status = v 16758 } 16759 16760 // GetRoutes returns value of Routes 16761 func (o *LocalRouterHealthPeer) GetRoutes() []string { 16762 return o.Routes 16763 } 16764 16765 // SetRoutes sets value to Routes 16766 func (o *LocalRouterHealthPeer) SetRoutes(v []string) { 16767 o.Routes = v 16768 } 16769 16770 /************************************************* 16771 * LocalRouterActivity 16772 *************************************************/ 16773 16774 // LocalRouterActivity represents API parameter/response structure 16775 type LocalRouterActivity struct { 16776 Values []*MonitorLocalRouterValue `mapconv:"[]LocalRouter"` 16777 } 16778 16779 // setDefaults implements iaas.argumentDefaulter 16780 func (o *LocalRouterActivity) setDefaults() interface{} { 16781 return &struct { 16782 Values []*MonitorLocalRouterValue `mapconv:"[]LocalRouter"` 16783 }{ 16784 Values: o.GetValues(), 16785 } 16786 } 16787 16788 // GetValues returns value of Values 16789 func (o *LocalRouterActivity) GetValues() []*MonitorLocalRouterValue { 16790 return o.Values 16791 } 16792 16793 // SetValues sets value to Values 16794 func (o *LocalRouterActivity) SetValues(v []*MonitorLocalRouterValue) { 16795 o.Values = v 16796 } 16797 16798 /************************************************* 16799 * MonitorLocalRouterValue 16800 *************************************************/ 16801 16802 // MonitorLocalRouterValue represents API parameter/response structure 16803 type MonitorLocalRouterValue struct { 16804 Time time.Time `mapconv:",omitempty"` 16805 ReceiveBytesPerSec float64 `mapconv:",omitempty"` 16806 SendBytesPerSec float64 `mapconv:",omitempty"` 16807 } 16808 16809 // setDefaults implements iaas.argumentDefaulter 16810 func (o *MonitorLocalRouterValue) setDefaults() interface{} { 16811 return &struct { 16812 Time time.Time `mapconv:",omitempty"` 16813 ReceiveBytesPerSec float64 `mapconv:",omitempty"` 16814 SendBytesPerSec float64 `mapconv:",omitempty"` 16815 }{ 16816 Time: o.GetTime(), 16817 ReceiveBytesPerSec: o.GetReceiveBytesPerSec(), 16818 SendBytesPerSec: o.GetSendBytesPerSec(), 16819 } 16820 } 16821 16822 // GetTime returns value of Time 16823 func (o *MonitorLocalRouterValue) GetTime() time.Time { 16824 return o.Time 16825 } 16826 16827 // SetTime sets value to Time 16828 func (o *MonitorLocalRouterValue) SetTime(v time.Time) { 16829 o.Time = v 16830 } 16831 16832 // GetReceiveBytesPerSec returns value of ReceiveBytesPerSec 16833 func (o *MonitorLocalRouterValue) GetReceiveBytesPerSec() float64 { 16834 return o.ReceiveBytesPerSec 16835 } 16836 16837 // SetReceiveBytesPerSec sets value to ReceiveBytesPerSec 16838 func (o *MonitorLocalRouterValue) SetReceiveBytesPerSec(v float64) { 16839 o.ReceiveBytesPerSec = v 16840 } 16841 16842 // GetSendBytesPerSec returns value of SendBytesPerSec 16843 func (o *MonitorLocalRouterValue) GetSendBytesPerSec() float64 { 16844 return o.SendBytesPerSec 16845 } 16846 16847 // SetSendBytesPerSec sets value to SendBytesPerSec 16848 func (o *MonitorLocalRouterValue) SetSendBytesPerSec(v float64) { 16849 o.SendBytesPerSec = v 16850 } 16851 16852 /************************************************* 16853 * MobileGateway 16854 *************************************************/ 16855 16856 // MobileGateway represents API parameter/response structure 16857 type MobileGateway struct { 16858 ID types.ID 16859 Name string 16860 Description string 16861 Tags types.Tags 16862 Availability types.EAvailability 16863 Class string 16864 IconID types.ID `mapconv:"Icon.ID"` 16865 CreatedAt time.Time 16866 InstanceHostName string `mapconv:"Instance.Host.Name"` 16867 InstanceHostInfoURL string `mapconv:"Instance.Host.InfoURL"` 16868 InstanceStatus types.EServerInstanceStatus `mapconv:"Instance.Status"` 16869 InstanceStatusChangedAt time.Time `mapconv:"Instance.StatusChangedAt"` 16870 Interfaces []*MobileGatewayInterface `json:",omitempty" mapconv:"[]Interfaces,recursive,omitempty"` 16871 ZoneID types.ID `mapconv:"Remark.Zone.ID"` 16872 GlobalAddress string `mapconv:"Remark.MobileGateway.GlobalAddress"` 16873 InterfaceSettings []*MobileGatewayInterfaceSetting `mapconv:"Settings.MobileGateway.[]Interfaces,recursive"` 16874 StaticRoutes []*MobileGatewayStaticRoute `mapconv:"Settings.MobileGateway.[]StaticRoutes,recursive"` 16875 InternetConnectionEnabled types.StringFlag `mapconv:"Settings.MobileGateway.InternetConnection.Enabled"` 16876 InterDeviceCommunicationEnabled types.StringFlag `mapconv:"Settings.MobileGateway.InterDeviceCommunication.Enabled"` 16877 SettingsHash string `json:",omitempty" mapconv:",omitempty"` 16878 } 16879 16880 // setDefaults implements iaas.argumentDefaulter 16881 func (o *MobileGateway) setDefaults() interface{} { 16882 return &struct { 16883 ID types.ID 16884 Name string 16885 Description string 16886 Tags types.Tags 16887 Availability types.EAvailability 16888 Class string 16889 IconID types.ID `mapconv:"Icon.ID"` 16890 CreatedAt time.Time 16891 InstanceHostName string `mapconv:"Instance.Host.Name"` 16892 InstanceHostInfoURL string `mapconv:"Instance.Host.InfoURL"` 16893 InstanceStatus types.EServerInstanceStatus `mapconv:"Instance.Status"` 16894 InstanceStatusChangedAt time.Time `mapconv:"Instance.StatusChangedAt"` 16895 Interfaces []*MobileGatewayInterface `json:",omitempty" mapconv:"[]Interfaces,recursive,omitempty"` 16896 ZoneID types.ID `mapconv:"Remark.Zone.ID"` 16897 GlobalAddress string `mapconv:"Remark.MobileGateway.GlobalAddress"` 16898 InterfaceSettings []*MobileGatewayInterfaceSetting `mapconv:"Settings.MobileGateway.[]Interfaces,recursive"` 16899 StaticRoutes []*MobileGatewayStaticRoute `mapconv:"Settings.MobileGateway.[]StaticRoutes,recursive"` 16900 InternetConnectionEnabled types.StringFlag `mapconv:"Settings.MobileGateway.InternetConnection.Enabled"` 16901 InterDeviceCommunicationEnabled types.StringFlag `mapconv:"Settings.MobileGateway.InterDeviceCommunication.Enabled"` 16902 SettingsHash string `json:",omitempty" mapconv:",omitempty"` 16903 }{ 16904 ID: o.GetID(), 16905 Name: o.GetName(), 16906 Description: o.GetDescription(), 16907 Tags: o.GetTags(), 16908 Availability: o.GetAvailability(), 16909 Class: o.GetClass(), 16910 IconID: o.GetIconID(), 16911 CreatedAt: o.GetCreatedAt(), 16912 InstanceHostName: o.GetInstanceHostName(), 16913 InstanceHostInfoURL: o.GetInstanceHostInfoURL(), 16914 InstanceStatus: o.GetInstanceStatus(), 16915 InstanceStatusChangedAt: o.GetInstanceStatusChangedAt(), 16916 Interfaces: o.GetInterfaces(), 16917 ZoneID: o.GetZoneID(), 16918 GlobalAddress: o.GetGlobalAddress(), 16919 InterfaceSettings: o.GetInterfaceSettings(), 16920 StaticRoutes: o.GetStaticRoutes(), 16921 InternetConnectionEnabled: o.GetInternetConnectionEnabled(), 16922 InterDeviceCommunicationEnabled: o.GetInterDeviceCommunicationEnabled(), 16923 SettingsHash: o.GetSettingsHash(), 16924 } 16925 } 16926 16927 // GetID returns value of ID 16928 func (o *MobileGateway) GetID() types.ID { 16929 return o.ID 16930 } 16931 16932 // SetID sets value to ID 16933 func (o *MobileGateway) SetID(v types.ID) { 16934 o.ID = v 16935 } 16936 16937 // SetStringID . 16938 func (o *MobileGateway) SetStringID(id string) { 16939 accessor.SetStringID(o, id) 16940 } 16941 16942 // GetStringID . 16943 func (o *MobileGateway) GetStringID() string { 16944 return accessor.GetStringID(o) 16945 } 16946 16947 // SetInt64ID . 16948 func (o *MobileGateway) SetInt64ID(id int64) { 16949 accessor.SetInt64ID(o, id) 16950 } 16951 16952 // GetInt64ID . 16953 func (o *MobileGateway) GetInt64ID() int64 { 16954 return accessor.GetInt64ID(o) 16955 } 16956 16957 // GetName returns value of Name 16958 func (o *MobileGateway) GetName() string { 16959 return o.Name 16960 } 16961 16962 // SetName sets value to Name 16963 func (o *MobileGateway) SetName(v string) { 16964 o.Name = v 16965 } 16966 16967 // GetDescription returns value of Description 16968 func (o *MobileGateway) GetDescription() string { 16969 return o.Description 16970 } 16971 16972 // SetDescription sets value to Description 16973 func (o *MobileGateway) SetDescription(v string) { 16974 o.Description = v 16975 } 16976 16977 // GetTags returns value of Tags 16978 func (o *MobileGateway) GetTags() types.Tags { 16979 return o.Tags 16980 } 16981 16982 // SetTags sets value to Tags 16983 func (o *MobileGateway) SetTags(v types.Tags) { 16984 o.Tags = v 16985 } 16986 16987 // HasTag 指定のタグが存在する場合trueを返す 16988 func (o *MobileGateway) HasTag(tag string) bool { 16989 return accessor.HasTag(o, tag) 16990 } 16991 16992 // AppendTag 指定のタグを追加 16993 func (o *MobileGateway) AppendTag(tag string) { 16994 accessor.AppendTag(o, tag) 16995 } 16996 16997 // RemoveTag 指定のタグを削除 16998 func (o *MobileGateway) RemoveTag(tag string) { 16999 accessor.RemoveTag(o, tag) 17000 } 17001 17002 // ClearTags タグを全クリア 17003 func (o *MobileGateway) ClearTags() { 17004 accessor.ClearTags(o) 17005 } 17006 17007 // GetAvailability returns value of Availability 17008 func (o *MobileGateway) GetAvailability() types.EAvailability { 17009 return o.Availability 17010 } 17011 17012 // SetAvailability sets value to Availability 17013 func (o *MobileGateway) SetAvailability(v types.EAvailability) { 17014 o.Availability = v 17015 } 17016 17017 // GetClass returns value of Class 17018 func (o *MobileGateway) GetClass() string { 17019 return o.Class 17020 } 17021 17022 // SetClass sets value to Class 17023 func (o *MobileGateway) SetClass(v string) { 17024 o.Class = v 17025 } 17026 17027 // GetIconID returns value of IconID 17028 func (o *MobileGateway) GetIconID() types.ID { 17029 return o.IconID 17030 } 17031 17032 // SetIconID sets value to IconID 17033 func (o *MobileGateway) SetIconID(v types.ID) { 17034 o.IconID = v 17035 } 17036 17037 // GetCreatedAt returns value of CreatedAt 17038 func (o *MobileGateway) GetCreatedAt() time.Time { 17039 return o.CreatedAt 17040 } 17041 17042 // SetCreatedAt sets value to CreatedAt 17043 func (o *MobileGateway) SetCreatedAt(v time.Time) { 17044 o.CreatedAt = v 17045 } 17046 17047 // GetInstanceHostName returns value of InstanceHostName 17048 func (o *MobileGateway) GetInstanceHostName() string { 17049 return o.InstanceHostName 17050 } 17051 17052 // SetInstanceHostName sets value to InstanceHostName 17053 func (o *MobileGateway) SetInstanceHostName(v string) { 17054 o.InstanceHostName = v 17055 } 17056 17057 // GetInstanceHostInfoURL returns value of InstanceHostInfoURL 17058 func (o *MobileGateway) GetInstanceHostInfoURL() string { 17059 return o.InstanceHostInfoURL 17060 } 17061 17062 // SetInstanceHostInfoURL sets value to InstanceHostInfoURL 17063 func (o *MobileGateway) SetInstanceHostInfoURL(v string) { 17064 o.InstanceHostInfoURL = v 17065 } 17066 17067 // GetInstanceStatus returns value of InstanceStatus 17068 func (o *MobileGateway) GetInstanceStatus() types.EServerInstanceStatus { 17069 return o.InstanceStatus 17070 } 17071 17072 // SetInstanceStatus sets value to InstanceStatus 17073 func (o *MobileGateway) SetInstanceStatus(v types.EServerInstanceStatus) { 17074 o.InstanceStatus = v 17075 } 17076 17077 // GetInstanceStatusChangedAt returns value of InstanceStatusChangedAt 17078 func (o *MobileGateway) GetInstanceStatusChangedAt() time.Time { 17079 return o.InstanceStatusChangedAt 17080 } 17081 17082 // SetInstanceStatusChangedAt sets value to InstanceStatusChangedAt 17083 func (o *MobileGateway) SetInstanceStatusChangedAt(v time.Time) { 17084 o.InstanceStatusChangedAt = v 17085 } 17086 17087 // GetInterfaces returns value of Interfaces 17088 func (o *MobileGateway) GetInterfaces() []*MobileGatewayInterface { 17089 return o.Interfaces 17090 } 17091 17092 // SetInterfaces sets value to Interfaces 17093 func (o *MobileGateway) SetInterfaces(v []*MobileGatewayInterface) { 17094 o.Interfaces = v 17095 } 17096 17097 // GetZoneID returns value of ZoneID 17098 func (o *MobileGateway) GetZoneID() types.ID { 17099 return o.ZoneID 17100 } 17101 17102 // SetZoneID sets value to ZoneID 17103 func (o *MobileGateway) SetZoneID(v types.ID) { 17104 o.ZoneID = v 17105 } 17106 17107 // GetGlobalAddress returns value of GlobalAddress 17108 func (o *MobileGateway) GetGlobalAddress() string { 17109 return o.GlobalAddress 17110 } 17111 17112 // SetGlobalAddress sets value to GlobalAddress 17113 func (o *MobileGateway) SetGlobalAddress(v string) { 17114 o.GlobalAddress = v 17115 } 17116 17117 // GetInterfaceSettings returns value of InterfaceSettings 17118 func (o *MobileGateway) GetInterfaceSettings() []*MobileGatewayInterfaceSetting { 17119 return o.InterfaceSettings 17120 } 17121 17122 // SetInterfaceSettings sets value to InterfaceSettings 17123 func (o *MobileGateway) SetInterfaceSettings(v []*MobileGatewayInterfaceSetting) { 17124 o.InterfaceSettings = v 17125 } 17126 17127 // GetStaticRoutes returns value of StaticRoutes 17128 func (o *MobileGateway) GetStaticRoutes() []*MobileGatewayStaticRoute { 17129 return o.StaticRoutes 17130 } 17131 17132 // SetStaticRoutes sets value to StaticRoutes 17133 func (o *MobileGateway) SetStaticRoutes(v []*MobileGatewayStaticRoute) { 17134 o.StaticRoutes = v 17135 } 17136 17137 // GetInternetConnectionEnabled returns value of InternetConnectionEnabled 17138 func (o *MobileGateway) GetInternetConnectionEnabled() types.StringFlag { 17139 return o.InternetConnectionEnabled 17140 } 17141 17142 // SetInternetConnectionEnabled sets value to InternetConnectionEnabled 17143 func (o *MobileGateway) SetInternetConnectionEnabled(v types.StringFlag) { 17144 o.InternetConnectionEnabled = v 17145 } 17146 17147 // GetInterDeviceCommunicationEnabled returns value of InterDeviceCommunicationEnabled 17148 func (o *MobileGateway) GetInterDeviceCommunicationEnabled() types.StringFlag { 17149 return o.InterDeviceCommunicationEnabled 17150 } 17151 17152 // SetInterDeviceCommunicationEnabled sets value to InterDeviceCommunicationEnabled 17153 func (o *MobileGateway) SetInterDeviceCommunicationEnabled(v types.StringFlag) { 17154 o.InterDeviceCommunicationEnabled = v 17155 } 17156 17157 // GetSettingsHash returns value of SettingsHash 17158 func (o *MobileGateway) GetSettingsHash() string { 17159 return o.SettingsHash 17160 } 17161 17162 // SetSettingsHash sets value to SettingsHash 17163 func (o *MobileGateway) SetSettingsHash(v string) { 17164 o.SettingsHash = v 17165 } 17166 17167 /************************************************* 17168 * MobileGatewayInterface 17169 *************************************************/ 17170 17171 // MobileGatewayInterface represents API parameter/response structure 17172 type MobileGatewayInterface struct { 17173 ID types.ID 17174 MACAddress string 17175 IPAddress string 17176 UserIPAddress string 17177 HostName string 17178 SwitchID types.ID `mapconv:"Switch.ID"` 17179 SwitchName string `mapconv:"Switch.Name"` 17180 SwitchScope types.EScope `mapconv:"Switch.Scope"` 17181 UserSubnetDefaultRoute string `mapconv:"Switch.UserSubnet.DefaultRoute"` 17182 UserSubnetNetworkMaskLen int `mapconv:"Switch.UserSubnet.NetworkMaskLen"` 17183 SubnetDefaultRoute string `mapconv:"Switch.Subnet.DefaultRoute"` 17184 SubnetNetworkMaskLen int `mapconv:"Switch.Subnet.NetworkMaskLen"` 17185 SubnetNetworkAddress string `mapconv:"Switch.Subnet.NetworkAddress"` 17186 SubnetBandWidthMbps int `mapconv:"Switch.Subnet.Internet.BandWidthMbps"` 17187 PacketFilterID types.ID `mapconv:"PacketFilter.ID"` 17188 PacketFilterName string `mapconv:"PacketFilter.Name"` 17189 PacketFilterRequiredHostVersion types.StringNumber `mapconv:"PacketFilter.RequiredHostVersionn"` 17190 UpstreamType types.EUpstreamNetworkType 17191 Index int `mapconv:",omitempty"` 17192 } 17193 17194 // setDefaults implements iaas.argumentDefaulter 17195 func (o *MobileGatewayInterface) setDefaults() interface{} { 17196 return &struct { 17197 ID types.ID 17198 MACAddress string 17199 IPAddress string 17200 UserIPAddress string 17201 HostName string 17202 SwitchID types.ID `mapconv:"Switch.ID"` 17203 SwitchName string `mapconv:"Switch.Name"` 17204 SwitchScope types.EScope `mapconv:"Switch.Scope"` 17205 UserSubnetDefaultRoute string `mapconv:"Switch.UserSubnet.DefaultRoute"` 17206 UserSubnetNetworkMaskLen int `mapconv:"Switch.UserSubnet.NetworkMaskLen"` 17207 SubnetDefaultRoute string `mapconv:"Switch.Subnet.DefaultRoute"` 17208 SubnetNetworkMaskLen int `mapconv:"Switch.Subnet.NetworkMaskLen"` 17209 SubnetNetworkAddress string `mapconv:"Switch.Subnet.NetworkAddress"` 17210 SubnetBandWidthMbps int `mapconv:"Switch.Subnet.Internet.BandWidthMbps"` 17211 PacketFilterID types.ID `mapconv:"PacketFilter.ID"` 17212 PacketFilterName string `mapconv:"PacketFilter.Name"` 17213 PacketFilterRequiredHostVersion types.StringNumber `mapconv:"PacketFilter.RequiredHostVersionn"` 17214 UpstreamType types.EUpstreamNetworkType 17215 Index int `mapconv:",omitempty"` 17216 }{ 17217 ID: o.GetID(), 17218 MACAddress: o.GetMACAddress(), 17219 IPAddress: o.GetIPAddress(), 17220 UserIPAddress: o.GetUserIPAddress(), 17221 HostName: o.GetHostName(), 17222 SwitchID: o.GetSwitchID(), 17223 SwitchName: o.GetSwitchName(), 17224 SwitchScope: o.GetSwitchScope(), 17225 UserSubnetDefaultRoute: o.GetUserSubnetDefaultRoute(), 17226 UserSubnetNetworkMaskLen: o.GetUserSubnetNetworkMaskLen(), 17227 SubnetDefaultRoute: o.GetSubnetDefaultRoute(), 17228 SubnetNetworkMaskLen: o.GetSubnetNetworkMaskLen(), 17229 SubnetNetworkAddress: o.GetSubnetNetworkAddress(), 17230 SubnetBandWidthMbps: o.GetSubnetBandWidthMbps(), 17231 PacketFilterID: o.GetPacketFilterID(), 17232 PacketFilterName: o.GetPacketFilterName(), 17233 PacketFilterRequiredHostVersion: o.GetPacketFilterRequiredHostVersion(), 17234 UpstreamType: o.GetUpstreamType(), 17235 Index: o.GetIndex(), 17236 } 17237 } 17238 17239 // GetID returns value of ID 17240 func (o *MobileGatewayInterface) GetID() types.ID { 17241 return o.ID 17242 } 17243 17244 // SetID sets value to ID 17245 func (o *MobileGatewayInterface) SetID(v types.ID) { 17246 o.ID = v 17247 } 17248 17249 // SetStringID . 17250 func (o *MobileGatewayInterface) SetStringID(id string) { 17251 accessor.SetStringID(o, id) 17252 } 17253 17254 // GetStringID . 17255 func (o *MobileGatewayInterface) GetStringID() string { 17256 return accessor.GetStringID(o) 17257 } 17258 17259 // SetInt64ID . 17260 func (o *MobileGatewayInterface) SetInt64ID(id int64) { 17261 accessor.SetInt64ID(o, id) 17262 } 17263 17264 // GetInt64ID . 17265 func (o *MobileGatewayInterface) GetInt64ID() int64 { 17266 return accessor.GetInt64ID(o) 17267 } 17268 17269 // GetMACAddress returns value of MACAddress 17270 func (o *MobileGatewayInterface) GetMACAddress() string { 17271 return o.MACAddress 17272 } 17273 17274 // SetMACAddress sets value to MACAddress 17275 func (o *MobileGatewayInterface) SetMACAddress(v string) { 17276 o.MACAddress = v 17277 } 17278 17279 // GetIPAddress returns value of IPAddress 17280 func (o *MobileGatewayInterface) GetIPAddress() string { 17281 return o.IPAddress 17282 } 17283 17284 // SetIPAddress sets value to IPAddress 17285 func (o *MobileGatewayInterface) SetIPAddress(v string) { 17286 o.IPAddress = v 17287 } 17288 17289 // GetUserIPAddress returns value of UserIPAddress 17290 func (o *MobileGatewayInterface) GetUserIPAddress() string { 17291 return o.UserIPAddress 17292 } 17293 17294 // SetUserIPAddress sets value to UserIPAddress 17295 func (o *MobileGatewayInterface) SetUserIPAddress(v string) { 17296 o.UserIPAddress = v 17297 } 17298 17299 // GetHostName returns value of HostName 17300 func (o *MobileGatewayInterface) GetHostName() string { 17301 return o.HostName 17302 } 17303 17304 // SetHostName sets value to HostName 17305 func (o *MobileGatewayInterface) SetHostName(v string) { 17306 o.HostName = v 17307 } 17308 17309 // GetSwitchID returns value of SwitchID 17310 func (o *MobileGatewayInterface) GetSwitchID() types.ID { 17311 return o.SwitchID 17312 } 17313 17314 // SetSwitchID sets value to SwitchID 17315 func (o *MobileGatewayInterface) SetSwitchID(v types.ID) { 17316 o.SwitchID = v 17317 } 17318 17319 // GetSwitchName returns value of SwitchName 17320 func (o *MobileGatewayInterface) GetSwitchName() string { 17321 return o.SwitchName 17322 } 17323 17324 // SetSwitchName sets value to SwitchName 17325 func (o *MobileGatewayInterface) SetSwitchName(v string) { 17326 o.SwitchName = v 17327 } 17328 17329 // GetSwitchScope returns value of SwitchScope 17330 func (o *MobileGatewayInterface) GetSwitchScope() types.EScope { 17331 return o.SwitchScope 17332 } 17333 17334 // SetSwitchScope sets value to SwitchScope 17335 func (o *MobileGatewayInterface) SetSwitchScope(v types.EScope) { 17336 o.SwitchScope = v 17337 } 17338 17339 // GetUserSubnetDefaultRoute returns value of UserSubnetDefaultRoute 17340 func (o *MobileGatewayInterface) GetUserSubnetDefaultRoute() string { 17341 return o.UserSubnetDefaultRoute 17342 } 17343 17344 // SetUserSubnetDefaultRoute sets value to UserSubnetDefaultRoute 17345 func (o *MobileGatewayInterface) SetUserSubnetDefaultRoute(v string) { 17346 o.UserSubnetDefaultRoute = v 17347 } 17348 17349 // GetUserSubnetNetworkMaskLen returns value of UserSubnetNetworkMaskLen 17350 func (o *MobileGatewayInterface) GetUserSubnetNetworkMaskLen() int { 17351 return o.UserSubnetNetworkMaskLen 17352 } 17353 17354 // SetUserSubnetNetworkMaskLen sets value to UserSubnetNetworkMaskLen 17355 func (o *MobileGatewayInterface) SetUserSubnetNetworkMaskLen(v int) { 17356 o.UserSubnetNetworkMaskLen = v 17357 } 17358 17359 // GetSubnetDefaultRoute returns value of SubnetDefaultRoute 17360 func (o *MobileGatewayInterface) GetSubnetDefaultRoute() string { 17361 return o.SubnetDefaultRoute 17362 } 17363 17364 // SetSubnetDefaultRoute sets value to SubnetDefaultRoute 17365 func (o *MobileGatewayInterface) SetSubnetDefaultRoute(v string) { 17366 o.SubnetDefaultRoute = v 17367 } 17368 17369 // GetSubnetNetworkMaskLen returns value of SubnetNetworkMaskLen 17370 func (o *MobileGatewayInterface) GetSubnetNetworkMaskLen() int { 17371 return o.SubnetNetworkMaskLen 17372 } 17373 17374 // SetSubnetNetworkMaskLen sets value to SubnetNetworkMaskLen 17375 func (o *MobileGatewayInterface) SetSubnetNetworkMaskLen(v int) { 17376 o.SubnetNetworkMaskLen = v 17377 } 17378 17379 // GetSubnetNetworkAddress returns value of SubnetNetworkAddress 17380 func (o *MobileGatewayInterface) GetSubnetNetworkAddress() string { 17381 return o.SubnetNetworkAddress 17382 } 17383 17384 // SetSubnetNetworkAddress sets value to SubnetNetworkAddress 17385 func (o *MobileGatewayInterface) SetSubnetNetworkAddress(v string) { 17386 o.SubnetNetworkAddress = v 17387 } 17388 17389 // GetSubnetBandWidthMbps returns value of SubnetBandWidthMbps 17390 func (o *MobileGatewayInterface) GetSubnetBandWidthMbps() int { 17391 return o.SubnetBandWidthMbps 17392 } 17393 17394 // SetSubnetBandWidthMbps sets value to SubnetBandWidthMbps 17395 func (o *MobileGatewayInterface) SetSubnetBandWidthMbps(v int) { 17396 o.SubnetBandWidthMbps = v 17397 } 17398 17399 // GetPacketFilterID returns value of PacketFilterID 17400 func (o *MobileGatewayInterface) GetPacketFilterID() types.ID { 17401 return o.PacketFilterID 17402 } 17403 17404 // SetPacketFilterID sets value to PacketFilterID 17405 func (o *MobileGatewayInterface) SetPacketFilterID(v types.ID) { 17406 o.PacketFilterID = v 17407 } 17408 17409 // GetPacketFilterName returns value of PacketFilterName 17410 func (o *MobileGatewayInterface) GetPacketFilterName() string { 17411 return o.PacketFilterName 17412 } 17413 17414 // SetPacketFilterName sets value to PacketFilterName 17415 func (o *MobileGatewayInterface) SetPacketFilterName(v string) { 17416 o.PacketFilterName = v 17417 } 17418 17419 // GetPacketFilterRequiredHostVersion returns value of PacketFilterRequiredHostVersion 17420 func (o *MobileGatewayInterface) GetPacketFilterRequiredHostVersion() types.StringNumber { 17421 return o.PacketFilterRequiredHostVersion 17422 } 17423 17424 // SetPacketFilterRequiredHostVersion sets value to PacketFilterRequiredHostVersion 17425 func (o *MobileGatewayInterface) SetPacketFilterRequiredHostVersion(v types.StringNumber) { 17426 o.PacketFilterRequiredHostVersion = v 17427 } 17428 17429 // GetUpstreamType returns value of UpstreamType 17430 func (o *MobileGatewayInterface) GetUpstreamType() types.EUpstreamNetworkType { 17431 return o.UpstreamType 17432 } 17433 17434 // SetUpstreamType sets value to UpstreamType 17435 func (o *MobileGatewayInterface) SetUpstreamType(v types.EUpstreamNetworkType) { 17436 o.UpstreamType = v 17437 } 17438 17439 // GetIndex returns value of Index 17440 func (o *MobileGatewayInterface) GetIndex() int { 17441 return o.Index 17442 } 17443 17444 // SetIndex sets value to Index 17445 func (o *MobileGatewayInterface) SetIndex(v int) { 17446 o.Index = v 17447 } 17448 17449 /************************************************* 17450 * MobileGatewayInterfaceSetting 17451 *************************************************/ 17452 17453 // MobileGatewayInterfaceSetting represents API parameter/response structure 17454 type MobileGatewayInterfaceSetting struct { 17455 IPAddress []string 17456 NetworkMaskLen int 17457 Index int 17458 } 17459 17460 // setDefaults implements iaas.argumentDefaulter 17461 func (o *MobileGatewayInterfaceSetting) setDefaults() interface{} { 17462 return &struct { 17463 IPAddress []string 17464 NetworkMaskLen int 17465 Index int 17466 }{ 17467 IPAddress: o.GetIPAddress(), 17468 NetworkMaskLen: o.GetNetworkMaskLen(), 17469 Index: o.GetIndex(), 17470 } 17471 } 17472 17473 // GetIPAddress returns value of IPAddress 17474 func (o *MobileGatewayInterfaceSetting) GetIPAddress() []string { 17475 return o.IPAddress 17476 } 17477 17478 // SetIPAddress sets value to IPAddress 17479 func (o *MobileGatewayInterfaceSetting) SetIPAddress(v []string) { 17480 o.IPAddress = v 17481 } 17482 17483 // GetNetworkMaskLen returns value of NetworkMaskLen 17484 func (o *MobileGatewayInterfaceSetting) GetNetworkMaskLen() int { 17485 return o.NetworkMaskLen 17486 } 17487 17488 // SetNetworkMaskLen sets value to NetworkMaskLen 17489 func (o *MobileGatewayInterfaceSetting) SetNetworkMaskLen(v int) { 17490 o.NetworkMaskLen = v 17491 } 17492 17493 // GetIndex returns value of Index 17494 func (o *MobileGatewayInterfaceSetting) GetIndex() int { 17495 return o.Index 17496 } 17497 17498 // SetIndex sets value to Index 17499 func (o *MobileGatewayInterfaceSetting) SetIndex(v int) { 17500 o.Index = v 17501 } 17502 17503 /************************************************* 17504 * MobileGatewayStaticRoute 17505 *************************************************/ 17506 17507 // MobileGatewayStaticRoute represents API parameter/response structure 17508 type MobileGatewayStaticRoute struct { 17509 Prefix string 17510 NextHop string 17511 } 17512 17513 // setDefaults implements iaas.argumentDefaulter 17514 func (o *MobileGatewayStaticRoute) setDefaults() interface{} { 17515 return &struct { 17516 Prefix string 17517 NextHop string 17518 }{ 17519 Prefix: o.GetPrefix(), 17520 NextHop: o.GetNextHop(), 17521 } 17522 } 17523 17524 // GetPrefix returns value of Prefix 17525 func (o *MobileGatewayStaticRoute) GetPrefix() string { 17526 return o.Prefix 17527 } 17528 17529 // SetPrefix sets value to Prefix 17530 func (o *MobileGatewayStaticRoute) SetPrefix(v string) { 17531 o.Prefix = v 17532 } 17533 17534 // GetNextHop returns value of NextHop 17535 func (o *MobileGatewayStaticRoute) GetNextHop() string { 17536 return o.NextHop 17537 } 17538 17539 // SetNextHop sets value to NextHop 17540 func (o *MobileGatewayStaticRoute) SetNextHop(v string) { 17541 o.NextHop = v 17542 } 17543 17544 /************************************************* 17545 * MobileGatewayCreateRequest 17546 *************************************************/ 17547 17548 // MobileGatewayCreateRequest represents API parameter/response structure 17549 type MobileGatewayCreateRequest struct { 17550 Name string 17551 Description string 17552 Tags types.Tags 17553 IconID types.ID `mapconv:"Icon.ID"` 17554 StaticRoutes []*MobileGatewayStaticRoute `json:",omitempty" mapconv:"Settings.MobileGateway.[]StaticRoutes,omitempty,recursive"` 17555 InternetConnectionEnabled types.StringFlag `mapconv:"Settings.MobileGateway.InternetConnection.Enabled"` 17556 InterDeviceCommunicationEnabled types.StringFlag `mapconv:"Settings.MobileGateway.InterDeviceCommunication.Enabled"` 17557 } 17558 17559 // setDefaults implements iaas.argumentDefaulter 17560 func (o *MobileGatewayCreateRequest) setDefaults() interface{} { 17561 return &struct { 17562 Name string 17563 Description string 17564 Tags types.Tags 17565 IconID types.ID `mapconv:"Icon.ID"` 17566 StaticRoutes []*MobileGatewayStaticRoute `json:",omitempty" mapconv:"Settings.MobileGateway.[]StaticRoutes,omitempty,recursive"` 17567 InternetConnectionEnabled types.StringFlag `mapconv:"Settings.MobileGateway.InternetConnection.Enabled"` 17568 InterDeviceCommunicationEnabled types.StringFlag `mapconv:"Settings.MobileGateway.InterDeviceCommunication.Enabled"` 17569 Class string 17570 PlanID types.ID `mapconv:"Remark.Plan.ID/Plan.ID"` 17571 SwitchID string `mapconv:"Remark.Switch.Scope"` 17572 }{ 17573 Name: o.GetName(), 17574 Description: o.GetDescription(), 17575 Tags: o.GetTags(), 17576 IconID: o.GetIconID(), 17577 StaticRoutes: o.GetStaticRoutes(), 17578 InternetConnectionEnabled: o.GetInternetConnectionEnabled(), 17579 InterDeviceCommunicationEnabled: o.GetInterDeviceCommunicationEnabled(), 17580 Class: "mobilegateway", 17581 PlanID: types.ID(2), 17582 SwitchID: "shared", 17583 } 17584 } 17585 17586 // GetName returns value of Name 17587 func (o *MobileGatewayCreateRequest) GetName() string { 17588 return o.Name 17589 } 17590 17591 // SetName sets value to Name 17592 func (o *MobileGatewayCreateRequest) SetName(v string) { 17593 o.Name = v 17594 } 17595 17596 // GetDescription returns value of Description 17597 func (o *MobileGatewayCreateRequest) GetDescription() string { 17598 return o.Description 17599 } 17600 17601 // SetDescription sets value to Description 17602 func (o *MobileGatewayCreateRequest) SetDescription(v string) { 17603 o.Description = v 17604 } 17605 17606 // GetTags returns value of Tags 17607 func (o *MobileGatewayCreateRequest) GetTags() types.Tags { 17608 return o.Tags 17609 } 17610 17611 // SetTags sets value to Tags 17612 func (o *MobileGatewayCreateRequest) SetTags(v types.Tags) { 17613 o.Tags = v 17614 } 17615 17616 // HasTag 指定のタグが存在する場合trueを返す 17617 func (o *MobileGatewayCreateRequest) HasTag(tag string) bool { 17618 return accessor.HasTag(o, tag) 17619 } 17620 17621 // AppendTag 指定のタグを追加 17622 func (o *MobileGatewayCreateRequest) AppendTag(tag string) { 17623 accessor.AppendTag(o, tag) 17624 } 17625 17626 // RemoveTag 指定のタグを削除 17627 func (o *MobileGatewayCreateRequest) RemoveTag(tag string) { 17628 accessor.RemoveTag(o, tag) 17629 } 17630 17631 // ClearTags タグを全クリア 17632 func (o *MobileGatewayCreateRequest) ClearTags() { 17633 accessor.ClearTags(o) 17634 } 17635 17636 // GetIconID returns value of IconID 17637 func (o *MobileGatewayCreateRequest) GetIconID() types.ID { 17638 return o.IconID 17639 } 17640 17641 // SetIconID sets value to IconID 17642 func (o *MobileGatewayCreateRequest) SetIconID(v types.ID) { 17643 o.IconID = v 17644 } 17645 17646 // GetStaticRoutes returns value of StaticRoutes 17647 func (o *MobileGatewayCreateRequest) GetStaticRoutes() []*MobileGatewayStaticRoute { 17648 return o.StaticRoutes 17649 } 17650 17651 // SetStaticRoutes sets value to StaticRoutes 17652 func (o *MobileGatewayCreateRequest) SetStaticRoutes(v []*MobileGatewayStaticRoute) { 17653 o.StaticRoutes = v 17654 } 17655 17656 // GetInternetConnectionEnabled returns value of InternetConnectionEnabled 17657 func (o *MobileGatewayCreateRequest) GetInternetConnectionEnabled() types.StringFlag { 17658 return o.InternetConnectionEnabled 17659 } 17660 17661 // SetInternetConnectionEnabled sets value to InternetConnectionEnabled 17662 func (o *MobileGatewayCreateRequest) SetInternetConnectionEnabled(v types.StringFlag) { 17663 o.InternetConnectionEnabled = v 17664 } 17665 17666 // GetInterDeviceCommunicationEnabled returns value of InterDeviceCommunicationEnabled 17667 func (o *MobileGatewayCreateRequest) GetInterDeviceCommunicationEnabled() types.StringFlag { 17668 return o.InterDeviceCommunicationEnabled 17669 } 17670 17671 // SetInterDeviceCommunicationEnabled sets value to InterDeviceCommunicationEnabled 17672 func (o *MobileGatewayCreateRequest) SetInterDeviceCommunicationEnabled(v types.StringFlag) { 17673 o.InterDeviceCommunicationEnabled = v 17674 } 17675 17676 /************************************************* 17677 * MobileGatewayUpdateRequest 17678 *************************************************/ 17679 17680 // MobileGatewayUpdateRequest represents API parameter/response structure 17681 type MobileGatewayUpdateRequest struct { 17682 Name string 17683 Description string 17684 Tags types.Tags 17685 IconID types.ID `mapconv:"Icon.ID"` 17686 InterfaceSettings []*MobileGatewayInterfaceSetting `mapconv:"Settings.MobileGateway.[]Interfaces,recursive"` 17687 StaticRoutes []*MobileGatewayStaticRoute `mapconv:"Settings.MobileGateway.[]StaticRoutes,recursive"` 17688 InternetConnectionEnabled types.StringFlag `mapconv:"Settings.MobileGateway.InternetConnection.Enabled"` 17689 InterDeviceCommunicationEnabled types.StringFlag `mapconv:"Settings.MobileGateway.InterDeviceCommunication.Enabled"` 17690 SettingsHash string `json:",omitempty" mapconv:",omitempty"` 17691 } 17692 17693 // setDefaults implements iaas.argumentDefaulter 17694 func (o *MobileGatewayUpdateRequest) setDefaults() interface{} { 17695 return &struct { 17696 Name string 17697 Description string 17698 Tags types.Tags 17699 IconID types.ID `mapconv:"Icon.ID"` 17700 InterfaceSettings []*MobileGatewayInterfaceSetting `mapconv:"Settings.MobileGateway.[]Interfaces,recursive"` 17701 StaticRoutes []*MobileGatewayStaticRoute `mapconv:"Settings.MobileGateway.[]StaticRoutes,recursive"` 17702 InternetConnectionEnabled types.StringFlag `mapconv:"Settings.MobileGateway.InternetConnection.Enabled"` 17703 InterDeviceCommunicationEnabled types.StringFlag `mapconv:"Settings.MobileGateway.InterDeviceCommunication.Enabled"` 17704 SettingsHash string `json:",omitempty" mapconv:",omitempty"` 17705 }{ 17706 Name: o.GetName(), 17707 Description: o.GetDescription(), 17708 Tags: o.GetTags(), 17709 IconID: o.GetIconID(), 17710 InterfaceSettings: o.GetInterfaceSettings(), 17711 StaticRoutes: o.GetStaticRoutes(), 17712 InternetConnectionEnabled: o.GetInternetConnectionEnabled(), 17713 InterDeviceCommunicationEnabled: o.GetInterDeviceCommunicationEnabled(), 17714 SettingsHash: o.GetSettingsHash(), 17715 } 17716 } 17717 17718 // GetName returns value of Name 17719 func (o *MobileGatewayUpdateRequest) GetName() string { 17720 return o.Name 17721 } 17722 17723 // SetName sets value to Name 17724 func (o *MobileGatewayUpdateRequest) SetName(v string) { 17725 o.Name = v 17726 } 17727 17728 // GetDescription returns value of Description 17729 func (o *MobileGatewayUpdateRequest) GetDescription() string { 17730 return o.Description 17731 } 17732 17733 // SetDescription sets value to Description 17734 func (o *MobileGatewayUpdateRequest) SetDescription(v string) { 17735 o.Description = v 17736 } 17737 17738 // GetTags returns value of Tags 17739 func (o *MobileGatewayUpdateRequest) GetTags() types.Tags { 17740 return o.Tags 17741 } 17742 17743 // SetTags sets value to Tags 17744 func (o *MobileGatewayUpdateRequest) SetTags(v types.Tags) { 17745 o.Tags = v 17746 } 17747 17748 // HasTag 指定のタグが存在する場合trueを返す 17749 func (o *MobileGatewayUpdateRequest) HasTag(tag string) bool { 17750 return accessor.HasTag(o, tag) 17751 } 17752 17753 // AppendTag 指定のタグを追加 17754 func (o *MobileGatewayUpdateRequest) AppendTag(tag string) { 17755 accessor.AppendTag(o, tag) 17756 } 17757 17758 // RemoveTag 指定のタグを削除 17759 func (o *MobileGatewayUpdateRequest) RemoveTag(tag string) { 17760 accessor.RemoveTag(o, tag) 17761 } 17762 17763 // ClearTags タグを全クリア 17764 func (o *MobileGatewayUpdateRequest) ClearTags() { 17765 accessor.ClearTags(o) 17766 } 17767 17768 // GetIconID returns value of IconID 17769 func (o *MobileGatewayUpdateRequest) GetIconID() types.ID { 17770 return o.IconID 17771 } 17772 17773 // SetIconID sets value to IconID 17774 func (o *MobileGatewayUpdateRequest) SetIconID(v types.ID) { 17775 o.IconID = v 17776 } 17777 17778 // GetInterfaceSettings returns value of InterfaceSettings 17779 func (o *MobileGatewayUpdateRequest) GetInterfaceSettings() []*MobileGatewayInterfaceSetting { 17780 return o.InterfaceSettings 17781 } 17782 17783 // SetInterfaceSettings sets value to InterfaceSettings 17784 func (o *MobileGatewayUpdateRequest) SetInterfaceSettings(v []*MobileGatewayInterfaceSetting) { 17785 o.InterfaceSettings = v 17786 } 17787 17788 // GetStaticRoutes returns value of StaticRoutes 17789 func (o *MobileGatewayUpdateRequest) GetStaticRoutes() []*MobileGatewayStaticRoute { 17790 return o.StaticRoutes 17791 } 17792 17793 // SetStaticRoutes sets value to StaticRoutes 17794 func (o *MobileGatewayUpdateRequest) SetStaticRoutes(v []*MobileGatewayStaticRoute) { 17795 o.StaticRoutes = v 17796 } 17797 17798 // GetInternetConnectionEnabled returns value of InternetConnectionEnabled 17799 func (o *MobileGatewayUpdateRequest) GetInternetConnectionEnabled() types.StringFlag { 17800 return o.InternetConnectionEnabled 17801 } 17802 17803 // SetInternetConnectionEnabled sets value to InternetConnectionEnabled 17804 func (o *MobileGatewayUpdateRequest) SetInternetConnectionEnabled(v types.StringFlag) { 17805 o.InternetConnectionEnabled = v 17806 } 17807 17808 // GetInterDeviceCommunicationEnabled returns value of InterDeviceCommunicationEnabled 17809 func (o *MobileGatewayUpdateRequest) GetInterDeviceCommunicationEnabled() types.StringFlag { 17810 return o.InterDeviceCommunicationEnabled 17811 } 17812 17813 // SetInterDeviceCommunicationEnabled sets value to InterDeviceCommunicationEnabled 17814 func (o *MobileGatewayUpdateRequest) SetInterDeviceCommunicationEnabled(v types.StringFlag) { 17815 o.InterDeviceCommunicationEnabled = v 17816 } 17817 17818 // GetSettingsHash returns value of SettingsHash 17819 func (o *MobileGatewayUpdateRequest) GetSettingsHash() string { 17820 return o.SettingsHash 17821 } 17822 17823 // SetSettingsHash sets value to SettingsHash 17824 func (o *MobileGatewayUpdateRequest) SetSettingsHash(v string) { 17825 o.SettingsHash = v 17826 } 17827 17828 /************************************************* 17829 * MobileGatewayUpdateSettingsRequest 17830 *************************************************/ 17831 17832 // MobileGatewayUpdateSettingsRequest represents API parameter/response structure 17833 type MobileGatewayUpdateSettingsRequest struct { 17834 InterfaceSettings []*MobileGatewayInterfaceSetting `mapconv:"Settings.MobileGateway.[]Interfaces,recursive"` 17835 StaticRoutes []*MobileGatewayStaticRoute `mapconv:"Settings.MobileGateway.[]StaticRoutes,recursive"` 17836 InternetConnectionEnabled types.StringFlag `mapconv:"Settings.MobileGateway.InternetConnection.Enabled"` 17837 InterDeviceCommunicationEnabled types.StringFlag `mapconv:"Settings.MobileGateway.InterDeviceCommunication.Enabled"` 17838 SettingsHash string `json:",omitempty" mapconv:",omitempty"` 17839 } 17840 17841 // setDefaults implements iaas.argumentDefaulter 17842 func (o *MobileGatewayUpdateSettingsRequest) setDefaults() interface{} { 17843 return &struct { 17844 InterfaceSettings []*MobileGatewayInterfaceSetting `mapconv:"Settings.MobileGateway.[]Interfaces,recursive"` 17845 StaticRoutes []*MobileGatewayStaticRoute `mapconv:"Settings.MobileGateway.[]StaticRoutes,recursive"` 17846 InternetConnectionEnabled types.StringFlag `mapconv:"Settings.MobileGateway.InternetConnection.Enabled"` 17847 InterDeviceCommunicationEnabled types.StringFlag `mapconv:"Settings.MobileGateway.InterDeviceCommunication.Enabled"` 17848 SettingsHash string `json:",omitempty" mapconv:",omitempty"` 17849 }{ 17850 InterfaceSettings: o.GetInterfaceSettings(), 17851 StaticRoutes: o.GetStaticRoutes(), 17852 InternetConnectionEnabled: o.GetInternetConnectionEnabled(), 17853 InterDeviceCommunicationEnabled: o.GetInterDeviceCommunicationEnabled(), 17854 SettingsHash: o.GetSettingsHash(), 17855 } 17856 } 17857 17858 // GetInterfaceSettings returns value of InterfaceSettings 17859 func (o *MobileGatewayUpdateSettingsRequest) GetInterfaceSettings() []*MobileGatewayInterfaceSetting { 17860 return o.InterfaceSettings 17861 } 17862 17863 // SetInterfaceSettings sets value to InterfaceSettings 17864 func (o *MobileGatewayUpdateSettingsRequest) SetInterfaceSettings(v []*MobileGatewayInterfaceSetting) { 17865 o.InterfaceSettings = v 17866 } 17867 17868 // GetStaticRoutes returns value of StaticRoutes 17869 func (o *MobileGatewayUpdateSettingsRequest) GetStaticRoutes() []*MobileGatewayStaticRoute { 17870 return o.StaticRoutes 17871 } 17872 17873 // SetStaticRoutes sets value to StaticRoutes 17874 func (o *MobileGatewayUpdateSettingsRequest) SetStaticRoutes(v []*MobileGatewayStaticRoute) { 17875 o.StaticRoutes = v 17876 } 17877 17878 // GetInternetConnectionEnabled returns value of InternetConnectionEnabled 17879 func (o *MobileGatewayUpdateSettingsRequest) GetInternetConnectionEnabled() types.StringFlag { 17880 return o.InternetConnectionEnabled 17881 } 17882 17883 // SetInternetConnectionEnabled sets value to InternetConnectionEnabled 17884 func (o *MobileGatewayUpdateSettingsRequest) SetInternetConnectionEnabled(v types.StringFlag) { 17885 o.InternetConnectionEnabled = v 17886 } 17887 17888 // GetInterDeviceCommunicationEnabled returns value of InterDeviceCommunicationEnabled 17889 func (o *MobileGatewayUpdateSettingsRequest) GetInterDeviceCommunicationEnabled() types.StringFlag { 17890 return o.InterDeviceCommunicationEnabled 17891 } 17892 17893 // SetInterDeviceCommunicationEnabled sets value to InterDeviceCommunicationEnabled 17894 func (o *MobileGatewayUpdateSettingsRequest) SetInterDeviceCommunicationEnabled(v types.StringFlag) { 17895 o.InterDeviceCommunicationEnabled = v 17896 } 17897 17898 // GetSettingsHash returns value of SettingsHash 17899 func (o *MobileGatewayUpdateSettingsRequest) GetSettingsHash() string { 17900 return o.SettingsHash 17901 } 17902 17903 // SetSettingsHash sets value to SettingsHash 17904 func (o *MobileGatewayUpdateSettingsRequest) SetSettingsHash(v string) { 17905 o.SettingsHash = v 17906 } 17907 17908 /************************************************* 17909 * MobileGatewayDNSSetting 17910 *************************************************/ 17911 17912 // MobileGatewayDNSSetting represents API parameter/response structure 17913 type MobileGatewayDNSSetting struct { 17914 DNS1 string 17915 DNS2 string 17916 } 17917 17918 // setDefaults implements iaas.argumentDefaulter 17919 func (o *MobileGatewayDNSSetting) setDefaults() interface{} { 17920 return &struct { 17921 DNS1 string 17922 DNS2 string 17923 }{ 17924 DNS1: o.GetDNS1(), 17925 DNS2: o.GetDNS2(), 17926 } 17927 } 17928 17929 // GetDNS1 returns value of DNS1 17930 func (o *MobileGatewayDNSSetting) GetDNS1() string { 17931 return o.DNS1 17932 } 17933 17934 // SetDNS1 sets value to DNS1 17935 func (o *MobileGatewayDNSSetting) SetDNS1(v string) { 17936 o.DNS1 = v 17937 } 17938 17939 // GetDNS2 returns value of DNS2 17940 func (o *MobileGatewayDNSSetting) GetDNS2() string { 17941 return o.DNS2 17942 } 17943 17944 // SetDNS2 sets value to DNS2 17945 func (o *MobileGatewayDNSSetting) SetDNS2(v string) { 17946 o.DNS2 = v 17947 } 17948 17949 /************************************************* 17950 * MobileGatewaySIMRoute 17951 *************************************************/ 17952 17953 // MobileGatewaySIMRoute represents API parameter/response structure 17954 type MobileGatewaySIMRoute struct { 17955 ResourceID string 17956 Prefix string 17957 ICCID string 17958 } 17959 17960 // setDefaults implements iaas.argumentDefaulter 17961 func (o *MobileGatewaySIMRoute) setDefaults() interface{} { 17962 return &struct { 17963 ResourceID string 17964 Prefix string 17965 ICCID string 17966 }{ 17967 ResourceID: o.GetResourceID(), 17968 Prefix: o.GetPrefix(), 17969 ICCID: o.GetICCID(), 17970 } 17971 } 17972 17973 // GetResourceID returns value of ResourceID 17974 func (o *MobileGatewaySIMRoute) GetResourceID() string { 17975 return o.ResourceID 17976 } 17977 17978 // SetResourceID sets value to ResourceID 17979 func (o *MobileGatewaySIMRoute) SetResourceID(v string) { 17980 o.ResourceID = v 17981 } 17982 17983 // GetPrefix returns value of Prefix 17984 func (o *MobileGatewaySIMRoute) GetPrefix() string { 17985 return o.Prefix 17986 } 17987 17988 // SetPrefix sets value to Prefix 17989 func (o *MobileGatewaySIMRoute) SetPrefix(v string) { 17990 o.Prefix = v 17991 } 17992 17993 // GetICCID returns value of ICCID 17994 func (o *MobileGatewaySIMRoute) GetICCID() string { 17995 return o.ICCID 17996 } 17997 17998 // SetICCID sets value to ICCID 17999 func (o *MobileGatewaySIMRoute) SetICCID(v string) { 18000 o.ICCID = v 18001 } 18002 18003 /************************************************* 18004 * MobileGatewaySIMRouteParam 18005 *************************************************/ 18006 18007 // MobileGatewaySIMRouteParam represents API parameter/response structure 18008 type MobileGatewaySIMRouteParam struct { 18009 ResourceID string 18010 Prefix string 18011 } 18012 18013 // setDefaults implements iaas.argumentDefaulter 18014 func (o *MobileGatewaySIMRouteParam) setDefaults() interface{} { 18015 return &struct { 18016 ResourceID string 18017 Prefix string 18018 }{ 18019 ResourceID: o.GetResourceID(), 18020 Prefix: o.GetPrefix(), 18021 } 18022 } 18023 18024 // GetResourceID returns value of ResourceID 18025 func (o *MobileGatewaySIMRouteParam) GetResourceID() string { 18026 return o.ResourceID 18027 } 18028 18029 // SetResourceID sets value to ResourceID 18030 func (o *MobileGatewaySIMRouteParam) SetResourceID(v string) { 18031 o.ResourceID = v 18032 } 18033 18034 // GetPrefix returns value of Prefix 18035 func (o *MobileGatewaySIMRouteParam) GetPrefix() string { 18036 return o.Prefix 18037 } 18038 18039 // SetPrefix sets value to Prefix 18040 func (o *MobileGatewaySIMRouteParam) SetPrefix(v string) { 18041 o.Prefix = v 18042 } 18043 18044 /************************************************* 18045 * MobileGatewaySIMInfo 18046 *************************************************/ 18047 18048 // MobileGatewaySIMInfo represents API parameter/response structure 18049 type MobileGatewaySIMInfo struct { 18050 ICCID string 18051 IMSI []string 18052 IMEI string 18053 IP string 18054 SessionStatus string 18055 IMEILock bool 18056 Registered bool 18057 Activated bool 18058 ResourceID string 18059 RegisteredDate time.Time 18060 ActivatedDate time.Time 18061 DeactivatedDate time.Time 18062 SIMGroupID string 18063 TrafficBytesOfCurrentMonth *SIMTrafficBytes `mapconv:",recursive"` 18064 ConnectedIMEI string 18065 } 18066 18067 // setDefaults implements iaas.argumentDefaulter 18068 func (o *MobileGatewaySIMInfo) setDefaults() interface{} { 18069 return &struct { 18070 ICCID string 18071 IMSI []string 18072 IMEI string 18073 IP string 18074 SessionStatus string 18075 IMEILock bool 18076 Registered bool 18077 Activated bool 18078 ResourceID string 18079 RegisteredDate time.Time 18080 ActivatedDate time.Time 18081 DeactivatedDate time.Time 18082 SIMGroupID string 18083 TrafficBytesOfCurrentMonth *SIMTrafficBytes `mapconv:",recursive"` 18084 ConnectedIMEI string 18085 }{ 18086 ICCID: o.GetICCID(), 18087 IMSI: o.GetIMSI(), 18088 IMEI: o.GetIMEI(), 18089 IP: o.GetIP(), 18090 SessionStatus: o.GetSessionStatus(), 18091 IMEILock: o.GetIMEILock(), 18092 Registered: o.GetRegistered(), 18093 Activated: o.GetActivated(), 18094 ResourceID: o.GetResourceID(), 18095 RegisteredDate: o.GetRegisteredDate(), 18096 ActivatedDate: o.GetActivatedDate(), 18097 DeactivatedDate: o.GetDeactivatedDate(), 18098 SIMGroupID: o.GetSIMGroupID(), 18099 TrafficBytesOfCurrentMonth: o.GetTrafficBytesOfCurrentMonth(), 18100 ConnectedIMEI: o.GetConnectedIMEI(), 18101 } 18102 } 18103 18104 // GetICCID returns value of ICCID 18105 func (o *MobileGatewaySIMInfo) GetICCID() string { 18106 return o.ICCID 18107 } 18108 18109 // SetICCID sets value to ICCID 18110 func (o *MobileGatewaySIMInfo) SetICCID(v string) { 18111 o.ICCID = v 18112 } 18113 18114 // GetIMSI returns value of IMSI 18115 func (o *MobileGatewaySIMInfo) GetIMSI() []string { 18116 return o.IMSI 18117 } 18118 18119 // SetIMSI sets value to IMSI 18120 func (o *MobileGatewaySIMInfo) SetIMSI(v []string) { 18121 o.IMSI = v 18122 } 18123 18124 // GetIMEI returns value of IMEI 18125 func (o *MobileGatewaySIMInfo) GetIMEI() string { 18126 return o.IMEI 18127 } 18128 18129 // SetIMEI sets value to IMEI 18130 func (o *MobileGatewaySIMInfo) SetIMEI(v string) { 18131 o.IMEI = v 18132 } 18133 18134 // GetIP returns value of IP 18135 func (o *MobileGatewaySIMInfo) GetIP() string { 18136 return o.IP 18137 } 18138 18139 // SetIP sets value to IP 18140 func (o *MobileGatewaySIMInfo) SetIP(v string) { 18141 o.IP = v 18142 } 18143 18144 // GetSessionStatus returns value of SessionStatus 18145 func (o *MobileGatewaySIMInfo) GetSessionStatus() string { 18146 return o.SessionStatus 18147 } 18148 18149 // SetSessionStatus sets value to SessionStatus 18150 func (o *MobileGatewaySIMInfo) SetSessionStatus(v string) { 18151 o.SessionStatus = v 18152 } 18153 18154 // GetIMEILock returns value of IMEILock 18155 func (o *MobileGatewaySIMInfo) GetIMEILock() bool { 18156 return o.IMEILock 18157 } 18158 18159 // SetIMEILock sets value to IMEILock 18160 func (o *MobileGatewaySIMInfo) SetIMEILock(v bool) { 18161 o.IMEILock = v 18162 } 18163 18164 // GetRegistered returns value of Registered 18165 func (o *MobileGatewaySIMInfo) GetRegistered() bool { 18166 return o.Registered 18167 } 18168 18169 // SetRegistered sets value to Registered 18170 func (o *MobileGatewaySIMInfo) SetRegistered(v bool) { 18171 o.Registered = v 18172 } 18173 18174 // GetActivated returns value of Activated 18175 func (o *MobileGatewaySIMInfo) GetActivated() bool { 18176 return o.Activated 18177 } 18178 18179 // SetActivated sets value to Activated 18180 func (o *MobileGatewaySIMInfo) SetActivated(v bool) { 18181 o.Activated = v 18182 } 18183 18184 // GetResourceID returns value of ResourceID 18185 func (o *MobileGatewaySIMInfo) GetResourceID() string { 18186 return o.ResourceID 18187 } 18188 18189 // SetResourceID sets value to ResourceID 18190 func (o *MobileGatewaySIMInfo) SetResourceID(v string) { 18191 o.ResourceID = v 18192 } 18193 18194 // GetRegisteredDate returns value of RegisteredDate 18195 func (o *MobileGatewaySIMInfo) GetRegisteredDate() time.Time { 18196 return o.RegisteredDate 18197 } 18198 18199 // SetRegisteredDate sets value to RegisteredDate 18200 func (o *MobileGatewaySIMInfo) SetRegisteredDate(v time.Time) { 18201 o.RegisteredDate = v 18202 } 18203 18204 // GetActivatedDate returns value of ActivatedDate 18205 func (o *MobileGatewaySIMInfo) GetActivatedDate() time.Time { 18206 return o.ActivatedDate 18207 } 18208 18209 // SetActivatedDate sets value to ActivatedDate 18210 func (o *MobileGatewaySIMInfo) SetActivatedDate(v time.Time) { 18211 o.ActivatedDate = v 18212 } 18213 18214 // GetDeactivatedDate returns value of DeactivatedDate 18215 func (o *MobileGatewaySIMInfo) GetDeactivatedDate() time.Time { 18216 return o.DeactivatedDate 18217 } 18218 18219 // SetDeactivatedDate sets value to DeactivatedDate 18220 func (o *MobileGatewaySIMInfo) SetDeactivatedDate(v time.Time) { 18221 o.DeactivatedDate = v 18222 } 18223 18224 // GetSIMGroupID returns value of SIMGroupID 18225 func (o *MobileGatewaySIMInfo) GetSIMGroupID() string { 18226 return o.SIMGroupID 18227 } 18228 18229 // SetSIMGroupID sets value to SIMGroupID 18230 func (o *MobileGatewaySIMInfo) SetSIMGroupID(v string) { 18231 o.SIMGroupID = v 18232 } 18233 18234 // GetTrafficBytesOfCurrentMonth returns value of TrafficBytesOfCurrentMonth 18235 func (o *MobileGatewaySIMInfo) GetTrafficBytesOfCurrentMonth() *SIMTrafficBytes { 18236 return o.TrafficBytesOfCurrentMonth 18237 } 18238 18239 // SetTrafficBytesOfCurrentMonth sets value to TrafficBytesOfCurrentMonth 18240 func (o *MobileGatewaySIMInfo) SetTrafficBytesOfCurrentMonth(v *SIMTrafficBytes) { 18241 o.TrafficBytesOfCurrentMonth = v 18242 } 18243 18244 // GetConnectedIMEI returns value of ConnectedIMEI 18245 func (o *MobileGatewaySIMInfo) GetConnectedIMEI() string { 18246 return o.ConnectedIMEI 18247 } 18248 18249 // SetConnectedIMEI sets value to ConnectedIMEI 18250 func (o *MobileGatewaySIMInfo) SetConnectedIMEI(v string) { 18251 o.ConnectedIMEI = v 18252 } 18253 18254 /************************************************* 18255 * SIMTrafficBytes 18256 *************************************************/ 18257 18258 // SIMTrafficBytes represents API parameter/response structure 18259 type SIMTrafficBytes struct { 18260 UplinkBytes int64 18261 DownlinkBytes int64 18262 } 18263 18264 // setDefaults implements iaas.argumentDefaulter 18265 func (o *SIMTrafficBytes) setDefaults() interface{} { 18266 return &struct { 18267 UplinkBytes int64 18268 DownlinkBytes int64 18269 }{ 18270 UplinkBytes: o.GetUplinkBytes(), 18271 DownlinkBytes: o.GetDownlinkBytes(), 18272 } 18273 } 18274 18275 // GetUplinkBytes returns value of UplinkBytes 18276 func (o *SIMTrafficBytes) GetUplinkBytes() int64 { 18277 return o.UplinkBytes 18278 } 18279 18280 // SetUplinkBytes sets value to UplinkBytes 18281 func (o *SIMTrafficBytes) SetUplinkBytes(v int64) { 18282 o.UplinkBytes = v 18283 } 18284 18285 // GetDownlinkBytes returns value of DownlinkBytes 18286 func (o *SIMTrafficBytes) GetDownlinkBytes() int64 { 18287 return o.DownlinkBytes 18288 } 18289 18290 // SetDownlinkBytes sets value to DownlinkBytes 18291 func (o *SIMTrafficBytes) SetDownlinkBytes(v int64) { 18292 o.DownlinkBytes = v 18293 } 18294 18295 /************************************************* 18296 * MobileGatewayAddSIMRequest 18297 *************************************************/ 18298 18299 // MobileGatewayAddSIMRequest represents API parameter/response structure 18300 type MobileGatewayAddSIMRequest struct { 18301 SIMID string `json:"resource_id" mapconv:"ResourceID"` 18302 } 18303 18304 // setDefaults implements iaas.argumentDefaulter 18305 func (o *MobileGatewayAddSIMRequest) setDefaults() interface{} { 18306 return &struct { 18307 SIMID string `json:"resource_id" mapconv:"ResourceID"` 18308 }{ 18309 SIMID: o.GetSIMID(), 18310 } 18311 } 18312 18313 // GetSIMID returns value of SIMID 18314 func (o *MobileGatewayAddSIMRequest) GetSIMID() string { 18315 return o.SIMID 18316 } 18317 18318 // SetSIMID sets value to SIMID 18319 func (o *MobileGatewayAddSIMRequest) SetSIMID(v string) { 18320 o.SIMID = v 18321 } 18322 18323 /************************************************* 18324 * MobileGatewaySIMLogs 18325 *************************************************/ 18326 18327 // MobileGatewaySIMLogs represents API parameter/response structure 18328 type MobileGatewaySIMLogs struct { 18329 Date time.Time 18330 SessionStatus string 18331 ResourceID string 18332 IMEI string 18333 IMSI string 18334 } 18335 18336 // setDefaults implements iaas.argumentDefaulter 18337 func (o *MobileGatewaySIMLogs) setDefaults() interface{} { 18338 return &struct { 18339 Date time.Time 18340 SessionStatus string 18341 ResourceID string 18342 IMEI string 18343 IMSI string 18344 }{ 18345 Date: o.GetDate(), 18346 SessionStatus: o.GetSessionStatus(), 18347 ResourceID: o.GetResourceID(), 18348 IMEI: o.GetIMEI(), 18349 IMSI: o.GetIMSI(), 18350 } 18351 } 18352 18353 // GetDate returns value of Date 18354 func (o *MobileGatewaySIMLogs) GetDate() time.Time { 18355 return o.Date 18356 } 18357 18358 // SetDate sets value to Date 18359 func (o *MobileGatewaySIMLogs) SetDate(v time.Time) { 18360 o.Date = v 18361 } 18362 18363 // GetSessionStatus returns value of SessionStatus 18364 func (o *MobileGatewaySIMLogs) GetSessionStatus() string { 18365 return o.SessionStatus 18366 } 18367 18368 // SetSessionStatus sets value to SessionStatus 18369 func (o *MobileGatewaySIMLogs) SetSessionStatus(v string) { 18370 o.SessionStatus = v 18371 } 18372 18373 // GetResourceID returns value of ResourceID 18374 func (o *MobileGatewaySIMLogs) GetResourceID() string { 18375 return o.ResourceID 18376 } 18377 18378 // SetResourceID sets value to ResourceID 18379 func (o *MobileGatewaySIMLogs) SetResourceID(v string) { 18380 o.ResourceID = v 18381 } 18382 18383 // GetIMEI returns value of IMEI 18384 func (o *MobileGatewaySIMLogs) GetIMEI() string { 18385 return o.IMEI 18386 } 18387 18388 // SetIMEI sets value to IMEI 18389 func (o *MobileGatewaySIMLogs) SetIMEI(v string) { 18390 o.IMEI = v 18391 } 18392 18393 // GetIMSI returns value of IMSI 18394 func (o *MobileGatewaySIMLogs) GetIMSI() string { 18395 return o.IMSI 18396 } 18397 18398 // SetIMSI sets value to IMSI 18399 func (o *MobileGatewaySIMLogs) SetIMSI(v string) { 18400 o.IMSI = v 18401 } 18402 18403 /************************************************* 18404 * MobileGatewayTrafficControl 18405 *************************************************/ 18406 18407 // MobileGatewayTrafficControl represents API parameter/response structure 18408 type MobileGatewayTrafficControl struct { 18409 TrafficQuotaInMB int 18410 BandWidthLimitInKbps int 18411 EmailNotifyEnabled bool `mapconv:"EMailConfig.Enabled"` 18412 SlackNotifyEnabled bool `mapconv:"SlackConfig.Enabled"` 18413 SlackNotifyWebhooksURL string `mapconv:"SlackConfig.IncomingWebhooksURL"` 18414 AutoTrafficShaping bool 18415 } 18416 18417 // setDefaults implements iaas.argumentDefaulter 18418 func (o *MobileGatewayTrafficControl) setDefaults() interface{} { 18419 return &struct { 18420 TrafficQuotaInMB int 18421 BandWidthLimitInKbps int 18422 EmailNotifyEnabled bool `mapconv:"EMailConfig.Enabled"` 18423 SlackNotifyEnabled bool `mapconv:"SlackConfig.Enabled"` 18424 SlackNotifyWebhooksURL string `mapconv:"SlackConfig.IncomingWebhooksURL"` 18425 AutoTrafficShaping bool 18426 }{ 18427 TrafficQuotaInMB: o.GetTrafficQuotaInMB(), 18428 BandWidthLimitInKbps: o.GetBandWidthLimitInKbps(), 18429 EmailNotifyEnabled: o.GetEmailNotifyEnabled(), 18430 SlackNotifyEnabled: o.GetSlackNotifyEnabled(), 18431 SlackNotifyWebhooksURL: o.GetSlackNotifyWebhooksURL(), 18432 AutoTrafficShaping: o.GetAutoTrafficShaping(), 18433 } 18434 } 18435 18436 // GetTrafficQuotaInMB returns value of TrafficQuotaInMB 18437 func (o *MobileGatewayTrafficControl) GetTrafficQuotaInMB() int { 18438 return o.TrafficQuotaInMB 18439 } 18440 18441 // SetTrafficQuotaInMB sets value to TrafficQuotaInMB 18442 func (o *MobileGatewayTrafficControl) SetTrafficQuotaInMB(v int) { 18443 o.TrafficQuotaInMB = v 18444 } 18445 18446 // GetBandWidthLimitInKbps returns value of BandWidthLimitInKbps 18447 func (o *MobileGatewayTrafficControl) GetBandWidthLimitInKbps() int { 18448 return o.BandWidthLimitInKbps 18449 } 18450 18451 // SetBandWidthLimitInKbps sets value to BandWidthLimitInKbps 18452 func (o *MobileGatewayTrafficControl) SetBandWidthLimitInKbps(v int) { 18453 o.BandWidthLimitInKbps = v 18454 } 18455 18456 // GetEmailNotifyEnabled returns value of EmailNotifyEnabled 18457 func (o *MobileGatewayTrafficControl) GetEmailNotifyEnabled() bool { 18458 return o.EmailNotifyEnabled 18459 } 18460 18461 // SetEmailNotifyEnabled sets value to EmailNotifyEnabled 18462 func (o *MobileGatewayTrafficControl) SetEmailNotifyEnabled(v bool) { 18463 o.EmailNotifyEnabled = v 18464 } 18465 18466 // GetSlackNotifyEnabled returns value of SlackNotifyEnabled 18467 func (o *MobileGatewayTrafficControl) GetSlackNotifyEnabled() bool { 18468 return o.SlackNotifyEnabled 18469 } 18470 18471 // SetSlackNotifyEnabled sets value to SlackNotifyEnabled 18472 func (o *MobileGatewayTrafficControl) SetSlackNotifyEnabled(v bool) { 18473 o.SlackNotifyEnabled = v 18474 } 18475 18476 // GetSlackNotifyWebhooksURL returns value of SlackNotifyWebhooksURL 18477 func (o *MobileGatewayTrafficControl) GetSlackNotifyWebhooksURL() string { 18478 return o.SlackNotifyWebhooksURL 18479 } 18480 18481 // SetSlackNotifyWebhooksURL sets value to SlackNotifyWebhooksURL 18482 func (o *MobileGatewayTrafficControl) SetSlackNotifyWebhooksURL(v string) { 18483 o.SlackNotifyWebhooksURL = v 18484 } 18485 18486 // GetAutoTrafficShaping returns value of AutoTrafficShaping 18487 func (o *MobileGatewayTrafficControl) GetAutoTrafficShaping() bool { 18488 return o.AutoTrafficShaping 18489 } 18490 18491 // SetAutoTrafficShaping sets value to AutoTrafficShaping 18492 func (o *MobileGatewayTrafficControl) SetAutoTrafficShaping(v bool) { 18493 o.AutoTrafficShaping = v 18494 } 18495 18496 /************************************************* 18497 * MobileGatewayTrafficStatus 18498 *************************************************/ 18499 18500 // MobileGatewayTrafficStatus represents API parameter/response structure 18501 type MobileGatewayTrafficStatus struct { 18502 UplinkBytes types.StringNumber 18503 DownlinkBytes types.StringNumber 18504 TrafficShaping bool 18505 } 18506 18507 // setDefaults implements iaas.argumentDefaulter 18508 func (o *MobileGatewayTrafficStatus) setDefaults() interface{} { 18509 return &struct { 18510 UplinkBytes types.StringNumber 18511 DownlinkBytes types.StringNumber 18512 TrafficShaping bool 18513 }{ 18514 UplinkBytes: o.GetUplinkBytes(), 18515 DownlinkBytes: o.GetDownlinkBytes(), 18516 TrafficShaping: o.GetTrafficShaping(), 18517 } 18518 } 18519 18520 // GetUplinkBytes returns value of UplinkBytes 18521 func (o *MobileGatewayTrafficStatus) GetUplinkBytes() types.StringNumber { 18522 return o.UplinkBytes 18523 } 18524 18525 // SetUplinkBytes sets value to UplinkBytes 18526 func (o *MobileGatewayTrafficStatus) SetUplinkBytes(v types.StringNumber) { 18527 o.UplinkBytes = v 18528 } 18529 18530 // GetDownlinkBytes returns value of DownlinkBytes 18531 func (o *MobileGatewayTrafficStatus) GetDownlinkBytes() types.StringNumber { 18532 return o.DownlinkBytes 18533 } 18534 18535 // SetDownlinkBytes sets value to DownlinkBytes 18536 func (o *MobileGatewayTrafficStatus) SetDownlinkBytes(v types.StringNumber) { 18537 o.DownlinkBytes = v 18538 } 18539 18540 // GetTrafficShaping returns value of TrafficShaping 18541 func (o *MobileGatewayTrafficStatus) GetTrafficShaping() bool { 18542 return o.TrafficShaping 18543 } 18544 18545 // SetTrafficShaping sets value to TrafficShaping 18546 func (o *MobileGatewayTrafficStatus) SetTrafficShaping(v bool) { 18547 o.TrafficShaping = v 18548 } 18549 18550 /************************************************* 18551 * NFS 18552 *************************************************/ 18553 18554 // NFS represents API parameter/response structure 18555 type NFS struct { 18556 ID types.ID 18557 Name string 18558 Description string 18559 Tags types.Tags 18560 Availability types.EAvailability 18561 Class string 18562 InstanceHostName string `mapconv:"Instance.Host.Name"` 18563 InstanceHostInfoURL string `mapconv:"Instance.Host.InfoURL"` 18564 InstanceStatus types.EServerInstanceStatus `mapconv:"Instance.Status"` 18565 InstanceStatusChangedAt time.Time `mapconv:"Instance.StatusChangedAt"` 18566 Interfaces []*InterfaceView `json:",omitempty" mapconv:"[]Interfaces,recursive,omitempty"` 18567 PlanID types.ID `mapconv:"Remark.Plan.ID/Plan.ID"` 18568 SwitchID types.ID `mapconv:"Remark.Switch.ID"` 18569 DefaultRoute string `mapconv:"Remark.Network.DefaultRoute"` 18570 NetworkMaskLen int `mapconv:"Remark.Network.NetworkMaskLen"` 18571 IPAddresses []string `mapconv:"Remark.[]Servers.IPAddress"` 18572 ZoneID types.ID `mapconv:"Remark.Zone.ID"` 18573 IconID types.ID `mapconv:"Icon.ID"` 18574 CreatedAt time.Time 18575 ModifiedAt time.Time 18576 SwitchName string `mapconv:"Switch.Name"` 18577 } 18578 18579 // setDefaults implements iaas.argumentDefaulter 18580 func (o *NFS) setDefaults() interface{} { 18581 return &struct { 18582 ID types.ID 18583 Name string 18584 Description string 18585 Tags types.Tags 18586 Availability types.EAvailability 18587 Class string 18588 InstanceHostName string `mapconv:"Instance.Host.Name"` 18589 InstanceHostInfoURL string `mapconv:"Instance.Host.InfoURL"` 18590 InstanceStatus types.EServerInstanceStatus `mapconv:"Instance.Status"` 18591 InstanceStatusChangedAt time.Time `mapconv:"Instance.StatusChangedAt"` 18592 Interfaces []*InterfaceView `json:",omitempty" mapconv:"[]Interfaces,recursive,omitempty"` 18593 PlanID types.ID `mapconv:"Remark.Plan.ID/Plan.ID"` 18594 SwitchID types.ID `mapconv:"Remark.Switch.ID"` 18595 DefaultRoute string `mapconv:"Remark.Network.DefaultRoute"` 18596 NetworkMaskLen int `mapconv:"Remark.Network.NetworkMaskLen"` 18597 IPAddresses []string `mapconv:"Remark.[]Servers.IPAddress"` 18598 ZoneID types.ID `mapconv:"Remark.Zone.ID"` 18599 IconID types.ID `mapconv:"Icon.ID"` 18600 CreatedAt time.Time 18601 ModifiedAt time.Time 18602 SwitchName string `mapconv:"Switch.Name"` 18603 }{ 18604 ID: o.GetID(), 18605 Name: o.GetName(), 18606 Description: o.GetDescription(), 18607 Tags: o.GetTags(), 18608 Availability: o.GetAvailability(), 18609 Class: o.GetClass(), 18610 InstanceHostName: o.GetInstanceHostName(), 18611 InstanceHostInfoURL: o.GetInstanceHostInfoURL(), 18612 InstanceStatus: o.GetInstanceStatus(), 18613 InstanceStatusChangedAt: o.GetInstanceStatusChangedAt(), 18614 Interfaces: o.GetInterfaces(), 18615 PlanID: o.GetPlanID(), 18616 SwitchID: o.GetSwitchID(), 18617 DefaultRoute: o.GetDefaultRoute(), 18618 NetworkMaskLen: o.GetNetworkMaskLen(), 18619 IPAddresses: o.GetIPAddresses(), 18620 ZoneID: o.GetZoneID(), 18621 IconID: o.GetIconID(), 18622 CreatedAt: o.GetCreatedAt(), 18623 ModifiedAt: o.GetModifiedAt(), 18624 SwitchName: o.GetSwitchName(), 18625 } 18626 } 18627 18628 // GetID returns value of ID 18629 func (o *NFS) GetID() types.ID { 18630 return o.ID 18631 } 18632 18633 // SetID sets value to ID 18634 func (o *NFS) SetID(v types.ID) { 18635 o.ID = v 18636 } 18637 18638 // SetStringID . 18639 func (o *NFS) SetStringID(id string) { 18640 accessor.SetStringID(o, id) 18641 } 18642 18643 // GetStringID . 18644 func (o *NFS) GetStringID() string { 18645 return accessor.GetStringID(o) 18646 } 18647 18648 // SetInt64ID . 18649 func (o *NFS) SetInt64ID(id int64) { 18650 accessor.SetInt64ID(o, id) 18651 } 18652 18653 // GetInt64ID . 18654 func (o *NFS) GetInt64ID() int64 { 18655 return accessor.GetInt64ID(o) 18656 } 18657 18658 // GetName returns value of Name 18659 func (o *NFS) GetName() string { 18660 return o.Name 18661 } 18662 18663 // SetName sets value to Name 18664 func (o *NFS) SetName(v string) { 18665 o.Name = v 18666 } 18667 18668 // GetDescription returns value of Description 18669 func (o *NFS) GetDescription() string { 18670 return o.Description 18671 } 18672 18673 // SetDescription sets value to Description 18674 func (o *NFS) SetDescription(v string) { 18675 o.Description = v 18676 } 18677 18678 // GetTags returns value of Tags 18679 func (o *NFS) GetTags() types.Tags { 18680 return o.Tags 18681 } 18682 18683 // SetTags sets value to Tags 18684 func (o *NFS) SetTags(v types.Tags) { 18685 o.Tags = v 18686 } 18687 18688 // HasTag 指定のタグが存在する場合trueを返す 18689 func (o *NFS) HasTag(tag string) bool { 18690 return accessor.HasTag(o, tag) 18691 } 18692 18693 // AppendTag 指定のタグを追加 18694 func (o *NFS) AppendTag(tag string) { 18695 accessor.AppendTag(o, tag) 18696 } 18697 18698 // RemoveTag 指定のタグを削除 18699 func (o *NFS) RemoveTag(tag string) { 18700 accessor.RemoveTag(o, tag) 18701 } 18702 18703 // ClearTags タグを全クリア 18704 func (o *NFS) ClearTags() { 18705 accessor.ClearTags(o) 18706 } 18707 18708 // GetAvailability returns value of Availability 18709 func (o *NFS) GetAvailability() types.EAvailability { 18710 return o.Availability 18711 } 18712 18713 // SetAvailability sets value to Availability 18714 func (o *NFS) SetAvailability(v types.EAvailability) { 18715 o.Availability = v 18716 } 18717 18718 // GetClass returns value of Class 18719 func (o *NFS) GetClass() string { 18720 return o.Class 18721 } 18722 18723 // SetClass sets value to Class 18724 func (o *NFS) SetClass(v string) { 18725 o.Class = v 18726 } 18727 18728 // GetInstanceHostName returns value of InstanceHostName 18729 func (o *NFS) GetInstanceHostName() string { 18730 return o.InstanceHostName 18731 } 18732 18733 // SetInstanceHostName sets value to InstanceHostName 18734 func (o *NFS) SetInstanceHostName(v string) { 18735 o.InstanceHostName = v 18736 } 18737 18738 // GetInstanceHostInfoURL returns value of InstanceHostInfoURL 18739 func (o *NFS) GetInstanceHostInfoURL() string { 18740 return o.InstanceHostInfoURL 18741 } 18742 18743 // SetInstanceHostInfoURL sets value to InstanceHostInfoURL 18744 func (o *NFS) SetInstanceHostInfoURL(v string) { 18745 o.InstanceHostInfoURL = v 18746 } 18747 18748 // GetInstanceStatus returns value of InstanceStatus 18749 func (o *NFS) GetInstanceStatus() types.EServerInstanceStatus { 18750 return o.InstanceStatus 18751 } 18752 18753 // SetInstanceStatus sets value to InstanceStatus 18754 func (o *NFS) SetInstanceStatus(v types.EServerInstanceStatus) { 18755 o.InstanceStatus = v 18756 } 18757 18758 // GetInstanceStatusChangedAt returns value of InstanceStatusChangedAt 18759 func (o *NFS) GetInstanceStatusChangedAt() time.Time { 18760 return o.InstanceStatusChangedAt 18761 } 18762 18763 // SetInstanceStatusChangedAt sets value to InstanceStatusChangedAt 18764 func (o *NFS) SetInstanceStatusChangedAt(v time.Time) { 18765 o.InstanceStatusChangedAt = v 18766 } 18767 18768 // GetInterfaces returns value of Interfaces 18769 func (o *NFS) GetInterfaces() []*InterfaceView { 18770 return o.Interfaces 18771 } 18772 18773 // SetInterfaces sets value to Interfaces 18774 func (o *NFS) SetInterfaces(v []*InterfaceView) { 18775 o.Interfaces = v 18776 } 18777 18778 // GetPlanID returns value of PlanID 18779 func (o *NFS) GetPlanID() types.ID { 18780 return o.PlanID 18781 } 18782 18783 // SetPlanID sets value to PlanID 18784 func (o *NFS) SetPlanID(v types.ID) { 18785 o.PlanID = v 18786 } 18787 18788 // GetSwitchID returns value of SwitchID 18789 func (o *NFS) GetSwitchID() types.ID { 18790 return o.SwitchID 18791 } 18792 18793 // SetSwitchID sets value to SwitchID 18794 func (o *NFS) SetSwitchID(v types.ID) { 18795 o.SwitchID = v 18796 } 18797 18798 // GetDefaultRoute returns value of DefaultRoute 18799 func (o *NFS) GetDefaultRoute() string { 18800 return o.DefaultRoute 18801 } 18802 18803 // SetDefaultRoute sets value to DefaultRoute 18804 func (o *NFS) SetDefaultRoute(v string) { 18805 o.DefaultRoute = v 18806 } 18807 18808 // GetNetworkMaskLen returns value of NetworkMaskLen 18809 func (o *NFS) GetNetworkMaskLen() int { 18810 return o.NetworkMaskLen 18811 } 18812 18813 // SetNetworkMaskLen sets value to NetworkMaskLen 18814 func (o *NFS) SetNetworkMaskLen(v int) { 18815 o.NetworkMaskLen = v 18816 } 18817 18818 // GetIPAddresses returns value of IPAddresses 18819 func (o *NFS) GetIPAddresses() []string { 18820 return o.IPAddresses 18821 } 18822 18823 // SetIPAddresses sets value to IPAddresses 18824 func (o *NFS) SetIPAddresses(v []string) { 18825 o.IPAddresses = v 18826 } 18827 18828 // GetZoneID returns value of ZoneID 18829 func (o *NFS) GetZoneID() types.ID { 18830 return o.ZoneID 18831 } 18832 18833 // SetZoneID sets value to ZoneID 18834 func (o *NFS) SetZoneID(v types.ID) { 18835 o.ZoneID = v 18836 } 18837 18838 // GetIconID returns value of IconID 18839 func (o *NFS) GetIconID() types.ID { 18840 return o.IconID 18841 } 18842 18843 // SetIconID sets value to IconID 18844 func (o *NFS) SetIconID(v types.ID) { 18845 o.IconID = v 18846 } 18847 18848 // GetCreatedAt returns value of CreatedAt 18849 func (o *NFS) GetCreatedAt() time.Time { 18850 return o.CreatedAt 18851 } 18852 18853 // SetCreatedAt sets value to CreatedAt 18854 func (o *NFS) SetCreatedAt(v time.Time) { 18855 o.CreatedAt = v 18856 } 18857 18858 // GetModifiedAt returns value of ModifiedAt 18859 func (o *NFS) GetModifiedAt() time.Time { 18860 return o.ModifiedAt 18861 } 18862 18863 // SetModifiedAt sets value to ModifiedAt 18864 func (o *NFS) SetModifiedAt(v time.Time) { 18865 o.ModifiedAt = v 18866 } 18867 18868 // GetSwitchName returns value of SwitchName 18869 func (o *NFS) GetSwitchName() string { 18870 return o.SwitchName 18871 } 18872 18873 // SetSwitchName sets value to SwitchName 18874 func (o *NFS) SetSwitchName(v string) { 18875 o.SwitchName = v 18876 } 18877 18878 /************************************************* 18879 * NFSCreateRequest 18880 *************************************************/ 18881 18882 // NFSCreateRequest represents API parameter/response structure 18883 type NFSCreateRequest struct { 18884 SwitchID types.ID `mapconv:"Remark.Switch.ID"` 18885 PlanID types.ID `mapconv:"Remark.Plan.ID/Plan.ID"` 18886 IPAddresses []string `mapconv:"Remark.[]Servers.IPAddress"` 18887 NetworkMaskLen int `mapconv:"Remark.Network.NetworkMaskLen"` 18888 DefaultRoute string `mapconv:"Remark.Network.DefaultRoute"` 18889 Name string 18890 Description string 18891 Tags types.Tags 18892 IconID types.ID `mapconv:"Icon.ID"` 18893 } 18894 18895 // setDefaults implements iaas.argumentDefaulter 18896 func (o *NFSCreateRequest) setDefaults() interface{} { 18897 return &struct { 18898 SwitchID types.ID `mapconv:"Remark.Switch.ID"` 18899 PlanID types.ID `mapconv:"Remark.Plan.ID/Plan.ID"` 18900 IPAddresses []string `mapconv:"Remark.[]Servers.IPAddress"` 18901 NetworkMaskLen int `mapconv:"Remark.Network.NetworkMaskLen"` 18902 DefaultRoute string `mapconv:"Remark.Network.DefaultRoute"` 18903 Name string 18904 Description string 18905 Tags types.Tags 18906 IconID types.ID `mapconv:"Icon.ID"` 18907 Class string 18908 }{ 18909 SwitchID: o.GetSwitchID(), 18910 PlanID: o.GetPlanID(), 18911 IPAddresses: o.GetIPAddresses(), 18912 NetworkMaskLen: o.GetNetworkMaskLen(), 18913 DefaultRoute: o.GetDefaultRoute(), 18914 Name: o.GetName(), 18915 Description: o.GetDescription(), 18916 Tags: o.GetTags(), 18917 IconID: o.GetIconID(), 18918 Class: "nfs", 18919 } 18920 } 18921 18922 // GetSwitchID returns value of SwitchID 18923 func (o *NFSCreateRequest) GetSwitchID() types.ID { 18924 return o.SwitchID 18925 } 18926 18927 // SetSwitchID sets value to SwitchID 18928 func (o *NFSCreateRequest) SetSwitchID(v types.ID) { 18929 o.SwitchID = v 18930 } 18931 18932 // GetPlanID returns value of PlanID 18933 func (o *NFSCreateRequest) GetPlanID() types.ID { 18934 return o.PlanID 18935 } 18936 18937 // SetPlanID sets value to PlanID 18938 func (o *NFSCreateRequest) SetPlanID(v types.ID) { 18939 o.PlanID = v 18940 } 18941 18942 // GetIPAddresses returns value of IPAddresses 18943 func (o *NFSCreateRequest) GetIPAddresses() []string { 18944 return o.IPAddresses 18945 } 18946 18947 // SetIPAddresses sets value to IPAddresses 18948 func (o *NFSCreateRequest) SetIPAddresses(v []string) { 18949 o.IPAddresses = v 18950 } 18951 18952 // GetNetworkMaskLen returns value of NetworkMaskLen 18953 func (o *NFSCreateRequest) GetNetworkMaskLen() int { 18954 return o.NetworkMaskLen 18955 } 18956 18957 // SetNetworkMaskLen sets value to NetworkMaskLen 18958 func (o *NFSCreateRequest) SetNetworkMaskLen(v int) { 18959 o.NetworkMaskLen = v 18960 } 18961 18962 // GetDefaultRoute returns value of DefaultRoute 18963 func (o *NFSCreateRequest) GetDefaultRoute() string { 18964 return o.DefaultRoute 18965 } 18966 18967 // SetDefaultRoute sets value to DefaultRoute 18968 func (o *NFSCreateRequest) SetDefaultRoute(v string) { 18969 o.DefaultRoute = v 18970 } 18971 18972 // GetName returns value of Name 18973 func (o *NFSCreateRequest) GetName() string { 18974 return o.Name 18975 } 18976 18977 // SetName sets value to Name 18978 func (o *NFSCreateRequest) SetName(v string) { 18979 o.Name = v 18980 } 18981 18982 // GetDescription returns value of Description 18983 func (o *NFSCreateRequest) GetDescription() string { 18984 return o.Description 18985 } 18986 18987 // SetDescription sets value to Description 18988 func (o *NFSCreateRequest) SetDescription(v string) { 18989 o.Description = v 18990 } 18991 18992 // GetTags returns value of Tags 18993 func (o *NFSCreateRequest) GetTags() types.Tags { 18994 return o.Tags 18995 } 18996 18997 // SetTags sets value to Tags 18998 func (o *NFSCreateRequest) SetTags(v types.Tags) { 18999 o.Tags = v 19000 } 19001 19002 // HasTag 指定のタグが存在する場合trueを返す 19003 func (o *NFSCreateRequest) HasTag(tag string) bool { 19004 return accessor.HasTag(o, tag) 19005 } 19006 19007 // AppendTag 指定のタグを追加 19008 func (o *NFSCreateRequest) AppendTag(tag string) { 19009 accessor.AppendTag(o, tag) 19010 } 19011 19012 // RemoveTag 指定のタグを削除 19013 func (o *NFSCreateRequest) RemoveTag(tag string) { 19014 accessor.RemoveTag(o, tag) 19015 } 19016 19017 // ClearTags タグを全クリア 19018 func (o *NFSCreateRequest) ClearTags() { 19019 accessor.ClearTags(o) 19020 } 19021 19022 // GetIconID returns value of IconID 19023 func (o *NFSCreateRequest) GetIconID() types.ID { 19024 return o.IconID 19025 } 19026 19027 // SetIconID sets value to IconID 19028 func (o *NFSCreateRequest) SetIconID(v types.ID) { 19029 o.IconID = v 19030 } 19031 19032 /************************************************* 19033 * NFSUpdateRequest 19034 *************************************************/ 19035 19036 // NFSUpdateRequest represents API parameter/response structure 19037 type NFSUpdateRequest struct { 19038 Name string 19039 Description string 19040 Tags types.Tags 19041 IconID types.ID `mapconv:"Icon.ID"` 19042 } 19043 19044 // setDefaults implements iaas.argumentDefaulter 19045 func (o *NFSUpdateRequest) setDefaults() interface{} { 19046 return &struct { 19047 Name string 19048 Description string 19049 Tags types.Tags 19050 IconID types.ID `mapconv:"Icon.ID"` 19051 }{ 19052 Name: o.GetName(), 19053 Description: o.GetDescription(), 19054 Tags: o.GetTags(), 19055 IconID: o.GetIconID(), 19056 } 19057 } 19058 19059 // GetName returns value of Name 19060 func (o *NFSUpdateRequest) GetName() string { 19061 return o.Name 19062 } 19063 19064 // SetName sets value to Name 19065 func (o *NFSUpdateRequest) SetName(v string) { 19066 o.Name = v 19067 } 19068 19069 // GetDescription returns value of Description 19070 func (o *NFSUpdateRequest) GetDescription() string { 19071 return o.Description 19072 } 19073 19074 // SetDescription sets value to Description 19075 func (o *NFSUpdateRequest) SetDescription(v string) { 19076 o.Description = v 19077 } 19078 19079 // GetTags returns value of Tags 19080 func (o *NFSUpdateRequest) GetTags() types.Tags { 19081 return o.Tags 19082 } 19083 19084 // SetTags sets value to Tags 19085 func (o *NFSUpdateRequest) SetTags(v types.Tags) { 19086 o.Tags = v 19087 } 19088 19089 // HasTag 指定のタグが存在する場合trueを返す 19090 func (o *NFSUpdateRequest) HasTag(tag string) bool { 19091 return accessor.HasTag(o, tag) 19092 } 19093 19094 // AppendTag 指定のタグを追加 19095 func (o *NFSUpdateRequest) AppendTag(tag string) { 19096 accessor.AppendTag(o, tag) 19097 } 19098 19099 // RemoveTag 指定のタグを削除 19100 func (o *NFSUpdateRequest) RemoveTag(tag string) { 19101 accessor.RemoveTag(o, tag) 19102 } 19103 19104 // ClearTags タグを全クリア 19105 func (o *NFSUpdateRequest) ClearTags() { 19106 accessor.ClearTags(o) 19107 } 19108 19109 // GetIconID returns value of IconID 19110 func (o *NFSUpdateRequest) GetIconID() types.ID { 19111 return o.IconID 19112 } 19113 19114 // SetIconID sets value to IconID 19115 func (o *NFSUpdateRequest) SetIconID(v types.ID) { 19116 o.IconID = v 19117 } 19118 19119 /************************************************* 19120 * FreeDiskSizeActivity 19121 *************************************************/ 19122 19123 // FreeDiskSizeActivity represents API parameter/response structure 19124 type FreeDiskSizeActivity struct { 19125 Values []*MonitorFreeDiskSizeValue `mapconv:"[]FreeDiskSize"` 19126 } 19127 19128 // setDefaults implements iaas.argumentDefaulter 19129 func (o *FreeDiskSizeActivity) setDefaults() interface{} { 19130 return &struct { 19131 Values []*MonitorFreeDiskSizeValue `mapconv:"[]FreeDiskSize"` 19132 }{ 19133 Values: o.GetValues(), 19134 } 19135 } 19136 19137 // GetValues returns value of Values 19138 func (o *FreeDiskSizeActivity) GetValues() []*MonitorFreeDiskSizeValue { 19139 return o.Values 19140 } 19141 19142 // SetValues sets value to Values 19143 func (o *FreeDiskSizeActivity) SetValues(v []*MonitorFreeDiskSizeValue) { 19144 o.Values = v 19145 } 19146 19147 /************************************************* 19148 * MonitorFreeDiskSizeValue 19149 *************************************************/ 19150 19151 // MonitorFreeDiskSizeValue represents API parameter/response structure 19152 type MonitorFreeDiskSizeValue struct { 19153 Time time.Time `mapconv:",omitempty"` 19154 FreeDiskSize float64 `mapconv:",omitempty"` 19155 } 19156 19157 // setDefaults implements iaas.argumentDefaulter 19158 func (o *MonitorFreeDiskSizeValue) setDefaults() interface{} { 19159 return &struct { 19160 Time time.Time `mapconv:",omitempty"` 19161 FreeDiskSize float64 `mapconv:",omitempty"` 19162 }{ 19163 Time: o.GetTime(), 19164 FreeDiskSize: o.GetFreeDiskSize(), 19165 } 19166 } 19167 19168 // GetTime returns value of Time 19169 func (o *MonitorFreeDiskSizeValue) GetTime() time.Time { 19170 return o.Time 19171 } 19172 19173 // SetTime sets value to Time 19174 func (o *MonitorFreeDiskSizeValue) SetTime(v time.Time) { 19175 o.Time = v 19176 } 19177 19178 // GetFreeDiskSize returns value of FreeDiskSize 19179 func (o *MonitorFreeDiskSizeValue) GetFreeDiskSize() float64 { 19180 return o.FreeDiskSize 19181 } 19182 19183 // SetFreeDiskSize sets value to FreeDiskSize 19184 func (o *MonitorFreeDiskSizeValue) SetFreeDiskSize(v float64) { 19185 o.FreeDiskSize = v 19186 } 19187 19188 /************************************************* 19189 * Note 19190 *************************************************/ 19191 19192 // Note represents API parameter/response structure 19193 type Note struct { 19194 ID types.ID 19195 Name string 19196 Description string 19197 Tags types.Tags 19198 Availability types.EAvailability 19199 Scope types.EScope 19200 Class string 19201 Content string 19202 IconID types.ID `mapconv:"Icon.ID"` 19203 CreatedAt time.Time 19204 ModifiedAt time.Time 19205 } 19206 19207 // setDefaults implements iaas.argumentDefaulter 19208 func (o *Note) setDefaults() interface{} { 19209 return &struct { 19210 ID types.ID 19211 Name string 19212 Description string 19213 Tags types.Tags 19214 Availability types.EAvailability 19215 Scope types.EScope 19216 Class string 19217 Content string 19218 IconID types.ID `mapconv:"Icon.ID"` 19219 CreatedAt time.Time 19220 ModifiedAt time.Time 19221 }{ 19222 ID: o.GetID(), 19223 Name: o.GetName(), 19224 Description: o.GetDescription(), 19225 Tags: o.GetTags(), 19226 Availability: o.GetAvailability(), 19227 Scope: o.GetScope(), 19228 Class: o.GetClass(), 19229 Content: o.GetContent(), 19230 IconID: o.GetIconID(), 19231 CreatedAt: o.GetCreatedAt(), 19232 ModifiedAt: o.GetModifiedAt(), 19233 } 19234 } 19235 19236 // GetID returns value of ID 19237 func (o *Note) GetID() types.ID { 19238 return o.ID 19239 } 19240 19241 // SetID sets value to ID 19242 func (o *Note) SetID(v types.ID) { 19243 o.ID = v 19244 } 19245 19246 // SetStringID . 19247 func (o *Note) SetStringID(id string) { 19248 accessor.SetStringID(o, id) 19249 } 19250 19251 // GetStringID . 19252 func (o *Note) GetStringID() string { 19253 return accessor.GetStringID(o) 19254 } 19255 19256 // SetInt64ID . 19257 func (o *Note) SetInt64ID(id int64) { 19258 accessor.SetInt64ID(o, id) 19259 } 19260 19261 // GetInt64ID . 19262 func (o *Note) GetInt64ID() int64 { 19263 return accessor.GetInt64ID(o) 19264 } 19265 19266 // GetName returns value of Name 19267 func (o *Note) GetName() string { 19268 return o.Name 19269 } 19270 19271 // SetName sets value to Name 19272 func (o *Note) SetName(v string) { 19273 o.Name = v 19274 } 19275 19276 // GetDescription returns value of Description 19277 func (o *Note) GetDescription() string { 19278 return o.Description 19279 } 19280 19281 // SetDescription sets value to Description 19282 func (o *Note) SetDescription(v string) { 19283 o.Description = v 19284 } 19285 19286 // GetTags returns value of Tags 19287 func (o *Note) GetTags() types.Tags { 19288 return o.Tags 19289 } 19290 19291 // SetTags sets value to Tags 19292 func (o *Note) SetTags(v types.Tags) { 19293 o.Tags = v 19294 } 19295 19296 // HasTag 指定のタグが存在する場合trueを返す 19297 func (o *Note) HasTag(tag string) bool { 19298 return accessor.HasTag(o, tag) 19299 } 19300 19301 // AppendTag 指定のタグを追加 19302 func (o *Note) AppendTag(tag string) { 19303 accessor.AppendTag(o, tag) 19304 } 19305 19306 // RemoveTag 指定のタグを削除 19307 func (o *Note) RemoveTag(tag string) { 19308 accessor.RemoveTag(o, tag) 19309 } 19310 19311 // ClearTags タグを全クリア 19312 func (o *Note) ClearTags() { 19313 accessor.ClearTags(o) 19314 } 19315 19316 // GetAvailability returns value of Availability 19317 func (o *Note) GetAvailability() types.EAvailability { 19318 return o.Availability 19319 } 19320 19321 // SetAvailability sets value to Availability 19322 func (o *Note) SetAvailability(v types.EAvailability) { 19323 o.Availability = v 19324 } 19325 19326 // GetScope returns value of Scope 19327 func (o *Note) GetScope() types.EScope { 19328 return o.Scope 19329 } 19330 19331 // SetScope sets value to Scope 19332 func (o *Note) SetScope(v types.EScope) { 19333 o.Scope = v 19334 } 19335 19336 // GetClass returns value of Class 19337 func (o *Note) GetClass() string { 19338 return o.Class 19339 } 19340 19341 // SetClass sets value to Class 19342 func (o *Note) SetClass(v string) { 19343 o.Class = v 19344 } 19345 19346 // GetContent returns value of Content 19347 func (o *Note) GetContent() string { 19348 return o.Content 19349 } 19350 19351 // SetContent sets value to Content 19352 func (o *Note) SetContent(v string) { 19353 o.Content = v 19354 } 19355 19356 // GetIconID returns value of IconID 19357 func (o *Note) GetIconID() types.ID { 19358 return o.IconID 19359 } 19360 19361 // SetIconID sets value to IconID 19362 func (o *Note) SetIconID(v types.ID) { 19363 o.IconID = v 19364 } 19365 19366 // GetCreatedAt returns value of CreatedAt 19367 func (o *Note) GetCreatedAt() time.Time { 19368 return o.CreatedAt 19369 } 19370 19371 // SetCreatedAt sets value to CreatedAt 19372 func (o *Note) SetCreatedAt(v time.Time) { 19373 o.CreatedAt = v 19374 } 19375 19376 // GetModifiedAt returns value of ModifiedAt 19377 func (o *Note) GetModifiedAt() time.Time { 19378 return o.ModifiedAt 19379 } 19380 19381 // SetModifiedAt sets value to ModifiedAt 19382 func (o *Note) SetModifiedAt(v time.Time) { 19383 o.ModifiedAt = v 19384 } 19385 19386 /************************************************* 19387 * NoteCreateRequest 19388 *************************************************/ 19389 19390 // NoteCreateRequest represents API parameter/response structure 19391 type NoteCreateRequest struct { 19392 Name string 19393 Tags types.Tags 19394 IconID types.ID `mapconv:"Icon.ID"` 19395 Class string 19396 Content string 19397 } 19398 19399 // setDefaults implements iaas.argumentDefaulter 19400 func (o *NoteCreateRequest) setDefaults() interface{} { 19401 return &struct { 19402 Name string 19403 Tags types.Tags 19404 IconID types.ID `mapconv:"Icon.ID"` 19405 Class string 19406 Content string 19407 }{ 19408 Name: o.GetName(), 19409 Tags: o.GetTags(), 19410 IconID: o.GetIconID(), 19411 Class: o.GetClass(), 19412 Content: o.GetContent(), 19413 } 19414 } 19415 19416 // GetName returns value of Name 19417 func (o *NoteCreateRequest) GetName() string { 19418 return o.Name 19419 } 19420 19421 // SetName sets value to Name 19422 func (o *NoteCreateRequest) SetName(v string) { 19423 o.Name = v 19424 } 19425 19426 // GetTags returns value of Tags 19427 func (o *NoteCreateRequest) GetTags() types.Tags { 19428 return o.Tags 19429 } 19430 19431 // SetTags sets value to Tags 19432 func (o *NoteCreateRequest) SetTags(v types.Tags) { 19433 o.Tags = v 19434 } 19435 19436 // HasTag 指定のタグが存在する場合trueを返す 19437 func (o *NoteCreateRequest) HasTag(tag string) bool { 19438 return accessor.HasTag(o, tag) 19439 } 19440 19441 // AppendTag 指定のタグを追加 19442 func (o *NoteCreateRequest) AppendTag(tag string) { 19443 accessor.AppendTag(o, tag) 19444 } 19445 19446 // RemoveTag 指定のタグを削除 19447 func (o *NoteCreateRequest) RemoveTag(tag string) { 19448 accessor.RemoveTag(o, tag) 19449 } 19450 19451 // ClearTags タグを全クリア 19452 func (o *NoteCreateRequest) ClearTags() { 19453 accessor.ClearTags(o) 19454 } 19455 19456 // GetIconID returns value of IconID 19457 func (o *NoteCreateRequest) GetIconID() types.ID { 19458 return o.IconID 19459 } 19460 19461 // SetIconID sets value to IconID 19462 func (o *NoteCreateRequest) SetIconID(v types.ID) { 19463 o.IconID = v 19464 } 19465 19466 // GetClass returns value of Class 19467 func (o *NoteCreateRequest) GetClass() string { 19468 return o.Class 19469 } 19470 19471 // SetClass sets value to Class 19472 func (o *NoteCreateRequest) SetClass(v string) { 19473 o.Class = v 19474 } 19475 19476 // GetContent returns value of Content 19477 func (o *NoteCreateRequest) GetContent() string { 19478 return o.Content 19479 } 19480 19481 // SetContent sets value to Content 19482 func (o *NoteCreateRequest) SetContent(v string) { 19483 o.Content = v 19484 } 19485 19486 /************************************************* 19487 * NoteUpdateRequest 19488 *************************************************/ 19489 19490 // NoteUpdateRequest represents API parameter/response structure 19491 type NoteUpdateRequest struct { 19492 Name string 19493 Tags types.Tags 19494 IconID types.ID `mapconv:"Icon.ID"` 19495 Class string 19496 Content string 19497 } 19498 19499 // setDefaults implements iaas.argumentDefaulter 19500 func (o *NoteUpdateRequest) setDefaults() interface{} { 19501 return &struct { 19502 Name string 19503 Tags types.Tags 19504 IconID types.ID `mapconv:"Icon.ID"` 19505 Class string 19506 Content string 19507 }{ 19508 Name: o.GetName(), 19509 Tags: o.GetTags(), 19510 IconID: o.GetIconID(), 19511 Class: o.GetClass(), 19512 Content: o.GetContent(), 19513 } 19514 } 19515 19516 // GetName returns value of Name 19517 func (o *NoteUpdateRequest) GetName() string { 19518 return o.Name 19519 } 19520 19521 // SetName sets value to Name 19522 func (o *NoteUpdateRequest) SetName(v string) { 19523 o.Name = v 19524 } 19525 19526 // GetTags returns value of Tags 19527 func (o *NoteUpdateRequest) GetTags() types.Tags { 19528 return o.Tags 19529 } 19530 19531 // SetTags sets value to Tags 19532 func (o *NoteUpdateRequest) SetTags(v types.Tags) { 19533 o.Tags = v 19534 } 19535 19536 // HasTag 指定のタグが存在する場合trueを返す 19537 func (o *NoteUpdateRequest) HasTag(tag string) bool { 19538 return accessor.HasTag(o, tag) 19539 } 19540 19541 // AppendTag 指定のタグを追加 19542 func (o *NoteUpdateRequest) AppendTag(tag string) { 19543 accessor.AppendTag(o, tag) 19544 } 19545 19546 // RemoveTag 指定のタグを削除 19547 func (o *NoteUpdateRequest) RemoveTag(tag string) { 19548 accessor.RemoveTag(o, tag) 19549 } 19550 19551 // ClearTags タグを全クリア 19552 func (o *NoteUpdateRequest) ClearTags() { 19553 accessor.ClearTags(o) 19554 } 19555 19556 // GetIconID returns value of IconID 19557 func (o *NoteUpdateRequest) GetIconID() types.ID { 19558 return o.IconID 19559 } 19560 19561 // SetIconID sets value to IconID 19562 func (o *NoteUpdateRequest) SetIconID(v types.ID) { 19563 o.IconID = v 19564 } 19565 19566 // GetClass returns value of Class 19567 func (o *NoteUpdateRequest) GetClass() string { 19568 return o.Class 19569 } 19570 19571 // SetClass sets value to Class 19572 func (o *NoteUpdateRequest) SetClass(v string) { 19573 o.Class = v 19574 } 19575 19576 // GetContent returns value of Content 19577 func (o *NoteUpdateRequest) GetContent() string { 19578 return o.Content 19579 } 19580 19581 // SetContent sets value to Content 19582 func (o *NoteUpdateRequest) SetContent(v string) { 19583 o.Content = v 19584 } 19585 19586 /************************************************* 19587 * PacketFilter 19588 *************************************************/ 19589 19590 // PacketFilter represents API parameter/response structure 19591 type PacketFilter struct { 19592 ID types.ID 19593 Name string 19594 Description string 19595 RequiredHostVersion types.StringNumber 19596 Expression []*PacketFilterExpression `mapconv:"[]Expression,recursive"` 19597 ExpressionHash string 19598 CreatedAt time.Time 19599 } 19600 19601 // setDefaults implements iaas.argumentDefaulter 19602 func (o *PacketFilter) setDefaults() interface{} { 19603 return &struct { 19604 ID types.ID 19605 Name string 19606 Description string 19607 RequiredHostVersion types.StringNumber 19608 Expression []*PacketFilterExpression `mapconv:"[]Expression,recursive"` 19609 ExpressionHash string 19610 CreatedAt time.Time 19611 }{ 19612 ID: o.GetID(), 19613 Name: o.GetName(), 19614 Description: o.GetDescription(), 19615 RequiredHostVersion: o.GetRequiredHostVersion(), 19616 Expression: o.GetExpression(), 19617 ExpressionHash: o.GetExpressionHash(), 19618 CreatedAt: o.GetCreatedAt(), 19619 } 19620 } 19621 19622 // GetID returns value of ID 19623 func (o *PacketFilter) GetID() types.ID { 19624 return o.ID 19625 } 19626 19627 // SetID sets value to ID 19628 func (o *PacketFilter) SetID(v types.ID) { 19629 o.ID = v 19630 } 19631 19632 // SetStringID . 19633 func (o *PacketFilter) SetStringID(id string) { 19634 accessor.SetStringID(o, id) 19635 } 19636 19637 // GetStringID . 19638 func (o *PacketFilter) GetStringID() string { 19639 return accessor.GetStringID(o) 19640 } 19641 19642 // SetInt64ID . 19643 func (o *PacketFilter) SetInt64ID(id int64) { 19644 accessor.SetInt64ID(o, id) 19645 } 19646 19647 // GetInt64ID . 19648 func (o *PacketFilter) GetInt64ID() int64 { 19649 return accessor.GetInt64ID(o) 19650 } 19651 19652 // GetName returns value of Name 19653 func (o *PacketFilter) GetName() string { 19654 return o.Name 19655 } 19656 19657 // SetName sets value to Name 19658 func (o *PacketFilter) SetName(v string) { 19659 o.Name = v 19660 } 19661 19662 // GetDescription returns value of Description 19663 func (o *PacketFilter) GetDescription() string { 19664 return o.Description 19665 } 19666 19667 // SetDescription sets value to Description 19668 func (o *PacketFilter) SetDescription(v string) { 19669 o.Description = v 19670 } 19671 19672 // GetRequiredHostVersion returns value of RequiredHostVersion 19673 func (o *PacketFilter) GetRequiredHostVersion() types.StringNumber { 19674 return o.RequiredHostVersion 19675 } 19676 19677 // SetRequiredHostVersion sets value to RequiredHostVersion 19678 func (o *PacketFilter) SetRequiredHostVersion(v types.StringNumber) { 19679 o.RequiredHostVersion = v 19680 } 19681 19682 // GetExpression returns value of Expression 19683 func (o *PacketFilter) GetExpression() []*PacketFilterExpression { 19684 return o.Expression 19685 } 19686 19687 // SetExpression sets value to Expression 19688 func (o *PacketFilter) SetExpression(v []*PacketFilterExpression) { 19689 o.Expression = v 19690 } 19691 19692 // GetExpressionHash returns value of ExpressionHash 19693 func (o *PacketFilter) GetExpressionHash() string { 19694 return o.ExpressionHash 19695 } 19696 19697 // SetExpressionHash sets value to ExpressionHash 19698 func (o *PacketFilter) SetExpressionHash(v string) { 19699 o.ExpressionHash = v 19700 } 19701 19702 // GetCreatedAt returns value of CreatedAt 19703 func (o *PacketFilter) GetCreatedAt() time.Time { 19704 return o.CreatedAt 19705 } 19706 19707 // SetCreatedAt sets value to CreatedAt 19708 func (o *PacketFilter) SetCreatedAt(v time.Time) { 19709 o.CreatedAt = v 19710 } 19711 19712 /************************************************* 19713 * PacketFilterExpression 19714 *************************************************/ 19715 19716 // PacketFilterExpression represents API parameter/response structure 19717 type PacketFilterExpression struct { 19718 Protocol types.Protocol 19719 SourceNetwork types.PacketFilterNetwork 19720 SourcePort types.PacketFilterPort 19721 DestinationPort types.PacketFilterPort 19722 Action types.Action 19723 Description string 19724 } 19725 19726 // setDefaults implements iaas.argumentDefaulter 19727 func (o *PacketFilterExpression) setDefaults() interface{} { 19728 return &struct { 19729 Protocol types.Protocol 19730 SourceNetwork types.PacketFilterNetwork 19731 SourcePort types.PacketFilterPort 19732 DestinationPort types.PacketFilterPort 19733 Action types.Action 19734 Description string 19735 }{ 19736 Protocol: o.GetProtocol(), 19737 SourceNetwork: o.GetSourceNetwork(), 19738 SourcePort: o.GetSourcePort(), 19739 DestinationPort: o.GetDestinationPort(), 19740 Action: o.GetAction(), 19741 Description: o.GetDescription(), 19742 } 19743 } 19744 19745 // GetProtocol returns value of Protocol 19746 func (o *PacketFilterExpression) GetProtocol() types.Protocol { 19747 return o.Protocol 19748 } 19749 19750 // SetProtocol sets value to Protocol 19751 func (o *PacketFilterExpression) SetProtocol(v types.Protocol) { 19752 o.Protocol = v 19753 } 19754 19755 // GetSourceNetwork returns value of SourceNetwork 19756 func (o *PacketFilterExpression) GetSourceNetwork() types.PacketFilterNetwork { 19757 return o.SourceNetwork 19758 } 19759 19760 // SetSourceNetwork sets value to SourceNetwork 19761 func (o *PacketFilterExpression) SetSourceNetwork(v types.PacketFilterNetwork) { 19762 o.SourceNetwork = v 19763 } 19764 19765 // GetSourcePort returns value of SourcePort 19766 func (o *PacketFilterExpression) GetSourcePort() types.PacketFilterPort { 19767 return o.SourcePort 19768 } 19769 19770 // SetSourcePort sets value to SourcePort 19771 func (o *PacketFilterExpression) SetSourcePort(v types.PacketFilterPort) { 19772 o.SourcePort = v 19773 } 19774 19775 // GetDestinationPort returns value of DestinationPort 19776 func (o *PacketFilterExpression) GetDestinationPort() types.PacketFilterPort { 19777 return o.DestinationPort 19778 } 19779 19780 // SetDestinationPort sets value to DestinationPort 19781 func (o *PacketFilterExpression) SetDestinationPort(v types.PacketFilterPort) { 19782 o.DestinationPort = v 19783 } 19784 19785 // GetAction returns value of Action 19786 func (o *PacketFilterExpression) GetAction() types.Action { 19787 return o.Action 19788 } 19789 19790 // SetAction sets value to Action 19791 func (o *PacketFilterExpression) SetAction(v types.Action) { 19792 o.Action = v 19793 } 19794 19795 // GetDescription returns value of Description 19796 func (o *PacketFilterExpression) GetDescription() string { 19797 return o.Description 19798 } 19799 19800 // SetDescription sets value to Description 19801 func (o *PacketFilterExpression) SetDescription(v string) { 19802 o.Description = v 19803 } 19804 19805 /************************************************* 19806 * PacketFilterCreateRequest 19807 *************************************************/ 19808 19809 // PacketFilterCreateRequest represents API parameter/response structure 19810 type PacketFilterCreateRequest struct { 19811 Name string 19812 Description string 19813 Expression []*PacketFilterExpression `mapconv:"[]Expression,recursive"` 19814 } 19815 19816 // setDefaults implements iaas.argumentDefaulter 19817 func (o *PacketFilterCreateRequest) setDefaults() interface{} { 19818 return &struct { 19819 Name string 19820 Description string 19821 Expression []*PacketFilterExpression `mapconv:"[]Expression,recursive"` 19822 }{ 19823 Name: o.GetName(), 19824 Description: o.GetDescription(), 19825 Expression: o.GetExpression(), 19826 } 19827 } 19828 19829 // GetName returns value of Name 19830 func (o *PacketFilterCreateRequest) GetName() string { 19831 return o.Name 19832 } 19833 19834 // SetName sets value to Name 19835 func (o *PacketFilterCreateRequest) SetName(v string) { 19836 o.Name = v 19837 } 19838 19839 // GetDescription returns value of Description 19840 func (o *PacketFilterCreateRequest) GetDescription() string { 19841 return o.Description 19842 } 19843 19844 // SetDescription sets value to Description 19845 func (o *PacketFilterCreateRequest) SetDescription(v string) { 19846 o.Description = v 19847 } 19848 19849 // GetExpression returns value of Expression 19850 func (o *PacketFilterCreateRequest) GetExpression() []*PacketFilterExpression { 19851 return o.Expression 19852 } 19853 19854 // SetExpression sets value to Expression 19855 func (o *PacketFilterCreateRequest) SetExpression(v []*PacketFilterExpression) { 19856 o.Expression = v 19857 } 19858 19859 /************************************************* 19860 * PacketFilterUpdateRequest 19861 *************************************************/ 19862 19863 // PacketFilterUpdateRequest represents API parameter/response structure 19864 type PacketFilterUpdateRequest struct { 19865 Name string 19866 Description string 19867 Expression []*PacketFilterExpression `mapconv:"[]Expression,recursive"` 19868 } 19869 19870 // setDefaults implements iaas.argumentDefaulter 19871 func (o *PacketFilterUpdateRequest) setDefaults() interface{} { 19872 return &struct { 19873 Name string 19874 Description string 19875 Expression []*PacketFilterExpression `mapconv:"[]Expression,recursive"` 19876 }{ 19877 Name: o.GetName(), 19878 Description: o.GetDescription(), 19879 Expression: o.GetExpression(), 19880 } 19881 } 19882 19883 // GetName returns value of Name 19884 func (o *PacketFilterUpdateRequest) GetName() string { 19885 return o.Name 19886 } 19887 19888 // SetName sets value to Name 19889 func (o *PacketFilterUpdateRequest) SetName(v string) { 19890 o.Name = v 19891 } 19892 19893 // GetDescription returns value of Description 19894 func (o *PacketFilterUpdateRequest) GetDescription() string { 19895 return o.Description 19896 } 19897 19898 // SetDescription sets value to Description 19899 func (o *PacketFilterUpdateRequest) SetDescription(v string) { 19900 o.Description = v 19901 } 19902 19903 // GetExpression returns value of Expression 19904 func (o *PacketFilterUpdateRequest) GetExpression() []*PacketFilterExpression { 19905 return o.Expression 19906 } 19907 19908 // SetExpression sets value to Expression 19909 func (o *PacketFilterUpdateRequest) SetExpression(v []*PacketFilterExpression) { 19910 o.Expression = v 19911 } 19912 19913 /************************************************* 19914 * PrivateHost 19915 *************************************************/ 19916 19917 // PrivateHost represents API parameter/response structure 19918 type PrivateHost struct { 19919 ID types.ID 19920 Name string 19921 Description string 19922 Tags types.Tags 19923 IconID types.ID `mapconv:"Icon.ID"` 19924 CreatedAt time.Time 19925 PlanID types.ID `mapconv:"Plan.ID,omitempty"` 19926 PlanName string `mapconv:"Plan.Name"` 19927 PlanClass string `mapconv:"Plan.Class"` 19928 CPU int `mapconv:"Plan.CPU"` 19929 MemoryMB int `mapconv:"Plan.MemoryMB"` 19930 AssignedCPU int 19931 AssignedMemoryMB int 19932 HostName string `mapconv:"Host.Name"` 19933 } 19934 19935 // setDefaults implements iaas.argumentDefaulter 19936 func (o *PrivateHost) setDefaults() interface{} { 19937 return &struct { 19938 ID types.ID 19939 Name string 19940 Description string 19941 Tags types.Tags 19942 IconID types.ID `mapconv:"Icon.ID"` 19943 CreatedAt time.Time 19944 PlanID types.ID `mapconv:"Plan.ID,omitempty"` 19945 PlanName string `mapconv:"Plan.Name"` 19946 PlanClass string `mapconv:"Plan.Class"` 19947 CPU int `mapconv:"Plan.CPU"` 19948 MemoryMB int `mapconv:"Plan.MemoryMB"` 19949 AssignedCPU int 19950 AssignedMemoryMB int 19951 HostName string `mapconv:"Host.Name"` 19952 }{ 19953 ID: o.GetID(), 19954 Name: o.GetName(), 19955 Description: o.GetDescription(), 19956 Tags: o.GetTags(), 19957 IconID: o.GetIconID(), 19958 CreatedAt: o.GetCreatedAt(), 19959 PlanID: o.GetPlanID(), 19960 PlanName: o.GetPlanName(), 19961 PlanClass: o.GetPlanClass(), 19962 CPU: o.GetCPU(), 19963 MemoryMB: o.GetMemoryMB(), 19964 AssignedCPU: o.GetAssignedCPU(), 19965 AssignedMemoryMB: o.GetAssignedMemoryMB(), 19966 HostName: o.GetHostName(), 19967 } 19968 } 19969 19970 // GetID returns value of ID 19971 func (o *PrivateHost) GetID() types.ID { 19972 return o.ID 19973 } 19974 19975 // SetID sets value to ID 19976 func (o *PrivateHost) SetID(v types.ID) { 19977 o.ID = v 19978 } 19979 19980 // SetStringID . 19981 func (o *PrivateHost) SetStringID(id string) { 19982 accessor.SetStringID(o, id) 19983 } 19984 19985 // GetStringID . 19986 func (o *PrivateHost) GetStringID() string { 19987 return accessor.GetStringID(o) 19988 } 19989 19990 // SetInt64ID . 19991 func (o *PrivateHost) SetInt64ID(id int64) { 19992 accessor.SetInt64ID(o, id) 19993 } 19994 19995 // GetInt64ID . 19996 func (o *PrivateHost) GetInt64ID() int64 { 19997 return accessor.GetInt64ID(o) 19998 } 19999 20000 // GetName returns value of Name 20001 func (o *PrivateHost) GetName() string { 20002 return o.Name 20003 } 20004 20005 // SetName sets value to Name 20006 func (o *PrivateHost) SetName(v string) { 20007 o.Name = v 20008 } 20009 20010 // GetDescription returns value of Description 20011 func (o *PrivateHost) GetDescription() string { 20012 return o.Description 20013 } 20014 20015 // SetDescription sets value to Description 20016 func (o *PrivateHost) SetDescription(v string) { 20017 o.Description = v 20018 } 20019 20020 // GetTags returns value of Tags 20021 func (o *PrivateHost) GetTags() types.Tags { 20022 return o.Tags 20023 } 20024 20025 // SetTags sets value to Tags 20026 func (o *PrivateHost) SetTags(v types.Tags) { 20027 o.Tags = v 20028 } 20029 20030 // HasTag 指定のタグが存在する場合trueを返す 20031 func (o *PrivateHost) HasTag(tag string) bool { 20032 return accessor.HasTag(o, tag) 20033 } 20034 20035 // AppendTag 指定のタグを追加 20036 func (o *PrivateHost) AppendTag(tag string) { 20037 accessor.AppendTag(o, tag) 20038 } 20039 20040 // RemoveTag 指定のタグを削除 20041 func (o *PrivateHost) RemoveTag(tag string) { 20042 accessor.RemoveTag(o, tag) 20043 } 20044 20045 // ClearTags タグを全クリア 20046 func (o *PrivateHost) ClearTags() { 20047 accessor.ClearTags(o) 20048 } 20049 20050 // GetIconID returns value of IconID 20051 func (o *PrivateHost) GetIconID() types.ID { 20052 return o.IconID 20053 } 20054 20055 // SetIconID sets value to IconID 20056 func (o *PrivateHost) SetIconID(v types.ID) { 20057 o.IconID = v 20058 } 20059 20060 // GetCreatedAt returns value of CreatedAt 20061 func (o *PrivateHost) GetCreatedAt() time.Time { 20062 return o.CreatedAt 20063 } 20064 20065 // SetCreatedAt sets value to CreatedAt 20066 func (o *PrivateHost) SetCreatedAt(v time.Time) { 20067 o.CreatedAt = v 20068 } 20069 20070 // GetPlanID returns value of PlanID 20071 func (o *PrivateHost) GetPlanID() types.ID { 20072 return o.PlanID 20073 } 20074 20075 // SetPlanID sets value to PlanID 20076 func (o *PrivateHost) SetPlanID(v types.ID) { 20077 o.PlanID = v 20078 } 20079 20080 // GetPlanName returns value of PlanName 20081 func (o *PrivateHost) GetPlanName() string { 20082 return o.PlanName 20083 } 20084 20085 // SetPlanName sets value to PlanName 20086 func (o *PrivateHost) SetPlanName(v string) { 20087 o.PlanName = v 20088 } 20089 20090 // GetPlanClass returns value of PlanClass 20091 func (o *PrivateHost) GetPlanClass() string { 20092 return o.PlanClass 20093 } 20094 20095 // SetPlanClass sets value to PlanClass 20096 func (o *PrivateHost) SetPlanClass(v string) { 20097 o.PlanClass = v 20098 } 20099 20100 // GetCPU returns value of CPU 20101 func (o *PrivateHost) GetCPU() int { 20102 return o.CPU 20103 } 20104 20105 // SetCPU sets value to CPU 20106 func (o *PrivateHost) SetCPU(v int) { 20107 o.CPU = v 20108 } 20109 20110 // GetMemoryMB returns value of MemoryMB 20111 func (o *PrivateHost) GetMemoryMB() int { 20112 return o.MemoryMB 20113 } 20114 20115 // SetMemoryMB sets value to MemoryMB 20116 func (o *PrivateHost) SetMemoryMB(v int) { 20117 o.MemoryMB = v 20118 } 20119 20120 // GetMemoryGB . 20121 func (o *PrivateHost) GetMemoryGB() int { 20122 return accessor.GetMemoryGB(o) 20123 } 20124 20125 // SetMemoryGB . 20126 func (o *PrivateHost) SetMemoryGB(memory int) { 20127 accessor.SetMemoryGB(o, memory) 20128 } 20129 20130 // GetAssignedCPU returns value of AssignedCPU 20131 func (o *PrivateHost) GetAssignedCPU() int { 20132 return o.AssignedCPU 20133 } 20134 20135 // SetAssignedCPU sets value to AssignedCPU 20136 func (o *PrivateHost) SetAssignedCPU(v int) { 20137 o.AssignedCPU = v 20138 } 20139 20140 // GetAssignedMemoryMB returns value of AssignedMemoryMB 20141 func (o *PrivateHost) GetAssignedMemoryMB() int { 20142 return o.AssignedMemoryMB 20143 } 20144 20145 // SetAssignedMemoryMB sets value to AssignedMemoryMB 20146 func (o *PrivateHost) SetAssignedMemoryMB(v int) { 20147 o.AssignedMemoryMB = v 20148 } 20149 20150 // GetAssignedMemoryGB . 20151 func (o *PrivateHost) GetAssignedMemoryGB() int { 20152 return accessor.GetAssignedMemoryGB(o) 20153 } 20154 20155 // SetAssignedMemoryGB . 20156 func (o *PrivateHost) SetAssignedMemoryGB(memory int) { 20157 accessor.SetAssignedMemoryGB(o, memory) 20158 } 20159 20160 // GetHostName returns value of HostName 20161 func (o *PrivateHost) GetHostName() string { 20162 return o.HostName 20163 } 20164 20165 // SetHostName sets value to HostName 20166 func (o *PrivateHost) SetHostName(v string) { 20167 o.HostName = v 20168 } 20169 20170 /************************************************* 20171 * PrivateHostCreateRequest 20172 *************************************************/ 20173 20174 // PrivateHostCreateRequest represents API parameter/response structure 20175 type PrivateHostCreateRequest struct { 20176 Name string 20177 Description string 20178 Tags types.Tags 20179 IconID types.ID `mapconv:"Icon.ID"` 20180 PlanID types.ID `mapconv:"Plan.ID,omitempty"` 20181 } 20182 20183 // setDefaults implements iaas.argumentDefaulter 20184 func (o *PrivateHostCreateRequest) setDefaults() interface{} { 20185 return &struct { 20186 Name string 20187 Description string 20188 Tags types.Tags 20189 IconID types.ID `mapconv:"Icon.ID"` 20190 PlanID types.ID `mapconv:"Plan.ID,omitempty"` 20191 }{ 20192 Name: o.GetName(), 20193 Description: o.GetDescription(), 20194 Tags: o.GetTags(), 20195 IconID: o.GetIconID(), 20196 PlanID: o.GetPlanID(), 20197 } 20198 } 20199 20200 // GetName returns value of Name 20201 func (o *PrivateHostCreateRequest) GetName() string { 20202 return o.Name 20203 } 20204 20205 // SetName sets value to Name 20206 func (o *PrivateHostCreateRequest) SetName(v string) { 20207 o.Name = v 20208 } 20209 20210 // GetDescription returns value of Description 20211 func (o *PrivateHostCreateRequest) GetDescription() string { 20212 return o.Description 20213 } 20214 20215 // SetDescription sets value to Description 20216 func (o *PrivateHostCreateRequest) SetDescription(v string) { 20217 o.Description = v 20218 } 20219 20220 // GetTags returns value of Tags 20221 func (o *PrivateHostCreateRequest) GetTags() types.Tags { 20222 return o.Tags 20223 } 20224 20225 // SetTags sets value to Tags 20226 func (o *PrivateHostCreateRequest) SetTags(v types.Tags) { 20227 o.Tags = v 20228 } 20229 20230 // HasTag 指定のタグが存在する場合trueを返す 20231 func (o *PrivateHostCreateRequest) HasTag(tag string) bool { 20232 return accessor.HasTag(o, tag) 20233 } 20234 20235 // AppendTag 指定のタグを追加 20236 func (o *PrivateHostCreateRequest) AppendTag(tag string) { 20237 accessor.AppendTag(o, tag) 20238 } 20239 20240 // RemoveTag 指定のタグを削除 20241 func (o *PrivateHostCreateRequest) RemoveTag(tag string) { 20242 accessor.RemoveTag(o, tag) 20243 } 20244 20245 // ClearTags タグを全クリア 20246 func (o *PrivateHostCreateRequest) ClearTags() { 20247 accessor.ClearTags(o) 20248 } 20249 20250 // GetIconID returns value of IconID 20251 func (o *PrivateHostCreateRequest) GetIconID() types.ID { 20252 return o.IconID 20253 } 20254 20255 // SetIconID sets value to IconID 20256 func (o *PrivateHostCreateRequest) SetIconID(v types.ID) { 20257 o.IconID = v 20258 } 20259 20260 // GetPlanID returns value of PlanID 20261 func (o *PrivateHostCreateRequest) GetPlanID() types.ID { 20262 return o.PlanID 20263 } 20264 20265 // SetPlanID sets value to PlanID 20266 func (o *PrivateHostCreateRequest) SetPlanID(v types.ID) { 20267 o.PlanID = v 20268 } 20269 20270 /************************************************* 20271 * PrivateHostUpdateRequest 20272 *************************************************/ 20273 20274 // PrivateHostUpdateRequest represents API parameter/response structure 20275 type PrivateHostUpdateRequest struct { 20276 Name string 20277 Description string 20278 Tags types.Tags 20279 IconID types.ID `mapconv:"Icon.ID"` 20280 } 20281 20282 // setDefaults implements iaas.argumentDefaulter 20283 func (o *PrivateHostUpdateRequest) setDefaults() interface{} { 20284 return &struct { 20285 Name string 20286 Description string 20287 Tags types.Tags 20288 IconID types.ID `mapconv:"Icon.ID"` 20289 }{ 20290 Name: o.GetName(), 20291 Description: o.GetDescription(), 20292 Tags: o.GetTags(), 20293 IconID: o.GetIconID(), 20294 } 20295 } 20296 20297 // GetName returns value of Name 20298 func (o *PrivateHostUpdateRequest) GetName() string { 20299 return o.Name 20300 } 20301 20302 // SetName sets value to Name 20303 func (o *PrivateHostUpdateRequest) SetName(v string) { 20304 o.Name = v 20305 } 20306 20307 // GetDescription returns value of Description 20308 func (o *PrivateHostUpdateRequest) GetDescription() string { 20309 return o.Description 20310 } 20311 20312 // SetDescription sets value to Description 20313 func (o *PrivateHostUpdateRequest) SetDescription(v string) { 20314 o.Description = v 20315 } 20316 20317 // GetTags returns value of Tags 20318 func (o *PrivateHostUpdateRequest) GetTags() types.Tags { 20319 return o.Tags 20320 } 20321 20322 // SetTags sets value to Tags 20323 func (o *PrivateHostUpdateRequest) SetTags(v types.Tags) { 20324 o.Tags = v 20325 } 20326 20327 // HasTag 指定のタグが存在する場合trueを返す 20328 func (o *PrivateHostUpdateRequest) HasTag(tag string) bool { 20329 return accessor.HasTag(o, tag) 20330 } 20331 20332 // AppendTag 指定のタグを追加 20333 func (o *PrivateHostUpdateRequest) AppendTag(tag string) { 20334 accessor.AppendTag(o, tag) 20335 } 20336 20337 // RemoveTag 指定のタグを削除 20338 func (o *PrivateHostUpdateRequest) RemoveTag(tag string) { 20339 accessor.RemoveTag(o, tag) 20340 } 20341 20342 // ClearTags タグを全クリア 20343 func (o *PrivateHostUpdateRequest) ClearTags() { 20344 accessor.ClearTags(o) 20345 } 20346 20347 // GetIconID returns value of IconID 20348 func (o *PrivateHostUpdateRequest) GetIconID() types.ID { 20349 return o.IconID 20350 } 20351 20352 // SetIconID sets value to IconID 20353 func (o *PrivateHostUpdateRequest) SetIconID(v types.ID) { 20354 o.IconID = v 20355 } 20356 20357 /************************************************* 20358 * PrivateHostPlan 20359 *************************************************/ 20360 20361 // PrivateHostPlan represents API parameter/response structure 20362 type PrivateHostPlan struct { 20363 ID types.ID 20364 Name string 20365 Class string 20366 CPU int 20367 MemoryMB int 20368 Availability types.EAvailability 20369 } 20370 20371 // setDefaults implements iaas.argumentDefaulter 20372 func (o *PrivateHostPlan) setDefaults() interface{} { 20373 return &struct { 20374 ID types.ID 20375 Name string 20376 Class string 20377 CPU int 20378 MemoryMB int 20379 Availability types.EAvailability 20380 }{ 20381 ID: o.GetID(), 20382 Name: o.GetName(), 20383 Class: o.GetClass(), 20384 CPU: o.GetCPU(), 20385 MemoryMB: o.GetMemoryMB(), 20386 Availability: o.GetAvailability(), 20387 } 20388 } 20389 20390 // GetID returns value of ID 20391 func (o *PrivateHostPlan) GetID() types.ID { 20392 return o.ID 20393 } 20394 20395 // SetID sets value to ID 20396 func (o *PrivateHostPlan) SetID(v types.ID) { 20397 o.ID = v 20398 } 20399 20400 // SetStringID . 20401 func (o *PrivateHostPlan) SetStringID(id string) { 20402 accessor.SetStringID(o, id) 20403 } 20404 20405 // GetStringID . 20406 func (o *PrivateHostPlan) GetStringID() string { 20407 return accessor.GetStringID(o) 20408 } 20409 20410 // SetInt64ID . 20411 func (o *PrivateHostPlan) SetInt64ID(id int64) { 20412 accessor.SetInt64ID(o, id) 20413 } 20414 20415 // GetInt64ID . 20416 func (o *PrivateHostPlan) GetInt64ID() int64 { 20417 return accessor.GetInt64ID(o) 20418 } 20419 20420 // GetName returns value of Name 20421 func (o *PrivateHostPlan) GetName() string { 20422 return o.Name 20423 } 20424 20425 // SetName sets value to Name 20426 func (o *PrivateHostPlan) SetName(v string) { 20427 o.Name = v 20428 } 20429 20430 // GetClass returns value of Class 20431 func (o *PrivateHostPlan) GetClass() string { 20432 return o.Class 20433 } 20434 20435 // SetClass sets value to Class 20436 func (o *PrivateHostPlan) SetClass(v string) { 20437 o.Class = v 20438 } 20439 20440 // GetCPU returns value of CPU 20441 func (o *PrivateHostPlan) GetCPU() int { 20442 return o.CPU 20443 } 20444 20445 // SetCPU sets value to CPU 20446 func (o *PrivateHostPlan) SetCPU(v int) { 20447 o.CPU = v 20448 } 20449 20450 // GetMemoryMB returns value of MemoryMB 20451 func (o *PrivateHostPlan) GetMemoryMB() int { 20452 return o.MemoryMB 20453 } 20454 20455 // SetMemoryMB sets value to MemoryMB 20456 func (o *PrivateHostPlan) SetMemoryMB(v int) { 20457 o.MemoryMB = v 20458 } 20459 20460 // GetMemoryGB . 20461 func (o *PrivateHostPlan) GetMemoryGB() int { 20462 return accessor.GetMemoryGB(o) 20463 } 20464 20465 // SetMemoryGB . 20466 func (o *PrivateHostPlan) SetMemoryGB(memory int) { 20467 accessor.SetMemoryGB(o, memory) 20468 } 20469 20470 // GetAvailability returns value of Availability 20471 func (o *PrivateHostPlan) GetAvailability() types.EAvailability { 20472 return o.Availability 20473 } 20474 20475 // SetAvailability sets value to Availability 20476 func (o *PrivateHostPlan) SetAvailability(v types.EAvailability) { 20477 o.Availability = v 20478 } 20479 20480 /************************************************* 20481 * ProxyLB 20482 *************************************************/ 20483 20484 // ProxyLB represents API parameter/response structure 20485 type ProxyLB struct { 20486 ID types.ID 20487 Name string 20488 Description string 20489 Tags types.Tags 20490 Availability types.EAvailability 20491 IconID types.ID `mapconv:"Icon.ID"` 20492 CreatedAt time.Time 20493 ModifiedAt time.Time 20494 Plan types.EProxyLBPlan 20495 HealthCheck *ProxyLBHealthCheck `mapconv:"Settings.ProxyLB.HealthCheck,recursive"` 20496 SorryServer *ProxyLBSorryServer `mapconv:"Settings.ProxyLB.SorryServer,recursive"` 20497 BindPorts []*ProxyLBBindPort `mapconv:"Settings.ProxyLB.[]BindPorts,recursive"` 20498 Servers []*ProxyLBServer `mapconv:"Settings.ProxyLB.[]Servers,recursive"` 20499 Rules []*ProxyLBRule `mapconv:"Settings.ProxyLB.[]Rules,recursive"` 20500 LetsEncrypt *ProxyLBACMESetting `mapconv:"Settings.ProxyLB.LetsEncrypt,recursive"` 20501 StickySession *ProxyLBStickySession `mapconv:"Settings.ProxyLB.StickySession,recursive"` 20502 Gzip *ProxyLBGzip `mapconv:"Settings.ProxyLB.Gzip,recursive"` 20503 BackendHttpKeepAlive *ProxyLBBackendHttpKeepAlive `mapconv:"Settings.ProxyLB.BackendHttpKeepAlive,recursive"` 20504 ProxyProtocol *ProxyLBProxyProtocol `mapconv:"Settings.ProxyLB.ProxyProtocol,recursive"` 20505 Syslog *ProxyLBSyslog `mapconv:"Settings.ProxyLB.Syslog,recursive"` 20506 Timeout *ProxyLBTimeout `json:",omitempty" mapconv:"Settings.ProxyLB.Timeout,recursive,omitempty"` 20507 SettingsHash string `json:",omitempty" mapconv:",omitempty"` 20508 UseVIPFailover bool `mapconv:"Status.UseVIPFailover"` 20509 Region types.EProxyLBRegion `mapconv:"Status.Region"` 20510 ProxyNetworks []string `mapconv:"Status.ProxyNetworks"` 20511 FQDN string `mapconv:"Status.FQDN"` 20512 VirtualIPAddress string `mapconv:"Status.VirtualIPAddress"` 20513 } 20514 20515 // setDefaults implements iaas.argumentDefaulter 20516 func (o *ProxyLB) setDefaults() interface{} { 20517 return &struct { 20518 ID types.ID 20519 Name string 20520 Description string 20521 Tags types.Tags 20522 Availability types.EAvailability 20523 IconID types.ID `mapconv:"Icon.ID"` 20524 CreatedAt time.Time 20525 ModifiedAt time.Time 20526 Plan types.EProxyLBPlan 20527 HealthCheck *ProxyLBHealthCheck `mapconv:"Settings.ProxyLB.HealthCheck,recursive"` 20528 SorryServer *ProxyLBSorryServer `mapconv:"Settings.ProxyLB.SorryServer,recursive"` 20529 BindPorts []*ProxyLBBindPort `mapconv:"Settings.ProxyLB.[]BindPorts,recursive"` 20530 Servers []*ProxyLBServer `mapconv:"Settings.ProxyLB.[]Servers,recursive"` 20531 Rules []*ProxyLBRule `mapconv:"Settings.ProxyLB.[]Rules,recursive"` 20532 LetsEncrypt *ProxyLBACMESetting `mapconv:"Settings.ProxyLB.LetsEncrypt,recursive"` 20533 StickySession *ProxyLBStickySession `mapconv:"Settings.ProxyLB.StickySession,recursive"` 20534 Gzip *ProxyLBGzip `mapconv:"Settings.ProxyLB.Gzip,recursive"` 20535 BackendHttpKeepAlive *ProxyLBBackendHttpKeepAlive `mapconv:"Settings.ProxyLB.BackendHttpKeepAlive,recursive"` 20536 ProxyProtocol *ProxyLBProxyProtocol `mapconv:"Settings.ProxyLB.ProxyProtocol,recursive"` 20537 Syslog *ProxyLBSyslog `mapconv:"Settings.ProxyLB.Syslog,recursive"` 20538 Timeout *ProxyLBTimeout `json:",omitempty" mapconv:"Settings.ProxyLB.Timeout,recursive,omitempty"` 20539 SettingsHash string `json:",omitempty" mapconv:",omitempty"` 20540 UseVIPFailover bool `mapconv:"Status.UseVIPFailover"` 20541 Region types.EProxyLBRegion `mapconv:"Status.Region"` 20542 ProxyNetworks []string `mapconv:"Status.ProxyNetworks"` 20543 FQDN string `mapconv:"Status.FQDN"` 20544 VirtualIPAddress string `mapconv:"Status.VirtualIPAddress"` 20545 }{ 20546 ID: o.GetID(), 20547 Name: o.GetName(), 20548 Description: o.GetDescription(), 20549 Tags: o.GetTags(), 20550 Availability: o.GetAvailability(), 20551 IconID: o.GetIconID(), 20552 CreatedAt: o.GetCreatedAt(), 20553 ModifiedAt: o.GetModifiedAt(), 20554 Plan: o.GetPlan(), 20555 HealthCheck: o.GetHealthCheck(), 20556 SorryServer: o.GetSorryServer(), 20557 BindPorts: o.GetBindPorts(), 20558 Servers: o.GetServers(), 20559 Rules: o.GetRules(), 20560 LetsEncrypt: o.GetLetsEncrypt(), 20561 StickySession: o.GetStickySession(), 20562 Gzip: o.GetGzip(), 20563 BackendHttpKeepAlive: o.GetBackendHttpKeepAlive(), 20564 ProxyProtocol: o.GetProxyProtocol(), 20565 Syslog: o.GetSyslog(), 20566 Timeout: o.GetTimeout(), 20567 SettingsHash: o.GetSettingsHash(), 20568 UseVIPFailover: o.GetUseVIPFailover(), 20569 Region: o.GetRegion(), 20570 ProxyNetworks: o.GetProxyNetworks(), 20571 FQDN: o.GetFQDN(), 20572 VirtualIPAddress: o.GetVirtualIPAddress(), 20573 } 20574 } 20575 20576 // GetID returns value of ID 20577 func (o *ProxyLB) GetID() types.ID { 20578 return o.ID 20579 } 20580 20581 // SetID sets value to ID 20582 func (o *ProxyLB) SetID(v types.ID) { 20583 o.ID = v 20584 } 20585 20586 // SetStringID . 20587 func (o *ProxyLB) SetStringID(id string) { 20588 accessor.SetStringID(o, id) 20589 } 20590 20591 // GetStringID . 20592 func (o *ProxyLB) GetStringID() string { 20593 return accessor.GetStringID(o) 20594 } 20595 20596 // SetInt64ID . 20597 func (o *ProxyLB) SetInt64ID(id int64) { 20598 accessor.SetInt64ID(o, id) 20599 } 20600 20601 // GetInt64ID . 20602 func (o *ProxyLB) GetInt64ID() int64 { 20603 return accessor.GetInt64ID(o) 20604 } 20605 20606 // GetName returns value of Name 20607 func (o *ProxyLB) GetName() string { 20608 return o.Name 20609 } 20610 20611 // SetName sets value to Name 20612 func (o *ProxyLB) SetName(v string) { 20613 o.Name = v 20614 } 20615 20616 // GetDescription returns value of Description 20617 func (o *ProxyLB) GetDescription() string { 20618 return o.Description 20619 } 20620 20621 // SetDescription sets value to Description 20622 func (o *ProxyLB) SetDescription(v string) { 20623 o.Description = v 20624 } 20625 20626 // GetTags returns value of Tags 20627 func (o *ProxyLB) GetTags() types.Tags { 20628 return o.Tags 20629 } 20630 20631 // SetTags sets value to Tags 20632 func (o *ProxyLB) SetTags(v types.Tags) { 20633 o.Tags = v 20634 } 20635 20636 // HasTag 指定のタグが存在する場合trueを返す 20637 func (o *ProxyLB) HasTag(tag string) bool { 20638 return accessor.HasTag(o, tag) 20639 } 20640 20641 // AppendTag 指定のタグを追加 20642 func (o *ProxyLB) AppendTag(tag string) { 20643 accessor.AppendTag(o, tag) 20644 } 20645 20646 // RemoveTag 指定のタグを削除 20647 func (o *ProxyLB) RemoveTag(tag string) { 20648 accessor.RemoveTag(o, tag) 20649 } 20650 20651 // ClearTags タグを全クリア 20652 func (o *ProxyLB) ClearTags() { 20653 accessor.ClearTags(o) 20654 } 20655 20656 // GetAvailability returns value of Availability 20657 func (o *ProxyLB) GetAvailability() types.EAvailability { 20658 return o.Availability 20659 } 20660 20661 // SetAvailability sets value to Availability 20662 func (o *ProxyLB) SetAvailability(v types.EAvailability) { 20663 o.Availability = v 20664 } 20665 20666 // GetIconID returns value of IconID 20667 func (o *ProxyLB) GetIconID() types.ID { 20668 return o.IconID 20669 } 20670 20671 // SetIconID sets value to IconID 20672 func (o *ProxyLB) SetIconID(v types.ID) { 20673 o.IconID = v 20674 } 20675 20676 // GetCreatedAt returns value of CreatedAt 20677 func (o *ProxyLB) GetCreatedAt() time.Time { 20678 return o.CreatedAt 20679 } 20680 20681 // SetCreatedAt sets value to CreatedAt 20682 func (o *ProxyLB) SetCreatedAt(v time.Time) { 20683 o.CreatedAt = v 20684 } 20685 20686 // GetModifiedAt returns value of ModifiedAt 20687 func (o *ProxyLB) GetModifiedAt() time.Time { 20688 return o.ModifiedAt 20689 } 20690 20691 // SetModifiedAt sets value to ModifiedAt 20692 func (o *ProxyLB) SetModifiedAt(v time.Time) { 20693 o.ModifiedAt = v 20694 } 20695 20696 // GetPlan returns value of Plan 20697 func (o *ProxyLB) GetPlan() types.EProxyLBPlan { 20698 return o.Plan 20699 } 20700 20701 // SetPlan sets value to Plan 20702 func (o *ProxyLB) SetPlan(v types.EProxyLBPlan) { 20703 o.Plan = v 20704 } 20705 20706 // GetHealthCheck returns value of HealthCheck 20707 func (o *ProxyLB) GetHealthCheck() *ProxyLBHealthCheck { 20708 return o.HealthCheck 20709 } 20710 20711 // SetHealthCheck sets value to HealthCheck 20712 func (o *ProxyLB) SetHealthCheck(v *ProxyLBHealthCheck) { 20713 o.HealthCheck = v 20714 } 20715 20716 // GetSorryServer returns value of SorryServer 20717 func (o *ProxyLB) GetSorryServer() *ProxyLBSorryServer { 20718 return o.SorryServer 20719 } 20720 20721 // SetSorryServer sets value to SorryServer 20722 func (o *ProxyLB) SetSorryServer(v *ProxyLBSorryServer) { 20723 o.SorryServer = v 20724 } 20725 20726 // GetBindPorts returns value of BindPorts 20727 func (o *ProxyLB) GetBindPorts() []*ProxyLBBindPort { 20728 return o.BindPorts 20729 } 20730 20731 // SetBindPorts sets value to BindPorts 20732 func (o *ProxyLB) SetBindPorts(v []*ProxyLBBindPort) { 20733 o.BindPorts = v 20734 } 20735 20736 // GetServers returns value of Servers 20737 func (o *ProxyLB) GetServers() []*ProxyLBServer { 20738 return o.Servers 20739 } 20740 20741 // SetServers sets value to Servers 20742 func (o *ProxyLB) SetServers(v []*ProxyLBServer) { 20743 o.Servers = v 20744 } 20745 20746 // GetRules returns value of Rules 20747 func (o *ProxyLB) GetRules() []*ProxyLBRule { 20748 return o.Rules 20749 } 20750 20751 // SetRules sets value to Rules 20752 func (o *ProxyLB) SetRules(v []*ProxyLBRule) { 20753 o.Rules = v 20754 } 20755 20756 // GetLetsEncrypt returns value of LetsEncrypt 20757 func (o *ProxyLB) GetLetsEncrypt() *ProxyLBACMESetting { 20758 return o.LetsEncrypt 20759 } 20760 20761 // SetLetsEncrypt sets value to LetsEncrypt 20762 func (o *ProxyLB) SetLetsEncrypt(v *ProxyLBACMESetting) { 20763 o.LetsEncrypt = v 20764 } 20765 20766 // GetStickySession returns value of StickySession 20767 func (o *ProxyLB) GetStickySession() *ProxyLBStickySession { 20768 return o.StickySession 20769 } 20770 20771 // SetStickySession sets value to StickySession 20772 func (o *ProxyLB) SetStickySession(v *ProxyLBStickySession) { 20773 o.StickySession = v 20774 } 20775 20776 // GetGzip returns value of Gzip 20777 func (o *ProxyLB) GetGzip() *ProxyLBGzip { 20778 return o.Gzip 20779 } 20780 20781 // SetGzip sets value to Gzip 20782 func (o *ProxyLB) SetGzip(v *ProxyLBGzip) { 20783 o.Gzip = v 20784 } 20785 20786 // GetBackendHttpKeepAlive returns value of BackendHttpKeepAlive 20787 func (o *ProxyLB) GetBackendHttpKeepAlive() *ProxyLBBackendHttpKeepAlive { 20788 return o.BackendHttpKeepAlive 20789 } 20790 20791 // SetBackendHttpKeepAlive sets value to BackendHttpKeepAlive 20792 func (o *ProxyLB) SetBackendHttpKeepAlive(v *ProxyLBBackendHttpKeepAlive) { 20793 o.BackendHttpKeepAlive = v 20794 } 20795 20796 // GetProxyProtocol returns value of ProxyProtocol 20797 func (o *ProxyLB) GetProxyProtocol() *ProxyLBProxyProtocol { 20798 return o.ProxyProtocol 20799 } 20800 20801 // SetProxyProtocol sets value to ProxyProtocol 20802 func (o *ProxyLB) SetProxyProtocol(v *ProxyLBProxyProtocol) { 20803 o.ProxyProtocol = v 20804 } 20805 20806 // GetSyslog returns value of Syslog 20807 func (o *ProxyLB) GetSyslog() *ProxyLBSyslog { 20808 return o.Syslog 20809 } 20810 20811 // SetSyslog sets value to Syslog 20812 func (o *ProxyLB) SetSyslog(v *ProxyLBSyslog) { 20813 o.Syslog = v 20814 } 20815 20816 // GetTimeout returns value of Timeout 20817 func (o *ProxyLB) GetTimeout() *ProxyLBTimeout { 20818 return o.Timeout 20819 } 20820 20821 // SetTimeout sets value to Timeout 20822 func (o *ProxyLB) SetTimeout(v *ProxyLBTimeout) { 20823 o.Timeout = v 20824 } 20825 20826 // GetSettingsHash returns value of SettingsHash 20827 func (o *ProxyLB) GetSettingsHash() string { 20828 return o.SettingsHash 20829 } 20830 20831 // SetSettingsHash sets value to SettingsHash 20832 func (o *ProxyLB) SetSettingsHash(v string) { 20833 o.SettingsHash = v 20834 } 20835 20836 // GetUseVIPFailover returns value of UseVIPFailover 20837 func (o *ProxyLB) GetUseVIPFailover() bool { 20838 return o.UseVIPFailover 20839 } 20840 20841 // SetUseVIPFailover sets value to UseVIPFailover 20842 func (o *ProxyLB) SetUseVIPFailover(v bool) { 20843 o.UseVIPFailover = v 20844 } 20845 20846 // GetRegion returns value of Region 20847 func (o *ProxyLB) GetRegion() types.EProxyLBRegion { 20848 return o.Region 20849 } 20850 20851 // SetRegion sets value to Region 20852 func (o *ProxyLB) SetRegion(v types.EProxyLBRegion) { 20853 o.Region = v 20854 } 20855 20856 // GetProxyNetworks returns value of ProxyNetworks 20857 func (o *ProxyLB) GetProxyNetworks() []string { 20858 return o.ProxyNetworks 20859 } 20860 20861 // SetProxyNetworks sets value to ProxyNetworks 20862 func (o *ProxyLB) SetProxyNetworks(v []string) { 20863 o.ProxyNetworks = v 20864 } 20865 20866 // GetFQDN returns value of FQDN 20867 func (o *ProxyLB) GetFQDN() string { 20868 return o.FQDN 20869 } 20870 20871 // SetFQDN sets value to FQDN 20872 func (o *ProxyLB) SetFQDN(v string) { 20873 o.FQDN = v 20874 } 20875 20876 // GetVirtualIPAddress returns value of VirtualIPAddress 20877 func (o *ProxyLB) GetVirtualIPAddress() string { 20878 return o.VirtualIPAddress 20879 } 20880 20881 // SetVirtualIPAddress sets value to VirtualIPAddress 20882 func (o *ProxyLB) SetVirtualIPAddress(v string) { 20883 o.VirtualIPAddress = v 20884 } 20885 20886 /************************************************* 20887 * ProxyLBHealthCheck 20888 *************************************************/ 20889 20890 // ProxyLBHealthCheck represents API parameter/response structure 20891 type ProxyLBHealthCheck struct { 20892 Protocol types.EProxyLBHealthCheckProtocol 20893 Path string 20894 Host string 20895 DelayLoop int 20896 } 20897 20898 // setDefaults implements iaas.argumentDefaulter 20899 func (o *ProxyLBHealthCheck) setDefaults() interface{} { 20900 return &struct { 20901 Protocol types.EProxyLBHealthCheckProtocol 20902 Path string 20903 Host string 20904 DelayLoop int 20905 }{ 20906 Protocol: o.GetProtocol(), 20907 Path: o.GetPath(), 20908 Host: o.GetHost(), 20909 DelayLoop: o.GetDelayLoop(), 20910 } 20911 } 20912 20913 // GetProtocol returns value of Protocol 20914 func (o *ProxyLBHealthCheck) GetProtocol() types.EProxyLBHealthCheckProtocol { 20915 return o.Protocol 20916 } 20917 20918 // SetProtocol sets value to Protocol 20919 func (o *ProxyLBHealthCheck) SetProtocol(v types.EProxyLBHealthCheckProtocol) { 20920 o.Protocol = v 20921 } 20922 20923 // GetPath returns value of Path 20924 func (o *ProxyLBHealthCheck) GetPath() string { 20925 return o.Path 20926 } 20927 20928 // SetPath sets value to Path 20929 func (o *ProxyLBHealthCheck) SetPath(v string) { 20930 o.Path = v 20931 } 20932 20933 // GetHost returns value of Host 20934 func (o *ProxyLBHealthCheck) GetHost() string { 20935 return o.Host 20936 } 20937 20938 // SetHost sets value to Host 20939 func (o *ProxyLBHealthCheck) SetHost(v string) { 20940 o.Host = v 20941 } 20942 20943 // GetDelayLoop returns value of DelayLoop 20944 func (o *ProxyLBHealthCheck) GetDelayLoop() int { 20945 return o.DelayLoop 20946 } 20947 20948 // SetDelayLoop sets value to DelayLoop 20949 func (o *ProxyLBHealthCheck) SetDelayLoop(v int) { 20950 o.DelayLoop = v 20951 } 20952 20953 /************************************************* 20954 * ProxyLBSorryServer 20955 *************************************************/ 20956 20957 // ProxyLBSorryServer represents API parameter/response structure 20958 type ProxyLBSorryServer struct { 20959 IPAddress string 20960 Port int `mapconv:",omitempty"` 20961 } 20962 20963 // setDefaults implements iaas.argumentDefaulter 20964 func (o *ProxyLBSorryServer) setDefaults() interface{} { 20965 return &struct { 20966 IPAddress string 20967 Port int `mapconv:",omitempty"` 20968 }{ 20969 IPAddress: o.GetIPAddress(), 20970 Port: o.GetPort(), 20971 } 20972 } 20973 20974 // GetIPAddress returns value of IPAddress 20975 func (o *ProxyLBSorryServer) GetIPAddress() string { 20976 return o.IPAddress 20977 } 20978 20979 // SetIPAddress sets value to IPAddress 20980 func (o *ProxyLBSorryServer) SetIPAddress(v string) { 20981 o.IPAddress = v 20982 } 20983 20984 // GetPort returns value of Port 20985 func (o *ProxyLBSorryServer) GetPort() int { 20986 return o.Port 20987 } 20988 20989 // SetPort sets value to Port 20990 func (o *ProxyLBSorryServer) SetPort(v int) { 20991 o.Port = v 20992 } 20993 20994 /************************************************* 20995 * ProxyLBBindPort 20996 *************************************************/ 20997 20998 // ProxyLBBindPort represents API parameter/response structure 20999 type ProxyLBBindPort struct { 21000 ProxyMode types.EProxyLBProxyMode 21001 Port int 21002 RedirectToHTTPS bool 21003 SupportHTTP2 bool 21004 AddResponseHeader []*ProxyLBResponseHeader `mapconv:"[]AddResponseHeader,recursive"` 21005 SSLPolicy string 21006 } 21007 21008 // setDefaults implements iaas.argumentDefaulter 21009 func (o *ProxyLBBindPort) setDefaults() interface{} { 21010 return &struct { 21011 ProxyMode types.EProxyLBProxyMode 21012 Port int 21013 RedirectToHTTPS bool 21014 SupportHTTP2 bool 21015 AddResponseHeader []*ProxyLBResponseHeader `mapconv:"[]AddResponseHeader,recursive"` 21016 SSLPolicy string 21017 }{ 21018 ProxyMode: o.GetProxyMode(), 21019 Port: o.GetPort(), 21020 RedirectToHTTPS: o.GetRedirectToHTTPS(), 21021 SupportHTTP2: o.GetSupportHTTP2(), 21022 AddResponseHeader: o.GetAddResponseHeader(), 21023 SSLPolicy: o.GetSSLPolicy(), 21024 } 21025 } 21026 21027 // GetProxyMode returns value of ProxyMode 21028 func (o *ProxyLBBindPort) GetProxyMode() types.EProxyLBProxyMode { 21029 return o.ProxyMode 21030 } 21031 21032 // SetProxyMode sets value to ProxyMode 21033 func (o *ProxyLBBindPort) SetProxyMode(v types.EProxyLBProxyMode) { 21034 o.ProxyMode = v 21035 } 21036 21037 // GetPort returns value of Port 21038 func (o *ProxyLBBindPort) GetPort() int { 21039 return o.Port 21040 } 21041 21042 // SetPort sets value to Port 21043 func (o *ProxyLBBindPort) SetPort(v int) { 21044 o.Port = v 21045 } 21046 21047 // GetRedirectToHTTPS returns value of RedirectToHTTPS 21048 func (o *ProxyLBBindPort) GetRedirectToHTTPS() bool { 21049 return o.RedirectToHTTPS 21050 } 21051 21052 // SetRedirectToHTTPS sets value to RedirectToHTTPS 21053 func (o *ProxyLBBindPort) SetRedirectToHTTPS(v bool) { 21054 o.RedirectToHTTPS = v 21055 } 21056 21057 // GetSupportHTTP2 returns value of SupportHTTP2 21058 func (o *ProxyLBBindPort) GetSupportHTTP2() bool { 21059 return o.SupportHTTP2 21060 } 21061 21062 // SetSupportHTTP2 sets value to SupportHTTP2 21063 func (o *ProxyLBBindPort) SetSupportHTTP2(v bool) { 21064 o.SupportHTTP2 = v 21065 } 21066 21067 // GetAddResponseHeader returns value of AddResponseHeader 21068 func (o *ProxyLBBindPort) GetAddResponseHeader() []*ProxyLBResponseHeader { 21069 return o.AddResponseHeader 21070 } 21071 21072 // SetAddResponseHeader sets value to AddResponseHeader 21073 func (o *ProxyLBBindPort) SetAddResponseHeader(v []*ProxyLBResponseHeader) { 21074 o.AddResponseHeader = v 21075 } 21076 21077 // GetSSLPolicy returns value of SSLPolicy 21078 func (o *ProxyLBBindPort) GetSSLPolicy() string { 21079 return o.SSLPolicy 21080 } 21081 21082 // SetSSLPolicy sets value to SSLPolicy 21083 func (o *ProxyLBBindPort) SetSSLPolicy(v string) { 21084 o.SSLPolicy = v 21085 } 21086 21087 /************************************************* 21088 * ProxyLBResponseHeader 21089 *************************************************/ 21090 21091 // ProxyLBResponseHeader represents API parameter/response structure 21092 type ProxyLBResponseHeader struct { 21093 Header string 21094 Value string 21095 } 21096 21097 // setDefaults implements iaas.argumentDefaulter 21098 func (o *ProxyLBResponseHeader) setDefaults() interface{} { 21099 return &struct { 21100 Header string 21101 Value string 21102 }{ 21103 Header: o.GetHeader(), 21104 Value: o.GetValue(), 21105 } 21106 } 21107 21108 // GetHeader returns value of Header 21109 func (o *ProxyLBResponseHeader) GetHeader() string { 21110 return o.Header 21111 } 21112 21113 // SetHeader sets value to Header 21114 func (o *ProxyLBResponseHeader) SetHeader(v string) { 21115 o.Header = v 21116 } 21117 21118 // GetValue returns value of Value 21119 func (o *ProxyLBResponseHeader) GetValue() string { 21120 return o.Value 21121 } 21122 21123 // SetValue sets value to Value 21124 func (o *ProxyLBResponseHeader) SetValue(v string) { 21125 o.Value = v 21126 } 21127 21128 /************************************************* 21129 * ProxyLBServer 21130 *************************************************/ 21131 21132 // ProxyLBServer represents API parameter/response structure 21133 type ProxyLBServer struct { 21134 IPAddress string 21135 Port int 21136 ServerGroup string 21137 Enabled bool 21138 } 21139 21140 // setDefaults implements iaas.argumentDefaulter 21141 func (o *ProxyLBServer) setDefaults() interface{} { 21142 return &struct { 21143 IPAddress string 21144 Port int 21145 ServerGroup string 21146 Enabled bool 21147 }{ 21148 IPAddress: o.GetIPAddress(), 21149 Port: o.GetPort(), 21150 ServerGroup: o.GetServerGroup(), 21151 Enabled: o.GetEnabled(), 21152 } 21153 } 21154 21155 // GetIPAddress returns value of IPAddress 21156 func (o *ProxyLBServer) GetIPAddress() string { 21157 return o.IPAddress 21158 } 21159 21160 // SetIPAddress sets value to IPAddress 21161 func (o *ProxyLBServer) SetIPAddress(v string) { 21162 o.IPAddress = v 21163 } 21164 21165 // GetPort returns value of Port 21166 func (o *ProxyLBServer) GetPort() int { 21167 return o.Port 21168 } 21169 21170 // SetPort sets value to Port 21171 func (o *ProxyLBServer) SetPort(v int) { 21172 o.Port = v 21173 } 21174 21175 // GetServerGroup returns value of ServerGroup 21176 func (o *ProxyLBServer) GetServerGroup() string { 21177 return o.ServerGroup 21178 } 21179 21180 // SetServerGroup sets value to ServerGroup 21181 func (o *ProxyLBServer) SetServerGroup(v string) { 21182 o.ServerGroup = v 21183 } 21184 21185 // GetEnabled returns value of Enabled 21186 func (o *ProxyLBServer) GetEnabled() bool { 21187 return o.Enabled 21188 } 21189 21190 // SetEnabled sets value to Enabled 21191 func (o *ProxyLBServer) SetEnabled(v bool) { 21192 o.Enabled = v 21193 } 21194 21195 /************************************************* 21196 * ProxyLBRule 21197 *************************************************/ 21198 21199 // ProxyLBRule represents API parameter/response structure 21200 type ProxyLBRule struct { 21201 Host string 21202 Path string 21203 SourceIPs string 21204 RequestHeaderName string 21205 RequestHeaderValue string 21206 RequestHeaderValueIgnoreCase bool 21207 RequestHeaderValueNotMatch bool 21208 ServerGroup string `json:",omitempty" mapconv:",omitempty"` 21209 Action types.EProxyLBRuleAction `json:",omitempty" mapconv:",omitempty"` 21210 RedirectLocation string `json:",omitempty" mapconv:",omitempty"` 21211 RedirectStatusCode types.EProxyLBRedirectStatusCode `json:",omitempty" mapconv:",omitempty"` 21212 FixedStatusCode types.EProxyLBFixedStatusCode `json:",omitempty" mapconv:",omitempty"` 21213 FixedContentType types.EProxyLBFixedContentType `json:",omitempty" mapconv:",omitempty"` 21214 FixedMessageBody string `json:",omitempty" mapconv:",omitempty"` 21215 } 21216 21217 // setDefaults implements iaas.argumentDefaulter 21218 func (o *ProxyLBRule) setDefaults() interface{} { 21219 return &struct { 21220 Host string 21221 Path string 21222 SourceIPs string 21223 RequestHeaderName string 21224 RequestHeaderValue string 21225 RequestHeaderValueIgnoreCase bool 21226 RequestHeaderValueNotMatch bool 21227 ServerGroup string `json:",omitempty" mapconv:",omitempty"` 21228 Action types.EProxyLBRuleAction `json:",omitempty" mapconv:",omitempty"` 21229 RedirectLocation string `json:",omitempty" mapconv:",omitempty"` 21230 RedirectStatusCode types.EProxyLBRedirectStatusCode `json:",omitempty" mapconv:",omitempty"` 21231 FixedStatusCode types.EProxyLBFixedStatusCode `json:",omitempty" mapconv:",omitempty"` 21232 FixedContentType types.EProxyLBFixedContentType `json:",omitempty" mapconv:",omitempty"` 21233 FixedMessageBody string `json:",omitempty" mapconv:",omitempty"` 21234 }{ 21235 Host: o.GetHost(), 21236 Path: o.GetPath(), 21237 SourceIPs: o.GetSourceIPs(), 21238 RequestHeaderName: o.GetRequestHeaderName(), 21239 RequestHeaderValue: o.GetRequestHeaderValue(), 21240 RequestHeaderValueIgnoreCase: o.GetRequestHeaderValueIgnoreCase(), 21241 RequestHeaderValueNotMatch: o.GetRequestHeaderValueNotMatch(), 21242 ServerGroup: o.GetServerGroup(), 21243 Action: o.GetAction(), 21244 RedirectLocation: o.GetRedirectLocation(), 21245 RedirectStatusCode: o.GetRedirectStatusCode(), 21246 FixedStatusCode: o.GetFixedStatusCode(), 21247 FixedContentType: o.GetFixedContentType(), 21248 FixedMessageBody: o.GetFixedMessageBody(), 21249 } 21250 } 21251 21252 // GetHost returns value of Host 21253 func (o *ProxyLBRule) GetHost() string { 21254 return o.Host 21255 } 21256 21257 // SetHost sets value to Host 21258 func (o *ProxyLBRule) SetHost(v string) { 21259 o.Host = v 21260 } 21261 21262 // GetPath returns value of Path 21263 func (o *ProxyLBRule) GetPath() string { 21264 return o.Path 21265 } 21266 21267 // SetPath sets value to Path 21268 func (o *ProxyLBRule) SetPath(v string) { 21269 o.Path = v 21270 } 21271 21272 // GetSourceIPs returns value of SourceIPs 21273 func (o *ProxyLBRule) GetSourceIPs() string { 21274 return o.SourceIPs 21275 } 21276 21277 // SetSourceIPs sets value to SourceIPs 21278 func (o *ProxyLBRule) SetSourceIPs(v string) { 21279 o.SourceIPs = v 21280 } 21281 21282 // GetRequestHeaderName returns value of RequestHeaderName 21283 func (o *ProxyLBRule) GetRequestHeaderName() string { 21284 return o.RequestHeaderName 21285 } 21286 21287 // SetRequestHeaderName sets value to RequestHeaderName 21288 func (o *ProxyLBRule) SetRequestHeaderName(v string) { 21289 o.RequestHeaderName = v 21290 } 21291 21292 // GetRequestHeaderValue returns value of RequestHeaderValue 21293 func (o *ProxyLBRule) GetRequestHeaderValue() string { 21294 return o.RequestHeaderValue 21295 } 21296 21297 // SetRequestHeaderValue sets value to RequestHeaderValue 21298 func (o *ProxyLBRule) SetRequestHeaderValue(v string) { 21299 o.RequestHeaderValue = v 21300 } 21301 21302 // GetRequestHeaderValueIgnoreCase returns value of RequestHeaderValueIgnoreCase 21303 func (o *ProxyLBRule) GetRequestHeaderValueIgnoreCase() bool { 21304 return o.RequestHeaderValueIgnoreCase 21305 } 21306 21307 // SetRequestHeaderValueIgnoreCase sets value to RequestHeaderValueIgnoreCase 21308 func (o *ProxyLBRule) SetRequestHeaderValueIgnoreCase(v bool) { 21309 o.RequestHeaderValueIgnoreCase = v 21310 } 21311 21312 // GetRequestHeaderValueNotMatch returns value of RequestHeaderValueNotMatch 21313 func (o *ProxyLBRule) GetRequestHeaderValueNotMatch() bool { 21314 return o.RequestHeaderValueNotMatch 21315 } 21316 21317 // SetRequestHeaderValueNotMatch sets value to RequestHeaderValueNotMatch 21318 func (o *ProxyLBRule) SetRequestHeaderValueNotMatch(v bool) { 21319 o.RequestHeaderValueNotMatch = v 21320 } 21321 21322 // GetServerGroup returns value of ServerGroup 21323 func (o *ProxyLBRule) GetServerGroup() string { 21324 return o.ServerGroup 21325 } 21326 21327 // SetServerGroup sets value to ServerGroup 21328 func (o *ProxyLBRule) SetServerGroup(v string) { 21329 o.ServerGroup = v 21330 } 21331 21332 // GetAction returns value of Action 21333 func (o *ProxyLBRule) GetAction() types.EProxyLBRuleAction { 21334 return o.Action 21335 } 21336 21337 // SetAction sets value to Action 21338 func (o *ProxyLBRule) SetAction(v types.EProxyLBRuleAction) { 21339 o.Action = v 21340 } 21341 21342 // GetRedirectLocation returns value of RedirectLocation 21343 func (o *ProxyLBRule) GetRedirectLocation() string { 21344 return o.RedirectLocation 21345 } 21346 21347 // SetRedirectLocation sets value to RedirectLocation 21348 func (o *ProxyLBRule) SetRedirectLocation(v string) { 21349 o.RedirectLocation = v 21350 } 21351 21352 // GetRedirectStatusCode returns value of RedirectStatusCode 21353 func (o *ProxyLBRule) GetRedirectStatusCode() types.EProxyLBRedirectStatusCode { 21354 return o.RedirectStatusCode 21355 } 21356 21357 // SetRedirectStatusCode sets value to RedirectStatusCode 21358 func (o *ProxyLBRule) SetRedirectStatusCode(v types.EProxyLBRedirectStatusCode) { 21359 o.RedirectStatusCode = v 21360 } 21361 21362 // GetFixedStatusCode returns value of FixedStatusCode 21363 func (o *ProxyLBRule) GetFixedStatusCode() types.EProxyLBFixedStatusCode { 21364 return o.FixedStatusCode 21365 } 21366 21367 // SetFixedStatusCode sets value to FixedStatusCode 21368 func (o *ProxyLBRule) SetFixedStatusCode(v types.EProxyLBFixedStatusCode) { 21369 o.FixedStatusCode = v 21370 } 21371 21372 // GetFixedContentType returns value of FixedContentType 21373 func (o *ProxyLBRule) GetFixedContentType() types.EProxyLBFixedContentType { 21374 return o.FixedContentType 21375 } 21376 21377 // SetFixedContentType sets value to FixedContentType 21378 func (o *ProxyLBRule) SetFixedContentType(v types.EProxyLBFixedContentType) { 21379 o.FixedContentType = v 21380 } 21381 21382 // GetFixedMessageBody returns value of FixedMessageBody 21383 func (o *ProxyLBRule) GetFixedMessageBody() string { 21384 return o.FixedMessageBody 21385 } 21386 21387 // SetFixedMessageBody sets value to FixedMessageBody 21388 func (o *ProxyLBRule) SetFixedMessageBody(v string) { 21389 o.FixedMessageBody = v 21390 } 21391 21392 /************************************************* 21393 * ProxyLBACMESetting 21394 *************************************************/ 21395 21396 // ProxyLBACMESetting represents API parameter/response structure 21397 type ProxyLBACMESetting struct { 21398 CommonName string 21399 Enabled bool 21400 SubjectAltNames []string `json:",omitempty" mapconv:",omitempty"` 21401 } 21402 21403 // setDefaults implements iaas.argumentDefaulter 21404 func (o *ProxyLBACMESetting) setDefaults() interface{} { 21405 return &struct { 21406 CommonName string 21407 Enabled bool 21408 SubjectAltNames []string `json:",omitempty" mapconv:",omitempty"` 21409 }{ 21410 CommonName: o.GetCommonName(), 21411 Enabled: o.GetEnabled(), 21412 SubjectAltNames: o.GetSubjectAltNames(), 21413 } 21414 } 21415 21416 // GetCommonName returns value of CommonName 21417 func (o *ProxyLBACMESetting) GetCommonName() string { 21418 return o.CommonName 21419 } 21420 21421 // SetCommonName sets value to CommonName 21422 func (o *ProxyLBACMESetting) SetCommonName(v string) { 21423 o.CommonName = v 21424 } 21425 21426 // GetEnabled returns value of Enabled 21427 func (o *ProxyLBACMESetting) GetEnabled() bool { 21428 return o.Enabled 21429 } 21430 21431 // SetEnabled sets value to Enabled 21432 func (o *ProxyLBACMESetting) SetEnabled(v bool) { 21433 o.Enabled = v 21434 } 21435 21436 // GetSubjectAltNames returns value of SubjectAltNames 21437 func (o *ProxyLBACMESetting) GetSubjectAltNames() []string { 21438 return o.SubjectAltNames 21439 } 21440 21441 // SetSubjectAltNames sets value to SubjectAltNames 21442 func (o *ProxyLBACMESetting) SetSubjectAltNames(v []string) { 21443 o.SubjectAltNames = v 21444 } 21445 21446 /************************************************* 21447 * ProxyLBStickySession 21448 *************************************************/ 21449 21450 // ProxyLBStickySession represents API parameter/response structure 21451 type ProxyLBStickySession struct { 21452 Method string 21453 Enabled bool 21454 } 21455 21456 // setDefaults implements iaas.argumentDefaulter 21457 func (o *ProxyLBStickySession) setDefaults() interface{} { 21458 return &struct { 21459 Method string 21460 Enabled bool 21461 }{ 21462 Method: o.GetMethod(), 21463 Enabled: o.GetEnabled(), 21464 } 21465 } 21466 21467 // GetMethod returns value of Method 21468 func (o *ProxyLBStickySession) GetMethod() string { 21469 return o.Method 21470 } 21471 21472 // SetMethod sets value to Method 21473 func (o *ProxyLBStickySession) SetMethod(v string) { 21474 o.Method = v 21475 } 21476 21477 // GetEnabled returns value of Enabled 21478 func (o *ProxyLBStickySession) GetEnabled() bool { 21479 return o.Enabled 21480 } 21481 21482 // SetEnabled sets value to Enabled 21483 func (o *ProxyLBStickySession) SetEnabled(v bool) { 21484 o.Enabled = v 21485 } 21486 21487 /************************************************* 21488 * ProxyLBGzip 21489 *************************************************/ 21490 21491 // ProxyLBGzip represents API parameter/response structure 21492 type ProxyLBGzip struct { 21493 Enabled bool 21494 } 21495 21496 // setDefaults implements iaas.argumentDefaulter 21497 func (o *ProxyLBGzip) setDefaults() interface{} { 21498 return &struct { 21499 Enabled bool 21500 }{ 21501 Enabled: o.GetEnabled(), 21502 } 21503 } 21504 21505 // GetEnabled returns value of Enabled 21506 func (o *ProxyLBGzip) GetEnabled() bool { 21507 return o.Enabled 21508 } 21509 21510 // SetEnabled sets value to Enabled 21511 func (o *ProxyLBGzip) SetEnabled(v bool) { 21512 o.Enabled = v 21513 } 21514 21515 /************************************************* 21516 * ProxyLBBackendHttpKeepAlive 21517 *************************************************/ 21518 21519 // ProxyLBBackendHttpKeepAlive represents API parameter/response structure 21520 type ProxyLBBackendHttpKeepAlive struct { 21521 Mode types.EProxyLBBackendHttpKeepAlive 21522 } 21523 21524 // setDefaults implements iaas.argumentDefaulter 21525 func (o *ProxyLBBackendHttpKeepAlive) setDefaults() interface{} { 21526 return &struct { 21527 Mode types.EProxyLBBackendHttpKeepAlive 21528 }{ 21529 Mode: o.GetMode(), 21530 } 21531 } 21532 21533 // GetMode returns value of Mode 21534 func (o *ProxyLBBackendHttpKeepAlive) GetMode() types.EProxyLBBackendHttpKeepAlive { 21535 return o.Mode 21536 } 21537 21538 // SetMode sets value to Mode 21539 func (o *ProxyLBBackendHttpKeepAlive) SetMode(v types.EProxyLBBackendHttpKeepAlive) { 21540 o.Mode = v 21541 } 21542 21543 /************************************************* 21544 * ProxyLBProxyProtocol 21545 *************************************************/ 21546 21547 // ProxyLBProxyProtocol represents API parameter/response structure 21548 type ProxyLBProxyProtocol struct { 21549 Enabled bool 21550 } 21551 21552 // setDefaults implements iaas.argumentDefaulter 21553 func (o *ProxyLBProxyProtocol) setDefaults() interface{} { 21554 return &struct { 21555 Enabled bool 21556 }{ 21557 Enabled: o.GetEnabled(), 21558 } 21559 } 21560 21561 // GetEnabled returns value of Enabled 21562 func (o *ProxyLBProxyProtocol) GetEnabled() bool { 21563 return o.Enabled 21564 } 21565 21566 // SetEnabled sets value to Enabled 21567 func (o *ProxyLBProxyProtocol) SetEnabled(v bool) { 21568 o.Enabled = v 21569 } 21570 21571 /************************************************* 21572 * ProxyLBSyslog 21573 *************************************************/ 21574 21575 // ProxyLBSyslog represents API parameter/response structure 21576 type ProxyLBSyslog struct { 21577 Server string 21578 Port int 21579 } 21580 21581 // setDefaults implements iaas.argumentDefaulter 21582 func (o *ProxyLBSyslog) setDefaults() interface{} { 21583 return &struct { 21584 Server string 21585 Port int 21586 }{ 21587 Server: o.GetServer(), 21588 Port: o.GetPort(), 21589 } 21590 } 21591 21592 // GetServer returns value of Server 21593 func (o *ProxyLBSyslog) GetServer() string { 21594 return o.Server 21595 } 21596 21597 // SetServer sets value to Server 21598 func (o *ProxyLBSyslog) SetServer(v string) { 21599 o.Server = v 21600 } 21601 21602 // GetPort returns value of Port 21603 func (o *ProxyLBSyslog) GetPort() int { 21604 if o.Port == 0 { 21605 return 514 21606 } 21607 return o.Port 21608 } 21609 21610 // SetPort sets value to Port 21611 func (o *ProxyLBSyslog) SetPort(v int) { 21612 o.Port = v 21613 } 21614 21615 /************************************************* 21616 * ProxyLBTimeout 21617 *************************************************/ 21618 21619 // ProxyLBTimeout represents API parameter/response structure 21620 type ProxyLBTimeout struct { 21621 InactiveSec int 21622 } 21623 21624 // setDefaults implements iaas.argumentDefaulter 21625 func (o *ProxyLBTimeout) setDefaults() interface{} { 21626 return &struct { 21627 InactiveSec int 21628 }{ 21629 InactiveSec: o.GetInactiveSec(), 21630 } 21631 } 21632 21633 // GetInactiveSec returns value of InactiveSec 21634 func (o *ProxyLBTimeout) GetInactiveSec() int { 21635 if o.InactiveSec == 0 { 21636 return 10 21637 } 21638 return o.InactiveSec 21639 } 21640 21641 // SetInactiveSec sets value to InactiveSec 21642 func (o *ProxyLBTimeout) SetInactiveSec(v int) { 21643 o.InactiveSec = v 21644 } 21645 21646 /************************************************* 21647 * ProxyLBCreateRequest 21648 *************************************************/ 21649 21650 // ProxyLBCreateRequest represents API parameter/response structure 21651 type ProxyLBCreateRequest struct { 21652 Plan types.EProxyLBPlan 21653 HealthCheck *ProxyLBHealthCheck `mapconv:"Settings.ProxyLB.HealthCheck,recursive"` 21654 SorryServer *ProxyLBSorryServer `mapconv:"Settings.ProxyLB.SorryServer,recursive"` 21655 BindPorts []*ProxyLBBindPort `mapconv:"Settings.ProxyLB.[]BindPorts,recursive"` 21656 Servers []*ProxyLBServer `mapconv:"Settings.ProxyLB.[]Servers,recursive"` 21657 Rules []*ProxyLBRule `mapconv:"Settings.ProxyLB.[]Rules,recursive"` 21658 LetsEncrypt *ProxyLBACMESetting `mapconv:"Settings.ProxyLB.LetsEncrypt,recursive"` 21659 StickySession *ProxyLBStickySession `mapconv:"Settings.ProxyLB.StickySession,recursive"` 21660 Timeout *ProxyLBTimeout `json:",omitempty" mapconv:"Settings.ProxyLB.Timeout,recursive,omitempty"` 21661 Gzip *ProxyLBGzip `mapconv:"Settings.ProxyLB.Gzip,recursive"` 21662 BackendHttpKeepAlive *ProxyLBBackendHttpKeepAlive `mapconv:"Settings.ProxyLB.BackendHttpKeepAlive,recursive"` 21663 ProxyProtocol *ProxyLBProxyProtocol `mapconv:"Settings.ProxyLB.ProxyProtocol,recursive"` 21664 Syslog *ProxyLBSyslog `mapconv:"Settings.ProxyLB.Syslog,recursive"` 21665 UseVIPFailover bool `mapconv:"Status.UseVIPFailover"` 21666 Region types.EProxyLBRegion `mapconv:"Status.Region"` 21667 Name string 21668 Description string 21669 Tags types.Tags 21670 IconID types.ID `mapconv:"Icon.ID"` 21671 } 21672 21673 // setDefaults implements iaas.argumentDefaulter 21674 func (o *ProxyLBCreateRequest) setDefaults() interface{} { 21675 return &struct { 21676 Plan types.EProxyLBPlan 21677 HealthCheck *ProxyLBHealthCheck `mapconv:"Settings.ProxyLB.HealthCheck,recursive"` 21678 SorryServer *ProxyLBSorryServer `mapconv:"Settings.ProxyLB.SorryServer,recursive"` 21679 BindPorts []*ProxyLBBindPort `mapconv:"Settings.ProxyLB.[]BindPorts,recursive"` 21680 Servers []*ProxyLBServer `mapconv:"Settings.ProxyLB.[]Servers,recursive"` 21681 Rules []*ProxyLBRule `mapconv:"Settings.ProxyLB.[]Rules,recursive"` 21682 LetsEncrypt *ProxyLBACMESetting `mapconv:"Settings.ProxyLB.LetsEncrypt,recursive"` 21683 StickySession *ProxyLBStickySession `mapconv:"Settings.ProxyLB.StickySession,recursive"` 21684 Timeout *ProxyLBTimeout `json:",omitempty" mapconv:"Settings.ProxyLB.Timeout,recursive,omitempty"` 21685 Gzip *ProxyLBGzip `mapconv:"Settings.ProxyLB.Gzip,recursive"` 21686 BackendHttpKeepAlive *ProxyLBBackendHttpKeepAlive `mapconv:"Settings.ProxyLB.BackendHttpKeepAlive,recursive"` 21687 ProxyProtocol *ProxyLBProxyProtocol `mapconv:"Settings.ProxyLB.ProxyProtocol,recursive"` 21688 Syslog *ProxyLBSyslog `mapconv:"Settings.ProxyLB.Syslog,recursive"` 21689 UseVIPFailover bool `mapconv:"Status.UseVIPFailover"` 21690 Region types.EProxyLBRegion `mapconv:"Status.Region"` 21691 Name string 21692 Description string 21693 Tags types.Tags 21694 IconID types.ID `mapconv:"Icon.ID"` 21695 Class string `mapconv:"Provider.Class"` 21696 }{ 21697 Plan: o.GetPlan(), 21698 HealthCheck: o.GetHealthCheck(), 21699 SorryServer: o.GetSorryServer(), 21700 BindPorts: o.GetBindPorts(), 21701 Servers: o.GetServers(), 21702 Rules: o.GetRules(), 21703 LetsEncrypt: o.GetLetsEncrypt(), 21704 StickySession: o.GetStickySession(), 21705 Timeout: o.GetTimeout(), 21706 Gzip: o.GetGzip(), 21707 BackendHttpKeepAlive: o.GetBackendHttpKeepAlive(), 21708 ProxyProtocol: o.GetProxyProtocol(), 21709 Syslog: o.GetSyslog(), 21710 UseVIPFailover: o.GetUseVIPFailover(), 21711 Region: o.GetRegion(), 21712 Name: o.GetName(), 21713 Description: o.GetDescription(), 21714 Tags: o.GetTags(), 21715 IconID: o.GetIconID(), 21716 Class: "proxylb", 21717 } 21718 } 21719 21720 // GetPlan returns value of Plan 21721 func (o *ProxyLBCreateRequest) GetPlan() types.EProxyLBPlan { 21722 return o.Plan 21723 } 21724 21725 // SetPlan sets value to Plan 21726 func (o *ProxyLBCreateRequest) SetPlan(v types.EProxyLBPlan) { 21727 o.Plan = v 21728 } 21729 21730 // GetHealthCheck returns value of HealthCheck 21731 func (o *ProxyLBCreateRequest) GetHealthCheck() *ProxyLBHealthCheck { 21732 return o.HealthCheck 21733 } 21734 21735 // SetHealthCheck sets value to HealthCheck 21736 func (o *ProxyLBCreateRequest) SetHealthCheck(v *ProxyLBHealthCheck) { 21737 o.HealthCheck = v 21738 } 21739 21740 // GetSorryServer returns value of SorryServer 21741 func (o *ProxyLBCreateRequest) GetSorryServer() *ProxyLBSorryServer { 21742 return o.SorryServer 21743 } 21744 21745 // SetSorryServer sets value to SorryServer 21746 func (o *ProxyLBCreateRequest) SetSorryServer(v *ProxyLBSorryServer) { 21747 o.SorryServer = v 21748 } 21749 21750 // GetBindPorts returns value of BindPorts 21751 func (o *ProxyLBCreateRequest) GetBindPorts() []*ProxyLBBindPort { 21752 return o.BindPorts 21753 } 21754 21755 // SetBindPorts sets value to BindPorts 21756 func (o *ProxyLBCreateRequest) SetBindPorts(v []*ProxyLBBindPort) { 21757 o.BindPorts = v 21758 } 21759 21760 // GetServers returns value of Servers 21761 func (o *ProxyLBCreateRequest) GetServers() []*ProxyLBServer { 21762 return o.Servers 21763 } 21764 21765 // SetServers sets value to Servers 21766 func (o *ProxyLBCreateRequest) SetServers(v []*ProxyLBServer) { 21767 o.Servers = v 21768 } 21769 21770 // GetRules returns value of Rules 21771 func (o *ProxyLBCreateRequest) GetRules() []*ProxyLBRule { 21772 return o.Rules 21773 } 21774 21775 // SetRules sets value to Rules 21776 func (o *ProxyLBCreateRequest) SetRules(v []*ProxyLBRule) { 21777 o.Rules = v 21778 } 21779 21780 // GetLetsEncrypt returns value of LetsEncrypt 21781 func (o *ProxyLBCreateRequest) GetLetsEncrypt() *ProxyLBACMESetting { 21782 return o.LetsEncrypt 21783 } 21784 21785 // SetLetsEncrypt sets value to LetsEncrypt 21786 func (o *ProxyLBCreateRequest) SetLetsEncrypt(v *ProxyLBACMESetting) { 21787 o.LetsEncrypt = v 21788 } 21789 21790 // GetStickySession returns value of StickySession 21791 func (o *ProxyLBCreateRequest) GetStickySession() *ProxyLBStickySession { 21792 return o.StickySession 21793 } 21794 21795 // SetStickySession sets value to StickySession 21796 func (o *ProxyLBCreateRequest) SetStickySession(v *ProxyLBStickySession) { 21797 o.StickySession = v 21798 } 21799 21800 // GetTimeout returns value of Timeout 21801 func (o *ProxyLBCreateRequest) GetTimeout() *ProxyLBTimeout { 21802 return o.Timeout 21803 } 21804 21805 // SetTimeout sets value to Timeout 21806 func (o *ProxyLBCreateRequest) SetTimeout(v *ProxyLBTimeout) { 21807 o.Timeout = v 21808 } 21809 21810 // GetGzip returns value of Gzip 21811 func (o *ProxyLBCreateRequest) GetGzip() *ProxyLBGzip { 21812 return o.Gzip 21813 } 21814 21815 // SetGzip sets value to Gzip 21816 func (o *ProxyLBCreateRequest) SetGzip(v *ProxyLBGzip) { 21817 o.Gzip = v 21818 } 21819 21820 // GetBackendHttpKeepAlive returns value of BackendHttpKeepAlive 21821 func (o *ProxyLBCreateRequest) GetBackendHttpKeepAlive() *ProxyLBBackendHttpKeepAlive { 21822 return o.BackendHttpKeepAlive 21823 } 21824 21825 // SetBackendHttpKeepAlive sets value to BackendHttpKeepAlive 21826 func (o *ProxyLBCreateRequest) SetBackendHttpKeepAlive(v *ProxyLBBackendHttpKeepAlive) { 21827 o.BackendHttpKeepAlive = v 21828 } 21829 21830 // GetProxyProtocol returns value of ProxyProtocol 21831 func (o *ProxyLBCreateRequest) GetProxyProtocol() *ProxyLBProxyProtocol { 21832 return o.ProxyProtocol 21833 } 21834 21835 // SetProxyProtocol sets value to ProxyProtocol 21836 func (o *ProxyLBCreateRequest) SetProxyProtocol(v *ProxyLBProxyProtocol) { 21837 o.ProxyProtocol = v 21838 } 21839 21840 // GetSyslog returns value of Syslog 21841 func (o *ProxyLBCreateRequest) GetSyslog() *ProxyLBSyslog { 21842 return o.Syslog 21843 } 21844 21845 // SetSyslog sets value to Syslog 21846 func (o *ProxyLBCreateRequest) SetSyslog(v *ProxyLBSyslog) { 21847 o.Syslog = v 21848 } 21849 21850 // GetUseVIPFailover returns value of UseVIPFailover 21851 func (o *ProxyLBCreateRequest) GetUseVIPFailover() bool { 21852 return o.UseVIPFailover 21853 } 21854 21855 // SetUseVIPFailover sets value to UseVIPFailover 21856 func (o *ProxyLBCreateRequest) SetUseVIPFailover(v bool) { 21857 o.UseVIPFailover = v 21858 } 21859 21860 // GetRegion returns value of Region 21861 func (o *ProxyLBCreateRequest) GetRegion() types.EProxyLBRegion { 21862 return o.Region 21863 } 21864 21865 // SetRegion sets value to Region 21866 func (o *ProxyLBCreateRequest) SetRegion(v types.EProxyLBRegion) { 21867 o.Region = v 21868 } 21869 21870 // GetName returns value of Name 21871 func (o *ProxyLBCreateRequest) GetName() string { 21872 return o.Name 21873 } 21874 21875 // SetName sets value to Name 21876 func (o *ProxyLBCreateRequest) SetName(v string) { 21877 o.Name = v 21878 } 21879 21880 // GetDescription returns value of Description 21881 func (o *ProxyLBCreateRequest) GetDescription() string { 21882 return o.Description 21883 } 21884 21885 // SetDescription sets value to Description 21886 func (o *ProxyLBCreateRequest) SetDescription(v string) { 21887 o.Description = v 21888 } 21889 21890 // GetTags returns value of Tags 21891 func (o *ProxyLBCreateRequest) GetTags() types.Tags { 21892 return o.Tags 21893 } 21894 21895 // SetTags sets value to Tags 21896 func (o *ProxyLBCreateRequest) SetTags(v types.Tags) { 21897 o.Tags = v 21898 } 21899 21900 // HasTag 指定のタグが存在する場合trueを返す 21901 func (o *ProxyLBCreateRequest) HasTag(tag string) bool { 21902 return accessor.HasTag(o, tag) 21903 } 21904 21905 // AppendTag 指定のタグを追加 21906 func (o *ProxyLBCreateRequest) AppendTag(tag string) { 21907 accessor.AppendTag(o, tag) 21908 } 21909 21910 // RemoveTag 指定のタグを削除 21911 func (o *ProxyLBCreateRequest) RemoveTag(tag string) { 21912 accessor.RemoveTag(o, tag) 21913 } 21914 21915 // ClearTags タグを全クリア 21916 func (o *ProxyLBCreateRequest) ClearTags() { 21917 accessor.ClearTags(o) 21918 } 21919 21920 // GetIconID returns value of IconID 21921 func (o *ProxyLBCreateRequest) GetIconID() types.ID { 21922 return o.IconID 21923 } 21924 21925 // SetIconID sets value to IconID 21926 func (o *ProxyLBCreateRequest) SetIconID(v types.ID) { 21927 o.IconID = v 21928 } 21929 21930 /************************************************* 21931 * ProxyLBUpdateRequest 21932 *************************************************/ 21933 21934 // ProxyLBUpdateRequest represents API parameter/response structure 21935 type ProxyLBUpdateRequest struct { 21936 HealthCheck *ProxyLBHealthCheck `mapconv:"Settings.ProxyLB.HealthCheck,recursive"` 21937 SorryServer *ProxyLBSorryServer `mapconv:"Settings.ProxyLB.SorryServer,recursive"` 21938 BindPorts []*ProxyLBBindPort `mapconv:"Settings.ProxyLB.[]BindPorts,recursive"` 21939 Servers []*ProxyLBServer `mapconv:"Settings.ProxyLB.[]Servers,recursive"` 21940 Rules []*ProxyLBRule `mapconv:"Settings.ProxyLB.[]Rules,recursive"` 21941 LetsEncrypt *ProxyLBACMESetting `mapconv:"Settings.ProxyLB.LetsEncrypt,recursive"` 21942 StickySession *ProxyLBStickySession `mapconv:"Settings.ProxyLB.StickySession,recursive"` 21943 Timeout *ProxyLBTimeout `json:",omitempty" mapconv:"Settings.ProxyLB.Timeout,recursive,omitempty"` 21944 Gzip *ProxyLBGzip `mapconv:"Settings.ProxyLB.Gzip,recursive"` 21945 BackendHttpKeepAlive *ProxyLBBackendHttpKeepAlive `mapconv:"Settings.ProxyLB.BackendHttpKeepAlive,recursive"` 21946 ProxyProtocol *ProxyLBProxyProtocol `mapconv:"Settings.ProxyLB.ProxyProtocol,recursive"` 21947 Syslog *ProxyLBSyslog `mapconv:"Settings.ProxyLB.Syslog,recursive"` 21948 SettingsHash string `json:",omitempty" mapconv:",omitempty"` 21949 Name string 21950 Description string 21951 Tags types.Tags 21952 IconID types.ID `mapconv:"Icon.ID"` 21953 } 21954 21955 // setDefaults implements iaas.argumentDefaulter 21956 func (o *ProxyLBUpdateRequest) setDefaults() interface{} { 21957 return &struct { 21958 HealthCheck *ProxyLBHealthCheck `mapconv:"Settings.ProxyLB.HealthCheck,recursive"` 21959 SorryServer *ProxyLBSorryServer `mapconv:"Settings.ProxyLB.SorryServer,recursive"` 21960 BindPorts []*ProxyLBBindPort `mapconv:"Settings.ProxyLB.[]BindPorts,recursive"` 21961 Servers []*ProxyLBServer `mapconv:"Settings.ProxyLB.[]Servers,recursive"` 21962 Rules []*ProxyLBRule `mapconv:"Settings.ProxyLB.[]Rules,recursive"` 21963 LetsEncrypt *ProxyLBACMESetting `mapconv:"Settings.ProxyLB.LetsEncrypt,recursive"` 21964 StickySession *ProxyLBStickySession `mapconv:"Settings.ProxyLB.StickySession,recursive"` 21965 Timeout *ProxyLBTimeout `json:",omitempty" mapconv:"Settings.ProxyLB.Timeout,recursive,omitempty"` 21966 Gzip *ProxyLBGzip `mapconv:"Settings.ProxyLB.Gzip,recursive"` 21967 BackendHttpKeepAlive *ProxyLBBackendHttpKeepAlive `mapconv:"Settings.ProxyLB.BackendHttpKeepAlive,recursive"` 21968 ProxyProtocol *ProxyLBProxyProtocol `mapconv:"Settings.ProxyLB.ProxyProtocol,recursive"` 21969 Syslog *ProxyLBSyslog `mapconv:"Settings.ProxyLB.Syslog,recursive"` 21970 SettingsHash string `json:",omitempty" mapconv:",omitempty"` 21971 Name string 21972 Description string 21973 Tags types.Tags 21974 IconID types.ID `mapconv:"Icon.ID"` 21975 }{ 21976 HealthCheck: o.GetHealthCheck(), 21977 SorryServer: o.GetSorryServer(), 21978 BindPorts: o.GetBindPorts(), 21979 Servers: o.GetServers(), 21980 Rules: o.GetRules(), 21981 LetsEncrypt: o.GetLetsEncrypt(), 21982 StickySession: o.GetStickySession(), 21983 Timeout: o.GetTimeout(), 21984 Gzip: o.GetGzip(), 21985 BackendHttpKeepAlive: o.GetBackendHttpKeepAlive(), 21986 ProxyProtocol: o.GetProxyProtocol(), 21987 Syslog: o.GetSyslog(), 21988 SettingsHash: o.GetSettingsHash(), 21989 Name: o.GetName(), 21990 Description: o.GetDescription(), 21991 Tags: o.GetTags(), 21992 IconID: o.GetIconID(), 21993 } 21994 } 21995 21996 // GetHealthCheck returns value of HealthCheck 21997 func (o *ProxyLBUpdateRequest) GetHealthCheck() *ProxyLBHealthCheck { 21998 return o.HealthCheck 21999 } 22000 22001 // SetHealthCheck sets value to HealthCheck 22002 func (o *ProxyLBUpdateRequest) SetHealthCheck(v *ProxyLBHealthCheck) { 22003 o.HealthCheck = v 22004 } 22005 22006 // GetSorryServer returns value of SorryServer 22007 func (o *ProxyLBUpdateRequest) GetSorryServer() *ProxyLBSorryServer { 22008 return o.SorryServer 22009 } 22010 22011 // SetSorryServer sets value to SorryServer 22012 func (o *ProxyLBUpdateRequest) SetSorryServer(v *ProxyLBSorryServer) { 22013 o.SorryServer = v 22014 } 22015 22016 // GetBindPorts returns value of BindPorts 22017 func (o *ProxyLBUpdateRequest) GetBindPorts() []*ProxyLBBindPort { 22018 return o.BindPorts 22019 } 22020 22021 // SetBindPorts sets value to BindPorts 22022 func (o *ProxyLBUpdateRequest) SetBindPorts(v []*ProxyLBBindPort) { 22023 o.BindPorts = v 22024 } 22025 22026 // GetServers returns value of Servers 22027 func (o *ProxyLBUpdateRequest) GetServers() []*ProxyLBServer { 22028 return o.Servers 22029 } 22030 22031 // SetServers sets value to Servers 22032 func (o *ProxyLBUpdateRequest) SetServers(v []*ProxyLBServer) { 22033 o.Servers = v 22034 } 22035 22036 // GetRules returns value of Rules 22037 func (o *ProxyLBUpdateRequest) GetRules() []*ProxyLBRule { 22038 return o.Rules 22039 } 22040 22041 // SetRules sets value to Rules 22042 func (o *ProxyLBUpdateRequest) SetRules(v []*ProxyLBRule) { 22043 o.Rules = v 22044 } 22045 22046 // GetLetsEncrypt returns value of LetsEncrypt 22047 func (o *ProxyLBUpdateRequest) GetLetsEncrypt() *ProxyLBACMESetting { 22048 return o.LetsEncrypt 22049 } 22050 22051 // SetLetsEncrypt sets value to LetsEncrypt 22052 func (o *ProxyLBUpdateRequest) SetLetsEncrypt(v *ProxyLBACMESetting) { 22053 o.LetsEncrypt = v 22054 } 22055 22056 // GetStickySession returns value of StickySession 22057 func (o *ProxyLBUpdateRequest) GetStickySession() *ProxyLBStickySession { 22058 return o.StickySession 22059 } 22060 22061 // SetStickySession sets value to StickySession 22062 func (o *ProxyLBUpdateRequest) SetStickySession(v *ProxyLBStickySession) { 22063 o.StickySession = v 22064 } 22065 22066 // GetTimeout returns value of Timeout 22067 func (o *ProxyLBUpdateRequest) GetTimeout() *ProxyLBTimeout { 22068 return o.Timeout 22069 } 22070 22071 // SetTimeout sets value to Timeout 22072 func (o *ProxyLBUpdateRequest) SetTimeout(v *ProxyLBTimeout) { 22073 o.Timeout = v 22074 } 22075 22076 // GetGzip returns value of Gzip 22077 func (o *ProxyLBUpdateRequest) GetGzip() *ProxyLBGzip { 22078 return o.Gzip 22079 } 22080 22081 // SetGzip sets value to Gzip 22082 func (o *ProxyLBUpdateRequest) SetGzip(v *ProxyLBGzip) { 22083 o.Gzip = v 22084 } 22085 22086 // GetBackendHttpKeepAlive returns value of BackendHttpKeepAlive 22087 func (o *ProxyLBUpdateRequest) GetBackendHttpKeepAlive() *ProxyLBBackendHttpKeepAlive { 22088 return o.BackendHttpKeepAlive 22089 } 22090 22091 // SetBackendHttpKeepAlive sets value to BackendHttpKeepAlive 22092 func (o *ProxyLBUpdateRequest) SetBackendHttpKeepAlive(v *ProxyLBBackendHttpKeepAlive) { 22093 o.BackendHttpKeepAlive = v 22094 } 22095 22096 // GetProxyProtocol returns value of ProxyProtocol 22097 func (o *ProxyLBUpdateRequest) GetProxyProtocol() *ProxyLBProxyProtocol { 22098 return o.ProxyProtocol 22099 } 22100 22101 // SetProxyProtocol sets value to ProxyProtocol 22102 func (o *ProxyLBUpdateRequest) SetProxyProtocol(v *ProxyLBProxyProtocol) { 22103 o.ProxyProtocol = v 22104 } 22105 22106 // GetSyslog returns value of Syslog 22107 func (o *ProxyLBUpdateRequest) GetSyslog() *ProxyLBSyslog { 22108 return o.Syslog 22109 } 22110 22111 // SetSyslog sets value to Syslog 22112 func (o *ProxyLBUpdateRequest) SetSyslog(v *ProxyLBSyslog) { 22113 o.Syslog = v 22114 } 22115 22116 // GetSettingsHash returns value of SettingsHash 22117 func (o *ProxyLBUpdateRequest) GetSettingsHash() string { 22118 return o.SettingsHash 22119 } 22120 22121 // SetSettingsHash sets value to SettingsHash 22122 func (o *ProxyLBUpdateRequest) SetSettingsHash(v string) { 22123 o.SettingsHash = v 22124 } 22125 22126 // GetName returns value of Name 22127 func (o *ProxyLBUpdateRequest) GetName() string { 22128 return o.Name 22129 } 22130 22131 // SetName sets value to Name 22132 func (o *ProxyLBUpdateRequest) SetName(v string) { 22133 o.Name = v 22134 } 22135 22136 // GetDescription returns value of Description 22137 func (o *ProxyLBUpdateRequest) GetDescription() string { 22138 return o.Description 22139 } 22140 22141 // SetDescription sets value to Description 22142 func (o *ProxyLBUpdateRequest) SetDescription(v string) { 22143 o.Description = v 22144 } 22145 22146 // GetTags returns value of Tags 22147 func (o *ProxyLBUpdateRequest) GetTags() types.Tags { 22148 return o.Tags 22149 } 22150 22151 // SetTags sets value to Tags 22152 func (o *ProxyLBUpdateRequest) SetTags(v types.Tags) { 22153 o.Tags = v 22154 } 22155 22156 // HasTag 指定のタグが存在する場合trueを返す 22157 func (o *ProxyLBUpdateRequest) HasTag(tag string) bool { 22158 return accessor.HasTag(o, tag) 22159 } 22160 22161 // AppendTag 指定のタグを追加 22162 func (o *ProxyLBUpdateRequest) AppendTag(tag string) { 22163 accessor.AppendTag(o, tag) 22164 } 22165 22166 // RemoveTag 指定のタグを削除 22167 func (o *ProxyLBUpdateRequest) RemoveTag(tag string) { 22168 accessor.RemoveTag(o, tag) 22169 } 22170 22171 // ClearTags タグを全クリア 22172 func (o *ProxyLBUpdateRequest) ClearTags() { 22173 accessor.ClearTags(o) 22174 } 22175 22176 // GetIconID returns value of IconID 22177 func (o *ProxyLBUpdateRequest) GetIconID() types.ID { 22178 return o.IconID 22179 } 22180 22181 // SetIconID sets value to IconID 22182 func (o *ProxyLBUpdateRequest) SetIconID(v types.ID) { 22183 o.IconID = v 22184 } 22185 22186 /************************************************* 22187 * ProxyLBUpdateSettingsRequest 22188 *************************************************/ 22189 22190 // ProxyLBUpdateSettingsRequest represents API parameter/response structure 22191 type ProxyLBUpdateSettingsRequest struct { 22192 HealthCheck *ProxyLBHealthCheck `mapconv:"Settings.ProxyLB.HealthCheck,recursive"` 22193 SorryServer *ProxyLBSorryServer `mapconv:"Settings.ProxyLB.SorryServer,recursive"` 22194 BindPorts []*ProxyLBBindPort `mapconv:"Settings.ProxyLB.[]BindPorts,recursive"` 22195 Servers []*ProxyLBServer `mapconv:"Settings.ProxyLB.[]Servers,recursive"` 22196 Rules []*ProxyLBRule `mapconv:"Settings.ProxyLB.[]Rules,recursive"` 22197 LetsEncrypt *ProxyLBACMESetting `mapconv:"Settings.ProxyLB.LetsEncrypt,recursive"` 22198 StickySession *ProxyLBStickySession `mapconv:"Settings.ProxyLB.StickySession,recursive"` 22199 Timeout *ProxyLBTimeout `json:",omitempty" mapconv:"Settings.ProxyLB.Timeout,recursive,omitempty"` 22200 Gzip *ProxyLBGzip `mapconv:"Settings.ProxyLB.Gzip,recursive"` 22201 BackendHttpKeepAlive *ProxyLBBackendHttpKeepAlive `mapconv:"Settings.ProxyLB.BackendHttpKeepAlive,recursive"` 22202 ProxyProtocol *ProxyLBProxyProtocol `mapconv:"Settings.ProxyLB.ProxyProtocol,recursive"` 22203 Syslog *ProxyLBSyslog `mapconv:"Settings.ProxyLB.Syslog,recursive"` 22204 SettingsHash string `json:",omitempty" mapconv:",omitempty"` 22205 } 22206 22207 // setDefaults implements iaas.argumentDefaulter 22208 func (o *ProxyLBUpdateSettingsRequest) setDefaults() interface{} { 22209 return &struct { 22210 HealthCheck *ProxyLBHealthCheck `mapconv:"Settings.ProxyLB.HealthCheck,recursive"` 22211 SorryServer *ProxyLBSorryServer `mapconv:"Settings.ProxyLB.SorryServer,recursive"` 22212 BindPorts []*ProxyLBBindPort `mapconv:"Settings.ProxyLB.[]BindPorts,recursive"` 22213 Servers []*ProxyLBServer `mapconv:"Settings.ProxyLB.[]Servers,recursive"` 22214 Rules []*ProxyLBRule `mapconv:"Settings.ProxyLB.[]Rules,recursive"` 22215 LetsEncrypt *ProxyLBACMESetting `mapconv:"Settings.ProxyLB.LetsEncrypt,recursive"` 22216 StickySession *ProxyLBStickySession `mapconv:"Settings.ProxyLB.StickySession,recursive"` 22217 Timeout *ProxyLBTimeout `json:",omitempty" mapconv:"Settings.ProxyLB.Timeout,recursive,omitempty"` 22218 Gzip *ProxyLBGzip `mapconv:"Settings.ProxyLB.Gzip,recursive"` 22219 BackendHttpKeepAlive *ProxyLBBackendHttpKeepAlive `mapconv:"Settings.ProxyLB.BackendHttpKeepAlive,recursive"` 22220 ProxyProtocol *ProxyLBProxyProtocol `mapconv:"Settings.ProxyLB.ProxyProtocol,recursive"` 22221 Syslog *ProxyLBSyslog `mapconv:"Settings.ProxyLB.Syslog,recursive"` 22222 SettingsHash string `json:",omitempty" mapconv:",omitempty"` 22223 }{ 22224 HealthCheck: o.GetHealthCheck(), 22225 SorryServer: o.GetSorryServer(), 22226 BindPorts: o.GetBindPorts(), 22227 Servers: o.GetServers(), 22228 Rules: o.GetRules(), 22229 LetsEncrypt: o.GetLetsEncrypt(), 22230 StickySession: o.GetStickySession(), 22231 Timeout: o.GetTimeout(), 22232 Gzip: o.GetGzip(), 22233 BackendHttpKeepAlive: o.GetBackendHttpKeepAlive(), 22234 ProxyProtocol: o.GetProxyProtocol(), 22235 Syslog: o.GetSyslog(), 22236 SettingsHash: o.GetSettingsHash(), 22237 } 22238 } 22239 22240 // GetHealthCheck returns value of HealthCheck 22241 func (o *ProxyLBUpdateSettingsRequest) GetHealthCheck() *ProxyLBHealthCheck { 22242 return o.HealthCheck 22243 } 22244 22245 // SetHealthCheck sets value to HealthCheck 22246 func (o *ProxyLBUpdateSettingsRequest) SetHealthCheck(v *ProxyLBHealthCheck) { 22247 o.HealthCheck = v 22248 } 22249 22250 // GetSorryServer returns value of SorryServer 22251 func (o *ProxyLBUpdateSettingsRequest) GetSorryServer() *ProxyLBSorryServer { 22252 return o.SorryServer 22253 } 22254 22255 // SetSorryServer sets value to SorryServer 22256 func (o *ProxyLBUpdateSettingsRequest) SetSorryServer(v *ProxyLBSorryServer) { 22257 o.SorryServer = v 22258 } 22259 22260 // GetBindPorts returns value of BindPorts 22261 func (o *ProxyLBUpdateSettingsRequest) GetBindPorts() []*ProxyLBBindPort { 22262 return o.BindPorts 22263 } 22264 22265 // SetBindPorts sets value to BindPorts 22266 func (o *ProxyLBUpdateSettingsRequest) SetBindPorts(v []*ProxyLBBindPort) { 22267 o.BindPorts = v 22268 } 22269 22270 // GetServers returns value of Servers 22271 func (o *ProxyLBUpdateSettingsRequest) GetServers() []*ProxyLBServer { 22272 return o.Servers 22273 } 22274 22275 // SetServers sets value to Servers 22276 func (o *ProxyLBUpdateSettingsRequest) SetServers(v []*ProxyLBServer) { 22277 o.Servers = v 22278 } 22279 22280 // GetRules returns value of Rules 22281 func (o *ProxyLBUpdateSettingsRequest) GetRules() []*ProxyLBRule { 22282 return o.Rules 22283 } 22284 22285 // SetRules sets value to Rules 22286 func (o *ProxyLBUpdateSettingsRequest) SetRules(v []*ProxyLBRule) { 22287 o.Rules = v 22288 } 22289 22290 // GetLetsEncrypt returns value of LetsEncrypt 22291 func (o *ProxyLBUpdateSettingsRequest) GetLetsEncrypt() *ProxyLBACMESetting { 22292 return o.LetsEncrypt 22293 } 22294 22295 // SetLetsEncrypt sets value to LetsEncrypt 22296 func (o *ProxyLBUpdateSettingsRequest) SetLetsEncrypt(v *ProxyLBACMESetting) { 22297 o.LetsEncrypt = v 22298 } 22299 22300 // GetStickySession returns value of StickySession 22301 func (o *ProxyLBUpdateSettingsRequest) GetStickySession() *ProxyLBStickySession { 22302 return o.StickySession 22303 } 22304 22305 // SetStickySession sets value to StickySession 22306 func (o *ProxyLBUpdateSettingsRequest) SetStickySession(v *ProxyLBStickySession) { 22307 o.StickySession = v 22308 } 22309 22310 // GetTimeout returns value of Timeout 22311 func (o *ProxyLBUpdateSettingsRequest) GetTimeout() *ProxyLBTimeout { 22312 return o.Timeout 22313 } 22314 22315 // SetTimeout sets value to Timeout 22316 func (o *ProxyLBUpdateSettingsRequest) SetTimeout(v *ProxyLBTimeout) { 22317 o.Timeout = v 22318 } 22319 22320 // GetGzip returns value of Gzip 22321 func (o *ProxyLBUpdateSettingsRequest) GetGzip() *ProxyLBGzip { 22322 return o.Gzip 22323 } 22324 22325 // SetGzip sets value to Gzip 22326 func (o *ProxyLBUpdateSettingsRequest) SetGzip(v *ProxyLBGzip) { 22327 o.Gzip = v 22328 } 22329 22330 // GetBackendHttpKeepAlive returns value of BackendHttpKeepAlive 22331 func (o *ProxyLBUpdateSettingsRequest) GetBackendHttpKeepAlive() *ProxyLBBackendHttpKeepAlive { 22332 return o.BackendHttpKeepAlive 22333 } 22334 22335 // SetBackendHttpKeepAlive sets value to BackendHttpKeepAlive 22336 func (o *ProxyLBUpdateSettingsRequest) SetBackendHttpKeepAlive(v *ProxyLBBackendHttpKeepAlive) { 22337 o.BackendHttpKeepAlive = v 22338 } 22339 22340 // GetProxyProtocol returns value of ProxyProtocol 22341 func (o *ProxyLBUpdateSettingsRequest) GetProxyProtocol() *ProxyLBProxyProtocol { 22342 return o.ProxyProtocol 22343 } 22344 22345 // SetProxyProtocol sets value to ProxyProtocol 22346 func (o *ProxyLBUpdateSettingsRequest) SetProxyProtocol(v *ProxyLBProxyProtocol) { 22347 o.ProxyProtocol = v 22348 } 22349 22350 // GetSyslog returns value of Syslog 22351 func (o *ProxyLBUpdateSettingsRequest) GetSyslog() *ProxyLBSyslog { 22352 return o.Syslog 22353 } 22354 22355 // SetSyslog sets value to Syslog 22356 func (o *ProxyLBUpdateSettingsRequest) SetSyslog(v *ProxyLBSyslog) { 22357 o.Syslog = v 22358 } 22359 22360 // GetSettingsHash returns value of SettingsHash 22361 func (o *ProxyLBUpdateSettingsRequest) GetSettingsHash() string { 22362 return o.SettingsHash 22363 } 22364 22365 // SetSettingsHash sets value to SettingsHash 22366 func (o *ProxyLBUpdateSettingsRequest) SetSettingsHash(v string) { 22367 o.SettingsHash = v 22368 } 22369 22370 /************************************************* 22371 * ProxyLBChangePlanRequest 22372 *************************************************/ 22373 22374 // ProxyLBChangePlanRequest represents API parameter/response structure 22375 type ProxyLBChangePlanRequest struct { 22376 ServiceClass string 22377 } 22378 22379 // setDefaults implements iaas.argumentDefaulter 22380 func (o *ProxyLBChangePlanRequest) setDefaults() interface{} { 22381 return &struct { 22382 ServiceClass string 22383 }{ 22384 ServiceClass: o.GetServiceClass(), 22385 } 22386 } 22387 22388 // GetServiceClass returns value of ServiceClass 22389 func (o *ProxyLBChangePlanRequest) GetServiceClass() string { 22390 return o.ServiceClass 22391 } 22392 22393 // SetServiceClass sets value to ServiceClass 22394 func (o *ProxyLBChangePlanRequest) SetServiceClass(v string) { 22395 o.ServiceClass = v 22396 } 22397 22398 /************************************************* 22399 * ProxyLBCertificates 22400 *************************************************/ 22401 22402 // ProxyLBCertificates represents API parameter/response structure 22403 type ProxyLBCertificates struct { 22404 PrimaryCert *ProxyLBPrimaryCert 22405 AdditionalCerts []*ProxyLBAdditionalCert `mapconv:"[]AdditionalCerts, recursive"` 22406 } 22407 22408 // setDefaults implements iaas.argumentDefaulter 22409 func (o *ProxyLBCertificates) setDefaults() interface{} { 22410 return &struct { 22411 PrimaryCert *ProxyLBPrimaryCert 22412 AdditionalCerts []*ProxyLBAdditionalCert `mapconv:"[]AdditionalCerts, recursive"` 22413 }{ 22414 PrimaryCert: o.GetPrimaryCert(), 22415 AdditionalCerts: o.GetAdditionalCerts(), 22416 } 22417 } 22418 22419 // GetPrimaryCert returns value of PrimaryCert 22420 func (o *ProxyLBCertificates) GetPrimaryCert() *ProxyLBPrimaryCert { 22421 return o.PrimaryCert 22422 } 22423 22424 // SetPrimaryCert sets value to PrimaryCert 22425 func (o *ProxyLBCertificates) SetPrimaryCert(v *ProxyLBPrimaryCert) { 22426 o.PrimaryCert = v 22427 } 22428 22429 // GetAdditionalCerts returns value of AdditionalCerts 22430 func (o *ProxyLBCertificates) GetAdditionalCerts() []*ProxyLBAdditionalCert { 22431 return o.AdditionalCerts 22432 } 22433 22434 // SetAdditionalCerts sets value to AdditionalCerts 22435 func (o *ProxyLBCertificates) SetAdditionalCerts(v []*ProxyLBAdditionalCert) { 22436 o.AdditionalCerts = v 22437 } 22438 22439 /************************************************* 22440 * ProxyLBPrimaryCert 22441 *************************************************/ 22442 22443 // ProxyLBPrimaryCert represents API parameter/response structure 22444 type ProxyLBPrimaryCert struct { 22445 ServerCertificate string 22446 IntermediateCertificate string 22447 PrivateKey string 22448 CertificateEndDate time.Time 22449 CertificateCommonName string 22450 CertificateAltNames string 22451 } 22452 22453 // setDefaults implements iaas.argumentDefaulter 22454 func (o *ProxyLBPrimaryCert) setDefaults() interface{} { 22455 return &struct { 22456 ServerCertificate string 22457 IntermediateCertificate string 22458 PrivateKey string 22459 CertificateEndDate time.Time 22460 CertificateCommonName string 22461 CertificateAltNames string 22462 }{ 22463 ServerCertificate: o.GetServerCertificate(), 22464 IntermediateCertificate: o.GetIntermediateCertificate(), 22465 PrivateKey: o.GetPrivateKey(), 22466 CertificateEndDate: o.GetCertificateEndDate(), 22467 CertificateCommonName: o.GetCertificateCommonName(), 22468 CertificateAltNames: o.GetCertificateAltNames(), 22469 } 22470 } 22471 22472 // GetServerCertificate returns value of ServerCertificate 22473 func (o *ProxyLBPrimaryCert) GetServerCertificate() string { 22474 return o.ServerCertificate 22475 } 22476 22477 // SetServerCertificate sets value to ServerCertificate 22478 func (o *ProxyLBPrimaryCert) SetServerCertificate(v string) { 22479 o.ServerCertificate = v 22480 } 22481 22482 // GetIntermediateCertificate returns value of IntermediateCertificate 22483 func (o *ProxyLBPrimaryCert) GetIntermediateCertificate() string { 22484 return o.IntermediateCertificate 22485 } 22486 22487 // SetIntermediateCertificate sets value to IntermediateCertificate 22488 func (o *ProxyLBPrimaryCert) SetIntermediateCertificate(v string) { 22489 o.IntermediateCertificate = v 22490 } 22491 22492 // GetPrivateKey returns value of PrivateKey 22493 func (o *ProxyLBPrimaryCert) GetPrivateKey() string { 22494 return o.PrivateKey 22495 } 22496 22497 // SetPrivateKey sets value to PrivateKey 22498 func (o *ProxyLBPrimaryCert) SetPrivateKey(v string) { 22499 o.PrivateKey = v 22500 } 22501 22502 // GetCertificateEndDate returns value of CertificateEndDate 22503 func (o *ProxyLBPrimaryCert) GetCertificateEndDate() time.Time { 22504 return o.CertificateEndDate 22505 } 22506 22507 // SetCertificateEndDate sets value to CertificateEndDate 22508 func (o *ProxyLBPrimaryCert) SetCertificateEndDate(v time.Time) { 22509 o.CertificateEndDate = v 22510 } 22511 22512 // GetCertificateCommonName returns value of CertificateCommonName 22513 func (o *ProxyLBPrimaryCert) GetCertificateCommonName() string { 22514 return o.CertificateCommonName 22515 } 22516 22517 // SetCertificateCommonName sets value to CertificateCommonName 22518 func (o *ProxyLBPrimaryCert) SetCertificateCommonName(v string) { 22519 o.CertificateCommonName = v 22520 } 22521 22522 // GetCertificateAltNames returns value of CertificateAltNames 22523 func (o *ProxyLBPrimaryCert) GetCertificateAltNames() string { 22524 return o.CertificateAltNames 22525 } 22526 22527 // SetCertificateAltNames sets value to CertificateAltNames 22528 func (o *ProxyLBPrimaryCert) SetCertificateAltNames(v string) { 22529 o.CertificateAltNames = v 22530 } 22531 22532 /************************************************* 22533 * ProxyLBAdditionalCert 22534 *************************************************/ 22535 22536 // ProxyLBAdditionalCert represents API parameter/response structure 22537 type ProxyLBAdditionalCert struct { 22538 ServerCertificate string 22539 IntermediateCertificate string 22540 PrivateKey string 22541 CertificateEndDate time.Time 22542 CertificateCommonName string 22543 CertificateAltNames string 22544 } 22545 22546 // setDefaults implements iaas.argumentDefaulter 22547 func (o *ProxyLBAdditionalCert) setDefaults() interface{} { 22548 return &struct { 22549 ServerCertificate string 22550 IntermediateCertificate string 22551 PrivateKey string 22552 CertificateEndDate time.Time 22553 CertificateCommonName string 22554 CertificateAltNames string 22555 }{ 22556 ServerCertificate: o.GetServerCertificate(), 22557 IntermediateCertificate: o.GetIntermediateCertificate(), 22558 PrivateKey: o.GetPrivateKey(), 22559 CertificateEndDate: o.GetCertificateEndDate(), 22560 CertificateCommonName: o.GetCertificateCommonName(), 22561 CertificateAltNames: o.GetCertificateAltNames(), 22562 } 22563 } 22564 22565 // GetServerCertificate returns value of ServerCertificate 22566 func (o *ProxyLBAdditionalCert) GetServerCertificate() string { 22567 return o.ServerCertificate 22568 } 22569 22570 // SetServerCertificate sets value to ServerCertificate 22571 func (o *ProxyLBAdditionalCert) SetServerCertificate(v string) { 22572 o.ServerCertificate = v 22573 } 22574 22575 // GetIntermediateCertificate returns value of IntermediateCertificate 22576 func (o *ProxyLBAdditionalCert) GetIntermediateCertificate() string { 22577 return o.IntermediateCertificate 22578 } 22579 22580 // SetIntermediateCertificate sets value to IntermediateCertificate 22581 func (o *ProxyLBAdditionalCert) SetIntermediateCertificate(v string) { 22582 o.IntermediateCertificate = v 22583 } 22584 22585 // GetPrivateKey returns value of PrivateKey 22586 func (o *ProxyLBAdditionalCert) GetPrivateKey() string { 22587 return o.PrivateKey 22588 } 22589 22590 // SetPrivateKey sets value to PrivateKey 22591 func (o *ProxyLBAdditionalCert) SetPrivateKey(v string) { 22592 o.PrivateKey = v 22593 } 22594 22595 // GetCertificateEndDate returns value of CertificateEndDate 22596 func (o *ProxyLBAdditionalCert) GetCertificateEndDate() time.Time { 22597 return o.CertificateEndDate 22598 } 22599 22600 // SetCertificateEndDate sets value to CertificateEndDate 22601 func (o *ProxyLBAdditionalCert) SetCertificateEndDate(v time.Time) { 22602 o.CertificateEndDate = v 22603 } 22604 22605 // GetCertificateCommonName returns value of CertificateCommonName 22606 func (o *ProxyLBAdditionalCert) GetCertificateCommonName() string { 22607 return o.CertificateCommonName 22608 } 22609 22610 // SetCertificateCommonName sets value to CertificateCommonName 22611 func (o *ProxyLBAdditionalCert) SetCertificateCommonName(v string) { 22612 o.CertificateCommonName = v 22613 } 22614 22615 // GetCertificateAltNames returns value of CertificateAltNames 22616 func (o *ProxyLBAdditionalCert) GetCertificateAltNames() string { 22617 return o.CertificateAltNames 22618 } 22619 22620 // SetCertificateAltNames sets value to CertificateAltNames 22621 func (o *ProxyLBAdditionalCert) SetCertificateAltNames(v string) { 22622 o.CertificateAltNames = v 22623 } 22624 22625 /************************************************* 22626 * ProxyLBSetCertificatesRequest 22627 *************************************************/ 22628 22629 // ProxyLBSetCertificatesRequest represents API parameter/response structure 22630 type ProxyLBSetCertificatesRequest struct { 22631 PrimaryCerts *ProxyLBPrimaryCert `mapconv:"PrimaryCert"` 22632 AdditionalCerts []*ProxyLBAdditionalCert `mapconv:"[]AdditionalCerts, recursive"` 22633 } 22634 22635 // setDefaults implements iaas.argumentDefaulter 22636 func (o *ProxyLBSetCertificatesRequest) setDefaults() interface{} { 22637 return &struct { 22638 PrimaryCerts *ProxyLBPrimaryCert `mapconv:"PrimaryCert"` 22639 AdditionalCerts []*ProxyLBAdditionalCert `mapconv:"[]AdditionalCerts, recursive"` 22640 }{ 22641 PrimaryCerts: o.GetPrimaryCerts(), 22642 AdditionalCerts: o.GetAdditionalCerts(), 22643 } 22644 } 22645 22646 // GetPrimaryCerts returns value of PrimaryCerts 22647 func (o *ProxyLBSetCertificatesRequest) GetPrimaryCerts() *ProxyLBPrimaryCert { 22648 return o.PrimaryCerts 22649 } 22650 22651 // SetPrimaryCerts sets value to PrimaryCerts 22652 func (o *ProxyLBSetCertificatesRequest) SetPrimaryCerts(v *ProxyLBPrimaryCert) { 22653 o.PrimaryCerts = v 22654 } 22655 22656 // GetAdditionalCerts returns value of AdditionalCerts 22657 func (o *ProxyLBSetCertificatesRequest) GetAdditionalCerts() []*ProxyLBAdditionalCert { 22658 return o.AdditionalCerts 22659 } 22660 22661 // SetAdditionalCerts sets value to AdditionalCerts 22662 func (o *ProxyLBSetCertificatesRequest) SetAdditionalCerts(v []*ProxyLBAdditionalCert) { 22663 o.AdditionalCerts = v 22664 } 22665 22666 /************************************************* 22667 * ProxyLBHealth 22668 *************************************************/ 22669 22670 // ProxyLBHealth represents API parameter/response structure 22671 type ProxyLBHealth struct { 22672 ActiveConn int 22673 CPS float64 22674 CurrentVIP string 22675 Servers []*LoadBalancerServerStatus `mapconv:"[]Servers,recursive"` 22676 } 22677 22678 // setDefaults implements iaas.argumentDefaulter 22679 func (o *ProxyLBHealth) setDefaults() interface{} { 22680 return &struct { 22681 ActiveConn int 22682 CPS float64 22683 CurrentVIP string 22684 Servers []*LoadBalancerServerStatus `mapconv:"[]Servers,recursive"` 22685 }{ 22686 ActiveConn: o.GetActiveConn(), 22687 CPS: o.GetCPS(), 22688 CurrentVIP: o.GetCurrentVIP(), 22689 Servers: o.GetServers(), 22690 } 22691 } 22692 22693 // GetActiveConn returns value of ActiveConn 22694 func (o *ProxyLBHealth) GetActiveConn() int { 22695 return o.ActiveConn 22696 } 22697 22698 // SetActiveConn sets value to ActiveConn 22699 func (o *ProxyLBHealth) SetActiveConn(v int) { 22700 o.ActiveConn = v 22701 } 22702 22703 // GetCPS returns value of CPS 22704 func (o *ProxyLBHealth) GetCPS() float64 { 22705 return o.CPS 22706 } 22707 22708 // SetCPS sets value to CPS 22709 func (o *ProxyLBHealth) SetCPS(v float64) { 22710 o.CPS = v 22711 } 22712 22713 // GetCurrentVIP returns value of CurrentVIP 22714 func (o *ProxyLBHealth) GetCurrentVIP() string { 22715 return o.CurrentVIP 22716 } 22717 22718 // SetCurrentVIP sets value to CurrentVIP 22719 func (o *ProxyLBHealth) SetCurrentVIP(v string) { 22720 o.CurrentVIP = v 22721 } 22722 22723 // GetServers returns value of Servers 22724 func (o *ProxyLBHealth) GetServers() []*LoadBalancerServerStatus { 22725 return o.Servers 22726 } 22727 22728 // SetServers sets value to Servers 22729 func (o *ProxyLBHealth) SetServers(v []*LoadBalancerServerStatus) { 22730 o.Servers = v 22731 } 22732 22733 /************************************************* 22734 * ConnectionActivity 22735 *************************************************/ 22736 22737 // ConnectionActivity represents API parameter/response structure 22738 type ConnectionActivity struct { 22739 Values []*MonitorConnectionValue `mapconv:"[]Connection"` 22740 } 22741 22742 // setDefaults implements iaas.argumentDefaulter 22743 func (o *ConnectionActivity) setDefaults() interface{} { 22744 return &struct { 22745 Values []*MonitorConnectionValue `mapconv:"[]Connection"` 22746 }{ 22747 Values: o.GetValues(), 22748 } 22749 } 22750 22751 // GetValues returns value of Values 22752 func (o *ConnectionActivity) GetValues() []*MonitorConnectionValue { 22753 return o.Values 22754 } 22755 22756 // SetValues sets value to Values 22757 func (o *ConnectionActivity) SetValues(v []*MonitorConnectionValue) { 22758 o.Values = v 22759 } 22760 22761 /************************************************* 22762 * MonitorConnectionValue 22763 *************************************************/ 22764 22765 // MonitorConnectionValue represents API parameter/response structure 22766 type MonitorConnectionValue struct { 22767 Time time.Time `mapconv:",omitempty"` 22768 ActiveConnections float64 `mapconv:",omitempty"` 22769 ConnectionsPerSec float64 `mapconv:",omitempty"` 22770 } 22771 22772 // setDefaults implements iaas.argumentDefaulter 22773 func (o *MonitorConnectionValue) setDefaults() interface{} { 22774 return &struct { 22775 Time time.Time `mapconv:",omitempty"` 22776 ActiveConnections float64 `mapconv:",omitempty"` 22777 ConnectionsPerSec float64 `mapconv:",omitempty"` 22778 }{ 22779 Time: o.GetTime(), 22780 ActiveConnections: o.GetActiveConnections(), 22781 ConnectionsPerSec: o.GetConnectionsPerSec(), 22782 } 22783 } 22784 22785 // GetTime returns value of Time 22786 func (o *MonitorConnectionValue) GetTime() time.Time { 22787 return o.Time 22788 } 22789 22790 // SetTime sets value to Time 22791 func (o *MonitorConnectionValue) SetTime(v time.Time) { 22792 o.Time = v 22793 } 22794 22795 // GetActiveConnections returns value of ActiveConnections 22796 func (o *MonitorConnectionValue) GetActiveConnections() float64 { 22797 return o.ActiveConnections 22798 } 22799 22800 // SetActiveConnections sets value to ActiveConnections 22801 func (o *MonitorConnectionValue) SetActiveConnections(v float64) { 22802 o.ActiveConnections = v 22803 } 22804 22805 // GetConnectionsPerSec returns value of ConnectionsPerSec 22806 func (o *MonitorConnectionValue) GetConnectionsPerSec() float64 { 22807 return o.ConnectionsPerSec 22808 } 22809 22810 // SetConnectionsPerSec sets value to ConnectionsPerSec 22811 func (o *MonitorConnectionValue) SetConnectionsPerSec(v float64) { 22812 o.ConnectionsPerSec = v 22813 } 22814 22815 /************************************************* 22816 * Server 22817 *************************************************/ 22818 22819 // Server represents API parameter/response structure 22820 type Server struct { 22821 ID types.ID 22822 Name string 22823 Description string 22824 Tags types.Tags 22825 Availability types.EAvailability 22826 HostName string 22827 InterfaceDriver types.EInterfaceDriver 22828 ServerPlanID types.ID `mapconv:"ServerPlan.ID"` 22829 ServerPlanName string `mapconv:"ServerPlan.Name"` 22830 CPU int `mapconv:"ServerPlan.CPU"` 22831 MemoryMB int `mapconv:"ServerPlan.MemoryMB"` 22832 GPU int `mapconv:"ServerPlan.GPU"` 22833 ServerPlanCPUModel string `json:",omitempty" mapconv:"ServerPlan.CPUModel"` 22834 ServerPlanCommitment types.ECommitment `json:",omitempty" mapconv:"ServerPlan.Commitment"` 22835 ServerPlanGeneration types.EPlanGeneration `mapconv:"ServerPlan.Generation"` 22836 Zone *ZoneInfo `json:",omitempty" mapconv:",omitempty,recursive"` 22837 InstanceHostName string `mapconv:"Instance.Host.Name"` 22838 InstanceHostInfoURL string `mapconv:"Instance.Host.InfoURL"` 22839 InstanceStatus types.EServerInstanceStatus `mapconv:"Instance.Status"` 22840 InstanceBeforeStatus types.EServerInstanceStatus `mapconv:"Instance.BeforeStatus"` 22841 InstanceStatusChangedAt time.Time `mapconv:"Instance.StatusChangedAt"` 22842 InstanceWarnings string `mapconv:"Instance.Warnings"` 22843 InstanceWarningsValue int `mapconv:"Instance.WarningsValue"` 22844 Disks []*ServerConnectedDisk `json:",omitempty" mapconv:",recursive"` 22845 Interfaces []*InterfaceView `json:",omitempty" mapconv:"[]Interfaces,recursive,omitempty"` 22846 CDROMID types.ID `mapconv:"Instance.CDROM.ID"` 22847 PrivateHostID types.ID `mapconv:"PrivateHost.ID"` 22848 PrivateHostName string `mapconv:"PrivateHost.Name"` 22849 BundleInfo *BundleInfo `json:",omitempty" mapconv:",omitempty,recursive"` 22850 IconID types.ID `mapconv:"Icon.ID"` 22851 CreatedAt time.Time 22852 ModifiedAt time.Time 22853 } 22854 22855 // setDefaults implements iaas.argumentDefaulter 22856 func (o *Server) setDefaults() interface{} { 22857 return &struct { 22858 ID types.ID 22859 Name string 22860 Description string 22861 Tags types.Tags 22862 Availability types.EAvailability 22863 HostName string 22864 InterfaceDriver types.EInterfaceDriver 22865 ServerPlanID types.ID `mapconv:"ServerPlan.ID"` 22866 ServerPlanName string `mapconv:"ServerPlan.Name"` 22867 CPU int `mapconv:"ServerPlan.CPU"` 22868 MemoryMB int `mapconv:"ServerPlan.MemoryMB"` 22869 GPU int `mapconv:"ServerPlan.GPU"` 22870 ServerPlanCPUModel string `json:",omitempty" mapconv:"ServerPlan.CPUModel"` 22871 ServerPlanCommitment types.ECommitment `json:",omitempty" mapconv:"ServerPlan.Commitment"` 22872 ServerPlanGeneration types.EPlanGeneration `mapconv:"ServerPlan.Generation"` 22873 Zone *ZoneInfo `json:",omitempty" mapconv:",omitempty,recursive"` 22874 InstanceHostName string `mapconv:"Instance.Host.Name"` 22875 InstanceHostInfoURL string `mapconv:"Instance.Host.InfoURL"` 22876 InstanceStatus types.EServerInstanceStatus `mapconv:"Instance.Status"` 22877 InstanceBeforeStatus types.EServerInstanceStatus `mapconv:"Instance.BeforeStatus"` 22878 InstanceStatusChangedAt time.Time `mapconv:"Instance.StatusChangedAt"` 22879 InstanceWarnings string `mapconv:"Instance.Warnings"` 22880 InstanceWarningsValue int `mapconv:"Instance.WarningsValue"` 22881 Disks []*ServerConnectedDisk `json:",omitempty" mapconv:",recursive"` 22882 Interfaces []*InterfaceView `json:",omitempty" mapconv:"[]Interfaces,recursive,omitempty"` 22883 CDROMID types.ID `mapconv:"Instance.CDROM.ID"` 22884 PrivateHostID types.ID `mapconv:"PrivateHost.ID"` 22885 PrivateHostName string `mapconv:"PrivateHost.Name"` 22886 BundleInfo *BundleInfo `json:",omitempty" mapconv:",omitempty,recursive"` 22887 IconID types.ID `mapconv:"Icon.ID"` 22888 CreatedAt time.Time 22889 ModifiedAt time.Time 22890 }{ 22891 ID: o.GetID(), 22892 Name: o.GetName(), 22893 Description: o.GetDescription(), 22894 Tags: o.GetTags(), 22895 Availability: o.GetAvailability(), 22896 HostName: o.GetHostName(), 22897 InterfaceDriver: o.GetInterfaceDriver(), 22898 ServerPlanID: o.GetServerPlanID(), 22899 ServerPlanName: o.GetServerPlanName(), 22900 CPU: o.GetCPU(), 22901 MemoryMB: o.GetMemoryMB(), 22902 GPU: o.GetGPU(), 22903 ServerPlanCPUModel: o.GetServerPlanCPUModel(), 22904 ServerPlanCommitment: o.GetServerPlanCommitment(), 22905 ServerPlanGeneration: o.GetServerPlanGeneration(), 22906 Zone: o.GetZone(), 22907 InstanceHostName: o.GetInstanceHostName(), 22908 InstanceHostInfoURL: o.GetInstanceHostInfoURL(), 22909 InstanceStatus: o.GetInstanceStatus(), 22910 InstanceBeforeStatus: o.GetInstanceBeforeStatus(), 22911 InstanceStatusChangedAt: o.GetInstanceStatusChangedAt(), 22912 InstanceWarnings: o.GetInstanceWarnings(), 22913 InstanceWarningsValue: o.GetInstanceWarningsValue(), 22914 Disks: o.GetDisks(), 22915 Interfaces: o.GetInterfaces(), 22916 CDROMID: o.GetCDROMID(), 22917 PrivateHostID: o.GetPrivateHostID(), 22918 PrivateHostName: o.GetPrivateHostName(), 22919 BundleInfo: o.GetBundleInfo(), 22920 IconID: o.GetIconID(), 22921 CreatedAt: o.GetCreatedAt(), 22922 ModifiedAt: o.GetModifiedAt(), 22923 } 22924 } 22925 22926 // GetID returns value of ID 22927 func (o *Server) GetID() types.ID { 22928 return o.ID 22929 } 22930 22931 // SetID sets value to ID 22932 func (o *Server) SetID(v types.ID) { 22933 o.ID = v 22934 } 22935 22936 // SetStringID . 22937 func (o *Server) SetStringID(id string) { 22938 accessor.SetStringID(o, id) 22939 } 22940 22941 // GetStringID . 22942 func (o *Server) GetStringID() string { 22943 return accessor.GetStringID(o) 22944 } 22945 22946 // SetInt64ID . 22947 func (o *Server) SetInt64ID(id int64) { 22948 accessor.SetInt64ID(o, id) 22949 } 22950 22951 // GetInt64ID . 22952 func (o *Server) GetInt64ID() int64 { 22953 return accessor.GetInt64ID(o) 22954 } 22955 22956 // GetName returns value of Name 22957 func (o *Server) GetName() string { 22958 return o.Name 22959 } 22960 22961 // SetName sets value to Name 22962 func (o *Server) SetName(v string) { 22963 o.Name = v 22964 } 22965 22966 // GetDescription returns value of Description 22967 func (o *Server) GetDescription() string { 22968 return o.Description 22969 } 22970 22971 // SetDescription sets value to Description 22972 func (o *Server) SetDescription(v string) { 22973 o.Description = v 22974 } 22975 22976 // GetTags returns value of Tags 22977 func (o *Server) GetTags() types.Tags { 22978 return o.Tags 22979 } 22980 22981 // SetTags sets value to Tags 22982 func (o *Server) SetTags(v types.Tags) { 22983 o.Tags = v 22984 } 22985 22986 // HasTag 指定のタグが存在する場合trueを返す 22987 func (o *Server) HasTag(tag string) bool { 22988 return accessor.HasTag(o, tag) 22989 } 22990 22991 // AppendTag 指定のタグを追加 22992 func (o *Server) AppendTag(tag string) { 22993 accessor.AppendTag(o, tag) 22994 } 22995 22996 // RemoveTag 指定のタグを削除 22997 func (o *Server) RemoveTag(tag string) { 22998 accessor.RemoveTag(o, tag) 22999 } 23000 23001 // ClearTags タグを全クリア 23002 func (o *Server) ClearTags() { 23003 accessor.ClearTags(o) 23004 } 23005 23006 // GetAvailability returns value of Availability 23007 func (o *Server) GetAvailability() types.EAvailability { 23008 return o.Availability 23009 } 23010 23011 // SetAvailability sets value to Availability 23012 func (o *Server) SetAvailability(v types.EAvailability) { 23013 o.Availability = v 23014 } 23015 23016 // GetHostName returns value of HostName 23017 func (o *Server) GetHostName() string { 23018 return o.HostName 23019 } 23020 23021 // SetHostName sets value to HostName 23022 func (o *Server) SetHostName(v string) { 23023 o.HostName = v 23024 } 23025 23026 // GetInterfaceDriver returns value of InterfaceDriver 23027 func (o *Server) GetInterfaceDriver() types.EInterfaceDriver { 23028 if o.InterfaceDriver == types.EInterfaceDriver("") { 23029 return types.InterfaceDrivers.VirtIO 23030 } 23031 return o.InterfaceDriver 23032 } 23033 23034 // SetInterfaceDriver sets value to InterfaceDriver 23035 func (o *Server) SetInterfaceDriver(v types.EInterfaceDriver) { 23036 o.InterfaceDriver = v 23037 } 23038 23039 // GetServerPlanID returns value of ServerPlanID 23040 func (o *Server) GetServerPlanID() types.ID { 23041 return o.ServerPlanID 23042 } 23043 23044 // SetServerPlanID sets value to ServerPlanID 23045 func (o *Server) SetServerPlanID(v types.ID) { 23046 o.ServerPlanID = v 23047 } 23048 23049 // GetServerPlanName returns value of ServerPlanName 23050 func (o *Server) GetServerPlanName() string { 23051 return o.ServerPlanName 23052 } 23053 23054 // SetServerPlanName sets value to ServerPlanName 23055 func (o *Server) SetServerPlanName(v string) { 23056 o.ServerPlanName = v 23057 } 23058 23059 // GetCPU returns value of CPU 23060 func (o *Server) GetCPU() int { 23061 return o.CPU 23062 } 23063 23064 // SetCPU sets value to CPU 23065 func (o *Server) SetCPU(v int) { 23066 o.CPU = v 23067 } 23068 23069 // GetMemoryMB returns value of MemoryMB 23070 func (o *Server) GetMemoryMB() int { 23071 return o.MemoryMB 23072 } 23073 23074 // SetMemoryMB sets value to MemoryMB 23075 func (o *Server) SetMemoryMB(v int) { 23076 o.MemoryMB = v 23077 } 23078 23079 // GetMemoryGB . 23080 func (o *Server) GetMemoryGB() int { 23081 return accessor.GetMemoryGB(o) 23082 } 23083 23084 // GetGPU returns value of GPU 23085 func (o *Server) GetGPU() int { 23086 return o.GPU 23087 } 23088 23089 // SetGPU sets value to GPU 23090 func (o *Server) SetGPU(v int) { 23091 o.GPU = v 23092 } 23093 23094 // GetServerPlanCPUModel returns value of ServerPlanCPUModel 23095 func (o *Server) GetServerPlanCPUModel() string { 23096 return o.ServerPlanCPUModel 23097 } 23098 23099 // SetServerPlanCPUModel sets value to ServerPlanCPUModel 23100 func (o *Server) SetServerPlanCPUModel(v string) { 23101 o.ServerPlanCPUModel = v 23102 } 23103 23104 // GetServerPlanCommitment returns value of ServerPlanCommitment 23105 func (o *Server) GetServerPlanCommitment() types.ECommitment { 23106 if o.ServerPlanCommitment == types.ECommitment("") { 23107 return types.Commitments.Standard 23108 } 23109 return o.ServerPlanCommitment 23110 } 23111 23112 // SetServerPlanCommitment sets value to ServerPlanCommitment 23113 func (o *Server) SetServerPlanCommitment(v types.ECommitment) { 23114 o.ServerPlanCommitment = v 23115 } 23116 23117 // GetServerPlanGeneration returns value of ServerPlanGeneration 23118 func (o *Server) GetServerPlanGeneration() types.EPlanGeneration { 23119 return o.ServerPlanGeneration 23120 } 23121 23122 // SetServerPlanGeneration sets value to ServerPlanGeneration 23123 func (o *Server) SetServerPlanGeneration(v types.EPlanGeneration) { 23124 o.ServerPlanGeneration = v 23125 } 23126 23127 // GetZone returns value of Zone 23128 func (o *Server) GetZone() *ZoneInfo { 23129 return o.Zone 23130 } 23131 23132 // SetZone sets value to Zone 23133 func (o *Server) SetZone(v *ZoneInfo) { 23134 o.Zone = v 23135 } 23136 23137 // GetInstanceHostName returns value of InstanceHostName 23138 func (o *Server) GetInstanceHostName() string { 23139 return o.InstanceHostName 23140 } 23141 23142 // SetInstanceHostName sets value to InstanceHostName 23143 func (o *Server) SetInstanceHostName(v string) { 23144 o.InstanceHostName = v 23145 } 23146 23147 // GetInstanceHostInfoURL returns value of InstanceHostInfoURL 23148 func (o *Server) GetInstanceHostInfoURL() string { 23149 return o.InstanceHostInfoURL 23150 } 23151 23152 // SetInstanceHostInfoURL sets value to InstanceHostInfoURL 23153 func (o *Server) SetInstanceHostInfoURL(v string) { 23154 o.InstanceHostInfoURL = v 23155 } 23156 23157 // GetInstanceStatus returns value of InstanceStatus 23158 func (o *Server) GetInstanceStatus() types.EServerInstanceStatus { 23159 return o.InstanceStatus 23160 } 23161 23162 // SetInstanceStatus sets value to InstanceStatus 23163 func (o *Server) SetInstanceStatus(v types.EServerInstanceStatus) { 23164 o.InstanceStatus = v 23165 } 23166 23167 // GetInstanceBeforeStatus returns value of InstanceBeforeStatus 23168 func (o *Server) GetInstanceBeforeStatus() types.EServerInstanceStatus { 23169 return o.InstanceBeforeStatus 23170 } 23171 23172 // SetInstanceBeforeStatus sets value to InstanceBeforeStatus 23173 func (o *Server) SetInstanceBeforeStatus(v types.EServerInstanceStatus) { 23174 o.InstanceBeforeStatus = v 23175 } 23176 23177 // GetInstanceStatusChangedAt returns value of InstanceStatusChangedAt 23178 func (o *Server) GetInstanceStatusChangedAt() time.Time { 23179 return o.InstanceStatusChangedAt 23180 } 23181 23182 // SetInstanceStatusChangedAt sets value to InstanceStatusChangedAt 23183 func (o *Server) SetInstanceStatusChangedAt(v time.Time) { 23184 o.InstanceStatusChangedAt = v 23185 } 23186 23187 // GetInstanceWarnings returns value of InstanceWarnings 23188 func (o *Server) GetInstanceWarnings() string { 23189 return o.InstanceWarnings 23190 } 23191 23192 // SetInstanceWarnings sets value to InstanceWarnings 23193 func (o *Server) SetInstanceWarnings(v string) { 23194 o.InstanceWarnings = v 23195 } 23196 23197 // GetInstanceWarningsValue returns value of InstanceWarningsValue 23198 func (o *Server) GetInstanceWarningsValue() int { 23199 return o.InstanceWarningsValue 23200 } 23201 23202 // SetInstanceWarningsValue sets value to InstanceWarningsValue 23203 func (o *Server) SetInstanceWarningsValue(v int) { 23204 o.InstanceWarningsValue = v 23205 } 23206 23207 // GetDisks returns value of Disks 23208 func (o *Server) GetDisks() []*ServerConnectedDisk { 23209 return o.Disks 23210 } 23211 23212 // SetDisks sets value to Disks 23213 func (o *Server) SetDisks(v []*ServerConnectedDisk) { 23214 o.Disks = v 23215 } 23216 23217 // GetInterfaces returns value of Interfaces 23218 func (o *Server) GetInterfaces() []*InterfaceView { 23219 return o.Interfaces 23220 } 23221 23222 // SetInterfaces sets value to Interfaces 23223 func (o *Server) SetInterfaces(v []*InterfaceView) { 23224 o.Interfaces = v 23225 } 23226 23227 // GetCDROMID returns value of CDROMID 23228 func (o *Server) GetCDROMID() types.ID { 23229 return o.CDROMID 23230 } 23231 23232 // SetCDROMID sets value to CDROMID 23233 func (o *Server) SetCDROMID(v types.ID) { 23234 o.CDROMID = v 23235 } 23236 23237 // GetPrivateHostID returns value of PrivateHostID 23238 func (o *Server) GetPrivateHostID() types.ID { 23239 return o.PrivateHostID 23240 } 23241 23242 // SetPrivateHostID sets value to PrivateHostID 23243 func (o *Server) SetPrivateHostID(v types.ID) { 23244 o.PrivateHostID = v 23245 } 23246 23247 // GetPrivateHostName returns value of PrivateHostName 23248 func (o *Server) GetPrivateHostName() string { 23249 return o.PrivateHostName 23250 } 23251 23252 // SetPrivateHostName sets value to PrivateHostName 23253 func (o *Server) SetPrivateHostName(v string) { 23254 o.PrivateHostName = v 23255 } 23256 23257 // GetBundleInfo returns value of BundleInfo 23258 func (o *Server) GetBundleInfo() *BundleInfo { 23259 return o.BundleInfo 23260 } 23261 23262 // SetBundleInfo sets value to BundleInfo 23263 func (o *Server) SetBundleInfo(v *BundleInfo) { 23264 o.BundleInfo = v 23265 } 23266 23267 // GetIconID returns value of IconID 23268 func (o *Server) GetIconID() types.ID { 23269 return o.IconID 23270 } 23271 23272 // SetIconID sets value to IconID 23273 func (o *Server) SetIconID(v types.ID) { 23274 o.IconID = v 23275 } 23276 23277 // GetCreatedAt returns value of CreatedAt 23278 func (o *Server) GetCreatedAt() time.Time { 23279 return o.CreatedAt 23280 } 23281 23282 // SetCreatedAt sets value to CreatedAt 23283 func (o *Server) SetCreatedAt(v time.Time) { 23284 o.CreatedAt = v 23285 } 23286 23287 // GetModifiedAt returns value of ModifiedAt 23288 func (o *Server) GetModifiedAt() time.Time { 23289 return o.ModifiedAt 23290 } 23291 23292 // SetModifiedAt sets value to ModifiedAt 23293 func (o *Server) SetModifiedAt(v time.Time) { 23294 o.ModifiedAt = v 23295 } 23296 23297 /************************************************* 23298 * ZoneInfo 23299 *************************************************/ 23300 23301 // ZoneInfo represents API parameter/response structure 23302 type ZoneInfo struct { 23303 ID types.ID 23304 Name string 23305 DisplayName string `json:",omitempty" mapconv:"Description,omitempty"` 23306 IsDummy bool `json:",omitempty" mapconv:",omitempty"` 23307 VNCProxy *VNCProxy `json:",omitempty" mapconv:",omitempty,recursive"` 23308 FTPServer *FTPServerInfo `json:",omitempty" mapconv:",omitempty,recursive"` 23309 Region *Region `json:",omitempty" mapconv:",omitempty,recursive"` 23310 } 23311 23312 // setDefaults implements iaas.argumentDefaulter 23313 func (o *ZoneInfo) setDefaults() interface{} { 23314 return &struct { 23315 ID types.ID 23316 Name string 23317 DisplayName string `json:",omitempty" mapconv:"Description,omitempty"` 23318 IsDummy bool `json:",omitempty" mapconv:",omitempty"` 23319 VNCProxy *VNCProxy `json:",omitempty" mapconv:",omitempty,recursive"` 23320 FTPServer *FTPServerInfo `json:",omitempty" mapconv:",omitempty,recursive"` 23321 Region *Region `json:",omitempty" mapconv:",omitempty,recursive"` 23322 }{ 23323 ID: o.GetID(), 23324 Name: o.GetName(), 23325 DisplayName: o.GetDisplayName(), 23326 IsDummy: o.GetIsDummy(), 23327 VNCProxy: o.GetVNCProxy(), 23328 FTPServer: o.GetFTPServer(), 23329 Region: o.GetRegion(), 23330 } 23331 } 23332 23333 // GetID returns value of ID 23334 func (o *ZoneInfo) GetID() types.ID { 23335 return o.ID 23336 } 23337 23338 // SetID sets value to ID 23339 func (o *ZoneInfo) SetID(v types.ID) { 23340 o.ID = v 23341 } 23342 23343 // SetStringID . 23344 func (o *ZoneInfo) SetStringID(id string) { 23345 accessor.SetStringID(o, id) 23346 } 23347 23348 // GetStringID . 23349 func (o *ZoneInfo) GetStringID() string { 23350 return accessor.GetStringID(o) 23351 } 23352 23353 // SetInt64ID . 23354 func (o *ZoneInfo) SetInt64ID(id int64) { 23355 accessor.SetInt64ID(o, id) 23356 } 23357 23358 // GetInt64ID . 23359 func (o *ZoneInfo) GetInt64ID() int64 { 23360 return accessor.GetInt64ID(o) 23361 } 23362 23363 // GetName returns value of Name 23364 func (o *ZoneInfo) GetName() string { 23365 return o.Name 23366 } 23367 23368 // SetName sets value to Name 23369 func (o *ZoneInfo) SetName(v string) { 23370 o.Name = v 23371 } 23372 23373 // GetDisplayName returns value of DisplayName 23374 func (o *ZoneInfo) GetDisplayName() string { 23375 return o.DisplayName 23376 } 23377 23378 // SetDisplayName sets value to DisplayName 23379 func (o *ZoneInfo) SetDisplayName(v string) { 23380 o.DisplayName = v 23381 } 23382 23383 // GetIsDummy returns value of IsDummy 23384 func (o *ZoneInfo) GetIsDummy() bool { 23385 return o.IsDummy 23386 } 23387 23388 // SetIsDummy sets value to IsDummy 23389 func (o *ZoneInfo) SetIsDummy(v bool) { 23390 o.IsDummy = v 23391 } 23392 23393 // GetVNCProxy returns value of VNCProxy 23394 func (o *ZoneInfo) GetVNCProxy() *VNCProxy { 23395 return o.VNCProxy 23396 } 23397 23398 // SetVNCProxy sets value to VNCProxy 23399 func (o *ZoneInfo) SetVNCProxy(v *VNCProxy) { 23400 o.VNCProxy = v 23401 } 23402 23403 // GetFTPServer returns value of FTPServer 23404 func (o *ZoneInfo) GetFTPServer() *FTPServerInfo { 23405 return o.FTPServer 23406 } 23407 23408 // SetFTPServer sets value to FTPServer 23409 func (o *ZoneInfo) SetFTPServer(v *FTPServerInfo) { 23410 o.FTPServer = v 23411 } 23412 23413 // GetRegion returns value of Region 23414 func (o *ZoneInfo) GetRegion() *Region { 23415 return o.Region 23416 } 23417 23418 // SetRegion sets value to Region 23419 func (o *ZoneInfo) SetRegion(v *Region) { 23420 o.Region = v 23421 } 23422 23423 /************************************************* 23424 * VNCProxy 23425 *************************************************/ 23426 23427 // VNCProxy represents API parameter/response structure 23428 type VNCProxy struct { 23429 HostName string `json:",omitempty" mapconv:",omitempty"` 23430 IPAddress string `json:",omitempty" mapconv:",omitempty"` 23431 } 23432 23433 // setDefaults implements iaas.argumentDefaulter 23434 func (o *VNCProxy) setDefaults() interface{} { 23435 return &struct { 23436 HostName string `json:",omitempty" mapconv:",omitempty"` 23437 IPAddress string `json:",omitempty" mapconv:",omitempty"` 23438 }{ 23439 HostName: o.GetHostName(), 23440 IPAddress: o.GetIPAddress(), 23441 } 23442 } 23443 23444 // GetHostName returns value of HostName 23445 func (o *VNCProxy) GetHostName() string { 23446 return o.HostName 23447 } 23448 23449 // SetHostName sets value to HostName 23450 func (o *VNCProxy) SetHostName(v string) { 23451 o.HostName = v 23452 } 23453 23454 // GetIPAddress returns value of IPAddress 23455 func (o *VNCProxy) GetIPAddress() string { 23456 return o.IPAddress 23457 } 23458 23459 // SetIPAddress sets value to IPAddress 23460 func (o *VNCProxy) SetIPAddress(v string) { 23461 o.IPAddress = v 23462 } 23463 23464 /************************************************* 23465 * FTPServerInfo 23466 *************************************************/ 23467 23468 // FTPServerInfo represents API parameter/response structure 23469 type FTPServerInfo struct { 23470 HostName string 23471 IPAddress string 23472 } 23473 23474 // setDefaults implements iaas.argumentDefaulter 23475 func (o *FTPServerInfo) setDefaults() interface{} { 23476 return &struct { 23477 HostName string 23478 IPAddress string 23479 }{ 23480 HostName: o.GetHostName(), 23481 IPAddress: o.GetIPAddress(), 23482 } 23483 } 23484 23485 // GetHostName returns value of HostName 23486 func (o *FTPServerInfo) GetHostName() string { 23487 return o.HostName 23488 } 23489 23490 // SetHostName sets value to HostName 23491 func (o *FTPServerInfo) SetHostName(v string) { 23492 o.HostName = v 23493 } 23494 23495 // GetIPAddress returns value of IPAddress 23496 func (o *FTPServerInfo) GetIPAddress() string { 23497 return o.IPAddress 23498 } 23499 23500 // SetIPAddress sets value to IPAddress 23501 func (o *FTPServerInfo) SetIPAddress(v string) { 23502 o.IPAddress = v 23503 } 23504 23505 /************************************************* 23506 * ServerConnectedDisk 23507 *************************************************/ 23508 23509 // ServerConnectedDisk represents API parameter/response structure 23510 type ServerConnectedDisk struct { 23511 ID types.ID 23512 Name string 23513 Availability types.EAvailability 23514 Connection types.EDiskConnection `json:",omitempty" mapconv:",omitempty"` 23515 ConnectionOrder int 23516 EncryptionAlgorithm types.EDiskEncryptionAlgorithm `json:",omitempty" mapconv:",omitempty"` 23517 ReinstallCount int 23518 SizeMB int 23519 DiskPlanID types.ID `mapconv:"Plan.ID"` 23520 Storage *Storage `json:",omitempty" mapconv:",omitempty,recursive"` 23521 } 23522 23523 // setDefaults implements iaas.argumentDefaulter 23524 func (o *ServerConnectedDisk) setDefaults() interface{} { 23525 return &struct { 23526 ID types.ID 23527 Name string 23528 Availability types.EAvailability 23529 Connection types.EDiskConnection `json:",omitempty" mapconv:",omitempty"` 23530 ConnectionOrder int 23531 EncryptionAlgorithm types.EDiskEncryptionAlgorithm `json:",omitempty" mapconv:",omitempty"` 23532 ReinstallCount int 23533 SizeMB int 23534 DiskPlanID types.ID `mapconv:"Plan.ID"` 23535 Storage *Storage `json:",omitempty" mapconv:",omitempty,recursive"` 23536 }{ 23537 ID: o.GetID(), 23538 Name: o.GetName(), 23539 Availability: o.GetAvailability(), 23540 Connection: o.GetConnection(), 23541 ConnectionOrder: o.GetConnectionOrder(), 23542 EncryptionAlgorithm: o.GetEncryptionAlgorithm(), 23543 ReinstallCount: o.GetReinstallCount(), 23544 SizeMB: o.GetSizeMB(), 23545 DiskPlanID: o.GetDiskPlanID(), 23546 Storage: o.GetStorage(), 23547 } 23548 } 23549 23550 // GetID returns value of ID 23551 func (o *ServerConnectedDisk) GetID() types.ID { 23552 return o.ID 23553 } 23554 23555 // SetID sets value to ID 23556 func (o *ServerConnectedDisk) SetID(v types.ID) { 23557 o.ID = v 23558 } 23559 23560 // SetStringID . 23561 func (o *ServerConnectedDisk) SetStringID(id string) { 23562 accessor.SetStringID(o, id) 23563 } 23564 23565 // GetStringID . 23566 func (o *ServerConnectedDisk) GetStringID() string { 23567 return accessor.GetStringID(o) 23568 } 23569 23570 // SetInt64ID . 23571 func (o *ServerConnectedDisk) SetInt64ID(id int64) { 23572 accessor.SetInt64ID(o, id) 23573 } 23574 23575 // GetInt64ID . 23576 func (o *ServerConnectedDisk) GetInt64ID() int64 { 23577 return accessor.GetInt64ID(o) 23578 } 23579 23580 // GetName returns value of Name 23581 func (o *ServerConnectedDisk) GetName() string { 23582 return o.Name 23583 } 23584 23585 // SetName sets value to Name 23586 func (o *ServerConnectedDisk) SetName(v string) { 23587 o.Name = v 23588 } 23589 23590 // GetAvailability returns value of Availability 23591 func (o *ServerConnectedDisk) GetAvailability() types.EAvailability { 23592 return o.Availability 23593 } 23594 23595 // SetAvailability sets value to Availability 23596 func (o *ServerConnectedDisk) SetAvailability(v types.EAvailability) { 23597 o.Availability = v 23598 } 23599 23600 // GetConnection returns value of Connection 23601 func (o *ServerConnectedDisk) GetConnection() types.EDiskConnection { 23602 return o.Connection 23603 } 23604 23605 // SetConnection sets value to Connection 23606 func (o *ServerConnectedDisk) SetConnection(v types.EDiskConnection) { 23607 o.Connection = v 23608 } 23609 23610 // GetConnectionOrder returns value of ConnectionOrder 23611 func (o *ServerConnectedDisk) GetConnectionOrder() int { 23612 return o.ConnectionOrder 23613 } 23614 23615 // SetConnectionOrder sets value to ConnectionOrder 23616 func (o *ServerConnectedDisk) SetConnectionOrder(v int) { 23617 o.ConnectionOrder = v 23618 } 23619 23620 // GetEncryptionAlgorithm returns value of EncryptionAlgorithm 23621 func (o *ServerConnectedDisk) GetEncryptionAlgorithm() types.EDiskEncryptionAlgorithm { 23622 return o.EncryptionAlgorithm 23623 } 23624 23625 // SetEncryptionAlgorithm sets value to EncryptionAlgorithm 23626 func (o *ServerConnectedDisk) SetEncryptionAlgorithm(v types.EDiskEncryptionAlgorithm) { 23627 o.EncryptionAlgorithm = v 23628 } 23629 23630 // GetReinstallCount returns value of ReinstallCount 23631 func (o *ServerConnectedDisk) GetReinstallCount() int { 23632 return o.ReinstallCount 23633 } 23634 23635 // SetReinstallCount sets value to ReinstallCount 23636 func (o *ServerConnectedDisk) SetReinstallCount(v int) { 23637 o.ReinstallCount = v 23638 } 23639 23640 // GetSizeMB returns value of SizeMB 23641 func (o *ServerConnectedDisk) GetSizeMB() int { 23642 return o.SizeMB 23643 } 23644 23645 // SetSizeMB sets value to SizeMB 23646 func (o *ServerConnectedDisk) SetSizeMB(v int) { 23647 o.SizeMB = v 23648 } 23649 23650 // GetSizeGB . 23651 func (o *ServerConnectedDisk) GetSizeGB() int { 23652 return accessor.GetSizeGB(o) 23653 } 23654 23655 // SetSizeGB . 23656 func (o *ServerConnectedDisk) SetSizeGB(size int) { 23657 accessor.SetSizeGB(o, size) 23658 } 23659 23660 // GetDiskPlanID returns value of DiskPlanID 23661 func (o *ServerConnectedDisk) GetDiskPlanID() types.ID { 23662 return o.DiskPlanID 23663 } 23664 23665 // SetDiskPlanID sets value to DiskPlanID 23666 func (o *ServerConnectedDisk) SetDiskPlanID(v types.ID) { 23667 o.DiskPlanID = v 23668 } 23669 23670 // GetStorage returns value of Storage 23671 func (o *ServerConnectedDisk) GetStorage() *Storage { 23672 return o.Storage 23673 } 23674 23675 // SetStorage sets value to Storage 23676 func (o *ServerConnectedDisk) SetStorage(v *Storage) { 23677 o.Storage = v 23678 } 23679 23680 /************************************************* 23681 * ServerCreateRequest 23682 *************************************************/ 23683 23684 // ServerCreateRequest represents API parameter/response structure 23685 type ServerCreateRequest struct { 23686 CPU int `mapconv:"ServerPlan.CPU"` 23687 MemoryMB int `mapconv:"ServerPlan.MemoryMB"` 23688 GPU int `mapconv:"ServerPlan.GPU"` 23689 ServerPlanCPUModel string `json:",omitempty" mapconv:"ServerPlan.CPUModel"` 23690 ServerPlanCommitment types.ECommitment `json:",omitempty" mapconv:"ServerPlan.Commitment"` 23691 ServerPlanGeneration types.EPlanGeneration `mapconv:"ServerPlan.Generation"` 23692 ConnectedSwitches []*ConnectedSwitch `json:",omitempty" mapconv:"[]ConnectedSwitches,recursive"` 23693 InterfaceDriver types.EInterfaceDriver 23694 Name string 23695 Description string 23696 Tags types.Tags 23697 IconID types.ID `mapconv:"Icon.ID"` 23698 WaitDiskMigration bool `json:",omitempty" mapconv:",omitempty"` 23699 PrivateHostID types.ID `mapconv:"PrivateHost.ID"` 23700 } 23701 23702 // setDefaults implements iaas.argumentDefaulter 23703 func (o *ServerCreateRequest) setDefaults() interface{} { 23704 return &struct { 23705 CPU int `mapconv:"ServerPlan.CPU"` 23706 MemoryMB int `mapconv:"ServerPlan.MemoryMB"` 23707 GPU int `mapconv:"ServerPlan.GPU"` 23708 ServerPlanCPUModel string `json:",omitempty" mapconv:"ServerPlan.CPUModel"` 23709 ServerPlanCommitment types.ECommitment `json:",omitempty" mapconv:"ServerPlan.Commitment"` 23710 ServerPlanGeneration types.EPlanGeneration `mapconv:"ServerPlan.Generation"` 23711 ConnectedSwitches []*ConnectedSwitch `json:",omitempty" mapconv:"[]ConnectedSwitches,recursive"` 23712 InterfaceDriver types.EInterfaceDriver 23713 Name string 23714 Description string 23715 Tags types.Tags 23716 IconID types.ID `mapconv:"Icon.ID"` 23717 WaitDiskMigration bool `json:",omitempty" mapconv:",omitempty"` 23718 PrivateHostID types.ID `mapconv:"PrivateHost.ID"` 23719 }{ 23720 CPU: o.GetCPU(), 23721 MemoryMB: o.GetMemoryMB(), 23722 GPU: o.GetGPU(), 23723 ServerPlanCPUModel: o.GetServerPlanCPUModel(), 23724 ServerPlanCommitment: o.GetServerPlanCommitment(), 23725 ServerPlanGeneration: o.GetServerPlanGeneration(), 23726 ConnectedSwitches: o.GetConnectedSwitches(), 23727 InterfaceDriver: o.GetInterfaceDriver(), 23728 Name: o.GetName(), 23729 Description: o.GetDescription(), 23730 Tags: o.GetTags(), 23731 IconID: o.GetIconID(), 23732 WaitDiskMigration: o.GetWaitDiskMigration(), 23733 PrivateHostID: o.GetPrivateHostID(), 23734 } 23735 } 23736 23737 // GetCPU returns value of CPU 23738 func (o *ServerCreateRequest) GetCPU() int { 23739 return o.CPU 23740 } 23741 23742 // SetCPU sets value to CPU 23743 func (o *ServerCreateRequest) SetCPU(v int) { 23744 o.CPU = v 23745 } 23746 23747 // GetMemoryMB returns value of MemoryMB 23748 func (o *ServerCreateRequest) GetMemoryMB() int { 23749 return o.MemoryMB 23750 } 23751 23752 // SetMemoryMB sets value to MemoryMB 23753 func (o *ServerCreateRequest) SetMemoryMB(v int) { 23754 o.MemoryMB = v 23755 } 23756 23757 // GetMemoryGB . 23758 func (o *ServerCreateRequest) GetMemoryGB() int { 23759 return accessor.GetMemoryGB(o) 23760 } 23761 23762 // GetGPU returns value of GPU 23763 func (o *ServerCreateRequest) GetGPU() int { 23764 return o.GPU 23765 } 23766 23767 // SetGPU sets value to GPU 23768 func (o *ServerCreateRequest) SetGPU(v int) { 23769 o.GPU = v 23770 } 23771 23772 // GetServerPlanCPUModel returns value of ServerPlanCPUModel 23773 func (o *ServerCreateRequest) GetServerPlanCPUModel() string { 23774 return o.ServerPlanCPUModel 23775 } 23776 23777 // SetServerPlanCPUModel sets value to ServerPlanCPUModel 23778 func (o *ServerCreateRequest) SetServerPlanCPUModel(v string) { 23779 o.ServerPlanCPUModel = v 23780 } 23781 23782 // GetServerPlanCommitment returns value of ServerPlanCommitment 23783 func (o *ServerCreateRequest) GetServerPlanCommitment() types.ECommitment { 23784 if o.ServerPlanCommitment == types.ECommitment("") { 23785 return types.Commitments.Standard 23786 } 23787 return o.ServerPlanCommitment 23788 } 23789 23790 // SetServerPlanCommitment sets value to ServerPlanCommitment 23791 func (o *ServerCreateRequest) SetServerPlanCommitment(v types.ECommitment) { 23792 o.ServerPlanCommitment = v 23793 } 23794 23795 // GetServerPlanGeneration returns value of ServerPlanGeneration 23796 func (o *ServerCreateRequest) GetServerPlanGeneration() types.EPlanGeneration { 23797 return o.ServerPlanGeneration 23798 } 23799 23800 // SetServerPlanGeneration sets value to ServerPlanGeneration 23801 func (o *ServerCreateRequest) SetServerPlanGeneration(v types.EPlanGeneration) { 23802 o.ServerPlanGeneration = v 23803 } 23804 23805 // GetConnectedSwitches returns value of ConnectedSwitches 23806 func (o *ServerCreateRequest) GetConnectedSwitches() []*ConnectedSwitch { 23807 return o.ConnectedSwitches 23808 } 23809 23810 // SetConnectedSwitches sets value to ConnectedSwitches 23811 func (o *ServerCreateRequest) SetConnectedSwitches(v []*ConnectedSwitch) { 23812 o.ConnectedSwitches = v 23813 } 23814 23815 // GetInterfaceDriver returns value of InterfaceDriver 23816 func (o *ServerCreateRequest) GetInterfaceDriver() types.EInterfaceDriver { 23817 if o.InterfaceDriver == types.EInterfaceDriver("") { 23818 return types.InterfaceDrivers.VirtIO 23819 } 23820 return o.InterfaceDriver 23821 } 23822 23823 // SetInterfaceDriver sets value to InterfaceDriver 23824 func (o *ServerCreateRequest) SetInterfaceDriver(v types.EInterfaceDriver) { 23825 o.InterfaceDriver = v 23826 } 23827 23828 // GetName returns value of Name 23829 func (o *ServerCreateRequest) GetName() string { 23830 return o.Name 23831 } 23832 23833 // SetName sets value to Name 23834 func (o *ServerCreateRequest) SetName(v string) { 23835 o.Name = v 23836 } 23837 23838 // GetDescription returns value of Description 23839 func (o *ServerCreateRequest) GetDescription() string { 23840 return o.Description 23841 } 23842 23843 // SetDescription sets value to Description 23844 func (o *ServerCreateRequest) SetDescription(v string) { 23845 o.Description = v 23846 } 23847 23848 // GetTags returns value of Tags 23849 func (o *ServerCreateRequest) GetTags() types.Tags { 23850 return o.Tags 23851 } 23852 23853 // SetTags sets value to Tags 23854 func (o *ServerCreateRequest) SetTags(v types.Tags) { 23855 o.Tags = v 23856 } 23857 23858 // HasTag 指定のタグが存在する場合trueを返す 23859 func (o *ServerCreateRequest) HasTag(tag string) bool { 23860 return accessor.HasTag(o, tag) 23861 } 23862 23863 // AppendTag 指定のタグを追加 23864 func (o *ServerCreateRequest) AppendTag(tag string) { 23865 accessor.AppendTag(o, tag) 23866 } 23867 23868 // RemoveTag 指定のタグを削除 23869 func (o *ServerCreateRequest) RemoveTag(tag string) { 23870 accessor.RemoveTag(o, tag) 23871 } 23872 23873 // ClearTags タグを全クリア 23874 func (o *ServerCreateRequest) ClearTags() { 23875 accessor.ClearTags(o) 23876 } 23877 23878 // GetIconID returns value of IconID 23879 func (o *ServerCreateRequest) GetIconID() types.ID { 23880 return o.IconID 23881 } 23882 23883 // SetIconID sets value to IconID 23884 func (o *ServerCreateRequest) SetIconID(v types.ID) { 23885 o.IconID = v 23886 } 23887 23888 // GetWaitDiskMigration returns value of WaitDiskMigration 23889 func (o *ServerCreateRequest) GetWaitDiskMigration() bool { 23890 return o.WaitDiskMigration 23891 } 23892 23893 // SetWaitDiskMigration sets value to WaitDiskMigration 23894 func (o *ServerCreateRequest) SetWaitDiskMigration(v bool) { 23895 o.WaitDiskMigration = v 23896 } 23897 23898 // GetPrivateHostID returns value of PrivateHostID 23899 func (o *ServerCreateRequest) GetPrivateHostID() types.ID { 23900 return o.PrivateHostID 23901 } 23902 23903 // SetPrivateHostID sets value to PrivateHostID 23904 func (o *ServerCreateRequest) SetPrivateHostID(v types.ID) { 23905 o.PrivateHostID = v 23906 } 23907 23908 /************************************************* 23909 * ConnectedSwitch 23910 *************************************************/ 23911 23912 // ConnectedSwitch represents API parameter/response structure 23913 type ConnectedSwitch struct { 23914 ID types.ID 23915 Scope types.EScope 23916 } 23917 23918 // setDefaults implements iaas.argumentDefaulter 23919 func (o *ConnectedSwitch) setDefaults() interface{} { 23920 return &struct { 23921 ID types.ID 23922 Scope types.EScope 23923 }{ 23924 ID: o.GetID(), 23925 Scope: o.GetScope(), 23926 } 23927 } 23928 23929 // GetID returns value of ID 23930 func (o *ConnectedSwitch) GetID() types.ID { 23931 return o.ID 23932 } 23933 23934 // SetID sets value to ID 23935 func (o *ConnectedSwitch) SetID(v types.ID) { 23936 o.ID = v 23937 } 23938 23939 // SetStringID . 23940 func (o *ConnectedSwitch) SetStringID(id string) { 23941 accessor.SetStringID(o, id) 23942 } 23943 23944 // GetStringID . 23945 func (o *ConnectedSwitch) GetStringID() string { 23946 return accessor.GetStringID(o) 23947 } 23948 23949 // SetInt64ID . 23950 func (o *ConnectedSwitch) SetInt64ID(id int64) { 23951 accessor.SetInt64ID(o, id) 23952 } 23953 23954 // GetInt64ID . 23955 func (o *ConnectedSwitch) GetInt64ID() int64 { 23956 return accessor.GetInt64ID(o) 23957 } 23958 23959 // GetScope returns value of Scope 23960 func (o *ConnectedSwitch) GetScope() types.EScope { 23961 return o.Scope 23962 } 23963 23964 // SetScope sets value to Scope 23965 func (o *ConnectedSwitch) SetScope(v types.EScope) { 23966 o.Scope = v 23967 } 23968 23969 /************************************************* 23970 * ServerUpdateRequest 23971 *************************************************/ 23972 23973 // ServerUpdateRequest represents API parameter/response structure 23974 type ServerUpdateRequest struct { 23975 Name string 23976 Description string 23977 Tags types.Tags 23978 IconID types.ID `mapconv:"Icon.ID"` 23979 PrivateHostID types.ID `mapconv:"PrivateHost.ID"` 23980 InterfaceDriver types.EInterfaceDriver 23981 } 23982 23983 // setDefaults implements iaas.argumentDefaulter 23984 func (o *ServerUpdateRequest) setDefaults() interface{} { 23985 return &struct { 23986 Name string 23987 Description string 23988 Tags types.Tags 23989 IconID types.ID `mapconv:"Icon.ID"` 23990 PrivateHostID types.ID `mapconv:"PrivateHost.ID"` 23991 InterfaceDriver types.EInterfaceDriver 23992 }{ 23993 Name: o.GetName(), 23994 Description: o.GetDescription(), 23995 Tags: o.GetTags(), 23996 IconID: o.GetIconID(), 23997 PrivateHostID: o.GetPrivateHostID(), 23998 InterfaceDriver: o.GetInterfaceDriver(), 23999 } 24000 } 24001 24002 // GetName returns value of Name 24003 func (o *ServerUpdateRequest) GetName() string { 24004 return o.Name 24005 } 24006 24007 // SetName sets value to Name 24008 func (o *ServerUpdateRequest) SetName(v string) { 24009 o.Name = v 24010 } 24011 24012 // GetDescription returns value of Description 24013 func (o *ServerUpdateRequest) GetDescription() string { 24014 return o.Description 24015 } 24016 24017 // SetDescription sets value to Description 24018 func (o *ServerUpdateRequest) SetDescription(v string) { 24019 o.Description = v 24020 } 24021 24022 // GetTags returns value of Tags 24023 func (o *ServerUpdateRequest) GetTags() types.Tags { 24024 return o.Tags 24025 } 24026 24027 // SetTags sets value to Tags 24028 func (o *ServerUpdateRequest) SetTags(v types.Tags) { 24029 o.Tags = v 24030 } 24031 24032 // HasTag 指定のタグが存在する場合trueを返す 24033 func (o *ServerUpdateRequest) HasTag(tag string) bool { 24034 return accessor.HasTag(o, tag) 24035 } 24036 24037 // AppendTag 指定のタグを追加 24038 func (o *ServerUpdateRequest) AppendTag(tag string) { 24039 accessor.AppendTag(o, tag) 24040 } 24041 24042 // RemoveTag 指定のタグを削除 24043 func (o *ServerUpdateRequest) RemoveTag(tag string) { 24044 accessor.RemoveTag(o, tag) 24045 } 24046 24047 // ClearTags タグを全クリア 24048 func (o *ServerUpdateRequest) ClearTags() { 24049 accessor.ClearTags(o) 24050 } 24051 24052 // GetIconID returns value of IconID 24053 func (o *ServerUpdateRequest) GetIconID() types.ID { 24054 return o.IconID 24055 } 24056 24057 // SetIconID sets value to IconID 24058 func (o *ServerUpdateRequest) SetIconID(v types.ID) { 24059 o.IconID = v 24060 } 24061 24062 // GetPrivateHostID returns value of PrivateHostID 24063 func (o *ServerUpdateRequest) GetPrivateHostID() types.ID { 24064 return o.PrivateHostID 24065 } 24066 24067 // SetPrivateHostID sets value to PrivateHostID 24068 func (o *ServerUpdateRequest) SetPrivateHostID(v types.ID) { 24069 o.PrivateHostID = v 24070 } 24071 24072 // GetInterfaceDriver returns value of InterfaceDriver 24073 func (o *ServerUpdateRequest) GetInterfaceDriver() types.EInterfaceDriver { 24074 if o.InterfaceDriver == types.EInterfaceDriver("") { 24075 return types.InterfaceDrivers.VirtIO 24076 } 24077 return o.InterfaceDriver 24078 } 24079 24080 // SetInterfaceDriver sets value to InterfaceDriver 24081 func (o *ServerUpdateRequest) SetInterfaceDriver(v types.EInterfaceDriver) { 24082 o.InterfaceDriver = v 24083 } 24084 24085 /************************************************* 24086 * ServerDeleteWithDisksRequest 24087 *************************************************/ 24088 24089 // ServerDeleteWithDisksRequest represents API parameter/response structure 24090 type ServerDeleteWithDisksRequest struct { 24091 IDs []types.ID `mapconv:"WithDisk"` 24092 } 24093 24094 // setDefaults implements iaas.argumentDefaulter 24095 func (o *ServerDeleteWithDisksRequest) setDefaults() interface{} { 24096 return &struct { 24097 IDs []types.ID `mapconv:"WithDisk"` 24098 }{ 24099 IDs: o.GetIDs(), 24100 } 24101 } 24102 24103 // GetIDs returns value of IDs 24104 func (o *ServerDeleteWithDisksRequest) GetIDs() []types.ID { 24105 return o.IDs 24106 } 24107 24108 // SetIDs sets value to IDs 24109 func (o *ServerDeleteWithDisksRequest) SetIDs(v []types.ID) { 24110 o.IDs = v 24111 } 24112 24113 /************************************************* 24114 * ServerChangePlanRequest 24115 *************************************************/ 24116 24117 // ServerChangePlanRequest represents API parameter/response structure 24118 type ServerChangePlanRequest struct { 24119 CPU int 24120 MemoryMB int 24121 GPU int 24122 ServerPlanCPUModel string `json:"CPUModel,omitempty"` 24123 ServerPlanGeneration types.EPlanGeneration `json:"Generation,omitempty"` 24124 ServerPlanCommitment types.ECommitment `json:"Commitment,omitempty"` 24125 } 24126 24127 // setDefaults implements iaas.argumentDefaulter 24128 func (o *ServerChangePlanRequest) setDefaults() interface{} { 24129 return &struct { 24130 CPU int 24131 MemoryMB int 24132 GPU int 24133 ServerPlanCPUModel string `json:"CPUModel,omitempty"` 24134 ServerPlanGeneration types.EPlanGeneration `json:"Generation,omitempty"` 24135 ServerPlanCommitment types.ECommitment `json:"Commitment,omitempty"` 24136 }{ 24137 CPU: o.GetCPU(), 24138 MemoryMB: o.GetMemoryMB(), 24139 GPU: o.GetGPU(), 24140 ServerPlanCPUModel: o.GetServerPlanCPUModel(), 24141 ServerPlanGeneration: o.GetServerPlanGeneration(), 24142 ServerPlanCommitment: o.GetServerPlanCommitment(), 24143 } 24144 } 24145 24146 // GetCPU returns value of CPU 24147 func (o *ServerChangePlanRequest) GetCPU() int { 24148 return o.CPU 24149 } 24150 24151 // SetCPU sets value to CPU 24152 func (o *ServerChangePlanRequest) SetCPU(v int) { 24153 o.CPU = v 24154 } 24155 24156 // GetMemoryMB returns value of MemoryMB 24157 func (o *ServerChangePlanRequest) GetMemoryMB() int { 24158 return o.MemoryMB 24159 } 24160 24161 // SetMemoryMB sets value to MemoryMB 24162 func (o *ServerChangePlanRequest) SetMemoryMB(v int) { 24163 o.MemoryMB = v 24164 } 24165 24166 // GetMemoryGB . 24167 func (o *ServerChangePlanRequest) GetMemoryGB() int { 24168 return accessor.GetMemoryGB(o) 24169 } 24170 24171 // SetMemoryGB . 24172 func (o *ServerChangePlanRequest) SetMemoryGB(memory int) { 24173 accessor.SetMemoryGB(o, memory) 24174 } 24175 24176 // GetGPU returns value of GPU 24177 func (o *ServerChangePlanRequest) GetGPU() int { 24178 return o.GPU 24179 } 24180 24181 // SetGPU sets value to GPU 24182 func (o *ServerChangePlanRequest) SetGPU(v int) { 24183 o.GPU = v 24184 } 24185 24186 // GetServerPlanCPUModel returns value of ServerPlanCPUModel 24187 func (o *ServerChangePlanRequest) GetServerPlanCPUModel() string { 24188 return o.ServerPlanCPUModel 24189 } 24190 24191 // SetServerPlanCPUModel sets value to ServerPlanCPUModel 24192 func (o *ServerChangePlanRequest) SetServerPlanCPUModel(v string) { 24193 o.ServerPlanCPUModel = v 24194 } 24195 24196 // GetServerPlanGeneration returns value of ServerPlanGeneration 24197 func (o *ServerChangePlanRequest) GetServerPlanGeneration() types.EPlanGeneration { 24198 return o.ServerPlanGeneration 24199 } 24200 24201 // SetServerPlanGeneration sets value to ServerPlanGeneration 24202 func (o *ServerChangePlanRequest) SetServerPlanGeneration(v types.EPlanGeneration) { 24203 o.ServerPlanGeneration = v 24204 } 24205 24206 // GetServerPlanCommitment returns value of ServerPlanCommitment 24207 func (o *ServerChangePlanRequest) GetServerPlanCommitment() types.ECommitment { 24208 if o.ServerPlanCommitment == types.ECommitment("") { 24209 return types.Commitments.Standard 24210 } 24211 return o.ServerPlanCommitment 24212 } 24213 24214 // SetServerPlanCommitment sets value to ServerPlanCommitment 24215 func (o *ServerChangePlanRequest) SetServerPlanCommitment(v types.ECommitment) { 24216 o.ServerPlanCommitment = v 24217 } 24218 24219 /************************************************* 24220 * InsertCDROMRequest 24221 *************************************************/ 24222 24223 // InsertCDROMRequest represents API parameter/response structure 24224 type InsertCDROMRequest struct { 24225 ID types.ID 24226 } 24227 24228 // setDefaults implements iaas.argumentDefaulter 24229 func (o *InsertCDROMRequest) setDefaults() interface{} { 24230 return &struct { 24231 ID types.ID 24232 }{ 24233 ID: o.GetID(), 24234 } 24235 } 24236 24237 // GetID returns value of ID 24238 func (o *InsertCDROMRequest) GetID() types.ID { 24239 return o.ID 24240 } 24241 24242 // SetID sets value to ID 24243 func (o *InsertCDROMRequest) SetID(v types.ID) { 24244 o.ID = v 24245 } 24246 24247 // SetStringID . 24248 func (o *InsertCDROMRequest) SetStringID(id string) { 24249 accessor.SetStringID(o, id) 24250 } 24251 24252 // GetStringID . 24253 func (o *InsertCDROMRequest) GetStringID() string { 24254 return accessor.GetStringID(o) 24255 } 24256 24257 // SetInt64ID . 24258 func (o *InsertCDROMRequest) SetInt64ID(id int64) { 24259 accessor.SetInt64ID(o, id) 24260 } 24261 24262 // GetInt64ID . 24263 func (o *InsertCDROMRequest) GetInt64ID() int64 { 24264 return accessor.GetInt64ID(o) 24265 } 24266 24267 /************************************************* 24268 * EjectCDROMRequest 24269 *************************************************/ 24270 24271 // EjectCDROMRequest represents API parameter/response structure 24272 type EjectCDROMRequest struct { 24273 ID types.ID 24274 } 24275 24276 // setDefaults implements iaas.argumentDefaulter 24277 func (o *EjectCDROMRequest) setDefaults() interface{} { 24278 return &struct { 24279 ID types.ID 24280 }{ 24281 ID: o.GetID(), 24282 } 24283 } 24284 24285 // GetID returns value of ID 24286 func (o *EjectCDROMRequest) GetID() types.ID { 24287 return o.ID 24288 } 24289 24290 // SetID sets value to ID 24291 func (o *EjectCDROMRequest) SetID(v types.ID) { 24292 o.ID = v 24293 } 24294 24295 // SetStringID . 24296 func (o *EjectCDROMRequest) SetStringID(id string) { 24297 accessor.SetStringID(o, id) 24298 } 24299 24300 // GetStringID . 24301 func (o *EjectCDROMRequest) GetStringID() string { 24302 return accessor.GetStringID(o) 24303 } 24304 24305 // SetInt64ID . 24306 func (o *EjectCDROMRequest) SetInt64ID(id int64) { 24307 accessor.SetInt64ID(o, id) 24308 } 24309 24310 // GetInt64ID . 24311 func (o *EjectCDROMRequest) GetInt64ID() int64 { 24312 return accessor.GetInt64ID(o) 24313 } 24314 24315 /************************************************* 24316 * ServerBootVariables 24317 *************************************************/ 24318 24319 // ServerBootVariables represents API parameter/response structure 24320 type ServerBootVariables struct { 24321 UserData string `json:",omitempty" mapconv:"CloudInit.UserData,omitempty"` 24322 } 24323 24324 // setDefaults implements iaas.argumentDefaulter 24325 func (o *ServerBootVariables) setDefaults() interface{} { 24326 return &struct { 24327 UserData string `json:",omitempty" mapconv:"CloudInit.UserData,omitempty"` 24328 }{ 24329 UserData: o.GetUserData(), 24330 } 24331 } 24332 24333 // GetUserData returns value of UserData 24334 func (o *ServerBootVariables) GetUserData() string { 24335 return o.UserData 24336 } 24337 24338 // SetUserData sets value to UserData 24339 func (o *ServerBootVariables) SetUserData(v string) { 24340 o.UserData = v 24341 } 24342 24343 /************************************************* 24344 * SendKeyRequest 24345 *************************************************/ 24346 24347 // SendKeyRequest represents API parameter/response structure 24348 type SendKeyRequest struct { 24349 Key string 24350 Keys []string 24351 } 24352 24353 // setDefaults implements iaas.argumentDefaulter 24354 func (o *SendKeyRequest) setDefaults() interface{} { 24355 return &struct { 24356 Key string 24357 Keys []string 24358 }{ 24359 Key: o.GetKey(), 24360 Keys: o.GetKeys(), 24361 } 24362 } 24363 24364 // GetKey returns value of Key 24365 func (o *SendKeyRequest) GetKey() string { 24366 return o.Key 24367 } 24368 24369 // SetKey sets value to Key 24370 func (o *SendKeyRequest) SetKey(v string) { 24371 o.Key = v 24372 } 24373 24374 // GetKeys returns value of Keys 24375 func (o *SendKeyRequest) GetKeys() []string { 24376 return o.Keys 24377 } 24378 24379 // SetKeys sets value to Keys 24380 func (o *SendKeyRequest) SetKeys(v []string) { 24381 o.Keys = v 24382 } 24383 24384 /************************************************* 24385 * VNCProxyInfo 24386 *************************************************/ 24387 24388 // VNCProxyInfo represents API parameter/response structure 24389 type VNCProxyInfo struct { 24390 Status string 24391 Host string 24392 IOServerHost string 24393 Port types.StringNumber 24394 Password string 24395 VNCFile string 24396 } 24397 24398 // setDefaults implements iaas.argumentDefaulter 24399 func (o *VNCProxyInfo) setDefaults() interface{} { 24400 return &struct { 24401 Status string 24402 Host string 24403 IOServerHost string 24404 Port types.StringNumber 24405 Password string 24406 VNCFile string 24407 }{ 24408 Status: o.GetStatus(), 24409 Host: o.GetHost(), 24410 IOServerHost: o.GetIOServerHost(), 24411 Port: o.GetPort(), 24412 Password: o.GetPassword(), 24413 VNCFile: o.GetVNCFile(), 24414 } 24415 } 24416 24417 // GetStatus returns value of Status 24418 func (o *VNCProxyInfo) GetStatus() string { 24419 return o.Status 24420 } 24421 24422 // SetStatus sets value to Status 24423 func (o *VNCProxyInfo) SetStatus(v string) { 24424 o.Status = v 24425 } 24426 24427 // GetHost returns value of Host 24428 func (o *VNCProxyInfo) GetHost() string { 24429 return o.Host 24430 } 24431 24432 // SetHost sets value to Host 24433 func (o *VNCProxyInfo) SetHost(v string) { 24434 o.Host = v 24435 } 24436 24437 // GetIOServerHost returns value of IOServerHost 24438 func (o *VNCProxyInfo) GetIOServerHost() string { 24439 return o.IOServerHost 24440 } 24441 24442 // SetIOServerHost sets value to IOServerHost 24443 func (o *VNCProxyInfo) SetIOServerHost(v string) { 24444 o.IOServerHost = v 24445 } 24446 24447 // GetPort returns value of Port 24448 func (o *VNCProxyInfo) GetPort() types.StringNumber { 24449 return o.Port 24450 } 24451 24452 // SetPort sets value to Port 24453 func (o *VNCProxyInfo) SetPort(v types.StringNumber) { 24454 o.Port = v 24455 } 24456 24457 // GetPassword returns value of Password 24458 func (o *VNCProxyInfo) GetPassword() string { 24459 return o.Password 24460 } 24461 24462 // SetPassword sets value to Password 24463 func (o *VNCProxyInfo) SetPassword(v string) { 24464 o.Password = v 24465 } 24466 24467 // GetVNCFile returns value of VNCFile 24468 func (o *VNCProxyInfo) GetVNCFile() string { 24469 return o.VNCFile 24470 } 24471 24472 // SetVNCFile sets value to VNCFile 24473 func (o *VNCProxyInfo) SetVNCFile(v string) { 24474 o.VNCFile = v 24475 } 24476 24477 /************************************************* 24478 * ServerPlan 24479 *************************************************/ 24480 24481 // ServerPlan represents API parameter/response structure 24482 type ServerPlan struct { 24483 ID types.ID 24484 Name string 24485 CPU int 24486 MemoryMB int 24487 GPU int 24488 CPUModel string 24489 Commitment types.ECommitment 24490 Generation types.EPlanGeneration 24491 Availability types.EAvailability 24492 } 24493 24494 // setDefaults implements iaas.argumentDefaulter 24495 func (o *ServerPlan) setDefaults() interface{} { 24496 return &struct { 24497 ID types.ID 24498 Name string 24499 CPU int 24500 MemoryMB int 24501 GPU int 24502 CPUModel string 24503 Commitment types.ECommitment 24504 Generation types.EPlanGeneration 24505 Availability types.EAvailability 24506 }{ 24507 ID: o.GetID(), 24508 Name: o.GetName(), 24509 CPU: o.GetCPU(), 24510 MemoryMB: o.GetMemoryMB(), 24511 GPU: o.GetGPU(), 24512 CPUModel: o.GetCPUModel(), 24513 Commitment: o.GetCommitment(), 24514 Generation: o.GetGeneration(), 24515 Availability: o.GetAvailability(), 24516 } 24517 } 24518 24519 // GetID returns value of ID 24520 func (o *ServerPlan) GetID() types.ID { 24521 return o.ID 24522 } 24523 24524 // SetID sets value to ID 24525 func (o *ServerPlan) SetID(v types.ID) { 24526 o.ID = v 24527 } 24528 24529 // SetStringID . 24530 func (o *ServerPlan) SetStringID(id string) { 24531 accessor.SetStringID(o, id) 24532 } 24533 24534 // GetStringID . 24535 func (o *ServerPlan) GetStringID() string { 24536 return accessor.GetStringID(o) 24537 } 24538 24539 // SetInt64ID . 24540 func (o *ServerPlan) SetInt64ID(id int64) { 24541 accessor.SetInt64ID(o, id) 24542 } 24543 24544 // GetInt64ID . 24545 func (o *ServerPlan) GetInt64ID() int64 { 24546 return accessor.GetInt64ID(o) 24547 } 24548 24549 // GetName returns value of Name 24550 func (o *ServerPlan) GetName() string { 24551 return o.Name 24552 } 24553 24554 // SetName sets value to Name 24555 func (o *ServerPlan) SetName(v string) { 24556 o.Name = v 24557 } 24558 24559 // GetCPU returns value of CPU 24560 func (o *ServerPlan) GetCPU() int { 24561 return o.CPU 24562 } 24563 24564 // SetCPU sets value to CPU 24565 func (o *ServerPlan) SetCPU(v int) { 24566 o.CPU = v 24567 } 24568 24569 // GetMemoryMB returns value of MemoryMB 24570 func (o *ServerPlan) GetMemoryMB() int { 24571 return o.MemoryMB 24572 } 24573 24574 // SetMemoryMB sets value to MemoryMB 24575 func (o *ServerPlan) SetMemoryMB(v int) { 24576 o.MemoryMB = v 24577 } 24578 24579 // GetMemoryGB . 24580 func (o *ServerPlan) GetMemoryGB() int { 24581 return accessor.GetMemoryGB(o) 24582 } 24583 24584 // SetMemoryGB . 24585 func (o *ServerPlan) SetMemoryGB(memory int) { 24586 accessor.SetMemoryGB(o, memory) 24587 } 24588 24589 // GetGPU returns value of GPU 24590 func (o *ServerPlan) GetGPU() int { 24591 return o.GPU 24592 } 24593 24594 // SetGPU sets value to GPU 24595 func (o *ServerPlan) SetGPU(v int) { 24596 o.GPU = v 24597 } 24598 24599 // GetCPUModel returns value of CPUModel 24600 func (o *ServerPlan) GetCPUModel() string { 24601 return o.CPUModel 24602 } 24603 24604 // SetCPUModel sets value to CPUModel 24605 func (o *ServerPlan) SetCPUModel(v string) { 24606 o.CPUModel = v 24607 } 24608 24609 // GetCommitment returns value of Commitment 24610 func (o *ServerPlan) GetCommitment() types.ECommitment { 24611 return o.Commitment 24612 } 24613 24614 // SetCommitment sets value to Commitment 24615 func (o *ServerPlan) SetCommitment(v types.ECommitment) { 24616 o.Commitment = v 24617 } 24618 24619 // GetGeneration returns value of Generation 24620 func (o *ServerPlan) GetGeneration() types.EPlanGeneration { 24621 return o.Generation 24622 } 24623 24624 // SetGeneration sets value to Generation 24625 func (o *ServerPlan) SetGeneration(v types.EPlanGeneration) { 24626 o.Generation = v 24627 } 24628 24629 // GetAvailability returns value of Availability 24630 func (o *ServerPlan) GetAvailability() types.EAvailability { 24631 return o.Availability 24632 } 24633 24634 // SetAvailability sets value to Availability 24635 func (o *ServerPlan) SetAvailability(v types.EAvailability) { 24636 o.Availability = v 24637 } 24638 24639 /************************************************* 24640 * ServiceClass 24641 *************************************************/ 24642 24643 // ServiceClass represents API parameter/response structure 24644 type ServiceClass struct { 24645 ID types.ID 24646 ServiceClassName string 24647 ServiceClassPath string 24648 DisplayName string 24649 IsPublic bool 24650 Price *Price `mapconv:",recursive"` 24651 } 24652 24653 // setDefaults implements iaas.argumentDefaulter 24654 func (o *ServiceClass) setDefaults() interface{} { 24655 return &struct { 24656 ID types.ID 24657 ServiceClassName string 24658 ServiceClassPath string 24659 DisplayName string 24660 IsPublic bool 24661 Price *Price `mapconv:",recursive"` 24662 }{ 24663 ID: o.GetID(), 24664 ServiceClassName: o.GetServiceClassName(), 24665 ServiceClassPath: o.GetServiceClassPath(), 24666 DisplayName: o.GetDisplayName(), 24667 IsPublic: o.GetIsPublic(), 24668 Price: o.GetPrice(), 24669 } 24670 } 24671 24672 // GetID returns value of ID 24673 func (o *ServiceClass) GetID() types.ID { 24674 return o.ID 24675 } 24676 24677 // SetID sets value to ID 24678 func (o *ServiceClass) SetID(v types.ID) { 24679 o.ID = v 24680 } 24681 24682 // SetStringID . 24683 func (o *ServiceClass) SetStringID(id string) { 24684 accessor.SetStringID(o, id) 24685 } 24686 24687 // GetStringID . 24688 func (o *ServiceClass) GetStringID() string { 24689 return accessor.GetStringID(o) 24690 } 24691 24692 // SetInt64ID . 24693 func (o *ServiceClass) SetInt64ID(id int64) { 24694 accessor.SetInt64ID(o, id) 24695 } 24696 24697 // GetInt64ID . 24698 func (o *ServiceClass) GetInt64ID() int64 { 24699 return accessor.GetInt64ID(o) 24700 } 24701 24702 // GetServiceClassName returns value of ServiceClassName 24703 func (o *ServiceClass) GetServiceClassName() string { 24704 return o.ServiceClassName 24705 } 24706 24707 // SetServiceClassName sets value to ServiceClassName 24708 func (o *ServiceClass) SetServiceClassName(v string) { 24709 o.ServiceClassName = v 24710 } 24711 24712 // GetServiceClassPath returns value of ServiceClassPath 24713 func (o *ServiceClass) GetServiceClassPath() string { 24714 return o.ServiceClassPath 24715 } 24716 24717 // SetServiceClassPath sets value to ServiceClassPath 24718 func (o *ServiceClass) SetServiceClassPath(v string) { 24719 o.ServiceClassPath = v 24720 } 24721 24722 // GetDisplayName returns value of DisplayName 24723 func (o *ServiceClass) GetDisplayName() string { 24724 return o.DisplayName 24725 } 24726 24727 // SetDisplayName sets value to DisplayName 24728 func (o *ServiceClass) SetDisplayName(v string) { 24729 o.DisplayName = v 24730 } 24731 24732 // GetIsPublic returns value of IsPublic 24733 func (o *ServiceClass) GetIsPublic() bool { 24734 return o.IsPublic 24735 } 24736 24737 // SetIsPublic sets value to IsPublic 24738 func (o *ServiceClass) SetIsPublic(v bool) { 24739 o.IsPublic = v 24740 } 24741 24742 // GetPrice returns value of Price 24743 func (o *ServiceClass) GetPrice() *Price { 24744 return o.Price 24745 } 24746 24747 // SetPrice sets value to Price 24748 func (o *ServiceClass) SetPrice(v *Price) { 24749 o.Price = v 24750 } 24751 24752 /************************************************* 24753 * Price 24754 *************************************************/ 24755 24756 // Price represents API parameter/response structure 24757 type Price struct { 24758 Base int 24759 Daily int 24760 Hourly int 24761 Monthly int 24762 PerUse int 24763 Basic int 24764 Traffic int 24765 DocomoTraffic int 24766 KddiTraffic int 24767 SbTraffic int 24768 SimSheet int 24769 Zone string 24770 } 24771 24772 // setDefaults implements iaas.argumentDefaulter 24773 func (o *Price) setDefaults() interface{} { 24774 return &struct { 24775 Base int 24776 Daily int 24777 Hourly int 24778 Monthly int 24779 PerUse int 24780 Basic int 24781 Traffic int 24782 DocomoTraffic int 24783 KddiTraffic int 24784 SbTraffic int 24785 SimSheet int 24786 Zone string 24787 }{ 24788 Base: o.GetBase(), 24789 Daily: o.GetDaily(), 24790 Hourly: o.GetHourly(), 24791 Monthly: o.GetMonthly(), 24792 PerUse: o.GetPerUse(), 24793 Basic: o.GetBasic(), 24794 Traffic: o.GetTraffic(), 24795 DocomoTraffic: o.GetDocomoTraffic(), 24796 KddiTraffic: o.GetKddiTraffic(), 24797 SbTraffic: o.GetSbTraffic(), 24798 SimSheet: o.GetSimSheet(), 24799 Zone: o.GetZone(), 24800 } 24801 } 24802 24803 // GetBase returns value of Base 24804 func (o *Price) GetBase() int { 24805 return o.Base 24806 } 24807 24808 // SetBase sets value to Base 24809 func (o *Price) SetBase(v int) { 24810 o.Base = v 24811 } 24812 24813 // GetDaily returns value of Daily 24814 func (o *Price) GetDaily() int { 24815 return o.Daily 24816 } 24817 24818 // SetDaily sets value to Daily 24819 func (o *Price) SetDaily(v int) { 24820 o.Daily = v 24821 } 24822 24823 // GetHourly returns value of Hourly 24824 func (o *Price) GetHourly() int { 24825 return o.Hourly 24826 } 24827 24828 // SetHourly sets value to Hourly 24829 func (o *Price) SetHourly(v int) { 24830 o.Hourly = v 24831 } 24832 24833 // GetMonthly returns value of Monthly 24834 func (o *Price) GetMonthly() int { 24835 return o.Monthly 24836 } 24837 24838 // SetMonthly sets value to Monthly 24839 func (o *Price) SetMonthly(v int) { 24840 o.Monthly = v 24841 } 24842 24843 // GetPerUse returns value of PerUse 24844 func (o *Price) GetPerUse() int { 24845 return o.PerUse 24846 } 24847 24848 // SetPerUse sets value to PerUse 24849 func (o *Price) SetPerUse(v int) { 24850 o.PerUse = v 24851 } 24852 24853 // GetBasic returns value of Basic 24854 func (o *Price) GetBasic() int { 24855 return o.Basic 24856 } 24857 24858 // SetBasic sets value to Basic 24859 func (o *Price) SetBasic(v int) { 24860 o.Basic = v 24861 } 24862 24863 // GetTraffic returns value of Traffic 24864 func (o *Price) GetTraffic() int { 24865 return o.Traffic 24866 } 24867 24868 // SetTraffic sets value to Traffic 24869 func (o *Price) SetTraffic(v int) { 24870 o.Traffic = v 24871 } 24872 24873 // GetDocomoTraffic returns value of DocomoTraffic 24874 func (o *Price) GetDocomoTraffic() int { 24875 return o.DocomoTraffic 24876 } 24877 24878 // SetDocomoTraffic sets value to DocomoTraffic 24879 func (o *Price) SetDocomoTraffic(v int) { 24880 o.DocomoTraffic = v 24881 } 24882 24883 // GetKddiTraffic returns value of KddiTraffic 24884 func (o *Price) GetKddiTraffic() int { 24885 return o.KddiTraffic 24886 } 24887 24888 // SetKddiTraffic sets value to KddiTraffic 24889 func (o *Price) SetKddiTraffic(v int) { 24890 o.KddiTraffic = v 24891 } 24892 24893 // GetSbTraffic returns value of SbTraffic 24894 func (o *Price) GetSbTraffic() int { 24895 return o.SbTraffic 24896 } 24897 24898 // SetSbTraffic sets value to SbTraffic 24899 func (o *Price) SetSbTraffic(v int) { 24900 o.SbTraffic = v 24901 } 24902 24903 // GetSimSheet returns value of SimSheet 24904 func (o *Price) GetSimSheet() int { 24905 return o.SimSheet 24906 } 24907 24908 // SetSimSheet sets value to SimSheet 24909 func (o *Price) SetSimSheet(v int) { 24910 o.SimSheet = v 24911 } 24912 24913 // GetZone returns value of Zone 24914 func (o *Price) GetZone() string { 24915 return o.Zone 24916 } 24917 24918 // SetZone sets value to Zone 24919 func (o *Price) SetZone(v string) { 24920 o.Zone = v 24921 } 24922 24923 /************************************************* 24924 * SIM 24925 *************************************************/ 24926 24927 // SIM represents API parameter/response structure 24928 type SIM struct { 24929 ID types.ID 24930 Name string 24931 Description string 24932 Tags types.Tags 24933 Availability types.EAvailability 24934 Class string 24935 ICCID string `mapconv:"Status.ICCID"` 24936 Info *SIMInfo `mapconv:"Status.SIMInfo"` 24937 IconID types.ID `mapconv:"Icon.ID"` 24938 CreatedAt time.Time 24939 ModifiedAt time.Time 24940 } 24941 24942 // setDefaults implements iaas.argumentDefaulter 24943 func (o *SIM) setDefaults() interface{} { 24944 return &struct { 24945 ID types.ID 24946 Name string 24947 Description string 24948 Tags types.Tags 24949 Availability types.EAvailability 24950 Class string 24951 ICCID string `mapconv:"Status.ICCID"` 24952 Info *SIMInfo `mapconv:"Status.SIMInfo"` 24953 IconID types.ID `mapconv:"Icon.ID"` 24954 CreatedAt time.Time 24955 ModifiedAt time.Time 24956 }{ 24957 ID: o.GetID(), 24958 Name: o.GetName(), 24959 Description: o.GetDescription(), 24960 Tags: o.GetTags(), 24961 Availability: o.GetAvailability(), 24962 Class: o.GetClass(), 24963 ICCID: o.GetICCID(), 24964 Info: o.GetInfo(), 24965 IconID: o.GetIconID(), 24966 CreatedAt: o.GetCreatedAt(), 24967 ModifiedAt: o.GetModifiedAt(), 24968 } 24969 } 24970 24971 // GetID returns value of ID 24972 func (o *SIM) GetID() types.ID { 24973 return o.ID 24974 } 24975 24976 // SetID sets value to ID 24977 func (o *SIM) SetID(v types.ID) { 24978 o.ID = v 24979 } 24980 24981 // SetStringID . 24982 func (o *SIM) SetStringID(id string) { 24983 accessor.SetStringID(o, id) 24984 } 24985 24986 // GetStringID . 24987 func (o *SIM) GetStringID() string { 24988 return accessor.GetStringID(o) 24989 } 24990 24991 // SetInt64ID . 24992 func (o *SIM) SetInt64ID(id int64) { 24993 accessor.SetInt64ID(o, id) 24994 } 24995 24996 // GetInt64ID . 24997 func (o *SIM) GetInt64ID() int64 { 24998 return accessor.GetInt64ID(o) 24999 } 25000 25001 // GetName returns value of Name 25002 func (o *SIM) GetName() string { 25003 return o.Name 25004 } 25005 25006 // SetName sets value to Name 25007 func (o *SIM) SetName(v string) { 25008 o.Name = v 25009 } 25010 25011 // GetDescription returns value of Description 25012 func (o *SIM) GetDescription() string { 25013 return o.Description 25014 } 25015 25016 // SetDescription sets value to Description 25017 func (o *SIM) SetDescription(v string) { 25018 o.Description = v 25019 } 25020 25021 // GetTags returns value of Tags 25022 func (o *SIM) GetTags() types.Tags { 25023 return o.Tags 25024 } 25025 25026 // SetTags sets value to Tags 25027 func (o *SIM) SetTags(v types.Tags) { 25028 o.Tags = v 25029 } 25030 25031 // HasTag 指定のタグが存在する場合trueを返す 25032 func (o *SIM) HasTag(tag string) bool { 25033 return accessor.HasTag(o, tag) 25034 } 25035 25036 // AppendTag 指定のタグを追加 25037 func (o *SIM) AppendTag(tag string) { 25038 accessor.AppendTag(o, tag) 25039 } 25040 25041 // RemoveTag 指定のタグを削除 25042 func (o *SIM) RemoveTag(tag string) { 25043 accessor.RemoveTag(o, tag) 25044 } 25045 25046 // ClearTags タグを全クリア 25047 func (o *SIM) ClearTags() { 25048 accessor.ClearTags(o) 25049 } 25050 25051 // GetAvailability returns value of Availability 25052 func (o *SIM) GetAvailability() types.EAvailability { 25053 return o.Availability 25054 } 25055 25056 // SetAvailability sets value to Availability 25057 func (o *SIM) SetAvailability(v types.EAvailability) { 25058 o.Availability = v 25059 } 25060 25061 // GetClass returns value of Class 25062 func (o *SIM) GetClass() string { 25063 return o.Class 25064 } 25065 25066 // SetClass sets value to Class 25067 func (o *SIM) SetClass(v string) { 25068 o.Class = v 25069 } 25070 25071 // GetICCID returns value of ICCID 25072 func (o *SIM) GetICCID() string { 25073 return o.ICCID 25074 } 25075 25076 // SetICCID sets value to ICCID 25077 func (o *SIM) SetICCID(v string) { 25078 o.ICCID = v 25079 } 25080 25081 // GetInfo returns value of Info 25082 func (o *SIM) GetInfo() *SIMInfo { 25083 return o.Info 25084 } 25085 25086 // SetInfo sets value to Info 25087 func (o *SIM) SetInfo(v *SIMInfo) { 25088 o.Info = v 25089 } 25090 25091 // GetIconID returns value of IconID 25092 func (o *SIM) GetIconID() types.ID { 25093 return o.IconID 25094 } 25095 25096 // SetIconID sets value to IconID 25097 func (o *SIM) SetIconID(v types.ID) { 25098 o.IconID = v 25099 } 25100 25101 // GetCreatedAt returns value of CreatedAt 25102 func (o *SIM) GetCreatedAt() time.Time { 25103 return o.CreatedAt 25104 } 25105 25106 // SetCreatedAt sets value to CreatedAt 25107 func (o *SIM) SetCreatedAt(v time.Time) { 25108 o.CreatedAt = v 25109 } 25110 25111 // GetModifiedAt returns value of ModifiedAt 25112 func (o *SIM) GetModifiedAt() time.Time { 25113 return o.ModifiedAt 25114 } 25115 25116 // SetModifiedAt sets value to ModifiedAt 25117 func (o *SIM) SetModifiedAt(v time.Time) { 25118 o.ModifiedAt = v 25119 } 25120 25121 /************************************************* 25122 * SIMInfo 25123 *************************************************/ 25124 25125 // SIMInfo represents API parameter/response structure 25126 type SIMInfo struct { 25127 ICCID string 25128 IMSI []string 25129 IMEI string 25130 IP string 25131 SessionStatus string 25132 IMEILock bool 25133 Registered bool 25134 Activated bool 25135 ResourceID string 25136 RegisteredDate time.Time 25137 ActivatedDate time.Time 25138 DeactivatedDate time.Time 25139 SIMGroupID string 25140 TrafficBytesOfCurrentMonth *SIMTrafficBytes `mapconv:",recursive"` 25141 ConnectedIMEI string 25142 } 25143 25144 // setDefaults implements iaas.argumentDefaulter 25145 func (o *SIMInfo) setDefaults() interface{} { 25146 return &struct { 25147 ICCID string 25148 IMSI []string 25149 IMEI string 25150 IP string 25151 SessionStatus string 25152 IMEILock bool 25153 Registered bool 25154 Activated bool 25155 ResourceID string 25156 RegisteredDate time.Time 25157 ActivatedDate time.Time 25158 DeactivatedDate time.Time 25159 SIMGroupID string 25160 TrafficBytesOfCurrentMonth *SIMTrafficBytes `mapconv:",recursive"` 25161 ConnectedIMEI string 25162 }{ 25163 ICCID: o.GetICCID(), 25164 IMSI: o.GetIMSI(), 25165 IMEI: o.GetIMEI(), 25166 IP: o.GetIP(), 25167 SessionStatus: o.GetSessionStatus(), 25168 IMEILock: o.GetIMEILock(), 25169 Registered: o.GetRegistered(), 25170 Activated: o.GetActivated(), 25171 ResourceID: o.GetResourceID(), 25172 RegisteredDate: o.GetRegisteredDate(), 25173 ActivatedDate: o.GetActivatedDate(), 25174 DeactivatedDate: o.GetDeactivatedDate(), 25175 SIMGroupID: o.GetSIMGroupID(), 25176 TrafficBytesOfCurrentMonth: o.GetTrafficBytesOfCurrentMonth(), 25177 ConnectedIMEI: o.GetConnectedIMEI(), 25178 } 25179 } 25180 25181 // GetICCID returns value of ICCID 25182 func (o *SIMInfo) GetICCID() string { 25183 return o.ICCID 25184 } 25185 25186 // SetICCID sets value to ICCID 25187 func (o *SIMInfo) SetICCID(v string) { 25188 o.ICCID = v 25189 } 25190 25191 // GetIMSI returns value of IMSI 25192 func (o *SIMInfo) GetIMSI() []string { 25193 return o.IMSI 25194 } 25195 25196 // SetIMSI sets value to IMSI 25197 func (o *SIMInfo) SetIMSI(v []string) { 25198 o.IMSI = v 25199 } 25200 25201 // GetIMEI returns value of IMEI 25202 func (o *SIMInfo) GetIMEI() string { 25203 return o.IMEI 25204 } 25205 25206 // SetIMEI sets value to IMEI 25207 func (o *SIMInfo) SetIMEI(v string) { 25208 o.IMEI = v 25209 } 25210 25211 // GetIP returns value of IP 25212 func (o *SIMInfo) GetIP() string { 25213 return o.IP 25214 } 25215 25216 // SetIP sets value to IP 25217 func (o *SIMInfo) SetIP(v string) { 25218 o.IP = v 25219 } 25220 25221 // GetSessionStatus returns value of SessionStatus 25222 func (o *SIMInfo) GetSessionStatus() string { 25223 return o.SessionStatus 25224 } 25225 25226 // SetSessionStatus sets value to SessionStatus 25227 func (o *SIMInfo) SetSessionStatus(v string) { 25228 o.SessionStatus = v 25229 } 25230 25231 // GetIMEILock returns value of IMEILock 25232 func (o *SIMInfo) GetIMEILock() bool { 25233 return o.IMEILock 25234 } 25235 25236 // SetIMEILock sets value to IMEILock 25237 func (o *SIMInfo) SetIMEILock(v bool) { 25238 o.IMEILock = v 25239 } 25240 25241 // GetRegistered returns value of Registered 25242 func (o *SIMInfo) GetRegistered() bool { 25243 return o.Registered 25244 } 25245 25246 // SetRegistered sets value to Registered 25247 func (o *SIMInfo) SetRegistered(v bool) { 25248 o.Registered = v 25249 } 25250 25251 // GetActivated returns value of Activated 25252 func (o *SIMInfo) GetActivated() bool { 25253 return o.Activated 25254 } 25255 25256 // SetActivated sets value to Activated 25257 func (o *SIMInfo) SetActivated(v bool) { 25258 o.Activated = v 25259 } 25260 25261 // GetResourceID returns value of ResourceID 25262 func (o *SIMInfo) GetResourceID() string { 25263 return o.ResourceID 25264 } 25265 25266 // SetResourceID sets value to ResourceID 25267 func (o *SIMInfo) SetResourceID(v string) { 25268 o.ResourceID = v 25269 } 25270 25271 // GetRegisteredDate returns value of RegisteredDate 25272 func (o *SIMInfo) GetRegisteredDate() time.Time { 25273 return o.RegisteredDate 25274 } 25275 25276 // SetRegisteredDate sets value to RegisteredDate 25277 func (o *SIMInfo) SetRegisteredDate(v time.Time) { 25278 o.RegisteredDate = v 25279 } 25280 25281 // GetActivatedDate returns value of ActivatedDate 25282 func (o *SIMInfo) GetActivatedDate() time.Time { 25283 return o.ActivatedDate 25284 } 25285 25286 // SetActivatedDate sets value to ActivatedDate 25287 func (o *SIMInfo) SetActivatedDate(v time.Time) { 25288 o.ActivatedDate = v 25289 } 25290 25291 // GetDeactivatedDate returns value of DeactivatedDate 25292 func (o *SIMInfo) GetDeactivatedDate() time.Time { 25293 return o.DeactivatedDate 25294 } 25295 25296 // SetDeactivatedDate sets value to DeactivatedDate 25297 func (o *SIMInfo) SetDeactivatedDate(v time.Time) { 25298 o.DeactivatedDate = v 25299 } 25300 25301 // GetSIMGroupID returns value of SIMGroupID 25302 func (o *SIMInfo) GetSIMGroupID() string { 25303 return o.SIMGroupID 25304 } 25305 25306 // SetSIMGroupID sets value to SIMGroupID 25307 func (o *SIMInfo) SetSIMGroupID(v string) { 25308 o.SIMGroupID = v 25309 } 25310 25311 // GetTrafficBytesOfCurrentMonth returns value of TrafficBytesOfCurrentMonth 25312 func (o *SIMInfo) GetTrafficBytesOfCurrentMonth() *SIMTrafficBytes { 25313 return o.TrafficBytesOfCurrentMonth 25314 } 25315 25316 // SetTrafficBytesOfCurrentMonth sets value to TrafficBytesOfCurrentMonth 25317 func (o *SIMInfo) SetTrafficBytesOfCurrentMonth(v *SIMTrafficBytes) { 25318 o.TrafficBytesOfCurrentMonth = v 25319 } 25320 25321 // GetConnectedIMEI returns value of ConnectedIMEI 25322 func (o *SIMInfo) GetConnectedIMEI() string { 25323 return o.ConnectedIMEI 25324 } 25325 25326 // SetConnectedIMEI sets value to ConnectedIMEI 25327 func (o *SIMInfo) SetConnectedIMEI(v string) { 25328 o.ConnectedIMEI = v 25329 } 25330 25331 /************************************************* 25332 * SIMCreateRequest 25333 *************************************************/ 25334 25335 // SIMCreateRequest represents API parameter/response structure 25336 type SIMCreateRequest struct { 25337 Name string 25338 Description string 25339 Tags types.Tags 25340 IconID types.ID `mapconv:"Icon.ID"` 25341 ICCID string `mapconv:"Status.ICCID"` 25342 PassCode string `mapconv:"Remark.PassCode"` 25343 } 25344 25345 // setDefaults implements iaas.argumentDefaulter 25346 func (o *SIMCreateRequest) setDefaults() interface{} { 25347 return &struct { 25348 Name string 25349 Description string 25350 Tags types.Tags 25351 IconID types.ID `mapconv:"Icon.ID"` 25352 ICCID string `mapconv:"Status.ICCID"` 25353 PassCode string `mapconv:"Remark.PassCode"` 25354 Class string `mapconv:"Provider.Class"` 25355 }{ 25356 Name: o.GetName(), 25357 Description: o.GetDescription(), 25358 Tags: o.GetTags(), 25359 IconID: o.GetIconID(), 25360 ICCID: o.GetICCID(), 25361 PassCode: o.GetPassCode(), 25362 Class: "sim", 25363 } 25364 } 25365 25366 // GetName returns value of Name 25367 func (o *SIMCreateRequest) GetName() string { 25368 return o.Name 25369 } 25370 25371 // SetName sets value to Name 25372 func (o *SIMCreateRequest) SetName(v string) { 25373 o.Name = v 25374 } 25375 25376 // GetDescription returns value of Description 25377 func (o *SIMCreateRequest) GetDescription() string { 25378 return o.Description 25379 } 25380 25381 // SetDescription sets value to Description 25382 func (o *SIMCreateRequest) SetDescription(v string) { 25383 o.Description = v 25384 } 25385 25386 // GetTags returns value of Tags 25387 func (o *SIMCreateRequest) GetTags() types.Tags { 25388 return o.Tags 25389 } 25390 25391 // SetTags sets value to Tags 25392 func (o *SIMCreateRequest) SetTags(v types.Tags) { 25393 o.Tags = v 25394 } 25395 25396 // HasTag 指定のタグが存在する場合trueを返す 25397 func (o *SIMCreateRequest) HasTag(tag string) bool { 25398 return accessor.HasTag(o, tag) 25399 } 25400 25401 // AppendTag 指定のタグを追加 25402 func (o *SIMCreateRequest) AppendTag(tag string) { 25403 accessor.AppendTag(o, tag) 25404 } 25405 25406 // RemoveTag 指定のタグを削除 25407 func (o *SIMCreateRequest) RemoveTag(tag string) { 25408 accessor.RemoveTag(o, tag) 25409 } 25410 25411 // ClearTags タグを全クリア 25412 func (o *SIMCreateRequest) ClearTags() { 25413 accessor.ClearTags(o) 25414 } 25415 25416 // GetIconID returns value of IconID 25417 func (o *SIMCreateRequest) GetIconID() types.ID { 25418 return o.IconID 25419 } 25420 25421 // SetIconID sets value to IconID 25422 func (o *SIMCreateRequest) SetIconID(v types.ID) { 25423 o.IconID = v 25424 } 25425 25426 // GetICCID returns value of ICCID 25427 func (o *SIMCreateRequest) GetICCID() string { 25428 return o.ICCID 25429 } 25430 25431 // SetICCID sets value to ICCID 25432 func (o *SIMCreateRequest) SetICCID(v string) { 25433 o.ICCID = v 25434 } 25435 25436 // GetPassCode returns value of PassCode 25437 func (o *SIMCreateRequest) GetPassCode() string { 25438 return o.PassCode 25439 } 25440 25441 // SetPassCode sets value to PassCode 25442 func (o *SIMCreateRequest) SetPassCode(v string) { 25443 o.PassCode = v 25444 } 25445 25446 /************************************************* 25447 * SIMUpdateRequest 25448 *************************************************/ 25449 25450 // SIMUpdateRequest represents API parameter/response structure 25451 type SIMUpdateRequest struct { 25452 Name string 25453 Description string 25454 Tags types.Tags 25455 IconID types.ID `mapconv:"Icon.ID"` 25456 } 25457 25458 // setDefaults implements iaas.argumentDefaulter 25459 func (o *SIMUpdateRequest) setDefaults() interface{} { 25460 return &struct { 25461 Name string 25462 Description string 25463 Tags types.Tags 25464 IconID types.ID `mapconv:"Icon.ID"` 25465 }{ 25466 Name: o.GetName(), 25467 Description: o.GetDescription(), 25468 Tags: o.GetTags(), 25469 IconID: o.GetIconID(), 25470 } 25471 } 25472 25473 // GetName returns value of Name 25474 func (o *SIMUpdateRequest) GetName() string { 25475 return o.Name 25476 } 25477 25478 // SetName sets value to Name 25479 func (o *SIMUpdateRequest) SetName(v string) { 25480 o.Name = v 25481 } 25482 25483 // GetDescription returns value of Description 25484 func (o *SIMUpdateRequest) GetDescription() string { 25485 return o.Description 25486 } 25487 25488 // SetDescription sets value to Description 25489 func (o *SIMUpdateRequest) SetDescription(v string) { 25490 o.Description = v 25491 } 25492 25493 // GetTags returns value of Tags 25494 func (o *SIMUpdateRequest) GetTags() types.Tags { 25495 return o.Tags 25496 } 25497 25498 // SetTags sets value to Tags 25499 func (o *SIMUpdateRequest) SetTags(v types.Tags) { 25500 o.Tags = v 25501 } 25502 25503 // HasTag 指定のタグが存在する場合trueを返す 25504 func (o *SIMUpdateRequest) HasTag(tag string) bool { 25505 return accessor.HasTag(o, tag) 25506 } 25507 25508 // AppendTag 指定のタグを追加 25509 func (o *SIMUpdateRequest) AppendTag(tag string) { 25510 accessor.AppendTag(o, tag) 25511 } 25512 25513 // RemoveTag 指定のタグを削除 25514 func (o *SIMUpdateRequest) RemoveTag(tag string) { 25515 accessor.RemoveTag(o, tag) 25516 } 25517 25518 // ClearTags タグを全クリア 25519 func (o *SIMUpdateRequest) ClearTags() { 25520 accessor.ClearTags(o) 25521 } 25522 25523 // GetIconID returns value of IconID 25524 func (o *SIMUpdateRequest) GetIconID() types.ID { 25525 return o.IconID 25526 } 25527 25528 // SetIconID sets value to IconID 25529 func (o *SIMUpdateRequest) SetIconID(v types.ID) { 25530 o.IconID = v 25531 } 25532 25533 /************************************************* 25534 * SIMAssignIPRequest 25535 *************************************************/ 25536 25537 // SIMAssignIPRequest represents API parameter/response structure 25538 type SIMAssignIPRequest struct { 25539 IP string 25540 } 25541 25542 // setDefaults implements iaas.argumentDefaulter 25543 func (o *SIMAssignIPRequest) setDefaults() interface{} { 25544 return &struct { 25545 IP string 25546 }{ 25547 IP: o.GetIP(), 25548 } 25549 } 25550 25551 // GetIP returns value of IP 25552 func (o *SIMAssignIPRequest) GetIP() string { 25553 return o.IP 25554 } 25555 25556 // SetIP sets value to IP 25557 func (o *SIMAssignIPRequest) SetIP(v string) { 25558 o.IP = v 25559 } 25560 25561 /************************************************* 25562 * SIMIMEILockRequest 25563 *************************************************/ 25564 25565 // SIMIMEILockRequest represents API parameter/response structure 25566 type SIMIMEILockRequest struct { 25567 IMEI string 25568 } 25569 25570 // setDefaults implements iaas.argumentDefaulter 25571 func (o *SIMIMEILockRequest) setDefaults() interface{} { 25572 return &struct { 25573 IMEI string 25574 }{ 25575 IMEI: o.GetIMEI(), 25576 } 25577 } 25578 25579 // GetIMEI returns value of IMEI 25580 func (o *SIMIMEILockRequest) GetIMEI() string { 25581 return o.IMEI 25582 } 25583 25584 // SetIMEI sets value to IMEI 25585 func (o *SIMIMEILockRequest) SetIMEI(v string) { 25586 o.IMEI = v 25587 } 25588 25589 /************************************************* 25590 * SIMLog 25591 *************************************************/ 25592 25593 // SIMLog represents API parameter/response structure 25594 type SIMLog struct { 25595 Date time.Time 25596 SessionStatus string 25597 ResourceID string 25598 IMEI string 25599 IMSI string 25600 } 25601 25602 // setDefaults implements iaas.argumentDefaulter 25603 func (o *SIMLog) setDefaults() interface{} { 25604 return &struct { 25605 Date time.Time 25606 SessionStatus string 25607 ResourceID string 25608 IMEI string 25609 IMSI string 25610 }{ 25611 Date: o.GetDate(), 25612 SessionStatus: o.GetSessionStatus(), 25613 ResourceID: o.GetResourceID(), 25614 IMEI: o.GetIMEI(), 25615 IMSI: o.GetIMSI(), 25616 } 25617 } 25618 25619 // GetDate returns value of Date 25620 func (o *SIMLog) GetDate() time.Time { 25621 return o.Date 25622 } 25623 25624 // SetDate sets value to Date 25625 func (o *SIMLog) SetDate(v time.Time) { 25626 o.Date = v 25627 } 25628 25629 // GetSessionStatus returns value of SessionStatus 25630 func (o *SIMLog) GetSessionStatus() string { 25631 return o.SessionStatus 25632 } 25633 25634 // SetSessionStatus sets value to SessionStatus 25635 func (o *SIMLog) SetSessionStatus(v string) { 25636 o.SessionStatus = v 25637 } 25638 25639 // GetResourceID returns value of ResourceID 25640 func (o *SIMLog) GetResourceID() string { 25641 return o.ResourceID 25642 } 25643 25644 // SetResourceID sets value to ResourceID 25645 func (o *SIMLog) SetResourceID(v string) { 25646 o.ResourceID = v 25647 } 25648 25649 // GetIMEI returns value of IMEI 25650 func (o *SIMLog) GetIMEI() string { 25651 return o.IMEI 25652 } 25653 25654 // SetIMEI sets value to IMEI 25655 func (o *SIMLog) SetIMEI(v string) { 25656 o.IMEI = v 25657 } 25658 25659 // GetIMSI returns value of IMSI 25660 func (o *SIMLog) GetIMSI() string { 25661 return o.IMSI 25662 } 25663 25664 // SetIMSI sets value to IMSI 25665 func (o *SIMLog) SetIMSI(v string) { 25666 o.IMSI = v 25667 } 25668 25669 /************************************************* 25670 * SIMNetworkOperatorConfig 25671 *************************************************/ 25672 25673 // SIMNetworkOperatorConfig represents API parameter/response structure 25674 type SIMNetworkOperatorConfig struct { 25675 Allow bool 25676 CountryCode string 25677 Name string 25678 } 25679 25680 // setDefaults implements iaas.argumentDefaulter 25681 func (o *SIMNetworkOperatorConfig) setDefaults() interface{} { 25682 return &struct { 25683 Allow bool 25684 CountryCode string 25685 Name string 25686 }{ 25687 Allow: o.GetAllow(), 25688 CountryCode: o.GetCountryCode(), 25689 Name: o.GetName(), 25690 } 25691 } 25692 25693 // GetAllow returns value of Allow 25694 func (o *SIMNetworkOperatorConfig) GetAllow() bool { 25695 return o.Allow 25696 } 25697 25698 // SetAllow sets value to Allow 25699 func (o *SIMNetworkOperatorConfig) SetAllow(v bool) { 25700 o.Allow = v 25701 } 25702 25703 // GetCountryCode returns value of CountryCode 25704 func (o *SIMNetworkOperatorConfig) GetCountryCode() string { 25705 return o.CountryCode 25706 } 25707 25708 // SetCountryCode sets value to CountryCode 25709 func (o *SIMNetworkOperatorConfig) SetCountryCode(v string) { 25710 o.CountryCode = v 25711 } 25712 25713 // GetName returns value of Name 25714 func (o *SIMNetworkOperatorConfig) GetName() string { 25715 return o.Name 25716 } 25717 25718 // SetName sets value to Name 25719 func (o *SIMNetworkOperatorConfig) SetName(v string) { 25720 o.Name = v 25721 } 25722 25723 /************************************************* 25724 * LinkActivity 25725 *************************************************/ 25726 25727 // LinkActivity represents API parameter/response structure 25728 type LinkActivity struct { 25729 Values []*MonitorLinkValue `mapconv:"[]Link"` 25730 } 25731 25732 // setDefaults implements iaas.argumentDefaulter 25733 func (o *LinkActivity) setDefaults() interface{} { 25734 return &struct { 25735 Values []*MonitorLinkValue `mapconv:"[]Link"` 25736 }{ 25737 Values: o.GetValues(), 25738 } 25739 } 25740 25741 // GetValues returns value of Values 25742 func (o *LinkActivity) GetValues() []*MonitorLinkValue { 25743 return o.Values 25744 } 25745 25746 // SetValues sets value to Values 25747 func (o *LinkActivity) SetValues(v []*MonitorLinkValue) { 25748 o.Values = v 25749 } 25750 25751 /************************************************* 25752 * MonitorLinkValue 25753 *************************************************/ 25754 25755 // MonitorLinkValue represents API parameter/response structure 25756 type MonitorLinkValue struct { 25757 Time time.Time `mapconv:",omitempty"` 25758 UplinkBPS float64 `mapconv:",omitempty"` 25759 DownlinkBPS float64 `mapconv:",omitempty"` 25760 } 25761 25762 // setDefaults implements iaas.argumentDefaulter 25763 func (o *MonitorLinkValue) setDefaults() interface{} { 25764 return &struct { 25765 Time time.Time `mapconv:",omitempty"` 25766 UplinkBPS float64 `mapconv:",omitempty"` 25767 DownlinkBPS float64 `mapconv:",omitempty"` 25768 }{ 25769 Time: o.GetTime(), 25770 UplinkBPS: o.GetUplinkBPS(), 25771 DownlinkBPS: o.GetDownlinkBPS(), 25772 } 25773 } 25774 25775 // GetTime returns value of Time 25776 func (o *MonitorLinkValue) GetTime() time.Time { 25777 return o.Time 25778 } 25779 25780 // SetTime sets value to Time 25781 func (o *MonitorLinkValue) SetTime(v time.Time) { 25782 o.Time = v 25783 } 25784 25785 // GetUplinkBPS returns value of UplinkBPS 25786 func (o *MonitorLinkValue) GetUplinkBPS() float64 { 25787 return o.UplinkBPS 25788 } 25789 25790 // SetUplinkBPS sets value to UplinkBPS 25791 func (o *MonitorLinkValue) SetUplinkBPS(v float64) { 25792 o.UplinkBPS = v 25793 } 25794 25795 // GetDownlinkBPS returns value of DownlinkBPS 25796 func (o *MonitorLinkValue) GetDownlinkBPS() float64 { 25797 return o.DownlinkBPS 25798 } 25799 25800 // SetDownlinkBPS sets value to DownlinkBPS 25801 func (o *MonitorLinkValue) SetDownlinkBPS(v float64) { 25802 o.DownlinkBPS = v 25803 } 25804 25805 /************************************************* 25806 * SimpleMonitor 25807 *************************************************/ 25808 25809 // SimpleMonitor represents API parameter/response structure 25810 type SimpleMonitor struct { 25811 ID types.ID 25812 Name string 25813 Description string 25814 Tags types.Tags 25815 Availability types.EAvailability 25816 IconID types.ID `mapconv:"Icon.ID"` 25817 CreatedAt time.Time 25818 ModifiedAt time.Time 25819 Class string 25820 Target string `mapconv:"Status.Target"` 25821 DelayLoop int `mapconv:"Settings.SimpleMonitor.DelayLoop"` 25822 MaxCheckAttempts int `mapconv:"Settings.SimpleMonitor.MaxCheckAttempts"` 25823 RetryInterval int `mapconv:"Settings.SimpleMonitor.RetryInterval"` 25824 Enabled types.StringFlag `mapconv:"Settings.SimpleMonitor.Enabled"` 25825 HealthCheck *SimpleMonitorHealthCheck `mapconv:"Settings.SimpleMonitor.HealthCheck,recursive"` 25826 NotifyEmailEnabled types.StringFlag `mapconv:"Settings.SimpleMonitor.NotifyEmail.Enabled"` 25827 NotifyEmailHTML types.StringFlag `mapconv:"Settings.SimpleMonitor.NotifyEmail.HTML"` 25828 NotifySlackEnabled types.StringFlag `mapconv:"Settings.SimpleMonitor.NotifySlack.Enabled"` 25829 SlackWebhooksURL string `mapconv:"Settings.SimpleMonitor.NotifySlack.IncomingWebhooksURL"` 25830 NotifyInterval int `mapconv:"Settings.SimpleMonitor.NotifyInterval"` 25831 Timeout int `mapconv:"Settings.SimpleMonitor.Timeout"` 25832 SettingsHash string `json:",omitempty" mapconv:",omitempty"` 25833 } 25834 25835 // setDefaults implements iaas.argumentDefaulter 25836 func (o *SimpleMonitor) setDefaults() interface{} { 25837 return &struct { 25838 ID types.ID 25839 Name string 25840 Description string 25841 Tags types.Tags 25842 Availability types.EAvailability 25843 IconID types.ID `mapconv:"Icon.ID"` 25844 CreatedAt time.Time 25845 ModifiedAt time.Time 25846 Class string 25847 Target string `mapconv:"Status.Target"` 25848 DelayLoop int `mapconv:"Settings.SimpleMonitor.DelayLoop"` 25849 MaxCheckAttempts int `mapconv:"Settings.SimpleMonitor.MaxCheckAttempts"` 25850 RetryInterval int `mapconv:"Settings.SimpleMonitor.RetryInterval"` 25851 Enabled types.StringFlag `mapconv:"Settings.SimpleMonitor.Enabled"` 25852 HealthCheck *SimpleMonitorHealthCheck `mapconv:"Settings.SimpleMonitor.HealthCheck,recursive"` 25853 NotifyEmailEnabled types.StringFlag `mapconv:"Settings.SimpleMonitor.NotifyEmail.Enabled"` 25854 NotifyEmailHTML types.StringFlag `mapconv:"Settings.SimpleMonitor.NotifyEmail.HTML"` 25855 NotifySlackEnabled types.StringFlag `mapconv:"Settings.SimpleMonitor.NotifySlack.Enabled"` 25856 SlackWebhooksURL string `mapconv:"Settings.SimpleMonitor.NotifySlack.IncomingWebhooksURL"` 25857 NotifyInterval int `mapconv:"Settings.SimpleMonitor.NotifyInterval"` 25858 Timeout int `mapconv:"Settings.SimpleMonitor.Timeout"` 25859 SettingsHash string `json:",omitempty" mapconv:",omitempty"` 25860 }{ 25861 ID: o.GetID(), 25862 Name: o.GetName(), 25863 Description: o.GetDescription(), 25864 Tags: o.GetTags(), 25865 Availability: o.GetAvailability(), 25866 IconID: o.GetIconID(), 25867 CreatedAt: o.GetCreatedAt(), 25868 ModifiedAt: o.GetModifiedAt(), 25869 Class: o.GetClass(), 25870 Target: o.GetTarget(), 25871 DelayLoop: o.GetDelayLoop(), 25872 MaxCheckAttempts: o.GetMaxCheckAttempts(), 25873 RetryInterval: o.GetRetryInterval(), 25874 Enabled: o.GetEnabled(), 25875 HealthCheck: o.GetHealthCheck(), 25876 NotifyEmailEnabled: o.GetNotifyEmailEnabled(), 25877 NotifyEmailHTML: o.GetNotifyEmailHTML(), 25878 NotifySlackEnabled: o.GetNotifySlackEnabled(), 25879 SlackWebhooksURL: o.GetSlackWebhooksURL(), 25880 NotifyInterval: o.GetNotifyInterval(), 25881 Timeout: o.GetTimeout(), 25882 SettingsHash: o.GetSettingsHash(), 25883 } 25884 } 25885 25886 // GetID returns value of ID 25887 func (o *SimpleMonitor) GetID() types.ID { 25888 return o.ID 25889 } 25890 25891 // SetID sets value to ID 25892 func (o *SimpleMonitor) SetID(v types.ID) { 25893 o.ID = v 25894 } 25895 25896 // SetStringID . 25897 func (o *SimpleMonitor) SetStringID(id string) { 25898 accessor.SetStringID(o, id) 25899 } 25900 25901 // GetStringID . 25902 func (o *SimpleMonitor) GetStringID() string { 25903 return accessor.GetStringID(o) 25904 } 25905 25906 // SetInt64ID . 25907 func (o *SimpleMonitor) SetInt64ID(id int64) { 25908 accessor.SetInt64ID(o, id) 25909 } 25910 25911 // GetInt64ID . 25912 func (o *SimpleMonitor) GetInt64ID() int64 { 25913 return accessor.GetInt64ID(o) 25914 } 25915 25916 // GetName returns value of Name 25917 func (o *SimpleMonitor) GetName() string { 25918 return o.Name 25919 } 25920 25921 // SetName sets value to Name 25922 func (o *SimpleMonitor) SetName(v string) { 25923 o.Name = v 25924 } 25925 25926 // GetDescription returns value of Description 25927 func (o *SimpleMonitor) GetDescription() string { 25928 return o.Description 25929 } 25930 25931 // SetDescription sets value to Description 25932 func (o *SimpleMonitor) SetDescription(v string) { 25933 o.Description = v 25934 } 25935 25936 // GetTags returns value of Tags 25937 func (o *SimpleMonitor) GetTags() types.Tags { 25938 return o.Tags 25939 } 25940 25941 // SetTags sets value to Tags 25942 func (o *SimpleMonitor) SetTags(v types.Tags) { 25943 o.Tags = v 25944 } 25945 25946 // HasTag 指定のタグが存在する場合trueを返す 25947 func (o *SimpleMonitor) HasTag(tag string) bool { 25948 return accessor.HasTag(o, tag) 25949 } 25950 25951 // AppendTag 指定のタグを追加 25952 func (o *SimpleMonitor) AppendTag(tag string) { 25953 accessor.AppendTag(o, tag) 25954 } 25955 25956 // RemoveTag 指定のタグを削除 25957 func (o *SimpleMonitor) RemoveTag(tag string) { 25958 accessor.RemoveTag(o, tag) 25959 } 25960 25961 // ClearTags タグを全クリア 25962 func (o *SimpleMonitor) ClearTags() { 25963 accessor.ClearTags(o) 25964 } 25965 25966 // GetAvailability returns value of Availability 25967 func (o *SimpleMonitor) GetAvailability() types.EAvailability { 25968 return o.Availability 25969 } 25970 25971 // SetAvailability sets value to Availability 25972 func (o *SimpleMonitor) SetAvailability(v types.EAvailability) { 25973 o.Availability = v 25974 } 25975 25976 // GetIconID returns value of IconID 25977 func (o *SimpleMonitor) GetIconID() types.ID { 25978 return o.IconID 25979 } 25980 25981 // SetIconID sets value to IconID 25982 func (o *SimpleMonitor) SetIconID(v types.ID) { 25983 o.IconID = v 25984 } 25985 25986 // GetCreatedAt returns value of CreatedAt 25987 func (o *SimpleMonitor) GetCreatedAt() time.Time { 25988 return o.CreatedAt 25989 } 25990 25991 // SetCreatedAt sets value to CreatedAt 25992 func (o *SimpleMonitor) SetCreatedAt(v time.Time) { 25993 o.CreatedAt = v 25994 } 25995 25996 // GetModifiedAt returns value of ModifiedAt 25997 func (o *SimpleMonitor) GetModifiedAt() time.Time { 25998 return o.ModifiedAt 25999 } 26000 26001 // SetModifiedAt sets value to ModifiedAt 26002 func (o *SimpleMonitor) SetModifiedAt(v time.Time) { 26003 o.ModifiedAt = v 26004 } 26005 26006 // GetClass returns value of Class 26007 func (o *SimpleMonitor) GetClass() string { 26008 return o.Class 26009 } 26010 26011 // SetClass sets value to Class 26012 func (o *SimpleMonitor) SetClass(v string) { 26013 o.Class = v 26014 } 26015 26016 // GetTarget returns value of Target 26017 func (o *SimpleMonitor) GetTarget() string { 26018 return o.Target 26019 } 26020 26021 // SetTarget sets value to Target 26022 func (o *SimpleMonitor) SetTarget(v string) { 26023 o.Target = v 26024 } 26025 26026 // GetDelayLoop returns value of DelayLoop 26027 func (o *SimpleMonitor) GetDelayLoop() int { 26028 if o.DelayLoop == 0 { 26029 return 60 26030 } 26031 return o.DelayLoop 26032 } 26033 26034 // SetDelayLoop sets value to DelayLoop 26035 func (o *SimpleMonitor) SetDelayLoop(v int) { 26036 o.DelayLoop = v 26037 } 26038 26039 // GetMaxCheckAttempts returns value of MaxCheckAttempts 26040 func (o *SimpleMonitor) GetMaxCheckAttempts() int { 26041 if o.MaxCheckAttempts == 0 { 26042 return 3 26043 } 26044 return o.MaxCheckAttempts 26045 } 26046 26047 // SetMaxCheckAttempts sets value to MaxCheckAttempts 26048 func (o *SimpleMonitor) SetMaxCheckAttempts(v int) { 26049 o.MaxCheckAttempts = v 26050 } 26051 26052 // GetRetryInterval returns value of RetryInterval 26053 func (o *SimpleMonitor) GetRetryInterval() int { 26054 if o.RetryInterval == 0 { 26055 return 10 26056 } 26057 return o.RetryInterval 26058 } 26059 26060 // SetRetryInterval sets value to RetryInterval 26061 func (o *SimpleMonitor) SetRetryInterval(v int) { 26062 o.RetryInterval = v 26063 } 26064 26065 // GetEnabled returns value of Enabled 26066 func (o *SimpleMonitor) GetEnabled() types.StringFlag { 26067 return o.Enabled 26068 } 26069 26070 // SetEnabled sets value to Enabled 26071 func (o *SimpleMonitor) SetEnabled(v types.StringFlag) { 26072 o.Enabled = v 26073 } 26074 26075 // GetHealthCheck returns value of HealthCheck 26076 func (o *SimpleMonitor) GetHealthCheck() *SimpleMonitorHealthCheck { 26077 return o.HealthCheck 26078 } 26079 26080 // SetHealthCheck sets value to HealthCheck 26081 func (o *SimpleMonitor) SetHealthCheck(v *SimpleMonitorHealthCheck) { 26082 o.HealthCheck = v 26083 } 26084 26085 // GetNotifyEmailEnabled returns value of NotifyEmailEnabled 26086 func (o *SimpleMonitor) GetNotifyEmailEnabled() types.StringFlag { 26087 return o.NotifyEmailEnabled 26088 } 26089 26090 // SetNotifyEmailEnabled sets value to NotifyEmailEnabled 26091 func (o *SimpleMonitor) SetNotifyEmailEnabled(v types.StringFlag) { 26092 o.NotifyEmailEnabled = v 26093 } 26094 26095 // GetNotifyEmailHTML returns value of NotifyEmailHTML 26096 func (o *SimpleMonitor) GetNotifyEmailHTML() types.StringFlag { 26097 return o.NotifyEmailHTML 26098 } 26099 26100 // SetNotifyEmailHTML sets value to NotifyEmailHTML 26101 func (o *SimpleMonitor) SetNotifyEmailHTML(v types.StringFlag) { 26102 o.NotifyEmailHTML = v 26103 } 26104 26105 // GetNotifySlackEnabled returns value of NotifySlackEnabled 26106 func (o *SimpleMonitor) GetNotifySlackEnabled() types.StringFlag { 26107 return o.NotifySlackEnabled 26108 } 26109 26110 // SetNotifySlackEnabled sets value to NotifySlackEnabled 26111 func (o *SimpleMonitor) SetNotifySlackEnabled(v types.StringFlag) { 26112 o.NotifySlackEnabled = v 26113 } 26114 26115 // GetSlackWebhooksURL returns value of SlackWebhooksURL 26116 func (o *SimpleMonitor) GetSlackWebhooksURL() string { 26117 return o.SlackWebhooksURL 26118 } 26119 26120 // SetSlackWebhooksURL sets value to SlackWebhooksURL 26121 func (o *SimpleMonitor) SetSlackWebhooksURL(v string) { 26122 o.SlackWebhooksURL = v 26123 } 26124 26125 // GetNotifyInterval returns value of NotifyInterval 26126 func (o *SimpleMonitor) GetNotifyInterval() int { 26127 if o.NotifyInterval == 0 { 26128 return 7200 26129 } 26130 return o.NotifyInterval 26131 } 26132 26133 // SetNotifyInterval sets value to NotifyInterval 26134 func (o *SimpleMonitor) SetNotifyInterval(v int) { 26135 o.NotifyInterval = v 26136 } 26137 26138 // GetTimeout returns value of Timeout 26139 func (o *SimpleMonitor) GetTimeout() int { 26140 return o.Timeout 26141 } 26142 26143 // SetTimeout sets value to Timeout 26144 func (o *SimpleMonitor) SetTimeout(v int) { 26145 o.Timeout = v 26146 } 26147 26148 // GetSettingsHash returns value of SettingsHash 26149 func (o *SimpleMonitor) GetSettingsHash() string { 26150 return o.SettingsHash 26151 } 26152 26153 // SetSettingsHash sets value to SettingsHash 26154 func (o *SimpleMonitor) SetSettingsHash(v string) { 26155 o.SettingsHash = v 26156 } 26157 26158 /************************************************* 26159 * SimpleMonitorHealthCheck 26160 *************************************************/ 26161 26162 // SimpleMonitorHealthCheck represents API parameter/response structure 26163 type SimpleMonitorHealthCheck struct { 26164 Protocol types.ESimpleMonitorProtocol 26165 Port types.StringNumber 26166 Path string 26167 Status types.StringNumber 26168 SNI types.StringFlag 26169 Host string 26170 BasicAuthUsername string 26171 BasicAuthPassword string 26172 ContainsString string 26173 QName string 26174 ExpectedData string 26175 Community string 26176 SNMPVersion string 26177 OID string 26178 RemainingDays int 26179 HTTP2 types.StringFlag 26180 FTPS types.ESimpleMonitorFTPS 26181 VerifySNI types.StringFlag 26182 } 26183 26184 // setDefaults implements iaas.argumentDefaulter 26185 func (o *SimpleMonitorHealthCheck) setDefaults() interface{} { 26186 return &struct { 26187 Protocol types.ESimpleMonitorProtocol 26188 Port types.StringNumber 26189 Path string 26190 Status types.StringNumber 26191 SNI types.StringFlag 26192 Host string 26193 BasicAuthUsername string 26194 BasicAuthPassword string 26195 ContainsString string 26196 QName string 26197 ExpectedData string 26198 Community string 26199 SNMPVersion string 26200 OID string 26201 RemainingDays int 26202 HTTP2 types.StringFlag 26203 FTPS types.ESimpleMonitorFTPS 26204 VerifySNI types.StringFlag 26205 }{ 26206 Protocol: o.GetProtocol(), 26207 Port: o.GetPort(), 26208 Path: o.GetPath(), 26209 Status: o.GetStatus(), 26210 SNI: o.GetSNI(), 26211 Host: o.GetHost(), 26212 BasicAuthUsername: o.GetBasicAuthUsername(), 26213 BasicAuthPassword: o.GetBasicAuthPassword(), 26214 ContainsString: o.GetContainsString(), 26215 QName: o.GetQName(), 26216 ExpectedData: o.GetExpectedData(), 26217 Community: o.GetCommunity(), 26218 SNMPVersion: o.GetSNMPVersion(), 26219 OID: o.GetOID(), 26220 RemainingDays: o.GetRemainingDays(), 26221 HTTP2: o.GetHTTP2(), 26222 FTPS: o.GetFTPS(), 26223 VerifySNI: o.GetVerifySNI(), 26224 } 26225 } 26226 26227 // GetProtocol returns value of Protocol 26228 func (o *SimpleMonitorHealthCheck) GetProtocol() types.ESimpleMonitorProtocol { 26229 return o.Protocol 26230 } 26231 26232 // SetProtocol sets value to Protocol 26233 func (o *SimpleMonitorHealthCheck) SetProtocol(v types.ESimpleMonitorProtocol) { 26234 o.Protocol = v 26235 } 26236 26237 // GetPort returns value of Port 26238 func (o *SimpleMonitorHealthCheck) GetPort() types.StringNumber { 26239 return o.Port 26240 } 26241 26242 // SetPort sets value to Port 26243 func (o *SimpleMonitorHealthCheck) SetPort(v types.StringNumber) { 26244 o.Port = v 26245 } 26246 26247 // GetPath returns value of Path 26248 func (o *SimpleMonitorHealthCheck) GetPath() string { 26249 return o.Path 26250 } 26251 26252 // SetPath sets value to Path 26253 func (o *SimpleMonitorHealthCheck) SetPath(v string) { 26254 o.Path = v 26255 } 26256 26257 // GetStatus returns value of Status 26258 func (o *SimpleMonitorHealthCheck) GetStatus() types.StringNumber { 26259 return o.Status 26260 } 26261 26262 // SetStatus sets value to Status 26263 func (o *SimpleMonitorHealthCheck) SetStatus(v types.StringNumber) { 26264 o.Status = v 26265 } 26266 26267 // GetSNI returns value of SNI 26268 func (o *SimpleMonitorHealthCheck) GetSNI() types.StringFlag { 26269 return o.SNI 26270 } 26271 26272 // SetSNI sets value to SNI 26273 func (o *SimpleMonitorHealthCheck) SetSNI(v types.StringFlag) { 26274 o.SNI = v 26275 } 26276 26277 // GetHost returns value of Host 26278 func (o *SimpleMonitorHealthCheck) GetHost() string { 26279 return o.Host 26280 } 26281 26282 // SetHost sets value to Host 26283 func (o *SimpleMonitorHealthCheck) SetHost(v string) { 26284 o.Host = v 26285 } 26286 26287 // GetBasicAuthUsername returns value of BasicAuthUsername 26288 func (o *SimpleMonitorHealthCheck) GetBasicAuthUsername() string { 26289 return o.BasicAuthUsername 26290 } 26291 26292 // SetBasicAuthUsername sets value to BasicAuthUsername 26293 func (o *SimpleMonitorHealthCheck) SetBasicAuthUsername(v string) { 26294 o.BasicAuthUsername = v 26295 } 26296 26297 // GetBasicAuthPassword returns value of BasicAuthPassword 26298 func (o *SimpleMonitorHealthCheck) GetBasicAuthPassword() string { 26299 return o.BasicAuthPassword 26300 } 26301 26302 // SetBasicAuthPassword sets value to BasicAuthPassword 26303 func (o *SimpleMonitorHealthCheck) SetBasicAuthPassword(v string) { 26304 o.BasicAuthPassword = v 26305 } 26306 26307 // GetContainsString returns value of ContainsString 26308 func (o *SimpleMonitorHealthCheck) GetContainsString() string { 26309 return o.ContainsString 26310 } 26311 26312 // SetContainsString sets value to ContainsString 26313 func (o *SimpleMonitorHealthCheck) SetContainsString(v string) { 26314 o.ContainsString = v 26315 } 26316 26317 // GetQName returns value of QName 26318 func (o *SimpleMonitorHealthCheck) GetQName() string { 26319 return o.QName 26320 } 26321 26322 // SetQName sets value to QName 26323 func (o *SimpleMonitorHealthCheck) SetQName(v string) { 26324 o.QName = v 26325 } 26326 26327 // GetExpectedData returns value of ExpectedData 26328 func (o *SimpleMonitorHealthCheck) GetExpectedData() string { 26329 return o.ExpectedData 26330 } 26331 26332 // SetExpectedData sets value to ExpectedData 26333 func (o *SimpleMonitorHealthCheck) SetExpectedData(v string) { 26334 o.ExpectedData = v 26335 } 26336 26337 // GetCommunity returns value of Community 26338 func (o *SimpleMonitorHealthCheck) GetCommunity() string { 26339 return o.Community 26340 } 26341 26342 // SetCommunity sets value to Community 26343 func (o *SimpleMonitorHealthCheck) SetCommunity(v string) { 26344 o.Community = v 26345 } 26346 26347 // GetSNMPVersion returns value of SNMPVersion 26348 func (o *SimpleMonitorHealthCheck) GetSNMPVersion() string { 26349 return o.SNMPVersion 26350 } 26351 26352 // SetSNMPVersion sets value to SNMPVersion 26353 func (o *SimpleMonitorHealthCheck) SetSNMPVersion(v string) { 26354 o.SNMPVersion = v 26355 } 26356 26357 // GetOID returns value of OID 26358 func (o *SimpleMonitorHealthCheck) GetOID() string { 26359 return o.OID 26360 } 26361 26362 // SetOID sets value to OID 26363 func (o *SimpleMonitorHealthCheck) SetOID(v string) { 26364 o.OID = v 26365 } 26366 26367 // GetRemainingDays returns value of RemainingDays 26368 func (o *SimpleMonitorHealthCheck) GetRemainingDays() int { 26369 return o.RemainingDays 26370 } 26371 26372 // SetRemainingDays sets value to RemainingDays 26373 func (o *SimpleMonitorHealthCheck) SetRemainingDays(v int) { 26374 o.RemainingDays = v 26375 } 26376 26377 // GetHTTP2 returns value of HTTP2 26378 func (o *SimpleMonitorHealthCheck) GetHTTP2() types.StringFlag { 26379 return o.HTTP2 26380 } 26381 26382 // SetHTTP2 sets value to HTTP2 26383 func (o *SimpleMonitorHealthCheck) SetHTTP2(v types.StringFlag) { 26384 o.HTTP2 = v 26385 } 26386 26387 // GetFTPS returns value of FTPS 26388 func (o *SimpleMonitorHealthCheck) GetFTPS() types.ESimpleMonitorFTPS { 26389 return o.FTPS 26390 } 26391 26392 // SetFTPS sets value to FTPS 26393 func (o *SimpleMonitorHealthCheck) SetFTPS(v types.ESimpleMonitorFTPS) { 26394 o.FTPS = v 26395 } 26396 26397 // GetVerifySNI returns value of VerifySNI 26398 func (o *SimpleMonitorHealthCheck) GetVerifySNI() types.StringFlag { 26399 return o.VerifySNI 26400 } 26401 26402 // SetVerifySNI sets value to VerifySNI 26403 func (o *SimpleMonitorHealthCheck) SetVerifySNI(v types.StringFlag) { 26404 o.VerifySNI = v 26405 } 26406 26407 /************************************************* 26408 * SimpleMonitorCreateRequest 26409 *************************************************/ 26410 26411 // SimpleMonitorCreateRequest represents API parameter/response structure 26412 type SimpleMonitorCreateRequest struct { 26413 Target string `mapconv:"Name/Status.Target"` 26414 MaxCheckAttempts int `mapconv:"Settings.SimpleMonitor.MaxCheckAttempts"` 26415 RetryInterval int `mapconv:"Settings.SimpleMonitor.RetryInterval"` 26416 DelayLoop int `mapconv:"Settings.SimpleMonitor.DelayLoop"` 26417 Enabled types.StringFlag `mapconv:"Settings.SimpleMonitor.Enabled"` 26418 HealthCheck *SimpleMonitorHealthCheck `mapconv:"Settings.SimpleMonitor.HealthCheck,recursive"` 26419 NotifyEmailEnabled types.StringFlag `mapconv:"Settings.SimpleMonitor.NotifyEmail.Enabled"` 26420 NotifyEmailHTML types.StringFlag `mapconv:"Settings.SimpleMonitor.NotifyEmail.HTML"` 26421 NotifySlackEnabled types.StringFlag `mapconv:"Settings.SimpleMonitor.NotifySlack.Enabled"` 26422 SlackWebhooksURL string `mapconv:"Settings.SimpleMonitor.NotifySlack.IncomingWebhooksURL"` 26423 NotifyInterval int `mapconv:"Settings.SimpleMonitor.NotifyInterval"` 26424 Timeout int `mapconv:"Settings.SimpleMonitor.Timeout"` 26425 Description string 26426 Tags types.Tags 26427 IconID types.ID `mapconv:"Icon.ID"` 26428 } 26429 26430 // setDefaults implements iaas.argumentDefaulter 26431 func (o *SimpleMonitorCreateRequest) setDefaults() interface{} { 26432 return &struct { 26433 Target string `mapconv:"Name/Status.Target"` 26434 MaxCheckAttempts int `mapconv:"Settings.SimpleMonitor.MaxCheckAttempts"` 26435 RetryInterval int `mapconv:"Settings.SimpleMonitor.RetryInterval"` 26436 DelayLoop int `mapconv:"Settings.SimpleMonitor.DelayLoop"` 26437 Enabled types.StringFlag `mapconv:"Settings.SimpleMonitor.Enabled"` 26438 HealthCheck *SimpleMonitorHealthCheck `mapconv:"Settings.SimpleMonitor.HealthCheck,recursive"` 26439 NotifyEmailEnabled types.StringFlag `mapconv:"Settings.SimpleMonitor.NotifyEmail.Enabled"` 26440 NotifyEmailHTML types.StringFlag `mapconv:"Settings.SimpleMonitor.NotifyEmail.HTML"` 26441 NotifySlackEnabled types.StringFlag `mapconv:"Settings.SimpleMonitor.NotifySlack.Enabled"` 26442 SlackWebhooksURL string `mapconv:"Settings.SimpleMonitor.NotifySlack.IncomingWebhooksURL"` 26443 NotifyInterval int `mapconv:"Settings.SimpleMonitor.NotifyInterval"` 26444 Timeout int `mapconv:"Settings.SimpleMonitor.Timeout"` 26445 Description string 26446 Tags types.Tags 26447 IconID types.ID `mapconv:"Icon.ID"` 26448 Class string `mapconv:"Provider.Class"` 26449 }{ 26450 Target: o.GetTarget(), 26451 MaxCheckAttempts: o.GetMaxCheckAttempts(), 26452 RetryInterval: o.GetRetryInterval(), 26453 DelayLoop: o.GetDelayLoop(), 26454 Enabled: o.GetEnabled(), 26455 HealthCheck: o.GetHealthCheck(), 26456 NotifyEmailEnabled: o.GetNotifyEmailEnabled(), 26457 NotifyEmailHTML: o.GetNotifyEmailHTML(), 26458 NotifySlackEnabled: o.GetNotifySlackEnabled(), 26459 SlackWebhooksURL: o.GetSlackWebhooksURL(), 26460 NotifyInterval: o.GetNotifyInterval(), 26461 Timeout: o.GetTimeout(), 26462 Description: o.GetDescription(), 26463 Tags: o.GetTags(), 26464 IconID: o.GetIconID(), 26465 Class: "simplemon", 26466 } 26467 } 26468 26469 // GetTarget returns value of Target 26470 func (o *SimpleMonitorCreateRequest) GetTarget() string { 26471 return o.Target 26472 } 26473 26474 // SetTarget sets value to Target 26475 func (o *SimpleMonitorCreateRequest) SetTarget(v string) { 26476 o.Target = v 26477 } 26478 26479 // GetMaxCheckAttempts returns value of MaxCheckAttempts 26480 func (o *SimpleMonitorCreateRequest) GetMaxCheckAttempts() int { 26481 if o.MaxCheckAttempts == 0 { 26482 return 3 26483 } 26484 return o.MaxCheckAttempts 26485 } 26486 26487 // SetMaxCheckAttempts sets value to MaxCheckAttempts 26488 func (o *SimpleMonitorCreateRequest) SetMaxCheckAttempts(v int) { 26489 o.MaxCheckAttempts = v 26490 } 26491 26492 // GetRetryInterval returns value of RetryInterval 26493 func (o *SimpleMonitorCreateRequest) GetRetryInterval() int { 26494 if o.RetryInterval == 0 { 26495 return 10 26496 } 26497 return o.RetryInterval 26498 } 26499 26500 // SetRetryInterval sets value to RetryInterval 26501 func (o *SimpleMonitorCreateRequest) SetRetryInterval(v int) { 26502 o.RetryInterval = v 26503 } 26504 26505 // GetDelayLoop returns value of DelayLoop 26506 func (o *SimpleMonitorCreateRequest) GetDelayLoop() int { 26507 if o.DelayLoop == 0 { 26508 return 60 26509 } 26510 return o.DelayLoop 26511 } 26512 26513 // SetDelayLoop sets value to DelayLoop 26514 func (o *SimpleMonitorCreateRequest) SetDelayLoop(v int) { 26515 o.DelayLoop = v 26516 } 26517 26518 // GetEnabled returns value of Enabled 26519 func (o *SimpleMonitorCreateRequest) GetEnabled() types.StringFlag { 26520 return o.Enabled 26521 } 26522 26523 // SetEnabled sets value to Enabled 26524 func (o *SimpleMonitorCreateRequest) SetEnabled(v types.StringFlag) { 26525 o.Enabled = v 26526 } 26527 26528 // GetHealthCheck returns value of HealthCheck 26529 func (o *SimpleMonitorCreateRequest) GetHealthCheck() *SimpleMonitorHealthCheck { 26530 return o.HealthCheck 26531 } 26532 26533 // SetHealthCheck sets value to HealthCheck 26534 func (o *SimpleMonitorCreateRequest) SetHealthCheck(v *SimpleMonitorHealthCheck) { 26535 o.HealthCheck = v 26536 } 26537 26538 // GetNotifyEmailEnabled returns value of NotifyEmailEnabled 26539 func (o *SimpleMonitorCreateRequest) GetNotifyEmailEnabled() types.StringFlag { 26540 return o.NotifyEmailEnabled 26541 } 26542 26543 // SetNotifyEmailEnabled sets value to NotifyEmailEnabled 26544 func (o *SimpleMonitorCreateRequest) SetNotifyEmailEnabled(v types.StringFlag) { 26545 o.NotifyEmailEnabled = v 26546 } 26547 26548 // GetNotifyEmailHTML returns value of NotifyEmailHTML 26549 func (o *SimpleMonitorCreateRequest) GetNotifyEmailHTML() types.StringFlag { 26550 return o.NotifyEmailHTML 26551 } 26552 26553 // SetNotifyEmailHTML sets value to NotifyEmailHTML 26554 func (o *SimpleMonitorCreateRequest) SetNotifyEmailHTML(v types.StringFlag) { 26555 o.NotifyEmailHTML = v 26556 } 26557 26558 // GetNotifySlackEnabled returns value of NotifySlackEnabled 26559 func (o *SimpleMonitorCreateRequest) GetNotifySlackEnabled() types.StringFlag { 26560 return o.NotifySlackEnabled 26561 } 26562 26563 // SetNotifySlackEnabled sets value to NotifySlackEnabled 26564 func (o *SimpleMonitorCreateRequest) SetNotifySlackEnabled(v types.StringFlag) { 26565 o.NotifySlackEnabled = v 26566 } 26567 26568 // GetSlackWebhooksURL returns value of SlackWebhooksURL 26569 func (o *SimpleMonitorCreateRequest) GetSlackWebhooksURL() string { 26570 return o.SlackWebhooksURL 26571 } 26572 26573 // SetSlackWebhooksURL sets value to SlackWebhooksURL 26574 func (o *SimpleMonitorCreateRequest) SetSlackWebhooksURL(v string) { 26575 o.SlackWebhooksURL = v 26576 } 26577 26578 // GetNotifyInterval returns value of NotifyInterval 26579 func (o *SimpleMonitorCreateRequest) GetNotifyInterval() int { 26580 if o.NotifyInterval == 0 { 26581 return 7200 26582 } 26583 return o.NotifyInterval 26584 } 26585 26586 // SetNotifyInterval sets value to NotifyInterval 26587 func (o *SimpleMonitorCreateRequest) SetNotifyInterval(v int) { 26588 o.NotifyInterval = v 26589 } 26590 26591 // GetTimeout returns value of Timeout 26592 func (o *SimpleMonitorCreateRequest) GetTimeout() int { 26593 return o.Timeout 26594 } 26595 26596 // SetTimeout sets value to Timeout 26597 func (o *SimpleMonitorCreateRequest) SetTimeout(v int) { 26598 o.Timeout = v 26599 } 26600 26601 // GetDescription returns value of Description 26602 func (o *SimpleMonitorCreateRequest) GetDescription() string { 26603 return o.Description 26604 } 26605 26606 // SetDescription sets value to Description 26607 func (o *SimpleMonitorCreateRequest) SetDescription(v string) { 26608 o.Description = v 26609 } 26610 26611 // GetTags returns value of Tags 26612 func (o *SimpleMonitorCreateRequest) GetTags() types.Tags { 26613 return o.Tags 26614 } 26615 26616 // SetTags sets value to Tags 26617 func (o *SimpleMonitorCreateRequest) SetTags(v types.Tags) { 26618 o.Tags = v 26619 } 26620 26621 // HasTag 指定のタグが存在する場合trueを返す 26622 func (o *SimpleMonitorCreateRequest) HasTag(tag string) bool { 26623 return accessor.HasTag(o, tag) 26624 } 26625 26626 // AppendTag 指定のタグを追加 26627 func (o *SimpleMonitorCreateRequest) AppendTag(tag string) { 26628 accessor.AppendTag(o, tag) 26629 } 26630 26631 // RemoveTag 指定のタグを削除 26632 func (o *SimpleMonitorCreateRequest) RemoveTag(tag string) { 26633 accessor.RemoveTag(o, tag) 26634 } 26635 26636 // ClearTags タグを全クリア 26637 func (o *SimpleMonitorCreateRequest) ClearTags() { 26638 accessor.ClearTags(o) 26639 } 26640 26641 // GetIconID returns value of IconID 26642 func (o *SimpleMonitorCreateRequest) GetIconID() types.ID { 26643 return o.IconID 26644 } 26645 26646 // SetIconID sets value to IconID 26647 func (o *SimpleMonitorCreateRequest) SetIconID(v types.ID) { 26648 o.IconID = v 26649 } 26650 26651 /************************************************* 26652 * SimpleMonitorUpdateRequest 26653 *************************************************/ 26654 26655 // SimpleMonitorUpdateRequest represents API parameter/response structure 26656 type SimpleMonitorUpdateRequest struct { 26657 Description string 26658 Tags types.Tags 26659 IconID types.ID `mapconv:"Icon.ID"` 26660 MaxCheckAttempts int `mapconv:"Settings.SimpleMonitor.MaxCheckAttempts"` 26661 RetryInterval int `mapconv:"Settings.SimpleMonitor.RetryInterval"` 26662 DelayLoop int `mapconv:"Settings.SimpleMonitor.DelayLoop"` 26663 Enabled types.StringFlag `mapconv:"Settings.SimpleMonitor.Enabled"` 26664 HealthCheck *SimpleMonitorHealthCheck `mapconv:"Settings.SimpleMonitor.HealthCheck,recursive"` 26665 NotifyEmailEnabled types.StringFlag `mapconv:"Settings.SimpleMonitor.NotifyEmail.Enabled"` 26666 NotifyEmailHTML types.StringFlag `mapconv:"Settings.SimpleMonitor.NotifyEmail.HTML"` 26667 NotifySlackEnabled types.StringFlag `mapconv:"Settings.SimpleMonitor.NotifySlack.Enabled"` 26668 SlackWebhooksURL string `mapconv:"Settings.SimpleMonitor.NotifySlack.IncomingWebhooksURL"` 26669 NotifyInterval int `mapconv:"Settings.SimpleMonitor.NotifyInterval"` 26670 Timeout int `mapconv:"Settings.SimpleMonitor.Timeout"` 26671 SettingsHash string `json:",omitempty" mapconv:",omitempty"` 26672 } 26673 26674 // setDefaults implements iaas.argumentDefaulter 26675 func (o *SimpleMonitorUpdateRequest) setDefaults() interface{} { 26676 return &struct { 26677 Description string 26678 Tags types.Tags 26679 IconID types.ID `mapconv:"Icon.ID"` 26680 MaxCheckAttempts int `mapconv:"Settings.SimpleMonitor.MaxCheckAttempts"` 26681 RetryInterval int `mapconv:"Settings.SimpleMonitor.RetryInterval"` 26682 DelayLoop int `mapconv:"Settings.SimpleMonitor.DelayLoop"` 26683 Enabled types.StringFlag `mapconv:"Settings.SimpleMonitor.Enabled"` 26684 HealthCheck *SimpleMonitorHealthCheck `mapconv:"Settings.SimpleMonitor.HealthCheck,recursive"` 26685 NotifyEmailEnabled types.StringFlag `mapconv:"Settings.SimpleMonitor.NotifyEmail.Enabled"` 26686 NotifyEmailHTML types.StringFlag `mapconv:"Settings.SimpleMonitor.NotifyEmail.HTML"` 26687 NotifySlackEnabled types.StringFlag `mapconv:"Settings.SimpleMonitor.NotifySlack.Enabled"` 26688 SlackWebhooksURL string `mapconv:"Settings.SimpleMonitor.NotifySlack.IncomingWebhooksURL"` 26689 NotifyInterval int `mapconv:"Settings.SimpleMonitor.NotifyInterval"` 26690 Timeout int `mapconv:"Settings.SimpleMonitor.Timeout"` 26691 SettingsHash string `json:",omitempty" mapconv:",omitempty"` 26692 }{ 26693 Description: o.GetDescription(), 26694 Tags: o.GetTags(), 26695 IconID: o.GetIconID(), 26696 MaxCheckAttempts: o.GetMaxCheckAttempts(), 26697 RetryInterval: o.GetRetryInterval(), 26698 DelayLoop: o.GetDelayLoop(), 26699 Enabled: o.GetEnabled(), 26700 HealthCheck: o.GetHealthCheck(), 26701 NotifyEmailEnabled: o.GetNotifyEmailEnabled(), 26702 NotifyEmailHTML: o.GetNotifyEmailHTML(), 26703 NotifySlackEnabled: o.GetNotifySlackEnabled(), 26704 SlackWebhooksURL: o.GetSlackWebhooksURL(), 26705 NotifyInterval: o.GetNotifyInterval(), 26706 Timeout: o.GetTimeout(), 26707 SettingsHash: o.GetSettingsHash(), 26708 } 26709 } 26710 26711 // GetDescription returns value of Description 26712 func (o *SimpleMonitorUpdateRequest) GetDescription() string { 26713 return o.Description 26714 } 26715 26716 // SetDescription sets value to Description 26717 func (o *SimpleMonitorUpdateRequest) SetDescription(v string) { 26718 o.Description = v 26719 } 26720 26721 // GetTags returns value of Tags 26722 func (o *SimpleMonitorUpdateRequest) GetTags() types.Tags { 26723 return o.Tags 26724 } 26725 26726 // SetTags sets value to Tags 26727 func (o *SimpleMonitorUpdateRequest) SetTags(v types.Tags) { 26728 o.Tags = v 26729 } 26730 26731 // HasTag 指定のタグが存在する場合trueを返す 26732 func (o *SimpleMonitorUpdateRequest) HasTag(tag string) bool { 26733 return accessor.HasTag(o, tag) 26734 } 26735 26736 // AppendTag 指定のタグを追加 26737 func (o *SimpleMonitorUpdateRequest) AppendTag(tag string) { 26738 accessor.AppendTag(o, tag) 26739 } 26740 26741 // RemoveTag 指定のタグを削除 26742 func (o *SimpleMonitorUpdateRequest) RemoveTag(tag string) { 26743 accessor.RemoveTag(o, tag) 26744 } 26745 26746 // ClearTags タグを全クリア 26747 func (o *SimpleMonitorUpdateRequest) ClearTags() { 26748 accessor.ClearTags(o) 26749 } 26750 26751 // GetIconID returns value of IconID 26752 func (o *SimpleMonitorUpdateRequest) GetIconID() types.ID { 26753 return o.IconID 26754 } 26755 26756 // SetIconID sets value to IconID 26757 func (o *SimpleMonitorUpdateRequest) SetIconID(v types.ID) { 26758 o.IconID = v 26759 } 26760 26761 // GetMaxCheckAttempts returns value of MaxCheckAttempts 26762 func (o *SimpleMonitorUpdateRequest) GetMaxCheckAttempts() int { 26763 if o.MaxCheckAttempts == 0 { 26764 return 3 26765 } 26766 return o.MaxCheckAttempts 26767 } 26768 26769 // SetMaxCheckAttempts sets value to MaxCheckAttempts 26770 func (o *SimpleMonitorUpdateRequest) SetMaxCheckAttempts(v int) { 26771 o.MaxCheckAttempts = v 26772 } 26773 26774 // GetRetryInterval returns value of RetryInterval 26775 func (o *SimpleMonitorUpdateRequest) GetRetryInterval() int { 26776 if o.RetryInterval == 0 { 26777 return 10 26778 } 26779 return o.RetryInterval 26780 } 26781 26782 // SetRetryInterval sets value to RetryInterval 26783 func (o *SimpleMonitorUpdateRequest) SetRetryInterval(v int) { 26784 o.RetryInterval = v 26785 } 26786 26787 // GetDelayLoop returns value of DelayLoop 26788 func (o *SimpleMonitorUpdateRequest) GetDelayLoop() int { 26789 if o.DelayLoop == 0 { 26790 return 60 26791 } 26792 return o.DelayLoop 26793 } 26794 26795 // SetDelayLoop sets value to DelayLoop 26796 func (o *SimpleMonitorUpdateRequest) SetDelayLoop(v int) { 26797 o.DelayLoop = v 26798 } 26799 26800 // GetEnabled returns value of Enabled 26801 func (o *SimpleMonitorUpdateRequest) GetEnabled() types.StringFlag { 26802 return o.Enabled 26803 } 26804 26805 // SetEnabled sets value to Enabled 26806 func (o *SimpleMonitorUpdateRequest) SetEnabled(v types.StringFlag) { 26807 o.Enabled = v 26808 } 26809 26810 // GetHealthCheck returns value of HealthCheck 26811 func (o *SimpleMonitorUpdateRequest) GetHealthCheck() *SimpleMonitorHealthCheck { 26812 return o.HealthCheck 26813 } 26814 26815 // SetHealthCheck sets value to HealthCheck 26816 func (o *SimpleMonitorUpdateRequest) SetHealthCheck(v *SimpleMonitorHealthCheck) { 26817 o.HealthCheck = v 26818 } 26819 26820 // GetNotifyEmailEnabled returns value of NotifyEmailEnabled 26821 func (o *SimpleMonitorUpdateRequest) GetNotifyEmailEnabled() types.StringFlag { 26822 return o.NotifyEmailEnabled 26823 } 26824 26825 // SetNotifyEmailEnabled sets value to NotifyEmailEnabled 26826 func (o *SimpleMonitorUpdateRequest) SetNotifyEmailEnabled(v types.StringFlag) { 26827 o.NotifyEmailEnabled = v 26828 } 26829 26830 // GetNotifyEmailHTML returns value of NotifyEmailHTML 26831 func (o *SimpleMonitorUpdateRequest) GetNotifyEmailHTML() types.StringFlag { 26832 return o.NotifyEmailHTML 26833 } 26834 26835 // SetNotifyEmailHTML sets value to NotifyEmailHTML 26836 func (o *SimpleMonitorUpdateRequest) SetNotifyEmailHTML(v types.StringFlag) { 26837 o.NotifyEmailHTML = v 26838 } 26839 26840 // GetNotifySlackEnabled returns value of NotifySlackEnabled 26841 func (o *SimpleMonitorUpdateRequest) GetNotifySlackEnabled() types.StringFlag { 26842 return o.NotifySlackEnabled 26843 } 26844 26845 // SetNotifySlackEnabled sets value to NotifySlackEnabled 26846 func (o *SimpleMonitorUpdateRequest) SetNotifySlackEnabled(v types.StringFlag) { 26847 o.NotifySlackEnabled = v 26848 } 26849 26850 // GetSlackWebhooksURL returns value of SlackWebhooksURL 26851 func (o *SimpleMonitorUpdateRequest) GetSlackWebhooksURL() string { 26852 return o.SlackWebhooksURL 26853 } 26854 26855 // SetSlackWebhooksURL sets value to SlackWebhooksURL 26856 func (o *SimpleMonitorUpdateRequest) SetSlackWebhooksURL(v string) { 26857 o.SlackWebhooksURL = v 26858 } 26859 26860 // GetNotifyInterval returns value of NotifyInterval 26861 func (o *SimpleMonitorUpdateRequest) GetNotifyInterval() int { 26862 if o.NotifyInterval == 0 { 26863 return 7200 26864 } 26865 return o.NotifyInterval 26866 } 26867 26868 // SetNotifyInterval sets value to NotifyInterval 26869 func (o *SimpleMonitorUpdateRequest) SetNotifyInterval(v int) { 26870 o.NotifyInterval = v 26871 } 26872 26873 // GetTimeout returns value of Timeout 26874 func (o *SimpleMonitorUpdateRequest) GetTimeout() int { 26875 return o.Timeout 26876 } 26877 26878 // SetTimeout sets value to Timeout 26879 func (o *SimpleMonitorUpdateRequest) SetTimeout(v int) { 26880 o.Timeout = v 26881 } 26882 26883 // GetSettingsHash returns value of SettingsHash 26884 func (o *SimpleMonitorUpdateRequest) GetSettingsHash() string { 26885 return o.SettingsHash 26886 } 26887 26888 // SetSettingsHash sets value to SettingsHash 26889 func (o *SimpleMonitorUpdateRequest) SetSettingsHash(v string) { 26890 o.SettingsHash = v 26891 } 26892 26893 /************************************************* 26894 * SimpleMonitorUpdateSettingsRequest 26895 *************************************************/ 26896 26897 // SimpleMonitorUpdateSettingsRequest represents API parameter/response structure 26898 type SimpleMonitorUpdateSettingsRequest struct { 26899 MaxCheckAttempts int `mapconv:"Settings.SimpleMonitor.MaxCheckAttempts"` 26900 RetryInterval int `mapconv:"Settings.SimpleMonitor.RetryInterval"` 26901 DelayLoop int `mapconv:"Settings.SimpleMonitor.DelayLoop"` 26902 Enabled types.StringFlag `mapconv:"Settings.SimpleMonitor.Enabled"` 26903 HealthCheck *SimpleMonitorHealthCheck `mapconv:"Settings.SimpleMonitor.HealthCheck,recursive"` 26904 NotifyEmailEnabled types.StringFlag `mapconv:"Settings.SimpleMonitor.NotifyEmail.Enabled"` 26905 NotifyEmailHTML types.StringFlag `mapconv:"Settings.SimpleMonitor.NotifyEmail.HTML"` 26906 NotifySlackEnabled types.StringFlag `mapconv:"Settings.SimpleMonitor.NotifySlack.Enabled"` 26907 SlackWebhooksURL string `mapconv:"Settings.SimpleMonitor.NotifySlack.IncomingWebhooksURL"` 26908 NotifyInterval int `mapconv:"Settings.SimpleMonitor.NotifyInterval"` 26909 Timeout int `mapconv:"Settings.SimpleMonitor.Timeout"` 26910 SettingsHash string `json:",omitempty" mapconv:",omitempty"` 26911 } 26912 26913 // setDefaults implements iaas.argumentDefaulter 26914 func (o *SimpleMonitorUpdateSettingsRequest) setDefaults() interface{} { 26915 return &struct { 26916 MaxCheckAttempts int `mapconv:"Settings.SimpleMonitor.MaxCheckAttempts"` 26917 RetryInterval int `mapconv:"Settings.SimpleMonitor.RetryInterval"` 26918 DelayLoop int `mapconv:"Settings.SimpleMonitor.DelayLoop"` 26919 Enabled types.StringFlag `mapconv:"Settings.SimpleMonitor.Enabled"` 26920 HealthCheck *SimpleMonitorHealthCheck `mapconv:"Settings.SimpleMonitor.HealthCheck,recursive"` 26921 NotifyEmailEnabled types.StringFlag `mapconv:"Settings.SimpleMonitor.NotifyEmail.Enabled"` 26922 NotifyEmailHTML types.StringFlag `mapconv:"Settings.SimpleMonitor.NotifyEmail.HTML"` 26923 NotifySlackEnabled types.StringFlag `mapconv:"Settings.SimpleMonitor.NotifySlack.Enabled"` 26924 SlackWebhooksURL string `mapconv:"Settings.SimpleMonitor.NotifySlack.IncomingWebhooksURL"` 26925 NotifyInterval int `mapconv:"Settings.SimpleMonitor.NotifyInterval"` 26926 Timeout int `mapconv:"Settings.SimpleMonitor.Timeout"` 26927 SettingsHash string `json:",omitempty" mapconv:",omitempty"` 26928 }{ 26929 MaxCheckAttempts: o.GetMaxCheckAttempts(), 26930 RetryInterval: o.GetRetryInterval(), 26931 DelayLoop: o.GetDelayLoop(), 26932 Enabled: o.GetEnabled(), 26933 HealthCheck: o.GetHealthCheck(), 26934 NotifyEmailEnabled: o.GetNotifyEmailEnabled(), 26935 NotifyEmailHTML: o.GetNotifyEmailHTML(), 26936 NotifySlackEnabled: o.GetNotifySlackEnabled(), 26937 SlackWebhooksURL: o.GetSlackWebhooksURL(), 26938 NotifyInterval: o.GetNotifyInterval(), 26939 Timeout: o.GetTimeout(), 26940 SettingsHash: o.GetSettingsHash(), 26941 } 26942 } 26943 26944 // GetMaxCheckAttempts returns value of MaxCheckAttempts 26945 func (o *SimpleMonitorUpdateSettingsRequest) GetMaxCheckAttempts() int { 26946 if o.MaxCheckAttempts == 0 { 26947 return 3 26948 } 26949 return o.MaxCheckAttempts 26950 } 26951 26952 // SetMaxCheckAttempts sets value to MaxCheckAttempts 26953 func (o *SimpleMonitorUpdateSettingsRequest) SetMaxCheckAttempts(v int) { 26954 o.MaxCheckAttempts = v 26955 } 26956 26957 // GetRetryInterval returns value of RetryInterval 26958 func (o *SimpleMonitorUpdateSettingsRequest) GetRetryInterval() int { 26959 if o.RetryInterval == 0 { 26960 return 10 26961 } 26962 return o.RetryInterval 26963 } 26964 26965 // SetRetryInterval sets value to RetryInterval 26966 func (o *SimpleMonitorUpdateSettingsRequest) SetRetryInterval(v int) { 26967 o.RetryInterval = v 26968 } 26969 26970 // GetDelayLoop returns value of DelayLoop 26971 func (o *SimpleMonitorUpdateSettingsRequest) GetDelayLoop() int { 26972 if o.DelayLoop == 0 { 26973 return 60 26974 } 26975 return o.DelayLoop 26976 } 26977 26978 // SetDelayLoop sets value to DelayLoop 26979 func (o *SimpleMonitorUpdateSettingsRequest) SetDelayLoop(v int) { 26980 o.DelayLoop = v 26981 } 26982 26983 // GetEnabled returns value of Enabled 26984 func (o *SimpleMonitorUpdateSettingsRequest) GetEnabled() types.StringFlag { 26985 return o.Enabled 26986 } 26987 26988 // SetEnabled sets value to Enabled 26989 func (o *SimpleMonitorUpdateSettingsRequest) SetEnabled(v types.StringFlag) { 26990 o.Enabled = v 26991 } 26992 26993 // GetHealthCheck returns value of HealthCheck 26994 func (o *SimpleMonitorUpdateSettingsRequest) GetHealthCheck() *SimpleMonitorHealthCheck { 26995 return o.HealthCheck 26996 } 26997 26998 // SetHealthCheck sets value to HealthCheck 26999 func (o *SimpleMonitorUpdateSettingsRequest) SetHealthCheck(v *SimpleMonitorHealthCheck) { 27000 o.HealthCheck = v 27001 } 27002 27003 // GetNotifyEmailEnabled returns value of NotifyEmailEnabled 27004 func (o *SimpleMonitorUpdateSettingsRequest) GetNotifyEmailEnabled() types.StringFlag { 27005 return o.NotifyEmailEnabled 27006 } 27007 27008 // SetNotifyEmailEnabled sets value to NotifyEmailEnabled 27009 func (o *SimpleMonitorUpdateSettingsRequest) SetNotifyEmailEnabled(v types.StringFlag) { 27010 o.NotifyEmailEnabled = v 27011 } 27012 27013 // GetNotifyEmailHTML returns value of NotifyEmailHTML 27014 func (o *SimpleMonitorUpdateSettingsRequest) GetNotifyEmailHTML() types.StringFlag { 27015 return o.NotifyEmailHTML 27016 } 27017 27018 // SetNotifyEmailHTML sets value to NotifyEmailHTML 27019 func (o *SimpleMonitorUpdateSettingsRequest) SetNotifyEmailHTML(v types.StringFlag) { 27020 o.NotifyEmailHTML = v 27021 } 27022 27023 // GetNotifySlackEnabled returns value of NotifySlackEnabled 27024 func (o *SimpleMonitorUpdateSettingsRequest) GetNotifySlackEnabled() types.StringFlag { 27025 return o.NotifySlackEnabled 27026 } 27027 27028 // SetNotifySlackEnabled sets value to NotifySlackEnabled 27029 func (o *SimpleMonitorUpdateSettingsRequest) SetNotifySlackEnabled(v types.StringFlag) { 27030 o.NotifySlackEnabled = v 27031 } 27032 27033 // GetSlackWebhooksURL returns value of SlackWebhooksURL 27034 func (o *SimpleMonitorUpdateSettingsRequest) GetSlackWebhooksURL() string { 27035 return o.SlackWebhooksURL 27036 } 27037 27038 // SetSlackWebhooksURL sets value to SlackWebhooksURL 27039 func (o *SimpleMonitorUpdateSettingsRequest) SetSlackWebhooksURL(v string) { 27040 o.SlackWebhooksURL = v 27041 } 27042 27043 // GetNotifyInterval returns value of NotifyInterval 27044 func (o *SimpleMonitorUpdateSettingsRequest) GetNotifyInterval() int { 27045 if o.NotifyInterval == 0 { 27046 return 7200 27047 } 27048 return o.NotifyInterval 27049 } 27050 27051 // SetNotifyInterval sets value to NotifyInterval 27052 func (o *SimpleMonitorUpdateSettingsRequest) SetNotifyInterval(v int) { 27053 o.NotifyInterval = v 27054 } 27055 27056 // GetTimeout returns value of Timeout 27057 func (o *SimpleMonitorUpdateSettingsRequest) GetTimeout() int { 27058 return o.Timeout 27059 } 27060 27061 // SetTimeout sets value to Timeout 27062 func (o *SimpleMonitorUpdateSettingsRequest) SetTimeout(v int) { 27063 o.Timeout = v 27064 } 27065 27066 // GetSettingsHash returns value of SettingsHash 27067 func (o *SimpleMonitorUpdateSettingsRequest) GetSettingsHash() string { 27068 return o.SettingsHash 27069 } 27070 27071 // SetSettingsHash sets value to SettingsHash 27072 func (o *SimpleMonitorUpdateSettingsRequest) SetSettingsHash(v string) { 27073 o.SettingsHash = v 27074 } 27075 27076 /************************************************* 27077 * ResponseTimeSecActivity 27078 *************************************************/ 27079 27080 // ResponseTimeSecActivity represents API parameter/response structure 27081 type ResponseTimeSecActivity struct { 27082 Values []*MonitorResponseTimeSecValue `mapconv:"[]ResponseTimeSec"` 27083 } 27084 27085 // setDefaults implements iaas.argumentDefaulter 27086 func (o *ResponseTimeSecActivity) setDefaults() interface{} { 27087 return &struct { 27088 Values []*MonitorResponseTimeSecValue `mapconv:"[]ResponseTimeSec"` 27089 }{ 27090 Values: o.GetValues(), 27091 } 27092 } 27093 27094 // GetValues returns value of Values 27095 func (o *ResponseTimeSecActivity) GetValues() []*MonitorResponseTimeSecValue { 27096 return o.Values 27097 } 27098 27099 // SetValues sets value to Values 27100 func (o *ResponseTimeSecActivity) SetValues(v []*MonitorResponseTimeSecValue) { 27101 o.Values = v 27102 } 27103 27104 /************************************************* 27105 * MonitorResponseTimeSecValue 27106 *************************************************/ 27107 27108 // MonitorResponseTimeSecValue represents API parameter/response structure 27109 type MonitorResponseTimeSecValue struct { 27110 Time time.Time `mapconv:",omitempty"` 27111 ResponseTimeSec float64 `mapconv:",omitempty"` 27112 } 27113 27114 // setDefaults implements iaas.argumentDefaulter 27115 func (o *MonitorResponseTimeSecValue) setDefaults() interface{} { 27116 return &struct { 27117 Time time.Time `mapconv:",omitempty"` 27118 ResponseTimeSec float64 `mapconv:",omitempty"` 27119 }{ 27120 Time: o.GetTime(), 27121 ResponseTimeSec: o.GetResponseTimeSec(), 27122 } 27123 } 27124 27125 // GetTime returns value of Time 27126 func (o *MonitorResponseTimeSecValue) GetTime() time.Time { 27127 return o.Time 27128 } 27129 27130 // SetTime sets value to Time 27131 func (o *MonitorResponseTimeSecValue) SetTime(v time.Time) { 27132 o.Time = v 27133 } 27134 27135 // GetResponseTimeSec returns value of ResponseTimeSec 27136 func (o *MonitorResponseTimeSecValue) GetResponseTimeSec() float64 { 27137 return o.ResponseTimeSec 27138 } 27139 27140 // SetResponseTimeSec sets value to ResponseTimeSec 27141 func (o *MonitorResponseTimeSecValue) SetResponseTimeSec(v float64) { 27142 o.ResponseTimeSec = v 27143 } 27144 27145 /************************************************* 27146 * SimpleMonitorHealthStatus 27147 *************************************************/ 27148 27149 // SimpleMonitorHealthStatus represents API parameter/response structure 27150 type SimpleMonitorHealthStatus struct { 27151 LastCheckedAt time.Time 27152 LastHealthChangedAt time.Time 27153 Health types.ESimpleMonitorHealth 27154 LatestLogs []string 27155 } 27156 27157 // setDefaults implements iaas.argumentDefaulter 27158 func (o *SimpleMonitorHealthStatus) setDefaults() interface{} { 27159 return &struct { 27160 LastCheckedAt time.Time 27161 LastHealthChangedAt time.Time 27162 Health types.ESimpleMonitorHealth 27163 LatestLogs []string 27164 }{ 27165 LastCheckedAt: o.GetLastCheckedAt(), 27166 LastHealthChangedAt: o.GetLastHealthChangedAt(), 27167 Health: o.GetHealth(), 27168 LatestLogs: o.GetLatestLogs(), 27169 } 27170 } 27171 27172 // GetLastCheckedAt returns value of LastCheckedAt 27173 func (o *SimpleMonitorHealthStatus) GetLastCheckedAt() time.Time { 27174 return o.LastCheckedAt 27175 } 27176 27177 // SetLastCheckedAt sets value to LastCheckedAt 27178 func (o *SimpleMonitorHealthStatus) SetLastCheckedAt(v time.Time) { 27179 o.LastCheckedAt = v 27180 } 27181 27182 // GetLastHealthChangedAt returns value of LastHealthChangedAt 27183 func (o *SimpleMonitorHealthStatus) GetLastHealthChangedAt() time.Time { 27184 return o.LastHealthChangedAt 27185 } 27186 27187 // SetLastHealthChangedAt sets value to LastHealthChangedAt 27188 func (o *SimpleMonitorHealthStatus) SetLastHealthChangedAt(v time.Time) { 27189 o.LastHealthChangedAt = v 27190 } 27191 27192 // GetHealth returns value of Health 27193 func (o *SimpleMonitorHealthStatus) GetHealth() types.ESimpleMonitorHealth { 27194 return o.Health 27195 } 27196 27197 // SetHealth sets value to Health 27198 func (o *SimpleMonitorHealthStatus) SetHealth(v types.ESimpleMonitorHealth) { 27199 o.Health = v 27200 } 27201 27202 // GetLatestLogs returns value of LatestLogs 27203 func (o *SimpleMonitorHealthStatus) GetLatestLogs() []string { 27204 return o.LatestLogs 27205 } 27206 27207 // SetLatestLogs sets value to LatestLogs 27208 func (o *SimpleMonitorHealthStatus) SetLatestLogs(v []string) { 27209 o.LatestLogs = v 27210 } 27211 27212 /************************************************* 27213 * SSHKey 27214 *************************************************/ 27215 27216 // SSHKey represents API parameter/response structure 27217 type SSHKey struct { 27218 ID types.ID 27219 Name string 27220 Description string 27221 CreatedAt time.Time 27222 PublicKey string 27223 Fingerprint string 27224 } 27225 27226 // setDefaults implements iaas.argumentDefaulter 27227 func (o *SSHKey) setDefaults() interface{} { 27228 return &struct { 27229 ID types.ID 27230 Name string 27231 Description string 27232 CreatedAt time.Time 27233 PublicKey string 27234 Fingerprint string 27235 }{ 27236 ID: o.GetID(), 27237 Name: o.GetName(), 27238 Description: o.GetDescription(), 27239 CreatedAt: o.GetCreatedAt(), 27240 PublicKey: o.GetPublicKey(), 27241 Fingerprint: o.GetFingerprint(), 27242 } 27243 } 27244 27245 // GetID returns value of ID 27246 func (o *SSHKey) GetID() types.ID { 27247 return o.ID 27248 } 27249 27250 // SetID sets value to ID 27251 func (o *SSHKey) SetID(v types.ID) { 27252 o.ID = v 27253 } 27254 27255 // SetStringID . 27256 func (o *SSHKey) SetStringID(id string) { 27257 accessor.SetStringID(o, id) 27258 } 27259 27260 // GetStringID . 27261 func (o *SSHKey) GetStringID() string { 27262 return accessor.GetStringID(o) 27263 } 27264 27265 // SetInt64ID . 27266 func (o *SSHKey) SetInt64ID(id int64) { 27267 accessor.SetInt64ID(o, id) 27268 } 27269 27270 // GetInt64ID . 27271 func (o *SSHKey) GetInt64ID() int64 { 27272 return accessor.GetInt64ID(o) 27273 } 27274 27275 // GetName returns value of Name 27276 func (o *SSHKey) GetName() string { 27277 return o.Name 27278 } 27279 27280 // SetName sets value to Name 27281 func (o *SSHKey) SetName(v string) { 27282 o.Name = v 27283 } 27284 27285 // GetDescription returns value of Description 27286 func (o *SSHKey) GetDescription() string { 27287 return o.Description 27288 } 27289 27290 // SetDescription sets value to Description 27291 func (o *SSHKey) SetDescription(v string) { 27292 o.Description = v 27293 } 27294 27295 // GetCreatedAt returns value of CreatedAt 27296 func (o *SSHKey) GetCreatedAt() time.Time { 27297 return o.CreatedAt 27298 } 27299 27300 // SetCreatedAt sets value to CreatedAt 27301 func (o *SSHKey) SetCreatedAt(v time.Time) { 27302 o.CreatedAt = v 27303 } 27304 27305 // GetPublicKey returns value of PublicKey 27306 func (o *SSHKey) GetPublicKey() string { 27307 return o.PublicKey 27308 } 27309 27310 // SetPublicKey sets value to PublicKey 27311 func (o *SSHKey) SetPublicKey(v string) { 27312 o.PublicKey = v 27313 } 27314 27315 // GetFingerprint returns value of Fingerprint 27316 func (o *SSHKey) GetFingerprint() string { 27317 return o.Fingerprint 27318 } 27319 27320 // SetFingerprint sets value to Fingerprint 27321 func (o *SSHKey) SetFingerprint(v string) { 27322 o.Fingerprint = v 27323 } 27324 27325 /************************************************* 27326 * SSHKeyCreateRequest 27327 *************************************************/ 27328 27329 // SSHKeyCreateRequest represents API parameter/response structure 27330 type SSHKeyCreateRequest struct { 27331 Name string 27332 Description string 27333 PublicKey string 27334 } 27335 27336 // setDefaults implements iaas.argumentDefaulter 27337 func (o *SSHKeyCreateRequest) setDefaults() interface{} { 27338 return &struct { 27339 Name string 27340 Description string 27341 PublicKey string 27342 }{ 27343 Name: o.GetName(), 27344 Description: o.GetDescription(), 27345 PublicKey: o.GetPublicKey(), 27346 } 27347 } 27348 27349 // GetName returns value of Name 27350 func (o *SSHKeyCreateRequest) GetName() string { 27351 return o.Name 27352 } 27353 27354 // SetName sets value to Name 27355 func (o *SSHKeyCreateRequest) SetName(v string) { 27356 o.Name = v 27357 } 27358 27359 // GetDescription returns value of Description 27360 func (o *SSHKeyCreateRequest) GetDescription() string { 27361 return o.Description 27362 } 27363 27364 // SetDescription sets value to Description 27365 func (o *SSHKeyCreateRequest) SetDescription(v string) { 27366 o.Description = v 27367 } 27368 27369 // GetPublicKey returns value of PublicKey 27370 func (o *SSHKeyCreateRequest) GetPublicKey() string { 27371 return o.PublicKey 27372 } 27373 27374 // SetPublicKey sets value to PublicKey 27375 func (o *SSHKeyCreateRequest) SetPublicKey(v string) { 27376 o.PublicKey = v 27377 } 27378 27379 /************************************************* 27380 * SSHKeyGenerated 27381 *************************************************/ 27382 27383 // SSHKeyGenerated represents API parameter/response structure 27384 type SSHKeyGenerated struct { 27385 ID types.ID 27386 Name string 27387 Description string 27388 CreatedAt time.Time 27389 PublicKey string 27390 Fingerprint string 27391 PrivateKey string 27392 } 27393 27394 // setDefaults implements iaas.argumentDefaulter 27395 func (o *SSHKeyGenerated) setDefaults() interface{} { 27396 return &struct { 27397 ID types.ID 27398 Name string 27399 Description string 27400 CreatedAt time.Time 27401 PublicKey string 27402 Fingerprint string 27403 PrivateKey string 27404 }{ 27405 ID: o.GetID(), 27406 Name: o.GetName(), 27407 Description: o.GetDescription(), 27408 CreatedAt: o.GetCreatedAt(), 27409 PublicKey: o.GetPublicKey(), 27410 Fingerprint: o.GetFingerprint(), 27411 PrivateKey: o.GetPrivateKey(), 27412 } 27413 } 27414 27415 // GetID returns value of ID 27416 func (o *SSHKeyGenerated) GetID() types.ID { 27417 return o.ID 27418 } 27419 27420 // SetID sets value to ID 27421 func (o *SSHKeyGenerated) SetID(v types.ID) { 27422 o.ID = v 27423 } 27424 27425 // SetStringID . 27426 func (o *SSHKeyGenerated) SetStringID(id string) { 27427 accessor.SetStringID(o, id) 27428 } 27429 27430 // GetStringID . 27431 func (o *SSHKeyGenerated) GetStringID() string { 27432 return accessor.GetStringID(o) 27433 } 27434 27435 // SetInt64ID . 27436 func (o *SSHKeyGenerated) SetInt64ID(id int64) { 27437 accessor.SetInt64ID(o, id) 27438 } 27439 27440 // GetInt64ID . 27441 func (o *SSHKeyGenerated) GetInt64ID() int64 { 27442 return accessor.GetInt64ID(o) 27443 } 27444 27445 // GetName returns value of Name 27446 func (o *SSHKeyGenerated) GetName() string { 27447 return o.Name 27448 } 27449 27450 // SetName sets value to Name 27451 func (o *SSHKeyGenerated) SetName(v string) { 27452 o.Name = v 27453 } 27454 27455 // GetDescription returns value of Description 27456 func (o *SSHKeyGenerated) GetDescription() string { 27457 return o.Description 27458 } 27459 27460 // SetDescription sets value to Description 27461 func (o *SSHKeyGenerated) SetDescription(v string) { 27462 o.Description = v 27463 } 27464 27465 // GetCreatedAt returns value of CreatedAt 27466 func (o *SSHKeyGenerated) GetCreatedAt() time.Time { 27467 return o.CreatedAt 27468 } 27469 27470 // SetCreatedAt sets value to CreatedAt 27471 func (o *SSHKeyGenerated) SetCreatedAt(v time.Time) { 27472 o.CreatedAt = v 27473 } 27474 27475 // GetPublicKey returns value of PublicKey 27476 func (o *SSHKeyGenerated) GetPublicKey() string { 27477 return o.PublicKey 27478 } 27479 27480 // SetPublicKey sets value to PublicKey 27481 func (o *SSHKeyGenerated) SetPublicKey(v string) { 27482 o.PublicKey = v 27483 } 27484 27485 // GetFingerprint returns value of Fingerprint 27486 func (o *SSHKeyGenerated) GetFingerprint() string { 27487 return o.Fingerprint 27488 } 27489 27490 // SetFingerprint sets value to Fingerprint 27491 func (o *SSHKeyGenerated) SetFingerprint(v string) { 27492 o.Fingerprint = v 27493 } 27494 27495 // GetPrivateKey returns value of PrivateKey 27496 func (o *SSHKeyGenerated) GetPrivateKey() string { 27497 return o.PrivateKey 27498 } 27499 27500 // SetPrivateKey sets value to PrivateKey 27501 func (o *SSHKeyGenerated) SetPrivateKey(v string) { 27502 o.PrivateKey = v 27503 } 27504 27505 /************************************************* 27506 * SSHKeyGenerateRequest 27507 *************************************************/ 27508 27509 // SSHKeyGenerateRequest represents API parameter/response structure 27510 type SSHKeyGenerateRequest struct { 27511 Name string 27512 Description string 27513 PassPhrase string 27514 } 27515 27516 // setDefaults implements iaas.argumentDefaulter 27517 func (o *SSHKeyGenerateRequest) setDefaults() interface{} { 27518 return &struct { 27519 Name string 27520 Description string 27521 PassPhrase string 27522 GenerateFormat string 27523 }{ 27524 Name: o.GetName(), 27525 Description: o.GetDescription(), 27526 PassPhrase: o.GetPassPhrase(), 27527 GenerateFormat: "openssh", 27528 } 27529 } 27530 27531 // GetName returns value of Name 27532 func (o *SSHKeyGenerateRequest) GetName() string { 27533 return o.Name 27534 } 27535 27536 // SetName sets value to Name 27537 func (o *SSHKeyGenerateRequest) SetName(v string) { 27538 o.Name = v 27539 } 27540 27541 // GetDescription returns value of Description 27542 func (o *SSHKeyGenerateRequest) GetDescription() string { 27543 return o.Description 27544 } 27545 27546 // SetDescription sets value to Description 27547 func (o *SSHKeyGenerateRequest) SetDescription(v string) { 27548 o.Description = v 27549 } 27550 27551 // GetPassPhrase returns value of PassPhrase 27552 func (o *SSHKeyGenerateRequest) GetPassPhrase() string { 27553 return o.PassPhrase 27554 } 27555 27556 // SetPassPhrase sets value to PassPhrase 27557 func (o *SSHKeyGenerateRequest) SetPassPhrase(v string) { 27558 o.PassPhrase = v 27559 } 27560 27561 /************************************************* 27562 * SSHKeyUpdateRequest 27563 *************************************************/ 27564 27565 // SSHKeyUpdateRequest represents API parameter/response structure 27566 type SSHKeyUpdateRequest struct { 27567 Name string 27568 Description string 27569 } 27570 27571 // setDefaults implements iaas.argumentDefaulter 27572 func (o *SSHKeyUpdateRequest) setDefaults() interface{} { 27573 return &struct { 27574 Name string 27575 Description string 27576 }{ 27577 Name: o.GetName(), 27578 Description: o.GetDescription(), 27579 } 27580 } 27581 27582 // GetName returns value of Name 27583 func (o *SSHKeyUpdateRequest) GetName() string { 27584 return o.Name 27585 } 27586 27587 // SetName sets value to Name 27588 func (o *SSHKeyUpdateRequest) SetName(v string) { 27589 o.Name = v 27590 } 27591 27592 // GetDescription returns value of Description 27593 func (o *SSHKeyUpdateRequest) GetDescription() string { 27594 return o.Description 27595 } 27596 27597 // SetDescription sets value to Description 27598 func (o *SSHKeyUpdateRequest) SetDescription(v string) { 27599 o.Description = v 27600 } 27601 27602 /************************************************* 27603 * Subnet 27604 *************************************************/ 27605 27606 // Subnet represents API parameter/response structure 27607 type Subnet struct { 27608 ID types.ID 27609 SwitchID types.ID `mapconv:"Switch.ID,omitempty"` 27610 InternetID types.ID `mapconv:"Switch.Internet.ID,omitempty"` 27611 DefaultRoute string 27612 NextHop string 27613 StaticRoute string 27614 NetworkAddress string 27615 NetworkMaskLen int 27616 IPAddresses []*SubnetIPAddress `mapconv:"[]IPAddresses,recursive"` 27617 } 27618 27619 // setDefaults implements iaas.argumentDefaulter 27620 func (o *Subnet) setDefaults() interface{} { 27621 return &struct { 27622 ID types.ID 27623 SwitchID types.ID `mapconv:"Switch.ID,omitempty"` 27624 InternetID types.ID `mapconv:"Switch.Internet.ID,omitempty"` 27625 DefaultRoute string 27626 NextHop string 27627 StaticRoute string 27628 NetworkAddress string 27629 NetworkMaskLen int 27630 IPAddresses []*SubnetIPAddress `mapconv:"[]IPAddresses,recursive"` 27631 }{ 27632 ID: o.GetID(), 27633 SwitchID: o.GetSwitchID(), 27634 InternetID: o.GetInternetID(), 27635 DefaultRoute: o.GetDefaultRoute(), 27636 NextHop: o.GetNextHop(), 27637 StaticRoute: o.GetStaticRoute(), 27638 NetworkAddress: o.GetNetworkAddress(), 27639 NetworkMaskLen: o.GetNetworkMaskLen(), 27640 IPAddresses: o.GetIPAddresses(), 27641 } 27642 } 27643 27644 // GetID returns value of ID 27645 func (o *Subnet) GetID() types.ID { 27646 return o.ID 27647 } 27648 27649 // SetID sets value to ID 27650 func (o *Subnet) SetID(v types.ID) { 27651 o.ID = v 27652 } 27653 27654 // SetStringID . 27655 func (o *Subnet) SetStringID(id string) { 27656 accessor.SetStringID(o, id) 27657 } 27658 27659 // GetStringID . 27660 func (o *Subnet) GetStringID() string { 27661 return accessor.GetStringID(o) 27662 } 27663 27664 // SetInt64ID . 27665 func (o *Subnet) SetInt64ID(id int64) { 27666 accessor.SetInt64ID(o, id) 27667 } 27668 27669 // GetInt64ID . 27670 func (o *Subnet) GetInt64ID() int64 { 27671 return accessor.GetInt64ID(o) 27672 } 27673 27674 // GetSwitchID returns value of SwitchID 27675 func (o *Subnet) GetSwitchID() types.ID { 27676 return o.SwitchID 27677 } 27678 27679 // SetSwitchID sets value to SwitchID 27680 func (o *Subnet) SetSwitchID(v types.ID) { 27681 o.SwitchID = v 27682 } 27683 27684 // GetInternetID returns value of InternetID 27685 func (o *Subnet) GetInternetID() types.ID { 27686 return o.InternetID 27687 } 27688 27689 // SetInternetID sets value to InternetID 27690 func (o *Subnet) SetInternetID(v types.ID) { 27691 o.InternetID = v 27692 } 27693 27694 // GetDefaultRoute returns value of DefaultRoute 27695 func (o *Subnet) GetDefaultRoute() string { 27696 return o.DefaultRoute 27697 } 27698 27699 // SetDefaultRoute sets value to DefaultRoute 27700 func (o *Subnet) SetDefaultRoute(v string) { 27701 o.DefaultRoute = v 27702 } 27703 27704 // GetNextHop returns value of NextHop 27705 func (o *Subnet) GetNextHop() string { 27706 return o.NextHop 27707 } 27708 27709 // SetNextHop sets value to NextHop 27710 func (o *Subnet) SetNextHop(v string) { 27711 o.NextHop = v 27712 } 27713 27714 // GetStaticRoute returns value of StaticRoute 27715 func (o *Subnet) GetStaticRoute() string { 27716 return o.StaticRoute 27717 } 27718 27719 // SetStaticRoute sets value to StaticRoute 27720 func (o *Subnet) SetStaticRoute(v string) { 27721 o.StaticRoute = v 27722 } 27723 27724 // GetNetworkAddress returns value of NetworkAddress 27725 func (o *Subnet) GetNetworkAddress() string { 27726 return o.NetworkAddress 27727 } 27728 27729 // SetNetworkAddress sets value to NetworkAddress 27730 func (o *Subnet) SetNetworkAddress(v string) { 27731 o.NetworkAddress = v 27732 } 27733 27734 // GetNetworkMaskLen returns value of NetworkMaskLen 27735 func (o *Subnet) GetNetworkMaskLen() int { 27736 return o.NetworkMaskLen 27737 } 27738 27739 // SetNetworkMaskLen sets value to NetworkMaskLen 27740 func (o *Subnet) SetNetworkMaskLen(v int) { 27741 o.NetworkMaskLen = v 27742 } 27743 27744 // GetIPAddresses returns value of IPAddresses 27745 func (o *Subnet) GetIPAddresses() []*SubnetIPAddress { 27746 return o.IPAddresses 27747 } 27748 27749 // SetIPAddresses sets value to IPAddresses 27750 func (o *Subnet) SetIPAddresses(v []*SubnetIPAddress) { 27751 o.IPAddresses = v 27752 } 27753 27754 /************************************************* 27755 * SubnetIPAddress 27756 *************************************************/ 27757 27758 // SubnetIPAddress represents API parameter/response structure 27759 type SubnetIPAddress struct { 27760 HostName string 27761 IPAddress string 27762 } 27763 27764 // setDefaults implements iaas.argumentDefaulter 27765 func (o *SubnetIPAddress) setDefaults() interface{} { 27766 return &struct { 27767 HostName string 27768 IPAddress string 27769 }{ 27770 HostName: o.GetHostName(), 27771 IPAddress: o.GetIPAddress(), 27772 } 27773 } 27774 27775 // GetHostName returns value of HostName 27776 func (o *SubnetIPAddress) GetHostName() string { 27777 return o.HostName 27778 } 27779 27780 // SetHostName sets value to HostName 27781 func (o *SubnetIPAddress) SetHostName(v string) { 27782 o.HostName = v 27783 } 27784 27785 // GetIPAddress returns value of IPAddress 27786 func (o *SubnetIPAddress) GetIPAddress() string { 27787 return o.IPAddress 27788 } 27789 27790 // SetIPAddress sets value to IPAddress 27791 func (o *SubnetIPAddress) SetIPAddress(v string) { 27792 o.IPAddress = v 27793 } 27794 27795 /************************************************* 27796 * Switch 27797 *************************************************/ 27798 27799 // Switch represents API parameter/response structure 27800 type Switch struct { 27801 ID types.ID 27802 Name string 27803 Description string 27804 Tags types.Tags 27805 IconID types.ID `mapconv:"Icon.ID"` 27806 CreatedAt time.Time 27807 ModifiedAt time.Time 27808 Scope types.EScope 27809 ServerCount int 27810 NetworkMaskLen int `mapconv:"UserSubnet.NetworkMaskLen"` 27811 DefaultRoute string `mapconv:"UserSubnet.DefaultRoute"` 27812 Subnets []*SwitchSubnet `json:",omitempty" mapconv:"[]Subnets,omitempty,recursive"` 27813 BridgeID types.ID `mapconv:"Bridge.ID,omitempty"` 27814 HybridConnectionID types.ID `mapconv:"HybridConnection.ID,omitempty"` 27815 } 27816 27817 // setDefaults implements iaas.argumentDefaulter 27818 func (o *Switch) setDefaults() interface{} { 27819 return &struct { 27820 ID types.ID 27821 Name string 27822 Description string 27823 Tags types.Tags 27824 IconID types.ID `mapconv:"Icon.ID"` 27825 CreatedAt time.Time 27826 ModifiedAt time.Time 27827 Scope types.EScope 27828 ServerCount int 27829 NetworkMaskLen int `mapconv:"UserSubnet.NetworkMaskLen"` 27830 DefaultRoute string `mapconv:"UserSubnet.DefaultRoute"` 27831 Subnets []*SwitchSubnet `json:",omitempty" mapconv:"[]Subnets,omitempty,recursive"` 27832 BridgeID types.ID `mapconv:"Bridge.ID,omitempty"` 27833 HybridConnectionID types.ID `mapconv:"HybridConnection.ID,omitempty"` 27834 }{ 27835 ID: o.GetID(), 27836 Name: o.GetName(), 27837 Description: o.GetDescription(), 27838 Tags: o.GetTags(), 27839 IconID: o.GetIconID(), 27840 CreatedAt: o.GetCreatedAt(), 27841 ModifiedAt: o.GetModifiedAt(), 27842 Scope: o.GetScope(), 27843 ServerCount: o.GetServerCount(), 27844 NetworkMaskLen: o.GetNetworkMaskLen(), 27845 DefaultRoute: o.GetDefaultRoute(), 27846 Subnets: o.GetSubnets(), 27847 BridgeID: o.GetBridgeID(), 27848 HybridConnectionID: o.GetHybridConnectionID(), 27849 } 27850 } 27851 27852 // GetID returns value of ID 27853 func (o *Switch) GetID() types.ID { 27854 return o.ID 27855 } 27856 27857 // SetID sets value to ID 27858 func (o *Switch) SetID(v types.ID) { 27859 o.ID = v 27860 } 27861 27862 // SetStringID . 27863 func (o *Switch) SetStringID(id string) { 27864 accessor.SetStringID(o, id) 27865 } 27866 27867 // GetStringID . 27868 func (o *Switch) GetStringID() string { 27869 return accessor.GetStringID(o) 27870 } 27871 27872 // SetInt64ID . 27873 func (o *Switch) SetInt64ID(id int64) { 27874 accessor.SetInt64ID(o, id) 27875 } 27876 27877 // GetInt64ID . 27878 func (o *Switch) GetInt64ID() int64 { 27879 return accessor.GetInt64ID(o) 27880 } 27881 27882 // GetName returns value of Name 27883 func (o *Switch) GetName() string { 27884 return o.Name 27885 } 27886 27887 // SetName sets value to Name 27888 func (o *Switch) SetName(v string) { 27889 o.Name = v 27890 } 27891 27892 // GetDescription returns value of Description 27893 func (o *Switch) GetDescription() string { 27894 return o.Description 27895 } 27896 27897 // SetDescription sets value to Description 27898 func (o *Switch) SetDescription(v string) { 27899 o.Description = v 27900 } 27901 27902 // GetTags returns value of Tags 27903 func (o *Switch) GetTags() types.Tags { 27904 return o.Tags 27905 } 27906 27907 // SetTags sets value to Tags 27908 func (o *Switch) SetTags(v types.Tags) { 27909 o.Tags = v 27910 } 27911 27912 // HasTag 指定のタグが存在する場合trueを返す 27913 func (o *Switch) HasTag(tag string) bool { 27914 return accessor.HasTag(o, tag) 27915 } 27916 27917 // AppendTag 指定のタグを追加 27918 func (o *Switch) AppendTag(tag string) { 27919 accessor.AppendTag(o, tag) 27920 } 27921 27922 // RemoveTag 指定のタグを削除 27923 func (o *Switch) RemoveTag(tag string) { 27924 accessor.RemoveTag(o, tag) 27925 } 27926 27927 // ClearTags タグを全クリア 27928 func (o *Switch) ClearTags() { 27929 accessor.ClearTags(o) 27930 } 27931 27932 // GetIconID returns value of IconID 27933 func (o *Switch) GetIconID() types.ID { 27934 return o.IconID 27935 } 27936 27937 // SetIconID sets value to IconID 27938 func (o *Switch) SetIconID(v types.ID) { 27939 o.IconID = v 27940 } 27941 27942 // GetCreatedAt returns value of CreatedAt 27943 func (o *Switch) GetCreatedAt() time.Time { 27944 return o.CreatedAt 27945 } 27946 27947 // SetCreatedAt sets value to CreatedAt 27948 func (o *Switch) SetCreatedAt(v time.Time) { 27949 o.CreatedAt = v 27950 } 27951 27952 // GetModifiedAt returns value of ModifiedAt 27953 func (o *Switch) GetModifiedAt() time.Time { 27954 return o.ModifiedAt 27955 } 27956 27957 // SetModifiedAt sets value to ModifiedAt 27958 func (o *Switch) SetModifiedAt(v time.Time) { 27959 o.ModifiedAt = v 27960 } 27961 27962 // GetScope returns value of Scope 27963 func (o *Switch) GetScope() types.EScope { 27964 return o.Scope 27965 } 27966 27967 // SetScope sets value to Scope 27968 func (o *Switch) SetScope(v types.EScope) { 27969 o.Scope = v 27970 } 27971 27972 // GetServerCount returns value of ServerCount 27973 func (o *Switch) GetServerCount() int { 27974 return o.ServerCount 27975 } 27976 27977 // SetServerCount sets value to ServerCount 27978 func (o *Switch) SetServerCount(v int) { 27979 o.ServerCount = v 27980 } 27981 27982 // GetNetworkMaskLen returns value of NetworkMaskLen 27983 func (o *Switch) GetNetworkMaskLen() int { 27984 return o.NetworkMaskLen 27985 } 27986 27987 // SetNetworkMaskLen sets value to NetworkMaskLen 27988 func (o *Switch) SetNetworkMaskLen(v int) { 27989 o.NetworkMaskLen = v 27990 } 27991 27992 // GetDefaultRoute returns value of DefaultRoute 27993 func (o *Switch) GetDefaultRoute() string { 27994 return o.DefaultRoute 27995 } 27996 27997 // SetDefaultRoute sets value to DefaultRoute 27998 func (o *Switch) SetDefaultRoute(v string) { 27999 o.DefaultRoute = v 28000 } 28001 28002 // GetSubnets returns value of Subnets 28003 func (o *Switch) GetSubnets() []*SwitchSubnet { 28004 return o.Subnets 28005 } 28006 28007 // SetSubnets sets value to Subnets 28008 func (o *Switch) SetSubnets(v []*SwitchSubnet) { 28009 o.Subnets = v 28010 } 28011 28012 // GetBridgeID returns value of BridgeID 28013 func (o *Switch) GetBridgeID() types.ID { 28014 return o.BridgeID 28015 } 28016 28017 // SetBridgeID sets value to BridgeID 28018 func (o *Switch) SetBridgeID(v types.ID) { 28019 o.BridgeID = v 28020 } 28021 28022 // GetHybridConnectionID returns value of HybridConnectionID 28023 func (o *Switch) GetHybridConnectionID() types.ID { 28024 return o.HybridConnectionID 28025 } 28026 28027 // SetHybridConnectionID sets value to HybridConnectionID 28028 func (o *Switch) SetHybridConnectionID(v types.ID) { 28029 o.HybridConnectionID = v 28030 } 28031 28032 /************************************************* 28033 * SwitchSubnet 28034 *************************************************/ 28035 28036 // SwitchSubnet represents API parameter/response structure 28037 type SwitchSubnet struct { 28038 ID types.ID 28039 DefaultRoute string 28040 NextHop string 28041 StaticRoute string 28042 NetworkAddress string 28043 NetworkMaskLen int 28044 Internet *Internet 28045 AssignedIPAddressMax string `mapconv:"IPAddresses.Max"` 28046 AssignedIPAddressMin string `mapconv:"IPAddresses.Min"` 28047 } 28048 28049 // setDefaults implements iaas.argumentDefaulter 28050 func (o *SwitchSubnet) setDefaults() interface{} { 28051 return &struct { 28052 ID types.ID 28053 DefaultRoute string 28054 NextHop string 28055 StaticRoute string 28056 NetworkAddress string 28057 NetworkMaskLen int 28058 Internet *Internet 28059 AssignedIPAddressMax string `mapconv:"IPAddresses.Max"` 28060 AssignedIPAddressMin string `mapconv:"IPAddresses.Min"` 28061 }{ 28062 ID: o.GetID(), 28063 DefaultRoute: o.GetDefaultRoute(), 28064 NextHop: o.GetNextHop(), 28065 StaticRoute: o.GetStaticRoute(), 28066 NetworkAddress: o.GetNetworkAddress(), 28067 NetworkMaskLen: o.GetNetworkMaskLen(), 28068 Internet: o.GetInternet(), 28069 AssignedIPAddressMax: o.GetAssignedIPAddressMax(), 28070 AssignedIPAddressMin: o.GetAssignedIPAddressMin(), 28071 } 28072 } 28073 28074 // GetAssignedIPAddresses 割り当てられたIPアドレスのリスト 28075 func (o *SwitchSubnet) GetAssignedIPAddresses() []string { 28076 return accessor.GetAssignedIPAddresses(o) 28077 } 28078 28079 // GetID returns value of ID 28080 func (o *SwitchSubnet) GetID() types.ID { 28081 return o.ID 28082 } 28083 28084 // SetID sets value to ID 28085 func (o *SwitchSubnet) SetID(v types.ID) { 28086 o.ID = v 28087 } 28088 28089 // SetStringID . 28090 func (o *SwitchSubnet) SetStringID(id string) { 28091 accessor.SetStringID(o, id) 28092 } 28093 28094 // GetStringID . 28095 func (o *SwitchSubnet) GetStringID() string { 28096 return accessor.GetStringID(o) 28097 } 28098 28099 // SetInt64ID . 28100 func (o *SwitchSubnet) SetInt64ID(id int64) { 28101 accessor.SetInt64ID(o, id) 28102 } 28103 28104 // GetInt64ID . 28105 func (o *SwitchSubnet) GetInt64ID() int64 { 28106 return accessor.GetInt64ID(o) 28107 } 28108 28109 // GetDefaultRoute returns value of DefaultRoute 28110 func (o *SwitchSubnet) GetDefaultRoute() string { 28111 return o.DefaultRoute 28112 } 28113 28114 // SetDefaultRoute sets value to DefaultRoute 28115 func (o *SwitchSubnet) SetDefaultRoute(v string) { 28116 o.DefaultRoute = v 28117 } 28118 28119 // GetNextHop returns value of NextHop 28120 func (o *SwitchSubnet) GetNextHop() string { 28121 return o.NextHop 28122 } 28123 28124 // SetNextHop sets value to NextHop 28125 func (o *SwitchSubnet) SetNextHop(v string) { 28126 o.NextHop = v 28127 } 28128 28129 // GetStaticRoute returns value of StaticRoute 28130 func (o *SwitchSubnet) GetStaticRoute() string { 28131 return o.StaticRoute 28132 } 28133 28134 // SetStaticRoute sets value to StaticRoute 28135 func (o *SwitchSubnet) SetStaticRoute(v string) { 28136 o.StaticRoute = v 28137 } 28138 28139 // GetNetworkAddress returns value of NetworkAddress 28140 func (o *SwitchSubnet) GetNetworkAddress() string { 28141 return o.NetworkAddress 28142 } 28143 28144 // SetNetworkAddress sets value to NetworkAddress 28145 func (o *SwitchSubnet) SetNetworkAddress(v string) { 28146 o.NetworkAddress = v 28147 } 28148 28149 // GetNetworkMaskLen returns value of NetworkMaskLen 28150 func (o *SwitchSubnet) GetNetworkMaskLen() int { 28151 return o.NetworkMaskLen 28152 } 28153 28154 // SetNetworkMaskLen sets value to NetworkMaskLen 28155 func (o *SwitchSubnet) SetNetworkMaskLen(v int) { 28156 o.NetworkMaskLen = v 28157 } 28158 28159 // GetInternet returns value of Internet 28160 func (o *SwitchSubnet) GetInternet() *Internet { 28161 return o.Internet 28162 } 28163 28164 // SetInternet sets value to Internet 28165 func (o *SwitchSubnet) SetInternet(v *Internet) { 28166 o.Internet = v 28167 } 28168 28169 // GetAssignedIPAddressMax returns value of AssignedIPAddressMax 28170 func (o *SwitchSubnet) GetAssignedIPAddressMax() string { 28171 return o.AssignedIPAddressMax 28172 } 28173 28174 // SetAssignedIPAddressMax sets value to AssignedIPAddressMax 28175 func (o *SwitchSubnet) SetAssignedIPAddressMax(v string) { 28176 o.AssignedIPAddressMax = v 28177 } 28178 28179 // GetAssignedIPAddressMin returns value of AssignedIPAddressMin 28180 func (o *SwitchSubnet) GetAssignedIPAddressMin() string { 28181 return o.AssignedIPAddressMin 28182 } 28183 28184 // SetAssignedIPAddressMin sets value to AssignedIPAddressMin 28185 func (o *SwitchSubnet) SetAssignedIPAddressMin(v string) { 28186 o.AssignedIPAddressMin = v 28187 } 28188 28189 /************************************************* 28190 * SwitchCreateRequest 28191 *************************************************/ 28192 28193 // SwitchCreateRequest represents API parameter/response structure 28194 type SwitchCreateRequest struct { 28195 Name string 28196 NetworkMaskLen int `mapconv:"UserSubnet.NetworkMaskLen"` 28197 DefaultRoute string `mapconv:"UserSubnet.DefaultRoute"` 28198 Description string 28199 Tags types.Tags 28200 IconID types.ID `mapconv:"Icon.ID"` 28201 } 28202 28203 // setDefaults implements iaas.argumentDefaulter 28204 func (o *SwitchCreateRequest) setDefaults() interface{} { 28205 return &struct { 28206 Name string 28207 NetworkMaskLen int `mapconv:"UserSubnet.NetworkMaskLen"` 28208 DefaultRoute string `mapconv:"UserSubnet.DefaultRoute"` 28209 Description string 28210 Tags types.Tags 28211 IconID types.ID `mapconv:"Icon.ID"` 28212 }{ 28213 Name: o.GetName(), 28214 NetworkMaskLen: o.GetNetworkMaskLen(), 28215 DefaultRoute: o.GetDefaultRoute(), 28216 Description: o.GetDescription(), 28217 Tags: o.GetTags(), 28218 IconID: o.GetIconID(), 28219 } 28220 } 28221 28222 // GetName returns value of Name 28223 func (o *SwitchCreateRequest) GetName() string { 28224 return o.Name 28225 } 28226 28227 // SetName sets value to Name 28228 func (o *SwitchCreateRequest) SetName(v string) { 28229 o.Name = v 28230 } 28231 28232 // GetNetworkMaskLen returns value of NetworkMaskLen 28233 func (o *SwitchCreateRequest) GetNetworkMaskLen() int { 28234 return o.NetworkMaskLen 28235 } 28236 28237 // SetNetworkMaskLen sets value to NetworkMaskLen 28238 func (o *SwitchCreateRequest) SetNetworkMaskLen(v int) { 28239 o.NetworkMaskLen = v 28240 } 28241 28242 // GetDefaultRoute returns value of DefaultRoute 28243 func (o *SwitchCreateRequest) GetDefaultRoute() string { 28244 return o.DefaultRoute 28245 } 28246 28247 // SetDefaultRoute sets value to DefaultRoute 28248 func (o *SwitchCreateRequest) SetDefaultRoute(v string) { 28249 o.DefaultRoute = v 28250 } 28251 28252 // GetDescription returns value of Description 28253 func (o *SwitchCreateRequest) GetDescription() string { 28254 return o.Description 28255 } 28256 28257 // SetDescription sets value to Description 28258 func (o *SwitchCreateRequest) SetDescription(v string) { 28259 o.Description = v 28260 } 28261 28262 // GetTags returns value of Tags 28263 func (o *SwitchCreateRequest) GetTags() types.Tags { 28264 return o.Tags 28265 } 28266 28267 // SetTags sets value to Tags 28268 func (o *SwitchCreateRequest) SetTags(v types.Tags) { 28269 o.Tags = v 28270 } 28271 28272 // HasTag 指定のタグが存在する場合trueを返す 28273 func (o *SwitchCreateRequest) HasTag(tag string) bool { 28274 return accessor.HasTag(o, tag) 28275 } 28276 28277 // AppendTag 指定のタグを追加 28278 func (o *SwitchCreateRequest) AppendTag(tag string) { 28279 accessor.AppendTag(o, tag) 28280 } 28281 28282 // RemoveTag 指定のタグを削除 28283 func (o *SwitchCreateRequest) RemoveTag(tag string) { 28284 accessor.RemoveTag(o, tag) 28285 } 28286 28287 // ClearTags タグを全クリア 28288 func (o *SwitchCreateRequest) ClearTags() { 28289 accessor.ClearTags(o) 28290 } 28291 28292 // GetIconID returns value of IconID 28293 func (o *SwitchCreateRequest) GetIconID() types.ID { 28294 return o.IconID 28295 } 28296 28297 // SetIconID sets value to IconID 28298 func (o *SwitchCreateRequest) SetIconID(v types.ID) { 28299 o.IconID = v 28300 } 28301 28302 /************************************************* 28303 * SwitchUpdateRequest 28304 *************************************************/ 28305 28306 // SwitchUpdateRequest represents API parameter/response structure 28307 type SwitchUpdateRequest struct { 28308 Name string 28309 NetworkMaskLen int `mapconv:"UserSubnet.NetworkMaskLen"` 28310 DefaultRoute string `mapconv:"UserSubnet.DefaultRoute"` 28311 Description string 28312 Tags types.Tags 28313 IconID types.ID `mapconv:"Icon.ID"` 28314 } 28315 28316 // setDefaults implements iaas.argumentDefaulter 28317 func (o *SwitchUpdateRequest) setDefaults() interface{} { 28318 return &struct { 28319 Name string 28320 NetworkMaskLen int `mapconv:"UserSubnet.NetworkMaskLen"` 28321 DefaultRoute string `mapconv:"UserSubnet.DefaultRoute"` 28322 Description string 28323 Tags types.Tags 28324 IconID types.ID `mapconv:"Icon.ID"` 28325 }{ 28326 Name: o.GetName(), 28327 NetworkMaskLen: o.GetNetworkMaskLen(), 28328 DefaultRoute: o.GetDefaultRoute(), 28329 Description: o.GetDescription(), 28330 Tags: o.GetTags(), 28331 IconID: o.GetIconID(), 28332 } 28333 } 28334 28335 // GetName returns value of Name 28336 func (o *SwitchUpdateRequest) GetName() string { 28337 return o.Name 28338 } 28339 28340 // SetName sets value to Name 28341 func (o *SwitchUpdateRequest) SetName(v string) { 28342 o.Name = v 28343 } 28344 28345 // GetNetworkMaskLen returns value of NetworkMaskLen 28346 func (o *SwitchUpdateRequest) GetNetworkMaskLen() int { 28347 return o.NetworkMaskLen 28348 } 28349 28350 // SetNetworkMaskLen sets value to NetworkMaskLen 28351 func (o *SwitchUpdateRequest) SetNetworkMaskLen(v int) { 28352 o.NetworkMaskLen = v 28353 } 28354 28355 // GetDefaultRoute returns value of DefaultRoute 28356 func (o *SwitchUpdateRequest) GetDefaultRoute() string { 28357 return o.DefaultRoute 28358 } 28359 28360 // SetDefaultRoute sets value to DefaultRoute 28361 func (o *SwitchUpdateRequest) SetDefaultRoute(v string) { 28362 o.DefaultRoute = v 28363 } 28364 28365 // GetDescription returns value of Description 28366 func (o *SwitchUpdateRequest) GetDescription() string { 28367 return o.Description 28368 } 28369 28370 // SetDescription sets value to Description 28371 func (o *SwitchUpdateRequest) SetDescription(v string) { 28372 o.Description = v 28373 } 28374 28375 // GetTags returns value of Tags 28376 func (o *SwitchUpdateRequest) GetTags() types.Tags { 28377 return o.Tags 28378 } 28379 28380 // SetTags sets value to Tags 28381 func (o *SwitchUpdateRequest) SetTags(v types.Tags) { 28382 o.Tags = v 28383 } 28384 28385 // HasTag 指定のタグが存在する場合trueを返す 28386 func (o *SwitchUpdateRequest) HasTag(tag string) bool { 28387 return accessor.HasTag(o, tag) 28388 } 28389 28390 // AppendTag 指定のタグを追加 28391 func (o *SwitchUpdateRequest) AppendTag(tag string) { 28392 accessor.AppendTag(o, tag) 28393 } 28394 28395 // RemoveTag 指定のタグを削除 28396 func (o *SwitchUpdateRequest) RemoveTag(tag string) { 28397 accessor.RemoveTag(o, tag) 28398 } 28399 28400 // ClearTags タグを全クリア 28401 func (o *SwitchUpdateRequest) ClearTags() { 28402 accessor.ClearTags(o) 28403 } 28404 28405 // GetIconID returns value of IconID 28406 func (o *SwitchUpdateRequest) GetIconID() types.ID { 28407 return o.IconID 28408 } 28409 28410 // SetIconID sets value to IconID 28411 func (o *SwitchUpdateRequest) SetIconID(v types.ID) { 28412 o.IconID = v 28413 } 28414 28415 /************************************************* 28416 * VPCRouter 28417 *************************************************/ 28418 28419 // VPCRouter represents API parameter/response structure 28420 type VPCRouter struct { 28421 ID types.ID 28422 Name string 28423 Description string 28424 Tags types.Tags 28425 Availability types.EAvailability 28426 Class string 28427 IconID types.ID `mapconv:"Icon.ID"` 28428 CreatedAt time.Time 28429 PlanID types.ID `mapconv:"Remark.Plan.ID/Plan.ID"` 28430 Version int `mapconv:"Remark.Router.VPCRouterVersion"` 28431 Settings *VPCRouterSetting `mapconv:",omitempty,recursive"` 28432 SettingsHash string `json:",omitempty" mapconv:",omitempty"` 28433 InstanceHostName string `mapconv:"Instance.Host.Name"` 28434 InstanceHostInfoURL string `mapconv:"Instance.Host.InfoURL"` 28435 InstanceStatus types.EServerInstanceStatus `mapconv:"Instance.Status"` 28436 InstanceStatusChangedAt time.Time `mapconv:"Instance.StatusChangedAt"` 28437 Interfaces []*VPCRouterInterface `json:",omitempty" mapconv:"[]Interfaces,recursive,omitempty"` 28438 ZoneID types.ID `mapconv:"Remark.Zone.ID"` 28439 } 28440 28441 // setDefaults implements iaas.argumentDefaulter 28442 func (o *VPCRouter) setDefaults() interface{} { 28443 return &struct { 28444 ID types.ID 28445 Name string 28446 Description string 28447 Tags types.Tags 28448 Availability types.EAvailability 28449 Class string 28450 IconID types.ID `mapconv:"Icon.ID"` 28451 CreatedAt time.Time 28452 PlanID types.ID `mapconv:"Remark.Plan.ID/Plan.ID"` 28453 Version int `mapconv:"Remark.Router.VPCRouterVersion"` 28454 Settings *VPCRouterSetting `mapconv:",omitempty,recursive"` 28455 SettingsHash string `json:",omitempty" mapconv:",omitempty"` 28456 InstanceHostName string `mapconv:"Instance.Host.Name"` 28457 InstanceHostInfoURL string `mapconv:"Instance.Host.InfoURL"` 28458 InstanceStatus types.EServerInstanceStatus `mapconv:"Instance.Status"` 28459 InstanceStatusChangedAt time.Time `mapconv:"Instance.StatusChangedAt"` 28460 Interfaces []*VPCRouterInterface `json:",omitempty" mapconv:"[]Interfaces,recursive,omitempty"` 28461 ZoneID types.ID `mapconv:"Remark.Zone.ID"` 28462 }{ 28463 ID: o.GetID(), 28464 Name: o.GetName(), 28465 Description: o.GetDescription(), 28466 Tags: o.GetTags(), 28467 Availability: o.GetAvailability(), 28468 Class: o.GetClass(), 28469 IconID: o.GetIconID(), 28470 CreatedAt: o.GetCreatedAt(), 28471 PlanID: o.GetPlanID(), 28472 Version: o.GetVersion(), 28473 Settings: o.GetSettings(), 28474 SettingsHash: o.GetSettingsHash(), 28475 InstanceHostName: o.GetInstanceHostName(), 28476 InstanceHostInfoURL: o.GetInstanceHostInfoURL(), 28477 InstanceStatus: o.GetInstanceStatus(), 28478 InstanceStatusChangedAt: o.GetInstanceStatusChangedAt(), 28479 Interfaces: o.GetInterfaces(), 28480 ZoneID: o.GetZoneID(), 28481 } 28482 } 28483 28484 // GetID returns value of ID 28485 func (o *VPCRouter) GetID() types.ID { 28486 return o.ID 28487 } 28488 28489 // SetID sets value to ID 28490 func (o *VPCRouter) SetID(v types.ID) { 28491 o.ID = v 28492 } 28493 28494 // SetStringID . 28495 func (o *VPCRouter) SetStringID(id string) { 28496 accessor.SetStringID(o, id) 28497 } 28498 28499 // GetStringID . 28500 func (o *VPCRouter) GetStringID() string { 28501 return accessor.GetStringID(o) 28502 } 28503 28504 // SetInt64ID . 28505 func (o *VPCRouter) SetInt64ID(id int64) { 28506 accessor.SetInt64ID(o, id) 28507 } 28508 28509 // GetInt64ID . 28510 func (o *VPCRouter) GetInt64ID() int64 { 28511 return accessor.GetInt64ID(o) 28512 } 28513 28514 // GetName returns value of Name 28515 func (o *VPCRouter) GetName() string { 28516 return o.Name 28517 } 28518 28519 // SetName sets value to Name 28520 func (o *VPCRouter) SetName(v string) { 28521 o.Name = v 28522 } 28523 28524 // GetDescription returns value of Description 28525 func (o *VPCRouter) GetDescription() string { 28526 return o.Description 28527 } 28528 28529 // SetDescription sets value to Description 28530 func (o *VPCRouter) SetDescription(v string) { 28531 o.Description = v 28532 } 28533 28534 // GetTags returns value of Tags 28535 func (o *VPCRouter) GetTags() types.Tags { 28536 return o.Tags 28537 } 28538 28539 // SetTags sets value to Tags 28540 func (o *VPCRouter) SetTags(v types.Tags) { 28541 o.Tags = v 28542 } 28543 28544 // HasTag 指定のタグが存在する場合trueを返す 28545 func (o *VPCRouter) HasTag(tag string) bool { 28546 return accessor.HasTag(o, tag) 28547 } 28548 28549 // AppendTag 指定のタグを追加 28550 func (o *VPCRouter) AppendTag(tag string) { 28551 accessor.AppendTag(o, tag) 28552 } 28553 28554 // RemoveTag 指定のタグを削除 28555 func (o *VPCRouter) RemoveTag(tag string) { 28556 accessor.RemoveTag(o, tag) 28557 } 28558 28559 // ClearTags タグを全クリア 28560 func (o *VPCRouter) ClearTags() { 28561 accessor.ClearTags(o) 28562 } 28563 28564 // GetAvailability returns value of Availability 28565 func (o *VPCRouter) GetAvailability() types.EAvailability { 28566 return o.Availability 28567 } 28568 28569 // SetAvailability sets value to Availability 28570 func (o *VPCRouter) SetAvailability(v types.EAvailability) { 28571 o.Availability = v 28572 } 28573 28574 // GetClass returns value of Class 28575 func (o *VPCRouter) GetClass() string { 28576 return o.Class 28577 } 28578 28579 // SetClass sets value to Class 28580 func (o *VPCRouter) SetClass(v string) { 28581 o.Class = v 28582 } 28583 28584 // GetIconID returns value of IconID 28585 func (o *VPCRouter) GetIconID() types.ID { 28586 return o.IconID 28587 } 28588 28589 // SetIconID sets value to IconID 28590 func (o *VPCRouter) SetIconID(v types.ID) { 28591 o.IconID = v 28592 } 28593 28594 // GetCreatedAt returns value of CreatedAt 28595 func (o *VPCRouter) GetCreatedAt() time.Time { 28596 return o.CreatedAt 28597 } 28598 28599 // SetCreatedAt sets value to CreatedAt 28600 func (o *VPCRouter) SetCreatedAt(v time.Time) { 28601 o.CreatedAt = v 28602 } 28603 28604 // GetPlanID returns value of PlanID 28605 func (o *VPCRouter) GetPlanID() types.ID { 28606 return o.PlanID 28607 } 28608 28609 // SetPlanID sets value to PlanID 28610 func (o *VPCRouter) SetPlanID(v types.ID) { 28611 o.PlanID = v 28612 } 28613 28614 // GetVersion returns value of Version 28615 func (o *VPCRouter) GetVersion() int { 28616 if o.Version == 0 { 28617 return 2 28618 } 28619 return o.Version 28620 } 28621 28622 // SetVersion sets value to Version 28623 func (o *VPCRouter) SetVersion(v int) { 28624 o.Version = v 28625 } 28626 28627 // GetSettings returns value of Settings 28628 func (o *VPCRouter) GetSettings() *VPCRouterSetting { 28629 return o.Settings 28630 } 28631 28632 // SetSettings sets value to Settings 28633 func (o *VPCRouter) SetSettings(v *VPCRouterSetting) { 28634 o.Settings = v 28635 } 28636 28637 // GetSettingsHash returns value of SettingsHash 28638 func (o *VPCRouter) GetSettingsHash() string { 28639 return o.SettingsHash 28640 } 28641 28642 // SetSettingsHash sets value to SettingsHash 28643 func (o *VPCRouter) SetSettingsHash(v string) { 28644 o.SettingsHash = v 28645 } 28646 28647 // GetInstanceHostName returns value of InstanceHostName 28648 func (o *VPCRouter) GetInstanceHostName() string { 28649 return o.InstanceHostName 28650 } 28651 28652 // SetInstanceHostName sets value to InstanceHostName 28653 func (o *VPCRouter) SetInstanceHostName(v string) { 28654 o.InstanceHostName = v 28655 } 28656 28657 // GetInstanceHostInfoURL returns value of InstanceHostInfoURL 28658 func (o *VPCRouter) GetInstanceHostInfoURL() string { 28659 return o.InstanceHostInfoURL 28660 } 28661 28662 // SetInstanceHostInfoURL sets value to InstanceHostInfoURL 28663 func (o *VPCRouter) SetInstanceHostInfoURL(v string) { 28664 o.InstanceHostInfoURL = v 28665 } 28666 28667 // GetInstanceStatus returns value of InstanceStatus 28668 func (o *VPCRouter) GetInstanceStatus() types.EServerInstanceStatus { 28669 return o.InstanceStatus 28670 } 28671 28672 // SetInstanceStatus sets value to InstanceStatus 28673 func (o *VPCRouter) SetInstanceStatus(v types.EServerInstanceStatus) { 28674 o.InstanceStatus = v 28675 } 28676 28677 // GetInstanceStatusChangedAt returns value of InstanceStatusChangedAt 28678 func (o *VPCRouter) GetInstanceStatusChangedAt() time.Time { 28679 return o.InstanceStatusChangedAt 28680 } 28681 28682 // SetInstanceStatusChangedAt sets value to InstanceStatusChangedAt 28683 func (o *VPCRouter) SetInstanceStatusChangedAt(v time.Time) { 28684 o.InstanceStatusChangedAt = v 28685 } 28686 28687 // GetInterfaces returns value of Interfaces 28688 func (o *VPCRouter) GetInterfaces() []*VPCRouterInterface { 28689 return o.Interfaces 28690 } 28691 28692 // SetInterfaces sets value to Interfaces 28693 func (o *VPCRouter) SetInterfaces(v []*VPCRouterInterface) { 28694 o.Interfaces = v 28695 } 28696 28697 // GetZoneID returns value of ZoneID 28698 func (o *VPCRouter) GetZoneID() types.ID { 28699 return o.ZoneID 28700 } 28701 28702 // SetZoneID sets value to ZoneID 28703 func (o *VPCRouter) SetZoneID(v types.ID) { 28704 o.ZoneID = v 28705 } 28706 28707 /************************************************* 28708 * VPCRouterSetting 28709 *************************************************/ 28710 28711 // VPCRouterSetting represents API parameter/response structure 28712 type VPCRouterSetting struct { 28713 VRID int `json:",omitempty" mapconv:"Router.VRID"` 28714 InternetConnectionEnabled types.StringFlag `mapconv:"Router.InternetConnection.Enabled"` 28715 Interfaces []*VPCRouterInterfaceSetting `mapconv:"Router.[]Interfaces,omitempty,recursive"` 28716 StaticNAT []*VPCRouterStaticNAT `mapconv:"Router.StaticNAT.[]Config,omitempty,recursive"` 28717 PortForwarding []*VPCRouterPortForwarding `mapconv:"Router.PortForwarding.[]Config,omitempty,recursive"` 28718 Firewall []*VPCRouterFirewall `mapconv:"Router.Firewall.[]Config,omitempty,recursive"` 28719 DHCPServer []*VPCRouterDHCPServer `mapconv:"Router.DHCPServer.[]Config,omitempty,recursive"` 28720 DHCPStaticMapping []*VPCRouterDHCPStaticMapping `mapconv:"Router.DHCPStaticMapping.[]Config,omitempty,recursive"` 28721 DNSForwarding *VPCRouterDNSForwarding `mapconv:"Router.DNSForwarding,omitempty,recursive"` 28722 PPTPServer *VPCRouterPPTPServer `mapconv:"Router.PPTPServer.Config,omitempty,recursive"` 28723 PPTPServerEnabled types.StringFlag `mapconv:"Router.PPTPServer.Enabled"` 28724 L2TPIPsecServer *VPCRouterL2TPIPsecServer `mapconv:"Router.L2TPIPsecServer.Config,omitempty,recursive"` 28725 L2TPIPsecServerEnabled types.StringFlag `mapconv:"Router.L2TPIPsecServer.Enabled"` 28726 WireGuard *VPCRouterWireGuard `mapconv:"Router.WireGuard.Config,omitempty,recursive"` 28727 WireGuardEnabled types.StringFlag `mapconv:"Router.WireGuard.Enabled"` 28728 RemoteAccessUsers []*VPCRouterRemoteAccessUser `mapconv:"Router.RemoteAccessUsers.[]Config,omitempty,recursive"` 28729 SiteToSiteIPsecVPN *VPCRouterSiteToSiteIPsecVPN `mapconv:"Router.SiteToSiteIPsecVPN,omitempty,recursive"` 28730 StaticRoute []*VPCRouterStaticRoute `mapconv:"Router.StaticRoutes.[]Config,omitempty,recursive"` 28731 SyslogHost string `mapconv:"Router.SyslogHost"` 28732 ScheduledMaintenance *VPCRouterScheduledMaintenance `mapconv:"Router.ScheduledMaintenance,omitempty,recursive"` 28733 } 28734 28735 // setDefaults implements iaas.argumentDefaulter 28736 func (o *VPCRouterSetting) setDefaults() interface{} { 28737 return &struct { 28738 VRID int `json:",omitempty" mapconv:"Router.VRID"` 28739 InternetConnectionEnabled types.StringFlag `mapconv:"Router.InternetConnection.Enabled"` 28740 Interfaces []*VPCRouterInterfaceSetting `mapconv:"Router.[]Interfaces,omitempty,recursive"` 28741 StaticNAT []*VPCRouterStaticNAT `mapconv:"Router.StaticNAT.[]Config,omitempty,recursive"` 28742 PortForwarding []*VPCRouterPortForwarding `mapconv:"Router.PortForwarding.[]Config,omitempty,recursive"` 28743 Firewall []*VPCRouterFirewall `mapconv:"Router.Firewall.[]Config,omitempty,recursive"` 28744 DHCPServer []*VPCRouterDHCPServer `mapconv:"Router.DHCPServer.[]Config,omitempty,recursive"` 28745 DHCPStaticMapping []*VPCRouterDHCPStaticMapping `mapconv:"Router.DHCPStaticMapping.[]Config,omitempty,recursive"` 28746 DNSForwarding *VPCRouterDNSForwarding `mapconv:"Router.DNSForwarding,omitempty,recursive"` 28747 PPTPServer *VPCRouterPPTPServer `mapconv:"Router.PPTPServer.Config,omitempty,recursive"` 28748 PPTPServerEnabled types.StringFlag `mapconv:"Router.PPTPServer.Enabled"` 28749 L2TPIPsecServer *VPCRouterL2TPIPsecServer `mapconv:"Router.L2TPIPsecServer.Config,omitempty,recursive"` 28750 L2TPIPsecServerEnabled types.StringFlag `mapconv:"Router.L2TPIPsecServer.Enabled"` 28751 WireGuard *VPCRouterWireGuard `mapconv:"Router.WireGuard.Config,omitempty,recursive"` 28752 WireGuardEnabled types.StringFlag `mapconv:"Router.WireGuard.Enabled"` 28753 RemoteAccessUsers []*VPCRouterRemoteAccessUser `mapconv:"Router.RemoteAccessUsers.[]Config,omitempty,recursive"` 28754 SiteToSiteIPsecVPN *VPCRouterSiteToSiteIPsecVPN `mapconv:"Router.SiteToSiteIPsecVPN,omitempty,recursive"` 28755 StaticRoute []*VPCRouterStaticRoute `mapconv:"Router.StaticRoutes.[]Config,omitempty,recursive"` 28756 SyslogHost string `mapconv:"Router.SyslogHost"` 28757 ScheduledMaintenance *VPCRouterScheduledMaintenance `mapconv:"Router.ScheduledMaintenance,omitempty,recursive"` 28758 }{ 28759 VRID: o.GetVRID(), 28760 InternetConnectionEnabled: o.GetInternetConnectionEnabled(), 28761 Interfaces: o.GetInterfaces(), 28762 StaticNAT: o.GetStaticNAT(), 28763 PortForwarding: o.GetPortForwarding(), 28764 Firewall: o.GetFirewall(), 28765 DHCPServer: o.GetDHCPServer(), 28766 DHCPStaticMapping: o.GetDHCPStaticMapping(), 28767 DNSForwarding: o.GetDNSForwarding(), 28768 PPTPServer: o.GetPPTPServer(), 28769 PPTPServerEnabled: o.GetPPTPServerEnabled(), 28770 L2TPIPsecServer: o.GetL2TPIPsecServer(), 28771 L2TPIPsecServerEnabled: o.GetL2TPIPsecServerEnabled(), 28772 WireGuard: o.GetWireGuard(), 28773 WireGuardEnabled: o.GetWireGuardEnabled(), 28774 RemoteAccessUsers: o.GetRemoteAccessUsers(), 28775 SiteToSiteIPsecVPN: o.GetSiteToSiteIPsecVPN(), 28776 StaticRoute: o.GetStaticRoute(), 28777 SyslogHost: o.GetSyslogHost(), 28778 ScheduledMaintenance: o.GetScheduledMaintenance(), 28779 } 28780 } 28781 28782 // GetVRID returns value of VRID 28783 func (o *VPCRouterSetting) GetVRID() int { 28784 return o.VRID 28785 } 28786 28787 // SetVRID sets value to VRID 28788 func (o *VPCRouterSetting) SetVRID(v int) { 28789 o.VRID = v 28790 } 28791 28792 // GetInternetConnectionEnabled returns value of InternetConnectionEnabled 28793 func (o *VPCRouterSetting) GetInternetConnectionEnabled() types.StringFlag { 28794 return o.InternetConnectionEnabled 28795 } 28796 28797 // SetInternetConnectionEnabled sets value to InternetConnectionEnabled 28798 func (o *VPCRouterSetting) SetInternetConnectionEnabled(v types.StringFlag) { 28799 o.InternetConnectionEnabled = v 28800 } 28801 28802 // GetInterfaces returns value of Interfaces 28803 func (o *VPCRouterSetting) GetInterfaces() []*VPCRouterInterfaceSetting { 28804 return o.Interfaces 28805 } 28806 28807 // SetInterfaces sets value to Interfaces 28808 func (o *VPCRouterSetting) SetInterfaces(v []*VPCRouterInterfaceSetting) { 28809 o.Interfaces = v 28810 } 28811 28812 // GetStaticNAT returns value of StaticNAT 28813 func (o *VPCRouterSetting) GetStaticNAT() []*VPCRouterStaticNAT { 28814 return o.StaticNAT 28815 } 28816 28817 // SetStaticNAT sets value to StaticNAT 28818 func (o *VPCRouterSetting) SetStaticNAT(v []*VPCRouterStaticNAT) { 28819 o.StaticNAT = v 28820 } 28821 28822 // GetPortForwarding returns value of PortForwarding 28823 func (o *VPCRouterSetting) GetPortForwarding() []*VPCRouterPortForwarding { 28824 return o.PortForwarding 28825 } 28826 28827 // SetPortForwarding sets value to PortForwarding 28828 func (o *VPCRouterSetting) SetPortForwarding(v []*VPCRouterPortForwarding) { 28829 o.PortForwarding = v 28830 } 28831 28832 // GetFirewall returns value of Firewall 28833 func (o *VPCRouterSetting) GetFirewall() []*VPCRouterFirewall { 28834 return o.Firewall 28835 } 28836 28837 // SetFirewall sets value to Firewall 28838 func (o *VPCRouterSetting) SetFirewall(v []*VPCRouterFirewall) { 28839 o.Firewall = v 28840 } 28841 28842 // GetDHCPServer returns value of DHCPServer 28843 func (o *VPCRouterSetting) GetDHCPServer() []*VPCRouterDHCPServer { 28844 return o.DHCPServer 28845 } 28846 28847 // SetDHCPServer sets value to DHCPServer 28848 func (o *VPCRouterSetting) SetDHCPServer(v []*VPCRouterDHCPServer) { 28849 o.DHCPServer = v 28850 } 28851 28852 // GetDHCPStaticMapping returns value of DHCPStaticMapping 28853 func (o *VPCRouterSetting) GetDHCPStaticMapping() []*VPCRouterDHCPStaticMapping { 28854 return o.DHCPStaticMapping 28855 } 28856 28857 // SetDHCPStaticMapping sets value to DHCPStaticMapping 28858 func (o *VPCRouterSetting) SetDHCPStaticMapping(v []*VPCRouterDHCPStaticMapping) { 28859 o.DHCPStaticMapping = v 28860 } 28861 28862 // GetDNSForwarding returns value of DNSForwarding 28863 func (o *VPCRouterSetting) GetDNSForwarding() *VPCRouterDNSForwarding { 28864 return o.DNSForwarding 28865 } 28866 28867 // SetDNSForwarding sets value to DNSForwarding 28868 func (o *VPCRouterSetting) SetDNSForwarding(v *VPCRouterDNSForwarding) { 28869 o.DNSForwarding = v 28870 } 28871 28872 // GetPPTPServer returns value of PPTPServer 28873 func (o *VPCRouterSetting) GetPPTPServer() *VPCRouterPPTPServer { 28874 return o.PPTPServer 28875 } 28876 28877 // SetPPTPServer sets value to PPTPServer 28878 func (o *VPCRouterSetting) SetPPTPServer(v *VPCRouterPPTPServer) { 28879 o.PPTPServer = v 28880 } 28881 28882 // GetPPTPServerEnabled returns value of PPTPServerEnabled 28883 func (o *VPCRouterSetting) GetPPTPServerEnabled() types.StringFlag { 28884 return o.PPTPServerEnabled 28885 } 28886 28887 // SetPPTPServerEnabled sets value to PPTPServerEnabled 28888 func (o *VPCRouterSetting) SetPPTPServerEnabled(v types.StringFlag) { 28889 o.PPTPServerEnabled = v 28890 } 28891 28892 // GetL2TPIPsecServer returns value of L2TPIPsecServer 28893 func (o *VPCRouterSetting) GetL2TPIPsecServer() *VPCRouterL2TPIPsecServer { 28894 return o.L2TPIPsecServer 28895 } 28896 28897 // SetL2TPIPsecServer sets value to L2TPIPsecServer 28898 func (o *VPCRouterSetting) SetL2TPIPsecServer(v *VPCRouterL2TPIPsecServer) { 28899 o.L2TPIPsecServer = v 28900 } 28901 28902 // GetL2TPIPsecServerEnabled returns value of L2TPIPsecServerEnabled 28903 func (o *VPCRouterSetting) GetL2TPIPsecServerEnabled() types.StringFlag { 28904 return o.L2TPIPsecServerEnabled 28905 } 28906 28907 // SetL2TPIPsecServerEnabled sets value to L2TPIPsecServerEnabled 28908 func (o *VPCRouterSetting) SetL2TPIPsecServerEnabled(v types.StringFlag) { 28909 o.L2TPIPsecServerEnabled = v 28910 } 28911 28912 // GetWireGuard returns value of WireGuard 28913 func (o *VPCRouterSetting) GetWireGuard() *VPCRouterWireGuard { 28914 return o.WireGuard 28915 } 28916 28917 // SetWireGuard sets value to WireGuard 28918 func (o *VPCRouterSetting) SetWireGuard(v *VPCRouterWireGuard) { 28919 o.WireGuard = v 28920 } 28921 28922 // GetWireGuardEnabled returns value of WireGuardEnabled 28923 func (o *VPCRouterSetting) GetWireGuardEnabled() types.StringFlag { 28924 return o.WireGuardEnabled 28925 } 28926 28927 // SetWireGuardEnabled sets value to WireGuardEnabled 28928 func (o *VPCRouterSetting) SetWireGuardEnabled(v types.StringFlag) { 28929 o.WireGuardEnabled = v 28930 } 28931 28932 // GetRemoteAccessUsers returns value of RemoteAccessUsers 28933 func (o *VPCRouterSetting) GetRemoteAccessUsers() []*VPCRouterRemoteAccessUser { 28934 return o.RemoteAccessUsers 28935 } 28936 28937 // SetRemoteAccessUsers sets value to RemoteAccessUsers 28938 func (o *VPCRouterSetting) SetRemoteAccessUsers(v []*VPCRouterRemoteAccessUser) { 28939 o.RemoteAccessUsers = v 28940 } 28941 28942 // GetSiteToSiteIPsecVPN returns value of SiteToSiteIPsecVPN 28943 func (o *VPCRouterSetting) GetSiteToSiteIPsecVPN() *VPCRouterSiteToSiteIPsecVPN { 28944 return o.SiteToSiteIPsecVPN 28945 } 28946 28947 // SetSiteToSiteIPsecVPN sets value to SiteToSiteIPsecVPN 28948 func (o *VPCRouterSetting) SetSiteToSiteIPsecVPN(v *VPCRouterSiteToSiteIPsecVPN) { 28949 o.SiteToSiteIPsecVPN = v 28950 } 28951 28952 // GetStaticRoute returns value of StaticRoute 28953 func (o *VPCRouterSetting) GetStaticRoute() []*VPCRouterStaticRoute { 28954 return o.StaticRoute 28955 } 28956 28957 // SetStaticRoute sets value to StaticRoute 28958 func (o *VPCRouterSetting) SetStaticRoute(v []*VPCRouterStaticRoute) { 28959 o.StaticRoute = v 28960 } 28961 28962 // GetSyslogHost returns value of SyslogHost 28963 func (o *VPCRouterSetting) GetSyslogHost() string { 28964 return o.SyslogHost 28965 } 28966 28967 // SetSyslogHost sets value to SyslogHost 28968 func (o *VPCRouterSetting) SetSyslogHost(v string) { 28969 o.SyslogHost = v 28970 } 28971 28972 // GetScheduledMaintenance returns value of ScheduledMaintenance 28973 func (o *VPCRouterSetting) GetScheduledMaintenance() *VPCRouterScheduledMaintenance { 28974 return o.ScheduledMaintenance 28975 } 28976 28977 // SetScheduledMaintenance sets value to ScheduledMaintenance 28978 func (o *VPCRouterSetting) SetScheduledMaintenance(v *VPCRouterScheduledMaintenance) { 28979 o.ScheduledMaintenance = v 28980 } 28981 28982 /************************************************* 28983 * VPCRouterInterfaceSetting 28984 *************************************************/ 28985 28986 // VPCRouterInterfaceSetting represents API parameter/response structure 28987 type VPCRouterInterfaceSetting struct { 28988 IPAddress []string 28989 VirtualIPAddress string 28990 IPAliases []string 28991 NetworkMaskLen int 28992 Index int 28993 } 28994 28995 // setDefaults implements iaas.argumentDefaulter 28996 func (o *VPCRouterInterfaceSetting) setDefaults() interface{} { 28997 return &struct { 28998 IPAddress []string 28999 VirtualIPAddress string 29000 IPAliases []string 29001 NetworkMaskLen int 29002 Index int 29003 }{ 29004 IPAddress: o.GetIPAddress(), 29005 VirtualIPAddress: o.GetVirtualIPAddress(), 29006 IPAliases: o.GetIPAliases(), 29007 NetworkMaskLen: o.GetNetworkMaskLen(), 29008 Index: o.GetIndex(), 29009 } 29010 } 29011 29012 // GetIPAddress returns value of IPAddress 29013 func (o *VPCRouterInterfaceSetting) GetIPAddress() []string { 29014 return o.IPAddress 29015 } 29016 29017 // SetIPAddress sets value to IPAddress 29018 func (o *VPCRouterInterfaceSetting) SetIPAddress(v []string) { 29019 o.IPAddress = v 29020 } 29021 29022 // GetVirtualIPAddress returns value of VirtualIPAddress 29023 func (o *VPCRouterInterfaceSetting) GetVirtualIPAddress() string { 29024 return o.VirtualIPAddress 29025 } 29026 29027 // SetVirtualIPAddress sets value to VirtualIPAddress 29028 func (o *VPCRouterInterfaceSetting) SetVirtualIPAddress(v string) { 29029 o.VirtualIPAddress = v 29030 } 29031 29032 // GetIPAliases returns value of IPAliases 29033 func (o *VPCRouterInterfaceSetting) GetIPAliases() []string { 29034 return o.IPAliases 29035 } 29036 29037 // SetIPAliases sets value to IPAliases 29038 func (o *VPCRouterInterfaceSetting) SetIPAliases(v []string) { 29039 o.IPAliases = v 29040 } 29041 29042 // GetNetworkMaskLen returns value of NetworkMaskLen 29043 func (o *VPCRouterInterfaceSetting) GetNetworkMaskLen() int { 29044 return o.NetworkMaskLen 29045 } 29046 29047 // SetNetworkMaskLen sets value to NetworkMaskLen 29048 func (o *VPCRouterInterfaceSetting) SetNetworkMaskLen(v int) { 29049 o.NetworkMaskLen = v 29050 } 29051 29052 // GetIndex returns value of Index 29053 func (o *VPCRouterInterfaceSetting) GetIndex() int { 29054 return o.Index 29055 } 29056 29057 // SetIndex sets value to Index 29058 func (o *VPCRouterInterfaceSetting) SetIndex(v int) { 29059 o.Index = v 29060 } 29061 29062 /************************************************* 29063 * VPCRouterStaticNAT 29064 *************************************************/ 29065 29066 // VPCRouterStaticNAT represents API parameter/response structure 29067 type VPCRouterStaticNAT struct { 29068 GlobalAddress string `mapconv:"GlobalAddress"` 29069 PrivateAddress string `mapconv:"PrivateAddress"` 29070 Description string 29071 } 29072 29073 // setDefaults implements iaas.argumentDefaulter 29074 func (o *VPCRouterStaticNAT) setDefaults() interface{} { 29075 return &struct { 29076 GlobalAddress string `mapconv:"GlobalAddress"` 29077 PrivateAddress string `mapconv:"PrivateAddress"` 29078 Description string 29079 }{ 29080 GlobalAddress: o.GetGlobalAddress(), 29081 PrivateAddress: o.GetPrivateAddress(), 29082 Description: o.GetDescription(), 29083 } 29084 } 29085 29086 // GetGlobalAddress returns value of GlobalAddress 29087 func (o *VPCRouterStaticNAT) GetGlobalAddress() string { 29088 return o.GlobalAddress 29089 } 29090 29091 // SetGlobalAddress sets value to GlobalAddress 29092 func (o *VPCRouterStaticNAT) SetGlobalAddress(v string) { 29093 o.GlobalAddress = v 29094 } 29095 29096 // GetPrivateAddress returns value of PrivateAddress 29097 func (o *VPCRouterStaticNAT) GetPrivateAddress() string { 29098 return o.PrivateAddress 29099 } 29100 29101 // SetPrivateAddress sets value to PrivateAddress 29102 func (o *VPCRouterStaticNAT) SetPrivateAddress(v string) { 29103 o.PrivateAddress = v 29104 } 29105 29106 // GetDescription returns value of Description 29107 func (o *VPCRouterStaticNAT) GetDescription() string { 29108 return o.Description 29109 } 29110 29111 // SetDescription sets value to Description 29112 func (o *VPCRouterStaticNAT) SetDescription(v string) { 29113 o.Description = v 29114 } 29115 29116 /************************************************* 29117 * VPCRouterPortForwarding 29118 *************************************************/ 29119 29120 // VPCRouterPortForwarding represents API parameter/response structure 29121 type VPCRouterPortForwarding struct { 29122 Protocol types.EVPCRouterPortForwardingProtocol 29123 GlobalPort types.StringNumber 29124 PrivateAddress string `mapconv:"PrivateAddress"` 29125 PrivatePort types.StringNumber 29126 Description string 29127 } 29128 29129 // setDefaults implements iaas.argumentDefaulter 29130 func (o *VPCRouterPortForwarding) setDefaults() interface{} { 29131 return &struct { 29132 Protocol types.EVPCRouterPortForwardingProtocol 29133 GlobalPort types.StringNumber 29134 PrivateAddress string `mapconv:"PrivateAddress"` 29135 PrivatePort types.StringNumber 29136 Description string 29137 }{ 29138 Protocol: o.GetProtocol(), 29139 GlobalPort: o.GetGlobalPort(), 29140 PrivateAddress: o.GetPrivateAddress(), 29141 PrivatePort: o.GetPrivatePort(), 29142 Description: o.GetDescription(), 29143 } 29144 } 29145 29146 // GetProtocol returns value of Protocol 29147 func (o *VPCRouterPortForwarding) GetProtocol() types.EVPCRouterPortForwardingProtocol { 29148 return o.Protocol 29149 } 29150 29151 // SetProtocol sets value to Protocol 29152 func (o *VPCRouterPortForwarding) SetProtocol(v types.EVPCRouterPortForwardingProtocol) { 29153 o.Protocol = v 29154 } 29155 29156 // GetGlobalPort returns value of GlobalPort 29157 func (o *VPCRouterPortForwarding) GetGlobalPort() types.StringNumber { 29158 return o.GlobalPort 29159 } 29160 29161 // SetGlobalPort sets value to GlobalPort 29162 func (o *VPCRouterPortForwarding) SetGlobalPort(v types.StringNumber) { 29163 o.GlobalPort = v 29164 } 29165 29166 // GetPrivateAddress returns value of PrivateAddress 29167 func (o *VPCRouterPortForwarding) GetPrivateAddress() string { 29168 return o.PrivateAddress 29169 } 29170 29171 // SetPrivateAddress sets value to PrivateAddress 29172 func (o *VPCRouterPortForwarding) SetPrivateAddress(v string) { 29173 o.PrivateAddress = v 29174 } 29175 29176 // GetPrivatePort returns value of PrivatePort 29177 func (o *VPCRouterPortForwarding) GetPrivatePort() types.StringNumber { 29178 return o.PrivatePort 29179 } 29180 29181 // SetPrivatePort sets value to PrivatePort 29182 func (o *VPCRouterPortForwarding) SetPrivatePort(v types.StringNumber) { 29183 o.PrivatePort = v 29184 } 29185 29186 // GetDescription returns value of Description 29187 func (o *VPCRouterPortForwarding) GetDescription() string { 29188 return o.Description 29189 } 29190 29191 // SetDescription sets value to Description 29192 func (o *VPCRouterPortForwarding) SetDescription(v string) { 29193 o.Description = v 29194 } 29195 29196 /************************************************* 29197 * VPCRouterFirewall 29198 *************************************************/ 29199 29200 // VPCRouterFirewall represents API parameter/response structure 29201 type VPCRouterFirewall struct { 29202 Send []*VPCRouterFirewallRule 29203 Receive []*VPCRouterFirewallRule 29204 Index int 29205 } 29206 29207 // setDefaults implements iaas.argumentDefaulter 29208 func (o *VPCRouterFirewall) setDefaults() interface{} { 29209 return &struct { 29210 Send []*VPCRouterFirewallRule 29211 Receive []*VPCRouterFirewallRule 29212 Index int 29213 }{ 29214 Send: o.GetSend(), 29215 Receive: o.GetReceive(), 29216 Index: o.GetIndex(), 29217 } 29218 } 29219 29220 // GetSend returns value of Send 29221 func (o *VPCRouterFirewall) GetSend() []*VPCRouterFirewallRule { 29222 return o.Send 29223 } 29224 29225 // SetSend sets value to Send 29226 func (o *VPCRouterFirewall) SetSend(v []*VPCRouterFirewallRule) { 29227 o.Send = v 29228 } 29229 29230 // GetReceive returns value of Receive 29231 func (o *VPCRouterFirewall) GetReceive() []*VPCRouterFirewallRule { 29232 return o.Receive 29233 } 29234 29235 // SetReceive sets value to Receive 29236 func (o *VPCRouterFirewall) SetReceive(v []*VPCRouterFirewallRule) { 29237 o.Receive = v 29238 } 29239 29240 // GetIndex returns value of Index 29241 func (o *VPCRouterFirewall) GetIndex() int { 29242 return o.Index 29243 } 29244 29245 // SetIndex sets value to Index 29246 func (o *VPCRouterFirewall) SetIndex(v int) { 29247 o.Index = v 29248 } 29249 29250 /************************************************* 29251 * VPCRouterFirewallRule 29252 *************************************************/ 29253 29254 // VPCRouterFirewallRule represents API parameter/response structure 29255 type VPCRouterFirewallRule struct { 29256 Protocol types.Protocol 29257 SourceNetwork types.VPCFirewallNetwork 29258 SourcePort types.VPCFirewallPort 29259 DestinationNetwork types.VPCFirewallNetwork 29260 DestinationPort types.VPCFirewallPort 29261 Action types.Action 29262 Logging types.StringFlag 29263 Description string 29264 } 29265 29266 // setDefaults implements iaas.argumentDefaulter 29267 func (o *VPCRouterFirewallRule) setDefaults() interface{} { 29268 return &struct { 29269 Protocol types.Protocol 29270 SourceNetwork types.VPCFirewallNetwork 29271 SourcePort types.VPCFirewallPort 29272 DestinationNetwork types.VPCFirewallNetwork 29273 DestinationPort types.VPCFirewallPort 29274 Action types.Action 29275 Logging types.StringFlag 29276 Description string 29277 }{ 29278 Protocol: o.GetProtocol(), 29279 SourceNetwork: o.GetSourceNetwork(), 29280 SourcePort: o.GetSourcePort(), 29281 DestinationNetwork: o.GetDestinationNetwork(), 29282 DestinationPort: o.GetDestinationPort(), 29283 Action: o.GetAction(), 29284 Logging: o.GetLogging(), 29285 Description: o.GetDescription(), 29286 } 29287 } 29288 29289 // GetProtocol returns value of Protocol 29290 func (o *VPCRouterFirewallRule) GetProtocol() types.Protocol { 29291 return o.Protocol 29292 } 29293 29294 // SetProtocol sets value to Protocol 29295 func (o *VPCRouterFirewallRule) SetProtocol(v types.Protocol) { 29296 o.Protocol = v 29297 } 29298 29299 // GetSourceNetwork returns value of SourceNetwork 29300 func (o *VPCRouterFirewallRule) GetSourceNetwork() types.VPCFirewallNetwork { 29301 return o.SourceNetwork 29302 } 29303 29304 // SetSourceNetwork sets value to SourceNetwork 29305 func (o *VPCRouterFirewallRule) SetSourceNetwork(v types.VPCFirewallNetwork) { 29306 o.SourceNetwork = v 29307 } 29308 29309 // GetSourcePort returns value of SourcePort 29310 func (o *VPCRouterFirewallRule) GetSourcePort() types.VPCFirewallPort { 29311 return o.SourcePort 29312 } 29313 29314 // SetSourcePort sets value to SourcePort 29315 func (o *VPCRouterFirewallRule) SetSourcePort(v types.VPCFirewallPort) { 29316 o.SourcePort = v 29317 } 29318 29319 // GetDestinationNetwork returns value of DestinationNetwork 29320 func (o *VPCRouterFirewallRule) GetDestinationNetwork() types.VPCFirewallNetwork { 29321 return o.DestinationNetwork 29322 } 29323 29324 // SetDestinationNetwork sets value to DestinationNetwork 29325 func (o *VPCRouterFirewallRule) SetDestinationNetwork(v types.VPCFirewallNetwork) { 29326 o.DestinationNetwork = v 29327 } 29328 29329 // GetDestinationPort returns value of DestinationPort 29330 func (o *VPCRouterFirewallRule) GetDestinationPort() types.VPCFirewallPort { 29331 return o.DestinationPort 29332 } 29333 29334 // SetDestinationPort sets value to DestinationPort 29335 func (o *VPCRouterFirewallRule) SetDestinationPort(v types.VPCFirewallPort) { 29336 o.DestinationPort = v 29337 } 29338 29339 // GetAction returns value of Action 29340 func (o *VPCRouterFirewallRule) GetAction() types.Action { 29341 return o.Action 29342 } 29343 29344 // SetAction sets value to Action 29345 func (o *VPCRouterFirewallRule) SetAction(v types.Action) { 29346 o.Action = v 29347 } 29348 29349 // GetLogging returns value of Logging 29350 func (o *VPCRouterFirewallRule) GetLogging() types.StringFlag { 29351 return o.Logging 29352 } 29353 29354 // SetLogging sets value to Logging 29355 func (o *VPCRouterFirewallRule) SetLogging(v types.StringFlag) { 29356 o.Logging = v 29357 } 29358 29359 // GetDescription returns value of Description 29360 func (o *VPCRouterFirewallRule) GetDescription() string { 29361 return o.Description 29362 } 29363 29364 // SetDescription sets value to Description 29365 func (o *VPCRouterFirewallRule) SetDescription(v string) { 29366 o.Description = v 29367 } 29368 29369 /************************************************* 29370 * VPCRouterDHCPServer 29371 *************************************************/ 29372 29373 // VPCRouterDHCPServer represents API parameter/response structure 29374 type VPCRouterDHCPServer struct { 29375 Interface string 29376 RangeStart string 29377 RangeStop string 29378 DNSServers []string 29379 } 29380 29381 // setDefaults implements iaas.argumentDefaulter 29382 func (o *VPCRouterDHCPServer) setDefaults() interface{} { 29383 return &struct { 29384 Interface string 29385 RangeStart string 29386 RangeStop string 29387 DNSServers []string 29388 }{ 29389 Interface: o.GetInterface(), 29390 RangeStart: o.GetRangeStart(), 29391 RangeStop: o.GetRangeStop(), 29392 DNSServers: o.GetDNSServers(), 29393 } 29394 } 29395 29396 // GetInterface returns value of Interface 29397 func (o *VPCRouterDHCPServer) GetInterface() string { 29398 return o.Interface 29399 } 29400 29401 // SetInterface sets value to Interface 29402 func (o *VPCRouterDHCPServer) SetInterface(v string) { 29403 o.Interface = v 29404 } 29405 29406 // GetRangeStart returns value of RangeStart 29407 func (o *VPCRouterDHCPServer) GetRangeStart() string { 29408 return o.RangeStart 29409 } 29410 29411 // SetRangeStart sets value to RangeStart 29412 func (o *VPCRouterDHCPServer) SetRangeStart(v string) { 29413 o.RangeStart = v 29414 } 29415 29416 // GetRangeStop returns value of RangeStop 29417 func (o *VPCRouterDHCPServer) GetRangeStop() string { 29418 return o.RangeStop 29419 } 29420 29421 // SetRangeStop sets value to RangeStop 29422 func (o *VPCRouterDHCPServer) SetRangeStop(v string) { 29423 o.RangeStop = v 29424 } 29425 29426 // GetDNSServers returns value of DNSServers 29427 func (o *VPCRouterDHCPServer) GetDNSServers() []string { 29428 return o.DNSServers 29429 } 29430 29431 // SetDNSServers sets value to DNSServers 29432 func (o *VPCRouterDHCPServer) SetDNSServers(v []string) { 29433 o.DNSServers = v 29434 } 29435 29436 /************************************************* 29437 * VPCRouterDHCPStaticMapping 29438 *************************************************/ 29439 29440 // VPCRouterDHCPStaticMapping represents API parameter/response structure 29441 type VPCRouterDHCPStaticMapping struct { 29442 MACAddress string 29443 IPAddress string 29444 } 29445 29446 // setDefaults implements iaas.argumentDefaulter 29447 func (o *VPCRouterDHCPStaticMapping) setDefaults() interface{} { 29448 return &struct { 29449 MACAddress string 29450 IPAddress string 29451 }{ 29452 MACAddress: o.GetMACAddress(), 29453 IPAddress: o.GetIPAddress(), 29454 } 29455 } 29456 29457 // GetMACAddress returns value of MACAddress 29458 func (o *VPCRouterDHCPStaticMapping) GetMACAddress() string { 29459 return o.MACAddress 29460 } 29461 29462 // SetMACAddress sets value to MACAddress 29463 func (o *VPCRouterDHCPStaticMapping) SetMACAddress(v string) { 29464 o.MACAddress = v 29465 } 29466 29467 // GetIPAddress returns value of IPAddress 29468 func (o *VPCRouterDHCPStaticMapping) GetIPAddress() string { 29469 return o.IPAddress 29470 } 29471 29472 // SetIPAddress sets value to IPAddress 29473 func (o *VPCRouterDHCPStaticMapping) SetIPAddress(v string) { 29474 o.IPAddress = v 29475 } 29476 29477 /************************************************* 29478 * VPCRouterDNSForwarding 29479 *************************************************/ 29480 29481 // VPCRouterDNSForwarding represents API parameter/response structure 29482 type VPCRouterDNSForwarding struct { 29483 Interface string 29484 DNSServers []string 29485 } 29486 29487 // setDefaults implements iaas.argumentDefaulter 29488 func (o *VPCRouterDNSForwarding) setDefaults() interface{} { 29489 return &struct { 29490 Interface string 29491 DNSServers []string 29492 }{ 29493 Interface: o.GetInterface(), 29494 DNSServers: o.GetDNSServers(), 29495 } 29496 } 29497 29498 // GetInterface returns value of Interface 29499 func (o *VPCRouterDNSForwarding) GetInterface() string { 29500 return o.Interface 29501 } 29502 29503 // SetInterface sets value to Interface 29504 func (o *VPCRouterDNSForwarding) SetInterface(v string) { 29505 o.Interface = v 29506 } 29507 29508 // GetDNSServers returns value of DNSServers 29509 func (o *VPCRouterDNSForwarding) GetDNSServers() []string { 29510 return o.DNSServers 29511 } 29512 29513 // SetDNSServers sets value to DNSServers 29514 func (o *VPCRouterDNSForwarding) SetDNSServers(v []string) { 29515 o.DNSServers = v 29516 } 29517 29518 /************************************************* 29519 * VPCRouterPPTPServer 29520 *************************************************/ 29521 29522 // VPCRouterPPTPServer represents API parameter/response structure 29523 type VPCRouterPPTPServer struct { 29524 RangeStart string 29525 RangeStop string 29526 } 29527 29528 // setDefaults implements iaas.argumentDefaulter 29529 func (o *VPCRouterPPTPServer) setDefaults() interface{} { 29530 return &struct { 29531 RangeStart string 29532 RangeStop string 29533 }{ 29534 RangeStart: o.GetRangeStart(), 29535 RangeStop: o.GetRangeStop(), 29536 } 29537 } 29538 29539 // GetRangeStart returns value of RangeStart 29540 func (o *VPCRouterPPTPServer) GetRangeStart() string { 29541 return o.RangeStart 29542 } 29543 29544 // SetRangeStart sets value to RangeStart 29545 func (o *VPCRouterPPTPServer) SetRangeStart(v string) { 29546 o.RangeStart = v 29547 } 29548 29549 // GetRangeStop returns value of RangeStop 29550 func (o *VPCRouterPPTPServer) GetRangeStop() string { 29551 return o.RangeStop 29552 } 29553 29554 // SetRangeStop sets value to RangeStop 29555 func (o *VPCRouterPPTPServer) SetRangeStop(v string) { 29556 o.RangeStop = v 29557 } 29558 29559 /************************************************* 29560 * VPCRouterL2TPIPsecServer 29561 *************************************************/ 29562 29563 // VPCRouterL2TPIPsecServer represents API parameter/response structure 29564 type VPCRouterL2TPIPsecServer struct { 29565 RangeStart string 29566 RangeStop string 29567 PreSharedSecret string 29568 } 29569 29570 // setDefaults implements iaas.argumentDefaulter 29571 func (o *VPCRouterL2TPIPsecServer) setDefaults() interface{} { 29572 return &struct { 29573 RangeStart string 29574 RangeStop string 29575 PreSharedSecret string 29576 }{ 29577 RangeStart: o.GetRangeStart(), 29578 RangeStop: o.GetRangeStop(), 29579 PreSharedSecret: o.GetPreSharedSecret(), 29580 } 29581 } 29582 29583 // GetRangeStart returns value of RangeStart 29584 func (o *VPCRouterL2TPIPsecServer) GetRangeStart() string { 29585 return o.RangeStart 29586 } 29587 29588 // SetRangeStart sets value to RangeStart 29589 func (o *VPCRouterL2TPIPsecServer) SetRangeStart(v string) { 29590 o.RangeStart = v 29591 } 29592 29593 // GetRangeStop returns value of RangeStop 29594 func (o *VPCRouterL2TPIPsecServer) GetRangeStop() string { 29595 return o.RangeStop 29596 } 29597 29598 // SetRangeStop sets value to RangeStop 29599 func (o *VPCRouterL2TPIPsecServer) SetRangeStop(v string) { 29600 o.RangeStop = v 29601 } 29602 29603 // GetPreSharedSecret returns value of PreSharedSecret 29604 func (o *VPCRouterL2TPIPsecServer) GetPreSharedSecret() string { 29605 return o.PreSharedSecret 29606 } 29607 29608 // SetPreSharedSecret sets value to PreSharedSecret 29609 func (o *VPCRouterL2TPIPsecServer) SetPreSharedSecret(v string) { 29610 o.PreSharedSecret = v 29611 } 29612 29613 /************************************************* 29614 * VPCRouterWireGuard 29615 *************************************************/ 29616 29617 // VPCRouterWireGuard represents API parameter/response structure 29618 type VPCRouterWireGuard struct { 29619 IPAddress string 29620 Peers []*VPCRouterWireGuardPeer `mapconv:"[]Peers,omitempty,recursive"` 29621 } 29622 29623 // setDefaults implements iaas.argumentDefaulter 29624 func (o *VPCRouterWireGuard) setDefaults() interface{} { 29625 return &struct { 29626 IPAddress string 29627 Peers []*VPCRouterWireGuardPeer `mapconv:"[]Peers,omitempty,recursive"` 29628 }{ 29629 IPAddress: o.GetIPAddress(), 29630 Peers: o.GetPeers(), 29631 } 29632 } 29633 29634 // GetIPAddress returns value of IPAddress 29635 func (o *VPCRouterWireGuard) GetIPAddress() string { 29636 return o.IPAddress 29637 } 29638 29639 // SetIPAddress sets value to IPAddress 29640 func (o *VPCRouterWireGuard) SetIPAddress(v string) { 29641 o.IPAddress = v 29642 } 29643 29644 // GetPeers returns value of Peers 29645 func (o *VPCRouterWireGuard) GetPeers() []*VPCRouterWireGuardPeer { 29646 return o.Peers 29647 } 29648 29649 // SetPeers sets value to Peers 29650 func (o *VPCRouterWireGuard) SetPeers(v []*VPCRouterWireGuardPeer) { 29651 o.Peers = v 29652 } 29653 29654 /************************************************* 29655 * VPCRouterWireGuardPeer 29656 *************************************************/ 29657 29658 // VPCRouterWireGuardPeer represents API parameter/response structure 29659 type VPCRouterWireGuardPeer struct { 29660 Name string 29661 IPAddress string 29662 PublicKey string 29663 } 29664 29665 // setDefaults implements iaas.argumentDefaulter 29666 func (o *VPCRouterWireGuardPeer) setDefaults() interface{} { 29667 return &struct { 29668 Name string 29669 IPAddress string 29670 PublicKey string 29671 }{ 29672 Name: o.GetName(), 29673 IPAddress: o.GetIPAddress(), 29674 PublicKey: o.GetPublicKey(), 29675 } 29676 } 29677 29678 // GetName returns value of Name 29679 func (o *VPCRouterWireGuardPeer) GetName() string { 29680 return o.Name 29681 } 29682 29683 // SetName sets value to Name 29684 func (o *VPCRouterWireGuardPeer) SetName(v string) { 29685 o.Name = v 29686 } 29687 29688 // GetIPAddress returns value of IPAddress 29689 func (o *VPCRouterWireGuardPeer) GetIPAddress() string { 29690 return o.IPAddress 29691 } 29692 29693 // SetIPAddress sets value to IPAddress 29694 func (o *VPCRouterWireGuardPeer) SetIPAddress(v string) { 29695 o.IPAddress = v 29696 } 29697 29698 // GetPublicKey returns value of PublicKey 29699 func (o *VPCRouterWireGuardPeer) GetPublicKey() string { 29700 return o.PublicKey 29701 } 29702 29703 // SetPublicKey sets value to PublicKey 29704 func (o *VPCRouterWireGuardPeer) SetPublicKey(v string) { 29705 o.PublicKey = v 29706 } 29707 29708 /************************************************* 29709 * VPCRouterRemoteAccessUser 29710 *************************************************/ 29711 29712 // VPCRouterRemoteAccessUser represents API parameter/response structure 29713 type VPCRouterRemoteAccessUser struct { 29714 UserName string 29715 Password string 29716 } 29717 29718 // setDefaults implements iaas.argumentDefaulter 29719 func (o *VPCRouterRemoteAccessUser) setDefaults() interface{} { 29720 return &struct { 29721 UserName string 29722 Password string 29723 }{ 29724 UserName: o.GetUserName(), 29725 Password: o.GetPassword(), 29726 } 29727 } 29728 29729 // GetUserName returns value of UserName 29730 func (o *VPCRouterRemoteAccessUser) GetUserName() string { 29731 return o.UserName 29732 } 29733 29734 // SetUserName sets value to UserName 29735 func (o *VPCRouterRemoteAccessUser) SetUserName(v string) { 29736 o.UserName = v 29737 } 29738 29739 // GetPassword returns value of Password 29740 func (o *VPCRouterRemoteAccessUser) GetPassword() string { 29741 return o.Password 29742 } 29743 29744 // SetPassword sets value to Password 29745 func (o *VPCRouterRemoteAccessUser) SetPassword(v string) { 29746 o.Password = v 29747 } 29748 29749 /************************************************* 29750 * VPCRouterSiteToSiteIPsecVPN 29751 *************************************************/ 29752 29753 // VPCRouterSiteToSiteIPsecVPN represents API parameter/response structure 29754 type VPCRouterSiteToSiteIPsecVPN struct { 29755 Config []*VPCRouterSiteToSiteIPsecVPNConfig `mapconv:"[]Config,omitempty,recursive"` 29756 IKE *VPCRouterSiteToSiteIPsecVPNIKE `mapconv:",omitempty,recursive"` 29757 ESP *VPCRouterSiteToSiteIPsecVPNESP `mapconv:",omitempty,recursive"` 29758 EncryptionAlgo string 29759 HashAlgo string 29760 DHGroup string 29761 } 29762 29763 // setDefaults implements iaas.argumentDefaulter 29764 func (o *VPCRouterSiteToSiteIPsecVPN) setDefaults() interface{} { 29765 return &struct { 29766 Config []*VPCRouterSiteToSiteIPsecVPNConfig `mapconv:"[]Config,omitempty,recursive"` 29767 IKE *VPCRouterSiteToSiteIPsecVPNIKE `mapconv:",omitempty,recursive"` 29768 ESP *VPCRouterSiteToSiteIPsecVPNESP `mapconv:",omitempty,recursive"` 29769 EncryptionAlgo string 29770 HashAlgo string 29771 DHGroup string 29772 }{ 29773 Config: o.GetConfig(), 29774 IKE: o.GetIKE(), 29775 ESP: o.GetESP(), 29776 EncryptionAlgo: o.GetEncryptionAlgo(), 29777 HashAlgo: o.GetHashAlgo(), 29778 DHGroup: o.GetDHGroup(), 29779 } 29780 } 29781 29782 // GetConfig returns value of Config 29783 func (o *VPCRouterSiteToSiteIPsecVPN) GetConfig() []*VPCRouterSiteToSiteIPsecVPNConfig { 29784 return o.Config 29785 } 29786 29787 // SetConfig sets value to Config 29788 func (o *VPCRouterSiteToSiteIPsecVPN) SetConfig(v []*VPCRouterSiteToSiteIPsecVPNConfig) { 29789 o.Config = v 29790 } 29791 29792 // GetIKE returns value of IKE 29793 func (o *VPCRouterSiteToSiteIPsecVPN) GetIKE() *VPCRouterSiteToSiteIPsecVPNIKE { 29794 return o.IKE 29795 } 29796 29797 // SetIKE sets value to IKE 29798 func (o *VPCRouterSiteToSiteIPsecVPN) SetIKE(v *VPCRouterSiteToSiteIPsecVPNIKE) { 29799 o.IKE = v 29800 } 29801 29802 // GetESP returns value of ESP 29803 func (o *VPCRouterSiteToSiteIPsecVPN) GetESP() *VPCRouterSiteToSiteIPsecVPNESP { 29804 return o.ESP 29805 } 29806 29807 // SetESP sets value to ESP 29808 func (o *VPCRouterSiteToSiteIPsecVPN) SetESP(v *VPCRouterSiteToSiteIPsecVPNESP) { 29809 o.ESP = v 29810 } 29811 29812 // GetEncryptionAlgo returns value of EncryptionAlgo 29813 func (o *VPCRouterSiteToSiteIPsecVPN) GetEncryptionAlgo() string { 29814 return o.EncryptionAlgo 29815 } 29816 29817 // SetEncryptionAlgo sets value to EncryptionAlgo 29818 func (o *VPCRouterSiteToSiteIPsecVPN) SetEncryptionAlgo(v string) { 29819 o.EncryptionAlgo = v 29820 } 29821 29822 // GetHashAlgo returns value of HashAlgo 29823 func (o *VPCRouterSiteToSiteIPsecVPN) GetHashAlgo() string { 29824 return o.HashAlgo 29825 } 29826 29827 // SetHashAlgo sets value to HashAlgo 29828 func (o *VPCRouterSiteToSiteIPsecVPN) SetHashAlgo(v string) { 29829 o.HashAlgo = v 29830 } 29831 29832 // GetDHGroup returns value of DHGroup 29833 func (o *VPCRouterSiteToSiteIPsecVPN) GetDHGroup() string { 29834 return o.DHGroup 29835 } 29836 29837 // SetDHGroup sets value to DHGroup 29838 func (o *VPCRouterSiteToSiteIPsecVPN) SetDHGroup(v string) { 29839 o.DHGroup = v 29840 } 29841 29842 /************************************************* 29843 * VPCRouterSiteToSiteIPsecVPNConfig 29844 *************************************************/ 29845 29846 // VPCRouterSiteToSiteIPsecVPNConfig represents API parameter/response structure 29847 type VPCRouterSiteToSiteIPsecVPNConfig struct { 29848 Peer string 29849 PreSharedSecret string 29850 RemoteID string 29851 Routes []string 29852 LocalPrefix []string 29853 } 29854 29855 // setDefaults implements iaas.argumentDefaulter 29856 func (o *VPCRouterSiteToSiteIPsecVPNConfig) setDefaults() interface{} { 29857 return &struct { 29858 Peer string 29859 PreSharedSecret string 29860 RemoteID string 29861 Routes []string 29862 LocalPrefix []string 29863 }{ 29864 Peer: o.GetPeer(), 29865 PreSharedSecret: o.GetPreSharedSecret(), 29866 RemoteID: o.GetRemoteID(), 29867 Routes: o.GetRoutes(), 29868 LocalPrefix: o.GetLocalPrefix(), 29869 } 29870 } 29871 29872 // GetPeer returns value of Peer 29873 func (o *VPCRouterSiteToSiteIPsecVPNConfig) GetPeer() string { 29874 return o.Peer 29875 } 29876 29877 // SetPeer sets value to Peer 29878 func (o *VPCRouterSiteToSiteIPsecVPNConfig) SetPeer(v string) { 29879 o.Peer = v 29880 } 29881 29882 // GetPreSharedSecret returns value of PreSharedSecret 29883 func (o *VPCRouterSiteToSiteIPsecVPNConfig) GetPreSharedSecret() string { 29884 return o.PreSharedSecret 29885 } 29886 29887 // SetPreSharedSecret sets value to PreSharedSecret 29888 func (o *VPCRouterSiteToSiteIPsecVPNConfig) SetPreSharedSecret(v string) { 29889 o.PreSharedSecret = v 29890 } 29891 29892 // GetRemoteID returns value of RemoteID 29893 func (o *VPCRouterSiteToSiteIPsecVPNConfig) GetRemoteID() string { 29894 return o.RemoteID 29895 } 29896 29897 // SetRemoteID sets value to RemoteID 29898 func (o *VPCRouterSiteToSiteIPsecVPNConfig) SetRemoteID(v string) { 29899 o.RemoteID = v 29900 } 29901 29902 // GetRoutes returns value of Routes 29903 func (o *VPCRouterSiteToSiteIPsecVPNConfig) GetRoutes() []string { 29904 return o.Routes 29905 } 29906 29907 // SetRoutes sets value to Routes 29908 func (o *VPCRouterSiteToSiteIPsecVPNConfig) SetRoutes(v []string) { 29909 o.Routes = v 29910 } 29911 29912 // GetLocalPrefix returns value of LocalPrefix 29913 func (o *VPCRouterSiteToSiteIPsecVPNConfig) GetLocalPrefix() []string { 29914 return o.LocalPrefix 29915 } 29916 29917 // SetLocalPrefix sets value to LocalPrefix 29918 func (o *VPCRouterSiteToSiteIPsecVPNConfig) SetLocalPrefix(v []string) { 29919 o.LocalPrefix = v 29920 } 29921 29922 /************************************************* 29923 * VPCRouterSiteToSiteIPsecVPNIKE 29924 *************************************************/ 29925 29926 // VPCRouterSiteToSiteIPsecVPNIKE represents API parameter/response structure 29927 type VPCRouterSiteToSiteIPsecVPNIKE struct { 29928 Lifetime int 29929 DPD *VPCRouterSiteToSiteIPsecVPNIKEDPD `mapconv:",omitempty,recursive"` 29930 } 29931 29932 // setDefaults implements iaas.argumentDefaulter 29933 func (o *VPCRouterSiteToSiteIPsecVPNIKE) setDefaults() interface{} { 29934 return &struct { 29935 Lifetime int 29936 DPD *VPCRouterSiteToSiteIPsecVPNIKEDPD `mapconv:",omitempty,recursive"` 29937 }{ 29938 Lifetime: o.GetLifetime(), 29939 DPD: o.GetDPD(), 29940 } 29941 } 29942 29943 // GetLifetime returns value of Lifetime 29944 func (o *VPCRouterSiteToSiteIPsecVPNIKE) GetLifetime() int { 29945 return o.Lifetime 29946 } 29947 29948 // SetLifetime sets value to Lifetime 29949 func (o *VPCRouterSiteToSiteIPsecVPNIKE) SetLifetime(v int) { 29950 o.Lifetime = v 29951 } 29952 29953 // GetDPD returns value of DPD 29954 func (o *VPCRouterSiteToSiteIPsecVPNIKE) GetDPD() *VPCRouterSiteToSiteIPsecVPNIKEDPD { 29955 return o.DPD 29956 } 29957 29958 // SetDPD sets value to DPD 29959 func (o *VPCRouterSiteToSiteIPsecVPNIKE) SetDPD(v *VPCRouterSiteToSiteIPsecVPNIKEDPD) { 29960 o.DPD = v 29961 } 29962 29963 /************************************************* 29964 * VPCRouterSiteToSiteIPsecVPNIKEDPD 29965 *************************************************/ 29966 29967 // VPCRouterSiteToSiteIPsecVPNIKEDPD represents API parameter/response structure 29968 type VPCRouterSiteToSiteIPsecVPNIKEDPD struct { 29969 Interval int 29970 Timeout int 29971 } 29972 29973 // setDefaults implements iaas.argumentDefaulter 29974 func (o *VPCRouterSiteToSiteIPsecVPNIKEDPD) setDefaults() interface{} { 29975 return &struct { 29976 Interval int 29977 Timeout int 29978 }{ 29979 Interval: o.GetInterval(), 29980 Timeout: o.GetTimeout(), 29981 } 29982 } 29983 29984 // GetInterval returns value of Interval 29985 func (o *VPCRouterSiteToSiteIPsecVPNIKEDPD) GetInterval() int { 29986 return o.Interval 29987 } 29988 29989 // SetInterval sets value to Interval 29990 func (o *VPCRouterSiteToSiteIPsecVPNIKEDPD) SetInterval(v int) { 29991 o.Interval = v 29992 } 29993 29994 // GetTimeout returns value of Timeout 29995 func (o *VPCRouterSiteToSiteIPsecVPNIKEDPD) GetTimeout() int { 29996 return o.Timeout 29997 } 29998 29999 // SetTimeout sets value to Timeout 30000 func (o *VPCRouterSiteToSiteIPsecVPNIKEDPD) SetTimeout(v int) { 30001 o.Timeout = v 30002 } 30003 30004 /************************************************* 30005 * VPCRouterSiteToSiteIPsecVPNESP 30006 *************************************************/ 30007 30008 // VPCRouterSiteToSiteIPsecVPNESP represents API parameter/response structure 30009 type VPCRouterSiteToSiteIPsecVPNESP struct { 30010 Lifetime int 30011 } 30012 30013 // setDefaults implements iaas.argumentDefaulter 30014 func (o *VPCRouterSiteToSiteIPsecVPNESP) setDefaults() interface{} { 30015 return &struct { 30016 Lifetime int 30017 }{ 30018 Lifetime: o.GetLifetime(), 30019 } 30020 } 30021 30022 // GetLifetime returns value of Lifetime 30023 func (o *VPCRouterSiteToSiteIPsecVPNESP) GetLifetime() int { 30024 return o.Lifetime 30025 } 30026 30027 // SetLifetime sets value to Lifetime 30028 func (o *VPCRouterSiteToSiteIPsecVPNESP) SetLifetime(v int) { 30029 o.Lifetime = v 30030 } 30031 30032 /************************************************* 30033 * VPCRouterStaticRoute 30034 *************************************************/ 30035 30036 // VPCRouterStaticRoute represents API parameter/response structure 30037 type VPCRouterStaticRoute struct { 30038 Prefix string 30039 NextHop string 30040 } 30041 30042 // setDefaults implements iaas.argumentDefaulter 30043 func (o *VPCRouterStaticRoute) setDefaults() interface{} { 30044 return &struct { 30045 Prefix string 30046 NextHop string 30047 }{ 30048 Prefix: o.GetPrefix(), 30049 NextHop: o.GetNextHop(), 30050 } 30051 } 30052 30053 // GetPrefix returns value of Prefix 30054 func (o *VPCRouterStaticRoute) GetPrefix() string { 30055 return o.Prefix 30056 } 30057 30058 // SetPrefix sets value to Prefix 30059 func (o *VPCRouterStaticRoute) SetPrefix(v string) { 30060 o.Prefix = v 30061 } 30062 30063 // GetNextHop returns value of NextHop 30064 func (o *VPCRouterStaticRoute) GetNextHop() string { 30065 return o.NextHop 30066 } 30067 30068 // SetNextHop sets value to NextHop 30069 func (o *VPCRouterStaticRoute) SetNextHop(v string) { 30070 o.NextHop = v 30071 } 30072 30073 /************************************************* 30074 * VPCRouterScheduledMaintenance 30075 *************************************************/ 30076 30077 // VPCRouterScheduledMaintenance represents API parameter/response structure 30078 type VPCRouterScheduledMaintenance struct { 30079 DayOfWeek int 30080 Hour int 30081 } 30082 30083 // setDefaults implements iaas.argumentDefaulter 30084 func (o *VPCRouterScheduledMaintenance) setDefaults() interface{} { 30085 return &struct { 30086 DayOfWeek int 30087 Hour int 30088 }{ 30089 DayOfWeek: o.GetDayOfWeek(), 30090 Hour: o.GetHour(), 30091 } 30092 } 30093 30094 // GetDayOfWeek returns value of DayOfWeek 30095 func (o *VPCRouterScheduledMaintenance) GetDayOfWeek() int { 30096 return o.DayOfWeek 30097 } 30098 30099 // SetDayOfWeek sets value to DayOfWeek 30100 func (o *VPCRouterScheduledMaintenance) SetDayOfWeek(v int) { 30101 o.DayOfWeek = v 30102 } 30103 30104 // GetHour returns value of Hour 30105 func (o *VPCRouterScheduledMaintenance) GetHour() int { 30106 return o.Hour 30107 } 30108 30109 // SetHour sets value to Hour 30110 func (o *VPCRouterScheduledMaintenance) SetHour(v int) { 30111 o.Hour = v 30112 } 30113 30114 /************************************************* 30115 * VPCRouterInterface 30116 *************************************************/ 30117 30118 // VPCRouterInterface represents API parameter/response structure 30119 type VPCRouterInterface struct { 30120 ID types.ID 30121 MACAddress string 30122 IPAddress string 30123 UserIPAddress string 30124 HostName string 30125 SwitchID types.ID `mapconv:"Switch.ID"` 30126 SwitchName string `mapconv:"Switch.Name"` 30127 SwitchScope types.EScope `mapconv:"Switch.Scope"` 30128 UserSubnetDefaultRoute string `mapconv:"Switch.UserSubnet.DefaultRoute"` 30129 UserSubnetNetworkMaskLen int `mapconv:"Switch.UserSubnet.NetworkMaskLen"` 30130 SubnetDefaultRoute string `mapconv:"Switch.Subnet.DefaultRoute"` 30131 SubnetNetworkMaskLen int `mapconv:"Switch.Subnet.NetworkMaskLen"` 30132 SubnetNetworkAddress string `mapconv:"Switch.Subnet.NetworkAddress"` 30133 SubnetBandWidthMbps int `mapconv:"Switch.Subnet.Internet.BandWidthMbps"` 30134 PacketFilterID types.ID `mapconv:"PacketFilter.ID"` 30135 PacketFilterName string `mapconv:"PacketFilter.Name"` 30136 PacketFilterRequiredHostVersion types.StringNumber `mapconv:"PacketFilter.RequiredHostVersionn"` 30137 UpstreamType types.EUpstreamNetworkType 30138 Index int `mapconv:",omitempty"` 30139 } 30140 30141 // setDefaults implements iaas.argumentDefaulter 30142 func (o *VPCRouterInterface) setDefaults() interface{} { 30143 return &struct { 30144 ID types.ID 30145 MACAddress string 30146 IPAddress string 30147 UserIPAddress string 30148 HostName string 30149 SwitchID types.ID `mapconv:"Switch.ID"` 30150 SwitchName string `mapconv:"Switch.Name"` 30151 SwitchScope types.EScope `mapconv:"Switch.Scope"` 30152 UserSubnetDefaultRoute string `mapconv:"Switch.UserSubnet.DefaultRoute"` 30153 UserSubnetNetworkMaskLen int `mapconv:"Switch.UserSubnet.NetworkMaskLen"` 30154 SubnetDefaultRoute string `mapconv:"Switch.Subnet.DefaultRoute"` 30155 SubnetNetworkMaskLen int `mapconv:"Switch.Subnet.NetworkMaskLen"` 30156 SubnetNetworkAddress string `mapconv:"Switch.Subnet.NetworkAddress"` 30157 SubnetBandWidthMbps int `mapconv:"Switch.Subnet.Internet.BandWidthMbps"` 30158 PacketFilterID types.ID `mapconv:"PacketFilter.ID"` 30159 PacketFilterName string `mapconv:"PacketFilter.Name"` 30160 PacketFilterRequiredHostVersion types.StringNumber `mapconv:"PacketFilter.RequiredHostVersionn"` 30161 UpstreamType types.EUpstreamNetworkType 30162 Index int `mapconv:",omitempty"` 30163 }{ 30164 ID: o.GetID(), 30165 MACAddress: o.GetMACAddress(), 30166 IPAddress: o.GetIPAddress(), 30167 UserIPAddress: o.GetUserIPAddress(), 30168 HostName: o.GetHostName(), 30169 SwitchID: o.GetSwitchID(), 30170 SwitchName: o.GetSwitchName(), 30171 SwitchScope: o.GetSwitchScope(), 30172 UserSubnetDefaultRoute: o.GetUserSubnetDefaultRoute(), 30173 UserSubnetNetworkMaskLen: o.GetUserSubnetNetworkMaskLen(), 30174 SubnetDefaultRoute: o.GetSubnetDefaultRoute(), 30175 SubnetNetworkMaskLen: o.GetSubnetNetworkMaskLen(), 30176 SubnetNetworkAddress: o.GetSubnetNetworkAddress(), 30177 SubnetBandWidthMbps: o.GetSubnetBandWidthMbps(), 30178 PacketFilterID: o.GetPacketFilterID(), 30179 PacketFilterName: o.GetPacketFilterName(), 30180 PacketFilterRequiredHostVersion: o.GetPacketFilterRequiredHostVersion(), 30181 UpstreamType: o.GetUpstreamType(), 30182 Index: o.GetIndex(), 30183 } 30184 } 30185 30186 // GetID returns value of ID 30187 func (o *VPCRouterInterface) GetID() types.ID { 30188 return o.ID 30189 } 30190 30191 // SetID sets value to ID 30192 func (o *VPCRouterInterface) SetID(v types.ID) { 30193 o.ID = v 30194 } 30195 30196 // SetStringID . 30197 func (o *VPCRouterInterface) SetStringID(id string) { 30198 accessor.SetStringID(o, id) 30199 } 30200 30201 // GetStringID . 30202 func (o *VPCRouterInterface) GetStringID() string { 30203 return accessor.GetStringID(o) 30204 } 30205 30206 // SetInt64ID . 30207 func (o *VPCRouterInterface) SetInt64ID(id int64) { 30208 accessor.SetInt64ID(o, id) 30209 } 30210 30211 // GetInt64ID . 30212 func (o *VPCRouterInterface) GetInt64ID() int64 { 30213 return accessor.GetInt64ID(o) 30214 } 30215 30216 // GetMACAddress returns value of MACAddress 30217 func (o *VPCRouterInterface) GetMACAddress() string { 30218 return o.MACAddress 30219 } 30220 30221 // SetMACAddress sets value to MACAddress 30222 func (o *VPCRouterInterface) SetMACAddress(v string) { 30223 o.MACAddress = v 30224 } 30225 30226 // GetIPAddress returns value of IPAddress 30227 func (o *VPCRouterInterface) GetIPAddress() string { 30228 return o.IPAddress 30229 } 30230 30231 // SetIPAddress sets value to IPAddress 30232 func (o *VPCRouterInterface) SetIPAddress(v string) { 30233 o.IPAddress = v 30234 } 30235 30236 // GetUserIPAddress returns value of UserIPAddress 30237 func (o *VPCRouterInterface) GetUserIPAddress() string { 30238 return o.UserIPAddress 30239 } 30240 30241 // SetUserIPAddress sets value to UserIPAddress 30242 func (o *VPCRouterInterface) SetUserIPAddress(v string) { 30243 o.UserIPAddress = v 30244 } 30245 30246 // GetHostName returns value of HostName 30247 func (o *VPCRouterInterface) GetHostName() string { 30248 return o.HostName 30249 } 30250 30251 // SetHostName sets value to HostName 30252 func (o *VPCRouterInterface) SetHostName(v string) { 30253 o.HostName = v 30254 } 30255 30256 // GetSwitchID returns value of SwitchID 30257 func (o *VPCRouterInterface) GetSwitchID() types.ID { 30258 return o.SwitchID 30259 } 30260 30261 // SetSwitchID sets value to SwitchID 30262 func (o *VPCRouterInterface) SetSwitchID(v types.ID) { 30263 o.SwitchID = v 30264 } 30265 30266 // GetSwitchName returns value of SwitchName 30267 func (o *VPCRouterInterface) GetSwitchName() string { 30268 return o.SwitchName 30269 } 30270 30271 // SetSwitchName sets value to SwitchName 30272 func (o *VPCRouterInterface) SetSwitchName(v string) { 30273 o.SwitchName = v 30274 } 30275 30276 // GetSwitchScope returns value of SwitchScope 30277 func (o *VPCRouterInterface) GetSwitchScope() types.EScope { 30278 return o.SwitchScope 30279 } 30280 30281 // SetSwitchScope sets value to SwitchScope 30282 func (o *VPCRouterInterface) SetSwitchScope(v types.EScope) { 30283 o.SwitchScope = v 30284 } 30285 30286 // GetUserSubnetDefaultRoute returns value of UserSubnetDefaultRoute 30287 func (o *VPCRouterInterface) GetUserSubnetDefaultRoute() string { 30288 return o.UserSubnetDefaultRoute 30289 } 30290 30291 // SetUserSubnetDefaultRoute sets value to UserSubnetDefaultRoute 30292 func (o *VPCRouterInterface) SetUserSubnetDefaultRoute(v string) { 30293 o.UserSubnetDefaultRoute = v 30294 } 30295 30296 // GetUserSubnetNetworkMaskLen returns value of UserSubnetNetworkMaskLen 30297 func (o *VPCRouterInterface) GetUserSubnetNetworkMaskLen() int { 30298 return o.UserSubnetNetworkMaskLen 30299 } 30300 30301 // SetUserSubnetNetworkMaskLen sets value to UserSubnetNetworkMaskLen 30302 func (o *VPCRouterInterface) SetUserSubnetNetworkMaskLen(v int) { 30303 o.UserSubnetNetworkMaskLen = v 30304 } 30305 30306 // GetSubnetDefaultRoute returns value of SubnetDefaultRoute 30307 func (o *VPCRouterInterface) GetSubnetDefaultRoute() string { 30308 return o.SubnetDefaultRoute 30309 } 30310 30311 // SetSubnetDefaultRoute sets value to SubnetDefaultRoute 30312 func (o *VPCRouterInterface) SetSubnetDefaultRoute(v string) { 30313 o.SubnetDefaultRoute = v 30314 } 30315 30316 // GetSubnetNetworkMaskLen returns value of SubnetNetworkMaskLen 30317 func (o *VPCRouterInterface) GetSubnetNetworkMaskLen() int { 30318 return o.SubnetNetworkMaskLen 30319 } 30320 30321 // SetSubnetNetworkMaskLen sets value to SubnetNetworkMaskLen 30322 func (o *VPCRouterInterface) SetSubnetNetworkMaskLen(v int) { 30323 o.SubnetNetworkMaskLen = v 30324 } 30325 30326 // GetSubnetNetworkAddress returns value of SubnetNetworkAddress 30327 func (o *VPCRouterInterface) GetSubnetNetworkAddress() string { 30328 return o.SubnetNetworkAddress 30329 } 30330 30331 // SetSubnetNetworkAddress sets value to SubnetNetworkAddress 30332 func (o *VPCRouterInterface) SetSubnetNetworkAddress(v string) { 30333 o.SubnetNetworkAddress = v 30334 } 30335 30336 // GetSubnetBandWidthMbps returns value of SubnetBandWidthMbps 30337 func (o *VPCRouterInterface) GetSubnetBandWidthMbps() int { 30338 return o.SubnetBandWidthMbps 30339 } 30340 30341 // SetSubnetBandWidthMbps sets value to SubnetBandWidthMbps 30342 func (o *VPCRouterInterface) SetSubnetBandWidthMbps(v int) { 30343 o.SubnetBandWidthMbps = v 30344 } 30345 30346 // GetPacketFilterID returns value of PacketFilterID 30347 func (o *VPCRouterInterface) GetPacketFilterID() types.ID { 30348 return o.PacketFilterID 30349 } 30350 30351 // SetPacketFilterID sets value to PacketFilterID 30352 func (o *VPCRouterInterface) SetPacketFilterID(v types.ID) { 30353 o.PacketFilterID = v 30354 } 30355 30356 // GetPacketFilterName returns value of PacketFilterName 30357 func (o *VPCRouterInterface) GetPacketFilterName() string { 30358 return o.PacketFilterName 30359 } 30360 30361 // SetPacketFilterName sets value to PacketFilterName 30362 func (o *VPCRouterInterface) SetPacketFilterName(v string) { 30363 o.PacketFilterName = v 30364 } 30365 30366 // GetPacketFilterRequiredHostVersion returns value of PacketFilterRequiredHostVersion 30367 func (o *VPCRouterInterface) GetPacketFilterRequiredHostVersion() types.StringNumber { 30368 return o.PacketFilterRequiredHostVersion 30369 } 30370 30371 // SetPacketFilterRequiredHostVersion sets value to PacketFilterRequiredHostVersion 30372 func (o *VPCRouterInterface) SetPacketFilterRequiredHostVersion(v types.StringNumber) { 30373 o.PacketFilterRequiredHostVersion = v 30374 } 30375 30376 // GetUpstreamType returns value of UpstreamType 30377 func (o *VPCRouterInterface) GetUpstreamType() types.EUpstreamNetworkType { 30378 return o.UpstreamType 30379 } 30380 30381 // SetUpstreamType sets value to UpstreamType 30382 func (o *VPCRouterInterface) SetUpstreamType(v types.EUpstreamNetworkType) { 30383 o.UpstreamType = v 30384 } 30385 30386 // GetIndex returns value of Index 30387 func (o *VPCRouterInterface) GetIndex() int { 30388 return o.Index 30389 } 30390 30391 // SetIndex sets value to Index 30392 func (o *VPCRouterInterface) SetIndex(v int) { 30393 o.Index = v 30394 } 30395 30396 /************************************************* 30397 * VPCRouterCreateRequest 30398 *************************************************/ 30399 30400 // VPCRouterCreateRequest represents API parameter/response structure 30401 type VPCRouterCreateRequest struct { 30402 Name string 30403 Description string 30404 Tags types.Tags 30405 IconID types.ID `mapconv:"Icon.ID"` 30406 PlanID types.ID `mapconv:"Plan.ID"` 30407 Switch *ApplianceConnectedSwitch `json:",omitempty" mapconv:"Remark.Switch,recursive"` 30408 IPAddresses []string `mapconv:"Remark.[]Servers.IPAddress"` 30409 Version int `mapconv:"Remark.Router.VPCRouterVersion"` 30410 Settings *VPCRouterSetting `mapconv:",omitempty,recursive"` 30411 } 30412 30413 // setDefaults implements iaas.argumentDefaulter 30414 func (o *VPCRouterCreateRequest) setDefaults() interface{} { 30415 return &struct { 30416 Name string 30417 Description string 30418 Tags types.Tags 30419 IconID types.ID `mapconv:"Icon.ID"` 30420 PlanID types.ID `mapconv:"Plan.ID"` 30421 Switch *ApplianceConnectedSwitch `json:",omitempty" mapconv:"Remark.Switch,recursive"` 30422 IPAddresses []string `mapconv:"Remark.[]Servers.IPAddress"` 30423 Version int `mapconv:"Remark.Router.VPCRouterVersion"` 30424 Settings *VPCRouterSetting `mapconv:",omitempty,recursive"` 30425 Class string 30426 }{ 30427 Name: o.GetName(), 30428 Description: o.GetDescription(), 30429 Tags: o.GetTags(), 30430 IconID: o.GetIconID(), 30431 PlanID: o.GetPlanID(), 30432 Switch: o.GetSwitch(), 30433 IPAddresses: o.GetIPAddresses(), 30434 Version: o.GetVersion(), 30435 Settings: o.GetSettings(), 30436 Class: "vpcrouter", 30437 } 30438 } 30439 30440 // GetName returns value of Name 30441 func (o *VPCRouterCreateRequest) GetName() string { 30442 return o.Name 30443 } 30444 30445 // SetName sets value to Name 30446 func (o *VPCRouterCreateRequest) SetName(v string) { 30447 o.Name = v 30448 } 30449 30450 // GetDescription returns value of Description 30451 func (o *VPCRouterCreateRequest) GetDescription() string { 30452 return o.Description 30453 } 30454 30455 // SetDescription sets value to Description 30456 func (o *VPCRouterCreateRequest) SetDescription(v string) { 30457 o.Description = v 30458 } 30459 30460 // GetTags returns value of Tags 30461 func (o *VPCRouterCreateRequest) GetTags() types.Tags { 30462 return o.Tags 30463 } 30464 30465 // SetTags sets value to Tags 30466 func (o *VPCRouterCreateRequest) SetTags(v types.Tags) { 30467 o.Tags = v 30468 } 30469 30470 // HasTag 指定のタグが存在する場合trueを返す 30471 func (o *VPCRouterCreateRequest) HasTag(tag string) bool { 30472 return accessor.HasTag(o, tag) 30473 } 30474 30475 // AppendTag 指定のタグを追加 30476 func (o *VPCRouterCreateRequest) AppendTag(tag string) { 30477 accessor.AppendTag(o, tag) 30478 } 30479 30480 // RemoveTag 指定のタグを削除 30481 func (o *VPCRouterCreateRequest) RemoveTag(tag string) { 30482 accessor.RemoveTag(o, tag) 30483 } 30484 30485 // ClearTags タグを全クリア 30486 func (o *VPCRouterCreateRequest) ClearTags() { 30487 accessor.ClearTags(o) 30488 } 30489 30490 // GetIconID returns value of IconID 30491 func (o *VPCRouterCreateRequest) GetIconID() types.ID { 30492 return o.IconID 30493 } 30494 30495 // SetIconID sets value to IconID 30496 func (o *VPCRouterCreateRequest) SetIconID(v types.ID) { 30497 o.IconID = v 30498 } 30499 30500 // GetPlanID returns value of PlanID 30501 func (o *VPCRouterCreateRequest) GetPlanID() types.ID { 30502 return o.PlanID 30503 } 30504 30505 // SetPlanID sets value to PlanID 30506 func (o *VPCRouterCreateRequest) SetPlanID(v types.ID) { 30507 o.PlanID = v 30508 } 30509 30510 // GetSwitch returns value of Switch 30511 func (o *VPCRouterCreateRequest) GetSwitch() *ApplianceConnectedSwitch { 30512 return o.Switch 30513 } 30514 30515 // SetSwitch sets value to Switch 30516 func (o *VPCRouterCreateRequest) SetSwitch(v *ApplianceConnectedSwitch) { 30517 o.Switch = v 30518 } 30519 30520 // GetIPAddresses returns value of IPAddresses 30521 func (o *VPCRouterCreateRequest) GetIPAddresses() []string { 30522 return o.IPAddresses 30523 } 30524 30525 // SetIPAddresses sets value to IPAddresses 30526 func (o *VPCRouterCreateRequest) SetIPAddresses(v []string) { 30527 o.IPAddresses = v 30528 } 30529 30530 // GetVersion returns value of Version 30531 func (o *VPCRouterCreateRequest) GetVersion() int { 30532 if o.Version == 0 { 30533 return 2 30534 } 30535 return o.Version 30536 } 30537 30538 // SetVersion sets value to Version 30539 func (o *VPCRouterCreateRequest) SetVersion(v int) { 30540 o.Version = v 30541 } 30542 30543 // GetSettings returns value of Settings 30544 func (o *VPCRouterCreateRequest) GetSettings() *VPCRouterSetting { 30545 return o.Settings 30546 } 30547 30548 // SetSettings sets value to Settings 30549 func (o *VPCRouterCreateRequest) SetSettings(v *VPCRouterSetting) { 30550 o.Settings = v 30551 } 30552 30553 /************************************************* 30554 * ApplianceConnectedSwitch 30555 *************************************************/ 30556 30557 // ApplianceConnectedSwitch represents API parameter/response structure 30558 type ApplianceConnectedSwitch struct { 30559 ID types.ID 30560 Scope types.EScope 30561 } 30562 30563 // setDefaults implements iaas.argumentDefaulter 30564 func (o *ApplianceConnectedSwitch) setDefaults() interface{} { 30565 return &struct { 30566 ID types.ID 30567 Scope types.EScope 30568 }{ 30569 ID: o.GetID(), 30570 Scope: o.GetScope(), 30571 } 30572 } 30573 30574 // GetID returns value of ID 30575 func (o *ApplianceConnectedSwitch) GetID() types.ID { 30576 return o.ID 30577 } 30578 30579 // SetID sets value to ID 30580 func (o *ApplianceConnectedSwitch) SetID(v types.ID) { 30581 o.ID = v 30582 } 30583 30584 // SetStringID . 30585 func (o *ApplianceConnectedSwitch) SetStringID(id string) { 30586 accessor.SetStringID(o, id) 30587 } 30588 30589 // GetStringID . 30590 func (o *ApplianceConnectedSwitch) GetStringID() string { 30591 return accessor.GetStringID(o) 30592 } 30593 30594 // SetInt64ID . 30595 func (o *ApplianceConnectedSwitch) SetInt64ID(id int64) { 30596 accessor.SetInt64ID(o, id) 30597 } 30598 30599 // GetInt64ID . 30600 func (o *ApplianceConnectedSwitch) GetInt64ID() int64 { 30601 return accessor.GetInt64ID(o) 30602 } 30603 30604 // GetScope returns value of Scope 30605 func (o *ApplianceConnectedSwitch) GetScope() types.EScope { 30606 return o.Scope 30607 } 30608 30609 // SetScope sets value to Scope 30610 func (o *ApplianceConnectedSwitch) SetScope(v types.EScope) { 30611 o.Scope = v 30612 } 30613 30614 /************************************************* 30615 * VPCRouterUpdateRequest 30616 *************************************************/ 30617 30618 // VPCRouterUpdateRequest represents API parameter/response structure 30619 type VPCRouterUpdateRequest struct { 30620 Name string 30621 Description string 30622 Tags types.Tags 30623 IconID types.ID `mapconv:"Icon.ID"` 30624 Settings *VPCRouterSetting `mapconv:",omitempty,recursive"` 30625 SettingsHash string `json:",omitempty" mapconv:",omitempty"` 30626 } 30627 30628 // setDefaults implements iaas.argumentDefaulter 30629 func (o *VPCRouterUpdateRequest) setDefaults() interface{} { 30630 return &struct { 30631 Name string 30632 Description string 30633 Tags types.Tags 30634 IconID types.ID `mapconv:"Icon.ID"` 30635 Settings *VPCRouterSetting `mapconv:",omitempty,recursive"` 30636 SettingsHash string `json:",omitempty" mapconv:",omitempty"` 30637 }{ 30638 Name: o.GetName(), 30639 Description: o.GetDescription(), 30640 Tags: o.GetTags(), 30641 IconID: o.GetIconID(), 30642 Settings: o.GetSettings(), 30643 SettingsHash: o.GetSettingsHash(), 30644 } 30645 } 30646 30647 // GetName returns value of Name 30648 func (o *VPCRouterUpdateRequest) GetName() string { 30649 return o.Name 30650 } 30651 30652 // SetName sets value to Name 30653 func (o *VPCRouterUpdateRequest) SetName(v string) { 30654 o.Name = v 30655 } 30656 30657 // GetDescription returns value of Description 30658 func (o *VPCRouterUpdateRequest) GetDescription() string { 30659 return o.Description 30660 } 30661 30662 // SetDescription sets value to Description 30663 func (o *VPCRouterUpdateRequest) SetDescription(v string) { 30664 o.Description = v 30665 } 30666 30667 // GetTags returns value of Tags 30668 func (o *VPCRouterUpdateRequest) GetTags() types.Tags { 30669 return o.Tags 30670 } 30671 30672 // SetTags sets value to Tags 30673 func (o *VPCRouterUpdateRequest) SetTags(v types.Tags) { 30674 o.Tags = v 30675 } 30676 30677 // HasTag 指定のタグが存在する場合trueを返す 30678 func (o *VPCRouterUpdateRequest) HasTag(tag string) bool { 30679 return accessor.HasTag(o, tag) 30680 } 30681 30682 // AppendTag 指定のタグを追加 30683 func (o *VPCRouterUpdateRequest) AppendTag(tag string) { 30684 accessor.AppendTag(o, tag) 30685 } 30686 30687 // RemoveTag 指定のタグを削除 30688 func (o *VPCRouterUpdateRequest) RemoveTag(tag string) { 30689 accessor.RemoveTag(o, tag) 30690 } 30691 30692 // ClearTags タグを全クリア 30693 func (o *VPCRouterUpdateRequest) ClearTags() { 30694 accessor.ClearTags(o) 30695 } 30696 30697 // GetIconID returns value of IconID 30698 func (o *VPCRouterUpdateRequest) GetIconID() types.ID { 30699 return o.IconID 30700 } 30701 30702 // SetIconID sets value to IconID 30703 func (o *VPCRouterUpdateRequest) SetIconID(v types.ID) { 30704 o.IconID = v 30705 } 30706 30707 // GetSettings returns value of Settings 30708 func (o *VPCRouterUpdateRequest) GetSettings() *VPCRouterSetting { 30709 return o.Settings 30710 } 30711 30712 // SetSettings sets value to Settings 30713 func (o *VPCRouterUpdateRequest) SetSettings(v *VPCRouterSetting) { 30714 o.Settings = v 30715 } 30716 30717 // GetSettingsHash returns value of SettingsHash 30718 func (o *VPCRouterUpdateRequest) GetSettingsHash() string { 30719 return o.SettingsHash 30720 } 30721 30722 // SetSettingsHash sets value to SettingsHash 30723 func (o *VPCRouterUpdateRequest) SetSettingsHash(v string) { 30724 o.SettingsHash = v 30725 } 30726 30727 /************************************************* 30728 * VPCRouterUpdateSettingsRequest 30729 *************************************************/ 30730 30731 // VPCRouterUpdateSettingsRequest represents API parameter/response structure 30732 type VPCRouterUpdateSettingsRequest struct { 30733 Settings *VPCRouterSetting `mapconv:",omitempty,recursive"` 30734 SettingsHash string `json:",omitempty" mapconv:",omitempty"` 30735 } 30736 30737 // setDefaults implements iaas.argumentDefaulter 30738 func (o *VPCRouterUpdateSettingsRequest) setDefaults() interface{} { 30739 return &struct { 30740 Settings *VPCRouterSetting `mapconv:",omitempty,recursive"` 30741 SettingsHash string `json:",omitempty" mapconv:",omitempty"` 30742 }{ 30743 Settings: o.GetSettings(), 30744 SettingsHash: o.GetSettingsHash(), 30745 } 30746 } 30747 30748 // GetSettings returns value of Settings 30749 func (o *VPCRouterUpdateSettingsRequest) GetSettings() *VPCRouterSetting { 30750 return o.Settings 30751 } 30752 30753 // SetSettings sets value to Settings 30754 func (o *VPCRouterUpdateSettingsRequest) SetSettings(v *VPCRouterSetting) { 30755 o.Settings = v 30756 } 30757 30758 // GetSettingsHash returns value of SettingsHash 30759 func (o *VPCRouterUpdateSettingsRequest) GetSettingsHash() string { 30760 return o.SettingsHash 30761 } 30762 30763 // SetSettingsHash sets value to SettingsHash 30764 func (o *VPCRouterUpdateSettingsRequest) SetSettingsHash(v string) { 30765 o.SettingsHash = v 30766 } 30767 30768 /************************************************* 30769 * VPCRouterStatus 30770 *************************************************/ 30771 30772 // VPCRouterStatus represents API parameter/response structure 30773 type VPCRouterStatus struct { 30774 FirewallReceiveLogs []string 30775 FirewallSendLogs []string 30776 VPNLogs []string 30777 SessionCount int 30778 PercentageOfMemoryFree []types.StringNumber 30779 WireGuard *WireGuardStatus 30780 DHCPServerLeases []*VPCRouterDHCPServerLease `mapconv:"[]DHCPServerLeases,recursive"` 30781 L2TPIPsecServerSessions []*VPCRouterL2TPIPsecServerSession `mapconv:"[]L2TPIPsecServerSessions,recursive"` 30782 PPTPServerSessions []*VPCRouterPPTPServerSession `mapconv:"[]PPTPServerSessions,recursive"` 30783 SiteToSiteIPsecVPNPeers []*VPCRouterSiteToSiteIPsecVPNPeer `mapconv:"[]SiteToSiteIPsecVPNPeers,recursive"` 30784 SessionAnalysis *VPCRouterSessionAnalysis 30785 } 30786 30787 // setDefaults implements iaas.argumentDefaulter 30788 func (o *VPCRouterStatus) setDefaults() interface{} { 30789 return &struct { 30790 FirewallReceiveLogs []string 30791 FirewallSendLogs []string 30792 VPNLogs []string 30793 SessionCount int 30794 PercentageOfMemoryFree []types.StringNumber 30795 WireGuard *WireGuardStatus 30796 DHCPServerLeases []*VPCRouterDHCPServerLease `mapconv:"[]DHCPServerLeases,recursive"` 30797 L2TPIPsecServerSessions []*VPCRouterL2TPIPsecServerSession `mapconv:"[]L2TPIPsecServerSessions,recursive"` 30798 PPTPServerSessions []*VPCRouterPPTPServerSession `mapconv:"[]PPTPServerSessions,recursive"` 30799 SiteToSiteIPsecVPNPeers []*VPCRouterSiteToSiteIPsecVPNPeer `mapconv:"[]SiteToSiteIPsecVPNPeers,recursive"` 30800 SessionAnalysis *VPCRouterSessionAnalysis 30801 }{ 30802 FirewallReceiveLogs: o.GetFirewallReceiveLogs(), 30803 FirewallSendLogs: o.GetFirewallSendLogs(), 30804 VPNLogs: o.GetVPNLogs(), 30805 SessionCount: o.GetSessionCount(), 30806 PercentageOfMemoryFree: o.GetPercentageOfMemoryFree(), 30807 WireGuard: o.GetWireGuard(), 30808 DHCPServerLeases: o.GetDHCPServerLeases(), 30809 L2TPIPsecServerSessions: o.GetL2TPIPsecServerSessions(), 30810 PPTPServerSessions: o.GetPPTPServerSessions(), 30811 SiteToSiteIPsecVPNPeers: o.GetSiteToSiteIPsecVPNPeers(), 30812 SessionAnalysis: o.GetSessionAnalysis(), 30813 } 30814 } 30815 30816 // GetFirewallReceiveLogs returns value of FirewallReceiveLogs 30817 func (o *VPCRouterStatus) GetFirewallReceiveLogs() []string { 30818 return o.FirewallReceiveLogs 30819 } 30820 30821 // SetFirewallReceiveLogs sets value to FirewallReceiveLogs 30822 func (o *VPCRouterStatus) SetFirewallReceiveLogs(v []string) { 30823 o.FirewallReceiveLogs = v 30824 } 30825 30826 // GetFirewallSendLogs returns value of FirewallSendLogs 30827 func (o *VPCRouterStatus) GetFirewallSendLogs() []string { 30828 return o.FirewallSendLogs 30829 } 30830 30831 // SetFirewallSendLogs sets value to FirewallSendLogs 30832 func (o *VPCRouterStatus) SetFirewallSendLogs(v []string) { 30833 o.FirewallSendLogs = v 30834 } 30835 30836 // GetVPNLogs returns value of VPNLogs 30837 func (o *VPCRouterStatus) GetVPNLogs() []string { 30838 return o.VPNLogs 30839 } 30840 30841 // SetVPNLogs sets value to VPNLogs 30842 func (o *VPCRouterStatus) SetVPNLogs(v []string) { 30843 o.VPNLogs = v 30844 } 30845 30846 // GetSessionCount returns value of SessionCount 30847 func (o *VPCRouterStatus) GetSessionCount() int { 30848 return o.SessionCount 30849 } 30850 30851 // SetSessionCount sets value to SessionCount 30852 func (o *VPCRouterStatus) SetSessionCount(v int) { 30853 o.SessionCount = v 30854 } 30855 30856 // GetPercentageOfMemoryFree returns value of PercentageOfMemoryFree 30857 func (o *VPCRouterStatus) GetPercentageOfMemoryFree() []types.StringNumber { 30858 return o.PercentageOfMemoryFree 30859 } 30860 30861 // SetPercentageOfMemoryFree sets value to PercentageOfMemoryFree 30862 func (o *VPCRouterStatus) SetPercentageOfMemoryFree(v []types.StringNumber) { 30863 o.PercentageOfMemoryFree = v 30864 } 30865 30866 // GetWireGuard returns value of WireGuard 30867 func (o *VPCRouterStatus) GetWireGuard() *WireGuardStatus { 30868 return o.WireGuard 30869 } 30870 30871 // SetWireGuard sets value to WireGuard 30872 func (o *VPCRouterStatus) SetWireGuard(v *WireGuardStatus) { 30873 o.WireGuard = v 30874 } 30875 30876 // GetDHCPServerLeases returns value of DHCPServerLeases 30877 func (o *VPCRouterStatus) GetDHCPServerLeases() []*VPCRouterDHCPServerLease { 30878 return o.DHCPServerLeases 30879 } 30880 30881 // SetDHCPServerLeases sets value to DHCPServerLeases 30882 func (o *VPCRouterStatus) SetDHCPServerLeases(v []*VPCRouterDHCPServerLease) { 30883 o.DHCPServerLeases = v 30884 } 30885 30886 // GetL2TPIPsecServerSessions returns value of L2TPIPsecServerSessions 30887 func (o *VPCRouterStatus) GetL2TPIPsecServerSessions() []*VPCRouterL2TPIPsecServerSession { 30888 return o.L2TPIPsecServerSessions 30889 } 30890 30891 // SetL2TPIPsecServerSessions sets value to L2TPIPsecServerSessions 30892 func (o *VPCRouterStatus) SetL2TPIPsecServerSessions(v []*VPCRouterL2TPIPsecServerSession) { 30893 o.L2TPIPsecServerSessions = v 30894 } 30895 30896 // GetPPTPServerSessions returns value of PPTPServerSessions 30897 func (o *VPCRouterStatus) GetPPTPServerSessions() []*VPCRouterPPTPServerSession { 30898 return o.PPTPServerSessions 30899 } 30900 30901 // SetPPTPServerSessions sets value to PPTPServerSessions 30902 func (o *VPCRouterStatus) SetPPTPServerSessions(v []*VPCRouterPPTPServerSession) { 30903 o.PPTPServerSessions = v 30904 } 30905 30906 // GetSiteToSiteIPsecVPNPeers returns value of SiteToSiteIPsecVPNPeers 30907 func (o *VPCRouterStatus) GetSiteToSiteIPsecVPNPeers() []*VPCRouterSiteToSiteIPsecVPNPeer { 30908 return o.SiteToSiteIPsecVPNPeers 30909 } 30910 30911 // SetSiteToSiteIPsecVPNPeers sets value to SiteToSiteIPsecVPNPeers 30912 func (o *VPCRouterStatus) SetSiteToSiteIPsecVPNPeers(v []*VPCRouterSiteToSiteIPsecVPNPeer) { 30913 o.SiteToSiteIPsecVPNPeers = v 30914 } 30915 30916 // GetSessionAnalysis returns value of SessionAnalysis 30917 func (o *VPCRouterStatus) GetSessionAnalysis() *VPCRouterSessionAnalysis { 30918 return o.SessionAnalysis 30919 } 30920 30921 // SetSessionAnalysis sets value to SessionAnalysis 30922 func (o *VPCRouterStatus) SetSessionAnalysis(v *VPCRouterSessionAnalysis) { 30923 o.SessionAnalysis = v 30924 } 30925 30926 /************************************************* 30927 * WireGuardStatus 30928 *************************************************/ 30929 30930 // WireGuardStatus represents API parameter/response structure 30931 type WireGuardStatus struct { 30932 PublicKey string 30933 } 30934 30935 // setDefaults implements iaas.argumentDefaulter 30936 func (o *WireGuardStatus) setDefaults() interface{} { 30937 return &struct { 30938 PublicKey string 30939 }{ 30940 PublicKey: o.GetPublicKey(), 30941 } 30942 } 30943 30944 // GetPublicKey returns value of PublicKey 30945 func (o *WireGuardStatus) GetPublicKey() string { 30946 return o.PublicKey 30947 } 30948 30949 // SetPublicKey sets value to PublicKey 30950 func (o *WireGuardStatus) SetPublicKey(v string) { 30951 o.PublicKey = v 30952 } 30953 30954 /************************************************* 30955 * VPCRouterDHCPServerLease 30956 *************************************************/ 30957 30958 // VPCRouterDHCPServerLease represents API parameter/response structure 30959 type VPCRouterDHCPServerLease struct { 30960 IPAddress string 30961 MACAddress string 30962 } 30963 30964 // setDefaults implements iaas.argumentDefaulter 30965 func (o *VPCRouterDHCPServerLease) setDefaults() interface{} { 30966 return &struct { 30967 IPAddress string 30968 MACAddress string 30969 }{ 30970 IPAddress: o.GetIPAddress(), 30971 MACAddress: o.GetMACAddress(), 30972 } 30973 } 30974 30975 // GetIPAddress returns value of IPAddress 30976 func (o *VPCRouterDHCPServerLease) GetIPAddress() string { 30977 return o.IPAddress 30978 } 30979 30980 // SetIPAddress sets value to IPAddress 30981 func (o *VPCRouterDHCPServerLease) SetIPAddress(v string) { 30982 o.IPAddress = v 30983 } 30984 30985 // GetMACAddress returns value of MACAddress 30986 func (o *VPCRouterDHCPServerLease) GetMACAddress() string { 30987 return o.MACAddress 30988 } 30989 30990 // SetMACAddress sets value to MACAddress 30991 func (o *VPCRouterDHCPServerLease) SetMACAddress(v string) { 30992 o.MACAddress = v 30993 } 30994 30995 /************************************************* 30996 * VPCRouterL2TPIPsecServerSession 30997 *************************************************/ 30998 30999 // VPCRouterL2TPIPsecServerSession represents API parameter/response structure 31000 type VPCRouterL2TPIPsecServerSession struct { 31001 User string 31002 IPAddress string 31003 TimeSec int 31004 } 31005 31006 // setDefaults implements iaas.argumentDefaulter 31007 func (o *VPCRouterL2TPIPsecServerSession) setDefaults() interface{} { 31008 return &struct { 31009 User string 31010 IPAddress string 31011 TimeSec int 31012 }{ 31013 User: o.GetUser(), 31014 IPAddress: o.GetIPAddress(), 31015 TimeSec: o.GetTimeSec(), 31016 } 31017 } 31018 31019 // GetUser returns value of User 31020 func (o *VPCRouterL2TPIPsecServerSession) GetUser() string { 31021 return o.User 31022 } 31023 31024 // SetUser sets value to User 31025 func (o *VPCRouterL2TPIPsecServerSession) SetUser(v string) { 31026 o.User = v 31027 } 31028 31029 // GetIPAddress returns value of IPAddress 31030 func (o *VPCRouterL2TPIPsecServerSession) GetIPAddress() string { 31031 return o.IPAddress 31032 } 31033 31034 // SetIPAddress sets value to IPAddress 31035 func (o *VPCRouterL2TPIPsecServerSession) SetIPAddress(v string) { 31036 o.IPAddress = v 31037 } 31038 31039 // GetTimeSec returns value of TimeSec 31040 func (o *VPCRouterL2TPIPsecServerSession) GetTimeSec() int { 31041 return o.TimeSec 31042 } 31043 31044 // SetTimeSec sets value to TimeSec 31045 func (o *VPCRouterL2TPIPsecServerSession) SetTimeSec(v int) { 31046 o.TimeSec = v 31047 } 31048 31049 /************************************************* 31050 * VPCRouterPPTPServerSession 31051 *************************************************/ 31052 31053 // VPCRouterPPTPServerSession represents API parameter/response structure 31054 type VPCRouterPPTPServerSession struct { 31055 User string 31056 IPAddress string 31057 TimeSec int 31058 } 31059 31060 // setDefaults implements iaas.argumentDefaulter 31061 func (o *VPCRouterPPTPServerSession) setDefaults() interface{} { 31062 return &struct { 31063 User string 31064 IPAddress string 31065 TimeSec int 31066 }{ 31067 User: o.GetUser(), 31068 IPAddress: o.GetIPAddress(), 31069 TimeSec: o.GetTimeSec(), 31070 } 31071 } 31072 31073 // GetUser returns value of User 31074 func (o *VPCRouterPPTPServerSession) GetUser() string { 31075 return o.User 31076 } 31077 31078 // SetUser sets value to User 31079 func (o *VPCRouterPPTPServerSession) SetUser(v string) { 31080 o.User = v 31081 } 31082 31083 // GetIPAddress returns value of IPAddress 31084 func (o *VPCRouterPPTPServerSession) GetIPAddress() string { 31085 return o.IPAddress 31086 } 31087 31088 // SetIPAddress sets value to IPAddress 31089 func (o *VPCRouterPPTPServerSession) SetIPAddress(v string) { 31090 o.IPAddress = v 31091 } 31092 31093 // GetTimeSec returns value of TimeSec 31094 func (o *VPCRouterPPTPServerSession) GetTimeSec() int { 31095 return o.TimeSec 31096 } 31097 31098 // SetTimeSec sets value to TimeSec 31099 func (o *VPCRouterPPTPServerSession) SetTimeSec(v int) { 31100 o.TimeSec = v 31101 } 31102 31103 /************************************************* 31104 * VPCRouterSiteToSiteIPsecVPNPeer 31105 *************************************************/ 31106 31107 // VPCRouterSiteToSiteIPsecVPNPeer represents API parameter/response structure 31108 type VPCRouterSiteToSiteIPsecVPNPeer struct { 31109 Status string 31110 Peer string 31111 } 31112 31113 // setDefaults implements iaas.argumentDefaulter 31114 func (o *VPCRouterSiteToSiteIPsecVPNPeer) setDefaults() interface{} { 31115 return &struct { 31116 Status string 31117 Peer string 31118 }{ 31119 Status: o.GetStatus(), 31120 Peer: o.GetPeer(), 31121 } 31122 } 31123 31124 // GetStatus returns value of Status 31125 func (o *VPCRouterSiteToSiteIPsecVPNPeer) GetStatus() string { 31126 return o.Status 31127 } 31128 31129 // SetStatus sets value to Status 31130 func (o *VPCRouterSiteToSiteIPsecVPNPeer) SetStatus(v string) { 31131 o.Status = v 31132 } 31133 31134 // GetPeer returns value of Peer 31135 func (o *VPCRouterSiteToSiteIPsecVPNPeer) GetPeer() string { 31136 return o.Peer 31137 } 31138 31139 // SetPeer sets value to Peer 31140 func (o *VPCRouterSiteToSiteIPsecVPNPeer) SetPeer(v string) { 31141 o.Peer = v 31142 } 31143 31144 /************************************************* 31145 * VPCRouterSessionAnalysis 31146 *************************************************/ 31147 31148 // VPCRouterSessionAnalysis represents API parameter/response structure 31149 type VPCRouterSessionAnalysis struct { 31150 SourceAndDestination []*VPCRouterStatisticsValue 31151 DestinationAddress []*VPCRouterStatisticsValue 31152 DestinationPort []*VPCRouterStatisticsValue 31153 SourceAddress []*VPCRouterStatisticsValue 31154 } 31155 31156 // setDefaults implements iaas.argumentDefaulter 31157 func (o *VPCRouterSessionAnalysis) setDefaults() interface{} { 31158 return &struct { 31159 SourceAndDestination []*VPCRouterStatisticsValue 31160 DestinationAddress []*VPCRouterStatisticsValue 31161 DestinationPort []*VPCRouterStatisticsValue 31162 SourceAddress []*VPCRouterStatisticsValue 31163 }{ 31164 SourceAndDestination: o.GetSourceAndDestination(), 31165 DestinationAddress: o.GetDestinationAddress(), 31166 DestinationPort: o.GetDestinationPort(), 31167 SourceAddress: o.GetSourceAddress(), 31168 } 31169 } 31170 31171 // GetSourceAndDestination returns value of SourceAndDestination 31172 func (o *VPCRouterSessionAnalysis) GetSourceAndDestination() []*VPCRouterStatisticsValue { 31173 return o.SourceAndDestination 31174 } 31175 31176 // SetSourceAndDestination sets value to SourceAndDestination 31177 func (o *VPCRouterSessionAnalysis) SetSourceAndDestination(v []*VPCRouterStatisticsValue) { 31178 o.SourceAndDestination = v 31179 } 31180 31181 // GetDestinationAddress returns value of DestinationAddress 31182 func (o *VPCRouterSessionAnalysis) GetDestinationAddress() []*VPCRouterStatisticsValue { 31183 return o.DestinationAddress 31184 } 31185 31186 // SetDestinationAddress sets value to DestinationAddress 31187 func (o *VPCRouterSessionAnalysis) SetDestinationAddress(v []*VPCRouterStatisticsValue) { 31188 o.DestinationAddress = v 31189 } 31190 31191 // GetDestinationPort returns value of DestinationPort 31192 func (o *VPCRouterSessionAnalysis) GetDestinationPort() []*VPCRouterStatisticsValue { 31193 return o.DestinationPort 31194 } 31195 31196 // SetDestinationPort sets value to DestinationPort 31197 func (o *VPCRouterSessionAnalysis) SetDestinationPort(v []*VPCRouterStatisticsValue) { 31198 o.DestinationPort = v 31199 } 31200 31201 // GetSourceAddress returns value of SourceAddress 31202 func (o *VPCRouterSessionAnalysis) GetSourceAddress() []*VPCRouterStatisticsValue { 31203 return o.SourceAddress 31204 } 31205 31206 // SetSourceAddress sets value to SourceAddress 31207 func (o *VPCRouterSessionAnalysis) SetSourceAddress(v []*VPCRouterStatisticsValue) { 31208 o.SourceAddress = v 31209 } 31210 31211 /************************************************* 31212 * VPCRouterStatisticsValue 31213 *************************************************/ 31214 31215 // VPCRouterStatisticsValue represents API parameter/response structure 31216 type VPCRouterStatisticsValue struct { 31217 Name string 31218 Count int 31219 } 31220 31221 // setDefaults implements iaas.argumentDefaulter 31222 func (o *VPCRouterStatisticsValue) setDefaults() interface{} { 31223 return &struct { 31224 Name string 31225 Count int 31226 }{ 31227 Name: o.GetName(), 31228 Count: o.GetCount(), 31229 } 31230 } 31231 31232 // GetName returns value of Name 31233 func (o *VPCRouterStatisticsValue) GetName() string { 31234 return o.Name 31235 } 31236 31237 // SetName sets value to Name 31238 func (o *VPCRouterStatisticsValue) SetName(v string) { 31239 o.Name = v 31240 } 31241 31242 // GetCount returns value of Count 31243 func (o *VPCRouterStatisticsValue) GetCount() int { 31244 return o.Count 31245 } 31246 31247 // SetCount sets value to Count 31248 func (o *VPCRouterStatisticsValue) SetCount(v int) { 31249 o.Count = v 31250 } 31251 31252 /************************************************* 31253 * VPCRouterLog 31254 *************************************************/ 31255 31256 // VPCRouterLog represents API parameter/response structure 31257 type VPCRouterLog struct { 31258 Log string 31259 } 31260 31261 // setDefaults implements iaas.argumentDefaulter 31262 func (o *VPCRouterLog) setDefaults() interface{} { 31263 return &struct { 31264 Log string 31265 }{ 31266 Log: o.GetLog(), 31267 } 31268 } 31269 31270 // GetLog returns value of Log 31271 func (o *VPCRouterLog) GetLog() string { 31272 return o.Log 31273 } 31274 31275 // SetLog sets value to Log 31276 func (o *VPCRouterLog) SetLog(v string) { 31277 o.Log = v 31278 } 31279 31280 /************************************************* 31281 * VPCRouterPingResults 31282 *************************************************/ 31283 31284 // VPCRouterPingResults represents API parameter/response structure 31285 type VPCRouterPingResults struct { 31286 Result []string 31287 } 31288 31289 // setDefaults implements iaas.argumentDefaulter 31290 func (o *VPCRouterPingResults) setDefaults() interface{} { 31291 return &struct { 31292 Result []string 31293 }{ 31294 Result: o.GetResult(), 31295 } 31296 } 31297 31298 // GetResult returns value of Result 31299 func (o *VPCRouterPingResults) GetResult() []string { 31300 return o.Result 31301 } 31302 31303 // SetResult sets value to Result 31304 func (o *VPCRouterPingResults) SetResult(v []string) { 31305 o.Result = v 31306 } 31307 31308 /************************************************* 31309 * Zone 31310 *************************************************/ 31311 31312 // Zone represents API parameter/response structure 31313 type Zone struct { 31314 ID types.ID 31315 Name string 31316 Description string 31317 DisplayOrder int64 31318 IsDummy bool 31319 VNCProxy *VNCProxy `json:",omitempty"` 31320 FTPServer *FTPServerInfo `json:",omitempty"` 31321 Region *Region `json:",omitempty"` 31322 } 31323 31324 // setDefaults implements iaas.argumentDefaulter 31325 func (o *Zone) setDefaults() interface{} { 31326 return &struct { 31327 ID types.ID 31328 Name string 31329 Description string 31330 DisplayOrder int64 31331 IsDummy bool 31332 VNCProxy *VNCProxy `json:",omitempty"` 31333 FTPServer *FTPServerInfo `json:",omitempty"` 31334 Region *Region `json:",omitempty"` 31335 }{ 31336 ID: o.GetID(), 31337 Name: o.GetName(), 31338 Description: o.GetDescription(), 31339 DisplayOrder: o.GetDisplayOrder(), 31340 IsDummy: o.GetIsDummy(), 31341 VNCProxy: o.GetVNCProxy(), 31342 FTPServer: o.GetFTPServer(), 31343 Region: o.GetRegion(), 31344 } 31345 } 31346 31347 // GetID returns value of ID 31348 func (o *Zone) GetID() types.ID { 31349 return o.ID 31350 } 31351 31352 // SetID sets value to ID 31353 func (o *Zone) SetID(v types.ID) { 31354 o.ID = v 31355 } 31356 31357 // SetStringID . 31358 func (o *Zone) SetStringID(id string) { 31359 accessor.SetStringID(o, id) 31360 } 31361 31362 // GetStringID . 31363 func (o *Zone) GetStringID() string { 31364 return accessor.GetStringID(o) 31365 } 31366 31367 // SetInt64ID . 31368 func (o *Zone) SetInt64ID(id int64) { 31369 accessor.SetInt64ID(o, id) 31370 } 31371 31372 // GetInt64ID . 31373 func (o *Zone) GetInt64ID() int64 { 31374 return accessor.GetInt64ID(o) 31375 } 31376 31377 // GetName returns value of Name 31378 func (o *Zone) GetName() string { 31379 return o.Name 31380 } 31381 31382 // SetName sets value to Name 31383 func (o *Zone) SetName(v string) { 31384 o.Name = v 31385 } 31386 31387 // GetDescription returns value of Description 31388 func (o *Zone) GetDescription() string { 31389 return o.Description 31390 } 31391 31392 // SetDescription sets value to Description 31393 func (o *Zone) SetDescription(v string) { 31394 o.Description = v 31395 } 31396 31397 // GetDisplayOrder returns value of DisplayOrder 31398 func (o *Zone) GetDisplayOrder() int64 { 31399 return o.DisplayOrder 31400 } 31401 31402 // SetDisplayOrder sets value to DisplayOrder 31403 func (o *Zone) SetDisplayOrder(v int64) { 31404 o.DisplayOrder = v 31405 } 31406 31407 // GetIsDummy returns value of IsDummy 31408 func (o *Zone) GetIsDummy() bool { 31409 return o.IsDummy 31410 } 31411 31412 // SetIsDummy sets value to IsDummy 31413 func (o *Zone) SetIsDummy(v bool) { 31414 o.IsDummy = v 31415 } 31416 31417 // GetVNCProxy returns value of VNCProxy 31418 func (o *Zone) GetVNCProxy() *VNCProxy { 31419 return o.VNCProxy 31420 } 31421 31422 // SetVNCProxy sets value to VNCProxy 31423 func (o *Zone) SetVNCProxy(v *VNCProxy) { 31424 o.VNCProxy = v 31425 } 31426 31427 // GetFTPServer returns value of FTPServer 31428 func (o *Zone) GetFTPServer() *FTPServerInfo { 31429 return o.FTPServer 31430 } 31431 31432 // SetFTPServer sets value to FTPServer 31433 func (o *Zone) SetFTPServer(v *FTPServerInfo) { 31434 o.FTPServer = v 31435 } 31436 31437 // GetRegion returns value of Region 31438 func (o *Zone) GetRegion() *Region { 31439 return o.Region 31440 } 31441 31442 // SetRegion sets value to Region 31443 func (o *Zone) SetRegion(v *Region) { 31444 o.Region = v 31445 }