zz_models.go raw
1 // Copyright 2022-2025 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 Backupv2Setting *DatabaseSettingBackupv2View `mapconv:"Settings.DBConf.Backupv2,recursive"`
6298 ReplicationSetting *DatabaseReplicationSetting `mapconv:"Settings.DBConf.Replication,recursive"`
6299 InterfaceSettings []*DatabaseSettingsInterface `mapconv:"Settings.DBConf.[]Interfaces,omitempty,recursive"`
6300 MonitoringSuite *MonitoringSuite `mapconv:"Settings.MonitoringSuite,omitempty,recursive"`
6301 SettingsHash string `json:",omitempty" mapconv:",omitempty"`
6302 InstanceHostName string `mapconv:"Instance.Host.Name"`
6303 InstanceHostInfoURL string `mapconv:"Instance.Host.InfoURL"`
6304 InstanceStatus types.EServerInstanceStatus `mapconv:"Instance.Status"`
6305 InstanceStatusChangedAt time.Time `mapconv:"Instance.StatusChangedAt"`
6306 PlanID types.ID `mapconv:"Remark.Plan.ID/Plan.ID"`
6307 SwitchID types.ID `mapconv:"Remark.Switch.ID"`
6308 Conf *DatabaseRemarkDBConfCommon `mapconv:"Remark.DBConf.Common,recursive"`
6309 DefaultRoute string `mapconv:"Remark.Network.DefaultRoute"`
6310 NetworkMaskLen int `mapconv:"Remark.Network.NetworkMaskLen"`
6311 IPAddresses []string `mapconv:"Remark.[]Servers.IPAddress"`
6312 ZoneID types.ID `mapconv:"Remark.Zone.ID"`
6313 Interfaces []*InterfaceView `json:",omitempty" mapconv:"[]Interfaces,recursive,omitempty"`
6314 Disk *DatabaseDisk `mapconv:"Disk,recursive"`
6315 }
6316
6317 // setDefaults implements iaas.argumentDefaulter
6318 func (o *Database) setDefaults() interface{} {
6319 return &struct {
6320 ID types.ID
6321 Class string
6322 Name string
6323 Description string
6324 Tags types.Tags
6325 Availability types.EAvailability
6326 IconID types.ID `mapconv:"Icon.ID"`
6327 CreatedAt time.Time
6328 ModifiedAt time.Time
6329 CommonSetting *DatabaseSettingCommon `mapconv:"Settings.DBConf.Common,recursive"`
6330 BackupSetting *DatabaseSettingBackup `mapconv:"Settings.DBConf.Backup,recursive"`
6331 Backupv2Setting *DatabaseSettingBackupv2View `mapconv:"Settings.DBConf.Backupv2,recursive"`
6332 ReplicationSetting *DatabaseReplicationSetting `mapconv:"Settings.DBConf.Replication,recursive"`
6333 InterfaceSettings []*DatabaseSettingsInterface `mapconv:"Settings.DBConf.[]Interfaces,omitempty,recursive"`
6334 MonitoringSuite *MonitoringSuite `mapconv:"Settings.MonitoringSuite,omitempty,recursive"`
6335 SettingsHash string `json:",omitempty" mapconv:",omitempty"`
6336 InstanceHostName string `mapconv:"Instance.Host.Name"`
6337 InstanceHostInfoURL string `mapconv:"Instance.Host.InfoURL"`
6338 InstanceStatus types.EServerInstanceStatus `mapconv:"Instance.Status"`
6339 InstanceStatusChangedAt time.Time `mapconv:"Instance.StatusChangedAt"`
6340 PlanID types.ID `mapconv:"Remark.Plan.ID/Plan.ID"`
6341 SwitchID types.ID `mapconv:"Remark.Switch.ID"`
6342 Conf *DatabaseRemarkDBConfCommon `mapconv:"Remark.DBConf.Common,recursive"`
6343 DefaultRoute string `mapconv:"Remark.Network.DefaultRoute"`
6344 NetworkMaskLen int `mapconv:"Remark.Network.NetworkMaskLen"`
6345 IPAddresses []string `mapconv:"Remark.[]Servers.IPAddress"`
6346 ZoneID types.ID `mapconv:"Remark.Zone.ID"`
6347 Interfaces []*InterfaceView `json:",omitempty" mapconv:"[]Interfaces,recursive,omitempty"`
6348 Disk *DatabaseDisk `mapconv:"Disk,recursive"`
6349 }{
6350 ID: o.GetID(),
6351 Class: o.GetClass(),
6352 Name: o.GetName(),
6353 Description: o.GetDescription(),
6354 Tags: o.GetTags(),
6355 Availability: o.GetAvailability(),
6356 IconID: o.GetIconID(),
6357 CreatedAt: o.GetCreatedAt(),
6358 ModifiedAt: o.GetModifiedAt(),
6359 CommonSetting: o.GetCommonSetting(),
6360 BackupSetting: o.GetBackupSetting(),
6361 Backupv2Setting: o.GetBackupv2Setting(),
6362 ReplicationSetting: o.GetReplicationSetting(),
6363 InterfaceSettings: o.GetInterfaceSettings(),
6364 MonitoringSuite: o.GetMonitoringSuite(),
6365 SettingsHash: o.GetSettingsHash(),
6366 InstanceHostName: o.GetInstanceHostName(),
6367 InstanceHostInfoURL: o.GetInstanceHostInfoURL(),
6368 InstanceStatus: o.GetInstanceStatus(),
6369 InstanceStatusChangedAt: o.GetInstanceStatusChangedAt(),
6370 PlanID: o.GetPlanID(),
6371 SwitchID: o.GetSwitchID(),
6372 Conf: o.GetConf(),
6373 DefaultRoute: o.GetDefaultRoute(),
6374 NetworkMaskLen: o.GetNetworkMaskLen(),
6375 IPAddresses: o.GetIPAddresses(),
6376 ZoneID: o.GetZoneID(),
6377 Interfaces: o.GetInterfaces(),
6378 Disk: o.GetDisk(),
6379 }
6380 }
6381
6382 // GetID returns value of ID
6383 func (o *Database) GetID() types.ID {
6384 return o.ID
6385 }
6386
6387 // SetID sets value to ID
6388 func (o *Database) SetID(v types.ID) {
6389 o.ID = v
6390 }
6391
6392 // SetStringID .
6393 func (o *Database) SetStringID(id string) {
6394 accessor.SetStringID(o, id)
6395 }
6396
6397 // GetStringID .
6398 func (o *Database) GetStringID() string {
6399 return accessor.GetStringID(o)
6400 }
6401
6402 // SetInt64ID .
6403 func (o *Database) SetInt64ID(id int64) {
6404 accessor.SetInt64ID(o, id)
6405 }
6406
6407 // GetInt64ID .
6408 func (o *Database) GetInt64ID() int64 {
6409 return accessor.GetInt64ID(o)
6410 }
6411
6412 // GetClass returns value of Class
6413 func (o *Database) GetClass() string {
6414 return o.Class
6415 }
6416
6417 // SetClass sets value to Class
6418 func (o *Database) SetClass(v string) {
6419 o.Class = v
6420 }
6421
6422 // GetName returns value of Name
6423 func (o *Database) GetName() string {
6424 return o.Name
6425 }
6426
6427 // SetName sets value to Name
6428 func (o *Database) SetName(v string) {
6429 o.Name = v
6430 }
6431
6432 // GetDescription returns value of Description
6433 func (o *Database) GetDescription() string {
6434 return o.Description
6435 }
6436
6437 // SetDescription sets value to Description
6438 func (o *Database) SetDescription(v string) {
6439 o.Description = v
6440 }
6441
6442 // GetTags returns value of Tags
6443 func (o *Database) GetTags() types.Tags {
6444 return o.Tags
6445 }
6446
6447 // SetTags sets value to Tags
6448 func (o *Database) SetTags(v types.Tags) {
6449 o.Tags = v
6450 }
6451
6452 // HasTag 指定のタグが存在する場合trueを返す
6453 func (o *Database) HasTag(tag string) bool {
6454 return accessor.HasTag(o, tag)
6455 }
6456
6457 // AppendTag 指定のタグを追加
6458 func (o *Database) AppendTag(tag string) {
6459 accessor.AppendTag(o, tag)
6460 }
6461
6462 // RemoveTag 指定のタグを削除
6463 func (o *Database) RemoveTag(tag string) {
6464 accessor.RemoveTag(o, tag)
6465 }
6466
6467 // ClearTags タグを全クリア
6468 func (o *Database) ClearTags() {
6469 accessor.ClearTags(o)
6470 }
6471
6472 // GetAvailability returns value of Availability
6473 func (o *Database) GetAvailability() types.EAvailability {
6474 return o.Availability
6475 }
6476
6477 // SetAvailability sets value to Availability
6478 func (o *Database) SetAvailability(v types.EAvailability) {
6479 o.Availability = v
6480 }
6481
6482 // GetIconID returns value of IconID
6483 func (o *Database) GetIconID() types.ID {
6484 return o.IconID
6485 }
6486
6487 // SetIconID sets value to IconID
6488 func (o *Database) SetIconID(v types.ID) {
6489 o.IconID = v
6490 }
6491
6492 // GetCreatedAt returns value of CreatedAt
6493 func (o *Database) GetCreatedAt() time.Time {
6494 return o.CreatedAt
6495 }
6496
6497 // SetCreatedAt sets value to CreatedAt
6498 func (o *Database) SetCreatedAt(v time.Time) {
6499 o.CreatedAt = v
6500 }
6501
6502 // GetModifiedAt returns value of ModifiedAt
6503 func (o *Database) GetModifiedAt() time.Time {
6504 return o.ModifiedAt
6505 }
6506
6507 // SetModifiedAt sets value to ModifiedAt
6508 func (o *Database) SetModifiedAt(v time.Time) {
6509 o.ModifiedAt = v
6510 }
6511
6512 // GetCommonSetting returns value of CommonSetting
6513 func (o *Database) GetCommonSetting() *DatabaseSettingCommon {
6514 return o.CommonSetting
6515 }
6516
6517 // SetCommonSetting sets value to CommonSetting
6518 func (o *Database) SetCommonSetting(v *DatabaseSettingCommon) {
6519 o.CommonSetting = v
6520 }
6521
6522 // GetBackupSetting returns value of BackupSetting
6523 func (o *Database) GetBackupSetting() *DatabaseSettingBackup {
6524 return o.BackupSetting
6525 }
6526
6527 // SetBackupSetting sets value to BackupSetting
6528 func (o *Database) SetBackupSetting(v *DatabaseSettingBackup) {
6529 o.BackupSetting = v
6530 }
6531
6532 // GetBackupv2Setting returns value of Backupv2Setting
6533 func (o *Database) GetBackupv2Setting() *DatabaseSettingBackupv2View {
6534 return o.Backupv2Setting
6535 }
6536
6537 // SetBackupv2Setting sets value to Backupv2Setting
6538 func (o *Database) SetBackupv2Setting(v *DatabaseSettingBackupv2View) {
6539 o.Backupv2Setting = v
6540 }
6541
6542 // GetReplicationSetting returns value of ReplicationSetting
6543 func (o *Database) GetReplicationSetting() *DatabaseReplicationSetting {
6544 return o.ReplicationSetting
6545 }
6546
6547 // SetReplicationSetting sets value to ReplicationSetting
6548 func (o *Database) SetReplicationSetting(v *DatabaseReplicationSetting) {
6549 o.ReplicationSetting = v
6550 }
6551
6552 // GetInterfaceSettings returns value of InterfaceSettings
6553 func (o *Database) GetInterfaceSettings() []*DatabaseSettingsInterface {
6554 return o.InterfaceSettings
6555 }
6556
6557 // SetInterfaceSettings sets value to InterfaceSettings
6558 func (o *Database) SetInterfaceSettings(v []*DatabaseSettingsInterface) {
6559 o.InterfaceSettings = v
6560 }
6561
6562 // GetMonitoringSuite returns value of MonitoringSuite
6563 func (o *Database) GetMonitoringSuite() *MonitoringSuite {
6564 return o.MonitoringSuite
6565 }
6566
6567 // SetMonitoringSuite sets value to MonitoringSuite
6568 func (o *Database) SetMonitoringSuite(v *MonitoringSuite) {
6569 o.MonitoringSuite = v
6570 }
6571
6572 // GetSettingsHash returns value of SettingsHash
6573 func (o *Database) GetSettingsHash() string {
6574 return o.SettingsHash
6575 }
6576
6577 // SetSettingsHash sets value to SettingsHash
6578 func (o *Database) SetSettingsHash(v string) {
6579 o.SettingsHash = v
6580 }
6581
6582 // GetInstanceHostName returns value of InstanceHostName
6583 func (o *Database) GetInstanceHostName() string {
6584 return o.InstanceHostName
6585 }
6586
6587 // SetInstanceHostName sets value to InstanceHostName
6588 func (o *Database) SetInstanceHostName(v string) {
6589 o.InstanceHostName = v
6590 }
6591
6592 // GetInstanceHostInfoURL returns value of InstanceHostInfoURL
6593 func (o *Database) GetInstanceHostInfoURL() string {
6594 return o.InstanceHostInfoURL
6595 }
6596
6597 // SetInstanceHostInfoURL sets value to InstanceHostInfoURL
6598 func (o *Database) SetInstanceHostInfoURL(v string) {
6599 o.InstanceHostInfoURL = v
6600 }
6601
6602 // GetInstanceStatus returns value of InstanceStatus
6603 func (o *Database) GetInstanceStatus() types.EServerInstanceStatus {
6604 return o.InstanceStatus
6605 }
6606
6607 // SetInstanceStatus sets value to InstanceStatus
6608 func (o *Database) SetInstanceStatus(v types.EServerInstanceStatus) {
6609 o.InstanceStatus = v
6610 }
6611
6612 // GetInstanceStatusChangedAt returns value of InstanceStatusChangedAt
6613 func (o *Database) GetInstanceStatusChangedAt() time.Time {
6614 return o.InstanceStatusChangedAt
6615 }
6616
6617 // SetInstanceStatusChangedAt sets value to InstanceStatusChangedAt
6618 func (o *Database) SetInstanceStatusChangedAt(v time.Time) {
6619 o.InstanceStatusChangedAt = v
6620 }
6621
6622 // GetPlanID returns value of PlanID
6623 func (o *Database) GetPlanID() types.ID {
6624 return o.PlanID
6625 }
6626
6627 // SetPlanID sets value to PlanID
6628 func (o *Database) SetPlanID(v types.ID) {
6629 o.PlanID = v
6630 }
6631
6632 // GetSwitchID returns value of SwitchID
6633 func (o *Database) GetSwitchID() types.ID {
6634 return o.SwitchID
6635 }
6636
6637 // SetSwitchID sets value to SwitchID
6638 func (o *Database) SetSwitchID(v types.ID) {
6639 o.SwitchID = v
6640 }
6641
6642 // GetConf returns value of Conf
6643 func (o *Database) GetConf() *DatabaseRemarkDBConfCommon {
6644 return o.Conf
6645 }
6646
6647 // SetConf sets value to Conf
6648 func (o *Database) SetConf(v *DatabaseRemarkDBConfCommon) {
6649 o.Conf = v
6650 }
6651
6652 // GetDefaultRoute returns value of DefaultRoute
6653 func (o *Database) GetDefaultRoute() string {
6654 return o.DefaultRoute
6655 }
6656
6657 // SetDefaultRoute sets value to DefaultRoute
6658 func (o *Database) SetDefaultRoute(v string) {
6659 o.DefaultRoute = v
6660 }
6661
6662 // GetNetworkMaskLen returns value of NetworkMaskLen
6663 func (o *Database) GetNetworkMaskLen() int {
6664 return o.NetworkMaskLen
6665 }
6666
6667 // SetNetworkMaskLen sets value to NetworkMaskLen
6668 func (o *Database) SetNetworkMaskLen(v int) {
6669 o.NetworkMaskLen = v
6670 }
6671
6672 // GetIPAddresses returns value of IPAddresses
6673 func (o *Database) GetIPAddresses() []string {
6674 return o.IPAddresses
6675 }
6676
6677 // SetIPAddresses sets value to IPAddresses
6678 func (o *Database) SetIPAddresses(v []string) {
6679 o.IPAddresses = v
6680 }
6681
6682 // GetZoneID returns value of ZoneID
6683 func (o *Database) GetZoneID() types.ID {
6684 return o.ZoneID
6685 }
6686
6687 // SetZoneID sets value to ZoneID
6688 func (o *Database) SetZoneID(v types.ID) {
6689 o.ZoneID = v
6690 }
6691
6692 // GetInterfaces returns value of Interfaces
6693 func (o *Database) GetInterfaces() []*InterfaceView {
6694 return o.Interfaces
6695 }
6696
6697 // SetInterfaces sets value to Interfaces
6698 func (o *Database) SetInterfaces(v []*InterfaceView) {
6699 o.Interfaces = v
6700 }
6701
6702 // GetDisk returns value of Disk
6703 func (o *Database) GetDisk() *DatabaseDisk {
6704 return o.Disk
6705 }
6706
6707 // SetDisk sets value to Disk
6708 func (o *Database) SetDisk(v *DatabaseDisk) {
6709 o.Disk = v
6710 }
6711
6712 /*************************************************
6713 * DatabaseSettingCommon
6714 *************************************************/
6715
6716 // DatabaseSettingCommon represents API parameter/response structure
6717 type DatabaseSettingCommon struct {
6718 WebUI types.WebUI
6719 ServicePort int
6720 SourceNetwork []string
6721 DefaultUser string
6722 UserPassword string
6723 ReplicaUser string
6724 ReplicaPassword string
6725 }
6726
6727 // setDefaults implements iaas.argumentDefaulter
6728 func (o *DatabaseSettingCommon) setDefaults() interface{} {
6729 return &struct {
6730 WebUI types.WebUI
6731 ServicePort int
6732 SourceNetwork []string
6733 DefaultUser string
6734 UserPassword string
6735 ReplicaUser string
6736 ReplicaPassword string
6737 }{
6738 WebUI: o.GetWebUI(),
6739 ServicePort: o.GetServicePort(),
6740 SourceNetwork: o.GetSourceNetwork(),
6741 DefaultUser: o.GetDefaultUser(),
6742 UserPassword: o.GetUserPassword(),
6743 ReplicaUser: o.GetReplicaUser(),
6744 ReplicaPassword: o.GetReplicaPassword(),
6745 }
6746 }
6747
6748 // GetWebUI returns value of WebUI
6749 func (o *DatabaseSettingCommon) GetWebUI() types.WebUI {
6750 return o.WebUI
6751 }
6752
6753 // SetWebUI sets value to WebUI
6754 func (o *DatabaseSettingCommon) SetWebUI(v types.WebUI) {
6755 o.WebUI = v
6756 }
6757
6758 // GetServicePort returns value of ServicePort
6759 func (o *DatabaseSettingCommon) GetServicePort() int {
6760 return o.ServicePort
6761 }
6762
6763 // SetServicePort sets value to ServicePort
6764 func (o *DatabaseSettingCommon) SetServicePort(v int) {
6765 o.ServicePort = v
6766 }
6767
6768 // GetSourceNetwork returns value of SourceNetwork
6769 func (o *DatabaseSettingCommon) GetSourceNetwork() []string {
6770 return o.SourceNetwork
6771 }
6772
6773 // SetSourceNetwork sets value to SourceNetwork
6774 func (o *DatabaseSettingCommon) SetSourceNetwork(v []string) {
6775 o.SourceNetwork = v
6776 }
6777
6778 // GetDefaultUser returns value of DefaultUser
6779 func (o *DatabaseSettingCommon) GetDefaultUser() string {
6780 return o.DefaultUser
6781 }
6782
6783 // SetDefaultUser sets value to DefaultUser
6784 func (o *DatabaseSettingCommon) SetDefaultUser(v string) {
6785 o.DefaultUser = v
6786 }
6787
6788 // GetUserPassword returns value of UserPassword
6789 func (o *DatabaseSettingCommon) GetUserPassword() string {
6790 return o.UserPassword
6791 }
6792
6793 // SetUserPassword sets value to UserPassword
6794 func (o *DatabaseSettingCommon) SetUserPassword(v string) {
6795 o.UserPassword = v
6796 }
6797
6798 // GetReplicaUser returns value of ReplicaUser
6799 func (o *DatabaseSettingCommon) GetReplicaUser() string {
6800 return o.ReplicaUser
6801 }
6802
6803 // SetReplicaUser sets value to ReplicaUser
6804 func (o *DatabaseSettingCommon) SetReplicaUser(v string) {
6805 o.ReplicaUser = v
6806 }
6807
6808 // GetReplicaPassword returns value of ReplicaPassword
6809 func (o *DatabaseSettingCommon) GetReplicaPassword() string {
6810 return o.ReplicaPassword
6811 }
6812
6813 // SetReplicaPassword sets value to ReplicaPassword
6814 func (o *DatabaseSettingCommon) SetReplicaPassword(v string) {
6815 o.ReplicaPassword = v
6816 }
6817
6818 /*************************************************
6819 * DatabaseSettingBackup
6820 *************************************************/
6821
6822 // DatabaseSettingBackup represents API parameter/response structure
6823 type DatabaseSettingBackup struct {
6824 Rotate int
6825 Time string
6826 DayOfWeek []types.EDayOfTheWeek
6827 Connect string
6828 }
6829
6830 // setDefaults implements iaas.argumentDefaulter
6831 func (o *DatabaseSettingBackup) setDefaults() interface{} {
6832 return &struct {
6833 Rotate int
6834 Time string
6835 DayOfWeek []types.EDayOfTheWeek
6836 Connect string
6837 }{
6838 Rotate: o.GetRotate(),
6839 Time: o.GetTime(),
6840 DayOfWeek: o.GetDayOfWeek(),
6841 Connect: o.GetConnect(),
6842 }
6843 }
6844
6845 // GetRotate returns value of Rotate
6846 func (o *DatabaseSettingBackup) GetRotate() int {
6847 return o.Rotate
6848 }
6849
6850 // SetRotate sets value to Rotate
6851 func (o *DatabaseSettingBackup) SetRotate(v int) {
6852 o.Rotate = v
6853 }
6854
6855 // GetTime returns value of Time
6856 func (o *DatabaseSettingBackup) GetTime() string {
6857 return o.Time
6858 }
6859
6860 // SetTime sets value to Time
6861 func (o *DatabaseSettingBackup) SetTime(v string) {
6862 o.Time = v
6863 }
6864
6865 // GetDayOfWeek returns value of DayOfWeek
6866 func (o *DatabaseSettingBackup) GetDayOfWeek() []types.EDayOfTheWeek {
6867 return o.DayOfWeek
6868 }
6869
6870 // SetDayOfWeek sets value to DayOfWeek
6871 func (o *DatabaseSettingBackup) SetDayOfWeek(v []types.EDayOfTheWeek) {
6872 o.DayOfWeek = v
6873 }
6874
6875 // GetConnect returns value of Connect
6876 func (o *DatabaseSettingBackup) GetConnect() string {
6877 return o.Connect
6878 }
6879
6880 // SetConnect sets value to Connect
6881 func (o *DatabaseSettingBackup) SetConnect(v string) {
6882 o.Connect = v
6883 }
6884
6885 /*************************************************
6886 * DatabaseSettingBackupv2View
6887 *************************************************/
6888
6889 // DatabaseSettingBackupv2View represents API parameter/response structure
6890 type DatabaseSettingBackupv2View struct {
6891 Rotate int
6892 Time string
6893 DayOfWeek []types.EDayOfTheWeek
6894 Connect string
6895 FirstEnabledAt time.Time
6896 }
6897
6898 // setDefaults implements iaas.argumentDefaulter
6899 func (o *DatabaseSettingBackupv2View) setDefaults() interface{} {
6900 return &struct {
6901 Rotate int
6902 Time string
6903 DayOfWeek []types.EDayOfTheWeek
6904 Connect string
6905 FirstEnabledAt time.Time
6906 }{
6907 Rotate: o.GetRotate(),
6908 Time: o.GetTime(),
6909 DayOfWeek: o.GetDayOfWeek(),
6910 Connect: o.GetConnect(),
6911 FirstEnabledAt: o.GetFirstEnabledAt(),
6912 }
6913 }
6914
6915 // GetRotate returns value of Rotate
6916 func (o *DatabaseSettingBackupv2View) GetRotate() int {
6917 return o.Rotate
6918 }
6919
6920 // SetRotate sets value to Rotate
6921 func (o *DatabaseSettingBackupv2View) SetRotate(v int) {
6922 o.Rotate = v
6923 }
6924
6925 // GetTime returns value of Time
6926 func (o *DatabaseSettingBackupv2View) GetTime() string {
6927 return o.Time
6928 }
6929
6930 // SetTime sets value to Time
6931 func (o *DatabaseSettingBackupv2View) SetTime(v string) {
6932 o.Time = v
6933 }
6934
6935 // GetDayOfWeek returns value of DayOfWeek
6936 func (o *DatabaseSettingBackupv2View) GetDayOfWeek() []types.EDayOfTheWeek {
6937 return o.DayOfWeek
6938 }
6939
6940 // SetDayOfWeek sets value to DayOfWeek
6941 func (o *DatabaseSettingBackupv2View) SetDayOfWeek(v []types.EDayOfTheWeek) {
6942 o.DayOfWeek = v
6943 }
6944
6945 // GetConnect returns value of Connect
6946 func (o *DatabaseSettingBackupv2View) GetConnect() string {
6947 return o.Connect
6948 }
6949
6950 // SetConnect sets value to Connect
6951 func (o *DatabaseSettingBackupv2View) SetConnect(v string) {
6952 o.Connect = v
6953 }
6954
6955 // GetFirstEnabledAt returns value of FirstEnabledAt
6956 func (o *DatabaseSettingBackupv2View) GetFirstEnabledAt() time.Time {
6957 return o.FirstEnabledAt
6958 }
6959
6960 // SetFirstEnabledAt sets value to FirstEnabledAt
6961 func (o *DatabaseSettingBackupv2View) SetFirstEnabledAt(v time.Time) {
6962 o.FirstEnabledAt = v
6963 }
6964
6965 /*************************************************
6966 * DatabaseReplicationSetting
6967 *************************************************/
6968
6969 // DatabaseReplicationSetting represents API parameter/response structure
6970 type DatabaseReplicationSetting struct {
6971 Model types.EDatabaseReplicationModel
6972 IPAddress string
6973 Port int
6974 User string
6975 Password string
6976 ApplianceID types.ID `mapconv:"Appliance.ID"`
6977 }
6978
6979 // setDefaults implements iaas.argumentDefaulter
6980 func (o *DatabaseReplicationSetting) setDefaults() interface{} {
6981 return &struct {
6982 Model types.EDatabaseReplicationModel
6983 IPAddress string
6984 Port int
6985 User string
6986 Password string
6987 ApplianceID types.ID `mapconv:"Appliance.ID"`
6988 }{
6989 Model: o.GetModel(),
6990 IPAddress: o.GetIPAddress(),
6991 Port: o.GetPort(),
6992 User: o.GetUser(),
6993 Password: o.GetPassword(),
6994 ApplianceID: o.GetApplianceID(),
6995 }
6996 }
6997
6998 // GetModel returns value of Model
6999 func (o *DatabaseReplicationSetting) GetModel() types.EDatabaseReplicationModel {
7000 return o.Model
7001 }
7002
7003 // SetModel sets value to Model
7004 func (o *DatabaseReplicationSetting) SetModel(v types.EDatabaseReplicationModel) {
7005 o.Model = v
7006 }
7007
7008 // GetIPAddress returns value of IPAddress
7009 func (o *DatabaseReplicationSetting) GetIPAddress() string {
7010 return o.IPAddress
7011 }
7012
7013 // SetIPAddress sets value to IPAddress
7014 func (o *DatabaseReplicationSetting) SetIPAddress(v string) {
7015 o.IPAddress = v
7016 }
7017
7018 // GetPort returns value of Port
7019 func (o *DatabaseReplicationSetting) GetPort() int {
7020 return o.Port
7021 }
7022
7023 // SetPort sets value to Port
7024 func (o *DatabaseReplicationSetting) SetPort(v int) {
7025 o.Port = v
7026 }
7027
7028 // GetUser returns value of User
7029 func (o *DatabaseReplicationSetting) GetUser() string {
7030 return o.User
7031 }
7032
7033 // SetUser sets value to User
7034 func (o *DatabaseReplicationSetting) SetUser(v string) {
7035 o.User = v
7036 }
7037
7038 // GetPassword returns value of Password
7039 func (o *DatabaseReplicationSetting) GetPassword() string {
7040 return o.Password
7041 }
7042
7043 // SetPassword sets value to Password
7044 func (o *DatabaseReplicationSetting) SetPassword(v string) {
7045 o.Password = v
7046 }
7047
7048 // GetApplianceID returns value of ApplianceID
7049 func (o *DatabaseReplicationSetting) GetApplianceID() types.ID {
7050 return o.ApplianceID
7051 }
7052
7053 // SetApplianceID sets value to ApplianceID
7054 func (o *DatabaseReplicationSetting) SetApplianceID(v types.ID) {
7055 o.ApplianceID = v
7056 }
7057
7058 /*************************************************
7059 * DatabaseSettingsInterface
7060 *************************************************/
7061
7062 // DatabaseSettingsInterface represents API parameter/response structure
7063 type DatabaseSettingsInterface struct {
7064 VirtualIPAddress string
7065 Index int
7066 }
7067
7068 // setDefaults implements iaas.argumentDefaulter
7069 func (o *DatabaseSettingsInterface) setDefaults() interface{} {
7070 return &struct {
7071 VirtualIPAddress string
7072 Index int
7073 }{
7074 VirtualIPAddress: o.GetVirtualIPAddress(),
7075 Index: o.GetIndex(),
7076 }
7077 }
7078
7079 // GetVirtualIPAddress returns value of VirtualIPAddress
7080 func (o *DatabaseSettingsInterface) GetVirtualIPAddress() string {
7081 return o.VirtualIPAddress
7082 }
7083
7084 // SetVirtualIPAddress sets value to VirtualIPAddress
7085 func (o *DatabaseSettingsInterface) SetVirtualIPAddress(v string) {
7086 o.VirtualIPAddress = v
7087 }
7088
7089 // GetIndex returns value of Index
7090 func (o *DatabaseSettingsInterface) GetIndex() int {
7091 return o.Index
7092 }
7093
7094 // SetIndex sets value to Index
7095 func (o *DatabaseSettingsInterface) SetIndex(v int) {
7096 o.Index = v
7097 }
7098
7099 /*************************************************
7100 * MonitoringSuite
7101 *************************************************/
7102
7103 // MonitoringSuite represents API parameter/response structure
7104 type MonitoringSuite struct {
7105 Enabled bool
7106 }
7107
7108 // setDefaults implements iaas.argumentDefaulter
7109 func (o *MonitoringSuite) setDefaults() interface{} {
7110 return &struct {
7111 Enabled bool
7112 }{
7113 Enabled: o.GetEnabled(),
7114 }
7115 }
7116
7117 // GetEnabled returns value of Enabled
7118 func (o *MonitoringSuite) GetEnabled() bool {
7119 return o.Enabled
7120 }
7121
7122 // SetEnabled sets value to Enabled
7123 func (o *MonitoringSuite) SetEnabled(v bool) {
7124 o.Enabled = v
7125 }
7126
7127 /*************************************************
7128 * DatabaseRemarkDBConfCommon
7129 *************************************************/
7130
7131 // DatabaseRemarkDBConfCommon represents API parameter/response structure
7132 type DatabaseRemarkDBConfCommon struct {
7133 DatabaseName string
7134 DatabaseVersion string
7135 DatabaseRevision string
7136 DefaultUser string
7137 UserPassword string
7138 }
7139
7140 // setDefaults implements iaas.argumentDefaulter
7141 func (o *DatabaseRemarkDBConfCommon) setDefaults() interface{} {
7142 return &struct {
7143 DatabaseName string
7144 DatabaseVersion string
7145 DatabaseRevision string
7146 DefaultUser string
7147 UserPassword string
7148 }{
7149 DatabaseName: o.GetDatabaseName(),
7150 DatabaseVersion: o.GetDatabaseVersion(),
7151 DatabaseRevision: o.GetDatabaseRevision(),
7152 DefaultUser: o.GetDefaultUser(),
7153 UserPassword: o.GetUserPassword(),
7154 }
7155 }
7156
7157 // GetDatabaseName returns value of DatabaseName
7158 func (o *DatabaseRemarkDBConfCommon) GetDatabaseName() string {
7159 return o.DatabaseName
7160 }
7161
7162 // SetDatabaseName sets value to DatabaseName
7163 func (o *DatabaseRemarkDBConfCommon) SetDatabaseName(v string) {
7164 o.DatabaseName = v
7165 }
7166
7167 // GetDatabaseVersion returns value of DatabaseVersion
7168 func (o *DatabaseRemarkDBConfCommon) GetDatabaseVersion() string {
7169 return o.DatabaseVersion
7170 }
7171
7172 // SetDatabaseVersion sets value to DatabaseVersion
7173 func (o *DatabaseRemarkDBConfCommon) SetDatabaseVersion(v string) {
7174 o.DatabaseVersion = v
7175 }
7176
7177 // GetDatabaseRevision returns value of DatabaseRevision
7178 func (o *DatabaseRemarkDBConfCommon) GetDatabaseRevision() string {
7179 return o.DatabaseRevision
7180 }
7181
7182 // SetDatabaseRevision sets value to DatabaseRevision
7183 func (o *DatabaseRemarkDBConfCommon) SetDatabaseRevision(v string) {
7184 o.DatabaseRevision = v
7185 }
7186
7187 // GetDefaultUser returns value of DefaultUser
7188 func (o *DatabaseRemarkDBConfCommon) GetDefaultUser() string {
7189 return o.DefaultUser
7190 }
7191
7192 // SetDefaultUser sets value to DefaultUser
7193 func (o *DatabaseRemarkDBConfCommon) SetDefaultUser(v string) {
7194 o.DefaultUser = v
7195 }
7196
7197 // GetUserPassword returns value of UserPassword
7198 func (o *DatabaseRemarkDBConfCommon) GetUserPassword() string {
7199 return o.UserPassword
7200 }
7201
7202 // SetUserPassword sets value to UserPassword
7203 func (o *DatabaseRemarkDBConfCommon) SetUserPassword(v string) {
7204 o.UserPassword = v
7205 }
7206
7207 /*************************************************
7208 * InterfaceView
7209 *************************************************/
7210
7211 // InterfaceView represents API parameter/response structure
7212 type InterfaceView struct {
7213 ID types.ID
7214 MACAddress string
7215 IPAddress string
7216 UserIPAddress string
7217 HostName string
7218 SwitchID types.ID `mapconv:"Switch.ID"`
7219 SwitchName string `mapconv:"Switch.Name"`
7220 SwitchScope types.EScope `mapconv:"Switch.Scope"`
7221 UserSubnetDefaultRoute string `mapconv:"Switch.UserSubnet.DefaultRoute"`
7222 UserSubnetNetworkMaskLen int `mapconv:"Switch.UserSubnet.NetworkMaskLen"`
7223 SubnetDefaultRoute string `mapconv:"Switch.Subnet.DefaultRoute"`
7224 SubnetNetworkMaskLen int `mapconv:"Switch.Subnet.NetworkMaskLen"`
7225 SubnetNetworkAddress string `mapconv:"Switch.Subnet.NetworkAddress"`
7226 SubnetBandWidthMbps int `mapconv:"Switch.Subnet.Internet.BandWidthMbps"`
7227 PacketFilterID types.ID `mapconv:"PacketFilter.ID"`
7228 PacketFilterName string `mapconv:"PacketFilter.Name"`
7229 PacketFilterRequiredHostVersion types.StringNumber `mapconv:"PacketFilter.RequiredHostVersionn"`
7230 UpstreamType types.EUpstreamNetworkType
7231 }
7232
7233 // setDefaults implements iaas.argumentDefaulter
7234 func (o *InterfaceView) setDefaults() interface{} {
7235 return &struct {
7236 ID types.ID
7237 MACAddress string
7238 IPAddress string
7239 UserIPAddress string
7240 HostName string
7241 SwitchID types.ID `mapconv:"Switch.ID"`
7242 SwitchName string `mapconv:"Switch.Name"`
7243 SwitchScope types.EScope `mapconv:"Switch.Scope"`
7244 UserSubnetDefaultRoute string `mapconv:"Switch.UserSubnet.DefaultRoute"`
7245 UserSubnetNetworkMaskLen int `mapconv:"Switch.UserSubnet.NetworkMaskLen"`
7246 SubnetDefaultRoute string `mapconv:"Switch.Subnet.DefaultRoute"`
7247 SubnetNetworkMaskLen int `mapconv:"Switch.Subnet.NetworkMaskLen"`
7248 SubnetNetworkAddress string `mapconv:"Switch.Subnet.NetworkAddress"`
7249 SubnetBandWidthMbps int `mapconv:"Switch.Subnet.Internet.BandWidthMbps"`
7250 PacketFilterID types.ID `mapconv:"PacketFilter.ID"`
7251 PacketFilterName string `mapconv:"PacketFilter.Name"`
7252 PacketFilterRequiredHostVersion types.StringNumber `mapconv:"PacketFilter.RequiredHostVersionn"`
7253 UpstreamType types.EUpstreamNetworkType
7254 }{
7255 ID: o.GetID(),
7256 MACAddress: o.GetMACAddress(),
7257 IPAddress: o.GetIPAddress(),
7258 UserIPAddress: o.GetUserIPAddress(),
7259 HostName: o.GetHostName(),
7260 SwitchID: o.GetSwitchID(),
7261 SwitchName: o.GetSwitchName(),
7262 SwitchScope: o.GetSwitchScope(),
7263 UserSubnetDefaultRoute: o.GetUserSubnetDefaultRoute(),
7264 UserSubnetNetworkMaskLen: o.GetUserSubnetNetworkMaskLen(),
7265 SubnetDefaultRoute: o.GetSubnetDefaultRoute(),
7266 SubnetNetworkMaskLen: o.GetSubnetNetworkMaskLen(),
7267 SubnetNetworkAddress: o.GetSubnetNetworkAddress(),
7268 SubnetBandWidthMbps: o.GetSubnetBandWidthMbps(),
7269 PacketFilterID: o.GetPacketFilterID(),
7270 PacketFilterName: o.GetPacketFilterName(),
7271 PacketFilterRequiredHostVersion: o.GetPacketFilterRequiredHostVersion(),
7272 UpstreamType: o.GetUpstreamType(),
7273 }
7274 }
7275
7276 // GetID returns value of ID
7277 func (o *InterfaceView) GetID() types.ID {
7278 return o.ID
7279 }
7280
7281 // SetID sets value to ID
7282 func (o *InterfaceView) SetID(v types.ID) {
7283 o.ID = v
7284 }
7285
7286 // SetStringID .
7287 func (o *InterfaceView) SetStringID(id string) {
7288 accessor.SetStringID(o, id)
7289 }
7290
7291 // GetStringID .
7292 func (o *InterfaceView) GetStringID() string {
7293 return accessor.GetStringID(o)
7294 }
7295
7296 // SetInt64ID .
7297 func (o *InterfaceView) SetInt64ID(id int64) {
7298 accessor.SetInt64ID(o, id)
7299 }
7300
7301 // GetInt64ID .
7302 func (o *InterfaceView) GetInt64ID() int64 {
7303 return accessor.GetInt64ID(o)
7304 }
7305
7306 // GetMACAddress returns value of MACAddress
7307 func (o *InterfaceView) GetMACAddress() string {
7308 return o.MACAddress
7309 }
7310
7311 // SetMACAddress sets value to MACAddress
7312 func (o *InterfaceView) SetMACAddress(v string) {
7313 o.MACAddress = v
7314 }
7315
7316 // GetIPAddress returns value of IPAddress
7317 func (o *InterfaceView) GetIPAddress() string {
7318 return o.IPAddress
7319 }
7320
7321 // SetIPAddress sets value to IPAddress
7322 func (o *InterfaceView) SetIPAddress(v string) {
7323 o.IPAddress = v
7324 }
7325
7326 // GetUserIPAddress returns value of UserIPAddress
7327 func (o *InterfaceView) GetUserIPAddress() string {
7328 return o.UserIPAddress
7329 }
7330
7331 // SetUserIPAddress sets value to UserIPAddress
7332 func (o *InterfaceView) SetUserIPAddress(v string) {
7333 o.UserIPAddress = v
7334 }
7335
7336 // GetHostName returns value of HostName
7337 func (o *InterfaceView) GetHostName() string {
7338 return o.HostName
7339 }
7340
7341 // SetHostName sets value to HostName
7342 func (o *InterfaceView) SetHostName(v string) {
7343 o.HostName = v
7344 }
7345
7346 // GetSwitchID returns value of SwitchID
7347 func (o *InterfaceView) GetSwitchID() types.ID {
7348 return o.SwitchID
7349 }
7350
7351 // SetSwitchID sets value to SwitchID
7352 func (o *InterfaceView) SetSwitchID(v types.ID) {
7353 o.SwitchID = v
7354 }
7355
7356 // GetSwitchName returns value of SwitchName
7357 func (o *InterfaceView) GetSwitchName() string {
7358 return o.SwitchName
7359 }
7360
7361 // SetSwitchName sets value to SwitchName
7362 func (o *InterfaceView) SetSwitchName(v string) {
7363 o.SwitchName = v
7364 }
7365
7366 // GetSwitchScope returns value of SwitchScope
7367 func (o *InterfaceView) GetSwitchScope() types.EScope {
7368 return o.SwitchScope
7369 }
7370
7371 // SetSwitchScope sets value to SwitchScope
7372 func (o *InterfaceView) SetSwitchScope(v types.EScope) {
7373 o.SwitchScope = v
7374 }
7375
7376 // GetUserSubnetDefaultRoute returns value of UserSubnetDefaultRoute
7377 func (o *InterfaceView) GetUserSubnetDefaultRoute() string {
7378 return o.UserSubnetDefaultRoute
7379 }
7380
7381 // SetUserSubnetDefaultRoute sets value to UserSubnetDefaultRoute
7382 func (o *InterfaceView) SetUserSubnetDefaultRoute(v string) {
7383 o.UserSubnetDefaultRoute = v
7384 }
7385
7386 // GetUserSubnetNetworkMaskLen returns value of UserSubnetNetworkMaskLen
7387 func (o *InterfaceView) GetUserSubnetNetworkMaskLen() int {
7388 return o.UserSubnetNetworkMaskLen
7389 }
7390
7391 // SetUserSubnetNetworkMaskLen sets value to UserSubnetNetworkMaskLen
7392 func (o *InterfaceView) SetUserSubnetNetworkMaskLen(v int) {
7393 o.UserSubnetNetworkMaskLen = v
7394 }
7395
7396 // GetSubnetDefaultRoute returns value of SubnetDefaultRoute
7397 func (o *InterfaceView) GetSubnetDefaultRoute() string {
7398 return o.SubnetDefaultRoute
7399 }
7400
7401 // SetSubnetDefaultRoute sets value to SubnetDefaultRoute
7402 func (o *InterfaceView) SetSubnetDefaultRoute(v string) {
7403 o.SubnetDefaultRoute = v
7404 }
7405
7406 // GetSubnetNetworkMaskLen returns value of SubnetNetworkMaskLen
7407 func (o *InterfaceView) GetSubnetNetworkMaskLen() int {
7408 return o.SubnetNetworkMaskLen
7409 }
7410
7411 // SetSubnetNetworkMaskLen sets value to SubnetNetworkMaskLen
7412 func (o *InterfaceView) SetSubnetNetworkMaskLen(v int) {
7413 o.SubnetNetworkMaskLen = v
7414 }
7415
7416 // GetSubnetNetworkAddress returns value of SubnetNetworkAddress
7417 func (o *InterfaceView) GetSubnetNetworkAddress() string {
7418 return o.SubnetNetworkAddress
7419 }
7420
7421 // SetSubnetNetworkAddress sets value to SubnetNetworkAddress
7422 func (o *InterfaceView) SetSubnetNetworkAddress(v string) {
7423 o.SubnetNetworkAddress = v
7424 }
7425
7426 // GetSubnetBandWidthMbps returns value of SubnetBandWidthMbps
7427 func (o *InterfaceView) GetSubnetBandWidthMbps() int {
7428 return o.SubnetBandWidthMbps
7429 }
7430
7431 // SetSubnetBandWidthMbps sets value to SubnetBandWidthMbps
7432 func (o *InterfaceView) SetSubnetBandWidthMbps(v int) {
7433 o.SubnetBandWidthMbps = v
7434 }
7435
7436 // GetPacketFilterID returns value of PacketFilterID
7437 func (o *InterfaceView) GetPacketFilterID() types.ID {
7438 return o.PacketFilterID
7439 }
7440
7441 // SetPacketFilterID sets value to PacketFilterID
7442 func (o *InterfaceView) SetPacketFilterID(v types.ID) {
7443 o.PacketFilterID = v
7444 }
7445
7446 // GetPacketFilterName returns value of PacketFilterName
7447 func (o *InterfaceView) GetPacketFilterName() string {
7448 return o.PacketFilterName
7449 }
7450
7451 // SetPacketFilterName sets value to PacketFilterName
7452 func (o *InterfaceView) SetPacketFilterName(v string) {
7453 o.PacketFilterName = v
7454 }
7455
7456 // GetPacketFilterRequiredHostVersion returns value of PacketFilterRequiredHostVersion
7457 func (o *InterfaceView) GetPacketFilterRequiredHostVersion() types.StringNumber {
7458 return o.PacketFilterRequiredHostVersion
7459 }
7460
7461 // SetPacketFilterRequiredHostVersion sets value to PacketFilterRequiredHostVersion
7462 func (o *InterfaceView) SetPacketFilterRequiredHostVersion(v types.StringNumber) {
7463 o.PacketFilterRequiredHostVersion = v
7464 }
7465
7466 // GetUpstreamType returns value of UpstreamType
7467 func (o *InterfaceView) GetUpstreamType() types.EUpstreamNetworkType {
7468 return o.UpstreamType
7469 }
7470
7471 // SetUpstreamType sets value to UpstreamType
7472 func (o *InterfaceView) SetUpstreamType(v types.EUpstreamNetworkType) {
7473 o.UpstreamType = v
7474 }
7475
7476 /*************************************************
7477 * DatabaseDisk
7478 *************************************************/
7479
7480 // DatabaseDisk represents API parameter/response structure
7481 type DatabaseDisk struct {
7482 EncryptionAlgorithm types.EDiskEncryptionAlgorithm
7483 EncryptionKeyID types.ID `mapconv:"EncryptionKey.KMSKeyID"`
7484 }
7485
7486 // setDefaults implements iaas.argumentDefaulter
7487 func (o *DatabaseDisk) setDefaults() interface{} {
7488 return &struct {
7489 EncryptionAlgorithm types.EDiskEncryptionAlgorithm
7490 EncryptionKeyID types.ID `mapconv:"EncryptionKey.KMSKeyID"`
7491 }{
7492 EncryptionAlgorithm: o.GetEncryptionAlgorithm(),
7493 EncryptionKeyID: o.GetEncryptionKeyID(),
7494 }
7495 }
7496
7497 // GetEncryptionAlgorithm returns value of EncryptionAlgorithm
7498 func (o *DatabaseDisk) GetEncryptionAlgorithm() types.EDiskEncryptionAlgorithm {
7499 return o.EncryptionAlgorithm
7500 }
7501
7502 // SetEncryptionAlgorithm sets value to EncryptionAlgorithm
7503 func (o *DatabaseDisk) SetEncryptionAlgorithm(v types.EDiskEncryptionAlgorithm) {
7504 o.EncryptionAlgorithm = v
7505 }
7506
7507 // GetEncryptionKeyID returns value of EncryptionKeyID
7508 func (o *DatabaseDisk) GetEncryptionKeyID() types.ID {
7509 return o.EncryptionKeyID
7510 }
7511
7512 // SetEncryptionKeyID sets value to EncryptionKeyID
7513 func (o *DatabaseDisk) SetEncryptionKeyID(v types.ID) {
7514 o.EncryptionKeyID = v
7515 }
7516
7517 /*************************************************
7518 * DatabaseCreateRequest
7519 *************************************************/
7520
7521 // DatabaseCreateRequest represents API parameter/response structure
7522 type DatabaseCreateRequest struct {
7523 PlanID types.ID `mapconv:"Remark.Plan.ID/Plan.ID"`
7524 SwitchID types.ID `mapconv:"Remark.Switch.ID"`
7525 IPAddresses []string `mapconv:"Remark.[]Servers.IPAddress"`
7526 NetworkMaskLen int `mapconv:"Remark.Network.NetworkMaskLen"`
7527 DefaultRoute string `mapconv:"Remark.Network.DefaultRoute"`
7528 Conf *DatabaseRemarkDBConfCommon `mapconv:"Remark.DBConf.Common,recursive"`
7529 SourceID types.ID `mapconv:"Remark.SourceAppliance.ID"`
7530 CommonSetting *DatabaseSettingCommon `mapconv:"Settings.DBConf.Common,recursive"`
7531 BackupSetting *DatabaseSettingBackup `mapconv:"Settings.DBConf.Backup,recursive"`
7532 Backupv2Setting *DatabaseSettingBackupv2 `mapconv:"Settings.DBConf.Backupv2,recursive"`
7533 ReplicationSetting *DatabaseReplicationSetting `mapconv:"Settings.DBConf.Replication,recursive"`
7534 InterfaceSettings []*DatabaseSettingsInterface `mapconv:"Settings.DBConf.[]Interfaces,omitempty,recursive"`
7535 MonitoringSuite *MonitoringSuite `mapconv:"Settings.MonitoringSuite,omitempty,recursive"`
7536 Disk *DatabaseDisk `mapconv:"Disk,recursive"`
7537 Name string
7538 Description string
7539 Tags types.Tags
7540 IconID types.ID `mapconv:"Icon.ID"`
7541 }
7542
7543 // setDefaults implements iaas.argumentDefaulter
7544 func (o *DatabaseCreateRequest) setDefaults() interface{} {
7545 return &struct {
7546 PlanID types.ID `mapconv:"Remark.Plan.ID/Plan.ID"`
7547 SwitchID types.ID `mapconv:"Remark.Switch.ID"`
7548 IPAddresses []string `mapconv:"Remark.[]Servers.IPAddress"`
7549 NetworkMaskLen int `mapconv:"Remark.Network.NetworkMaskLen"`
7550 DefaultRoute string `mapconv:"Remark.Network.DefaultRoute"`
7551 Conf *DatabaseRemarkDBConfCommon `mapconv:"Remark.DBConf.Common,recursive"`
7552 SourceID types.ID `mapconv:"Remark.SourceAppliance.ID"`
7553 CommonSetting *DatabaseSettingCommon `mapconv:"Settings.DBConf.Common,recursive"`
7554 BackupSetting *DatabaseSettingBackup `mapconv:"Settings.DBConf.Backup,recursive"`
7555 Backupv2Setting *DatabaseSettingBackupv2 `mapconv:"Settings.DBConf.Backupv2,recursive"`
7556 ReplicationSetting *DatabaseReplicationSetting `mapconv:"Settings.DBConf.Replication,recursive"`
7557 InterfaceSettings []*DatabaseSettingsInterface `mapconv:"Settings.DBConf.[]Interfaces,omitempty,recursive"`
7558 MonitoringSuite *MonitoringSuite `mapconv:"Settings.MonitoringSuite,omitempty,recursive"`
7559 Disk *DatabaseDisk `mapconv:"Disk,recursive"`
7560 Name string
7561 Description string
7562 Tags types.Tags
7563 IconID types.ID `mapconv:"Icon.ID"`
7564 Class string
7565 }{
7566 PlanID: o.GetPlanID(),
7567 SwitchID: o.GetSwitchID(),
7568 IPAddresses: o.GetIPAddresses(),
7569 NetworkMaskLen: o.GetNetworkMaskLen(),
7570 DefaultRoute: o.GetDefaultRoute(),
7571 Conf: o.GetConf(),
7572 SourceID: o.GetSourceID(),
7573 CommonSetting: o.GetCommonSetting(),
7574 BackupSetting: o.GetBackupSetting(),
7575 Backupv2Setting: o.GetBackupv2Setting(),
7576 ReplicationSetting: o.GetReplicationSetting(),
7577 InterfaceSettings: o.GetInterfaceSettings(),
7578 MonitoringSuite: o.GetMonitoringSuite(),
7579 Disk: o.GetDisk(),
7580 Name: o.GetName(),
7581 Description: o.GetDescription(),
7582 Tags: o.GetTags(),
7583 IconID: o.GetIconID(),
7584 Class: "database",
7585 }
7586 }
7587
7588 // GetPlanID returns value of PlanID
7589 func (o *DatabaseCreateRequest) GetPlanID() types.ID {
7590 return o.PlanID
7591 }
7592
7593 // SetPlanID sets value to PlanID
7594 func (o *DatabaseCreateRequest) SetPlanID(v types.ID) {
7595 o.PlanID = v
7596 }
7597
7598 // GetSwitchID returns value of SwitchID
7599 func (o *DatabaseCreateRequest) GetSwitchID() types.ID {
7600 return o.SwitchID
7601 }
7602
7603 // SetSwitchID sets value to SwitchID
7604 func (o *DatabaseCreateRequest) SetSwitchID(v types.ID) {
7605 o.SwitchID = v
7606 }
7607
7608 // GetIPAddresses returns value of IPAddresses
7609 func (o *DatabaseCreateRequest) GetIPAddresses() []string {
7610 return o.IPAddresses
7611 }
7612
7613 // SetIPAddresses sets value to IPAddresses
7614 func (o *DatabaseCreateRequest) SetIPAddresses(v []string) {
7615 o.IPAddresses = v
7616 }
7617
7618 // GetNetworkMaskLen returns value of NetworkMaskLen
7619 func (o *DatabaseCreateRequest) GetNetworkMaskLen() int {
7620 return o.NetworkMaskLen
7621 }
7622
7623 // SetNetworkMaskLen sets value to NetworkMaskLen
7624 func (o *DatabaseCreateRequest) SetNetworkMaskLen(v int) {
7625 o.NetworkMaskLen = v
7626 }
7627
7628 // GetDefaultRoute returns value of DefaultRoute
7629 func (o *DatabaseCreateRequest) GetDefaultRoute() string {
7630 return o.DefaultRoute
7631 }
7632
7633 // SetDefaultRoute sets value to DefaultRoute
7634 func (o *DatabaseCreateRequest) SetDefaultRoute(v string) {
7635 o.DefaultRoute = v
7636 }
7637
7638 // GetConf returns value of Conf
7639 func (o *DatabaseCreateRequest) GetConf() *DatabaseRemarkDBConfCommon {
7640 return o.Conf
7641 }
7642
7643 // SetConf sets value to Conf
7644 func (o *DatabaseCreateRequest) SetConf(v *DatabaseRemarkDBConfCommon) {
7645 o.Conf = v
7646 }
7647
7648 // GetSourceID returns value of SourceID
7649 func (o *DatabaseCreateRequest) GetSourceID() types.ID {
7650 return o.SourceID
7651 }
7652
7653 // SetSourceID sets value to SourceID
7654 func (o *DatabaseCreateRequest) SetSourceID(v types.ID) {
7655 o.SourceID = v
7656 }
7657
7658 // GetCommonSetting returns value of CommonSetting
7659 func (o *DatabaseCreateRequest) GetCommonSetting() *DatabaseSettingCommon {
7660 return o.CommonSetting
7661 }
7662
7663 // SetCommonSetting sets value to CommonSetting
7664 func (o *DatabaseCreateRequest) SetCommonSetting(v *DatabaseSettingCommon) {
7665 o.CommonSetting = v
7666 }
7667
7668 // GetBackupSetting returns value of BackupSetting
7669 func (o *DatabaseCreateRequest) GetBackupSetting() *DatabaseSettingBackup {
7670 return o.BackupSetting
7671 }
7672
7673 // SetBackupSetting sets value to BackupSetting
7674 func (o *DatabaseCreateRequest) SetBackupSetting(v *DatabaseSettingBackup) {
7675 o.BackupSetting = v
7676 }
7677
7678 // GetBackupv2Setting returns value of Backupv2Setting
7679 func (o *DatabaseCreateRequest) GetBackupv2Setting() *DatabaseSettingBackupv2 {
7680 return o.Backupv2Setting
7681 }
7682
7683 // SetBackupv2Setting sets value to Backupv2Setting
7684 func (o *DatabaseCreateRequest) SetBackupv2Setting(v *DatabaseSettingBackupv2) {
7685 o.Backupv2Setting = v
7686 }
7687
7688 // GetReplicationSetting returns value of ReplicationSetting
7689 func (o *DatabaseCreateRequest) GetReplicationSetting() *DatabaseReplicationSetting {
7690 return o.ReplicationSetting
7691 }
7692
7693 // SetReplicationSetting sets value to ReplicationSetting
7694 func (o *DatabaseCreateRequest) SetReplicationSetting(v *DatabaseReplicationSetting) {
7695 o.ReplicationSetting = v
7696 }
7697
7698 // GetInterfaceSettings returns value of InterfaceSettings
7699 func (o *DatabaseCreateRequest) GetInterfaceSettings() []*DatabaseSettingsInterface {
7700 return o.InterfaceSettings
7701 }
7702
7703 // SetInterfaceSettings sets value to InterfaceSettings
7704 func (o *DatabaseCreateRequest) SetInterfaceSettings(v []*DatabaseSettingsInterface) {
7705 o.InterfaceSettings = v
7706 }
7707
7708 // GetMonitoringSuite returns value of MonitoringSuite
7709 func (o *DatabaseCreateRequest) GetMonitoringSuite() *MonitoringSuite {
7710 return o.MonitoringSuite
7711 }
7712
7713 // SetMonitoringSuite sets value to MonitoringSuite
7714 func (o *DatabaseCreateRequest) SetMonitoringSuite(v *MonitoringSuite) {
7715 o.MonitoringSuite = v
7716 }
7717
7718 // GetDisk returns value of Disk
7719 func (o *DatabaseCreateRequest) GetDisk() *DatabaseDisk {
7720 return o.Disk
7721 }
7722
7723 // SetDisk sets value to Disk
7724 func (o *DatabaseCreateRequest) SetDisk(v *DatabaseDisk) {
7725 o.Disk = v
7726 }
7727
7728 // GetName returns value of Name
7729 func (o *DatabaseCreateRequest) GetName() string {
7730 return o.Name
7731 }
7732
7733 // SetName sets value to Name
7734 func (o *DatabaseCreateRequest) SetName(v string) {
7735 o.Name = v
7736 }
7737
7738 // GetDescription returns value of Description
7739 func (o *DatabaseCreateRequest) GetDescription() string {
7740 return o.Description
7741 }
7742
7743 // SetDescription sets value to Description
7744 func (o *DatabaseCreateRequest) SetDescription(v string) {
7745 o.Description = v
7746 }
7747
7748 // GetTags returns value of Tags
7749 func (o *DatabaseCreateRequest) GetTags() types.Tags {
7750 return o.Tags
7751 }
7752
7753 // SetTags sets value to Tags
7754 func (o *DatabaseCreateRequest) SetTags(v types.Tags) {
7755 o.Tags = v
7756 }
7757
7758 // HasTag 指定のタグが存在する場合trueを返す
7759 func (o *DatabaseCreateRequest) HasTag(tag string) bool {
7760 return accessor.HasTag(o, tag)
7761 }
7762
7763 // AppendTag 指定のタグを追加
7764 func (o *DatabaseCreateRequest) AppendTag(tag string) {
7765 accessor.AppendTag(o, tag)
7766 }
7767
7768 // RemoveTag 指定のタグを削除
7769 func (o *DatabaseCreateRequest) RemoveTag(tag string) {
7770 accessor.RemoveTag(o, tag)
7771 }
7772
7773 // ClearTags タグを全クリア
7774 func (o *DatabaseCreateRequest) ClearTags() {
7775 accessor.ClearTags(o)
7776 }
7777
7778 // GetIconID returns value of IconID
7779 func (o *DatabaseCreateRequest) GetIconID() types.ID {
7780 return o.IconID
7781 }
7782
7783 // SetIconID sets value to IconID
7784 func (o *DatabaseCreateRequest) SetIconID(v types.ID) {
7785 o.IconID = v
7786 }
7787
7788 /*************************************************
7789 * DatabaseSettingBackupv2
7790 *************************************************/
7791
7792 // DatabaseSettingBackupv2 represents API parameter/response structure
7793 type DatabaseSettingBackupv2 struct {
7794 Rotate int
7795 Time string
7796 DayOfWeek []types.EDayOfTheWeek
7797 Connect string
7798 }
7799
7800 // setDefaults implements iaas.argumentDefaulter
7801 func (o *DatabaseSettingBackupv2) setDefaults() interface{} {
7802 return &struct {
7803 Rotate int
7804 Time string
7805 DayOfWeek []types.EDayOfTheWeek
7806 Connect string
7807 }{
7808 Rotate: o.GetRotate(),
7809 Time: o.GetTime(),
7810 DayOfWeek: o.GetDayOfWeek(),
7811 Connect: o.GetConnect(),
7812 }
7813 }
7814
7815 // GetRotate returns value of Rotate
7816 func (o *DatabaseSettingBackupv2) GetRotate() int {
7817 return o.Rotate
7818 }
7819
7820 // SetRotate sets value to Rotate
7821 func (o *DatabaseSettingBackupv2) SetRotate(v int) {
7822 o.Rotate = v
7823 }
7824
7825 // GetTime returns value of Time
7826 func (o *DatabaseSettingBackupv2) GetTime() string {
7827 return o.Time
7828 }
7829
7830 // SetTime sets value to Time
7831 func (o *DatabaseSettingBackupv2) SetTime(v string) {
7832 o.Time = v
7833 }
7834
7835 // GetDayOfWeek returns value of DayOfWeek
7836 func (o *DatabaseSettingBackupv2) GetDayOfWeek() []types.EDayOfTheWeek {
7837 return o.DayOfWeek
7838 }
7839
7840 // SetDayOfWeek sets value to DayOfWeek
7841 func (o *DatabaseSettingBackupv2) SetDayOfWeek(v []types.EDayOfTheWeek) {
7842 o.DayOfWeek = v
7843 }
7844
7845 // GetConnect returns value of Connect
7846 func (o *DatabaseSettingBackupv2) GetConnect() string {
7847 return o.Connect
7848 }
7849
7850 // SetConnect sets value to Connect
7851 func (o *DatabaseSettingBackupv2) SetConnect(v string) {
7852 o.Connect = v
7853 }
7854
7855 /*************************************************
7856 * DatabaseUpdateRequest
7857 *************************************************/
7858
7859 // DatabaseUpdateRequest represents API parameter/response structure
7860 type DatabaseUpdateRequest struct {
7861 Name string
7862 Description string
7863 Tags types.Tags
7864 IconID types.ID `mapconv:"Icon.ID"`
7865 CommonSetting *DatabaseSettingCommon `mapconv:"Settings.DBConf.Common,recursive"`
7866 BackupSetting *DatabaseSettingBackup `mapconv:"Settings.DBConf.Backup,recursive"`
7867 Backupv2Setting *DatabaseSettingBackupv2 `mapconv:"Settings.DBConf.Backupv2,recursive"`
7868 ReplicationSetting *DatabaseReplicationSetting `mapconv:"Settings.DBConf.Replication,recursive"`
7869 InterfaceSettings []*DatabaseSettingsInterface `mapconv:"Settings.DBConf.[]Interfaces,omitempty,recursive"`
7870 MonitoringSuite *MonitoringSuite `mapconv:"Settings.MonitoringSuite,omitempty,recursive"`
7871 SettingsHash string `json:",omitempty" mapconv:",omitempty"`
7872 }
7873
7874 // setDefaults implements iaas.argumentDefaulter
7875 func (o *DatabaseUpdateRequest) setDefaults() interface{} {
7876 return &struct {
7877 Name string
7878 Description string
7879 Tags types.Tags
7880 IconID types.ID `mapconv:"Icon.ID"`
7881 CommonSetting *DatabaseSettingCommon `mapconv:"Settings.DBConf.Common,recursive"`
7882 BackupSetting *DatabaseSettingBackup `mapconv:"Settings.DBConf.Backup,recursive"`
7883 Backupv2Setting *DatabaseSettingBackupv2 `mapconv:"Settings.DBConf.Backupv2,recursive"`
7884 ReplicationSetting *DatabaseReplicationSetting `mapconv:"Settings.DBConf.Replication,recursive"`
7885 InterfaceSettings []*DatabaseSettingsInterface `mapconv:"Settings.DBConf.[]Interfaces,omitempty,recursive"`
7886 MonitoringSuite *MonitoringSuite `mapconv:"Settings.MonitoringSuite,omitempty,recursive"`
7887 SettingsHash string `json:",omitempty" mapconv:",omitempty"`
7888 }{
7889 Name: o.GetName(),
7890 Description: o.GetDescription(),
7891 Tags: o.GetTags(),
7892 IconID: o.GetIconID(),
7893 CommonSetting: o.GetCommonSetting(),
7894 BackupSetting: o.GetBackupSetting(),
7895 Backupv2Setting: o.GetBackupv2Setting(),
7896 ReplicationSetting: o.GetReplicationSetting(),
7897 InterfaceSettings: o.GetInterfaceSettings(),
7898 MonitoringSuite: o.GetMonitoringSuite(),
7899 SettingsHash: o.GetSettingsHash(),
7900 }
7901 }
7902
7903 // GetName returns value of Name
7904 func (o *DatabaseUpdateRequest) GetName() string {
7905 return o.Name
7906 }
7907
7908 // SetName sets value to Name
7909 func (o *DatabaseUpdateRequest) SetName(v string) {
7910 o.Name = v
7911 }
7912
7913 // GetDescription returns value of Description
7914 func (o *DatabaseUpdateRequest) GetDescription() string {
7915 return o.Description
7916 }
7917
7918 // SetDescription sets value to Description
7919 func (o *DatabaseUpdateRequest) SetDescription(v string) {
7920 o.Description = v
7921 }
7922
7923 // GetTags returns value of Tags
7924 func (o *DatabaseUpdateRequest) GetTags() types.Tags {
7925 return o.Tags
7926 }
7927
7928 // SetTags sets value to Tags
7929 func (o *DatabaseUpdateRequest) SetTags(v types.Tags) {
7930 o.Tags = v
7931 }
7932
7933 // HasTag 指定のタグが存在する場合trueを返す
7934 func (o *DatabaseUpdateRequest) HasTag(tag string) bool {
7935 return accessor.HasTag(o, tag)
7936 }
7937
7938 // AppendTag 指定のタグを追加
7939 func (o *DatabaseUpdateRequest) AppendTag(tag string) {
7940 accessor.AppendTag(o, tag)
7941 }
7942
7943 // RemoveTag 指定のタグを削除
7944 func (o *DatabaseUpdateRequest) RemoveTag(tag string) {
7945 accessor.RemoveTag(o, tag)
7946 }
7947
7948 // ClearTags タグを全クリア
7949 func (o *DatabaseUpdateRequest) ClearTags() {
7950 accessor.ClearTags(o)
7951 }
7952
7953 // GetIconID returns value of IconID
7954 func (o *DatabaseUpdateRequest) GetIconID() types.ID {
7955 return o.IconID
7956 }
7957
7958 // SetIconID sets value to IconID
7959 func (o *DatabaseUpdateRequest) SetIconID(v types.ID) {
7960 o.IconID = v
7961 }
7962
7963 // GetCommonSetting returns value of CommonSetting
7964 func (o *DatabaseUpdateRequest) GetCommonSetting() *DatabaseSettingCommon {
7965 return o.CommonSetting
7966 }
7967
7968 // SetCommonSetting sets value to CommonSetting
7969 func (o *DatabaseUpdateRequest) SetCommonSetting(v *DatabaseSettingCommon) {
7970 o.CommonSetting = v
7971 }
7972
7973 // GetBackupSetting returns value of BackupSetting
7974 func (o *DatabaseUpdateRequest) GetBackupSetting() *DatabaseSettingBackup {
7975 return o.BackupSetting
7976 }
7977
7978 // SetBackupSetting sets value to BackupSetting
7979 func (o *DatabaseUpdateRequest) SetBackupSetting(v *DatabaseSettingBackup) {
7980 o.BackupSetting = v
7981 }
7982
7983 // GetBackupv2Setting returns value of Backupv2Setting
7984 func (o *DatabaseUpdateRequest) GetBackupv2Setting() *DatabaseSettingBackupv2 {
7985 return o.Backupv2Setting
7986 }
7987
7988 // SetBackupv2Setting sets value to Backupv2Setting
7989 func (o *DatabaseUpdateRequest) SetBackupv2Setting(v *DatabaseSettingBackupv2) {
7990 o.Backupv2Setting = v
7991 }
7992
7993 // GetReplicationSetting returns value of ReplicationSetting
7994 func (o *DatabaseUpdateRequest) GetReplicationSetting() *DatabaseReplicationSetting {
7995 return o.ReplicationSetting
7996 }
7997
7998 // SetReplicationSetting sets value to ReplicationSetting
7999 func (o *DatabaseUpdateRequest) SetReplicationSetting(v *DatabaseReplicationSetting) {
8000 o.ReplicationSetting = v
8001 }
8002
8003 // GetInterfaceSettings returns value of InterfaceSettings
8004 func (o *DatabaseUpdateRequest) GetInterfaceSettings() []*DatabaseSettingsInterface {
8005 return o.InterfaceSettings
8006 }
8007
8008 // SetInterfaceSettings sets value to InterfaceSettings
8009 func (o *DatabaseUpdateRequest) SetInterfaceSettings(v []*DatabaseSettingsInterface) {
8010 o.InterfaceSettings = v
8011 }
8012
8013 // GetMonitoringSuite returns value of MonitoringSuite
8014 func (o *DatabaseUpdateRequest) GetMonitoringSuite() *MonitoringSuite {
8015 return o.MonitoringSuite
8016 }
8017
8018 // SetMonitoringSuite sets value to MonitoringSuite
8019 func (o *DatabaseUpdateRequest) SetMonitoringSuite(v *MonitoringSuite) {
8020 o.MonitoringSuite = v
8021 }
8022
8023 // GetSettingsHash returns value of SettingsHash
8024 func (o *DatabaseUpdateRequest) GetSettingsHash() string {
8025 return o.SettingsHash
8026 }
8027
8028 // SetSettingsHash sets value to SettingsHash
8029 func (o *DatabaseUpdateRequest) SetSettingsHash(v string) {
8030 o.SettingsHash = v
8031 }
8032
8033 /*************************************************
8034 * DatabaseUpdateSettingsRequest
8035 *************************************************/
8036
8037 // DatabaseUpdateSettingsRequest represents API parameter/response structure
8038 type DatabaseUpdateSettingsRequest struct {
8039 CommonSetting *DatabaseSettingCommon `mapconv:"Settings.DBConf.Common,recursive"`
8040 BackupSetting *DatabaseSettingBackup `mapconv:"Settings.DBConf.Backup,recursive"`
8041 Backupv2Setting *DatabaseSettingBackupv2 `mapconv:"Settings.DBConf.Backupv2,recursive"`
8042 ReplicationSetting *DatabaseReplicationSetting `mapconv:"Settings.DBConf.Replication,recursive"`
8043 InterfaceSettings []*DatabaseSettingsInterface `mapconv:"Settings.DBConf.[]Interfaces,omitempty,recursive"`
8044 MonitoringSuite *MonitoringSuite `mapconv:"Settings.MonitoringSuite,omitempty,recursive"`
8045 SettingsHash string `json:",omitempty" mapconv:",omitempty"`
8046 }
8047
8048 // setDefaults implements iaas.argumentDefaulter
8049 func (o *DatabaseUpdateSettingsRequest) setDefaults() interface{} {
8050 return &struct {
8051 CommonSetting *DatabaseSettingCommon `mapconv:"Settings.DBConf.Common,recursive"`
8052 BackupSetting *DatabaseSettingBackup `mapconv:"Settings.DBConf.Backup,recursive"`
8053 Backupv2Setting *DatabaseSettingBackupv2 `mapconv:"Settings.DBConf.Backupv2,recursive"`
8054 ReplicationSetting *DatabaseReplicationSetting `mapconv:"Settings.DBConf.Replication,recursive"`
8055 InterfaceSettings []*DatabaseSettingsInterface `mapconv:"Settings.DBConf.[]Interfaces,omitempty,recursive"`
8056 MonitoringSuite *MonitoringSuite `mapconv:"Settings.MonitoringSuite,omitempty,recursive"`
8057 SettingsHash string `json:",omitempty" mapconv:",omitempty"`
8058 }{
8059 CommonSetting: o.GetCommonSetting(),
8060 BackupSetting: o.GetBackupSetting(),
8061 Backupv2Setting: o.GetBackupv2Setting(),
8062 ReplicationSetting: o.GetReplicationSetting(),
8063 InterfaceSettings: o.GetInterfaceSettings(),
8064 MonitoringSuite: o.GetMonitoringSuite(),
8065 SettingsHash: o.GetSettingsHash(),
8066 }
8067 }
8068
8069 // GetCommonSetting returns value of CommonSetting
8070 func (o *DatabaseUpdateSettingsRequest) GetCommonSetting() *DatabaseSettingCommon {
8071 return o.CommonSetting
8072 }
8073
8074 // SetCommonSetting sets value to CommonSetting
8075 func (o *DatabaseUpdateSettingsRequest) SetCommonSetting(v *DatabaseSettingCommon) {
8076 o.CommonSetting = v
8077 }
8078
8079 // GetBackupSetting returns value of BackupSetting
8080 func (o *DatabaseUpdateSettingsRequest) GetBackupSetting() *DatabaseSettingBackup {
8081 return o.BackupSetting
8082 }
8083
8084 // SetBackupSetting sets value to BackupSetting
8085 func (o *DatabaseUpdateSettingsRequest) SetBackupSetting(v *DatabaseSettingBackup) {
8086 o.BackupSetting = v
8087 }
8088
8089 // GetBackupv2Setting returns value of Backupv2Setting
8090 func (o *DatabaseUpdateSettingsRequest) GetBackupv2Setting() *DatabaseSettingBackupv2 {
8091 return o.Backupv2Setting
8092 }
8093
8094 // SetBackupv2Setting sets value to Backupv2Setting
8095 func (o *DatabaseUpdateSettingsRequest) SetBackupv2Setting(v *DatabaseSettingBackupv2) {
8096 o.Backupv2Setting = v
8097 }
8098
8099 // GetReplicationSetting returns value of ReplicationSetting
8100 func (o *DatabaseUpdateSettingsRequest) GetReplicationSetting() *DatabaseReplicationSetting {
8101 return o.ReplicationSetting
8102 }
8103
8104 // SetReplicationSetting sets value to ReplicationSetting
8105 func (o *DatabaseUpdateSettingsRequest) SetReplicationSetting(v *DatabaseReplicationSetting) {
8106 o.ReplicationSetting = v
8107 }
8108
8109 // GetInterfaceSettings returns value of InterfaceSettings
8110 func (o *DatabaseUpdateSettingsRequest) GetInterfaceSettings() []*DatabaseSettingsInterface {
8111 return o.InterfaceSettings
8112 }
8113
8114 // SetInterfaceSettings sets value to InterfaceSettings
8115 func (o *DatabaseUpdateSettingsRequest) SetInterfaceSettings(v []*DatabaseSettingsInterface) {
8116 o.InterfaceSettings = v
8117 }
8118
8119 // GetMonitoringSuite returns value of MonitoringSuite
8120 func (o *DatabaseUpdateSettingsRequest) GetMonitoringSuite() *MonitoringSuite {
8121 return o.MonitoringSuite
8122 }
8123
8124 // SetMonitoringSuite sets value to MonitoringSuite
8125 func (o *DatabaseUpdateSettingsRequest) SetMonitoringSuite(v *MonitoringSuite) {
8126 o.MonitoringSuite = v
8127 }
8128
8129 // GetSettingsHash returns value of SettingsHash
8130 func (o *DatabaseUpdateSettingsRequest) GetSettingsHash() string {
8131 return o.SettingsHash
8132 }
8133
8134 // SetSettingsHash sets value to SettingsHash
8135 func (o *DatabaseUpdateSettingsRequest) SetSettingsHash(v string) {
8136 o.SettingsHash = v
8137 }
8138
8139 /*************************************************
8140 * ShutdownOption
8141 *************************************************/
8142
8143 // ShutdownOption represents API parameter/response structure
8144 type ShutdownOption struct {
8145 Force bool
8146 }
8147
8148 // setDefaults implements iaas.argumentDefaulter
8149 func (o *ShutdownOption) setDefaults() interface{} {
8150 return &struct {
8151 Force bool
8152 }{
8153 Force: o.GetForce(),
8154 }
8155 }
8156
8157 // GetForce returns value of Force
8158 func (o *ShutdownOption) GetForce() bool {
8159 return o.Force
8160 }
8161
8162 // SetForce sets value to Force
8163 func (o *ShutdownOption) SetForce(v bool) {
8164 o.Force = v
8165 }
8166
8167 /*************************************************
8168 * CPUTimeActivity
8169 *************************************************/
8170
8171 // CPUTimeActivity represents API parameter/response structure
8172 type CPUTimeActivity struct {
8173 Values []*MonitorCPUTimeValue `mapconv:"[]CPU"`
8174 }
8175
8176 // setDefaults implements iaas.argumentDefaulter
8177 func (o *CPUTimeActivity) setDefaults() interface{} {
8178 return &struct {
8179 Values []*MonitorCPUTimeValue `mapconv:"[]CPU"`
8180 }{
8181 Values: o.GetValues(),
8182 }
8183 }
8184
8185 // GetValues returns value of Values
8186 func (o *CPUTimeActivity) GetValues() []*MonitorCPUTimeValue {
8187 return o.Values
8188 }
8189
8190 // SetValues sets value to Values
8191 func (o *CPUTimeActivity) SetValues(v []*MonitorCPUTimeValue) {
8192 o.Values = v
8193 }
8194
8195 /*************************************************
8196 * MonitorCPUTimeValue
8197 *************************************************/
8198
8199 // MonitorCPUTimeValue represents API parameter/response structure
8200 type MonitorCPUTimeValue struct {
8201 Time time.Time `mapconv:",omitempty"`
8202 CPUTime float64 `mapconv:",omitempty"`
8203 }
8204
8205 // setDefaults implements iaas.argumentDefaulter
8206 func (o *MonitorCPUTimeValue) setDefaults() interface{} {
8207 return &struct {
8208 Time time.Time `mapconv:",omitempty"`
8209 CPUTime float64 `mapconv:",omitempty"`
8210 }{
8211 Time: o.GetTime(),
8212 CPUTime: o.GetCPUTime(),
8213 }
8214 }
8215
8216 // GetTime returns value of Time
8217 func (o *MonitorCPUTimeValue) GetTime() time.Time {
8218 return o.Time
8219 }
8220
8221 // SetTime sets value to Time
8222 func (o *MonitorCPUTimeValue) SetTime(v time.Time) {
8223 o.Time = v
8224 }
8225
8226 // GetCPUTime returns value of CPUTime
8227 func (o *MonitorCPUTimeValue) GetCPUTime() float64 {
8228 return o.CPUTime
8229 }
8230
8231 // SetCPUTime sets value to CPUTime
8232 func (o *MonitorCPUTimeValue) SetCPUTime(v float64) {
8233 o.CPUTime = v
8234 }
8235
8236 /*************************************************
8237 * MonitorCondition
8238 *************************************************/
8239
8240 // MonitorCondition represents API parameter/response structure
8241 type MonitorCondition struct {
8242 Start time.Time `json:",omitempty"`
8243 End time.Time `json:",omitempty"`
8244 }
8245
8246 // setDefaults implements iaas.argumentDefaulter
8247 func (o *MonitorCondition) setDefaults() interface{} {
8248 return &struct {
8249 Start time.Time `json:",omitempty"`
8250 End time.Time `json:",omitempty"`
8251 }{
8252 Start: o.GetStart(),
8253 End: o.GetEnd(),
8254 }
8255 }
8256
8257 // GetStart returns value of Start
8258 func (o *MonitorCondition) GetStart() time.Time {
8259 if o.Start.IsZero() {
8260 return time.Now().Truncate(time.Second).Add(-time.Hour)
8261 }
8262 return o.Start
8263 }
8264
8265 // SetStart sets value to Start
8266 func (o *MonitorCondition) SetStart(v time.Time) {
8267 o.Start = v
8268 }
8269
8270 // GetEnd returns value of End
8271 func (o *MonitorCondition) GetEnd() time.Time {
8272 if o.End.IsZero() {
8273 return time.Now().Truncate(time.Second)
8274 }
8275 return o.End
8276 }
8277
8278 // SetEnd sets value to End
8279 func (o *MonitorCondition) SetEnd(v time.Time) {
8280 o.End = v
8281 }
8282
8283 /*************************************************
8284 * DiskActivity
8285 *************************************************/
8286
8287 // DiskActivity represents API parameter/response structure
8288 type DiskActivity struct {
8289 Values []*MonitorDiskValue `mapconv:"[]Disk"`
8290 }
8291
8292 // setDefaults implements iaas.argumentDefaulter
8293 func (o *DiskActivity) setDefaults() interface{} {
8294 return &struct {
8295 Values []*MonitorDiskValue `mapconv:"[]Disk"`
8296 }{
8297 Values: o.GetValues(),
8298 }
8299 }
8300
8301 // GetValues returns value of Values
8302 func (o *DiskActivity) GetValues() []*MonitorDiskValue {
8303 return o.Values
8304 }
8305
8306 // SetValues sets value to Values
8307 func (o *DiskActivity) SetValues(v []*MonitorDiskValue) {
8308 o.Values = v
8309 }
8310
8311 /*************************************************
8312 * MonitorDiskValue
8313 *************************************************/
8314
8315 // MonitorDiskValue represents API parameter/response structure
8316 type MonitorDiskValue struct {
8317 Time time.Time `mapconv:",omitempty"`
8318 Read float64 `mapconv:",omitempty"`
8319 Write float64 `mapconv:",omitempty"`
8320 }
8321
8322 // setDefaults implements iaas.argumentDefaulter
8323 func (o *MonitorDiskValue) setDefaults() interface{} {
8324 return &struct {
8325 Time time.Time `mapconv:",omitempty"`
8326 Read float64 `mapconv:",omitempty"`
8327 Write float64 `mapconv:",omitempty"`
8328 }{
8329 Time: o.GetTime(),
8330 Read: o.GetRead(),
8331 Write: o.GetWrite(),
8332 }
8333 }
8334
8335 // GetTime returns value of Time
8336 func (o *MonitorDiskValue) GetTime() time.Time {
8337 return o.Time
8338 }
8339
8340 // SetTime sets value to Time
8341 func (o *MonitorDiskValue) SetTime(v time.Time) {
8342 o.Time = v
8343 }
8344
8345 // GetRead returns value of Read
8346 func (o *MonitorDiskValue) GetRead() float64 {
8347 return o.Read
8348 }
8349
8350 // SetRead sets value to Read
8351 func (o *MonitorDiskValue) SetRead(v float64) {
8352 o.Read = v
8353 }
8354
8355 // GetWrite returns value of Write
8356 func (o *MonitorDiskValue) GetWrite() float64 {
8357 return o.Write
8358 }
8359
8360 // SetWrite sets value to Write
8361 func (o *MonitorDiskValue) SetWrite(v float64) {
8362 o.Write = v
8363 }
8364
8365 /*************************************************
8366 * InterfaceActivity
8367 *************************************************/
8368
8369 // InterfaceActivity represents API parameter/response structure
8370 type InterfaceActivity struct {
8371 Values []*MonitorInterfaceValue `mapconv:"[]Interface"`
8372 }
8373
8374 // setDefaults implements iaas.argumentDefaulter
8375 func (o *InterfaceActivity) setDefaults() interface{} {
8376 return &struct {
8377 Values []*MonitorInterfaceValue `mapconv:"[]Interface"`
8378 }{
8379 Values: o.GetValues(),
8380 }
8381 }
8382
8383 // GetValues returns value of Values
8384 func (o *InterfaceActivity) GetValues() []*MonitorInterfaceValue {
8385 return o.Values
8386 }
8387
8388 // SetValues sets value to Values
8389 func (o *InterfaceActivity) SetValues(v []*MonitorInterfaceValue) {
8390 o.Values = v
8391 }
8392
8393 /*************************************************
8394 * MonitorInterfaceValue
8395 *************************************************/
8396
8397 // MonitorInterfaceValue represents API parameter/response structure
8398 type MonitorInterfaceValue struct {
8399 Time time.Time `mapconv:",omitempty"`
8400 Receive float64 `mapconv:",omitempty"`
8401 Send float64 `mapconv:",omitempty"`
8402 }
8403
8404 // setDefaults implements iaas.argumentDefaulter
8405 func (o *MonitorInterfaceValue) setDefaults() interface{} {
8406 return &struct {
8407 Time time.Time `mapconv:",omitempty"`
8408 Receive float64 `mapconv:",omitempty"`
8409 Send float64 `mapconv:",omitempty"`
8410 }{
8411 Time: o.GetTime(),
8412 Receive: o.GetReceive(),
8413 Send: o.GetSend(),
8414 }
8415 }
8416
8417 // GetTime returns value of Time
8418 func (o *MonitorInterfaceValue) GetTime() time.Time {
8419 return o.Time
8420 }
8421
8422 // SetTime sets value to Time
8423 func (o *MonitorInterfaceValue) SetTime(v time.Time) {
8424 o.Time = v
8425 }
8426
8427 // GetReceive returns value of Receive
8428 func (o *MonitorInterfaceValue) GetReceive() float64 {
8429 return o.Receive
8430 }
8431
8432 // SetReceive sets value to Receive
8433 func (o *MonitorInterfaceValue) SetReceive(v float64) {
8434 o.Receive = v
8435 }
8436
8437 // GetSend returns value of Send
8438 func (o *MonitorInterfaceValue) GetSend() float64 {
8439 return o.Send
8440 }
8441
8442 // SetSend sets value to Send
8443 func (o *MonitorInterfaceValue) SetSend(v float64) {
8444 o.Send = v
8445 }
8446
8447 /*************************************************
8448 * DatabaseActivity
8449 *************************************************/
8450
8451 // DatabaseActivity represents API parameter/response structure
8452 type DatabaseActivity struct {
8453 Values []*MonitorDatabaseValue `mapconv:"[]Database"`
8454 }
8455
8456 // setDefaults implements iaas.argumentDefaulter
8457 func (o *DatabaseActivity) setDefaults() interface{} {
8458 return &struct {
8459 Values []*MonitorDatabaseValue `mapconv:"[]Database"`
8460 }{
8461 Values: o.GetValues(),
8462 }
8463 }
8464
8465 // GetValues returns value of Values
8466 func (o *DatabaseActivity) GetValues() []*MonitorDatabaseValue {
8467 return o.Values
8468 }
8469
8470 // SetValues sets value to Values
8471 func (o *DatabaseActivity) SetValues(v []*MonitorDatabaseValue) {
8472 o.Values = v
8473 }
8474
8475 /*************************************************
8476 * MonitorDatabaseValue
8477 *************************************************/
8478
8479 // MonitorDatabaseValue represents API parameter/response structure
8480 type MonitorDatabaseValue struct {
8481 Time time.Time `mapconv:",omitempty"`
8482 TotalMemorySize float64 `mapconv:",omitempty"`
8483 UsedMemorySize float64 `mapconv:",omitempty"`
8484 TotalDisk1Size float64 `mapconv:",omitempty"`
8485 UsedDisk1Size float64 `mapconv:",omitempty"`
8486 TotalDisk2Size float64 `mapconv:",omitempty"`
8487 UsedDisk2Size float64 `mapconv:",omitempty"`
8488 BinlogUsedSizeKiB float64 `mapconv:",omitempty"`
8489 DelayTimeSec float64 `mapconv:",omitempty"`
8490 }
8491
8492 // setDefaults implements iaas.argumentDefaulter
8493 func (o *MonitorDatabaseValue) setDefaults() interface{} {
8494 return &struct {
8495 Time time.Time `mapconv:",omitempty"`
8496 TotalMemorySize float64 `mapconv:",omitempty"`
8497 UsedMemorySize float64 `mapconv:",omitempty"`
8498 TotalDisk1Size float64 `mapconv:",omitempty"`
8499 UsedDisk1Size float64 `mapconv:",omitempty"`
8500 TotalDisk2Size float64 `mapconv:",omitempty"`
8501 UsedDisk2Size float64 `mapconv:",omitempty"`
8502 BinlogUsedSizeKiB float64 `mapconv:",omitempty"`
8503 DelayTimeSec float64 `mapconv:",omitempty"`
8504 }{
8505 Time: o.GetTime(),
8506 TotalMemorySize: o.GetTotalMemorySize(),
8507 UsedMemorySize: o.GetUsedMemorySize(),
8508 TotalDisk1Size: o.GetTotalDisk1Size(),
8509 UsedDisk1Size: o.GetUsedDisk1Size(),
8510 TotalDisk2Size: o.GetTotalDisk2Size(),
8511 UsedDisk2Size: o.GetUsedDisk2Size(),
8512 BinlogUsedSizeKiB: o.GetBinlogUsedSizeKiB(),
8513 DelayTimeSec: o.GetDelayTimeSec(),
8514 }
8515 }
8516
8517 // GetTime returns value of Time
8518 func (o *MonitorDatabaseValue) GetTime() time.Time {
8519 return o.Time
8520 }
8521
8522 // SetTime sets value to Time
8523 func (o *MonitorDatabaseValue) SetTime(v time.Time) {
8524 o.Time = v
8525 }
8526
8527 // GetTotalMemorySize returns value of TotalMemorySize
8528 func (o *MonitorDatabaseValue) GetTotalMemorySize() float64 {
8529 return o.TotalMemorySize
8530 }
8531
8532 // SetTotalMemorySize sets value to TotalMemorySize
8533 func (o *MonitorDatabaseValue) SetTotalMemorySize(v float64) {
8534 o.TotalMemorySize = v
8535 }
8536
8537 // GetUsedMemorySize returns value of UsedMemorySize
8538 func (o *MonitorDatabaseValue) GetUsedMemorySize() float64 {
8539 return o.UsedMemorySize
8540 }
8541
8542 // SetUsedMemorySize sets value to UsedMemorySize
8543 func (o *MonitorDatabaseValue) SetUsedMemorySize(v float64) {
8544 o.UsedMemorySize = v
8545 }
8546
8547 // GetTotalDisk1Size returns value of TotalDisk1Size
8548 func (o *MonitorDatabaseValue) GetTotalDisk1Size() float64 {
8549 return o.TotalDisk1Size
8550 }
8551
8552 // SetTotalDisk1Size sets value to TotalDisk1Size
8553 func (o *MonitorDatabaseValue) SetTotalDisk1Size(v float64) {
8554 o.TotalDisk1Size = v
8555 }
8556
8557 // GetUsedDisk1Size returns value of UsedDisk1Size
8558 func (o *MonitorDatabaseValue) GetUsedDisk1Size() float64 {
8559 return o.UsedDisk1Size
8560 }
8561
8562 // SetUsedDisk1Size sets value to UsedDisk1Size
8563 func (o *MonitorDatabaseValue) SetUsedDisk1Size(v float64) {
8564 o.UsedDisk1Size = v
8565 }
8566
8567 // GetTotalDisk2Size returns value of TotalDisk2Size
8568 func (o *MonitorDatabaseValue) GetTotalDisk2Size() float64 {
8569 return o.TotalDisk2Size
8570 }
8571
8572 // SetTotalDisk2Size sets value to TotalDisk2Size
8573 func (o *MonitorDatabaseValue) SetTotalDisk2Size(v float64) {
8574 o.TotalDisk2Size = v
8575 }
8576
8577 // GetUsedDisk2Size returns value of UsedDisk2Size
8578 func (o *MonitorDatabaseValue) GetUsedDisk2Size() float64 {
8579 return o.UsedDisk2Size
8580 }
8581
8582 // SetUsedDisk2Size sets value to UsedDisk2Size
8583 func (o *MonitorDatabaseValue) SetUsedDisk2Size(v float64) {
8584 o.UsedDisk2Size = v
8585 }
8586
8587 // GetBinlogUsedSizeKiB returns value of BinlogUsedSizeKiB
8588 func (o *MonitorDatabaseValue) GetBinlogUsedSizeKiB() float64 {
8589 return o.BinlogUsedSizeKiB
8590 }
8591
8592 // SetBinlogUsedSizeKiB sets value to BinlogUsedSizeKiB
8593 func (o *MonitorDatabaseValue) SetBinlogUsedSizeKiB(v float64) {
8594 o.BinlogUsedSizeKiB = v
8595 }
8596
8597 // GetDelayTimeSec returns value of DelayTimeSec
8598 func (o *MonitorDatabaseValue) GetDelayTimeSec() float64 {
8599 return o.DelayTimeSec
8600 }
8601
8602 // SetDelayTimeSec sets value to DelayTimeSec
8603 func (o *MonitorDatabaseValue) SetDelayTimeSec(v float64) {
8604 o.DelayTimeSec = v
8605 }
8606
8607 /*************************************************
8608 * DatabaseStatus
8609 *************************************************/
8610
8611 // DatabaseStatus represents API parameter/response structure
8612 type DatabaseStatus struct {
8613 Status types.EServerInstanceStatus `mapconv:"SettingsResponse.Status"`
8614 MariaDBStatus string `mapconv:"SettingsResponse.DBConf.MariaDB.Status"`
8615 PostgresStatus string `mapconv:"SettingsResponse.DBConf.Postgres.Status"`
8616 IsFatal bool `mapconv:"SettingsResponse.IsFatal"`
8617 Version *DatabaseVersionInfo `mapconv:"SettingsResponse.DBConf.Version,recursive"`
8618 Logs []*DatabaseLog `mapconv:"SettingsResponse.DBConf.[]Log,recursive"`
8619 Backups []*DatabaseBackupHistory `mapconv:"SettingsResponse.DBConf.Backup.[]History,recursive"`
8620 }
8621
8622 // setDefaults implements iaas.argumentDefaulter
8623 func (o *DatabaseStatus) setDefaults() interface{} {
8624 return &struct {
8625 Status types.EServerInstanceStatus `mapconv:"SettingsResponse.Status"`
8626 MariaDBStatus string `mapconv:"SettingsResponse.DBConf.MariaDB.Status"`
8627 PostgresStatus string `mapconv:"SettingsResponse.DBConf.Postgres.Status"`
8628 IsFatal bool `mapconv:"SettingsResponse.IsFatal"`
8629 Version *DatabaseVersionInfo `mapconv:"SettingsResponse.DBConf.Version,recursive"`
8630 Logs []*DatabaseLog `mapconv:"SettingsResponse.DBConf.[]Log,recursive"`
8631 Backups []*DatabaseBackupHistory `mapconv:"SettingsResponse.DBConf.Backup.[]History,recursive"`
8632 }{
8633 Status: o.GetStatus(),
8634 MariaDBStatus: o.GetMariaDBStatus(),
8635 PostgresStatus: o.GetPostgresStatus(),
8636 IsFatal: o.GetIsFatal(),
8637 Version: o.GetVersion(),
8638 Logs: o.GetLogs(),
8639 Backups: o.GetBackups(),
8640 }
8641 }
8642
8643 // GetStatus returns value of Status
8644 func (o *DatabaseStatus) GetStatus() types.EServerInstanceStatus {
8645 return o.Status
8646 }
8647
8648 // SetStatus sets value to Status
8649 func (o *DatabaseStatus) SetStatus(v types.EServerInstanceStatus) {
8650 o.Status = v
8651 }
8652
8653 // GetMariaDBStatus returns value of MariaDBStatus
8654 func (o *DatabaseStatus) GetMariaDBStatus() string {
8655 return o.MariaDBStatus
8656 }
8657
8658 // SetMariaDBStatus sets value to MariaDBStatus
8659 func (o *DatabaseStatus) SetMariaDBStatus(v string) {
8660 o.MariaDBStatus = v
8661 }
8662
8663 // GetPostgresStatus returns value of PostgresStatus
8664 func (o *DatabaseStatus) GetPostgresStatus() string {
8665 return o.PostgresStatus
8666 }
8667
8668 // SetPostgresStatus sets value to PostgresStatus
8669 func (o *DatabaseStatus) SetPostgresStatus(v string) {
8670 o.PostgresStatus = v
8671 }
8672
8673 // GetIsFatal returns value of IsFatal
8674 func (o *DatabaseStatus) GetIsFatal() bool {
8675 return o.IsFatal
8676 }
8677
8678 // SetIsFatal sets value to IsFatal
8679 func (o *DatabaseStatus) SetIsFatal(v bool) {
8680 o.IsFatal = v
8681 }
8682
8683 // GetVersion returns value of Version
8684 func (o *DatabaseStatus) GetVersion() *DatabaseVersionInfo {
8685 return o.Version
8686 }
8687
8688 // SetVersion sets value to Version
8689 func (o *DatabaseStatus) SetVersion(v *DatabaseVersionInfo) {
8690 o.Version = v
8691 }
8692
8693 // GetLogs returns value of Logs
8694 func (o *DatabaseStatus) GetLogs() []*DatabaseLog {
8695 return o.Logs
8696 }
8697
8698 // SetLogs sets value to Logs
8699 func (o *DatabaseStatus) SetLogs(v []*DatabaseLog) {
8700 o.Logs = v
8701 }
8702
8703 // GetBackups returns value of Backups
8704 func (o *DatabaseStatus) GetBackups() []*DatabaseBackupHistory {
8705 return o.Backups
8706 }
8707
8708 // SetBackups sets value to Backups
8709 func (o *DatabaseStatus) SetBackups(v []*DatabaseBackupHistory) {
8710 o.Backups = v
8711 }
8712
8713 /*************************************************
8714 * DatabaseVersionInfo
8715 *************************************************/
8716
8717 // DatabaseVersionInfo represents API parameter/response structure
8718 type DatabaseVersionInfo struct {
8719 LastModified string
8720 CommitHash string
8721 Status string
8722 Tag string
8723 Expire string
8724 }
8725
8726 // setDefaults implements iaas.argumentDefaulter
8727 func (o *DatabaseVersionInfo) setDefaults() interface{} {
8728 return &struct {
8729 LastModified string
8730 CommitHash string
8731 Status string
8732 Tag string
8733 Expire string
8734 }{
8735 LastModified: o.GetLastModified(),
8736 CommitHash: o.GetCommitHash(),
8737 Status: o.GetStatus(),
8738 Tag: o.GetTag(),
8739 Expire: o.GetExpire(),
8740 }
8741 }
8742
8743 // GetLastModified returns value of LastModified
8744 func (o *DatabaseVersionInfo) GetLastModified() string {
8745 return o.LastModified
8746 }
8747
8748 // SetLastModified sets value to LastModified
8749 func (o *DatabaseVersionInfo) SetLastModified(v string) {
8750 o.LastModified = v
8751 }
8752
8753 // GetCommitHash returns value of CommitHash
8754 func (o *DatabaseVersionInfo) GetCommitHash() string {
8755 return o.CommitHash
8756 }
8757
8758 // SetCommitHash sets value to CommitHash
8759 func (o *DatabaseVersionInfo) SetCommitHash(v string) {
8760 o.CommitHash = v
8761 }
8762
8763 // GetStatus returns value of Status
8764 func (o *DatabaseVersionInfo) GetStatus() string {
8765 return o.Status
8766 }
8767
8768 // SetStatus sets value to Status
8769 func (o *DatabaseVersionInfo) SetStatus(v string) {
8770 o.Status = v
8771 }
8772
8773 // GetTag returns value of Tag
8774 func (o *DatabaseVersionInfo) GetTag() string {
8775 return o.Tag
8776 }
8777
8778 // SetTag sets value to Tag
8779 func (o *DatabaseVersionInfo) SetTag(v string) {
8780 o.Tag = v
8781 }
8782
8783 // GetExpire returns value of Expire
8784 func (o *DatabaseVersionInfo) GetExpire() string {
8785 return o.Expire
8786 }
8787
8788 // SetExpire sets value to Expire
8789 func (o *DatabaseVersionInfo) SetExpire(v string) {
8790 o.Expire = v
8791 }
8792
8793 /*************************************************
8794 * DatabaseLog
8795 *************************************************/
8796
8797 // DatabaseLog represents API parameter/response structure
8798 type DatabaseLog struct {
8799 Name string
8800 Data string
8801 Size types.StringNumber
8802 }
8803
8804 // setDefaults implements iaas.argumentDefaulter
8805 func (o *DatabaseLog) setDefaults() interface{} {
8806 return &struct {
8807 Name string
8808 Data string
8809 Size types.StringNumber
8810 }{
8811 Name: o.GetName(),
8812 Data: o.GetData(),
8813 Size: o.GetSize(),
8814 }
8815 }
8816
8817 // GetName returns value of Name
8818 func (o *DatabaseLog) GetName() string {
8819 return o.Name
8820 }
8821
8822 // SetName sets value to Name
8823 func (o *DatabaseLog) SetName(v string) {
8824 o.Name = v
8825 }
8826
8827 // GetData returns value of Data
8828 func (o *DatabaseLog) GetData() string {
8829 return o.Data
8830 }
8831
8832 // SetData sets value to Data
8833 func (o *DatabaseLog) SetData(v string) {
8834 o.Data = v
8835 }
8836
8837 // GetSize returns value of Size
8838 func (o *DatabaseLog) GetSize() types.StringNumber {
8839 return o.Size
8840 }
8841
8842 // SetSize sets value to Size
8843 func (o *DatabaseLog) SetSize(v types.StringNumber) {
8844 o.Size = v
8845 }
8846
8847 /*************************************************
8848 * DatabaseBackupHistory
8849 *************************************************/
8850
8851 // DatabaseBackupHistory represents API parameter/response structure
8852 type DatabaseBackupHistory struct {
8853 CreatedAt time.Time
8854 Availability string
8855 RecoveredAt time.Time
8856 Size int64
8857 }
8858
8859 // setDefaults implements iaas.argumentDefaulter
8860 func (o *DatabaseBackupHistory) setDefaults() interface{} {
8861 return &struct {
8862 CreatedAt time.Time
8863 Availability string
8864 RecoveredAt time.Time
8865 Size int64
8866 }{
8867 CreatedAt: o.GetCreatedAt(),
8868 Availability: o.GetAvailability(),
8869 RecoveredAt: o.GetRecoveredAt(),
8870 Size: o.GetSize(),
8871 }
8872 }
8873
8874 // GetCreatedAt returns value of CreatedAt
8875 func (o *DatabaseBackupHistory) GetCreatedAt() time.Time {
8876 return o.CreatedAt
8877 }
8878
8879 // SetCreatedAt sets value to CreatedAt
8880 func (o *DatabaseBackupHistory) SetCreatedAt(v time.Time) {
8881 o.CreatedAt = v
8882 }
8883
8884 // GetAvailability returns value of Availability
8885 func (o *DatabaseBackupHistory) GetAvailability() string {
8886 return o.Availability
8887 }
8888
8889 // SetAvailability sets value to Availability
8890 func (o *DatabaseBackupHistory) SetAvailability(v string) {
8891 o.Availability = v
8892 }
8893
8894 // GetRecoveredAt returns value of RecoveredAt
8895 func (o *DatabaseBackupHistory) GetRecoveredAt() time.Time {
8896 return o.RecoveredAt
8897 }
8898
8899 // SetRecoveredAt sets value to RecoveredAt
8900 func (o *DatabaseBackupHistory) SetRecoveredAt(v time.Time) {
8901 o.RecoveredAt = v
8902 }
8903
8904 // GetSize returns value of Size
8905 func (o *DatabaseBackupHistory) GetSize() int64 {
8906 return o.Size
8907 }
8908
8909 // SetSize sets value to Size
8910 func (o *DatabaseBackupHistory) SetSize(v int64) {
8911 o.Size = v
8912 }
8913
8914 /*************************************************
8915 * DatabaseParameter
8916 *************************************************/
8917
8918 // DatabaseParameter represents API parameter/response structure
8919 type DatabaseParameter struct {
8920 Settings map[string]interface{} `mapconv:"Parameter.Attr"`
8921 MetaInfo []*DatabaseParameterMeta `mapconv:"Remark.[]Form,recursive"`
8922 }
8923
8924 // setDefaults implements iaas.argumentDefaulter
8925 func (o *DatabaseParameter) setDefaults() interface{} {
8926 return &struct {
8927 Settings map[string]interface{} `mapconv:"Parameter.Attr"`
8928 MetaInfo []*DatabaseParameterMeta `mapconv:"Remark.[]Form,recursive"`
8929 }{
8930 Settings: o.GetSettings(),
8931 MetaInfo: o.GetMetaInfo(),
8932 }
8933 }
8934
8935 // GetSettings returns value of Settings
8936 func (o *DatabaseParameter) GetSettings() map[string]interface{} {
8937 return o.Settings
8938 }
8939
8940 // SetSettings sets value to Settings
8941 func (o *DatabaseParameter) SetSettings(v map[string]interface{}) {
8942 o.Settings = v
8943 }
8944
8945 // GetMetaInfo returns value of MetaInfo
8946 func (o *DatabaseParameter) GetMetaInfo() []*DatabaseParameterMeta {
8947 return o.MetaInfo
8948 }
8949
8950 // SetMetaInfo sets value to MetaInfo
8951 func (o *DatabaseParameter) SetMetaInfo(v []*DatabaseParameterMeta) {
8952 o.MetaInfo = v
8953 }
8954
8955 /*************************************************
8956 * DatabaseParameterMeta
8957 *************************************************/
8958
8959 // DatabaseParameterMeta represents API parameter/response structure
8960 type DatabaseParameterMeta struct {
8961 Type string `mapconv:"Options.Type"`
8962 Name string
8963 Label string
8964 Text string `mapconv:"Options.Text"`
8965 Example string `mapconv:"Options.Example"`
8966 Min float64 `mapconv:"Options.Min"`
8967 Max float64 `mapconv:"Options.Max"`
8968 MaxLen int `mapconv:"Options.MaxLen"`
8969 Reboot string `mapconv:"Options.Reboot"`
8970 }
8971
8972 // setDefaults implements iaas.argumentDefaulter
8973 func (o *DatabaseParameterMeta) setDefaults() interface{} {
8974 return &struct {
8975 Type string `mapconv:"Options.Type"`
8976 Name string
8977 Label string
8978 Text string `mapconv:"Options.Text"`
8979 Example string `mapconv:"Options.Example"`
8980 Min float64 `mapconv:"Options.Min"`
8981 Max float64 `mapconv:"Options.Max"`
8982 MaxLen int `mapconv:"Options.MaxLen"`
8983 Reboot string `mapconv:"Options.Reboot"`
8984 }{
8985 Type: o.GetType(),
8986 Name: o.GetName(),
8987 Label: o.GetLabel(),
8988 Text: o.GetText(),
8989 Example: o.GetExample(),
8990 Min: o.GetMin(),
8991 Max: o.GetMax(),
8992 MaxLen: o.GetMaxLen(),
8993 Reboot: o.GetReboot(),
8994 }
8995 }
8996
8997 // GetType returns value of Type
8998 func (o *DatabaseParameterMeta) GetType() string {
8999 return o.Type
9000 }
9001
9002 // SetType sets value to Type
9003 func (o *DatabaseParameterMeta) SetType(v string) {
9004 o.Type = v
9005 }
9006
9007 // GetName returns value of Name
9008 func (o *DatabaseParameterMeta) GetName() string {
9009 return o.Name
9010 }
9011
9012 // SetName sets value to Name
9013 func (o *DatabaseParameterMeta) SetName(v string) {
9014 o.Name = v
9015 }
9016
9017 // GetLabel returns value of Label
9018 func (o *DatabaseParameterMeta) GetLabel() string {
9019 return o.Label
9020 }
9021
9022 // SetLabel sets value to Label
9023 func (o *DatabaseParameterMeta) SetLabel(v string) {
9024 o.Label = v
9025 }
9026
9027 // GetText returns value of Text
9028 func (o *DatabaseParameterMeta) GetText() string {
9029 return o.Text
9030 }
9031
9032 // SetText sets value to Text
9033 func (o *DatabaseParameterMeta) SetText(v string) {
9034 o.Text = v
9035 }
9036
9037 // GetExample returns value of Example
9038 func (o *DatabaseParameterMeta) GetExample() string {
9039 return o.Example
9040 }
9041
9042 // SetExample sets value to Example
9043 func (o *DatabaseParameterMeta) SetExample(v string) {
9044 o.Example = v
9045 }
9046
9047 // GetMin returns value of Min
9048 func (o *DatabaseParameterMeta) GetMin() float64 {
9049 return o.Min
9050 }
9051
9052 // SetMin sets value to Min
9053 func (o *DatabaseParameterMeta) SetMin(v float64) {
9054 o.Min = v
9055 }
9056
9057 // GetMax returns value of Max
9058 func (o *DatabaseParameterMeta) GetMax() float64 {
9059 return o.Max
9060 }
9061
9062 // SetMax sets value to Max
9063 func (o *DatabaseParameterMeta) SetMax(v float64) {
9064 o.Max = v
9065 }
9066
9067 // GetMaxLen returns value of MaxLen
9068 func (o *DatabaseParameterMeta) GetMaxLen() int {
9069 return o.MaxLen
9070 }
9071
9072 // SetMaxLen sets value to MaxLen
9073 func (o *DatabaseParameterMeta) SetMaxLen(v int) {
9074 o.MaxLen = v
9075 }
9076
9077 // GetReboot returns value of Reboot
9078 func (o *DatabaseParameterMeta) GetReboot() string {
9079 return o.Reboot
9080 }
9081
9082 // SetReboot sets value to Reboot
9083 func (o *DatabaseParameterMeta) SetReboot(v string) {
9084 o.Reboot = v
9085 }
9086
9087 /*************************************************
9088 * Disk
9089 *************************************************/
9090
9091 // Disk represents API parameter/response structure
9092 type Disk struct {
9093 ID types.ID
9094 Name string
9095 Description string
9096 Tags types.Tags
9097 Availability types.EAvailability
9098 Connection types.EDiskConnection `json:",omitempty" mapconv:",omitempty"`
9099 ConnectionOrder int
9100 EncryptionAlgorithm types.EDiskEncryptionAlgorithm `json:",omitempty" mapconv:",omitempty"`
9101 KMSKeyID types.ID `mapconv:"EncryptionKey.KMSKeyID"`
9102 ReinstallCount int
9103 JobStatus *JobStatus
9104 SizeMB int
9105 MigratedMB int
9106 DiskPlanID types.ID `mapconv:"Plan.ID"`
9107 DiskPlanName string `mapconv:"Plan.Name"`
9108 DiskPlanStorageClass string `mapconv:"Plan.StorageClass"`
9109 SourceDiskID types.ID `mapconv:"SourceDisk.ID,omitempty"`
9110 SourceDiskAvailability types.EAvailability `mapconv:"SourceDisk.Availability,omitempty"`
9111 SourceArchiveID types.ID `mapconv:"SourceArchive.ID,omitempty"`
9112 SourceArchiveAvailability types.EAvailability `mapconv:"SourceArchive.Availability,omitempty"`
9113 BundleInfo *BundleInfo `json:",omitempty" mapconv:",omitempty,recursive"`
9114 Storage *Storage `json:",omitempty" mapconv:",omitempty,recursive"`
9115 ServerID types.ID `mapconv:"Server.ID,omitempty"`
9116 ServerName string `mapconv:"Server.Name,omitempty"`
9117 IconID types.ID `mapconv:"Icon.ID"`
9118 CreatedAt time.Time
9119 ModifiedAt time.Time
9120 }
9121
9122 // setDefaults implements iaas.argumentDefaulter
9123 func (o *Disk) setDefaults() interface{} {
9124 return &struct {
9125 ID types.ID
9126 Name string
9127 Description string
9128 Tags types.Tags
9129 Availability types.EAvailability
9130 Connection types.EDiskConnection `json:",omitempty" mapconv:",omitempty"`
9131 ConnectionOrder int
9132 EncryptionAlgorithm types.EDiskEncryptionAlgorithm `json:",omitempty" mapconv:",omitempty"`
9133 KMSKeyID types.ID `mapconv:"EncryptionKey.KMSKeyID"`
9134 ReinstallCount int
9135 JobStatus *JobStatus
9136 SizeMB int
9137 MigratedMB int
9138 DiskPlanID types.ID `mapconv:"Plan.ID"`
9139 DiskPlanName string `mapconv:"Plan.Name"`
9140 DiskPlanStorageClass string `mapconv:"Plan.StorageClass"`
9141 SourceDiskID types.ID `mapconv:"SourceDisk.ID,omitempty"`
9142 SourceDiskAvailability types.EAvailability `mapconv:"SourceDisk.Availability,omitempty"`
9143 SourceArchiveID types.ID `mapconv:"SourceArchive.ID,omitempty"`
9144 SourceArchiveAvailability types.EAvailability `mapconv:"SourceArchive.Availability,omitempty"`
9145 BundleInfo *BundleInfo `json:",omitempty" mapconv:",omitempty,recursive"`
9146 Storage *Storage `json:",omitempty" mapconv:",omitempty,recursive"`
9147 ServerID types.ID `mapconv:"Server.ID,omitempty"`
9148 ServerName string `mapconv:"Server.Name,omitempty"`
9149 IconID types.ID `mapconv:"Icon.ID"`
9150 CreatedAt time.Time
9151 ModifiedAt time.Time
9152 }{
9153 ID: o.GetID(),
9154 Name: o.GetName(),
9155 Description: o.GetDescription(),
9156 Tags: o.GetTags(),
9157 Availability: o.GetAvailability(),
9158 Connection: o.GetConnection(),
9159 ConnectionOrder: o.GetConnectionOrder(),
9160 EncryptionAlgorithm: o.GetEncryptionAlgorithm(),
9161 KMSKeyID: o.GetKMSKeyID(),
9162 ReinstallCount: o.GetReinstallCount(),
9163 JobStatus: o.GetJobStatus(),
9164 SizeMB: o.GetSizeMB(),
9165 MigratedMB: o.GetMigratedMB(),
9166 DiskPlanID: o.GetDiskPlanID(),
9167 DiskPlanName: o.GetDiskPlanName(),
9168 DiskPlanStorageClass: o.GetDiskPlanStorageClass(),
9169 SourceDiskID: o.GetSourceDiskID(),
9170 SourceDiskAvailability: o.GetSourceDiskAvailability(),
9171 SourceArchiveID: o.GetSourceArchiveID(),
9172 SourceArchiveAvailability: o.GetSourceArchiveAvailability(),
9173 BundleInfo: o.GetBundleInfo(),
9174 Storage: o.GetStorage(),
9175 ServerID: o.GetServerID(),
9176 ServerName: o.GetServerName(),
9177 IconID: o.GetIconID(),
9178 CreatedAt: o.GetCreatedAt(),
9179 ModifiedAt: o.GetModifiedAt(),
9180 }
9181 }
9182
9183 // GetID returns value of ID
9184 func (o *Disk) GetID() types.ID {
9185 return o.ID
9186 }
9187
9188 // SetID sets value to ID
9189 func (o *Disk) SetID(v types.ID) {
9190 o.ID = v
9191 }
9192
9193 // SetStringID .
9194 func (o *Disk) SetStringID(id string) {
9195 accessor.SetStringID(o, id)
9196 }
9197
9198 // GetStringID .
9199 func (o *Disk) GetStringID() string {
9200 return accessor.GetStringID(o)
9201 }
9202
9203 // SetInt64ID .
9204 func (o *Disk) SetInt64ID(id int64) {
9205 accessor.SetInt64ID(o, id)
9206 }
9207
9208 // GetInt64ID .
9209 func (o *Disk) GetInt64ID() int64 {
9210 return accessor.GetInt64ID(o)
9211 }
9212
9213 // GetName returns value of Name
9214 func (o *Disk) GetName() string {
9215 return o.Name
9216 }
9217
9218 // SetName sets value to Name
9219 func (o *Disk) SetName(v string) {
9220 o.Name = v
9221 }
9222
9223 // GetDescription returns value of Description
9224 func (o *Disk) GetDescription() string {
9225 return o.Description
9226 }
9227
9228 // SetDescription sets value to Description
9229 func (o *Disk) SetDescription(v string) {
9230 o.Description = v
9231 }
9232
9233 // GetTags returns value of Tags
9234 func (o *Disk) GetTags() types.Tags {
9235 return o.Tags
9236 }
9237
9238 // SetTags sets value to Tags
9239 func (o *Disk) SetTags(v types.Tags) {
9240 o.Tags = v
9241 }
9242
9243 // HasTag 指定のタグが存在する場合trueを返す
9244 func (o *Disk) HasTag(tag string) bool {
9245 return accessor.HasTag(o, tag)
9246 }
9247
9248 // AppendTag 指定のタグを追加
9249 func (o *Disk) AppendTag(tag string) {
9250 accessor.AppendTag(o, tag)
9251 }
9252
9253 // RemoveTag 指定のタグを削除
9254 func (o *Disk) RemoveTag(tag string) {
9255 accessor.RemoveTag(o, tag)
9256 }
9257
9258 // ClearTags タグを全クリア
9259 func (o *Disk) ClearTags() {
9260 accessor.ClearTags(o)
9261 }
9262
9263 // GetAvailability returns value of Availability
9264 func (o *Disk) GetAvailability() types.EAvailability {
9265 return o.Availability
9266 }
9267
9268 // SetAvailability sets value to Availability
9269 func (o *Disk) SetAvailability(v types.EAvailability) {
9270 o.Availability = v
9271 }
9272
9273 // GetConnection returns value of Connection
9274 func (o *Disk) GetConnection() types.EDiskConnection {
9275 return o.Connection
9276 }
9277
9278 // SetConnection sets value to Connection
9279 func (o *Disk) SetConnection(v types.EDiskConnection) {
9280 o.Connection = v
9281 }
9282
9283 // GetConnectionOrder returns value of ConnectionOrder
9284 func (o *Disk) GetConnectionOrder() int {
9285 return o.ConnectionOrder
9286 }
9287
9288 // SetConnectionOrder sets value to ConnectionOrder
9289 func (o *Disk) SetConnectionOrder(v int) {
9290 o.ConnectionOrder = v
9291 }
9292
9293 // GetEncryptionAlgorithm returns value of EncryptionAlgorithm
9294 func (o *Disk) GetEncryptionAlgorithm() types.EDiskEncryptionAlgorithm {
9295 return o.EncryptionAlgorithm
9296 }
9297
9298 // SetEncryptionAlgorithm sets value to EncryptionAlgorithm
9299 func (o *Disk) SetEncryptionAlgorithm(v types.EDiskEncryptionAlgorithm) {
9300 o.EncryptionAlgorithm = v
9301 }
9302
9303 // GetKMSKeyID returns value of KMSKeyID
9304 func (o *Disk) GetKMSKeyID() types.ID {
9305 return o.KMSKeyID
9306 }
9307
9308 // SetKMSKeyID sets value to KMSKeyID
9309 func (o *Disk) SetKMSKeyID(v types.ID) {
9310 o.KMSKeyID = v
9311 }
9312
9313 // GetReinstallCount returns value of ReinstallCount
9314 func (o *Disk) GetReinstallCount() int {
9315 return o.ReinstallCount
9316 }
9317
9318 // SetReinstallCount sets value to ReinstallCount
9319 func (o *Disk) SetReinstallCount(v int) {
9320 o.ReinstallCount = v
9321 }
9322
9323 // GetJobStatus returns value of JobStatus
9324 func (o *Disk) GetJobStatus() *JobStatus {
9325 return o.JobStatus
9326 }
9327
9328 // SetJobStatus sets value to JobStatus
9329 func (o *Disk) SetJobStatus(v *JobStatus) {
9330 o.JobStatus = v
9331 }
9332
9333 // GetSizeMB returns value of SizeMB
9334 func (o *Disk) GetSizeMB() int {
9335 return o.SizeMB
9336 }
9337
9338 // SetSizeMB sets value to SizeMB
9339 func (o *Disk) SetSizeMB(v int) {
9340 o.SizeMB = v
9341 }
9342
9343 // GetSizeGB .
9344 func (o *Disk) GetSizeGB() int {
9345 return accessor.GetSizeGB(o)
9346 }
9347
9348 // SetSizeGB .
9349 func (o *Disk) SetSizeGB(size int) {
9350 accessor.SetSizeGB(o, size)
9351 }
9352
9353 // GetMigratedMB returns value of MigratedMB
9354 func (o *Disk) GetMigratedMB() int {
9355 return o.MigratedMB
9356 }
9357
9358 // SetMigratedMB sets value to MigratedMB
9359 func (o *Disk) SetMigratedMB(v int) {
9360 o.MigratedMB = v
9361 }
9362
9363 // GetMigratedGB .
9364 func (o *Disk) GetMigratedGB() int {
9365 return accessor.GetMigratedGB(o)
9366 }
9367
9368 // GetDiskPlanID returns value of DiskPlanID
9369 func (o *Disk) GetDiskPlanID() types.ID {
9370 return o.DiskPlanID
9371 }
9372
9373 // SetDiskPlanID sets value to DiskPlanID
9374 func (o *Disk) SetDiskPlanID(v types.ID) {
9375 o.DiskPlanID = v
9376 }
9377
9378 // GetDiskPlanName returns value of DiskPlanName
9379 func (o *Disk) GetDiskPlanName() string {
9380 return o.DiskPlanName
9381 }
9382
9383 // SetDiskPlanName sets value to DiskPlanName
9384 func (o *Disk) SetDiskPlanName(v string) {
9385 o.DiskPlanName = v
9386 }
9387
9388 // GetDiskPlanStorageClass returns value of DiskPlanStorageClass
9389 func (o *Disk) GetDiskPlanStorageClass() string {
9390 return o.DiskPlanStorageClass
9391 }
9392
9393 // SetDiskPlanStorageClass sets value to DiskPlanStorageClass
9394 func (o *Disk) SetDiskPlanStorageClass(v string) {
9395 o.DiskPlanStorageClass = v
9396 }
9397
9398 // GetSourceDiskID returns value of SourceDiskID
9399 func (o *Disk) GetSourceDiskID() types.ID {
9400 return o.SourceDiskID
9401 }
9402
9403 // SetSourceDiskID sets value to SourceDiskID
9404 func (o *Disk) SetSourceDiskID(v types.ID) {
9405 o.SourceDiskID = v
9406 }
9407
9408 // GetSourceDiskAvailability returns value of SourceDiskAvailability
9409 func (o *Disk) GetSourceDiskAvailability() types.EAvailability {
9410 return o.SourceDiskAvailability
9411 }
9412
9413 // SetSourceDiskAvailability sets value to SourceDiskAvailability
9414 func (o *Disk) SetSourceDiskAvailability(v types.EAvailability) {
9415 o.SourceDiskAvailability = v
9416 }
9417
9418 // GetSourceArchiveID returns value of SourceArchiveID
9419 func (o *Disk) GetSourceArchiveID() types.ID {
9420 return o.SourceArchiveID
9421 }
9422
9423 // SetSourceArchiveID sets value to SourceArchiveID
9424 func (o *Disk) SetSourceArchiveID(v types.ID) {
9425 o.SourceArchiveID = v
9426 }
9427
9428 // GetSourceArchiveAvailability returns value of SourceArchiveAvailability
9429 func (o *Disk) GetSourceArchiveAvailability() types.EAvailability {
9430 return o.SourceArchiveAvailability
9431 }
9432
9433 // SetSourceArchiveAvailability sets value to SourceArchiveAvailability
9434 func (o *Disk) SetSourceArchiveAvailability(v types.EAvailability) {
9435 o.SourceArchiveAvailability = v
9436 }
9437
9438 // GetBundleInfo returns value of BundleInfo
9439 func (o *Disk) GetBundleInfo() *BundleInfo {
9440 return o.BundleInfo
9441 }
9442
9443 // SetBundleInfo sets value to BundleInfo
9444 func (o *Disk) SetBundleInfo(v *BundleInfo) {
9445 o.BundleInfo = v
9446 }
9447
9448 // GetStorage returns value of Storage
9449 func (o *Disk) GetStorage() *Storage {
9450 return o.Storage
9451 }
9452
9453 // SetStorage sets value to Storage
9454 func (o *Disk) SetStorage(v *Storage) {
9455 o.Storage = v
9456 }
9457
9458 // GetServerID returns value of ServerID
9459 func (o *Disk) GetServerID() types.ID {
9460 return o.ServerID
9461 }
9462
9463 // SetServerID sets value to ServerID
9464 func (o *Disk) SetServerID(v types.ID) {
9465 o.ServerID = v
9466 }
9467
9468 // GetServerName returns value of ServerName
9469 func (o *Disk) GetServerName() string {
9470 return o.ServerName
9471 }
9472
9473 // SetServerName sets value to ServerName
9474 func (o *Disk) SetServerName(v string) {
9475 o.ServerName = v
9476 }
9477
9478 // GetIconID returns value of IconID
9479 func (o *Disk) GetIconID() types.ID {
9480 return o.IconID
9481 }
9482
9483 // SetIconID sets value to IconID
9484 func (o *Disk) SetIconID(v types.ID) {
9485 o.IconID = v
9486 }
9487
9488 // GetCreatedAt returns value of CreatedAt
9489 func (o *Disk) GetCreatedAt() time.Time {
9490 return o.CreatedAt
9491 }
9492
9493 // SetCreatedAt sets value to CreatedAt
9494 func (o *Disk) SetCreatedAt(v time.Time) {
9495 o.CreatedAt = v
9496 }
9497
9498 // GetModifiedAt returns value of ModifiedAt
9499 func (o *Disk) GetModifiedAt() time.Time {
9500 return o.ModifiedAt
9501 }
9502
9503 // SetModifiedAt sets value to ModifiedAt
9504 func (o *Disk) SetModifiedAt(v time.Time) {
9505 o.ModifiedAt = v
9506 }
9507
9508 /*************************************************
9509 * JobStatus
9510 *************************************************/
9511
9512 // JobStatus represents API parameter/response structure
9513 type JobStatus struct {
9514 Status string
9515 ConfigError *JobConfigError
9516 }
9517
9518 // setDefaults implements iaas.argumentDefaulter
9519 func (o *JobStatus) setDefaults() interface{} {
9520 return &struct {
9521 Status string
9522 ConfigError *JobConfigError
9523 }{
9524 Status: o.GetStatus(),
9525 ConfigError: o.GetConfigError(),
9526 }
9527 }
9528
9529 // GetStatus returns value of Status
9530 func (o *JobStatus) GetStatus() string {
9531 return o.Status
9532 }
9533
9534 // SetStatus sets value to Status
9535 func (o *JobStatus) SetStatus(v string) {
9536 o.Status = v
9537 }
9538
9539 // GetConfigError returns value of ConfigError
9540 func (o *JobStatus) GetConfigError() *JobConfigError {
9541 return o.ConfigError
9542 }
9543
9544 // SetConfigError sets value to ConfigError
9545 func (o *JobStatus) SetConfigError(v *JobConfigError) {
9546 o.ConfigError = v
9547 }
9548
9549 /*************************************************
9550 * JobConfigError
9551 *************************************************/
9552
9553 // JobConfigError represents API parameter/response structure
9554 type JobConfigError struct {
9555 ErrorCode string
9556 ErrorMsg string
9557 Status string
9558 }
9559
9560 // setDefaults implements iaas.argumentDefaulter
9561 func (o *JobConfigError) setDefaults() interface{} {
9562 return &struct {
9563 ErrorCode string
9564 ErrorMsg string
9565 Status string
9566 }{
9567 ErrorCode: o.GetErrorCode(),
9568 ErrorMsg: o.GetErrorMsg(),
9569 Status: o.GetStatus(),
9570 }
9571 }
9572
9573 // GetErrorCode returns value of ErrorCode
9574 func (o *JobConfigError) GetErrorCode() string {
9575 return o.ErrorCode
9576 }
9577
9578 // SetErrorCode sets value to ErrorCode
9579 func (o *JobConfigError) SetErrorCode(v string) {
9580 o.ErrorCode = v
9581 }
9582
9583 // GetErrorMsg returns value of ErrorMsg
9584 func (o *JobConfigError) GetErrorMsg() string {
9585 return o.ErrorMsg
9586 }
9587
9588 // SetErrorMsg sets value to ErrorMsg
9589 func (o *JobConfigError) SetErrorMsg(v string) {
9590 o.ErrorMsg = v
9591 }
9592
9593 // GetStatus returns value of Status
9594 func (o *JobConfigError) GetStatus() string {
9595 return o.Status
9596 }
9597
9598 // SetStatus sets value to Status
9599 func (o *JobConfigError) SetStatus(v string) {
9600 o.Status = v
9601 }
9602
9603 /*************************************************
9604 * DiskCreateRequest
9605 *************************************************/
9606
9607 // DiskCreateRequest represents API parameter/response structure
9608 type DiskCreateRequest struct {
9609 DiskPlanID types.ID `mapconv:"Plan.ID"`
9610 Connection types.EDiskConnection `json:",omitempty" mapconv:",omitempty"`
9611 EncryptionAlgorithm types.EDiskEncryptionAlgorithm `json:",omitempty" mapconv:",omitempty"`
9612 SourceDiskID types.ID `mapconv:"SourceDisk.ID,omitempty"`
9613 SourceArchiveID types.ID `mapconv:"SourceArchive.ID,omitempty"`
9614 ServerID types.ID `mapconv:"Server.ID,omitempty"`
9615 SizeMB int
9616 Name string
9617 Description string
9618 Tags types.Tags
9619 IconID types.ID `mapconv:"Icon.ID"`
9620 }
9621
9622 // setDefaults implements iaas.argumentDefaulter
9623 func (o *DiskCreateRequest) setDefaults() interface{} {
9624 return &struct {
9625 DiskPlanID types.ID `mapconv:"Plan.ID"`
9626 Connection types.EDiskConnection `json:",omitempty" mapconv:",omitempty"`
9627 EncryptionAlgorithm types.EDiskEncryptionAlgorithm `json:",omitempty" mapconv:",omitempty"`
9628 SourceDiskID types.ID `mapconv:"SourceDisk.ID,omitempty"`
9629 SourceArchiveID types.ID `mapconv:"SourceArchive.ID,omitempty"`
9630 ServerID types.ID `mapconv:"Server.ID,omitempty"`
9631 SizeMB int
9632 Name string
9633 Description string
9634 Tags types.Tags
9635 IconID types.ID `mapconv:"Icon.ID"`
9636 }{
9637 DiskPlanID: o.GetDiskPlanID(),
9638 Connection: o.GetConnection(),
9639 EncryptionAlgorithm: o.GetEncryptionAlgorithm(),
9640 SourceDiskID: o.GetSourceDiskID(),
9641 SourceArchiveID: o.GetSourceArchiveID(),
9642 ServerID: o.GetServerID(),
9643 SizeMB: o.GetSizeMB(),
9644 Name: o.GetName(),
9645 Description: o.GetDescription(),
9646 Tags: o.GetTags(),
9647 IconID: o.GetIconID(),
9648 }
9649 }
9650
9651 // GetDiskPlanID returns value of DiskPlanID
9652 func (o *DiskCreateRequest) GetDiskPlanID() types.ID {
9653 return o.DiskPlanID
9654 }
9655
9656 // SetDiskPlanID sets value to DiskPlanID
9657 func (o *DiskCreateRequest) SetDiskPlanID(v types.ID) {
9658 o.DiskPlanID = v
9659 }
9660
9661 // GetConnection returns value of Connection
9662 func (o *DiskCreateRequest) GetConnection() types.EDiskConnection {
9663 return o.Connection
9664 }
9665
9666 // SetConnection sets value to Connection
9667 func (o *DiskCreateRequest) SetConnection(v types.EDiskConnection) {
9668 o.Connection = v
9669 }
9670
9671 // GetEncryptionAlgorithm returns value of EncryptionAlgorithm
9672 func (o *DiskCreateRequest) GetEncryptionAlgorithm() types.EDiskEncryptionAlgorithm {
9673 return o.EncryptionAlgorithm
9674 }
9675
9676 // SetEncryptionAlgorithm sets value to EncryptionAlgorithm
9677 func (o *DiskCreateRequest) SetEncryptionAlgorithm(v types.EDiskEncryptionAlgorithm) {
9678 o.EncryptionAlgorithm = v
9679 }
9680
9681 // GetSourceDiskID returns value of SourceDiskID
9682 func (o *DiskCreateRequest) GetSourceDiskID() types.ID {
9683 return o.SourceDiskID
9684 }
9685
9686 // SetSourceDiskID sets value to SourceDiskID
9687 func (o *DiskCreateRequest) SetSourceDiskID(v types.ID) {
9688 o.SourceDiskID = v
9689 }
9690
9691 // GetSourceArchiveID returns value of SourceArchiveID
9692 func (o *DiskCreateRequest) GetSourceArchiveID() types.ID {
9693 return o.SourceArchiveID
9694 }
9695
9696 // SetSourceArchiveID sets value to SourceArchiveID
9697 func (o *DiskCreateRequest) SetSourceArchiveID(v types.ID) {
9698 o.SourceArchiveID = v
9699 }
9700
9701 // GetServerID returns value of ServerID
9702 func (o *DiskCreateRequest) GetServerID() types.ID {
9703 return o.ServerID
9704 }
9705
9706 // SetServerID sets value to ServerID
9707 func (o *DiskCreateRequest) SetServerID(v types.ID) {
9708 o.ServerID = v
9709 }
9710
9711 // GetSizeMB returns value of SizeMB
9712 func (o *DiskCreateRequest) GetSizeMB() int {
9713 return o.SizeMB
9714 }
9715
9716 // SetSizeMB sets value to SizeMB
9717 func (o *DiskCreateRequest) SetSizeMB(v int) {
9718 o.SizeMB = v
9719 }
9720
9721 // GetSizeGB .
9722 func (o *DiskCreateRequest) GetSizeGB() int {
9723 return accessor.GetSizeGB(o)
9724 }
9725
9726 // SetSizeGB .
9727 func (o *DiskCreateRequest) SetSizeGB(size int) {
9728 accessor.SetSizeGB(o, size)
9729 }
9730
9731 // GetName returns value of Name
9732 func (o *DiskCreateRequest) GetName() string {
9733 return o.Name
9734 }
9735
9736 // SetName sets value to Name
9737 func (o *DiskCreateRequest) SetName(v string) {
9738 o.Name = v
9739 }
9740
9741 // GetDescription returns value of Description
9742 func (o *DiskCreateRequest) GetDescription() string {
9743 return o.Description
9744 }
9745
9746 // SetDescription sets value to Description
9747 func (o *DiskCreateRequest) SetDescription(v string) {
9748 o.Description = v
9749 }
9750
9751 // GetTags returns value of Tags
9752 func (o *DiskCreateRequest) GetTags() types.Tags {
9753 return o.Tags
9754 }
9755
9756 // SetTags sets value to Tags
9757 func (o *DiskCreateRequest) SetTags(v types.Tags) {
9758 o.Tags = v
9759 }
9760
9761 // HasTag 指定のタグが存在する場合trueを返す
9762 func (o *DiskCreateRequest) HasTag(tag string) bool {
9763 return accessor.HasTag(o, tag)
9764 }
9765
9766 // AppendTag 指定のタグを追加
9767 func (o *DiskCreateRequest) AppendTag(tag string) {
9768 accessor.AppendTag(o, tag)
9769 }
9770
9771 // RemoveTag 指定のタグを削除
9772 func (o *DiskCreateRequest) RemoveTag(tag string) {
9773 accessor.RemoveTag(o, tag)
9774 }
9775
9776 // ClearTags タグを全クリア
9777 func (o *DiskCreateRequest) ClearTags() {
9778 accessor.ClearTags(o)
9779 }
9780
9781 // GetIconID returns value of IconID
9782 func (o *DiskCreateRequest) GetIconID() types.ID {
9783 return o.IconID
9784 }
9785
9786 // SetIconID sets value to IconID
9787 func (o *DiskCreateRequest) SetIconID(v types.ID) {
9788 o.IconID = v
9789 }
9790
9791 /*************************************************
9792 * DiskEditRequest
9793 *************************************************/
9794
9795 // DiskEditRequest represents API parameter/response structure
9796 type DiskEditRequest struct {
9797 Background bool `json:",omitempty" mapconv:",omitempty"`
9798 Password string `json:",omitempty" mapconv:",omitempty"`
9799 SSHKey *DiskEditSSHKey `json:",omitempty" mapconv:",omitempty,recursive"`
9800 SSHKeys []*DiskEditSSHKey `json:",omitempty" mapconv:"[]SSHKeys,omitempty,recursive"`
9801 DisablePWAuth bool `json:",omitempty" mapconv:",omitempty"`
9802 EnableDHCP bool `json:",omitempty" mapconv:",omitempty"`
9803 ChangePartitionUUID bool `json:",omitempty" mapconv:",omitempty"`
9804 HostName string `json:",omitempty" mapconv:",omitempty"`
9805 Notes []*DiskEditNote `json:",omitempty" mapconv:"[]Notes,omitempty,recursive"`
9806 UserIPAddress string `json:",omitempty" mapconv:",omitempty"`
9807 UserSubnet *DiskEditUserSubnet `json:",omitempty" mapconv:",omitempty"`
9808 }
9809
9810 // setDefaults implements iaas.argumentDefaulter
9811 func (o *DiskEditRequest) setDefaults() interface{} {
9812 return &struct {
9813 Background bool `json:",omitempty" mapconv:",omitempty"`
9814 Password string `json:",omitempty" mapconv:",omitempty"`
9815 SSHKey *DiskEditSSHKey `json:",omitempty" mapconv:",omitempty,recursive"`
9816 SSHKeys []*DiskEditSSHKey `json:",omitempty" mapconv:"[]SSHKeys,omitempty,recursive"`
9817 DisablePWAuth bool `json:",omitempty" mapconv:",omitempty"`
9818 EnableDHCP bool `json:",omitempty" mapconv:",omitempty"`
9819 ChangePartitionUUID bool `json:",omitempty" mapconv:",omitempty"`
9820 HostName string `json:",omitempty" mapconv:",omitempty"`
9821 Notes []*DiskEditNote `json:",omitempty" mapconv:"[]Notes,omitempty,recursive"`
9822 UserIPAddress string `json:",omitempty" mapconv:",omitempty"`
9823 UserSubnet *DiskEditUserSubnet `json:",omitempty" mapconv:",omitempty"`
9824 }{
9825 Background: o.GetBackground(),
9826 Password: o.GetPassword(),
9827 SSHKey: o.GetSSHKey(),
9828 SSHKeys: o.GetSSHKeys(),
9829 DisablePWAuth: o.GetDisablePWAuth(),
9830 EnableDHCP: o.GetEnableDHCP(),
9831 ChangePartitionUUID: o.GetChangePartitionUUID(),
9832 HostName: o.GetHostName(),
9833 Notes: o.GetNotes(),
9834 UserIPAddress: o.GetUserIPAddress(),
9835 UserSubnet: o.GetUserSubnet(),
9836 }
9837 }
9838
9839 // GetBackground returns value of Background
9840 func (o *DiskEditRequest) GetBackground() bool {
9841 return o.Background
9842 }
9843
9844 // SetBackground sets value to Background
9845 func (o *DiskEditRequest) SetBackground(v bool) {
9846 o.Background = v
9847 }
9848
9849 // GetPassword returns value of Password
9850 func (o *DiskEditRequest) GetPassword() string {
9851 return o.Password
9852 }
9853
9854 // SetPassword sets value to Password
9855 func (o *DiskEditRequest) SetPassword(v string) {
9856 o.Password = v
9857 }
9858
9859 // GetSSHKey returns value of SSHKey
9860 func (o *DiskEditRequest) GetSSHKey() *DiskEditSSHKey {
9861 return o.SSHKey
9862 }
9863
9864 // SetSSHKey sets value to SSHKey
9865 func (o *DiskEditRequest) SetSSHKey(v *DiskEditSSHKey) {
9866 o.SSHKey = v
9867 }
9868
9869 // GetSSHKeys returns value of SSHKeys
9870 func (o *DiskEditRequest) GetSSHKeys() []*DiskEditSSHKey {
9871 return o.SSHKeys
9872 }
9873
9874 // SetSSHKeys sets value to SSHKeys
9875 func (o *DiskEditRequest) SetSSHKeys(v []*DiskEditSSHKey) {
9876 o.SSHKeys = v
9877 }
9878
9879 // GetDisablePWAuth returns value of DisablePWAuth
9880 func (o *DiskEditRequest) GetDisablePWAuth() bool {
9881 return o.DisablePWAuth
9882 }
9883
9884 // SetDisablePWAuth sets value to DisablePWAuth
9885 func (o *DiskEditRequest) SetDisablePWAuth(v bool) {
9886 o.DisablePWAuth = v
9887 }
9888
9889 // GetEnableDHCP returns value of EnableDHCP
9890 func (o *DiskEditRequest) GetEnableDHCP() bool {
9891 return o.EnableDHCP
9892 }
9893
9894 // SetEnableDHCP sets value to EnableDHCP
9895 func (o *DiskEditRequest) SetEnableDHCP(v bool) {
9896 o.EnableDHCP = v
9897 }
9898
9899 // GetChangePartitionUUID returns value of ChangePartitionUUID
9900 func (o *DiskEditRequest) GetChangePartitionUUID() bool {
9901 return o.ChangePartitionUUID
9902 }
9903
9904 // SetChangePartitionUUID sets value to ChangePartitionUUID
9905 func (o *DiskEditRequest) SetChangePartitionUUID(v bool) {
9906 o.ChangePartitionUUID = v
9907 }
9908
9909 // GetHostName returns value of HostName
9910 func (o *DiskEditRequest) GetHostName() string {
9911 return o.HostName
9912 }
9913
9914 // SetHostName sets value to HostName
9915 func (o *DiskEditRequest) SetHostName(v string) {
9916 o.HostName = v
9917 }
9918
9919 // GetNotes returns value of Notes
9920 func (o *DiskEditRequest) GetNotes() []*DiskEditNote {
9921 return o.Notes
9922 }
9923
9924 // SetNotes sets value to Notes
9925 func (o *DiskEditRequest) SetNotes(v []*DiskEditNote) {
9926 o.Notes = v
9927 }
9928
9929 // GetUserIPAddress returns value of UserIPAddress
9930 func (o *DiskEditRequest) GetUserIPAddress() string {
9931 return o.UserIPAddress
9932 }
9933
9934 // SetUserIPAddress sets value to UserIPAddress
9935 func (o *DiskEditRequest) SetUserIPAddress(v string) {
9936 o.UserIPAddress = v
9937 }
9938
9939 // GetUserSubnet returns value of UserSubnet
9940 func (o *DiskEditRequest) GetUserSubnet() *DiskEditUserSubnet {
9941 return o.UserSubnet
9942 }
9943
9944 // SetUserSubnet sets value to UserSubnet
9945 func (o *DiskEditRequest) SetUserSubnet(v *DiskEditUserSubnet) {
9946 o.UserSubnet = v
9947 }
9948
9949 /*************************************************
9950 * DiskEditSSHKey
9951 *************************************************/
9952
9953 // DiskEditSSHKey represents API parameter/response structure
9954 type DiskEditSSHKey struct {
9955 ID types.ID `json:",omitempty" mapconv:",omitempty"`
9956 PublicKey string `json:",omitempty" mapconv:",omitempty"`
9957 }
9958
9959 // setDefaults implements iaas.argumentDefaulter
9960 func (o *DiskEditSSHKey) setDefaults() interface{} {
9961 return &struct {
9962 ID types.ID `json:",omitempty" mapconv:",omitempty"`
9963 PublicKey string `json:",omitempty" mapconv:",omitempty"`
9964 }{
9965 ID: o.GetID(),
9966 PublicKey: o.GetPublicKey(),
9967 }
9968 }
9969
9970 // GetID returns value of ID
9971 func (o *DiskEditSSHKey) GetID() types.ID {
9972 return o.ID
9973 }
9974
9975 // SetID sets value to ID
9976 func (o *DiskEditSSHKey) SetID(v types.ID) {
9977 o.ID = v
9978 }
9979
9980 // GetPublicKey returns value of PublicKey
9981 func (o *DiskEditSSHKey) GetPublicKey() string {
9982 return o.PublicKey
9983 }
9984
9985 // SetPublicKey sets value to PublicKey
9986 func (o *DiskEditSSHKey) SetPublicKey(v string) {
9987 o.PublicKey = v
9988 }
9989
9990 /*************************************************
9991 * DiskEditNote
9992 *************************************************/
9993
9994 // DiskEditNote represents API parameter/response structure
9995 type DiskEditNote struct {
9996 ID types.ID `json:",omitempty" mapconv:",omitempty"`
9997 APIKeyID types.ID `json:",omitempty" mapconv:"APIKey.ID,omitempty"`
9998 Variables map[string]interface{} `json:",omitempty" mapconv:",omitempty"`
9999 }
10000
10001 // setDefaults implements iaas.argumentDefaulter
10002 func (o *DiskEditNote) setDefaults() interface{} {
10003 return &struct {
10004 ID types.ID `json:",omitempty" mapconv:",omitempty"`
10005 APIKeyID types.ID `json:",omitempty" mapconv:"APIKey.ID,omitempty"`
10006 Variables map[string]interface{} `json:",omitempty" mapconv:",omitempty"`
10007 }{
10008 ID: o.GetID(),
10009 APIKeyID: o.GetAPIKeyID(),
10010 Variables: o.GetVariables(),
10011 }
10012 }
10013
10014 // GetID returns value of ID
10015 func (o *DiskEditNote) GetID() types.ID {
10016 return o.ID
10017 }
10018
10019 // SetID sets value to ID
10020 func (o *DiskEditNote) SetID(v types.ID) {
10021 o.ID = v
10022 }
10023
10024 // GetAPIKeyID returns value of APIKeyID
10025 func (o *DiskEditNote) GetAPIKeyID() types.ID {
10026 return o.APIKeyID
10027 }
10028
10029 // SetAPIKeyID sets value to APIKeyID
10030 func (o *DiskEditNote) SetAPIKeyID(v types.ID) {
10031 o.APIKeyID = v
10032 }
10033
10034 // GetVariables returns value of Variables
10035 func (o *DiskEditNote) GetVariables() map[string]interface{} {
10036 return o.Variables
10037 }
10038
10039 // SetVariables sets value to Variables
10040 func (o *DiskEditNote) SetVariables(v map[string]interface{}) {
10041 o.Variables = v
10042 }
10043
10044 /*************************************************
10045 * DiskEditUserSubnet
10046 *************************************************/
10047
10048 // DiskEditUserSubnet represents API parameter/response structure
10049 type DiskEditUserSubnet struct {
10050 DefaultRoute string `json:",omitempty" mapconv:",omitempty"`
10051 NetworkMaskLen int `json:",omitempty" mapconv:",omitempty"`
10052 }
10053
10054 // setDefaults implements iaas.argumentDefaulter
10055 func (o *DiskEditUserSubnet) setDefaults() interface{} {
10056 return &struct {
10057 DefaultRoute string `json:",omitempty" mapconv:",omitempty"`
10058 NetworkMaskLen int `json:",omitempty" mapconv:",omitempty"`
10059 }{
10060 DefaultRoute: o.GetDefaultRoute(),
10061 NetworkMaskLen: o.GetNetworkMaskLen(),
10062 }
10063 }
10064
10065 // GetDefaultRoute returns value of DefaultRoute
10066 func (o *DiskEditUserSubnet) GetDefaultRoute() string {
10067 return o.DefaultRoute
10068 }
10069
10070 // SetDefaultRoute sets value to DefaultRoute
10071 func (o *DiskEditUserSubnet) SetDefaultRoute(v string) {
10072 o.DefaultRoute = v
10073 }
10074
10075 // GetNetworkMaskLen returns value of NetworkMaskLen
10076 func (o *DiskEditUserSubnet) GetNetworkMaskLen() int {
10077 return o.NetworkMaskLen
10078 }
10079
10080 // SetNetworkMaskLen sets value to NetworkMaskLen
10081 func (o *DiskEditUserSubnet) SetNetworkMaskLen(v int) {
10082 o.NetworkMaskLen = v
10083 }
10084
10085 /*************************************************
10086 * DiskResizePartitionRequest
10087 *************************************************/
10088
10089 // DiskResizePartitionRequest represents API parameter/response structure
10090 type DiskResizePartitionRequest struct {
10091 Background bool
10092 }
10093
10094 // setDefaults implements iaas.argumentDefaulter
10095 func (o *DiskResizePartitionRequest) setDefaults() interface{} {
10096 return &struct {
10097 Background bool
10098 }{
10099 Background: o.GetBackground(),
10100 }
10101 }
10102
10103 // GetBackground returns value of Background
10104 func (o *DiskResizePartitionRequest) GetBackground() bool {
10105 return o.Background
10106 }
10107
10108 // SetBackground sets value to Background
10109 func (o *DiskResizePartitionRequest) SetBackground(v bool) {
10110 o.Background = v
10111 }
10112
10113 /*************************************************
10114 * DiskUpdateRequest
10115 *************************************************/
10116
10117 // DiskUpdateRequest represents API parameter/response structure
10118 type DiskUpdateRequest struct {
10119 Name string
10120 Description string
10121 Tags types.Tags
10122 IconID types.ID `mapconv:"Icon.ID"`
10123 Connection types.EDiskConnection `json:",omitempty" mapconv:",omitempty"`
10124 }
10125
10126 // setDefaults implements iaas.argumentDefaulter
10127 func (o *DiskUpdateRequest) setDefaults() interface{} {
10128 return &struct {
10129 Name string
10130 Description string
10131 Tags types.Tags
10132 IconID types.ID `mapconv:"Icon.ID"`
10133 Connection types.EDiskConnection `json:",omitempty" mapconv:",omitempty"`
10134 }{
10135 Name: o.GetName(),
10136 Description: o.GetDescription(),
10137 Tags: o.GetTags(),
10138 IconID: o.GetIconID(),
10139 Connection: o.GetConnection(),
10140 }
10141 }
10142
10143 // GetName returns value of Name
10144 func (o *DiskUpdateRequest) GetName() string {
10145 return o.Name
10146 }
10147
10148 // SetName sets value to Name
10149 func (o *DiskUpdateRequest) SetName(v string) {
10150 o.Name = v
10151 }
10152
10153 // GetDescription returns value of Description
10154 func (o *DiskUpdateRequest) GetDescription() string {
10155 return o.Description
10156 }
10157
10158 // SetDescription sets value to Description
10159 func (o *DiskUpdateRequest) SetDescription(v string) {
10160 o.Description = v
10161 }
10162
10163 // GetTags returns value of Tags
10164 func (o *DiskUpdateRequest) GetTags() types.Tags {
10165 return o.Tags
10166 }
10167
10168 // SetTags sets value to Tags
10169 func (o *DiskUpdateRequest) SetTags(v types.Tags) {
10170 o.Tags = v
10171 }
10172
10173 // HasTag 指定のタグが存在する場合trueを返す
10174 func (o *DiskUpdateRequest) HasTag(tag string) bool {
10175 return accessor.HasTag(o, tag)
10176 }
10177
10178 // AppendTag 指定のタグを追加
10179 func (o *DiskUpdateRequest) AppendTag(tag string) {
10180 accessor.AppendTag(o, tag)
10181 }
10182
10183 // RemoveTag 指定のタグを削除
10184 func (o *DiskUpdateRequest) RemoveTag(tag string) {
10185 accessor.RemoveTag(o, tag)
10186 }
10187
10188 // ClearTags タグを全クリア
10189 func (o *DiskUpdateRequest) ClearTags() {
10190 accessor.ClearTags(o)
10191 }
10192
10193 // GetIconID returns value of IconID
10194 func (o *DiskUpdateRequest) GetIconID() types.ID {
10195 return o.IconID
10196 }
10197
10198 // SetIconID sets value to IconID
10199 func (o *DiskUpdateRequest) SetIconID(v types.ID) {
10200 o.IconID = v
10201 }
10202
10203 // GetConnection returns value of Connection
10204 func (o *DiskUpdateRequest) GetConnection() types.EDiskConnection {
10205 return o.Connection
10206 }
10207
10208 // SetConnection sets value to Connection
10209 func (o *DiskUpdateRequest) SetConnection(v types.EDiskConnection) {
10210 o.Connection = v
10211 }
10212
10213 /*************************************************
10214 * DiskPlan
10215 *************************************************/
10216
10217 // DiskPlan represents API parameter/response structure
10218 type DiskPlan struct {
10219 ID types.ID
10220 Name string
10221 StorageClass string
10222 Availability types.EAvailability
10223 Size []*DiskPlanSizeInfo `mapconv:"[]Size,recursive"`
10224 }
10225
10226 // setDefaults implements iaas.argumentDefaulter
10227 func (o *DiskPlan) setDefaults() interface{} {
10228 return &struct {
10229 ID types.ID
10230 Name string
10231 StorageClass string
10232 Availability types.EAvailability
10233 Size []*DiskPlanSizeInfo `mapconv:"[]Size,recursive"`
10234 }{
10235 ID: o.GetID(),
10236 Name: o.GetName(),
10237 StorageClass: o.GetStorageClass(),
10238 Availability: o.GetAvailability(),
10239 Size: o.GetSize(),
10240 }
10241 }
10242
10243 // GetID returns value of ID
10244 func (o *DiskPlan) GetID() types.ID {
10245 return o.ID
10246 }
10247
10248 // SetID sets value to ID
10249 func (o *DiskPlan) SetID(v types.ID) {
10250 o.ID = v
10251 }
10252
10253 // SetStringID .
10254 func (o *DiskPlan) SetStringID(id string) {
10255 accessor.SetStringID(o, id)
10256 }
10257
10258 // GetStringID .
10259 func (o *DiskPlan) GetStringID() string {
10260 return accessor.GetStringID(o)
10261 }
10262
10263 // SetInt64ID .
10264 func (o *DiskPlan) SetInt64ID(id int64) {
10265 accessor.SetInt64ID(o, id)
10266 }
10267
10268 // GetInt64ID .
10269 func (o *DiskPlan) GetInt64ID() int64 {
10270 return accessor.GetInt64ID(o)
10271 }
10272
10273 // GetName returns value of Name
10274 func (o *DiskPlan) GetName() string {
10275 return o.Name
10276 }
10277
10278 // SetName sets value to Name
10279 func (o *DiskPlan) SetName(v string) {
10280 o.Name = v
10281 }
10282
10283 // GetStorageClass returns value of StorageClass
10284 func (o *DiskPlan) GetStorageClass() string {
10285 return o.StorageClass
10286 }
10287
10288 // SetStorageClass sets value to StorageClass
10289 func (o *DiskPlan) SetStorageClass(v string) {
10290 o.StorageClass = v
10291 }
10292
10293 // GetAvailability returns value of Availability
10294 func (o *DiskPlan) GetAvailability() types.EAvailability {
10295 return o.Availability
10296 }
10297
10298 // SetAvailability sets value to Availability
10299 func (o *DiskPlan) SetAvailability(v types.EAvailability) {
10300 o.Availability = v
10301 }
10302
10303 // GetSize returns value of Size
10304 func (o *DiskPlan) GetSize() []*DiskPlanSizeInfo {
10305 return o.Size
10306 }
10307
10308 // SetSize sets value to Size
10309 func (o *DiskPlan) SetSize(v []*DiskPlanSizeInfo) {
10310 o.Size = v
10311 }
10312
10313 /*************************************************
10314 * DiskPlanSizeInfo
10315 *************************************************/
10316
10317 // DiskPlanSizeInfo represents API parameter/response structure
10318 type DiskPlanSizeInfo struct {
10319 Availability types.EAvailability
10320 DisplaySize int
10321 DisplaySuffix string
10322 SizeMB int
10323 }
10324
10325 // setDefaults implements iaas.argumentDefaulter
10326 func (o *DiskPlanSizeInfo) setDefaults() interface{} {
10327 return &struct {
10328 Availability types.EAvailability
10329 DisplaySize int
10330 DisplaySuffix string
10331 SizeMB int
10332 }{
10333 Availability: o.GetAvailability(),
10334 DisplaySize: o.GetDisplaySize(),
10335 DisplaySuffix: o.GetDisplaySuffix(),
10336 SizeMB: o.GetSizeMB(),
10337 }
10338 }
10339
10340 // GetAvailability returns value of Availability
10341 func (o *DiskPlanSizeInfo) GetAvailability() types.EAvailability {
10342 return o.Availability
10343 }
10344
10345 // SetAvailability sets value to Availability
10346 func (o *DiskPlanSizeInfo) SetAvailability(v types.EAvailability) {
10347 o.Availability = v
10348 }
10349
10350 // GetDisplaySize returns value of DisplaySize
10351 func (o *DiskPlanSizeInfo) GetDisplaySize() int {
10352 return o.DisplaySize
10353 }
10354
10355 // SetDisplaySize sets value to DisplaySize
10356 func (o *DiskPlanSizeInfo) SetDisplaySize(v int) {
10357 o.DisplaySize = v
10358 }
10359
10360 // GetDisplaySuffix returns value of DisplaySuffix
10361 func (o *DiskPlanSizeInfo) GetDisplaySuffix() string {
10362 return o.DisplaySuffix
10363 }
10364
10365 // SetDisplaySuffix sets value to DisplaySuffix
10366 func (o *DiskPlanSizeInfo) SetDisplaySuffix(v string) {
10367 o.DisplaySuffix = v
10368 }
10369
10370 // GetSizeMB returns value of SizeMB
10371 func (o *DiskPlanSizeInfo) GetSizeMB() int {
10372 return o.SizeMB
10373 }
10374
10375 // SetSizeMB sets value to SizeMB
10376 func (o *DiskPlanSizeInfo) SetSizeMB(v int) {
10377 o.SizeMB = v
10378 }
10379
10380 // GetSizeGB .
10381 func (o *DiskPlanSizeInfo) GetSizeGB() int {
10382 return accessor.GetSizeGB(o)
10383 }
10384
10385 // SetSizeGB .
10386 func (o *DiskPlanSizeInfo) SetSizeGB(size int) {
10387 accessor.SetSizeGB(o, size)
10388 }
10389
10390 /*************************************************
10391 * DNS
10392 *************************************************/
10393
10394 // DNS represents API parameter/response structure
10395 type DNS struct {
10396 ID types.ID
10397 Name string
10398 Description string
10399 Tags types.Tags
10400 Availability types.EAvailability
10401 IconID types.ID `mapconv:"Icon.ID"`
10402 CreatedAt time.Time
10403 ModifiedAt time.Time
10404 Records DNSRecords `mapconv:"Settings.DNS.[]ResourceRecordSets,recursive"`
10405 MonitoringSuiteLog *MonitoringSuiteLog `mapconv:"Settings.DNS.MonitoringSuiteLog,recursive"`
10406 SettingsHash string `json:",omitempty" mapconv:",omitempty"`
10407 DNSZone string `mapconv:"Status.Zone"`
10408 DNSNameServers []string `mapconv:"Status.NS"`
10409 }
10410
10411 // setDefaults implements iaas.argumentDefaulter
10412 func (o *DNS) setDefaults() interface{} {
10413 return &struct {
10414 ID types.ID
10415 Name string
10416 Description string
10417 Tags types.Tags
10418 Availability types.EAvailability
10419 IconID types.ID `mapconv:"Icon.ID"`
10420 CreatedAt time.Time
10421 ModifiedAt time.Time
10422 Records DNSRecords `mapconv:"Settings.DNS.[]ResourceRecordSets,recursive"`
10423 MonitoringSuiteLog *MonitoringSuiteLog `mapconv:"Settings.DNS.MonitoringSuiteLog,recursive"`
10424 SettingsHash string `json:",omitempty" mapconv:",omitempty"`
10425 DNSZone string `mapconv:"Status.Zone"`
10426 DNSNameServers []string `mapconv:"Status.NS"`
10427 }{
10428 ID: o.GetID(),
10429 Name: o.GetName(),
10430 Description: o.GetDescription(),
10431 Tags: o.GetTags(),
10432 Availability: o.GetAvailability(),
10433 IconID: o.GetIconID(),
10434 CreatedAt: o.GetCreatedAt(),
10435 ModifiedAt: o.GetModifiedAt(),
10436 Records: o.GetRecords(),
10437 MonitoringSuiteLog: o.GetMonitoringSuiteLog(),
10438 SettingsHash: o.GetSettingsHash(),
10439 DNSZone: o.GetDNSZone(),
10440 DNSNameServers: o.GetDNSNameServers(),
10441 }
10442 }
10443
10444 // GetID returns value of ID
10445 func (o *DNS) GetID() types.ID {
10446 return o.ID
10447 }
10448
10449 // SetID sets value to ID
10450 func (o *DNS) SetID(v types.ID) {
10451 o.ID = v
10452 }
10453
10454 // SetStringID .
10455 func (o *DNS) SetStringID(id string) {
10456 accessor.SetStringID(o, id)
10457 }
10458
10459 // GetStringID .
10460 func (o *DNS) GetStringID() string {
10461 return accessor.GetStringID(o)
10462 }
10463
10464 // SetInt64ID .
10465 func (o *DNS) SetInt64ID(id int64) {
10466 accessor.SetInt64ID(o, id)
10467 }
10468
10469 // GetInt64ID .
10470 func (o *DNS) GetInt64ID() int64 {
10471 return accessor.GetInt64ID(o)
10472 }
10473
10474 // GetName returns value of Name
10475 func (o *DNS) GetName() string {
10476 return o.Name
10477 }
10478
10479 // SetName sets value to Name
10480 func (o *DNS) SetName(v string) {
10481 o.Name = v
10482 }
10483
10484 // GetDescription returns value of Description
10485 func (o *DNS) GetDescription() string {
10486 return o.Description
10487 }
10488
10489 // SetDescription sets value to Description
10490 func (o *DNS) SetDescription(v string) {
10491 o.Description = v
10492 }
10493
10494 // GetTags returns value of Tags
10495 func (o *DNS) GetTags() types.Tags {
10496 return o.Tags
10497 }
10498
10499 // SetTags sets value to Tags
10500 func (o *DNS) SetTags(v types.Tags) {
10501 o.Tags = v
10502 }
10503
10504 // HasTag 指定のタグが存在する場合trueを返す
10505 func (o *DNS) HasTag(tag string) bool {
10506 return accessor.HasTag(o, tag)
10507 }
10508
10509 // AppendTag 指定のタグを追加
10510 func (o *DNS) AppendTag(tag string) {
10511 accessor.AppendTag(o, tag)
10512 }
10513
10514 // RemoveTag 指定のタグを削除
10515 func (o *DNS) RemoveTag(tag string) {
10516 accessor.RemoveTag(o, tag)
10517 }
10518
10519 // ClearTags タグを全クリア
10520 func (o *DNS) ClearTags() {
10521 accessor.ClearTags(o)
10522 }
10523
10524 // GetAvailability returns value of Availability
10525 func (o *DNS) GetAvailability() types.EAvailability {
10526 return o.Availability
10527 }
10528
10529 // SetAvailability sets value to Availability
10530 func (o *DNS) SetAvailability(v types.EAvailability) {
10531 o.Availability = v
10532 }
10533
10534 // GetIconID returns value of IconID
10535 func (o *DNS) GetIconID() types.ID {
10536 return o.IconID
10537 }
10538
10539 // SetIconID sets value to IconID
10540 func (o *DNS) SetIconID(v types.ID) {
10541 o.IconID = v
10542 }
10543
10544 // GetCreatedAt returns value of CreatedAt
10545 func (o *DNS) GetCreatedAt() time.Time {
10546 return o.CreatedAt
10547 }
10548
10549 // SetCreatedAt sets value to CreatedAt
10550 func (o *DNS) SetCreatedAt(v time.Time) {
10551 o.CreatedAt = v
10552 }
10553
10554 // GetModifiedAt returns value of ModifiedAt
10555 func (o *DNS) GetModifiedAt() time.Time {
10556 return o.ModifiedAt
10557 }
10558
10559 // SetModifiedAt sets value to ModifiedAt
10560 func (o *DNS) SetModifiedAt(v time.Time) {
10561 o.ModifiedAt = v
10562 }
10563
10564 // GetRecords returns value of Records
10565 func (o *DNS) GetRecords() DNSRecords {
10566 return o.Records
10567 }
10568
10569 // SetRecords sets value to Records
10570 func (o *DNS) SetRecords(v DNSRecords) {
10571 o.Records = v
10572 }
10573
10574 // GetMonitoringSuiteLog returns value of MonitoringSuiteLog
10575 func (o *DNS) GetMonitoringSuiteLog() *MonitoringSuiteLog {
10576 return o.MonitoringSuiteLog
10577 }
10578
10579 // SetMonitoringSuiteLog sets value to MonitoringSuiteLog
10580 func (o *DNS) SetMonitoringSuiteLog(v *MonitoringSuiteLog) {
10581 o.MonitoringSuiteLog = v
10582 }
10583
10584 // GetSettingsHash returns value of SettingsHash
10585 func (o *DNS) GetSettingsHash() string {
10586 return o.SettingsHash
10587 }
10588
10589 // SetSettingsHash sets value to SettingsHash
10590 func (o *DNS) SetSettingsHash(v string) {
10591 o.SettingsHash = v
10592 }
10593
10594 // GetDNSZone returns value of DNSZone
10595 func (o *DNS) GetDNSZone() string {
10596 return o.DNSZone
10597 }
10598
10599 // SetDNSZone sets value to DNSZone
10600 func (o *DNS) SetDNSZone(v string) {
10601 o.DNSZone = v
10602 }
10603
10604 // GetDNSNameServers returns value of DNSNameServers
10605 func (o *DNS) GetDNSNameServers() []string {
10606 return o.DNSNameServers
10607 }
10608
10609 // SetDNSNameServers sets value to DNSNameServers
10610 func (o *DNS) SetDNSNameServers(v []string) {
10611 o.DNSNameServers = v
10612 }
10613
10614 /*************************************************
10615 * DNSRecord
10616 *************************************************/
10617
10618 // DNSRecord represents API parameter/response structure
10619 type DNSRecord struct {
10620 Name string
10621 Type types.EDNSRecordType
10622 RData string
10623 TTL int
10624 }
10625
10626 // setDefaults implements iaas.argumentDefaulter
10627 func (o *DNSRecord) setDefaults() interface{} {
10628 return &struct {
10629 Name string
10630 Type types.EDNSRecordType
10631 RData string
10632 TTL int
10633 }{
10634 Name: o.GetName(),
10635 Type: o.GetType(),
10636 RData: o.GetRData(),
10637 TTL: o.GetTTL(),
10638 }
10639 }
10640
10641 // GetName returns value of Name
10642 func (o *DNSRecord) GetName() string {
10643 return o.Name
10644 }
10645
10646 // SetName sets value to Name
10647 func (o *DNSRecord) SetName(v string) {
10648 o.Name = v
10649 }
10650
10651 // GetType returns value of Type
10652 func (o *DNSRecord) GetType() types.EDNSRecordType {
10653 return o.Type
10654 }
10655
10656 // SetType sets value to Type
10657 func (o *DNSRecord) SetType(v types.EDNSRecordType) {
10658 o.Type = v
10659 }
10660
10661 // GetRData returns value of RData
10662 func (o *DNSRecord) GetRData() string {
10663 return o.RData
10664 }
10665
10666 // SetRData sets value to RData
10667 func (o *DNSRecord) SetRData(v string) {
10668 o.RData = v
10669 }
10670
10671 // GetTTL returns value of TTL
10672 func (o *DNSRecord) GetTTL() int {
10673 return o.TTL
10674 }
10675
10676 // SetTTL sets value to TTL
10677 func (o *DNSRecord) SetTTL(v int) {
10678 o.TTL = v
10679 }
10680
10681 /*************************************************
10682 * MonitoringSuiteLog
10683 *************************************************/
10684
10685 // MonitoringSuiteLog represents API parameter/response structure
10686 type MonitoringSuiteLog struct {
10687 Enabled bool
10688 }
10689
10690 // setDefaults implements iaas.argumentDefaulter
10691 func (o *MonitoringSuiteLog) setDefaults() interface{} {
10692 return &struct {
10693 Enabled bool
10694 }{
10695 Enabled: o.GetEnabled(),
10696 }
10697 }
10698
10699 // GetEnabled returns value of Enabled
10700 func (o *MonitoringSuiteLog) GetEnabled() bool {
10701 return o.Enabled
10702 }
10703
10704 // SetEnabled sets value to Enabled
10705 func (o *MonitoringSuiteLog) SetEnabled(v bool) {
10706 o.Enabled = v
10707 }
10708
10709 /*************************************************
10710 * DNSCreateRequest
10711 *************************************************/
10712
10713 // DNSCreateRequest represents API parameter/response structure
10714 type DNSCreateRequest struct {
10715 Name string `mapconv:"Name/Status.Zone"`
10716 Records DNSRecords `mapconv:"Settings.DNS.[]ResourceRecordSets,recursive"`
10717 MonitoringSuiteLog *MonitoringSuiteLog `mapconv:"Settings.DNS.MonitoringSuiteLog,recursive"`
10718 Description string
10719 Tags types.Tags
10720 IconID types.ID `mapconv:"Icon.ID"`
10721 }
10722
10723 // setDefaults implements iaas.argumentDefaulter
10724 func (o *DNSCreateRequest) setDefaults() interface{} {
10725 return &struct {
10726 Name string `mapconv:"Name/Status.Zone"`
10727 Records DNSRecords `mapconv:"Settings.DNS.[]ResourceRecordSets,recursive"`
10728 MonitoringSuiteLog *MonitoringSuiteLog `mapconv:"Settings.DNS.MonitoringSuiteLog,recursive"`
10729 Description string
10730 Tags types.Tags
10731 IconID types.ID `mapconv:"Icon.ID"`
10732 Class string `mapconv:"Provider.Class"`
10733 }{
10734 Name: o.GetName(),
10735 Records: o.GetRecords(),
10736 MonitoringSuiteLog: o.GetMonitoringSuiteLog(),
10737 Description: o.GetDescription(),
10738 Tags: o.GetTags(),
10739 IconID: o.GetIconID(),
10740 Class: "dns",
10741 }
10742 }
10743
10744 // GetName returns value of Name
10745 func (o *DNSCreateRequest) GetName() string {
10746 return o.Name
10747 }
10748
10749 // SetName sets value to Name
10750 func (o *DNSCreateRequest) SetName(v string) {
10751 o.Name = v
10752 }
10753
10754 // GetRecords returns value of Records
10755 func (o *DNSCreateRequest) GetRecords() DNSRecords {
10756 return o.Records
10757 }
10758
10759 // SetRecords sets value to Records
10760 func (o *DNSCreateRequest) SetRecords(v DNSRecords) {
10761 o.Records = v
10762 }
10763
10764 // GetMonitoringSuiteLog returns value of MonitoringSuiteLog
10765 func (o *DNSCreateRequest) GetMonitoringSuiteLog() *MonitoringSuiteLog {
10766 return o.MonitoringSuiteLog
10767 }
10768
10769 // SetMonitoringSuiteLog sets value to MonitoringSuiteLog
10770 func (o *DNSCreateRequest) SetMonitoringSuiteLog(v *MonitoringSuiteLog) {
10771 o.MonitoringSuiteLog = v
10772 }
10773
10774 // GetDescription returns value of Description
10775 func (o *DNSCreateRequest) GetDescription() string {
10776 return o.Description
10777 }
10778
10779 // SetDescription sets value to Description
10780 func (o *DNSCreateRequest) SetDescription(v string) {
10781 o.Description = v
10782 }
10783
10784 // GetTags returns value of Tags
10785 func (o *DNSCreateRequest) GetTags() types.Tags {
10786 return o.Tags
10787 }
10788
10789 // SetTags sets value to Tags
10790 func (o *DNSCreateRequest) SetTags(v types.Tags) {
10791 o.Tags = v
10792 }
10793
10794 // HasTag 指定のタグが存在する場合trueを返す
10795 func (o *DNSCreateRequest) HasTag(tag string) bool {
10796 return accessor.HasTag(o, tag)
10797 }
10798
10799 // AppendTag 指定のタグを追加
10800 func (o *DNSCreateRequest) AppendTag(tag string) {
10801 accessor.AppendTag(o, tag)
10802 }
10803
10804 // RemoveTag 指定のタグを削除
10805 func (o *DNSCreateRequest) RemoveTag(tag string) {
10806 accessor.RemoveTag(o, tag)
10807 }
10808
10809 // ClearTags タグを全クリア
10810 func (o *DNSCreateRequest) ClearTags() {
10811 accessor.ClearTags(o)
10812 }
10813
10814 // GetIconID returns value of IconID
10815 func (o *DNSCreateRequest) GetIconID() types.ID {
10816 return o.IconID
10817 }
10818
10819 // SetIconID sets value to IconID
10820 func (o *DNSCreateRequest) SetIconID(v types.ID) {
10821 o.IconID = v
10822 }
10823
10824 /*************************************************
10825 * DNSUpdateRequest
10826 *************************************************/
10827
10828 // DNSUpdateRequest represents API parameter/response structure
10829 type DNSUpdateRequest struct {
10830 Description string
10831 Tags types.Tags
10832 IconID types.ID `mapconv:"Icon.ID"`
10833 Records DNSRecords `mapconv:"Settings.DNS.[]ResourceRecordSets,recursive"`
10834 MonitoringSuiteLog *MonitoringSuiteLog `mapconv:"Settings.DNS.MonitoringSuiteLog,recursive"`
10835 SettingsHash string `json:",omitempty" mapconv:",omitempty"`
10836 }
10837
10838 // setDefaults implements iaas.argumentDefaulter
10839 func (o *DNSUpdateRequest) setDefaults() interface{} {
10840 return &struct {
10841 Description string
10842 Tags types.Tags
10843 IconID types.ID `mapconv:"Icon.ID"`
10844 Records DNSRecords `mapconv:"Settings.DNS.[]ResourceRecordSets,recursive"`
10845 MonitoringSuiteLog *MonitoringSuiteLog `mapconv:"Settings.DNS.MonitoringSuiteLog,recursive"`
10846 SettingsHash string `json:",omitempty" mapconv:",omitempty"`
10847 }{
10848 Description: o.GetDescription(),
10849 Tags: o.GetTags(),
10850 IconID: o.GetIconID(),
10851 Records: o.GetRecords(),
10852 MonitoringSuiteLog: o.GetMonitoringSuiteLog(),
10853 SettingsHash: o.GetSettingsHash(),
10854 }
10855 }
10856
10857 // GetDescription returns value of Description
10858 func (o *DNSUpdateRequest) GetDescription() string {
10859 return o.Description
10860 }
10861
10862 // SetDescription sets value to Description
10863 func (o *DNSUpdateRequest) SetDescription(v string) {
10864 o.Description = v
10865 }
10866
10867 // GetTags returns value of Tags
10868 func (o *DNSUpdateRequest) GetTags() types.Tags {
10869 return o.Tags
10870 }
10871
10872 // SetTags sets value to Tags
10873 func (o *DNSUpdateRequest) SetTags(v types.Tags) {
10874 o.Tags = v
10875 }
10876
10877 // HasTag 指定のタグが存在する場合trueを返す
10878 func (o *DNSUpdateRequest) HasTag(tag string) bool {
10879 return accessor.HasTag(o, tag)
10880 }
10881
10882 // AppendTag 指定のタグを追加
10883 func (o *DNSUpdateRequest) AppendTag(tag string) {
10884 accessor.AppendTag(o, tag)
10885 }
10886
10887 // RemoveTag 指定のタグを削除
10888 func (o *DNSUpdateRequest) RemoveTag(tag string) {
10889 accessor.RemoveTag(o, tag)
10890 }
10891
10892 // ClearTags タグを全クリア
10893 func (o *DNSUpdateRequest) ClearTags() {
10894 accessor.ClearTags(o)
10895 }
10896
10897 // GetIconID returns value of IconID
10898 func (o *DNSUpdateRequest) GetIconID() types.ID {
10899 return o.IconID
10900 }
10901
10902 // SetIconID sets value to IconID
10903 func (o *DNSUpdateRequest) SetIconID(v types.ID) {
10904 o.IconID = v
10905 }
10906
10907 // GetRecords returns value of Records
10908 func (o *DNSUpdateRequest) GetRecords() DNSRecords {
10909 return o.Records
10910 }
10911
10912 // SetRecords sets value to Records
10913 func (o *DNSUpdateRequest) SetRecords(v DNSRecords) {
10914 o.Records = v
10915 }
10916
10917 // GetMonitoringSuiteLog returns value of MonitoringSuiteLog
10918 func (o *DNSUpdateRequest) GetMonitoringSuiteLog() *MonitoringSuiteLog {
10919 return o.MonitoringSuiteLog
10920 }
10921
10922 // SetMonitoringSuiteLog sets value to MonitoringSuiteLog
10923 func (o *DNSUpdateRequest) SetMonitoringSuiteLog(v *MonitoringSuiteLog) {
10924 o.MonitoringSuiteLog = v
10925 }
10926
10927 // GetSettingsHash returns value of SettingsHash
10928 func (o *DNSUpdateRequest) GetSettingsHash() string {
10929 return o.SettingsHash
10930 }
10931
10932 // SetSettingsHash sets value to SettingsHash
10933 func (o *DNSUpdateRequest) SetSettingsHash(v string) {
10934 o.SettingsHash = v
10935 }
10936
10937 /*************************************************
10938 * DNSUpdateSettingsRequest
10939 *************************************************/
10940
10941 // DNSUpdateSettingsRequest represents API parameter/response structure
10942 type DNSUpdateSettingsRequest struct {
10943 Records DNSRecords `mapconv:"Settings.DNS.[]ResourceRecordSets,recursive"`
10944 MonitoringSuiteLog *MonitoringSuiteLog `mapconv:"Settings.DNS.MonitoringSuiteLog,recursive"`
10945 SettingsHash string `json:",omitempty" mapconv:",omitempty"`
10946 }
10947
10948 // setDefaults implements iaas.argumentDefaulter
10949 func (o *DNSUpdateSettingsRequest) setDefaults() interface{} {
10950 return &struct {
10951 Records DNSRecords `mapconv:"Settings.DNS.[]ResourceRecordSets,recursive"`
10952 MonitoringSuiteLog *MonitoringSuiteLog `mapconv:"Settings.DNS.MonitoringSuiteLog,recursive"`
10953 SettingsHash string `json:",omitempty" mapconv:",omitempty"`
10954 }{
10955 Records: o.GetRecords(),
10956 MonitoringSuiteLog: o.GetMonitoringSuiteLog(),
10957 SettingsHash: o.GetSettingsHash(),
10958 }
10959 }
10960
10961 // GetRecords returns value of Records
10962 func (o *DNSUpdateSettingsRequest) GetRecords() DNSRecords {
10963 return o.Records
10964 }
10965
10966 // SetRecords sets value to Records
10967 func (o *DNSUpdateSettingsRequest) SetRecords(v DNSRecords) {
10968 o.Records = v
10969 }
10970
10971 // GetMonitoringSuiteLog returns value of MonitoringSuiteLog
10972 func (o *DNSUpdateSettingsRequest) GetMonitoringSuiteLog() *MonitoringSuiteLog {
10973 return o.MonitoringSuiteLog
10974 }
10975
10976 // SetMonitoringSuiteLog sets value to MonitoringSuiteLog
10977 func (o *DNSUpdateSettingsRequest) SetMonitoringSuiteLog(v *MonitoringSuiteLog) {
10978 o.MonitoringSuiteLog = v
10979 }
10980
10981 // GetSettingsHash returns value of SettingsHash
10982 func (o *DNSUpdateSettingsRequest) GetSettingsHash() string {
10983 return o.SettingsHash
10984 }
10985
10986 // SetSettingsHash sets value to SettingsHash
10987 func (o *DNSUpdateSettingsRequest) SetSettingsHash(v string) {
10988 o.SettingsHash = v
10989 }
10990
10991 /*************************************************
10992 * EnhancedDB
10993 *************************************************/
10994
10995 // EnhancedDB represents API parameter/response structure
10996 type EnhancedDB struct {
10997 ID types.ID
10998 Name string
10999 Description string
11000 Tags types.Tags
11001 Availability types.EAvailability
11002 IconID types.ID `mapconv:"Icon.ID"`
11003 CreatedAt time.Time
11004 ModifiedAt time.Time
11005 SettingsHash string `json:",omitempty" mapconv:",omitempty"`
11006 DatabaseName string `mapconv:"Status.DatabaseName"`
11007 DatabaseType types.EnhancedDBType `mapconv:"Status.DatabaseType"`
11008 Region types.EnhancedDBRegion `mapconv:"Status.Region"`
11009 HostName string `mapconv:"Status.HostName"`
11010 Port int `mapconv:"Status.Port"`
11011 }
11012
11013 // setDefaults implements iaas.argumentDefaulter
11014 func (o *EnhancedDB) setDefaults() interface{} {
11015 return &struct {
11016 ID types.ID
11017 Name string
11018 Description string
11019 Tags types.Tags
11020 Availability types.EAvailability
11021 IconID types.ID `mapconv:"Icon.ID"`
11022 CreatedAt time.Time
11023 ModifiedAt time.Time
11024 SettingsHash string `json:",omitempty" mapconv:",omitempty"`
11025 DatabaseName string `mapconv:"Status.DatabaseName"`
11026 DatabaseType types.EnhancedDBType `mapconv:"Status.DatabaseType"`
11027 Region types.EnhancedDBRegion `mapconv:"Status.Region"`
11028 HostName string `mapconv:"Status.HostName"`
11029 Port int `mapconv:"Status.Port"`
11030 }{
11031 ID: o.GetID(),
11032 Name: o.GetName(),
11033 Description: o.GetDescription(),
11034 Tags: o.GetTags(),
11035 Availability: o.GetAvailability(),
11036 IconID: o.GetIconID(),
11037 CreatedAt: o.GetCreatedAt(),
11038 ModifiedAt: o.GetModifiedAt(),
11039 SettingsHash: o.GetSettingsHash(),
11040 DatabaseName: o.GetDatabaseName(),
11041 DatabaseType: o.GetDatabaseType(),
11042 Region: o.GetRegion(),
11043 HostName: o.GetHostName(),
11044 Port: o.GetPort(),
11045 }
11046 }
11047
11048 // GetID returns value of ID
11049 func (o *EnhancedDB) GetID() types.ID {
11050 return o.ID
11051 }
11052
11053 // SetID sets value to ID
11054 func (o *EnhancedDB) SetID(v types.ID) {
11055 o.ID = v
11056 }
11057
11058 // SetStringID .
11059 func (o *EnhancedDB) SetStringID(id string) {
11060 accessor.SetStringID(o, id)
11061 }
11062
11063 // GetStringID .
11064 func (o *EnhancedDB) GetStringID() string {
11065 return accessor.GetStringID(o)
11066 }
11067
11068 // SetInt64ID .
11069 func (o *EnhancedDB) SetInt64ID(id int64) {
11070 accessor.SetInt64ID(o, id)
11071 }
11072
11073 // GetInt64ID .
11074 func (o *EnhancedDB) GetInt64ID() int64 {
11075 return accessor.GetInt64ID(o)
11076 }
11077
11078 // GetName returns value of Name
11079 func (o *EnhancedDB) GetName() string {
11080 return o.Name
11081 }
11082
11083 // SetName sets value to Name
11084 func (o *EnhancedDB) SetName(v string) {
11085 o.Name = v
11086 }
11087
11088 // GetDescription returns value of Description
11089 func (o *EnhancedDB) GetDescription() string {
11090 return o.Description
11091 }
11092
11093 // SetDescription sets value to Description
11094 func (o *EnhancedDB) SetDescription(v string) {
11095 o.Description = v
11096 }
11097
11098 // GetTags returns value of Tags
11099 func (o *EnhancedDB) GetTags() types.Tags {
11100 return o.Tags
11101 }
11102
11103 // SetTags sets value to Tags
11104 func (o *EnhancedDB) SetTags(v types.Tags) {
11105 o.Tags = v
11106 }
11107
11108 // HasTag 指定のタグが存在する場合trueを返す
11109 func (o *EnhancedDB) HasTag(tag string) bool {
11110 return accessor.HasTag(o, tag)
11111 }
11112
11113 // AppendTag 指定のタグを追加
11114 func (o *EnhancedDB) AppendTag(tag string) {
11115 accessor.AppendTag(o, tag)
11116 }
11117
11118 // RemoveTag 指定のタグを削除
11119 func (o *EnhancedDB) RemoveTag(tag string) {
11120 accessor.RemoveTag(o, tag)
11121 }
11122
11123 // ClearTags タグを全クリア
11124 func (o *EnhancedDB) ClearTags() {
11125 accessor.ClearTags(o)
11126 }
11127
11128 // GetAvailability returns value of Availability
11129 func (o *EnhancedDB) GetAvailability() types.EAvailability {
11130 return o.Availability
11131 }
11132
11133 // SetAvailability sets value to Availability
11134 func (o *EnhancedDB) SetAvailability(v types.EAvailability) {
11135 o.Availability = v
11136 }
11137
11138 // GetIconID returns value of IconID
11139 func (o *EnhancedDB) GetIconID() types.ID {
11140 return o.IconID
11141 }
11142
11143 // SetIconID sets value to IconID
11144 func (o *EnhancedDB) SetIconID(v types.ID) {
11145 o.IconID = v
11146 }
11147
11148 // GetCreatedAt returns value of CreatedAt
11149 func (o *EnhancedDB) GetCreatedAt() time.Time {
11150 return o.CreatedAt
11151 }
11152
11153 // SetCreatedAt sets value to CreatedAt
11154 func (o *EnhancedDB) SetCreatedAt(v time.Time) {
11155 o.CreatedAt = v
11156 }
11157
11158 // GetModifiedAt returns value of ModifiedAt
11159 func (o *EnhancedDB) GetModifiedAt() time.Time {
11160 return o.ModifiedAt
11161 }
11162
11163 // SetModifiedAt sets value to ModifiedAt
11164 func (o *EnhancedDB) SetModifiedAt(v time.Time) {
11165 o.ModifiedAt = v
11166 }
11167
11168 // GetSettingsHash returns value of SettingsHash
11169 func (o *EnhancedDB) GetSettingsHash() string {
11170 return o.SettingsHash
11171 }
11172
11173 // SetSettingsHash sets value to SettingsHash
11174 func (o *EnhancedDB) SetSettingsHash(v string) {
11175 o.SettingsHash = v
11176 }
11177
11178 // GetDatabaseName returns value of DatabaseName
11179 func (o *EnhancedDB) GetDatabaseName() string {
11180 return o.DatabaseName
11181 }
11182
11183 // SetDatabaseName sets value to DatabaseName
11184 func (o *EnhancedDB) SetDatabaseName(v string) {
11185 o.DatabaseName = v
11186 }
11187
11188 // GetDatabaseType returns value of DatabaseType
11189 func (o *EnhancedDB) GetDatabaseType() types.EnhancedDBType {
11190 return o.DatabaseType
11191 }
11192
11193 // SetDatabaseType sets value to DatabaseType
11194 func (o *EnhancedDB) SetDatabaseType(v types.EnhancedDBType) {
11195 o.DatabaseType = v
11196 }
11197
11198 // GetRegion returns value of Region
11199 func (o *EnhancedDB) GetRegion() types.EnhancedDBRegion {
11200 return o.Region
11201 }
11202
11203 // SetRegion sets value to Region
11204 func (o *EnhancedDB) SetRegion(v types.EnhancedDBRegion) {
11205 o.Region = v
11206 }
11207
11208 // GetHostName returns value of HostName
11209 func (o *EnhancedDB) GetHostName() string {
11210 return o.HostName
11211 }
11212
11213 // SetHostName sets value to HostName
11214 func (o *EnhancedDB) SetHostName(v string) {
11215 o.HostName = v
11216 }
11217
11218 // GetPort returns value of Port
11219 func (o *EnhancedDB) GetPort() int {
11220 return o.Port
11221 }
11222
11223 // SetPort sets value to Port
11224 func (o *EnhancedDB) SetPort(v int) {
11225 o.Port = v
11226 }
11227
11228 /*************************************************
11229 * EnhancedDBCreateRequest
11230 *************************************************/
11231
11232 // EnhancedDBCreateRequest represents API parameter/response structure
11233 type EnhancedDBCreateRequest struct {
11234 Name string
11235 Description string
11236 Tags types.Tags
11237 IconID types.ID `mapconv:"Icon.ID"`
11238 DatabaseName string `mapconv:"Status.DatabaseName"`
11239 DatabaseType types.EnhancedDBType `mapconv:"Status.DatabaseType"`
11240 Region types.EnhancedDBRegion `mapconv:"Status.Region"`
11241 }
11242
11243 // setDefaults implements iaas.argumentDefaulter
11244 func (o *EnhancedDBCreateRequest) setDefaults() interface{} {
11245 return &struct {
11246 Name string
11247 Description string
11248 Tags types.Tags
11249 IconID types.ID `mapconv:"Icon.ID"`
11250 DatabaseName string `mapconv:"Status.DatabaseName"`
11251 DatabaseType types.EnhancedDBType `mapconv:"Status.DatabaseType"`
11252 Region types.EnhancedDBRegion `mapconv:"Status.Region"`
11253 Class string `mapconv:"Provider.Class"`
11254 MaxConnections int `mapconv:"Config.MaxConnections"`
11255 AllowedNetworks []string `mapconv:"Config.AllowedNetworks"`
11256 }{
11257 Name: o.GetName(),
11258 Description: o.GetDescription(),
11259 Tags: o.GetTags(),
11260 IconID: o.GetIconID(),
11261 DatabaseName: o.GetDatabaseName(),
11262 DatabaseType: o.GetDatabaseType(),
11263 Region: o.GetRegion(),
11264 Class: "enhanceddb",
11265 MaxConnections: 50,
11266 AllowedNetworks: []string{},
11267 }
11268 }
11269
11270 // GetName returns value of Name
11271 func (o *EnhancedDBCreateRequest) GetName() string {
11272 return o.Name
11273 }
11274
11275 // SetName sets value to Name
11276 func (o *EnhancedDBCreateRequest) SetName(v string) {
11277 o.Name = v
11278 }
11279
11280 // GetDescription returns value of Description
11281 func (o *EnhancedDBCreateRequest) GetDescription() string {
11282 return o.Description
11283 }
11284
11285 // SetDescription sets value to Description
11286 func (o *EnhancedDBCreateRequest) SetDescription(v string) {
11287 o.Description = v
11288 }
11289
11290 // GetTags returns value of Tags
11291 func (o *EnhancedDBCreateRequest) GetTags() types.Tags {
11292 return o.Tags
11293 }
11294
11295 // SetTags sets value to Tags
11296 func (o *EnhancedDBCreateRequest) SetTags(v types.Tags) {
11297 o.Tags = v
11298 }
11299
11300 // HasTag 指定のタグが存在する場合trueを返す
11301 func (o *EnhancedDBCreateRequest) HasTag(tag string) bool {
11302 return accessor.HasTag(o, tag)
11303 }
11304
11305 // AppendTag 指定のタグを追加
11306 func (o *EnhancedDBCreateRequest) AppendTag(tag string) {
11307 accessor.AppendTag(o, tag)
11308 }
11309
11310 // RemoveTag 指定のタグを削除
11311 func (o *EnhancedDBCreateRequest) RemoveTag(tag string) {
11312 accessor.RemoveTag(o, tag)
11313 }
11314
11315 // ClearTags タグを全クリア
11316 func (o *EnhancedDBCreateRequest) ClearTags() {
11317 accessor.ClearTags(o)
11318 }
11319
11320 // GetIconID returns value of IconID
11321 func (o *EnhancedDBCreateRequest) GetIconID() types.ID {
11322 return o.IconID
11323 }
11324
11325 // SetIconID sets value to IconID
11326 func (o *EnhancedDBCreateRequest) SetIconID(v types.ID) {
11327 o.IconID = v
11328 }
11329
11330 // GetDatabaseName returns value of DatabaseName
11331 func (o *EnhancedDBCreateRequest) GetDatabaseName() string {
11332 return o.DatabaseName
11333 }
11334
11335 // SetDatabaseName sets value to DatabaseName
11336 func (o *EnhancedDBCreateRequest) SetDatabaseName(v string) {
11337 o.DatabaseName = v
11338 }
11339
11340 // GetDatabaseType returns value of DatabaseType
11341 func (o *EnhancedDBCreateRequest) GetDatabaseType() types.EnhancedDBType {
11342 return o.DatabaseType
11343 }
11344
11345 // SetDatabaseType sets value to DatabaseType
11346 func (o *EnhancedDBCreateRequest) SetDatabaseType(v types.EnhancedDBType) {
11347 o.DatabaseType = v
11348 }
11349
11350 // GetRegion returns value of Region
11351 func (o *EnhancedDBCreateRequest) GetRegion() types.EnhancedDBRegion {
11352 return o.Region
11353 }
11354
11355 // SetRegion sets value to Region
11356 func (o *EnhancedDBCreateRequest) SetRegion(v types.EnhancedDBRegion) {
11357 o.Region = v
11358 }
11359
11360 /*************************************************
11361 * EnhancedDBUpdateRequest
11362 *************************************************/
11363
11364 // EnhancedDBUpdateRequest represents API parameter/response structure
11365 type EnhancedDBUpdateRequest struct {
11366 Name string
11367 Description string
11368 Tags types.Tags
11369 IconID types.ID `mapconv:"Icon.ID"`
11370 SettingsHash string `json:",omitempty" mapconv:",omitempty"`
11371 }
11372
11373 // setDefaults implements iaas.argumentDefaulter
11374 func (o *EnhancedDBUpdateRequest) setDefaults() interface{} {
11375 return &struct {
11376 Name string
11377 Description string
11378 Tags types.Tags
11379 IconID types.ID `mapconv:"Icon.ID"`
11380 SettingsHash string `json:",omitempty" mapconv:",omitempty"`
11381 }{
11382 Name: o.GetName(),
11383 Description: o.GetDescription(),
11384 Tags: o.GetTags(),
11385 IconID: o.GetIconID(),
11386 SettingsHash: o.GetSettingsHash(),
11387 }
11388 }
11389
11390 // GetName returns value of Name
11391 func (o *EnhancedDBUpdateRequest) GetName() string {
11392 return o.Name
11393 }
11394
11395 // SetName sets value to Name
11396 func (o *EnhancedDBUpdateRequest) SetName(v string) {
11397 o.Name = v
11398 }
11399
11400 // GetDescription returns value of Description
11401 func (o *EnhancedDBUpdateRequest) GetDescription() string {
11402 return o.Description
11403 }
11404
11405 // SetDescription sets value to Description
11406 func (o *EnhancedDBUpdateRequest) SetDescription(v string) {
11407 o.Description = v
11408 }
11409
11410 // GetTags returns value of Tags
11411 func (o *EnhancedDBUpdateRequest) GetTags() types.Tags {
11412 return o.Tags
11413 }
11414
11415 // SetTags sets value to Tags
11416 func (o *EnhancedDBUpdateRequest) SetTags(v types.Tags) {
11417 o.Tags = v
11418 }
11419
11420 // HasTag 指定のタグが存在する場合trueを返す
11421 func (o *EnhancedDBUpdateRequest) HasTag(tag string) bool {
11422 return accessor.HasTag(o, tag)
11423 }
11424
11425 // AppendTag 指定のタグを追加
11426 func (o *EnhancedDBUpdateRequest) AppendTag(tag string) {
11427 accessor.AppendTag(o, tag)
11428 }
11429
11430 // RemoveTag 指定のタグを削除
11431 func (o *EnhancedDBUpdateRequest) RemoveTag(tag string) {
11432 accessor.RemoveTag(o, tag)
11433 }
11434
11435 // ClearTags タグを全クリア
11436 func (o *EnhancedDBUpdateRequest) ClearTags() {
11437 accessor.ClearTags(o)
11438 }
11439
11440 // GetIconID returns value of IconID
11441 func (o *EnhancedDBUpdateRequest) GetIconID() types.ID {
11442 return o.IconID
11443 }
11444
11445 // SetIconID sets value to IconID
11446 func (o *EnhancedDBUpdateRequest) SetIconID(v types.ID) {
11447 o.IconID = v
11448 }
11449
11450 // GetSettingsHash returns value of SettingsHash
11451 func (o *EnhancedDBUpdateRequest) GetSettingsHash() string {
11452 return o.SettingsHash
11453 }
11454
11455 // SetSettingsHash sets value to SettingsHash
11456 func (o *EnhancedDBUpdateRequest) SetSettingsHash(v string) {
11457 o.SettingsHash = v
11458 }
11459
11460 /*************************************************
11461 * EnhancedDBSetPasswordRequest
11462 *************************************************/
11463
11464 // EnhancedDBSetPasswordRequest represents API parameter/response structure
11465 type EnhancedDBSetPasswordRequest struct {
11466 Password string `mapconv:"EnhancedDB.Password"`
11467 }
11468
11469 // setDefaults implements iaas.argumentDefaulter
11470 func (o *EnhancedDBSetPasswordRequest) setDefaults() interface{} {
11471 return &struct {
11472 Password string `mapconv:"EnhancedDB.Password"`
11473 }{
11474 Password: o.GetPassword(),
11475 }
11476 }
11477
11478 // GetPassword returns value of Password
11479 func (o *EnhancedDBSetPasswordRequest) GetPassword() string {
11480 return o.Password
11481 }
11482
11483 // SetPassword sets value to Password
11484 func (o *EnhancedDBSetPasswordRequest) SetPassword(v string) {
11485 o.Password = v
11486 }
11487
11488 /*************************************************
11489 * EnhancedDBConfig
11490 *************************************************/
11491
11492 // EnhancedDBConfig represents API parameter/response structure
11493 type EnhancedDBConfig struct {
11494 MaxConnections int
11495 AllowedNetworks []string
11496 }
11497
11498 // setDefaults implements iaas.argumentDefaulter
11499 func (o *EnhancedDBConfig) setDefaults() interface{} {
11500 return &struct {
11501 MaxConnections int
11502 AllowedNetworks []string
11503 }{
11504 MaxConnections: o.GetMaxConnections(),
11505 AllowedNetworks: o.GetAllowedNetworks(),
11506 }
11507 }
11508
11509 // GetMaxConnections returns value of MaxConnections
11510 func (o *EnhancedDBConfig) GetMaxConnections() int {
11511 return o.MaxConnections
11512 }
11513
11514 // SetMaxConnections sets value to MaxConnections
11515 func (o *EnhancedDBConfig) SetMaxConnections(v int) {
11516 o.MaxConnections = v
11517 }
11518
11519 // GetAllowedNetworks returns value of AllowedNetworks
11520 func (o *EnhancedDBConfig) GetAllowedNetworks() []string {
11521 return o.AllowedNetworks
11522 }
11523
11524 // SetAllowedNetworks sets value to AllowedNetworks
11525 func (o *EnhancedDBConfig) SetAllowedNetworks(v []string) {
11526 o.AllowedNetworks = v
11527 }
11528
11529 /*************************************************
11530 * EnhancedDBSetConfigRequest
11531 *************************************************/
11532
11533 // EnhancedDBSetConfigRequest represents API parameter/response structure
11534 type EnhancedDBSetConfigRequest struct {
11535 AllowedNetworks []string `mapconv:"EnhancedDB.AllowedNetworks"`
11536 }
11537
11538 // setDefaults implements iaas.argumentDefaulter
11539 func (o *EnhancedDBSetConfigRequest) setDefaults() interface{} {
11540 return &struct {
11541 AllowedNetworks []string `mapconv:"EnhancedDB.AllowedNetworks"`
11542 MaxConnections int `mapconv:"EnhancedDB.MaxConnections"`
11543 }{
11544 AllowedNetworks: o.GetAllowedNetworks(),
11545 MaxConnections: 50,
11546 }
11547 }
11548
11549 // GetAllowedNetworks returns value of AllowedNetworks
11550 func (o *EnhancedDBSetConfigRequest) GetAllowedNetworks() []string {
11551 return o.AllowedNetworks
11552 }
11553
11554 // SetAllowedNetworks sets value to AllowedNetworks
11555 func (o *EnhancedDBSetConfigRequest) SetAllowedNetworks(v []string) {
11556 o.AllowedNetworks = v
11557 }
11558
11559 /*************************************************
11560 * ESME
11561 *************************************************/
11562
11563 // ESME represents API parameter/response structure
11564 type ESME struct {
11565 ID types.ID
11566 Name string
11567 Description string
11568 Tags types.Tags
11569 Availability types.EAvailability
11570 IconID types.ID `mapconv:"Icon.ID"`
11571 CreatedAt time.Time
11572 ModifiedAt time.Time
11573 }
11574
11575 // setDefaults implements iaas.argumentDefaulter
11576 func (o *ESME) setDefaults() interface{} {
11577 return &struct {
11578 ID types.ID
11579 Name string
11580 Description string
11581 Tags types.Tags
11582 Availability types.EAvailability
11583 IconID types.ID `mapconv:"Icon.ID"`
11584 CreatedAt time.Time
11585 ModifiedAt time.Time
11586 }{
11587 ID: o.GetID(),
11588 Name: o.GetName(),
11589 Description: o.GetDescription(),
11590 Tags: o.GetTags(),
11591 Availability: o.GetAvailability(),
11592 IconID: o.GetIconID(),
11593 CreatedAt: o.GetCreatedAt(),
11594 ModifiedAt: o.GetModifiedAt(),
11595 }
11596 }
11597
11598 // GetID returns value of ID
11599 func (o *ESME) GetID() types.ID {
11600 return o.ID
11601 }
11602
11603 // SetID sets value to ID
11604 func (o *ESME) SetID(v types.ID) {
11605 o.ID = v
11606 }
11607
11608 // SetStringID .
11609 func (o *ESME) SetStringID(id string) {
11610 accessor.SetStringID(o, id)
11611 }
11612
11613 // GetStringID .
11614 func (o *ESME) GetStringID() string {
11615 return accessor.GetStringID(o)
11616 }
11617
11618 // SetInt64ID .
11619 func (o *ESME) SetInt64ID(id int64) {
11620 accessor.SetInt64ID(o, id)
11621 }
11622
11623 // GetInt64ID .
11624 func (o *ESME) GetInt64ID() int64 {
11625 return accessor.GetInt64ID(o)
11626 }
11627
11628 // GetName returns value of Name
11629 func (o *ESME) GetName() string {
11630 return o.Name
11631 }
11632
11633 // SetName sets value to Name
11634 func (o *ESME) SetName(v string) {
11635 o.Name = v
11636 }
11637
11638 // GetDescription returns value of Description
11639 func (o *ESME) GetDescription() string {
11640 return o.Description
11641 }
11642
11643 // SetDescription sets value to Description
11644 func (o *ESME) SetDescription(v string) {
11645 o.Description = v
11646 }
11647
11648 // GetTags returns value of Tags
11649 func (o *ESME) GetTags() types.Tags {
11650 return o.Tags
11651 }
11652
11653 // SetTags sets value to Tags
11654 func (o *ESME) SetTags(v types.Tags) {
11655 o.Tags = v
11656 }
11657
11658 // HasTag 指定のタグが存在する場合trueを返す
11659 func (o *ESME) HasTag(tag string) bool {
11660 return accessor.HasTag(o, tag)
11661 }
11662
11663 // AppendTag 指定のタグを追加
11664 func (o *ESME) AppendTag(tag string) {
11665 accessor.AppendTag(o, tag)
11666 }
11667
11668 // RemoveTag 指定のタグを削除
11669 func (o *ESME) RemoveTag(tag string) {
11670 accessor.RemoveTag(o, tag)
11671 }
11672
11673 // ClearTags タグを全クリア
11674 func (o *ESME) ClearTags() {
11675 accessor.ClearTags(o)
11676 }
11677
11678 // GetAvailability returns value of Availability
11679 func (o *ESME) GetAvailability() types.EAvailability {
11680 return o.Availability
11681 }
11682
11683 // SetAvailability sets value to Availability
11684 func (o *ESME) SetAvailability(v types.EAvailability) {
11685 o.Availability = v
11686 }
11687
11688 // GetIconID returns value of IconID
11689 func (o *ESME) GetIconID() types.ID {
11690 return o.IconID
11691 }
11692
11693 // SetIconID sets value to IconID
11694 func (o *ESME) SetIconID(v types.ID) {
11695 o.IconID = v
11696 }
11697
11698 // GetCreatedAt returns value of CreatedAt
11699 func (o *ESME) GetCreatedAt() time.Time {
11700 return o.CreatedAt
11701 }
11702
11703 // SetCreatedAt sets value to CreatedAt
11704 func (o *ESME) SetCreatedAt(v time.Time) {
11705 o.CreatedAt = v
11706 }
11707
11708 // GetModifiedAt returns value of ModifiedAt
11709 func (o *ESME) GetModifiedAt() time.Time {
11710 return o.ModifiedAt
11711 }
11712
11713 // SetModifiedAt sets value to ModifiedAt
11714 func (o *ESME) SetModifiedAt(v time.Time) {
11715 o.ModifiedAt = v
11716 }
11717
11718 /*************************************************
11719 * ESMECreateRequest
11720 *************************************************/
11721
11722 // ESMECreateRequest represents API parameter/response structure
11723 type ESMECreateRequest struct {
11724 Name string
11725 Description string
11726 Tags types.Tags
11727 IconID types.ID `mapconv:"Icon.ID"`
11728 }
11729
11730 // setDefaults implements iaas.argumentDefaulter
11731 func (o *ESMECreateRequest) setDefaults() interface{} {
11732 return &struct {
11733 Name string
11734 Description string
11735 Tags types.Tags
11736 IconID types.ID `mapconv:"Icon.ID"`
11737 Class string `mapconv:"Provider.Class"`
11738 }{
11739 Name: o.GetName(),
11740 Description: o.GetDescription(),
11741 Tags: o.GetTags(),
11742 IconID: o.GetIconID(),
11743 Class: "esme",
11744 }
11745 }
11746
11747 // GetName returns value of Name
11748 func (o *ESMECreateRequest) GetName() string {
11749 return o.Name
11750 }
11751
11752 // SetName sets value to Name
11753 func (o *ESMECreateRequest) SetName(v string) {
11754 o.Name = v
11755 }
11756
11757 // GetDescription returns value of Description
11758 func (o *ESMECreateRequest) GetDescription() string {
11759 return o.Description
11760 }
11761
11762 // SetDescription sets value to Description
11763 func (o *ESMECreateRequest) SetDescription(v string) {
11764 o.Description = v
11765 }
11766
11767 // GetTags returns value of Tags
11768 func (o *ESMECreateRequest) GetTags() types.Tags {
11769 return o.Tags
11770 }
11771
11772 // SetTags sets value to Tags
11773 func (o *ESMECreateRequest) SetTags(v types.Tags) {
11774 o.Tags = v
11775 }
11776
11777 // HasTag 指定のタグが存在する場合trueを返す
11778 func (o *ESMECreateRequest) HasTag(tag string) bool {
11779 return accessor.HasTag(o, tag)
11780 }
11781
11782 // AppendTag 指定のタグを追加
11783 func (o *ESMECreateRequest) AppendTag(tag string) {
11784 accessor.AppendTag(o, tag)
11785 }
11786
11787 // RemoveTag 指定のタグを削除
11788 func (o *ESMECreateRequest) RemoveTag(tag string) {
11789 accessor.RemoveTag(o, tag)
11790 }
11791
11792 // ClearTags タグを全クリア
11793 func (o *ESMECreateRequest) ClearTags() {
11794 accessor.ClearTags(o)
11795 }
11796
11797 // GetIconID returns value of IconID
11798 func (o *ESMECreateRequest) GetIconID() types.ID {
11799 return o.IconID
11800 }
11801
11802 // SetIconID sets value to IconID
11803 func (o *ESMECreateRequest) SetIconID(v types.ID) {
11804 o.IconID = v
11805 }
11806
11807 /*************************************************
11808 * ESMEUpdateRequest
11809 *************************************************/
11810
11811 // ESMEUpdateRequest represents API parameter/response structure
11812 type ESMEUpdateRequest struct {
11813 Name string
11814 Description string
11815 Tags types.Tags
11816 IconID types.ID `mapconv:"Icon.ID"`
11817 }
11818
11819 // setDefaults implements iaas.argumentDefaulter
11820 func (o *ESMEUpdateRequest) setDefaults() interface{} {
11821 return &struct {
11822 Name string
11823 Description string
11824 Tags types.Tags
11825 IconID types.ID `mapconv:"Icon.ID"`
11826 }{
11827 Name: o.GetName(),
11828 Description: o.GetDescription(),
11829 Tags: o.GetTags(),
11830 IconID: o.GetIconID(),
11831 }
11832 }
11833
11834 // GetName returns value of Name
11835 func (o *ESMEUpdateRequest) GetName() string {
11836 return o.Name
11837 }
11838
11839 // SetName sets value to Name
11840 func (o *ESMEUpdateRequest) SetName(v string) {
11841 o.Name = v
11842 }
11843
11844 // GetDescription returns value of Description
11845 func (o *ESMEUpdateRequest) GetDescription() string {
11846 return o.Description
11847 }
11848
11849 // SetDescription sets value to Description
11850 func (o *ESMEUpdateRequest) SetDescription(v string) {
11851 o.Description = v
11852 }
11853
11854 // GetTags returns value of Tags
11855 func (o *ESMEUpdateRequest) GetTags() types.Tags {
11856 return o.Tags
11857 }
11858
11859 // SetTags sets value to Tags
11860 func (o *ESMEUpdateRequest) SetTags(v types.Tags) {
11861 o.Tags = v
11862 }
11863
11864 // HasTag 指定のタグが存在する場合trueを返す
11865 func (o *ESMEUpdateRequest) HasTag(tag string) bool {
11866 return accessor.HasTag(o, tag)
11867 }
11868
11869 // AppendTag 指定のタグを追加
11870 func (o *ESMEUpdateRequest) AppendTag(tag string) {
11871 accessor.AppendTag(o, tag)
11872 }
11873
11874 // RemoveTag 指定のタグを削除
11875 func (o *ESMEUpdateRequest) RemoveTag(tag string) {
11876 accessor.RemoveTag(o, tag)
11877 }
11878
11879 // ClearTags タグを全クリア
11880 func (o *ESMEUpdateRequest) ClearTags() {
11881 accessor.ClearTags(o)
11882 }
11883
11884 // GetIconID returns value of IconID
11885 func (o *ESMEUpdateRequest) GetIconID() types.ID {
11886 return o.IconID
11887 }
11888
11889 // SetIconID sets value to IconID
11890 func (o *ESMEUpdateRequest) SetIconID(v types.ID) {
11891 o.IconID = v
11892 }
11893
11894 /*************************************************
11895 * ESMESendMessageResult
11896 *************************************************/
11897
11898 // ESMESendMessageResult represents API parameter/response structure
11899 type ESMESendMessageResult struct {
11900 MessageID string
11901 Status string
11902 OTP string
11903 }
11904
11905 // setDefaults implements iaas.argumentDefaulter
11906 func (o *ESMESendMessageResult) setDefaults() interface{} {
11907 return &struct {
11908 MessageID string
11909 Status string
11910 OTP string
11911 }{
11912 MessageID: o.GetMessageID(),
11913 Status: o.GetStatus(),
11914 OTP: o.GetOTP(),
11915 }
11916 }
11917
11918 // GetMessageID returns value of MessageID
11919 func (o *ESMESendMessageResult) GetMessageID() string {
11920 return o.MessageID
11921 }
11922
11923 // SetMessageID sets value to MessageID
11924 func (o *ESMESendMessageResult) SetMessageID(v string) {
11925 o.MessageID = v
11926 }
11927
11928 // GetStatus returns value of Status
11929 func (o *ESMESendMessageResult) GetStatus() string {
11930 return o.Status
11931 }
11932
11933 // SetStatus sets value to Status
11934 func (o *ESMESendMessageResult) SetStatus(v string) {
11935 o.Status = v
11936 }
11937
11938 // GetOTP returns value of OTP
11939 func (o *ESMESendMessageResult) GetOTP() string {
11940 return o.OTP
11941 }
11942
11943 // SetOTP sets value to OTP
11944 func (o *ESMESendMessageResult) SetOTP(v string) {
11945 o.OTP = v
11946 }
11947
11948 /*************************************************
11949 * ESMESendMessageWithGeneratedOTPRequest
11950 *************************************************/
11951
11952 // ESMESendMessageWithGeneratedOTPRequest represents API parameter/response structure
11953 type ESMESendMessageWithGeneratedOTPRequest struct {
11954 Destination string
11955 Sender string
11956 DomainName string
11957 }
11958
11959 // setDefaults implements iaas.argumentDefaulter
11960 func (o *ESMESendMessageWithGeneratedOTPRequest) setDefaults() interface{} {
11961 return &struct {
11962 Destination string
11963 Sender string
11964 DomainName string
11965 OTPOperation types.EOTPOperation
11966 }{
11967 Destination: o.GetDestination(),
11968 Sender: o.GetSender(),
11969 DomainName: o.GetDomainName(),
11970 OTPOperation: "generate",
11971 }
11972 }
11973
11974 // GetDestination returns value of Destination
11975 func (o *ESMESendMessageWithGeneratedOTPRequest) GetDestination() string {
11976 return o.Destination
11977 }
11978
11979 // SetDestination sets value to Destination
11980 func (o *ESMESendMessageWithGeneratedOTPRequest) SetDestination(v string) {
11981 o.Destination = v
11982 }
11983
11984 // GetSender returns value of Sender
11985 func (o *ESMESendMessageWithGeneratedOTPRequest) GetSender() string {
11986 return o.Sender
11987 }
11988
11989 // SetSender sets value to Sender
11990 func (o *ESMESendMessageWithGeneratedOTPRequest) SetSender(v string) {
11991 o.Sender = v
11992 }
11993
11994 // GetDomainName returns value of DomainName
11995 func (o *ESMESendMessageWithGeneratedOTPRequest) GetDomainName() string {
11996 return o.DomainName
11997 }
11998
11999 // SetDomainName sets value to DomainName
12000 func (o *ESMESendMessageWithGeneratedOTPRequest) SetDomainName(v string) {
12001 o.DomainName = v
12002 }
12003
12004 /*************************************************
12005 * ESMESendMessageWithInputtedOTPRequest
12006 *************************************************/
12007
12008 // ESMESendMessageWithInputtedOTPRequest represents API parameter/response structure
12009 type ESMESendMessageWithInputtedOTPRequest struct {
12010 Destination string
12011 Sender string
12012 DomainName string
12013 OTP string
12014 }
12015
12016 // setDefaults implements iaas.argumentDefaulter
12017 func (o *ESMESendMessageWithInputtedOTPRequest) setDefaults() interface{} {
12018 return &struct {
12019 Destination string
12020 Sender string
12021 DomainName string
12022 OTP string
12023 OTPOperation types.EOTPOperation
12024 }{
12025 Destination: o.GetDestination(),
12026 Sender: o.GetSender(),
12027 DomainName: o.GetDomainName(),
12028 OTP: o.GetOTP(),
12029 OTPOperation: "input",
12030 }
12031 }
12032
12033 // GetDestination returns value of Destination
12034 func (o *ESMESendMessageWithInputtedOTPRequest) GetDestination() string {
12035 return o.Destination
12036 }
12037
12038 // SetDestination sets value to Destination
12039 func (o *ESMESendMessageWithInputtedOTPRequest) SetDestination(v string) {
12040 o.Destination = v
12041 }
12042
12043 // GetSender returns value of Sender
12044 func (o *ESMESendMessageWithInputtedOTPRequest) GetSender() string {
12045 return o.Sender
12046 }
12047
12048 // SetSender sets value to Sender
12049 func (o *ESMESendMessageWithInputtedOTPRequest) SetSender(v string) {
12050 o.Sender = v
12051 }
12052
12053 // GetDomainName returns value of DomainName
12054 func (o *ESMESendMessageWithInputtedOTPRequest) GetDomainName() string {
12055 return o.DomainName
12056 }
12057
12058 // SetDomainName sets value to DomainName
12059 func (o *ESMESendMessageWithInputtedOTPRequest) SetDomainName(v string) {
12060 o.DomainName = v
12061 }
12062
12063 // GetOTP returns value of OTP
12064 func (o *ESMESendMessageWithInputtedOTPRequest) GetOTP() string {
12065 return o.OTP
12066 }
12067
12068 // SetOTP sets value to OTP
12069 func (o *ESMESendMessageWithInputtedOTPRequest) SetOTP(v string) {
12070 o.OTP = v
12071 }
12072
12073 /*************************************************
12074 * ESMELogs
12075 *************************************************/
12076
12077 // ESMELogs represents API parameter/response structure
12078 type ESMELogs struct {
12079 MessageID string
12080 Status string
12081 OTP string
12082 Destination string
12083 SentAt time.Time
12084 DoneAt time.Time
12085 RetryCount int
12086 }
12087
12088 // setDefaults implements iaas.argumentDefaulter
12089 func (o *ESMELogs) setDefaults() interface{} {
12090 return &struct {
12091 MessageID string
12092 Status string
12093 OTP string
12094 Destination string
12095 SentAt time.Time
12096 DoneAt time.Time
12097 RetryCount int
12098 }{
12099 MessageID: o.GetMessageID(),
12100 Status: o.GetStatus(),
12101 OTP: o.GetOTP(),
12102 Destination: o.GetDestination(),
12103 SentAt: o.GetSentAt(),
12104 DoneAt: o.GetDoneAt(),
12105 RetryCount: o.GetRetryCount(),
12106 }
12107 }
12108
12109 // GetMessageID returns value of MessageID
12110 func (o *ESMELogs) GetMessageID() string {
12111 return o.MessageID
12112 }
12113
12114 // SetMessageID sets value to MessageID
12115 func (o *ESMELogs) SetMessageID(v string) {
12116 o.MessageID = v
12117 }
12118
12119 // GetStatus returns value of Status
12120 func (o *ESMELogs) GetStatus() string {
12121 return o.Status
12122 }
12123
12124 // SetStatus sets value to Status
12125 func (o *ESMELogs) SetStatus(v string) {
12126 o.Status = v
12127 }
12128
12129 // GetOTP returns value of OTP
12130 func (o *ESMELogs) GetOTP() string {
12131 return o.OTP
12132 }
12133
12134 // SetOTP sets value to OTP
12135 func (o *ESMELogs) SetOTP(v string) {
12136 o.OTP = v
12137 }
12138
12139 // GetDestination returns value of Destination
12140 func (o *ESMELogs) GetDestination() string {
12141 return o.Destination
12142 }
12143
12144 // SetDestination sets value to Destination
12145 func (o *ESMELogs) SetDestination(v string) {
12146 o.Destination = v
12147 }
12148
12149 // GetSentAt returns value of SentAt
12150 func (o *ESMELogs) GetSentAt() time.Time {
12151 return o.SentAt
12152 }
12153
12154 // SetSentAt sets value to SentAt
12155 func (o *ESMELogs) SetSentAt(v time.Time) {
12156 o.SentAt = v
12157 }
12158
12159 // GetDoneAt returns value of DoneAt
12160 func (o *ESMELogs) GetDoneAt() time.Time {
12161 return o.DoneAt
12162 }
12163
12164 // SetDoneAt sets value to DoneAt
12165 func (o *ESMELogs) SetDoneAt(v time.Time) {
12166 o.DoneAt = v
12167 }
12168
12169 // GetRetryCount returns value of RetryCount
12170 func (o *ESMELogs) GetRetryCount() int {
12171 return o.RetryCount
12172 }
12173
12174 // SetRetryCount sets value to RetryCount
12175 func (o *ESMELogs) SetRetryCount(v int) {
12176 o.RetryCount = v
12177 }
12178
12179 /*************************************************
12180 * GSLB
12181 *************************************************/
12182
12183 // GSLB represents API parameter/response structure
12184 type GSLB struct {
12185 ID types.ID
12186 Name string
12187 Description string
12188 Tags types.Tags
12189 Availability types.EAvailability
12190 IconID types.ID `mapconv:"Icon.ID"`
12191 CreatedAt time.Time
12192 ModifiedAt time.Time
12193 SettingsHash string `json:",omitempty" mapconv:",omitempty"`
12194 FQDN string `mapconv:"Status.FQDN"`
12195 DelayLoop int `mapconv:"Settings.GSLB.DelayLoop"`
12196 Weighted types.StringFlag `mapconv:"Settings.GSLB.Weighted"`
12197 HealthCheck *GSLBHealthCheck `mapconv:"Settings.GSLB.HealthCheck,recursive"`
12198 SorryServer string `mapconv:"Settings.GSLB.SorryServer"`
12199 MonitoringSuiteLog *MonitoringSuiteLog `mapconv:"Settings.GSLB.MonitoringSuiteLog,recursive"`
12200 DestinationServers GSLBServers `mapconv:"Settings.GSLB.[]Servers,recursive"`
12201 }
12202
12203 // setDefaults implements iaas.argumentDefaulter
12204 func (o *GSLB) setDefaults() interface{} {
12205 return &struct {
12206 ID types.ID
12207 Name string
12208 Description string
12209 Tags types.Tags
12210 Availability types.EAvailability
12211 IconID types.ID `mapconv:"Icon.ID"`
12212 CreatedAt time.Time
12213 ModifiedAt time.Time
12214 SettingsHash string `json:",omitempty" mapconv:",omitempty"`
12215 FQDN string `mapconv:"Status.FQDN"`
12216 DelayLoop int `mapconv:"Settings.GSLB.DelayLoop"`
12217 Weighted types.StringFlag `mapconv:"Settings.GSLB.Weighted"`
12218 HealthCheck *GSLBHealthCheck `mapconv:"Settings.GSLB.HealthCheck,recursive"`
12219 SorryServer string `mapconv:"Settings.GSLB.SorryServer"`
12220 MonitoringSuiteLog *MonitoringSuiteLog `mapconv:"Settings.GSLB.MonitoringSuiteLog,recursive"`
12221 DestinationServers GSLBServers `mapconv:"Settings.GSLB.[]Servers,recursive"`
12222 }{
12223 ID: o.GetID(),
12224 Name: o.GetName(),
12225 Description: o.GetDescription(),
12226 Tags: o.GetTags(),
12227 Availability: o.GetAvailability(),
12228 IconID: o.GetIconID(),
12229 CreatedAt: o.GetCreatedAt(),
12230 ModifiedAt: o.GetModifiedAt(),
12231 SettingsHash: o.GetSettingsHash(),
12232 FQDN: o.GetFQDN(),
12233 DelayLoop: o.GetDelayLoop(),
12234 Weighted: o.GetWeighted(),
12235 HealthCheck: o.GetHealthCheck(),
12236 SorryServer: o.GetSorryServer(),
12237 MonitoringSuiteLog: o.GetMonitoringSuiteLog(),
12238 DestinationServers: o.GetDestinationServers(),
12239 }
12240 }
12241
12242 // GetID returns value of ID
12243 func (o *GSLB) GetID() types.ID {
12244 return o.ID
12245 }
12246
12247 // SetID sets value to ID
12248 func (o *GSLB) SetID(v types.ID) {
12249 o.ID = v
12250 }
12251
12252 // SetStringID .
12253 func (o *GSLB) SetStringID(id string) {
12254 accessor.SetStringID(o, id)
12255 }
12256
12257 // GetStringID .
12258 func (o *GSLB) GetStringID() string {
12259 return accessor.GetStringID(o)
12260 }
12261
12262 // SetInt64ID .
12263 func (o *GSLB) SetInt64ID(id int64) {
12264 accessor.SetInt64ID(o, id)
12265 }
12266
12267 // GetInt64ID .
12268 func (o *GSLB) GetInt64ID() int64 {
12269 return accessor.GetInt64ID(o)
12270 }
12271
12272 // GetName returns value of Name
12273 func (o *GSLB) GetName() string {
12274 return o.Name
12275 }
12276
12277 // SetName sets value to Name
12278 func (o *GSLB) SetName(v string) {
12279 o.Name = v
12280 }
12281
12282 // GetDescription returns value of Description
12283 func (o *GSLB) GetDescription() string {
12284 return o.Description
12285 }
12286
12287 // SetDescription sets value to Description
12288 func (o *GSLB) SetDescription(v string) {
12289 o.Description = v
12290 }
12291
12292 // GetTags returns value of Tags
12293 func (o *GSLB) GetTags() types.Tags {
12294 return o.Tags
12295 }
12296
12297 // SetTags sets value to Tags
12298 func (o *GSLB) SetTags(v types.Tags) {
12299 o.Tags = v
12300 }
12301
12302 // HasTag 指定のタグが存在する場合trueを返す
12303 func (o *GSLB) HasTag(tag string) bool {
12304 return accessor.HasTag(o, tag)
12305 }
12306
12307 // AppendTag 指定のタグを追加
12308 func (o *GSLB) AppendTag(tag string) {
12309 accessor.AppendTag(o, tag)
12310 }
12311
12312 // RemoveTag 指定のタグを削除
12313 func (o *GSLB) RemoveTag(tag string) {
12314 accessor.RemoveTag(o, tag)
12315 }
12316
12317 // ClearTags タグを全クリア
12318 func (o *GSLB) ClearTags() {
12319 accessor.ClearTags(o)
12320 }
12321
12322 // GetAvailability returns value of Availability
12323 func (o *GSLB) GetAvailability() types.EAvailability {
12324 return o.Availability
12325 }
12326
12327 // SetAvailability sets value to Availability
12328 func (o *GSLB) SetAvailability(v types.EAvailability) {
12329 o.Availability = v
12330 }
12331
12332 // GetIconID returns value of IconID
12333 func (o *GSLB) GetIconID() types.ID {
12334 return o.IconID
12335 }
12336
12337 // SetIconID sets value to IconID
12338 func (o *GSLB) SetIconID(v types.ID) {
12339 o.IconID = v
12340 }
12341
12342 // GetCreatedAt returns value of CreatedAt
12343 func (o *GSLB) GetCreatedAt() time.Time {
12344 return o.CreatedAt
12345 }
12346
12347 // SetCreatedAt sets value to CreatedAt
12348 func (o *GSLB) SetCreatedAt(v time.Time) {
12349 o.CreatedAt = v
12350 }
12351
12352 // GetModifiedAt returns value of ModifiedAt
12353 func (o *GSLB) GetModifiedAt() time.Time {
12354 return o.ModifiedAt
12355 }
12356
12357 // SetModifiedAt sets value to ModifiedAt
12358 func (o *GSLB) SetModifiedAt(v time.Time) {
12359 o.ModifiedAt = v
12360 }
12361
12362 // GetSettingsHash returns value of SettingsHash
12363 func (o *GSLB) GetSettingsHash() string {
12364 return o.SettingsHash
12365 }
12366
12367 // SetSettingsHash sets value to SettingsHash
12368 func (o *GSLB) SetSettingsHash(v string) {
12369 o.SettingsHash = v
12370 }
12371
12372 // GetFQDN returns value of FQDN
12373 func (o *GSLB) GetFQDN() string {
12374 return o.FQDN
12375 }
12376
12377 // SetFQDN sets value to FQDN
12378 func (o *GSLB) SetFQDN(v string) {
12379 o.FQDN = v
12380 }
12381
12382 // GetDelayLoop returns value of DelayLoop
12383 func (o *GSLB) GetDelayLoop() int {
12384 if o.DelayLoop == 0 {
12385 return 10
12386 }
12387 return o.DelayLoop
12388 }
12389
12390 // SetDelayLoop sets value to DelayLoop
12391 func (o *GSLB) SetDelayLoop(v int) {
12392 o.DelayLoop = v
12393 }
12394
12395 // GetWeighted returns value of Weighted
12396 func (o *GSLB) GetWeighted() types.StringFlag {
12397 return o.Weighted
12398 }
12399
12400 // SetWeighted sets value to Weighted
12401 func (o *GSLB) SetWeighted(v types.StringFlag) {
12402 o.Weighted = v
12403 }
12404
12405 // GetHealthCheck returns value of HealthCheck
12406 func (o *GSLB) GetHealthCheck() *GSLBHealthCheck {
12407 return o.HealthCheck
12408 }
12409
12410 // SetHealthCheck sets value to HealthCheck
12411 func (o *GSLB) SetHealthCheck(v *GSLBHealthCheck) {
12412 o.HealthCheck = v
12413 }
12414
12415 // GetSorryServer returns value of SorryServer
12416 func (o *GSLB) GetSorryServer() string {
12417 return o.SorryServer
12418 }
12419
12420 // SetSorryServer sets value to SorryServer
12421 func (o *GSLB) SetSorryServer(v string) {
12422 o.SorryServer = v
12423 }
12424
12425 // GetMonitoringSuiteLog returns value of MonitoringSuiteLog
12426 func (o *GSLB) GetMonitoringSuiteLog() *MonitoringSuiteLog {
12427 return o.MonitoringSuiteLog
12428 }
12429
12430 // SetMonitoringSuiteLog sets value to MonitoringSuiteLog
12431 func (o *GSLB) SetMonitoringSuiteLog(v *MonitoringSuiteLog) {
12432 o.MonitoringSuiteLog = v
12433 }
12434
12435 // GetDestinationServers returns value of DestinationServers
12436 func (o *GSLB) GetDestinationServers() GSLBServers {
12437 return o.DestinationServers
12438 }
12439
12440 // SetDestinationServers sets value to DestinationServers
12441 func (o *GSLB) SetDestinationServers(v GSLBServers) {
12442 o.DestinationServers = v
12443 }
12444
12445 /*************************************************
12446 * GSLBHealthCheck
12447 *************************************************/
12448
12449 // GSLBHealthCheck represents API parameter/response structure
12450 type GSLBHealthCheck struct {
12451 Protocol types.EGSLBHealthCheckProtocol
12452 HostHeader string `mapconv:"Host"`
12453 Path string `mapconv:"Path"`
12454 ResponseCode types.StringNumber `mapconv:"Status"`
12455 Port types.StringNumber `mapconv:"Port"`
12456 }
12457
12458 // setDefaults implements iaas.argumentDefaulter
12459 func (o *GSLBHealthCheck) setDefaults() interface{} {
12460 return &struct {
12461 Protocol types.EGSLBHealthCheckProtocol
12462 HostHeader string `mapconv:"Host"`
12463 Path string `mapconv:"Path"`
12464 ResponseCode types.StringNumber `mapconv:"Status"`
12465 Port types.StringNumber `mapconv:"Port"`
12466 }{
12467 Protocol: o.GetProtocol(),
12468 HostHeader: o.GetHostHeader(),
12469 Path: o.GetPath(),
12470 ResponseCode: o.GetResponseCode(),
12471 Port: o.GetPort(),
12472 }
12473 }
12474
12475 // GetProtocol returns value of Protocol
12476 func (o *GSLBHealthCheck) GetProtocol() types.EGSLBHealthCheckProtocol {
12477 return o.Protocol
12478 }
12479
12480 // SetProtocol sets value to Protocol
12481 func (o *GSLBHealthCheck) SetProtocol(v types.EGSLBHealthCheckProtocol) {
12482 o.Protocol = v
12483 }
12484
12485 // GetHostHeader returns value of HostHeader
12486 func (o *GSLBHealthCheck) GetHostHeader() string {
12487 return o.HostHeader
12488 }
12489
12490 // SetHostHeader sets value to HostHeader
12491 func (o *GSLBHealthCheck) SetHostHeader(v string) {
12492 o.HostHeader = v
12493 }
12494
12495 // GetPath returns value of Path
12496 func (o *GSLBHealthCheck) GetPath() string {
12497 return o.Path
12498 }
12499
12500 // SetPath sets value to Path
12501 func (o *GSLBHealthCheck) SetPath(v string) {
12502 o.Path = v
12503 }
12504
12505 // GetResponseCode returns value of ResponseCode
12506 func (o *GSLBHealthCheck) GetResponseCode() types.StringNumber {
12507 return o.ResponseCode
12508 }
12509
12510 // SetResponseCode sets value to ResponseCode
12511 func (o *GSLBHealthCheck) SetResponseCode(v types.StringNumber) {
12512 o.ResponseCode = v
12513 }
12514
12515 // GetPort returns value of Port
12516 func (o *GSLBHealthCheck) GetPort() types.StringNumber {
12517 return o.Port
12518 }
12519
12520 // SetPort sets value to Port
12521 func (o *GSLBHealthCheck) SetPort(v types.StringNumber) {
12522 o.Port = v
12523 }
12524
12525 /*************************************************
12526 * GSLBServer
12527 *************************************************/
12528
12529 // GSLBServer represents API parameter/response structure
12530 type GSLBServer struct {
12531 IPAddress string
12532 Enabled types.StringFlag
12533 Weight types.StringNumber
12534 }
12535
12536 // setDefaults implements iaas.argumentDefaulter
12537 func (o *GSLBServer) setDefaults() interface{} {
12538 return &struct {
12539 IPAddress string
12540 Enabled types.StringFlag
12541 Weight types.StringNumber
12542 }{
12543 IPAddress: o.GetIPAddress(),
12544 Enabled: o.GetEnabled(),
12545 Weight: o.GetWeight(),
12546 }
12547 }
12548
12549 // GetIPAddress returns value of IPAddress
12550 func (o *GSLBServer) GetIPAddress() string {
12551 return o.IPAddress
12552 }
12553
12554 // SetIPAddress sets value to IPAddress
12555 func (o *GSLBServer) SetIPAddress(v string) {
12556 o.IPAddress = v
12557 }
12558
12559 // GetEnabled returns value of Enabled
12560 func (o *GSLBServer) GetEnabled() types.StringFlag {
12561 return o.Enabled
12562 }
12563
12564 // SetEnabled sets value to Enabled
12565 func (o *GSLBServer) SetEnabled(v types.StringFlag) {
12566 o.Enabled = v
12567 }
12568
12569 // GetWeight returns value of Weight
12570 func (o *GSLBServer) GetWeight() types.StringNumber {
12571 return o.Weight
12572 }
12573
12574 // SetWeight sets value to Weight
12575 func (o *GSLBServer) SetWeight(v types.StringNumber) {
12576 o.Weight = v
12577 }
12578
12579 /*************************************************
12580 * GSLBCreateRequest
12581 *************************************************/
12582
12583 // GSLBCreateRequest represents API parameter/response structure
12584 type GSLBCreateRequest struct {
12585 HealthCheck *GSLBHealthCheck `mapconv:"Settings.GSLB.HealthCheck,recursive"`
12586 DelayLoop int `mapconv:"Settings.GSLB.DelayLoop"`
12587 Weighted types.StringFlag `mapconv:"Settings.GSLB.Weighted"`
12588 SorryServer string `mapconv:"Settings.GSLB.SorryServer"`
12589 MonitoringSuiteLog *MonitoringSuiteLog `mapconv:"Settings.GSLB.MonitoringSuiteLog,recursive"`
12590 DestinationServers GSLBServers `mapconv:"Settings.GSLB.[]Servers,recursive"`
12591 Name string
12592 Description string
12593 Tags types.Tags
12594 IconID types.ID `mapconv:"Icon.ID"`
12595 }
12596
12597 // setDefaults implements iaas.argumentDefaulter
12598 func (o *GSLBCreateRequest) setDefaults() interface{} {
12599 return &struct {
12600 HealthCheck *GSLBHealthCheck `mapconv:"Settings.GSLB.HealthCheck,recursive"`
12601 DelayLoop int `mapconv:"Settings.GSLB.DelayLoop"`
12602 Weighted types.StringFlag `mapconv:"Settings.GSLB.Weighted"`
12603 SorryServer string `mapconv:"Settings.GSLB.SorryServer"`
12604 MonitoringSuiteLog *MonitoringSuiteLog `mapconv:"Settings.GSLB.MonitoringSuiteLog,recursive"`
12605 DestinationServers GSLBServers `mapconv:"Settings.GSLB.[]Servers,recursive"`
12606 Name string
12607 Description string
12608 Tags types.Tags
12609 IconID types.ID `mapconv:"Icon.ID"`
12610 Class string `mapconv:"Provider.Class"`
12611 }{
12612 HealthCheck: o.GetHealthCheck(),
12613 DelayLoop: o.GetDelayLoop(),
12614 Weighted: o.GetWeighted(),
12615 SorryServer: o.GetSorryServer(),
12616 MonitoringSuiteLog: o.GetMonitoringSuiteLog(),
12617 DestinationServers: o.GetDestinationServers(),
12618 Name: o.GetName(),
12619 Description: o.GetDescription(),
12620 Tags: o.GetTags(),
12621 IconID: o.GetIconID(),
12622 Class: "gslb",
12623 }
12624 }
12625
12626 // GetHealthCheck returns value of HealthCheck
12627 func (o *GSLBCreateRequest) GetHealthCheck() *GSLBHealthCheck {
12628 return o.HealthCheck
12629 }
12630
12631 // SetHealthCheck sets value to HealthCheck
12632 func (o *GSLBCreateRequest) SetHealthCheck(v *GSLBHealthCheck) {
12633 o.HealthCheck = v
12634 }
12635
12636 // GetDelayLoop returns value of DelayLoop
12637 func (o *GSLBCreateRequest) GetDelayLoop() int {
12638 if o.DelayLoop == 0 {
12639 return 10
12640 }
12641 return o.DelayLoop
12642 }
12643
12644 // SetDelayLoop sets value to DelayLoop
12645 func (o *GSLBCreateRequest) SetDelayLoop(v int) {
12646 o.DelayLoop = v
12647 }
12648
12649 // GetWeighted returns value of Weighted
12650 func (o *GSLBCreateRequest) GetWeighted() types.StringFlag {
12651 return o.Weighted
12652 }
12653
12654 // SetWeighted sets value to Weighted
12655 func (o *GSLBCreateRequest) SetWeighted(v types.StringFlag) {
12656 o.Weighted = v
12657 }
12658
12659 // GetSorryServer returns value of SorryServer
12660 func (o *GSLBCreateRequest) GetSorryServer() string {
12661 return o.SorryServer
12662 }
12663
12664 // SetSorryServer sets value to SorryServer
12665 func (o *GSLBCreateRequest) SetSorryServer(v string) {
12666 o.SorryServer = v
12667 }
12668
12669 // GetMonitoringSuiteLog returns value of MonitoringSuiteLog
12670 func (o *GSLBCreateRequest) GetMonitoringSuiteLog() *MonitoringSuiteLog {
12671 return o.MonitoringSuiteLog
12672 }
12673
12674 // SetMonitoringSuiteLog sets value to MonitoringSuiteLog
12675 func (o *GSLBCreateRequest) SetMonitoringSuiteLog(v *MonitoringSuiteLog) {
12676 o.MonitoringSuiteLog = v
12677 }
12678
12679 // GetDestinationServers returns value of DestinationServers
12680 func (o *GSLBCreateRequest) GetDestinationServers() GSLBServers {
12681 return o.DestinationServers
12682 }
12683
12684 // SetDestinationServers sets value to DestinationServers
12685 func (o *GSLBCreateRequest) SetDestinationServers(v GSLBServers) {
12686 o.DestinationServers = v
12687 }
12688
12689 // GetName returns value of Name
12690 func (o *GSLBCreateRequest) GetName() string {
12691 return o.Name
12692 }
12693
12694 // SetName sets value to Name
12695 func (o *GSLBCreateRequest) SetName(v string) {
12696 o.Name = v
12697 }
12698
12699 // GetDescription returns value of Description
12700 func (o *GSLBCreateRequest) GetDescription() string {
12701 return o.Description
12702 }
12703
12704 // SetDescription sets value to Description
12705 func (o *GSLBCreateRequest) SetDescription(v string) {
12706 o.Description = v
12707 }
12708
12709 // GetTags returns value of Tags
12710 func (o *GSLBCreateRequest) GetTags() types.Tags {
12711 return o.Tags
12712 }
12713
12714 // SetTags sets value to Tags
12715 func (o *GSLBCreateRequest) SetTags(v types.Tags) {
12716 o.Tags = v
12717 }
12718
12719 // HasTag 指定のタグが存在する場合trueを返す
12720 func (o *GSLBCreateRequest) HasTag(tag string) bool {
12721 return accessor.HasTag(o, tag)
12722 }
12723
12724 // AppendTag 指定のタグを追加
12725 func (o *GSLBCreateRequest) AppendTag(tag string) {
12726 accessor.AppendTag(o, tag)
12727 }
12728
12729 // RemoveTag 指定のタグを削除
12730 func (o *GSLBCreateRequest) RemoveTag(tag string) {
12731 accessor.RemoveTag(o, tag)
12732 }
12733
12734 // ClearTags タグを全クリア
12735 func (o *GSLBCreateRequest) ClearTags() {
12736 accessor.ClearTags(o)
12737 }
12738
12739 // GetIconID returns value of IconID
12740 func (o *GSLBCreateRequest) GetIconID() types.ID {
12741 return o.IconID
12742 }
12743
12744 // SetIconID sets value to IconID
12745 func (o *GSLBCreateRequest) SetIconID(v types.ID) {
12746 o.IconID = v
12747 }
12748
12749 /*************************************************
12750 * GSLBUpdateRequest
12751 *************************************************/
12752
12753 // GSLBUpdateRequest represents API parameter/response structure
12754 type GSLBUpdateRequest struct {
12755 Name string
12756 Description string
12757 Tags types.Tags
12758 IconID types.ID `mapconv:"Icon.ID"`
12759 HealthCheck *GSLBHealthCheck `mapconv:"Settings.GSLB.HealthCheck,recursive"`
12760 DelayLoop int `mapconv:"Settings.GSLB.DelayLoop"`
12761 Weighted types.StringFlag `mapconv:"Settings.GSLB.Weighted"`
12762 SorryServer string `mapconv:"Settings.GSLB.SorryServer"`
12763 MonitoringSuiteLog *MonitoringSuiteLog `mapconv:"Settings.GSLB.MonitoringSuiteLog,recursive"`
12764 DestinationServers GSLBServers `mapconv:"Settings.GSLB.[]Servers,recursive"`
12765 SettingsHash string `json:",omitempty" mapconv:",omitempty"`
12766 }
12767
12768 // setDefaults implements iaas.argumentDefaulter
12769 func (o *GSLBUpdateRequest) setDefaults() interface{} {
12770 return &struct {
12771 Name string
12772 Description string
12773 Tags types.Tags
12774 IconID types.ID `mapconv:"Icon.ID"`
12775 HealthCheck *GSLBHealthCheck `mapconv:"Settings.GSLB.HealthCheck,recursive"`
12776 DelayLoop int `mapconv:"Settings.GSLB.DelayLoop"`
12777 Weighted types.StringFlag `mapconv:"Settings.GSLB.Weighted"`
12778 SorryServer string `mapconv:"Settings.GSLB.SorryServer"`
12779 MonitoringSuiteLog *MonitoringSuiteLog `mapconv:"Settings.GSLB.MonitoringSuiteLog,recursive"`
12780 DestinationServers GSLBServers `mapconv:"Settings.GSLB.[]Servers,recursive"`
12781 SettingsHash string `json:",omitempty" mapconv:",omitempty"`
12782 }{
12783 Name: o.GetName(),
12784 Description: o.GetDescription(),
12785 Tags: o.GetTags(),
12786 IconID: o.GetIconID(),
12787 HealthCheck: o.GetHealthCheck(),
12788 DelayLoop: o.GetDelayLoop(),
12789 Weighted: o.GetWeighted(),
12790 SorryServer: o.GetSorryServer(),
12791 MonitoringSuiteLog: o.GetMonitoringSuiteLog(),
12792 DestinationServers: o.GetDestinationServers(),
12793 SettingsHash: o.GetSettingsHash(),
12794 }
12795 }
12796
12797 // GetName returns value of Name
12798 func (o *GSLBUpdateRequest) GetName() string {
12799 return o.Name
12800 }
12801
12802 // SetName sets value to Name
12803 func (o *GSLBUpdateRequest) SetName(v string) {
12804 o.Name = v
12805 }
12806
12807 // GetDescription returns value of Description
12808 func (o *GSLBUpdateRequest) GetDescription() string {
12809 return o.Description
12810 }
12811
12812 // SetDescription sets value to Description
12813 func (o *GSLBUpdateRequest) SetDescription(v string) {
12814 o.Description = v
12815 }
12816
12817 // GetTags returns value of Tags
12818 func (o *GSLBUpdateRequest) GetTags() types.Tags {
12819 return o.Tags
12820 }
12821
12822 // SetTags sets value to Tags
12823 func (o *GSLBUpdateRequest) SetTags(v types.Tags) {
12824 o.Tags = v
12825 }
12826
12827 // HasTag 指定のタグが存在する場合trueを返す
12828 func (o *GSLBUpdateRequest) HasTag(tag string) bool {
12829 return accessor.HasTag(o, tag)
12830 }
12831
12832 // AppendTag 指定のタグを追加
12833 func (o *GSLBUpdateRequest) AppendTag(tag string) {
12834 accessor.AppendTag(o, tag)
12835 }
12836
12837 // RemoveTag 指定のタグを削除
12838 func (o *GSLBUpdateRequest) RemoveTag(tag string) {
12839 accessor.RemoveTag(o, tag)
12840 }
12841
12842 // ClearTags タグを全クリア
12843 func (o *GSLBUpdateRequest) ClearTags() {
12844 accessor.ClearTags(o)
12845 }
12846
12847 // GetIconID returns value of IconID
12848 func (o *GSLBUpdateRequest) GetIconID() types.ID {
12849 return o.IconID
12850 }
12851
12852 // SetIconID sets value to IconID
12853 func (o *GSLBUpdateRequest) SetIconID(v types.ID) {
12854 o.IconID = v
12855 }
12856
12857 // GetHealthCheck returns value of HealthCheck
12858 func (o *GSLBUpdateRequest) GetHealthCheck() *GSLBHealthCheck {
12859 return o.HealthCheck
12860 }
12861
12862 // SetHealthCheck sets value to HealthCheck
12863 func (o *GSLBUpdateRequest) SetHealthCheck(v *GSLBHealthCheck) {
12864 o.HealthCheck = v
12865 }
12866
12867 // GetDelayLoop returns value of DelayLoop
12868 func (o *GSLBUpdateRequest) GetDelayLoop() int {
12869 if o.DelayLoop == 0 {
12870 return 10
12871 }
12872 return o.DelayLoop
12873 }
12874
12875 // SetDelayLoop sets value to DelayLoop
12876 func (o *GSLBUpdateRequest) SetDelayLoop(v int) {
12877 o.DelayLoop = v
12878 }
12879
12880 // GetWeighted returns value of Weighted
12881 func (o *GSLBUpdateRequest) GetWeighted() types.StringFlag {
12882 return o.Weighted
12883 }
12884
12885 // SetWeighted sets value to Weighted
12886 func (o *GSLBUpdateRequest) SetWeighted(v types.StringFlag) {
12887 o.Weighted = v
12888 }
12889
12890 // GetSorryServer returns value of SorryServer
12891 func (o *GSLBUpdateRequest) GetSorryServer() string {
12892 return o.SorryServer
12893 }
12894
12895 // SetSorryServer sets value to SorryServer
12896 func (o *GSLBUpdateRequest) SetSorryServer(v string) {
12897 o.SorryServer = v
12898 }
12899
12900 // GetMonitoringSuiteLog returns value of MonitoringSuiteLog
12901 func (o *GSLBUpdateRequest) GetMonitoringSuiteLog() *MonitoringSuiteLog {
12902 return o.MonitoringSuiteLog
12903 }
12904
12905 // SetMonitoringSuiteLog sets value to MonitoringSuiteLog
12906 func (o *GSLBUpdateRequest) SetMonitoringSuiteLog(v *MonitoringSuiteLog) {
12907 o.MonitoringSuiteLog = v
12908 }
12909
12910 // GetDestinationServers returns value of DestinationServers
12911 func (o *GSLBUpdateRequest) GetDestinationServers() GSLBServers {
12912 return o.DestinationServers
12913 }
12914
12915 // SetDestinationServers sets value to DestinationServers
12916 func (o *GSLBUpdateRequest) SetDestinationServers(v GSLBServers) {
12917 o.DestinationServers = v
12918 }
12919
12920 // GetSettingsHash returns value of SettingsHash
12921 func (o *GSLBUpdateRequest) GetSettingsHash() string {
12922 return o.SettingsHash
12923 }
12924
12925 // SetSettingsHash sets value to SettingsHash
12926 func (o *GSLBUpdateRequest) SetSettingsHash(v string) {
12927 o.SettingsHash = v
12928 }
12929
12930 /*************************************************
12931 * GSLBUpdateSettingsRequest
12932 *************************************************/
12933
12934 // GSLBUpdateSettingsRequest represents API parameter/response structure
12935 type GSLBUpdateSettingsRequest struct {
12936 HealthCheck *GSLBHealthCheck `mapconv:"Settings.GSLB.HealthCheck,recursive"`
12937 DelayLoop int `mapconv:"Settings.GSLB.DelayLoop"`
12938 Weighted types.StringFlag `mapconv:"Settings.GSLB.Weighted"`
12939 SorryServer string `mapconv:"Settings.GSLB.SorryServer"`
12940 MonitoringSuiteLog *MonitoringSuiteLog `mapconv:"Settings.GSLB.MonitoringSuiteLog,recursive"`
12941 DestinationServers GSLBServers `mapconv:"Settings.GSLB.[]Servers,recursive"`
12942 SettingsHash string `json:",omitempty" mapconv:",omitempty"`
12943 }
12944
12945 // setDefaults implements iaas.argumentDefaulter
12946 func (o *GSLBUpdateSettingsRequest) setDefaults() interface{} {
12947 return &struct {
12948 HealthCheck *GSLBHealthCheck `mapconv:"Settings.GSLB.HealthCheck,recursive"`
12949 DelayLoop int `mapconv:"Settings.GSLB.DelayLoop"`
12950 Weighted types.StringFlag `mapconv:"Settings.GSLB.Weighted"`
12951 SorryServer string `mapconv:"Settings.GSLB.SorryServer"`
12952 MonitoringSuiteLog *MonitoringSuiteLog `mapconv:"Settings.GSLB.MonitoringSuiteLog,recursive"`
12953 DestinationServers GSLBServers `mapconv:"Settings.GSLB.[]Servers,recursive"`
12954 SettingsHash string `json:",omitempty" mapconv:",omitempty"`
12955 }{
12956 HealthCheck: o.GetHealthCheck(),
12957 DelayLoop: o.GetDelayLoop(),
12958 Weighted: o.GetWeighted(),
12959 SorryServer: o.GetSorryServer(),
12960 MonitoringSuiteLog: o.GetMonitoringSuiteLog(),
12961 DestinationServers: o.GetDestinationServers(),
12962 SettingsHash: o.GetSettingsHash(),
12963 }
12964 }
12965
12966 // GetHealthCheck returns value of HealthCheck
12967 func (o *GSLBUpdateSettingsRequest) GetHealthCheck() *GSLBHealthCheck {
12968 return o.HealthCheck
12969 }
12970
12971 // SetHealthCheck sets value to HealthCheck
12972 func (o *GSLBUpdateSettingsRequest) SetHealthCheck(v *GSLBHealthCheck) {
12973 o.HealthCheck = v
12974 }
12975
12976 // GetDelayLoop returns value of DelayLoop
12977 func (o *GSLBUpdateSettingsRequest) GetDelayLoop() int {
12978 if o.DelayLoop == 0 {
12979 return 10
12980 }
12981 return o.DelayLoop
12982 }
12983
12984 // SetDelayLoop sets value to DelayLoop
12985 func (o *GSLBUpdateSettingsRequest) SetDelayLoop(v int) {
12986 o.DelayLoop = v
12987 }
12988
12989 // GetWeighted returns value of Weighted
12990 func (o *GSLBUpdateSettingsRequest) GetWeighted() types.StringFlag {
12991 return o.Weighted
12992 }
12993
12994 // SetWeighted sets value to Weighted
12995 func (o *GSLBUpdateSettingsRequest) SetWeighted(v types.StringFlag) {
12996 o.Weighted = v
12997 }
12998
12999 // GetSorryServer returns value of SorryServer
13000 func (o *GSLBUpdateSettingsRequest) GetSorryServer() string {
13001 return o.SorryServer
13002 }
13003
13004 // SetSorryServer sets value to SorryServer
13005 func (o *GSLBUpdateSettingsRequest) SetSorryServer(v string) {
13006 o.SorryServer = v
13007 }
13008
13009 // GetMonitoringSuiteLog returns value of MonitoringSuiteLog
13010 func (o *GSLBUpdateSettingsRequest) GetMonitoringSuiteLog() *MonitoringSuiteLog {
13011 return o.MonitoringSuiteLog
13012 }
13013
13014 // SetMonitoringSuiteLog sets value to MonitoringSuiteLog
13015 func (o *GSLBUpdateSettingsRequest) SetMonitoringSuiteLog(v *MonitoringSuiteLog) {
13016 o.MonitoringSuiteLog = v
13017 }
13018
13019 // GetDestinationServers returns value of DestinationServers
13020 func (o *GSLBUpdateSettingsRequest) GetDestinationServers() GSLBServers {
13021 return o.DestinationServers
13022 }
13023
13024 // SetDestinationServers sets value to DestinationServers
13025 func (o *GSLBUpdateSettingsRequest) SetDestinationServers(v GSLBServers) {
13026 o.DestinationServers = v
13027 }
13028
13029 // GetSettingsHash returns value of SettingsHash
13030 func (o *GSLBUpdateSettingsRequest) GetSettingsHash() string {
13031 return o.SettingsHash
13032 }
13033
13034 // SetSettingsHash sets value to SettingsHash
13035 func (o *GSLBUpdateSettingsRequest) SetSettingsHash(v string) {
13036 o.SettingsHash = v
13037 }
13038
13039 /*************************************************
13040 * Icon
13041 *************************************************/
13042
13043 // Icon represents API parameter/response structure
13044 type Icon struct {
13045 ID types.ID
13046 Name string
13047 Tags types.Tags
13048 Availability types.EAvailability
13049 Scope types.EScope
13050 URL string
13051 CreatedAt time.Time
13052 ModifiedAt time.Time
13053 }
13054
13055 // setDefaults implements iaas.argumentDefaulter
13056 func (o *Icon) setDefaults() interface{} {
13057 return &struct {
13058 ID types.ID
13059 Name string
13060 Tags types.Tags
13061 Availability types.EAvailability
13062 Scope types.EScope
13063 URL string
13064 CreatedAt time.Time
13065 ModifiedAt time.Time
13066 }{
13067 ID: o.GetID(),
13068 Name: o.GetName(),
13069 Tags: o.GetTags(),
13070 Availability: o.GetAvailability(),
13071 Scope: o.GetScope(),
13072 URL: o.GetURL(),
13073 CreatedAt: o.GetCreatedAt(),
13074 ModifiedAt: o.GetModifiedAt(),
13075 }
13076 }
13077
13078 // GetID returns value of ID
13079 func (o *Icon) GetID() types.ID {
13080 return o.ID
13081 }
13082
13083 // SetID sets value to ID
13084 func (o *Icon) SetID(v types.ID) {
13085 o.ID = v
13086 }
13087
13088 // SetStringID .
13089 func (o *Icon) SetStringID(id string) {
13090 accessor.SetStringID(o, id)
13091 }
13092
13093 // GetStringID .
13094 func (o *Icon) GetStringID() string {
13095 return accessor.GetStringID(o)
13096 }
13097
13098 // SetInt64ID .
13099 func (o *Icon) SetInt64ID(id int64) {
13100 accessor.SetInt64ID(o, id)
13101 }
13102
13103 // GetInt64ID .
13104 func (o *Icon) GetInt64ID() int64 {
13105 return accessor.GetInt64ID(o)
13106 }
13107
13108 // GetName returns value of Name
13109 func (o *Icon) GetName() string {
13110 return o.Name
13111 }
13112
13113 // SetName sets value to Name
13114 func (o *Icon) SetName(v string) {
13115 o.Name = v
13116 }
13117
13118 // GetTags returns value of Tags
13119 func (o *Icon) GetTags() types.Tags {
13120 return o.Tags
13121 }
13122
13123 // SetTags sets value to Tags
13124 func (o *Icon) SetTags(v types.Tags) {
13125 o.Tags = v
13126 }
13127
13128 // HasTag 指定のタグが存在する場合trueを返す
13129 func (o *Icon) HasTag(tag string) bool {
13130 return accessor.HasTag(o, tag)
13131 }
13132
13133 // AppendTag 指定のタグを追加
13134 func (o *Icon) AppendTag(tag string) {
13135 accessor.AppendTag(o, tag)
13136 }
13137
13138 // RemoveTag 指定のタグを削除
13139 func (o *Icon) RemoveTag(tag string) {
13140 accessor.RemoveTag(o, tag)
13141 }
13142
13143 // ClearTags タグを全クリア
13144 func (o *Icon) ClearTags() {
13145 accessor.ClearTags(o)
13146 }
13147
13148 // GetAvailability returns value of Availability
13149 func (o *Icon) GetAvailability() types.EAvailability {
13150 return o.Availability
13151 }
13152
13153 // SetAvailability sets value to Availability
13154 func (o *Icon) SetAvailability(v types.EAvailability) {
13155 o.Availability = v
13156 }
13157
13158 // GetScope returns value of Scope
13159 func (o *Icon) GetScope() types.EScope {
13160 return o.Scope
13161 }
13162
13163 // SetScope sets value to Scope
13164 func (o *Icon) SetScope(v types.EScope) {
13165 o.Scope = v
13166 }
13167
13168 // GetURL returns value of URL
13169 func (o *Icon) GetURL() string {
13170 return o.URL
13171 }
13172
13173 // SetURL sets value to URL
13174 func (o *Icon) SetURL(v string) {
13175 o.URL = v
13176 }
13177
13178 // GetCreatedAt returns value of CreatedAt
13179 func (o *Icon) GetCreatedAt() time.Time {
13180 return o.CreatedAt
13181 }
13182
13183 // SetCreatedAt sets value to CreatedAt
13184 func (o *Icon) SetCreatedAt(v time.Time) {
13185 o.CreatedAt = v
13186 }
13187
13188 // GetModifiedAt returns value of ModifiedAt
13189 func (o *Icon) GetModifiedAt() time.Time {
13190 return o.ModifiedAt
13191 }
13192
13193 // SetModifiedAt sets value to ModifiedAt
13194 func (o *Icon) SetModifiedAt(v time.Time) {
13195 o.ModifiedAt = v
13196 }
13197
13198 /*************************************************
13199 * IconCreateRequest
13200 *************************************************/
13201
13202 // IconCreateRequest represents API parameter/response structure
13203 type IconCreateRequest struct {
13204 Name string
13205 Tags types.Tags
13206 Image string
13207 }
13208
13209 // setDefaults implements iaas.argumentDefaulter
13210 func (o *IconCreateRequest) setDefaults() interface{} {
13211 return &struct {
13212 Name string
13213 Tags types.Tags
13214 Image string
13215 }{
13216 Name: o.GetName(),
13217 Tags: o.GetTags(),
13218 Image: o.GetImage(),
13219 }
13220 }
13221
13222 // GetName returns value of Name
13223 func (o *IconCreateRequest) GetName() string {
13224 return o.Name
13225 }
13226
13227 // SetName sets value to Name
13228 func (o *IconCreateRequest) SetName(v string) {
13229 o.Name = v
13230 }
13231
13232 // GetTags returns value of Tags
13233 func (o *IconCreateRequest) GetTags() types.Tags {
13234 return o.Tags
13235 }
13236
13237 // SetTags sets value to Tags
13238 func (o *IconCreateRequest) SetTags(v types.Tags) {
13239 o.Tags = v
13240 }
13241
13242 // HasTag 指定のタグが存在する場合trueを返す
13243 func (o *IconCreateRequest) HasTag(tag string) bool {
13244 return accessor.HasTag(o, tag)
13245 }
13246
13247 // AppendTag 指定のタグを追加
13248 func (o *IconCreateRequest) AppendTag(tag string) {
13249 accessor.AppendTag(o, tag)
13250 }
13251
13252 // RemoveTag 指定のタグを削除
13253 func (o *IconCreateRequest) RemoveTag(tag string) {
13254 accessor.RemoveTag(o, tag)
13255 }
13256
13257 // ClearTags タグを全クリア
13258 func (o *IconCreateRequest) ClearTags() {
13259 accessor.ClearTags(o)
13260 }
13261
13262 // GetImage returns value of Image
13263 func (o *IconCreateRequest) GetImage() string {
13264 return o.Image
13265 }
13266
13267 // SetImage sets value to Image
13268 func (o *IconCreateRequest) SetImage(v string) {
13269 o.Image = v
13270 }
13271
13272 /*************************************************
13273 * IconUpdateRequest
13274 *************************************************/
13275
13276 // IconUpdateRequest represents API parameter/response structure
13277 type IconUpdateRequest struct {
13278 Name string
13279 Tags types.Tags
13280 }
13281
13282 // setDefaults implements iaas.argumentDefaulter
13283 func (o *IconUpdateRequest) setDefaults() interface{} {
13284 return &struct {
13285 Name string
13286 Tags types.Tags
13287 }{
13288 Name: o.GetName(),
13289 Tags: o.GetTags(),
13290 }
13291 }
13292
13293 // GetName returns value of Name
13294 func (o *IconUpdateRequest) GetName() string {
13295 return o.Name
13296 }
13297
13298 // SetName sets value to Name
13299 func (o *IconUpdateRequest) SetName(v string) {
13300 o.Name = v
13301 }
13302
13303 // GetTags returns value of Tags
13304 func (o *IconUpdateRequest) GetTags() types.Tags {
13305 return o.Tags
13306 }
13307
13308 // SetTags sets value to Tags
13309 func (o *IconUpdateRequest) SetTags(v types.Tags) {
13310 o.Tags = v
13311 }
13312
13313 // HasTag 指定のタグが存在する場合trueを返す
13314 func (o *IconUpdateRequest) HasTag(tag string) bool {
13315 return accessor.HasTag(o, tag)
13316 }
13317
13318 // AppendTag 指定のタグを追加
13319 func (o *IconUpdateRequest) AppendTag(tag string) {
13320 accessor.AppendTag(o, tag)
13321 }
13322
13323 // RemoveTag 指定のタグを削除
13324 func (o *IconUpdateRequest) RemoveTag(tag string) {
13325 accessor.RemoveTag(o, tag)
13326 }
13327
13328 // ClearTags タグを全クリア
13329 func (o *IconUpdateRequest) ClearTags() {
13330 accessor.ClearTags(o)
13331 }
13332
13333 /*************************************************
13334 * Interface
13335 *************************************************/
13336
13337 // Interface represents API parameter/response structure
13338 type Interface struct {
13339 ID types.ID
13340 MACAddress string
13341 IPAddress string
13342 UserIPAddress string
13343 HostName string
13344 SwitchID types.ID `mapconv:"Switch.ID,omitempty"`
13345 SwitchScope types.EScope `mapconv:"Switch.Scope,omitempty"`
13346 PacketFilterID types.ID `mapconv:"PacketFilter.ID,omitempty"`
13347 ServerID types.ID `mapconv:"Server.ID,omitempty"`
13348 CreatedAt time.Time
13349 }
13350
13351 // setDefaults implements iaas.argumentDefaulter
13352 func (o *Interface) setDefaults() interface{} {
13353 return &struct {
13354 ID types.ID
13355 MACAddress string
13356 IPAddress string
13357 UserIPAddress string
13358 HostName string
13359 SwitchID types.ID `mapconv:"Switch.ID,omitempty"`
13360 SwitchScope types.EScope `mapconv:"Switch.Scope,omitempty"`
13361 PacketFilterID types.ID `mapconv:"PacketFilter.ID,omitempty"`
13362 ServerID types.ID `mapconv:"Server.ID,omitempty"`
13363 CreatedAt time.Time
13364 }{
13365 ID: o.GetID(),
13366 MACAddress: o.GetMACAddress(),
13367 IPAddress: o.GetIPAddress(),
13368 UserIPAddress: o.GetUserIPAddress(),
13369 HostName: o.GetHostName(),
13370 SwitchID: o.GetSwitchID(),
13371 SwitchScope: o.GetSwitchScope(),
13372 PacketFilterID: o.GetPacketFilterID(),
13373 ServerID: o.GetServerID(),
13374 CreatedAt: o.GetCreatedAt(),
13375 }
13376 }
13377
13378 // GetID returns value of ID
13379 func (o *Interface) GetID() types.ID {
13380 return o.ID
13381 }
13382
13383 // SetID sets value to ID
13384 func (o *Interface) SetID(v types.ID) {
13385 o.ID = v
13386 }
13387
13388 // SetStringID .
13389 func (o *Interface) SetStringID(id string) {
13390 accessor.SetStringID(o, id)
13391 }
13392
13393 // GetStringID .
13394 func (o *Interface) GetStringID() string {
13395 return accessor.GetStringID(o)
13396 }
13397
13398 // SetInt64ID .
13399 func (o *Interface) SetInt64ID(id int64) {
13400 accessor.SetInt64ID(o, id)
13401 }
13402
13403 // GetInt64ID .
13404 func (o *Interface) GetInt64ID() int64 {
13405 return accessor.GetInt64ID(o)
13406 }
13407
13408 // GetMACAddress returns value of MACAddress
13409 func (o *Interface) GetMACAddress() string {
13410 return o.MACAddress
13411 }
13412
13413 // SetMACAddress sets value to MACAddress
13414 func (o *Interface) SetMACAddress(v string) {
13415 o.MACAddress = v
13416 }
13417
13418 // GetIPAddress returns value of IPAddress
13419 func (o *Interface) GetIPAddress() string {
13420 return o.IPAddress
13421 }
13422
13423 // SetIPAddress sets value to IPAddress
13424 func (o *Interface) SetIPAddress(v string) {
13425 o.IPAddress = v
13426 }
13427
13428 // GetUserIPAddress returns value of UserIPAddress
13429 func (o *Interface) GetUserIPAddress() string {
13430 return o.UserIPAddress
13431 }
13432
13433 // SetUserIPAddress sets value to UserIPAddress
13434 func (o *Interface) SetUserIPAddress(v string) {
13435 o.UserIPAddress = v
13436 }
13437
13438 // GetHostName returns value of HostName
13439 func (o *Interface) GetHostName() string {
13440 return o.HostName
13441 }
13442
13443 // SetHostName sets value to HostName
13444 func (o *Interface) SetHostName(v string) {
13445 o.HostName = v
13446 }
13447
13448 // GetSwitchID returns value of SwitchID
13449 func (o *Interface) GetSwitchID() types.ID {
13450 return o.SwitchID
13451 }
13452
13453 // SetSwitchID sets value to SwitchID
13454 func (o *Interface) SetSwitchID(v types.ID) {
13455 o.SwitchID = v
13456 }
13457
13458 // GetSwitchScope returns value of SwitchScope
13459 func (o *Interface) GetSwitchScope() types.EScope {
13460 return o.SwitchScope
13461 }
13462
13463 // SetSwitchScope sets value to SwitchScope
13464 func (o *Interface) SetSwitchScope(v types.EScope) {
13465 o.SwitchScope = v
13466 }
13467
13468 // GetPacketFilterID returns value of PacketFilterID
13469 func (o *Interface) GetPacketFilterID() types.ID {
13470 return o.PacketFilterID
13471 }
13472
13473 // SetPacketFilterID sets value to PacketFilterID
13474 func (o *Interface) SetPacketFilterID(v types.ID) {
13475 o.PacketFilterID = v
13476 }
13477
13478 // GetServerID returns value of ServerID
13479 func (o *Interface) GetServerID() types.ID {
13480 return o.ServerID
13481 }
13482
13483 // SetServerID sets value to ServerID
13484 func (o *Interface) SetServerID(v types.ID) {
13485 o.ServerID = v
13486 }
13487
13488 // GetCreatedAt returns value of CreatedAt
13489 func (o *Interface) GetCreatedAt() time.Time {
13490 return o.CreatedAt
13491 }
13492
13493 // SetCreatedAt sets value to CreatedAt
13494 func (o *Interface) SetCreatedAt(v time.Time) {
13495 o.CreatedAt = v
13496 }
13497
13498 /*************************************************
13499 * InterfaceCreateRequest
13500 *************************************************/
13501
13502 // InterfaceCreateRequest represents API parameter/response structure
13503 type InterfaceCreateRequest struct {
13504 ServerID types.ID `mapconv:"Server.ID,omitempty"`
13505 }
13506
13507 // setDefaults implements iaas.argumentDefaulter
13508 func (o *InterfaceCreateRequest) setDefaults() interface{} {
13509 return &struct {
13510 ServerID types.ID `mapconv:"Server.ID,omitempty"`
13511 }{
13512 ServerID: o.GetServerID(),
13513 }
13514 }
13515
13516 // GetServerID returns value of ServerID
13517 func (o *InterfaceCreateRequest) GetServerID() types.ID {
13518 return o.ServerID
13519 }
13520
13521 // SetServerID sets value to ServerID
13522 func (o *InterfaceCreateRequest) SetServerID(v types.ID) {
13523 o.ServerID = v
13524 }
13525
13526 /*************************************************
13527 * InterfaceUpdateRequest
13528 *************************************************/
13529
13530 // InterfaceUpdateRequest represents API parameter/response structure
13531 type InterfaceUpdateRequest struct {
13532 UserIPAddress string
13533 }
13534
13535 // setDefaults implements iaas.argumentDefaulter
13536 func (o *InterfaceUpdateRequest) setDefaults() interface{} {
13537 return &struct {
13538 UserIPAddress string
13539 }{
13540 UserIPAddress: o.GetUserIPAddress(),
13541 }
13542 }
13543
13544 // GetUserIPAddress returns value of UserIPAddress
13545 func (o *InterfaceUpdateRequest) GetUserIPAddress() string {
13546 return o.UserIPAddress
13547 }
13548
13549 // SetUserIPAddress sets value to UserIPAddress
13550 func (o *InterfaceUpdateRequest) SetUserIPAddress(v string) {
13551 o.UserIPAddress = v
13552 }
13553
13554 /*************************************************
13555 * Internet
13556 *************************************************/
13557
13558 // Internet represents API parameter/response structure
13559 type Internet struct {
13560 ID types.ID
13561 Name string
13562 Description string
13563 Tags types.Tags
13564 IconID types.ID `mapconv:"Icon.ID"`
13565 CreatedAt time.Time
13566 BandWidthMbps int
13567 NetworkMaskLen int
13568 Switch *SwitchInfo `mapconv:",recursive"`
13569 }
13570
13571 // setDefaults implements iaas.argumentDefaulter
13572 func (o *Internet) setDefaults() interface{} {
13573 return &struct {
13574 ID types.ID
13575 Name string
13576 Description string
13577 Tags types.Tags
13578 IconID types.ID `mapconv:"Icon.ID"`
13579 CreatedAt time.Time
13580 BandWidthMbps int
13581 NetworkMaskLen int
13582 Switch *SwitchInfo `mapconv:",recursive"`
13583 }{
13584 ID: o.GetID(),
13585 Name: o.GetName(),
13586 Description: o.GetDescription(),
13587 Tags: o.GetTags(),
13588 IconID: o.GetIconID(),
13589 CreatedAt: o.GetCreatedAt(),
13590 BandWidthMbps: o.GetBandWidthMbps(),
13591 NetworkMaskLen: o.GetNetworkMaskLen(),
13592 Switch: o.GetSwitch(),
13593 }
13594 }
13595
13596 // GetID returns value of ID
13597 func (o *Internet) GetID() types.ID {
13598 return o.ID
13599 }
13600
13601 // SetID sets value to ID
13602 func (o *Internet) SetID(v types.ID) {
13603 o.ID = v
13604 }
13605
13606 // SetStringID .
13607 func (o *Internet) SetStringID(id string) {
13608 accessor.SetStringID(o, id)
13609 }
13610
13611 // GetStringID .
13612 func (o *Internet) GetStringID() string {
13613 return accessor.GetStringID(o)
13614 }
13615
13616 // SetInt64ID .
13617 func (o *Internet) SetInt64ID(id int64) {
13618 accessor.SetInt64ID(o, id)
13619 }
13620
13621 // GetInt64ID .
13622 func (o *Internet) GetInt64ID() int64 {
13623 return accessor.GetInt64ID(o)
13624 }
13625
13626 // GetName returns value of Name
13627 func (o *Internet) GetName() string {
13628 return o.Name
13629 }
13630
13631 // SetName sets value to Name
13632 func (o *Internet) SetName(v string) {
13633 o.Name = v
13634 }
13635
13636 // GetDescription returns value of Description
13637 func (o *Internet) GetDescription() string {
13638 return o.Description
13639 }
13640
13641 // SetDescription sets value to Description
13642 func (o *Internet) SetDescription(v string) {
13643 o.Description = v
13644 }
13645
13646 // GetTags returns value of Tags
13647 func (o *Internet) GetTags() types.Tags {
13648 return o.Tags
13649 }
13650
13651 // SetTags sets value to Tags
13652 func (o *Internet) SetTags(v types.Tags) {
13653 o.Tags = v
13654 }
13655
13656 // HasTag 指定のタグが存在する場合trueを返す
13657 func (o *Internet) HasTag(tag string) bool {
13658 return accessor.HasTag(o, tag)
13659 }
13660
13661 // AppendTag 指定のタグを追加
13662 func (o *Internet) AppendTag(tag string) {
13663 accessor.AppendTag(o, tag)
13664 }
13665
13666 // RemoveTag 指定のタグを削除
13667 func (o *Internet) RemoveTag(tag string) {
13668 accessor.RemoveTag(o, tag)
13669 }
13670
13671 // ClearTags タグを全クリア
13672 func (o *Internet) ClearTags() {
13673 accessor.ClearTags(o)
13674 }
13675
13676 // GetIconID returns value of IconID
13677 func (o *Internet) GetIconID() types.ID {
13678 return o.IconID
13679 }
13680
13681 // SetIconID sets value to IconID
13682 func (o *Internet) SetIconID(v types.ID) {
13683 o.IconID = v
13684 }
13685
13686 // GetCreatedAt returns value of CreatedAt
13687 func (o *Internet) GetCreatedAt() time.Time {
13688 return o.CreatedAt
13689 }
13690
13691 // SetCreatedAt sets value to CreatedAt
13692 func (o *Internet) SetCreatedAt(v time.Time) {
13693 o.CreatedAt = v
13694 }
13695
13696 // GetBandWidthMbps returns value of BandWidthMbps
13697 func (o *Internet) GetBandWidthMbps() int {
13698 return o.BandWidthMbps
13699 }
13700
13701 // SetBandWidthMbps sets value to BandWidthMbps
13702 func (o *Internet) SetBandWidthMbps(v int) {
13703 o.BandWidthMbps = v
13704 }
13705
13706 // GetNetworkMaskLen returns value of NetworkMaskLen
13707 func (o *Internet) GetNetworkMaskLen() int {
13708 return o.NetworkMaskLen
13709 }
13710
13711 // SetNetworkMaskLen sets value to NetworkMaskLen
13712 func (o *Internet) SetNetworkMaskLen(v int) {
13713 o.NetworkMaskLen = v
13714 }
13715
13716 // GetSwitch returns value of Switch
13717 func (o *Internet) GetSwitch() *SwitchInfo {
13718 return o.Switch
13719 }
13720
13721 // SetSwitch sets value to Switch
13722 func (o *Internet) SetSwitch(v *SwitchInfo) {
13723 o.Switch = v
13724 }
13725
13726 /*************************************************
13727 * SwitchInfo
13728 *************************************************/
13729
13730 // SwitchInfo represents API parameter/response structure
13731 type SwitchInfo struct {
13732 ID types.ID
13733 Name string
13734 Description string
13735 Tags types.Tags
13736 Scope types.EScope
13737 Subnets []*InternetSubnet `mapconv:"[]Subnets,recursive"`
13738 IPv6Nets []*IPv6NetInfo `mapconv:"[]IPv6Nets,recursive,omitempty"`
13739 }
13740
13741 // setDefaults implements iaas.argumentDefaulter
13742 func (o *SwitchInfo) setDefaults() interface{} {
13743 return &struct {
13744 ID types.ID
13745 Name string
13746 Description string
13747 Tags types.Tags
13748 Scope types.EScope
13749 Subnets []*InternetSubnet `mapconv:"[]Subnets,recursive"`
13750 IPv6Nets []*IPv6NetInfo `mapconv:"[]IPv6Nets,recursive,omitempty"`
13751 }{
13752 ID: o.GetID(),
13753 Name: o.GetName(),
13754 Description: o.GetDescription(),
13755 Tags: o.GetTags(),
13756 Scope: o.GetScope(),
13757 Subnets: o.GetSubnets(),
13758 IPv6Nets: o.GetIPv6Nets(),
13759 }
13760 }
13761
13762 // GetID returns value of ID
13763 func (o *SwitchInfo) GetID() types.ID {
13764 return o.ID
13765 }
13766
13767 // SetID sets value to ID
13768 func (o *SwitchInfo) SetID(v types.ID) {
13769 o.ID = v
13770 }
13771
13772 // SetStringID .
13773 func (o *SwitchInfo) SetStringID(id string) {
13774 accessor.SetStringID(o, id)
13775 }
13776
13777 // GetStringID .
13778 func (o *SwitchInfo) GetStringID() string {
13779 return accessor.GetStringID(o)
13780 }
13781
13782 // SetInt64ID .
13783 func (o *SwitchInfo) SetInt64ID(id int64) {
13784 accessor.SetInt64ID(o, id)
13785 }
13786
13787 // GetInt64ID .
13788 func (o *SwitchInfo) GetInt64ID() int64 {
13789 return accessor.GetInt64ID(o)
13790 }
13791
13792 // GetName returns value of Name
13793 func (o *SwitchInfo) GetName() string {
13794 return o.Name
13795 }
13796
13797 // SetName sets value to Name
13798 func (o *SwitchInfo) SetName(v string) {
13799 o.Name = v
13800 }
13801
13802 // GetDescription returns value of Description
13803 func (o *SwitchInfo) GetDescription() string {
13804 return o.Description
13805 }
13806
13807 // SetDescription sets value to Description
13808 func (o *SwitchInfo) SetDescription(v string) {
13809 o.Description = v
13810 }
13811
13812 // GetTags returns value of Tags
13813 func (o *SwitchInfo) GetTags() types.Tags {
13814 return o.Tags
13815 }
13816
13817 // SetTags sets value to Tags
13818 func (o *SwitchInfo) SetTags(v types.Tags) {
13819 o.Tags = v
13820 }
13821
13822 // HasTag 指定のタグが存在する場合trueを返す
13823 func (o *SwitchInfo) HasTag(tag string) bool {
13824 return accessor.HasTag(o, tag)
13825 }
13826
13827 // AppendTag 指定のタグを追加
13828 func (o *SwitchInfo) AppendTag(tag string) {
13829 accessor.AppendTag(o, tag)
13830 }
13831
13832 // RemoveTag 指定のタグを削除
13833 func (o *SwitchInfo) RemoveTag(tag string) {
13834 accessor.RemoveTag(o, tag)
13835 }
13836
13837 // ClearTags タグを全クリア
13838 func (o *SwitchInfo) ClearTags() {
13839 accessor.ClearTags(o)
13840 }
13841
13842 // GetScope returns value of Scope
13843 func (o *SwitchInfo) GetScope() types.EScope {
13844 return o.Scope
13845 }
13846
13847 // SetScope sets value to Scope
13848 func (o *SwitchInfo) SetScope(v types.EScope) {
13849 o.Scope = v
13850 }
13851
13852 // GetSubnets returns value of Subnets
13853 func (o *SwitchInfo) GetSubnets() []*InternetSubnet {
13854 return o.Subnets
13855 }
13856
13857 // SetSubnets sets value to Subnets
13858 func (o *SwitchInfo) SetSubnets(v []*InternetSubnet) {
13859 o.Subnets = v
13860 }
13861
13862 // GetIPv6Nets returns value of IPv6Nets
13863 func (o *SwitchInfo) GetIPv6Nets() []*IPv6NetInfo {
13864 return o.IPv6Nets
13865 }
13866
13867 // SetIPv6Nets sets value to IPv6Nets
13868 func (o *SwitchInfo) SetIPv6Nets(v []*IPv6NetInfo) {
13869 o.IPv6Nets = v
13870 }
13871
13872 /*************************************************
13873 * InternetSubnet
13874 *************************************************/
13875
13876 // InternetSubnet represents API parameter/response structure
13877 type InternetSubnet struct {
13878 ID types.ID
13879 DefaultRoute string
13880 NextHop string
13881 StaticRoute string
13882 NetworkAddress string
13883 NetworkMaskLen int
13884 }
13885
13886 // setDefaults implements iaas.argumentDefaulter
13887 func (o *InternetSubnet) setDefaults() interface{} {
13888 return &struct {
13889 ID types.ID
13890 DefaultRoute string
13891 NextHop string
13892 StaticRoute string
13893 NetworkAddress string
13894 NetworkMaskLen int
13895 }{
13896 ID: o.GetID(),
13897 DefaultRoute: o.GetDefaultRoute(),
13898 NextHop: o.GetNextHop(),
13899 StaticRoute: o.GetStaticRoute(),
13900 NetworkAddress: o.GetNetworkAddress(),
13901 NetworkMaskLen: o.GetNetworkMaskLen(),
13902 }
13903 }
13904
13905 // GetID returns value of ID
13906 func (o *InternetSubnet) GetID() types.ID {
13907 return o.ID
13908 }
13909
13910 // SetID sets value to ID
13911 func (o *InternetSubnet) SetID(v types.ID) {
13912 o.ID = v
13913 }
13914
13915 // SetStringID .
13916 func (o *InternetSubnet) SetStringID(id string) {
13917 accessor.SetStringID(o, id)
13918 }
13919
13920 // GetStringID .
13921 func (o *InternetSubnet) GetStringID() string {
13922 return accessor.GetStringID(o)
13923 }
13924
13925 // SetInt64ID .
13926 func (o *InternetSubnet) SetInt64ID(id int64) {
13927 accessor.SetInt64ID(o, id)
13928 }
13929
13930 // GetInt64ID .
13931 func (o *InternetSubnet) GetInt64ID() int64 {
13932 return accessor.GetInt64ID(o)
13933 }
13934
13935 // GetDefaultRoute returns value of DefaultRoute
13936 func (o *InternetSubnet) GetDefaultRoute() string {
13937 return o.DefaultRoute
13938 }
13939
13940 // SetDefaultRoute sets value to DefaultRoute
13941 func (o *InternetSubnet) SetDefaultRoute(v string) {
13942 o.DefaultRoute = v
13943 }
13944
13945 // GetNextHop returns value of NextHop
13946 func (o *InternetSubnet) GetNextHop() string {
13947 return o.NextHop
13948 }
13949
13950 // SetNextHop sets value to NextHop
13951 func (o *InternetSubnet) SetNextHop(v string) {
13952 o.NextHop = v
13953 }
13954
13955 // GetStaticRoute returns value of StaticRoute
13956 func (o *InternetSubnet) GetStaticRoute() string {
13957 return o.StaticRoute
13958 }
13959
13960 // SetStaticRoute sets value to StaticRoute
13961 func (o *InternetSubnet) SetStaticRoute(v string) {
13962 o.StaticRoute = v
13963 }
13964
13965 // GetNetworkAddress returns value of NetworkAddress
13966 func (o *InternetSubnet) GetNetworkAddress() string {
13967 return o.NetworkAddress
13968 }
13969
13970 // SetNetworkAddress sets value to NetworkAddress
13971 func (o *InternetSubnet) SetNetworkAddress(v string) {
13972 o.NetworkAddress = v
13973 }
13974
13975 // GetNetworkMaskLen returns value of NetworkMaskLen
13976 func (o *InternetSubnet) GetNetworkMaskLen() int {
13977 return o.NetworkMaskLen
13978 }
13979
13980 // SetNetworkMaskLen sets value to NetworkMaskLen
13981 func (o *InternetSubnet) SetNetworkMaskLen(v int) {
13982 o.NetworkMaskLen = v
13983 }
13984
13985 /*************************************************
13986 * IPv6NetInfo
13987 *************************************************/
13988
13989 // IPv6NetInfo represents API parameter/response structure
13990 type IPv6NetInfo struct {
13991 ID types.ID
13992 IPv6Prefix string
13993 IPv6PrefixLen int
13994 }
13995
13996 // setDefaults implements iaas.argumentDefaulter
13997 func (o *IPv6NetInfo) setDefaults() interface{} {
13998 return &struct {
13999 ID types.ID
14000 IPv6Prefix string
14001 IPv6PrefixLen int
14002 }{
14003 ID: o.GetID(),
14004 IPv6Prefix: o.GetIPv6Prefix(),
14005 IPv6PrefixLen: o.GetIPv6PrefixLen(),
14006 }
14007 }
14008
14009 // GetID returns value of ID
14010 func (o *IPv6NetInfo) GetID() types.ID {
14011 return o.ID
14012 }
14013
14014 // SetID sets value to ID
14015 func (o *IPv6NetInfo) SetID(v types.ID) {
14016 o.ID = v
14017 }
14018
14019 // SetStringID .
14020 func (o *IPv6NetInfo) SetStringID(id string) {
14021 accessor.SetStringID(o, id)
14022 }
14023
14024 // GetStringID .
14025 func (o *IPv6NetInfo) GetStringID() string {
14026 return accessor.GetStringID(o)
14027 }
14028
14029 // SetInt64ID .
14030 func (o *IPv6NetInfo) SetInt64ID(id int64) {
14031 accessor.SetInt64ID(o, id)
14032 }
14033
14034 // GetInt64ID .
14035 func (o *IPv6NetInfo) GetInt64ID() int64 {
14036 return accessor.GetInt64ID(o)
14037 }
14038
14039 // GetIPv6Prefix returns value of IPv6Prefix
14040 func (o *IPv6NetInfo) GetIPv6Prefix() string {
14041 return o.IPv6Prefix
14042 }
14043
14044 // SetIPv6Prefix sets value to IPv6Prefix
14045 func (o *IPv6NetInfo) SetIPv6Prefix(v string) {
14046 o.IPv6Prefix = v
14047 }
14048
14049 // GetIPv6PrefixLen returns value of IPv6PrefixLen
14050 func (o *IPv6NetInfo) GetIPv6PrefixLen() int {
14051 return o.IPv6PrefixLen
14052 }
14053
14054 // SetIPv6PrefixLen sets value to IPv6PrefixLen
14055 func (o *IPv6NetInfo) SetIPv6PrefixLen(v int) {
14056 o.IPv6PrefixLen = v
14057 }
14058
14059 /*************************************************
14060 * InternetCreateRequest
14061 *************************************************/
14062
14063 // InternetCreateRequest represents API parameter/response structure
14064 type InternetCreateRequest struct {
14065 Name string
14066 Description string
14067 Tags types.Tags
14068 IconID types.ID `mapconv:"Icon.ID"`
14069 NetworkMaskLen int
14070 BandWidthMbps int
14071 }
14072
14073 // setDefaults implements iaas.argumentDefaulter
14074 func (o *InternetCreateRequest) setDefaults() interface{} {
14075 return &struct {
14076 Name string
14077 Description string
14078 Tags types.Tags
14079 IconID types.ID `mapconv:"Icon.ID"`
14080 NetworkMaskLen int
14081 BandWidthMbps int
14082 }{
14083 Name: o.GetName(),
14084 Description: o.GetDescription(),
14085 Tags: o.GetTags(),
14086 IconID: o.GetIconID(),
14087 NetworkMaskLen: o.GetNetworkMaskLen(),
14088 BandWidthMbps: o.GetBandWidthMbps(),
14089 }
14090 }
14091
14092 // GetName returns value of Name
14093 func (o *InternetCreateRequest) GetName() string {
14094 return o.Name
14095 }
14096
14097 // SetName sets value to Name
14098 func (o *InternetCreateRequest) SetName(v string) {
14099 o.Name = v
14100 }
14101
14102 // GetDescription returns value of Description
14103 func (o *InternetCreateRequest) GetDescription() string {
14104 return o.Description
14105 }
14106
14107 // SetDescription sets value to Description
14108 func (o *InternetCreateRequest) SetDescription(v string) {
14109 o.Description = v
14110 }
14111
14112 // GetTags returns value of Tags
14113 func (o *InternetCreateRequest) GetTags() types.Tags {
14114 return o.Tags
14115 }
14116
14117 // SetTags sets value to Tags
14118 func (o *InternetCreateRequest) SetTags(v types.Tags) {
14119 o.Tags = v
14120 }
14121
14122 // HasTag 指定のタグが存在する場合trueを返す
14123 func (o *InternetCreateRequest) HasTag(tag string) bool {
14124 return accessor.HasTag(o, tag)
14125 }
14126
14127 // AppendTag 指定のタグを追加
14128 func (o *InternetCreateRequest) AppendTag(tag string) {
14129 accessor.AppendTag(o, tag)
14130 }
14131
14132 // RemoveTag 指定のタグを削除
14133 func (o *InternetCreateRequest) RemoveTag(tag string) {
14134 accessor.RemoveTag(o, tag)
14135 }
14136
14137 // ClearTags タグを全クリア
14138 func (o *InternetCreateRequest) ClearTags() {
14139 accessor.ClearTags(o)
14140 }
14141
14142 // GetIconID returns value of IconID
14143 func (o *InternetCreateRequest) GetIconID() types.ID {
14144 return o.IconID
14145 }
14146
14147 // SetIconID sets value to IconID
14148 func (o *InternetCreateRequest) SetIconID(v types.ID) {
14149 o.IconID = v
14150 }
14151
14152 // GetNetworkMaskLen returns value of NetworkMaskLen
14153 func (o *InternetCreateRequest) GetNetworkMaskLen() int {
14154 return o.NetworkMaskLen
14155 }
14156
14157 // SetNetworkMaskLen sets value to NetworkMaskLen
14158 func (o *InternetCreateRequest) SetNetworkMaskLen(v int) {
14159 o.NetworkMaskLen = v
14160 }
14161
14162 // GetBandWidthMbps returns value of BandWidthMbps
14163 func (o *InternetCreateRequest) GetBandWidthMbps() int {
14164 return o.BandWidthMbps
14165 }
14166
14167 // SetBandWidthMbps sets value to BandWidthMbps
14168 func (o *InternetCreateRequest) SetBandWidthMbps(v int) {
14169 o.BandWidthMbps = v
14170 }
14171
14172 /*************************************************
14173 * InternetUpdateRequest
14174 *************************************************/
14175
14176 // InternetUpdateRequest represents API parameter/response structure
14177 type InternetUpdateRequest struct {
14178 Name string
14179 Description string
14180 Tags types.Tags
14181 IconID types.ID `mapconv:"Icon.ID"`
14182 }
14183
14184 // setDefaults implements iaas.argumentDefaulter
14185 func (o *InternetUpdateRequest) setDefaults() interface{} {
14186 return &struct {
14187 Name string
14188 Description string
14189 Tags types.Tags
14190 IconID types.ID `mapconv:"Icon.ID"`
14191 }{
14192 Name: o.GetName(),
14193 Description: o.GetDescription(),
14194 Tags: o.GetTags(),
14195 IconID: o.GetIconID(),
14196 }
14197 }
14198
14199 // GetName returns value of Name
14200 func (o *InternetUpdateRequest) GetName() string {
14201 return o.Name
14202 }
14203
14204 // SetName sets value to Name
14205 func (o *InternetUpdateRequest) SetName(v string) {
14206 o.Name = v
14207 }
14208
14209 // GetDescription returns value of Description
14210 func (o *InternetUpdateRequest) GetDescription() string {
14211 return o.Description
14212 }
14213
14214 // SetDescription sets value to Description
14215 func (o *InternetUpdateRequest) SetDescription(v string) {
14216 o.Description = v
14217 }
14218
14219 // GetTags returns value of Tags
14220 func (o *InternetUpdateRequest) GetTags() types.Tags {
14221 return o.Tags
14222 }
14223
14224 // SetTags sets value to Tags
14225 func (o *InternetUpdateRequest) SetTags(v types.Tags) {
14226 o.Tags = v
14227 }
14228
14229 // HasTag 指定のタグが存在する場合trueを返す
14230 func (o *InternetUpdateRequest) HasTag(tag string) bool {
14231 return accessor.HasTag(o, tag)
14232 }
14233
14234 // AppendTag 指定のタグを追加
14235 func (o *InternetUpdateRequest) AppendTag(tag string) {
14236 accessor.AppendTag(o, tag)
14237 }
14238
14239 // RemoveTag 指定のタグを削除
14240 func (o *InternetUpdateRequest) RemoveTag(tag string) {
14241 accessor.RemoveTag(o, tag)
14242 }
14243
14244 // ClearTags タグを全クリア
14245 func (o *InternetUpdateRequest) ClearTags() {
14246 accessor.ClearTags(o)
14247 }
14248
14249 // GetIconID returns value of IconID
14250 func (o *InternetUpdateRequest) GetIconID() types.ID {
14251 return o.IconID
14252 }
14253
14254 // SetIconID sets value to IconID
14255 func (o *InternetUpdateRequest) SetIconID(v types.ID) {
14256 o.IconID = v
14257 }
14258
14259 /*************************************************
14260 * InternetUpdateBandWidthRequest
14261 *************************************************/
14262
14263 // InternetUpdateBandWidthRequest represents API parameter/response structure
14264 type InternetUpdateBandWidthRequest struct {
14265 BandWidthMbps int
14266 }
14267
14268 // setDefaults implements iaas.argumentDefaulter
14269 func (o *InternetUpdateBandWidthRequest) setDefaults() interface{} {
14270 return &struct {
14271 BandWidthMbps int
14272 }{
14273 BandWidthMbps: o.GetBandWidthMbps(),
14274 }
14275 }
14276
14277 // GetBandWidthMbps returns value of BandWidthMbps
14278 func (o *InternetUpdateBandWidthRequest) GetBandWidthMbps() int {
14279 return o.BandWidthMbps
14280 }
14281
14282 // SetBandWidthMbps sets value to BandWidthMbps
14283 func (o *InternetUpdateBandWidthRequest) SetBandWidthMbps(v int) {
14284 o.BandWidthMbps = v
14285 }
14286
14287 /*************************************************
14288 * InternetSubnetOperationResult
14289 *************************************************/
14290
14291 // InternetSubnetOperationResult represents API parameter/response structure
14292 type InternetSubnetOperationResult struct {
14293 ID types.ID
14294 DefaultRoute string
14295 NextHop string
14296 StaticRoute string
14297 NetworkAddress string
14298 NetworkMaskLen int
14299 IPAddresses []string `mapconv:"[]IPAddresses.IPAddress"`
14300 }
14301
14302 // setDefaults implements iaas.argumentDefaulter
14303 func (o *InternetSubnetOperationResult) setDefaults() interface{} {
14304 return &struct {
14305 ID types.ID
14306 DefaultRoute string
14307 NextHop string
14308 StaticRoute string
14309 NetworkAddress string
14310 NetworkMaskLen int
14311 IPAddresses []string `mapconv:"[]IPAddresses.IPAddress"`
14312 }{
14313 ID: o.GetID(),
14314 DefaultRoute: o.GetDefaultRoute(),
14315 NextHop: o.GetNextHop(),
14316 StaticRoute: o.GetStaticRoute(),
14317 NetworkAddress: o.GetNetworkAddress(),
14318 NetworkMaskLen: o.GetNetworkMaskLen(),
14319 IPAddresses: o.GetIPAddresses(),
14320 }
14321 }
14322
14323 // GetID returns value of ID
14324 func (o *InternetSubnetOperationResult) GetID() types.ID {
14325 return o.ID
14326 }
14327
14328 // SetID sets value to ID
14329 func (o *InternetSubnetOperationResult) SetID(v types.ID) {
14330 o.ID = v
14331 }
14332
14333 // SetStringID .
14334 func (o *InternetSubnetOperationResult) SetStringID(id string) {
14335 accessor.SetStringID(o, id)
14336 }
14337
14338 // GetStringID .
14339 func (o *InternetSubnetOperationResult) GetStringID() string {
14340 return accessor.GetStringID(o)
14341 }
14342
14343 // SetInt64ID .
14344 func (o *InternetSubnetOperationResult) SetInt64ID(id int64) {
14345 accessor.SetInt64ID(o, id)
14346 }
14347
14348 // GetInt64ID .
14349 func (o *InternetSubnetOperationResult) GetInt64ID() int64 {
14350 return accessor.GetInt64ID(o)
14351 }
14352
14353 // GetDefaultRoute returns value of DefaultRoute
14354 func (o *InternetSubnetOperationResult) GetDefaultRoute() string {
14355 return o.DefaultRoute
14356 }
14357
14358 // SetDefaultRoute sets value to DefaultRoute
14359 func (o *InternetSubnetOperationResult) SetDefaultRoute(v string) {
14360 o.DefaultRoute = v
14361 }
14362
14363 // GetNextHop returns value of NextHop
14364 func (o *InternetSubnetOperationResult) GetNextHop() string {
14365 return o.NextHop
14366 }
14367
14368 // SetNextHop sets value to NextHop
14369 func (o *InternetSubnetOperationResult) SetNextHop(v string) {
14370 o.NextHop = v
14371 }
14372
14373 // GetStaticRoute returns value of StaticRoute
14374 func (o *InternetSubnetOperationResult) GetStaticRoute() string {
14375 return o.StaticRoute
14376 }
14377
14378 // SetStaticRoute sets value to StaticRoute
14379 func (o *InternetSubnetOperationResult) SetStaticRoute(v string) {
14380 o.StaticRoute = v
14381 }
14382
14383 // GetNetworkAddress returns value of NetworkAddress
14384 func (o *InternetSubnetOperationResult) GetNetworkAddress() string {
14385 return o.NetworkAddress
14386 }
14387
14388 // SetNetworkAddress sets value to NetworkAddress
14389 func (o *InternetSubnetOperationResult) SetNetworkAddress(v string) {
14390 o.NetworkAddress = v
14391 }
14392
14393 // GetNetworkMaskLen returns value of NetworkMaskLen
14394 func (o *InternetSubnetOperationResult) GetNetworkMaskLen() int {
14395 return o.NetworkMaskLen
14396 }
14397
14398 // SetNetworkMaskLen sets value to NetworkMaskLen
14399 func (o *InternetSubnetOperationResult) SetNetworkMaskLen(v int) {
14400 o.NetworkMaskLen = v
14401 }
14402
14403 // GetIPAddresses returns value of IPAddresses
14404 func (o *InternetSubnetOperationResult) GetIPAddresses() []string {
14405 return o.IPAddresses
14406 }
14407
14408 // SetIPAddresses sets value to IPAddresses
14409 func (o *InternetSubnetOperationResult) SetIPAddresses(v []string) {
14410 o.IPAddresses = v
14411 }
14412
14413 /*************************************************
14414 * InternetAddSubnetRequest
14415 *************************************************/
14416
14417 // InternetAddSubnetRequest represents API parameter/response structure
14418 type InternetAddSubnetRequest struct {
14419 NetworkMaskLen int
14420 NextHop string
14421 }
14422
14423 // setDefaults implements iaas.argumentDefaulter
14424 func (o *InternetAddSubnetRequest) setDefaults() interface{} {
14425 return &struct {
14426 NetworkMaskLen int
14427 NextHop string
14428 }{
14429 NetworkMaskLen: o.GetNetworkMaskLen(),
14430 NextHop: o.GetNextHop(),
14431 }
14432 }
14433
14434 // GetNetworkMaskLen returns value of NetworkMaskLen
14435 func (o *InternetAddSubnetRequest) GetNetworkMaskLen() int {
14436 return o.NetworkMaskLen
14437 }
14438
14439 // SetNetworkMaskLen sets value to NetworkMaskLen
14440 func (o *InternetAddSubnetRequest) SetNetworkMaskLen(v int) {
14441 o.NetworkMaskLen = v
14442 }
14443
14444 // GetNextHop returns value of NextHop
14445 func (o *InternetAddSubnetRequest) GetNextHop() string {
14446 return o.NextHop
14447 }
14448
14449 // SetNextHop sets value to NextHop
14450 func (o *InternetAddSubnetRequest) SetNextHop(v string) {
14451 o.NextHop = v
14452 }
14453
14454 /*************************************************
14455 * InternetUpdateSubnetRequest
14456 *************************************************/
14457
14458 // InternetUpdateSubnetRequest represents API parameter/response structure
14459 type InternetUpdateSubnetRequest struct {
14460 NextHop string
14461 }
14462
14463 // setDefaults implements iaas.argumentDefaulter
14464 func (o *InternetUpdateSubnetRequest) setDefaults() interface{} {
14465 return &struct {
14466 NextHop string
14467 }{
14468 NextHop: o.GetNextHop(),
14469 }
14470 }
14471
14472 // GetNextHop returns value of NextHop
14473 func (o *InternetUpdateSubnetRequest) GetNextHop() string {
14474 return o.NextHop
14475 }
14476
14477 // SetNextHop sets value to NextHop
14478 func (o *InternetUpdateSubnetRequest) SetNextHop(v string) {
14479 o.NextHop = v
14480 }
14481
14482 /*************************************************
14483 * RouterActivity
14484 *************************************************/
14485
14486 // RouterActivity represents API parameter/response structure
14487 type RouterActivity struct {
14488 Values []*MonitorRouterValue `mapconv:"[]Router"`
14489 }
14490
14491 // setDefaults implements iaas.argumentDefaulter
14492 func (o *RouterActivity) setDefaults() interface{} {
14493 return &struct {
14494 Values []*MonitorRouterValue `mapconv:"[]Router"`
14495 }{
14496 Values: o.GetValues(),
14497 }
14498 }
14499
14500 // GetValues returns value of Values
14501 func (o *RouterActivity) GetValues() []*MonitorRouterValue {
14502 return o.Values
14503 }
14504
14505 // SetValues sets value to Values
14506 func (o *RouterActivity) SetValues(v []*MonitorRouterValue) {
14507 o.Values = v
14508 }
14509
14510 /*************************************************
14511 * MonitorRouterValue
14512 *************************************************/
14513
14514 // MonitorRouterValue represents API parameter/response structure
14515 type MonitorRouterValue struct {
14516 Time time.Time `mapconv:",omitempty"`
14517 In float64 `mapconv:",omitempty"`
14518 Out float64 `mapconv:",omitempty"`
14519 }
14520
14521 // setDefaults implements iaas.argumentDefaulter
14522 func (o *MonitorRouterValue) setDefaults() interface{} {
14523 return &struct {
14524 Time time.Time `mapconv:",omitempty"`
14525 In float64 `mapconv:",omitempty"`
14526 Out float64 `mapconv:",omitempty"`
14527 }{
14528 Time: o.GetTime(),
14529 In: o.GetIn(),
14530 Out: o.GetOut(),
14531 }
14532 }
14533
14534 // GetTime returns value of Time
14535 func (o *MonitorRouterValue) GetTime() time.Time {
14536 return o.Time
14537 }
14538
14539 // SetTime sets value to Time
14540 func (o *MonitorRouterValue) SetTime(v time.Time) {
14541 o.Time = v
14542 }
14543
14544 // GetIn returns value of In
14545 func (o *MonitorRouterValue) GetIn() float64 {
14546 return o.In
14547 }
14548
14549 // SetIn sets value to In
14550 func (o *MonitorRouterValue) SetIn(v float64) {
14551 o.In = v
14552 }
14553
14554 // GetOut returns value of Out
14555 func (o *MonitorRouterValue) GetOut() float64 {
14556 return o.Out
14557 }
14558
14559 // SetOut sets value to Out
14560 func (o *MonitorRouterValue) SetOut(v float64) {
14561 o.Out = v
14562 }
14563
14564 /*************************************************
14565 * InternetPlan
14566 *************************************************/
14567
14568 // InternetPlan represents API parameter/response structure
14569 type InternetPlan struct {
14570 ID types.ID
14571 Name string
14572 BandWidthMbps int
14573 Availability types.EAvailability
14574 }
14575
14576 // setDefaults implements iaas.argumentDefaulter
14577 func (o *InternetPlan) setDefaults() interface{} {
14578 return &struct {
14579 ID types.ID
14580 Name string
14581 BandWidthMbps int
14582 Availability types.EAvailability
14583 }{
14584 ID: o.GetID(),
14585 Name: o.GetName(),
14586 BandWidthMbps: o.GetBandWidthMbps(),
14587 Availability: o.GetAvailability(),
14588 }
14589 }
14590
14591 // GetID returns value of ID
14592 func (o *InternetPlan) GetID() types.ID {
14593 return o.ID
14594 }
14595
14596 // SetID sets value to ID
14597 func (o *InternetPlan) SetID(v types.ID) {
14598 o.ID = v
14599 }
14600
14601 // SetStringID .
14602 func (o *InternetPlan) SetStringID(id string) {
14603 accessor.SetStringID(o, id)
14604 }
14605
14606 // GetStringID .
14607 func (o *InternetPlan) GetStringID() string {
14608 return accessor.GetStringID(o)
14609 }
14610
14611 // SetInt64ID .
14612 func (o *InternetPlan) SetInt64ID(id int64) {
14613 accessor.SetInt64ID(o, id)
14614 }
14615
14616 // GetInt64ID .
14617 func (o *InternetPlan) GetInt64ID() int64 {
14618 return accessor.GetInt64ID(o)
14619 }
14620
14621 // GetName returns value of Name
14622 func (o *InternetPlan) GetName() string {
14623 return o.Name
14624 }
14625
14626 // SetName sets value to Name
14627 func (o *InternetPlan) SetName(v string) {
14628 o.Name = v
14629 }
14630
14631 // GetBandWidthMbps returns value of BandWidthMbps
14632 func (o *InternetPlan) GetBandWidthMbps() int {
14633 return o.BandWidthMbps
14634 }
14635
14636 // SetBandWidthMbps sets value to BandWidthMbps
14637 func (o *InternetPlan) SetBandWidthMbps(v int) {
14638 o.BandWidthMbps = v
14639 }
14640
14641 // GetAvailability returns value of Availability
14642 func (o *InternetPlan) GetAvailability() types.EAvailability {
14643 return o.Availability
14644 }
14645
14646 // SetAvailability sets value to Availability
14647 func (o *InternetPlan) SetAvailability(v types.EAvailability) {
14648 o.Availability = v
14649 }
14650
14651 /*************************************************
14652 * IPAddress
14653 *************************************************/
14654
14655 // IPAddress represents API parameter/response structure
14656 type IPAddress struct {
14657 HostName string
14658 IPAddress string
14659 InterfaceID types.ID `mapconv:"Interface.ID,omitempty"`
14660 SubnetID types.ID `mapconv:"Subnet.ID,omitempty"`
14661 }
14662
14663 // setDefaults implements iaas.argumentDefaulter
14664 func (o *IPAddress) setDefaults() interface{} {
14665 return &struct {
14666 HostName string
14667 IPAddress string
14668 InterfaceID types.ID `mapconv:"Interface.ID,omitempty"`
14669 SubnetID types.ID `mapconv:"Subnet.ID,omitempty"`
14670 }{
14671 HostName: o.GetHostName(),
14672 IPAddress: o.GetIPAddress(),
14673 InterfaceID: o.GetInterfaceID(),
14674 SubnetID: o.GetSubnetID(),
14675 }
14676 }
14677
14678 // GetHostName returns value of HostName
14679 func (o *IPAddress) GetHostName() string {
14680 return o.HostName
14681 }
14682
14683 // SetHostName sets value to HostName
14684 func (o *IPAddress) SetHostName(v string) {
14685 o.HostName = v
14686 }
14687
14688 // GetIPAddress returns value of IPAddress
14689 func (o *IPAddress) GetIPAddress() string {
14690 return o.IPAddress
14691 }
14692
14693 // SetIPAddress sets value to IPAddress
14694 func (o *IPAddress) SetIPAddress(v string) {
14695 o.IPAddress = v
14696 }
14697
14698 // GetInterfaceID returns value of InterfaceID
14699 func (o *IPAddress) GetInterfaceID() types.ID {
14700 return o.InterfaceID
14701 }
14702
14703 // SetInterfaceID sets value to InterfaceID
14704 func (o *IPAddress) SetInterfaceID(v types.ID) {
14705 o.InterfaceID = v
14706 }
14707
14708 // GetSubnetID returns value of SubnetID
14709 func (o *IPAddress) GetSubnetID() types.ID {
14710 return o.SubnetID
14711 }
14712
14713 // SetSubnetID sets value to SubnetID
14714 func (o *IPAddress) SetSubnetID(v types.ID) {
14715 o.SubnetID = v
14716 }
14717
14718 /*************************************************
14719 * IPv6Net
14720 *************************************************/
14721
14722 // IPv6Net represents API parameter/response structure
14723 type IPv6Net struct {
14724 ID types.ID
14725 ServiceID types.ID
14726 IPv6Prefix string
14727 IPv6PrefixLen int
14728 IPv6PrefixTail string
14729 ServiceClass string
14730 IPv6TableID types.ID `mapconv:"IPv6Table.ID"`
14731 NamedIPv6AddrCount int
14732 CreatedAt time.Time
14733 SwitchID types.ID `mapconv:"Switch.ID,omitempty"`
14734 }
14735
14736 // setDefaults implements iaas.argumentDefaulter
14737 func (o *IPv6Net) setDefaults() interface{} {
14738 return &struct {
14739 ID types.ID
14740 ServiceID types.ID
14741 IPv6Prefix string
14742 IPv6PrefixLen int
14743 IPv6PrefixTail string
14744 ServiceClass string
14745 IPv6TableID types.ID `mapconv:"IPv6Table.ID"`
14746 NamedIPv6AddrCount int
14747 CreatedAt time.Time
14748 SwitchID types.ID `mapconv:"Switch.ID,omitempty"`
14749 }{
14750 ID: o.GetID(),
14751 ServiceID: o.GetServiceID(),
14752 IPv6Prefix: o.GetIPv6Prefix(),
14753 IPv6PrefixLen: o.GetIPv6PrefixLen(),
14754 IPv6PrefixTail: o.GetIPv6PrefixTail(),
14755 ServiceClass: o.GetServiceClass(),
14756 IPv6TableID: o.GetIPv6TableID(),
14757 NamedIPv6AddrCount: o.GetNamedIPv6AddrCount(),
14758 CreatedAt: o.GetCreatedAt(),
14759 SwitchID: o.GetSwitchID(),
14760 }
14761 }
14762
14763 // GetID returns value of ID
14764 func (o *IPv6Net) GetID() types.ID {
14765 return o.ID
14766 }
14767
14768 // SetID sets value to ID
14769 func (o *IPv6Net) SetID(v types.ID) {
14770 o.ID = v
14771 }
14772
14773 // SetStringID .
14774 func (o *IPv6Net) SetStringID(id string) {
14775 accessor.SetStringID(o, id)
14776 }
14777
14778 // GetStringID .
14779 func (o *IPv6Net) GetStringID() string {
14780 return accessor.GetStringID(o)
14781 }
14782
14783 // SetInt64ID .
14784 func (o *IPv6Net) SetInt64ID(id int64) {
14785 accessor.SetInt64ID(o, id)
14786 }
14787
14788 // GetInt64ID .
14789 func (o *IPv6Net) GetInt64ID() int64 {
14790 return accessor.GetInt64ID(o)
14791 }
14792
14793 // GetServiceID returns value of ServiceID
14794 func (o *IPv6Net) GetServiceID() types.ID {
14795 return o.ServiceID
14796 }
14797
14798 // SetServiceID sets value to ServiceID
14799 func (o *IPv6Net) SetServiceID(v types.ID) {
14800 o.ServiceID = v
14801 }
14802
14803 // GetIPv6Prefix returns value of IPv6Prefix
14804 func (o *IPv6Net) GetIPv6Prefix() string {
14805 return o.IPv6Prefix
14806 }
14807
14808 // SetIPv6Prefix sets value to IPv6Prefix
14809 func (o *IPv6Net) SetIPv6Prefix(v string) {
14810 o.IPv6Prefix = v
14811 }
14812
14813 // GetIPv6PrefixLen returns value of IPv6PrefixLen
14814 func (o *IPv6Net) GetIPv6PrefixLen() int {
14815 return o.IPv6PrefixLen
14816 }
14817
14818 // SetIPv6PrefixLen sets value to IPv6PrefixLen
14819 func (o *IPv6Net) SetIPv6PrefixLen(v int) {
14820 o.IPv6PrefixLen = v
14821 }
14822
14823 // GetIPv6PrefixTail returns value of IPv6PrefixTail
14824 func (o *IPv6Net) GetIPv6PrefixTail() string {
14825 return o.IPv6PrefixTail
14826 }
14827
14828 // SetIPv6PrefixTail sets value to IPv6PrefixTail
14829 func (o *IPv6Net) SetIPv6PrefixTail(v string) {
14830 o.IPv6PrefixTail = v
14831 }
14832
14833 // GetServiceClass returns value of ServiceClass
14834 func (o *IPv6Net) GetServiceClass() string {
14835 return o.ServiceClass
14836 }
14837
14838 // SetServiceClass sets value to ServiceClass
14839 func (o *IPv6Net) SetServiceClass(v string) {
14840 o.ServiceClass = v
14841 }
14842
14843 // GetIPv6TableID returns value of IPv6TableID
14844 func (o *IPv6Net) GetIPv6TableID() types.ID {
14845 return o.IPv6TableID
14846 }
14847
14848 // SetIPv6TableID sets value to IPv6TableID
14849 func (o *IPv6Net) SetIPv6TableID(v types.ID) {
14850 o.IPv6TableID = v
14851 }
14852
14853 // GetNamedIPv6AddrCount returns value of NamedIPv6AddrCount
14854 func (o *IPv6Net) GetNamedIPv6AddrCount() int {
14855 return o.NamedIPv6AddrCount
14856 }
14857
14858 // SetNamedIPv6AddrCount sets value to NamedIPv6AddrCount
14859 func (o *IPv6Net) SetNamedIPv6AddrCount(v int) {
14860 o.NamedIPv6AddrCount = v
14861 }
14862
14863 // GetCreatedAt returns value of CreatedAt
14864 func (o *IPv6Net) GetCreatedAt() time.Time {
14865 return o.CreatedAt
14866 }
14867
14868 // SetCreatedAt sets value to CreatedAt
14869 func (o *IPv6Net) SetCreatedAt(v time.Time) {
14870 o.CreatedAt = v
14871 }
14872
14873 // GetSwitchID returns value of SwitchID
14874 func (o *IPv6Net) GetSwitchID() types.ID {
14875 return o.SwitchID
14876 }
14877
14878 // SetSwitchID sets value to SwitchID
14879 func (o *IPv6Net) SetSwitchID(v types.ID) {
14880 o.SwitchID = v
14881 }
14882
14883 /*************************************************
14884 * IPv6Addr
14885 *************************************************/
14886
14887 // IPv6Addr represents API parameter/response structure
14888 type IPv6Addr struct {
14889 IPv6Addr string
14890 HostName string
14891 IPv6NetID types.ID `mapconv:"IPv6Net.ID"`
14892 SwitchID types.ID `mapconv:"IPv6Net.Switch.ID"`
14893 InterfaceID types.ID `mapconv:"Interface.ID,omitempty"`
14894 }
14895
14896 // setDefaults implements iaas.argumentDefaulter
14897 func (o *IPv6Addr) setDefaults() interface{} {
14898 return &struct {
14899 IPv6Addr string
14900 HostName string
14901 IPv6NetID types.ID `mapconv:"IPv6Net.ID"`
14902 SwitchID types.ID `mapconv:"IPv6Net.Switch.ID"`
14903 InterfaceID types.ID `mapconv:"Interface.ID,omitempty"`
14904 }{
14905 IPv6Addr: o.GetIPv6Addr(),
14906 HostName: o.GetHostName(),
14907 IPv6NetID: o.GetIPv6NetID(),
14908 SwitchID: o.GetSwitchID(),
14909 InterfaceID: o.GetInterfaceID(),
14910 }
14911 }
14912
14913 // GetIPv6Addr returns value of IPv6Addr
14914 func (o *IPv6Addr) GetIPv6Addr() string {
14915 return o.IPv6Addr
14916 }
14917
14918 // SetIPv6Addr sets value to IPv6Addr
14919 func (o *IPv6Addr) SetIPv6Addr(v string) {
14920 o.IPv6Addr = v
14921 }
14922
14923 // GetHostName returns value of HostName
14924 func (o *IPv6Addr) GetHostName() string {
14925 return o.HostName
14926 }
14927
14928 // SetHostName sets value to HostName
14929 func (o *IPv6Addr) SetHostName(v string) {
14930 o.HostName = v
14931 }
14932
14933 // GetIPv6NetID returns value of IPv6NetID
14934 func (o *IPv6Addr) GetIPv6NetID() types.ID {
14935 return o.IPv6NetID
14936 }
14937
14938 // SetIPv6NetID sets value to IPv6NetID
14939 func (o *IPv6Addr) SetIPv6NetID(v types.ID) {
14940 o.IPv6NetID = v
14941 }
14942
14943 // GetSwitchID returns value of SwitchID
14944 func (o *IPv6Addr) GetSwitchID() types.ID {
14945 return o.SwitchID
14946 }
14947
14948 // SetSwitchID sets value to SwitchID
14949 func (o *IPv6Addr) SetSwitchID(v types.ID) {
14950 o.SwitchID = v
14951 }
14952
14953 // GetInterfaceID returns value of InterfaceID
14954 func (o *IPv6Addr) GetInterfaceID() types.ID {
14955 return o.InterfaceID
14956 }
14957
14958 // SetInterfaceID sets value to InterfaceID
14959 func (o *IPv6Addr) SetInterfaceID(v types.ID) {
14960 o.InterfaceID = v
14961 }
14962
14963 /*************************************************
14964 * IPv6AddrCreateRequest
14965 *************************************************/
14966
14967 // IPv6AddrCreateRequest represents API parameter/response structure
14968 type IPv6AddrCreateRequest struct {
14969 IPv6Addr string
14970 HostName string
14971 }
14972
14973 // setDefaults implements iaas.argumentDefaulter
14974 func (o *IPv6AddrCreateRequest) setDefaults() interface{} {
14975 return &struct {
14976 IPv6Addr string
14977 HostName string
14978 }{
14979 IPv6Addr: o.GetIPv6Addr(),
14980 HostName: o.GetHostName(),
14981 }
14982 }
14983
14984 // GetIPv6Addr returns value of IPv6Addr
14985 func (o *IPv6AddrCreateRequest) GetIPv6Addr() string {
14986 return o.IPv6Addr
14987 }
14988
14989 // SetIPv6Addr sets value to IPv6Addr
14990 func (o *IPv6AddrCreateRequest) SetIPv6Addr(v string) {
14991 o.IPv6Addr = v
14992 }
14993
14994 // GetHostName returns value of HostName
14995 func (o *IPv6AddrCreateRequest) GetHostName() string {
14996 return o.HostName
14997 }
14998
14999 // SetHostName sets value to HostName
15000 func (o *IPv6AddrCreateRequest) SetHostName(v string) {
15001 o.HostName = v
15002 }
15003
15004 /*************************************************
15005 * IPv6AddrUpdateRequest
15006 *************************************************/
15007
15008 // IPv6AddrUpdateRequest represents API parameter/response structure
15009 type IPv6AddrUpdateRequest struct {
15010 HostName string
15011 }
15012
15013 // setDefaults implements iaas.argumentDefaulter
15014 func (o *IPv6AddrUpdateRequest) setDefaults() interface{} {
15015 return &struct {
15016 HostName string
15017 }{
15018 HostName: o.GetHostName(),
15019 }
15020 }
15021
15022 // GetHostName returns value of HostName
15023 func (o *IPv6AddrUpdateRequest) GetHostName() string {
15024 return o.HostName
15025 }
15026
15027 // SetHostName sets value to HostName
15028 func (o *IPv6AddrUpdateRequest) SetHostName(v string) {
15029 o.HostName = v
15030 }
15031
15032 /*************************************************
15033 * License
15034 *************************************************/
15035
15036 // License represents API parameter/response structure
15037 type License struct {
15038 ID types.ID
15039 Name string
15040 LicenseInfoID types.ID `mapconv:"LicenseInfo.ID"`
15041 LicenseInfoName string `mapconv:"LicenseInfo.Name"`
15042 CreatedAt time.Time
15043 ModifiedAt time.Time
15044 }
15045
15046 // setDefaults implements iaas.argumentDefaulter
15047 func (o *License) setDefaults() interface{} {
15048 return &struct {
15049 ID types.ID
15050 Name string
15051 LicenseInfoID types.ID `mapconv:"LicenseInfo.ID"`
15052 LicenseInfoName string `mapconv:"LicenseInfo.Name"`
15053 CreatedAt time.Time
15054 ModifiedAt time.Time
15055 }{
15056 ID: o.GetID(),
15057 Name: o.GetName(),
15058 LicenseInfoID: o.GetLicenseInfoID(),
15059 LicenseInfoName: o.GetLicenseInfoName(),
15060 CreatedAt: o.GetCreatedAt(),
15061 ModifiedAt: o.GetModifiedAt(),
15062 }
15063 }
15064
15065 // GetID returns value of ID
15066 func (o *License) GetID() types.ID {
15067 return o.ID
15068 }
15069
15070 // SetID sets value to ID
15071 func (o *License) SetID(v types.ID) {
15072 o.ID = v
15073 }
15074
15075 // SetStringID .
15076 func (o *License) SetStringID(id string) {
15077 accessor.SetStringID(o, id)
15078 }
15079
15080 // GetStringID .
15081 func (o *License) GetStringID() string {
15082 return accessor.GetStringID(o)
15083 }
15084
15085 // SetInt64ID .
15086 func (o *License) SetInt64ID(id int64) {
15087 accessor.SetInt64ID(o, id)
15088 }
15089
15090 // GetInt64ID .
15091 func (o *License) GetInt64ID() int64 {
15092 return accessor.GetInt64ID(o)
15093 }
15094
15095 // GetName returns value of Name
15096 func (o *License) GetName() string {
15097 return o.Name
15098 }
15099
15100 // SetName sets value to Name
15101 func (o *License) SetName(v string) {
15102 o.Name = v
15103 }
15104
15105 // GetLicenseInfoID returns value of LicenseInfoID
15106 func (o *License) GetLicenseInfoID() types.ID {
15107 return o.LicenseInfoID
15108 }
15109
15110 // SetLicenseInfoID sets value to LicenseInfoID
15111 func (o *License) SetLicenseInfoID(v types.ID) {
15112 o.LicenseInfoID = v
15113 }
15114
15115 // GetLicenseInfoName returns value of LicenseInfoName
15116 func (o *License) GetLicenseInfoName() string {
15117 return o.LicenseInfoName
15118 }
15119
15120 // SetLicenseInfoName sets value to LicenseInfoName
15121 func (o *License) SetLicenseInfoName(v string) {
15122 o.LicenseInfoName = v
15123 }
15124
15125 // GetCreatedAt returns value of CreatedAt
15126 func (o *License) GetCreatedAt() time.Time {
15127 return o.CreatedAt
15128 }
15129
15130 // SetCreatedAt sets value to CreatedAt
15131 func (o *License) SetCreatedAt(v time.Time) {
15132 o.CreatedAt = v
15133 }
15134
15135 // GetModifiedAt returns value of ModifiedAt
15136 func (o *License) GetModifiedAt() time.Time {
15137 return o.ModifiedAt
15138 }
15139
15140 // SetModifiedAt sets value to ModifiedAt
15141 func (o *License) SetModifiedAt(v time.Time) {
15142 o.ModifiedAt = v
15143 }
15144
15145 /*************************************************
15146 * LicenseCreateRequest
15147 *************************************************/
15148
15149 // LicenseCreateRequest represents API parameter/response structure
15150 type LicenseCreateRequest struct {
15151 Name string
15152 LicenseInfoID types.ID `mapconv:"LicenseInfo.ID"`
15153 }
15154
15155 // setDefaults implements iaas.argumentDefaulter
15156 func (o *LicenseCreateRequest) setDefaults() interface{} {
15157 return &struct {
15158 Name string
15159 LicenseInfoID types.ID `mapconv:"LicenseInfo.ID"`
15160 }{
15161 Name: o.GetName(),
15162 LicenseInfoID: o.GetLicenseInfoID(),
15163 }
15164 }
15165
15166 // GetName returns value of Name
15167 func (o *LicenseCreateRequest) GetName() string {
15168 return o.Name
15169 }
15170
15171 // SetName sets value to Name
15172 func (o *LicenseCreateRequest) SetName(v string) {
15173 o.Name = v
15174 }
15175
15176 // GetLicenseInfoID returns value of LicenseInfoID
15177 func (o *LicenseCreateRequest) GetLicenseInfoID() types.ID {
15178 return o.LicenseInfoID
15179 }
15180
15181 // SetLicenseInfoID sets value to LicenseInfoID
15182 func (o *LicenseCreateRequest) SetLicenseInfoID(v types.ID) {
15183 o.LicenseInfoID = v
15184 }
15185
15186 /*************************************************
15187 * LicenseUpdateRequest
15188 *************************************************/
15189
15190 // LicenseUpdateRequest represents API parameter/response structure
15191 type LicenseUpdateRequest struct {
15192 Name string
15193 }
15194
15195 // setDefaults implements iaas.argumentDefaulter
15196 func (o *LicenseUpdateRequest) setDefaults() interface{} {
15197 return &struct {
15198 Name string
15199 }{
15200 Name: o.GetName(),
15201 }
15202 }
15203
15204 // GetName returns value of Name
15205 func (o *LicenseUpdateRequest) GetName() string {
15206 return o.Name
15207 }
15208
15209 // SetName sets value to Name
15210 func (o *LicenseUpdateRequest) SetName(v string) {
15211 o.Name = v
15212 }
15213
15214 /*************************************************
15215 * LicenseInfo
15216 *************************************************/
15217
15218 // LicenseInfo represents API parameter/response structure
15219 type LicenseInfo struct {
15220 ID types.ID
15221 Name string
15222 CreatedAt time.Time
15223 ModifiedAt time.Time
15224 TermsOfUse string
15225 }
15226
15227 // setDefaults implements iaas.argumentDefaulter
15228 func (o *LicenseInfo) setDefaults() interface{} {
15229 return &struct {
15230 ID types.ID
15231 Name string
15232 CreatedAt time.Time
15233 ModifiedAt time.Time
15234 TermsOfUse string
15235 }{
15236 ID: o.GetID(),
15237 Name: o.GetName(),
15238 CreatedAt: o.GetCreatedAt(),
15239 ModifiedAt: o.GetModifiedAt(),
15240 TermsOfUse: o.GetTermsOfUse(),
15241 }
15242 }
15243
15244 // GetID returns value of ID
15245 func (o *LicenseInfo) GetID() types.ID {
15246 return o.ID
15247 }
15248
15249 // SetID sets value to ID
15250 func (o *LicenseInfo) SetID(v types.ID) {
15251 o.ID = v
15252 }
15253
15254 // SetStringID .
15255 func (o *LicenseInfo) SetStringID(id string) {
15256 accessor.SetStringID(o, id)
15257 }
15258
15259 // GetStringID .
15260 func (o *LicenseInfo) GetStringID() string {
15261 return accessor.GetStringID(o)
15262 }
15263
15264 // SetInt64ID .
15265 func (o *LicenseInfo) SetInt64ID(id int64) {
15266 accessor.SetInt64ID(o, id)
15267 }
15268
15269 // GetInt64ID .
15270 func (o *LicenseInfo) GetInt64ID() int64 {
15271 return accessor.GetInt64ID(o)
15272 }
15273
15274 // GetName returns value of Name
15275 func (o *LicenseInfo) GetName() string {
15276 return o.Name
15277 }
15278
15279 // SetName sets value to Name
15280 func (o *LicenseInfo) SetName(v string) {
15281 o.Name = v
15282 }
15283
15284 // GetCreatedAt returns value of CreatedAt
15285 func (o *LicenseInfo) GetCreatedAt() time.Time {
15286 return o.CreatedAt
15287 }
15288
15289 // SetCreatedAt sets value to CreatedAt
15290 func (o *LicenseInfo) SetCreatedAt(v time.Time) {
15291 o.CreatedAt = v
15292 }
15293
15294 // GetModifiedAt returns value of ModifiedAt
15295 func (o *LicenseInfo) GetModifiedAt() time.Time {
15296 return o.ModifiedAt
15297 }
15298
15299 // SetModifiedAt sets value to ModifiedAt
15300 func (o *LicenseInfo) SetModifiedAt(v time.Time) {
15301 o.ModifiedAt = v
15302 }
15303
15304 // GetTermsOfUse returns value of TermsOfUse
15305 func (o *LicenseInfo) GetTermsOfUse() string {
15306 return o.TermsOfUse
15307 }
15308
15309 // SetTermsOfUse sets value to TermsOfUse
15310 func (o *LicenseInfo) SetTermsOfUse(v string) {
15311 o.TermsOfUse = v
15312 }
15313
15314 /*************************************************
15315 * LoadBalancer
15316 *************************************************/
15317
15318 // LoadBalancer represents API parameter/response structure
15319 type LoadBalancer struct {
15320 ID types.ID
15321 Name string
15322 Description string
15323 Tags types.Tags
15324 Availability types.EAvailability
15325 Class string
15326 IconID types.ID `mapconv:"Icon.ID"`
15327 CreatedAt time.Time
15328 ModifiedAt time.Time
15329 InstanceHostName string `mapconv:"Instance.Host.Name"`
15330 InstanceHostInfoURL string `mapconv:"Instance.Host.InfoURL"`
15331 InstanceStatus types.EServerInstanceStatus `mapconv:"Instance.Status"`
15332 InstanceStatusChangedAt time.Time `mapconv:"Instance.StatusChangedAt"`
15333 PlanID types.ID `mapconv:"Remark.Plan.ID/Plan.ID"`
15334 SwitchID types.ID `mapconv:"Remark.Switch.ID"`
15335 DefaultRoute string `mapconv:"Remark.Network.DefaultRoute"`
15336 NetworkMaskLen int `mapconv:"Remark.Network.NetworkMaskLen"`
15337 IPAddresses []string `mapconv:"Remark.[]Servers.IPAddress"`
15338 ZoneID types.ID `mapconv:"Remark.Zone.ID"`
15339 VRID int `mapconv:"Remark.VRRP.VRID"`
15340 VirtualIPAddresses LoadBalancerVirtualIPAddresses `mapconv:"Settings.[]LoadBalancer,recursive"`
15341 SettingsHash string `json:",omitempty" mapconv:",omitempty"`
15342 Interfaces []*InterfaceView `json:",omitempty" mapconv:"[]Interfaces,recursive,omitempty"`
15343 }
15344
15345 // setDefaults implements iaas.argumentDefaulter
15346 func (o *LoadBalancer) setDefaults() interface{} {
15347 return &struct {
15348 ID types.ID
15349 Name string
15350 Description string
15351 Tags types.Tags
15352 Availability types.EAvailability
15353 Class string
15354 IconID types.ID `mapconv:"Icon.ID"`
15355 CreatedAt time.Time
15356 ModifiedAt time.Time
15357 InstanceHostName string `mapconv:"Instance.Host.Name"`
15358 InstanceHostInfoURL string `mapconv:"Instance.Host.InfoURL"`
15359 InstanceStatus types.EServerInstanceStatus `mapconv:"Instance.Status"`
15360 InstanceStatusChangedAt time.Time `mapconv:"Instance.StatusChangedAt"`
15361 PlanID types.ID `mapconv:"Remark.Plan.ID/Plan.ID"`
15362 SwitchID types.ID `mapconv:"Remark.Switch.ID"`
15363 DefaultRoute string `mapconv:"Remark.Network.DefaultRoute"`
15364 NetworkMaskLen int `mapconv:"Remark.Network.NetworkMaskLen"`
15365 IPAddresses []string `mapconv:"Remark.[]Servers.IPAddress"`
15366 ZoneID types.ID `mapconv:"Remark.Zone.ID"`
15367 VRID int `mapconv:"Remark.VRRP.VRID"`
15368 VirtualIPAddresses LoadBalancerVirtualIPAddresses `mapconv:"Settings.[]LoadBalancer,recursive"`
15369 SettingsHash string `json:",omitempty" mapconv:",omitempty"`
15370 Interfaces []*InterfaceView `json:",omitempty" mapconv:"[]Interfaces,recursive,omitempty"`
15371 }{
15372 ID: o.GetID(),
15373 Name: o.GetName(),
15374 Description: o.GetDescription(),
15375 Tags: o.GetTags(),
15376 Availability: o.GetAvailability(),
15377 Class: o.GetClass(),
15378 IconID: o.GetIconID(),
15379 CreatedAt: o.GetCreatedAt(),
15380 ModifiedAt: o.GetModifiedAt(),
15381 InstanceHostName: o.GetInstanceHostName(),
15382 InstanceHostInfoURL: o.GetInstanceHostInfoURL(),
15383 InstanceStatus: o.GetInstanceStatus(),
15384 InstanceStatusChangedAt: o.GetInstanceStatusChangedAt(),
15385 PlanID: o.GetPlanID(),
15386 SwitchID: o.GetSwitchID(),
15387 DefaultRoute: o.GetDefaultRoute(),
15388 NetworkMaskLen: o.GetNetworkMaskLen(),
15389 IPAddresses: o.GetIPAddresses(),
15390 ZoneID: o.GetZoneID(),
15391 VRID: o.GetVRID(),
15392 VirtualIPAddresses: o.GetVirtualIPAddresses(),
15393 SettingsHash: o.GetSettingsHash(),
15394 Interfaces: o.GetInterfaces(),
15395 }
15396 }
15397
15398 // GetID returns value of ID
15399 func (o *LoadBalancer) GetID() types.ID {
15400 return o.ID
15401 }
15402
15403 // SetID sets value to ID
15404 func (o *LoadBalancer) SetID(v types.ID) {
15405 o.ID = v
15406 }
15407
15408 // SetStringID .
15409 func (o *LoadBalancer) SetStringID(id string) {
15410 accessor.SetStringID(o, id)
15411 }
15412
15413 // GetStringID .
15414 func (o *LoadBalancer) GetStringID() string {
15415 return accessor.GetStringID(o)
15416 }
15417
15418 // SetInt64ID .
15419 func (o *LoadBalancer) SetInt64ID(id int64) {
15420 accessor.SetInt64ID(o, id)
15421 }
15422
15423 // GetInt64ID .
15424 func (o *LoadBalancer) GetInt64ID() int64 {
15425 return accessor.GetInt64ID(o)
15426 }
15427
15428 // GetName returns value of Name
15429 func (o *LoadBalancer) GetName() string {
15430 return o.Name
15431 }
15432
15433 // SetName sets value to Name
15434 func (o *LoadBalancer) SetName(v string) {
15435 o.Name = v
15436 }
15437
15438 // GetDescription returns value of Description
15439 func (o *LoadBalancer) GetDescription() string {
15440 return o.Description
15441 }
15442
15443 // SetDescription sets value to Description
15444 func (o *LoadBalancer) SetDescription(v string) {
15445 o.Description = v
15446 }
15447
15448 // GetTags returns value of Tags
15449 func (o *LoadBalancer) GetTags() types.Tags {
15450 return o.Tags
15451 }
15452
15453 // SetTags sets value to Tags
15454 func (o *LoadBalancer) SetTags(v types.Tags) {
15455 o.Tags = v
15456 }
15457
15458 // HasTag 指定のタグが存在する場合trueを返す
15459 func (o *LoadBalancer) HasTag(tag string) bool {
15460 return accessor.HasTag(o, tag)
15461 }
15462
15463 // AppendTag 指定のタグを追加
15464 func (o *LoadBalancer) AppendTag(tag string) {
15465 accessor.AppendTag(o, tag)
15466 }
15467
15468 // RemoveTag 指定のタグを削除
15469 func (o *LoadBalancer) RemoveTag(tag string) {
15470 accessor.RemoveTag(o, tag)
15471 }
15472
15473 // ClearTags タグを全クリア
15474 func (o *LoadBalancer) ClearTags() {
15475 accessor.ClearTags(o)
15476 }
15477
15478 // GetAvailability returns value of Availability
15479 func (o *LoadBalancer) GetAvailability() types.EAvailability {
15480 return o.Availability
15481 }
15482
15483 // SetAvailability sets value to Availability
15484 func (o *LoadBalancer) SetAvailability(v types.EAvailability) {
15485 o.Availability = v
15486 }
15487
15488 // GetClass returns value of Class
15489 func (o *LoadBalancer) GetClass() string {
15490 return o.Class
15491 }
15492
15493 // SetClass sets value to Class
15494 func (o *LoadBalancer) SetClass(v string) {
15495 o.Class = v
15496 }
15497
15498 // GetIconID returns value of IconID
15499 func (o *LoadBalancer) GetIconID() types.ID {
15500 return o.IconID
15501 }
15502
15503 // SetIconID sets value to IconID
15504 func (o *LoadBalancer) SetIconID(v types.ID) {
15505 o.IconID = v
15506 }
15507
15508 // GetCreatedAt returns value of CreatedAt
15509 func (o *LoadBalancer) GetCreatedAt() time.Time {
15510 return o.CreatedAt
15511 }
15512
15513 // SetCreatedAt sets value to CreatedAt
15514 func (o *LoadBalancer) SetCreatedAt(v time.Time) {
15515 o.CreatedAt = v
15516 }
15517
15518 // GetModifiedAt returns value of ModifiedAt
15519 func (o *LoadBalancer) GetModifiedAt() time.Time {
15520 return o.ModifiedAt
15521 }
15522
15523 // SetModifiedAt sets value to ModifiedAt
15524 func (o *LoadBalancer) SetModifiedAt(v time.Time) {
15525 o.ModifiedAt = v
15526 }
15527
15528 // GetInstanceHostName returns value of InstanceHostName
15529 func (o *LoadBalancer) GetInstanceHostName() string {
15530 return o.InstanceHostName
15531 }
15532
15533 // SetInstanceHostName sets value to InstanceHostName
15534 func (o *LoadBalancer) SetInstanceHostName(v string) {
15535 o.InstanceHostName = v
15536 }
15537
15538 // GetInstanceHostInfoURL returns value of InstanceHostInfoURL
15539 func (o *LoadBalancer) GetInstanceHostInfoURL() string {
15540 return o.InstanceHostInfoURL
15541 }
15542
15543 // SetInstanceHostInfoURL sets value to InstanceHostInfoURL
15544 func (o *LoadBalancer) SetInstanceHostInfoURL(v string) {
15545 o.InstanceHostInfoURL = v
15546 }
15547
15548 // GetInstanceStatus returns value of InstanceStatus
15549 func (o *LoadBalancer) GetInstanceStatus() types.EServerInstanceStatus {
15550 return o.InstanceStatus
15551 }
15552
15553 // SetInstanceStatus sets value to InstanceStatus
15554 func (o *LoadBalancer) SetInstanceStatus(v types.EServerInstanceStatus) {
15555 o.InstanceStatus = v
15556 }
15557
15558 // GetInstanceStatusChangedAt returns value of InstanceStatusChangedAt
15559 func (o *LoadBalancer) GetInstanceStatusChangedAt() time.Time {
15560 return o.InstanceStatusChangedAt
15561 }
15562
15563 // SetInstanceStatusChangedAt sets value to InstanceStatusChangedAt
15564 func (o *LoadBalancer) SetInstanceStatusChangedAt(v time.Time) {
15565 o.InstanceStatusChangedAt = v
15566 }
15567
15568 // GetPlanID returns value of PlanID
15569 func (o *LoadBalancer) GetPlanID() types.ID {
15570 return o.PlanID
15571 }
15572
15573 // SetPlanID sets value to PlanID
15574 func (o *LoadBalancer) SetPlanID(v types.ID) {
15575 o.PlanID = v
15576 }
15577
15578 // GetSwitchID returns value of SwitchID
15579 func (o *LoadBalancer) GetSwitchID() types.ID {
15580 return o.SwitchID
15581 }
15582
15583 // SetSwitchID sets value to SwitchID
15584 func (o *LoadBalancer) SetSwitchID(v types.ID) {
15585 o.SwitchID = v
15586 }
15587
15588 // GetDefaultRoute returns value of DefaultRoute
15589 func (o *LoadBalancer) GetDefaultRoute() string {
15590 return o.DefaultRoute
15591 }
15592
15593 // SetDefaultRoute sets value to DefaultRoute
15594 func (o *LoadBalancer) SetDefaultRoute(v string) {
15595 o.DefaultRoute = v
15596 }
15597
15598 // GetNetworkMaskLen returns value of NetworkMaskLen
15599 func (o *LoadBalancer) GetNetworkMaskLen() int {
15600 return o.NetworkMaskLen
15601 }
15602
15603 // SetNetworkMaskLen sets value to NetworkMaskLen
15604 func (o *LoadBalancer) SetNetworkMaskLen(v int) {
15605 o.NetworkMaskLen = v
15606 }
15607
15608 // GetIPAddresses returns value of IPAddresses
15609 func (o *LoadBalancer) GetIPAddresses() []string {
15610 return o.IPAddresses
15611 }
15612
15613 // SetIPAddresses sets value to IPAddresses
15614 func (o *LoadBalancer) SetIPAddresses(v []string) {
15615 o.IPAddresses = v
15616 }
15617
15618 // GetZoneID returns value of ZoneID
15619 func (o *LoadBalancer) GetZoneID() types.ID {
15620 return o.ZoneID
15621 }
15622
15623 // SetZoneID sets value to ZoneID
15624 func (o *LoadBalancer) SetZoneID(v types.ID) {
15625 o.ZoneID = v
15626 }
15627
15628 // GetVRID returns value of VRID
15629 func (o *LoadBalancer) GetVRID() int {
15630 return o.VRID
15631 }
15632
15633 // SetVRID sets value to VRID
15634 func (o *LoadBalancer) SetVRID(v int) {
15635 o.VRID = v
15636 }
15637
15638 // GetVirtualIPAddresses returns value of VirtualIPAddresses
15639 func (o *LoadBalancer) GetVirtualIPAddresses() LoadBalancerVirtualIPAddresses {
15640 return o.VirtualIPAddresses
15641 }
15642
15643 // SetVirtualIPAddresses sets value to VirtualIPAddresses
15644 func (o *LoadBalancer) SetVirtualIPAddresses(v LoadBalancerVirtualIPAddresses) {
15645 o.VirtualIPAddresses = v
15646 }
15647
15648 // GetSettingsHash returns value of SettingsHash
15649 func (o *LoadBalancer) GetSettingsHash() string {
15650 return o.SettingsHash
15651 }
15652
15653 // SetSettingsHash sets value to SettingsHash
15654 func (o *LoadBalancer) SetSettingsHash(v string) {
15655 o.SettingsHash = v
15656 }
15657
15658 // GetInterfaces returns value of Interfaces
15659 func (o *LoadBalancer) GetInterfaces() []*InterfaceView {
15660 return o.Interfaces
15661 }
15662
15663 // SetInterfaces sets value to Interfaces
15664 func (o *LoadBalancer) SetInterfaces(v []*InterfaceView) {
15665 o.Interfaces = v
15666 }
15667
15668 /*************************************************
15669 * LoadBalancerVirtualIPAddress
15670 *************************************************/
15671
15672 // LoadBalancerVirtualIPAddress represents API parameter/response structure
15673 type LoadBalancerVirtualIPAddress struct {
15674 VirtualIPAddress string
15675 Port types.StringNumber
15676 DelayLoop types.StringNumber `mapconv:",default=10"`
15677 SorryServer string
15678 Description string
15679 Servers LoadBalancerServers `mapconv:"[]Servers,recursive"`
15680 }
15681
15682 // setDefaults implements iaas.argumentDefaulter
15683 func (o *LoadBalancerVirtualIPAddress) setDefaults() interface{} {
15684 return &struct {
15685 VirtualIPAddress string
15686 Port types.StringNumber
15687 DelayLoop types.StringNumber `mapconv:",default=10"`
15688 SorryServer string
15689 Description string
15690 Servers LoadBalancerServers `mapconv:"[]Servers,recursive"`
15691 }{
15692 VirtualIPAddress: o.GetVirtualIPAddress(),
15693 Port: o.GetPort(),
15694 DelayLoop: o.GetDelayLoop(),
15695 SorryServer: o.GetSorryServer(),
15696 Description: o.GetDescription(),
15697 Servers: o.GetServers(),
15698 }
15699 }
15700
15701 // GetVirtualIPAddress returns value of VirtualIPAddress
15702 func (o *LoadBalancerVirtualIPAddress) GetVirtualIPAddress() string {
15703 return o.VirtualIPAddress
15704 }
15705
15706 // SetVirtualIPAddress sets value to VirtualIPAddress
15707 func (o *LoadBalancerVirtualIPAddress) SetVirtualIPAddress(v string) {
15708 o.VirtualIPAddress = v
15709 }
15710
15711 // GetPort returns value of Port
15712 func (o *LoadBalancerVirtualIPAddress) GetPort() types.StringNumber {
15713 return o.Port
15714 }
15715
15716 // SetPort sets value to Port
15717 func (o *LoadBalancerVirtualIPAddress) SetPort(v types.StringNumber) {
15718 o.Port = v
15719 }
15720
15721 // GetDelayLoop returns value of DelayLoop
15722 func (o *LoadBalancerVirtualIPAddress) GetDelayLoop() types.StringNumber {
15723 if o.DelayLoop == types.StringNumber(float64(0)) {
15724 return 10
15725 }
15726 return o.DelayLoop
15727 }
15728
15729 // SetDelayLoop sets value to DelayLoop
15730 func (o *LoadBalancerVirtualIPAddress) SetDelayLoop(v types.StringNumber) {
15731 o.DelayLoop = v
15732 }
15733
15734 // GetSorryServer returns value of SorryServer
15735 func (o *LoadBalancerVirtualIPAddress) GetSorryServer() string {
15736 return o.SorryServer
15737 }
15738
15739 // SetSorryServer sets value to SorryServer
15740 func (o *LoadBalancerVirtualIPAddress) SetSorryServer(v string) {
15741 o.SorryServer = v
15742 }
15743
15744 // GetDescription returns value of Description
15745 func (o *LoadBalancerVirtualIPAddress) GetDescription() string {
15746 return o.Description
15747 }
15748
15749 // SetDescription sets value to Description
15750 func (o *LoadBalancerVirtualIPAddress) SetDescription(v string) {
15751 o.Description = v
15752 }
15753
15754 // GetServers returns value of Servers
15755 func (o *LoadBalancerVirtualIPAddress) GetServers() LoadBalancerServers {
15756 return o.Servers
15757 }
15758
15759 // SetServers sets value to Servers
15760 func (o *LoadBalancerVirtualIPAddress) SetServers(v LoadBalancerServers) {
15761 o.Servers = v
15762 }
15763
15764 /*************************************************
15765 * LoadBalancerServer
15766 *************************************************/
15767
15768 // LoadBalancerServer represents API parameter/response structure
15769 type LoadBalancerServer struct {
15770 IPAddress string
15771 Port types.StringNumber
15772 Enabled types.StringFlag
15773 HealthCheck *LoadBalancerServerHealthCheck `mapconv:"HealthCheck,recursive"`
15774 }
15775
15776 // setDefaults implements iaas.argumentDefaulter
15777 func (o *LoadBalancerServer) setDefaults() interface{} {
15778 return &struct {
15779 IPAddress string
15780 Port types.StringNumber
15781 Enabled types.StringFlag
15782 HealthCheck *LoadBalancerServerHealthCheck `mapconv:"HealthCheck,recursive"`
15783 }{
15784 IPAddress: o.GetIPAddress(),
15785 Port: o.GetPort(),
15786 Enabled: o.GetEnabled(),
15787 HealthCheck: o.GetHealthCheck(),
15788 }
15789 }
15790
15791 // GetIPAddress returns value of IPAddress
15792 func (o *LoadBalancerServer) GetIPAddress() string {
15793 return o.IPAddress
15794 }
15795
15796 // SetIPAddress sets value to IPAddress
15797 func (o *LoadBalancerServer) SetIPAddress(v string) {
15798 o.IPAddress = v
15799 }
15800
15801 // GetPort returns value of Port
15802 func (o *LoadBalancerServer) GetPort() types.StringNumber {
15803 return o.Port
15804 }
15805
15806 // SetPort sets value to Port
15807 func (o *LoadBalancerServer) SetPort(v types.StringNumber) {
15808 o.Port = v
15809 }
15810
15811 // GetEnabled returns value of Enabled
15812 func (o *LoadBalancerServer) GetEnabled() types.StringFlag {
15813 return o.Enabled
15814 }
15815
15816 // SetEnabled sets value to Enabled
15817 func (o *LoadBalancerServer) SetEnabled(v types.StringFlag) {
15818 o.Enabled = v
15819 }
15820
15821 // GetHealthCheck returns value of HealthCheck
15822 func (o *LoadBalancerServer) GetHealthCheck() *LoadBalancerServerHealthCheck {
15823 return o.HealthCheck
15824 }
15825
15826 // SetHealthCheck sets value to HealthCheck
15827 func (o *LoadBalancerServer) SetHealthCheck(v *LoadBalancerServerHealthCheck) {
15828 o.HealthCheck = v
15829 }
15830
15831 /*************************************************
15832 * LoadBalancerServerHealthCheck
15833 *************************************************/
15834
15835 // LoadBalancerServerHealthCheck represents API parameter/response structure
15836 type LoadBalancerServerHealthCheck struct {
15837 Protocol types.ELoadBalancerHealthCheckProtocol
15838 Path string
15839 ResponseCode types.StringNumber `mapconv:"Status"`
15840 Retry types.StringNumber
15841 ConnectTimeout types.StringNumber
15842 }
15843
15844 // setDefaults implements iaas.argumentDefaulter
15845 func (o *LoadBalancerServerHealthCheck) setDefaults() interface{} {
15846 return &struct {
15847 Protocol types.ELoadBalancerHealthCheckProtocol
15848 Path string
15849 ResponseCode types.StringNumber `mapconv:"Status"`
15850 Retry types.StringNumber
15851 ConnectTimeout types.StringNumber
15852 }{
15853 Protocol: o.GetProtocol(),
15854 Path: o.GetPath(),
15855 ResponseCode: o.GetResponseCode(),
15856 Retry: o.GetRetry(),
15857 ConnectTimeout: o.GetConnectTimeout(),
15858 }
15859 }
15860
15861 // GetProtocol returns value of Protocol
15862 func (o *LoadBalancerServerHealthCheck) GetProtocol() types.ELoadBalancerHealthCheckProtocol {
15863 return o.Protocol
15864 }
15865
15866 // SetProtocol sets value to Protocol
15867 func (o *LoadBalancerServerHealthCheck) SetProtocol(v types.ELoadBalancerHealthCheckProtocol) {
15868 o.Protocol = v
15869 }
15870
15871 // GetPath returns value of Path
15872 func (o *LoadBalancerServerHealthCheck) GetPath() string {
15873 return o.Path
15874 }
15875
15876 // SetPath sets value to Path
15877 func (o *LoadBalancerServerHealthCheck) SetPath(v string) {
15878 o.Path = v
15879 }
15880
15881 // GetResponseCode returns value of ResponseCode
15882 func (o *LoadBalancerServerHealthCheck) GetResponseCode() types.StringNumber {
15883 return o.ResponseCode
15884 }
15885
15886 // SetResponseCode sets value to ResponseCode
15887 func (o *LoadBalancerServerHealthCheck) SetResponseCode(v types.StringNumber) {
15888 o.ResponseCode = v
15889 }
15890
15891 // GetRetry returns value of Retry
15892 func (o *LoadBalancerServerHealthCheck) GetRetry() types.StringNumber {
15893 return o.Retry
15894 }
15895
15896 // SetRetry sets value to Retry
15897 func (o *LoadBalancerServerHealthCheck) SetRetry(v types.StringNumber) {
15898 o.Retry = v
15899 }
15900
15901 // GetConnectTimeout returns value of ConnectTimeout
15902 func (o *LoadBalancerServerHealthCheck) GetConnectTimeout() types.StringNumber {
15903 return o.ConnectTimeout
15904 }
15905
15906 // SetConnectTimeout sets value to ConnectTimeout
15907 func (o *LoadBalancerServerHealthCheck) SetConnectTimeout(v types.StringNumber) {
15908 o.ConnectTimeout = v
15909 }
15910
15911 /*************************************************
15912 * LoadBalancerCreateRequest
15913 *************************************************/
15914
15915 // LoadBalancerCreateRequest represents API parameter/response structure
15916 type LoadBalancerCreateRequest struct {
15917 SwitchID types.ID `mapconv:"Remark.Switch.ID"`
15918 PlanID types.ID `mapconv:"Remark.Plan.ID/Plan.ID"`
15919 VRID int `mapconv:"Remark.VRRP.VRID"`
15920 IPAddresses []string `mapconv:"Remark.[]Servers.IPAddress"`
15921 NetworkMaskLen int `mapconv:"Remark.Network.NetworkMaskLen"`
15922 DefaultRoute string `mapconv:"Remark.Network.DefaultRoute"`
15923 Name string
15924 Description string
15925 Tags types.Tags
15926 IconID types.ID `mapconv:"Icon.ID"`
15927 VirtualIPAddresses LoadBalancerVirtualIPAddresses `mapconv:"Settings.[]LoadBalancer,recursive"`
15928 }
15929
15930 // setDefaults implements iaas.argumentDefaulter
15931 func (o *LoadBalancerCreateRequest) setDefaults() interface{} {
15932 return &struct {
15933 SwitchID types.ID `mapconv:"Remark.Switch.ID"`
15934 PlanID types.ID `mapconv:"Remark.Plan.ID/Plan.ID"`
15935 VRID int `mapconv:"Remark.VRRP.VRID"`
15936 IPAddresses []string `mapconv:"Remark.[]Servers.IPAddress"`
15937 NetworkMaskLen int `mapconv:"Remark.Network.NetworkMaskLen"`
15938 DefaultRoute string `mapconv:"Remark.Network.DefaultRoute"`
15939 Name string
15940 Description string
15941 Tags types.Tags
15942 IconID types.ID `mapconv:"Icon.ID"`
15943 VirtualIPAddresses LoadBalancerVirtualIPAddresses `mapconv:"Settings.[]LoadBalancer,recursive"`
15944 Class string
15945 }{
15946 SwitchID: o.GetSwitchID(),
15947 PlanID: o.GetPlanID(),
15948 VRID: o.GetVRID(),
15949 IPAddresses: o.GetIPAddresses(),
15950 NetworkMaskLen: o.GetNetworkMaskLen(),
15951 DefaultRoute: o.GetDefaultRoute(),
15952 Name: o.GetName(),
15953 Description: o.GetDescription(),
15954 Tags: o.GetTags(),
15955 IconID: o.GetIconID(),
15956 VirtualIPAddresses: o.GetVirtualIPAddresses(),
15957 Class: "loadbalancer",
15958 }
15959 }
15960
15961 // GetSwitchID returns value of SwitchID
15962 func (o *LoadBalancerCreateRequest) GetSwitchID() types.ID {
15963 return o.SwitchID
15964 }
15965
15966 // SetSwitchID sets value to SwitchID
15967 func (o *LoadBalancerCreateRequest) SetSwitchID(v types.ID) {
15968 o.SwitchID = v
15969 }
15970
15971 // GetPlanID returns value of PlanID
15972 func (o *LoadBalancerCreateRequest) GetPlanID() types.ID {
15973 return o.PlanID
15974 }
15975
15976 // SetPlanID sets value to PlanID
15977 func (o *LoadBalancerCreateRequest) SetPlanID(v types.ID) {
15978 o.PlanID = v
15979 }
15980
15981 // GetVRID returns value of VRID
15982 func (o *LoadBalancerCreateRequest) GetVRID() int {
15983 return o.VRID
15984 }
15985
15986 // SetVRID sets value to VRID
15987 func (o *LoadBalancerCreateRequest) SetVRID(v int) {
15988 o.VRID = v
15989 }
15990
15991 // GetIPAddresses returns value of IPAddresses
15992 func (o *LoadBalancerCreateRequest) GetIPAddresses() []string {
15993 return o.IPAddresses
15994 }
15995
15996 // SetIPAddresses sets value to IPAddresses
15997 func (o *LoadBalancerCreateRequest) SetIPAddresses(v []string) {
15998 o.IPAddresses = v
15999 }
16000
16001 // GetNetworkMaskLen returns value of NetworkMaskLen
16002 func (o *LoadBalancerCreateRequest) GetNetworkMaskLen() int {
16003 return o.NetworkMaskLen
16004 }
16005
16006 // SetNetworkMaskLen sets value to NetworkMaskLen
16007 func (o *LoadBalancerCreateRequest) SetNetworkMaskLen(v int) {
16008 o.NetworkMaskLen = v
16009 }
16010
16011 // GetDefaultRoute returns value of DefaultRoute
16012 func (o *LoadBalancerCreateRequest) GetDefaultRoute() string {
16013 return o.DefaultRoute
16014 }
16015
16016 // SetDefaultRoute sets value to DefaultRoute
16017 func (o *LoadBalancerCreateRequest) SetDefaultRoute(v string) {
16018 o.DefaultRoute = v
16019 }
16020
16021 // GetName returns value of Name
16022 func (o *LoadBalancerCreateRequest) GetName() string {
16023 return o.Name
16024 }
16025
16026 // SetName sets value to Name
16027 func (o *LoadBalancerCreateRequest) SetName(v string) {
16028 o.Name = v
16029 }
16030
16031 // GetDescription returns value of Description
16032 func (o *LoadBalancerCreateRequest) GetDescription() string {
16033 return o.Description
16034 }
16035
16036 // SetDescription sets value to Description
16037 func (o *LoadBalancerCreateRequest) SetDescription(v string) {
16038 o.Description = v
16039 }
16040
16041 // GetTags returns value of Tags
16042 func (o *LoadBalancerCreateRequest) GetTags() types.Tags {
16043 return o.Tags
16044 }
16045
16046 // SetTags sets value to Tags
16047 func (o *LoadBalancerCreateRequest) SetTags(v types.Tags) {
16048 o.Tags = v
16049 }
16050
16051 // HasTag 指定のタグが存在する場合trueを返す
16052 func (o *LoadBalancerCreateRequest) HasTag(tag string) bool {
16053 return accessor.HasTag(o, tag)
16054 }
16055
16056 // AppendTag 指定のタグを追加
16057 func (o *LoadBalancerCreateRequest) AppendTag(tag string) {
16058 accessor.AppendTag(o, tag)
16059 }
16060
16061 // RemoveTag 指定のタグを削除
16062 func (o *LoadBalancerCreateRequest) RemoveTag(tag string) {
16063 accessor.RemoveTag(o, tag)
16064 }
16065
16066 // ClearTags タグを全クリア
16067 func (o *LoadBalancerCreateRequest) ClearTags() {
16068 accessor.ClearTags(o)
16069 }
16070
16071 // GetIconID returns value of IconID
16072 func (o *LoadBalancerCreateRequest) GetIconID() types.ID {
16073 return o.IconID
16074 }
16075
16076 // SetIconID sets value to IconID
16077 func (o *LoadBalancerCreateRequest) SetIconID(v types.ID) {
16078 o.IconID = v
16079 }
16080
16081 // GetVirtualIPAddresses returns value of VirtualIPAddresses
16082 func (o *LoadBalancerCreateRequest) GetVirtualIPAddresses() LoadBalancerVirtualIPAddresses {
16083 return o.VirtualIPAddresses
16084 }
16085
16086 // SetVirtualIPAddresses sets value to VirtualIPAddresses
16087 func (o *LoadBalancerCreateRequest) SetVirtualIPAddresses(v LoadBalancerVirtualIPAddresses) {
16088 o.VirtualIPAddresses = v
16089 }
16090
16091 /*************************************************
16092 * LoadBalancerUpdateRequest
16093 *************************************************/
16094
16095 // LoadBalancerUpdateRequest represents API parameter/response structure
16096 type LoadBalancerUpdateRequest struct {
16097 Name string
16098 Description string
16099 Tags types.Tags
16100 IconID types.ID `mapconv:"Icon.ID"`
16101 VirtualIPAddresses LoadBalancerVirtualIPAddresses `mapconv:"Settings.[]LoadBalancer,recursive"`
16102 SettingsHash string `json:",omitempty" mapconv:",omitempty"`
16103 }
16104
16105 // setDefaults implements iaas.argumentDefaulter
16106 func (o *LoadBalancerUpdateRequest) setDefaults() interface{} {
16107 return &struct {
16108 Name string
16109 Description string
16110 Tags types.Tags
16111 IconID types.ID `mapconv:"Icon.ID"`
16112 VirtualIPAddresses LoadBalancerVirtualIPAddresses `mapconv:"Settings.[]LoadBalancer,recursive"`
16113 SettingsHash string `json:",omitempty" mapconv:",omitempty"`
16114 }{
16115 Name: o.GetName(),
16116 Description: o.GetDescription(),
16117 Tags: o.GetTags(),
16118 IconID: o.GetIconID(),
16119 VirtualIPAddresses: o.GetVirtualIPAddresses(),
16120 SettingsHash: o.GetSettingsHash(),
16121 }
16122 }
16123
16124 // GetName returns value of Name
16125 func (o *LoadBalancerUpdateRequest) GetName() string {
16126 return o.Name
16127 }
16128
16129 // SetName sets value to Name
16130 func (o *LoadBalancerUpdateRequest) SetName(v string) {
16131 o.Name = v
16132 }
16133
16134 // GetDescription returns value of Description
16135 func (o *LoadBalancerUpdateRequest) GetDescription() string {
16136 return o.Description
16137 }
16138
16139 // SetDescription sets value to Description
16140 func (o *LoadBalancerUpdateRequest) SetDescription(v string) {
16141 o.Description = v
16142 }
16143
16144 // GetTags returns value of Tags
16145 func (o *LoadBalancerUpdateRequest) GetTags() types.Tags {
16146 return o.Tags
16147 }
16148
16149 // SetTags sets value to Tags
16150 func (o *LoadBalancerUpdateRequest) SetTags(v types.Tags) {
16151 o.Tags = v
16152 }
16153
16154 // HasTag 指定のタグが存在する場合trueを返す
16155 func (o *LoadBalancerUpdateRequest) HasTag(tag string) bool {
16156 return accessor.HasTag(o, tag)
16157 }
16158
16159 // AppendTag 指定のタグを追加
16160 func (o *LoadBalancerUpdateRequest) AppendTag(tag string) {
16161 accessor.AppendTag(o, tag)
16162 }
16163
16164 // RemoveTag 指定のタグを削除
16165 func (o *LoadBalancerUpdateRequest) RemoveTag(tag string) {
16166 accessor.RemoveTag(o, tag)
16167 }
16168
16169 // ClearTags タグを全クリア
16170 func (o *LoadBalancerUpdateRequest) ClearTags() {
16171 accessor.ClearTags(o)
16172 }
16173
16174 // GetIconID returns value of IconID
16175 func (o *LoadBalancerUpdateRequest) GetIconID() types.ID {
16176 return o.IconID
16177 }
16178
16179 // SetIconID sets value to IconID
16180 func (o *LoadBalancerUpdateRequest) SetIconID(v types.ID) {
16181 o.IconID = v
16182 }
16183
16184 // GetVirtualIPAddresses returns value of VirtualIPAddresses
16185 func (o *LoadBalancerUpdateRequest) GetVirtualIPAddresses() LoadBalancerVirtualIPAddresses {
16186 return o.VirtualIPAddresses
16187 }
16188
16189 // SetVirtualIPAddresses sets value to VirtualIPAddresses
16190 func (o *LoadBalancerUpdateRequest) SetVirtualIPAddresses(v LoadBalancerVirtualIPAddresses) {
16191 o.VirtualIPAddresses = v
16192 }
16193
16194 // GetSettingsHash returns value of SettingsHash
16195 func (o *LoadBalancerUpdateRequest) GetSettingsHash() string {
16196 return o.SettingsHash
16197 }
16198
16199 // SetSettingsHash sets value to SettingsHash
16200 func (o *LoadBalancerUpdateRequest) SetSettingsHash(v string) {
16201 o.SettingsHash = v
16202 }
16203
16204 /*************************************************
16205 * LoadBalancerUpdateSettingsRequest
16206 *************************************************/
16207
16208 // LoadBalancerUpdateSettingsRequest represents API parameter/response structure
16209 type LoadBalancerUpdateSettingsRequest struct {
16210 VirtualIPAddresses LoadBalancerVirtualIPAddresses `mapconv:"Settings.[]LoadBalancer,recursive"`
16211 SettingsHash string `json:",omitempty" mapconv:",omitempty"`
16212 }
16213
16214 // setDefaults implements iaas.argumentDefaulter
16215 func (o *LoadBalancerUpdateSettingsRequest) setDefaults() interface{} {
16216 return &struct {
16217 VirtualIPAddresses LoadBalancerVirtualIPAddresses `mapconv:"Settings.[]LoadBalancer,recursive"`
16218 SettingsHash string `json:",omitempty" mapconv:",omitempty"`
16219 }{
16220 VirtualIPAddresses: o.GetVirtualIPAddresses(),
16221 SettingsHash: o.GetSettingsHash(),
16222 }
16223 }
16224
16225 // GetVirtualIPAddresses returns value of VirtualIPAddresses
16226 func (o *LoadBalancerUpdateSettingsRequest) GetVirtualIPAddresses() LoadBalancerVirtualIPAddresses {
16227 return o.VirtualIPAddresses
16228 }
16229
16230 // SetVirtualIPAddresses sets value to VirtualIPAddresses
16231 func (o *LoadBalancerUpdateSettingsRequest) SetVirtualIPAddresses(v LoadBalancerVirtualIPAddresses) {
16232 o.VirtualIPAddresses = v
16233 }
16234
16235 // GetSettingsHash returns value of SettingsHash
16236 func (o *LoadBalancerUpdateSettingsRequest) GetSettingsHash() string {
16237 return o.SettingsHash
16238 }
16239
16240 // SetSettingsHash sets value to SettingsHash
16241 func (o *LoadBalancerUpdateSettingsRequest) SetSettingsHash(v string) {
16242 o.SettingsHash = v
16243 }
16244
16245 /*************************************************
16246 * LoadBalancerStatus
16247 *************************************************/
16248
16249 // LoadBalancerStatus represents API parameter/response structure
16250 type LoadBalancerStatus struct {
16251 VirtualIPAddress string
16252 Port types.StringNumber
16253 CPS types.StringNumber
16254 Servers []*LoadBalancerServerStatus `mapconv:",recursive"`
16255 }
16256
16257 // setDefaults implements iaas.argumentDefaulter
16258 func (o *LoadBalancerStatus) setDefaults() interface{} {
16259 return &struct {
16260 VirtualIPAddress string
16261 Port types.StringNumber
16262 CPS types.StringNumber
16263 Servers []*LoadBalancerServerStatus `mapconv:",recursive"`
16264 }{
16265 VirtualIPAddress: o.GetVirtualIPAddress(),
16266 Port: o.GetPort(),
16267 CPS: o.GetCPS(),
16268 Servers: o.GetServers(),
16269 }
16270 }
16271
16272 // GetVirtualIPAddress returns value of VirtualIPAddress
16273 func (o *LoadBalancerStatus) GetVirtualIPAddress() string {
16274 return o.VirtualIPAddress
16275 }
16276
16277 // SetVirtualIPAddress sets value to VirtualIPAddress
16278 func (o *LoadBalancerStatus) SetVirtualIPAddress(v string) {
16279 o.VirtualIPAddress = v
16280 }
16281
16282 // GetPort returns value of Port
16283 func (o *LoadBalancerStatus) GetPort() types.StringNumber {
16284 return o.Port
16285 }
16286
16287 // SetPort sets value to Port
16288 func (o *LoadBalancerStatus) SetPort(v types.StringNumber) {
16289 o.Port = v
16290 }
16291
16292 // GetCPS returns value of CPS
16293 func (o *LoadBalancerStatus) GetCPS() types.StringNumber {
16294 return o.CPS
16295 }
16296
16297 // SetCPS sets value to CPS
16298 func (o *LoadBalancerStatus) SetCPS(v types.StringNumber) {
16299 o.CPS = v
16300 }
16301
16302 // GetServers returns value of Servers
16303 func (o *LoadBalancerStatus) GetServers() []*LoadBalancerServerStatus {
16304 return o.Servers
16305 }
16306
16307 // SetServers sets value to Servers
16308 func (o *LoadBalancerStatus) SetServers(v []*LoadBalancerServerStatus) {
16309 o.Servers = v
16310 }
16311
16312 /*************************************************
16313 * LoadBalancerServerStatus
16314 *************************************************/
16315
16316 // LoadBalancerServerStatus represents API parameter/response structure
16317 type LoadBalancerServerStatus struct {
16318 ActiveConn types.StringNumber
16319 Status types.EServerInstanceStatus
16320 IPAddress string
16321 Port types.StringNumber
16322 CPS types.StringNumber
16323 }
16324
16325 // setDefaults implements iaas.argumentDefaulter
16326 func (o *LoadBalancerServerStatus) setDefaults() interface{} {
16327 return &struct {
16328 ActiveConn types.StringNumber
16329 Status types.EServerInstanceStatus
16330 IPAddress string
16331 Port types.StringNumber
16332 CPS types.StringNumber
16333 }{
16334 ActiveConn: o.GetActiveConn(),
16335 Status: o.GetStatus(),
16336 IPAddress: o.GetIPAddress(),
16337 Port: o.GetPort(),
16338 CPS: o.GetCPS(),
16339 }
16340 }
16341
16342 // GetActiveConn returns value of ActiveConn
16343 func (o *LoadBalancerServerStatus) GetActiveConn() types.StringNumber {
16344 return o.ActiveConn
16345 }
16346
16347 // SetActiveConn sets value to ActiveConn
16348 func (o *LoadBalancerServerStatus) SetActiveConn(v types.StringNumber) {
16349 o.ActiveConn = v
16350 }
16351
16352 // GetStatus returns value of Status
16353 func (o *LoadBalancerServerStatus) GetStatus() types.EServerInstanceStatus {
16354 return o.Status
16355 }
16356
16357 // SetStatus sets value to Status
16358 func (o *LoadBalancerServerStatus) SetStatus(v types.EServerInstanceStatus) {
16359 o.Status = v
16360 }
16361
16362 // GetIPAddress returns value of IPAddress
16363 func (o *LoadBalancerServerStatus) GetIPAddress() string {
16364 return o.IPAddress
16365 }
16366
16367 // SetIPAddress sets value to IPAddress
16368 func (o *LoadBalancerServerStatus) SetIPAddress(v string) {
16369 o.IPAddress = v
16370 }
16371
16372 // GetPort returns value of Port
16373 func (o *LoadBalancerServerStatus) GetPort() types.StringNumber {
16374 return o.Port
16375 }
16376
16377 // SetPort sets value to Port
16378 func (o *LoadBalancerServerStatus) SetPort(v types.StringNumber) {
16379 o.Port = v
16380 }
16381
16382 // GetCPS returns value of CPS
16383 func (o *LoadBalancerServerStatus) GetCPS() types.StringNumber {
16384 return o.CPS
16385 }
16386
16387 // SetCPS sets value to CPS
16388 func (o *LoadBalancerServerStatus) SetCPS(v types.StringNumber) {
16389 o.CPS = v
16390 }
16391
16392 /*************************************************
16393 * LocalRouter
16394 *************************************************/
16395
16396 // LocalRouter represents API parameter/response structure
16397 type LocalRouter struct {
16398 ID types.ID
16399 Name string
16400 Description string
16401 Tags types.Tags
16402 Availability types.EAvailability
16403 IconID types.ID `mapconv:"Icon.ID"`
16404 CreatedAt time.Time
16405 ModifiedAt time.Time
16406 Switch *LocalRouterSwitch `mapconv:"Settings.LocalRouter.Switch,recursive"`
16407 Interface *LocalRouterInterface `mapconv:"Settings.LocalRouter.Interface,recursive"`
16408 Peers []*LocalRouterPeer `mapconv:"Settings.LocalRouter.[]Peers,recursive"`
16409 StaticRoutes []*LocalRouterStaticRoute `mapconv:"Settings.LocalRouter.[]StaticRoutes,recursive"`
16410 SettingsHash string `json:",omitempty" mapconv:",omitempty"`
16411 SecretKeys []string `mapconv:"Status.SecretKeys"`
16412 }
16413
16414 // setDefaults implements iaas.argumentDefaulter
16415 func (o *LocalRouter) setDefaults() interface{} {
16416 return &struct {
16417 ID types.ID
16418 Name string
16419 Description string
16420 Tags types.Tags
16421 Availability types.EAvailability
16422 IconID types.ID `mapconv:"Icon.ID"`
16423 CreatedAt time.Time
16424 ModifiedAt time.Time
16425 Switch *LocalRouterSwitch `mapconv:"Settings.LocalRouter.Switch,recursive"`
16426 Interface *LocalRouterInterface `mapconv:"Settings.LocalRouter.Interface,recursive"`
16427 Peers []*LocalRouterPeer `mapconv:"Settings.LocalRouter.[]Peers,recursive"`
16428 StaticRoutes []*LocalRouterStaticRoute `mapconv:"Settings.LocalRouter.[]StaticRoutes,recursive"`
16429 SettingsHash string `json:",omitempty" mapconv:",omitempty"`
16430 SecretKeys []string `mapconv:"Status.SecretKeys"`
16431 }{
16432 ID: o.GetID(),
16433 Name: o.GetName(),
16434 Description: o.GetDescription(),
16435 Tags: o.GetTags(),
16436 Availability: o.GetAvailability(),
16437 IconID: o.GetIconID(),
16438 CreatedAt: o.GetCreatedAt(),
16439 ModifiedAt: o.GetModifiedAt(),
16440 Switch: o.GetSwitch(),
16441 Interface: o.GetInterface(),
16442 Peers: o.GetPeers(),
16443 StaticRoutes: o.GetStaticRoutes(),
16444 SettingsHash: o.GetSettingsHash(),
16445 SecretKeys: o.GetSecretKeys(),
16446 }
16447 }
16448
16449 // GetID returns value of ID
16450 func (o *LocalRouter) GetID() types.ID {
16451 return o.ID
16452 }
16453
16454 // SetID sets value to ID
16455 func (o *LocalRouter) SetID(v types.ID) {
16456 o.ID = v
16457 }
16458
16459 // SetStringID .
16460 func (o *LocalRouter) SetStringID(id string) {
16461 accessor.SetStringID(o, id)
16462 }
16463
16464 // GetStringID .
16465 func (o *LocalRouter) GetStringID() string {
16466 return accessor.GetStringID(o)
16467 }
16468
16469 // SetInt64ID .
16470 func (o *LocalRouter) SetInt64ID(id int64) {
16471 accessor.SetInt64ID(o, id)
16472 }
16473
16474 // GetInt64ID .
16475 func (o *LocalRouter) GetInt64ID() int64 {
16476 return accessor.GetInt64ID(o)
16477 }
16478
16479 // GetName returns value of Name
16480 func (o *LocalRouter) GetName() string {
16481 return o.Name
16482 }
16483
16484 // SetName sets value to Name
16485 func (o *LocalRouter) SetName(v string) {
16486 o.Name = v
16487 }
16488
16489 // GetDescription returns value of Description
16490 func (o *LocalRouter) GetDescription() string {
16491 return o.Description
16492 }
16493
16494 // SetDescription sets value to Description
16495 func (o *LocalRouter) SetDescription(v string) {
16496 o.Description = v
16497 }
16498
16499 // GetTags returns value of Tags
16500 func (o *LocalRouter) GetTags() types.Tags {
16501 return o.Tags
16502 }
16503
16504 // SetTags sets value to Tags
16505 func (o *LocalRouter) SetTags(v types.Tags) {
16506 o.Tags = v
16507 }
16508
16509 // HasTag 指定のタグが存在する場合trueを返す
16510 func (o *LocalRouter) HasTag(tag string) bool {
16511 return accessor.HasTag(o, tag)
16512 }
16513
16514 // AppendTag 指定のタグを追加
16515 func (o *LocalRouter) AppendTag(tag string) {
16516 accessor.AppendTag(o, tag)
16517 }
16518
16519 // RemoveTag 指定のタグを削除
16520 func (o *LocalRouter) RemoveTag(tag string) {
16521 accessor.RemoveTag(o, tag)
16522 }
16523
16524 // ClearTags タグを全クリア
16525 func (o *LocalRouter) ClearTags() {
16526 accessor.ClearTags(o)
16527 }
16528
16529 // GetAvailability returns value of Availability
16530 func (o *LocalRouter) GetAvailability() types.EAvailability {
16531 return o.Availability
16532 }
16533
16534 // SetAvailability sets value to Availability
16535 func (o *LocalRouter) SetAvailability(v types.EAvailability) {
16536 o.Availability = v
16537 }
16538
16539 // GetIconID returns value of IconID
16540 func (o *LocalRouter) GetIconID() types.ID {
16541 return o.IconID
16542 }
16543
16544 // SetIconID sets value to IconID
16545 func (o *LocalRouter) SetIconID(v types.ID) {
16546 o.IconID = v
16547 }
16548
16549 // GetCreatedAt returns value of CreatedAt
16550 func (o *LocalRouter) GetCreatedAt() time.Time {
16551 return o.CreatedAt
16552 }
16553
16554 // SetCreatedAt sets value to CreatedAt
16555 func (o *LocalRouter) SetCreatedAt(v time.Time) {
16556 o.CreatedAt = v
16557 }
16558
16559 // GetModifiedAt returns value of ModifiedAt
16560 func (o *LocalRouter) GetModifiedAt() time.Time {
16561 return o.ModifiedAt
16562 }
16563
16564 // SetModifiedAt sets value to ModifiedAt
16565 func (o *LocalRouter) SetModifiedAt(v time.Time) {
16566 o.ModifiedAt = v
16567 }
16568
16569 // GetSwitch returns value of Switch
16570 func (o *LocalRouter) GetSwitch() *LocalRouterSwitch {
16571 return o.Switch
16572 }
16573
16574 // SetSwitch sets value to Switch
16575 func (o *LocalRouter) SetSwitch(v *LocalRouterSwitch) {
16576 o.Switch = v
16577 }
16578
16579 // GetInterface returns value of Interface
16580 func (o *LocalRouter) GetInterface() *LocalRouterInterface {
16581 return o.Interface
16582 }
16583
16584 // SetInterface sets value to Interface
16585 func (o *LocalRouter) SetInterface(v *LocalRouterInterface) {
16586 o.Interface = v
16587 }
16588
16589 // GetPeers returns value of Peers
16590 func (o *LocalRouter) GetPeers() []*LocalRouterPeer {
16591 return o.Peers
16592 }
16593
16594 // SetPeers sets value to Peers
16595 func (o *LocalRouter) SetPeers(v []*LocalRouterPeer) {
16596 o.Peers = v
16597 }
16598
16599 // GetStaticRoutes returns value of StaticRoutes
16600 func (o *LocalRouter) GetStaticRoutes() []*LocalRouterStaticRoute {
16601 return o.StaticRoutes
16602 }
16603
16604 // SetStaticRoutes sets value to StaticRoutes
16605 func (o *LocalRouter) SetStaticRoutes(v []*LocalRouterStaticRoute) {
16606 o.StaticRoutes = v
16607 }
16608
16609 // GetSettingsHash returns value of SettingsHash
16610 func (o *LocalRouter) GetSettingsHash() string {
16611 return o.SettingsHash
16612 }
16613
16614 // SetSettingsHash sets value to SettingsHash
16615 func (o *LocalRouter) SetSettingsHash(v string) {
16616 o.SettingsHash = v
16617 }
16618
16619 // GetSecretKeys returns value of SecretKeys
16620 func (o *LocalRouter) GetSecretKeys() []string {
16621 return o.SecretKeys
16622 }
16623
16624 // SetSecretKeys sets value to SecretKeys
16625 func (o *LocalRouter) SetSecretKeys(v []string) {
16626 o.SecretKeys = v
16627 }
16628
16629 /*************************************************
16630 * LocalRouterSwitch
16631 *************************************************/
16632
16633 // LocalRouterSwitch represents API parameter/response structure
16634 type LocalRouterSwitch struct {
16635 Code string
16636 Category string
16637 ZoneID string
16638 }
16639
16640 // setDefaults implements iaas.argumentDefaulter
16641 func (o *LocalRouterSwitch) setDefaults() interface{} {
16642 return &struct {
16643 Code string
16644 Category string
16645 ZoneID string
16646 }{
16647 Code: o.GetCode(),
16648 Category: o.GetCategory(),
16649 ZoneID: o.GetZoneID(),
16650 }
16651 }
16652
16653 // GetCode returns value of Code
16654 func (o *LocalRouterSwitch) GetCode() string {
16655 return o.Code
16656 }
16657
16658 // SetCode sets value to Code
16659 func (o *LocalRouterSwitch) SetCode(v string) {
16660 o.Code = v
16661 }
16662
16663 // GetCategory returns value of Category
16664 func (o *LocalRouterSwitch) GetCategory() string {
16665 return o.Category
16666 }
16667
16668 // SetCategory sets value to Category
16669 func (o *LocalRouterSwitch) SetCategory(v string) {
16670 o.Category = v
16671 }
16672
16673 // GetZoneID returns value of ZoneID
16674 func (o *LocalRouterSwitch) GetZoneID() string {
16675 return o.ZoneID
16676 }
16677
16678 // SetZoneID sets value to ZoneID
16679 func (o *LocalRouterSwitch) SetZoneID(v string) {
16680 o.ZoneID = v
16681 }
16682
16683 /*************************************************
16684 * LocalRouterInterface
16685 *************************************************/
16686
16687 // LocalRouterInterface represents API parameter/response structure
16688 type LocalRouterInterface struct {
16689 VirtualIPAddress string
16690 IPAddress []string
16691 NetworkMaskLen int
16692 VRID int
16693 }
16694
16695 // setDefaults implements iaas.argumentDefaulter
16696 func (o *LocalRouterInterface) setDefaults() interface{} {
16697 return &struct {
16698 VirtualIPAddress string
16699 IPAddress []string
16700 NetworkMaskLen int
16701 VRID int
16702 }{
16703 VirtualIPAddress: o.GetVirtualIPAddress(),
16704 IPAddress: o.GetIPAddress(),
16705 NetworkMaskLen: o.GetNetworkMaskLen(),
16706 VRID: o.GetVRID(),
16707 }
16708 }
16709
16710 // GetVirtualIPAddress returns value of VirtualIPAddress
16711 func (o *LocalRouterInterface) GetVirtualIPAddress() string {
16712 return o.VirtualIPAddress
16713 }
16714
16715 // SetVirtualIPAddress sets value to VirtualIPAddress
16716 func (o *LocalRouterInterface) SetVirtualIPAddress(v string) {
16717 o.VirtualIPAddress = v
16718 }
16719
16720 // GetIPAddress returns value of IPAddress
16721 func (o *LocalRouterInterface) GetIPAddress() []string {
16722 return o.IPAddress
16723 }
16724
16725 // SetIPAddress sets value to IPAddress
16726 func (o *LocalRouterInterface) SetIPAddress(v []string) {
16727 o.IPAddress = v
16728 }
16729
16730 // GetNetworkMaskLen returns value of NetworkMaskLen
16731 func (o *LocalRouterInterface) GetNetworkMaskLen() int {
16732 return o.NetworkMaskLen
16733 }
16734
16735 // SetNetworkMaskLen sets value to NetworkMaskLen
16736 func (o *LocalRouterInterface) SetNetworkMaskLen(v int) {
16737 o.NetworkMaskLen = v
16738 }
16739
16740 // GetVRID returns value of VRID
16741 func (o *LocalRouterInterface) GetVRID() int {
16742 return o.VRID
16743 }
16744
16745 // SetVRID sets value to VRID
16746 func (o *LocalRouterInterface) SetVRID(v int) {
16747 o.VRID = v
16748 }
16749
16750 /*************************************************
16751 * LocalRouterPeer
16752 *************************************************/
16753
16754 // LocalRouterPeer represents API parameter/response structure
16755 type LocalRouterPeer struct {
16756 ID types.ID
16757 SecretKey string
16758 Enabled bool
16759 Description string
16760 }
16761
16762 // setDefaults implements iaas.argumentDefaulter
16763 func (o *LocalRouterPeer) setDefaults() interface{} {
16764 return &struct {
16765 ID types.ID
16766 SecretKey string
16767 Enabled bool
16768 Description string
16769 }{
16770 ID: o.GetID(),
16771 SecretKey: o.GetSecretKey(),
16772 Enabled: o.GetEnabled(),
16773 Description: o.GetDescription(),
16774 }
16775 }
16776
16777 // GetID returns value of ID
16778 func (o *LocalRouterPeer) GetID() types.ID {
16779 return o.ID
16780 }
16781
16782 // SetID sets value to ID
16783 func (o *LocalRouterPeer) SetID(v types.ID) {
16784 o.ID = v
16785 }
16786
16787 // GetSecretKey returns value of SecretKey
16788 func (o *LocalRouterPeer) GetSecretKey() string {
16789 return o.SecretKey
16790 }
16791
16792 // SetSecretKey sets value to SecretKey
16793 func (o *LocalRouterPeer) SetSecretKey(v string) {
16794 o.SecretKey = v
16795 }
16796
16797 // GetEnabled returns value of Enabled
16798 func (o *LocalRouterPeer) GetEnabled() bool {
16799 return o.Enabled
16800 }
16801
16802 // SetEnabled sets value to Enabled
16803 func (o *LocalRouterPeer) SetEnabled(v bool) {
16804 o.Enabled = v
16805 }
16806
16807 // GetDescription returns value of Description
16808 func (o *LocalRouterPeer) GetDescription() string {
16809 return o.Description
16810 }
16811
16812 // SetDescription sets value to Description
16813 func (o *LocalRouterPeer) SetDescription(v string) {
16814 o.Description = v
16815 }
16816
16817 /*************************************************
16818 * LocalRouterStaticRoute
16819 *************************************************/
16820
16821 // LocalRouterStaticRoute represents API parameter/response structure
16822 type LocalRouterStaticRoute struct {
16823 Prefix string
16824 NextHop string
16825 }
16826
16827 // setDefaults implements iaas.argumentDefaulter
16828 func (o *LocalRouterStaticRoute) setDefaults() interface{} {
16829 return &struct {
16830 Prefix string
16831 NextHop string
16832 }{
16833 Prefix: o.GetPrefix(),
16834 NextHop: o.GetNextHop(),
16835 }
16836 }
16837
16838 // GetPrefix returns value of Prefix
16839 func (o *LocalRouterStaticRoute) GetPrefix() string {
16840 return o.Prefix
16841 }
16842
16843 // SetPrefix sets value to Prefix
16844 func (o *LocalRouterStaticRoute) SetPrefix(v string) {
16845 o.Prefix = v
16846 }
16847
16848 // GetNextHop returns value of NextHop
16849 func (o *LocalRouterStaticRoute) GetNextHop() string {
16850 return o.NextHop
16851 }
16852
16853 // SetNextHop sets value to NextHop
16854 func (o *LocalRouterStaticRoute) SetNextHop(v string) {
16855 o.NextHop = v
16856 }
16857
16858 /*************************************************
16859 * LocalRouterCreateRequest
16860 *************************************************/
16861
16862 // LocalRouterCreateRequest represents API parameter/response structure
16863 type LocalRouterCreateRequest struct {
16864 Name string
16865 Description string
16866 Tags types.Tags
16867 IconID types.ID `mapconv:"Icon.ID"`
16868 }
16869
16870 // setDefaults implements iaas.argumentDefaulter
16871 func (o *LocalRouterCreateRequest) setDefaults() interface{} {
16872 return &struct {
16873 Name string
16874 Description string
16875 Tags types.Tags
16876 IconID types.ID `mapconv:"Icon.ID"`
16877 Class string `mapconv:"Provider.Class"`
16878 }{
16879 Name: o.GetName(),
16880 Description: o.GetDescription(),
16881 Tags: o.GetTags(),
16882 IconID: o.GetIconID(),
16883 Class: "localrouter",
16884 }
16885 }
16886
16887 // GetName returns value of Name
16888 func (o *LocalRouterCreateRequest) GetName() string {
16889 return o.Name
16890 }
16891
16892 // SetName sets value to Name
16893 func (o *LocalRouterCreateRequest) SetName(v string) {
16894 o.Name = v
16895 }
16896
16897 // GetDescription returns value of Description
16898 func (o *LocalRouterCreateRequest) GetDescription() string {
16899 return o.Description
16900 }
16901
16902 // SetDescription sets value to Description
16903 func (o *LocalRouterCreateRequest) SetDescription(v string) {
16904 o.Description = v
16905 }
16906
16907 // GetTags returns value of Tags
16908 func (o *LocalRouterCreateRequest) GetTags() types.Tags {
16909 return o.Tags
16910 }
16911
16912 // SetTags sets value to Tags
16913 func (o *LocalRouterCreateRequest) SetTags(v types.Tags) {
16914 o.Tags = v
16915 }
16916
16917 // HasTag 指定のタグが存在する場合trueを返す
16918 func (o *LocalRouterCreateRequest) HasTag(tag string) bool {
16919 return accessor.HasTag(o, tag)
16920 }
16921
16922 // AppendTag 指定のタグを追加
16923 func (o *LocalRouterCreateRequest) AppendTag(tag string) {
16924 accessor.AppendTag(o, tag)
16925 }
16926
16927 // RemoveTag 指定のタグを削除
16928 func (o *LocalRouterCreateRequest) RemoveTag(tag string) {
16929 accessor.RemoveTag(o, tag)
16930 }
16931
16932 // ClearTags タグを全クリア
16933 func (o *LocalRouterCreateRequest) ClearTags() {
16934 accessor.ClearTags(o)
16935 }
16936
16937 // GetIconID returns value of IconID
16938 func (o *LocalRouterCreateRequest) GetIconID() types.ID {
16939 return o.IconID
16940 }
16941
16942 // SetIconID sets value to IconID
16943 func (o *LocalRouterCreateRequest) SetIconID(v types.ID) {
16944 o.IconID = v
16945 }
16946
16947 /*************************************************
16948 * LocalRouterUpdateRequest
16949 *************************************************/
16950
16951 // LocalRouterUpdateRequest represents API parameter/response structure
16952 type LocalRouterUpdateRequest struct {
16953 Switch *LocalRouterSwitch `mapconv:"Settings.LocalRouter.Switch,recursive"`
16954 Interface *LocalRouterInterface `mapconv:"Settings.LocalRouter.Interface,recursive"`
16955 Peers []*LocalRouterPeer `mapconv:"Settings.LocalRouter.[]Peers,recursive"`
16956 StaticRoutes []*LocalRouterStaticRoute `mapconv:"Settings.LocalRouter.[]StaticRoutes,recursive"`
16957 SettingsHash string `json:",omitempty" mapconv:",omitempty"`
16958 Name string
16959 Description string
16960 Tags types.Tags
16961 IconID types.ID `mapconv:"Icon.ID"`
16962 }
16963
16964 // setDefaults implements iaas.argumentDefaulter
16965 func (o *LocalRouterUpdateRequest) setDefaults() interface{} {
16966 return &struct {
16967 Switch *LocalRouterSwitch `mapconv:"Settings.LocalRouter.Switch,recursive"`
16968 Interface *LocalRouterInterface `mapconv:"Settings.LocalRouter.Interface,recursive"`
16969 Peers []*LocalRouterPeer `mapconv:"Settings.LocalRouter.[]Peers,recursive"`
16970 StaticRoutes []*LocalRouterStaticRoute `mapconv:"Settings.LocalRouter.[]StaticRoutes,recursive"`
16971 SettingsHash string `json:",omitempty" mapconv:",omitempty"`
16972 Name string
16973 Description string
16974 Tags types.Tags
16975 IconID types.ID `mapconv:"Icon.ID"`
16976 }{
16977 Switch: o.GetSwitch(),
16978 Interface: o.GetInterface(),
16979 Peers: o.GetPeers(),
16980 StaticRoutes: o.GetStaticRoutes(),
16981 SettingsHash: o.GetSettingsHash(),
16982 Name: o.GetName(),
16983 Description: o.GetDescription(),
16984 Tags: o.GetTags(),
16985 IconID: o.GetIconID(),
16986 }
16987 }
16988
16989 // GetSwitch returns value of Switch
16990 func (o *LocalRouterUpdateRequest) GetSwitch() *LocalRouterSwitch {
16991 return o.Switch
16992 }
16993
16994 // SetSwitch sets value to Switch
16995 func (o *LocalRouterUpdateRequest) SetSwitch(v *LocalRouterSwitch) {
16996 o.Switch = v
16997 }
16998
16999 // GetInterface returns value of Interface
17000 func (o *LocalRouterUpdateRequest) GetInterface() *LocalRouterInterface {
17001 return o.Interface
17002 }
17003
17004 // SetInterface sets value to Interface
17005 func (o *LocalRouterUpdateRequest) SetInterface(v *LocalRouterInterface) {
17006 o.Interface = v
17007 }
17008
17009 // GetPeers returns value of Peers
17010 func (o *LocalRouterUpdateRequest) GetPeers() []*LocalRouterPeer {
17011 return o.Peers
17012 }
17013
17014 // SetPeers sets value to Peers
17015 func (o *LocalRouterUpdateRequest) SetPeers(v []*LocalRouterPeer) {
17016 o.Peers = v
17017 }
17018
17019 // GetStaticRoutes returns value of StaticRoutes
17020 func (o *LocalRouterUpdateRequest) GetStaticRoutes() []*LocalRouterStaticRoute {
17021 return o.StaticRoutes
17022 }
17023
17024 // SetStaticRoutes sets value to StaticRoutes
17025 func (o *LocalRouterUpdateRequest) SetStaticRoutes(v []*LocalRouterStaticRoute) {
17026 o.StaticRoutes = v
17027 }
17028
17029 // GetSettingsHash returns value of SettingsHash
17030 func (o *LocalRouterUpdateRequest) GetSettingsHash() string {
17031 return o.SettingsHash
17032 }
17033
17034 // SetSettingsHash sets value to SettingsHash
17035 func (o *LocalRouterUpdateRequest) SetSettingsHash(v string) {
17036 o.SettingsHash = v
17037 }
17038
17039 // GetName returns value of Name
17040 func (o *LocalRouterUpdateRequest) GetName() string {
17041 return o.Name
17042 }
17043
17044 // SetName sets value to Name
17045 func (o *LocalRouterUpdateRequest) SetName(v string) {
17046 o.Name = v
17047 }
17048
17049 // GetDescription returns value of Description
17050 func (o *LocalRouterUpdateRequest) GetDescription() string {
17051 return o.Description
17052 }
17053
17054 // SetDescription sets value to Description
17055 func (o *LocalRouterUpdateRequest) SetDescription(v string) {
17056 o.Description = v
17057 }
17058
17059 // GetTags returns value of Tags
17060 func (o *LocalRouterUpdateRequest) GetTags() types.Tags {
17061 return o.Tags
17062 }
17063
17064 // SetTags sets value to Tags
17065 func (o *LocalRouterUpdateRequest) SetTags(v types.Tags) {
17066 o.Tags = v
17067 }
17068
17069 // HasTag 指定のタグが存在する場合trueを返す
17070 func (o *LocalRouterUpdateRequest) HasTag(tag string) bool {
17071 return accessor.HasTag(o, tag)
17072 }
17073
17074 // AppendTag 指定のタグを追加
17075 func (o *LocalRouterUpdateRequest) AppendTag(tag string) {
17076 accessor.AppendTag(o, tag)
17077 }
17078
17079 // RemoveTag 指定のタグを削除
17080 func (o *LocalRouterUpdateRequest) RemoveTag(tag string) {
17081 accessor.RemoveTag(o, tag)
17082 }
17083
17084 // ClearTags タグを全クリア
17085 func (o *LocalRouterUpdateRequest) ClearTags() {
17086 accessor.ClearTags(o)
17087 }
17088
17089 // GetIconID returns value of IconID
17090 func (o *LocalRouterUpdateRequest) GetIconID() types.ID {
17091 return o.IconID
17092 }
17093
17094 // SetIconID sets value to IconID
17095 func (o *LocalRouterUpdateRequest) SetIconID(v types.ID) {
17096 o.IconID = v
17097 }
17098
17099 /*************************************************
17100 * LocalRouterUpdateSettingsRequest
17101 *************************************************/
17102
17103 // LocalRouterUpdateSettingsRequest represents API parameter/response structure
17104 type LocalRouterUpdateSettingsRequest struct {
17105 Switch *LocalRouterSwitch `mapconv:"Settings.LocalRouter.Switch,recursive"`
17106 Interface *LocalRouterInterface `mapconv:"Settings.LocalRouter.Interface,recursive"`
17107 Peers []*LocalRouterPeer `mapconv:"Settings.LocalRouter.[]Peers,recursive"`
17108 StaticRoutes []*LocalRouterStaticRoute `mapconv:"Settings.LocalRouter.[]StaticRoutes,recursive"`
17109 SettingsHash string `json:",omitempty" mapconv:",omitempty"`
17110 }
17111
17112 // setDefaults implements iaas.argumentDefaulter
17113 func (o *LocalRouterUpdateSettingsRequest) setDefaults() interface{} {
17114 return &struct {
17115 Switch *LocalRouterSwitch `mapconv:"Settings.LocalRouter.Switch,recursive"`
17116 Interface *LocalRouterInterface `mapconv:"Settings.LocalRouter.Interface,recursive"`
17117 Peers []*LocalRouterPeer `mapconv:"Settings.LocalRouter.[]Peers,recursive"`
17118 StaticRoutes []*LocalRouterStaticRoute `mapconv:"Settings.LocalRouter.[]StaticRoutes,recursive"`
17119 SettingsHash string `json:",omitempty" mapconv:",omitempty"`
17120 }{
17121 Switch: o.GetSwitch(),
17122 Interface: o.GetInterface(),
17123 Peers: o.GetPeers(),
17124 StaticRoutes: o.GetStaticRoutes(),
17125 SettingsHash: o.GetSettingsHash(),
17126 }
17127 }
17128
17129 // GetSwitch returns value of Switch
17130 func (o *LocalRouterUpdateSettingsRequest) GetSwitch() *LocalRouterSwitch {
17131 return o.Switch
17132 }
17133
17134 // SetSwitch sets value to Switch
17135 func (o *LocalRouterUpdateSettingsRequest) SetSwitch(v *LocalRouterSwitch) {
17136 o.Switch = v
17137 }
17138
17139 // GetInterface returns value of Interface
17140 func (o *LocalRouterUpdateSettingsRequest) GetInterface() *LocalRouterInterface {
17141 return o.Interface
17142 }
17143
17144 // SetInterface sets value to Interface
17145 func (o *LocalRouterUpdateSettingsRequest) SetInterface(v *LocalRouterInterface) {
17146 o.Interface = v
17147 }
17148
17149 // GetPeers returns value of Peers
17150 func (o *LocalRouterUpdateSettingsRequest) GetPeers() []*LocalRouterPeer {
17151 return o.Peers
17152 }
17153
17154 // SetPeers sets value to Peers
17155 func (o *LocalRouterUpdateSettingsRequest) SetPeers(v []*LocalRouterPeer) {
17156 o.Peers = v
17157 }
17158
17159 // GetStaticRoutes returns value of StaticRoutes
17160 func (o *LocalRouterUpdateSettingsRequest) GetStaticRoutes() []*LocalRouterStaticRoute {
17161 return o.StaticRoutes
17162 }
17163
17164 // SetStaticRoutes sets value to StaticRoutes
17165 func (o *LocalRouterUpdateSettingsRequest) SetStaticRoutes(v []*LocalRouterStaticRoute) {
17166 o.StaticRoutes = v
17167 }
17168
17169 // GetSettingsHash returns value of SettingsHash
17170 func (o *LocalRouterUpdateSettingsRequest) GetSettingsHash() string {
17171 return o.SettingsHash
17172 }
17173
17174 // SetSettingsHash sets value to SettingsHash
17175 func (o *LocalRouterUpdateSettingsRequest) SetSettingsHash(v string) {
17176 o.SettingsHash = v
17177 }
17178
17179 /*************************************************
17180 * LocalRouterHealth
17181 *************************************************/
17182
17183 // LocalRouterHealth represents API parameter/response structure
17184 type LocalRouterHealth struct {
17185 Peers []*LocalRouterHealthPeer `mapconv:"[]Peers,recursive"`
17186 }
17187
17188 // setDefaults implements iaas.argumentDefaulter
17189 func (o *LocalRouterHealth) setDefaults() interface{} {
17190 return &struct {
17191 Peers []*LocalRouterHealthPeer `mapconv:"[]Peers,recursive"`
17192 }{
17193 Peers: o.GetPeers(),
17194 }
17195 }
17196
17197 // GetPeers returns value of Peers
17198 func (o *LocalRouterHealth) GetPeers() []*LocalRouterHealthPeer {
17199 return o.Peers
17200 }
17201
17202 // SetPeers sets value to Peers
17203 func (o *LocalRouterHealth) SetPeers(v []*LocalRouterHealthPeer) {
17204 o.Peers = v
17205 }
17206
17207 /*************************************************
17208 * LocalRouterHealthPeer
17209 *************************************************/
17210
17211 // LocalRouterHealthPeer represents API parameter/response structure
17212 type LocalRouterHealthPeer struct {
17213 ID types.ID
17214 Status types.EServerInstanceStatus
17215 Routes []string
17216 }
17217
17218 // setDefaults implements iaas.argumentDefaulter
17219 func (o *LocalRouterHealthPeer) setDefaults() interface{} {
17220 return &struct {
17221 ID types.ID
17222 Status types.EServerInstanceStatus
17223 Routes []string
17224 }{
17225 ID: o.GetID(),
17226 Status: o.GetStatus(),
17227 Routes: o.GetRoutes(),
17228 }
17229 }
17230
17231 // GetID returns value of ID
17232 func (o *LocalRouterHealthPeer) GetID() types.ID {
17233 return o.ID
17234 }
17235
17236 // SetID sets value to ID
17237 func (o *LocalRouterHealthPeer) SetID(v types.ID) {
17238 o.ID = v
17239 }
17240
17241 // GetStatus returns value of Status
17242 func (o *LocalRouterHealthPeer) GetStatus() types.EServerInstanceStatus {
17243 return o.Status
17244 }
17245
17246 // SetStatus sets value to Status
17247 func (o *LocalRouterHealthPeer) SetStatus(v types.EServerInstanceStatus) {
17248 o.Status = v
17249 }
17250
17251 // GetRoutes returns value of Routes
17252 func (o *LocalRouterHealthPeer) GetRoutes() []string {
17253 return o.Routes
17254 }
17255
17256 // SetRoutes sets value to Routes
17257 func (o *LocalRouterHealthPeer) SetRoutes(v []string) {
17258 o.Routes = v
17259 }
17260
17261 /*************************************************
17262 * LocalRouterActivity
17263 *************************************************/
17264
17265 // LocalRouterActivity represents API parameter/response structure
17266 type LocalRouterActivity struct {
17267 Values []*MonitorLocalRouterValue `mapconv:"[]LocalRouter"`
17268 }
17269
17270 // setDefaults implements iaas.argumentDefaulter
17271 func (o *LocalRouterActivity) setDefaults() interface{} {
17272 return &struct {
17273 Values []*MonitorLocalRouterValue `mapconv:"[]LocalRouter"`
17274 }{
17275 Values: o.GetValues(),
17276 }
17277 }
17278
17279 // GetValues returns value of Values
17280 func (o *LocalRouterActivity) GetValues() []*MonitorLocalRouterValue {
17281 return o.Values
17282 }
17283
17284 // SetValues sets value to Values
17285 func (o *LocalRouterActivity) SetValues(v []*MonitorLocalRouterValue) {
17286 o.Values = v
17287 }
17288
17289 /*************************************************
17290 * MonitorLocalRouterValue
17291 *************************************************/
17292
17293 // MonitorLocalRouterValue represents API parameter/response structure
17294 type MonitorLocalRouterValue struct {
17295 Time time.Time `mapconv:",omitempty"`
17296 ReceiveBytesPerSec float64 `mapconv:",omitempty"`
17297 SendBytesPerSec float64 `mapconv:",omitempty"`
17298 }
17299
17300 // setDefaults implements iaas.argumentDefaulter
17301 func (o *MonitorLocalRouterValue) setDefaults() interface{} {
17302 return &struct {
17303 Time time.Time `mapconv:",omitempty"`
17304 ReceiveBytesPerSec float64 `mapconv:",omitempty"`
17305 SendBytesPerSec float64 `mapconv:",omitempty"`
17306 }{
17307 Time: o.GetTime(),
17308 ReceiveBytesPerSec: o.GetReceiveBytesPerSec(),
17309 SendBytesPerSec: o.GetSendBytesPerSec(),
17310 }
17311 }
17312
17313 // GetTime returns value of Time
17314 func (o *MonitorLocalRouterValue) GetTime() time.Time {
17315 return o.Time
17316 }
17317
17318 // SetTime sets value to Time
17319 func (o *MonitorLocalRouterValue) SetTime(v time.Time) {
17320 o.Time = v
17321 }
17322
17323 // GetReceiveBytesPerSec returns value of ReceiveBytesPerSec
17324 func (o *MonitorLocalRouterValue) GetReceiveBytesPerSec() float64 {
17325 return o.ReceiveBytesPerSec
17326 }
17327
17328 // SetReceiveBytesPerSec sets value to ReceiveBytesPerSec
17329 func (o *MonitorLocalRouterValue) SetReceiveBytesPerSec(v float64) {
17330 o.ReceiveBytesPerSec = v
17331 }
17332
17333 // GetSendBytesPerSec returns value of SendBytesPerSec
17334 func (o *MonitorLocalRouterValue) GetSendBytesPerSec() float64 {
17335 return o.SendBytesPerSec
17336 }
17337
17338 // SetSendBytesPerSec sets value to SendBytesPerSec
17339 func (o *MonitorLocalRouterValue) SetSendBytesPerSec(v float64) {
17340 o.SendBytesPerSec = v
17341 }
17342
17343 /*************************************************
17344 * MobileGateway
17345 *************************************************/
17346
17347 // MobileGateway represents API parameter/response structure
17348 type MobileGateway struct {
17349 ID types.ID
17350 Name string
17351 Description string
17352 Tags types.Tags
17353 Availability types.EAvailability
17354 Class string
17355 IconID types.ID `mapconv:"Icon.ID"`
17356 CreatedAt time.Time
17357 InstanceHostName string `mapconv:"Instance.Host.Name"`
17358 InstanceHostInfoURL string `mapconv:"Instance.Host.InfoURL"`
17359 InstanceStatus types.EServerInstanceStatus `mapconv:"Instance.Status"`
17360 InstanceStatusChangedAt time.Time `mapconv:"Instance.StatusChangedAt"`
17361 Interfaces []*MobileGatewayInterface `json:",omitempty" mapconv:"[]Interfaces,recursive,omitempty"`
17362 ZoneID types.ID `mapconv:"Remark.Zone.ID"`
17363 GlobalAddress string `mapconv:"Remark.MobileGateway.GlobalAddress"`
17364 InterfaceSettings []*MobileGatewayInterfaceSetting `mapconv:"Settings.MobileGateway.[]Interfaces,recursive"`
17365 StaticRoutes []*MobileGatewayStaticRoute `mapconv:"Settings.MobileGateway.[]StaticRoutes,recursive"`
17366 InternetConnectionEnabled types.StringFlag `mapconv:"Settings.MobileGateway.InternetConnection.Enabled"`
17367 InterDeviceCommunicationEnabled types.StringFlag `mapconv:"Settings.MobileGateway.InterDeviceCommunication.Enabled"`
17368 SettingsHash string `json:",omitempty" mapconv:",omitempty"`
17369 }
17370
17371 // setDefaults implements iaas.argumentDefaulter
17372 func (o *MobileGateway) setDefaults() interface{} {
17373 return &struct {
17374 ID types.ID
17375 Name string
17376 Description string
17377 Tags types.Tags
17378 Availability types.EAvailability
17379 Class string
17380 IconID types.ID `mapconv:"Icon.ID"`
17381 CreatedAt time.Time
17382 InstanceHostName string `mapconv:"Instance.Host.Name"`
17383 InstanceHostInfoURL string `mapconv:"Instance.Host.InfoURL"`
17384 InstanceStatus types.EServerInstanceStatus `mapconv:"Instance.Status"`
17385 InstanceStatusChangedAt time.Time `mapconv:"Instance.StatusChangedAt"`
17386 Interfaces []*MobileGatewayInterface `json:",omitempty" mapconv:"[]Interfaces,recursive,omitempty"`
17387 ZoneID types.ID `mapconv:"Remark.Zone.ID"`
17388 GlobalAddress string `mapconv:"Remark.MobileGateway.GlobalAddress"`
17389 InterfaceSettings []*MobileGatewayInterfaceSetting `mapconv:"Settings.MobileGateway.[]Interfaces,recursive"`
17390 StaticRoutes []*MobileGatewayStaticRoute `mapconv:"Settings.MobileGateway.[]StaticRoutes,recursive"`
17391 InternetConnectionEnabled types.StringFlag `mapconv:"Settings.MobileGateway.InternetConnection.Enabled"`
17392 InterDeviceCommunicationEnabled types.StringFlag `mapconv:"Settings.MobileGateway.InterDeviceCommunication.Enabled"`
17393 SettingsHash string `json:",omitempty" mapconv:",omitempty"`
17394 }{
17395 ID: o.GetID(),
17396 Name: o.GetName(),
17397 Description: o.GetDescription(),
17398 Tags: o.GetTags(),
17399 Availability: o.GetAvailability(),
17400 Class: o.GetClass(),
17401 IconID: o.GetIconID(),
17402 CreatedAt: o.GetCreatedAt(),
17403 InstanceHostName: o.GetInstanceHostName(),
17404 InstanceHostInfoURL: o.GetInstanceHostInfoURL(),
17405 InstanceStatus: o.GetInstanceStatus(),
17406 InstanceStatusChangedAt: o.GetInstanceStatusChangedAt(),
17407 Interfaces: o.GetInterfaces(),
17408 ZoneID: o.GetZoneID(),
17409 GlobalAddress: o.GetGlobalAddress(),
17410 InterfaceSettings: o.GetInterfaceSettings(),
17411 StaticRoutes: o.GetStaticRoutes(),
17412 InternetConnectionEnabled: o.GetInternetConnectionEnabled(),
17413 InterDeviceCommunicationEnabled: o.GetInterDeviceCommunicationEnabled(),
17414 SettingsHash: o.GetSettingsHash(),
17415 }
17416 }
17417
17418 // GetID returns value of ID
17419 func (o *MobileGateway) GetID() types.ID {
17420 return o.ID
17421 }
17422
17423 // SetID sets value to ID
17424 func (o *MobileGateway) SetID(v types.ID) {
17425 o.ID = v
17426 }
17427
17428 // SetStringID .
17429 func (o *MobileGateway) SetStringID(id string) {
17430 accessor.SetStringID(o, id)
17431 }
17432
17433 // GetStringID .
17434 func (o *MobileGateway) GetStringID() string {
17435 return accessor.GetStringID(o)
17436 }
17437
17438 // SetInt64ID .
17439 func (o *MobileGateway) SetInt64ID(id int64) {
17440 accessor.SetInt64ID(o, id)
17441 }
17442
17443 // GetInt64ID .
17444 func (o *MobileGateway) GetInt64ID() int64 {
17445 return accessor.GetInt64ID(o)
17446 }
17447
17448 // GetName returns value of Name
17449 func (o *MobileGateway) GetName() string {
17450 return o.Name
17451 }
17452
17453 // SetName sets value to Name
17454 func (o *MobileGateway) SetName(v string) {
17455 o.Name = v
17456 }
17457
17458 // GetDescription returns value of Description
17459 func (o *MobileGateway) GetDescription() string {
17460 return o.Description
17461 }
17462
17463 // SetDescription sets value to Description
17464 func (o *MobileGateway) SetDescription(v string) {
17465 o.Description = v
17466 }
17467
17468 // GetTags returns value of Tags
17469 func (o *MobileGateway) GetTags() types.Tags {
17470 return o.Tags
17471 }
17472
17473 // SetTags sets value to Tags
17474 func (o *MobileGateway) SetTags(v types.Tags) {
17475 o.Tags = v
17476 }
17477
17478 // HasTag 指定のタグが存在する場合trueを返す
17479 func (o *MobileGateway) HasTag(tag string) bool {
17480 return accessor.HasTag(o, tag)
17481 }
17482
17483 // AppendTag 指定のタグを追加
17484 func (o *MobileGateway) AppendTag(tag string) {
17485 accessor.AppendTag(o, tag)
17486 }
17487
17488 // RemoveTag 指定のタグを削除
17489 func (o *MobileGateway) RemoveTag(tag string) {
17490 accessor.RemoveTag(o, tag)
17491 }
17492
17493 // ClearTags タグを全クリア
17494 func (o *MobileGateway) ClearTags() {
17495 accessor.ClearTags(o)
17496 }
17497
17498 // GetAvailability returns value of Availability
17499 func (o *MobileGateway) GetAvailability() types.EAvailability {
17500 return o.Availability
17501 }
17502
17503 // SetAvailability sets value to Availability
17504 func (o *MobileGateway) SetAvailability(v types.EAvailability) {
17505 o.Availability = v
17506 }
17507
17508 // GetClass returns value of Class
17509 func (o *MobileGateway) GetClass() string {
17510 return o.Class
17511 }
17512
17513 // SetClass sets value to Class
17514 func (o *MobileGateway) SetClass(v string) {
17515 o.Class = v
17516 }
17517
17518 // GetIconID returns value of IconID
17519 func (o *MobileGateway) GetIconID() types.ID {
17520 return o.IconID
17521 }
17522
17523 // SetIconID sets value to IconID
17524 func (o *MobileGateway) SetIconID(v types.ID) {
17525 o.IconID = v
17526 }
17527
17528 // GetCreatedAt returns value of CreatedAt
17529 func (o *MobileGateway) GetCreatedAt() time.Time {
17530 return o.CreatedAt
17531 }
17532
17533 // SetCreatedAt sets value to CreatedAt
17534 func (o *MobileGateway) SetCreatedAt(v time.Time) {
17535 o.CreatedAt = v
17536 }
17537
17538 // GetInstanceHostName returns value of InstanceHostName
17539 func (o *MobileGateway) GetInstanceHostName() string {
17540 return o.InstanceHostName
17541 }
17542
17543 // SetInstanceHostName sets value to InstanceHostName
17544 func (o *MobileGateway) SetInstanceHostName(v string) {
17545 o.InstanceHostName = v
17546 }
17547
17548 // GetInstanceHostInfoURL returns value of InstanceHostInfoURL
17549 func (o *MobileGateway) GetInstanceHostInfoURL() string {
17550 return o.InstanceHostInfoURL
17551 }
17552
17553 // SetInstanceHostInfoURL sets value to InstanceHostInfoURL
17554 func (o *MobileGateway) SetInstanceHostInfoURL(v string) {
17555 o.InstanceHostInfoURL = v
17556 }
17557
17558 // GetInstanceStatus returns value of InstanceStatus
17559 func (o *MobileGateway) GetInstanceStatus() types.EServerInstanceStatus {
17560 return o.InstanceStatus
17561 }
17562
17563 // SetInstanceStatus sets value to InstanceStatus
17564 func (o *MobileGateway) SetInstanceStatus(v types.EServerInstanceStatus) {
17565 o.InstanceStatus = v
17566 }
17567
17568 // GetInstanceStatusChangedAt returns value of InstanceStatusChangedAt
17569 func (o *MobileGateway) GetInstanceStatusChangedAt() time.Time {
17570 return o.InstanceStatusChangedAt
17571 }
17572
17573 // SetInstanceStatusChangedAt sets value to InstanceStatusChangedAt
17574 func (o *MobileGateway) SetInstanceStatusChangedAt(v time.Time) {
17575 o.InstanceStatusChangedAt = v
17576 }
17577
17578 // GetInterfaces returns value of Interfaces
17579 func (o *MobileGateway) GetInterfaces() []*MobileGatewayInterface {
17580 return o.Interfaces
17581 }
17582
17583 // SetInterfaces sets value to Interfaces
17584 func (o *MobileGateway) SetInterfaces(v []*MobileGatewayInterface) {
17585 o.Interfaces = v
17586 }
17587
17588 // GetZoneID returns value of ZoneID
17589 func (o *MobileGateway) GetZoneID() types.ID {
17590 return o.ZoneID
17591 }
17592
17593 // SetZoneID sets value to ZoneID
17594 func (o *MobileGateway) SetZoneID(v types.ID) {
17595 o.ZoneID = v
17596 }
17597
17598 // GetGlobalAddress returns value of GlobalAddress
17599 func (o *MobileGateway) GetGlobalAddress() string {
17600 return o.GlobalAddress
17601 }
17602
17603 // SetGlobalAddress sets value to GlobalAddress
17604 func (o *MobileGateway) SetGlobalAddress(v string) {
17605 o.GlobalAddress = v
17606 }
17607
17608 // GetInterfaceSettings returns value of InterfaceSettings
17609 func (o *MobileGateway) GetInterfaceSettings() []*MobileGatewayInterfaceSetting {
17610 return o.InterfaceSettings
17611 }
17612
17613 // SetInterfaceSettings sets value to InterfaceSettings
17614 func (o *MobileGateway) SetInterfaceSettings(v []*MobileGatewayInterfaceSetting) {
17615 o.InterfaceSettings = v
17616 }
17617
17618 // GetStaticRoutes returns value of StaticRoutes
17619 func (o *MobileGateway) GetStaticRoutes() []*MobileGatewayStaticRoute {
17620 return o.StaticRoutes
17621 }
17622
17623 // SetStaticRoutes sets value to StaticRoutes
17624 func (o *MobileGateway) SetStaticRoutes(v []*MobileGatewayStaticRoute) {
17625 o.StaticRoutes = v
17626 }
17627
17628 // GetInternetConnectionEnabled returns value of InternetConnectionEnabled
17629 func (o *MobileGateway) GetInternetConnectionEnabled() types.StringFlag {
17630 return o.InternetConnectionEnabled
17631 }
17632
17633 // SetInternetConnectionEnabled sets value to InternetConnectionEnabled
17634 func (o *MobileGateway) SetInternetConnectionEnabled(v types.StringFlag) {
17635 o.InternetConnectionEnabled = v
17636 }
17637
17638 // GetInterDeviceCommunicationEnabled returns value of InterDeviceCommunicationEnabled
17639 func (o *MobileGateway) GetInterDeviceCommunicationEnabled() types.StringFlag {
17640 return o.InterDeviceCommunicationEnabled
17641 }
17642
17643 // SetInterDeviceCommunicationEnabled sets value to InterDeviceCommunicationEnabled
17644 func (o *MobileGateway) SetInterDeviceCommunicationEnabled(v types.StringFlag) {
17645 o.InterDeviceCommunicationEnabled = v
17646 }
17647
17648 // GetSettingsHash returns value of SettingsHash
17649 func (o *MobileGateway) GetSettingsHash() string {
17650 return o.SettingsHash
17651 }
17652
17653 // SetSettingsHash sets value to SettingsHash
17654 func (o *MobileGateway) SetSettingsHash(v string) {
17655 o.SettingsHash = v
17656 }
17657
17658 /*************************************************
17659 * MobileGatewayInterface
17660 *************************************************/
17661
17662 // MobileGatewayInterface represents API parameter/response structure
17663 type MobileGatewayInterface struct {
17664 ID types.ID
17665 MACAddress string
17666 IPAddress string
17667 UserIPAddress string
17668 HostName string
17669 SwitchID types.ID `mapconv:"Switch.ID"`
17670 SwitchName string `mapconv:"Switch.Name"`
17671 SwitchScope types.EScope `mapconv:"Switch.Scope"`
17672 UserSubnetDefaultRoute string `mapconv:"Switch.UserSubnet.DefaultRoute"`
17673 UserSubnetNetworkMaskLen int `mapconv:"Switch.UserSubnet.NetworkMaskLen"`
17674 SubnetDefaultRoute string `mapconv:"Switch.Subnet.DefaultRoute"`
17675 SubnetNetworkMaskLen int `mapconv:"Switch.Subnet.NetworkMaskLen"`
17676 SubnetNetworkAddress string `mapconv:"Switch.Subnet.NetworkAddress"`
17677 SubnetBandWidthMbps int `mapconv:"Switch.Subnet.Internet.BandWidthMbps"`
17678 PacketFilterID types.ID `mapconv:"PacketFilter.ID"`
17679 PacketFilterName string `mapconv:"PacketFilter.Name"`
17680 PacketFilterRequiredHostVersion types.StringNumber `mapconv:"PacketFilter.RequiredHostVersionn"`
17681 UpstreamType types.EUpstreamNetworkType
17682 Index int `mapconv:",omitempty"`
17683 }
17684
17685 // setDefaults implements iaas.argumentDefaulter
17686 func (o *MobileGatewayInterface) setDefaults() interface{} {
17687 return &struct {
17688 ID types.ID
17689 MACAddress string
17690 IPAddress string
17691 UserIPAddress string
17692 HostName string
17693 SwitchID types.ID `mapconv:"Switch.ID"`
17694 SwitchName string `mapconv:"Switch.Name"`
17695 SwitchScope types.EScope `mapconv:"Switch.Scope"`
17696 UserSubnetDefaultRoute string `mapconv:"Switch.UserSubnet.DefaultRoute"`
17697 UserSubnetNetworkMaskLen int `mapconv:"Switch.UserSubnet.NetworkMaskLen"`
17698 SubnetDefaultRoute string `mapconv:"Switch.Subnet.DefaultRoute"`
17699 SubnetNetworkMaskLen int `mapconv:"Switch.Subnet.NetworkMaskLen"`
17700 SubnetNetworkAddress string `mapconv:"Switch.Subnet.NetworkAddress"`
17701 SubnetBandWidthMbps int `mapconv:"Switch.Subnet.Internet.BandWidthMbps"`
17702 PacketFilterID types.ID `mapconv:"PacketFilter.ID"`
17703 PacketFilterName string `mapconv:"PacketFilter.Name"`
17704 PacketFilterRequiredHostVersion types.StringNumber `mapconv:"PacketFilter.RequiredHostVersionn"`
17705 UpstreamType types.EUpstreamNetworkType
17706 Index int `mapconv:",omitempty"`
17707 }{
17708 ID: o.GetID(),
17709 MACAddress: o.GetMACAddress(),
17710 IPAddress: o.GetIPAddress(),
17711 UserIPAddress: o.GetUserIPAddress(),
17712 HostName: o.GetHostName(),
17713 SwitchID: o.GetSwitchID(),
17714 SwitchName: o.GetSwitchName(),
17715 SwitchScope: o.GetSwitchScope(),
17716 UserSubnetDefaultRoute: o.GetUserSubnetDefaultRoute(),
17717 UserSubnetNetworkMaskLen: o.GetUserSubnetNetworkMaskLen(),
17718 SubnetDefaultRoute: o.GetSubnetDefaultRoute(),
17719 SubnetNetworkMaskLen: o.GetSubnetNetworkMaskLen(),
17720 SubnetNetworkAddress: o.GetSubnetNetworkAddress(),
17721 SubnetBandWidthMbps: o.GetSubnetBandWidthMbps(),
17722 PacketFilterID: o.GetPacketFilterID(),
17723 PacketFilterName: o.GetPacketFilterName(),
17724 PacketFilterRequiredHostVersion: o.GetPacketFilterRequiredHostVersion(),
17725 UpstreamType: o.GetUpstreamType(),
17726 Index: o.GetIndex(),
17727 }
17728 }
17729
17730 // GetID returns value of ID
17731 func (o *MobileGatewayInterface) GetID() types.ID {
17732 return o.ID
17733 }
17734
17735 // SetID sets value to ID
17736 func (o *MobileGatewayInterface) SetID(v types.ID) {
17737 o.ID = v
17738 }
17739
17740 // SetStringID .
17741 func (o *MobileGatewayInterface) SetStringID(id string) {
17742 accessor.SetStringID(o, id)
17743 }
17744
17745 // GetStringID .
17746 func (o *MobileGatewayInterface) GetStringID() string {
17747 return accessor.GetStringID(o)
17748 }
17749
17750 // SetInt64ID .
17751 func (o *MobileGatewayInterface) SetInt64ID(id int64) {
17752 accessor.SetInt64ID(o, id)
17753 }
17754
17755 // GetInt64ID .
17756 func (o *MobileGatewayInterface) GetInt64ID() int64 {
17757 return accessor.GetInt64ID(o)
17758 }
17759
17760 // GetMACAddress returns value of MACAddress
17761 func (o *MobileGatewayInterface) GetMACAddress() string {
17762 return o.MACAddress
17763 }
17764
17765 // SetMACAddress sets value to MACAddress
17766 func (o *MobileGatewayInterface) SetMACAddress(v string) {
17767 o.MACAddress = v
17768 }
17769
17770 // GetIPAddress returns value of IPAddress
17771 func (o *MobileGatewayInterface) GetIPAddress() string {
17772 return o.IPAddress
17773 }
17774
17775 // SetIPAddress sets value to IPAddress
17776 func (o *MobileGatewayInterface) SetIPAddress(v string) {
17777 o.IPAddress = v
17778 }
17779
17780 // GetUserIPAddress returns value of UserIPAddress
17781 func (o *MobileGatewayInterface) GetUserIPAddress() string {
17782 return o.UserIPAddress
17783 }
17784
17785 // SetUserIPAddress sets value to UserIPAddress
17786 func (o *MobileGatewayInterface) SetUserIPAddress(v string) {
17787 o.UserIPAddress = v
17788 }
17789
17790 // GetHostName returns value of HostName
17791 func (o *MobileGatewayInterface) GetHostName() string {
17792 return o.HostName
17793 }
17794
17795 // SetHostName sets value to HostName
17796 func (o *MobileGatewayInterface) SetHostName(v string) {
17797 o.HostName = v
17798 }
17799
17800 // GetSwitchID returns value of SwitchID
17801 func (o *MobileGatewayInterface) GetSwitchID() types.ID {
17802 return o.SwitchID
17803 }
17804
17805 // SetSwitchID sets value to SwitchID
17806 func (o *MobileGatewayInterface) SetSwitchID(v types.ID) {
17807 o.SwitchID = v
17808 }
17809
17810 // GetSwitchName returns value of SwitchName
17811 func (o *MobileGatewayInterface) GetSwitchName() string {
17812 return o.SwitchName
17813 }
17814
17815 // SetSwitchName sets value to SwitchName
17816 func (o *MobileGatewayInterface) SetSwitchName(v string) {
17817 o.SwitchName = v
17818 }
17819
17820 // GetSwitchScope returns value of SwitchScope
17821 func (o *MobileGatewayInterface) GetSwitchScope() types.EScope {
17822 return o.SwitchScope
17823 }
17824
17825 // SetSwitchScope sets value to SwitchScope
17826 func (o *MobileGatewayInterface) SetSwitchScope(v types.EScope) {
17827 o.SwitchScope = v
17828 }
17829
17830 // GetUserSubnetDefaultRoute returns value of UserSubnetDefaultRoute
17831 func (o *MobileGatewayInterface) GetUserSubnetDefaultRoute() string {
17832 return o.UserSubnetDefaultRoute
17833 }
17834
17835 // SetUserSubnetDefaultRoute sets value to UserSubnetDefaultRoute
17836 func (o *MobileGatewayInterface) SetUserSubnetDefaultRoute(v string) {
17837 o.UserSubnetDefaultRoute = v
17838 }
17839
17840 // GetUserSubnetNetworkMaskLen returns value of UserSubnetNetworkMaskLen
17841 func (o *MobileGatewayInterface) GetUserSubnetNetworkMaskLen() int {
17842 return o.UserSubnetNetworkMaskLen
17843 }
17844
17845 // SetUserSubnetNetworkMaskLen sets value to UserSubnetNetworkMaskLen
17846 func (o *MobileGatewayInterface) SetUserSubnetNetworkMaskLen(v int) {
17847 o.UserSubnetNetworkMaskLen = v
17848 }
17849
17850 // GetSubnetDefaultRoute returns value of SubnetDefaultRoute
17851 func (o *MobileGatewayInterface) GetSubnetDefaultRoute() string {
17852 return o.SubnetDefaultRoute
17853 }
17854
17855 // SetSubnetDefaultRoute sets value to SubnetDefaultRoute
17856 func (o *MobileGatewayInterface) SetSubnetDefaultRoute(v string) {
17857 o.SubnetDefaultRoute = v
17858 }
17859
17860 // GetSubnetNetworkMaskLen returns value of SubnetNetworkMaskLen
17861 func (o *MobileGatewayInterface) GetSubnetNetworkMaskLen() int {
17862 return o.SubnetNetworkMaskLen
17863 }
17864
17865 // SetSubnetNetworkMaskLen sets value to SubnetNetworkMaskLen
17866 func (o *MobileGatewayInterface) SetSubnetNetworkMaskLen(v int) {
17867 o.SubnetNetworkMaskLen = v
17868 }
17869
17870 // GetSubnetNetworkAddress returns value of SubnetNetworkAddress
17871 func (o *MobileGatewayInterface) GetSubnetNetworkAddress() string {
17872 return o.SubnetNetworkAddress
17873 }
17874
17875 // SetSubnetNetworkAddress sets value to SubnetNetworkAddress
17876 func (o *MobileGatewayInterface) SetSubnetNetworkAddress(v string) {
17877 o.SubnetNetworkAddress = v
17878 }
17879
17880 // GetSubnetBandWidthMbps returns value of SubnetBandWidthMbps
17881 func (o *MobileGatewayInterface) GetSubnetBandWidthMbps() int {
17882 return o.SubnetBandWidthMbps
17883 }
17884
17885 // SetSubnetBandWidthMbps sets value to SubnetBandWidthMbps
17886 func (o *MobileGatewayInterface) SetSubnetBandWidthMbps(v int) {
17887 o.SubnetBandWidthMbps = v
17888 }
17889
17890 // GetPacketFilterID returns value of PacketFilterID
17891 func (o *MobileGatewayInterface) GetPacketFilterID() types.ID {
17892 return o.PacketFilterID
17893 }
17894
17895 // SetPacketFilterID sets value to PacketFilterID
17896 func (o *MobileGatewayInterface) SetPacketFilterID(v types.ID) {
17897 o.PacketFilterID = v
17898 }
17899
17900 // GetPacketFilterName returns value of PacketFilterName
17901 func (o *MobileGatewayInterface) GetPacketFilterName() string {
17902 return o.PacketFilterName
17903 }
17904
17905 // SetPacketFilterName sets value to PacketFilterName
17906 func (o *MobileGatewayInterface) SetPacketFilterName(v string) {
17907 o.PacketFilterName = v
17908 }
17909
17910 // GetPacketFilterRequiredHostVersion returns value of PacketFilterRequiredHostVersion
17911 func (o *MobileGatewayInterface) GetPacketFilterRequiredHostVersion() types.StringNumber {
17912 return o.PacketFilterRequiredHostVersion
17913 }
17914
17915 // SetPacketFilterRequiredHostVersion sets value to PacketFilterRequiredHostVersion
17916 func (o *MobileGatewayInterface) SetPacketFilterRequiredHostVersion(v types.StringNumber) {
17917 o.PacketFilterRequiredHostVersion = v
17918 }
17919
17920 // GetUpstreamType returns value of UpstreamType
17921 func (o *MobileGatewayInterface) GetUpstreamType() types.EUpstreamNetworkType {
17922 return o.UpstreamType
17923 }
17924
17925 // SetUpstreamType sets value to UpstreamType
17926 func (o *MobileGatewayInterface) SetUpstreamType(v types.EUpstreamNetworkType) {
17927 o.UpstreamType = v
17928 }
17929
17930 // GetIndex returns value of Index
17931 func (o *MobileGatewayInterface) GetIndex() int {
17932 return o.Index
17933 }
17934
17935 // SetIndex sets value to Index
17936 func (o *MobileGatewayInterface) SetIndex(v int) {
17937 o.Index = v
17938 }
17939
17940 /*************************************************
17941 * MobileGatewayInterfaceSetting
17942 *************************************************/
17943
17944 // MobileGatewayInterfaceSetting represents API parameter/response structure
17945 type MobileGatewayInterfaceSetting struct {
17946 IPAddress []string
17947 NetworkMaskLen int
17948 Index int
17949 }
17950
17951 // setDefaults implements iaas.argumentDefaulter
17952 func (o *MobileGatewayInterfaceSetting) setDefaults() interface{} {
17953 return &struct {
17954 IPAddress []string
17955 NetworkMaskLen int
17956 Index int
17957 }{
17958 IPAddress: o.GetIPAddress(),
17959 NetworkMaskLen: o.GetNetworkMaskLen(),
17960 Index: o.GetIndex(),
17961 }
17962 }
17963
17964 // GetIPAddress returns value of IPAddress
17965 func (o *MobileGatewayInterfaceSetting) GetIPAddress() []string {
17966 return o.IPAddress
17967 }
17968
17969 // SetIPAddress sets value to IPAddress
17970 func (o *MobileGatewayInterfaceSetting) SetIPAddress(v []string) {
17971 o.IPAddress = v
17972 }
17973
17974 // GetNetworkMaskLen returns value of NetworkMaskLen
17975 func (o *MobileGatewayInterfaceSetting) GetNetworkMaskLen() int {
17976 return o.NetworkMaskLen
17977 }
17978
17979 // SetNetworkMaskLen sets value to NetworkMaskLen
17980 func (o *MobileGatewayInterfaceSetting) SetNetworkMaskLen(v int) {
17981 o.NetworkMaskLen = v
17982 }
17983
17984 // GetIndex returns value of Index
17985 func (o *MobileGatewayInterfaceSetting) GetIndex() int {
17986 return o.Index
17987 }
17988
17989 // SetIndex sets value to Index
17990 func (o *MobileGatewayInterfaceSetting) SetIndex(v int) {
17991 o.Index = v
17992 }
17993
17994 /*************************************************
17995 * MobileGatewayStaticRoute
17996 *************************************************/
17997
17998 // MobileGatewayStaticRoute represents API parameter/response structure
17999 type MobileGatewayStaticRoute struct {
18000 Prefix string
18001 NextHop string
18002 }
18003
18004 // setDefaults implements iaas.argumentDefaulter
18005 func (o *MobileGatewayStaticRoute) setDefaults() interface{} {
18006 return &struct {
18007 Prefix string
18008 NextHop string
18009 }{
18010 Prefix: o.GetPrefix(),
18011 NextHop: o.GetNextHop(),
18012 }
18013 }
18014
18015 // GetPrefix returns value of Prefix
18016 func (o *MobileGatewayStaticRoute) GetPrefix() string {
18017 return o.Prefix
18018 }
18019
18020 // SetPrefix sets value to Prefix
18021 func (o *MobileGatewayStaticRoute) SetPrefix(v string) {
18022 o.Prefix = v
18023 }
18024
18025 // GetNextHop returns value of NextHop
18026 func (o *MobileGatewayStaticRoute) GetNextHop() string {
18027 return o.NextHop
18028 }
18029
18030 // SetNextHop sets value to NextHop
18031 func (o *MobileGatewayStaticRoute) SetNextHop(v string) {
18032 o.NextHop = v
18033 }
18034
18035 /*************************************************
18036 * MobileGatewayCreateRequest
18037 *************************************************/
18038
18039 // MobileGatewayCreateRequest represents API parameter/response structure
18040 type MobileGatewayCreateRequest struct {
18041 Name string
18042 Description string
18043 Tags types.Tags
18044 IconID types.ID `mapconv:"Icon.ID"`
18045 StaticRoutes []*MobileGatewayStaticRoute `json:",omitempty" mapconv:"Settings.MobileGateway.[]StaticRoutes,omitempty,recursive"`
18046 InternetConnectionEnabled types.StringFlag `mapconv:"Settings.MobileGateway.InternetConnection.Enabled"`
18047 InterDeviceCommunicationEnabled types.StringFlag `mapconv:"Settings.MobileGateway.InterDeviceCommunication.Enabled"`
18048 }
18049
18050 // setDefaults implements iaas.argumentDefaulter
18051 func (o *MobileGatewayCreateRequest) setDefaults() interface{} {
18052 return &struct {
18053 Name string
18054 Description string
18055 Tags types.Tags
18056 IconID types.ID `mapconv:"Icon.ID"`
18057 StaticRoutes []*MobileGatewayStaticRoute `json:",omitempty" mapconv:"Settings.MobileGateway.[]StaticRoutes,omitempty,recursive"`
18058 InternetConnectionEnabled types.StringFlag `mapconv:"Settings.MobileGateway.InternetConnection.Enabled"`
18059 InterDeviceCommunicationEnabled types.StringFlag `mapconv:"Settings.MobileGateway.InterDeviceCommunication.Enabled"`
18060 Class string
18061 PlanID types.ID `mapconv:"Remark.Plan.ID/Plan.ID"`
18062 SwitchID string `mapconv:"Remark.Switch.Scope"`
18063 }{
18064 Name: o.GetName(),
18065 Description: o.GetDescription(),
18066 Tags: o.GetTags(),
18067 IconID: o.GetIconID(),
18068 StaticRoutes: o.GetStaticRoutes(),
18069 InternetConnectionEnabled: o.GetInternetConnectionEnabled(),
18070 InterDeviceCommunicationEnabled: o.GetInterDeviceCommunicationEnabled(),
18071 Class: "mobilegateway",
18072 PlanID: types.ID(2),
18073 SwitchID: "shared",
18074 }
18075 }
18076
18077 // GetName returns value of Name
18078 func (o *MobileGatewayCreateRequest) GetName() string {
18079 return o.Name
18080 }
18081
18082 // SetName sets value to Name
18083 func (o *MobileGatewayCreateRequest) SetName(v string) {
18084 o.Name = v
18085 }
18086
18087 // GetDescription returns value of Description
18088 func (o *MobileGatewayCreateRequest) GetDescription() string {
18089 return o.Description
18090 }
18091
18092 // SetDescription sets value to Description
18093 func (o *MobileGatewayCreateRequest) SetDescription(v string) {
18094 o.Description = v
18095 }
18096
18097 // GetTags returns value of Tags
18098 func (o *MobileGatewayCreateRequest) GetTags() types.Tags {
18099 return o.Tags
18100 }
18101
18102 // SetTags sets value to Tags
18103 func (o *MobileGatewayCreateRequest) SetTags(v types.Tags) {
18104 o.Tags = v
18105 }
18106
18107 // HasTag 指定のタグが存在する場合trueを返す
18108 func (o *MobileGatewayCreateRequest) HasTag(tag string) bool {
18109 return accessor.HasTag(o, tag)
18110 }
18111
18112 // AppendTag 指定のタグを追加
18113 func (o *MobileGatewayCreateRequest) AppendTag(tag string) {
18114 accessor.AppendTag(o, tag)
18115 }
18116
18117 // RemoveTag 指定のタグを削除
18118 func (o *MobileGatewayCreateRequest) RemoveTag(tag string) {
18119 accessor.RemoveTag(o, tag)
18120 }
18121
18122 // ClearTags タグを全クリア
18123 func (o *MobileGatewayCreateRequest) ClearTags() {
18124 accessor.ClearTags(o)
18125 }
18126
18127 // GetIconID returns value of IconID
18128 func (o *MobileGatewayCreateRequest) GetIconID() types.ID {
18129 return o.IconID
18130 }
18131
18132 // SetIconID sets value to IconID
18133 func (o *MobileGatewayCreateRequest) SetIconID(v types.ID) {
18134 o.IconID = v
18135 }
18136
18137 // GetStaticRoutes returns value of StaticRoutes
18138 func (o *MobileGatewayCreateRequest) GetStaticRoutes() []*MobileGatewayStaticRoute {
18139 return o.StaticRoutes
18140 }
18141
18142 // SetStaticRoutes sets value to StaticRoutes
18143 func (o *MobileGatewayCreateRequest) SetStaticRoutes(v []*MobileGatewayStaticRoute) {
18144 o.StaticRoutes = v
18145 }
18146
18147 // GetInternetConnectionEnabled returns value of InternetConnectionEnabled
18148 func (o *MobileGatewayCreateRequest) GetInternetConnectionEnabled() types.StringFlag {
18149 return o.InternetConnectionEnabled
18150 }
18151
18152 // SetInternetConnectionEnabled sets value to InternetConnectionEnabled
18153 func (o *MobileGatewayCreateRequest) SetInternetConnectionEnabled(v types.StringFlag) {
18154 o.InternetConnectionEnabled = v
18155 }
18156
18157 // GetInterDeviceCommunicationEnabled returns value of InterDeviceCommunicationEnabled
18158 func (o *MobileGatewayCreateRequest) GetInterDeviceCommunicationEnabled() types.StringFlag {
18159 return o.InterDeviceCommunicationEnabled
18160 }
18161
18162 // SetInterDeviceCommunicationEnabled sets value to InterDeviceCommunicationEnabled
18163 func (o *MobileGatewayCreateRequest) SetInterDeviceCommunicationEnabled(v types.StringFlag) {
18164 o.InterDeviceCommunicationEnabled = v
18165 }
18166
18167 /*************************************************
18168 * MobileGatewayUpdateRequest
18169 *************************************************/
18170
18171 // MobileGatewayUpdateRequest represents API parameter/response structure
18172 type MobileGatewayUpdateRequest struct {
18173 Name string
18174 Description string
18175 Tags types.Tags
18176 IconID types.ID `mapconv:"Icon.ID"`
18177 InterfaceSettings []*MobileGatewayInterfaceSetting `mapconv:"Settings.MobileGateway.[]Interfaces,recursive"`
18178 StaticRoutes []*MobileGatewayStaticRoute `mapconv:"Settings.MobileGateway.[]StaticRoutes,recursive"`
18179 InternetConnectionEnabled types.StringFlag `mapconv:"Settings.MobileGateway.InternetConnection.Enabled"`
18180 InterDeviceCommunicationEnabled types.StringFlag `mapconv:"Settings.MobileGateway.InterDeviceCommunication.Enabled"`
18181 SettingsHash string `json:",omitempty" mapconv:",omitempty"`
18182 }
18183
18184 // setDefaults implements iaas.argumentDefaulter
18185 func (o *MobileGatewayUpdateRequest) setDefaults() interface{} {
18186 return &struct {
18187 Name string
18188 Description string
18189 Tags types.Tags
18190 IconID types.ID `mapconv:"Icon.ID"`
18191 InterfaceSettings []*MobileGatewayInterfaceSetting `mapconv:"Settings.MobileGateway.[]Interfaces,recursive"`
18192 StaticRoutes []*MobileGatewayStaticRoute `mapconv:"Settings.MobileGateway.[]StaticRoutes,recursive"`
18193 InternetConnectionEnabled types.StringFlag `mapconv:"Settings.MobileGateway.InternetConnection.Enabled"`
18194 InterDeviceCommunicationEnabled types.StringFlag `mapconv:"Settings.MobileGateway.InterDeviceCommunication.Enabled"`
18195 SettingsHash string `json:",omitempty" mapconv:",omitempty"`
18196 }{
18197 Name: o.GetName(),
18198 Description: o.GetDescription(),
18199 Tags: o.GetTags(),
18200 IconID: o.GetIconID(),
18201 InterfaceSettings: o.GetInterfaceSettings(),
18202 StaticRoutes: o.GetStaticRoutes(),
18203 InternetConnectionEnabled: o.GetInternetConnectionEnabled(),
18204 InterDeviceCommunicationEnabled: o.GetInterDeviceCommunicationEnabled(),
18205 SettingsHash: o.GetSettingsHash(),
18206 }
18207 }
18208
18209 // GetName returns value of Name
18210 func (o *MobileGatewayUpdateRequest) GetName() string {
18211 return o.Name
18212 }
18213
18214 // SetName sets value to Name
18215 func (o *MobileGatewayUpdateRequest) SetName(v string) {
18216 o.Name = v
18217 }
18218
18219 // GetDescription returns value of Description
18220 func (o *MobileGatewayUpdateRequest) GetDescription() string {
18221 return o.Description
18222 }
18223
18224 // SetDescription sets value to Description
18225 func (o *MobileGatewayUpdateRequest) SetDescription(v string) {
18226 o.Description = v
18227 }
18228
18229 // GetTags returns value of Tags
18230 func (o *MobileGatewayUpdateRequest) GetTags() types.Tags {
18231 return o.Tags
18232 }
18233
18234 // SetTags sets value to Tags
18235 func (o *MobileGatewayUpdateRequest) SetTags(v types.Tags) {
18236 o.Tags = v
18237 }
18238
18239 // HasTag 指定のタグが存在する場合trueを返す
18240 func (o *MobileGatewayUpdateRequest) HasTag(tag string) bool {
18241 return accessor.HasTag(o, tag)
18242 }
18243
18244 // AppendTag 指定のタグを追加
18245 func (o *MobileGatewayUpdateRequest) AppendTag(tag string) {
18246 accessor.AppendTag(o, tag)
18247 }
18248
18249 // RemoveTag 指定のタグを削除
18250 func (o *MobileGatewayUpdateRequest) RemoveTag(tag string) {
18251 accessor.RemoveTag(o, tag)
18252 }
18253
18254 // ClearTags タグを全クリア
18255 func (o *MobileGatewayUpdateRequest) ClearTags() {
18256 accessor.ClearTags(o)
18257 }
18258
18259 // GetIconID returns value of IconID
18260 func (o *MobileGatewayUpdateRequest) GetIconID() types.ID {
18261 return o.IconID
18262 }
18263
18264 // SetIconID sets value to IconID
18265 func (o *MobileGatewayUpdateRequest) SetIconID(v types.ID) {
18266 o.IconID = v
18267 }
18268
18269 // GetInterfaceSettings returns value of InterfaceSettings
18270 func (o *MobileGatewayUpdateRequest) GetInterfaceSettings() []*MobileGatewayInterfaceSetting {
18271 return o.InterfaceSettings
18272 }
18273
18274 // SetInterfaceSettings sets value to InterfaceSettings
18275 func (o *MobileGatewayUpdateRequest) SetInterfaceSettings(v []*MobileGatewayInterfaceSetting) {
18276 o.InterfaceSettings = v
18277 }
18278
18279 // GetStaticRoutes returns value of StaticRoutes
18280 func (o *MobileGatewayUpdateRequest) GetStaticRoutes() []*MobileGatewayStaticRoute {
18281 return o.StaticRoutes
18282 }
18283
18284 // SetStaticRoutes sets value to StaticRoutes
18285 func (o *MobileGatewayUpdateRequest) SetStaticRoutes(v []*MobileGatewayStaticRoute) {
18286 o.StaticRoutes = v
18287 }
18288
18289 // GetInternetConnectionEnabled returns value of InternetConnectionEnabled
18290 func (o *MobileGatewayUpdateRequest) GetInternetConnectionEnabled() types.StringFlag {
18291 return o.InternetConnectionEnabled
18292 }
18293
18294 // SetInternetConnectionEnabled sets value to InternetConnectionEnabled
18295 func (o *MobileGatewayUpdateRequest) SetInternetConnectionEnabled(v types.StringFlag) {
18296 o.InternetConnectionEnabled = v
18297 }
18298
18299 // GetInterDeviceCommunicationEnabled returns value of InterDeviceCommunicationEnabled
18300 func (o *MobileGatewayUpdateRequest) GetInterDeviceCommunicationEnabled() types.StringFlag {
18301 return o.InterDeviceCommunicationEnabled
18302 }
18303
18304 // SetInterDeviceCommunicationEnabled sets value to InterDeviceCommunicationEnabled
18305 func (o *MobileGatewayUpdateRequest) SetInterDeviceCommunicationEnabled(v types.StringFlag) {
18306 o.InterDeviceCommunicationEnabled = v
18307 }
18308
18309 // GetSettingsHash returns value of SettingsHash
18310 func (o *MobileGatewayUpdateRequest) GetSettingsHash() string {
18311 return o.SettingsHash
18312 }
18313
18314 // SetSettingsHash sets value to SettingsHash
18315 func (o *MobileGatewayUpdateRequest) SetSettingsHash(v string) {
18316 o.SettingsHash = v
18317 }
18318
18319 /*************************************************
18320 * MobileGatewayUpdateSettingsRequest
18321 *************************************************/
18322
18323 // MobileGatewayUpdateSettingsRequest represents API parameter/response structure
18324 type MobileGatewayUpdateSettingsRequest struct {
18325 InterfaceSettings []*MobileGatewayInterfaceSetting `mapconv:"Settings.MobileGateway.[]Interfaces,recursive"`
18326 StaticRoutes []*MobileGatewayStaticRoute `mapconv:"Settings.MobileGateway.[]StaticRoutes,recursive"`
18327 InternetConnectionEnabled types.StringFlag `mapconv:"Settings.MobileGateway.InternetConnection.Enabled"`
18328 InterDeviceCommunicationEnabled types.StringFlag `mapconv:"Settings.MobileGateway.InterDeviceCommunication.Enabled"`
18329 SettingsHash string `json:",omitempty" mapconv:",omitempty"`
18330 }
18331
18332 // setDefaults implements iaas.argumentDefaulter
18333 func (o *MobileGatewayUpdateSettingsRequest) setDefaults() interface{} {
18334 return &struct {
18335 InterfaceSettings []*MobileGatewayInterfaceSetting `mapconv:"Settings.MobileGateway.[]Interfaces,recursive"`
18336 StaticRoutes []*MobileGatewayStaticRoute `mapconv:"Settings.MobileGateway.[]StaticRoutes,recursive"`
18337 InternetConnectionEnabled types.StringFlag `mapconv:"Settings.MobileGateway.InternetConnection.Enabled"`
18338 InterDeviceCommunicationEnabled types.StringFlag `mapconv:"Settings.MobileGateway.InterDeviceCommunication.Enabled"`
18339 SettingsHash string `json:",omitempty" mapconv:",omitempty"`
18340 }{
18341 InterfaceSettings: o.GetInterfaceSettings(),
18342 StaticRoutes: o.GetStaticRoutes(),
18343 InternetConnectionEnabled: o.GetInternetConnectionEnabled(),
18344 InterDeviceCommunicationEnabled: o.GetInterDeviceCommunicationEnabled(),
18345 SettingsHash: o.GetSettingsHash(),
18346 }
18347 }
18348
18349 // GetInterfaceSettings returns value of InterfaceSettings
18350 func (o *MobileGatewayUpdateSettingsRequest) GetInterfaceSettings() []*MobileGatewayInterfaceSetting {
18351 return o.InterfaceSettings
18352 }
18353
18354 // SetInterfaceSettings sets value to InterfaceSettings
18355 func (o *MobileGatewayUpdateSettingsRequest) SetInterfaceSettings(v []*MobileGatewayInterfaceSetting) {
18356 o.InterfaceSettings = v
18357 }
18358
18359 // GetStaticRoutes returns value of StaticRoutes
18360 func (o *MobileGatewayUpdateSettingsRequest) GetStaticRoutes() []*MobileGatewayStaticRoute {
18361 return o.StaticRoutes
18362 }
18363
18364 // SetStaticRoutes sets value to StaticRoutes
18365 func (o *MobileGatewayUpdateSettingsRequest) SetStaticRoutes(v []*MobileGatewayStaticRoute) {
18366 o.StaticRoutes = v
18367 }
18368
18369 // GetInternetConnectionEnabled returns value of InternetConnectionEnabled
18370 func (o *MobileGatewayUpdateSettingsRequest) GetInternetConnectionEnabled() types.StringFlag {
18371 return o.InternetConnectionEnabled
18372 }
18373
18374 // SetInternetConnectionEnabled sets value to InternetConnectionEnabled
18375 func (o *MobileGatewayUpdateSettingsRequest) SetInternetConnectionEnabled(v types.StringFlag) {
18376 o.InternetConnectionEnabled = v
18377 }
18378
18379 // GetInterDeviceCommunicationEnabled returns value of InterDeviceCommunicationEnabled
18380 func (o *MobileGatewayUpdateSettingsRequest) GetInterDeviceCommunicationEnabled() types.StringFlag {
18381 return o.InterDeviceCommunicationEnabled
18382 }
18383
18384 // SetInterDeviceCommunicationEnabled sets value to InterDeviceCommunicationEnabled
18385 func (o *MobileGatewayUpdateSettingsRequest) SetInterDeviceCommunicationEnabled(v types.StringFlag) {
18386 o.InterDeviceCommunicationEnabled = v
18387 }
18388
18389 // GetSettingsHash returns value of SettingsHash
18390 func (o *MobileGatewayUpdateSettingsRequest) GetSettingsHash() string {
18391 return o.SettingsHash
18392 }
18393
18394 // SetSettingsHash sets value to SettingsHash
18395 func (o *MobileGatewayUpdateSettingsRequest) SetSettingsHash(v string) {
18396 o.SettingsHash = v
18397 }
18398
18399 /*************************************************
18400 * MobileGatewayDNSSetting
18401 *************************************************/
18402
18403 // MobileGatewayDNSSetting represents API parameter/response structure
18404 type MobileGatewayDNSSetting struct {
18405 DNS1 string
18406 DNS2 string
18407 }
18408
18409 // setDefaults implements iaas.argumentDefaulter
18410 func (o *MobileGatewayDNSSetting) setDefaults() interface{} {
18411 return &struct {
18412 DNS1 string
18413 DNS2 string
18414 }{
18415 DNS1: o.GetDNS1(),
18416 DNS2: o.GetDNS2(),
18417 }
18418 }
18419
18420 // GetDNS1 returns value of DNS1
18421 func (o *MobileGatewayDNSSetting) GetDNS1() string {
18422 return o.DNS1
18423 }
18424
18425 // SetDNS1 sets value to DNS1
18426 func (o *MobileGatewayDNSSetting) SetDNS1(v string) {
18427 o.DNS1 = v
18428 }
18429
18430 // GetDNS2 returns value of DNS2
18431 func (o *MobileGatewayDNSSetting) GetDNS2() string {
18432 return o.DNS2
18433 }
18434
18435 // SetDNS2 sets value to DNS2
18436 func (o *MobileGatewayDNSSetting) SetDNS2(v string) {
18437 o.DNS2 = v
18438 }
18439
18440 /*************************************************
18441 * MobileGatewaySIMRoute
18442 *************************************************/
18443
18444 // MobileGatewaySIMRoute represents API parameter/response structure
18445 type MobileGatewaySIMRoute struct {
18446 ResourceID string
18447 Prefix string
18448 ICCID string
18449 }
18450
18451 // setDefaults implements iaas.argumentDefaulter
18452 func (o *MobileGatewaySIMRoute) setDefaults() interface{} {
18453 return &struct {
18454 ResourceID string
18455 Prefix string
18456 ICCID string
18457 }{
18458 ResourceID: o.GetResourceID(),
18459 Prefix: o.GetPrefix(),
18460 ICCID: o.GetICCID(),
18461 }
18462 }
18463
18464 // GetResourceID returns value of ResourceID
18465 func (o *MobileGatewaySIMRoute) GetResourceID() string {
18466 return o.ResourceID
18467 }
18468
18469 // SetResourceID sets value to ResourceID
18470 func (o *MobileGatewaySIMRoute) SetResourceID(v string) {
18471 o.ResourceID = v
18472 }
18473
18474 // GetPrefix returns value of Prefix
18475 func (o *MobileGatewaySIMRoute) GetPrefix() string {
18476 return o.Prefix
18477 }
18478
18479 // SetPrefix sets value to Prefix
18480 func (o *MobileGatewaySIMRoute) SetPrefix(v string) {
18481 o.Prefix = v
18482 }
18483
18484 // GetICCID returns value of ICCID
18485 func (o *MobileGatewaySIMRoute) GetICCID() string {
18486 return o.ICCID
18487 }
18488
18489 // SetICCID sets value to ICCID
18490 func (o *MobileGatewaySIMRoute) SetICCID(v string) {
18491 o.ICCID = v
18492 }
18493
18494 /*************************************************
18495 * MobileGatewaySIMRouteParam
18496 *************************************************/
18497
18498 // MobileGatewaySIMRouteParam represents API parameter/response structure
18499 type MobileGatewaySIMRouteParam struct {
18500 ResourceID string
18501 Prefix string
18502 }
18503
18504 // setDefaults implements iaas.argumentDefaulter
18505 func (o *MobileGatewaySIMRouteParam) setDefaults() interface{} {
18506 return &struct {
18507 ResourceID string
18508 Prefix string
18509 }{
18510 ResourceID: o.GetResourceID(),
18511 Prefix: o.GetPrefix(),
18512 }
18513 }
18514
18515 // GetResourceID returns value of ResourceID
18516 func (o *MobileGatewaySIMRouteParam) GetResourceID() string {
18517 return o.ResourceID
18518 }
18519
18520 // SetResourceID sets value to ResourceID
18521 func (o *MobileGatewaySIMRouteParam) SetResourceID(v string) {
18522 o.ResourceID = v
18523 }
18524
18525 // GetPrefix returns value of Prefix
18526 func (o *MobileGatewaySIMRouteParam) GetPrefix() string {
18527 return o.Prefix
18528 }
18529
18530 // SetPrefix sets value to Prefix
18531 func (o *MobileGatewaySIMRouteParam) SetPrefix(v string) {
18532 o.Prefix = v
18533 }
18534
18535 /*************************************************
18536 * MobileGatewaySIMInfo
18537 *************************************************/
18538
18539 // MobileGatewaySIMInfo represents API parameter/response structure
18540 type MobileGatewaySIMInfo struct {
18541 ICCID string
18542 IMSI []string
18543 IMEI string
18544 IP string
18545 SessionStatus string
18546 IMEILock bool
18547 Registered bool
18548 Activated bool
18549 ResourceID string
18550 RegisteredDate time.Time
18551 ActivatedDate time.Time
18552 DeactivatedDate time.Time
18553 SIMGroupID string
18554 TrafficBytesOfCurrentMonth *SIMTrafficBytes `mapconv:",recursive"`
18555 ConnectedIMEI string
18556 }
18557
18558 // setDefaults implements iaas.argumentDefaulter
18559 func (o *MobileGatewaySIMInfo) setDefaults() interface{} {
18560 return &struct {
18561 ICCID string
18562 IMSI []string
18563 IMEI string
18564 IP string
18565 SessionStatus string
18566 IMEILock bool
18567 Registered bool
18568 Activated bool
18569 ResourceID string
18570 RegisteredDate time.Time
18571 ActivatedDate time.Time
18572 DeactivatedDate time.Time
18573 SIMGroupID string
18574 TrafficBytesOfCurrentMonth *SIMTrafficBytes `mapconv:",recursive"`
18575 ConnectedIMEI string
18576 }{
18577 ICCID: o.GetICCID(),
18578 IMSI: o.GetIMSI(),
18579 IMEI: o.GetIMEI(),
18580 IP: o.GetIP(),
18581 SessionStatus: o.GetSessionStatus(),
18582 IMEILock: o.GetIMEILock(),
18583 Registered: o.GetRegistered(),
18584 Activated: o.GetActivated(),
18585 ResourceID: o.GetResourceID(),
18586 RegisteredDate: o.GetRegisteredDate(),
18587 ActivatedDate: o.GetActivatedDate(),
18588 DeactivatedDate: o.GetDeactivatedDate(),
18589 SIMGroupID: o.GetSIMGroupID(),
18590 TrafficBytesOfCurrentMonth: o.GetTrafficBytesOfCurrentMonth(),
18591 ConnectedIMEI: o.GetConnectedIMEI(),
18592 }
18593 }
18594
18595 // GetICCID returns value of ICCID
18596 func (o *MobileGatewaySIMInfo) GetICCID() string {
18597 return o.ICCID
18598 }
18599
18600 // SetICCID sets value to ICCID
18601 func (o *MobileGatewaySIMInfo) SetICCID(v string) {
18602 o.ICCID = v
18603 }
18604
18605 // GetIMSI returns value of IMSI
18606 func (o *MobileGatewaySIMInfo) GetIMSI() []string {
18607 return o.IMSI
18608 }
18609
18610 // SetIMSI sets value to IMSI
18611 func (o *MobileGatewaySIMInfo) SetIMSI(v []string) {
18612 o.IMSI = v
18613 }
18614
18615 // GetIMEI returns value of IMEI
18616 func (o *MobileGatewaySIMInfo) GetIMEI() string {
18617 return o.IMEI
18618 }
18619
18620 // SetIMEI sets value to IMEI
18621 func (o *MobileGatewaySIMInfo) SetIMEI(v string) {
18622 o.IMEI = v
18623 }
18624
18625 // GetIP returns value of IP
18626 func (o *MobileGatewaySIMInfo) GetIP() string {
18627 return o.IP
18628 }
18629
18630 // SetIP sets value to IP
18631 func (o *MobileGatewaySIMInfo) SetIP(v string) {
18632 o.IP = v
18633 }
18634
18635 // GetSessionStatus returns value of SessionStatus
18636 func (o *MobileGatewaySIMInfo) GetSessionStatus() string {
18637 return o.SessionStatus
18638 }
18639
18640 // SetSessionStatus sets value to SessionStatus
18641 func (o *MobileGatewaySIMInfo) SetSessionStatus(v string) {
18642 o.SessionStatus = v
18643 }
18644
18645 // GetIMEILock returns value of IMEILock
18646 func (o *MobileGatewaySIMInfo) GetIMEILock() bool {
18647 return o.IMEILock
18648 }
18649
18650 // SetIMEILock sets value to IMEILock
18651 func (o *MobileGatewaySIMInfo) SetIMEILock(v bool) {
18652 o.IMEILock = v
18653 }
18654
18655 // GetRegistered returns value of Registered
18656 func (o *MobileGatewaySIMInfo) GetRegistered() bool {
18657 return o.Registered
18658 }
18659
18660 // SetRegistered sets value to Registered
18661 func (o *MobileGatewaySIMInfo) SetRegistered(v bool) {
18662 o.Registered = v
18663 }
18664
18665 // GetActivated returns value of Activated
18666 func (o *MobileGatewaySIMInfo) GetActivated() bool {
18667 return o.Activated
18668 }
18669
18670 // SetActivated sets value to Activated
18671 func (o *MobileGatewaySIMInfo) SetActivated(v bool) {
18672 o.Activated = v
18673 }
18674
18675 // GetResourceID returns value of ResourceID
18676 func (o *MobileGatewaySIMInfo) GetResourceID() string {
18677 return o.ResourceID
18678 }
18679
18680 // SetResourceID sets value to ResourceID
18681 func (o *MobileGatewaySIMInfo) SetResourceID(v string) {
18682 o.ResourceID = v
18683 }
18684
18685 // GetRegisteredDate returns value of RegisteredDate
18686 func (o *MobileGatewaySIMInfo) GetRegisteredDate() time.Time {
18687 return o.RegisteredDate
18688 }
18689
18690 // SetRegisteredDate sets value to RegisteredDate
18691 func (o *MobileGatewaySIMInfo) SetRegisteredDate(v time.Time) {
18692 o.RegisteredDate = v
18693 }
18694
18695 // GetActivatedDate returns value of ActivatedDate
18696 func (o *MobileGatewaySIMInfo) GetActivatedDate() time.Time {
18697 return o.ActivatedDate
18698 }
18699
18700 // SetActivatedDate sets value to ActivatedDate
18701 func (o *MobileGatewaySIMInfo) SetActivatedDate(v time.Time) {
18702 o.ActivatedDate = v
18703 }
18704
18705 // GetDeactivatedDate returns value of DeactivatedDate
18706 func (o *MobileGatewaySIMInfo) GetDeactivatedDate() time.Time {
18707 return o.DeactivatedDate
18708 }
18709
18710 // SetDeactivatedDate sets value to DeactivatedDate
18711 func (o *MobileGatewaySIMInfo) SetDeactivatedDate(v time.Time) {
18712 o.DeactivatedDate = v
18713 }
18714
18715 // GetSIMGroupID returns value of SIMGroupID
18716 func (o *MobileGatewaySIMInfo) GetSIMGroupID() string {
18717 return o.SIMGroupID
18718 }
18719
18720 // SetSIMGroupID sets value to SIMGroupID
18721 func (o *MobileGatewaySIMInfo) SetSIMGroupID(v string) {
18722 o.SIMGroupID = v
18723 }
18724
18725 // GetTrafficBytesOfCurrentMonth returns value of TrafficBytesOfCurrentMonth
18726 func (o *MobileGatewaySIMInfo) GetTrafficBytesOfCurrentMonth() *SIMTrafficBytes {
18727 return o.TrafficBytesOfCurrentMonth
18728 }
18729
18730 // SetTrafficBytesOfCurrentMonth sets value to TrafficBytesOfCurrentMonth
18731 func (o *MobileGatewaySIMInfo) SetTrafficBytesOfCurrentMonth(v *SIMTrafficBytes) {
18732 o.TrafficBytesOfCurrentMonth = v
18733 }
18734
18735 // GetConnectedIMEI returns value of ConnectedIMEI
18736 func (o *MobileGatewaySIMInfo) GetConnectedIMEI() string {
18737 return o.ConnectedIMEI
18738 }
18739
18740 // SetConnectedIMEI sets value to ConnectedIMEI
18741 func (o *MobileGatewaySIMInfo) SetConnectedIMEI(v string) {
18742 o.ConnectedIMEI = v
18743 }
18744
18745 /*************************************************
18746 * SIMTrafficBytes
18747 *************************************************/
18748
18749 // SIMTrafficBytes represents API parameter/response structure
18750 type SIMTrafficBytes struct {
18751 UplinkBytes int64
18752 DownlinkBytes int64
18753 }
18754
18755 // setDefaults implements iaas.argumentDefaulter
18756 func (o *SIMTrafficBytes) setDefaults() interface{} {
18757 return &struct {
18758 UplinkBytes int64
18759 DownlinkBytes int64
18760 }{
18761 UplinkBytes: o.GetUplinkBytes(),
18762 DownlinkBytes: o.GetDownlinkBytes(),
18763 }
18764 }
18765
18766 // GetUplinkBytes returns value of UplinkBytes
18767 func (o *SIMTrafficBytes) GetUplinkBytes() int64 {
18768 return o.UplinkBytes
18769 }
18770
18771 // SetUplinkBytes sets value to UplinkBytes
18772 func (o *SIMTrafficBytes) SetUplinkBytes(v int64) {
18773 o.UplinkBytes = v
18774 }
18775
18776 // GetDownlinkBytes returns value of DownlinkBytes
18777 func (o *SIMTrafficBytes) GetDownlinkBytes() int64 {
18778 return o.DownlinkBytes
18779 }
18780
18781 // SetDownlinkBytes sets value to DownlinkBytes
18782 func (o *SIMTrafficBytes) SetDownlinkBytes(v int64) {
18783 o.DownlinkBytes = v
18784 }
18785
18786 /*************************************************
18787 * MobileGatewayAddSIMRequest
18788 *************************************************/
18789
18790 // MobileGatewayAddSIMRequest represents API parameter/response structure
18791 type MobileGatewayAddSIMRequest struct {
18792 SIMID string `json:"resource_id" mapconv:"ResourceID"`
18793 }
18794
18795 // setDefaults implements iaas.argumentDefaulter
18796 func (o *MobileGatewayAddSIMRequest) setDefaults() interface{} {
18797 return &struct {
18798 SIMID string `json:"resource_id" mapconv:"ResourceID"`
18799 }{
18800 SIMID: o.GetSIMID(),
18801 }
18802 }
18803
18804 // GetSIMID returns value of SIMID
18805 func (o *MobileGatewayAddSIMRequest) GetSIMID() string {
18806 return o.SIMID
18807 }
18808
18809 // SetSIMID sets value to SIMID
18810 func (o *MobileGatewayAddSIMRequest) SetSIMID(v string) {
18811 o.SIMID = v
18812 }
18813
18814 /*************************************************
18815 * MobileGatewaySIMLogs
18816 *************************************************/
18817
18818 // MobileGatewaySIMLogs represents API parameter/response structure
18819 type MobileGatewaySIMLogs struct {
18820 Date time.Time
18821 SessionStatus string
18822 ResourceID string
18823 IMEI string
18824 IMSI string
18825 }
18826
18827 // setDefaults implements iaas.argumentDefaulter
18828 func (o *MobileGatewaySIMLogs) setDefaults() interface{} {
18829 return &struct {
18830 Date time.Time
18831 SessionStatus string
18832 ResourceID string
18833 IMEI string
18834 IMSI string
18835 }{
18836 Date: o.GetDate(),
18837 SessionStatus: o.GetSessionStatus(),
18838 ResourceID: o.GetResourceID(),
18839 IMEI: o.GetIMEI(),
18840 IMSI: o.GetIMSI(),
18841 }
18842 }
18843
18844 // GetDate returns value of Date
18845 func (o *MobileGatewaySIMLogs) GetDate() time.Time {
18846 return o.Date
18847 }
18848
18849 // SetDate sets value to Date
18850 func (o *MobileGatewaySIMLogs) SetDate(v time.Time) {
18851 o.Date = v
18852 }
18853
18854 // GetSessionStatus returns value of SessionStatus
18855 func (o *MobileGatewaySIMLogs) GetSessionStatus() string {
18856 return o.SessionStatus
18857 }
18858
18859 // SetSessionStatus sets value to SessionStatus
18860 func (o *MobileGatewaySIMLogs) SetSessionStatus(v string) {
18861 o.SessionStatus = v
18862 }
18863
18864 // GetResourceID returns value of ResourceID
18865 func (o *MobileGatewaySIMLogs) GetResourceID() string {
18866 return o.ResourceID
18867 }
18868
18869 // SetResourceID sets value to ResourceID
18870 func (o *MobileGatewaySIMLogs) SetResourceID(v string) {
18871 o.ResourceID = v
18872 }
18873
18874 // GetIMEI returns value of IMEI
18875 func (o *MobileGatewaySIMLogs) GetIMEI() string {
18876 return o.IMEI
18877 }
18878
18879 // SetIMEI sets value to IMEI
18880 func (o *MobileGatewaySIMLogs) SetIMEI(v string) {
18881 o.IMEI = v
18882 }
18883
18884 // GetIMSI returns value of IMSI
18885 func (o *MobileGatewaySIMLogs) GetIMSI() string {
18886 return o.IMSI
18887 }
18888
18889 // SetIMSI sets value to IMSI
18890 func (o *MobileGatewaySIMLogs) SetIMSI(v string) {
18891 o.IMSI = v
18892 }
18893
18894 /*************************************************
18895 * MobileGatewayTrafficControl
18896 *************************************************/
18897
18898 // MobileGatewayTrafficControl represents API parameter/response structure
18899 type MobileGatewayTrafficControl struct {
18900 TrafficQuotaInMB int
18901 BandWidthLimitInKbps int
18902 EmailNotifyEnabled bool `mapconv:"EMailConfig.Enabled"`
18903 SlackNotifyEnabled bool `mapconv:"SlackConfig.Enabled"`
18904 SlackNotifyWebhooksURL string `mapconv:"SlackConfig.IncomingWebhooksURL"`
18905 AutoTrafficShaping bool
18906 }
18907
18908 // setDefaults implements iaas.argumentDefaulter
18909 func (o *MobileGatewayTrafficControl) setDefaults() interface{} {
18910 return &struct {
18911 TrafficQuotaInMB int
18912 BandWidthLimitInKbps int
18913 EmailNotifyEnabled bool `mapconv:"EMailConfig.Enabled"`
18914 SlackNotifyEnabled bool `mapconv:"SlackConfig.Enabled"`
18915 SlackNotifyWebhooksURL string `mapconv:"SlackConfig.IncomingWebhooksURL"`
18916 AutoTrafficShaping bool
18917 }{
18918 TrafficQuotaInMB: o.GetTrafficQuotaInMB(),
18919 BandWidthLimitInKbps: o.GetBandWidthLimitInKbps(),
18920 EmailNotifyEnabled: o.GetEmailNotifyEnabled(),
18921 SlackNotifyEnabled: o.GetSlackNotifyEnabled(),
18922 SlackNotifyWebhooksURL: o.GetSlackNotifyWebhooksURL(),
18923 AutoTrafficShaping: o.GetAutoTrafficShaping(),
18924 }
18925 }
18926
18927 // GetTrafficQuotaInMB returns value of TrafficQuotaInMB
18928 func (o *MobileGatewayTrafficControl) GetTrafficQuotaInMB() int {
18929 return o.TrafficQuotaInMB
18930 }
18931
18932 // SetTrafficQuotaInMB sets value to TrafficQuotaInMB
18933 func (o *MobileGatewayTrafficControl) SetTrafficQuotaInMB(v int) {
18934 o.TrafficQuotaInMB = v
18935 }
18936
18937 // GetBandWidthLimitInKbps returns value of BandWidthLimitInKbps
18938 func (o *MobileGatewayTrafficControl) GetBandWidthLimitInKbps() int {
18939 return o.BandWidthLimitInKbps
18940 }
18941
18942 // SetBandWidthLimitInKbps sets value to BandWidthLimitInKbps
18943 func (o *MobileGatewayTrafficControl) SetBandWidthLimitInKbps(v int) {
18944 o.BandWidthLimitInKbps = v
18945 }
18946
18947 // GetEmailNotifyEnabled returns value of EmailNotifyEnabled
18948 func (o *MobileGatewayTrafficControl) GetEmailNotifyEnabled() bool {
18949 return o.EmailNotifyEnabled
18950 }
18951
18952 // SetEmailNotifyEnabled sets value to EmailNotifyEnabled
18953 func (o *MobileGatewayTrafficControl) SetEmailNotifyEnabled(v bool) {
18954 o.EmailNotifyEnabled = v
18955 }
18956
18957 // GetSlackNotifyEnabled returns value of SlackNotifyEnabled
18958 func (o *MobileGatewayTrafficControl) GetSlackNotifyEnabled() bool {
18959 return o.SlackNotifyEnabled
18960 }
18961
18962 // SetSlackNotifyEnabled sets value to SlackNotifyEnabled
18963 func (o *MobileGatewayTrafficControl) SetSlackNotifyEnabled(v bool) {
18964 o.SlackNotifyEnabled = v
18965 }
18966
18967 // GetSlackNotifyWebhooksURL returns value of SlackNotifyWebhooksURL
18968 func (o *MobileGatewayTrafficControl) GetSlackNotifyWebhooksURL() string {
18969 return o.SlackNotifyWebhooksURL
18970 }
18971
18972 // SetSlackNotifyWebhooksURL sets value to SlackNotifyWebhooksURL
18973 func (o *MobileGatewayTrafficControl) SetSlackNotifyWebhooksURL(v string) {
18974 o.SlackNotifyWebhooksURL = v
18975 }
18976
18977 // GetAutoTrafficShaping returns value of AutoTrafficShaping
18978 func (o *MobileGatewayTrafficControl) GetAutoTrafficShaping() bool {
18979 return o.AutoTrafficShaping
18980 }
18981
18982 // SetAutoTrafficShaping sets value to AutoTrafficShaping
18983 func (o *MobileGatewayTrafficControl) SetAutoTrafficShaping(v bool) {
18984 o.AutoTrafficShaping = v
18985 }
18986
18987 /*************************************************
18988 * MobileGatewayTrafficStatus
18989 *************************************************/
18990
18991 // MobileGatewayTrafficStatus represents API parameter/response structure
18992 type MobileGatewayTrafficStatus struct {
18993 UplinkBytes types.StringNumber
18994 DownlinkBytes types.StringNumber
18995 TrafficShaping bool
18996 }
18997
18998 // setDefaults implements iaas.argumentDefaulter
18999 func (o *MobileGatewayTrafficStatus) setDefaults() interface{} {
19000 return &struct {
19001 UplinkBytes types.StringNumber
19002 DownlinkBytes types.StringNumber
19003 TrafficShaping bool
19004 }{
19005 UplinkBytes: o.GetUplinkBytes(),
19006 DownlinkBytes: o.GetDownlinkBytes(),
19007 TrafficShaping: o.GetTrafficShaping(),
19008 }
19009 }
19010
19011 // GetUplinkBytes returns value of UplinkBytes
19012 func (o *MobileGatewayTrafficStatus) GetUplinkBytes() types.StringNumber {
19013 return o.UplinkBytes
19014 }
19015
19016 // SetUplinkBytes sets value to UplinkBytes
19017 func (o *MobileGatewayTrafficStatus) SetUplinkBytes(v types.StringNumber) {
19018 o.UplinkBytes = v
19019 }
19020
19021 // GetDownlinkBytes returns value of DownlinkBytes
19022 func (o *MobileGatewayTrafficStatus) GetDownlinkBytes() types.StringNumber {
19023 return o.DownlinkBytes
19024 }
19025
19026 // SetDownlinkBytes sets value to DownlinkBytes
19027 func (o *MobileGatewayTrafficStatus) SetDownlinkBytes(v types.StringNumber) {
19028 o.DownlinkBytes = v
19029 }
19030
19031 // GetTrafficShaping returns value of TrafficShaping
19032 func (o *MobileGatewayTrafficStatus) GetTrafficShaping() bool {
19033 return o.TrafficShaping
19034 }
19035
19036 // SetTrafficShaping sets value to TrafficShaping
19037 func (o *MobileGatewayTrafficStatus) SetTrafficShaping(v bool) {
19038 o.TrafficShaping = v
19039 }
19040
19041 /*************************************************
19042 * NFS
19043 *************************************************/
19044
19045 // NFS represents API parameter/response structure
19046 type NFS struct {
19047 ID types.ID
19048 Name string
19049 Description string
19050 Tags types.Tags
19051 Availability types.EAvailability
19052 Class string
19053 InstanceHostName string `mapconv:"Instance.Host.Name"`
19054 InstanceHostInfoURL string `mapconv:"Instance.Host.InfoURL"`
19055 InstanceStatus types.EServerInstanceStatus `mapconv:"Instance.Status"`
19056 InstanceStatusChangedAt time.Time `mapconv:"Instance.StatusChangedAt"`
19057 Interfaces []*InterfaceView `json:",omitempty" mapconv:"[]Interfaces,recursive,omitempty"`
19058 PlanID types.ID `mapconv:"Remark.Plan.ID/Plan.ID"`
19059 SwitchID types.ID `mapconv:"Remark.Switch.ID"`
19060 DefaultRoute string `mapconv:"Remark.Network.DefaultRoute"`
19061 NetworkMaskLen int `mapconv:"Remark.Network.NetworkMaskLen"`
19062 IPAddresses []string `mapconv:"Remark.[]Servers.IPAddress"`
19063 ZoneID types.ID `mapconv:"Remark.Zone.ID"`
19064 IconID types.ID `mapconv:"Icon.ID"`
19065 CreatedAt time.Time
19066 ModifiedAt time.Time
19067 SwitchName string `mapconv:"Switch.Name"`
19068 }
19069
19070 // setDefaults implements iaas.argumentDefaulter
19071 func (o *NFS) setDefaults() interface{} {
19072 return &struct {
19073 ID types.ID
19074 Name string
19075 Description string
19076 Tags types.Tags
19077 Availability types.EAvailability
19078 Class string
19079 InstanceHostName string `mapconv:"Instance.Host.Name"`
19080 InstanceHostInfoURL string `mapconv:"Instance.Host.InfoURL"`
19081 InstanceStatus types.EServerInstanceStatus `mapconv:"Instance.Status"`
19082 InstanceStatusChangedAt time.Time `mapconv:"Instance.StatusChangedAt"`
19083 Interfaces []*InterfaceView `json:",omitempty" mapconv:"[]Interfaces,recursive,omitempty"`
19084 PlanID types.ID `mapconv:"Remark.Plan.ID/Plan.ID"`
19085 SwitchID types.ID `mapconv:"Remark.Switch.ID"`
19086 DefaultRoute string `mapconv:"Remark.Network.DefaultRoute"`
19087 NetworkMaskLen int `mapconv:"Remark.Network.NetworkMaskLen"`
19088 IPAddresses []string `mapconv:"Remark.[]Servers.IPAddress"`
19089 ZoneID types.ID `mapconv:"Remark.Zone.ID"`
19090 IconID types.ID `mapconv:"Icon.ID"`
19091 CreatedAt time.Time
19092 ModifiedAt time.Time
19093 SwitchName string `mapconv:"Switch.Name"`
19094 }{
19095 ID: o.GetID(),
19096 Name: o.GetName(),
19097 Description: o.GetDescription(),
19098 Tags: o.GetTags(),
19099 Availability: o.GetAvailability(),
19100 Class: o.GetClass(),
19101 InstanceHostName: o.GetInstanceHostName(),
19102 InstanceHostInfoURL: o.GetInstanceHostInfoURL(),
19103 InstanceStatus: o.GetInstanceStatus(),
19104 InstanceStatusChangedAt: o.GetInstanceStatusChangedAt(),
19105 Interfaces: o.GetInterfaces(),
19106 PlanID: o.GetPlanID(),
19107 SwitchID: o.GetSwitchID(),
19108 DefaultRoute: o.GetDefaultRoute(),
19109 NetworkMaskLen: o.GetNetworkMaskLen(),
19110 IPAddresses: o.GetIPAddresses(),
19111 ZoneID: o.GetZoneID(),
19112 IconID: o.GetIconID(),
19113 CreatedAt: o.GetCreatedAt(),
19114 ModifiedAt: o.GetModifiedAt(),
19115 SwitchName: o.GetSwitchName(),
19116 }
19117 }
19118
19119 // GetID returns value of ID
19120 func (o *NFS) GetID() types.ID {
19121 return o.ID
19122 }
19123
19124 // SetID sets value to ID
19125 func (o *NFS) SetID(v types.ID) {
19126 o.ID = v
19127 }
19128
19129 // SetStringID .
19130 func (o *NFS) SetStringID(id string) {
19131 accessor.SetStringID(o, id)
19132 }
19133
19134 // GetStringID .
19135 func (o *NFS) GetStringID() string {
19136 return accessor.GetStringID(o)
19137 }
19138
19139 // SetInt64ID .
19140 func (o *NFS) SetInt64ID(id int64) {
19141 accessor.SetInt64ID(o, id)
19142 }
19143
19144 // GetInt64ID .
19145 func (o *NFS) GetInt64ID() int64 {
19146 return accessor.GetInt64ID(o)
19147 }
19148
19149 // GetName returns value of Name
19150 func (o *NFS) GetName() string {
19151 return o.Name
19152 }
19153
19154 // SetName sets value to Name
19155 func (o *NFS) SetName(v string) {
19156 o.Name = v
19157 }
19158
19159 // GetDescription returns value of Description
19160 func (o *NFS) GetDescription() string {
19161 return o.Description
19162 }
19163
19164 // SetDescription sets value to Description
19165 func (o *NFS) SetDescription(v string) {
19166 o.Description = v
19167 }
19168
19169 // GetTags returns value of Tags
19170 func (o *NFS) GetTags() types.Tags {
19171 return o.Tags
19172 }
19173
19174 // SetTags sets value to Tags
19175 func (o *NFS) SetTags(v types.Tags) {
19176 o.Tags = v
19177 }
19178
19179 // HasTag 指定のタグが存在する場合trueを返す
19180 func (o *NFS) HasTag(tag string) bool {
19181 return accessor.HasTag(o, tag)
19182 }
19183
19184 // AppendTag 指定のタグを追加
19185 func (o *NFS) AppendTag(tag string) {
19186 accessor.AppendTag(o, tag)
19187 }
19188
19189 // RemoveTag 指定のタグを削除
19190 func (o *NFS) RemoveTag(tag string) {
19191 accessor.RemoveTag(o, tag)
19192 }
19193
19194 // ClearTags タグを全クリア
19195 func (o *NFS) ClearTags() {
19196 accessor.ClearTags(o)
19197 }
19198
19199 // GetAvailability returns value of Availability
19200 func (o *NFS) GetAvailability() types.EAvailability {
19201 return o.Availability
19202 }
19203
19204 // SetAvailability sets value to Availability
19205 func (o *NFS) SetAvailability(v types.EAvailability) {
19206 o.Availability = v
19207 }
19208
19209 // GetClass returns value of Class
19210 func (o *NFS) GetClass() string {
19211 return o.Class
19212 }
19213
19214 // SetClass sets value to Class
19215 func (o *NFS) SetClass(v string) {
19216 o.Class = v
19217 }
19218
19219 // GetInstanceHostName returns value of InstanceHostName
19220 func (o *NFS) GetInstanceHostName() string {
19221 return o.InstanceHostName
19222 }
19223
19224 // SetInstanceHostName sets value to InstanceHostName
19225 func (o *NFS) SetInstanceHostName(v string) {
19226 o.InstanceHostName = v
19227 }
19228
19229 // GetInstanceHostInfoURL returns value of InstanceHostInfoURL
19230 func (o *NFS) GetInstanceHostInfoURL() string {
19231 return o.InstanceHostInfoURL
19232 }
19233
19234 // SetInstanceHostInfoURL sets value to InstanceHostInfoURL
19235 func (o *NFS) SetInstanceHostInfoURL(v string) {
19236 o.InstanceHostInfoURL = v
19237 }
19238
19239 // GetInstanceStatus returns value of InstanceStatus
19240 func (o *NFS) GetInstanceStatus() types.EServerInstanceStatus {
19241 return o.InstanceStatus
19242 }
19243
19244 // SetInstanceStatus sets value to InstanceStatus
19245 func (o *NFS) SetInstanceStatus(v types.EServerInstanceStatus) {
19246 o.InstanceStatus = v
19247 }
19248
19249 // GetInstanceStatusChangedAt returns value of InstanceStatusChangedAt
19250 func (o *NFS) GetInstanceStatusChangedAt() time.Time {
19251 return o.InstanceStatusChangedAt
19252 }
19253
19254 // SetInstanceStatusChangedAt sets value to InstanceStatusChangedAt
19255 func (o *NFS) SetInstanceStatusChangedAt(v time.Time) {
19256 o.InstanceStatusChangedAt = v
19257 }
19258
19259 // GetInterfaces returns value of Interfaces
19260 func (o *NFS) GetInterfaces() []*InterfaceView {
19261 return o.Interfaces
19262 }
19263
19264 // SetInterfaces sets value to Interfaces
19265 func (o *NFS) SetInterfaces(v []*InterfaceView) {
19266 o.Interfaces = v
19267 }
19268
19269 // GetPlanID returns value of PlanID
19270 func (o *NFS) GetPlanID() types.ID {
19271 return o.PlanID
19272 }
19273
19274 // SetPlanID sets value to PlanID
19275 func (o *NFS) SetPlanID(v types.ID) {
19276 o.PlanID = v
19277 }
19278
19279 // GetSwitchID returns value of SwitchID
19280 func (o *NFS) GetSwitchID() types.ID {
19281 return o.SwitchID
19282 }
19283
19284 // SetSwitchID sets value to SwitchID
19285 func (o *NFS) SetSwitchID(v types.ID) {
19286 o.SwitchID = v
19287 }
19288
19289 // GetDefaultRoute returns value of DefaultRoute
19290 func (o *NFS) GetDefaultRoute() string {
19291 return o.DefaultRoute
19292 }
19293
19294 // SetDefaultRoute sets value to DefaultRoute
19295 func (o *NFS) SetDefaultRoute(v string) {
19296 o.DefaultRoute = v
19297 }
19298
19299 // GetNetworkMaskLen returns value of NetworkMaskLen
19300 func (o *NFS) GetNetworkMaskLen() int {
19301 return o.NetworkMaskLen
19302 }
19303
19304 // SetNetworkMaskLen sets value to NetworkMaskLen
19305 func (o *NFS) SetNetworkMaskLen(v int) {
19306 o.NetworkMaskLen = v
19307 }
19308
19309 // GetIPAddresses returns value of IPAddresses
19310 func (o *NFS) GetIPAddresses() []string {
19311 return o.IPAddresses
19312 }
19313
19314 // SetIPAddresses sets value to IPAddresses
19315 func (o *NFS) SetIPAddresses(v []string) {
19316 o.IPAddresses = v
19317 }
19318
19319 // GetZoneID returns value of ZoneID
19320 func (o *NFS) GetZoneID() types.ID {
19321 return o.ZoneID
19322 }
19323
19324 // SetZoneID sets value to ZoneID
19325 func (o *NFS) SetZoneID(v types.ID) {
19326 o.ZoneID = v
19327 }
19328
19329 // GetIconID returns value of IconID
19330 func (o *NFS) GetIconID() types.ID {
19331 return o.IconID
19332 }
19333
19334 // SetIconID sets value to IconID
19335 func (o *NFS) SetIconID(v types.ID) {
19336 o.IconID = v
19337 }
19338
19339 // GetCreatedAt returns value of CreatedAt
19340 func (o *NFS) GetCreatedAt() time.Time {
19341 return o.CreatedAt
19342 }
19343
19344 // SetCreatedAt sets value to CreatedAt
19345 func (o *NFS) SetCreatedAt(v time.Time) {
19346 o.CreatedAt = v
19347 }
19348
19349 // GetModifiedAt returns value of ModifiedAt
19350 func (o *NFS) GetModifiedAt() time.Time {
19351 return o.ModifiedAt
19352 }
19353
19354 // SetModifiedAt sets value to ModifiedAt
19355 func (o *NFS) SetModifiedAt(v time.Time) {
19356 o.ModifiedAt = v
19357 }
19358
19359 // GetSwitchName returns value of SwitchName
19360 func (o *NFS) GetSwitchName() string {
19361 return o.SwitchName
19362 }
19363
19364 // SetSwitchName sets value to SwitchName
19365 func (o *NFS) SetSwitchName(v string) {
19366 o.SwitchName = v
19367 }
19368
19369 /*************************************************
19370 * NFSCreateRequest
19371 *************************************************/
19372
19373 // NFSCreateRequest represents API parameter/response structure
19374 type NFSCreateRequest struct {
19375 SwitchID types.ID `mapconv:"Remark.Switch.ID"`
19376 PlanID types.ID `mapconv:"Remark.Plan.ID/Plan.ID"`
19377 IPAddresses []string `mapconv:"Remark.[]Servers.IPAddress"`
19378 NetworkMaskLen int `mapconv:"Remark.Network.NetworkMaskLen"`
19379 DefaultRoute string `mapconv:"Remark.Network.DefaultRoute"`
19380 Name string
19381 Description string
19382 Tags types.Tags
19383 IconID types.ID `mapconv:"Icon.ID"`
19384 }
19385
19386 // setDefaults implements iaas.argumentDefaulter
19387 func (o *NFSCreateRequest) setDefaults() interface{} {
19388 return &struct {
19389 SwitchID types.ID `mapconv:"Remark.Switch.ID"`
19390 PlanID types.ID `mapconv:"Remark.Plan.ID/Plan.ID"`
19391 IPAddresses []string `mapconv:"Remark.[]Servers.IPAddress"`
19392 NetworkMaskLen int `mapconv:"Remark.Network.NetworkMaskLen"`
19393 DefaultRoute string `mapconv:"Remark.Network.DefaultRoute"`
19394 Name string
19395 Description string
19396 Tags types.Tags
19397 IconID types.ID `mapconv:"Icon.ID"`
19398 Class string
19399 }{
19400 SwitchID: o.GetSwitchID(),
19401 PlanID: o.GetPlanID(),
19402 IPAddresses: o.GetIPAddresses(),
19403 NetworkMaskLen: o.GetNetworkMaskLen(),
19404 DefaultRoute: o.GetDefaultRoute(),
19405 Name: o.GetName(),
19406 Description: o.GetDescription(),
19407 Tags: o.GetTags(),
19408 IconID: o.GetIconID(),
19409 Class: "nfs",
19410 }
19411 }
19412
19413 // GetSwitchID returns value of SwitchID
19414 func (o *NFSCreateRequest) GetSwitchID() types.ID {
19415 return o.SwitchID
19416 }
19417
19418 // SetSwitchID sets value to SwitchID
19419 func (o *NFSCreateRequest) SetSwitchID(v types.ID) {
19420 o.SwitchID = v
19421 }
19422
19423 // GetPlanID returns value of PlanID
19424 func (o *NFSCreateRequest) GetPlanID() types.ID {
19425 return o.PlanID
19426 }
19427
19428 // SetPlanID sets value to PlanID
19429 func (o *NFSCreateRequest) SetPlanID(v types.ID) {
19430 o.PlanID = v
19431 }
19432
19433 // GetIPAddresses returns value of IPAddresses
19434 func (o *NFSCreateRequest) GetIPAddresses() []string {
19435 return o.IPAddresses
19436 }
19437
19438 // SetIPAddresses sets value to IPAddresses
19439 func (o *NFSCreateRequest) SetIPAddresses(v []string) {
19440 o.IPAddresses = v
19441 }
19442
19443 // GetNetworkMaskLen returns value of NetworkMaskLen
19444 func (o *NFSCreateRequest) GetNetworkMaskLen() int {
19445 return o.NetworkMaskLen
19446 }
19447
19448 // SetNetworkMaskLen sets value to NetworkMaskLen
19449 func (o *NFSCreateRequest) SetNetworkMaskLen(v int) {
19450 o.NetworkMaskLen = v
19451 }
19452
19453 // GetDefaultRoute returns value of DefaultRoute
19454 func (o *NFSCreateRequest) GetDefaultRoute() string {
19455 return o.DefaultRoute
19456 }
19457
19458 // SetDefaultRoute sets value to DefaultRoute
19459 func (o *NFSCreateRequest) SetDefaultRoute(v string) {
19460 o.DefaultRoute = v
19461 }
19462
19463 // GetName returns value of Name
19464 func (o *NFSCreateRequest) GetName() string {
19465 return o.Name
19466 }
19467
19468 // SetName sets value to Name
19469 func (o *NFSCreateRequest) SetName(v string) {
19470 o.Name = v
19471 }
19472
19473 // GetDescription returns value of Description
19474 func (o *NFSCreateRequest) GetDescription() string {
19475 return o.Description
19476 }
19477
19478 // SetDescription sets value to Description
19479 func (o *NFSCreateRequest) SetDescription(v string) {
19480 o.Description = v
19481 }
19482
19483 // GetTags returns value of Tags
19484 func (o *NFSCreateRequest) GetTags() types.Tags {
19485 return o.Tags
19486 }
19487
19488 // SetTags sets value to Tags
19489 func (o *NFSCreateRequest) SetTags(v types.Tags) {
19490 o.Tags = v
19491 }
19492
19493 // HasTag 指定のタグが存在する場合trueを返す
19494 func (o *NFSCreateRequest) HasTag(tag string) bool {
19495 return accessor.HasTag(o, tag)
19496 }
19497
19498 // AppendTag 指定のタグを追加
19499 func (o *NFSCreateRequest) AppendTag(tag string) {
19500 accessor.AppendTag(o, tag)
19501 }
19502
19503 // RemoveTag 指定のタグを削除
19504 func (o *NFSCreateRequest) RemoveTag(tag string) {
19505 accessor.RemoveTag(o, tag)
19506 }
19507
19508 // ClearTags タグを全クリア
19509 func (o *NFSCreateRequest) ClearTags() {
19510 accessor.ClearTags(o)
19511 }
19512
19513 // GetIconID returns value of IconID
19514 func (o *NFSCreateRequest) GetIconID() types.ID {
19515 return o.IconID
19516 }
19517
19518 // SetIconID sets value to IconID
19519 func (o *NFSCreateRequest) SetIconID(v types.ID) {
19520 o.IconID = v
19521 }
19522
19523 /*************************************************
19524 * NFSUpdateRequest
19525 *************************************************/
19526
19527 // NFSUpdateRequest represents API parameter/response structure
19528 type NFSUpdateRequest struct {
19529 Name string
19530 Description string
19531 Tags types.Tags
19532 IconID types.ID `mapconv:"Icon.ID"`
19533 }
19534
19535 // setDefaults implements iaas.argumentDefaulter
19536 func (o *NFSUpdateRequest) setDefaults() interface{} {
19537 return &struct {
19538 Name string
19539 Description string
19540 Tags types.Tags
19541 IconID types.ID `mapconv:"Icon.ID"`
19542 }{
19543 Name: o.GetName(),
19544 Description: o.GetDescription(),
19545 Tags: o.GetTags(),
19546 IconID: o.GetIconID(),
19547 }
19548 }
19549
19550 // GetName returns value of Name
19551 func (o *NFSUpdateRequest) GetName() string {
19552 return o.Name
19553 }
19554
19555 // SetName sets value to Name
19556 func (o *NFSUpdateRequest) SetName(v string) {
19557 o.Name = v
19558 }
19559
19560 // GetDescription returns value of Description
19561 func (o *NFSUpdateRequest) GetDescription() string {
19562 return o.Description
19563 }
19564
19565 // SetDescription sets value to Description
19566 func (o *NFSUpdateRequest) SetDescription(v string) {
19567 o.Description = v
19568 }
19569
19570 // GetTags returns value of Tags
19571 func (o *NFSUpdateRequest) GetTags() types.Tags {
19572 return o.Tags
19573 }
19574
19575 // SetTags sets value to Tags
19576 func (o *NFSUpdateRequest) SetTags(v types.Tags) {
19577 o.Tags = v
19578 }
19579
19580 // HasTag 指定のタグが存在する場合trueを返す
19581 func (o *NFSUpdateRequest) HasTag(tag string) bool {
19582 return accessor.HasTag(o, tag)
19583 }
19584
19585 // AppendTag 指定のタグを追加
19586 func (o *NFSUpdateRequest) AppendTag(tag string) {
19587 accessor.AppendTag(o, tag)
19588 }
19589
19590 // RemoveTag 指定のタグを削除
19591 func (o *NFSUpdateRequest) RemoveTag(tag string) {
19592 accessor.RemoveTag(o, tag)
19593 }
19594
19595 // ClearTags タグを全クリア
19596 func (o *NFSUpdateRequest) ClearTags() {
19597 accessor.ClearTags(o)
19598 }
19599
19600 // GetIconID returns value of IconID
19601 func (o *NFSUpdateRequest) GetIconID() types.ID {
19602 return o.IconID
19603 }
19604
19605 // SetIconID sets value to IconID
19606 func (o *NFSUpdateRequest) SetIconID(v types.ID) {
19607 o.IconID = v
19608 }
19609
19610 /*************************************************
19611 * FreeDiskSizeActivity
19612 *************************************************/
19613
19614 // FreeDiskSizeActivity represents API parameter/response structure
19615 type FreeDiskSizeActivity struct {
19616 Values []*MonitorFreeDiskSizeValue `mapconv:"[]FreeDiskSize"`
19617 }
19618
19619 // setDefaults implements iaas.argumentDefaulter
19620 func (o *FreeDiskSizeActivity) setDefaults() interface{} {
19621 return &struct {
19622 Values []*MonitorFreeDiskSizeValue `mapconv:"[]FreeDiskSize"`
19623 }{
19624 Values: o.GetValues(),
19625 }
19626 }
19627
19628 // GetValues returns value of Values
19629 func (o *FreeDiskSizeActivity) GetValues() []*MonitorFreeDiskSizeValue {
19630 return o.Values
19631 }
19632
19633 // SetValues sets value to Values
19634 func (o *FreeDiskSizeActivity) SetValues(v []*MonitorFreeDiskSizeValue) {
19635 o.Values = v
19636 }
19637
19638 /*************************************************
19639 * MonitorFreeDiskSizeValue
19640 *************************************************/
19641
19642 // MonitorFreeDiskSizeValue represents API parameter/response structure
19643 type MonitorFreeDiskSizeValue struct {
19644 Time time.Time `mapconv:",omitempty"`
19645 FreeDiskSize float64 `mapconv:",omitempty"`
19646 }
19647
19648 // setDefaults implements iaas.argumentDefaulter
19649 func (o *MonitorFreeDiskSizeValue) setDefaults() interface{} {
19650 return &struct {
19651 Time time.Time `mapconv:",omitempty"`
19652 FreeDiskSize float64 `mapconv:",omitempty"`
19653 }{
19654 Time: o.GetTime(),
19655 FreeDiskSize: o.GetFreeDiskSize(),
19656 }
19657 }
19658
19659 // GetTime returns value of Time
19660 func (o *MonitorFreeDiskSizeValue) GetTime() time.Time {
19661 return o.Time
19662 }
19663
19664 // SetTime sets value to Time
19665 func (o *MonitorFreeDiskSizeValue) SetTime(v time.Time) {
19666 o.Time = v
19667 }
19668
19669 // GetFreeDiskSize returns value of FreeDiskSize
19670 func (o *MonitorFreeDiskSizeValue) GetFreeDiskSize() float64 {
19671 return o.FreeDiskSize
19672 }
19673
19674 // SetFreeDiskSize sets value to FreeDiskSize
19675 func (o *MonitorFreeDiskSizeValue) SetFreeDiskSize(v float64) {
19676 o.FreeDiskSize = v
19677 }
19678
19679 /*************************************************
19680 * Note
19681 *************************************************/
19682
19683 // Note represents API parameter/response structure
19684 type Note struct {
19685 ID types.ID
19686 Name string
19687 Description string
19688 Tags types.Tags
19689 Availability types.EAvailability
19690 Scope types.EScope
19691 Class string
19692 Content string
19693 IconID types.ID `mapconv:"Icon.ID"`
19694 CreatedAt time.Time
19695 ModifiedAt time.Time
19696 }
19697
19698 // setDefaults implements iaas.argumentDefaulter
19699 func (o *Note) setDefaults() interface{} {
19700 return &struct {
19701 ID types.ID
19702 Name string
19703 Description string
19704 Tags types.Tags
19705 Availability types.EAvailability
19706 Scope types.EScope
19707 Class string
19708 Content string
19709 IconID types.ID `mapconv:"Icon.ID"`
19710 CreatedAt time.Time
19711 ModifiedAt time.Time
19712 }{
19713 ID: o.GetID(),
19714 Name: o.GetName(),
19715 Description: o.GetDescription(),
19716 Tags: o.GetTags(),
19717 Availability: o.GetAvailability(),
19718 Scope: o.GetScope(),
19719 Class: o.GetClass(),
19720 Content: o.GetContent(),
19721 IconID: o.GetIconID(),
19722 CreatedAt: o.GetCreatedAt(),
19723 ModifiedAt: o.GetModifiedAt(),
19724 }
19725 }
19726
19727 // GetID returns value of ID
19728 func (o *Note) GetID() types.ID {
19729 return o.ID
19730 }
19731
19732 // SetID sets value to ID
19733 func (o *Note) SetID(v types.ID) {
19734 o.ID = v
19735 }
19736
19737 // SetStringID .
19738 func (o *Note) SetStringID(id string) {
19739 accessor.SetStringID(o, id)
19740 }
19741
19742 // GetStringID .
19743 func (o *Note) GetStringID() string {
19744 return accessor.GetStringID(o)
19745 }
19746
19747 // SetInt64ID .
19748 func (o *Note) SetInt64ID(id int64) {
19749 accessor.SetInt64ID(o, id)
19750 }
19751
19752 // GetInt64ID .
19753 func (o *Note) GetInt64ID() int64 {
19754 return accessor.GetInt64ID(o)
19755 }
19756
19757 // GetName returns value of Name
19758 func (o *Note) GetName() string {
19759 return o.Name
19760 }
19761
19762 // SetName sets value to Name
19763 func (o *Note) SetName(v string) {
19764 o.Name = v
19765 }
19766
19767 // GetDescription returns value of Description
19768 func (o *Note) GetDescription() string {
19769 return o.Description
19770 }
19771
19772 // SetDescription sets value to Description
19773 func (o *Note) SetDescription(v string) {
19774 o.Description = v
19775 }
19776
19777 // GetTags returns value of Tags
19778 func (o *Note) GetTags() types.Tags {
19779 return o.Tags
19780 }
19781
19782 // SetTags sets value to Tags
19783 func (o *Note) SetTags(v types.Tags) {
19784 o.Tags = v
19785 }
19786
19787 // HasTag 指定のタグが存在する場合trueを返す
19788 func (o *Note) HasTag(tag string) bool {
19789 return accessor.HasTag(o, tag)
19790 }
19791
19792 // AppendTag 指定のタグを追加
19793 func (o *Note) AppendTag(tag string) {
19794 accessor.AppendTag(o, tag)
19795 }
19796
19797 // RemoveTag 指定のタグを削除
19798 func (o *Note) RemoveTag(tag string) {
19799 accessor.RemoveTag(o, tag)
19800 }
19801
19802 // ClearTags タグを全クリア
19803 func (o *Note) ClearTags() {
19804 accessor.ClearTags(o)
19805 }
19806
19807 // GetAvailability returns value of Availability
19808 func (o *Note) GetAvailability() types.EAvailability {
19809 return o.Availability
19810 }
19811
19812 // SetAvailability sets value to Availability
19813 func (o *Note) SetAvailability(v types.EAvailability) {
19814 o.Availability = v
19815 }
19816
19817 // GetScope returns value of Scope
19818 func (o *Note) GetScope() types.EScope {
19819 return o.Scope
19820 }
19821
19822 // SetScope sets value to Scope
19823 func (o *Note) SetScope(v types.EScope) {
19824 o.Scope = v
19825 }
19826
19827 // GetClass returns value of Class
19828 func (o *Note) GetClass() string {
19829 return o.Class
19830 }
19831
19832 // SetClass sets value to Class
19833 func (o *Note) SetClass(v string) {
19834 o.Class = v
19835 }
19836
19837 // GetContent returns value of Content
19838 func (o *Note) GetContent() string {
19839 return o.Content
19840 }
19841
19842 // SetContent sets value to Content
19843 func (o *Note) SetContent(v string) {
19844 o.Content = v
19845 }
19846
19847 // GetIconID returns value of IconID
19848 func (o *Note) GetIconID() types.ID {
19849 return o.IconID
19850 }
19851
19852 // SetIconID sets value to IconID
19853 func (o *Note) SetIconID(v types.ID) {
19854 o.IconID = v
19855 }
19856
19857 // GetCreatedAt returns value of CreatedAt
19858 func (o *Note) GetCreatedAt() time.Time {
19859 return o.CreatedAt
19860 }
19861
19862 // SetCreatedAt sets value to CreatedAt
19863 func (o *Note) SetCreatedAt(v time.Time) {
19864 o.CreatedAt = v
19865 }
19866
19867 // GetModifiedAt returns value of ModifiedAt
19868 func (o *Note) GetModifiedAt() time.Time {
19869 return o.ModifiedAt
19870 }
19871
19872 // SetModifiedAt sets value to ModifiedAt
19873 func (o *Note) SetModifiedAt(v time.Time) {
19874 o.ModifiedAt = v
19875 }
19876
19877 /*************************************************
19878 * NoteCreateRequest
19879 *************************************************/
19880
19881 // NoteCreateRequest represents API parameter/response structure
19882 type NoteCreateRequest struct {
19883 Name string
19884 Tags types.Tags
19885 IconID types.ID `mapconv:"Icon.ID"`
19886 Class string
19887 Content string
19888 }
19889
19890 // setDefaults implements iaas.argumentDefaulter
19891 func (o *NoteCreateRequest) setDefaults() interface{} {
19892 return &struct {
19893 Name string
19894 Tags types.Tags
19895 IconID types.ID `mapconv:"Icon.ID"`
19896 Class string
19897 Content string
19898 }{
19899 Name: o.GetName(),
19900 Tags: o.GetTags(),
19901 IconID: o.GetIconID(),
19902 Class: o.GetClass(),
19903 Content: o.GetContent(),
19904 }
19905 }
19906
19907 // GetName returns value of Name
19908 func (o *NoteCreateRequest) GetName() string {
19909 return o.Name
19910 }
19911
19912 // SetName sets value to Name
19913 func (o *NoteCreateRequest) SetName(v string) {
19914 o.Name = v
19915 }
19916
19917 // GetTags returns value of Tags
19918 func (o *NoteCreateRequest) GetTags() types.Tags {
19919 return o.Tags
19920 }
19921
19922 // SetTags sets value to Tags
19923 func (o *NoteCreateRequest) SetTags(v types.Tags) {
19924 o.Tags = v
19925 }
19926
19927 // HasTag 指定のタグが存在する場合trueを返す
19928 func (o *NoteCreateRequest) HasTag(tag string) bool {
19929 return accessor.HasTag(o, tag)
19930 }
19931
19932 // AppendTag 指定のタグを追加
19933 func (o *NoteCreateRequest) AppendTag(tag string) {
19934 accessor.AppendTag(o, tag)
19935 }
19936
19937 // RemoveTag 指定のタグを削除
19938 func (o *NoteCreateRequest) RemoveTag(tag string) {
19939 accessor.RemoveTag(o, tag)
19940 }
19941
19942 // ClearTags タグを全クリア
19943 func (o *NoteCreateRequest) ClearTags() {
19944 accessor.ClearTags(o)
19945 }
19946
19947 // GetIconID returns value of IconID
19948 func (o *NoteCreateRequest) GetIconID() types.ID {
19949 return o.IconID
19950 }
19951
19952 // SetIconID sets value to IconID
19953 func (o *NoteCreateRequest) SetIconID(v types.ID) {
19954 o.IconID = v
19955 }
19956
19957 // GetClass returns value of Class
19958 func (o *NoteCreateRequest) GetClass() string {
19959 return o.Class
19960 }
19961
19962 // SetClass sets value to Class
19963 func (o *NoteCreateRequest) SetClass(v string) {
19964 o.Class = v
19965 }
19966
19967 // GetContent returns value of Content
19968 func (o *NoteCreateRequest) GetContent() string {
19969 return o.Content
19970 }
19971
19972 // SetContent sets value to Content
19973 func (o *NoteCreateRequest) SetContent(v string) {
19974 o.Content = v
19975 }
19976
19977 /*************************************************
19978 * NoteUpdateRequest
19979 *************************************************/
19980
19981 // NoteUpdateRequest represents API parameter/response structure
19982 type NoteUpdateRequest struct {
19983 Name string
19984 Tags types.Tags
19985 IconID types.ID `mapconv:"Icon.ID"`
19986 Class string
19987 Content string
19988 }
19989
19990 // setDefaults implements iaas.argumentDefaulter
19991 func (o *NoteUpdateRequest) setDefaults() interface{} {
19992 return &struct {
19993 Name string
19994 Tags types.Tags
19995 IconID types.ID `mapconv:"Icon.ID"`
19996 Class string
19997 Content string
19998 }{
19999 Name: o.GetName(),
20000 Tags: o.GetTags(),
20001 IconID: o.GetIconID(),
20002 Class: o.GetClass(),
20003 Content: o.GetContent(),
20004 }
20005 }
20006
20007 // GetName returns value of Name
20008 func (o *NoteUpdateRequest) GetName() string {
20009 return o.Name
20010 }
20011
20012 // SetName sets value to Name
20013 func (o *NoteUpdateRequest) SetName(v string) {
20014 o.Name = v
20015 }
20016
20017 // GetTags returns value of Tags
20018 func (o *NoteUpdateRequest) GetTags() types.Tags {
20019 return o.Tags
20020 }
20021
20022 // SetTags sets value to Tags
20023 func (o *NoteUpdateRequest) SetTags(v types.Tags) {
20024 o.Tags = v
20025 }
20026
20027 // HasTag 指定のタグが存在する場合trueを返す
20028 func (o *NoteUpdateRequest) HasTag(tag string) bool {
20029 return accessor.HasTag(o, tag)
20030 }
20031
20032 // AppendTag 指定のタグを追加
20033 func (o *NoteUpdateRequest) AppendTag(tag string) {
20034 accessor.AppendTag(o, tag)
20035 }
20036
20037 // RemoveTag 指定のタグを削除
20038 func (o *NoteUpdateRequest) RemoveTag(tag string) {
20039 accessor.RemoveTag(o, tag)
20040 }
20041
20042 // ClearTags タグを全クリア
20043 func (o *NoteUpdateRequest) ClearTags() {
20044 accessor.ClearTags(o)
20045 }
20046
20047 // GetIconID returns value of IconID
20048 func (o *NoteUpdateRequest) GetIconID() types.ID {
20049 return o.IconID
20050 }
20051
20052 // SetIconID sets value to IconID
20053 func (o *NoteUpdateRequest) SetIconID(v types.ID) {
20054 o.IconID = v
20055 }
20056
20057 // GetClass returns value of Class
20058 func (o *NoteUpdateRequest) GetClass() string {
20059 return o.Class
20060 }
20061
20062 // SetClass sets value to Class
20063 func (o *NoteUpdateRequest) SetClass(v string) {
20064 o.Class = v
20065 }
20066
20067 // GetContent returns value of Content
20068 func (o *NoteUpdateRequest) GetContent() string {
20069 return o.Content
20070 }
20071
20072 // SetContent sets value to Content
20073 func (o *NoteUpdateRequest) SetContent(v string) {
20074 o.Content = v
20075 }
20076
20077 /*************************************************
20078 * PacketFilter
20079 *************************************************/
20080
20081 // PacketFilter represents API parameter/response structure
20082 type PacketFilter struct {
20083 ID types.ID
20084 Name string
20085 Description string
20086 RequiredHostVersion types.StringNumber
20087 Expression []*PacketFilterExpression `mapconv:"[]Expression,recursive"`
20088 ExpressionHash string
20089 CreatedAt time.Time
20090 }
20091
20092 // setDefaults implements iaas.argumentDefaulter
20093 func (o *PacketFilter) setDefaults() interface{} {
20094 return &struct {
20095 ID types.ID
20096 Name string
20097 Description string
20098 RequiredHostVersion types.StringNumber
20099 Expression []*PacketFilterExpression `mapconv:"[]Expression,recursive"`
20100 ExpressionHash string
20101 CreatedAt time.Time
20102 }{
20103 ID: o.GetID(),
20104 Name: o.GetName(),
20105 Description: o.GetDescription(),
20106 RequiredHostVersion: o.GetRequiredHostVersion(),
20107 Expression: o.GetExpression(),
20108 ExpressionHash: o.GetExpressionHash(),
20109 CreatedAt: o.GetCreatedAt(),
20110 }
20111 }
20112
20113 // GetID returns value of ID
20114 func (o *PacketFilter) GetID() types.ID {
20115 return o.ID
20116 }
20117
20118 // SetID sets value to ID
20119 func (o *PacketFilter) SetID(v types.ID) {
20120 o.ID = v
20121 }
20122
20123 // SetStringID .
20124 func (o *PacketFilter) SetStringID(id string) {
20125 accessor.SetStringID(o, id)
20126 }
20127
20128 // GetStringID .
20129 func (o *PacketFilter) GetStringID() string {
20130 return accessor.GetStringID(o)
20131 }
20132
20133 // SetInt64ID .
20134 func (o *PacketFilter) SetInt64ID(id int64) {
20135 accessor.SetInt64ID(o, id)
20136 }
20137
20138 // GetInt64ID .
20139 func (o *PacketFilter) GetInt64ID() int64 {
20140 return accessor.GetInt64ID(o)
20141 }
20142
20143 // GetName returns value of Name
20144 func (o *PacketFilter) GetName() string {
20145 return o.Name
20146 }
20147
20148 // SetName sets value to Name
20149 func (o *PacketFilter) SetName(v string) {
20150 o.Name = v
20151 }
20152
20153 // GetDescription returns value of Description
20154 func (o *PacketFilter) GetDescription() string {
20155 return o.Description
20156 }
20157
20158 // SetDescription sets value to Description
20159 func (o *PacketFilter) SetDescription(v string) {
20160 o.Description = v
20161 }
20162
20163 // GetRequiredHostVersion returns value of RequiredHostVersion
20164 func (o *PacketFilter) GetRequiredHostVersion() types.StringNumber {
20165 return o.RequiredHostVersion
20166 }
20167
20168 // SetRequiredHostVersion sets value to RequiredHostVersion
20169 func (o *PacketFilter) SetRequiredHostVersion(v types.StringNumber) {
20170 o.RequiredHostVersion = v
20171 }
20172
20173 // GetExpression returns value of Expression
20174 func (o *PacketFilter) GetExpression() []*PacketFilterExpression {
20175 return o.Expression
20176 }
20177
20178 // SetExpression sets value to Expression
20179 func (o *PacketFilter) SetExpression(v []*PacketFilterExpression) {
20180 o.Expression = v
20181 }
20182
20183 // GetExpressionHash returns value of ExpressionHash
20184 func (o *PacketFilter) GetExpressionHash() string {
20185 return o.ExpressionHash
20186 }
20187
20188 // SetExpressionHash sets value to ExpressionHash
20189 func (o *PacketFilter) SetExpressionHash(v string) {
20190 o.ExpressionHash = v
20191 }
20192
20193 // GetCreatedAt returns value of CreatedAt
20194 func (o *PacketFilter) GetCreatedAt() time.Time {
20195 return o.CreatedAt
20196 }
20197
20198 // SetCreatedAt sets value to CreatedAt
20199 func (o *PacketFilter) SetCreatedAt(v time.Time) {
20200 o.CreatedAt = v
20201 }
20202
20203 /*************************************************
20204 * PacketFilterExpression
20205 *************************************************/
20206
20207 // PacketFilterExpression represents API parameter/response structure
20208 type PacketFilterExpression struct {
20209 Protocol types.Protocol
20210 SourceNetwork types.PacketFilterNetwork
20211 SourcePort types.PacketFilterPort
20212 DestinationPort types.PacketFilterPort
20213 Action types.Action
20214 Description string
20215 }
20216
20217 // setDefaults implements iaas.argumentDefaulter
20218 func (o *PacketFilterExpression) setDefaults() interface{} {
20219 return &struct {
20220 Protocol types.Protocol
20221 SourceNetwork types.PacketFilterNetwork
20222 SourcePort types.PacketFilterPort
20223 DestinationPort types.PacketFilterPort
20224 Action types.Action
20225 Description string
20226 }{
20227 Protocol: o.GetProtocol(),
20228 SourceNetwork: o.GetSourceNetwork(),
20229 SourcePort: o.GetSourcePort(),
20230 DestinationPort: o.GetDestinationPort(),
20231 Action: o.GetAction(),
20232 Description: o.GetDescription(),
20233 }
20234 }
20235
20236 // GetProtocol returns value of Protocol
20237 func (o *PacketFilterExpression) GetProtocol() types.Protocol {
20238 return o.Protocol
20239 }
20240
20241 // SetProtocol sets value to Protocol
20242 func (o *PacketFilterExpression) SetProtocol(v types.Protocol) {
20243 o.Protocol = v
20244 }
20245
20246 // GetSourceNetwork returns value of SourceNetwork
20247 func (o *PacketFilterExpression) GetSourceNetwork() types.PacketFilterNetwork {
20248 return o.SourceNetwork
20249 }
20250
20251 // SetSourceNetwork sets value to SourceNetwork
20252 func (o *PacketFilterExpression) SetSourceNetwork(v types.PacketFilterNetwork) {
20253 o.SourceNetwork = v
20254 }
20255
20256 // GetSourcePort returns value of SourcePort
20257 func (o *PacketFilterExpression) GetSourcePort() types.PacketFilterPort {
20258 return o.SourcePort
20259 }
20260
20261 // SetSourcePort sets value to SourcePort
20262 func (o *PacketFilterExpression) SetSourcePort(v types.PacketFilterPort) {
20263 o.SourcePort = v
20264 }
20265
20266 // GetDestinationPort returns value of DestinationPort
20267 func (o *PacketFilterExpression) GetDestinationPort() types.PacketFilterPort {
20268 return o.DestinationPort
20269 }
20270
20271 // SetDestinationPort sets value to DestinationPort
20272 func (o *PacketFilterExpression) SetDestinationPort(v types.PacketFilterPort) {
20273 o.DestinationPort = v
20274 }
20275
20276 // GetAction returns value of Action
20277 func (o *PacketFilterExpression) GetAction() types.Action {
20278 return o.Action
20279 }
20280
20281 // SetAction sets value to Action
20282 func (o *PacketFilterExpression) SetAction(v types.Action) {
20283 o.Action = v
20284 }
20285
20286 // GetDescription returns value of Description
20287 func (o *PacketFilterExpression) GetDescription() string {
20288 return o.Description
20289 }
20290
20291 // SetDescription sets value to Description
20292 func (o *PacketFilterExpression) SetDescription(v string) {
20293 o.Description = v
20294 }
20295
20296 /*************************************************
20297 * PacketFilterCreateRequest
20298 *************************************************/
20299
20300 // PacketFilterCreateRequest represents API parameter/response structure
20301 type PacketFilterCreateRequest struct {
20302 Name string
20303 Description string
20304 Expression []*PacketFilterExpression `mapconv:"[]Expression,recursive"`
20305 }
20306
20307 // setDefaults implements iaas.argumentDefaulter
20308 func (o *PacketFilterCreateRequest) setDefaults() interface{} {
20309 return &struct {
20310 Name string
20311 Description string
20312 Expression []*PacketFilterExpression `mapconv:"[]Expression,recursive"`
20313 }{
20314 Name: o.GetName(),
20315 Description: o.GetDescription(),
20316 Expression: o.GetExpression(),
20317 }
20318 }
20319
20320 // GetName returns value of Name
20321 func (o *PacketFilterCreateRequest) GetName() string {
20322 return o.Name
20323 }
20324
20325 // SetName sets value to Name
20326 func (o *PacketFilterCreateRequest) SetName(v string) {
20327 o.Name = v
20328 }
20329
20330 // GetDescription returns value of Description
20331 func (o *PacketFilterCreateRequest) GetDescription() string {
20332 return o.Description
20333 }
20334
20335 // SetDescription sets value to Description
20336 func (o *PacketFilterCreateRequest) SetDescription(v string) {
20337 o.Description = v
20338 }
20339
20340 // GetExpression returns value of Expression
20341 func (o *PacketFilterCreateRequest) GetExpression() []*PacketFilterExpression {
20342 return o.Expression
20343 }
20344
20345 // SetExpression sets value to Expression
20346 func (o *PacketFilterCreateRequest) SetExpression(v []*PacketFilterExpression) {
20347 o.Expression = v
20348 }
20349
20350 /*************************************************
20351 * PacketFilterUpdateRequest
20352 *************************************************/
20353
20354 // PacketFilterUpdateRequest represents API parameter/response structure
20355 type PacketFilterUpdateRequest struct {
20356 Name string
20357 Description string
20358 Expression []*PacketFilterExpression `mapconv:"[]Expression,recursive"`
20359 }
20360
20361 // setDefaults implements iaas.argumentDefaulter
20362 func (o *PacketFilterUpdateRequest) setDefaults() interface{} {
20363 return &struct {
20364 Name string
20365 Description string
20366 Expression []*PacketFilterExpression `mapconv:"[]Expression,recursive"`
20367 }{
20368 Name: o.GetName(),
20369 Description: o.GetDescription(),
20370 Expression: o.GetExpression(),
20371 }
20372 }
20373
20374 // GetName returns value of Name
20375 func (o *PacketFilterUpdateRequest) GetName() string {
20376 return o.Name
20377 }
20378
20379 // SetName sets value to Name
20380 func (o *PacketFilterUpdateRequest) SetName(v string) {
20381 o.Name = v
20382 }
20383
20384 // GetDescription returns value of Description
20385 func (o *PacketFilterUpdateRequest) GetDescription() string {
20386 return o.Description
20387 }
20388
20389 // SetDescription sets value to Description
20390 func (o *PacketFilterUpdateRequest) SetDescription(v string) {
20391 o.Description = v
20392 }
20393
20394 // GetExpression returns value of Expression
20395 func (o *PacketFilterUpdateRequest) GetExpression() []*PacketFilterExpression {
20396 return o.Expression
20397 }
20398
20399 // SetExpression sets value to Expression
20400 func (o *PacketFilterUpdateRequest) SetExpression(v []*PacketFilterExpression) {
20401 o.Expression = v
20402 }
20403
20404 /*************************************************
20405 * PrivateHost
20406 *************************************************/
20407
20408 // PrivateHost represents API parameter/response structure
20409 type PrivateHost struct {
20410 ID types.ID
20411 Name string
20412 Description string
20413 Tags types.Tags
20414 IconID types.ID `mapconv:"Icon.ID"`
20415 CreatedAt time.Time
20416 PlanID types.ID `mapconv:"Plan.ID,omitempty"`
20417 PlanName string `mapconv:"Plan.Name"`
20418 PlanClass string `mapconv:"Plan.Class"`
20419 CPU int `mapconv:"Plan.CPU"`
20420 MemoryMB int `mapconv:"Plan.MemoryMB"`
20421 AssignedCPU int
20422 AssignedMemoryMB int
20423 HostName string `mapconv:"Host.Name"`
20424 }
20425
20426 // setDefaults implements iaas.argumentDefaulter
20427 func (o *PrivateHost) setDefaults() interface{} {
20428 return &struct {
20429 ID types.ID
20430 Name string
20431 Description string
20432 Tags types.Tags
20433 IconID types.ID `mapconv:"Icon.ID"`
20434 CreatedAt time.Time
20435 PlanID types.ID `mapconv:"Plan.ID,omitempty"`
20436 PlanName string `mapconv:"Plan.Name"`
20437 PlanClass string `mapconv:"Plan.Class"`
20438 CPU int `mapconv:"Plan.CPU"`
20439 MemoryMB int `mapconv:"Plan.MemoryMB"`
20440 AssignedCPU int
20441 AssignedMemoryMB int
20442 HostName string `mapconv:"Host.Name"`
20443 }{
20444 ID: o.GetID(),
20445 Name: o.GetName(),
20446 Description: o.GetDescription(),
20447 Tags: o.GetTags(),
20448 IconID: o.GetIconID(),
20449 CreatedAt: o.GetCreatedAt(),
20450 PlanID: o.GetPlanID(),
20451 PlanName: o.GetPlanName(),
20452 PlanClass: o.GetPlanClass(),
20453 CPU: o.GetCPU(),
20454 MemoryMB: o.GetMemoryMB(),
20455 AssignedCPU: o.GetAssignedCPU(),
20456 AssignedMemoryMB: o.GetAssignedMemoryMB(),
20457 HostName: o.GetHostName(),
20458 }
20459 }
20460
20461 // GetID returns value of ID
20462 func (o *PrivateHost) GetID() types.ID {
20463 return o.ID
20464 }
20465
20466 // SetID sets value to ID
20467 func (o *PrivateHost) SetID(v types.ID) {
20468 o.ID = v
20469 }
20470
20471 // SetStringID .
20472 func (o *PrivateHost) SetStringID(id string) {
20473 accessor.SetStringID(o, id)
20474 }
20475
20476 // GetStringID .
20477 func (o *PrivateHost) GetStringID() string {
20478 return accessor.GetStringID(o)
20479 }
20480
20481 // SetInt64ID .
20482 func (o *PrivateHost) SetInt64ID(id int64) {
20483 accessor.SetInt64ID(o, id)
20484 }
20485
20486 // GetInt64ID .
20487 func (o *PrivateHost) GetInt64ID() int64 {
20488 return accessor.GetInt64ID(o)
20489 }
20490
20491 // GetName returns value of Name
20492 func (o *PrivateHost) GetName() string {
20493 return o.Name
20494 }
20495
20496 // SetName sets value to Name
20497 func (o *PrivateHost) SetName(v string) {
20498 o.Name = v
20499 }
20500
20501 // GetDescription returns value of Description
20502 func (o *PrivateHost) GetDescription() string {
20503 return o.Description
20504 }
20505
20506 // SetDescription sets value to Description
20507 func (o *PrivateHost) SetDescription(v string) {
20508 o.Description = v
20509 }
20510
20511 // GetTags returns value of Tags
20512 func (o *PrivateHost) GetTags() types.Tags {
20513 return o.Tags
20514 }
20515
20516 // SetTags sets value to Tags
20517 func (o *PrivateHost) SetTags(v types.Tags) {
20518 o.Tags = v
20519 }
20520
20521 // HasTag 指定のタグが存在する場合trueを返す
20522 func (o *PrivateHost) HasTag(tag string) bool {
20523 return accessor.HasTag(o, tag)
20524 }
20525
20526 // AppendTag 指定のタグを追加
20527 func (o *PrivateHost) AppendTag(tag string) {
20528 accessor.AppendTag(o, tag)
20529 }
20530
20531 // RemoveTag 指定のタグを削除
20532 func (o *PrivateHost) RemoveTag(tag string) {
20533 accessor.RemoveTag(o, tag)
20534 }
20535
20536 // ClearTags タグを全クリア
20537 func (o *PrivateHost) ClearTags() {
20538 accessor.ClearTags(o)
20539 }
20540
20541 // GetIconID returns value of IconID
20542 func (o *PrivateHost) GetIconID() types.ID {
20543 return o.IconID
20544 }
20545
20546 // SetIconID sets value to IconID
20547 func (o *PrivateHost) SetIconID(v types.ID) {
20548 o.IconID = v
20549 }
20550
20551 // GetCreatedAt returns value of CreatedAt
20552 func (o *PrivateHost) GetCreatedAt() time.Time {
20553 return o.CreatedAt
20554 }
20555
20556 // SetCreatedAt sets value to CreatedAt
20557 func (o *PrivateHost) SetCreatedAt(v time.Time) {
20558 o.CreatedAt = v
20559 }
20560
20561 // GetPlanID returns value of PlanID
20562 func (o *PrivateHost) GetPlanID() types.ID {
20563 return o.PlanID
20564 }
20565
20566 // SetPlanID sets value to PlanID
20567 func (o *PrivateHost) SetPlanID(v types.ID) {
20568 o.PlanID = v
20569 }
20570
20571 // GetPlanName returns value of PlanName
20572 func (o *PrivateHost) GetPlanName() string {
20573 return o.PlanName
20574 }
20575
20576 // SetPlanName sets value to PlanName
20577 func (o *PrivateHost) SetPlanName(v string) {
20578 o.PlanName = v
20579 }
20580
20581 // GetPlanClass returns value of PlanClass
20582 func (o *PrivateHost) GetPlanClass() string {
20583 return o.PlanClass
20584 }
20585
20586 // SetPlanClass sets value to PlanClass
20587 func (o *PrivateHost) SetPlanClass(v string) {
20588 o.PlanClass = v
20589 }
20590
20591 // GetCPU returns value of CPU
20592 func (o *PrivateHost) GetCPU() int {
20593 return o.CPU
20594 }
20595
20596 // SetCPU sets value to CPU
20597 func (o *PrivateHost) SetCPU(v int) {
20598 o.CPU = v
20599 }
20600
20601 // GetMemoryMB returns value of MemoryMB
20602 func (o *PrivateHost) GetMemoryMB() int {
20603 return o.MemoryMB
20604 }
20605
20606 // SetMemoryMB sets value to MemoryMB
20607 func (o *PrivateHost) SetMemoryMB(v int) {
20608 o.MemoryMB = v
20609 }
20610
20611 // GetMemoryGB .
20612 func (o *PrivateHost) GetMemoryGB() int {
20613 return accessor.GetMemoryGB(o)
20614 }
20615
20616 // SetMemoryGB .
20617 func (o *PrivateHost) SetMemoryGB(memory int) {
20618 accessor.SetMemoryGB(o, memory)
20619 }
20620
20621 // GetAssignedCPU returns value of AssignedCPU
20622 func (o *PrivateHost) GetAssignedCPU() int {
20623 return o.AssignedCPU
20624 }
20625
20626 // SetAssignedCPU sets value to AssignedCPU
20627 func (o *PrivateHost) SetAssignedCPU(v int) {
20628 o.AssignedCPU = v
20629 }
20630
20631 // GetAssignedMemoryMB returns value of AssignedMemoryMB
20632 func (o *PrivateHost) GetAssignedMemoryMB() int {
20633 return o.AssignedMemoryMB
20634 }
20635
20636 // SetAssignedMemoryMB sets value to AssignedMemoryMB
20637 func (o *PrivateHost) SetAssignedMemoryMB(v int) {
20638 o.AssignedMemoryMB = v
20639 }
20640
20641 // GetAssignedMemoryGB .
20642 func (o *PrivateHost) GetAssignedMemoryGB() int {
20643 return accessor.GetAssignedMemoryGB(o)
20644 }
20645
20646 // SetAssignedMemoryGB .
20647 func (o *PrivateHost) SetAssignedMemoryGB(memory int) {
20648 accessor.SetAssignedMemoryGB(o, memory)
20649 }
20650
20651 // GetHostName returns value of HostName
20652 func (o *PrivateHost) GetHostName() string {
20653 return o.HostName
20654 }
20655
20656 // SetHostName sets value to HostName
20657 func (o *PrivateHost) SetHostName(v string) {
20658 o.HostName = v
20659 }
20660
20661 /*************************************************
20662 * PrivateHostCreateRequest
20663 *************************************************/
20664
20665 // PrivateHostCreateRequest represents API parameter/response structure
20666 type PrivateHostCreateRequest struct {
20667 Name string
20668 Description string
20669 Tags types.Tags
20670 IconID types.ID `mapconv:"Icon.ID"`
20671 PlanID types.ID `mapconv:"Plan.ID,omitempty"`
20672 }
20673
20674 // setDefaults implements iaas.argumentDefaulter
20675 func (o *PrivateHostCreateRequest) setDefaults() interface{} {
20676 return &struct {
20677 Name string
20678 Description string
20679 Tags types.Tags
20680 IconID types.ID `mapconv:"Icon.ID"`
20681 PlanID types.ID `mapconv:"Plan.ID,omitempty"`
20682 }{
20683 Name: o.GetName(),
20684 Description: o.GetDescription(),
20685 Tags: o.GetTags(),
20686 IconID: o.GetIconID(),
20687 PlanID: o.GetPlanID(),
20688 }
20689 }
20690
20691 // GetName returns value of Name
20692 func (o *PrivateHostCreateRequest) GetName() string {
20693 return o.Name
20694 }
20695
20696 // SetName sets value to Name
20697 func (o *PrivateHostCreateRequest) SetName(v string) {
20698 o.Name = v
20699 }
20700
20701 // GetDescription returns value of Description
20702 func (o *PrivateHostCreateRequest) GetDescription() string {
20703 return o.Description
20704 }
20705
20706 // SetDescription sets value to Description
20707 func (o *PrivateHostCreateRequest) SetDescription(v string) {
20708 o.Description = v
20709 }
20710
20711 // GetTags returns value of Tags
20712 func (o *PrivateHostCreateRequest) GetTags() types.Tags {
20713 return o.Tags
20714 }
20715
20716 // SetTags sets value to Tags
20717 func (o *PrivateHostCreateRequest) SetTags(v types.Tags) {
20718 o.Tags = v
20719 }
20720
20721 // HasTag 指定のタグが存在する場合trueを返す
20722 func (o *PrivateHostCreateRequest) HasTag(tag string) bool {
20723 return accessor.HasTag(o, tag)
20724 }
20725
20726 // AppendTag 指定のタグを追加
20727 func (o *PrivateHostCreateRequest) AppendTag(tag string) {
20728 accessor.AppendTag(o, tag)
20729 }
20730
20731 // RemoveTag 指定のタグを削除
20732 func (o *PrivateHostCreateRequest) RemoveTag(tag string) {
20733 accessor.RemoveTag(o, tag)
20734 }
20735
20736 // ClearTags タグを全クリア
20737 func (o *PrivateHostCreateRequest) ClearTags() {
20738 accessor.ClearTags(o)
20739 }
20740
20741 // GetIconID returns value of IconID
20742 func (o *PrivateHostCreateRequest) GetIconID() types.ID {
20743 return o.IconID
20744 }
20745
20746 // SetIconID sets value to IconID
20747 func (o *PrivateHostCreateRequest) SetIconID(v types.ID) {
20748 o.IconID = v
20749 }
20750
20751 // GetPlanID returns value of PlanID
20752 func (o *PrivateHostCreateRequest) GetPlanID() types.ID {
20753 return o.PlanID
20754 }
20755
20756 // SetPlanID sets value to PlanID
20757 func (o *PrivateHostCreateRequest) SetPlanID(v types.ID) {
20758 o.PlanID = v
20759 }
20760
20761 /*************************************************
20762 * PrivateHostUpdateRequest
20763 *************************************************/
20764
20765 // PrivateHostUpdateRequest represents API parameter/response structure
20766 type PrivateHostUpdateRequest struct {
20767 Name string
20768 Description string
20769 Tags types.Tags
20770 IconID types.ID `mapconv:"Icon.ID"`
20771 }
20772
20773 // setDefaults implements iaas.argumentDefaulter
20774 func (o *PrivateHostUpdateRequest) setDefaults() interface{} {
20775 return &struct {
20776 Name string
20777 Description string
20778 Tags types.Tags
20779 IconID types.ID `mapconv:"Icon.ID"`
20780 }{
20781 Name: o.GetName(),
20782 Description: o.GetDescription(),
20783 Tags: o.GetTags(),
20784 IconID: o.GetIconID(),
20785 }
20786 }
20787
20788 // GetName returns value of Name
20789 func (o *PrivateHostUpdateRequest) GetName() string {
20790 return o.Name
20791 }
20792
20793 // SetName sets value to Name
20794 func (o *PrivateHostUpdateRequest) SetName(v string) {
20795 o.Name = v
20796 }
20797
20798 // GetDescription returns value of Description
20799 func (o *PrivateHostUpdateRequest) GetDescription() string {
20800 return o.Description
20801 }
20802
20803 // SetDescription sets value to Description
20804 func (o *PrivateHostUpdateRequest) SetDescription(v string) {
20805 o.Description = v
20806 }
20807
20808 // GetTags returns value of Tags
20809 func (o *PrivateHostUpdateRequest) GetTags() types.Tags {
20810 return o.Tags
20811 }
20812
20813 // SetTags sets value to Tags
20814 func (o *PrivateHostUpdateRequest) SetTags(v types.Tags) {
20815 o.Tags = v
20816 }
20817
20818 // HasTag 指定のタグが存在する場合trueを返す
20819 func (o *PrivateHostUpdateRequest) HasTag(tag string) bool {
20820 return accessor.HasTag(o, tag)
20821 }
20822
20823 // AppendTag 指定のタグを追加
20824 func (o *PrivateHostUpdateRequest) AppendTag(tag string) {
20825 accessor.AppendTag(o, tag)
20826 }
20827
20828 // RemoveTag 指定のタグを削除
20829 func (o *PrivateHostUpdateRequest) RemoveTag(tag string) {
20830 accessor.RemoveTag(o, tag)
20831 }
20832
20833 // ClearTags タグを全クリア
20834 func (o *PrivateHostUpdateRequest) ClearTags() {
20835 accessor.ClearTags(o)
20836 }
20837
20838 // GetIconID returns value of IconID
20839 func (o *PrivateHostUpdateRequest) GetIconID() types.ID {
20840 return o.IconID
20841 }
20842
20843 // SetIconID sets value to IconID
20844 func (o *PrivateHostUpdateRequest) SetIconID(v types.ID) {
20845 o.IconID = v
20846 }
20847
20848 /*************************************************
20849 * PrivateHostPlan
20850 *************************************************/
20851
20852 // PrivateHostPlan represents API parameter/response structure
20853 type PrivateHostPlan struct {
20854 ID types.ID
20855 Name string
20856 Class string
20857 CPU int
20858 MemoryMB int
20859 Availability types.EAvailability
20860 }
20861
20862 // setDefaults implements iaas.argumentDefaulter
20863 func (o *PrivateHostPlan) setDefaults() interface{} {
20864 return &struct {
20865 ID types.ID
20866 Name string
20867 Class string
20868 CPU int
20869 MemoryMB int
20870 Availability types.EAvailability
20871 }{
20872 ID: o.GetID(),
20873 Name: o.GetName(),
20874 Class: o.GetClass(),
20875 CPU: o.GetCPU(),
20876 MemoryMB: o.GetMemoryMB(),
20877 Availability: o.GetAvailability(),
20878 }
20879 }
20880
20881 // GetID returns value of ID
20882 func (o *PrivateHostPlan) GetID() types.ID {
20883 return o.ID
20884 }
20885
20886 // SetID sets value to ID
20887 func (o *PrivateHostPlan) SetID(v types.ID) {
20888 o.ID = v
20889 }
20890
20891 // SetStringID .
20892 func (o *PrivateHostPlan) SetStringID(id string) {
20893 accessor.SetStringID(o, id)
20894 }
20895
20896 // GetStringID .
20897 func (o *PrivateHostPlan) GetStringID() string {
20898 return accessor.GetStringID(o)
20899 }
20900
20901 // SetInt64ID .
20902 func (o *PrivateHostPlan) SetInt64ID(id int64) {
20903 accessor.SetInt64ID(o, id)
20904 }
20905
20906 // GetInt64ID .
20907 func (o *PrivateHostPlan) GetInt64ID() int64 {
20908 return accessor.GetInt64ID(o)
20909 }
20910
20911 // GetName returns value of Name
20912 func (o *PrivateHostPlan) GetName() string {
20913 return o.Name
20914 }
20915
20916 // SetName sets value to Name
20917 func (o *PrivateHostPlan) SetName(v string) {
20918 o.Name = v
20919 }
20920
20921 // GetClass returns value of Class
20922 func (o *PrivateHostPlan) GetClass() string {
20923 return o.Class
20924 }
20925
20926 // SetClass sets value to Class
20927 func (o *PrivateHostPlan) SetClass(v string) {
20928 o.Class = v
20929 }
20930
20931 // GetCPU returns value of CPU
20932 func (o *PrivateHostPlan) GetCPU() int {
20933 return o.CPU
20934 }
20935
20936 // SetCPU sets value to CPU
20937 func (o *PrivateHostPlan) SetCPU(v int) {
20938 o.CPU = v
20939 }
20940
20941 // GetMemoryMB returns value of MemoryMB
20942 func (o *PrivateHostPlan) GetMemoryMB() int {
20943 return o.MemoryMB
20944 }
20945
20946 // SetMemoryMB sets value to MemoryMB
20947 func (o *PrivateHostPlan) SetMemoryMB(v int) {
20948 o.MemoryMB = v
20949 }
20950
20951 // GetMemoryGB .
20952 func (o *PrivateHostPlan) GetMemoryGB() int {
20953 return accessor.GetMemoryGB(o)
20954 }
20955
20956 // SetMemoryGB .
20957 func (o *PrivateHostPlan) SetMemoryGB(memory int) {
20958 accessor.SetMemoryGB(o, memory)
20959 }
20960
20961 // GetAvailability returns value of Availability
20962 func (o *PrivateHostPlan) GetAvailability() types.EAvailability {
20963 return o.Availability
20964 }
20965
20966 // SetAvailability sets value to Availability
20967 func (o *PrivateHostPlan) SetAvailability(v types.EAvailability) {
20968 o.Availability = v
20969 }
20970
20971 /*************************************************
20972 * ProxyLB
20973 *************************************************/
20974
20975 // ProxyLB represents API parameter/response structure
20976 type ProxyLB struct {
20977 ID types.ID
20978 Name string
20979 Description string
20980 Tags types.Tags
20981 Availability types.EAvailability
20982 IconID types.ID `mapconv:"Icon.ID"`
20983 CreatedAt time.Time
20984 ModifiedAt time.Time
20985 Plan types.EProxyLBPlan
20986 HealthCheck *ProxyLBHealthCheck `mapconv:"Settings.ProxyLB.HealthCheck,recursive"`
20987 SorryServer *ProxyLBSorryServer `mapconv:"Settings.ProxyLB.SorryServer,recursive"`
20988 BindPorts []*ProxyLBBindPort `mapconv:"Settings.ProxyLB.[]BindPorts,recursive"`
20989 Servers []*ProxyLBServer `mapconv:"Settings.ProxyLB.[]Servers,recursive"`
20990 Rules []*ProxyLBRule `mapconv:"Settings.ProxyLB.[]Rules,recursive"`
20991 LetsEncrypt *ProxyLBACMESetting `mapconv:"Settings.ProxyLB.LetsEncrypt,recursive"`
20992 StickySession *ProxyLBStickySession `mapconv:"Settings.ProxyLB.StickySession,recursive"`
20993 Gzip *ProxyLBGzip `mapconv:"Settings.ProxyLB.Gzip,recursive"`
20994 BackendHttpKeepAlive *ProxyLBBackendHttpKeepAlive `mapconv:"Settings.ProxyLB.BackendHttpKeepAlive,recursive"`
20995 MonitoringSuiteLog *MonitoringSuiteLog `mapconv:"Settings.ProxyLB.MonitoringSuiteLog,recursive"`
20996 ProxyProtocol *ProxyLBProxyProtocol `mapconv:"Settings.ProxyLB.ProxyProtocol,recursive"`
20997 Syslog *ProxyLBSyslog `mapconv:"Settings.ProxyLB.Syslog,recursive"`
20998 Timeout *ProxyLBTimeout `json:",omitempty" mapconv:"Settings.ProxyLB.Timeout,recursive,omitempty"`
20999 SettingsHash string `json:",omitempty" mapconv:",omitempty"`
21000 UseVIPFailover bool `mapconv:"Status.UseVIPFailover"`
21001 Region types.EProxyLBRegion `mapconv:"Status.Region"`
21002 ProxyNetworks []string `mapconv:"Status.ProxyNetworks"`
21003 FQDN string `mapconv:"Status.FQDN"`
21004 VirtualIPAddress string `mapconv:"Status.VirtualIPAddress"`
21005 }
21006
21007 // setDefaults implements iaas.argumentDefaulter
21008 func (o *ProxyLB) setDefaults() interface{} {
21009 return &struct {
21010 ID types.ID
21011 Name string
21012 Description string
21013 Tags types.Tags
21014 Availability types.EAvailability
21015 IconID types.ID `mapconv:"Icon.ID"`
21016 CreatedAt time.Time
21017 ModifiedAt time.Time
21018 Plan types.EProxyLBPlan
21019 HealthCheck *ProxyLBHealthCheck `mapconv:"Settings.ProxyLB.HealthCheck,recursive"`
21020 SorryServer *ProxyLBSorryServer `mapconv:"Settings.ProxyLB.SorryServer,recursive"`
21021 BindPorts []*ProxyLBBindPort `mapconv:"Settings.ProxyLB.[]BindPorts,recursive"`
21022 Servers []*ProxyLBServer `mapconv:"Settings.ProxyLB.[]Servers,recursive"`
21023 Rules []*ProxyLBRule `mapconv:"Settings.ProxyLB.[]Rules,recursive"`
21024 LetsEncrypt *ProxyLBACMESetting `mapconv:"Settings.ProxyLB.LetsEncrypt,recursive"`
21025 StickySession *ProxyLBStickySession `mapconv:"Settings.ProxyLB.StickySession,recursive"`
21026 Gzip *ProxyLBGzip `mapconv:"Settings.ProxyLB.Gzip,recursive"`
21027 BackendHttpKeepAlive *ProxyLBBackendHttpKeepAlive `mapconv:"Settings.ProxyLB.BackendHttpKeepAlive,recursive"`
21028 MonitoringSuiteLog *MonitoringSuiteLog `mapconv:"Settings.ProxyLB.MonitoringSuiteLog,recursive"`
21029 ProxyProtocol *ProxyLBProxyProtocol `mapconv:"Settings.ProxyLB.ProxyProtocol,recursive"`
21030 Syslog *ProxyLBSyslog `mapconv:"Settings.ProxyLB.Syslog,recursive"`
21031 Timeout *ProxyLBTimeout `json:",omitempty" mapconv:"Settings.ProxyLB.Timeout,recursive,omitempty"`
21032 SettingsHash string `json:",omitempty" mapconv:",omitempty"`
21033 UseVIPFailover bool `mapconv:"Status.UseVIPFailover"`
21034 Region types.EProxyLBRegion `mapconv:"Status.Region"`
21035 ProxyNetworks []string `mapconv:"Status.ProxyNetworks"`
21036 FQDN string `mapconv:"Status.FQDN"`
21037 VirtualIPAddress string `mapconv:"Status.VirtualIPAddress"`
21038 }{
21039 ID: o.GetID(),
21040 Name: o.GetName(),
21041 Description: o.GetDescription(),
21042 Tags: o.GetTags(),
21043 Availability: o.GetAvailability(),
21044 IconID: o.GetIconID(),
21045 CreatedAt: o.GetCreatedAt(),
21046 ModifiedAt: o.GetModifiedAt(),
21047 Plan: o.GetPlan(),
21048 HealthCheck: o.GetHealthCheck(),
21049 SorryServer: o.GetSorryServer(),
21050 BindPorts: o.GetBindPorts(),
21051 Servers: o.GetServers(),
21052 Rules: o.GetRules(),
21053 LetsEncrypt: o.GetLetsEncrypt(),
21054 StickySession: o.GetStickySession(),
21055 Gzip: o.GetGzip(),
21056 BackendHttpKeepAlive: o.GetBackendHttpKeepAlive(),
21057 MonitoringSuiteLog: o.GetMonitoringSuiteLog(),
21058 ProxyProtocol: o.GetProxyProtocol(),
21059 Syslog: o.GetSyslog(),
21060 Timeout: o.GetTimeout(),
21061 SettingsHash: o.GetSettingsHash(),
21062 UseVIPFailover: o.GetUseVIPFailover(),
21063 Region: o.GetRegion(),
21064 ProxyNetworks: o.GetProxyNetworks(),
21065 FQDN: o.GetFQDN(),
21066 VirtualIPAddress: o.GetVirtualIPAddress(),
21067 }
21068 }
21069
21070 // GetID returns value of ID
21071 func (o *ProxyLB) GetID() types.ID {
21072 return o.ID
21073 }
21074
21075 // SetID sets value to ID
21076 func (o *ProxyLB) SetID(v types.ID) {
21077 o.ID = v
21078 }
21079
21080 // SetStringID .
21081 func (o *ProxyLB) SetStringID(id string) {
21082 accessor.SetStringID(o, id)
21083 }
21084
21085 // GetStringID .
21086 func (o *ProxyLB) GetStringID() string {
21087 return accessor.GetStringID(o)
21088 }
21089
21090 // SetInt64ID .
21091 func (o *ProxyLB) SetInt64ID(id int64) {
21092 accessor.SetInt64ID(o, id)
21093 }
21094
21095 // GetInt64ID .
21096 func (o *ProxyLB) GetInt64ID() int64 {
21097 return accessor.GetInt64ID(o)
21098 }
21099
21100 // GetName returns value of Name
21101 func (o *ProxyLB) GetName() string {
21102 return o.Name
21103 }
21104
21105 // SetName sets value to Name
21106 func (o *ProxyLB) SetName(v string) {
21107 o.Name = v
21108 }
21109
21110 // GetDescription returns value of Description
21111 func (o *ProxyLB) GetDescription() string {
21112 return o.Description
21113 }
21114
21115 // SetDescription sets value to Description
21116 func (o *ProxyLB) SetDescription(v string) {
21117 o.Description = v
21118 }
21119
21120 // GetTags returns value of Tags
21121 func (o *ProxyLB) GetTags() types.Tags {
21122 return o.Tags
21123 }
21124
21125 // SetTags sets value to Tags
21126 func (o *ProxyLB) SetTags(v types.Tags) {
21127 o.Tags = v
21128 }
21129
21130 // HasTag 指定のタグが存在する場合trueを返す
21131 func (o *ProxyLB) HasTag(tag string) bool {
21132 return accessor.HasTag(o, tag)
21133 }
21134
21135 // AppendTag 指定のタグを追加
21136 func (o *ProxyLB) AppendTag(tag string) {
21137 accessor.AppendTag(o, tag)
21138 }
21139
21140 // RemoveTag 指定のタグを削除
21141 func (o *ProxyLB) RemoveTag(tag string) {
21142 accessor.RemoveTag(o, tag)
21143 }
21144
21145 // ClearTags タグを全クリア
21146 func (o *ProxyLB) ClearTags() {
21147 accessor.ClearTags(o)
21148 }
21149
21150 // GetAvailability returns value of Availability
21151 func (o *ProxyLB) GetAvailability() types.EAvailability {
21152 return o.Availability
21153 }
21154
21155 // SetAvailability sets value to Availability
21156 func (o *ProxyLB) SetAvailability(v types.EAvailability) {
21157 o.Availability = v
21158 }
21159
21160 // GetIconID returns value of IconID
21161 func (o *ProxyLB) GetIconID() types.ID {
21162 return o.IconID
21163 }
21164
21165 // SetIconID sets value to IconID
21166 func (o *ProxyLB) SetIconID(v types.ID) {
21167 o.IconID = v
21168 }
21169
21170 // GetCreatedAt returns value of CreatedAt
21171 func (o *ProxyLB) GetCreatedAt() time.Time {
21172 return o.CreatedAt
21173 }
21174
21175 // SetCreatedAt sets value to CreatedAt
21176 func (o *ProxyLB) SetCreatedAt(v time.Time) {
21177 o.CreatedAt = v
21178 }
21179
21180 // GetModifiedAt returns value of ModifiedAt
21181 func (o *ProxyLB) GetModifiedAt() time.Time {
21182 return o.ModifiedAt
21183 }
21184
21185 // SetModifiedAt sets value to ModifiedAt
21186 func (o *ProxyLB) SetModifiedAt(v time.Time) {
21187 o.ModifiedAt = v
21188 }
21189
21190 // GetPlan returns value of Plan
21191 func (o *ProxyLB) GetPlan() types.EProxyLBPlan {
21192 return o.Plan
21193 }
21194
21195 // SetPlan sets value to Plan
21196 func (o *ProxyLB) SetPlan(v types.EProxyLBPlan) {
21197 o.Plan = v
21198 }
21199
21200 // GetHealthCheck returns value of HealthCheck
21201 func (o *ProxyLB) GetHealthCheck() *ProxyLBHealthCheck {
21202 return o.HealthCheck
21203 }
21204
21205 // SetHealthCheck sets value to HealthCheck
21206 func (o *ProxyLB) SetHealthCheck(v *ProxyLBHealthCheck) {
21207 o.HealthCheck = v
21208 }
21209
21210 // GetSorryServer returns value of SorryServer
21211 func (o *ProxyLB) GetSorryServer() *ProxyLBSorryServer {
21212 return o.SorryServer
21213 }
21214
21215 // SetSorryServer sets value to SorryServer
21216 func (o *ProxyLB) SetSorryServer(v *ProxyLBSorryServer) {
21217 o.SorryServer = v
21218 }
21219
21220 // GetBindPorts returns value of BindPorts
21221 func (o *ProxyLB) GetBindPorts() []*ProxyLBBindPort {
21222 return o.BindPorts
21223 }
21224
21225 // SetBindPorts sets value to BindPorts
21226 func (o *ProxyLB) SetBindPorts(v []*ProxyLBBindPort) {
21227 o.BindPorts = v
21228 }
21229
21230 // GetServers returns value of Servers
21231 func (o *ProxyLB) GetServers() []*ProxyLBServer {
21232 return o.Servers
21233 }
21234
21235 // SetServers sets value to Servers
21236 func (o *ProxyLB) SetServers(v []*ProxyLBServer) {
21237 o.Servers = v
21238 }
21239
21240 // GetRules returns value of Rules
21241 func (o *ProxyLB) GetRules() []*ProxyLBRule {
21242 return o.Rules
21243 }
21244
21245 // SetRules sets value to Rules
21246 func (o *ProxyLB) SetRules(v []*ProxyLBRule) {
21247 o.Rules = v
21248 }
21249
21250 // GetLetsEncrypt returns value of LetsEncrypt
21251 func (o *ProxyLB) GetLetsEncrypt() *ProxyLBACMESetting {
21252 return o.LetsEncrypt
21253 }
21254
21255 // SetLetsEncrypt sets value to LetsEncrypt
21256 func (o *ProxyLB) SetLetsEncrypt(v *ProxyLBACMESetting) {
21257 o.LetsEncrypt = v
21258 }
21259
21260 // GetStickySession returns value of StickySession
21261 func (o *ProxyLB) GetStickySession() *ProxyLBStickySession {
21262 return o.StickySession
21263 }
21264
21265 // SetStickySession sets value to StickySession
21266 func (o *ProxyLB) SetStickySession(v *ProxyLBStickySession) {
21267 o.StickySession = v
21268 }
21269
21270 // GetGzip returns value of Gzip
21271 func (o *ProxyLB) GetGzip() *ProxyLBGzip {
21272 return o.Gzip
21273 }
21274
21275 // SetGzip sets value to Gzip
21276 func (o *ProxyLB) SetGzip(v *ProxyLBGzip) {
21277 o.Gzip = v
21278 }
21279
21280 // GetBackendHttpKeepAlive returns value of BackendHttpKeepAlive
21281 func (o *ProxyLB) GetBackendHttpKeepAlive() *ProxyLBBackendHttpKeepAlive {
21282 return o.BackendHttpKeepAlive
21283 }
21284
21285 // SetBackendHttpKeepAlive sets value to BackendHttpKeepAlive
21286 func (o *ProxyLB) SetBackendHttpKeepAlive(v *ProxyLBBackendHttpKeepAlive) {
21287 o.BackendHttpKeepAlive = v
21288 }
21289
21290 // GetMonitoringSuiteLog returns value of MonitoringSuiteLog
21291 func (o *ProxyLB) GetMonitoringSuiteLog() *MonitoringSuiteLog {
21292 return o.MonitoringSuiteLog
21293 }
21294
21295 // SetMonitoringSuiteLog sets value to MonitoringSuiteLog
21296 func (o *ProxyLB) SetMonitoringSuiteLog(v *MonitoringSuiteLog) {
21297 o.MonitoringSuiteLog = v
21298 }
21299
21300 // GetProxyProtocol returns value of ProxyProtocol
21301 func (o *ProxyLB) GetProxyProtocol() *ProxyLBProxyProtocol {
21302 return o.ProxyProtocol
21303 }
21304
21305 // SetProxyProtocol sets value to ProxyProtocol
21306 func (o *ProxyLB) SetProxyProtocol(v *ProxyLBProxyProtocol) {
21307 o.ProxyProtocol = v
21308 }
21309
21310 // GetSyslog returns value of Syslog
21311 func (o *ProxyLB) GetSyslog() *ProxyLBSyslog {
21312 return o.Syslog
21313 }
21314
21315 // SetSyslog sets value to Syslog
21316 func (o *ProxyLB) SetSyslog(v *ProxyLBSyslog) {
21317 o.Syslog = v
21318 }
21319
21320 // GetTimeout returns value of Timeout
21321 func (o *ProxyLB) GetTimeout() *ProxyLBTimeout {
21322 return o.Timeout
21323 }
21324
21325 // SetTimeout sets value to Timeout
21326 func (o *ProxyLB) SetTimeout(v *ProxyLBTimeout) {
21327 o.Timeout = v
21328 }
21329
21330 // GetSettingsHash returns value of SettingsHash
21331 func (o *ProxyLB) GetSettingsHash() string {
21332 return o.SettingsHash
21333 }
21334
21335 // SetSettingsHash sets value to SettingsHash
21336 func (o *ProxyLB) SetSettingsHash(v string) {
21337 o.SettingsHash = v
21338 }
21339
21340 // GetUseVIPFailover returns value of UseVIPFailover
21341 func (o *ProxyLB) GetUseVIPFailover() bool {
21342 return o.UseVIPFailover
21343 }
21344
21345 // SetUseVIPFailover sets value to UseVIPFailover
21346 func (o *ProxyLB) SetUseVIPFailover(v bool) {
21347 o.UseVIPFailover = v
21348 }
21349
21350 // GetRegion returns value of Region
21351 func (o *ProxyLB) GetRegion() types.EProxyLBRegion {
21352 return o.Region
21353 }
21354
21355 // SetRegion sets value to Region
21356 func (o *ProxyLB) SetRegion(v types.EProxyLBRegion) {
21357 o.Region = v
21358 }
21359
21360 // GetProxyNetworks returns value of ProxyNetworks
21361 func (o *ProxyLB) GetProxyNetworks() []string {
21362 return o.ProxyNetworks
21363 }
21364
21365 // SetProxyNetworks sets value to ProxyNetworks
21366 func (o *ProxyLB) SetProxyNetworks(v []string) {
21367 o.ProxyNetworks = v
21368 }
21369
21370 // GetFQDN returns value of FQDN
21371 func (o *ProxyLB) GetFQDN() string {
21372 return o.FQDN
21373 }
21374
21375 // SetFQDN sets value to FQDN
21376 func (o *ProxyLB) SetFQDN(v string) {
21377 o.FQDN = v
21378 }
21379
21380 // GetVirtualIPAddress returns value of VirtualIPAddress
21381 func (o *ProxyLB) GetVirtualIPAddress() string {
21382 return o.VirtualIPAddress
21383 }
21384
21385 // SetVirtualIPAddress sets value to VirtualIPAddress
21386 func (o *ProxyLB) SetVirtualIPAddress(v string) {
21387 o.VirtualIPAddress = v
21388 }
21389
21390 /*************************************************
21391 * ProxyLBHealthCheck
21392 *************************************************/
21393
21394 // ProxyLBHealthCheck represents API parameter/response structure
21395 type ProxyLBHealthCheck struct {
21396 Protocol types.EProxyLBHealthCheckProtocol
21397 Path string
21398 Host string
21399 DelayLoop int
21400 }
21401
21402 // setDefaults implements iaas.argumentDefaulter
21403 func (o *ProxyLBHealthCheck) setDefaults() interface{} {
21404 return &struct {
21405 Protocol types.EProxyLBHealthCheckProtocol
21406 Path string
21407 Host string
21408 DelayLoop int
21409 }{
21410 Protocol: o.GetProtocol(),
21411 Path: o.GetPath(),
21412 Host: o.GetHost(),
21413 DelayLoop: o.GetDelayLoop(),
21414 }
21415 }
21416
21417 // GetProtocol returns value of Protocol
21418 func (o *ProxyLBHealthCheck) GetProtocol() types.EProxyLBHealthCheckProtocol {
21419 return o.Protocol
21420 }
21421
21422 // SetProtocol sets value to Protocol
21423 func (o *ProxyLBHealthCheck) SetProtocol(v types.EProxyLBHealthCheckProtocol) {
21424 o.Protocol = v
21425 }
21426
21427 // GetPath returns value of Path
21428 func (o *ProxyLBHealthCheck) GetPath() string {
21429 return o.Path
21430 }
21431
21432 // SetPath sets value to Path
21433 func (o *ProxyLBHealthCheck) SetPath(v string) {
21434 o.Path = v
21435 }
21436
21437 // GetHost returns value of Host
21438 func (o *ProxyLBHealthCheck) GetHost() string {
21439 return o.Host
21440 }
21441
21442 // SetHost sets value to Host
21443 func (o *ProxyLBHealthCheck) SetHost(v string) {
21444 o.Host = v
21445 }
21446
21447 // GetDelayLoop returns value of DelayLoop
21448 func (o *ProxyLBHealthCheck) GetDelayLoop() int {
21449 return o.DelayLoop
21450 }
21451
21452 // SetDelayLoop sets value to DelayLoop
21453 func (o *ProxyLBHealthCheck) SetDelayLoop(v int) {
21454 o.DelayLoop = v
21455 }
21456
21457 /*************************************************
21458 * ProxyLBSorryServer
21459 *************************************************/
21460
21461 // ProxyLBSorryServer represents API parameter/response structure
21462 type ProxyLBSorryServer struct {
21463 IPAddress string
21464 Port int `mapconv:",omitempty"`
21465 }
21466
21467 // setDefaults implements iaas.argumentDefaulter
21468 func (o *ProxyLBSorryServer) setDefaults() interface{} {
21469 return &struct {
21470 IPAddress string
21471 Port int `mapconv:",omitempty"`
21472 }{
21473 IPAddress: o.GetIPAddress(),
21474 Port: o.GetPort(),
21475 }
21476 }
21477
21478 // GetIPAddress returns value of IPAddress
21479 func (o *ProxyLBSorryServer) GetIPAddress() string {
21480 return o.IPAddress
21481 }
21482
21483 // SetIPAddress sets value to IPAddress
21484 func (o *ProxyLBSorryServer) SetIPAddress(v string) {
21485 o.IPAddress = v
21486 }
21487
21488 // GetPort returns value of Port
21489 func (o *ProxyLBSorryServer) GetPort() int {
21490 return o.Port
21491 }
21492
21493 // SetPort sets value to Port
21494 func (o *ProxyLBSorryServer) SetPort(v int) {
21495 o.Port = v
21496 }
21497
21498 /*************************************************
21499 * ProxyLBBindPort
21500 *************************************************/
21501
21502 // ProxyLBBindPort represents API parameter/response structure
21503 type ProxyLBBindPort struct {
21504 ProxyMode types.EProxyLBProxyMode
21505 Port int
21506 RedirectToHTTPS bool
21507 SupportHTTP2 bool
21508 AddResponseHeader []*ProxyLBResponseHeader `mapconv:"[]AddResponseHeader,recursive"`
21509 SSLPolicy string
21510 }
21511
21512 // setDefaults implements iaas.argumentDefaulter
21513 func (o *ProxyLBBindPort) setDefaults() interface{} {
21514 return &struct {
21515 ProxyMode types.EProxyLBProxyMode
21516 Port int
21517 RedirectToHTTPS bool
21518 SupportHTTP2 bool
21519 AddResponseHeader []*ProxyLBResponseHeader `mapconv:"[]AddResponseHeader,recursive"`
21520 SSLPolicy string
21521 }{
21522 ProxyMode: o.GetProxyMode(),
21523 Port: o.GetPort(),
21524 RedirectToHTTPS: o.GetRedirectToHTTPS(),
21525 SupportHTTP2: o.GetSupportHTTP2(),
21526 AddResponseHeader: o.GetAddResponseHeader(),
21527 SSLPolicy: o.GetSSLPolicy(),
21528 }
21529 }
21530
21531 // GetProxyMode returns value of ProxyMode
21532 func (o *ProxyLBBindPort) GetProxyMode() types.EProxyLBProxyMode {
21533 return o.ProxyMode
21534 }
21535
21536 // SetProxyMode sets value to ProxyMode
21537 func (o *ProxyLBBindPort) SetProxyMode(v types.EProxyLBProxyMode) {
21538 o.ProxyMode = v
21539 }
21540
21541 // GetPort returns value of Port
21542 func (o *ProxyLBBindPort) GetPort() int {
21543 return o.Port
21544 }
21545
21546 // SetPort sets value to Port
21547 func (o *ProxyLBBindPort) SetPort(v int) {
21548 o.Port = v
21549 }
21550
21551 // GetRedirectToHTTPS returns value of RedirectToHTTPS
21552 func (o *ProxyLBBindPort) GetRedirectToHTTPS() bool {
21553 return o.RedirectToHTTPS
21554 }
21555
21556 // SetRedirectToHTTPS sets value to RedirectToHTTPS
21557 func (o *ProxyLBBindPort) SetRedirectToHTTPS(v bool) {
21558 o.RedirectToHTTPS = v
21559 }
21560
21561 // GetSupportHTTP2 returns value of SupportHTTP2
21562 func (o *ProxyLBBindPort) GetSupportHTTP2() bool {
21563 return o.SupportHTTP2
21564 }
21565
21566 // SetSupportHTTP2 sets value to SupportHTTP2
21567 func (o *ProxyLBBindPort) SetSupportHTTP2(v bool) {
21568 o.SupportHTTP2 = v
21569 }
21570
21571 // GetAddResponseHeader returns value of AddResponseHeader
21572 func (o *ProxyLBBindPort) GetAddResponseHeader() []*ProxyLBResponseHeader {
21573 return o.AddResponseHeader
21574 }
21575
21576 // SetAddResponseHeader sets value to AddResponseHeader
21577 func (o *ProxyLBBindPort) SetAddResponseHeader(v []*ProxyLBResponseHeader) {
21578 o.AddResponseHeader = v
21579 }
21580
21581 // GetSSLPolicy returns value of SSLPolicy
21582 func (o *ProxyLBBindPort) GetSSLPolicy() string {
21583 return o.SSLPolicy
21584 }
21585
21586 // SetSSLPolicy sets value to SSLPolicy
21587 func (o *ProxyLBBindPort) SetSSLPolicy(v string) {
21588 o.SSLPolicy = v
21589 }
21590
21591 /*************************************************
21592 * ProxyLBResponseHeader
21593 *************************************************/
21594
21595 // ProxyLBResponseHeader represents API parameter/response structure
21596 type ProxyLBResponseHeader struct {
21597 Header string
21598 Value string
21599 }
21600
21601 // setDefaults implements iaas.argumentDefaulter
21602 func (o *ProxyLBResponseHeader) setDefaults() interface{} {
21603 return &struct {
21604 Header string
21605 Value string
21606 }{
21607 Header: o.GetHeader(),
21608 Value: o.GetValue(),
21609 }
21610 }
21611
21612 // GetHeader returns value of Header
21613 func (o *ProxyLBResponseHeader) GetHeader() string {
21614 return o.Header
21615 }
21616
21617 // SetHeader sets value to Header
21618 func (o *ProxyLBResponseHeader) SetHeader(v string) {
21619 o.Header = v
21620 }
21621
21622 // GetValue returns value of Value
21623 func (o *ProxyLBResponseHeader) GetValue() string {
21624 return o.Value
21625 }
21626
21627 // SetValue sets value to Value
21628 func (o *ProxyLBResponseHeader) SetValue(v string) {
21629 o.Value = v
21630 }
21631
21632 /*************************************************
21633 * ProxyLBServer
21634 *************************************************/
21635
21636 // ProxyLBServer represents API parameter/response structure
21637 type ProxyLBServer struct {
21638 IPAddress string
21639 Port int
21640 ServerGroup string
21641 Enabled bool
21642 }
21643
21644 // setDefaults implements iaas.argumentDefaulter
21645 func (o *ProxyLBServer) setDefaults() interface{} {
21646 return &struct {
21647 IPAddress string
21648 Port int
21649 ServerGroup string
21650 Enabled bool
21651 }{
21652 IPAddress: o.GetIPAddress(),
21653 Port: o.GetPort(),
21654 ServerGroup: o.GetServerGroup(),
21655 Enabled: o.GetEnabled(),
21656 }
21657 }
21658
21659 // GetIPAddress returns value of IPAddress
21660 func (o *ProxyLBServer) GetIPAddress() string {
21661 return o.IPAddress
21662 }
21663
21664 // SetIPAddress sets value to IPAddress
21665 func (o *ProxyLBServer) SetIPAddress(v string) {
21666 o.IPAddress = v
21667 }
21668
21669 // GetPort returns value of Port
21670 func (o *ProxyLBServer) GetPort() int {
21671 return o.Port
21672 }
21673
21674 // SetPort sets value to Port
21675 func (o *ProxyLBServer) SetPort(v int) {
21676 o.Port = v
21677 }
21678
21679 // GetServerGroup returns value of ServerGroup
21680 func (o *ProxyLBServer) GetServerGroup() string {
21681 return o.ServerGroup
21682 }
21683
21684 // SetServerGroup sets value to ServerGroup
21685 func (o *ProxyLBServer) SetServerGroup(v string) {
21686 o.ServerGroup = v
21687 }
21688
21689 // GetEnabled returns value of Enabled
21690 func (o *ProxyLBServer) GetEnabled() bool {
21691 return o.Enabled
21692 }
21693
21694 // SetEnabled sets value to Enabled
21695 func (o *ProxyLBServer) SetEnabled(v bool) {
21696 o.Enabled = v
21697 }
21698
21699 /*************************************************
21700 * ProxyLBRule
21701 *************************************************/
21702
21703 // ProxyLBRule represents API parameter/response structure
21704 type ProxyLBRule struct {
21705 Host string
21706 Path string
21707 SourceIPs string
21708 RequestHeaderName string
21709 RequestHeaderValue string
21710 RequestHeaderValueIgnoreCase bool
21711 RequestHeaderValueNotMatch bool
21712 ServerGroup string `json:",omitempty" mapconv:",omitempty"`
21713 Action types.EProxyLBRuleAction `json:",omitempty" mapconv:",omitempty"`
21714 RedirectLocation string `json:",omitempty" mapconv:",omitempty"`
21715 RedirectStatusCode types.EProxyLBRedirectStatusCode `json:",omitempty" mapconv:",omitempty"`
21716 FixedStatusCode types.EProxyLBFixedStatusCode `json:",omitempty" mapconv:",omitempty"`
21717 FixedContentType types.EProxyLBFixedContentType `json:",omitempty" mapconv:",omitempty"`
21718 FixedMessageBody string `json:",omitempty" mapconv:",omitempty"`
21719 }
21720
21721 // setDefaults implements iaas.argumentDefaulter
21722 func (o *ProxyLBRule) setDefaults() interface{} {
21723 return &struct {
21724 Host string
21725 Path string
21726 SourceIPs string
21727 RequestHeaderName string
21728 RequestHeaderValue string
21729 RequestHeaderValueIgnoreCase bool
21730 RequestHeaderValueNotMatch bool
21731 ServerGroup string `json:",omitempty" mapconv:",omitempty"`
21732 Action types.EProxyLBRuleAction `json:",omitempty" mapconv:",omitempty"`
21733 RedirectLocation string `json:",omitempty" mapconv:",omitempty"`
21734 RedirectStatusCode types.EProxyLBRedirectStatusCode `json:",omitempty" mapconv:",omitempty"`
21735 FixedStatusCode types.EProxyLBFixedStatusCode `json:",omitempty" mapconv:",omitempty"`
21736 FixedContentType types.EProxyLBFixedContentType `json:",omitempty" mapconv:",omitempty"`
21737 FixedMessageBody string `json:",omitempty" mapconv:",omitempty"`
21738 }{
21739 Host: o.GetHost(),
21740 Path: o.GetPath(),
21741 SourceIPs: o.GetSourceIPs(),
21742 RequestHeaderName: o.GetRequestHeaderName(),
21743 RequestHeaderValue: o.GetRequestHeaderValue(),
21744 RequestHeaderValueIgnoreCase: o.GetRequestHeaderValueIgnoreCase(),
21745 RequestHeaderValueNotMatch: o.GetRequestHeaderValueNotMatch(),
21746 ServerGroup: o.GetServerGroup(),
21747 Action: o.GetAction(),
21748 RedirectLocation: o.GetRedirectLocation(),
21749 RedirectStatusCode: o.GetRedirectStatusCode(),
21750 FixedStatusCode: o.GetFixedStatusCode(),
21751 FixedContentType: o.GetFixedContentType(),
21752 FixedMessageBody: o.GetFixedMessageBody(),
21753 }
21754 }
21755
21756 // GetHost returns value of Host
21757 func (o *ProxyLBRule) GetHost() string {
21758 return o.Host
21759 }
21760
21761 // SetHost sets value to Host
21762 func (o *ProxyLBRule) SetHost(v string) {
21763 o.Host = v
21764 }
21765
21766 // GetPath returns value of Path
21767 func (o *ProxyLBRule) GetPath() string {
21768 return o.Path
21769 }
21770
21771 // SetPath sets value to Path
21772 func (o *ProxyLBRule) SetPath(v string) {
21773 o.Path = v
21774 }
21775
21776 // GetSourceIPs returns value of SourceIPs
21777 func (o *ProxyLBRule) GetSourceIPs() string {
21778 return o.SourceIPs
21779 }
21780
21781 // SetSourceIPs sets value to SourceIPs
21782 func (o *ProxyLBRule) SetSourceIPs(v string) {
21783 o.SourceIPs = v
21784 }
21785
21786 // GetRequestHeaderName returns value of RequestHeaderName
21787 func (o *ProxyLBRule) GetRequestHeaderName() string {
21788 return o.RequestHeaderName
21789 }
21790
21791 // SetRequestHeaderName sets value to RequestHeaderName
21792 func (o *ProxyLBRule) SetRequestHeaderName(v string) {
21793 o.RequestHeaderName = v
21794 }
21795
21796 // GetRequestHeaderValue returns value of RequestHeaderValue
21797 func (o *ProxyLBRule) GetRequestHeaderValue() string {
21798 return o.RequestHeaderValue
21799 }
21800
21801 // SetRequestHeaderValue sets value to RequestHeaderValue
21802 func (o *ProxyLBRule) SetRequestHeaderValue(v string) {
21803 o.RequestHeaderValue = v
21804 }
21805
21806 // GetRequestHeaderValueIgnoreCase returns value of RequestHeaderValueIgnoreCase
21807 func (o *ProxyLBRule) GetRequestHeaderValueIgnoreCase() bool {
21808 return o.RequestHeaderValueIgnoreCase
21809 }
21810
21811 // SetRequestHeaderValueIgnoreCase sets value to RequestHeaderValueIgnoreCase
21812 func (o *ProxyLBRule) SetRequestHeaderValueIgnoreCase(v bool) {
21813 o.RequestHeaderValueIgnoreCase = v
21814 }
21815
21816 // GetRequestHeaderValueNotMatch returns value of RequestHeaderValueNotMatch
21817 func (o *ProxyLBRule) GetRequestHeaderValueNotMatch() bool {
21818 return o.RequestHeaderValueNotMatch
21819 }
21820
21821 // SetRequestHeaderValueNotMatch sets value to RequestHeaderValueNotMatch
21822 func (o *ProxyLBRule) SetRequestHeaderValueNotMatch(v bool) {
21823 o.RequestHeaderValueNotMatch = v
21824 }
21825
21826 // GetServerGroup returns value of ServerGroup
21827 func (o *ProxyLBRule) GetServerGroup() string {
21828 return o.ServerGroup
21829 }
21830
21831 // SetServerGroup sets value to ServerGroup
21832 func (o *ProxyLBRule) SetServerGroup(v string) {
21833 o.ServerGroup = v
21834 }
21835
21836 // GetAction returns value of Action
21837 func (o *ProxyLBRule) GetAction() types.EProxyLBRuleAction {
21838 return o.Action
21839 }
21840
21841 // SetAction sets value to Action
21842 func (o *ProxyLBRule) SetAction(v types.EProxyLBRuleAction) {
21843 o.Action = v
21844 }
21845
21846 // GetRedirectLocation returns value of RedirectLocation
21847 func (o *ProxyLBRule) GetRedirectLocation() string {
21848 return o.RedirectLocation
21849 }
21850
21851 // SetRedirectLocation sets value to RedirectLocation
21852 func (o *ProxyLBRule) SetRedirectLocation(v string) {
21853 o.RedirectLocation = v
21854 }
21855
21856 // GetRedirectStatusCode returns value of RedirectStatusCode
21857 func (o *ProxyLBRule) GetRedirectStatusCode() types.EProxyLBRedirectStatusCode {
21858 return o.RedirectStatusCode
21859 }
21860
21861 // SetRedirectStatusCode sets value to RedirectStatusCode
21862 func (o *ProxyLBRule) SetRedirectStatusCode(v types.EProxyLBRedirectStatusCode) {
21863 o.RedirectStatusCode = v
21864 }
21865
21866 // GetFixedStatusCode returns value of FixedStatusCode
21867 func (o *ProxyLBRule) GetFixedStatusCode() types.EProxyLBFixedStatusCode {
21868 return o.FixedStatusCode
21869 }
21870
21871 // SetFixedStatusCode sets value to FixedStatusCode
21872 func (o *ProxyLBRule) SetFixedStatusCode(v types.EProxyLBFixedStatusCode) {
21873 o.FixedStatusCode = v
21874 }
21875
21876 // GetFixedContentType returns value of FixedContentType
21877 func (o *ProxyLBRule) GetFixedContentType() types.EProxyLBFixedContentType {
21878 return o.FixedContentType
21879 }
21880
21881 // SetFixedContentType sets value to FixedContentType
21882 func (o *ProxyLBRule) SetFixedContentType(v types.EProxyLBFixedContentType) {
21883 o.FixedContentType = v
21884 }
21885
21886 // GetFixedMessageBody returns value of FixedMessageBody
21887 func (o *ProxyLBRule) GetFixedMessageBody() string {
21888 return o.FixedMessageBody
21889 }
21890
21891 // SetFixedMessageBody sets value to FixedMessageBody
21892 func (o *ProxyLBRule) SetFixedMessageBody(v string) {
21893 o.FixedMessageBody = v
21894 }
21895
21896 /*************************************************
21897 * ProxyLBACMESetting
21898 *************************************************/
21899
21900 // ProxyLBACMESetting represents API parameter/response structure
21901 type ProxyLBACMESetting struct {
21902 CommonName string
21903 Enabled bool
21904 SubjectAltNames []string `json:",omitempty" mapconv:",omitempty"`
21905 }
21906
21907 // setDefaults implements iaas.argumentDefaulter
21908 func (o *ProxyLBACMESetting) setDefaults() interface{} {
21909 return &struct {
21910 CommonName string
21911 Enabled bool
21912 SubjectAltNames []string `json:",omitempty" mapconv:",omitempty"`
21913 }{
21914 CommonName: o.GetCommonName(),
21915 Enabled: o.GetEnabled(),
21916 SubjectAltNames: o.GetSubjectAltNames(),
21917 }
21918 }
21919
21920 // GetCommonName returns value of CommonName
21921 func (o *ProxyLBACMESetting) GetCommonName() string {
21922 return o.CommonName
21923 }
21924
21925 // SetCommonName sets value to CommonName
21926 func (o *ProxyLBACMESetting) SetCommonName(v string) {
21927 o.CommonName = v
21928 }
21929
21930 // GetEnabled returns value of Enabled
21931 func (o *ProxyLBACMESetting) GetEnabled() bool {
21932 return o.Enabled
21933 }
21934
21935 // SetEnabled sets value to Enabled
21936 func (o *ProxyLBACMESetting) SetEnabled(v bool) {
21937 o.Enabled = v
21938 }
21939
21940 // GetSubjectAltNames returns value of SubjectAltNames
21941 func (o *ProxyLBACMESetting) GetSubjectAltNames() []string {
21942 return o.SubjectAltNames
21943 }
21944
21945 // SetSubjectAltNames sets value to SubjectAltNames
21946 func (o *ProxyLBACMESetting) SetSubjectAltNames(v []string) {
21947 o.SubjectAltNames = v
21948 }
21949
21950 /*************************************************
21951 * ProxyLBStickySession
21952 *************************************************/
21953
21954 // ProxyLBStickySession represents API parameter/response structure
21955 type ProxyLBStickySession struct {
21956 Method string
21957 Enabled bool
21958 }
21959
21960 // setDefaults implements iaas.argumentDefaulter
21961 func (o *ProxyLBStickySession) setDefaults() interface{} {
21962 return &struct {
21963 Method string
21964 Enabled bool
21965 }{
21966 Method: o.GetMethod(),
21967 Enabled: o.GetEnabled(),
21968 }
21969 }
21970
21971 // GetMethod returns value of Method
21972 func (o *ProxyLBStickySession) GetMethod() string {
21973 return o.Method
21974 }
21975
21976 // SetMethod sets value to Method
21977 func (o *ProxyLBStickySession) SetMethod(v string) {
21978 o.Method = v
21979 }
21980
21981 // GetEnabled returns value of Enabled
21982 func (o *ProxyLBStickySession) GetEnabled() bool {
21983 return o.Enabled
21984 }
21985
21986 // SetEnabled sets value to Enabled
21987 func (o *ProxyLBStickySession) SetEnabled(v bool) {
21988 o.Enabled = v
21989 }
21990
21991 /*************************************************
21992 * ProxyLBGzip
21993 *************************************************/
21994
21995 // ProxyLBGzip represents API parameter/response structure
21996 type ProxyLBGzip struct {
21997 Enabled bool
21998 }
21999
22000 // setDefaults implements iaas.argumentDefaulter
22001 func (o *ProxyLBGzip) setDefaults() interface{} {
22002 return &struct {
22003 Enabled bool
22004 }{
22005 Enabled: o.GetEnabled(),
22006 }
22007 }
22008
22009 // GetEnabled returns value of Enabled
22010 func (o *ProxyLBGzip) GetEnabled() bool {
22011 return o.Enabled
22012 }
22013
22014 // SetEnabled sets value to Enabled
22015 func (o *ProxyLBGzip) SetEnabled(v bool) {
22016 o.Enabled = v
22017 }
22018
22019 /*************************************************
22020 * ProxyLBBackendHttpKeepAlive
22021 *************************************************/
22022
22023 // ProxyLBBackendHttpKeepAlive represents API parameter/response structure
22024 type ProxyLBBackendHttpKeepAlive struct {
22025 Mode types.EProxyLBBackendHttpKeepAlive
22026 }
22027
22028 // setDefaults implements iaas.argumentDefaulter
22029 func (o *ProxyLBBackendHttpKeepAlive) setDefaults() interface{} {
22030 return &struct {
22031 Mode types.EProxyLBBackendHttpKeepAlive
22032 }{
22033 Mode: o.GetMode(),
22034 }
22035 }
22036
22037 // GetMode returns value of Mode
22038 func (o *ProxyLBBackendHttpKeepAlive) GetMode() types.EProxyLBBackendHttpKeepAlive {
22039 return o.Mode
22040 }
22041
22042 // SetMode sets value to Mode
22043 func (o *ProxyLBBackendHttpKeepAlive) SetMode(v types.EProxyLBBackendHttpKeepAlive) {
22044 o.Mode = v
22045 }
22046
22047 /*************************************************
22048 * ProxyLBProxyProtocol
22049 *************************************************/
22050
22051 // ProxyLBProxyProtocol represents API parameter/response structure
22052 type ProxyLBProxyProtocol struct {
22053 Enabled bool
22054 }
22055
22056 // setDefaults implements iaas.argumentDefaulter
22057 func (o *ProxyLBProxyProtocol) setDefaults() interface{} {
22058 return &struct {
22059 Enabled bool
22060 }{
22061 Enabled: o.GetEnabled(),
22062 }
22063 }
22064
22065 // GetEnabled returns value of Enabled
22066 func (o *ProxyLBProxyProtocol) GetEnabled() bool {
22067 return o.Enabled
22068 }
22069
22070 // SetEnabled sets value to Enabled
22071 func (o *ProxyLBProxyProtocol) SetEnabled(v bool) {
22072 o.Enabled = v
22073 }
22074
22075 /*************************************************
22076 * ProxyLBSyslog
22077 *************************************************/
22078
22079 // ProxyLBSyslog represents API parameter/response structure
22080 type ProxyLBSyslog struct {
22081 Server string
22082 Port int
22083 }
22084
22085 // setDefaults implements iaas.argumentDefaulter
22086 func (o *ProxyLBSyslog) setDefaults() interface{} {
22087 return &struct {
22088 Server string
22089 Port int
22090 }{
22091 Server: o.GetServer(),
22092 Port: o.GetPort(),
22093 }
22094 }
22095
22096 // GetServer returns value of Server
22097 func (o *ProxyLBSyslog) GetServer() string {
22098 return o.Server
22099 }
22100
22101 // SetServer sets value to Server
22102 func (o *ProxyLBSyslog) SetServer(v string) {
22103 o.Server = v
22104 }
22105
22106 // GetPort returns value of Port
22107 func (o *ProxyLBSyslog) GetPort() int {
22108 if o.Port == 0 {
22109 return 514
22110 }
22111 return o.Port
22112 }
22113
22114 // SetPort sets value to Port
22115 func (o *ProxyLBSyslog) SetPort(v int) {
22116 o.Port = v
22117 }
22118
22119 /*************************************************
22120 * ProxyLBTimeout
22121 *************************************************/
22122
22123 // ProxyLBTimeout represents API parameter/response structure
22124 type ProxyLBTimeout struct {
22125 InactiveSec int
22126 }
22127
22128 // setDefaults implements iaas.argumentDefaulter
22129 func (o *ProxyLBTimeout) setDefaults() interface{} {
22130 return &struct {
22131 InactiveSec int
22132 }{
22133 InactiveSec: o.GetInactiveSec(),
22134 }
22135 }
22136
22137 // GetInactiveSec returns value of InactiveSec
22138 func (o *ProxyLBTimeout) GetInactiveSec() int {
22139 if o.InactiveSec == 0 {
22140 return 10
22141 }
22142 return o.InactiveSec
22143 }
22144
22145 // SetInactiveSec sets value to InactiveSec
22146 func (o *ProxyLBTimeout) SetInactiveSec(v int) {
22147 o.InactiveSec = v
22148 }
22149
22150 /*************************************************
22151 * ProxyLBCreateRequest
22152 *************************************************/
22153
22154 // ProxyLBCreateRequest represents API parameter/response structure
22155 type ProxyLBCreateRequest struct {
22156 Plan types.EProxyLBPlan
22157 HealthCheck *ProxyLBHealthCheck `mapconv:"Settings.ProxyLB.HealthCheck,recursive"`
22158 SorryServer *ProxyLBSorryServer `mapconv:"Settings.ProxyLB.SorryServer,recursive"`
22159 BindPorts []*ProxyLBBindPort `mapconv:"Settings.ProxyLB.[]BindPorts,recursive"`
22160 Servers []*ProxyLBServer `mapconv:"Settings.ProxyLB.[]Servers,recursive"`
22161 Rules []*ProxyLBRule `mapconv:"Settings.ProxyLB.[]Rules,recursive"`
22162 LetsEncrypt *ProxyLBACMESetting `mapconv:"Settings.ProxyLB.LetsEncrypt,recursive"`
22163 StickySession *ProxyLBStickySession `mapconv:"Settings.ProxyLB.StickySession,recursive"`
22164 Timeout *ProxyLBTimeout `json:",omitempty" mapconv:"Settings.ProxyLB.Timeout,recursive,omitempty"`
22165 Gzip *ProxyLBGzip `mapconv:"Settings.ProxyLB.Gzip,recursive"`
22166 BackendHttpKeepAlive *ProxyLBBackendHttpKeepAlive `mapconv:"Settings.ProxyLB.BackendHttpKeepAlive,recursive"`
22167 MonitoringSuiteLog *MonitoringSuiteLog `mapconv:"Settings.ProxyLB.MonitoringSuiteLog,recursive"`
22168 ProxyProtocol *ProxyLBProxyProtocol `mapconv:"Settings.ProxyLB.ProxyProtocol,recursive"`
22169 Syslog *ProxyLBSyslog `mapconv:"Settings.ProxyLB.Syslog,recursive"`
22170 UseVIPFailover bool `mapconv:"Status.UseVIPFailover"`
22171 Region types.EProxyLBRegion `mapconv:"Status.Region"`
22172 Name string
22173 Description string
22174 Tags types.Tags
22175 IconID types.ID `mapconv:"Icon.ID"`
22176 }
22177
22178 // setDefaults implements iaas.argumentDefaulter
22179 func (o *ProxyLBCreateRequest) setDefaults() interface{} {
22180 return &struct {
22181 Plan types.EProxyLBPlan
22182 HealthCheck *ProxyLBHealthCheck `mapconv:"Settings.ProxyLB.HealthCheck,recursive"`
22183 SorryServer *ProxyLBSorryServer `mapconv:"Settings.ProxyLB.SorryServer,recursive"`
22184 BindPorts []*ProxyLBBindPort `mapconv:"Settings.ProxyLB.[]BindPorts,recursive"`
22185 Servers []*ProxyLBServer `mapconv:"Settings.ProxyLB.[]Servers,recursive"`
22186 Rules []*ProxyLBRule `mapconv:"Settings.ProxyLB.[]Rules,recursive"`
22187 LetsEncrypt *ProxyLBACMESetting `mapconv:"Settings.ProxyLB.LetsEncrypt,recursive"`
22188 StickySession *ProxyLBStickySession `mapconv:"Settings.ProxyLB.StickySession,recursive"`
22189 Timeout *ProxyLBTimeout `json:",omitempty" mapconv:"Settings.ProxyLB.Timeout,recursive,omitempty"`
22190 Gzip *ProxyLBGzip `mapconv:"Settings.ProxyLB.Gzip,recursive"`
22191 BackendHttpKeepAlive *ProxyLBBackendHttpKeepAlive `mapconv:"Settings.ProxyLB.BackendHttpKeepAlive,recursive"`
22192 MonitoringSuiteLog *MonitoringSuiteLog `mapconv:"Settings.ProxyLB.MonitoringSuiteLog,recursive"`
22193 ProxyProtocol *ProxyLBProxyProtocol `mapconv:"Settings.ProxyLB.ProxyProtocol,recursive"`
22194 Syslog *ProxyLBSyslog `mapconv:"Settings.ProxyLB.Syslog,recursive"`
22195 UseVIPFailover bool `mapconv:"Status.UseVIPFailover"`
22196 Region types.EProxyLBRegion `mapconv:"Status.Region"`
22197 Name string
22198 Description string
22199 Tags types.Tags
22200 IconID types.ID `mapconv:"Icon.ID"`
22201 Class string `mapconv:"Provider.Class"`
22202 }{
22203 Plan: o.GetPlan(),
22204 HealthCheck: o.GetHealthCheck(),
22205 SorryServer: o.GetSorryServer(),
22206 BindPorts: o.GetBindPorts(),
22207 Servers: o.GetServers(),
22208 Rules: o.GetRules(),
22209 LetsEncrypt: o.GetLetsEncrypt(),
22210 StickySession: o.GetStickySession(),
22211 Timeout: o.GetTimeout(),
22212 Gzip: o.GetGzip(),
22213 BackendHttpKeepAlive: o.GetBackendHttpKeepAlive(),
22214 MonitoringSuiteLog: o.GetMonitoringSuiteLog(),
22215 ProxyProtocol: o.GetProxyProtocol(),
22216 Syslog: o.GetSyslog(),
22217 UseVIPFailover: o.GetUseVIPFailover(),
22218 Region: o.GetRegion(),
22219 Name: o.GetName(),
22220 Description: o.GetDescription(),
22221 Tags: o.GetTags(),
22222 IconID: o.GetIconID(),
22223 Class: "proxylb",
22224 }
22225 }
22226
22227 // GetPlan returns value of Plan
22228 func (o *ProxyLBCreateRequest) GetPlan() types.EProxyLBPlan {
22229 return o.Plan
22230 }
22231
22232 // SetPlan sets value to Plan
22233 func (o *ProxyLBCreateRequest) SetPlan(v types.EProxyLBPlan) {
22234 o.Plan = v
22235 }
22236
22237 // GetHealthCheck returns value of HealthCheck
22238 func (o *ProxyLBCreateRequest) GetHealthCheck() *ProxyLBHealthCheck {
22239 return o.HealthCheck
22240 }
22241
22242 // SetHealthCheck sets value to HealthCheck
22243 func (o *ProxyLBCreateRequest) SetHealthCheck(v *ProxyLBHealthCheck) {
22244 o.HealthCheck = v
22245 }
22246
22247 // GetSorryServer returns value of SorryServer
22248 func (o *ProxyLBCreateRequest) GetSorryServer() *ProxyLBSorryServer {
22249 return o.SorryServer
22250 }
22251
22252 // SetSorryServer sets value to SorryServer
22253 func (o *ProxyLBCreateRequest) SetSorryServer(v *ProxyLBSorryServer) {
22254 o.SorryServer = v
22255 }
22256
22257 // GetBindPorts returns value of BindPorts
22258 func (o *ProxyLBCreateRequest) GetBindPorts() []*ProxyLBBindPort {
22259 return o.BindPorts
22260 }
22261
22262 // SetBindPorts sets value to BindPorts
22263 func (o *ProxyLBCreateRequest) SetBindPorts(v []*ProxyLBBindPort) {
22264 o.BindPorts = v
22265 }
22266
22267 // GetServers returns value of Servers
22268 func (o *ProxyLBCreateRequest) GetServers() []*ProxyLBServer {
22269 return o.Servers
22270 }
22271
22272 // SetServers sets value to Servers
22273 func (o *ProxyLBCreateRequest) SetServers(v []*ProxyLBServer) {
22274 o.Servers = v
22275 }
22276
22277 // GetRules returns value of Rules
22278 func (o *ProxyLBCreateRequest) GetRules() []*ProxyLBRule {
22279 return o.Rules
22280 }
22281
22282 // SetRules sets value to Rules
22283 func (o *ProxyLBCreateRequest) SetRules(v []*ProxyLBRule) {
22284 o.Rules = v
22285 }
22286
22287 // GetLetsEncrypt returns value of LetsEncrypt
22288 func (o *ProxyLBCreateRequest) GetLetsEncrypt() *ProxyLBACMESetting {
22289 return o.LetsEncrypt
22290 }
22291
22292 // SetLetsEncrypt sets value to LetsEncrypt
22293 func (o *ProxyLBCreateRequest) SetLetsEncrypt(v *ProxyLBACMESetting) {
22294 o.LetsEncrypt = v
22295 }
22296
22297 // GetStickySession returns value of StickySession
22298 func (o *ProxyLBCreateRequest) GetStickySession() *ProxyLBStickySession {
22299 return o.StickySession
22300 }
22301
22302 // SetStickySession sets value to StickySession
22303 func (o *ProxyLBCreateRequest) SetStickySession(v *ProxyLBStickySession) {
22304 o.StickySession = v
22305 }
22306
22307 // GetTimeout returns value of Timeout
22308 func (o *ProxyLBCreateRequest) GetTimeout() *ProxyLBTimeout {
22309 return o.Timeout
22310 }
22311
22312 // SetTimeout sets value to Timeout
22313 func (o *ProxyLBCreateRequest) SetTimeout(v *ProxyLBTimeout) {
22314 o.Timeout = v
22315 }
22316
22317 // GetGzip returns value of Gzip
22318 func (o *ProxyLBCreateRequest) GetGzip() *ProxyLBGzip {
22319 return o.Gzip
22320 }
22321
22322 // SetGzip sets value to Gzip
22323 func (o *ProxyLBCreateRequest) SetGzip(v *ProxyLBGzip) {
22324 o.Gzip = v
22325 }
22326
22327 // GetBackendHttpKeepAlive returns value of BackendHttpKeepAlive
22328 func (o *ProxyLBCreateRequest) GetBackendHttpKeepAlive() *ProxyLBBackendHttpKeepAlive {
22329 return o.BackendHttpKeepAlive
22330 }
22331
22332 // SetBackendHttpKeepAlive sets value to BackendHttpKeepAlive
22333 func (o *ProxyLBCreateRequest) SetBackendHttpKeepAlive(v *ProxyLBBackendHttpKeepAlive) {
22334 o.BackendHttpKeepAlive = v
22335 }
22336
22337 // GetMonitoringSuiteLog returns value of MonitoringSuiteLog
22338 func (o *ProxyLBCreateRequest) GetMonitoringSuiteLog() *MonitoringSuiteLog {
22339 return o.MonitoringSuiteLog
22340 }
22341
22342 // SetMonitoringSuiteLog sets value to MonitoringSuiteLog
22343 func (o *ProxyLBCreateRequest) SetMonitoringSuiteLog(v *MonitoringSuiteLog) {
22344 o.MonitoringSuiteLog = v
22345 }
22346
22347 // GetProxyProtocol returns value of ProxyProtocol
22348 func (o *ProxyLBCreateRequest) GetProxyProtocol() *ProxyLBProxyProtocol {
22349 return o.ProxyProtocol
22350 }
22351
22352 // SetProxyProtocol sets value to ProxyProtocol
22353 func (o *ProxyLBCreateRequest) SetProxyProtocol(v *ProxyLBProxyProtocol) {
22354 o.ProxyProtocol = v
22355 }
22356
22357 // GetSyslog returns value of Syslog
22358 func (o *ProxyLBCreateRequest) GetSyslog() *ProxyLBSyslog {
22359 return o.Syslog
22360 }
22361
22362 // SetSyslog sets value to Syslog
22363 func (o *ProxyLBCreateRequest) SetSyslog(v *ProxyLBSyslog) {
22364 o.Syslog = v
22365 }
22366
22367 // GetUseVIPFailover returns value of UseVIPFailover
22368 func (o *ProxyLBCreateRequest) GetUseVIPFailover() bool {
22369 return o.UseVIPFailover
22370 }
22371
22372 // SetUseVIPFailover sets value to UseVIPFailover
22373 func (o *ProxyLBCreateRequest) SetUseVIPFailover(v bool) {
22374 o.UseVIPFailover = v
22375 }
22376
22377 // GetRegion returns value of Region
22378 func (o *ProxyLBCreateRequest) GetRegion() types.EProxyLBRegion {
22379 return o.Region
22380 }
22381
22382 // SetRegion sets value to Region
22383 func (o *ProxyLBCreateRequest) SetRegion(v types.EProxyLBRegion) {
22384 o.Region = v
22385 }
22386
22387 // GetName returns value of Name
22388 func (o *ProxyLBCreateRequest) GetName() string {
22389 return o.Name
22390 }
22391
22392 // SetName sets value to Name
22393 func (o *ProxyLBCreateRequest) SetName(v string) {
22394 o.Name = v
22395 }
22396
22397 // GetDescription returns value of Description
22398 func (o *ProxyLBCreateRequest) GetDescription() string {
22399 return o.Description
22400 }
22401
22402 // SetDescription sets value to Description
22403 func (o *ProxyLBCreateRequest) SetDescription(v string) {
22404 o.Description = v
22405 }
22406
22407 // GetTags returns value of Tags
22408 func (o *ProxyLBCreateRequest) GetTags() types.Tags {
22409 return o.Tags
22410 }
22411
22412 // SetTags sets value to Tags
22413 func (o *ProxyLBCreateRequest) SetTags(v types.Tags) {
22414 o.Tags = v
22415 }
22416
22417 // HasTag 指定のタグが存在する場合trueを返す
22418 func (o *ProxyLBCreateRequest) HasTag(tag string) bool {
22419 return accessor.HasTag(o, tag)
22420 }
22421
22422 // AppendTag 指定のタグを追加
22423 func (o *ProxyLBCreateRequest) AppendTag(tag string) {
22424 accessor.AppendTag(o, tag)
22425 }
22426
22427 // RemoveTag 指定のタグを削除
22428 func (o *ProxyLBCreateRequest) RemoveTag(tag string) {
22429 accessor.RemoveTag(o, tag)
22430 }
22431
22432 // ClearTags タグを全クリア
22433 func (o *ProxyLBCreateRequest) ClearTags() {
22434 accessor.ClearTags(o)
22435 }
22436
22437 // GetIconID returns value of IconID
22438 func (o *ProxyLBCreateRequest) GetIconID() types.ID {
22439 return o.IconID
22440 }
22441
22442 // SetIconID sets value to IconID
22443 func (o *ProxyLBCreateRequest) SetIconID(v types.ID) {
22444 o.IconID = v
22445 }
22446
22447 /*************************************************
22448 * ProxyLBUpdateRequest
22449 *************************************************/
22450
22451 // ProxyLBUpdateRequest represents API parameter/response structure
22452 type ProxyLBUpdateRequest struct {
22453 HealthCheck *ProxyLBHealthCheck `mapconv:"Settings.ProxyLB.HealthCheck,recursive"`
22454 SorryServer *ProxyLBSorryServer `mapconv:"Settings.ProxyLB.SorryServer,recursive"`
22455 BindPorts []*ProxyLBBindPort `mapconv:"Settings.ProxyLB.[]BindPorts,recursive"`
22456 Servers []*ProxyLBServer `mapconv:"Settings.ProxyLB.[]Servers,recursive"`
22457 Rules []*ProxyLBRule `mapconv:"Settings.ProxyLB.[]Rules,recursive"`
22458 LetsEncrypt *ProxyLBACMESetting `mapconv:"Settings.ProxyLB.LetsEncrypt,recursive"`
22459 StickySession *ProxyLBStickySession `mapconv:"Settings.ProxyLB.StickySession,recursive"`
22460 Timeout *ProxyLBTimeout `json:",omitempty" mapconv:"Settings.ProxyLB.Timeout,recursive,omitempty"`
22461 Gzip *ProxyLBGzip `mapconv:"Settings.ProxyLB.Gzip,recursive"`
22462 BackendHttpKeepAlive *ProxyLBBackendHttpKeepAlive `mapconv:"Settings.ProxyLB.BackendHttpKeepAlive,recursive"`
22463 MonitoringSuiteLog *MonitoringSuiteLog `mapconv:"Settings.ProxyLB.MonitoringSuiteLog,recursive"`
22464 ProxyProtocol *ProxyLBProxyProtocol `mapconv:"Settings.ProxyLB.ProxyProtocol,recursive"`
22465 Syslog *ProxyLBSyslog `mapconv:"Settings.ProxyLB.Syslog,recursive"`
22466 SettingsHash string `json:",omitempty" mapconv:",omitempty"`
22467 Name string
22468 Description string
22469 Tags types.Tags
22470 IconID types.ID `mapconv:"Icon.ID"`
22471 }
22472
22473 // setDefaults implements iaas.argumentDefaulter
22474 func (o *ProxyLBUpdateRequest) setDefaults() interface{} {
22475 return &struct {
22476 HealthCheck *ProxyLBHealthCheck `mapconv:"Settings.ProxyLB.HealthCheck,recursive"`
22477 SorryServer *ProxyLBSorryServer `mapconv:"Settings.ProxyLB.SorryServer,recursive"`
22478 BindPorts []*ProxyLBBindPort `mapconv:"Settings.ProxyLB.[]BindPorts,recursive"`
22479 Servers []*ProxyLBServer `mapconv:"Settings.ProxyLB.[]Servers,recursive"`
22480 Rules []*ProxyLBRule `mapconv:"Settings.ProxyLB.[]Rules,recursive"`
22481 LetsEncrypt *ProxyLBACMESetting `mapconv:"Settings.ProxyLB.LetsEncrypt,recursive"`
22482 StickySession *ProxyLBStickySession `mapconv:"Settings.ProxyLB.StickySession,recursive"`
22483 Timeout *ProxyLBTimeout `json:",omitempty" mapconv:"Settings.ProxyLB.Timeout,recursive,omitempty"`
22484 Gzip *ProxyLBGzip `mapconv:"Settings.ProxyLB.Gzip,recursive"`
22485 BackendHttpKeepAlive *ProxyLBBackendHttpKeepAlive `mapconv:"Settings.ProxyLB.BackendHttpKeepAlive,recursive"`
22486 MonitoringSuiteLog *MonitoringSuiteLog `mapconv:"Settings.ProxyLB.MonitoringSuiteLog,recursive"`
22487 ProxyProtocol *ProxyLBProxyProtocol `mapconv:"Settings.ProxyLB.ProxyProtocol,recursive"`
22488 Syslog *ProxyLBSyslog `mapconv:"Settings.ProxyLB.Syslog,recursive"`
22489 SettingsHash string `json:",omitempty" mapconv:",omitempty"`
22490 Name string
22491 Description string
22492 Tags types.Tags
22493 IconID types.ID `mapconv:"Icon.ID"`
22494 }{
22495 HealthCheck: o.GetHealthCheck(),
22496 SorryServer: o.GetSorryServer(),
22497 BindPorts: o.GetBindPorts(),
22498 Servers: o.GetServers(),
22499 Rules: o.GetRules(),
22500 LetsEncrypt: o.GetLetsEncrypt(),
22501 StickySession: o.GetStickySession(),
22502 Timeout: o.GetTimeout(),
22503 Gzip: o.GetGzip(),
22504 BackendHttpKeepAlive: o.GetBackendHttpKeepAlive(),
22505 MonitoringSuiteLog: o.GetMonitoringSuiteLog(),
22506 ProxyProtocol: o.GetProxyProtocol(),
22507 Syslog: o.GetSyslog(),
22508 SettingsHash: o.GetSettingsHash(),
22509 Name: o.GetName(),
22510 Description: o.GetDescription(),
22511 Tags: o.GetTags(),
22512 IconID: o.GetIconID(),
22513 }
22514 }
22515
22516 // GetHealthCheck returns value of HealthCheck
22517 func (o *ProxyLBUpdateRequest) GetHealthCheck() *ProxyLBHealthCheck {
22518 return o.HealthCheck
22519 }
22520
22521 // SetHealthCheck sets value to HealthCheck
22522 func (o *ProxyLBUpdateRequest) SetHealthCheck(v *ProxyLBHealthCheck) {
22523 o.HealthCheck = v
22524 }
22525
22526 // GetSorryServer returns value of SorryServer
22527 func (o *ProxyLBUpdateRequest) GetSorryServer() *ProxyLBSorryServer {
22528 return o.SorryServer
22529 }
22530
22531 // SetSorryServer sets value to SorryServer
22532 func (o *ProxyLBUpdateRequest) SetSorryServer(v *ProxyLBSorryServer) {
22533 o.SorryServer = v
22534 }
22535
22536 // GetBindPorts returns value of BindPorts
22537 func (o *ProxyLBUpdateRequest) GetBindPorts() []*ProxyLBBindPort {
22538 return o.BindPorts
22539 }
22540
22541 // SetBindPorts sets value to BindPorts
22542 func (o *ProxyLBUpdateRequest) SetBindPorts(v []*ProxyLBBindPort) {
22543 o.BindPorts = v
22544 }
22545
22546 // GetServers returns value of Servers
22547 func (o *ProxyLBUpdateRequest) GetServers() []*ProxyLBServer {
22548 return o.Servers
22549 }
22550
22551 // SetServers sets value to Servers
22552 func (o *ProxyLBUpdateRequest) SetServers(v []*ProxyLBServer) {
22553 o.Servers = v
22554 }
22555
22556 // GetRules returns value of Rules
22557 func (o *ProxyLBUpdateRequest) GetRules() []*ProxyLBRule {
22558 return o.Rules
22559 }
22560
22561 // SetRules sets value to Rules
22562 func (o *ProxyLBUpdateRequest) SetRules(v []*ProxyLBRule) {
22563 o.Rules = v
22564 }
22565
22566 // GetLetsEncrypt returns value of LetsEncrypt
22567 func (o *ProxyLBUpdateRequest) GetLetsEncrypt() *ProxyLBACMESetting {
22568 return o.LetsEncrypt
22569 }
22570
22571 // SetLetsEncrypt sets value to LetsEncrypt
22572 func (o *ProxyLBUpdateRequest) SetLetsEncrypt(v *ProxyLBACMESetting) {
22573 o.LetsEncrypt = v
22574 }
22575
22576 // GetStickySession returns value of StickySession
22577 func (o *ProxyLBUpdateRequest) GetStickySession() *ProxyLBStickySession {
22578 return o.StickySession
22579 }
22580
22581 // SetStickySession sets value to StickySession
22582 func (o *ProxyLBUpdateRequest) SetStickySession(v *ProxyLBStickySession) {
22583 o.StickySession = v
22584 }
22585
22586 // GetTimeout returns value of Timeout
22587 func (o *ProxyLBUpdateRequest) GetTimeout() *ProxyLBTimeout {
22588 return o.Timeout
22589 }
22590
22591 // SetTimeout sets value to Timeout
22592 func (o *ProxyLBUpdateRequest) SetTimeout(v *ProxyLBTimeout) {
22593 o.Timeout = v
22594 }
22595
22596 // GetGzip returns value of Gzip
22597 func (o *ProxyLBUpdateRequest) GetGzip() *ProxyLBGzip {
22598 return o.Gzip
22599 }
22600
22601 // SetGzip sets value to Gzip
22602 func (o *ProxyLBUpdateRequest) SetGzip(v *ProxyLBGzip) {
22603 o.Gzip = v
22604 }
22605
22606 // GetBackendHttpKeepAlive returns value of BackendHttpKeepAlive
22607 func (o *ProxyLBUpdateRequest) GetBackendHttpKeepAlive() *ProxyLBBackendHttpKeepAlive {
22608 return o.BackendHttpKeepAlive
22609 }
22610
22611 // SetBackendHttpKeepAlive sets value to BackendHttpKeepAlive
22612 func (o *ProxyLBUpdateRequest) SetBackendHttpKeepAlive(v *ProxyLBBackendHttpKeepAlive) {
22613 o.BackendHttpKeepAlive = v
22614 }
22615
22616 // GetMonitoringSuiteLog returns value of MonitoringSuiteLog
22617 func (o *ProxyLBUpdateRequest) GetMonitoringSuiteLog() *MonitoringSuiteLog {
22618 return o.MonitoringSuiteLog
22619 }
22620
22621 // SetMonitoringSuiteLog sets value to MonitoringSuiteLog
22622 func (o *ProxyLBUpdateRequest) SetMonitoringSuiteLog(v *MonitoringSuiteLog) {
22623 o.MonitoringSuiteLog = v
22624 }
22625
22626 // GetProxyProtocol returns value of ProxyProtocol
22627 func (o *ProxyLBUpdateRequest) GetProxyProtocol() *ProxyLBProxyProtocol {
22628 return o.ProxyProtocol
22629 }
22630
22631 // SetProxyProtocol sets value to ProxyProtocol
22632 func (o *ProxyLBUpdateRequest) SetProxyProtocol(v *ProxyLBProxyProtocol) {
22633 o.ProxyProtocol = v
22634 }
22635
22636 // GetSyslog returns value of Syslog
22637 func (o *ProxyLBUpdateRequest) GetSyslog() *ProxyLBSyslog {
22638 return o.Syslog
22639 }
22640
22641 // SetSyslog sets value to Syslog
22642 func (o *ProxyLBUpdateRequest) SetSyslog(v *ProxyLBSyslog) {
22643 o.Syslog = v
22644 }
22645
22646 // GetSettingsHash returns value of SettingsHash
22647 func (o *ProxyLBUpdateRequest) GetSettingsHash() string {
22648 return o.SettingsHash
22649 }
22650
22651 // SetSettingsHash sets value to SettingsHash
22652 func (o *ProxyLBUpdateRequest) SetSettingsHash(v string) {
22653 o.SettingsHash = v
22654 }
22655
22656 // GetName returns value of Name
22657 func (o *ProxyLBUpdateRequest) GetName() string {
22658 return o.Name
22659 }
22660
22661 // SetName sets value to Name
22662 func (o *ProxyLBUpdateRequest) SetName(v string) {
22663 o.Name = v
22664 }
22665
22666 // GetDescription returns value of Description
22667 func (o *ProxyLBUpdateRequest) GetDescription() string {
22668 return o.Description
22669 }
22670
22671 // SetDescription sets value to Description
22672 func (o *ProxyLBUpdateRequest) SetDescription(v string) {
22673 o.Description = v
22674 }
22675
22676 // GetTags returns value of Tags
22677 func (o *ProxyLBUpdateRequest) GetTags() types.Tags {
22678 return o.Tags
22679 }
22680
22681 // SetTags sets value to Tags
22682 func (o *ProxyLBUpdateRequest) SetTags(v types.Tags) {
22683 o.Tags = v
22684 }
22685
22686 // HasTag 指定のタグが存在する場合trueを返す
22687 func (o *ProxyLBUpdateRequest) HasTag(tag string) bool {
22688 return accessor.HasTag(o, tag)
22689 }
22690
22691 // AppendTag 指定のタグを追加
22692 func (o *ProxyLBUpdateRequest) AppendTag(tag string) {
22693 accessor.AppendTag(o, tag)
22694 }
22695
22696 // RemoveTag 指定のタグを削除
22697 func (o *ProxyLBUpdateRequest) RemoveTag(tag string) {
22698 accessor.RemoveTag(o, tag)
22699 }
22700
22701 // ClearTags タグを全クリア
22702 func (o *ProxyLBUpdateRequest) ClearTags() {
22703 accessor.ClearTags(o)
22704 }
22705
22706 // GetIconID returns value of IconID
22707 func (o *ProxyLBUpdateRequest) GetIconID() types.ID {
22708 return o.IconID
22709 }
22710
22711 // SetIconID sets value to IconID
22712 func (o *ProxyLBUpdateRequest) SetIconID(v types.ID) {
22713 o.IconID = v
22714 }
22715
22716 /*************************************************
22717 * ProxyLBUpdateSettingsRequest
22718 *************************************************/
22719
22720 // ProxyLBUpdateSettingsRequest represents API parameter/response structure
22721 type ProxyLBUpdateSettingsRequest struct {
22722 HealthCheck *ProxyLBHealthCheck `mapconv:"Settings.ProxyLB.HealthCheck,recursive"`
22723 SorryServer *ProxyLBSorryServer `mapconv:"Settings.ProxyLB.SorryServer,recursive"`
22724 BindPorts []*ProxyLBBindPort `mapconv:"Settings.ProxyLB.[]BindPorts,recursive"`
22725 Servers []*ProxyLBServer `mapconv:"Settings.ProxyLB.[]Servers,recursive"`
22726 Rules []*ProxyLBRule `mapconv:"Settings.ProxyLB.[]Rules,recursive"`
22727 LetsEncrypt *ProxyLBACMESetting `mapconv:"Settings.ProxyLB.LetsEncrypt,recursive"`
22728 StickySession *ProxyLBStickySession `mapconv:"Settings.ProxyLB.StickySession,recursive"`
22729 Timeout *ProxyLBTimeout `json:",omitempty" mapconv:"Settings.ProxyLB.Timeout,recursive,omitempty"`
22730 Gzip *ProxyLBGzip `mapconv:"Settings.ProxyLB.Gzip,recursive"`
22731 BackendHttpKeepAlive *ProxyLBBackendHttpKeepAlive `mapconv:"Settings.ProxyLB.BackendHttpKeepAlive,recursive"`
22732 MonitoringSuiteLog *MonitoringSuiteLog `mapconv:"Settings.ProxyLB.MonitoringSuiteLog,recursive"`
22733 ProxyProtocol *ProxyLBProxyProtocol `mapconv:"Settings.ProxyLB.ProxyProtocol,recursive"`
22734 Syslog *ProxyLBSyslog `mapconv:"Settings.ProxyLB.Syslog,recursive"`
22735 SettingsHash string `json:",omitempty" mapconv:",omitempty"`
22736 }
22737
22738 // setDefaults implements iaas.argumentDefaulter
22739 func (o *ProxyLBUpdateSettingsRequest) setDefaults() interface{} {
22740 return &struct {
22741 HealthCheck *ProxyLBHealthCheck `mapconv:"Settings.ProxyLB.HealthCheck,recursive"`
22742 SorryServer *ProxyLBSorryServer `mapconv:"Settings.ProxyLB.SorryServer,recursive"`
22743 BindPorts []*ProxyLBBindPort `mapconv:"Settings.ProxyLB.[]BindPorts,recursive"`
22744 Servers []*ProxyLBServer `mapconv:"Settings.ProxyLB.[]Servers,recursive"`
22745 Rules []*ProxyLBRule `mapconv:"Settings.ProxyLB.[]Rules,recursive"`
22746 LetsEncrypt *ProxyLBACMESetting `mapconv:"Settings.ProxyLB.LetsEncrypt,recursive"`
22747 StickySession *ProxyLBStickySession `mapconv:"Settings.ProxyLB.StickySession,recursive"`
22748 Timeout *ProxyLBTimeout `json:",omitempty" mapconv:"Settings.ProxyLB.Timeout,recursive,omitempty"`
22749 Gzip *ProxyLBGzip `mapconv:"Settings.ProxyLB.Gzip,recursive"`
22750 BackendHttpKeepAlive *ProxyLBBackendHttpKeepAlive `mapconv:"Settings.ProxyLB.BackendHttpKeepAlive,recursive"`
22751 MonitoringSuiteLog *MonitoringSuiteLog `mapconv:"Settings.ProxyLB.MonitoringSuiteLog,recursive"`
22752 ProxyProtocol *ProxyLBProxyProtocol `mapconv:"Settings.ProxyLB.ProxyProtocol,recursive"`
22753 Syslog *ProxyLBSyslog `mapconv:"Settings.ProxyLB.Syslog,recursive"`
22754 SettingsHash string `json:",omitempty" mapconv:",omitempty"`
22755 }{
22756 HealthCheck: o.GetHealthCheck(),
22757 SorryServer: o.GetSorryServer(),
22758 BindPorts: o.GetBindPorts(),
22759 Servers: o.GetServers(),
22760 Rules: o.GetRules(),
22761 LetsEncrypt: o.GetLetsEncrypt(),
22762 StickySession: o.GetStickySession(),
22763 Timeout: o.GetTimeout(),
22764 Gzip: o.GetGzip(),
22765 BackendHttpKeepAlive: o.GetBackendHttpKeepAlive(),
22766 MonitoringSuiteLog: o.GetMonitoringSuiteLog(),
22767 ProxyProtocol: o.GetProxyProtocol(),
22768 Syslog: o.GetSyslog(),
22769 SettingsHash: o.GetSettingsHash(),
22770 }
22771 }
22772
22773 // GetHealthCheck returns value of HealthCheck
22774 func (o *ProxyLBUpdateSettingsRequest) GetHealthCheck() *ProxyLBHealthCheck {
22775 return o.HealthCheck
22776 }
22777
22778 // SetHealthCheck sets value to HealthCheck
22779 func (o *ProxyLBUpdateSettingsRequest) SetHealthCheck(v *ProxyLBHealthCheck) {
22780 o.HealthCheck = v
22781 }
22782
22783 // GetSorryServer returns value of SorryServer
22784 func (o *ProxyLBUpdateSettingsRequest) GetSorryServer() *ProxyLBSorryServer {
22785 return o.SorryServer
22786 }
22787
22788 // SetSorryServer sets value to SorryServer
22789 func (o *ProxyLBUpdateSettingsRequest) SetSorryServer(v *ProxyLBSorryServer) {
22790 o.SorryServer = v
22791 }
22792
22793 // GetBindPorts returns value of BindPorts
22794 func (o *ProxyLBUpdateSettingsRequest) GetBindPorts() []*ProxyLBBindPort {
22795 return o.BindPorts
22796 }
22797
22798 // SetBindPorts sets value to BindPorts
22799 func (o *ProxyLBUpdateSettingsRequest) SetBindPorts(v []*ProxyLBBindPort) {
22800 o.BindPorts = v
22801 }
22802
22803 // GetServers returns value of Servers
22804 func (o *ProxyLBUpdateSettingsRequest) GetServers() []*ProxyLBServer {
22805 return o.Servers
22806 }
22807
22808 // SetServers sets value to Servers
22809 func (o *ProxyLBUpdateSettingsRequest) SetServers(v []*ProxyLBServer) {
22810 o.Servers = v
22811 }
22812
22813 // GetRules returns value of Rules
22814 func (o *ProxyLBUpdateSettingsRequest) GetRules() []*ProxyLBRule {
22815 return o.Rules
22816 }
22817
22818 // SetRules sets value to Rules
22819 func (o *ProxyLBUpdateSettingsRequest) SetRules(v []*ProxyLBRule) {
22820 o.Rules = v
22821 }
22822
22823 // GetLetsEncrypt returns value of LetsEncrypt
22824 func (o *ProxyLBUpdateSettingsRequest) GetLetsEncrypt() *ProxyLBACMESetting {
22825 return o.LetsEncrypt
22826 }
22827
22828 // SetLetsEncrypt sets value to LetsEncrypt
22829 func (o *ProxyLBUpdateSettingsRequest) SetLetsEncrypt(v *ProxyLBACMESetting) {
22830 o.LetsEncrypt = v
22831 }
22832
22833 // GetStickySession returns value of StickySession
22834 func (o *ProxyLBUpdateSettingsRequest) GetStickySession() *ProxyLBStickySession {
22835 return o.StickySession
22836 }
22837
22838 // SetStickySession sets value to StickySession
22839 func (o *ProxyLBUpdateSettingsRequest) SetStickySession(v *ProxyLBStickySession) {
22840 o.StickySession = v
22841 }
22842
22843 // GetTimeout returns value of Timeout
22844 func (o *ProxyLBUpdateSettingsRequest) GetTimeout() *ProxyLBTimeout {
22845 return o.Timeout
22846 }
22847
22848 // SetTimeout sets value to Timeout
22849 func (o *ProxyLBUpdateSettingsRequest) SetTimeout(v *ProxyLBTimeout) {
22850 o.Timeout = v
22851 }
22852
22853 // GetGzip returns value of Gzip
22854 func (o *ProxyLBUpdateSettingsRequest) GetGzip() *ProxyLBGzip {
22855 return o.Gzip
22856 }
22857
22858 // SetGzip sets value to Gzip
22859 func (o *ProxyLBUpdateSettingsRequest) SetGzip(v *ProxyLBGzip) {
22860 o.Gzip = v
22861 }
22862
22863 // GetBackendHttpKeepAlive returns value of BackendHttpKeepAlive
22864 func (o *ProxyLBUpdateSettingsRequest) GetBackendHttpKeepAlive() *ProxyLBBackendHttpKeepAlive {
22865 return o.BackendHttpKeepAlive
22866 }
22867
22868 // SetBackendHttpKeepAlive sets value to BackendHttpKeepAlive
22869 func (o *ProxyLBUpdateSettingsRequest) SetBackendHttpKeepAlive(v *ProxyLBBackendHttpKeepAlive) {
22870 o.BackendHttpKeepAlive = v
22871 }
22872
22873 // GetMonitoringSuiteLog returns value of MonitoringSuiteLog
22874 func (o *ProxyLBUpdateSettingsRequest) GetMonitoringSuiteLog() *MonitoringSuiteLog {
22875 return o.MonitoringSuiteLog
22876 }
22877
22878 // SetMonitoringSuiteLog sets value to MonitoringSuiteLog
22879 func (o *ProxyLBUpdateSettingsRequest) SetMonitoringSuiteLog(v *MonitoringSuiteLog) {
22880 o.MonitoringSuiteLog = v
22881 }
22882
22883 // GetProxyProtocol returns value of ProxyProtocol
22884 func (o *ProxyLBUpdateSettingsRequest) GetProxyProtocol() *ProxyLBProxyProtocol {
22885 return o.ProxyProtocol
22886 }
22887
22888 // SetProxyProtocol sets value to ProxyProtocol
22889 func (o *ProxyLBUpdateSettingsRequest) SetProxyProtocol(v *ProxyLBProxyProtocol) {
22890 o.ProxyProtocol = v
22891 }
22892
22893 // GetSyslog returns value of Syslog
22894 func (o *ProxyLBUpdateSettingsRequest) GetSyslog() *ProxyLBSyslog {
22895 return o.Syslog
22896 }
22897
22898 // SetSyslog sets value to Syslog
22899 func (o *ProxyLBUpdateSettingsRequest) SetSyslog(v *ProxyLBSyslog) {
22900 o.Syslog = v
22901 }
22902
22903 // GetSettingsHash returns value of SettingsHash
22904 func (o *ProxyLBUpdateSettingsRequest) GetSettingsHash() string {
22905 return o.SettingsHash
22906 }
22907
22908 // SetSettingsHash sets value to SettingsHash
22909 func (o *ProxyLBUpdateSettingsRequest) SetSettingsHash(v string) {
22910 o.SettingsHash = v
22911 }
22912
22913 /*************************************************
22914 * ProxyLBChangePlanRequest
22915 *************************************************/
22916
22917 // ProxyLBChangePlanRequest represents API parameter/response structure
22918 type ProxyLBChangePlanRequest struct {
22919 ServiceClass string
22920 }
22921
22922 // setDefaults implements iaas.argumentDefaulter
22923 func (o *ProxyLBChangePlanRequest) setDefaults() interface{} {
22924 return &struct {
22925 ServiceClass string
22926 }{
22927 ServiceClass: o.GetServiceClass(),
22928 }
22929 }
22930
22931 // GetServiceClass returns value of ServiceClass
22932 func (o *ProxyLBChangePlanRequest) GetServiceClass() string {
22933 return o.ServiceClass
22934 }
22935
22936 // SetServiceClass sets value to ServiceClass
22937 func (o *ProxyLBChangePlanRequest) SetServiceClass(v string) {
22938 o.ServiceClass = v
22939 }
22940
22941 /*************************************************
22942 * ProxyLBCertificates
22943 *************************************************/
22944
22945 // ProxyLBCertificates represents API parameter/response structure
22946 type ProxyLBCertificates struct {
22947 PrimaryCert *ProxyLBPrimaryCert
22948 AdditionalCerts []*ProxyLBAdditionalCert `mapconv:"[]AdditionalCerts, recursive"`
22949 }
22950
22951 // setDefaults implements iaas.argumentDefaulter
22952 func (o *ProxyLBCertificates) setDefaults() interface{} {
22953 return &struct {
22954 PrimaryCert *ProxyLBPrimaryCert
22955 AdditionalCerts []*ProxyLBAdditionalCert `mapconv:"[]AdditionalCerts, recursive"`
22956 }{
22957 PrimaryCert: o.GetPrimaryCert(),
22958 AdditionalCerts: o.GetAdditionalCerts(),
22959 }
22960 }
22961
22962 // GetPrimaryCert returns value of PrimaryCert
22963 func (o *ProxyLBCertificates) GetPrimaryCert() *ProxyLBPrimaryCert {
22964 return o.PrimaryCert
22965 }
22966
22967 // SetPrimaryCert sets value to PrimaryCert
22968 func (o *ProxyLBCertificates) SetPrimaryCert(v *ProxyLBPrimaryCert) {
22969 o.PrimaryCert = v
22970 }
22971
22972 // GetAdditionalCerts returns value of AdditionalCerts
22973 func (o *ProxyLBCertificates) GetAdditionalCerts() []*ProxyLBAdditionalCert {
22974 return o.AdditionalCerts
22975 }
22976
22977 // SetAdditionalCerts sets value to AdditionalCerts
22978 func (o *ProxyLBCertificates) SetAdditionalCerts(v []*ProxyLBAdditionalCert) {
22979 o.AdditionalCerts = v
22980 }
22981
22982 /*************************************************
22983 * ProxyLBPrimaryCert
22984 *************************************************/
22985
22986 // ProxyLBPrimaryCert represents API parameter/response structure
22987 type ProxyLBPrimaryCert struct {
22988 ServerCertificate string
22989 IntermediateCertificate string
22990 PrivateKey string
22991 CertificateEndDate time.Time
22992 CertificateCommonName string
22993 CertificateAltNames string
22994 }
22995
22996 // setDefaults implements iaas.argumentDefaulter
22997 func (o *ProxyLBPrimaryCert) setDefaults() interface{} {
22998 return &struct {
22999 ServerCertificate string
23000 IntermediateCertificate string
23001 PrivateKey string
23002 CertificateEndDate time.Time
23003 CertificateCommonName string
23004 CertificateAltNames string
23005 }{
23006 ServerCertificate: o.GetServerCertificate(),
23007 IntermediateCertificate: o.GetIntermediateCertificate(),
23008 PrivateKey: o.GetPrivateKey(),
23009 CertificateEndDate: o.GetCertificateEndDate(),
23010 CertificateCommonName: o.GetCertificateCommonName(),
23011 CertificateAltNames: o.GetCertificateAltNames(),
23012 }
23013 }
23014
23015 // GetServerCertificate returns value of ServerCertificate
23016 func (o *ProxyLBPrimaryCert) GetServerCertificate() string {
23017 return o.ServerCertificate
23018 }
23019
23020 // SetServerCertificate sets value to ServerCertificate
23021 func (o *ProxyLBPrimaryCert) SetServerCertificate(v string) {
23022 o.ServerCertificate = v
23023 }
23024
23025 // GetIntermediateCertificate returns value of IntermediateCertificate
23026 func (o *ProxyLBPrimaryCert) GetIntermediateCertificate() string {
23027 return o.IntermediateCertificate
23028 }
23029
23030 // SetIntermediateCertificate sets value to IntermediateCertificate
23031 func (o *ProxyLBPrimaryCert) SetIntermediateCertificate(v string) {
23032 o.IntermediateCertificate = v
23033 }
23034
23035 // GetPrivateKey returns value of PrivateKey
23036 func (o *ProxyLBPrimaryCert) GetPrivateKey() string {
23037 return o.PrivateKey
23038 }
23039
23040 // SetPrivateKey sets value to PrivateKey
23041 func (o *ProxyLBPrimaryCert) SetPrivateKey(v string) {
23042 o.PrivateKey = v
23043 }
23044
23045 // GetCertificateEndDate returns value of CertificateEndDate
23046 func (o *ProxyLBPrimaryCert) GetCertificateEndDate() time.Time {
23047 return o.CertificateEndDate
23048 }
23049
23050 // SetCertificateEndDate sets value to CertificateEndDate
23051 func (o *ProxyLBPrimaryCert) SetCertificateEndDate(v time.Time) {
23052 o.CertificateEndDate = v
23053 }
23054
23055 // GetCertificateCommonName returns value of CertificateCommonName
23056 func (o *ProxyLBPrimaryCert) GetCertificateCommonName() string {
23057 return o.CertificateCommonName
23058 }
23059
23060 // SetCertificateCommonName sets value to CertificateCommonName
23061 func (o *ProxyLBPrimaryCert) SetCertificateCommonName(v string) {
23062 o.CertificateCommonName = v
23063 }
23064
23065 // GetCertificateAltNames returns value of CertificateAltNames
23066 func (o *ProxyLBPrimaryCert) GetCertificateAltNames() string {
23067 return o.CertificateAltNames
23068 }
23069
23070 // SetCertificateAltNames sets value to CertificateAltNames
23071 func (o *ProxyLBPrimaryCert) SetCertificateAltNames(v string) {
23072 o.CertificateAltNames = v
23073 }
23074
23075 /*************************************************
23076 * ProxyLBAdditionalCert
23077 *************************************************/
23078
23079 // ProxyLBAdditionalCert represents API parameter/response structure
23080 type ProxyLBAdditionalCert struct {
23081 ServerCertificate string
23082 IntermediateCertificate string
23083 PrivateKey string
23084 CertificateEndDate time.Time
23085 CertificateCommonName string
23086 CertificateAltNames string
23087 }
23088
23089 // setDefaults implements iaas.argumentDefaulter
23090 func (o *ProxyLBAdditionalCert) setDefaults() interface{} {
23091 return &struct {
23092 ServerCertificate string
23093 IntermediateCertificate string
23094 PrivateKey string
23095 CertificateEndDate time.Time
23096 CertificateCommonName string
23097 CertificateAltNames string
23098 }{
23099 ServerCertificate: o.GetServerCertificate(),
23100 IntermediateCertificate: o.GetIntermediateCertificate(),
23101 PrivateKey: o.GetPrivateKey(),
23102 CertificateEndDate: o.GetCertificateEndDate(),
23103 CertificateCommonName: o.GetCertificateCommonName(),
23104 CertificateAltNames: o.GetCertificateAltNames(),
23105 }
23106 }
23107
23108 // GetServerCertificate returns value of ServerCertificate
23109 func (o *ProxyLBAdditionalCert) GetServerCertificate() string {
23110 return o.ServerCertificate
23111 }
23112
23113 // SetServerCertificate sets value to ServerCertificate
23114 func (o *ProxyLBAdditionalCert) SetServerCertificate(v string) {
23115 o.ServerCertificate = v
23116 }
23117
23118 // GetIntermediateCertificate returns value of IntermediateCertificate
23119 func (o *ProxyLBAdditionalCert) GetIntermediateCertificate() string {
23120 return o.IntermediateCertificate
23121 }
23122
23123 // SetIntermediateCertificate sets value to IntermediateCertificate
23124 func (o *ProxyLBAdditionalCert) SetIntermediateCertificate(v string) {
23125 o.IntermediateCertificate = v
23126 }
23127
23128 // GetPrivateKey returns value of PrivateKey
23129 func (o *ProxyLBAdditionalCert) GetPrivateKey() string {
23130 return o.PrivateKey
23131 }
23132
23133 // SetPrivateKey sets value to PrivateKey
23134 func (o *ProxyLBAdditionalCert) SetPrivateKey(v string) {
23135 o.PrivateKey = v
23136 }
23137
23138 // GetCertificateEndDate returns value of CertificateEndDate
23139 func (o *ProxyLBAdditionalCert) GetCertificateEndDate() time.Time {
23140 return o.CertificateEndDate
23141 }
23142
23143 // SetCertificateEndDate sets value to CertificateEndDate
23144 func (o *ProxyLBAdditionalCert) SetCertificateEndDate(v time.Time) {
23145 o.CertificateEndDate = v
23146 }
23147
23148 // GetCertificateCommonName returns value of CertificateCommonName
23149 func (o *ProxyLBAdditionalCert) GetCertificateCommonName() string {
23150 return o.CertificateCommonName
23151 }
23152
23153 // SetCertificateCommonName sets value to CertificateCommonName
23154 func (o *ProxyLBAdditionalCert) SetCertificateCommonName(v string) {
23155 o.CertificateCommonName = v
23156 }
23157
23158 // GetCertificateAltNames returns value of CertificateAltNames
23159 func (o *ProxyLBAdditionalCert) GetCertificateAltNames() string {
23160 return o.CertificateAltNames
23161 }
23162
23163 // SetCertificateAltNames sets value to CertificateAltNames
23164 func (o *ProxyLBAdditionalCert) SetCertificateAltNames(v string) {
23165 o.CertificateAltNames = v
23166 }
23167
23168 /*************************************************
23169 * ProxyLBSetCertificatesRequest
23170 *************************************************/
23171
23172 // ProxyLBSetCertificatesRequest represents API parameter/response structure
23173 type ProxyLBSetCertificatesRequest struct {
23174 PrimaryCerts *ProxyLBPrimaryCert `mapconv:"PrimaryCert"`
23175 AdditionalCerts []*ProxyLBAdditionalCert `mapconv:"[]AdditionalCerts, recursive"`
23176 }
23177
23178 // setDefaults implements iaas.argumentDefaulter
23179 func (o *ProxyLBSetCertificatesRequest) setDefaults() interface{} {
23180 return &struct {
23181 PrimaryCerts *ProxyLBPrimaryCert `mapconv:"PrimaryCert"`
23182 AdditionalCerts []*ProxyLBAdditionalCert `mapconv:"[]AdditionalCerts, recursive"`
23183 }{
23184 PrimaryCerts: o.GetPrimaryCerts(),
23185 AdditionalCerts: o.GetAdditionalCerts(),
23186 }
23187 }
23188
23189 // GetPrimaryCerts returns value of PrimaryCerts
23190 func (o *ProxyLBSetCertificatesRequest) GetPrimaryCerts() *ProxyLBPrimaryCert {
23191 return o.PrimaryCerts
23192 }
23193
23194 // SetPrimaryCerts sets value to PrimaryCerts
23195 func (o *ProxyLBSetCertificatesRequest) SetPrimaryCerts(v *ProxyLBPrimaryCert) {
23196 o.PrimaryCerts = v
23197 }
23198
23199 // GetAdditionalCerts returns value of AdditionalCerts
23200 func (o *ProxyLBSetCertificatesRequest) GetAdditionalCerts() []*ProxyLBAdditionalCert {
23201 return o.AdditionalCerts
23202 }
23203
23204 // SetAdditionalCerts sets value to AdditionalCerts
23205 func (o *ProxyLBSetCertificatesRequest) SetAdditionalCerts(v []*ProxyLBAdditionalCert) {
23206 o.AdditionalCerts = v
23207 }
23208
23209 /*************************************************
23210 * ProxyLBHealth
23211 *************************************************/
23212
23213 // ProxyLBHealth represents API parameter/response structure
23214 type ProxyLBHealth struct {
23215 ActiveConn int
23216 CPS float64
23217 CurrentVIP string
23218 Servers []*LoadBalancerServerStatus `mapconv:"[]Servers,recursive"`
23219 }
23220
23221 // setDefaults implements iaas.argumentDefaulter
23222 func (o *ProxyLBHealth) setDefaults() interface{} {
23223 return &struct {
23224 ActiveConn int
23225 CPS float64
23226 CurrentVIP string
23227 Servers []*LoadBalancerServerStatus `mapconv:"[]Servers,recursive"`
23228 }{
23229 ActiveConn: o.GetActiveConn(),
23230 CPS: o.GetCPS(),
23231 CurrentVIP: o.GetCurrentVIP(),
23232 Servers: o.GetServers(),
23233 }
23234 }
23235
23236 // GetActiveConn returns value of ActiveConn
23237 func (o *ProxyLBHealth) GetActiveConn() int {
23238 return o.ActiveConn
23239 }
23240
23241 // SetActiveConn sets value to ActiveConn
23242 func (o *ProxyLBHealth) SetActiveConn(v int) {
23243 o.ActiveConn = v
23244 }
23245
23246 // GetCPS returns value of CPS
23247 func (o *ProxyLBHealth) GetCPS() float64 {
23248 return o.CPS
23249 }
23250
23251 // SetCPS sets value to CPS
23252 func (o *ProxyLBHealth) SetCPS(v float64) {
23253 o.CPS = v
23254 }
23255
23256 // GetCurrentVIP returns value of CurrentVIP
23257 func (o *ProxyLBHealth) GetCurrentVIP() string {
23258 return o.CurrentVIP
23259 }
23260
23261 // SetCurrentVIP sets value to CurrentVIP
23262 func (o *ProxyLBHealth) SetCurrentVIP(v string) {
23263 o.CurrentVIP = v
23264 }
23265
23266 // GetServers returns value of Servers
23267 func (o *ProxyLBHealth) GetServers() []*LoadBalancerServerStatus {
23268 return o.Servers
23269 }
23270
23271 // SetServers sets value to Servers
23272 func (o *ProxyLBHealth) SetServers(v []*LoadBalancerServerStatus) {
23273 o.Servers = v
23274 }
23275
23276 /*************************************************
23277 * ConnectionActivity
23278 *************************************************/
23279
23280 // ConnectionActivity represents API parameter/response structure
23281 type ConnectionActivity struct {
23282 Values []*MonitorConnectionValue `mapconv:"[]Connection"`
23283 }
23284
23285 // setDefaults implements iaas.argumentDefaulter
23286 func (o *ConnectionActivity) setDefaults() interface{} {
23287 return &struct {
23288 Values []*MonitorConnectionValue `mapconv:"[]Connection"`
23289 }{
23290 Values: o.GetValues(),
23291 }
23292 }
23293
23294 // GetValues returns value of Values
23295 func (o *ConnectionActivity) GetValues() []*MonitorConnectionValue {
23296 return o.Values
23297 }
23298
23299 // SetValues sets value to Values
23300 func (o *ConnectionActivity) SetValues(v []*MonitorConnectionValue) {
23301 o.Values = v
23302 }
23303
23304 /*************************************************
23305 * MonitorConnectionValue
23306 *************************************************/
23307
23308 // MonitorConnectionValue represents API parameter/response structure
23309 type MonitorConnectionValue struct {
23310 Time time.Time `mapconv:",omitempty"`
23311 ActiveConnections float64 `mapconv:",omitempty"`
23312 ConnectionsPerSec float64 `mapconv:",omitempty"`
23313 }
23314
23315 // setDefaults implements iaas.argumentDefaulter
23316 func (o *MonitorConnectionValue) setDefaults() interface{} {
23317 return &struct {
23318 Time time.Time `mapconv:",omitempty"`
23319 ActiveConnections float64 `mapconv:",omitempty"`
23320 ConnectionsPerSec float64 `mapconv:",omitempty"`
23321 }{
23322 Time: o.GetTime(),
23323 ActiveConnections: o.GetActiveConnections(),
23324 ConnectionsPerSec: o.GetConnectionsPerSec(),
23325 }
23326 }
23327
23328 // GetTime returns value of Time
23329 func (o *MonitorConnectionValue) GetTime() time.Time {
23330 return o.Time
23331 }
23332
23333 // SetTime sets value to Time
23334 func (o *MonitorConnectionValue) SetTime(v time.Time) {
23335 o.Time = v
23336 }
23337
23338 // GetActiveConnections returns value of ActiveConnections
23339 func (o *MonitorConnectionValue) GetActiveConnections() float64 {
23340 return o.ActiveConnections
23341 }
23342
23343 // SetActiveConnections sets value to ActiveConnections
23344 func (o *MonitorConnectionValue) SetActiveConnections(v float64) {
23345 o.ActiveConnections = v
23346 }
23347
23348 // GetConnectionsPerSec returns value of ConnectionsPerSec
23349 func (o *MonitorConnectionValue) GetConnectionsPerSec() float64 {
23350 return o.ConnectionsPerSec
23351 }
23352
23353 // SetConnectionsPerSec sets value to ConnectionsPerSec
23354 func (o *MonitorConnectionValue) SetConnectionsPerSec(v float64) {
23355 o.ConnectionsPerSec = v
23356 }
23357
23358 /*************************************************
23359 * Server
23360 *************************************************/
23361
23362 // Server represents API parameter/response structure
23363 type Server struct {
23364 ID types.ID
23365 Name string
23366 Description string
23367 Tags types.Tags
23368 Availability types.EAvailability
23369 HostName string
23370 InterfaceDriver types.EInterfaceDriver
23371 ServerPlanID types.ID `mapconv:"ServerPlan.ID"`
23372 ServerPlanName string `mapconv:"ServerPlan.Name"`
23373 CPU int `mapconv:"ServerPlan.CPU"`
23374 MemoryMB int `mapconv:"ServerPlan.MemoryMB"`
23375 GPU int `mapconv:"ServerPlan.GPU"`
23376 GPUModel string `json:",omitempty" mapconv:"ServerPlan.GPUModel"`
23377 CPUModel string `json:",omitempty" mapconv:"ServerPlan.CPUModel"`
23378 Commitment types.ECommitment `json:",omitempty" mapconv:"ServerPlan.Commitment"`
23379 Generation types.EPlanGeneration `mapconv:"ServerPlan.Generation"`
23380 Zone *ZoneInfo `json:",omitempty" mapconv:",omitempty,recursive"`
23381 InstanceHostName string `mapconv:"Instance.Host.Name"`
23382 InstanceHostInfoURL string `mapconv:"Instance.Host.InfoURL"`
23383 InstanceStatus types.EServerInstanceStatus `mapconv:"Instance.Status"`
23384 InstanceBeforeStatus types.EServerInstanceStatus `mapconv:"Instance.BeforeStatus"`
23385 InstanceStatusChangedAt time.Time `mapconv:"Instance.StatusChangedAt"`
23386 InstanceWarnings string `mapconv:"Instance.Warnings"`
23387 InstanceWarningsValue int `mapconv:"Instance.WarningsValue"`
23388 Disks []*ServerConnectedDisk `json:",omitempty" mapconv:",recursive"`
23389 Interfaces []*InterfaceView `json:",omitempty" mapconv:"[]Interfaces,recursive,omitempty"`
23390 CDROMID types.ID `mapconv:"Instance.CDROM.ID"`
23391 PrivateHostID types.ID `mapconv:"PrivateHost.ID"`
23392 PrivateHostName string `mapconv:"PrivateHost.Name"`
23393 BundleInfo *BundleInfo `json:",omitempty" mapconv:",omitempty,recursive"`
23394 IconID types.ID `mapconv:"Icon.ID"`
23395 CreatedAt time.Time
23396 ModifiedAt time.Time
23397 }
23398
23399 // setDefaults implements iaas.argumentDefaulter
23400 func (o *Server) setDefaults() interface{} {
23401 return &struct {
23402 ID types.ID
23403 Name string
23404 Description string
23405 Tags types.Tags
23406 Availability types.EAvailability
23407 HostName string
23408 InterfaceDriver types.EInterfaceDriver
23409 ServerPlanID types.ID `mapconv:"ServerPlan.ID"`
23410 ServerPlanName string `mapconv:"ServerPlan.Name"`
23411 CPU int `mapconv:"ServerPlan.CPU"`
23412 MemoryMB int `mapconv:"ServerPlan.MemoryMB"`
23413 GPU int `mapconv:"ServerPlan.GPU"`
23414 GPUModel string `json:",omitempty" mapconv:"ServerPlan.GPUModel"`
23415 CPUModel string `json:",omitempty" mapconv:"ServerPlan.CPUModel"`
23416 Commitment types.ECommitment `json:",omitempty" mapconv:"ServerPlan.Commitment"`
23417 Generation types.EPlanGeneration `mapconv:"ServerPlan.Generation"`
23418 Zone *ZoneInfo `json:",omitempty" mapconv:",omitempty,recursive"`
23419 InstanceHostName string `mapconv:"Instance.Host.Name"`
23420 InstanceHostInfoURL string `mapconv:"Instance.Host.InfoURL"`
23421 InstanceStatus types.EServerInstanceStatus `mapconv:"Instance.Status"`
23422 InstanceBeforeStatus types.EServerInstanceStatus `mapconv:"Instance.BeforeStatus"`
23423 InstanceStatusChangedAt time.Time `mapconv:"Instance.StatusChangedAt"`
23424 InstanceWarnings string `mapconv:"Instance.Warnings"`
23425 InstanceWarningsValue int `mapconv:"Instance.WarningsValue"`
23426 Disks []*ServerConnectedDisk `json:",omitempty" mapconv:",recursive"`
23427 Interfaces []*InterfaceView `json:",omitempty" mapconv:"[]Interfaces,recursive,omitempty"`
23428 CDROMID types.ID `mapconv:"Instance.CDROM.ID"`
23429 PrivateHostID types.ID `mapconv:"PrivateHost.ID"`
23430 PrivateHostName string `mapconv:"PrivateHost.Name"`
23431 BundleInfo *BundleInfo `json:",omitempty" mapconv:",omitempty,recursive"`
23432 IconID types.ID `mapconv:"Icon.ID"`
23433 CreatedAt time.Time
23434 ModifiedAt time.Time
23435 }{
23436 ID: o.GetID(),
23437 Name: o.GetName(),
23438 Description: o.GetDescription(),
23439 Tags: o.GetTags(),
23440 Availability: o.GetAvailability(),
23441 HostName: o.GetHostName(),
23442 InterfaceDriver: o.GetInterfaceDriver(),
23443 ServerPlanID: o.GetServerPlanID(),
23444 ServerPlanName: o.GetServerPlanName(),
23445 CPU: o.GetCPU(),
23446 MemoryMB: o.GetMemoryMB(),
23447 GPU: o.GetGPU(),
23448 GPUModel: o.GetGPUModel(),
23449 CPUModel: o.GetCPUModel(),
23450 Commitment: o.GetCommitment(),
23451 Generation: o.GetGeneration(),
23452 Zone: o.GetZone(),
23453 InstanceHostName: o.GetInstanceHostName(),
23454 InstanceHostInfoURL: o.GetInstanceHostInfoURL(),
23455 InstanceStatus: o.GetInstanceStatus(),
23456 InstanceBeforeStatus: o.GetInstanceBeforeStatus(),
23457 InstanceStatusChangedAt: o.GetInstanceStatusChangedAt(),
23458 InstanceWarnings: o.GetInstanceWarnings(),
23459 InstanceWarningsValue: o.GetInstanceWarningsValue(),
23460 Disks: o.GetDisks(),
23461 Interfaces: o.GetInterfaces(),
23462 CDROMID: o.GetCDROMID(),
23463 PrivateHostID: o.GetPrivateHostID(),
23464 PrivateHostName: o.GetPrivateHostName(),
23465 BundleInfo: o.GetBundleInfo(),
23466 IconID: o.GetIconID(),
23467 CreatedAt: o.GetCreatedAt(),
23468 ModifiedAt: o.GetModifiedAt(),
23469 }
23470 }
23471
23472 // GetID returns value of ID
23473 func (o *Server) GetID() types.ID {
23474 return o.ID
23475 }
23476
23477 // SetID sets value to ID
23478 func (o *Server) SetID(v types.ID) {
23479 o.ID = v
23480 }
23481
23482 // SetStringID .
23483 func (o *Server) SetStringID(id string) {
23484 accessor.SetStringID(o, id)
23485 }
23486
23487 // GetStringID .
23488 func (o *Server) GetStringID() string {
23489 return accessor.GetStringID(o)
23490 }
23491
23492 // SetInt64ID .
23493 func (o *Server) SetInt64ID(id int64) {
23494 accessor.SetInt64ID(o, id)
23495 }
23496
23497 // GetInt64ID .
23498 func (o *Server) GetInt64ID() int64 {
23499 return accessor.GetInt64ID(o)
23500 }
23501
23502 // GetName returns value of Name
23503 func (o *Server) GetName() string {
23504 return o.Name
23505 }
23506
23507 // SetName sets value to Name
23508 func (o *Server) SetName(v string) {
23509 o.Name = v
23510 }
23511
23512 // GetDescription returns value of Description
23513 func (o *Server) GetDescription() string {
23514 return o.Description
23515 }
23516
23517 // SetDescription sets value to Description
23518 func (o *Server) SetDescription(v string) {
23519 o.Description = v
23520 }
23521
23522 // GetTags returns value of Tags
23523 func (o *Server) GetTags() types.Tags {
23524 return o.Tags
23525 }
23526
23527 // SetTags sets value to Tags
23528 func (o *Server) SetTags(v types.Tags) {
23529 o.Tags = v
23530 }
23531
23532 // HasTag 指定のタグが存在する場合trueを返す
23533 func (o *Server) HasTag(tag string) bool {
23534 return accessor.HasTag(o, tag)
23535 }
23536
23537 // AppendTag 指定のタグを追加
23538 func (o *Server) AppendTag(tag string) {
23539 accessor.AppendTag(o, tag)
23540 }
23541
23542 // RemoveTag 指定のタグを削除
23543 func (o *Server) RemoveTag(tag string) {
23544 accessor.RemoveTag(o, tag)
23545 }
23546
23547 // ClearTags タグを全クリア
23548 func (o *Server) ClearTags() {
23549 accessor.ClearTags(o)
23550 }
23551
23552 // GetAvailability returns value of Availability
23553 func (o *Server) GetAvailability() types.EAvailability {
23554 return o.Availability
23555 }
23556
23557 // SetAvailability sets value to Availability
23558 func (o *Server) SetAvailability(v types.EAvailability) {
23559 o.Availability = v
23560 }
23561
23562 // GetHostName returns value of HostName
23563 func (o *Server) GetHostName() string {
23564 return o.HostName
23565 }
23566
23567 // SetHostName sets value to HostName
23568 func (o *Server) SetHostName(v string) {
23569 o.HostName = v
23570 }
23571
23572 // GetInterfaceDriver returns value of InterfaceDriver
23573 func (o *Server) GetInterfaceDriver() types.EInterfaceDriver {
23574 if o.InterfaceDriver == types.EInterfaceDriver("") {
23575 return types.InterfaceDrivers.VirtIO
23576 }
23577 return o.InterfaceDriver
23578 }
23579
23580 // SetInterfaceDriver sets value to InterfaceDriver
23581 func (o *Server) SetInterfaceDriver(v types.EInterfaceDriver) {
23582 o.InterfaceDriver = v
23583 }
23584
23585 // GetServerPlanID returns value of ServerPlanID
23586 func (o *Server) GetServerPlanID() types.ID {
23587 return o.ServerPlanID
23588 }
23589
23590 // SetServerPlanID sets value to ServerPlanID
23591 func (o *Server) SetServerPlanID(v types.ID) {
23592 o.ServerPlanID = v
23593 }
23594
23595 // GetServerPlanName returns value of ServerPlanName
23596 func (o *Server) GetServerPlanName() string {
23597 return o.ServerPlanName
23598 }
23599
23600 // SetServerPlanName sets value to ServerPlanName
23601 func (o *Server) SetServerPlanName(v string) {
23602 o.ServerPlanName = v
23603 }
23604
23605 // GetCPU returns value of CPU
23606 func (o *Server) GetCPU() int {
23607 return o.CPU
23608 }
23609
23610 // SetCPU sets value to CPU
23611 func (o *Server) SetCPU(v int) {
23612 o.CPU = v
23613 }
23614
23615 // GetMemoryMB returns value of MemoryMB
23616 func (o *Server) GetMemoryMB() int {
23617 return o.MemoryMB
23618 }
23619
23620 // SetMemoryMB sets value to MemoryMB
23621 func (o *Server) SetMemoryMB(v int) {
23622 o.MemoryMB = v
23623 }
23624
23625 // GetMemoryGB .
23626 func (o *Server) GetMemoryGB() int {
23627 return accessor.GetMemoryGB(o)
23628 }
23629
23630 // GetGPU returns value of GPU
23631 func (o *Server) GetGPU() int {
23632 return o.GPU
23633 }
23634
23635 // SetGPU sets value to GPU
23636 func (o *Server) SetGPU(v int) {
23637 o.GPU = v
23638 }
23639
23640 // GetGPUModel returns value of GPUModel
23641 func (o *Server) GetGPUModel() string {
23642 return o.GPUModel
23643 }
23644
23645 // SetGPUModel sets value to GPUModel
23646 func (o *Server) SetGPUModel(v string) {
23647 o.GPUModel = v
23648 }
23649
23650 // GetCPUModel returns value of CPUModel
23651 func (o *Server) GetCPUModel() string {
23652 return o.CPUModel
23653 }
23654
23655 // SetCPUModel sets value to CPUModel
23656 func (o *Server) SetCPUModel(v string) {
23657 o.CPUModel = v
23658 }
23659
23660 // GetCommitment returns value of Commitment
23661 func (o *Server) GetCommitment() types.ECommitment {
23662 if o.Commitment == types.ECommitment("") {
23663 return types.Commitments.Standard
23664 }
23665 return o.Commitment
23666 }
23667
23668 // SetCommitment sets value to Commitment
23669 func (o *Server) SetCommitment(v types.ECommitment) {
23670 o.Commitment = v
23671 }
23672
23673 // GetGeneration returns value of Generation
23674 func (o *Server) GetGeneration() types.EPlanGeneration {
23675 return o.Generation
23676 }
23677
23678 // SetGeneration sets value to Generation
23679 func (o *Server) SetGeneration(v types.EPlanGeneration) {
23680 o.Generation = v
23681 }
23682
23683 // GetZone returns value of Zone
23684 func (o *Server) GetZone() *ZoneInfo {
23685 return o.Zone
23686 }
23687
23688 // SetZone sets value to Zone
23689 func (o *Server) SetZone(v *ZoneInfo) {
23690 o.Zone = v
23691 }
23692
23693 // GetInstanceHostName returns value of InstanceHostName
23694 func (o *Server) GetInstanceHostName() string {
23695 return o.InstanceHostName
23696 }
23697
23698 // SetInstanceHostName sets value to InstanceHostName
23699 func (o *Server) SetInstanceHostName(v string) {
23700 o.InstanceHostName = v
23701 }
23702
23703 // GetInstanceHostInfoURL returns value of InstanceHostInfoURL
23704 func (o *Server) GetInstanceHostInfoURL() string {
23705 return o.InstanceHostInfoURL
23706 }
23707
23708 // SetInstanceHostInfoURL sets value to InstanceHostInfoURL
23709 func (o *Server) SetInstanceHostInfoURL(v string) {
23710 o.InstanceHostInfoURL = v
23711 }
23712
23713 // GetInstanceStatus returns value of InstanceStatus
23714 func (o *Server) GetInstanceStatus() types.EServerInstanceStatus {
23715 return o.InstanceStatus
23716 }
23717
23718 // SetInstanceStatus sets value to InstanceStatus
23719 func (o *Server) SetInstanceStatus(v types.EServerInstanceStatus) {
23720 o.InstanceStatus = v
23721 }
23722
23723 // GetInstanceBeforeStatus returns value of InstanceBeforeStatus
23724 func (o *Server) GetInstanceBeforeStatus() types.EServerInstanceStatus {
23725 return o.InstanceBeforeStatus
23726 }
23727
23728 // SetInstanceBeforeStatus sets value to InstanceBeforeStatus
23729 func (o *Server) SetInstanceBeforeStatus(v types.EServerInstanceStatus) {
23730 o.InstanceBeforeStatus = v
23731 }
23732
23733 // GetInstanceStatusChangedAt returns value of InstanceStatusChangedAt
23734 func (o *Server) GetInstanceStatusChangedAt() time.Time {
23735 return o.InstanceStatusChangedAt
23736 }
23737
23738 // SetInstanceStatusChangedAt sets value to InstanceStatusChangedAt
23739 func (o *Server) SetInstanceStatusChangedAt(v time.Time) {
23740 o.InstanceStatusChangedAt = v
23741 }
23742
23743 // GetInstanceWarnings returns value of InstanceWarnings
23744 func (o *Server) GetInstanceWarnings() string {
23745 return o.InstanceWarnings
23746 }
23747
23748 // SetInstanceWarnings sets value to InstanceWarnings
23749 func (o *Server) SetInstanceWarnings(v string) {
23750 o.InstanceWarnings = v
23751 }
23752
23753 // GetInstanceWarningsValue returns value of InstanceWarningsValue
23754 func (o *Server) GetInstanceWarningsValue() int {
23755 return o.InstanceWarningsValue
23756 }
23757
23758 // SetInstanceWarningsValue sets value to InstanceWarningsValue
23759 func (o *Server) SetInstanceWarningsValue(v int) {
23760 o.InstanceWarningsValue = v
23761 }
23762
23763 // GetDisks returns value of Disks
23764 func (o *Server) GetDisks() []*ServerConnectedDisk {
23765 return o.Disks
23766 }
23767
23768 // SetDisks sets value to Disks
23769 func (o *Server) SetDisks(v []*ServerConnectedDisk) {
23770 o.Disks = v
23771 }
23772
23773 // GetInterfaces returns value of Interfaces
23774 func (o *Server) GetInterfaces() []*InterfaceView {
23775 return o.Interfaces
23776 }
23777
23778 // SetInterfaces sets value to Interfaces
23779 func (o *Server) SetInterfaces(v []*InterfaceView) {
23780 o.Interfaces = v
23781 }
23782
23783 // GetCDROMID returns value of CDROMID
23784 func (o *Server) GetCDROMID() types.ID {
23785 return o.CDROMID
23786 }
23787
23788 // SetCDROMID sets value to CDROMID
23789 func (o *Server) SetCDROMID(v types.ID) {
23790 o.CDROMID = v
23791 }
23792
23793 // GetPrivateHostID returns value of PrivateHostID
23794 func (o *Server) GetPrivateHostID() types.ID {
23795 return o.PrivateHostID
23796 }
23797
23798 // SetPrivateHostID sets value to PrivateHostID
23799 func (o *Server) SetPrivateHostID(v types.ID) {
23800 o.PrivateHostID = v
23801 }
23802
23803 // GetPrivateHostName returns value of PrivateHostName
23804 func (o *Server) GetPrivateHostName() string {
23805 return o.PrivateHostName
23806 }
23807
23808 // SetPrivateHostName sets value to PrivateHostName
23809 func (o *Server) SetPrivateHostName(v string) {
23810 o.PrivateHostName = v
23811 }
23812
23813 // GetBundleInfo returns value of BundleInfo
23814 func (o *Server) GetBundleInfo() *BundleInfo {
23815 return o.BundleInfo
23816 }
23817
23818 // SetBundleInfo sets value to BundleInfo
23819 func (o *Server) SetBundleInfo(v *BundleInfo) {
23820 o.BundleInfo = v
23821 }
23822
23823 // GetIconID returns value of IconID
23824 func (o *Server) GetIconID() types.ID {
23825 return o.IconID
23826 }
23827
23828 // SetIconID sets value to IconID
23829 func (o *Server) SetIconID(v types.ID) {
23830 o.IconID = v
23831 }
23832
23833 // GetCreatedAt returns value of CreatedAt
23834 func (o *Server) GetCreatedAt() time.Time {
23835 return o.CreatedAt
23836 }
23837
23838 // SetCreatedAt sets value to CreatedAt
23839 func (o *Server) SetCreatedAt(v time.Time) {
23840 o.CreatedAt = v
23841 }
23842
23843 // GetModifiedAt returns value of ModifiedAt
23844 func (o *Server) GetModifiedAt() time.Time {
23845 return o.ModifiedAt
23846 }
23847
23848 // SetModifiedAt sets value to ModifiedAt
23849 func (o *Server) SetModifiedAt(v time.Time) {
23850 o.ModifiedAt = v
23851 }
23852
23853 /*************************************************
23854 * ZoneInfo
23855 *************************************************/
23856
23857 // ZoneInfo represents API parameter/response structure
23858 type ZoneInfo struct {
23859 ID types.ID
23860 Name string
23861 DisplayName string `json:",omitempty" mapconv:"Description,omitempty"`
23862 IsDummy bool `json:",omitempty" mapconv:",omitempty"`
23863 VNCProxy *VNCProxy `json:",omitempty" mapconv:",omitempty,recursive"`
23864 FTPServer *FTPServerInfo `json:",omitempty" mapconv:",omitempty,recursive"`
23865 Region *Region `json:",omitempty" mapconv:",omitempty,recursive"`
23866 }
23867
23868 // setDefaults implements iaas.argumentDefaulter
23869 func (o *ZoneInfo) setDefaults() interface{} {
23870 return &struct {
23871 ID types.ID
23872 Name string
23873 DisplayName string `json:",omitempty" mapconv:"Description,omitempty"`
23874 IsDummy bool `json:",omitempty" mapconv:",omitempty"`
23875 VNCProxy *VNCProxy `json:",omitempty" mapconv:",omitempty,recursive"`
23876 FTPServer *FTPServerInfo `json:",omitempty" mapconv:",omitempty,recursive"`
23877 Region *Region `json:",omitempty" mapconv:",omitempty,recursive"`
23878 }{
23879 ID: o.GetID(),
23880 Name: o.GetName(),
23881 DisplayName: o.GetDisplayName(),
23882 IsDummy: o.GetIsDummy(),
23883 VNCProxy: o.GetVNCProxy(),
23884 FTPServer: o.GetFTPServer(),
23885 Region: o.GetRegion(),
23886 }
23887 }
23888
23889 // GetID returns value of ID
23890 func (o *ZoneInfo) GetID() types.ID {
23891 return o.ID
23892 }
23893
23894 // SetID sets value to ID
23895 func (o *ZoneInfo) SetID(v types.ID) {
23896 o.ID = v
23897 }
23898
23899 // SetStringID .
23900 func (o *ZoneInfo) SetStringID(id string) {
23901 accessor.SetStringID(o, id)
23902 }
23903
23904 // GetStringID .
23905 func (o *ZoneInfo) GetStringID() string {
23906 return accessor.GetStringID(o)
23907 }
23908
23909 // SetInt64ID .
23910 func (o *ZoneInfo) SetInt64ID(id int64) {
23911 accessor.SetInt64ID(o, id)
23912 }
23913
23914 // GetInt64ID .
23915 func (o *ZoneInfo) GetInt64ID() int64 {
23916 return accessor.GetInt64ID(o)
23917 }
23918
23919 // GetName returns value of Name
23920 func (o *ZoneInfo) GetName() string {
23921 return o.Name
23922 }
23923
23924 // SetName sets value to Name
23925 func (o *ZoneInfo) SetName(v string) {
23926 o.Name = v
23927 }
23928
23929 // GetDisplayName returns value of DisplayName
23930 func (o *ZoneInfo) GetDisplayName() string {
23931 return o.DisplayName
23932 }
23933
23934 // SetDisplayName sets value to DisplayName
23935 func (o *ZoneInfo) SetDisplayName(v string) {
23936 o.DisplayName = v
23937 }
23938
23939 // GetIsDummy returns value of IsDummy
23940 func (o *ZoneInfo) GetIsDummy() bool {
23941 return o.IsDummy
23942 }
23943
23944 // SetIsDummy sets value to IsDummy
23945 func (o *ZoneInfo) SetIsDummy(v bool) {
23946 o.IsDummy = v
23947 }
23948
23949 // GetVNCProxy returns value of VNCProxy
23950 func (o *ZoneInfo) GetVNCProxy() *VNCProxy {
23951 return o.VNCProxy
23952 }
23953
23954 // SetVNCProxy sets value to VNCProxy
23955 func (o *ZoneInfo) SetVNCProxy(v *VNCProxy) {
23956 o.VNCProxy = v
23957 }
23958
23959 // GetFTPServer returns value of FTPServer
23960 func (o *ZoneInfo) GetFTPServer() *FTPServerInfo {
23961 return o.FTPServer
23962 }
23963
23964 // SetFTPServer sets value to FTPServer
23965 func (o *ZoneInfo) SetFTPServer(v *FTPServerInfo) {
23966 o.FTPServer = v
23967 }
23968
23969 // GetRegion returns value of Region
23970 func (o *ZoneInfo) GetRegion() *Region {
23971 return o.Region
23972 }
23973
23974 // SetRegion sets value to Region
23975 func (o *ZoneInfo) SetRegion(v *Region) {
23976 o.Region = v
23977 }
23978
23979 /*************************************************
23980 * VNCProxy
23981 *************************************************/
23982
23983 // VNCProxy represents API parameter/response structure
23984 type VNCProxy struct {
23985 HostName string `json:",omitempty" mapconv:",omitempty"`
23986 IPAddress string `json:",omitempty" mapconv:",omitempty"`
23987 }
23988
23989 // setDefaults implements iaas.argumentDefaulter
23990 func (o *VNCProxy) setDefaults() interface{} {
23991 return &struct {
23992 HostName string `json:",omitempty" mapconv:",omitempty"`
23993 IPAddress string `json:",omitempty" mapconv:",omitempty"`
23994 }{
23995 HostName: o.GetHostName(),
23996 IPAddress: o.GetIPAddress(),
23997 }
23998 }
23999
24000 // GetHostName returns value of HostName
24001 func (o *VNCProxy) GetHostName() string {
24002 return o.HostName
24003 }
24004
24005 // SetHostName sets value to HostName
24006 func (o *VNCProxy) SetHostName(v string) {
24007 o.HostName = v
24008 }
24009
24010 // GetIPAddress returns value of IPAddress
24011 func (o *VNCProxy) GetIPAddress() string {
24012 return o.IPAddress
24013 }
24014
24015 // SetIPAddress sets value to IPAddress
24016 func (o *VNCProxy) SetIPAddress(v string) {
24017 o.IPAddress = v
24018 }
24019
24020 /*************************************************
24021 * FTPServerInfo
24022 *************************************************/
24023
24024 // FTPServerInfo represents API parameter/response structure
24025 type FTPServerInfo struct {
24026 HostName string
24027 IPAddress string
24028 }
24029
24030 // setDefaults implements iaas.argumentDefaulter
24031 func (o *FTPServerInfo) setDefaults() interface{} {
24032 return &struct {
24033 HostName string
24034 IPAddress string
24035 }{
24036 HostName: o.GetHostName(),
24037 IPAddress: o.GetIPAddress(),
24038 }
24039 }
24040
24041 // GetHostName returns value of HostName
24042 func (o *FTPServerInfo) GetHostName() string {
24043 return o.HostName
24044 }
24045
24046 // SetHostName sets value to HostName
24047 func (o *FTPServerInfo) SetHostName(v string) {
24048 o.HostName = v
24049 }
24050
24051 // GetIPAddress returns value of IPAddress
24052 func (o *FTPServerInfo) GetIPAddress() string {
24053 return o.IPAddress
24054 }
24055
24056 // SetIPAddress sets value to IPAddress
24057 func (o *FTPServerInfo) SetIPAddress(v string) {
24058 o.IPAddress = v
24059 }
24060
24061 /*************************************************
24062 * ServerConnectedDisk
24063 *************************************************/
24064
24065 // ServerConnectedDisk represents API parameter/response structure
24066 type ServerConnectedDisk struct {
24067 ID types.ID
24068 Name string
24069 Availability types.EAvailability
24070 Connection types.EDiskConnection `json:",omitempty" mapconv:",omitempty"`
24071 ConnectionOrder int
24072 EncryptionAlgorithm types.EDiskEncryptionAlgorithm `json:",omitempty" mapconv:",omitempty"`
24073 ReinstallCount int
24074 SizeMB int
24075 DiskPlanID types.ID `mapconv:"Plan.ID"`
24076 Storage *Storage `json:",omitempty" mapconv:",omitempty,recursive"`
24077 }
24078
24079 // setDefaults implements iaas.argumentDefaulter
24080 func (o *ServerConnectedDisk) setDefaults() interface{} {
24081 return &struct {
24082 ID types.ID
24083 Name string
24084 Availability types.EAvailability
24085 Connection types.EDiskConnection `json:",omitempty" mapconv:",omitempty"`
24086 ConnectionOrder int
24087 EncryptionAlgorithm types.EDiskEncryptionAlgorithm `json:",omitempty" mapconv:",omitempty"`
24088 ReinstallCount int
24089 SizeMB int
24090 DiskPlanID types.ID `mapconv:"Plan.ID"`
24091 Storage *Storage `json:",omitempty" mapconv:",omitempty,recursive"`
24092 }{
24093 ID: o.GetID(),
24094 Name: o.GetName(),
24095 Availability: o.GetAvailability(),
24096 Connection: o.GetConnection(),
24097 ConnectionOrder: o.GetConnectionOrder(),
24098 EncryptionAlgorithm: o.GetEncryptionAlgorithm(),
24099 ReinstallCount: o.GetReinstallCount(),
24100 SizeMB: o.GetSizeMB(),
24101 DiskPlanID: o.GetDiskPlanID(),
24102 Storage: o.GetStorage(),
24103 }
24104 }
24105
24106 // GetID returns value of ID
24107 func (o *ServerConnectedDisk) GetID() types.ID {
24108 return o.ID
24109 }
24110
24111 // SetID sets value to ID
24112 func (o *ServerConnectedDisk) SetID(v types.ID) {
24113 o.ID = v
24114 }
24115
24116 // SetStringID .
24117 func (o *ServerConnectedDisk) SetStringID(id string) {
24118 accessor.SetStringID(o, id)
24119 }
24120
24121 // GetStringID .
24122 func (o *ServerConnectedDisk) GetStringID() string {
24123 return accessor.GetStringID(o)
24124 }
24125
24126 // SetInt64ID .
24127 func (o *ServerConnectedDisk) SetInt64ID(id int64) {
24128 accessor.SetInt64ID(o, id)
24129 }
24130
24131 // GetInt64ID .
24132 func (o *ServerConnectedDisk) GetInt64ID() int64 {
24133 return accessor.GetInt64ID(o)
24134 }
24135
24136 // GetName returns value of Name
24137 func (o *ServerConnectedDisk) GetName() string {
24138 return o.Name
24139 }
24140
24141 // SetName sets value to Name
24142 func (o *ServerConnectedDisk) SetName(v string) {
24143 o.Name = v
24144 }
24145
24146 // GetAvailability returns value of Availability
24147 func (o *ServerConnectedDisk) GetAvailability() types.EAvailability {
24148 return o.Availability
24149 }
24150
24151 // SetAvailability sets value to Availability
24152 func (o *ServerConnectedDisk) SetAvailability(v types.EAvailability) {
24153 o.Availability = v
24154 }
24155
24156 // GetConnection returns value of Connection
24157 func (o *ServerConnectedDisk) GetConnection() types.EDiskConnection {
24158 return o.Connection
24159 }
24160
24161 // SetConnection sets value to Connection
24162 func (o *ServerConnectedDisk) SetConnection(v types.EDiskConnection) {
24163 o.Connection = v
24164 }
24165
24166 // GetConnectionOrder returns value of ConnectionOrder
24167 func (o *ServerConnectedDisk) GetConnectionOrder() int {
24168 return o.ConnectionOrder
24169 }
24170
24171 // SetConnectionOrder sets value to ConnectionOrder
24172 func (o *ServerConnectedDisk) SetConnectionOrder(v int) {
24173 o.ConnectionOrder = v
24174 }
24175
24176 // GetEncryptionAlgorithm returns value of EncryptionAlgorithm
24177 func (o *ServerConnectedDisk) GetEncryptionAlgorithm() types.EDiskEncryptionAlgorithm {
24178 return o.EncryptionAlgorithm
24179 }
24180
24181 // SetEncryptionAlgorithm sets value to EncryptionAlgorithm
24182 func (o *ServerConnectedDisk) SetEncryptionAlgorithm(v types.EDiskEncryptionAlgorithm) {
24183 o.EncryptionAlgorithm = v
24184 }
24185
24186 // GetReinstallCount returns value of ReinstallCount
24187 func (o *ServerConnectedDisk) GetReinstallCount() int {
24188 return o.ReinstallCount
24189 }
24190
24191 // SetReinstallCount sets value to ReinstallCount
24192 func (o *ServerConnectedDisk) SetReinstallCount(v int) {
24193 o.ReinstallCount = v
24194 }
24195
24196 // GetSizeMB returns value of SizeMB
24197 func (o *ServerConnectedDisk) GetSizeMB() int {
24198 return o.SizeMB
24199 }
24200
24201 // SetSizeMB sets value to SizeMB
24202 func (o *ServerConnectedDisk) SetSizeMB(v int) {
24203 o.SizeMB = v
24204 }
24205
24206 // GetSizeGB .
24207 func (o *ServerConnectedDisk) GetSizeGB() int {
24208 return accessor.GetSizeGB(o)
24209 }
24210
24211 // SetSizeGB .
24212 func (o *ServerConnectedDisk) SetSizeGB(size int) {
24213 accessor.SetSizeGB(o, size)
24214 }
24215
24216 // GetDiskPlanID returns value of DiskPlanID
24217 func (o *ServerConnectedDisk) GetDiskPlanID() types.ID {
24218 return o.DiskPlanID
24219 }
24220
24221 // SetDiskPlanID sets value to DiskPlanID
24222 func (o *ServerConnectedDisk) SetDiskPlanID(v types.ID) {
24223 o.DiskPlanID = v
24224 }
24225
24226 // GetStorage returns value of Storage
24227 func (o *ServerConnectedDisk) GetStorage() *Storage {
24228 return o.Storage
24229 }
24230
24231 // SetStorage sets value to Storage
24232 func (o *ServerConnectedDisk) SetStorage(v *Storage) {
24233 o.Storage = v
24234 }
24235
24236 /*************************************************
24237 * ServerCreateRequest
24238 *************************************************/
24239
24240 // ServerCreateRequest represents API parameter/response structure
24241 type ServerCreateRequest struct {
24242 CPU int `mapconv:"ServerPlan.CPU"`
24243 MemoryMB int `mapconv:"ServerPlan.MemoryMB"`
24244 GPU int `mapconv:"ServerPlan.GPU"`
24245 GPUModel string `json:",omitempty" mapconv:"ServerPlan.GPUModel"`
24246 CPUModel string `json:",omitempty" mapconv:"ServerPlan.CPUModel"`
24247 Commitment types.ECommitment `json:",omitempty" mapconv:"ServerPlan.Commitment"`
24248 Generation types.EPlanGeneration `mapconv:"ServerPlan.Generation"`
24249 ConnectedSwitches []*ConnectedSwitch `json:",omitempty" mapconv:"[]ConnectedSwitches,recursive"`
24250 InterfaceDriver types.EInterfaceDriver
24251 Name string
24252 Description string
24253 Tags types.Tags
24254 IconID types.ID `mapconv:"Icon.ID"`
24255 WaitDiskMigration bool `json:",omitempty" mapconv:",omitempty"`
24256 PrivateHostID types.ID `mapconv:"PrivateHost.ID"`
24257 }
24258
24259 // setDefaults implements iaas.argumentDefaulter
24260 func (o *ServerCreateRequest) setDefaults() interface{} {
24261 return &struct {
24262 CPU int `mapconv:"ServerPlan.CPU"`
24263 MemoryMB int `mapconv:"ServerPlan.MemoryMB"`
24264 GPU int `mapconv:"ServerPlan.GPU"`
24265 GPUModel string `json:",omitempty" mapconv:"ServerPlan.GPUModel"`
24266 CPUModel string `json:",omitempty" mapconv:"ServerPlan.CPUModel"`
24267 Commitment types.ECommitment `json:",omitempty" mapconv:"ServerPlan.Commitment"`
24268 Generation types.EPlanGeneration `mapconv:"ServerPlan.Generation"`
24269 ConnectedSwitches []*ConnectedSwitch `json:",omitempty" mapconv:"[]ConnectedSwitches,recursive"`
24270 InterfaceDriver types.EInterfaceDriver
24271 Name string
24272 Description string
24273 Tags types.Tags
24274 IconID types.ID `mapconv:"Icon.ID"`
24275 WaitDiskMigration bool `json:",omitempty" mapconv:",omitempty"`
24276 PrivateHostID types.ID `mapconv:"PrivateHost.ID"`
24277 }{
24278 CPU: o.GetCPU(),
24279 MemoryMB: o.GetMemoryMB(),
24280 GPU: o.GetGPU(),
24281 GPUModel: o.GetGPUModel(),
24282 CPUModel: o.GetCPUModel(),
24283 Commitment: o.GetCommitment(),
24284 Generation: o.GetGeneration(),
24285 ConnectedSwitches: o.GetConnectedSwitches(),
24286 InterfaceDriver: o.GetInterfaceDriver(),
24287 Name: o.GetName(),
24288 Description: o.GetDescription(),
24289 Tags: o.GetTags(),
24290 IconID: o.GetIconID(),
24291 WaitDiskMigration: o.GetWaitDiskMigration(),
24292 PrivateHostID: o.GetPrivateHostID(),
24293 }
24294 }
24295
24296 // GetCPU returns value of CPU
24297 func (o *ServerCreateRequest) GetCPU() int {
24298 return o.CPU
24299 }
24300
24301 // SetCPU sets value to CPU
24302 func (o *ServerCreateRequest) SetCPU(v int) {
24303 o.CPU = v
24304 }
24305
24306 // GetMemoryMB returns value of MemoryMB
24307 func (o *ServerCreateRequest) GetMemoryMB() int {
24308 return o.MemoryMB
24309 }
24310
24311 // SetMemoryMB sets value to MemoryMB
24312 func (o *ServerCreateRequest) SetMemoryMB(v int) {
24313 o.MemoryMB = v
24314 }
24315
24316 // GetMemoryGB .
24317 func (o *ServerCreateRequest) GetMemoryGB() int {
24318 return accessor.GetMemoryGB(o)
24319 }
24320
24321 // GetGPU returns value of GPU
24322 func (o *ServerCreateRequest) GetGPU() int {
24323 return o.GPU
24324 }
24325
24326 // SetGPU sets value to GPU
24327 func (o *ServerCreateRequest) SetGPU(v int) {
24328 o.GPU = v
24329 }
24330
24331 // GetGPUModel returns value of GPUModel
24332 func (o *ServerCreateRequest) GetGPUModel() string {
24333 return o.GPUModel
24334 }
24335
24336 // SetGPUModel sets value to GPUModel
24337 func (o *ServerCreateRequest) SetGPUModel(v string) {
24338 o.GPUModel = v
24339 }
24340
24341 // GetCPUModel returns value of CPUModel
24342 func (o *ServerCreateRequest) GetCPUModel() string {
24343 return o.CPUModel
24344 }
24345
24346 // SetCPUModel sets value to CPUModel
24347 func (o *ServerCreateRequest) SetCPUModel(v string) {
24348 o.CPUModel = v
24349 }
24350
24351 // GetCommitment returns value of Commitment
24352 func (o *ServerCreateRequest) GetCommitment() types.ECommitment {
24353 if o.Commitment == types.ECommitment("") {
24354 return types.Commitments.Standard
24355 }
24356 return o.Commitment
24357 }
24358
24359 // SetCommitment sets value to Commitment
24360 func (o *ServerCreateRequest) SetCommitment(v types.ECommitment) {
24361 o.Commitment = v
24362 }
24363
24364 // GetGeneration returns value of Generation
24365 func (o *ServerCreateRequest) GetGeneration() types.EPlanGeneration {
24366 return o.Generation
24367 }
24368
24369 // SetGeneration sets value to Generation
24370 func (o *ServerCreateRequest) SetGeneration(v types.EPlanGeneration) {
24371 o.Generation = v
24372 }
24373
24374 // GetConnectedSwitches returns value of ConnectedSwitches
24375 func (o *ServerCreateRequest) GetConnectedSwitches() []*ConnectedSwitch {
24376 return o.ConnectedSwitches
24377 }
24378
24379 // SetConnectedSwitches sets value to ConnectedSwitches
24380 func (o *ServerCreateRequest) SetConnectedSwitches(v []*ConnectedSwitch) {
24381 o.ConnectedSwitches = v
24382 }
24383
24384 // GetInterfaceDriver returns value of InterfaceDriver
24385 func (o *ServerCreateRequest) GetInterfaceDriver() types.EInterfaceDriver {
24386 if o.InterfaceDriver == types.EInterfaceDriver("") {
24387 return types.InterfaceDrivers.VirtIO
24388 }
24389 return o.InterfaceDriver
24390 }
24391
24392 // SetInterfaceDriver sets value to InterfaceDriver
24393 func (o *ServerCreateRequest) SetInterfaceDriver(v types.EInterfaceDriver) {
24394 o.InterfaceDriver = v
24395 }
24396
24397 // GetName returns value of Name
24398 func (o *ServerCreateRequest) GetName() string {
24399 return o.Name
24400 }
24401
24402 // SetName sets value to Name
24403 func (o *ServerCreateRequest) SetName(v string) {
24404 o.Name = v
24405 }
24406
24407 // GetDescription returns value of Description
24408 func (o *ServerCreateRequest) GetDescription() string {
24409 return o.Description
24410 }
24411
24412 // SetDescription sets value to Description
24413 func (o *ServerCreateRequest) SetDescription(v string) {
24414 o.Description = v
24415 }
24416
24417 // GetTags returns value of Tags
24418 func (o *ServerCreateRequest) GetTags() types.Tags {
24419 return o.Tags
24420 }
24421
24422 // SetTags sets value to Tags
24423 func (o *ServerCreateRequest) SetTags(v types.Tags) {
24424 o.Tags = v
24425 }
24426
24427 // HasTag 指定のタグが存在する場合trueを返す
24428 func (o *ServerCreateRequest) HasTag(tag string) bool {
24429 return accessor.HasTag(o, tag)
24430 }
24431
24432 // AppendTag 指定のタグを追加
24433 func (o *ServerCreateRequest) AppendTag(tag string) {
24434 accessor.AppendTag(o, tag)
24435 }
24436
24437 // RemoveTag 指定のタグを削除
24438 func (o *ServerCreateRequest) RemoveTag(tag string) {
24439 accessor.RemoveTag(o, tag)
24440 }
24441
24442 // ClearTags タグを全クリア
24443 func (o *ServerCreateRequest) ClearTags() {
24444 accessor.ClearTags(o)
24445 }
24446
24447 // GetIconID returns value of IconID
24448 func (o *ServerCreateRequest) GetIconID() types.ID {
24449 return o.IconID
24450 }
24451
24452 // SetIconID sets value to IconID
24453 func (o *ServerCreateRequest) SetIconID(v types.ID) {
24454 o.IconID = v
24455 }
24456
24457 // GetWaitDiskMigration returns value of WaitDiskMigration
24458 func (o *ServerCreateRequest) GetWaitDiskMigration() bool {
24459 return o.WaitDiskMigration
24460 }
24461
24462 // SetWaitDiskMigration sets value to WaitDiskMigration
24463 func (o *ServerCreateRequest) SetWaitDiskMigration(v bool) {
24464 o.WaitDiskMigration = v
24465 }
24466
24467 // GetPrivateHostID returns value of PrivateHostID
24468 func (o *ServerCreateRequest) GetPrivateHostID() types.ID {
24469 return o.PrivateHostID
24470 }
24471
24472 // SetPrivateHostID sets value to PrivateHostID
24473 func (o *ServerCreateRequest) SetPrivateHostID(v types.ID) {
24474 o.PrivateHostID = v
24475 }
24476
24477 /*************************************************
24478 * ConnectedSwitch
24479 *************************************************/
24480
24481 // ConnectedSwitch represents API parameter/response structure
24482 type ConnectedSwitch struct {
24483 ID types.ID
24484 Scope types.EScope
24485 }
24486
24487 // setDefaults implements iaas.argumentDefaulter
24488 func (o *ConnectedSwitch) setDefaults() interface{} {
24489 return &struct {
24490 ID types.ID
24491 Scope types.EScope
24492 }{
24493 ID: o.GetID(),
24494 Scope: o.GetScope(),
24495 }
24496 }
24497
24498 // GetID returns value of ID
24499 func (o *ConnectedSwitch) GetID() types.ID {
24500 return o.ID
24501 }
24502
24503 // SetID sets value to ID
24504 func (o *ConnectedSwitch) SetID(v types.ID) {
24505 o.ID = v
24506 }
24507
24508 // SetStringID .
24509 func (o *ConnectedSwitch) SetStringID(id string) {
24510 accessor.SetStringID(o, id)
24511 }
24512
24513 // GetStringID .
24514 func (o *ConnectedSwitch) GetStringID() string {
24515 return accessor.GetStringID(o)
24516 }
24517
24518 // SetInt64ID .
24519 func (o *ConnectedSwitch) SetInt64ID(id int64) {
24520 accessor.SetInt64ID(o, id)
24521 }
24522
24523 // GetInt64ID .
24524 func (o *ConnectedSwitch) GetInt64ID() int64 {
24525 return accessor.GetInt64ID(o)
24526 }
24527
24528 // GetScope returns value of Scope
24529 func (o *ConnectedSwitch) GetScope() types.EScope {
24530 return o.Scope
24531 }
24532
24533 // SetScope sets value to Scope
24534 func (o *ConnectedSwitch) SetScope(v types.EScope) {
24535 o.Scope = v
24536 }
24537
24538 /*************************************************
24539 * ServerUpdateRequest
24540 *************************************************/
24541
24542 // ServerUpdateRequest represents API parameter/response structure
24543 type ServerUpdateRequest struct {
24544 Name string
24545 Description string
24546 Tags types.Tags
24547 IconID types.ID `mapconv:"Icon.ID"`
24548 PrivateHostID types.ID `mapconv:"PrivateHost.ID"`
24549 InterfaceDriver types.EInterfaceDriver
24550 }
24551
24552 // setDefaults implements iaas.argumentDefaulter
24553 func (o *ServerUpdateRequest) setDefaults() interface{} {
24554 return &struct {
24555 Name string
24556 Description string
24557 Tags types.Tags
24558 IconID types.ID `mapconv:"Icon.ID"`
24559 PrivateHostID types.ID `mapconv:"PrivateHost.ID"`
24560 InterfaceDriver types.EInterfaceDriver
24561 }{
24562 Name: o.GetName(),
24563 Description: o.GetDescription(),
24564 Tags: o.GetTags(),
24565 IconID: o.GetIconID(),
24566 PrivateHostID: o.GetPrivateHostID(),
24567 InterfaceDriver: o.GetInterfaceDriver(),
24568 }
24569 }
24570
24571 // GetName returns value of Name
24572 func (o *ServerUpdateRequest) GetName() string {
24573 return o.Name
24574 }
24575
24576 // SetName sets value to Name
24577 func (o *ServerUpdateRequest) SetName(v string) {
24578 o.Name = v
24579 }
24580
24581 // GetDescription returns value of Description
24582 func (o *ServerUpdateRequest) GetDescription() string {
24583 return o.Description
24584 }
24585
24586 // SetDescription sets value to Description
24587 func (o *ServerUpdateRequest) SetDescription(v string) {
24588 o.Description = v
24589 }
24590
24591 // GetTags returns value of Tags
24592 func (o *ServerUpdateRequest) GetTags() types.Tags {
24593 return o.Tags
24594 }
24595
24596 // SetTags sets value to Tags
24597 func (o *ServerUpdateRequest) SetTags(v types.Tags) {
24598 o.Tags = v
24599 }
24600
24601 // HasTag 指定のタグが存在する場合trueを返す
24602 func (o *ServerUpdateRequest) HasTag(tag string) bool {
24603 return accessor.HasTag(o, tag)
24604 }
24605
24606 // AppendTag 指定のタグを追加
24607 func (o *ServerUpdateRequest) AppendTag(tag string) {
24608 accessor.AppendTag(o, tag)
24609 }
24610
24611 // RemoveTag 指定のタグを削除
24612 func (o *ServerUpdateRequest) RemoveTag(tag string) {
24613 accessor.RemoveTag(o, tag)
24614 }
24615
24616 // ClearTags タグを全クリア
24617 func (o *ServerUpdateRequest) ClearTags() {
24618 accessor.ClearTags(o)
24619 }
24620
24621 // GetIconID returns value of IconID
24622 func (o *ServerUpdateRequest) GetIconID() types.ID {
24623 return o.IconID
24624 }
24625
24626 // SetIconID sets value to IconID
24627 func (o *ServerUpdateRequest) SetIconID(v types.ID) {
24628 o.IconID = v
24629 }
24630
24631 // GetPrivateHostID returns value of PrivateHostID
24632 func (o *ServerUpdateRequest) GetPrivateHostID() types.ID {
24633 return o.PrivateHostID
24634 }
24635
24636 // SetPrivateHostID sets value to PrivateHostID
24637 func (o *ServerUpdateRequest) SetPrivateHostID(v types.ID) {
24638 o.PrivateHostID = v
24639 }
24640
24641 // GetInterfaceDriver returns value of InterfaceDriver
24642 func (o *ServerUpdateRequest) GetInterfaceDriver() types.EInterfaceDriver {
24643 if o.InterfaceDriver == types.EInterfaceDriver("") {
24644 return types.InterfaceDrivers.VirtIO
24645 }
24646 return o.InterfaceDriver
24647 }
24648
24649 // SetInterfaceDriver sets value to InterfaceDriver
24650 func (o *ServerUpdateRequest) SetInterfaceDriver(v types.EInterfaceDriver) {
24651 o.InterfaceDriver = v
24652 }
24653
24654 /*************************************************
24655 * ServerDeleteWithDisksRequest
24656 *************************************************/
24657
24658 // ServerDeleteWithDisksRequest represents API parameter/response structure
24659 type ServerDeleteWithDisksRequest struct {
24660 IDs []types.ID `mapconv:"WithDisk"`
24661 }
24662
24663 // setDefaults implements iaas.argumentDefaulter
24664 func (o *ServerDeleteWithDisksRequest) setDefaults() interface{} {
24665 return &struct {
24666 IDs []types.ID `mapconv:"WithDisk"`
24667 }{
24668 IDs: o.GetIDs(),
24669 }
24670 }
24671
24672 // GetIDs returns value of IDs
24673 func (o *ServerDeleteWithDisksRequest) GetIDs() []types.ID {
24674 return o.IDs
24675 }
24676
24677 // SetIDs sets value to IDs
24678 func (o *ServerDeleteWithDisksRequest) SetIDs(v []types.ID) {
24679 o.IDs = v
24680 }
24681
24682 /*************************************************
24683 * ServerChangePlanRequest
24684 *************************************************/
24685
24686 // ServerChangePlanRequest represents API parameter/response structure
24687 type ServerChangePlanRequest struct {
24688 CPU int
24689 MemoryMB int
24690 GPU int
24691 GPUModel string `json:"GPUModel,omitempty"`
24692 CPUModel string `json:"CPUModel,omitempty"`
24693 Generation types.EPlanGeneration `json:"Generation,omitempty"`
24694 Commitment types.ECommitment `json:"Commitment,omitempty"`
24695 }
24696
24697 // setDefaults implements iaas.argumentDefaulter
24698 func (o *ServerChangePlanRequest) setDefaults() interface{} {
24699 return &struct {
24700 CPU int
24701 MemoryMB int
24702 GPU int
24703 GPUModel string `json:"GPUModel,omitempty"`
24704 CPUModel string `json:"CPUModel,omitempty"`
24705 Generation types.EPlanGeneration `json:"Generation,omitempty"`
24706 Commitment types.ECommitment `json:"Commitment,omitempty"`
24707 }{
24708 CPU: o.GetCPU(),
24709 MemoryMB: o.GetMemoryMB(),
24710 GPU: o.GetGPU(),
24711 GPUModel: o.GetGPUModel(),
24712 CPUModel: o.GetCPUModel(),
24713 Generation: o.GetGeneration(),
24714 Commitment: o.GetCommitment(),
24715 }
24716 }
24717
24718 // GetCPU returns value of CPU
24719 func (o *ServerChangePlanRequest) GetCPU() int {
24720 return o.CPU
24721 }
24722
24723 // SetCPU sets value to CPU
24724 func (o *ServerChangePlanRequest) SetCPU(v int) {
24725 o.CPU = v
24726 }
24727
24728 // GetMemoryMB returns value of MemoryMB
24729 func (o *ServerChangePlanRequest) GetMemoryMB() int {
24730 return o.MemoryMB
24731 }
24732
24733 // SetMemoryMB sets value to MemoryMB
24734 func (o *ServerChangePlanRequest) SetMemoryMB(v int) {
24735 o.MemoryMB = v
24736 }
24737
24738 // GetMemoryGB .
24739 func (o *ServerChangePlanRequest) GetMemoryGB() int {
24740 return accessor.GetMemoryGB(o)
24741 }
24742
24743 // SetMemoryGB .
24744 func (o *ServerChangePlanRequest) SetMemoryGB(memory int) {
24745 accessor.SetMemoryGB(o, memory)
24746 }
24747
24748 // GetGPU returns value of GPU
24749 func (o *ServerChangePlanRequest) GetGPU() int {
24750 return o.GPU
24751 }
24752
24753 // SetGPU sets value to GPU
24754 func (o *ServerChangePlanRequest) SetGPU(v int) {
24755 o.GPU = v
24756 }
24757
24758 // GetGPUModel returns value of GPUModel
24759 func (o *ServerChangePlanRequest) GetGPUModel() string {
24760 return o.GPUModel
24761 }
24762
24763 // SetGPUModel sets value to GPUModel
24764 func (o *ServerChangePlanRequest) SetGPUModel(v string) {
24765 o.GPUModel = v
24766 }
24767
24768 // GetCPUModel returns value of CPUModel
24769 func (o *ServerChangePlanRequest) GetCPUModel() string {
24770 return o.CPUModel
24771 }
24772
24773 // SetCPUModel sets value to CPUModel
24774 func (o *ServerChangePlanRequest) SetCPUModel(v string) {
24775 o.CPUModel = v
24776 }
24777
24778 // GetGeneration returns value of Generation
24779 func (o *ServerChangePlanRequest) GetGeneration() types.EPlanGeneration {
24780 return o.Generation
24781 }
24782
24783 // SetGeneration sets value to Generation
24784 func (o *ServerChangePlanRequest) SetGeneration(v types.EPlanGeneration) {
24785 o.Generation = v
24786 }
24787
24788 // GetCommitment returns value of Commitment
24789 func (o *ServerChangePlanRequest) GetCommitment() types.ECommitment {
24790 if o.Commitment == types.ECommitment("") {
24791 return types.Commitments.Standard
24792 }
24793 return o.Commitment
24794 }
24795
24796 // SetCommitment sets value to Commitment
24797 func (o *ServerChangePlanRequest) SetCommitment(v types.ECommitment) {
24798 o.Commitment = v
24799 }
24800
24801 /*************************************************
24802 * InsertCDROMRequest
24803 *************************************************/
24804
24805 // InsertCDROMRequest represents API parameter/response structure
24806 type InsertCDROMRequest struct {
24807 ID types.ID
24808 }
24809
24810 // setDefaults implements iaas.argumentDefaulter
24811 func (o *InsertCDROMRequest) setDefaults() interface{} {
24812 return &struct {
24813 ID types.ID
24814 }{
24815 ID: o.GetID(),
24816 }
24817 }
24818
24819 // GetID returns value of ID
24820 func (o *InsertCDROMRequest) GetID() types.ID {
24821 return o.ID
24822 }
24823
24824 // SetID sets value to ID
24825 func (o *InsertCDROMRequest) SetID(v types.ID) {
24826 o.ID = v
24827 }
24828
24829 // SetStringID .
24830 func (o *InsertCDROMRequest) SetStringID(id string) {
24831 accessor.SetStringID(o, id)
24832 }
24833
24834 // GetStringID .
24835 func (o *InsertCDROMRequest) GetStringID() string {
24836 return accessor.GetStringID(o)
24837 }
24838
24839 // SetInt64ID .
24840 func (o *InsertCDROMRequest) SetInt64ID(id int64) {
24841 accessor.SetInt64ID(o, id)
24842 }
24843
24844 // GetInt64ID .
24845 func (o *InsertCDROMRequest) GetInt64ID() int64 {
24846 return accessor.GetInt64ID(o)
24847 }
24848
24849 /*************************************************
24850 * EjectCDROMRequest
24851 *************************************************/
24852
24853 // EjectCDROMRequest represents API parameter/response structure
24854 type EjectCDROMRequest struct {
24855 ID types.ID
24856 }
24857
24858 // setDefaults implements iaas.argumentDefaulter
24859 func (o *EjectCDROMRequest) setDefaults() interface{} {
24860 return &struct {
24861 ID types.ID
24862 }{
24863 ID: o.GetID(),
24864 }
24865 }
24866
24867 // GetID returns value of ID
24868 func (o *EjectCDROMRequest) GetID() types.ID {
24869 return o.ID
24870 }
24871
24872 // SetID sets value to ID
24873 func (o *EjectCDROMRequest) SetID(v types.ID) {
24874 o.ID = v
24875 }
24876
24877 // SetStringID .
24878 func (o *EjectCDROMRequest) SetStringID(id string) {
24879 accessor.SetStringID(o, id)
24880 }
24881
24882 // GetStringID .
24883 func (o *EjectCDROMRequest) GetStringID() string {
24884 return accessor.GetStringID(o)
24885 }
24886
24887 // SetInt64ID .
24888 func (o *EjectCDROMRequest) SetInt64ID(id int64) {
24889 accessor.SetInt64ID(o, id)
24890 }
24891
24892 // GetInt64ID .
24893 func (o *EjectCDROMRequest) GetInt64ID() int64 {
24894 return accessor.GetInt64ID(o)
24895 }
24896
24897 /*************************************************
24898 * ServerBootVariables
24899 *************************************************/
24900
24901 // ServerBootVariables represents API parameter/response structure
24902 type ServerBootVariables struct {
24903 UserData string `json:",omitempty" mapconv:"CloudInit.UserData,omitempty"`
24904 }
24905
24906 // setDefaults implements iaas.argumentDefaulter
24907 func (o *ServerBootVariables) setDefaults() interface{} {
24908 return &struct {
24909 UserData string `json:",omitempty" mapconv:"CloudInit.UserData,omitempty"`
24910 }{
24911 UserData: o.GetUserData(),
24912 }
24913 }
24914
24915 // GetUserData returns value of UserData
24916 func (o *ServerBootVariables) GetUserData() string {
24917 return o.UserData
24918 }
24919
24920 // SetUserData sets value to UserData
24921 func (o *ServerBootVariables) SetUserData(v string) {
24922 o.UserData = v
24923 }
24924
24925 /*************************************************
24926 * SendKeyRequest
24927 *************************************************/
24928
24929 // SendKeyRequest represents API parameter/response structure
24930 type SendKeyRequest struct {
24931 Key string
24932 Keys []string
24933 }
24934
24935 // setDefaults implements iaas.argumentDefaulter
24936 func (o *SendKeyRequest) setDefaults() interface{} {
24937 return &struct {
24938 Key string
24939 Keys []string
24940 }{
24941 Key: o.GetKey(),
24942 Keys: o.GetKeys(),
24943 }
24944 }
24945
24946 // GetKey returns value of Key
24947 func (o *SendKeyRequest) GetKey() string {
24948 return o.Key
24949 }
24950
24951 // SetKey sets value to Key
24952 func (o *SendKeyRequest) SetKey(v string) {
24953 o.Key = v
24954 }
24955
24956 // GetKeys returns value of Keys
24957 func (o *SendKeyRequest) GetKeys() []string {
24958 return o.Keys
24959 }
24960
24961 // SetKeys sets value to Keys
24962 func (o *SendKeyRequest) SetKeys(v []string) {
24963 o.Keys = v
24964 }
24965
24966 /*************************************************
24967 * VNCProxyInfo
24968 *************************************************/
24969
24970 // VNCProxyInfo represents API parameter/response structure
24971 type VNCProxyInfo struct {
24972 Status string
24973 Host string
24974 IOServerHost string
24975 Port types.StringNumber
24976 Password string
24977 VNCFile string
24978 }
24979
24980 // setDefaults implements iaas.argumentDefaulter
24981 func (o *VNCProxyInfo) setDefaults() interface{} {
24982 return &struct {
24983 Status string
24984 Host string
24985 IOServerHost string
24986 Port types.StringNumber
24987 Password string
24988 VNCFile string
24989 }{
24990 Status: o.GetStatus(),
24991 Host: o.GetHost(),
24992 IOServerHost: o.GetIOServerHost(),
24993 Port: o.GetPort(),
24994 Password: o.GetPassword(),
24995 VNCFile: o.GetVNCFile(),
24996 }
24997 }
24998
24999 // GetStatus returns value of Status
25000 func (o *VNCProxyInfo) GetStatus() string {
25001 return o.Status
25002 }
25003
25004 // SetStatus sets value to Status
25005 func (o *VNCProxyInfo) SetStatus(v string) {
25006 o.Status = v
25007 }
25008
25009 // GetHost returns value of Host
25010 func (o *VNCProxyInfo) GetHost() string {
25011 return o.Host
25012 }
25013
25014 // SetHost sets value to Host
25015 func (o *VNCProxyInfo) SetHost(v string) {
25016 o.Host = v
25017 }
25018
25019 // GetIOServerHost returns value of IOServerHost
25020 func (o *VNCProxyInfo) GetIOServerHost() string {
25021 return o.IOServerHost
25022 }
25023
25024 // SetIOServerHost sets value to IOServerHost
25025 func (o *VNCProxyInfo) SetIOServerHost(v string) {
25026 o.IOServerHost = v
25027 }
25028
25029 // GetPort returns value of Port
25030 func (o *VNCProxyInfo) GetPort() types.StringNumber {
25031 return o.Port
25032 }
25033
25034 // SetPort sets value to Port
25035 func (o *VNCProxyInfo) SetPort(v types.StringNumber) {
25036 o.Port = v
25037 }
25038
25039 // GetPassword returns value of Password
25040 func (o *VNCProxyInfo) GetPassword() string {
25041 return o.Password
25042 }
25043
25044 // SetPassword sets value to Password
25045 func (o *VNCProxyInfo) SetPassword(v string) {
25046 o.Password = v
25047 }
25048
25049 // GetVNCFile returns value of VNCFile
25050 func (o *VNCProxyInfo) GetVNCFile() string {
25051 return o.VNCFile
25052 }
25053
25054 // SetVNCFile sets value to VNCFile
25055 func (o *VNCProxyInfo) SetVNCFile(v string) {
25056 o.VNCFile = v
25057 }
25058
25059 /*************************************************
25060 * ServerPlan
25061 *************************************************/
25062
25063 // ServerPlan represents API parameter/response structure
25064 type ServerPlan struct {
25065 ID types.ID
25066 Name string
25067 CPU int
25068 MemoryMB int
25069 GPU int
25070 GPUModel string
25071 CPUModel string
25072 Commitment types.ECommitment
25073 Generation types.EPlanGeneration
25074 Availability types.EAvailability
25075 }
25076
25077 // setDefaults implements iaas.argumentDefaulter
25078 func (o *ServerPlan) setDefaults() interface{} {
25079 return &struct {
25080 ID types.ID
25081 Name string
25082 CPU int
25083 MemoryMB int
25084 GPU int
25085 GPUModel string
25086 CPUModel string
25087 Commitment types.ECommitment
25088 Generation types.EPlanGeneration
25089 Availability types.EAvailability
25090 }{
25091 ID: o.GetID(),
25092 Name: o.GetName(),
25093 CPU: o.GetCPU(),
25094 MemoryMB: o.GetMemoryMB(),
25095 GPU: o.GetGPU(),
25096 GPUModel: o.GetGPUModel(),
25097 CPUModel: o.GetCPUModel(),
25098 Commitment: o.GetCommitment(),
25099 Generation: o.GetGeneration(),
25100 Availability: o.GetAvailability(),
25101 }
25102 }
25103
25104 // GetID returns value of ID
25105 func (o *ServerPlan) GetID() types.ID {
25106 return o.ID
25107 }
25108
25109 // SetID sets value to ID
25110 func (o *ServerPlan) SetID(v types.ID) {
25111 o.ID = v
25112 }
25113
25114 // SetStringID .
25115 func (o *ServerPlan) SetStringID(id string) {
25116 accessor.SetStringID(o, id)
25117 }
25118
25119 // GetStringID .
25120 func (o *ServerPlan) GetStringID() string {
25121 return accessor.GetStringID(o)
25122 }
25123
25124 // SetInt64ID .
25125 func (o *ServerPlan) SetInt64ID(id int64) {
25126 accessor.SetInt64ID(o, id)
25127 }
25128
25129 // GetInt64ID .
25130 func (o *ServerPlan) GetInt64ID() int64 {
25131 return accessor.GetInt64ID(o)
25132 }
25133
25134 // GetName returns value of Name
25135 func (o *ServerPlan) GetName() string {
25136 return o.Name
25137 }
25138
25139 // SetName sets value to Name
25140 func (o *ServerPlan) SetName(v string) {
25141 o.Name = v
25142 }
25143
25144 // GetCPU returns value of CPU
25145 func (o *ServerPlan) GetCPU() int {
25146 return o.CPU
25147 }
25148
25149 // SetCPU sets value to CPU
25150 func (o *ServerPlan) SetCPU(v int) {
25151 o.CPU = v
25152 }
25153
25154 // GetMemoryMB returns value of MemoryMB
25155 func (o *ServerPlan) GetMemoryMB() int {
25156 return o.MemoryMB
25157 }
25158
25159 // SetMemoryMB sets value to MemoryMB
25160 func (o *ServerPlan) SetMemoryMB(v int) {
25161 o.MemoryMB = v
25162 }
25163
25164 // GetMemoryGB .
25165 func (o *ServerPlan) GetMemoryGB() int {
25166 return accessor.GetMemoryGB(o)
25167 }
25168
25169 // SetMemoryGB .
25170 func (o *ServerPlan) SetMemoryGB(memory int) {
25171 accessor.SetMemoryGB(o, memory)
25172 }
25173
25174 // GetGPU returns value of GPU
25175 func (o *ServerPlan) GetGPU() int {
25176 return o.GPU
25177 }
25178
25179 // SetGPU sets value to GPU
25180 func (o *ServerPlan) SetGPU(v int) {
25181 o.GPU = v
25182 }
25183
25184 // GetGPUModel returns value of GPUModel
25185 func (o *ServerPlan) GetGPUModel() string {
25186 return o.GPUModel
25187 }
25188
25189 // SetGPUModel sets value to GPUModel
25190 func (o *ServerPlan) SetGPUModel(v string) {
25191 o.GPUModel = v
25192 }
25193
25194 // GetCPUModel returns value of CPUModel
25195 func (o *ServerPlan) GetCPUModel() string {
25196 return o.CPUModel
25197 }
25198
25199 // SetCPUModel sets value to CPUModel
25200 func (o *ServerPlan) SetCPUModel(v string) {
25201 o.CPUModel = v
25202 }
25203
25204 // GetCommitment returns value of Commitment
25205 func (o *ServerPlan) GetCommitment() types.ECommitment {
25206 return o.Commitment
25207 }
25208
25209 // SetCommitment sets value to Commitment
25210 func (o *ServerPlan) SetCommitment(v types.ECommitment) {
25211 o.Commitment = v
25212 }
25213
25214 // GetGeneration returns value of Generation
25215 func (o *ServerPlan) GetGeneration() types.EPlanGeneration {
25216 return o.Generation
25217 }
25218
25219 // SetGeneration sets value to Generation
25220 func (o *ServerPlan) SetGeneration(v types.EPlanGeneration) {
25221 o.Generation = v
25222 }
25223
25224 // GetAvailability returns value of Availability
25225 func (o *ServerPlan) GetAvailability() types.EAvailability {
25226 return o.Availability
25227 }
25228
25229 // SetAvailability sets value to Availability
25230 func (o *ServerPlan) SetAvailability(v types.EAvailability) {
25231 o.Availability = v
25232 }
25233
25234 /*************************************************
25235 * ServiceClass
25236 *************************************************/
25237
25238 // ServiceClass represents API parameter/response structure
25239 type ServiceClass struct {
25240 ID types.ID
25241 ServiceClassName string
25242 ServiceClassPath string
25243 DisplayName string
25244 IsPublic bool
25245 Price *Price `mapconv:",recursive"`
25246 }
25247
25248 // setDefaults implements iaas.argumentDefaulter
25249 func (o *ServiceClass) setDefaults() interface{} {
25250 return &struct {
25251 ID types.ID
25252 ServiceClassName string
25253 ServiceClassPath string
25254 DisplayName string
25255 IsPublic bool
25256 Price *Price `mapconv:",recursive"`
25257 }{
25258 ID: o.GetID(),
25259 ServiceClassName: o.GetServiceClassName(),
25260 ServiceClassPath: o.GetServiceClassPath(),
25261 DisplayName: o.GetDisplayName(),
25262 IsPublic: o.GetIsPublic(),
25263 Price: o.GetPrice(),
25264 }
25265 }
25266
25267 // GetID returns value of ID
25268 func (o *ServiceClass) GetID() types.ID {
25269 return o.ID
25270 }
25271
25272 // SetID sets value to ID
25273 func (o *ServiceClass) SetID(v types.ID) {
25274 o.ID = v
25275 }
25276
25277 // SetStringID .
25278 func (o *ServiceClass) SetStringID(id string) {
25279 accessor.SetStringID(o, id)
25280 }
25281
25282 // GetStringID .
25283 func (o *ServiceClass) GetStringID() string {
25284 return accessor.GetStringID(o)
25285 }
25286
25287 // SetInt64ID .
25288 func (o *ServiceClass) SetInt64ID(id int64) {
25289 accessor.SetInt64ID(o, id)
25290 }
25291
25292 // GetInt64ID .
25293 func (o *ServiceClass) GetInt64ID() int64 {
25294 return accessor.GetInt64ID(o)
25295 }
25296
25297 // GetServiceClassName returns value of ServiceClassName
25298 func (o *ServiceClass) GetServiceClassName() string {
25299 return o.ServiceClassName
25300 }
25301
25302 // SetServiceClassName sets value to ServiceClassName
25303 func (o *ServiceClass) SetServiceClassName(v string) {
25304 o.ServiceClassName = v
25305 }
25306
25307 // GetServiceClassPath returns value of ServiceClassPath
25308 func (o *ServiceClass) GetServiceClassPath() string {
25309 return o.ServiceClassPath
25310 }
25311
25312 // SetServiceClassPath sets value to ServiceClassPath
25313 func (o *ServiceClass) SetServiceClassPath(v string) {
25314 o.ServiceClassPath = v
25315 }
25316
25317 // GetDisplayName returns value of DisplayName
25318 func (o *ServiceClass) GetDisplayName() string {
25319 return o.DisplayName
25320 }
25321
25322 // SetDisplayName sets value to DisplayName
25323 func (o *ServiceClass) SetDisplayName(v string) {
25324 o.DisplayName = v
25325 }
25326
25327 // GetIsPublic returns value of IsPublic
25328 func (o *ServiceClass) GetIsPublic() bool {
25329 return o.IsPublic
25330 }
25331
25332 // SetIsPublic sets value to IsPublic
25333 func (o *ServiceClass) SetIsPublic(v bool) {
25334 o.IsPublic = v
25335 }
25336
25337 // GetPrice returns value of Price
25338 func (o *ServiceClass) GetPrice() *Price {
25339 return o.Price
25340 }
25341
25342 // SetPrice sets value to Price
25343 func (o *ServiceClass) SetPrice(v *Price) {
25344 o.Price = v
25345 }
25346
25347 /*************************************************
25348 * Price
25349 *************************************************/
25350
25351 // Price represents API parameter/response structure
25352 type Price struct {
25353 Base int
25354 Daily int
25355 Hourly int
25356 Monthly int
25357 PerUse int
25358 Basic int
25359 Traffic int
25360 DocomoTraffic int
25361 KddiTraffic int
25362 SbTraffic int
25363 SimSheet int
25364 Zone string
25365 }
25366
25367 // setDefaults implements iaas.argumentDefaulter
25368 func (o *Price) setDefaults() interface{} {
25369 return &struct {
25370 Base int
25371 Daily int
25372 Hourly int
25373 Monthly int
25374 PerUse int
25375 Basic int
25376 Traffic int
25377 DocomoTraffic int
25378 KddiTraffic int
25379 SbTraffic int
25380 SimSheet int
25381 Zone string
25382 }{
25383 Base: o.GetBase(),
25384 Daily: o.GetDaily(),
25385 Hourly: o.GetHourly(),
25386 Monthly: o.GetMonthly(),
25387 PerUse: o.GetPerUse(),
25388 Basic: o.GetBasic(),
25389 Traffic: o.GetTraffic(),
25390 DocomoTraffic: o.GetDocomoTraffic(),
25391 KddiTraffic: o.GetKddiTraffic(),
25392 SbTraffic: o.GetSbTraffic(),
25393 SimSheet: o.GetSimSheet(),
25394 Zone: o.GetZone(),
25395 }
25396 }
25397
25398 // GetBase returns value of Base
25399 func (o *Price) GetBase() int {
25400 return o.Base
25401 }
25402
25403 // SetBase sets value to Base
25404 func (o *Price) SetBase(v int) {
25405 o.Base = v
25406 }
25407
25408 // GetDaily returns value of Daily
25409 func (o *Price) GetDaily() int {
25410 return o.Daily
25411 }
25412
25413 // SetDaily sets value to Daily
25414 func (o *Price) SetDaily(v int) {
25415 o.Daily = v
25416 }
25417
25418 // GetHourly returns value of Hourly
25419 func (o *Price) GetHourly() int {
25420 return o.Hourly
25421 }
25422
25423 // SetHourly sets value to Hourly
25424 func (o *Price) SetHourly(v int) {
25425 o.Hourly = v
25426 }
25427
25428 // GetMonthly returns value of Monthly
25429 func (o *Price) GetMonthly() int {
25430 return o.Monthly
25431 }
25432
25433 // SetMonthly sets value to Monthly
25434 func (o *Price) SetMonthly(v int) {
25435 o.Monthly = v
25436 }
25437
25438 // GetPerUse returns value of PerUse
25439 func (o *Price) GetPerUse() int {
25440 return o.PerUse
25441 }
25442
25443 // SetPerUse sets value to PerUse
25444 func (o *Price) SetPerUse(v int) {
25445 o.PerUse = v
25446 }
25447
25448 // GetBasic returns value of Basic
25449 func (o *Price) GetBasic() int {
25450 return o.Basic
25451 }
25452
25453 // SetBasic sets value to Basic
25454 func (o *Price) SetBasic(v int) {
25455 o.Basic = v
25456 }
25457
25458 // GetTraffic returns value of Traffic
25459 func (o *Price) GetTraffic() int {
25460 return o.Traffic
25461 }
25462
25463 // SetTraffic sets value to Traffic
25464 func (o *Price) SetTraffic(v int) {
25465 o.Traffic = v
25466 }
25467
25468 // GetDocomoTraffic returns value of DocomoTraffic
25469 func (o *Price) GetDocomoTraffic() int {
25470 return o.DocomoTraffic
25471 }
25472
25473 // SetDocomoTraffic sets value to DocomoTraffic
25474 func (o *Price) SetDocomoTraffic(v int) {
25475 o.DocomoTraffic = v
25476 }
25477
25478 // GetKddiTraffic returns value of KddiTraffic
25479 func (o *Price) GetKddiTraffic() int {
25480 return o.KddiTraffic
25481 }
25482
25483 // SetKddiTraffic sets value to KddiTraffic
25484 func (o *Price) SetKddiTraffic(v int) {
25485 o.KddiTraffic = v
25486 }
25487
25488 // GetSbTraffic returns value of SbTraffic
25489 func (o *Price) GetSbTraffic() int {
25490 return o.SbTraffic
25491 }
25492
25493 // SetSbTraffic sets value to SbTraffic
25494 func (o *Price) SetSbTraffic(v int) {
25495 o.SbTraffic = v
25496 }
25497
25498 // GetSimSheet returns value of SimSheet
25499 func (o *Price) GetSimSheet() int {
25500 return o.SimSheet
25501 }
25502
25503 // SetSimSheet sets value to SimSheet
25504 func (o *Price) SetSimSheet(v int) {
25505 o.SimSheet = v
25506 }
25507
25508 // GetZone returns value of Zone
25509 func (o *Price) GetZone() string {
25510 return o.Zone
25511 }
25512
25513 // SetZone sets value to Zone
25514 func (o *Price) SetZone(v string) {
25515 o.Zone = v
25516 }
25517
25518 /*************************************************
25519 * SIM
25520 *************************************************/
25521
25522 // SIM represents API parameter/response structure
25523 type SIM struct {
25524 ID types.ID
25525 Name string
25526 Description string
25527 Tags types.Tags
25528 Availability types.EAvailability
25529 Class string
25530 ICCID string `mapconv:"Status.ICCID"`
25531 Info *SIMInfo `mapconv:"Status.SIMInfo"`
25532 IconID types.ID `mapconv:"Icon.ID"`
25533 CreatedAt time.Time
25534 ModifiedAt time.Time
25535 }
25536
25537 // setDefaults implements iaas.argumentDefaulter
25538 func (o *SIM) setDefaults() interface{} {
25539 return &struct {
25540 ID types.ID
25541 Name string
25542 Description string
25543 Tags types.Tags
25544 Availability types.EAvailability
25545 Class string
25546 ICCID string `mapconv:"Status.ICCID"`
25547 Info *SIMInfo `mapconv:"Status.SIMInfo"`
25548 IconID types.ID `mapconv:"Icon.ID"`
25549 CreatedAt time.Time
25550 ModifiedAt time.Time
25551 }{
25552 ID: o.GetID(),
25553 Name: o.GetName(),
25554 Description: o.GetDescription(),
25555 Tags: o.GetTags(),
25556 Availability: o.GetAvailability(),
25557 Class: o.GetClass(),
25558 ICCID: o.GetICCID(),
25559 Info: o.GetInfo(),
25560 IconID: o.GetIconID(),
25561 CreatedAt: o.GetCreatedAt(),
25562 ModifiedAt: o.GetModifiedAt(),
25563 }
25564 }
25565
25566 // GetID returns value of ID
25567 func (o *SIM) GetID() types.ID {
25568 return o.ID
25569 }
25570
25571 // SetID sets value to ID
25572 func (o *SIM) SetID(v types.ID) {
25573 o.ID = v
25574 }
25575
25576 // SetStringID .
25577 func (o *SIM) SetStringID(id string) {
25578 accessor.SetStringID(o, id)
25579 }
25580
25581 // GetStringID .
25582 func (o *SIM) GetStringID() string {
25583 return accessor.GetStringID(o)
25584 }
25585
25586 // SetInt64ID .
25587 func (o *SIM) SetInt64ID(id int64) {
25588 accessor.SetInt64ID(o, id)
25589 }
25590
25591 // GetInt64ID .
25592 func (o *SIM) GetInt64ID() int64 {
25593 return accessor.GetInt64ID(o)
25594 }
25595
25596 // GetName returns value of Name
25597 func (o *SIM) GetName() string {
25598 return o.Name
25599 }
25600
25601 // SetName sets value to Name
25602 func (o *SIM) SetName(v string) {
25603 o.Name = v
25604 }
25605
25606 // GetDescription returns value of Description
25607 func (o *SIM) GetDescription() string {
25608 return o.Description
25609 }
25610
25611 // SetDescription sets value to Description
25612 func (o *SIM) SetDescription(v string) {
25613 o.Description = v
25614 }
25615
25616 // GetTags returns value of Tags
25617 func (o *SIM) GetTags() types.Tags {
25618 return o.Tags
25619 }
25620
25621 // SetTags sets value to Tags
25622 func (o *SIM) SetTags(v types.Tags) {
25623 o.Tags = v
25624 }
25625
25626 // HasTag 指定のタグが存在する場合trueを返す
25627 func (o *SIM) HasTag(tag string) bool {
25628 return accessor.HasTag(o, tag)
25629 }
25630
25631 // AppendTag 指定のタグを追加
25632 func (o *SIM) AppendTag(tag string) {
25633 accessor.AppendTag(o, tag)
25634 }
25635
25636 // RemoveTag 指定のタグを削除
25637 func (o *SIM) RemoveTag(tag string) {
25638 accessor.RemoveTag(o, tag)
25639 }
25640
25641 // ClearTags タグを全クリア
25642 func (o *SIM) ClearTags() {
25643 accessor.ClearTags(o)
25644 }
25645
25646 // GetAvailability returns value of Availability
25647 func (o *SIM) GetAvailability() types.EAvailability {
25648 return o.Availability
25649 }
25650
25651 // SetAvailability sets value to Availability
25652 func (o *SIM) SetAvailability(v types.EAvailability) {
25653 o.Availability = v
25654 }
25655
25656 // GetClass returns value of Class
25657 func (o *SIM) GetClass() string {
25658 return o.Class
25659 }
25660
25661 // SetClass sets value to Class
25662 func (o *SIM) SetClass(v string) {
25663 o.Class = v
25664 }
25665
25666 // GetICCID returns value of ICCID
25667 func (o *SIM) GetICCID() string {
25668 return o.ICCID
25669 }
25670
25671 // SetICCID sets value to ICCID
25672 func (o *SIM) SetICCID(v string) {
25673 o.ICCID = v
25674 }
25675
25676 // GetInfo returns value of Info
25677 func (o *SIM) GetInfo() *SIMInfo {
25678 return o.Info
25679 }
25680
25681 // SetInfo sets value to Info
25682 func (o *SIM) SetInfo(v *SIMInfo) {
25683 o.Info = v
25684 }
25685
25686 // GetIconID returns value of IconID
25687 func (o *SIM) GetIconID() types.ID {
25688 return o.IconID
25689 }
25690
25691 // SetIconID sets value to IconID
25692 func (o *SIM) SetIconID(v types.ID) {
25693 o.IconID = v
25694 }
25695
25696 // GetCreatedAt returns value of CreatedAt
25697 func (o *SIM) GetCreatedAt() time.Time {
25698 return o.CreatedAt
25699 }
25700
25701 // SetCreatedAt sets value to CreatedAt
25702 func (o *SIM) SetCreatedAt(v time.Time) {
25703 o.CreatedAt = v
25704 }
25705
25706 // GetModifiedAt returns value of ModifiedAt
25707 func (o *SIM) GetModifiedAt() time.Time {
25708 return o.ModifiedAt
25709 }
25710
25711 // SetModifiedAt sets value to ModifiedAt
25712 func (o *SIM) SetModifiedAt(v time.Time) {
25713 o.ModifiedAt = v
25714 }
25715
25716 /*************************************************
25717 * SIMInfo
25718 *************************************************/
25719
25720 // SIMInfo represents API parameter/response structure
25721 type SIMInfo struct {
25722 ICCID string
25723 IMSI []string
25724 IMEI string
25725 IP string
25726 SessionStatus string
25727 IMEILock bool
25728 Registered bool
25729 Activated bool
25730 ResourceID string
25731 RegisteredDate time.Time
25732 ActivatedDate time.Time
25733 DeactivatedDate time.Time
25734 SIMGroupID string
25735 TrafficBytesOfCurrentMonth *SIMTrafficBytes `mapconv:",recursive"`
25736 ConnectedIMEI string
25737 }
25738
25739 // setDefaults implements iaas.argumentDefaulter
25740 func (o *SIMInfo) setDefaults() interface{} {
25741 return &struct {
25742 ICCID string
25743 IMSI []string
25744 IMEI string
25745 IP string
25746 SessionStatus string
25747 IMEILock bool
25748 Registered bool
25749 Activated bool
25750 ResourceID string
25751 RegisteredDate time.Time
25752 ActivatedDate time.Time
25753 DeactivatedDate time.Time
25754 SIMGroupID string
25755 TrafficBytesOfCurrentMonth *SIMTrafficBytes `mapconv:",recursive"`
25756 ConnectedIMEI string
25757 }{
25758 ICCID: o.GetICCID(),
25759 IMSI: o.GetIMSI(),
25760 IMEI: o.GetIMEI(),
25761 IP: o.GetIP(),
25762 SessionStatus: o.GetSessionStatus(),
25763 IMEILock: o.GetIMEILock(),
25764 Registered: o.GetRegistered(),
25765 Activated: o.GetActivated(),
25766 ResourceID: o.GetResourceID(),
25767 RegisteredDate: o.GetRegisteredDate(),
25768 ActivatedDate: o.GetActivatedDate(),
25769 DeactivatedDate: o.GetDeactivatedDate(),
25770 SIMGroupID: o.GetSIMGroupID(),
25771 TrafficBytesOfCurrentMonth: o.GetTrafficBytesOfCurrentMonth(),
25772 ConnectedIMEI: o.GetConnectedIMEI(),
25773 }
25774 }
25775
25776 // GetICCID returns value of ICCID
25777 func (o *SIMInfo) GetICCID() string {
25778 return o.ICCID
25779 }
25780
25781 // SetICCID sets value to ICCID
25782 func (o *SIMInfo) SetICCID(v string) {
25783 o.ICCID = v
25784 }
25785
25786 // GetIMSI returns value of IMSI
25787 func (o *SIMInfo) GetIMSI() []string {
25788 return o.IMSI
25789 }
25790
25791 // SetIMSI sets value to IMSI
25792 func (o *SIMInfo) SetIMSI(v []string) {
25793 o.IMSI = v
25794 }
25795
25796 // GetIMEI returns value of IMEI
25797 func (o *SIMInfo) GetIMEI() string {
25798 return o.IMEI
25799 }
25800
25801 // SetIMEI sets value to IMEI
25802 func (o *SIMInfo) SetIMEI(v string) {
25803 o.IMEI = v
25804 }
25805
25806 // GetIP returns value of IP
25807 func (o *SIMInfo) GetIP() string {
25808 return o.IP
25809 }
25810
25811 // SetIP sets value to IP
25812 func (o *SIMInfo) SetIP(v string) {
25813 o.IP = v
25814 }
25815
25816 // GetSessionStatus returns value of SessionStatus
25817 func (o *SIMInfo) GetSessionStatus() string {
25818 return o.SessionStatus
25819 }
25820
25821 // SetSessionStatus sets value to SessionStatus
25822 func (o *SIMInfo) SetSessionStatus(v string) {
25823 o.SessionStatus = v
25824 }
25825
25826 // GetIMEILock returns value of IMEILock
25827 func (o *SIMInfo) GetIMEILock() bool {
25828 return o.IMEILock
25829 }
25830
25831 // SetIMEILock sets value to IMEILock
25832 func (o *SIMInfo) SetIMEILock(v bool) {
25833 o.IMEILock = v
25834 }
25835
25836 // GetRegistered returns value of Registered
25837 func (o *SIMInfo) GetRegistered() bool {
25838 return o.Registered
25839 }
25840
25841 // SetRegistered sets value to Registered
25842 func (o *SIMInfo) SetRegistered(v bool) {
25843 o.Registered = v
25844 }
25845
25846 // GetActivated returns value of Activated
25847 func (o *SIMInfo) GetActivated() bool {
25848 return o.Activated
25849 }
25850
25851 // SetActivated sets value to Activated
25852 func (o *SIMInfo) SetActivated(v bool) {
25853 o.Activated = v
25854 }
25855
25856 // GetResourceID returns value of ResourceID
25857 func (o *SIMInfo) GetResourceID() string {
25858 return o.ResourceID
25859 }
25860
25861 // SetResourceID sets value to ResourceID
25862 func (o *SIMInfo) SetResourceID(v string) {
25863 o.ResourceID = v
25864 }
25865
25866 // GetRegisteredDate returns value of RegisteredDate
25867 func (o *SIMInfo) GetRegisteredDate() time.Time {
25868 return o.RegisteredDate
25869 }
25870
25871 // SetRegisteredDate sets value to RegisteredDate
25872 func (o *SIMInfo) SetRegisteredDate(v time.Time) {
25873 o.RegisteredDate = v
25874 }
25875
25876 // GetActivatedDate returns value of ActivatedDate
25877 func (o *SIMInfo) GetActivatedDate() time.Time {
25878 return o.ActivatedDate
25879 }
25880
25881 // SetActivatedDate sets value to ActivatedDate
25882 func (o *SIMInfo) SetActivatedDate(v time.Time) {
25883 o.ActivatedDate = v
25884 }
25885
25886 // GetDeactivatedDate returns value of DeactivatedDate
25887 func (o *SIMInfo) GetDeactivatedDate() time.Time {
25888 return o.DeactivatedDate
25889 }
25890
25891 // SetDeactivatedDate sets value to DeactivatedDate
25892 func (o *SIMInfo) SetDeactivatedDate(v time.Time) {
25893 o.DeactivatedDate = v
25894 }
25895
25896 // GetSIMGroupID returns value of SIMGroupID
25897 func (o *SIMInfo) GetSIMGroupID() string {
25898 return o.SIMGroupID
25899 }
25900
25901 // SetSIMGroupID sets value to SIMGroupID
25902 func (o *SIMInfo) SetSIMGroupID(v string) {
25903 o.SIMGroupID = v
25904 }
25905
25906 // GetTrafficBytesOfCurrentMonth returns value of TrafficBytesOfCurrentMonth
25907 func (o *SIMInfo) GetTrafficBytesOfCurrentMonth() *SIMTrafficBytes {
25908 return o.TrafficBytesOfCurrentMonth
25909 }
25910
25911 // SetTrafficBytesOfCurrentMonth sets value to TrafficBytesOfCurrentMonth
25912 func (o *SIMInfo) SetTrafficBytesOfCurrentMonth(v *SIMTrafficBytes) {
25913 o.TrafficBytesOfCurrentMonth = v
25914 }
25915
25916 // GetConnectedIMEI returns value of ConnectedIMEI
25917 func (o *SIMInfo) GetConnectedIMEI() string {
25918 return o.ConnectedIMEI
25919 }
25920
25921 // SetConnectedIMEI sets value to ConnectedIMEI
25922 func (o *SIMInfo) SetConnectedIMEI(v string) {
25923 o.ConnectedIMEI = v
25924 }
25925
25926 /*************************************************
25927 * SIMCreateRequest
25928 *************************************************/
25929
25930 // SIMCreateRequest represents API parameter/response structure
25931 type SIMCreateRequest struct {
25932 Name string
25933 Description string
25934 Tags types.Tags
25935 IconID types.ID `mapconv:"Icon.ID"`
25936 ICCID string `mapconv:"Status.ICCID"`
25937 PassCode string `mapconv:"Remark.PassCode"`
25938 }
25939
25940 // setDefaults implements iaas.argumentDefaulter
25941 func (o *SIMCreateRequest) setDefaults() interface{} {
25942 return &struct {
25943 Name string
25944 Description string
25945 Tags types.Tags
25946 IconID types.ID `mapconv:"Icon.ID"`
25947 ICCID string `mapconv:"Status.ICCID"`
25948 PassCode string `mapconv:"Remark.PassCode"`
25949 Class string `mapconv:"Provider.Class"`
25950 }{
25951 Name: o.GetName(),
25952 Description: o.GetDescription(),
25953 Tags: o.GetTags(),
25954 IconID: o.GetIconID(),
25955 ICCID: o.GetICCID(),
25956 PassCode: o.GetPassCode(),
25957 Class: "sim",
25958 }
25959 }
25960
25961 // GetName returns value of Name
25962 func (o *SIMCreateRequest) GetName() string {
25963 return o.Name
25964 }
25965
25966 // SetName sets value to Name
25967 func (o *SIMCreateRequest) SetName(v string) {
25968 o.Name = v
25969 }
25970
25971 // GetDescription returns value of Description
25972 func (o *SIMCreateRequest) GetDescription() string {
25973 return o.Description
25974 }
25975
25976 // SetDescription sets value to Description
25977 func (o *SIMCreateRequest) SetDescription(v string) {
25978 o.Description = v
25979 }
25980
25981 // GetTags returns value of Tags
25982 func (o *SIMCreateRequest) GetTags() types.Tags {
25983 return o.Tags
25984 }
25985
25986 // SetTags sets value to Tags
25987 func (o *SIMCreateRequest) SetTags(v types.Tags) {
25988 o.Tags = v
25989 }
25990
25991 // HasTag 指定のタグが存在する場合trueを返す
25992 func (o *SIMCreateRequest) HasTag(tag string) bool {
25993 return accessor.HasTag(o, tag)
25994 }
25995
25996 // AppendTag 指定のタグを追加
25997 func (o *SIMCreateRequest) AppendTag(tag string) {
25998 accessor.AppendTag(o, tag)
25999 }
26000
26001 // RemoveTag 指定のタグを削除
26002 func (o *SIMCreateRequest) RemoveTag(tag string) {
26003 accessor.RemoveTag(o, tag)
26004 }
26005
26006 // ClearTags タグを全クリア
26007 func (o *SIMCreateRequest) ClearTags() {
26008 accessor.ClearTags(o)
26009 }
26010
26011 // GetIconID returns value of IconID
26012 func (o *SIMCreateRequest) GetIconID() types.ID {
26013 return o.IconID
26014 }
26015
26016 // SetIconID sets value to IconID
26017 func (o *SIMCreateRequest) SetIconID(v types.ID) {
26018 o.IconID = v
26019 }
26020
26021 // GetICCID returns value of ICCID
26022 func (o *SIMCreateRequest) GetICCID() string {
26023 return o.ICCID
26024 }
26025
26026 // SetICCID sets value to ICCID
26027 func (o *SIMCreateRequest) SetICCID(v string) {
26028 o.ICCID = v
26029 }
26030
26031 // GetPassCode returns value of PassCode
26032 func (o *SIMCreateRequest) GetPassCode() string {
26033 return o.PassCode
26034 }
26035
26036 // SetPassCode sets value to PassCode
26037 func (o *SIMCreateRequest) SetPassCode(v string) {
26038 o.PassCode = v
26039 }
26040
26041 /*************************************************
26042 * SIMUpdateRequest
26043 *************************************************/
26044
26045 // SIMUpdateRequest represents API parameter/response structure
26046 type SIMUpdateRequest struct {
26047 Name string
26048 Description string
26049 Tags types.Tags
26050 IconID types.ID `mapconv:"Icon.ID"`
26051 }
26052
26053 // setDefaults implements iaas.argumentDefaulter
26054 func (o *SIMUpdateRequest) setDefaults() interface{} {
26055 return &struct {
26056 Name string
26057 Description string
26058 Tags types.Tags
26059 IconID types.ID `mapconv:"Icon.ID"`
26060 }{
26061 Name: o.GetName(),
26062 Description: o.GetDescription(),
26063 Tags: o.GetTags(),
26064 IconID: o.GetIconID(),
26065 }
26066 }
26067
26068 // GetName returns value of Name
26069 func (o *SIMUpdateRequest) GetName() string {
26070 return o.Name
26071 }
26072
26073 // SetName sets value to Name
26074 func (o *SIMUpdateRequest) SetName(v string) {
26075 o.Name = v
26076 }
26077
26078 // GetDescription returns value of Description
26079 func (o *SIMUpdateRequest) GetDescription() string {
26080 return o.Description
26081 }
26082
26083 // SetDescription sets value to Description
26084 func (o *SIMUpdateRequest) SetDescription(v string) {
26085 o.Description = v
26086 }
26087
26088 // GetTags returns value of Tags
26089 func (o *SIMUpdateRequest) GetTags() types.Tags {
26090 return o.Tags
26091 }
26092
26093 // SetTags sets value to Tags
26094 func (o *SIMUpdateRequest) SetTags(v types.Tags) {
26095 o.Tags = v
26096 }
26097
26098 // HasTag 指定のタグが存在する場合trueを返す
26099 func (o *SIMUpdateRequest) HasTag(tag string) bool {
26100 return accessor.HasTag(o, tag)
26101 }
26102
26103 // AppendTag 指定のタグを追加
26104 func (o *SIMUpdateRequest) AppendTag(tag string) {
26105 accessor.AppendTag(o, tag)
26106 }
26107
26108 // RemoveTag 指定のタグを削除
26109 func (o *SIMUpdateRequest) RemoveTag(tag string) {
26110 accessor.RemoveTag(o, tag)
26111 }
26112
26113 // ClearTags タグを全クリア
26114 func (o *SIMUpdateRequest) ClearTags() {
26115 accessor.ClearTags(o)
26116 }
26117
26118 // GetIconID returns value of IconID
26119 func (o *SIMUpdateRequest) GetIconID() types.ID {
26120 return o.IconID
26121 }
26122
26123 // SetIconID sets value to IconID
26124 func (o *SIMUpdateRequest) SetIconID(v types.ID) {
26125 o.IconID = v
26126 }
26127
26128 /*************************************************
26129 * SIMAssignIPRequest
26130 *************************************************/
26131
26132 // SIMAssignIPRequest represents API parameter/response structure
26133 type SIMAssignIPRequest struct {
26134 IP string
26135 }
26136
26137 // setDefaults implements iaas.argumentDefaulter
26138 func (o *SIMAssignIPRequest) setDefaults() interface{} {
26139 return &struct {
26140 IP string
26141 }{
26142 IP: o.GetIP(),
26143 }
26144 }
26145
26146 // GetIP returns value of IP
26147 func (o *SIMAssignIPRequest) GetIP() string {
26148 return o.IP
26149 }
26150
26151 // SetIP sets value to IP
26152 func (o *SIMAssignIPRequest) SetIP(v string) {
26153 o.IP = v
26154 }
26155
26156 /*************************************************
26157 * SIMIMEILockRequest
26158 *************************************************/
26159
26160 // SIMIMEILockRequest represents API parameter/response structure
26161 type SIMIMEILockRequest struct {
26162 IMEI string
26163 }
26164
26165 // setDefaults implements iaas.argumentDefaulter
26166 func (o *SIMIMEILockRequest) setDefaults() interface{} {
26167 return &struct {
26168 IMEI string
26169 }{
26170 IMEI: o.GetIMEI(),
26171 }
26172 }
26173
26174 // GetIMEI returns value of IMEI
26175 func (o *SIMIMEILockRequest) GetIMEI() string {
26176 return o.IMEI
26177 }
26178
26179 // SetIMEI sets value to IMEI
26180 func (o *SIMIMEILockRequest) SetIMEI(v string) {
26181 o.IMEI = v
26182 }
26183
26184 /*************************************************
26185 * SIMLog
26186 *************************************************/
26187
26188 // SIMLog represents API parameter/response structure
26189 type SIMLog struct {
26190 Date time.Time
26191 SessionStatus string
26192 ResourceID string
26193 IMEI string
26194 IMSI string
26195 }
26196
26197 // setDefaults implements iaas.argumentDefaulter
26198 func (o *SIMLog) setDefaults() interface{} {
26199 return &struct {
26200 Date time.Time
26201 SessionStatus string
26202 ResourceID string
26203 IMEI string
26204 IMSI string
26205 }{
26206 Date: o.GetDate(),
26207 SessionStatus: o.GetSessionStatus(),
26208 ResourceID: o.GetResourceID(),
26209 IMEI: o.GetIMEI(),
26210 IMSI: o.GetIMSI(),
26211 }
26212 }
26213
26214 // GetDate returns value of Date
26215 func (o *SIMLog) GetDate() time.Time {
26216 return o.Date
26217 }
26218
26219 // SetDate sets value to Date
26220 func (o *SIMLog) SetDate(v time.Time) {
26221 o.Date = v
26222 }
26223
26224 // GetSessionStatus returns value of SessionStatus
26225 func (o *SIMLog) GetSessionStatus() string {
26226 return o.SessionStatus
26227 }
26228
26229 // SetSessionStatus sets value to SessionStatus
26230 func (o *SIMLog) SetSessionStatus(v string) {
26231 o.SessionStatus = v
26232 }
26233
26234 // GetResourceID returns value of ResourceID
26235 func (o *SIMLog) GetResourceID() string {
26236 return o.ResourceID
26237 }
26238
26239 // SetResourceID sets value to ResourceID
26240 func (o *SIMLog) SetResourceID(v string) {
26241 o.ResourceID = v
26242 }
26243
26244 // GetIMEI returns value of IMEI
26245 func (o *SIMLog) GetIMEI() string {
26246 return o.IMEI
26247 }
26248
26249 // SetIMEI sets value to IMEI
26250 func (o *SIMLog) SetIMEI(v string) {
26251 o.IMEI = v
26252 }
26253
26254 // GetIMSI returns value of IMSI
26255 func (o *SIMLog) GetIMSI() string {
26256 return o.IMSI
26257 }
26258
26259 // SetIMSI sets value to IMSI
26260 func (o *SIMLog) SetIMSI(v string) {
26261 o.IMSI = v
26262 }
26263
26264 /*************************************************
26265 * SIMNetworkOperatorConfig
26266 *************************************************/
26267
26268 // SIMNetworkOperatorConfig represents API parameter/response structure
26269 type SIMNetworkOperatorConfig struct {
26270 Allow bool
26271 CountryCode string
26272 Name string
26273 }
26274
26275 // setDefaults implements iaas.argumentDefaulter
26276 func (o *SIMNetworkOperatorConfig) setDefaults() interface{} {
26277 return &struct {
26278 Allow bool
26279 CountryCode string
26280 Name string
26281 }{
26282 Allow: o.GetAllow(),
26283 CountryCode: o.GetCountryCode(),
26284 Name: o.GetName(),
26285 }
26286 }
26287
26288 // GetAllow returns value of Allow
26289 func (o *SIMNetworkOperatorConfig) GetAllow() bool {
26290 return o.Allow
26291 }
26292
26293 // SetAllow sets value to Allow
26294 func (o *SIMNetworkOperatorConfig) SetAllow(v bool) {
26295 o.Allow = v
26296 }
26297
26298 // GetCountryCode returns value of CountryCode
26299 func (o *SIMNetworkOperatorConfig) GetCountryCode() string {
26300 return o.CountryCode
26301 }
26302
26303 // SetCountryCode sets value to CountryCode
26304 func (o *SIMNetworkOperatorConfig) SetCountryCode(v string) {
26305 o.CountryCode = v
26306 }
26307
26308 // GetName returns value of Name
26309 func (o *SIMNetworkOperatorConfig) GetName() string {
26310 return o.Name
26311 }
26312
26313 // SetName sets value to Name
26314 func (o *SIMNetworkOperatorConfig) SetName(v string) {
26315 o.Name = v
26316 }
26317
26318 /*************************************************
26319 * LinkActivity
26320 *************************************************/
26321
26322 // LinkActivity represents API parameter/response structure
26323 type LinkActivity struct {
26324 Values []*MonitorLinkValue `mapconv:"[]Link"`
26325 }
26326
26327 // setDefaults implements iaas.argumentDefaulter
26328 func (o *LinkActivity) setDefaults() interface{} {
26329 return &struct {
26330 Values []*MonitorLinkValue `mapconv:"[]Link"`
26331 }{
26332 Values: o.GetValues(),
26333 }
26334 }
26335
26336 // GetValues returns value of Values
26337 func (o *LinkActivity) GetValues() []*MonitorLinkValue {
26338 return o.Values
26339 }
26340
26341 // SetValues sets value to Values
26342 func (o *LinkActivity) SetValues(v []*MonitorLinkValue) {
26343 o.Values = v
26344 }
26345
26346 /*************************************************
26347 * MonitorLinkValue
26348 *************************************************/
26349
26350 // MonitorLinkValue represents API parameter/response structure
26351 type MonitorLinkValue struct {
26352 Time time.Time `mapconv:",omitempty"`
26353 UplinkBPS float64 `mapconv:",omitempty"`
26354 DownlinkBPS float64 `mapconv:",omitempty"`
26355 }
26356
26357 // setDefaults implements iaas.argumentDefaulter
26358 func (o *MonitorLinkValue) setDefaults() interface{} {
26359 return &struct {
26360 Time time.Time `mapconv:",omitempty"`
26361 UplinkBPS float64 `mapconv:",omitempty"`
26362 DownlinkBPS float64 `mapconv:",omitempty"`
26363 }{
26364 Time: o.GetTime(),
26365 UplinkBPS: o.GetUplinkBPS(),
26366 DownlinkBPS: o.GetDownlinkBPS(),
26367 }
26368 }
26369
26370 // GetTime returns value of Time
26371 func (o *MonitorLinkValue) GetTime() time.Time {
26372 return o.Time
26373 }
26374
26375 // SetTime sets value to Time
26376 func (o *MonitorLinkValue) SetTime(v time.Time) {
26377 o.Time = v
26378 }
26379
26380 // GetUplinkBPS returns value of UplinkBPS
26381 func (o *MonitorLinkValue) GetUplinkBPS() float64 {
26382 return o.UplinkBPS
26383 }
26384
26385 // SetUplinkBPS sets value to UplinkBPS
26386 func (o *MonitorLinkValue) SetUplinkBPS(v float64) {
26387 o.UplinkBPS = v
26388 }
26389
26390 // GetDownlinkBPS returns value of DownlinkBPS
26391 func (o *MonitorLinkValue) GetDownlinkBPS() float64 {
26392 return o.DownlinkBPS
26393 }
26394
26395 // SetDownlinkBPS sets value to DownlinkBPS
26396 func (o *MonitorLinkValue) SetDownlinkBPS(v float64) {
26397 o.DownlinkBPS = v
26398 }
26399
26400 /*************************************************
26401 * SimpleMonitor
26402 *************************************************/
26403
26404 // SimpleMonitor represents API parameter/response structure
26405 type SimpleMonitor struct {
26406 ID types.ID
26407 Name string
26408 Description string
26409 Tags types.Tags
26410 Availability types.EAvailability
26411 IconID types.ID `mapconv:"Icon.ID"`
26412 CreatedAt time.Time
26413 ModifiedAt time.Time
26414 Class string
26415 Target string `mapconv:"Status.Target"`
26416 DelayLoop int `mapconv:"Settings.SimpleMonitor.DelayLoop"`
26417 MaxCheckAttempts int `mapconv:"Settings.SimpleMonitor.MaxCheckAttempts"`
26418 RetryInterval int `mapconv:"Settings.SimpleMonitor.RetryInterval"`
26419 Enabled types.StringFlag `mapconv:"Settings.SimpleMonitor.Enabled"`
26420 HealthCheck *SimpleMonitorHealthCheck `mapconv:"Settings.SimpleMonitor.HealthCheck,recursive"`
26421 NotifyEmailEnabled types.StringFlag `mapconv:"Settings.SimpleMonitor.NotifyEmail.Enabled"`
26422 NotifyEmailHTML types.StringFlag `mapconv:"Settings.SimpleMonitor.NotifyEmail.HTML"`
26423 NotifySlackEnabled types.StringFlag `mapconv:"Settings.SimpleMonitor.NotifySlack.Enabled"`
26424 SlackWebhooksURL string `mapconv:"Settings.SimpleMonitor.NotifySlack.IncomingWebhooksURL"`
26425 NotifyInterval int `mapconv:"Settings.SimpleMonitor.NotifyInterval"`
26426 Timeout int `mapconv:"Settings.SimpleMonitor.Timeout"`
26427 MonitoringSuiteLog *MonitoringSuiteLog `mapconv:"Settings.SimpleMonitor.MonitoringSuiteLog,recursive"`
26428 SettingsHash string `json:",omitempty" mapconv:",omitempty"`
26429 }
26430
26431 // setDefaults implements iaas.argumentDefaulter
26432 func (o *SimpleMonitor) setDefaults() interface{} {
26433 return &struct {
26434 ID types.ID
26435 Name string
26436 Description string
26437 Tags types.Tags
26438 Availability types.EAvailability
26439 IconID types.ID `mapconv:"Icon.ID"`
26440 CreatedAt time.Time
26441 ModifiedAt time.Time
26442 Class string
26443 Target string `mapconv:"Status.Target"`
26444 DelayLoop int `mapconv:"Settings.SimpleMonitor.DelayLoop"`
26445 MaxCheckAttempts int `mapconv:"Settings.SimpleMonitor.MaxCheckAttempts"`
26446 RetryInterval int `mapconv:"Settings.SimpleMonitor.RetryInterval"`
26447 Enabled types.StringFlag `mapconv:"Settings.SimpleMonitor.Enabled"`
26448 HealthCheck *SimpleMonitorHealthCheck `mapconv:"Settings.SimpleMonitor.HealthCheck,recursive"`
26449 NotifyEmailEnabled types.StringFlag `mapconv:"Settings.SimpleMonitor.NotifyEmail.Enabled"`
26450 NotifyEmailHTML types.StringFlag `mapconv:"Settings.SimpleMonitor.NotifyEmail.HTML"`
26451 NotifySlackEnabled types.StringFlag `mapconv:"Settings.SimpleMonitor.NotifySlack.Enabled"`
26452 SlackWebhooksURL string `mapconv:"Settings.SimpleMonitor.NotifySlack.IncomingWebhooksURL"`
26453 NotifyInterval int `mapconv:"Settings.SimpleMonitor.NotifyInterval"`
26454 Timeout int `mapconv:"Settings.SimpleMonitor.Timeout"`
26455 MonitoringSuiteLog *MonitoringSuiteLog `mapconv:"Settings.SimpleMonitor.MonitoringSuiteLog,recursive"`
26456 SettingsHash string `json:",omitempty" mapconv:",omitempty"`
26457 }{
26458 ID: o.GetID(),
26459 Name: o.GetName(),
26460 Description: o.GetDescription(),
26461 Tags: o.GetTags(),
26462 Availability: o.GetAvailability(),
26463 IconID: o.GetIconID(),
26464 CreatedAt: o.GetCreatedAt(),
26465 ModifiedAt: o.GetModifiedAt(),
26466 Class: o.GetClass(),
26467 Target: o.GetTarget(),
26468 DelayLoop: o.GetDelayLoop(),
26469 MaxCheckAttempts: o.GetMaxCheckAttempts(),
26470 RetryInterval: o.GetRetryInterval(),
26471 Enabled: o.GetEnabled(),
26472 HealthCheck: o.GetHealthCheck(),
26473 NotifyEmailEnabled: o.GetNotifyEmailEnabled(),
26474 NotifyEmailHTML: o.GetNotifyEmailHTML(),
26475 NotifySlackEnabled: o.GetNotifySlackEnabled(),
26476 SlackWebhooksURL: o.GetSlackWebhooksURL(),
26477 NotifyInterval: o.GetNotifyInterval(),
26478 Timeout: o.GetTimeout(),
26479 MonitoringSuiteLog: o.GetMonitoringSuiteLog(),
26480 SettingsHash: o.GetSettingsHash(),
26481 }
26482 }
26483
26484 // GetID returns value of ID
26485 func (o *SimpleMonitor) GetID() types.ID {
26486 return o.ID
26487 }
26488
26489 // SetID sets value to ID
26490 func (o *SimpleMonitor) SetID(v types.ID) {
26491 o.ID = v
26492 }
26493
26494 // SetStringID .
26495 func (o *SimpleMonitor) SetStringID(id string) {
26496 accessor.SetStringID(o, id)
26497 }
26498
26499 // GetStringID .
26500 func (o *SimpleMonitor) GetStringID() string {
26501 return accessor.GetStringID(o)
26502 }
26503
26504 // SetInt64ID .
26505 func (o *SimpleMonitor) SetInt64ID(id int64) {
26506 accessor.SetInt64ID(o, id)
26507 }
26508
26509 // GetInt64ID .
26510 func (o *SimpleMonitor) GetInt64ID() int64 {
26511 return accessor.GetInt64ID(o)
26512 }
26513
26514 // GetName returns value of Name
26515 func (o *SimpleMonitor) GetName() string {
26516 return o.Name
26517 }
26518
26519 // SetName sets value to Name
26520 func (o *SimpleMonitor) SetName(v string) {
26521 o.Name = v
26522 }
26523
26524 // GetDescription returns value of Description
26525 func (o *SimpleMonitor) GetDescription() string {
26526 return o.Description
26527 }
26528
26529 // SetDescription sets value to Description
26530 func (o *SimpleMonitor) SetDescription(v string) {
26531 o.Description = v
26532 }
26533
26534 // GetTags returns value of Tags
26535 func (o *SimpleMonitor) GetTags() types.Tags {
26536 return o.Tags
26537 }
26538
26539 // SetTags sets value to Tags
26540 func (o *SimpleMonitor) SetTags(v types.Tags) {
26541 o.Tags = v
26542 }
26543
26544 // HasTag 指定のタグが存在する場合trueを返す
26545 func (o *SimpleMonitor) HasTag(tag string) bool {
26546 return accessor.HasTag(o, tag)
26547 }
26548
26549 // AppendTag 指定のタグを追加
26550 func (o *SimpleMonitor) AppendTag(tag string) {
26551 accessor.AppendTag(o, tag)
26552 }
26553
26554 // RemoveTag 指定のタグを削除
26555 func (o *SimpleMonitor) RemoveTag(tag string) {
26556 accessor.RemoveTag(o, tag)
26557 }
26558
26559 // ClearTags タグを全クリア
26560 func (o *SimpleMonitor) ClearTags() {
26561 accessor.ClearTags(o)
26562 }
26563
26564 // GetAvailability returns value of Availability
26565 func (o *SimpleMonitor) GetAvailability() types.EAvailability {
26566 return o.Availability
26567 }
26568
26569 // SetAvailability sets value to Availability
26570 func (o *SimpleMonitor) SetAvailability(v types.EAvailability) {
26571 o.Availability = v
26572 }
26573
26574 // GetIconID returns value of IconID
26575 func (o *SimpleMonitor) GetIconID() types.ID {
26576 return o.IconID
26577 }
26578
26579 // SetIconID sets value to IconID
26580 func (o *SimpleMonitor) SetIconID(v types.ID) {
26581 o.IconID = v
26582 }
26583
26584 // GetCreatedAt returns value of CreatedAt
26585 func (o *SimpleMonitor) GetCreatedAt() time.Time {
26586 return o.CreatedAt
26587 }
26588
26589 // SetCreatedAt sets value to CreatedAt
26590 func (o *SimpleMonitor) SetCreatedAt(v time.Time) {
26591 o.CreatedAt = v
26592 }
26593
26594 // GetModifiedAt returns value of ModifiedAt
26595 func (o *SimpleMonitor) GetModifiedAt() time.Time {
26596 return o.ModifiedAt
26597 }
26598
26599 // SetModifiedAt sets value to ModifiedAt
26600 func (o *SimpleMonitor) SetModifiedAt(v time.Time) {
26601 o.ModifiedAt = v
26602 }
26603
26604 // GetClass returns value of Class
26605 func (o *SimpleMonitor) GetClass() string {
26606 return o.Class
26607 }
26608
26609 // SetClass sets value to Class
26610 func (o *SimpleMonitor) SetClass(v string) {
26611 o.Class = v
26612 }
26613
26614 // GetTarget returns value of Target
26615 func (o *SimpleMonitor) GetTarget() string {
26616 return o.Target
26617 }
26618
26619 // SetTarget sets value to Target
26620 func (o *SimpleMonitor) SetTarget(v string) {
26621 o.Target = v
26622 }
26623
26624 // GetDelayLoop returns value of DelayLoop
26625 func (o *SimpleMonitor) GetDelayLoop() int {
26626 if o.DelayLoop == 0 {
26627 return 60
26628 }
26629 return o.DelayLoop
26630 }
26631
26632 // SetDelayLoop sets value to DelayLoop
26633 func (o *SimpleMonitor) SetDelayLoop(v int) {
26634 o.DelayLoop = v
26635 }
26636
26637 // GetMaxCheckAttempts returns value of MaxCheckAttempts
26638 func (o *SimpleMonitor) GetMaxCheckAttempts() int {
26639 if o.MaxCheckAttempts == 0 {
26640 return 3
26641 }
26642 return o.MaxCheckAttempts
26643 }
26644
26645 // SetMaxCheckAttempts sets value to MaxCheckAttempts
26646 func (o *SimpleMonitor) SetMaxCheckAttempts(v int) {
26647 o.MaxCheckAttempts = v
26648 }
26649
26650 // GetRetryInterval returns value of RetryInterval
26651 func (o *SimpleMonitor) GetRetryInterval() int {
26652 if o.RetryInterval == 0 {
26653 return 10
26654 }
26655 return o.RetryInterval
26656 }
26657
26658 // SetRetryInterval sets value to RetryInterval
26659 func (o *SimpleMonitor) SetRetryInterval(v int) {
26660 o.RetryInterval = v
26661 }
26662
26663 // GetEnabled returns value of Enabled
26664 func (o *SimpleMonitor) GetEnabled() types.StringFlag {
26665 return o.Enabled
26666 }
26667
26668 // SetEnabled sets value to Enabled
26669 func (o *SimpleMonitor) SetEnabled(v types.StringFlag) {
26670 o.Enabled = v
26671 }
26672
26673 // GetHealthCheck returns value of HealthCheck
26674 func (o *SimpleMonitor) GetHealthCheck() *SimpleMonitorHealthCheck {
26675 return o.HealthCheck
26676 }
26677
26678 // SetHealthCheck sets value to HealthCheck
26679 func (o *SimpleMonitor) SetHealthCheck(v *SimpleMonitorHealthCheck) {
26680 o.HealthCheck = v
26681 }
26682
26683 // GetNotifyEmailEnabled returns value of NotifyEmailEnabled
26684 func (o *SimpleMonitor) GetNotifyEmailEnabled() types.StringFlag {
26685 return o.NotifyEmailEnabled
26686 }
26687
26688 // SetNotifyEmailEnabled sets value to NotifyEmailEnabled
26689 func (o *SimpleMonitor) SetNotifyEmailEnabled(v types.StringFlag) {
26690 o.NotifyEmailEnabled = v
26691 }
26692
26693 // GetNotifyEmailHTML returns value of NotifyEmailHTML
26694 func (o *SimpleMonitor) GetNotifyEmailHTML() types.StringFlag {
26695 return o.NotifyEmailHTML
26696 }
26697
26698 // SetNotifyEmailHTML sets value to NotifyEmailHTML
26699 func (o *SimpleMonitor) SetNotifyEmailHTML(v types.StringFlag) {
26700 o.NotifyEmailHTML = v
26701 }
26702
26703 // GetNotifySlackEnabled returns value of NotifySlackEnabled
26704 func (o *SimpleMonitor) GetNotifySlackEnabled() types.StringFlag {
26705 return o.NotifySlackEnabled
26706 }
26707
26708 // SetNotifySlackEnabled sets value to NotifySlackEnabled
26709 func (o *SimpleMonitor) SetNotifySlackEnabled(v types.StringFlag) {
26710 o.NotifySlackEnabled = v
26711 }
26712
26713 // GetSlackWebhooksURL returns value of SlackWebhooksURL
26714 func (o *SimpleMonitor) GetSlackWebhooksURL() string {
26715 return o.SlackWebhooksURL
26716 }
26717
26718 // SetSlackWebhooksURL sets value to SlackWebhooksURL
26719 func (o *SimpleMonitor) SetSlackWebhooksURL(v string) {
26720 o.SlackWebhooksURL = v
26721 }
26722
26723 // GetNotifyInterval returns value of NotifyInterval
26724 func (o *SimpleMonitor) GetNotifyInterval() int {
26725 if o.NotifyInterval == 0 {
26726 return 7200
26727 }
26728 return o.NotifyInterval
26729 }
26730
26731 // SetNotifyInterval sets value to NotifyInterval
26732 func (o *SimpleMonitor) SetNotifyInterval(v int) {
26733 o.NotifyInterval = v
26734 }
26735
26736 // GetTimeout returns value of Timeout
26737 func (o *SimpleMonitor) GetTimeout() int {
26738 return o.Timeout
26739 }
26740
26741 // SetTimeout sets value to Timeout
26742 func (o *SimpleMonitor) SetTimeout(v int) {
26743 o.Timeout = v
26744 }
26745
26746 // GetMonitoringSuiteLog returns value of MonitoringSuiteLog
26747 func (o *SimpleMonitor) GetMonitoringSuiteLog() *MonitoringSuiteLog {
26748 return o.MonitoringSuiteLog
26749 }
26750
26751 // SetMonitoringSuiteLog sets value to MonitoringSuiteLog
26752 func (o *SimpleMonitor) SetMonitoringSuiteLog(v *MonitoringSuiteLog) {
26753 o.MonitoringSuiteLog = v
26754 }
26755
26756 // GetSettingsHash returns value of SettingsHash
26757 func (o *SimpleMonitor) GetSettingsHash() string {
26758 return o.SettingsHash
26759 }
26760
26761 // SetSettingsHash sets value to SettingsHash
26762 func (o *SimpleMonitor) SetSettingsHash(v string) {
26763 o.SettingsHash = v
26764 }
26765
26766 /*************************************************
26767 * SimpleMonitorHealthCheck
26768 *************************************************/
26769
26770 // SimpleMonitorHealthCheck represents API parameter/response structure
26771 type SimpleMonitorHealthCheck struct {
26772 Protocol types.ESimpleMonitorProtocol
26773 Port types.StringNumber
26774 Path string
26775 Status types.StringNumber
26776 SNI types.StringFlag
26777 Host string
26778 BasicAuthUsername string
26779 BasicAuthPassword string
26780 ContainsString string
26781 QName string
26782 ExpectedData string
26783 Community string
26784 SNMPVersion string
26785 OID string
26786 RemainingDays int
26787 HTTP2 types.StringFlag
26788 FTPS types.ESimpleMonitorFTPS
26789 VerifySNI types.StringFlag
26790 }
26791
26792 // setDefaults implements iaas.argumentDefaulter
26793 func (o *SimpleMonitorHealthCheck) setDefaults() interface{} {
26794 return &struct {
26795 Protocol types.ESimpleMonitorProtocol
26796 Port types.StringNumber
26797 Path string
26798 Status types.StringNumber
26799 SNI types.StringFlag
26800 Host string
26801 BasicAuthUsername string
26802 BasicAuthPassword string
26803 ContainsString string
26804 QName string
26805 ExpectedData string
26806 Community string
26807 SNMPVersion string
26808 OID string
26809 RemainingDays int
26810 HTTP2 types.StringFlag
26811 FTPS types.ESimpleMonitorFTPS
26812 VerifySNI types.StringFlag
26813 }{
26814 Protocol: o.GetProtocol(),
26815 Port: o.GetPort(),
26816 Path: o.GetPath(),
26817 Status: o.GetStatus(),
26818 SNI: o.GetSNI(),
26819 Host: o.GetHost(),
26820 BasicAuthUsername: o.GetBasicAuthUsername(),
26821 BasicAuthPassword: o.GetBasicAuthPassword(),
26822 ContainsString: o.GetContainsString(),
26823 QName: o.GetQName(),
26824 ExpectedData: o.GetExpectedData(),
26825 Community: o.GetCommunity(),
26826 SNMPVersion: o.GetSNMPVersion(),
26827 OID: o.GetOID(),
26828 RemainingDays: o.GetRemainingDays(),
26829 HTTP2: o.GetHTTP2(),
26830 FTPS: o.GetFTPS(),
26831 VerifySNI: o.GetVerifySNI(),
26832 }
26833 }
26834
26835 // GetProtocol returns value of Protocol
26836 func (o *SimpleMonitorHealthCheck) GetProtocol() types.ESimpleMonitorProtocol {
26837 return o.Protocol
26838 }
26839
26840 // SetProtocol sets value to Protocol
26841 func (o *SimpleMonitorHealthCheck) SetProtocol(v types.ESimpleMonitorProtocol) {
26842 o.Protocol = v
26843 }
26844
26845 // GetPort returns value of Port
26846 func (o *SimpleMonitorHealthCheck) GetPort() types.StringNumber {
26847 return o.Port
26848 }
26849
26850 // SetPort sets value to Port
26851 func (o *SimpleMonitorHealthCheck) SetPort(v types.StringNumber) {
26852 o.Port = v
26853 }
26854
26855 // GetPath returns value of Path
26856 func (o *SimpleMonitorHealthCheck) GetPath() string {
26857 return o.Path
26858 }
26859
26860 // SetPath sets value to Path
26861 func (o *SimpleMonitorHealthCheck) SetPath(v string) {
26862 o.Path = v
26863 }
26864
26865 // GetStatus returns value of Status
26866 func (o *SimpleMonitorHealthCheck) GetStatus() types.StringNumber {
26867 return o.Status
26868 }
26869
26870 // SetStatus sets value to Status
26871 func (o *SimpleMonitorHealthCheck) SetStatus(v types.StringNumber) {
26872 o.Status = v
26873 }
26874
26875 // GetSNI returns value of SNI
26876 func (o *SimpleMonitorHealthCheck) GetSNI() types.StringFlag {
26877 return o.SNI
26878 }
26879
26880 // SetSNI sets value to SNI
26881 func (o *SimpleMonitorHealthCheck) SetSNI(v types.StringFlag) {
26882 o.SNI = v
26883 }
26884
26885 // GetHost returns value of Host
26886 func (o *SimpleMonitorHealthCheck) GetHost() string {
26887 return o.Host
26888 }
26889
26890 // SetHost sets value to Host
26891 func (o *SimpleMonitorHealthCheck) SetHost(v string) {
26892 o.Host = v
26893 }
26894
26895 // GetBasicAuthUsername returns value of BasicAuthUsername
26896 func (o *SimpleMonitorHealthCheck) GetBasicAuthUsername() string {
26897 return o.BasicAuthUsername
26898 }
26899
26900 // SetBasicAuthUsername sets value to BasicAuthUsername
26901 func (o *SimpleMonitorHealthCheck) SetBasicAuthUsername(v string) {
26902 o.BasicAuthUsername = v
26903 }
26904
26905 // GetBasicAuthPassword returns value of BasicAuthPassword
26906 func (o *SimpleMonitorHealthCheck) GetBasicAuthPassword() string {
26907 return o.BasicAuthPassword
26908 }
26909
26910 // SetBasicAuthPassword sets value to BasicAuthPassword
26911 func (o *SimpleMonitorHealthCheck) SetBasicAuthPassword(v string) {
26912 o.BasicAuthPassword = v
26913 }
26914
26915 // GetContainsString returns value of ContainsString
26916 func (o *SimpleMonitorHealthCheck) GetContainsString() string {
26917 return o.ContainsString
26918 }
26919
26920 // SetContainsString sets value to ContainsString
26921 func (o *SimpleMonitorHealthCheck) SetContainsString(v string) {
26922 o.ContainsString = v
26923 }
26924
26925 // GetQName returns value of QName
26926 func (o *SimpleMonitorHealthCheck) GetQName() string {
26927 return o.QName
26928 }
26929
26930 // SetQName sets value to QName
26931 func (o *SimpleMonitorHealthCheck) SetQName(v string) {
26932 o.QName = v
26933 }
26934
26935 // GetExpectedData returns value of ExpectedData
26936 func (o *SimpleMonitorHealthCheck) GetExpectedData() string {
26937 return o.ExpectedData
26938 }
26939
26940 // SetExpectedData sets value to ExpectedData
26941 func (o *SimpleMonitorHealthCheck) SetExpectedData(v string) {
26942 o.ExpectedData = v
26943 }
26944
26945 // GetCommunity returns value of Community
26946 func (o *SimpleMonitorHealthCheck) GetCommunity() string {
26947 return o.Community
26948 }
26949
26950 // SetCommunity sets value to Community
26951 func (o *SimpleMonitorHealthCheck) SetCommunity(v string) {
26952 o.Community = v
26953 }
26954
26955 // GetSNMPVersion returns value of SNMPVersion
26956 func (o *SimpleMonitorHealthCheck) GetSNMPVersion() string {
26957 return o.SNMPVersion
26958 }
26959
26960 // SetSNMPVersion sets value to SNMPVersion
26961 func (o *SimpleMonitorHealthCheck) SetSNMPVersion(v string) {
26962 o.SNMPVersion = v
26963 }
26964
26965 // GetOID returns value of OID
26966 func (o *SimpleMonitorHealthCheck) GetOID() string {
26967 return o.OID
26968 }
26969
26970 // SetOID sets value to OID
26971 func (o *SimpleMonitorHealthCheck) SetOID(v string) {
26972 o.OID = v
26973 }
26974
26975 // GetRemainingDays returns value of RemainingDays
26976 func (o *SimpleMonitorHealthCheck) GetRemainingDays() int {
26977 return o.RemainingDays
26978 }
26979
26980 // SetRemainingDays sets value to RemainingDays
26981 func (o *SimpleMonitorHealthCheck) SetRemainingDays(v int) {
26982 o.RemainingDays = v
26983 }
26984
26985 // GetHTTP2 returns value of HTTP2
26986 func (o *SimpleMonitorHealthCheck) GetHTTP2() types.StringFlag {
26987 return o.HTTP2
26988 }
26989
26990 // SetHTTP2 sets value to HTTP2
26991 func (o *SimpleMonitorHealthCheck) SetHTTP2(v types.StringFlag) {
26992 o.HTTP2 = v
26993 }
26994
26995 // GetFTPS returns value of FTPS
26996 func (o *SimpleMonitorHealthCheck) GetFTPS() types.ESimpleMonitorFTPS {
26997 return o.FTPS
26998 }
26999
27000 // SetFTPS sets value to FTPS
27001 func (o *SimpleMonitorHealthCheck) SetFTPS(v types.ESimpleMonitorFTPS) {
27002 o.FTPS = v
27003 }
27004
27005 // GetVerifySNI returns value of VerifySNI
27006 func (o *SimpleMonitorHealthCheck) GetVerifySNI() types.StringFlag {
27007 return o.VerifySNI
27008 }
27009
27010 // SetVerifySNI sets value to VerifySNI
27011 func (o *SimpleMonitorHealthCheck) SetVerifySNI(v types.StringFlag) {
27012 o.VerifySNI = v
27013 }
27014
27015 /*************************************************
27016 * SimpleMonitorCreateRequest
27017 *************************************************/
27018
27019 // SimpleMonitorCreateRequest represents API parameter/response structure
27020 type SimpleMonitorCreateRequest struct {
27021 Target string `mapconv:"Name/Status.Target"`
27022 MaxCheckAttempts int `mapconv:"Settings.SimpleMonitor.MaxCheckAttempts"`
27023 RetryInterval int `mapconv:"Settings.SimpleMonitor.RetryInterval"`
27024 DelayLoop int `mapconv:"Settings.SimpleMonitor.DelayLoop"`
27025 Enabled types.StringFlag `mapconv:"Settings.SimpleMonitor.Enabled"`
27026 HealthCheck *SimpleMonitorHealthCheck `mapconv:"Settings.SimpleMonitor.HealthCheck,recursive"`
27027 NotifyEmailEnabled types.StringFlag `mapconv:"Settings.SimpleMonitor.NotifyEmail.Enabled"`
27028 NotifyEmailHTML types.StringFlag `mapconv:"Settings.SimpleMonitor.NotifyEmail.HTML"`
27029 NotifySlackEnabled types.StringFlag `mapconv:"Settings.SimpleMonitor.NotifySlack.Enabled"`
27030 SlackWebhooksURL string `mapconv:"Settings.SimpleMonitor.NotifySlack.IncomingWebhooksURL"`
27031 NotifyInterval int `mapconv:"Settings.SimpleMonitor.NotifyInterval"`
27032 Timeout int `mapconv:"Settings.SimpleMonitor.Timeout"`
27033 MonitoringSuiteLog *MonitoringSuiteLog `mapconv:"Settings.SimpleMonitor.MonitoringSuiteLog,recursive"`
27034 Description string
27035 Tags types.Tags
27036 IconID types.ID `mapconv:"Icon.ID"`
27037 }
27038
27039 // setDefaults implements iaas.argumentDefaulter
27040 func (o *SimpleMonitorCreateRequest) setDefaults() interface{} {
27041 return &struct {
27042 Target string `mapconv:"Name/Status.Target"`
27043 MaxCheckAttempts int `mapconv:"Settings.SimpleMonitor.MaxCheckAttempts"`
27044 RetryInterval int `mapconv:"Settings.SimpleMonitor.RetryInterval"`
27045 DelayLoop int `mapconv:"Settings.SimpleMonitor.DelayLoop"`
27046 Enabled types.StringFlag `mapconv:"Settings.SimpleMonitor.Enabled"`
27047 HealthCheck *SimpleMonitorHealthCheck `mapconv:"Settings.SimpleMonitor.HealthCheck,recursive"`
27048 NotifyEmailEnabled types.StringFlag `mapconv:"Settings.SimpleMonitor.NotifyEmail.Enabled"`
27049 NotifyEmailHTML types.StringFlag `mapconv:"Settings.SimpleMonitor.NotifyEmail.HTML"`
27050 NotifySlackEnabled types.StringFlag `mapconv:"Settings.SimpleMonitor.NotifySlack.Enabled"`
27051 SlackWebhooksURL string `mapconv:"Settings.SimpleMonitor.NotifySlack.IncomingWebhooksURL"`
27052 NotifyInterval int `mapconv:"Settings.SimpleMonitor.NotifyInterval"`
27053 Timeout int `mapconv:"Settings.SimpleMonitor.Timeout"`
27054 MonitoringSuiteLog *MonitoringSuiteLog `mapconv:"Settings.SimpleMonitor.MonitoringSuiteLog,recursive"`
27055 Description string
27056 Tags types.Tags
27057 IconID types.ID `mapconv:"Icon.ID"`
27058 Class string `mapconv:"Provider.Class"`
27059 }{
27060 Target: o.GetTarget(),
27061 MaxCheckAttempts: o.GetMaxCheckAttempts(),
27062 RetryInterval: o.GetRetryInterval(),
27063 DelayLoop: o.GetDelayLoop(),
27064 Enabled: o.GetEnabled(),
27065 HealthCheck: o.GetHealthCheck(),
27066 NotifyEmailEnabled: o.GetNotifyEmailEnabled(),
27067 NotifyEmailHTML: o.GetNotifyEmailHTML(),
27068 NotifySlackEnabled: o.GetNotifySlackEnabled(),
27069 SlackWebhooksURL: o.GetSlackWebhooksURL(),
27070 NotifyInterval: o.GetNotifyInterval(),
27071 Timeout: o.GetTimeout(),
27072 MonitoringSuiteLog: o.GetMonitoringSuiteLog(),
27073 Description: o.GetDescription(),
27074 Tags: o.GetTags(),
27075 IconID: o.GetIconID(),
27076 Class: "simplemon",
27077 }
27078 }
27079
27080 // GetTarget returns value of Target
27081 func (o *SimpleMonitorCreateRequest) GetTarget() string {
27082 return o.Target
27083 }
27084
27085 // SetTarget sets value to Target
27086 func (o *SimpleMonitorCreateRequest) SetTarget(v string) {
27087 o.Target = v
27088 }
27089
27090 // GetMaxCheckAttempts returns value of MaxCheckAttempts
27091 func (o *SimpleMonitorCreateRequest) GetMaxCheckAttempts() int {
27092 if o.MaxCheckAttempts == 0 {
27093 return 3
27094 }
27095 return o.MaxCheckAttempts
27096 }
27097
27098 // SetMaxCheckAttempts sets value to MaxCheckAttempts
27099 func (o *SimpleMonitorCreateRequest) SetMaxCheckAttempts(v int) {
27100 o.MaxCheckAttempts = v
27101 }
27102
27103 // GetRetryInterval returns value of RetryInterval
27104 func (o *SimpleMonitorCreateRequest) GetRetryInterval() int {
27105 if o.RetryInterval == 0 {
27106 return 10
27107 }
27108 return o.RetryInterval
27109 }
27110
27111 // SetRetryInterval sets value to RetryInterval
27112 func (o *SimpleMonitorCreateRequest) SetRetryInterval(v int) {
27113 o.RetryInterval = v
27114 }
27115
27116 // GetDelayLoop returns value of DelayLoop
27117 func (o *SimpleMonitorCreateRequest) GetDelayLoop() int {
27118 if o.DelayLoop == 0 {
27119 return 60
27120 }
27121 return o.DelayLoop
27122 }
27123
27124 // SetDelayLoop sets value to DelayLoop
27125 func (o *SimpleMonitorCreateRequest) SetDelayLoop(v int) {
27126 o.DelayLoop = v
27127 }
27128
27129 // GetEnabled returns value of Enabled
27130 func (o *SimpleMonitorCreateRequest) GetEnabled() types.StringFlag {
27131 return o.Enabled
27132 }
27133
27134 // SetEnabled sets value to Enabled
27135 func (o *SimpleMonitorCreateRequest) SetEnabled(v types.StringFlag) {
27136 o.Enabled = v
27137 }
27138
27139 // GetHealthCheck returns value of HealthCheck
27140 func (o *SimpleMonitorCreateRequest) GetHealthCheck() *SimpleMonitorHealthCheck {
27141 return o.HealthCheck
27142 }
27143
27144 // SetHealthCheck sets value to HealthCheck
27145 func (o *SimpleMonitorCreateRequest) SetHealthCheck(v *SimpleMonitorHealthCheck) {
27146 o.HealthCheck = v
27147 }
27148
27149 // GetNotifyEmailEnabled returns value of NotifyEmailEnabled
27150 func (o *SimpleMonitorCreateRequest) GetNotifyEmailEnabled() types.StringFlag {
27151 return o.NotifyEmailEnabled
27152 }
27153
27154 // SetNotifyEmailEnabled sets value to NotifyEmailEnabled
27155 func (o *SimpleMonitorCreateRequest) SetNotifyEmailEnabled(v types.StringFlag) {
27156 o.NotifyEmailEnabled = v
27157 }
27158
27159 // GetNotifyEmailHTML returns value of NotifyEmailHTML
27160 func (o *SimpleMonitorCreateRequest) GetNotifyEmailHTML() types.StringFlag {
27161 return o.NotifyEmailHTML
27162 }
27163
27164 // SetNotifyEmailHTML sets value to NotifyEmailHTML
27165 func (o *SimpleMonitorCreateRequest) SetNotifyEmailHTML(v types.StringFlag) {
27166 o.NotifyEmailHTML = v
27167 }
27168
27169 // GetNotifySlackEnabled returns value of NotifySlackEnabled
27170 func (o *SimpleMonitorCreateRequest) GetNotifySlackEnabled() types.StringFlag {
27171 return o.NotifySlackEnabled
27172 }
27173
27174 // SetNotifySlackEnabled sets value to NotifySlackEnabled
27175 func (o *SimpleMonitorCreateRequest) SetNotifySlackEnabled(v types.StringFlag) {
27176 o.NotifySlackEnabled = v
27177 }
27178
27179 // GetSlackWebhooksURL returns value of SlackWebhooksURL
27180 func (o *SimpleMonitorCreateRequest) GetSlackWebhooksURL() string {
27181 return o.SlackWebhooksURL
27182 }
27183
27184 // SetSlackWebhooksURL sets value to SlackWebhooksURL
27185 func (o *SimpleMonitorCreateRequest) SetSlackWebhooksURL(v string) {
27186 o.SlackWebhooksURL = v
27187 }
27188
27189 // GetNotifyInterval returns value of NotifyInterval
27190 func (o *SimpleMonitorCreateRequest) GetNotifyInterval() int {
27191 if o.NotifyInterval == 0 {
27192 return 7200
27193 }
27194 return o.NotifyInterval
27195 }
27196
27197 // SetNotifyInterval sets value to NotifyInterval
27198 func (o *SimpleMonitorCreateRequest) SetNotifyInterval(v int) {
27199 o.NotifyInterval = v
27200 }
27201
27202 // GetTimeout returns value of Timeout
27203 func (o *SimpleMonitorCreateRequest) GetTimeout() int {
27204 return o.Timeout
27205 }
27206
27207 // SetTimeout sets value to Timeout
27208 func (o *SimpleMonitorCreateRequest) SetTimeout(v int) {
27209 o.Timeout = v
27210 }
27211
27212 // GetMonitoringSuiteLog returns value of MonitoringSuiteLog
27213 func (o *SimpleMonitorCreateRequest) GetMonitoringSuiteLog() *MonitoringSuiteLog {
27214 return o.MonitoringSuiteLog
27215 }
27216
27217 // SetMonitoringSuiteLog sets value to MonitoringSuiteLog
27218 func (o *SimpleMonitorCreateRequest) SetMonitoringSuiteLog(v *MonitoringSuiteLog) {
27219 o.MonitoringSuiteLog = v
27220 }
27221
27222 // GetDescription returns value of Description
27223 func (o *SimpleMonitorCreateRequest) GetDescription() string {
27224 return o.Description
27225 }
27226
27227 // SetDescription sets value to Description
27228 func (o *SimpleMonitorCreateRequest) SetDescription(v string) {
27229 o.Description = v
27230 }
27231
27232 // GetTags returns value of Tags
27233 func (o *SimpleMonitorCreateRequest) GetTags() types.Tags {
27234 return o.Tags
27235 }
27236
27237 // SetTags sets value to Tags
27238 func (o *SimpleMonitorCreateRequest) SetTags(v types.Tags) {
27239 o.Tags = v
27240 }
27241
27242 // HasTag 指定のタグが存在する場合trueを返す
27243 func (o *SimpleMonitorCreateRequest) HasTag(tag string) bool {
27244 return accessor.HasTag(o, tag)
27245 }
27246
27247 // AppendTag 指定のタグを追加
27248 func (o *SimpleMonitorCreateRequest) AppendTag(tag string) {
27249 accessor.AppendTag(o, tag)
27250 }
27251
27252 // RemoveTag 指定のタグを削除
27253 func (o *SimpleMonitorCreateRequest) RemoveTag(tag string) {
27254 accessor.RemoveTag(o, tag)
27255 }
27256
27257 // ClearTags タグを全クリア
27258 func (o *SimpleMonitorCreateRequest) ClearTags() {
27259 accessor.ClearTags(o)
27260 }
27261
27262 // GetIconID returns value of IconID
27263 func (o *SimpleMonitorCreateRequest) GetIconID() types.ID {
27264 return o.IconID
27265 }
27266
27267 // SetIconID sets value to IconID
27268 func (o *SimpleMonitorCreateRequest) SetIconID(v types.ID) {
27269 o.IconID = v
27270 }
27271
27272 /*************************************************
27273 * SimpleMonitorUpdateRequest
27274 *************************************************/
27275
27276 // SimpleMonitorUpdateRequest represents API parameter/response structure
27277 type SimpleMonitorUpdateRequest struct {
27278 Description string
27279 Tags types.Tags
27280 IconID types.ID `mapconv:"Icon.ID"`
27281 MaxCheckAttempts int `mapconv:"Settings.SimpleMonitor.MaxCheckAttempts"`
27282 RetryInterval int `mapconv:"Settings.SimpleMonitor.RetryInterval"`
27283 DelayLoop int `mapconv:"Settings.SimpleMonitor.DelayLoop"`
27284 Enabled types.StringFlag `mapconv:"Settings.SimpleMonitor.Enabled"`
27285 HealthCheck *SimpleMonitorHealthCheck `mapconv:"Settings.SimpleMonitor.HealthCheck,recursive"`
27286 NotifyEmailEnabled types.StringFlag `mapconv:"Settings.SimpleMonitor.NotifyEmail.Enabled"`
27287 NotifyEmailHTML types.StringFlag `mapconv:"Settings.SimpleMonitor.NotifyEmail.HTML"`
27288 NotifySlackEnabled types.StringFlag `mapconv:"Settings.SimpleMonitor.NotifySlack.Enabled"`
27289 SlackWebhooksURL string `mapconv:"Settings.SimpleMonitor.NotifySlack.IncomingWebhooksURL"`
27290 NotifyInterval int `mapconv:"Settings.SimpleMonitor.NotifyInterval"`
27291 Timeout int `mapconv:"Settings.SimpleMonitor.Timeout"`
27292 MonitoringSuiteLog *MonitoringSuiteLog `mapconv:"Settings.SimpleMonitor.MonitoringSuiteLog,recursive"`
27293 SettingsHash string `json:",omitempty" mapconv:",omitempty"`
27294 }
27295
27296 // setDefaults implements iaas.argumentDefaulter
27297 func (o *SimpleMonitorUpdateRequest) setDefaults() interface{} {
27298 return &struct {
27299 Description string
27300 Tags types.Tags
27301 IconID types.ID `mapconv:"Icon.ID"`
27302 MaxCheckAttempts int `mapconv:"Settings.SimpleMonitor.MaxCheckAttempts"`
27303 RetryInterval int `mapconv:"Settings.SimpleMonitor.RetryInterval"`
27304 DelayLoop int `mapconv:"Settings.SimpleMonitor.DelayLoop"`
27305 Enabled types.StringFlag `mapconv:"Settings.SimpleMonitor.Enabled"`
27306 HealthCheck *SimpleMonitorHealthCheck `mapconv:"Settings.SimpleMonitor.HealthCheck,recursive"`
27307 NotifyEmailEnabled types.StringFlag `mapconv:"Settings.SimpleMonitor.NotifyEmail.Enabled"`
27308 NotifyEmailHTML types.StringFlag `mapconv:"Settings.SimpleMonitor.NotifyEmail.HTML"`
27309 NotifySlackEnabled types.StringFlag `mapconv:"Settings.SimpleMonitor.NotifySlack.Enabled"`
27310 SlackWebhooksURL string `mapconv:"Settings.SimpleMonitor.NotifySlack.IncomingWebhooksURL"`
27311 NotifyInterval int `mapconv:"Settings.SimpleMonitor.NotifyInterval"`
27312 Timeout int `mapconv:"Settings.SimpleMonitor.Timeout"`
27313 MonitoringSuiteLog *MonitoringSuiteLog `mapconv:"Settings.SimpleMonitor.MonitoringSuiteLog,recursive"`
27314 SettingsHash string `json:",omitempty" mapconv:",omitempty"`
27315 }{
27316 Description: o.GetDescription(),
27317 Tags: o.GetTags(),
27318 IconID: o.GetIconID(),
27319 MaxCheckAttempts: o.GetMaxCheckAttempts(),
27320 RetryInterval: o.GetRetryInterval(),
27321 DelayLoop: o.GetDelayLoop(),
27322 Enabled: o.GetEnabled(),
27323 HealthCheck: o.GetHealthCheck(),
27324 NotifyEmailEnabled: o.GetNotifyEmailEnabled(),
27325 NotifyEmailHTML: o.GetNotifyEmailHTML(),
27326 NotifySlackEnabled: o.GetNotifySlackEnabled(),
27327 SlackWebhooksURL: o.GetSlackWebhooksURL(),
27328 NotifyInterval: o.GetNotifyInterval(),
27329 Timeout: o.GetTimeout(),
27330 MonitoringSuiteLog: o.GetMonitoringSuiteLog(),
27331 SettingsHash: o.GetSettingsHash(),
27332 }
27333 }
27334
27335 // GetDescription returns value of Description
27336 func (o *SimpleMonitorUpdateRequest) GetDescription() string {
27337 return o.Description
27338 }
27339
27340 // SetDescription sets value to Description
27341 func (o *SimpleMonitorUpdateRequest) SetDescription(v string) {
27342 o.Description = v
27343 }
27344
27345 // GetTags returns value of Tags
27346 func (o *SimpleMonitorUpdateRequest) GetTags() types.Tags {
27347 return o.Tags
27348 }
27349
27350 // SetTags sets value to Tags
27351 func (o *SimpleMonitorUpdateRequest) SetTags(v types.Tags) {
27352 o.Tags = v
27353 }
27354
27355 // HasTag 指定のタグが存在する場合trueを返す
27356 func (o *SimpleMonitorUpdateRequest) HasTag(tag string) bool {
27357 return accessor.HasTag(o, tag)
27358 }
27359
27360 // AppendTag 指定のタグを追加
27361 func (o *SimpleMonitorUpdateRequest) AppendTag(tag string) {
27362 accessor.AppendTag(o, tag)
27363 }
27364
27365 // RemoveTag 指定のタグを削除
27366 func (o *SimpleMonitorUpdateRequest) RemoveTag(tag string) {
27367 accessor.RemoveTag(o, tag)
27368 }
27369
27370 // ClearTags タグを全クリア
27371 func (o *SimpleMonitorUpdateRequest) ClearTags() {
27372 accessor.ClearTags(o)
27373 }
27374
27375 // GetIconID returns value of IconID
27376 func (o *SimpleMonitorUpdateRequest) GetIconID() types.ID {
27377 return o.IconID
27378 }
27379
27380 // SetIconID sets value to IconID
27381 func (o *SimpleMonitorUpdateRequest) SetIconID(v types.ID) {
27382 o.IconID = v
27383 }
27384
27385 // GetMaxCheckAttempts returns value of MaxCheckAttempts
27386 func (o *SimpleMonitorUpdateRequest) GetMaxCheckAttempts() int {
27387 if o.MaxCheckAttempts == 0 {
27388 return 3
27389 }
27390 return o.MaxCheckAttempts
27391 }
27392
27393 // SetMaxCheckAttempts sets value to MaxCheckAttempts
27394 func (o *SimpleMonitorUpdateRequest) SetMaxCheckAttempts(v int) {
27395 o.MaxCheckAttempts = v
27396 }
27397
27398 // GetRetryInterval returns value of RetryInterval
27399 func (o *SimpleMonitorUpdateRequest) GetRetryInterval() int {
27400 if o.RetryInterval == 0 {
27401 return 10
27402 }
27403 return o.RetryInterval
27404 }
27405
27406 // SetRetryInterval sets value to RetryInterval
27407 func (o *SimpleMonitorUpdateRequest) SetRetryInterval(v int) {
27408 o.RetryInterval = v
27409 }
27410
27411 // GetDelayLoop returns value of DelayLoop
27412 func (o *SimpleMonitorUpdateRequest) GetDelayLoop() int {
27413 if o.DelayLoop == 0 {
27414 return 60
27415 }
27416 return o.DelayLoop
27417 }
27418
27419 // SetDelayLoop sets value to DelayLoop
27420 func (o *SimpleMonitorUpdateRequest) SetDelayLoop(v int) {
27421 o.DelayLoop = v
27422 }
27423
27424 // GetEnabled returns value of Enabled
27425 func (o *SimpleMonitorUpdateRequest) GetEnabled() types.StringFlag {
27426 return o.Enabled
27427 }
27428
27429 // SetEnabled sets value to Enabled
27430 func (o *SimpleMonitorUpdateRequest) SetEnabled(v types.StringFlag) {
27431 o.Enabled = v
27432 }
27433
27434 // GetHealthCheck returns value of HealthCheck
27435 func (o *SimpleMonitorUpdateRequest) GetHealthCheck() *SimpleMonitorHealthCheck {
27436 return o.HealthCheck
27437 }
27438
27439 // SetHealthCheck sets value to HealthCheck
27440 func (o *SimpleMonitorUpdateRequest) SetHealthCheck(v *SimpleMonitorHealthCheck) {
27441 o.HealthCheck = v
27442 }
27443
27444 // GetNotifyEmailEnabled returns value of NotifyEmailEnabled
27445 func (o *SimpleMonitorUpdateRequest) GetNotifyEmailEnabled() types.StringFlag {
27446 return o.NotifyEmailEnabled
27447 }
27448
27449 // SetNotifyEmailEnabled sets value to NotifyEmailEnabled
27450 func (o *SimpleMonitorUpdateRequest) SetNotifyEmailEnabled(v types.StringFlag) {
27451 o.NotifyEmailEnabled = v
27452 }
27453
27454 // GetNotifyEmailHTML returns value of NotifyEmailHTML
27455 func (o *SimpleMonitorUpdateRequest) GetNotifyEmailHTML() types.StringFlag {
27456 return o.NotifyEmailHTML
27457 }
27458
27459 // SetNotifyEmailHTML sets value to NotifyEmailHTML
27460 func (o *SimpleMonitorUpdateRequest) SetNotifyEmailHTML(v types.StringFlag) {
27461 o.NotifyEmailHTML = v
27462 }
27463
27464 // GetNotifySlackEnabled returns value of NotifySlackEnabled
27465 func (o *SimpleMonitorUpdateRequest) GetNotifySlackEnabled() types.StringFlag {
27466 return o.NotifySlackEnabled
27467 }
27468
27469 // SetNotifySlackEnabled sets value to NotifySlackEnabled
27470 func (o *SimpleMonitorUpdateRequest) SetNotifySlackEnabled(v types.StringFlag) {
27471 o.NotifySlackEnabled = v
27472 }
27473
27474 // GetSlackWebhooksURL returns value of SlackWebhooksURL
27475 func (o *SimpleMonitorUpdateRequest) GetSlackWebhooksURL() string {
27476 return o.SlackWebhooksURL
27477 }
27478
27479 // SetSlackWebhooksURL sets value to SlackWebhooksURL
27480 func (o *SimpleMonitorUpdateRequest) SetSlackWebhooksURL(v string) {
27481 o.SlackWebhooksURL = v
27482 }
27483
27484 // GetNotifyInterval returns value of NotifyInterval
27485 func (o *SimpleMonitorUpdateRequest) GetNotifyInterval() int {
27486 if o.NotifyInterval == 0 {
27487 return 7200
27488 }
27489 return o.NotifyInterval
27490 }
27491
27492 // SetNotifyInterval sets value to NotifyInterval
27493 func (o *SimpleMonitorUpdateRequest) SetNotifyInterval(v int) {
27494 o.NotifyInterval = v
27495 }
27496
27497 // GetTimeout returns value of Timeout
27498 func (o *SimpleMonitorUpdateRequest) GetTimeout() int {
27499 return o.Timeout
27500 }
27501
27502 // SetTimeout sets value to Timeout
27503 func (o *SimpleMonitorUpdateRequest) SetTimeout(v int) {
27504 o.Timeout = v
27505 }
27506
27507 // GetMonitoringSuiteLog returns value of MonitoringSuiteLog
27508 func (o *SimpleMonitorUpdateRequest) GetMonitoringSuiteLog() *MonitoringSuiteLog {
27509 return o.MonitoringSuiteLog
27510 }
27511
27512 // SetMonitoringSuiteLog sets value to MonitoringSuiteLog
27513 func (o *SimpleMonitorUpdateRequest) SetMonitoringSuiteLog(v *MonitoringSuiteLog) {
27514 o.MonitoringSuiteLog = v
27515 }
27516
27517 // GetSettingsHash returns value of SettingsHash
27518 func (o *SimpleMonitorUpdateRequest) GetSettingsHash() string {
27519 return o.SettingsHash
27520 }
27521
27522 // SetSettingsHash sets value to SettingsHash
27523 func (o *SimpleMonitorUpdateRequest) SetSettingsHash(v string) {
27524 o.SettingsHash = v
27525 }
27526
27527 /*************************************************
27528 * SimpleMonitorUpdateSettingsRequest
27529 *************************************************/
27530
27531 // SimpleMonitorUpdateSettingsRequest represents API parameter/response structure
27532 type SimpleMonitorUpdateSettingsRequest struct {
27533 MaxCheckAttempts int `mapconv:"Settings.SimpleMonitor.MaxCheckAttempts"`
27534 RetryInterval int `mapconv:"Settings.SimpleMonitor.RetryInterval"`
27535 DelayLoop int `mapconv:"Settings.SimpleMonitor.DelayLoop"`
27536 Enabled types.StringFlag `mapconv:"Settings.SimpleMonitor.Enabled"`
27537 HealthCheck *SimpleMonitorHealthCheck `mapconv:"Settings.SimpleMonitor.HealthCheck,recursive"`
27538 NotifyEmailEnabled types.StringFlag `mapconv:"Settings.SimpleMonitor.NotifyEmail.Enabled"`
27539 NotifyEmailHTML types.StringFlag `mapconv:"Settings.SimpleMonitor.NotifyEmail.HTML"`
27540 NotifySlackEnabled types.StringFlag `mapconv:"Settings.SimpleMonitor.NotifySlack.Enabled"`
27541 SlackWebhooksURL string `mapconv:"Settings.SimpleMonitor.NotifySlack.IncomingWebhooksURL"`
27542 NotifyInterval int `mapconv:"Settings.SimpleMonitor.NotifyInterval"`
27543 Timeout int `mapconv:"Settings.SimpleMonitor.Timeout"`
27544 MonitoringSuiteLog *MonitoringSuiteLog `mapconv:"Settings.SimpleMonitor.MonitoringSuiteLog,recursive"`
27545 SettingsHash string `json:",omitempty" mapconv:",omitempty"`
27546 }
27547
27548 // setDefaults implements iaas.argumentDefaulter
27549 func (o *SimpleMonitorUpdateSettingsRequest) setDefaults() interface{} {
27550 return &struct {
27551 MaxCheckAttempts int `mapconv:"Settings.SimpleMonitor.MaxCheckAttempts"`
27552 RetryInterval int `mapconv:"Settings.SimpleMonitor.RetryInterval"`
27553 DelayLoop int `mapconv:"Settings.SimpleMonitor.DelayLoop"`
27554 Enabled types.StringFlag `mapconv:"Settings.SimpleMonitor.Enabled"`
27555 HealthCheck *SimpleMonitorHealthCheck `mapconv:"Settings.SimpleMonitor.HealthCheck,recursive"`
27556 NotifyEmailEnabled types.StringFlag `mapconv:"Settings.SimpleMonitor.NotifyEmail.Enabled"`
27557 NotifyEmailHTML types.StringFlag `mapconv:"Settings.SimpleMonitor.NotifyEmail.HTML"`
27558 NotifySlackEnabled types.StringFlag `mapconv:"Settings.SimpleMonitor.NotifySlack.Enabled"`
27559 SlackWebhooksURL string `mapconv:"Settings.SimpleMonitor.NotifySlack.IncomingWebhooksURL"`
27560 NotifyInterval int `mapconv:"Settings.SimpleMonitor.NotifyInterval"`
27561 Timeout int `mapconv:"Settings.SimpleMonitor.Timeout"`
27562 MonitoringSuiteLog *MonitoringSuiteLog `mapconv:"Settings.SimpleMonitor.MonitoringSuiteLog,recursive"`
27563 SettingsHash string `json:",omitempty" mapconv:",omitempty"`
27564 }{
27565 MaxCheckAttempts: o.GetMaxCheckAttempts(),
27566 RetryInterval: o.GetRetryInterval(),
27567 DelayLoop: o.GetDelayLoop(),
27568 Enabled: o.GetEnabled(),
27569 HealthCheck: o.GetHealthCheck(),
27570 NotifyEmailEnabled: o.GetNotifyEmailEnabled(),
27571 NotifyEmailHTML: o.GetNotifyEmailHTML(),
27572 NotifySlackEnabled: o.GetNotifySlackEnabled(),
27573 SlackWebhooksURL: o.GetSlackWebhooksURL(),
27574 NotifyInterval: o.GetNotifyInterval(),
27575 Timeout: o.GetTimeout(),
27576 MonitoringSuiteLog: o.GetMonitoringSuiteLog(),
27577 SettingsHash: o.GetSettingsHash(),
27578 }
27579 }
27580
27581 // GetMaxCheckAttempts returns value of MaxCheckAttempts
27582 func (o *SimpleMonitorUpdateSettingsRequest) GetMaxCheckAttempts() int {
27583 if o.MaxCheckAttempts == 0 {
27584 return 3
27585 }
27586 return o.MaxCheckAttempts
27587 }
27588
27589 // SetMaxCheckAttempts sets value to MaxCheckAttempts
27590 func (o *SimpleMonitorUpdateSettingsRequest) SetMaxCheckAttempts(v int) {
27591 o.MaxCheckAttempts = v
27592 }
27593
27594 // GetRetryInterval returns value of RetryInterval
27595 func (o *SimpleMonitorUpdateSettingsRequest) GetRetryInterval() int {
27596 if o.RetryInterval == 0 {
27597 return 10
27598 }
27599 return o.RetryInterval
27600 }
27601
27602 // SetRetryInterval sets value to RetryInterval
27603 func (o *SimpleMonitorUpdateSettingsRequest) SetRetryInterval(v int) {
27604 o.RetryInterval = v
27605 }
27606
27607 // GetDelayLoop returns value of DelayLoop
27608 func (o *SimpleMonitorUpdateSettingsRequest) GetDelayLoop() int {
27609 if o.DelayLoop == 0 {
27610 return 60
27611 }
27612 return o.DelayLoop
27613 }
27614
27615 // SetDelayLoop sets value to DelayLoop
27616 func (o *SimpleMonitorUpdateSettingsRequest) SetDelayLoop(v int) {
27617 o.DelayLoop = v
27618 }
27619
27620 // GetEnabled returns value of Enabled
27621 func (o *SimpleMonitorUpdateSettingsRequest) GetEnabled() types.StringFlag {
27622 return o.Enabled
27623 }
27624
27625 // SetEnabled sets value to Enabled
27626 func (o *SimpleMonitorUpdateSettingsRequest) SetEnabled(v types.StringFlag) {
27627 o.Enabled = v
27628 }
27629
27630 // GetHealthCheck returns value of HealthCheck
27631 func (o *SimpleMonitorUpdateSettingsRequest) GetHealthCheck() *SimpleMonitorHealthCheck {
27632 return o.HealthCheck
27633 }
27634
27635 // SetHealthCheck sets value to HealthCheck
27636 func (o *SimpleMonitorUpdateSettingsRequest) SetHealthCheck(v *SimpleMonitorHealthCheck) {
27637 o.HealthCheck = v
27638 }
27639
27640 // GetNotifyEmailEnabled returns value of NotifyEmailEnabled
27641 func (o *SimpleMonitorUpdateSettingsRequest) GetNotifyEmailEnabled() types.StringFlag {
27642 return o.NotifyEmailEnabled
27643 }
27644
27645 // SetNotifyEmailEnabled sets value to NotifyEmailEnabled
27646 func (o *SimpleMonitorUpdateSettingsRequest) SetNotifyEmailEnabled(v types.StringFlag) {
27647 o.NotifyEmailEnabled = v
27648 }
27649
27650 // GetNotifyEmailHTML returns value of NotifyEmailHTML
27651 func (o *SimpleMonitorUpdateSettingsRequest) GetNotifyEmailHTML() types.StringFlag {
27652 return o.NotifyEmailHTML
27653 }
27654
27655 // SetNotifyEmailHTML sets value to NotifyEmailHTML
27656 func (o *SimpleMonitorUpdateSettingsRequest) SetNotifyEmailHTML(v types.StringFlag) {
27657 o.NotifyEmailHTML = v
27658 }
27659
27660 // GetNotifySlackEnabled returns value of NotifySlackEnabled
27661 func (o *SimpleMonitorUpdateSettingsRequest) GetNotifySlackEnabled() types.StringFlag {
27662 return o.NotifySlackEnabled
27663 }
27664
27665 // SetNotifySlackEnabled sets value to NotifySlackEnabled
27666 func (o *SimpleMonitorUpdateSettingsRequest) SetNotifySlackEnabled(v types.StringFlag) {
27667 o.NotifySlackEnabled = v
27668 }
27669
27670 // GetSlackWebhooksURL returns value of SlackWebhooksURL
27671 func (o *SimpleMonitorUpdateSettingsRequest) GetSlackWebhooksURL() string {
27672 return o.SlackWebhooksURL
27673 }
27674
27675 // SetSlackWebhooksURL sets value to SlackWebhooksURL
27676 func (o *SimpleMonitorUpdateSettingsRequest) SetSlackWebhooksURL(v string) {
27677 o.SlackWebhooksURL = v
27678 }
27679
27680 // GetNotifyInterval returns value of NotifyInterval
27681 func (o *SimpleMonitorUpdateSettingsRequest) GetNotifyInterval() int {
27682 if o.NotifyInterval == 0 {
27683 return 7200
27684 }
27685 return o.NotifyInterval
27686 }
27687
27688 // SetNotifyInterval sets value to NotifyInterval
27689 func (o *SimpleMonitorUpdateSettingsRequest) SetNotifyInterval(v int) {
27690 o.NotifyInterval = v
27691 }
27692
27693 // GetTimeout returns value of Timeout
27694 func (o *SimpleMonitorUpdateSettingsRequest) GetTimeout() int {
27695 return o.Timeout
27696 }
27697
27698 // SetTimeout sets value to Timeout
27699 func (o *SimpleMonitorUpdateSettingsRequest) SetTimeout(v int) {
27700 o.Timeout = v
27701 }
27702
27703 // GetMonitoringSuiteLog returns value of MonitoringSuiteLog
27704 func (o *SimpleMonitorUpdateSettingsRequest) GetMonitoringSuiteLog() *MonitoringSuiteLog {
27705 return o.MonitoringSuiteLog
27706 }
27707
27708 // SetMonitoringSuiteLog sets value to MonitoringSuiteLog
27709 func (o *SimpleMonitorUpdateSettingsRequest) SetMonitoringSuiteLog(v *MonitoringSuiteLog) {
27710 o.MonitoringSuiteLog = v
27711 }
27712
27713 // GetSettingsHash returns value of SettingsHash
27714 func (o *SimpleMonitorUpdateSettingsRequest) GetSettingsHash() string {
27715 return o.SettingsHash
27716 }
27717
27718 // SetSettingsHash sets value to SettingsHash
27719 func (o *SimpleMonitorUpdateSettingsRequest) SetSettingsHash(v string) {
27720 o.SettingsHash = v
27721 }
27722
27723 /*************************************************
27724 * ResponseTimeSecActivity
27725 *************************************************/
27726
27727 // ResponseTimeSecActivity represents API parameter/response structure
27728 type ResponseTimeSecActivity struct {
27729 Values []*MonitorResponseTimeSecValue `mapconv:"[]ResponseTimeSec"`
27730 }
27731
27732 // setDefaults implements iaas.argumentDefaulter
27733 func (o *ResponseTimeSecActivity) setDefaults() interface{} {
27734 return &struct {
27735 Values []*MonitorResponseTimeSecValue `mapconv:"[]ResponseTimeSec"`
27736 }{
27737 Values: o.GetValues(),
27738 }
27739 }
27740
27741 // GetValues returns value of Values
27742 func (o *ResponseTimeSecActivity) GetValues() []*MonitorResponseTimeSecValue {
27743 return o.Values
27744 }
27745
27746 // SetValues sets value to Values
27747 func (o *ResponseTimeSecActivity) SetValues(v []*MonitorResponseTimeSecValue) {
27748 o.Values = v
27749 }
27750
27751 /*************************************************
27752 * MonitorResponseTimeSecValue
27753 *************************************************/
27754
27755 // MonitorResponseTimeSecValue represents API parameter/response structure
27756 type MonitorResponseTimeSecValue struct {
27757 Time time.Time `mapconv:",omitempty"`
27758 ResponseTimeSec float64 `mapconv:",omitempty"`
27759 }
27760
27761 // setDefaults implements iaas.argumentDefaulter
27762 func (o *MonitorResponseTimeSecValue) setDefaults() interface{} {
27763 return &struct {
27764 Time time.Time `mapconv:",omitempty"`
27765 ResponseTimeSec float64 `mapconv:",omitempty"`
27766 }{
27767 Time: o.GetTime(),
27768 ResponseTimeSec: o.GetResponseTimeSec(),
27769 }
27770 }
27771
27772 // GetTime returns value of Time
27773 func (o *MonitorResponseTimeSecValue) GetTime() time.Time {
27774 return o.Time
27775 }
27776
27777 // SetTime sets value to Time
27778 func (o *MonitorResponseTimeSecValue) SetTime(v time.Time) {
27779 o.Time = v
27780 }
27781
27782 // GetResponseTimeSec returns value of ResponseTimeSec
27783 func (o *MonitorResponseTimeSecValue) GetResponseTimeSec() float64 {
27784 return o.ResponseTimeSec
27785 }
27786
27787 // SetResponseTimeSec sets value to ResponseTimeSec
27788 func (o *MonitorResponseTimeSecValue) SetResponseTimeSec(v float64) {
27789 o.ResponseTimeSec = v
27790 }
27791
27792 /*************************************************
27793 * SimpleMonitorHealthStatus
27794 *************************************************/
27795
27796 // SimpleMonitorHealthStatus represents API parameter/response structure
27797 type SimpleMonitorHealthStatus struct {
27798 LastCheckedAt time.Time
27799 LastHealthChangedAt time.Time
27800 Health types.ESimpleMonitorHealth
27801 LatestLogs []string
27802 }
27803
27804 // setDefaults implements iaas.argumentDefaulter
27805 func (o *SimpleMonitorHealthStatus) setDefaults() interface{} {
27806 return &struct {
27807 LastCheckedAt time.Time
27808 LastHealthChangedAt time.Time
27809 Health types.ESimpleMonitorHealth
27810 LatestLogs []string
27811 }{
27812 LastCheckedAt: o.GetLastCheckedAt(),
27813 LastHealthChangedAt: o.GetLastHealthChangedAt(),
27814 Health: o.GetHealth(),
27815 LatestLogs: o.GetLatestLogs(),
27816 }
27817 }
27818
27819 // GetLastCheckedAt returns value of LastCheckedAt
27820 func (o *SimpleMonitorHealthStatus) GetLastCheckedAt() time.Time {
27821 return o.LastCheckedAt
27822 }
27823
27824 // SetLastCheckedAt sets value to LastCheckedAt
27825 func (o *SimpleMonitorHealthStatus) SetLastCheckedAt(v time.Time) {
27826 o.LastCheckedAt = v
27827 }
27828
27829 // GetLastHealthChangedAt returns value of LastHealthChangedAt
27830 func (o *SimpleMonitorHealthStatus) GetLastHealthChangedAt() time.Time {
27831 return o.LastHealthChangedAt
27832 }
27833
27834 // SetLastHealthChangedAt sets value to LastHealthChangedAt
27835 func (o *SimpleMonitorHealthStatus) SetLastHealthChangedAt(v time.Time) {
27836 o.LastHealthChangedAt = v
27837 }
27838
27839 // GetHealth returns value of Health
27840 func (o *SimpleMonitorHealthStatus) GetHealth() types.ESimpleMonitorHealth {
27841 return o.Health
27842 }
27843
27844 // SetHealth sets value to Health
27845 func (o *SimpleMonitorHealthStatus) SetHealth(v types.ESimpleMonitorHealth) {
27846 o.Health = v
27847 }
27848
27849 // GetLatestLogs returns value of LatestLogs
27850 func (o *SimpleMonitorHealthStatus) GetLatestLogs() []string {
27851 return o.LatestLogs
27852 }
27853
27854 // SetLatestLogs sets value to LatestLogs
27855 func (o *SimpleMonitorHealthStatus) SetLatestLogs(v []string) {
27856 o.LatestLogs = v
27857 }
27858
27859 /*************************************************
27860 * SimpleNotificationDestination
27861 *************************************************/
27862
27863 // SimpleNotificationDestination represents API parameter/response structure
27864 type SimpleNotificationDestination struct {
27865 ID types.ID
27866 Name string
27867 Description string
27868 Tags types.Tags
27869 Availability types.EAvailability
27870 IconID types.ID `mapconv:"Icon.ID"`
27871 CreatedAt time.Time
27872 ModifiedAt time.Time
27873 Type types.ESimpleNotificationDestinationTypes `mapconv:"Settings.Type"`
27874 Disabled bool `mapconv:"Settings.Disabled"`
27875 Value string `mapconv:"Settings.Value"`
27876 SettingsHash string `json:",omitempty" mapconv:",omitempty"`
27877 }
27878
27879 // setDefaults implements iaas.argumentDefaulter
27880 func (o *SimpleNotificationDestination) setDefaults() interface{} {
27881 return &struct {
27882 ID types.ID
27883 Name string
27884 Description string
27885 Tags types.Tags
27886 Availability types.EAvailability
27887 IconID types.ID `mapconv:"Icon.ID"`
27888 CreatedAt time.Time
27889 ModifiedAt time.Time
27890 Type types.ESimpleNotificationDestinationTypes `mapconv:"Settings.Type"`
27891 Disabled bool `mapconv:"Settings.Disabled"`
27892 Value string `mapconv:"Settings.Value"`
27893 SettingsHash string `json:",omitempty" mapconv:",omitempty"`
27894 }{
27895 ID: o.GetID(),
27896 Name: o.GetName(),
27897 Description: o.GetDescription(),
27898 Tags: o.GetTags(),
27899 Availability: o.GetAvailability(),
27900 IconID: o.GetIconID(),
27901 CreatedAt: o.GetCreatedAt(),
27902 ModifiedAt: o.GetModifiedAt(),
27903 Type: o.GetType(),
27904 Disabled: o.GetDisabled(),
27905 Value: o.GetValue(),
27906 SettingsHash: o.GetSettingsHash(),
27907 }
27908 }
27909
27910 // GetID returns value of ID
27911 func (o *SimpleNotificationDestination) GetID() types.ID {
27912 return o.ID
27913 }
27914
27915 // SetID sets value to ID
27916 func (o *SimpleNotificationDestination) SetID(v types.ID) {
27917 o.ID = v
27918 }
27919
27920 // SetStringID .
27921 func (o *SimpleNotificationDestination) SetStringID(id string) {
27922 accessor.SetStringID(o, id)
27923 }
27924
27925 // GetStringID .
27926 func (o *SimpleNotificationDestination) GetStringID() string {
27927 return accessor.GetStringID(o)
27928 }
27929
27930 // SetInt64ID .
27931 func (o *SimpleNotificationDestination) SetInt64ID(id int64) {
27932 accessor.SetInt64ID(o, id)
27933 }
27934
27935 // GetInt64ID .
27936 func (o *SimpleNotificationDestination) GetInt64ID() int64 {
27937 return accessor.GetInt64ID(o)
27938 }
27939
27940 // GetName returns value of Name
27941 func (o *SimpleNotificationDestination) GetName() string {
27942 return o.Name
27943 }
27944
27945 // SetName sets value to Name
27946 func (o *SimpleNotificationDestination) SetName(v string) {
27947 o.Name = v
27948 }
27949
27950 // GetDescription returns value of Description
27951 func (o *SimpleNotificationDestination) GetDescription() string {
27952 return o.Description
27953 }
27954
27955 // SetDescription sets value to Description
27956 func (o *SimpleNotificationDestination) SetDescription(v string) {
27957 o.Description = v
27958 }
27959
27960 // GetTags returns value of Tags
27961 func (o *SimpleNotificationDestination) GetTags() types.Tags {
27962 return o.Tags
27963 }
27964
27965 // SetTags sets value to Tags
27966 func (o *SimpleNotificationDestination) SetTags(v types.Tags) {
27967 o.Tags = v
27968 }
27969
27970 // HasTag 指定のタグが存在する場合trueを返す
27971 func (o *SimpleNotificationDestination) HasTag(tag string) bool {
27972 return accessor.HasTag(o, tag)
27973 }
27974
27975 // AppendTag 指定のタグを追加
27976 func (o *SimpleNotificationDestination) AppendTag(tag string) {
27977 accessor.AppendTag(o, tag)
27978 }
27979
27980 // RemoveTag 指定のタグを削除
27981 func (o *SimpleNotificationDestination) RemoveTag(tag string) {
27982 accessor.RemoveTag(o, tag)
27983 }
27984
27985 // ClearTags タグを全クリア
27986 func (o *SimpleNotificationDestination) ClearTags() {
27987 accessor.ClearTags(o)
27988 }
27989
27990 // GetAvailability returns value of Availability
27991 func (o *SimpleNotificationDestination) GetAvailability() types.EAvailability {
27992 return o.Availability
27993 }
27994
27995 // SetAvailability sets value to Availability
27996 func (o *SimpleNotificationDestination) SetAvailability(v types.EAvailability) {
27997 o.Availability = v
27998 }
27999
28000 // GetIconID returns value of IconID
28001 func (o *SimpleNotificationDestination) GetIconID() types.ID {
28002 return o.IconID
28003 }
28004
28005 // SetIconID sets value to IconID
28006 func (o *SimpleNotificationDestination) SetIconID(v types.ID) {
28007 o.IconID = v
28008 }
28009
28010 // GetCreatedAt returns value of CreatedAt
28011 func (o *SimpleNotificationDestination) GetCreatedAt() time.Time {
28012 return o.CreatedAt
28013 }
28014
28015 // SetCreatedAt sets value to CreatedAt
28016 func (o *SimpleNotificationDestination) SetCreatedAt(v time.Time) {
28017 o.CreatedAt = v
28018 }
28019
28020 // GetModifiedAt returns value of ModifiedAt
28021 func (o *SimpleNotificationDestination) GetModifiedAt() time.Time {
28022 return o.ModifiedAt
28023 }
28024
28025 // SetModifiedAt sets value to ModifiedAt
28026 func (o *SimpleNotificationDestination) SetModifiedAt(v time.Time) {
28027 o.ModifiedAt = v
28028 }
28029
28030 // GetType returns value of Type
28031 func (o *SimpleNotificationDestination) GetType() types.ESimpleNotificationDestinationTypes {
28032 return o.Type
28033 }
28034
28035 // SetType sets value to Type
28036 func (o *SimpleNotificationDestination) SetType(v types.ESimpleNotificationDestinationTypes) {
28037 o.Type = v
28038 }
28039
28040 // GetDisabled returns value of Disabled
28041 func (o *SimpleNotificationDestination) GetDisabled() bool {
28042 return o.Disabled
28043 }
28044
28045 // SetDisabled sets value to Disabled
28046 func (o *SimpleNotificationDestination) SetDisabled(v bool) {
28047 o.Disabled = v
28048 }
28049
28050 // GetValue returns value of Value
28051 func (o *SimpleNotificationDestination) GetValue() string {
28052 return o.Value
28053 }
28054
28055 // SetValue sets value to Value
28056 func (o *SimpleNotificationDestination) SetValue(v string) {
28057 o.Value = v
28058 }
28059
28060 // GetSettingsHash returns value of SettingsHash
28061 func (o *SimpleNotificationDestination) GetSettingsHash() string {
28062 return o.SettingsHash
28063 }
28064
28065 // SetSettingsHash sets value to SettingsHash
28066 func (o *SimpleNotificationDestination) SetSettingsHash(v string) {
28067 o.SettingsHash = v
28068 }
28069
28070 /*************************************************
28071 * SimpleNotificationDestinationCreateRequest
28072 *************************************************/
28073
28074 // SimpleNotificationDestinationCreateRequest represents API parameter/response structure
28075 type SimpleNotificationDestinationCreateRequest struct {
28076 Name string
28077 Description string
28078 Tags types.Tags
28079 IconID types.ID `mapconv:"Icon.ID"`
28080 Type types.ESimpleNotificationDestinationTypes `mapconv:"Settings.Type"`
28081 Disabled bool `mapconv:"Settings.Disabled"`
28082 Value string `mapconv:"Settings.Value"`
28083 }
28084
28085 // setDefaults implements iaas.argumentDefaulter
28086 func (o *SimpleNotificationDestinationCreateRequest) setDefaults() interface{} {
28087 return &struct {
28088 Name string
28089 Description string
28090 Tags types.Tags
28091 IconID types.ID `mapconv:"Icon.ID"`
28092 Type types.ESimpleNotificationDestinationTypes `mapconv:"Settings.Type"`
28093 Disabled bool `mapconv:"Settings.Disabled"`
28094 Value string `mapconv:"Settings.Value"`
28095 Class string `mapconv:"Provider.Class"`
28096 ServiceClass string
28097 }{
28098 Name: o.GetName(),
28099 Description: o.GetDescription(),
28100 Tags: o.GetTags(),
28101 IconID: o.GetIconID(),
28102 Type: o.GetType(),
28103 Disabled: o.GetDisabled(),
28104 Value: o.GetValue(),
28105 Class: "saknoticedestination",
28106 ServiceClass: "cloud/saknoticedestination/1",
28107 }
28108 }
28109
28110 // GetName returns value of Name
28111 func (o *SimpleNotificationDestinationCreateRequest) GetName() string {
28112 return o.Name
28113 }
28114
28115 // SetName sets value to Name
28116 func (o *SimpleNotificationDestinationCreateRequest) SetName(v string) {
28117 o.Name = v
28118 }
28119
28120 // GetDescription returns value of Description
28121 func (o *SimpleNotificationDestinationCreateRequest) GetDescription() string {
28122 return o.Description
28123 }
28124
28125 // SetDescription sets value to Description
28126 func (o *SimpleNotificationDestinationCreateRequest) SetDescription(v string) {
28127 o.Description = v
28128 }
28129
28130 // GetTags returns value of Tags
28131 func (o *SimpleNotificationDestinationCreateRequest) GetTags() types.Tags {
28132 return o.Tags
28133 }
28134
28135 // SetTags sets value to Tags
28136 func (o *SimpleNotificationDestinationCreateRequest) SetTags(v types.Tags) {
28137 o.Tags = v
28138 }
28139
28140 // HasTag 指定のタグが存在する場合trueを返す
28141 func (o *SimpleNotificationDestinationCreateRequest) HasTag(tag string) bool {
28142 return accessor.HasTag(o, tag)
28143 }
28144
28145 // AppendTag 指定のタグを追加
28146 func (o *SimpleNotificationDestinationCreateRequest) AppendTag(tag string) {
28147 accessor.AppendTag(o, tag)
28148 }
28149
28150 // RemoveTag 指定のタグを削除
28151 func (o *SimpleNotificationDestinationCreateRequest) RemoveTag(tag string) {
28152 accessor.RemoveTag(o, tag)
28153 }
28154
28155 // ClearTags タグを全クリア
28156 func (o *SimpleNotificationDestinationCreateRequest) ClearTags() {
28157 accessor.ClearTags(o)
28158 }
28159
28160 // GetIconID returns value of IconID
28161 func (o *SimpleNotificationDestinationCreateRequest) GetIconID() types.ID {
28162 return o.IconID
28163 }
28164
28165 // SetIconID sets value to IconID
28166 func (o *SimpleNotificationDestinationCreateRequest) SetIconID(v types.ID) {
28167 o.IconID = v
28168 }
28169
28170 // GetType returns value of Type
28171 func (o *SimpleNotificationDestinationCreateRequest) GetType() types.ESimpleNotificationDestinationTypes {
28172 return o.Type
28173 }
28174
28175 // SetType sets value to Type
28176 func (o *SimpleNotificationDestinationCreateRequest) SetType(v types.ESimpleNotificationDestinationTypes) {
28177 o.Type = v
28178 }
28179
28180 // GetDisabled returns value of Disabled
28181 func (o *SimpleNotificationDestinationCreateRequest) GetDisabled() bool {
28182 return o.Disabled
28183 }
28184
28185 // SetDisabled sets value to Disabled
28186 func (o *SimpleNotificationDestinationCreateRequest) SetDisabled(v bool) {
28187 o.Disabled = v
28188 }
28189
28190 // GetValue returns value of Value
28191 func (o *SimpleNotificationDestinationCreateRequest) GetValue() string {
28192 return o.Value
28193 }
28194
28195 // SetValue sets value to Value
28196 func (o *SimpleNotificationDestinationCreateRequest) SetValue(v string) {
28197 o.Value = v
28198 }
28199
28200 /*************************************************
28201 * SimpleNotificationDestinationUpdateRequest
28202 *************************************************/
28203
28204 // SimpleNotificationDestinationUpdateRequest represents API parameter/response structure
28205 type SimpleNotificationDestinationUpdateRequest struct {
28206 Name string
28207 Description string
28208 Tags types.Tags
28209 IconID types.ID `mapconv:"Icon.ID"`
28210 Disabled bool `mapconv:"Settings.Disabled"`
28211 SettingsHash string `json:",omitempty" mapconv:",omitempty"`
28212 }
28213
28214 // setDefaults implements iaas.argumentDefaulter
28215 func (o *SimpleNotificationDestinationUpdateRequest) setDefaults() interface{} {
28216 return &struct {
28217 Name string
28218 Description string
28219 Tags types.Tags
28220 IconID types.ID `mapconv:"Icon.ID"`
28221 Disabled bool `mapconv:"Settings.Disabled"`
28222 SettingsHash string `json:",omitempty" mapconv:",omitempty"`
28223 }{
28224 Name: o.GetName(),
28225 Description: o.GetDescription(),
28226 Tags: o.GetTags(),
28227 IconID: o.GetIconID(),
28228 Disabled: o.GetDisabled(),
28229 SettingsHash: o.GetSettingsHash(),
28230 }
28231 }
28232
28233 // GetName returns value of Name
28234 func (o *SimpleNotificationDestinationUpdateRequest) GetName() string {
28235 return o.Name
28236 }
28237
28238 // SetName sets value to Name
28239 func (o *SimpleNotificationDestinationUpdateRequest) SetName(v string) {
28240 o.Name = v
28241 }
28242
28243 // GetDescription returns value of Description
28244 func (o *SimpleNotificationDestinationUpdateRequest) GetDescription() string {
28245 return o.Description
28246 }
28247
28248 // SetDescription sets value to Description
28249 func (o *SimpleNotificationDestinationUpdateRequest) SetDescription(v string) {
28250 o.Description = v
28251 }
28252
28253 // GetTags returns value of Tags
28254 func (o *SimpleNotificationDestinationUpdateRequest) GetTags() types.Tags {
28255 return o.Tags
28256 }
28257
28258 // SetTags sets value to Tags
28259 func (o *SimpleNotificationDestinationUpdateRequest) SetTags(v types.Tags) {
28260 o.Tags = v
28261 }
28262
28263 // HasTag 指定のタグが存在する場合trueを返す
28264 func (o *SimpleNotificationDestinationUpdateRequest) HasTag(tag string) bool {
28265 return accessor.HasTag(o, tag)
28266 }
28267
28268 // AppendTag 指定のタグを追加
28269 func (o *SimpleNotificationDestinationUpdateRequest) AppendTag(tag string) {
28270 accessor.AppendTag(o, tag)
28271 }
28272
28273 // RemoveTag 指定のタグを削除
28274 func (o *SimpleNotificationDestinationUpdateRequest) RemoveTag(tag string) {
28275 accessor.RemoveTag(o, tag)
28276 }
28277
28278 // ClearTags タグを全クリア
28279 func (o *SimpleNotificationDestinationUpdateRequest) ClearTags() {
28280 accessor.ClearTags(o)
28281 }
28282
28283 // GetIconID returns value of IconID
28284 func (o *SimpleNotificationDestinationUpdateRequest) GetIconID() types.ID {
28285 return o.IconID
28286 }
28287
28288 // SetIconID sets value to IconID
28289 func (o *SimpleNotificationDestinationUpdateRequest) SetIconID(v types.ID) {
28290 o.IconID = v
28291 }
28292
28293 // GetDisabled returns value of Disabled
28294 func (o *SimpleNotificationDestinationUpdateRequest) GetDisabled() bool {
28295 return o.Disabled
28296 }
28297
28298 // SetDisabled sets value to Disabled
28299 func (o *SimpleNotificationDestinationUpdateRequest) SetDisabled(v bool) {
28300 o.Disabled = v
28301 }
28302
28303 // GetSettingsHash returns value of SettingsHash
28304 func (o *SimpleNotificationDestinationUpdateRequest) GetSettingsHash() string {
28305 return o.SettingsHash
28306 }
28307
28308 // SetSettingsHash sets value to SettingsHash
28309 func (o *SimpleNotificationDestinationUpdateRequest) SetSettingsHash(v string) {
28310 o.SettingsHash = v
28311 }
28312
28313 /*************************************************
28314 * SimpleNotificationDestinationUpdateSettingsRequest
28315 *************************************************/
28316
28317 // SimpleNotificationDestinationUpdateSettingsRequest represents API parameter/response structure
28318 type SimpleNotificationDestinationUpdateSettingsRequest struct {
28319 Disabled bool `mapconv:"Settings.Disabled"`
28320 SettingsHash string `json:",omitempty" mapconv:",omitempty"`
28321 }
28322
28323 // setDefaults implements iaas.argumentDefaulter
28324 func (o *SimpleNotificationDestinationUpdateSettingsRequest) setDefaults() interface{} {
28325 return &struct {
28326 Disabled bool `mapconv:"Settings.Disabled"`
28327 SettingsHash string `json:",omitempty" mapconv:",omitempty"`
28328 }{
28329 Disabled: o.GetDisabled(),
28330 SettingsHash: o.GetSettingsHash(),
28331 }
28332 }
28333
28334 // GetDisabled returns value of Disabled
28335 func (o *SimpleNotificationDestinationUpdateSettingsRequest) GetDisabled() bool {
28336 return o.Disabled
28337 }
28338
28339 // SetDisabled sets value to Disabled
28340 func (o *SimpleNotificationDestinationUpdateSettingsRequest) SetDisabled(v bool) {
28341 o.Disabled = v
28342 }
28343
28344 // GetSettingsHash returns value of SettingsHash
28345 func (o *SimpleNotificationDestinationUpdateSettingsRequest) GetSettingsHash() string {
28346 return o.SettingsHash
28347 }
28348
28349 // SetSettingsHash sets value to SettingsHash
28350 func (o *SimpleNotificationDestinationUpdateSettingsRequest) SetSettingsHash(v string) {
28351 o.SettingsHash = v
28352 }
28353
28354 /*************************************************
28355 * SimpleNotificationDestinationStatus
28356 *************************************************/
28357
28358 // SimpleNotificationDestinationStatus represents API parameter/response structure
28359 type SimpleNotificationDestinationStatus struct {
28360 Disabled bool
28361 ModifiedAt time.Time
28362 }
28363
28364 // setDefaults implements iaas.argumentDefaulter
28365 func (o *SimpleNotificationDestinationStatus) setDefaults() interface{} {
28366 return &struct {
28367 Disabled bool
28368 ModifiedAt time.Time
28369 }{
28370 Disabled: o.GetDisabled(),
28371 ModifiedAt: o.GetModifiedAt(),
28372 }
28373 }
28374
28375 // GetDisabled returns value of Disabled
28376 func (o *SimpleNotificationDestinationStatus) GetDisabled() bool {
28377 return o.Disabled
28378 }
28379
28380 // SetDisabled sets value to Disabled
28381 func (o *SimpleNotificationDestinationStatus) SetDisabled(v bool) {
28382 o.Disabled = v
28383 }
28384
28385 // GetModifiedAt returns value of ModifiedAt
28386 func (o *SimpleNotificationDestinationStatus) GetModifiedAt() time.Time {
28387 return o.ModifiedAt
28388 }
28389
28390 // SetModifiedAt sets value to ModifiedAt
28391 func (o *SimpleNotificationDestinationStatus) SetModifiedAt(v time.Time) {
28392 o.ModifiedAt = v
28393 }
28394
28395 /*************************************************
28396 * SimpleNotificationGroup
28397 *************************************************/
28398
28399 // SimpleNotificationGroup represents API parameter/response structure
28400 type SimpleNotificationGroup struct {
28401 ID types.ID
28402 Name string
28403 Description string
28404 Tags types.Tags
28405 Availability types.EAvailability
28406 IconID types.ID `mapconv:"Icon.ID"`
28407 CreatedAt time.Time
28408 ModifiedAt time.Time
28409 Destinations []string `mapconv:"Settings.Destinations"`
28410 Disabled bool `mapconv:"Settings.Disabled"`
28411 Sources []string `mapconv:"Settings.Sources"`
28412 SettingsHash string `json:",omitempty" mapconv:",omitempty"`
28413 }
28414
28415 // setDefaults implements iaas.argumentDefaulter
28416 func (o *SimpleNotificationGroup) setDefaults() interface{} {
28417 return &struct {
28418 ID types.ID
28419 Name string
28420 Description string
28421 Tags types.Tags
28422 Availability types.EAvailability
28423 IconID types.ID `mapconv:"Icon.ID"`
28424 CreatedAt time.Time
28425 ModifiedAt time.Time
28426 Destinations []string `mapconv:"Settings.Destinations"`
28427 Disabled bool `mapconv:"Settings.Disabled"`
28428 Sources []string `mapconv:"Settings.Sources"`
28429 SettingsHash string `json:",omitempty" mapconv:",omitempty"`
28430 }{
28431 ID: o.GetID(),
28432 Name: o.GetName(),
28433 Description: o.GetDescription(),
28434 Tags: o.GetTags(),
28435 Availability: o.GetAvailability(),
28436 IconID: o.GetIconID(),
28437 CreatedAt: o.GetCreatedAt(),
28438 ModifiedAt: o.GetModifiedAt(),
28439 Destinations: o.GetDestinations(),
28440 Disabled: o.GetDisabled(),
28441 Sources: o.GetSources(),
28442 SettingsHash: o.GetSettingsHash(),
28443 }
28444 }
28445
28446 // GetID returns value of ID
28447 func (o *SimpleNotificationGroup) GetID() types.ID {
28448 return o.ID
28449 }
28450
28451 // SetID sets value to ID
28452 func (o *SimpleNotificationGroup) SetID(v types.ID) {
28453 o.ID = v
28454 }
28455
28456 // SetStringID .
28457 func (o *SimpleNotificationGroup) SetStringID(id string) {
28458 accessor.SetStringID(o, id)
28459 }
28460
28461 // GetStringID .
28462 func (o *SimpleNotificationGroup) GetStringID() string {
28463 return accessor.GetStringID(o)
28464 }
28465
28466 // SetInt64ID .
28467 func (o *SimpleNotificationGroup) SetInt64ID(id int64) {
28468 accessor.SetInt64ID(o, id)
28469 }
28470
28471 // GetInt64ID .
28472 func (o *SimpleNotificationGroup) GetInt64ID() int64 {
28473 return accessor.GetInt64ID(o)
28474 }
28475
28476 // GetName returns value of Name
28477 func (o *SimpleNotificationGroup) GetName() string {
28478 return o.Name
28479 }
28480
28481 // SetName sets value to Name
28482 func (o *SimpleNotificationGroup) SetName(v string) {
28483 o.Name = v
28484 }
28485
28486 // GetDescription returns value of Description
28487 func (o *SimpleNotificationGroup) GetDescription() string {
28488 return o.Description
28489 }
28490
28491 // SetDescription sets value to Description
28492 func (o *SimpleNotificationGroup) SetDescription(v string) {
28493 o.Description = v
28494 }
28495
28496 // GetTags returns value of Tags
28497 func (o *SimpleNotificationGroup) GetTags() types.Tags {
28498 return o.Tags
28499 }
28500
28501 // SetTags sets value to Tags
28502 func (o *SimpleNotificationGroup) SetTags(v types.Tags) {
28503 o.Tags = v
28504 }
28505
28506 // HasTag 指定のタグが存在する場合trueを返す
28507 func (o *SimpleNotificationGroup) HasTag(tag string) bool {
28508 return accessor.HasTag(o, tag)
28509 }
28510
28511 // AppendTag 指定のタグを追加
28512 func (o *SimpleNotificationGroup) AppendTag(tag string) {
28513 accessor.AppendTag(o, tag)
28514 }
28515
28516 // RemoveTag 指定のタグを削除
28517 func (o *SimpleNotificationGroup) RemoveTag(tag string) {
28518 accessor.RemoveTag(o, tag)
28519 }
28520
28521 // ClearTags タグを全クリア
28522 func (o *SimpleNotificationGroup) ClearTags() {
28523 accessor.ClearTags(o)
28524 }
28525
28526 // GetAvailability returns value of Availability
28527 func (o *SimpleNotificationGroup) GetAvailability() types.EAvailability {
28528 return o.Availability
28529 }
28530
28531 // SetAvailability sets value to Availability
28532 func (o *SimpleNotificationGroup) SetAvailability(v types.EAvailability) {
28533 o.Availability = v
28534 }
28535
28536 // GetIconID returns value of IconID
28537 func (o *SimpleNotificationGroup) GetIconID() types.ID {
28538 return o.IconID
28539 }
28540
28541 // SetIconID sets value to IconID
28542 func (o *SimpleNotificationGroup) SetIconID(v types.ID) {
28543 o.IconID = v
28544 }
28545
28546 // GetCreatedAt returns value of CreatedAt
28547 func (o *SimpleNotificationGroup) GetCreatedAt() time.Time {
28548 return o.CreatedAt
28549 }
28550
28551 // SetCreatedAt sets value to CreatedAt
28552 func (o *SimpleNotificationGroup) SetCreatedAt(v time.Time) {
28553 o.CreatedAt = v
28554 }
28555
28556 // GetModifiedAt returns value of ModifiedAt
28557 func (o *SimpleNotificationGroup) GetModifiedAt() time.Time {
28558 return o.ModifiedAt
28559 }
28560
28561 // SetModifiedAt sets value to ModifiedAt
28562 func (o *SimpleNotificationGroup) SetModifiedAt(v time.Time) {
28563 o.ModifiedAt = v
28564 }
28565
28566 // GetDestinations returns value of Destinations
28567 func (o *SimpleNotificationGroup) GetDestinations() []string {
28568 return o.Destinations
28569 }
28570
28571 // SetDestinations sets value to Destinations
28572 func (o *SimpleNotificationGroup) SetDestinations(v []string) {
28573 o.Destinations = v
28574 }
28575
28576 // GetDisabled returns value of Disabled
28577 func (o *SimpleNotificationGroup) GetDisabled() bool {
28578 return o.Disabled
28579 }
28580
28581 // SetDisabled sets value to Disabled
28582 func (o *SimpleNotificationGroup) SetDisabled(v bool) {
28583 o.Disabled = v
28584 }
28585
28586 // GetSources returns value of Sources
28587 func (o *SimpleNotificationGroup) GetSources() []string {
28588 return o.Sources
28589 }
28590
28591 // SetSources sets value to Sources
28592 func (o *SimpleNotificationGroup) SetSources(v []string) {
28593 o.Sources = v
28594 }
28595
28596 // GetSettingsHash returns value of SettingsHash
28597 func (o *SimpleNotificationGroup) GetSettingsHash() string {
28598 return o.SettingsHash
28599 }
28600
28601 // SetSettingsHash sets value to SettingsHash
28602 func (o *SimpleNotificationGroup) SetSettingsHash(v string) {
28603 o.SettingsHash = v
28604 }
28605
28606 /*************************************************
28607 * SimpleNotificationGroupCreateRequest
28608 *************************************************/
28609
28610 // SimpleNotificationGroupCreateRequest represents API parameter/response structure
28611 type SimpleNotificationGroupCreateRequest struct {
28612 Name string
28613 Description string
28614 Tags types.Tags
28615 IconID types.ID `mapconv:"Icon.ID"`
28616 Destinations []string `mapconv:"Settings.Destinations"`
28617 Disabled bool `mapconv:"Settings.Disabled"`
28618 Sources []string `mapconv:"Settings.Sources"`
28619 }
28620
28621 // setDefaults implements iaas.argumentDefaulter
28622 func (o *SimpleNotificationGroupCreateRequest) setDefaults() interface{} {
28623 return &struct {
28624 Name string
28625 Description string
28626 Tags types.Tags
28627 IconID types.ID `mapconv:"Icon.ID"`
28628 Destinations []string `mapconv:"Settings.Destinations"`
28629 Disabled bool `mapconv:"Settings.Disabled"`
28630 Sources []string `mapconv:"Settings.Sources"`
28631 Class string `mapconv:"Provider.Class"`
28632 ServiceClass string
28633 }{
28634 Name: o.GetName(),
28635 Description: o.GetDescription(),
28636 Tags: o.GetTags(),
28637 IconID: o.GetIconID(),
28638 Destinations: o.GetDestinations(),
28639 Disabled: o.GetDisabled(),
28640 Sources: o.GetSources(),
28641 Class: "saknoticegroup",
28642 ServiceClass: "cloud/saknoticegroup/1",
28643 }
28644 }
28645
28646 // GetName returns value of Name
28647 func (o *SimpleNotificationGroupCreateRequest) GetName() string {
28648 return o.Name
28649 }
28650
28651 // SetName sets value to Name
28652 func (o *SimpleNotificationGroupCreateRequest) SetName(v string) {
28653 o.Name = v
28654 }
28655
28656 // GetDescription returns value of Description
28657 func (o *SimpleNotificationGroupCreateRequest) GetDescription() string {
28658 return o.Description
28659 }
28660
28661 // SetDescription sets value to Description
28662 func (o *SimpleNotificationGroupCreateRequest) SetDescription(v string) {
28663 o.Description = v
28664 }
28665
28666 // GetTags returns value of Tags
28667 func (o *SimpleNotificationGroupCreateRequest) GetTags() types.Tags {
28668 return o.Tags
28669 }
28670
28671 // SetTags sets value to Tags
28672 func (o *SimpleNotificationGroupCreateRequest) SetTags(v types.Tags) {
28673 o.Tags = v
28674 }
28675
28676 // HasTag 指定のタグが存在する場合trueを返す
28677 func (o *SimpleNotificationGroupCreateRequest) HasTag(tag string) bool {
28678 return accessor.HasTag(o, tag)
28679 }
28680
28681 // AppendTag 指定のタグを追加
28682 func (o *SimpleNotificationGroupCreateRequest) AppendTag(tag string) {
28683 accessor.AppendTag(o, tag)
28684 }
28685
28686 // RemoveTag 指定のタグを削除
28687 func (o *SimpleNotificationGroupCreateRequest) RemoveTag(tag string) {
28688 accessor.RemoveTag(o, tag)
28689 }
28690
28691 // ClearTags タグを全クリア
28692 func (o *SimpleNotificationGroupCreateRequest) ClearTags() {
28693 accessor.ClearTags(o)
28694 }
28695
28696 // GetIconID returns value of IconID
28697 func (o *SimpleNotificationGroupCreateRequest) GetIconID() types.ID {
28698 return o.IconID
28699 }
28700
28701 // SetIconID sets value to IconID
28702 func (o *SimpleNotificationGroupCreateRequest) SetIconID(v types.ID) {
28703 o.IconID = v
28704 }
28705
28706 // GetDestinations returns value of Destinations
28707 func (o *SimpleNotificationGroupCreateRequest) GetDestinations() []string {
28708 return o.Destinations
28709 }
28710
28711 // SetDestinations sets value to Destinations
28712 func (o *SimpleNotificationGroupCreateRequest) SetDestinations(v []string) {
28713 o.Destinations = v
28714 }
28715
28716 // GetDisabled returns value of Disabled
28717 func (o *SimpleNotificationGroupCreateRequest) GetDisabled() bool {
28718 return o.Disabled
28719 }
28720
28721 // SetDisabled sets value to Disabled
28722 func (o *SimpleNotificationGroupCreateRequest) SetDisabled(v bool) {
28723 o.Disabled = v
28724 }
28725
28726 // GetSources returns value of Sources
28727 func (o *SimpleNotificationGroupCreateRequest) GetSources() []string {
28728 return o.Sources
28729 }
28730
28731 // SetSources sets value to Sources
28732 func (o *SimpleNotificationGroupCreateRequest) SetSources(v []string) {
28733 o.Sources = v
28734 }
28735
28736 /*************************************************
28737 * SimpleNotificationGroupUpdateRequest
28738 *************************************************/
28739
28740 // SimpleNotificationGroupUpdateRequest represents API parameter/response structure
28741 type SimpleNotificationGroupUpdateRequest struct {
28742 Name string
28743 Description string
28744 Tags types.Tags
28745 IconID types.ID `mapconv:"Icon.ID"`
28746 Destinations []string `mapconv:"Settings.Destinations"`
28747 Disabled bool `mapconv:"Settings.Disabled"`
28748 Sources []string `mapconv:"Settings.Sources"`
28749 SettingsHash string `json:",omitempty" mapconv:",omitempty"`
28750 }
28751
28752 // setDefaults implements iaas.argumentDefaulter
28753 func (o *SimpleNotificationGroupUpdateRequest) setDefaults() interface{} {
28754 return &struct {
28755 Name string
28756 Description string
28757 Tags types.Tags
28758 IconID types.ID `mapconv:"Icon.ID"`
28759 Destinations []string `mapconv:"Settings.Destinations"`
28760 Disabled bool `mapconv:"Settings.Disabled"`
28761 Sources []string `mapconv:"Settings.Sources"`
28762 SettingsHash string `json:",omitempty" mapconv:",omitempty"`
28763 }{
28764 Name: o.GetName(),
28765 Description: o.GetDescription(),
28766 Tags: o.GetTags(),
28767 IconID: o.GetIconID(),
28768 Destinations: o.GetDestinations(),
28769 Disabled: o.GetDisabled(),
28770 Sources: o.GetSources(),
28771 SettingsHash: o.GetSettingsHash(),
28772 }
28773 }
28774
28775 // GetName returns value of Name
28776 func (o *SimpleNotificationGroupUpdateRequest) GetName() string {
28777 return o.Name
28778 }
28779
28780 // SetName sets value to Name
28781 func (o *SimpleNotificationGroupUpdateRequest) SetName(v string) {
28782 o.Name = v
28783 }
28784
28785 // GetDescription returns value of Description
28786 func (o *SimpleNotificationGroupUpdateRequest) GetDescription() string {
28787 return o.Description
28788 }
28789
28790 // SetDescription sets value to Description
28791 func (o *SimpleNotificationGroupUpdateRequest) SetDescription(v string) {
28792 o.Description = v
28793 }
28794
28795 // GetTags returns value of Tags
28796 func (o *SimpleNotificationGroupUpdateRequest) GetTags() types.Tags {
28797 return o.Tags
28798 }
28799
28800 // SetTags sets value to Tags
28801 func (o *SimpleNotificationGroupUpdateRequest) SetTags(v types.Tags) {
28802 o.Tags = v
28803 }
28804
28805 // HasTag 指定のタグが存在する場合trueを返す
28806 func (o *SimpleNotificationGroupUpdateRequest) HasTag(tag string) bool {
28807 return accessor.HasTag(o, tag)
28808 }
28809
28810 // AppendTag 指定のタグを追加
28811 func (o *SimpleNotificationGroupUpdateRequest) AppendTag(tag string) {
28812 accessor.AppendTag(o, tag)
28813 }
28814
28815 // RemoveTag 指定のタグを削除
28816 func (o *SimpleNotificationGroupUpdateRequest) RemoveTag(tag string) {
28817 accessor.RemoveTag(o, tag)
28818 }
28819
28820 // ClearTags タグを全クリア
28821 func (o *SimpleNotificationGroupUpdateRequest) ClearTags() {
28822 accessor.ClearTags(o)
28823 }
28824
28825 // GetIconID returns value of IconID
28826 func (o *SimpleNotificationGroupUpdateRequest) GetIconID() types.ID {
28827 return o.IconID
28828 }
28829
28830 // SetIconID sets value to IconID
28831 func (o *SimpleNotificationGroupUpdateRequest) SetIconID(v types.ID) {
28832 o.IconID = v
28833 }
28834
28835 // GetDestinations returns value of Destinations
28836 func (o *SimpleNotificationGroupUpdateRequest) GetDestinations() []string {
28837 return o.Destinations
28838 }
28839
28840 // SetDestinations sets value to Destinations
28841 func (o *SimpleNotificationGroupUpdateRequest) SetDestinations(v []string) {
28842 o.Destinations = v
28843 }
28844
28845 // GetDisabled returns value of Disabled
28846 func (o *SimpleNotificationGroupUpdateRequest) GetDisabled() bool {
28847 return o.Disabled
28848 }
28849
28850 // SetDisabled sets value to Disabled
28851 func (o *SimpleNotificationGroupUpdateRequest) SetDisabled(v bool) {
28852 o.Disabled = v
28853 }
28854
28855 // GetSources returns value of Sources
28856 func (o *SimpleNotificationGroupUpdateRequest) GetSources() []string {
28857 return o.Sources
28858 }
28859
28860 // SetSources sets value to Sources
28861 func (o *SimpleNotificationGroupUpdateRequest) SetSources(v []string) {
28862 o.Sources = v
28863 }
28864
28865 // GetSettingsHash returns value of SettingsHash
28866 func (o *SimpleNotificationGroupUpdateRequest) GetSettingsHash() string {
28867 return o.SettingsHash
28868 }
28869
28870 // SetSettingsHash sets value to SettingsHash
28871 func (o *SimpleNotificationGroupUpdateRequest) SetSettingsHash(v string) {
28872 o.SettingsHash = v
28873 }
28874
28875 /*************************************************
28876 * SimpleNotificationGroupUpdateSettingsRequest
28877 *************************************************/
28878
28879 // SimpleNotificationGroupUpdateSettingsRequest represents API parameter/response structure
28880 type SimpleNotificationGroupUpdateSettingsRequest struct {
28881 Disabled bool `mapconv:"Settings.Disabled"`
28882 SettingsHash string `json:",omitempty" mapconv:",omitempty"`
28883 }
28884
28885 // setDefaults implements iaas.argumentDefaulter
28886 func (o *SimpleNotificationGroupUpdateSettingsRequest) setDefaults() interface{} {
28887 return &struct {
28888 Disabled bool `mapconv:"Settings.Disabled"`
28889 SettingsHash string `json:",omitempty" mapconv:",omitempty"`
28890 }{
28891 Disabled: o.GetDisabled(),
28892 SettingsHash: o.GetSettingsHash(),
28893 }
28894 }
28895
28896 // GetDisabled returns value of Disabled
28897 func (o *SimpleNotificationGroupUpdateSettingsRequest) GetDisabled() bool {
28898 return o.Disabled
28899 }
28900
28901 // SetDisabled sets value to Disabled
28902 func (o *SimpleNotificationGroupUpdateSettingsRequest) SetDisabled(v bool) {
28903 o.Disabled = v
28904 }
28905
28906 // GetSettingsHash returns value of SettingsHash
28907 func (o *SimpleNotificationGroupUpdateSettingsRequest) GetSettingsHash() string {
28908 return o.SettingsHash
28909 }
28910
28911 // SetSettingsHash sets value to SettingsHash
28912 func (o *SimpleNotificationGroupUpdateSettingsRequest) SetSettingsHash(v string) {
28913 o.SettingsHash = v
28914 }
28915
28916 /*************************************************
28917 * SimpleNotificationHistories
28918 *************************************************/
28919
28920 // SimpleNotificationHistories represents API parameter/response structure
28921 type SimpleNotificationHistories struct {
28922 NotificationHistories []*SimpleNotificationHistory
28923 }
28924
28925 // setDefaults implements iaas.argumentDefaulter
28926 func (o *SimpleNotificationHistories) setDefaults() interface{} {
28927 return &struct {
28928 NotificationHistories []*SimpleNotificationHistory
28929 }{
28930 NotificationHistories: o.GetNotificationHistories(),
28931 }
28932 }
28933
28934 // GetNotificationHistories returns value of NotificationHistories
28935 func (o *SimpleNotificationHistories) GetNotificationHistories() []*SimpleNotificationHistory {
28936 return o.NotificationHistories
28937 }
28938
28939 // SetNotificationHistories sets value to NotificationHistories
28940 func (o *SimpleNotificationHistories) SetNotificationHistories(v []*SimpleNotificationHistory) {
28941 o.NotificationHistories = v
28942 }
28943
28944 /*************************************************
28945 * SimpleNotificationHistory
28946 *************************************************/
28947
28948 // SimpleNotificationHistory represents API parameter/response structure
28949 type SimpleNotificationHistory struct {
28950 RequestID string
28951 SourceID string
28952 ReceivedAt time.Time
28953 Message *SimpleNotificationHistoryMessage
28954 Statuses []*SimpleNotificationHistoryStatus
28955 }
28956
28957 // setDefaults implements iaas.argumentDefaulter
28958 func (o *SimpleNotificationHistory) setDefaults() interface{} {
28959 return &struct {
28960 RequestID string
28961 SourceID string
28962 ReceivedAt time.Time
28963 Message *SimpleNotificationHistoryMessage
28964 Statuses []*SimpleNotificationHistoryStatus
28965 }{
28966 RequestID: o.GetRequestID(),
28967 SourceID: o.GetSourceID(),
28968 ReceivedAt: o.GetReceivedAt(),
28969 Message: o.GetMessage(),
28970 Statuses: o.GetStatuses(),
28971 }
28972 }
28973
28974 // GetRequestID returns value of RequestID
28975 func (o *SimpleNotificationHistory) GetRequestID() string {
28976 return o.RequestID
28977 }
28978
28979 // SetRequestID sets value to RequestID
28980 func (o *SimpleNotificationHistory) SetRequestID(v string) {
28981 o.RequestID = v
28982 }
28983
28984 // GetSourceID returns value of SourceID
28985 func (o *SimpleNotificationHistory) GetSourceID() string {
28986 return o.SourceID
28987 }
28988
28989 // SetSourceID sets value to SourceID
28990 func (o *SimpleNotificationHistory) SetSourceID(v string) {
28991 o.SourceID = v
28992 }
28993
28994 // GetReceivedAt returns value of ReceivedAt
28995 func (o *SimpleNotificationHistory) GetReceivedAt() time.Time {
28996 return o.ReceivedAt
28997 }
28998
28999 // SetReceivedAt sets value to ReceivedAt
29000 func (o *SimpleNotificationHistory) SetReceivedAt(v time.Time) {
29001 o.ReceivedAt = v
29002 }
29003
29004 // GetMessage returns value of Message
29005 func (o *SimpleNotificationHistory) GetMessage() *SimpleNotificationHistoryMessage {
29006 return o.Message
29007 }
29008
29009 // SetMessage sets value to Message
29010 func (o *SimpleNotificationHistory) SetMessage(v *SimpleNotificationHistoryMessage) {
29011 o.Message = v
29012 }
29013
29014 // GetStatuses returns value of Statuses
29015 func (o *SimpleNotificationHistory) GetStatuses() []*SimpleNotificationHistoryStatus {
29016 return o.Statuses
29017 }
29018
29019 // SetStatuses sets value to Statuses
29020 func (o *SimpleNotificationHistory) SetStatuses(v []*SimpleNotificationHistoryStatus) {
29021 o.Statuses = v
29022 }
29023
29024 /*************************************************
29025 * SimpleNotificationHistoryMessage
29026 *************************************************/
29027
29028 // SimpleNotificationHistoryMessage represents API parameter/response structure
29029 type SimpleNotificationHistoryMessage struct {
29030 Body string
29031 Color string
29032 ColorCode string
29033 IconURL string
29034 ImageURL string
29035 Title string
29036 }
29037
29038 // setDefaults implements iaas.argumentDefaulter
29039 func (o *SimpleNotificationHistoryMessage) setDefaults() interface{} {
29040 return &struct {
29041 Body string
29042 Color string
29043 ColorCode string
29044 IconURL string
29045 ImageURL string
29046 Title string
29047 }{
29048 Body: o.GetBody(),
29049 Color: o.GetColor(),
29050 ColorCode: o.GetColorCode(),
29051 IconURL: o.GetIconURL(),
29052 ImageURL: o.GetImageURL(),
29053 Title: o.GetTitle(),
29054 }
29055 }
29056
29057 // GetBody returns value of Body
29058 func (o *SimpleNotificationHistoryMessage) GetBody() string {
29059 return o.Body
29060 }
29061
29062 // SetBody sets value to Body
29063 func (o *SimpleNotificationHistoryMessage) SetBody(v string) {
29064 o.Body = v
29065 }
29066
29067 // GetColor returns value of Color
29068 func (o *SimpleNotificationHistoryMessage) GetColor() string {
29069 return o.Color
29070 }
29071
29072 // SetColor sets value to Color
29073 func (o *SimpleNotificationHistoryMessage) SetColor(v string) {
29074 o.Color = v
29075 }
29076
29077 // GetColorCode returns value of ColorCode
29078 func (o *SimpleNotificationHistoryMessage) GetColorCode() string {
29079 return o.ColorCode
29080 }
29081
29082 // SetColorCode sets value to ColorCode
29083 func (o *SimpleNotificationHistoryMessage) SetColorCode(v string) {
29084 o.ColorCode = v
29085 }
29086
29087 // GetIconURL returns value of IconURL
29088 func (o *SimpleNotificationHistoryMessage) GetIconURL() string {
29089 return o.IconURL
29090 }
29091
29092 // SetIconURL sets value to IconURL
29093 func (o *SimpleNotificationHistoryMessage) SetIconURL(v string) {
29094 o.IconURL = v
29095 }
29096
29097 // GetImageURL returns value of ImageURL
29098 func (o *SimpleNotificationHistoryMessage) GetImageURL() string {
29099 return o.ImageURL
29100 }
29101
29102 // SetImageURL sets value to ImageURL
29103 func (o *SimpleNotificationHistoryMessage) SetImageURL(v string) {
29104 o.ImageURL = v
29105 }
29106
29107 // GetTitle returns value of Title
29108 func (o *SimpleNotificationHistoryMessage) GetTitle() string {
29109 return o.Title
29110 }
29111
29112 // SetTitle sets value to Title
29113 func (o *SimpleNotificationHistoryMessage) SetTitle(v string) {
29114 o.Title = v
29115 }
29116
29117 /*************************************************
29118 * SimpleNotificationHistoryStatus
29119 *************************************************/
29120
29121 // SimpleNotificationHistoryStatus represents API parameter/response structure
29122 type SimpleNotificationHistoryStatus struct {
29123 ID string
29124 Status int
29125 ErrorInfo string
29126 NotificationRequestID string
29127 GroupID string
29128 CreatedAt time.Time
29129 UpdatedAt time.Time
29130 }
29131
29132 // setDefaults implements iaas.argumentDefaulter
29133 func (o *SimpleNotificationHistoryStatus) setDefaults() interface{} {
29134 return &struct {
29135 ID string
29136 Status int
29137 ErrorInfo string
29138 NotificationRequestID string
29139 GroupID string
29140 CreatedAt time.Time
29141 UpdatedAt time.Time
29142 }{
29143 ID: o.GetID(),
29144 Status: o.GetStatus(),
29145 ErrorInfo: o.GetErrorInfo(),
29146 NotificationRequestID: o.GetNotificationRequestID(),
29147 GroupID: o.GetGroupID(),
29148 CreatedAt: o.GetCreatedAt(),
29149 UpdatedAt: o.GetUpdatedAt(),
29150 }
29151 }
29152
29153 // GetID returns value of ID
29154 func (o *SimpleNotificationHistoryStatus) GetID() string {
29155 return o.ID
29156 }
29157
29158 // SetID sets value to ID
29159 func (o *SimpleNotificationHistoryStatus) SetID(v string) {
29160 o.ID = v
29161 }
29162
29163 // GetStatus returns value of Status
29164 func (o *SimpleNotificationHistoryStatus) GetStatus() int {
29165 return o.Status
29166 }
29167
29168 // SetStatus sets value to Status
29169 func (o *SimpleNotificationHistoryStatus) SetStatus(v int) {
29170 o.Status = v
29171 }
29172
29173 // GetErrorInfo returns value of ErrorInfo
29174 func (o *SimpleNotificationHistoryStatus) GetErrorInfo() string {
29175 return o.ErrorInfo
29176 }
29177
29178 // SetErrorInfo sets value to ErrorInfo
29179 func (o *SimpleNotificationHistoryStatus) SetErrorInfo(v string) {
29180 o.ErrorInfo = v
29181 }
29182
29183 // GetNotificationRequestID returns value of NotificationRequestID
29184 func (o *SimpleNotificationHistoryStatus) GetNotificationRequestID() string {
29185 return o.NotificationRequestID
29186 }
29187
29188 // SetNotificationRequestID sets value to NotificationRequestID
29189 func (o *SimpleNotificationHistoryStatus) SetNotificationRequestID(v string) {
29190 o.NotificationRequestID = v
29191 }
29192
29193 // GetGroupID returns value of GroupID
29194 func (o *SimpleNotificationHistoryStatus) GetGroupID() string {
29195 return o.GroupID
29196 }
29197
29198 // SetGroupID sets value to GroupID
29199 func (o *SimpleNotificationHistoryStatus) SetGroupID(v string) {
29200 o.GroupID = v
29201 }
29202
29203 // GetCreatedAt returns value of CreatedAt
29204 func (o *SimpleNotificationHistoryStatus) GetCreatedAt() time.Time {
29205 return o.CreatedAt
29206 }
29207
29208 // SetCreatedAt sets value to CreatedAt
29209 func (o *SimpleNotificationHistoryStatus) SetCreatedAt(v time.Time) {
29210 o.CreatedAt = v
29211 }
29212
29213 // GetUpdatedAt returns value of UpdatedAt
29214 func (o *SimpleNotificationHistoryStatus) GetUpdatedAt() time.Time {
29215 return o.UpdatedAt
29216 }
29217
29218 // SetUpdatedAt sets value to UpdatedAt
29219 func (o *SimpleNotificationHistoryStatus) SetUpdatedAt(v time.Time) {
29220 o.UpdatedAt = v
29221 }
29222
29223 /*************************************************
29224 * SSHKey
29225 *************************************************/
29226
29227 // SSHKey represents API parameter/response structure
29228 type SSHKey struct {
29229 ID types.ID
29230 Name string
29231 Description string
29232 CreatedAt time.Time
29233 PublicKey string
29234 Fingerprint string
29235 }
29236
29237 // setDefaults implements iaas.argumentDefaulter
29238 func (o *SSHKey) setDefaults() interface{} {
29239 return &struct {
29240 ID types.ID
29241 Name string
29242 Description string
29243 CreatedAt time.Time
29244 PublicKey string
29245 Fingerprint string
29246 }{
29247 ID: o.GetID(),
29248 Name: o.GetName(),
29249 Description: o.GetDescription(),
29250 CreatedAt: o.GetCreatedAt(),
29251 PublicKey: o.GetPublicKey(),
29252 Fingerprint: o.GetFingerprint(),
29253 }
29254 }
29255
29256 // GetID returns value of ID
29257 func (o *SSHKey) GetID() types.ID {
29258 return o.ID
29259 }
29260
29261 // SetID sets value to ID
29262 func (o *SSHKey) SetID(v types.ID) {
29263 o.ID = v
29264 }
29265
29266 // SetStringID .
29267 func (o *SSHKey) SetStringID(id string) {
29268 accessor.SetStringID(o, id)
29269 }
29270
29271 // GetStringID .
29272 func (o *SSHKey) GetStringID() string {
29273 return accessor.GetStringID(o)
29274 }
29275
29276 // SetInt64ID .
29277 func (o *SSHKey) SetInt64ID(id int64) {
29278 accessor.SetInt64ID(o, id)
29279 }
29280
29281 // GetInt64ID .
29282 func (o *SSHKey) GetInt64ID() int64 {
29283 return accessor.GetInt64ID(o)
29284 }
29285
29286 // GetName returns value of Name
29287 func (o *SSHKey) GetName() string {
29288 return o.Name
29289 }
29290
29291 // SetName sets value to Name
29292 func (o *SSHKey) SetName(v string) {
29293 o.Name = v
29294 }
29295
29296 // GetDescription returns value of Description
29297 func (o *SSHKey) GetDescription() string {
29298 return o.Description
29299 }
29300
29301 // SetDescription sets value to Description
29302 func (o *SSHKey) SetDescription(v string) {
29303 o.Description = v
29304 }
29305
29306 // GetCreatedAt returns value of CreatedAt
29307 func (o *SSHKey) GetCreatedAt() time.Time {
29308 return o.CreatedAt
29309 }
29310
29311 // SetCreatedAt sets value to CreatedAt
29312 func (o *SSHKey) SetCreatedAt(v time.Time) {
29313 o.CreatedAt = v
29314 }
29315
29316 // GetPublicKey returns value of PublicKey
29317 func (o *SSHKey) GetPublicKey() string {
29318 return o.PublicKey
29319 }
29320
29321 // SetPublicKey sets value to PublicKey
29322 func (o *SSHKey) SetPublicKey(v string) {
29323 o.PublicKey = v
29324 }
29325
29326 // GetFingerprint returns value of Fingerprint
29327 func (o *SSHKey) GetFingerprint() string {
29328 return o.Fingerprint
29329 }
29330
29331 // SetFingerprint sets value to Fingerprint
29332 func (o *SSHKey) SetFingerprint(v string) {
29333 o.Fingerprint = v
29334 }
29335
29336 /*************************************************
29337 * SSHKeyCreateRequest
29338 *************************************************/
29339
29340 // SSHKeyCreateRequest represents API parameter/response structure
29341 type SSHKeyCreateRequest struct {
29342 Name string
29343 Description string
29344 PublicKey string
29345 }
29346
29347 // setDefaults implements iaas.argumentDefaulter
29348 func (o *SSHKeyCreateRequest) setDefaults() interface{} {
29349 return &struct {
29350 Name string
29351 Description string
29352 PublicKey string
29353 }{
29354 Name: o.GetName(),
29355 Description: o.GetDescription(),
29356 PublicKey: o.GetPublicKey(),
29357 }
29358 }
29359
29360 // GetName returns value of Name
29361 func (o *SSHKeyCreateRequest) GetName() string {
29362 return o.Name
29363 }
29364
29365 // SetName sets value to Name
29366 func (o *SSHKeyCreateRequest) SetName(v string) {
29367 o.Name = v
29368 }
29369
29370 // GetDescription returns value of Description
29371 func (o *SSHKeyCreateRequest) GetDescription() string {
29372 return o.Description
29373 }
29374
29375 // SetDescription sets value to Description
29376 func (o *SSHKeyCreateRequest) SetDescription(v string) {
29377 o.Description = v
29378 }
29379
29380 // GetPublicKey returns value of PublicKey
29381 func (o *SSHKeyCreateRequest) GetPublicKey() string {
29382 return o.PublicKey
29383 }
29384
29385 // SetPublicKey sets value to PublicKey
29386 func (o *SSHKeyCreateRequest) SetPublicKey(v string) {
29387 o.PublicKey = v
29388 }
29389
29390 /*************************************************
29391 * SSHKeyUpdateRequest
29392 *************************************************/
29393
29394 // SSHKeyUpdateRequest represents API parameter/response structure
29395 type SSHKeyUpdateRequest struct {
29396 Name string
29397 Description string
29398 }
29399
29400 // setDefaults implements iaas.argumentDefaulter
29401 func (o *SSHKeyUpdateRequest) setDefaults() interface{} {
29402 return &struct {
29403 Name string
29404 Description string
29405 }{
29406 Name: o.GetName(),
29407 Description: o.GetDescription(),
29408 }
29409 }
29410
29411 // GetName returns value of Name
29412 func (o *SSHKeyUpdateRequest) GetName() string {
29413 return o.Name
29414 }
29415
29416 // SetName sets value to Name
29417 func (o *SSHKeyUpdateRequest) SetName(v string) {
29418 o.Name = v
29419 }
29420
29421 // GetDescription returns value of Description
29422 func (o *SSHKeyUpdateRequest) GetDescription() string {
29423 return o.Description
29424 }
29425
29426 // SetDescription sets value to Description
29427 func (o *SSHKeyUpdateRequest) SetDescription(v string) {
29428 o.Description = v
29429 }
29430
29431 /*************************************************
29432 * Subnet
29433 *************************************************/
29434
29435 // Subnet represents API parameter/response structure
29436 type Subnet struct {
29437 ID types.ID
29438 SwitchID types.ID `mapconv:"Switch.ID,omitempty"`
29439 InternetID types.ID `mapconv:"Switch.Internet.ID,omitempty"`
29440 DefaultRoute string
29441 NextHop string
29442 StaticRoute string
29443 NetworkAddress string
29444 NetworkMaskLen int
29445 IPAddresses []*SubnetIPAddress `mapconv:"[]IPAddresses,recursive"`
29446 }
29447
29448 // setDefaults implements iaas.argumentDefaulter
29449 func (o *Subnet) setDefaults() interface{} {
29450 return &struct {
29451 ID types.ID
29452 SwitchID types.ID `mapconv:"Switch.ID,omitempty"`
29453 InternetID types.ID `mapconv:"Switch.Internet.ID,omitempty"`
29454 DefaultRoute string
29455 NextHop string
29456 StaticRoute string
29457 NetworkAddress string
29458 NetworkMaskLen int
29459 IPAddresses []*SubnetIPAddress `mapconv:"[]IPAddresses,recursive"`
29460 }{
29461 ID: o.GetID(),
29462 SwitchID: o.GetSwitchID(),
29463 InternetID: o.GetInternetID(),
29464 DefaultRoute: o.GetDefaultRoute(),
29465 NextHop: o.GetNextHop(),
29466 StaticRoute: o.GetStaticRoute(),
29467 NetworkAddress: o.GetNetworkAddress(),
29468 NetworkMaskLen: o.GetNetworkMaskLen(),
29469 IPAddresses: o.GetIPAddresses(),
29470 }
29471 }
29472
29473 // GetID returns value of ID
29474 func (o *Subnet) GetID() types.ID {
29475 return o.ID
29476 }
29477
29478 // SetID sets value to ID
29479 func (o *Subnet) SetID(v types.ID) {
29480 o.ID = v
29481 }
29482
29483 // SetStringID .
29484 func (o *Subnet) SetStringID(id string) {
29485 accessor.SetStringID(o, id)
29486 }
29487
29488 // GetStringID .
29489 func (o *Subnet) GetStringID() string {
29490 return accessor.GetStringID(o)
29491 }
29492
29493 // SetInt64ID .
29494 func (o *Subnet) SetInt64ID(id int64) {
29495 accessor.SetInt64ID(o, id)
29496 }
29497
29498 // GetInt64ID .
29499 func (o *Subnet) GetInt64ID() int64 {
29500 return accessor.GetInt64ID(o)
29501 }
29502
29503 // GetSwitchID returns value of SwitchID
29504 func (o *Subnet) GetSwitchID() types.ID {
29505 return o.SwitchID
29506 }
29507
29508 // SetSwitchID sets value to SwitchID
29509 func (o *Subnet) SetSwitchID(v types.ID) {
29510 o.SwitchID = v
29511 }
29512
29513 // GetInternetID returns value of InternetID
29514 func (o *Subnet) GetInternetID() types.ID {
29515 return o.InternetID
29516 }
29517
29518 // SetInternetID sets value to InternetID
29519 func (o *Subnet) SetInternetID(v types.ID) {
29520 o.InternetID = v
29521 }
29522
29523 // GetDefaultRoute returns value of DefaultRoute
29524 func (o *Subnet) GetDefaultRoute() string {
29525 return o.DefaultRoute
29526 }
29527
29528 // SetDefaultRoute sets value to DefaultRoute
29529 func (o *Subnet) SetDefaultRoute(v string) {
29530 o.DefaultRoute = v
29531 }
29532
29533 // GetNextHop returns value of NextHop
29534 func (o *Subnet) GetNextHop() string {
29535 return o.NextHop
29536 }
29537
29538 // SetNextHop sets value to NextHop
29539 func (o *Subnet) SetNextHop(v string) {
29540 o.NextHop = v
29541 }
29542
29543 // GetStaticRoute returns value of StaticRoute
29544 func (o *Subnet) GetStaticRoute() string {
29545 return o.StaticRoute
29546 }
29547
29548 // SetStaticRoute sets value to StaticRoute
29549 func (o *Subnet) SetStaticRoute(v string) {
29550 o.StaticRoute = v
29551 }
29552
29553 // GetNetworkAddress returns value of NetworkAddress
29554 func (o *Subnet) GetNetworkAddress() string {
29555 return o.NetworkAddress
29556 }
29557
29558 // SetNetworkAddress sets value to NetworkAddress
29559 func (o *Subnet) SetNetworkAddress(v string) {
29560 o.NetworkAddress = v
29561 }
29562
29563 // GetNetworkMaskLen returns value of NetworkMaskLen
29564 func (o *Subnet) GetNetworkMaskLen() int {
29565 return o.NetworkMaskLen
29566 }
29567
29568 // SetNetworkMaskLen sets value to NetworkMaskLen
29569 func (o *Subnet) SetNetworkMaskLen(v int) {
29570 o.NetworkMaskLen = v
29571 }
29572
29573 // GetIPAddresses returns value of IPAddresses
29574 func (o *Subnet) GetIPAddresses() []*SubnetIPAddress {
29575 return o.IPAddresses
29576 }
29577
29578 // SetIPAddresses sets value to IPAddresses
29579 func (o *Subnet) SetIPAddresses(v []*SubnetIPAddress) {
29580 o.IPAddresses = v
29581 }
29582
29583 /*************************************************
29584 * SubnetIPAddress
29585 *************************************************/
29586
29587 // SubnetIPAddress represents API parameter/response structure
29588 type SubnetIPAddress struct {
29589 HostName string
29590 IPAddress string
29591 }
29592
29593 // setDefaults implements iaas.argumentDefaulter
29594 func (o *SubnetIPAddress) setDefaults() interface{} {
29595 return &struct {
29596 HostName string
29597 IPAddress string
29598 }{
29599 HostName: o.GetHostName(),
29600 IPAddress: o.GetIPAddress(),
29601 }
29602 }
29603
29604 // GetHostName returns value of HostName
29605 func (o *SubnetIPAddress) GetHostName() string {
29606 return o.HostName
29607 }
29608
29609 // SetHostName sets value to HostName
29610 func (o *SubnetIPAddress) SetHostName(v string) {
29611 o.HostName = v
29612 }
29613
29614 // GetIPAddress returns value of IPAddress
29615 func (o *SubnetIPAddress) GetIPAddress() string {
29616 return o.IPAddress
29617 }
29618
29619 // SetIPAddress sets value to IPAddress
29620 func (o *SubnetIPAddress) SetIPAddress(v string) {
29621 o.IPAddress = v
29622 }
29623
29624 /*************************************************
29625 * Switch
29626 *************************************************/
29627
29628 // Switch represents API parameter/response structure
29629 type Switch struct {
29630 ID types.ID
29631 Name string
29632 Description string
29633 Tags types.Tags
29634 IconID types.ID `mapconv:"Icon.ID"`
29635 CreatedAt time.Time
29636 ModifiedAt time.Time
29637 Scope types.EScope
29638 ServerCount int
29639 NetworkMaskLen int `mapconv:"UserSubnet.NetworkMaskLen"`
29640 DefaultRoute string `mapconv:"UserSubnet.DefaultRoute"`
29641 Subnets []*SwitchSubnet `json:",omitempty" mapconv:"[]Subnets,omitempty,recursive"`
29642 BridgeID types.ID `mapconv:"Bridge.ID,omitempty"`
29643 HybridConnectionID types.ID `mapconv:"HybridConnection.ID,omitempty"`
29644 }
29645
29646 // setDefaults implements iaas.argumentDefaulter
29647 func (o *Switch) setDefaults() interface{} {
29648 return &struct {
29649 ID types.ID
29650 Name string
29651 Description string
29652 Tags types.Tags
29653 IconID types.ID `mapconv:"Icon.ID"`
29654 CreatedAt time.Time
29655 ModifiedAt time.Time
29656 Scope types.EScope
29657 ServerCount int
29658 NetworkMaskLen int `mapconv:"UserSubnet.NetworkMaskLen"`
29659 DefaultRoute string `mapconv:"UserSubnet.DefaultRoute"`
29660 Subnets []*SwitchSubnet `json:",omitempty" mapconv:"[]Subnets,omitempty,recursive"`
29661 BridgeID types.ID `mapconv:"Bridge.ID,omitempty"`
29662 HybridConnectionID types.ID `mapconv:"HybridConnection.ID,omitempty"`
29663 }{
29664 ID: o.GetID(),
29665 Name: o.GetName(),
29666 Description: o.GetDescription(),
29667 Tags: o.GetTags(),
29668 IconID: o.GetIconID(),
29669 CreatedAt: o.GetCreatedAt(),
29670 ModifiedAt: o.GetModifiedAt(),
29671 Scope: o.GetScope(),
29672 ServerCount: o.GetServerCount(),
29673 NetworkMaskLen: o.GetNetworkMaskLen(),
29674 DefaultRoute: o.GetDefaultRoute(),
29675 Subnets: o.GetSubnets(),
29676 BridgeID: o.GetBridgeID(),
29677 HybridConnectionID: o.GetHybridConnectionID(),
29678 }
29679 }
29680
29681 // GetID returns value of ID
29682 func (o *Switch) GetID() types.ID {
29683 return o.ID
29684 }
29685
29686 // SetID sets value to ID
29687 func (o *Switch) SetID(v types.ID) {
29688 o.ID = v
29689 }
29690
29691 // SetStringID .
29692 func (o *Switch) SetStringID(id string) {
29693 accessor.SetStringID(o, id)
29694 }
29695
29696 // GetStringID .
29697 func (o *Switch) GetStringID() string {
29698 return accessor.GetStringID(o)
29699 }
29700
29701 // SetInt64ID .
29702 func (o *Switch) SetInt64ID(id int64) {
29703 accessor.SetInt64ID(o, id)
29704 }
29705
29706 // GetInt64ID .
29707 func (o *Switch) GetInt64ID() int64 {
29708 return accessor.GetInt64ID(o)
29709 }
29710
29711 // GetName returns value of Name
29712 func (o *Switch) GetName() string {
29713 return o.Name
29714 }
29715
29716 // SetName sets value to Name
29717 func (o *Switch) SetName(v string) {
29718 o.Name = v
29719 }
29720
29721 // GetDescription returns value of Description
29722 func (o *Switch) GetDescription() string {
29723 return o.Description
29724 }
29725
29726 // SetDescription sets value to Description
29727 func (o *Switch) SetDescription(v string) {
29728 o.Description = v
29729 }
29730
29731 // GetTags returns value of Tags
29732 func (o *Switch) GetTags() types.Tags {
29733 return o.Tags
29734 }
29735
29736 // SetTags sets value to Tags
29737 func (o *Switch) SetTags(v types.Tags) {
29738 o.Tags = v
29739 }
29740
29741 // HasTag 指定のタグが存在する場合trueを返す
29742 func (o *Switch) HasTag(tag string) bool {
29743 return accessor.HasTag(o, tag)
29744 }
29745
29746 // AppendTag 指定のタグを追加
29747 func (o *Switch) AppendTag(tag string) {
29748 accessor.AppendTag(o, tag)
29749 }
29750
29751 // RemoveTag 指定のタグを削除
29752 func (o *Switch) RemoveTag(tag string) {
29753 accessor.RemoveTag(o, tag)
29754 }
29755
29756 // ClearTags タグを全クリア
29757 func (o *Switch) ClearTags() {
29758 accessor.ClearTags(o)
29759 }
29760
29761 // GetIconID returns value of IconID
29762 func (o *Switch) GetIconID() types.ID {
29763 return o.IconID
29764 }
29765
29766 // SetIconID sets value to IconID
29767 func (o *Switch) SetIconID(v types.ID) {
29768 o.IconID = v
29769 }
29770
29771 // GetCreatedAt returns value of CreatedAt
29772 func (o *Switch) GetCreatedAt() time.Time {
29773 return o.CreatedAt
29774 }
29775
29776 // SetCreatedAt sets value to CreatedAt
29777 func (o *Switch) SetCreatedAt(v time.Time) {
29778 o.CreatedAt = v
29779 }
29780
29781 // GetModifiedAt returns value of ModifiedAt
29782 func (o *Switch) GetModifiedAt() time.Time {
29783 return o.ModifiedAt
29784 }
29785
29786 // SetModifiedAt sets value to ModifiedAt
29787 func (o *Switch) SetModifiedAt(v time.Time) {
29788 o.ModifiedAt = v
29789 }
29790
29791 // GetScope returns value of Scope
29792 func (o *Switch) GetScope() types.EScope {
29793 return o.Scope
29794 }
29795
29796 // SetScope sets value to Scope
29797 func (o *Switch) SetScope(v types.EScope) {
29798 o.Scope = v
29799 }
29800
29801 // GetServerCount returns value of ServerCount
29802 func (o *Switch) GetServerCount() int {
29803 return o.ServerCount
29804 }
29805
29806 // SetServerCount sets value to ServerCount
29807 func (o *Switch) SetServerCount(v int) {
29808 o.ServerCount = v
29809 }
29810
29811 // GetNetworkMaskLen returns value of NetworkMaskLen
29812 func (o *Switch) GetNetworkMaskLen() int {
29813 return o.NetworkMaskLen
29814 }
29815
29816 // SetNetworkMaskLen sets value to NetworkMaskLen
29817 func (o *Switch) SetNetworkMaskLen(v int) {
29818 o.NetworkMaskLen = v
29819 }
29820
29821 // GetDefaultRoute returns value of DefaultRoute
29822 func (o *Switch) GetDefaultRoute() string {
29823 return o.DefaultRoute
29824 }
29825
29826 // SetDefaultRoute sets value to DefaultRoute
29827 func (o *Switch) SetDefaultRoute(v string) {
29828 o.DefaultRoute = v
29829 }
29830
29831 // GetSubnets returns value of Subnets
29832 func (o *Switch) GetSubnets() []*SwitchSubnet {
29833 return o.Subnets
29834 }
29835
29836 // SetSubnets sets value to Subnets
29837 func (o *Switch) SetSubnets(v []*SwitchSubnet) {
29838 o.Subnets = v
29839 }
29840
29841 // GetBridgeID returns value of BridgeID
29842 func (o *Switch) GetBridgeID() types.ID {
29843 return o.BridgeID
29844 }
29845
29846 // SetBridgeID sets value to BridgeID
29847 func (o *Switch) SetBridgeID(v types.ID) {
29848 o.BridgeID = v
29849 }
29850
29851 // GetHybridConnectionID returns value of HybridConnectionID
29852 func (o *Switch) GetHybridConnectionID() types.ID {
29853 return o.HybridConnectionID
29854 }
29855
29856 // SetHybridConnectionID sets value to HybridConnectionID
29857 func (o *Switch) SetHybridConnectionID(v types.ID) {
29858 o.HybridConnectionID = v
29859 }
29860
29861 /*************************************************
29862 * SwitchSubnet
29863 *************************************************/
29864
29865 // SwitchSubnet represents API parameter/response structure
29866 type SwitchSubnet struct {
29867 ID types.ID
29868 DefaultRoute string
29869 NextHop string
29870 StaticRoute string
29871 NetworkAddress string
29872 NetworkMaskLen int
29873 Internet *Internet
29874 AssignedIPAddressMax string `mapconv:"IPAddresses.Max"`
29875 AssignedIPAddressMin string `mapconv:"IPAddresses.Min"`
29876 }
29877
29878 // setDefaults implements iaas.argumentDefaulter
29879 func (o *SwitchSubnet) setDefaults() interface{} {
29880 return &struct {
29881 ID types.ID
29882 DefaultRoute string
29883 NextHop string
29884 StaticRoute string
29885 NetworkAddress string
29886 NetworkMaskLen int
29887 Internet *Internet
29888 AssignedIPAddressMax string `mapconv:"IPAddresses.Max"`
29889 AssignedIPAddressMin string `mapconv:"IPAddresses.Min"`
29890 }{
29891 ID: o.GetID(),
29892 DefaultRoute: o.GetDefaultRoute(),
29893 NextHop: o.GetNextHop(),
29894 StaticRoute: o.GetStaticRoute(),
29895 NetworkAddress: o.GetNetworkAddress(),
29896 NetworkMaskLen: o.GetNetworkMaskLen(),
29897 Internet: o.GetInternet(),
29898 AssignedIPAddressMax: o.GetAssignedIPAddressMax(),
29899 AssignedIPAddressMin: o.GetAssignedIPAddressMin(),
29900 }
29901 }
29902
29903 // GetAssignedIPAddresses 割り当てられたIPアドレスのリスト
29904 func (o *SwitchSubnet) GetAssignedIPAddresses() []string {
29905 return accessor.GetAssignedIPAddresses(o)
29906 }
29907
29908 // GetID returns value of ID
29909 func (o *SwitchSubnet) GetID() types.ID {
29910 return o.ID
29911 }
29912
29913 // SetID sets value to ID
29914 func (o *SwitchSubnet) SetID(v types.ID) {
29915 o.ID = v
29916 }
29917
29918 // SetStringID .
29919 func (o *SwitchSubnet) SetStringID(id string) {
29920 accessor.SetStringID(o, id)
29921 }
29922
29923 // GetStringID .
29924 func (o *SwitchSubnet) GetStringID() string {
29925 return accessor.GetStringID(o)
29926 }
29927
29928 // SetInt64ID .
29929 func (o *SwitchSubnet) SetInt64ID(id int64) {
29930 accessor.SetInt64ID(o, id)
29931 }
29932
29933 // GetInt64ID .
29934 func (o *SwitchSubnet) GetInt64ID() int64 {
29935 return accessor.GetInt64ID(o)
29936 }
29937
29938 // GetDefaultRoute returns value of DefaultRoute
29939 func (o *SwitchSubnet) GetDefaultRoute() string {
29940 return o.DefaultRoute
29941 }
29942
29943 // SetDefaultRoute sets value to DefaultRoute
29944 func (o *SwitchSubnet) SetDefaultRoute(v string) {
29945 o.DefaultRoute = v
29946 }
29947
29948 // GetNextHop returns value of NextHop
29949 func (o *SwitchSubnet) GetNextHop() string {
29950 return o.NextHop
29951 }
29952
29953 // SetNextHop sets value to NextHop
29954 func (o *SwitchSubnet) SetNextHop(v string) {
29955 o.NextHop = v
29956 }
29957
29958 // GetStaticRoute returns value of StaticRoute
29959 func (o *SwitchSubnet) GetStaticRoute() string {
29960 return o.StaticRoute
29961 }
29962
29963 // SetStaticRoute sets value to StaticRoute
29964 func (o *SwitchSubnet) SetStaticRoute(v string) {
29965 o.StaticRoute = v
29966 }
29967
29968 // GetNetworkAddress returns value of NetworkAddress
29969 func (o *SwitchSubnet) GetNetworkAddress() string {
29970 return o.NetworkAddress
29971 }
29972
29973 // SetNetworkAddress sets value to NetworkAddress
29974 func (o *SwitchSubnet) SetNetworkAddress(v string) {
29975 o.NetworkAddress = v
29976 }
29977
29978 // GetNetworkMaskLen returns value of NetworkMaskLen
29979 func (o *SwitchSubnet) GetNetworkMaskLen() int {
29980 return o.NetworkMaskLen
29981 }
29982
29983 // SetNetworkMaskLen sets value to NetworkMaskLen
29984 func (o *SwitchSubnet) SetNetworkMaskLen(v int) {
29985 o.NetworkMaskLen = v
29986 }
29987
29988 // GetInternet returns value of Internet
29989 func (o *SwitchSubnet) GetInternet() *Internet {
29990 return o.Internet
29991 }
29992
29993 // SetInternet sets value to Internet
29994 func (o *SwitchSubnet) SetInternet(v *Internet) {
29995 o.Internet = v
29996 }
29997
29998 // GetAssignedIPAddressMax returns value of AssignedIPAddressMax
29999 func (o *SwitchSubnet) GetAssignedIPAddressMax() string {
30000 return o.AssignedIPAddressMax
30001 }
30002
30003 // SetAssignedIPAddressMax sets value to AssignedIPAddressMax
30004 func (o *SwitchSubnet) SetAssignedIPAddressMax(v string) {
30005 o.AssignedIPAddressMax = v
30006 }
30007
30008 // GetAssignedIPAddressMin returns value of AssignedIPAddressMin
30009 func (o *SwitchSubnet) GetAssignedIPAddressMin() string {
30010 return o.AssignedIPAddressMin
30011 }
30012
30013 // SetAssignedIPAddressMin sets value to AssignedIPAddressMin
30014 func (o *SwitchSubnet) SetAssignedIPAddressMin(v string) {
30015 o.AssignedIPAddressMin = v
30016 }
30017
30018 /*************************************************
30019 * SwitchCreateRequest
30020 *************************************************/
30021
30022 // SwitchCreateRequest represents API parameter/response structure
30023 type SwitchCreateRequest struct {
30024 Name string
30025 NetworkMaskLen int `mapconv:"UserSubnet.NetworkMaskLen"`
30026 DefaultRoute string `mapconv:"UserSubnet.DefaultRoute"`
30027 Description string
30028 Tags types.Tags
30029 IconID types.ID `mapconv:"Icon.ID"`
30030 }
30031
30032 // setDefaults implements iaas.argumentDefaulter
30033 func (o *SwitchCreateRequest) setDefaults() interface{} {
30034 return &struct {
30035 Name string
30036 NetworkMaskLen int `mapconv:"UserSubnet.NetworkMaskLen"`
30037 DefaultRoute string `mapconv:"UserSubnet.DefaultRoute"`
30038 Description string
30039 Tags types.Tags
30040 IconID types.ID `mapconv:"Icon.ID"`
30041 }{
30042 Name: o.GetName(),
30043 NetworkMaskLen: o.GetNetworkMaskLen(),
30044 DefaultRoute: o.GetDefaultRoute(),
30045 Description: o.GetDescription(),
30046 Tags: o.GetTags(),
30047 IconID: o.GetIconID(),
30048 }
30049 }
30050
30051 // GetName returns value of Name
30052 func (o *SwitchCreateRequest) GetName() string {
30053 return o.Name
30054 }
30055
30056 // SetName sets value to Name
30057 func (o *SwitchCreateRequest) SetName(v string) {
30058 o.Name = v
30059 }
30060
30061 // GetNetworkMaskLen returns value of NetworkMaskLen
30062 func (o *SwitchCreateRequest) GetNetworkMaskLen() int {
30063 return o.NetworkMaskLen
30064 }
30065
30066 // SetNetworkMaskLen sets value to NetworkMaskLen
30067 func (o *SwitchCreateRequest) SetNetworkMaskLen(v int) {
30068 o.NetworkMaskLen = v
30069 }
30070
30071 // GetDefaultRoute returns value of DefaultRoute
30072 func (o *SwitchCreateRequest) GetDefaultRoute() string {
30073 return o.DefaultRoute
30074 }
30075
30076 // SetDefaultRoute sets value to DefaultRoute
30077 func (o *SwitchCreateRequest) SetDefaultRoute(v string) {
30078 o.DefaultRoute = v
30079 }
30080
30081 // GetDescription returns value of Description
30082 func (o *SwitchCreateRequest) GetDescription() string {
30083 return o.Description
30084 }
30085
30086 // SetDescription sets value to Description
30087 func (o *SwitchCreateRequest) SetDescription(v string) {
30088 o.Description = v
30089 }
30090
30091 // GetTags returns value of Tags
30092 func (o *SwitchCreateRequest) GetTags() types.Tags {
30093 return o.Tags
30094 }
30095
30096 // SetTags sets value to Tags
30097 func (o *SwitchCreateRequest) SetTags(v types.Tags) {
30098 o.Tags = v
30099 }
30100
30101 // HasTag 指定のタグが存在する場合trueを返す
30102 func (o *SwitchCreateRequest) HasTag(tag string) bool {
30103 return accessor.HasTag(o, tag)
30104 }
30105
30106 // AppendTag 指定のタグを追加
30107 func (o *SwitchCreateRequest) AppendTag(tag string) {
30108 accessor.AppendTag(o, tag)
30109 }
30110
30111 // RemoveTag 指定のタグを削除
30112 func (o *SwitchCreateRequest) RemoveTag(tag string) {
30113 accessor.RemoveTag(o, tag)
30114 }
30115
30116 // ClearTags タグを全クリア
30117 func (o *SwitchCreateRequest) ClearTags() {
30118 accessor.ClearTags(o)
30119 }
30120
30121 // GetIconID returns value of IconID
30122 func (o *SwitchCreateRequest) GetIconID() types.ID {
30123 return o.IconID
30124 }
30125
30126 // SetIconID sets value to IconID
30127 func (o *SwitchCreateRequest) SetIconID(v types.ID) {
30128 o.IconID = v
30129 }
30130
30131 /*************************************************
30132 * SwitchUpdateRequest
30133 *************************************************/
30134
30135 // SwitchUpdateRequest represents API parameter/response structure
30136 type SwitchUpdateRequest struct {
30137 Name string
30138 NetworkMaskLen int `mapconv:"UserSubnet.NetworkMaskLen"`
30139 DefaultRoute string `mapconv:"UserSubnet.DefaultRoute"`
30140 Description string
30141 Tags types.Tags
30142 IconID types.ID `mapconv:"Icon.ID"`
30143 }
30144
30145 // setDefaults implements iaas.argumentDefaulter
30146 func (o *SwitchUpdateRequest) setDefaults() interface{} {
30147 return &struct {
30148 Name string
30149 NetworkMaskLen int `mapconv:"UserSubnet.NetworkMaskLen"`
30150 DefaultRoute string `mapconv:"UserSubnet.DefaultRoute"`
30151 Description string
30152 Tags types.Tags
30153 IconID types.ID `mapconv:"Icon.ID"`
30154 }{
30155 Name: o.GetName(),
30156 NetworkMaskLen: o.GetNetworkMaskLen(),
30157 DefaultRoute: o.GetDefaultRoute(),
30158 Description: o.GetDescription(),
30159 Tags: o.GetTags(),
30160 IconID: o.GetIconID(),
30161 }
30162 }
30163
30164 // GetName returns value of Name
30165 func (o *SwitchUpdateRequest) GetName() string {
30166 return o.Name
30167 }
30168
30169 // SetName sets value to Name
30170 func (o *SwitchUpdateRequest) SetName(v string) {
30171 o.Name = v
30172 }
30173
30174 // GetNetworkMaskLen returns value of NetworkMaskLen
30175 func (o *SwitchUpdateRequest) GetNetworkMaskLen() int {
30176 return o.NetworkMaskLen
30177 }
30178
30179 // SetNetworkMaskLen sets value to NetworkMaskLen
30180 func (o *SwitchUpdateRequest) SetNetworkMaskLen(v int) {
30181 o.NetworkMaskLen = v
30182 }
30183
30184 // GetDefaultRoute returns value of DefaultRoute
30185 func (o *SwitchUpdateRequest) GetDefaultRoute() string {
30186 return o.DefaultRoute
30187 }
30188
30189 // SetDefaultRoute sets value to DefaultRoute
30190 func (o *SwitchUpdateRequest) SetDefaultRoute(v string) {
30191 o.DefaultRoute = v
30192 }
30193
30194 // GetDescription returns value of Description
30195 func (o *SwitchUpdateRequest) GetDescription() string {
30196 return o.Description
30197 }
30198
30199 // SetDescription sets value to Description
30200 func (o *SwitchUpdateRequest) SetDescription(v string) {
30201 o.Description = v
30202 }
30203
30204 // GetTags returns value of Tags
30205 func (o *SwitchUpdateRequest) GetTags() types.Tags {
30206 return o.Tags
30207 }
30208
30209 // SetTags sets value to Tags
30210 func (o *SwitchUpdateRequest) SetTags(v types.Tags) {
30211 o.Tags = v
30212 }
30213
30214 // HasTag 指定のタグが存在する場合trueを返す
30215 func (o *SwitchUpdateRequest) HasTag(tag string) bool {
30216 return accessor.HasTag(o, tag)
30217 }
30218
30219 // AppendTag 指定のタグを追加
30220 func (o *SwitchUpdateRequest) AppendTag(tag string) {
30221 accessor.AppendTag(o, tag)
30222 }
30223
30224 // RemoveTag 指定のタグを削除
30225 func (o *SwitchUpdateRequest) RemoveTag(tag string) {
30226 accessor.RemoveTag(o, tag)
30227 }
30228
30229 // ClearTags タグを全クリア
30230 func (o *SwitchUpdateRequest) ClearTags() {
30231 accessor.ClearTags(o)
30232 }
30233
30234 // GetIconID returns value of IconID
30235 func (o *SwitchUpdateRequest) GetIconID() types.ID {
30236 return o.IconID
30237 }
30238
30239 // SetIconID sets value to IconID
30240 func (o *SwitchUpdateRequest) SetIconID(v types.ID) {
30241 o.IconID = v
30242 }
30243
30244 /*************************************************
30245 * VPCRouter
30246 *************************************************/
30247
30248 // VPCRouter represents API parameter/response structure
30249 type VPCRouter struct {
30250 ID types.ID
30251 Name string
30252 Description string
30253 Tags types.Tags
30254 Availability types.EAvailability
30255 Class string
30256 IconID types.ID `mapconv:"Icon.ID"`
30257 CreatedAt time.Time
30258 PlanID types.ID `mapconv:"Remark.Plan.ID/Plan.ID"`
30259 Version int `mapconv:"Remark.Router.VPCRouterVersion"`
30260 Settings *VPCRouterSetting `mapconv:",omitempty,recursive"`
30261 SettingsHash string `json:",omitempty" mapconv:",omitempty"`
30262 InstanceHostName string `mapconv:"Instance.Host.Name"`
30263 InstanceHostInfoURL string `mapconv:"Instance.Host.InfoURL"`
30264 InstanceStatus types.EServerInstanceStatus `mapconv:"Instance.Status"`
30265 InstanceStatusChangedAt time.Time `mapconv:"Instance.StatusChangedAt"`
30266 Interfaces []*VPCRouterInterface `json:",omitempty" mapconv:"[]Interfaces,recursive,omitempty"`
30267 ZoneID types.ID `mapconv:"Remark.Zone.ID"`
30268 }
30269
30270 // setDefaults implements iaas.argumentDefaulter
30271 func (o *VPCRouter) setDefaults() interface{} {
30272 return &struct {
30273 ID types.ID
30274 Name string
30275 Description string
30276 Tags types.Tags
30277 Availability types.EAvailability
30278 Class string
30279 IconID types.ID `mapconv:"Icon.ID"`
30280 CreatedAt time.Time
30281 PlanID types.ID `mapconv:"Remark.Plan.ID/Plan.ID"`
30282 Version int `mapconv:"Remark.Router.VPCRouterVersion"`
30283 Settings *VPCRouterSetting `mapconv:",omitempty,recursive"`
30284 SettingsHash string `json:",omitempty" mapconv:",omitempty"`
30285 InstanceHostName string `mapconv:"Instance.Host.Name"`
30286 InstanceHostInfoURL string `mapconv:"Instance.Host.InfoURL"`
30287 InstanceStatus types.EServerInstanceStatus `mapconv:"Instance.Status"`
30288 InstanceStatusChangedAt time.Time `mapconv:"Instance.StatusChangedAt"`
30289 Interfaces []*VPCRouterInterface `json:",omitempty" mapconv:"[]Interfaces,recursive,omitempty"`
30290 ZoneID types.ID `mapconv:"Remark.Zone.ID"`
30291 }{
30292 ID: o.GetID(),
30293 Name: o.GetName(),
30294 Description: o.GetDescription(),
30295 Tags: o.GetTags(),
30296 Availability: o.GetAvailability(),
30297 Class: o.GetClass(),
30298 IconID: o.GetIconID(),
30299 CreatedAt: o.GetCreatedAt(),
30300 PlanID: o.GetPlanID(),
30301 Version: o.GetVersion(),
30302 Settings: o.GetSettings(),
30303 SettingsHash: o.GetSettingsHash(),
30304 InstanceHostName: o.GetInstanceHostName(),
30305 InstanceHostInfoURL: o.GetInstanceHostInfoURL(),
30306 InstanceStatus: o.GetInstanceStatus(),
30307 InstanceStatusChangedAt: o.GetInstanceStatusChangedAt(),
30308 Interfaces: o.GetInterfaces(),
30309 ZoneID: o.GetZoneID(),
30310 }
30311 }
30312
30313 // GetID returns value of ID
30314 func (o *VPCRouter) GetID() types.ID {
30315 return o.ID
30316 }
30317
30318 // SetID sets value to ID
30319 func (o *VPCRouter) SetID(v types.ID) {
30320 o.ID = v
30321 }
30322
30323 // SetStringID .
30324 func (o *VPCRouter) SetStringID(id string) {
30325 accessor.SetStringID(o, id)
30326 }
30327
30328 // GetStringID .
30329 func (o *VPCRouter) GetStringID() string {
30330 return accessor.GetStringID(o)
30331 }
30332
30333 // SetInt64ID .
30334 func (o *VPCRouter) SetInt64ID(id int64) {
30335 accessor.SetInt64ID(o, id)
30336 }
30337
30338 // GetInt64ID .
30339 func (o *VPCRouter) GetInt64ID() int64 {
30340 return accessor.GetInt64ID(o)
30341 }
30342
30343 // GetName returns value of Name
30344 func (o *VPCRouter) GetName() string {
30345 return o.Name
30346 }
30347
30348 // SetName sets value to Name
30349 func (o *VPCRouter) SetName(v string) {
30350 o.Name = v
30351 }
30352
30353 // GetDescription returns value of Description
30354 func (o *VPCRouter) GetDescription() string {
30355 return o.Description
30356 }
30357
30358 // SetDescription sets value to Description
30359 func (o *VPCRouter) SetDescription(v string) {
30360 o.Description = v
30361 }
30362
30363 // GetTags returns value of Tags
30364 func (o *VPCRouter) GetTags() types.Tags {
30365 return o.Tags
30366 }
30367
30368 // SetTags sets value to Tags
30369 func (o *VPCRouter) SetTags(v types.Tags) {
30370 o.Tags = v
30371 }
30372
30373 // HasTag 指定のタグが存在する場合trueを返す
30374 func (o *VPCRouter) HasTag(tag string) bool {
30375 return accessor.HasTag(o, tag)
30376 }
30377
30378 // AppendTag 指定のタグを追加
30379 func (o *VPCRouter) AppendTag(tag string) {
30380 accessor.AppendTag(o, tag)
30381 }
30382
30383 // RemoveTag 指定のタグを削除
30384 func (o *VPCRouter) RemoveTag(tag string) {
30385 accessor.RemoveTag(o, tag)
30386 }
30387
30388 // ClearTags タグを全クリア
30389 func (o *VPCRouter) ClearTags() {
30390 accessor.ClearTags(o)
30391 }
30392
30393 // GetAvailability returns value of Availability
30394 func (o *VPCRouter) GetAvailability() types.EAvailability {
30395 return o.Availability
30396 }
30397
30398 // SetAvailability sets value to Availability
30399 func (o *VPCRouter) SetAvailability(v types.EAvailability) {
30400 o.Availability = v
30401 }
30402
30403 // GetClass returns value of Class
30404 func (o *VPCRouter) GetClass() string {
30405 return o.Class
30406 }
30407
30408 // SetClass sets value to Class
30409 func (o *VPCRouter) SetClass(v string) {
30410 o.Class = v
30411 }
30412
30413 // GetIconID returns value of IconID
30414 func (o *VPCRouter) GetIconID() types.ID {
30415 return o.IconID
30416 }
30417
30418 // SetIconID sets value to IconID
30419 func (o *VPCRouter) SetIconID(v types.ID) {
30420 o.IconID = v
30421 }
30422
30423 // GetCreatedAt returns value of CreatedAt
30424 func (o *VPCRouter) GetCreatedAt() time.Time {
30425 return o.CreatedAt
30426 }
30427
30428 // SetCreatedAt sets value to CreatedAt
30429 func (o *VPCRouter) SetCreatedAt(v time.Time) {
30430 o.CreatedAt = v
30431 }
30432
30433 // GetPlanID returns value of PlanID
30434 func (o *VPCRouter) GetPlanID() types.ID {
30435 return o.PlanID
30436 }
30437
30438 // SetPlanID sets value to PlanID
30439 func (o *VPCRouter) SetPlanID(v types.ID) {
30440 o.PlanID = v
30441 }
30442
30443 // GetVersion returns value of Version
30444 func (o *VPCRouter) GetVersion() int {
30445 if o.Version == 0 {
30446 return 2
30447 }
30448 return o.Version
30449 }
30450
30451 // SetVersion sets value to Version
30452 func (o *VPCRouter) SetVersion(v int) {
30453 o.Version = v
30454 }
30455
30456 // GetSettings returns value of Settings
30457 func (o *VPCRouter) GetSettings() *VPCRouterSetting {
30458 return o.Settings
30459 }
30460
30461 // SetSettings sets value to Settings
30462 func (o *VPCRouter) SetSettings(v *VPCRouterSetting) {
30463 o.Settings = v
30464 }
30465
30466 // GetSettingsHash returns value of SettingsHash
30467 func (o *VPCRouter) GetSettingsHash() string {
30468 return o.SettingsHash
30469 }
30470
30471 // SetSettingsHash sets value to SettingsHash
30472 func (o *VPCRouter) SetSettingsHash(v string) {
30473 o.SettingsHash = v
30474 }
30475
30476 // GetInstanceHostName returns value of InstanceHostName
30477 func (o *VPCRouter) GetInstanceHostName() string {
30478 return o.InstanceHostName
30479 }
30480
30481 // SetInstanceHostName sets value to InstanceHostName
30482 func (o *VPCRouter) SetInstanceHostName(v string) {
30483 o.InstanceHostName = v
30484 }
30485
30486 // GetInstanceHostInfoURL returns value of InstanceHostInfoURL
30487 func (o *VPCRouter) GetInstanceHostInfoURL() string {
30488 return o.InstanceHostInfoURL
30489 }
30490
30491 // SetInstanceHostInfoURL sets value to InstanceHostInfoURL
30492 func (o *VPCRouter) SetInstanceHostInfoURL(v string) {
30493 o.InstanceHostInfoURL = v
30494 }
30495
30496 // GetInstanceStatus returns value of InstanceStatus
30497 func (o *VPCRouter) GetInstanceStatus() types.EServerInstanceStatus {
30498 return o.InstanceStatus
30499 }
30500
30501 // SetInstanceStatus sets value to InstanceStatus
30502 func (o *VPCRouter) SetInstanceStatus(v types.EServerInstanceStatus) {
30503 o.InstanceStatus = v
30504 }
30505
30506 // GetInstanceStatusChangedAt returns value of InstanceStatusChangedAt
30507 func (o *VPCRouter) GetInstanceStatusChangedAt() time.Time {
30508 return o.InstanceStatusChangedAt
30509 }
30510
30511 // SetInstanceStatusChangedAt sets value to InstanceStatusChangedAt
30512 func (o *VPCRouter) SetInstanceStatusChangedAt(v time.Time) {
30513 o.InstanceStatusChangedAt = v
30514 }
30515
30516 // GetInterfaces returns value of Interfaces
30517 func (o *VPCRouter) GetInterfaces() []*VPCRouterInterface {
30518 return o.Interfaces
30519 }
30520
30521 // SetInterfaces sets value to Interfaces
30522 func (o *VPCRouter) SetInterfaces(v []*VPCRouterInterface) {
30523 o.Interfaces = v
30524 }
30525
30526 // GetZoneID returns value of ZoneID
30527 func (o *VPCRouter) GetZoneID() types.ID {
30528 return o.ZoneID
30529 }
30530
30531 // SetZoneID sets value to ZoneID
30532 func (o *VPCRouter) SetZoneID(v types.ID) {
30533 o.ZoneID = v
30534 }
30535
30536 /*************************************************
30537 * VPCRouterSetting
30538 *************************************************/
30539
30540 // VPCRouterSetting represents API parameter/response structure
30541 type VPCRouterSetting struct {
30542 VRID int `json:",omitempty" mapconv:"Router.VRID"`
30543 InternetConnectionEnabled types.StringFlag `mapconv:"Router.InternetConnection.Enabled"`
30544 Interfaces []*VPCRouterInterfaceSetting `mapconv:"Router.[]Interfaces,omitempty,recursive"`
30545 StaticNAT []*VPCRouterStaticNAT `mapconv:"Router.StaticNAT.[]Config,omitempty,recursive"`
30546 PortForwarding []*VPCRouterPortForwarding `mapconv:"Router.PortForwarding.[]Config,omitempty,recursive"`
30547 Firewall []*VPCRouterFirewall `mapconv:"Router.Firewall.[]Config,omitempty,recursive"`
30548 DHCPServer []*VPCRouterDHCPServer `mapconv:"Router.DHCPServer.[]Config,omitempty,recursive"`
30549 DHCPStaticMapping []*VPCRouterDHCPStaticMapping `mapconv:"Router.DHCPStaticMapping.[]Config,omitempty,recursive"`
30550 DNSForwarding *VPCRouterDNSForwarding `mapconv:"Router.DNSForwarding,omitempty,recursive"`
30551 PPTPServer *VPCRouterPPTPServer `mapconv:"Router.PPTPServer.Config,omitempty,recursive"`
30552 PPTPServerEnabled types.StringFlag `mapconv:"Router.PPTPServer.Enabled"`
30553 L2TPIPsecServer *VPCRouterL2TPIPsecServer `mapconv:"Router.L2TPIPsecServer.Config,omitempty,recursive"`
30554 L2TPIPsecServerEnabled types.StringFlag `mapconv:"Router.L2TPIPsecServer.Enabled"`
30555 WireGuard *VPCRouterWireGuard `mapconv:"Router.WireGuard.Config,omitempty,recursive"`
30556 WireGuardEnabled types.StringFlag `mapconv:"Router.WireGuard.Enabled"`
30557 RemoteAccessUsers []*VPCRouterRemoteAccessUser `mapconv:"Router.RemoteAccessUsers.[]Config,omitempty,recursive"`
30558 SiteToSiteIPsecVPN *VPCRouterSiteToSiteIPsecVPN `mapconv:"Router.SiteToSiteIPsecVPN,omitempty,recursive"`
30559 StaticRoute []*VPCRouterStaticRoute `mapconv:"Router.StaticRoutes.[]Config,omitempty,recursive"`
30560 SyslogHost string `mapconv:"Router.SyslogHost"`
30561 ScheduledMaintenance *VPCRouterScheduledMaintenance `mapconv:"Router.ScheduledMaintenance,omitempty,recursive"`
30562 MonitoringSuite *MonitoringSuite `mapconv:"Router.MonitoringSuite,omitempty,recursive"`
30563 }
30564
30565 // setDefaults implements iaas.argumentDefaulter
30566 func (o *VPCRouterSetting) setDefaults() interface{} {
30567 return &struct {
30568 VRID int `json:",omitempty" mapconv:"Router.VRID"`
30569 InternetConnectionEnabled types.StringFlag `mapconv:"Router.InternetConnection.Enabled"`
30570 Interfaces []*VPCRouterInterfaceSetting `mapconv:"Router.[]Interfaces,omitempty,recursive"`
30571 StaticNAT []*VPCRouterStaticNAT `mapconv:"Router.StaticNAT.[]Config,omitempty,recursive"`
30572 PortForwarding []*VPCRouterPortForwarding `mapconv:"Router.PortForwarding.[]Config,omitempty,recursive"`
30573 Firewall []*VPCRouterFirewall `mapconv:"Router.Firewall.[]Config,omitempty,recursive"`
30574 DHCPServer []*VPCRouterDHCPServer `mapconv:"Router.DHCPServer.[]Config,omitempty,recursive"`
30575 DHCPStaticMapping []*VPCRouterDHCPStaticMapping `mapconv:"Router.DHCPStaticMapping.[]Config,omitempty,recursive"`
30576 DNSForwarding *VPCRouterDNSForwarding `mapconv:"Router.DNSForwarding,omitempty,recursive"`
30577 PPTPServer *VPCRouterPPTPServer `mapconv:"Router.PPTPServer.Config,omitempty,recursive"`
30578 PPTPServerEnabled types.StringFlag `mapconv:"Router.PPTPServer.Enabled"`
30579 L2TPIPsecServer *VPCRouterL2TPIPsecServer `mapconv:"Router.L2TPIPsecServer.Config,omitempty,recursive"`
30580 L2TPIPsecServerEnabled types.StringFlag `mapconv:"Router.L2TPIPsecServer.Enabled"`
30581 WireGuard *VPCRouterWireGuard `mapconv:"Router.WireGuard.Config,omitempty,recursive"`
30582 WireGuardEnabled types.StringFlag `mapconv:"Router.WireGuard.Enabled"`
30583 RemoteAccessUsers []*VPCRouterRemoteAccessUser `mapconv:"Router.RemoteAccessUsers.[]Config,omitempty,recursive"`
30584 SiteToSiteIPsecVPN *VPCRouterSiteToSiteIPsecVPN `mapconv:"Router.SiteToSiteIPsecVPN,omitempty,recursive"`
30585 StaticRoute []*VPCRouterStaticRoute `mapconv:"Router.StaticRoutes.[]Config,omitempty,recursive"`
30586 SyslogHost string `mapconv:"Router.SyslogHost"`
30587 ScheduledMaintenance *VPCRouterScheduledMaintenance `mapconv:"Router.ScheduledMaintenance,omitempty,recursive"`
30588 MonitoringSuite *MonitoringSuite `mapconv:"Router.MonitoringSuite,omitempty,recursive"`
30589 }{
30590 VRID: o.GetVRID(),
30591 InternetConnectionEnabled: o.GetInternetConnectionEnabled(),
30592 Interfaces: o.GetInterfaces(),
30593 StaticNAT: o.GetStaticNAT(),
30594 PortForwarding: o.GetPortForwarding(),
30595 Firewall: o.GetFirewall(),
30596 DHCPServer: o.GetDHCPServer(),
30597 DHCPStaticMapping: o.GetDHCPStaticMapping(),
30598 DNSForwarding: o.GetDNSForwarding(),
30599 PPTPServer: o.GetPPTPServer(),
30600 PPTPServerEnabled: o.GetPPTPServerEnabled(),
30601 L2TPIPsecServer: o.GetL2TPIPsecServer(),
30602 L2TPIPsecServerEnabled: o.GetL2TPIPsecServerEnabled(),
30603 WireGuard: o.GetWireGuard(),
30604 WireGuardEnabled: o.GetWireGuardEnabled(),
30605 RemoteAccessUsers: o.GetRemoteAccessUsers(),
30606 SiteToSiteIPsecVPN: o.GetSiteToSiteIPsecVPN(),
30607 StaticRoute: o.GetStaticRoute(),
30608 SyslogHost: o.GetSyslogHost(),
30609 ScheduledMaintenance: o.GetScheduledMaintenance(),
30610 MonitoringSuite: o.GetMonitoringSuite(),
30611 }
30612 }
30613
30614 // GetVRID returns value of VRID
30615 func (o *VPCRouterSetting) GetVRID() int {
30616 return o.VRID
30617 }
30618
30619 // SetVRID sets value to VRID
30620 func (o *VPCRouterSetting) SetVRID(v int) {
30621 o.VRID = v
30622 }
30623
30624 // GetInternetConnectionEnabled returns value of InternetConnectionEnabled
30625 func (o *VPCRouterSetting) GetInternetConnectionEnabled() types.StringFlag {
30626 return o.InternetConnectionEnabled
30627 }
30628
30629 // SetInternetConnectionEnabled sets value to InternetConnectionEnabled
30630 func (o *VPCRouterSetting) SetInternetConnectionEnabled(v types.StringFlag) {
30631 o.InternetConnectionEnabled = v
30632 }
30633
30634 // GetInterfaces returns value of Interfaces
30635 func (o *VPCRouterSetting) GetInterfaces() []*VPCRouterInterfaceSetting {
30636 return o.Interfaces
30637 }
30638
30639 // SetInterfaces sets value to Interfaces
30640 func (o *VPCRouterSetting) SetInterfaces(v []*VPCRouterInterfaceSetting) {
30641 o.Interfaces = v
30642 }
30643
30644 // GetStaticNAT returns value of StaticNAT
30645 func (o *VPCRouterSetting) GetStaticNAT() []*VPCRouterStaticNAT {
30646 return o.StaticNAT
30647 }
30648
30649 // SetStaticNAT sets value to StaticNAT
30650 func (o *VPCRouterSetting) SetStaticNAT(v []*VPCRouterStaticNAT) {
30651 o.StaticNAT = v
30652 }
30653
30654 // GetPortForwarding returns value of PortForwarding
30655 func (o *VPCRouterSetting) GetPortForwarding() []*VPCRouterPortForwarding {
30656 return o.PortForwarding
30657 }
30658
30659 // SetPortForwarding sets value to PortForwarding
30660 func (o *VPCRouterSetting) SetPortForwarding(v []*VPCRouterPortForwarding) {
30661 o.PortForwarding = v
30662 }
30663
30664 // GetFirewall returns value of Firewall
30665 func (o *VPCRouterSetting) GetFirewall() []*VPCRouterFirewall {
30666 return o.Firewall
30667 }
30668
30669 // SetFirewall sets value to Firewall
30670 func (o *VPCRouterSetting) SetFirewall(v []*VPCRouterFirewall) {
30671 o.Firewall = v
30672 }
30673
30674 // GetDHCPServer returns value of DHCPServer
30675 func (o *VPCRouterSetting) GetDHCPServer() []*VPCRouterDHCPServer {
30676 return o.DHCPServer
30677 }
30678
30679 // SetDHCPServer sets value to DHCPServer
30680 func (o *VPCRouterSetting) SetDHCPServer(v []*VPCRouterDHCPServer) {
30681 o.DHCPServer = v
30682 }
30683
30684 // GetDHCPStaticMapping returns value of DHCPStaticMapping
30685 func (o *VPCRouterSetting) GetDHCPStaticMapping() []*VPCRouterDHCPStaticMapping {
30686 return o.DHCPStaticMapping
30687 }
30688
30689 // SetDHCPStaticMapping sets value to DHCPStaticMapping
30690 func (o *VPCRouterSetting) SetDHCPStaticMapping(v []*VPCRouterDHCPStaticMapping) {
30691 o.DHCPStaticMapping = v
30692 }
30693
30694 // GetDNSForwarding returns value of DNSForwarding
30695 func (o *VPCRouterSetting) GetDNSForwarding() *VPCRouterDNSForwarding {
30696 return o.DNSForwarding
30697 }
30698
30699 // SetDNSForwarding sets value to DNSForwarding
30700 func (o *VPCRouterSetting) SetDNSForwarding(v *VPCRouterDNSForwarding) {
30701 o.DNSForwarding = v
30702 }
30703
30704 // GetPPTPServer returns value of PPTPServer
30705 func (o *VPCRouterSetting) GetPPTPServer() *VPCRouterPPTPServer {
30706 return o.PPTPServer
30707 }
30708
30709 // SetPPTPServer sets value to PPTPServer
30710 func (o *VPCRouterSetting) SetPPTPServer(v *VPCRouterPPTPServer) {
30711 o.PPTPServer = v
30712 }
30713
30714 // GetPPTPServerEnabled returns value of PPTPServerEnabled
30715 func (o *VPCRouterSetting) GetPPTPServerEnabled() types.StringFlag {
30716 return o.PPTPServerEnabled
30717 }
30718
30719 // SetPPTPServerEnabled sets value to PPTPServerEnabled
30720 func (o *VPCRouterSetting) SetPPTPServerEnabled(v types.StringFlag) {
30721 o.PPTPServerEnabled = v
30722 }
30723
30724 // GetL2TPIPsecServer returns value of L2TPIPsecServer
30725 func (o *VPCRouterSetting) GetL2TPIPsecServer() *VPCRouterL2TPIPsecServer {
30726 return o.L2TPIPsecServer
30727 }
30728
30729 // SetL2TPIPsecServer sets value to L2TPIPsecServer
30730 func (o *VPCRouterSetting) SetL2TPIPsecServer(v *VPCRouterL2TPIPsecServer) {
30731 o.L2TPIPsecServer = v
30732 }
30733
30734 // GetL2TPIPsecServerEnabled returns value of L2TPIPsecServerEnabled
30735 func (o *VPCRouterSetting) GetL2TPIPsecServerEnabled() types.StringFlag {
30736 return o.L2TPIPsecServerEnabled
30737 }
30738
30739 // SetL2TPIPsecServerEnabled sets value to L2TPIPsecServerEnabled
30740 func (o *VPCRouterSetting) SetL2TPIPsecServerEnabled(v types.StringFlag) {
30741 o.L2TPIPsecServerEnabled = v
30742 }
30743
30744 // GetWireGuard returns value of WireGuard
30745 func (o *VPCRouterSetting) GetWireGuard() *VPCRouterWireGuard {
30746 return o.WireGuard
30747 }
30748
30749 // SetWireGuard sets value to WireGuard
30750 func (o *VPCRouterSetting) SetWireGuard(v *VPCRouterWireGuard) {
30751 o.WireGuard = v
30752 }
30753
30754 // GetWireGuardEnabled returns value of WireGuardEnabled
30755 func (o *VPCRouterSetting) GetWireGuardEnabled() types.StringFlag {
30756 return o.WireGuardEnabled
30757 }
30758
30759 // SetWireGuardEnabled sets value to WireGuardEnabled
30760 func (o *VPCRouterSetting) SetWireGuardEnabled(v types.StringFlag) {
30761 o.WireGuardEnabled = v
30762 }
30763
30764 // GetRemoteAccessUsers returns value of RemoteAccessUsers
30765 func (o *VPCRouterSetting) GetRemoteAccessUsers() []*VPCRouterRemoteAccessUser {
30766 return o.RemoteAccessUsers
30767 }
30768
30769 // SetRemoteAccessUsers sets value to RemoteAccessUsers
30770 func (o *VPCRouterSetting) SetRemoteAccessUsers(v []*VPCRouterRemoteAccessUser) {
30771 o.RemoteAccessUsers = v
30772 }
30773
30774 // GetSiteToSiteIPsecVPN returns value of SiteToSiteIPsecVPN
30775 func (o *VPCRouterSetting) GetSiteToSiteIPsecVPN() *VPCRouterSiteToSiteIPsecVPN {
30776 return o.SiteToSiteIPsecVPN
30777 }
30778
30779 // SetSiteToSiteIPsecVPN sets value to SiteToSiteIPsecVPN
30780 func (o *VPCRouterSetting) SetSiteToSiteIPsecVPN(v *VPCRouterSiteToSiteIPsecVPN) {
30781 o.SiteToSiteIPsecVPN = v
30782 }
30783
30784 // GetStaticRoute returns value of StaticRoute
30785 func (o *VPCRouterSetting) GetStaticRoute() []*VPCRouterStaticRoute {
30786 return o.StaticRoute
30787 }
30788
30789 // SetStaticRoute sets value to StaticRoute
30790 func (o *VPCRouterSetting) SetStaticRoute(v []*VPCRouterStaticRoute) {
30791 o.StaticRoute = v
30792 }
30793
30794 // GetSyslogHost returns value of SyslogHost
30795 func (o *VPCRouterSetting) GetSyslogHost() string {
30796 return o.SyslogHost
30797 }
30798
30799 // SetSyslogHost sets value to SyslogHost
30800 func (o *VPCRouterSetting) SetSyslogHost(v string) {
30801 o.SyslogHost = v
30802 }
30803
30804 // GetScheduledMaintenance returns value of ScheduledMaintenance
30805 func (o *VPCRouterSetting) GetScheduledMaintenance() *VPCRouterScheduledMaintenance {
30806 return o.ScheduledMaintenance
30807 }
30808
30809 // SetScheduledMaintenance sets value to ScheduledMaintenance
30810 func (o *VPCRouterSetting) SetScheduledMaintenance(v *VPCRouterScheduledMaintenance) {
30811 o.ScheduledMaintenance = v
30812 }
30813
30814 // GetMonitoringSuite returns value of MonitoringSuite
30815 func (o *VPCRouterSetting) GetMonitoringSuite() *MonitoringSuite {
30816 return o.MonitoringSuite
30817 }
30818
30819 // SetMonitoringSuite sets value to MonitoringSuite
30820 func (o *VPCRouterSetting) SetMonitoringSuite(v *MonitoringSuite) {
30821 o.MonitoringSuite = v
30822 }
30823
30824 /*************************************************
30825 * VPCRouterInterfaceSetting
30826 *************************************************/
30827
30828 // VPCRouterInterfaceSetting represents API parameter/response structure
30829 type VPCRouterInterfaceSetting struct {
30830 IPAddress []string
30831 VirtualIPAddress string
30832 IPAliases []string
30833 NetworkMaskLen int
30834 Index int
30835 }
30836
30837 // setDefaults implements iaas.argumentDefaulter
30838 func (o *VPCRouterInterfaceSetting) setDefaults() interface{} {
30839 return &struct {
30840 IPAddress []string
30841 VirtualIPAddress string
30842 IPAliases []string
30843 NetworkMaskLen int
30844 Index int
30845 }{
30846 IPAddress: o.GetIPAddress(),
30847 VirtualIPAddress: o.GetVirtualIPAddress(),
30848 IPAliases: o.GetIPAliases(),
30849 NetworkMaskLen: o.GetNetworkMaskLen(),
30850 Index: o.GetIndex(),
30851 }
30852 }
30853
30854 // GetIPAddress returns value of IPAddress
30855 func (o *VPCRouterInterfaceSetting) GetIPAddress() []string {
30856 return o.IPAddress
30857 }
30858
30859 // SetIPAddress sets value to IPAddress
30860 func (o *VPCRouterInterfaceSetting) SetIPAddress(v []string) {
30861 o.IPAddress = v
30862 }
30863
30864 // GetVirtualIPAddress returns value of VirtualIPAddress
30865 func (o *VPCRouterInterfaceSetting) GetVirtualIPAddress() string {
30866 return o.VirtualIPAddress
30867 }
30868
30869 // SetVirtualIPAddress sets value to VirtualIPAddress
30870 func (o *VPCRouterInterfaceSetting) SetVirtualIPAddress(v string) {
30871 o.VirtualIPAddress = v
30872 }
30873
30874 // GetIPAliases returns value of IPAliases
30875 func (o *VPCRouterInterfaceSetting) GetIPAliases() []string {
30876 return o.IPAliases
30877 }
30878
30879 // SetIPAliases sets value to IPAliases
30880 func (o *VPCRouterInterfaceSetting) SetIPAliases(v []string) {
30881 o.IPAliases = v
30882 }
30883
30884 // GetNetworkMaskLen returns value of NetworkMaskLen
30885 func (o *VPCRouterInterfaceSetting) GetNetworkMaskLen() int {
30886 return o.NetworkMaskLen
30887 }
30888
30889 // SetNetworkMaskLen sets value to NetworkMaskLen
30890 func (o *VPCRouterInterfaceSetting) SetNetworkMaskLen(v int) {
30891 o.NetworkMaskLen = v
30892 }
30893
30894 // GetIndex returns value of Index
30895 func (o *VPCRouterInterfaceSetting) GetIndex() int {
30896 return o.Index
30897 }
30898
30899 // SetIndex sets value to Index
30900 func (o *VPCRouterInterfaceSetting) SetIndex(v int) {
30901 o.Index = v
30902 }
30903
30904 /*************************************************
30905 * VPCRouterStaticNAT
30906 *************************************************/
30907
30908 // VPCRouterStaticNAT represents API parameter/response structure
30909 type VPCRouterStaticNAT struct {
30910 GlobalAddress string `mapconv:"GlobalAddress"`
30911 PrivateAddress string `mapconv:"PrivateAddress"`
30912 Description string
30913 }
30914
30915 // setDefaults implements iaas.argumentDefaulter
30916 func (o *VPCRouterStaticNAT) setDefaults() interface{} {
30917 return &struct {
30918 GlobalAddress string `mapconv:"GlobalAddress"`
30919 PrivateAddress string `mapconv:"PrivateAddress"`
30920 Description string
30921 }{
30922 GlobalAddress: o.GetGlobalAddress(),
30923 PrivateAddress: o.GetPrivateAddress(),
30924 Description: o.GetDescription(),
30925 }
30926 }
30927
30928 // GetGlobalAddress returns value of GlobalAddress
30929 func (o *VPCRouterStaticNAT) GetGlobalAddress() string {
30930 return o.GlobalAddress
30931 }
30932
30933 // SetGlobalAddress sets value to GlobalAddress
30934 func (o *VPCRouterStaticNAT) SetGlobalAddress(v string) {
30935 o.GlobalAddress = v
30936 }
30937
30938 // GetPrivateAddress returns value of PrivateAddress
30939 func (o *VPCRouterStaticNAT) GetPrivateAddress() string {
30940 return o.PrivateAddress
30941 }
30942
30943 // SetPrivateAddress sets value to PrivateAddress
30944 func (o *VPCRouterStaticNAT) SetPrivateAddress(v string) {
30945 o.PrivateAddress = v
30946 }
30947
30948 // GetDescription returns value of Description
30949 func (o *VPCRouterStaticNAT) GetDescription() string {
30950 return o.Description
30951 }
30952
30953 // SetDescription sets value to Description
30954 func (o *VPCRouterStaticNAT) SetDescription(v string) {
30955 o.Description = v
30956 }
30957
30958 /*************************************************
30959 * VPCRouterPortForwarding
30960 *************************************************/
30961
30962 // VPCRouterPortForwarding represents API parameter/response structure
30963 type VPCRouterPortForwarding struct {
30964 Protocol types.EVPCRouterPortForwardingProtocol
30965 GlobalPort types.StringNumber
30966 PrivateAddress string `mapconv:"PrivateAddress"`
30967 PrivatePort types.StringNumber
30968 Description string
30969 }
30970
30971 // setDefaults implements iaas.argumentDefaulter
30972 func (o *VPCRouterPortForwarding) setDefaults() interface{} {
30973 return &struct {
30974 Protocol types.EVPCRouterPortForwardingProtocol
30975 GlobalPort types.StringNumber
30976 PrivateAddress string `mapconv:"PrivateAddress"`
30977 PrivatePort types.StringNumber
30978 Description string
30979 }{
30980 Protocol: o.GetProtocol(),
30981 GlobalPort: o.GetGlobalPort(),
30982 PrivateAddress: o.GetPrivateAddress(),
30983 PrivatePort: o.GetPrivatePort(),
30984 Description: o.GetDescription(),
30985 }
30986 }
30987
30988 // GetProtocol returns value of Protocol
30989 func (o *VPCRouterPortForwarding) GetProtocol() types.EVPCRouterPortForwardingProtocol {
30990 return o.Protocol
30991 }
30992
30993 // SetProtocol sets value to Protocol
30994 func (o *VPCRouterPortForwarding) SetProtocol(v types.EVPCRouterPortForwardingProtocol) {
30995 o.Protocol = v
30996 }
30997
30998 // GetGlobalPort returns value of GlobalPort
30999 func (o *VPCRouterPortForwarding) GetGlobalPort() types.StringNumber {
31000 return o.GlobalPort
31001 }
31002
31003 // SetGlobalPort sets value to GlobalPort
31004 func (o *VPCRouterPortForwarding) SetGlobalPort(v types.StringNumber) {
31005 o.GlobalPort = v
31006 }
31007
31008 // GetPrivateAddress returns value of PrivateAddress
31009 func (o *VPCRouterPortForwarding) GetPrivateAddress() string {
31010 return o.PrivateAddress
31011 }
31012
31013 // SetPrivateAddress sets value to PrivateAddress
31014 func (o *VPCRouterPortForwarding) SetPrivateAddress(v string) {
31015 o.PrivateAddress = v
31016 }
31017
31018 // GetPrivatePort returns value of PrivatePort
31019 func (o *VPCRouterPortForwarding) GetPrivatePort() types.StringNumber {
31020 return o.PrivatePort
31021 }
31022
31023 // SetPrivatePort sets value to PrivatePort
31024 func (o *VPCRouterPortForwarding) SetPrivatePort(v types.StringNumber) {
31025 o.PrivatePort = v
31026 }
31027
31028 // GetDescription returns value of Description
31029 func (o *VPCRouterPortForwarding) GetDescription() string {
31030 return o.Description
31031 }
31032
31033 // SetDescription sets value to Description
31034 func (o *VPCRouterPortForwarding) SetDescription(v string) {
31035 o.Description = v
31036 }
31037
31038 /*************************************************
31039 * VPCRouterFirewall
31040 *************************************************/
31041
31042 // VPCRouterFirewall represents API parameter/response structure
31043 type VPCRouterFirewall struct {
31044 Send []*VPCRouterFirewallRule
31045 Receive []*VPCRouterFirewallRule
31046 Index int
31047 }
31048
31049 // setDefaults implements iaas.argumentDefaulter
31050 func (o *VPCRouterFirewall) setDefaults() interface{} {
31051 return &struct {
31052 Send []*VPCRouterFirewallRule
31053 Receive []*VPCRouterFirewallRule
31054 Index int
31055 }{
31056 Send: o.GetSend(),
31057 Receive: o.GetReceive(),
31058 Index: o.GetIndex(),
31059 }
31060 }
31061
31062 // GetSend returns value of Send
31063 func (o *VPCRouterFirewall) GetSend() []*VPCRouterFirewallRule {
31064 return o.Send
31065 }
31066
31067 // SetSend sets value to Send
31068 func (o *VPCRouterFirewall) SetSend(v []*VPCRouterFirewallRule) {
31069 o.Send = v
31070 }
31071
31072 // GetReceive returns value of Receive
31073 func (o *VPCRouterFirewall) GetReceive() []*VPCRouterFirewallRule {
31074 return o.Receive
31075 }
31076
31077 // SetReceive sets value to Receive
31078 func (o *VPCRouterFirewall) SetReceive(v []*VPCRouterFirewallRule) {
31079 o.Receive = v
31080 }
31081
31082 // GetIndex returns value of Index
31083 func (o *VPCRouterFirewall) GetIndex() int {
31084 return o.Index
31085 }
31086
31087 // SetIndex sets value to Index
31088 func (o *VPCRouterFirewall) SetIndex(v int) {
31089 o.Index = v
31090 }
31091
31092 /*************************************************
31093 * VPCRouterFirewallRule
31094 *************************************************/
31095
31096 // VPCRouterFirewallRule represents API parameter/response structure
31097 type VPCRouterFirewallRule struct {
31098 Protocol types.Protocol
31099 SourceNetwork types.VPCFirewallNetwork
31100 SourcePort types.VPCFirewallPort
31101 DestinationNetwork types.VPCFirewallNetwork
31102 DestinationPort types.VPCFirewallPort
31103 Action types.Action
31104 Logging types.StringFlag
31105 Description string
31106 }
31107
31108 // setDefaults implements iaas.argumentDefaulter
31109 func (o *VPCRouterFirewallRule) setDefaults() interface{} {
31110 return &struct {
31111 Protocol types.Protocol
31112 SourceNetwork types.VPCFirewallNetwork
31113 SourcePort types.VPCFirewallPort
31114 DestinationNetwork types.VPCFirewallNetwork
31115 DestinationPort types.VPCFirewallPort
31116 Action types.Action
31117 Logging types.StringFlag
31118 Description string
31119 }{
31120 Protocol: o.GetProtocol(),
31121 SourceNetwork: o.GetSourceNetwork(),
31122 SourcePort: o.GetSourcePort(),
31123 DestinationNetwork: o.GetDestinationNetwork(),
31124 DestinationPort: o.GetDestinationPort(),
31125 Action: o.GetAction(),
31126 Logging: o.GetLogging(),
31127 Description: o.GetDescription(),
31128 }
31129 }
31130
31131 // GetProtocol returns value of Protocol
31132 func (o *VPCRouterFirewallRule) GetProtocol() types.Protocol {
31133 return o.Protocol
31134 }
31135
31136 // SetProtocol sets value to Protocol
31137 func (o *VPCRouterFirewallRule) SetProtocol(v types.Protocol) {
31138 o.Protocol = v
31139 }
31140
31141 // GetSourceNetwork returns value of SourceNetwork
31142 func (o *VPCRouterFirewallRule) GetSourceNetwork() types.VPCFirewallNetwork {
31143 return o.SourceNetwork
31144 }
31145
31146 // SetSourceNetwork sets value to SourceNetwork
31147 func (o *VPCRouterFirewallRule) SetSourceNetwork(v types.VPCFirewallNetwork) {
31148 o.SourceNetwork = v
31149 }
31150
31151 // GetSourcePort returns value of SourcePort
31152 func (o *VPCRouterFirewallRule) GetSourcePort() types.VPCFirewallPort {
31153 return o.SourcePort
31154 }
31155
31156 // SetSourcePort sets value to SourcePort
31157 func (o *VPCRouterFirewallRule) SetSourcePort(v types.VPCFirewallPort) {
31158 o.SourcePort = v
31159 }
31160
31161 // GetDestinationNetwork returns value of DestinationNetwork
31162 func (o *VPCRouterFirewallRule) GetDestinationNetwork() types.VPCFirewallNetwork {
31163 return o.DestinationNetwork
31164 }
31165
31166 // SetDestinationNetwork sets value to DestinationNetwork
31167 func (o *VPCRouterFirewallRule) SetDestinationNetwork(v types.VPCFirewallNetwork) {
31168 o.DestinationNetwork = v
31169 }
31170
31171 // GetDestinationPort returns value of DestinationPort
31172 func (o *VPCRouterFirewallRule) GetDestinationPort() types.VPCFirewallPort {
31173 return o.DestinationPort
31174 }
31175
31176 // SetDestinationPort sets value to DestinationPort
31177 func (o *VPCRouterFirewallRule) SetDestinationPort(v types.VPCFirewallPort) {
31178 o.DestinationPort = v
31179 }
31180
31181 // GetAction returns value of Action
31182 func (o *VPCRouterFirewallRule) GetAction() types.Action {
31183 return o.Action
31184 }
31185
31186 // SetAction sets value to Action
31187 func (o *VPCRouterFirewallRule) SetAction(v types.Action) {
31188 o.Action = v
31189 }
31190
31191 // GetLogging returns value of Logging
31192 func (o *VPCRouterFirewallRule) GetLogging() types.StringFlag {
31193 return o.Logging
31194 }
31195
31196 // SetLogging sets value to Logging
31197 func (o *VPCRouterFirewallRule) SetLogging(v types.StringFlag) {
31198 o.Logging = v
31199 }
31200
31201 // GetDescription returns value of Description
31202 func (o *VPCRouterFirewallRule) GetDescription() string {
31203 return o.Description
31204 }
31205
31206 // SetDescription sets value to Description
31207 func (o *VPCRouterFirewallRule) SetDescription(v string) {
31208 o.Description = v
31209 }
31210
31211 /*************************************************
31212 * VPCRouterDHCPServer
31213 *************************************************/
31214
31215 // VPCRouterDHCPServer represents API parameter/response structure
31216 type VPCRouterDHCPServer struct {
31217 Interface string
31218 RangeStart string
31219 RangeStop string
31220 DNSServers []string
31221 }
31222
31223 // setDefaults implements iaas.argumentDefaulter
31224 func (o *VPCRouterDHCPServer) setDefaults() interface{} {
31225 return &struct {
31226 Interface string
31227 RangeStart string
31228 RangeStop string
31229 DNSServers []string
31230 }{
31231 Interface: o.GetInterface(),
31232 RangeStart: o.GetRangeStart(),
31233 RangeStop: o.GetRangeStop(),
31234 DNSServers: o.GetDNSServers(),
31235 }
31236 }
31237
31238 // GetInterface returns value of Interface
31239 func (o *VPCRouterDHCPServer) GetInterface() string {
31240 return o.Interface
31241 }
31242
31243 // SetInterface sets value to Interface
31244 func (o *VPCRouterDHCPServer) SetInterface(v string) {
31245 o.Interface = v
31246 }
31247
31248 // GetRangeStart returns value of RangeStart
31249 func (o *VPCRouterDHCPServer) GetRangeStart() string {
31250 return o.RangeStart
31251 }
31252
31253 // SetRangeStart sets value to RangeStart
31254 func (o *VPCRouterDHCPServer) SetRangeStart(v string) {
31255 o.RangeStart = v
31256 }
31257
31258 // GetRangeStop returns value of RangeStop
31259 func (o *VPCRouterDHCPServer) GetRangeStop() string {
31260 return o.RangeStop
31261 }
31262
31263 // SetRangeStop sets value to RangeStop
31264 func (o *VPCRouterDHCPServer) SetRangeStop(v string) {
31265 o.RangeStop = v
31266 }
31267
31268 // GetDNSServers returns value of DNSServers
31269 func (o *VPCRouterDHCPServer) GetDNSServers() []string {
31270 return o.DNSServers
31271 }
31272
31273 // SetDNSServers sets value to DNSServers
31274 func (o *VPCRouterDHCPServer) SetDNSServers(v []string) {
31275 o.DNSServers = v
31276 }
31277
31278 /*************************************************
31279 * VPCRouterDHCPStaticMapping
31280 *************************************************/
31281
31282 // VPCRouterDHCPStaticMapping represents API parameter/response structure
31283 type VPCRouterDHCPStaticMapping struct {
31284 MACAddress string
31285 IPAddress string
31286 }
31287
31288 // setDefaults implements iaas.argumentDefaulter
31289 func (o *VPCRouterDHCPStaticMapping) setDefaults() interface{} {
31290 return &struct {
31291 MACAddress string
31292 IPAddress string
31293 }{
31294 MACAddress: o.GetMACAddress(),
31295 IPAddress: o.GetIPAddress(),
31296 }
31297 }
31298
31299 // GetMACAddress returns value of MACAddress
31300 func (o *VPCRouterDHCPStaticMapping) GetMACAddress() string {
31301 return o.MACAddress
31302 }
31303
31304 // SetMACAddress sets value to MACAddress
31305 func (o *VPCRouterDHCPStaticMapping) SetMACAddress(v string) {
31306 o.MACAddress = v
31307 }
31308
31309 // GetIPAddress returns value of IPAddress
31310 func (o *VPCRouterDHCPStaticMapping) GetIPAddress() string {
31311 return o.IPAddress
31312 }
31313
31314 // SetIPAddress sets value to IPAddress
31315 func (o *VPCRouterDHCPStaticMapping) SetIPAddress(v string) {
31316 o.IPAddress = v
31317 }
31318
31319 /*************************************************
31320 * VPCRouterDNSForwarding
31321 *************************************************/
31322
31323 // VPCRouterDNSForwarding represents API parameter/response structure
31324 type VPCRouterDNSForwarding struct {
31325 Interface string
31326 DNSServers []string
31327 }
31328
31329 // setDefaults implements iaas.argumentDefaulter
31330 func (o *VPCRouterDNSForwarding) setDefaults() interface{} {
31331 return &struct {
31332 Interface string
31333 DNSServers []string
31334 }{
31335 Interface: o.GetInterface(),
31336 DNSServers: o.GetDNSServers(),
31337 }
31338 }
31339
31340 // GetInterface returns value of Interface
31341 func (o *VPCRouterDNSForwarding) GetInterface() string {
31342 return o.Interface
31343 }
31344
31345 // SetInterface sets value to Interface
31346 func (o *VPCRouterDNSForwarding) SetInterface(v string) {
31347 o.Interface = v
31348 }
31349
31350 // GetDNSServers returns value of DNSServers
31351 func (o *VPCRouterDNSForwarding) GetDNSServers() []string {
31352 return o.DNSServers
31353 }
31354
31355 // SetDNSServers sets value to DNSServers
31356 func (o *VPCRouterDNSForwarding) SetDNSServers(v []string) {
31357 o.DNSServers = v
31358 }
31359
31360 /*************************************************
31361 * VPCRouterPPTPServer
31362 *************************************************/
31363
31364 // VPCRouterPPTPServer represents API parameter/response structure
31365 type VPCRouterPPTPServer struct {
31366 RangeStart string
31367 RangeStop string
31368 }
31369
31370 // setDefaults implements iaas.argumentDefaulter
31371 func (o *VPCRouterPPTPServer) setDefaults() interface{} {
31372 return &struct {
31373 RangeStart string
31374 RangeStop string
31375 }{
31376 RangeStart: o.GetRangeStart(),
31377 RangeStop: o.GetRangeStop(),
31378 }
31379 }
31380
31381 // GetRangeStart returns value of RangeStart
31382 func (o *VPCRouterPPTPServer) GetRangeStart() string {
31383 return o.RangeStart
31384 }
31385
31386 // SetRangeStart sets value to RangeStart
31387 func (o *VPCRouterPPTPServer) SetRangeStart(v string) {
31388 o.RangeStart = v
31389 }
31390
31391 // GetRangeStop returns value of RangeStop
31392 func (o *VPCRouterPPTPServer) GetRangeStop() string {
31393 return o.RangeStop
31394 }
31395
31396 // SetRangeStop sets value to RangeStop
31397 func (o *VPCRouterPPTPServer) SetRangeStop(v string) {
31398 o.RangeStop = v
31399 }
31400
31401 /*************************************************
31402 * VPCRouterL2TPIPsecServer
31403 *************************************************/
31404
31405 // VPCRouterL2TPIPsecServer represents API parameter/response structure
31406 type VPCRouterL2TPIPsecServer struct {
31407 RangeStart string
31408 RangeStop string
31409 PreSharedSecret string
31410 }
31411
31412 // setDefaults implements iaas.argumentDefaulter
31413 func (o *VPCRouterL2TPIPsecServer) setDefaults() interface{} {
31414 return &struct {
31415 RangeStart string
31416 RangeStop string
31417 PreSharedSecret string
31418 }{
31419 RangeStart: o.GetRangeStart(),
31420 RangeStop: o.GetRangeStop(),
31421 PreSharedSecret: o.GetPreSharedSecret(),
31422 }
31423 }
31424
31425 // GetRangeStart returns value of RangeStart
31426 func (o *VPCRouterL2TPIPsecServer) GetRangeStart() string {
31427 return o.RangeStart
31428 }
31429
31430 // SetRangeStart sets value to RangeStart
31431 func (o *VPCRouterL2TPIPsecServer) SetRangeStart(v string) {
31432 o.RangeStart = v
31433 }
31434
31435 // GetRangeStop returns value of RangeStop
31436 func (o *VPCRouterL2TPIPsecServer) GetRangeStop() string {
31437 return o.RangeStop
31438 }
31439
31440 // SetRangeStop sets value to RangeStop
31441 func (o *VPCRouterL2TPIPsecServer) SetRangeStop(v string) {
31442 o.RangeStop = v
31443 }
31444
31445 // GetPreSharedSecret returns value of PreSharedSecret
31446 func (o *VPCRouterL2TPIPsecServer) GetPreSharedSecret() string {
31447 return o.PreSharedSecret
31448 }
31449
31450 // SetPreSharedSecret sets value to PreSharedSecret
31451 func (o *VPCRouterL2TPIPsecServer) SetPreSharedSecret(v string) {
31452 o.PreSharedSecret = v
31453 }
31454
31455 /*************************************************
31456 * VPCRouterWireGuard
31457 *************************************************/
31458
31459 // VPCRouterWireGuard represents API parameter/response structure
31460 type VPCRouterWireGuard struct {
31461 IPAddress string
31462 Peers []*VPCRouterWireGuardPeer `mapconv:"[]Peers,omitempty,recursive"`
31463 }
31464
31465 // setDefaults implements iaas.argumentDefaulter
31466 func (o *VPCRouterWireGuard) setDefaults() interface{} {
31467 return &struct {
31468 IPAddress string
31469 Peers []*VPCRouterWireGuardPeer `mapconv:"[]Peers,omitempty,recursive"`
31470 }{
31471 IPAddress: o.GetIPAddress(),
31472 Peers: o.GetPeers(),
31473 }
31474 }
31475
31476 // GetIPAddress returns value of IPAddress
31477 func (o *VPCRouterWireGuard) GetIPAddress() string {
31478 return o.IPAddress
31479 }
31480
31481 // SetIPAddress sets value to IPAddress
31482 func (o *VPCRouterWireGuard) SetIPAddress(v string) {
31483 o.IPAddress = v
31484 }
31485
31486 // GetPeers returns value of Peers
31487 func (o *VPCRouterWireGuard) GetPeers() []*VPCRouterWireGuardPeer {
31488 return o.Peers
31489 }
31490
31491 // SetPeers sets value to Peers
31492 func (o *VPCRouterWireGuard) SetPeers(v []*VPCRouterWireGuardPeer) {
31493 o.Peers = v
31494 }
31495
31496 /*************************************************
31497 * VPCRouterWireGuardPeer
31498 *************************************************/
31499
31500 // VPCRouterWireGuardPeer represents API parameter/response structure
31501 type VPCRouterWireGuardPeer struct {
31502 Name string
31503 IPAddress string
31504 PublicKey string
31505 }
31506
31507 // setDefaults implements iaas.argumentDefaulter
31508 func (o *VPCRouterWireGuardPeer) setDefaults() interface{} {
31509 return &struct {
31510 Name string
31511 IPAddress string
31512 PublicKey string
31513 }{
31514 Name: o.GetName(),
31515 IPAddress: o.GetIPAddress(),
31516 PublicKey: o.GetPublicKey(),
31517 }
31518 }
31519
31520 // GetName returns value of Name
31521 func (o *VPCRouterWireGuardPeer) GetName() string {
31522 return o.Name
31523 }
31524
31525 // SetName sets value to Name
31526 func (o *VPCRouterWireGuardPeer) SetName(v string) {
31527 o.Name = v
31528 }
31529
31530 // GetIPAddress returns value of IPAddress
31531 func (o *VPCRouterWireGuardPeer) GetIPAddress() string {
31532 return o.IPAddress
31533 }
31534
31535 // SetIPAddress sets value to IPAddress
31536 func (o *VPCRouterWireGuardPeer) SetIPAddress(v string) {
31537 o.IPAddress = v
31538 }
31539
31540 // GetPublicKey returns value of PublicKey
31541 func (o *VPCRouterWireGuardPeer) GetPublicKey() string {
31542 return o.PublicKey
31543 }
31544
31545 // SetPublicKey sets value to PublicKey
31546 func (o *VPCRouterWireGuardPeer) SetPublicKey(v string) {
31547 o.PublicKey = v
31548 }
31549
31550 /*************************************************
31551 * VPCRouterRemoteAccessUser
31552 *************************************************/
31553
31554 // VPCRouterRemoteAccessUser represents API parameter/response structure
31555 type VPCRouterRemoteAccessUser struct {
31556 UserName string
31557 Password string
31558 }
31559
31560 // setDefaults implements iaas.argumentDefaulter
31561 func (o *VPCRouterRemoteAccessUser) setDefaults() interface{} {
31562 return &struct {
31563 UserName string
31564 Password string
31565 }{
31566 UserName: o.GetUserName(),
31567 Password: o.GetPassword(),
31568 }
31569 }
31570
31571 // GetUserName returns value of UserName
31572 func (o *VPCRouterRemoteAccessUser) GetUserName() string {
31573 return o.UserName
31574 }
31575
31576 // SetUserName sets value to UserName
31577 func (o *VPCRouterRemoteAccessUser) SetUserName(v string) {
31578 o.UserName = v
31579 }
31580
31581 // GetPassword returns value of Password
31582 func (o *VPCRouterRemoteAccessUser) GetPassword() string {
31583 return o.Password
31584 }
31585
31586 // SetPassword sets value to Password
31587 func (o *VPCRouterRemoteAccessUser) SetPassword(v string) {
31588 o.Password = v
31589 }
31590
31591 /*************************************************
31592 * VPCRouterSiteToSiteIPsecVPN
31593 *************************************************/
31594
31595 // VPCRouterSiteToSiteIPsecVPN represents API parameter/response structure
31596 type VPCRouterSiteToSiteIPsecVPN struct {
31597 Config []*VPCRouterSiteToSiteIPsecVPNConfig `mapconv:"[]Config,omitempty,recursive"`
31598 IKE *VPCRouterSiteToSiteIPsecVPNIKE `mapconv:",omitempty,recursive"`
31599 ESP *VPCRouterSiteToSiteIPsecVPNESP `mapconv:",omitempty,recursive"`
31600 EncryptionAlgo string
31601 HashAlgo string
31602 DHGroup string
31603 }
31604
31605 // setDefaults implements iaas.argumentDefaulter
31606 func (o *VPCRouterSiteToSiteIPsecVPN) setDefaults() interface{} {
31607 return &struct {
31608 Config []*VPCRouterSiteToSiteIPsecVPNConfig `mapconv:"[]Config,omitempty,recursive"`
31609 IKE *VPCRouterSiteToSiteIPsecVPNIKE `mapconv:",omitempty,recursive"`
31610 ESP *VPCRouterSiteToSiteIPsecVPNESP `mapconv:",omitempty,recursive"`
31611 EncryptionAlgo string
31612 HashAlgo string
31613 DHGroup string
31614 }{
31615 Config: o.GetConfig(),
31616 IKE: o.GetIKE(),
31617 ESP: o.GetESP(),
31618 EncryptionAlgo: o.GetEncryptionAlgo(),
31619 HashAlgo: o.GetHashAlgo(),
31620 DHGroup: o.GetDHGroup(),
31621 }
31622 }
31623
31624 // GetConfig returns value of Config
31625 func (o *VPCRouterSiteToSiteIPsecVPN) GetConfig() []*VPCRouterSiteToSiteIPsecVPNConfig {
31626 return o.Config
31627 }
31628
31629 // SetConfig sets value to Config
31630 func (o *VPCRouterSiteToSiteIPsecVPN) SetConfig(v []*VPCRouterSiteToSiteIPsecVPNConfig) {
31631 o.Config = v
31632 }
31633
31634 // GetIKE returns value of IKE
31635 func (o *VPCRouterSiteToSiteIPsecVPN) GetIKE() *VPCRouterSiteToSiteIPsecVPNIKE {
31636 return o.IKE
31637 }
31638
31639 // SetIKE sets value to IKE
31640 func (o *VPCRouterSiteToSiteIPsecVPN) SetIKE(v *VPCRouterSiteToSiteIPsecVPNIKE) {
31641 o.IKE = v
31642 }
31643
31644 // GetESP returns value of ESP
31645 func (o *VPCRouterSiteToSiteIPsecVPN) GetESP() *VPCRouterSiteToSiteIPsecVPNESP {
31646 return o.ESP
31647 }
31648
31649 // SetESP sets value to ESP
31650 func (o *VPCRouterSiteToSiteIPsecVPN) SetESP(v *VPCRouterSiteToSiteIPsecVPNESP) {
31651 o.ESP = v
31652 }
31653
31654 // GetEncryptionAlgo returns value of EncryptionAlgo
31655 func (o *VPCRouterSiteToSiteIPsecVPN) GetEncryptionAlgo() string {
31656 return o.EncryptionAlgo
31657 }
31658
31659 // SetEncryptionAlgo sets value to EncryptionAlgo
31660 func (o *VPCRouterSiteToSiteIPsecVPN) SetEncryptionAlgo(v string) {
31661 o.EncryptionAlgo = v
31662 }
31663
31664 // GetHashAlgo returns value of HashAlgo
31665 func (o *VPCRouterSiteToSiteIPsecVPN) GetHashAlgo() string {
31666 return o.HashAlgo
31667 }
31668
31669 // SetHashAlgo sets value to HashAlgo
31670 func (o *VPCRouterSiteToSiteIPsecVPN) SetHashAlgo(v string) {
31671 o.HashAlgo = v
31672 }
31673
31674 // GetDHGroup returns value of DHGroup
31675 func (o *VPCRouterSiteToSiteIPsecVPN) GetDHGroup() string {
31676 return o.DHGroup
31677 }
31678
31679 // SetDHGroup sets value to DHGroup
31680 func (o *VPCRouterSiteToSiteIPsecVPN) SetDHGroup(v string) {
31681 o.DHGroup = v
31682 }
31683
31684 /*************************************************
31685 * VPCRouterSiteToSiteIPsecVPNConfig
31686 *************************************************/
31687
31688 // VPCRouterSiteToSiteIPsecVPNConfig represents API parameter/response structure
31689 type VPCRouterSiteToSiteIPsecVPNConfig struct {
31690 Peer string
31691 PreSharedSecret string
31692 RemoteID string
31693 Routes []string
31694 LocalPrefix []string
31695 }
31696
31697 // setDefaults implements iaas.argumentDefaulter
31698 func (o *VPCRouterSiteToSiteIPsecVPNConfig) setDefaults() interface{} {
31699 return &struct {
31700 Peer string
31701 PreSharedSecret string
31702 RemoteID string
31703 Routes []string
31704 LocalPrefix []string
31705 }{
31706 Peer: o.GetPeer(),
31707 PreSharedSecret: o.GetPreSharedSecret(),
31708 RemoteID: o.GetRemoteID(),
31709 Routes: o.GetRoutes(),
31710 LocalPrefix: o.GetLocalPrefix(),
31711 }
31712 }
31713
31714 // GetPeer returns value of Peer
31715 func (o *VPCRouterSiteToSiteIPsecVPNConfig) GetPeer() string {
31716 return o.Peer
31717 }
31718
31719 // SetPeer sets value to Peer
31720 func (o *VPCRouterSiteToSiteIPsecVPNConfig) SetPeer(v string) {
31721 o.Peer = v
31722 }
31723
31724 // GetPreSharedSecret returns value of PreSharedSecret
31725 func (o *VPCRouterSiteToSiteIPsecVPNConfig) GetPreSharedSecret() string {
31726 return o.PreSharedSecret
31727 }
31728
31729 // SetPreSharedSecret sets value to PreSharedSecret
31730 func (o *VPCRouterSiteToSiteIPsecVPNConfig) SetPreSharedSecret(v string) {
31731 o.PreSharedSecret = v
31732 }
31733
31734 // GetRemoteID returns value of RemoteID
31735 func (o *VPCRouterSiteToSiteIPsecVPNConfig) GetRemoteID() string {
31736 return o.RemoteID
31737 }
31738
31739 // SetRemoteID sets value to RemoteID
31740 func (o *VPCRouterSiteToSiteIPsecVPNConfig) SetRemoteID(v string) {
31741 o.RemoteID = v
31742 }
31743
31744 // GetRoutes returns value of Routes
31745 func (o *VPCRouterSiteToSiteIPsecVPNConfig) GetRoutes() []string {
31746 return o.Routes
31747 }
31748
31749 // SetRoutes sets value to Routes
31750 func (o *VPCRouterSiteToSiteIPsecVPNConfig) SetRoutes(v []string) {
31751 o.Routes = v
31752 }
31753
31754 // GetLocalPrefix returns value of LocalPrefix
31755 func (o *VPCRouterSiteToSiteIPsecVPNConfig) GetLocalPrefix() []string {
31756 return o.LocalPrefix
31757 }
31758
31759 // SetLocalPrefix sets value to LocalPrefix
31760 func (o *VPCRouterSiteToSiteIPsecVPNConfig) SetLocalPrefix(v []string) {
31761 o.LocalPrefix = v
31762 }
31763
31764 /*************************************************
31765 * VPCRouterSiteToSiteIPsecVPNIKE
31766 *************************************************/
31767
31768 // VPCRouterSiteToSiteIPsecVPNIKE represents API parameter/response structure
31769 type VPCRouterSiteToSiteIPsecVPNIKE struct {
31770 Lifetime int
31771 DPD *VPCRouterSiteToSiteIPsecVPNIKEDPD `mapconv:",omitempty,recursive"`
31772 }
31773
31774 // setDefaults implements iaas.argumentDefaulter
31775 func (o *VPCRouterSiteToSiteIPsecVPNIKE) setDefaults() interface{} {
31776 return &struct {
31777 Lifetime int
31778 DPD *VPCRouterSiteToSiteIPsecVPNIKEDPD `mapconv:",omitempty,recursive"`
31779 }{
31780 Lifetime: o.GetLifetime(),
31781 DPD: o.GetDPD(),
31782 }
31783 }
31784
31785 // GetLifetime returns value of Lifetime
31786 func (o *VPCRouterSiteToSiteIPsecVPNIKE) GetLifetime() int {
31787 return o.Lifetime
31788 }
31789
31790 // SetLifetime sets value to Lifetime
31791 func (o *VPCRouterSiteToSiteIPsecVPNIKE) SetLifetime(v int) {
31792 o.Lifetime = v
31793 }
31794
31795 // GetDPD returns value of DPD
31796 func (o *VPCRouterSiteToSiteIPsecVPNIKE) GetDPD() *VPCRouterSiteToSiteIPsecVPNIKEDPD {
31797 return o.DPD
31798 }
31799
31800 // SetDPD sets value to DPD
31801 func (o *VPCRouterSiteToSiteIPsecVPNIKE) SetDPD(v *VPCRouterSiteToSiteIPsecVPNIKEDPD) {
31802 o.DPD = v
31803 }
31804
31805 /*************************************************
31806 * VPCRouterSiteToSiteIPsecVPNIKEDPD
31807 *************************************************/
31808
31809 // VPCRouterSiteToSiteIPsecVPNIKEDPD represents API parameter/response structure
31810 type VPCRouterSiteToSiteIPsecVPNIKEDPD struct {
31811 Interval int
31812 Timeout int
31813 }
31814
31815 // setDefaults implements iaas.argumentDefaulter
31816 func (o *VPCRouterSiteToSiteIPsecVPNIKEDPD) setDefaults() interface{} {
31817 return &struct {
31818 Interval int
31819 Timeout int
31820 }{
31821 Interval: o.GetInterval(),
31822 Timeout: o.GetTimeout(),
31823 }
31824 }
31825
31826 // GetInterval returns value of Interval
31827 func (o *VPCRouterSiteToSiteIPsecVPNIKEDPD) GetInterval() int {
31828 return o.Interval
31829 }
31830
31831 // SetInterval sets value to Interval
31832 func (o *VPCRouterSiteToSiteIPsecVPNIKEDPD) SetInterval(v int) {
31833 o.Interval = v
31834 }
31835
31836 // GetTimeout returns value of Timeout
31837 func (o *VPCRouterSiteToSiteIPsecVPNIKEDPD) GetTimeout() int {
31838 return o.Timeout
31839 }
31840
31841 // SetTimeout sets value to Timeout
31842 func (o *VPCRouterSiteToSiteIPsecVPNIKEDPD) SetTimeout(v int) {
31843 o.Timeout = v
31844 }
31845
31846 /*************************************************
31847 * VPCRouterSiteToSiteIPsecVPNESP
31848 *************************************************/
31849
31850 // VPCRouterSiteToSiteIPsecVPNESP represents API parameter/response structure
31851 type VPCRouterSiteToSiteIPsecVPNESP struct {
31852 Lifetime int
31853 }
31854
31855 // setDefaults implements iaas.argumentDefaulter
31856 func (o *VPCRouterSiteToSiteIPsecVPNESP) setDefaults() interface{} {
31857 return &struct {
31858 Lifetime int
31859 }{
31860 Lifetime: o.GetLifetime(),
31861 }
31862 }
31863
31864 // GetLifetime returns value of Lifetime
31865 func (o *VPCRouterSiteToSiteIPsecVPNESP) GetLifetime() int {
31866 return o.Lifetime
31867 }
31868
31869 // SetLifetime sets value to Lifetime
31870 func (o *VPCRouterSiteToSiteIPsecVPNESP) SetLifetime(v int) {
31871 o.Lifetime = v
31872 }
31873
31874 /*************************************************
31875 * VPCRouterStaticRoute
31876 *************************************************/
31877
31878 // VPCRouterStaticRoute represents API parameter/response structure
31879 type VPCRouterStaticRoute struct {
31880 Prefix string
31881 NextHop string
31882 }
31883
31884 // setDefaults implements iaas.argumentDefaulter
31885 func (o *VPCRouterStaticRoute) setDefaults() interface{} {
31886 return &struct {
31887 Prefix string
31888 NextHop string
31889 }{
31890 Prefix: o.GetPrefix(),
31891 NextHop: o.GetNextHop(),
31892 }
31893 }
31894
31895 // GetPrefix returns value of Prefix
31896 func (o *VPCRouterStaticRoute) GetPrefix() string {
31897 return o.Prefix
31898 }
31899
31900 // SetPrefix sets value to Prefix
31901 func (o *VPCRouterStaticRoute) SetPrefix(v string) {
31902 o.Prefix = v
31903 }
31904
31905 // GetNextHop returns value of NextHop
31906 func (o *VPCRouterStaticRoute) GetNextHop() string {
31907 return o.NextHop
31908 }
31909
31910 // SetNextHop sets value to NextHop
31911 func (o *VPCRouterStaticRoute) SetNextHop(v string) {
31912 o.NextHop = v
31913 }
31914
31915 /*************************************************
31916 * VPCRouterScheduledMaintenance
31917 *************************************************/
31918
31919 // VPCRouterScheduledMaintenance represents API parameter/response structure
31920 type VPCRouterScheduledMaintenance struct {
31921 DayOfWeek int
31922 Hour int
31923 }
31924
31925 // setDefaults implements iaas.argumentDefaulter
31926 func (o *VPCRouterScheduledMaintenance) setDefaults() interface{} {
31927 return &struct {
31928 DayOfWeek int
31929 Hour int
31930 }{
31931 DayOfWeek: o.GetDayOfWeek(),
31932 Hour: o.GetHour(),
31933 }
31934 }
31935
31936 // GetDayOfWeek returns value of DayOfWeek
31937 func (o *VPCRouterScheduledMaintenance) GetDayOfWeek() int {
31938 return o.DayOfWeek
31939 }
31940
31941 // SetDayOfWeek sets value to DayOfWeek
31942 func (o *VPCRouterScheduledMaintenance) SetDayOfWeek(v int) {
31943 o.DayOfWeek = v
31944 }
31945
31946 // GetHour returns value of Hour
31947 func (o *VPCRouterScheduledMaintenance) GetHour() int {
31948 return o.Hour
31949 }
31950
31951 // SetHour sets value to Hour
31952 func (o *VPCRouterScheduledMaintenance) SetHour(v int) {
31953 o.Hour = v
31954 }
31955
31956 /*************************************************
31957 * VPCRouterInterface
31958 *************************************************/
31959
31960 // VPCRouterInterface represents API parameter/response structure
31961 type VPCRouterInterface struct {
31962 ID types.ID
31963 MACAddress string
31964 IPAddress string
31965 UserIPAddress string
31966 HostName string
31967 SwitchID types.ID `mapconv:"Switch.ID"`
31968 SwitchName string `mapconv:"Switch.Name"`
31969 SwitchScope types.EScope `mapconv:"Switch.Scope"`
31970 UserSubnetDefaultRoute string `mapconv:"Switch.UserSubnet.DefaultRoute"`
31971 UserSubnetNetworkMaskLen int `mapconv:"Switch.UserSubnet.NetworkMaskLen"`
31972 SubnetDefaultRoute string `mapconv:"Switch.Subnet.DefaultRoute"`
31973 SubnetNetworkMaskLen int `mapconv:"Switch.Subnet.NetworkMaskLen"`
31974 SubnetNetworkAddress string `mapconv:"Switch.Subnet.NetworkAddress"`
31975 SubnetBandWidthMbps int `mapconv:"Switch.Subnet.Internet.BandWidthMbps"`
31976 PacketFilterID types.ID `mapconv:"PacketFilter.ID"`
31977 PacketFilterName string `mapconv:"PacketFilter.Name"`
31978 PacketFilterRequiredHostVersion types.StringNumber `mapconv:"PacketFilter.RequiredHostVersionn"`
31979 UpstreamType types.EUpstreamNetworkType
31980 Index int `mapconv:",omitempty"`
31981 }
31982
31983 // setDefaults implements iaas.argumentDefaulter
31984 func (o *VPCRouterInterface) setDefaults() interface{} {
31985 return &struct {
31986 ID types.ID
31987 MACAddress string
31988 IPAddress string
31989 UserIPAddress string
31990 HostName string
31991 SwitchID types.ID `mapconv:"Switch.ID"`
31992 SwitchName string `mapconv:"Switch.Name"`
31993 SwitchScope types.EScope `mapconv:"Switch.Scope"`
31994 UserSubnetDefaultRoute string `mapconv:"Switch.UserSubnet.DefaultRoute"`
31995 UserSubnetNetworkMaskLen int `mapconv:"Switch.UserSubnet.NetworkMaskLen"`
31996 SubnetDefaultRoute string `mapconv:"Switch.Subnet.DefaultRoute"`
31997 SubnetNetworkMaskLen int `mapconv:"Switch.Subnet.NetworkMaskLen"`
31998 SubnetNetworkAddress string `mapconv:"Switch.Subnet.NetworkAddress"`
31999 SubnetBandWidthMbps int `mapconv:"Switch.Subnet.Internet.BandWidthMbps"`
32000 PacketFilterID types.ID `mapconv:"PacketFilter.ID"`
32001 PacketFilterName string `mapconv:"PacketFilter.Name"`
32002 PacketFilterRequiredHostVersion types.StringNumber `mapconv:"PacketFilter.RequiredHostVersionn"`
32003 UpstreamType types.EUpstreamNetworkType
32004 Index int `mapconv:",omitempty"`
32005 }{
32006 ID: o.GetID(),
32007 MACAddress: o.GetMACAddress(),
32008 IPAddress: o.GetIPAddress(),
32009 UserIPAddress: o.GetUserIPAddress(),
32010 HostName: o.GetHostName(),
32011 SwitchID: o.GetSwitchID(),
32012 SwitchName: o.GetSwitchName(),
32013 SwitchScope: o.GetSwitchScope(),
32014 UserSubnetDefaultRoute: o.GetUserSubnetDefaultRoute(),
32015 UserSubnetNetworkMaskLen: o.GetUserSubnetNetworkMaskLen(),
32016 SubnetDefaultRoute: o.GetSubnetDefaultRoute(),
32017 SubnetNetworkMaskLen: o.GetSubnetNetworkMaskLen(),
32018 SubnetNetworkAddress: o.GetSubnetNetworkAddress(),
32019 SubnetBandWidthMbps: o.GetSubnetBandWidthMbps(),
32020 PacketFilterID: o.GetPacketFilterID(),
32021 PacketFilterName: o.GetPacketFilterName(),
32022 PacketFilterRequiredHostVersion: o.GetPacketFilterRequiredHostVersion(),
32023 UpstreamType: o.GetUpstreamType(),
32024 Index: o.GetIndex(),
32025 }
32026 }
32027
32028 // GetID returns value of ID
32029 func (o *VPCRouterInterface) GetID() types.ID {
32030 return o.ID
32031 }
32032
32033 // SetID sets value to ID
32034 func (o *VPCRouterInterface) SetID(v types.ID) {
32035 o.ID = v
32036 }
32037
32038 // SetStringID .
32039 func (o *VPCRouterInterface) SetStringID(id string) {
32040 accessor.SetStringID(o, id)
32041 }
32042
32043 // GetStringID .
32044 func (o *VPCRouterInterface) GetStringID() string {
32045 return accessor.GetStringID(o)
32046 }
32047
32048 // SetInt64ID .
32049 func (o *VPCRouterInterface) SetInt64ID(id int64) {
32050 accessor.SetInt64ID(o, id)
32051 }
32052
32053 // GetInt64ID .
32054 func (o *VPCRouterInterface) GetInt64ID() int64 {
32055 return accessor.GetInt64ID(o)
32056 }
32057
32058 // GetMACAddress returns value of MACAddress
32059 func (o *VPCRouterInterface) GetMACAddress() string {
32060 return o.MACAddress
32061 }
32062
32063 // SetMACAddress sets value to MACAddress
32064 func (o *VPCRouterInterface) SetMACAddress(v string) {
32065 o.MACAddress = v
32066 }
32067
32068 // GetIPAddress returns value of IPAddress
32069 func (o *VPCRouterInterface) GetIPAddress() string {
32070 return o.IPAddress
32071 }
32072
32073 // SetIPAddress sets value to IPAddress
32074 func (o *VPCRouterInterface) SetIPAddress(v string) {
32075 o.IPAddress = v
32076 }
32077
32078 // GetUserIPAddress returns value of UserIPAddress
32079 func (o *VPCRouterInterface) GetUserIPAddress() string {
32080 return o.UserIPAddress
32081 }
32082
32083 // SetUserIPAddress sets value to UserIPAddress
32084 func (o *VPCRouterInterface) SetUserIPAddress(v string) {
32085 o.UserIPAddress = v
32086 }
32087
32088 // GetHostName returns value of HostName
32089 func (o *VPCRouterInterface) GetHostName() string {
32090 return o.HostName
32091 }
32092
32093 // SetHostName sets value to HostName
32094 func (o *VPCRouterInterface) SetHostName(v string) {
32095 o.HostName = v
32096 }
32097
32098 // GetSwitchID returns value of SwitchID
32099 func (o *VPCRouterInterface) GetSwitchID() types.ID {
32100 return o.SwitchID
32101 }
32102
32103 // SetSwitchID sets value to SwitchID
32104 func (o *VPCRouterInterface) SetSwitchID(v types.ID) {
32105 o.SwitchID = v
32106 }
32107
32108 // GetSwitchName returns value of SwitchName
32109 func (o *VPCRouterInterface) GetSwitchName() string {
32110 return o.SwitchName
32111 }
32112
32113 // SetSwitchName sets value to SwitchName
32114 func (o *VPCRouterInterface) SetSwitchName(v string) {
32115 o.SwitchName = v
32116 }
32117
32118 // GetSwitchScope returns value of SwitchScope
32119 func (o *VPCRouterInterface) GetSwitchScope() types.EScope {
32120 return o.SwitchScope
32121 }
32122
32123 // SetSwitchScope sets value to SwitchScope
32124 func (o *VPCRouterInterface) SetSwitchScope(v types.EScope) {
32125 o.SwitchScope = v
32126 }
32127
32128 // GetUserSubnetDefaultRoute returns value of UserSubnetDefaultRoute
32129 func (o *VPCRouterInterface) GetUserSubnetDefaultRoute() string {
32130 return o.UserSubnetDefaultRoute
32131 }
32132
32133 // SetUserSubnetDefaultRoute sets value to UserSubnetDefaultRoute
32134 func (o *VPCRouterInterface) SetUserSubnetDefaultRoute(v string) {
32135 o.UserSubnetDefaultRoute = v
32136 }
32137
32138 // GetUserSubnetNetworkMaskLen returns value of UserSubnetNetworkMaskLen
32139 func (o *VPCRouterInterface) GetUserSubnetNetworkMaskLen() int {
32140 return o.UserSubnetNetworkMaskLen
32141 }
32142
32143 // SetUserSubnetNetworkMaskLen sets value to UserSubnetNetworkMaskLen
32144 func (o *VPCRouterInterface) SetUserSubnetNetworkMaskLen(v int) {
32145 o.UserSubnetNetworkMaskLen = v
32146 }
32147
32148 // GetSubnetDefaultRoute returns value of SubnetDefaultRoute
32149 func (o *VPCRouterInterface) GetSubnetDefaultRoute() string {
32150 return o.SubnetDefaultRoute
32151 }
32152
32153 // SetSubnetDefaultRoute sets value to SubnetDefaultRoute
32154 func (o *VPCRouterInterface) SetSubnetDefaultRoute(v string) {
32155 o.SubnetDefaultRoute = v
32156 }
32157
32158 // GetSubnetNetworkMaskLen returns value of SubnetNetworkMaskLen
32159 func (o *VPCRouterInterface) GetSubnetNetworkMaskLen() int {
32160 return o.SubnetNetworkMaskLen
32161 }
32162
32163 // SetSubnetNetworkMaskLen sets value to SubnetNetworkMaskLen
32164 func (o *VPCRouterInterface) SetSubnetNetworkMaskLen(v int) {
32165 o.SubnetNetworkMaskLen = v
32166 }
32167
32168 // GetSubnetNetworkAddress returns value of SubnetNetworkAddress
32169 func (o *VPCRouterInterface) GetSubnetNetworkAddress() string {
32170 return o.SubnetNetworkAddress
32171 }
32172
32173 // SetSubnetNetworkAddress sets value to SubnetNetworkAddress
32174 func (o *VPCRouterInterface) SetSubnetNetworkAddress(v string) {
32175 o.SubnetNetworkAddress = v
32176 }
32177
32178 // GetSubnetBandWidthMbps returns value of SubnetBandWidthMbps
32179 func (o *VPCRouterInterface) GetSubnetBandWidthMbps() int {
32180 return o.SubnetBandWidthMbps
32181 }
32182
32183 // SetSubnetBandWidthMbps sets value to SubnetBandWidthMbps
32184 func (o *VPCRouterInterface) SetSubnetBandWidthMbps(v int) {
32185 o.SubnetBandWidthMbps = v
32186 }
32187
32188 // GetPacketFilterID returns value of PacketFilterID
32189 func (o *VPCRouterInterface) GetPacketFilterID() types.ID {
32190 return o.PacketFilterID
32191 }
32192
32193 // SetPacketFilterID sets value to PacketFilterID
32194 func (o *VPCRouterInterface) SetPacketFilterID(v types.ID) {
32195 o.PacketFilterID = v
32196 }
32197
32198 // GetPacketFilterName returns value of PacketFilterName
32199 func (o *VPCRouterInterface) GetPacketFilterName() string {
32200 return o.PacketFilterName
32201 }
32202
32203 // SetPacketFilterName sets value to PacketFilterName
32204 func (o *VPCRouterInterface) SetPacketFilterName(v string) {
32205 o.PacketFilterName = v
32206 }
32207
32208 // GetPacketFilterRequiredHostVersion returns value of PacketFilterRequiredHostVersion
32209 func (o *VPCRouterInterface) GetPacketFilterRequiredHostVersion() types.StringNumber {
32210 return o.PacketFilterRequiredHostVersion
32211 }
32212
32213 // SetPacketFilterRequiredHostVersion sets value to PacketFilterRequiredHostVersion
32214 func (o *VPCRouterInterface) SetPacketFilterRequiredHostVersion(v types.StringNumber) {
32215 o.PacketFilterRequiredHostVersion = v
32216 }
32217
32218 // GetUpstreamType returns value of UpstreamType
32219 func (o *VPCRouterInterface) GetUpstreamType() types.EUpstreamNetworkType {
32220 return o.UpstreamType
32221 }
32222
32223 // SetUpstreamType sets value to UpstreamType
32224 func (o *VPCRouterInterface) SetUpstreamType(v types.EUpstreamNetworkType) {
32225 o.UpstreamType = v
32226 }
32227
32228 // GetIndex returns value of Index
32229 func (o *VPCRouterInterface) GetIndex() int {
32230 return o.Index
32231 }
32232
32233 // SetIndex sets value to Index
32234 func (o *VPCRouterInterface) SetIndex(v int) {
32235 o.Index = v
32236 }
32237
32238 /*************************************************
32239 * VPCRouterCreateRequest
32240 *************************************************/
32241
32242 // VPCRouterCreateRequest represents API parameter/response structure
32243 type VPCRouterCreateRequest struct {
32244 Name string
32245 Description string
32246 Tags types.Tags
32247 IconID types.ID `mapconv:"Icon.ID"`
32248 PlanID types.ID `mapconv:"Plan.ID"`
32249 Switch *ApplianceConnectedSwitch `json:",omitempty" mapconv:"Remark.Switch,recursive"`
32250 IPAddresses []string `mapconv:"Remark.[]Servers.IPAddress"`
32251 Version int `mapconv:"Remark.Router.VPCRouterVersion"`
32252 Settings *VPCRouterSetting `mapconv:",omitempty,recursive"`
32253 }
32254
32255 // setDefaults implements iaas.argumentDefaulter
32256 func (o *VPCRouterCreateRequest) setDefaults() interface{} {
32257 return &struct {
32258 Name string
32259 Description string
32260 Tags types.Tags
32261 IconID types.ID `mapconv:"Icon.ID"`
32262 PlanID types.ID `mapconv:"Plan.ID"`
32263 Switch *ApplianceConnectedSwitch `json:",omitempty" mapconv:"Remark.Switch,recursive"`
32264 IPAddresses []string `mapconv:"Remark.[]Servers.IPAddress"`
32265 Version int `mapconv:"Remark.Router.VPCRouterVersion"`
32266 Settings *VPCRouterSetting `mapconv:",omitempty,recursive"`
32267 Class string
32268 }{
32269 Name: o.GetName(),
32270 Description: o.GetDescription(),
32271 Tags: o.GetTags(),
32272 IconID: o.GetIconID(),
32273 PlanID: o.GetPlanID(),
32274 Switch: o.GetSwitch(),
32275 IPAddresses: o.GetIPAddresses(),
32276 Version: o.GetVersion(),
32277 Settings: o.GetSettings(),
32278 Class: "vpcrouter",
32279 }
32280 }
32281
32282 // GetName returns value of Name
32283 func (o *VPCRouterCreateRequest) GetName() string {
32284 return o.Name
32285 }
32286
32287 // SetName sets value to Name
32288 func (o *VPCRouterCreateRequest) SetName(v string) {
32289 o.Name = v
32290 }
32291
32292 // GetDescription returns value of Description
32293 func (o *VPCRouterCreateRequest) GetDescription() string {
32294 return o.Description
32295 }
32296
32297 // SetDescription sets value to Description
32298 func (o *VPCRouterCreateRequest) SetDescription(v string) {
32299 o.Description = v
32300 }
32301
32302 // GetTags returns value of Tags
32303 func (o *VPCRouterCreateRequest) GetTags() types.Tags {
32304 return o.Tags
32305 }
32306
32307 // SetTags sets value to Tags
32308 func (o *VPCRouterCreateRequest) SetTags(v types.Tags) {
32309 o.Tags = v
32310 }
32311
32312 // HasTag 指定のタグが存在する場合trueを返す
32313 func (o *VPCRouterCreateRequest) HasTag(tag string) bool {
32314 return accessor.HasTag(o, tag)
32315 }
32316
32317 // AppendTag 指定のタグを追加
32318 func (o *VPCRouterCreateRequest) AppendTag(tag string) {
32319 accessor.AppendTag(o, tag)
32320 }
32321
32322 // RemoveTag 指定のタグを削除
32323 func (o *VPCRouterCreateRequest) RemoveTag(tag string) {
32324 accessor.RemoveTag(o, tag)
32325 }
32326
32327 // ClearTags タグを全クリア
32328 func (o *VPCRouterCreateRequest) ClearTags() {
32329 accessor.ClearTags(o)
32330 }
32331
32332 // GetIconID returns value of IconID
32333 func (o *VPCRouterCreateRequest) GetIconID() types.ID {
32334 return o.IconID
32335 }
32336
32337 // SetIconID sets value to IconID
32338 func (o *VPCRouterCreateRequest) SetIconID(v types.ID) {
32339 o.IconID = v
32340 }
32341
32342 // GetPlanID returns value of PlanID
32343 func (o *VPCRouterCreateRequest) GetPlanID() types.ID {
32344 return o.PlanID
32345 }
32346
32347 // SetPlanID sets value to PlanID
32348 func (o *VPCRouterCreateRequest) SetPlanID(v types.ID) {
32349 o.PlanID = v
32350 }
32351
32352 // GetSwitch returns value of Switch
32353 func (o *VPCRouterCreateRequest) GetSwitch() *ApplianceConnectedSwitch {
32354 return o.Switch
32355 }
32356
32357 // SetSwitch sets value to Switch
32358 func (o *VPCRouterCreateRequest) SetSwitch(v *ApplianceConnectedSwitch) {
32359 o.Switch = v
32360 }
32361
32362 // GetIPAddresses returns value of IPAddresses
32363 func (o *VPCRouterCreateRequest) GetIPAddresses() []string {
32364 return o.IPAddresses
32365 }
32366
32367 // SetIPAddresses sets value to IPAddresses
32368 func (o *VPCRouterCreateRequest) SetIPAddresses(v []string) {
32369 o.IPAddresses = v
32370 }
32371
32372 // GetVersion returns value of Version
32373 func (o *VPCRouterCreateRequest) GetVersion() int {
32374 if o.Version == 0 {
32375 return 2
32376 }
32377 return o.Version
32378 }
32379
32380 // SetVersion sets value to Version
32381 func (o *VPCRouterCreateRequest) SetVersion(v int) {
32382 o.Version = v
32383 }
32384
32385 // GetSettings returns value of Settings
32386 func (o *VPCRouterCreateRequest) GetSettings() *VPCRouterSetting {
32387 return o.Settings
32388 }
32389
32390 // SetSettings sets value to Settings
32391 func (o *VPCRouterCreateRequest) SetSettings(v *VPCRouterSetting) {
32392 o.Settings = v
32393 }
32394
32395 /*************************************************
32396 * ApplianceConnectedSwitch
32397 *************************************************/
32398
32399 // ApplianceConnectedSwitch represents API parameter/response structure
32400 type ApplianceConnectedSwitch struct {
32401 ID types.ID
32402 Scope types.EScope
32403 }
32404
32405 // setDefaults implements iaas.argumentDefaulter
32406 func (o *ApplianceConnectedSwitch) setDefaults() interface{} {
32407 return &struct {
32408 ID types.ID
32409 Scope types.EScope
32410 }{
32411 ID: o.GetID(),
32412 Scope: o.GetScope(),
32413 }
32414 }
32415
32416 // GetID returns value of ID
32417 func (o *ApplianceConnectedSwitch) GetID() types.ID {
32418 return o.ID
32419 }
32420
32421 // SetID sets value to ID
32422 func (o *ApplianceConnectedSwitch) SetID(v types.ID) {
32423 o.ID = v
32424 }
32425
32426 // SetStringID .
32427 func (o *ApplianceConnectedSwitch) SetStringID(id string) {
32428 accessor.SetStringID(o, id)
32429 }
32430
32431 // GetStringID .
32432 func (o *ApplianceConnectedSwitch) GetStringID() string {
32433 return accessor.GetStringID(o)
32434 }
32435
32436 // SetInt64ID .
32437 func (o *ApplianceConnectedSwitch) SetInt64ID(id int64) {
32438 accessor.SetInt64ID(o, id)
32439 }
32440
32441 // GetInt64ID .
32442 func (o *ApplianceConnectedSwitch) GetInt64ID() int64 {
32443 return accessor.GetInt64ID(o)
32444 }
32445
32446 // GetScope returns value of Scope
32447 func (o *ApplianceConnectedSwitch) GetScope() types.EScope {
32448 return o.Scope
32449 }
32450
32451 // SetScope sets value to Scope
32452 func (o *ApplianceConnectedSwitch) SetScope(v types.EScope) {
32453 o.Scope = v
32454 }
32455
32456 /*************************************************
32457 * VPCRouterUpdateRequest
32458 *************************************************/
32459
32460 // VPCRouterUpdateRequest represents API parameter/response structure
32461 type VPCRouterUpdateRequest struct {
32462 Name string
32463 Description string
32464 Tags types.Tags
32465 IconID types.ID `mapconv:"Icon.ID"`
32466 Settings *VPCRouterSetting `mapconv:",omitempty,recursive"`
32467 SettingsHash string `json:",omitempty" mapconv:",omitempty"`
32468 }
32469
32470 // setDefaults implements iaas.argumentDefaulter
32471 func (o *VPCRouterUpdateRequest) setDefaults() interface{} {
32472 return &struct {
32473 Name string
32474 Description string
32475 Tags types.Tags
32476 IconID types.ID `mapconv:"Icon.ID"`
32477 Settings *VPCRouterSetting `mapconv:",omitempty,recursive"`
32478 SettingsHash string `json:",omitempty" mapconv:",omitempty"`
32479 }{
32480 Name: o.GetName(),
32481 Description: o.GetDescription(),
32482 Tags: o.GetTags(),
32483 IconID: o.GetIconID(),
32484 Settings: o.GetSettings(),
32485 SettingsHash: o.GetSettingsHash(),
32486 }
32487 }
32488
32489 // GetName returns value of Name
32490 func (o *VPCRouterUpdateRequest) GetName() string {
32491 return o.Name
32492 }
32493
32494 // SetName sets value to Name
32495 func (o *VPCRouterUpdateRequest) SetName(v string) {
32496 o.Name = v
32497 }
32498
32499 // GetDescription returns value of Description
32500 func (o *VPCRouterUpdateRequest) GetDescription() string {
32501 return o.Description
32502 }
32503
32504 // SetDescription sets value to Description
32505 func (o *VPCRouterUpdateRequest) SetDescription(v string) {
32506 o.Description = v
32507 }
32508
32509 // GetTags returns value of Tags
32510 func (o *VPCRouterUpdateRequest) GetTags() types.Tags {
32511 return o.Tags
32512 }
32513
32514 // SetTags sets value to Tags
32515 func (o *VPCRouterUpdateRequest) SetTags(v types.Tags) {
32516 o.Tags = v
32517 }
32518
32519 // HasTag 指定のタグが存在する場合trueを返す
32520 func (o *VPCRouterUpdateRequest) HasTag(tag string) bool {
32521 return accessor.HasTag(o, tag)
32522 }
32523
32524 // AppendTag 指定のタグを追加
32525 func (o *VPCRouterUpdateRequest) AppendTag(tag string) {
32526 accessor.AppendTag(o, tag)
32527 }
32528
32529 // RemoveTag 指定のタグを削除
32530 func (o *VPCRouterUpdateRequest) RemoveTag(tag string) {
32531 accessor.RemoveTag(o, tag)
32532 }
32533
32534 // ClearTags タグを全クリア
32535 func (o *VPCRouterUpdateRequest) ClearTags() {
32536 accessor.ClearTags(o)
32537 }
32538
32539 // GetIconID returns value of IconID
32540 func (o *VPCRouterUpdateRequest) GetIconID() types.ID {
32541 return o.IconID
32542 }
32543
32544 // SetIconID sets value to IconID
32545 func (o *VPCRouterUpdateRequest) SetIconID(v types.ID) {
32546 o.IconID = v
32547 }
32548
32549 // GetSettings returns value of Settings
32550 func (o *VPCRouterUpdateRequest) GetSettings() *VPCRouterSetting {
32551 return o.Settings
32552 }
32553
32554 // SetSettings sets value to Settings
32555 func (o *VPCRouterUpdateRequest) SetSettings(v *VPCRouterSetting) {
32556 o.Settings = v
32557 }
32558
32559 // GetSettingsHash returns value of SettingsHash
32560 func (o *VPCRouterUpdateRequest) GetSettingsHash() string {
32561 return o.SettingsHash
32562 }
32563
32564 // SetSettingsHash sets value to SettingsHash
32565 func (o *VPCRouterUpdateRequest) SetSettingsHash(v string) {
32566 o.SettingsHash = v
32567 }
32568
32569 /*************************************************
32570 * VPCRouterUpdateSettingsRequest
32571 *************************************************/
32572
32573 // VPCRouterUpdateSettingsRequest represents API parameter/response structure
32574 type VPCRouterUpdateSettingsRequest struct {
32575 Settings *VPCRouterSetting `mapconv:",omitempty,recursive"`
32576 SettingsHash string `json:",omitempty" mapconv:",omitempty"`
32577 }
32578
32579 // setDefaults implements iaas.argumentDefaulter
32580 func (o *VPCRouterUpdateSettingsRequest) setDefaults() interface{} {
32581 return &struct {
32582 Settings *VPCRouterSetting `mapconv:",omitempty,recursive"`
32583 SettingsHash string `json:",omitempty" mapconv:",omitempty"`
32584 }{
32585 Settings: o.GetSettings(),
32586 SettingsHash: o.GetSettingsHash(),
32587 }
32588 }
32589
32590 // GetSettings returns value of Settings
32591 func (o *VPCRouterUpdateSettingsRequest) GetSettings() *VPCRouterSetting {
32592 return o.Settings
32593 }
32594
32595 // SetSettings sets value to Settings
32596 func (o *VPCRouterUpdateSettingsRequest) SetSettings(v *VPCRouterSetting) {
32597 o.Settings = v
32598 }
32599
32600 // GetSettingsHash returns value of SettingsHash
32601 func (o *VPCRouterUpdateSettingsRequest) GetSettingsHash() string {
32602 return o.SettingsHash
32603 }
32604
32605 // SetSettingsHash sets value to SettingsHash
32606 func (o *VPCRouterUpdateSettingsRequest) SetSettingsHash(v string) {
32607 o.SettingsHash = v
32608 }
32609
32610 /*************************************************
32611 * VPCRouterStatus
32612 *************************************************/
32613
32614 // VPCRouterStatus represents API parameter/response structure
32615 type VPCRouterStatus struct {
32616 FirewallReceiveLogs []string
32617 FirewallSendLogs []string
32618 VPNLogs []string
32619 SessionCount int
32620 PercentageOfMemoryFree []types.StringNumber
32621 WireGuard *WireGuardStatus
32622 DHCPServerLeases []*VPCRouterDHCPServerLease `mapconv:"[]DHCPServerLeases,recursive"`
32623 L2TPIPsecServerSessions []*VPCRouterL2TPIPsecServerSession `mapconv:"[]L2TPIPsecServerSessions,recursive"`
32624 PPTPServerSessions []*VPCRouterPPTPServerSession `mapconv:"[]PPTPServerSessions,recursive"`
32625 SiteToSiteIPsecVPNPeers []*VPCRouterSiteToSiteIPsecVPNPeer `mapconv:"[]SiteToSiteIPsecVPNPeers,recursive"`
32626 SessionAnalysis *VPCRouterSessionAnalysis
32627 }
32628
32629 // setDefaults implements iaas.argumentDefaulter
32630 func (o *VPCRouterStatus) setDefaults() interface{} {
32631 return &struct {
32632 FirewallReceiveLogs []string
32633 FirewallSendLogs []string
32634 VPNLogs []string
32635 SessionCount int
32636 PercentageOfMemoryFree []types.StringNumber
32637 WireGuard *WireGuardStatus
32638 DHCPServerLeases []*VPCRouterDHCPServerLease `mapconv:"[]DHCPServerLeases,recursive"`
32639 L2TPIPsecServerSessions []*VPCRouterL2TPIPsecServerSession `mapconv:"[]L2TPIPsecServerSessions,recursive"`
32640 PPTPServerSessions []*VPCRouterPPTPServerSession `mapconv:"[]PPTPServerSessions,recursive"`
32641 SiteToSiteIPsecVPNPeers []*VPCRouterSiteToSiteIPsecVPNPeer `mapconv:"[]SiteToSiteIPsecVPNPeers,recursive"`
32642 SessionAnalysis *VPCRouterSessionAnalysis
32643 }{
32644 FirewallReceiveLogs: o.GetFirewallReceiveLogs(),
32645 FirewallSendLogs: o.GetFirewallSendLogs(),
32646 VPNLogs: o.GetVPNLogs(),
32647 SessionCount: o.GetSessionCount(),
32648 PercentageOfMemoryFree: o.GetPercentageOfMemoryFree(),
32649 WireGuard: o.GetWireGuard(),
32650 DHCPServerLeases: o.GetDHCPServerLeases(),
32651 L2TPIPsecServerSessions: o.GetL2TPIPsecServerSessions(),
32652 PPTPServerSessions: o.GetPPTPServerSessions(),
32653 SiteToSiteIPsecVPNPeers: o.GetSiteToSiteIPsecVPNPeers(),
32654 SessionAnalysis: o.GetSessionAnalysis(),
32655 }
32656 }
32657
32658 // GetFirewallReceiveLogs returns value of FirewallReceiveLogs
32659 func (o *VPCRouterStatus) GetFirewallReceiveLogs() []string {
32660 return o.FirewallReceiveLogs
32661 }
32662
32663 // SetFirewallReceiveLogs sets value to FirewallReceiveLogs
32664 func (o *VPCRouterStatus) SetFirewallReceiveLogs(v []string) {
32665 o.FirewallReceiveLogs = v
32666 }
32667
32668 // GetFirewallSendLogs returns value of FirewallSendLogs
32669 func (o *VPCRouterStatus) GetFirewallSendLogs() []string {
32670 return o.FirewallSendLogs
32671 }
32672
32673 // SetFirewallSendLogs sets value to FirewallSendLogs
32674 func (o *VPCRouterStatus) SetFirewallSendLogs(v []string) {
32675 o.FirewallSendLogs = v
32676 }
32677
32678 // GetVPNLogs returns value of VPNLogs
32679 func (o *VPCRouterStatus) GetVPNLogs() []string {
32680 return o.VPNLogs
32681 }
32682
32683 // SetVPNLogs sets value to VPNLogs
32684 func (o *VPCRouterStatus) SetVPNLogs(v []string) {
32685 o.VPNLogs = v
32686 }
32687
32688 // GetSessionCount returns value of SessionCount
32689 func (o *VPCRouterStatus) GetSessionCount() int {
32690 return o.SessionCount
32691 }
32692
32693 // SetSessionCount sets value to SessionCount
32694 func (o *VPCRouterStatus) SetSessionCount(v int) {
32695 o.SessionCount = v
32696 }
32697
32698 // GetPercentageOfMemoryFree returns value of PercentageOfMemoryFree
32699 func (o *VPCRouterStatus) GetPercentageOfMemoryFree() []types.StringNumber {
32700 return o.PercentageOfMemoryFree
32701 }
32702
32703 // SetPercentageOfMemoryFree sets value to PercentageOfMemoryFree
32704 func (o *VPCRouterStatus) SetPercentageOfMemoryFree(v []types.StringNumber) {
32705 o.PercentageOfMemoryFree = v
32706 }
32707
32708 // GetWireGuard returns value of WireGuard
32709 func (o *VPCRouterStatus) GetWireGuard() *WireGuardStatus {
32710 return o.WireGuard
32711 }
32712
32713 // SetWireGuard sets value to WireGuard
32714 func (o *VPCRouterStatus) SetWireGuard(v *WireGuardStatus) {
32715 o.WireGuard = v
32716 }
32717
32718 // GetDHCPServerLeases returns value of DHCPServerLeases
32719 func (o *VPCRouterStatus) GetDHCPServerLeases() []*VPCRouterDHCPServerLease {
32720 return o.DHCPServerLeases
32721 }
32722
32723 // SetDHCPServerLeases sets value to DHCPServerLeases
32724 func (o *VPCRouterStatus) SetDHCPServerLeases(v []*VPCRouterDHCPServerLease) {
32725 o.DHCPServerLeases = v
32726 }
32727
32728 // GetL2TPIPsecServerSessions returns value of L2TPIPsecServerSessions
32729 func (o *VPCRouterStatus) GetL2TPIPsecServerSessions() []*VPCRouterL2TPIPsecServerSession {
32730 return o.L2TPIPsecServerSessions
32731 }
32732
32733 // SetL2TPIPsecServerSessions sets value to L2TPIPsecServerSessions
32734 func (o *VPCRouterStatus) SetL2TPIPsecServerSessions(v []*VPCRouterL2TPIPsecServerSession) {
32735 o.L2TPIPsecServerSessions = v
32736 }
32737
32738 // GetPPTPServerSessions returns value of PPTPServerSessions
32739 func (o *VPCRouterStatus) GetPPTPServerSessions() []*VPCRouterPPTPServerSession {
32740 return o.PPTPServerSessions
32741 }
32742
32743 // SetPPTPServerSessions sets value to PPTPServerSessions
32744 func (o *VPCRouterStatus) SetPPTPServerSessions(v []*VPCRouterPPTPServerSession) {
32745 o.PPTPServerSessions = v
32746 }
32747
32748 // GetSiteToSiteIPsecVPNPeers returns value of SiteToSiteIPsecVPNPeers
32749 func (o *VPCRouterStatus) GetSiteToSiteIPsecVPNPeers() []*VPCRouterSiteToSiteIPsecVPNPeer {
32750 return o.SiteToSiteIPsecVPNPeers
32751 }
32752
32753 // SetSiteToSiteIPsecVPNPeers sets value to SiteToSiteIPsecVPNPeers
32754 func (o *VPCRouterStatus) SetSiteToSiteIPsecVPNPeers(v []*VPCRouterSiteToSiteIPsecVPNPeer) {
32755 o.SiteToSiteIPsecVPNPeers = v
32756 }
32757
32758 // GetSessionAnalysis returns value of SessionAnalysis
32759 func (o *VPCRouterStatus) GetSessionAnalysis() *VPCRouterSessionAnalysis {
32760 return o.SessionAnalysis
32761 }
32762
32763 // SetSessionAnalysis sets value to SessionAnalysis
32764 func (o *VPCRouterStatus) SetSessionAnalysis(v *VPCRouterSessionAnalysis) {
32765 o.SessionAnalysis = v
32766 }
32767
32768 /*************************************************
32769 * WireGuardStatus
32770 *************************************************/
32771
32772 // WireGuardStatus represents API parameter/response structure
32773 type WireGuardStatus struct {
32774 PublicKey string
32775 }
32776
32777 // setDefaults implements iaas.argumentDefaulter
32778 func (o *WireGuardStatus) setDefaults() interface{} {
32779 return &struct {
32780 PublicKey string
32781 }{
32782 PublicKey: o.GetPublicKey(),
32783 }
32784 }
32785
32786 // GetPublicKey returns value of PublicKey
32787 func (o *WireGuardStatus) GetPublicKey() string {
32788 return o.PublicKey
32789 }
32790
32791 // SetPublicKey sets value to PublicKey
32792 func (o *WireGuardStatus) SetPublicKey(v string) {
32793 o.PublicKey = v
32794 }
32795
32796 /*************************************************
32797 * VPCRouterDHCPServerLease
32798 *************************************************/
32799
32800 // VPCRouterDHCPServerLease represents API parameter/response structure
32801 type VPCRouterDHCPServerLease struct {
32802 IPAddress string
32803 MACAddress string
32804 }
32805
32806 // setDefaults implements iaas.argumentDefaulter
32807 func (o *VPCRouterDHCPServerLease) setDefaults() interface{} {
32808 return &struct {
32809 IPAddress string
32810 MACAddress string
32811 }{
32812 IPAddress: o.GetIPAddress(),
32813 MACAddress: o.GetMACAddress(),
32814 }
32815 }
32816
32817 // GetIPAddress returns value of IPAddress
32818 func (o *VPCRouterDHCPServerLease) GetIPAddress() string {
32819 return o.IPAddress
32820 }
32821
32822 // SetIPAddress sets value to IPAddress
32823 func (o *VPCRouterDHCPServerLease) SetIPAddress(v string) {
32824 o.IPAddress = v
32825 }
32826
32827 // GetMACAddress returns value of MACAddress
32828 func (o *VPCRouterDHCPServerLease) GetMACAddress() string {
32829 return o.MACAddress
32830 }
32831
32832 // SetMACAddress sets value to MACAddress
32833 func (o *VPCRouterDHCPServerLease) SetMACAddress(v string) {
32834 o.MACAddress = v
32835 }
32836
32837 /*************************************************
32838 * VPCRouterL2TPIPsecServerSession
32839 *************************************************/
32840
32841 // VPCRouterL2TPIPsecServerSession represents API parameter/response structure
32842 type VPCRouterL2TPIPsecServerSession struct {
32843 User string
32844 IPAddress string
32845 TimeSec int
32846 }
32847
32848 // setDefaults implements iaas.argumentDefaulter
32849 func (o *VPCRouterL2TPIPsecServerSession) setDefaults() interface{} {
32850 return &struct {
32851 User string
32852 IPAddress string
32853 TimeSec int
32854 }{
32855 User: o.GetUser(),
32856 IPAddress: o.GetIPAddress(),
32857 TimeSec: o.GetTimeSec(),
32858 }
32859 }
32860
32861 // GetUser returns value of User
32862 func (o *VPCRouterL2TPIPsecServerSession) GetUser() string {
32863 return o.User
32864 }
32865
32866 // SetUser sets value to User
32867 func (o *VPCRouterL2TPIPsecServerSession) SetUser(v string) {
32868 o.User = v
32869 }
32870
32871 // GetIPAddress returns value of IPAddress
32872 func (o *VPCRouterL2TPIPsecServerSession) GetIPAddress() string {
32873 return o.IPAddress
32874 }
32875
32876 // SetIPAddress sets value to IPAddress
32877 func (o *VPCRouterL2TPIPsecServerSession) SetIPAddress(v string) {
32878 o.IPAddress = v
32879 }
32880
32881 // GetTimeSec returns value of TimeSec
32882 func (o *VPCRouterL2TPIPsecServerSession) GetTimeSec() int {
32883 return o.TimeSec
32884 }
32885
32886 // SetTimeSec sets value to TimeSec
32887 func (o *VPCRouterL2TPIPsecServerSession) SetTimeSec(v int) {
32888 o.TimeSec = v
32889 }
32890
32891 /*************************************************
32892 * VPCRouterPPTPServerSession
32893 *************************************************/
32894
32895 // VPCRouterPPTPServerSession represents API parameter/response structure
32896 type VPCRouterPPTPServerSession struct {
32897 User string
32898 IPAddress string
32899 TimeSec int
32900 }
32901
32902 // setDefaults implements iaas.argumentDefaulter
32903 func (o *VPCRouterPPTPServerSession) setDefaults() interface{} {
32904 return &struct {
32905 User string
32906 IPAddress string
32907 TimeSec int
32908 }{
32909 User: o.GetUser(),
32910 IPAddress: o.GetIPAddress(),
32911 TimeSec: o.GetTimeSec(),
32912 }
32913 }
32914
32915 // GetUser returns value of User
32916 func (o *VPCRouterPPTPServerSession) GetUser() string {
32917 return o.User
32918 }
32919
32920 // SetUser sets value to User
32921 func (o *VPCRouterPPTPServerSession) SetUser(v string) {
32922 o.User = v
32923 }
32924
32925 // GetIPAddress returns value of IPAddress
32926 func (o *VPCRouterPPTPServerSession) GetIPAddress() string {
32927 return o.IPAddress
32928 }
32929
32930 // SetIPAddress sets value to IPAddress
32931 func (o *VPCRouterPPTPServerSession) SetIPAddress(v string) {
32932 o.IPAddress = v
32933 }
32934
32935 // GetTimeSec returns value of TimeSec
32936 func (o *VPCRouterPPTPServerSession) GetTimeSec() int {
32937 return o.TimeSec
32938 }
32939
32940 // SetTimeSec sets value to TimeSec
32941 func (o *VPCRouterPPTPServerSession) SetTimeSec(v int) {
32942 o.TimeSec = v
32943 }
32944
32945 /*************************************************
32946 * VPCRouterSiteToSiteIPsecVPNPeer
32947 *************************************************/
32948
32949 // VPCRouterSiteToSiteIPsecVPNPeer represents API parameter/response structure
32950 type VPCRouterSiteToSiteIPsecVPNPeer struct {
32951 Status string
32952 Peer string
32953 }
32954
32955 // setDefaults implements iaas.argumentDefaulter
32956 func (o *VPCRouterSiteToSiteIPsecVPNPeer) setDefaults() interface{} {
32957 return &struct {
32958 Status string
32959 Peer string
32960 }{
32961 Status: o.GetStatus(),
32962 Peer: o.GetPeer(),
32963 }
32964 }
32965
32966 // GetStatus returns value of Status
32967 func (o *VPCRouterSiteToSiteIPsecVPNPeer) GetStatus() string {
32968 return o.Status
32969 }
32970
32971 // SetStatus sets value to Status
32972 func (o *VPCRouterSiteToSiteIPsecVPNPeer) SetStatus(v string) {
32973 o.Status = v
32974 }
32975
32976 // GetPeer returns value of Peer
32977 func (o *VPCRouterSiteToSiteIPsecVPNPeer) GetPeer() string {
32978 return o.Peer
32979 }
32980
32981 // SetPeer sets value to Peer
32982 func (o *VPCRouterSiteToSiteIPsecVPNPeer) SetPeer(v string) {
32983 o.Peer = v
32984 }
32985
32986 /*************************************************
32987 * VPCRouterSessionAnalysis
32988 *************************************************/
32989
32990 // VPCRouterSessionAnalysis represents API parameter/response structure
32991 type VPCRouterSessionAnalysis struct {
32992 SourceAndDestination []*VPCRouterStatisticsValue
32993 DestinationAddress []*VPCRouterStatisticsValue
32994 DestinationPort []*VPCRouterStatisticsValue
32995 SourceAddress []*VPCRouterStatisticsValue
32996 }
32997
32998 // setDefaults implements iaas.argumentDefaulter
32999 func (o *VPCRouterSessionAnalysis) setDefaults() interface{} {
33000 return &struct {
33001 SourceAndDestination []*VPCRouterStatisticsValue
33002 DestinationAddress []*VPCRouterStatisticsValue
33003 DestinationPort []*VPCRouterStatisticsValue
33004 SourceAddress []*VPCRouterStatisticsValue
33005 }{
33006 SourceAndDestination: o.GetSourceAndDestination(),
33007 DestinationAddress: o.GetDestinationAddress(),
33008 DestinationPort: o.GetDestinationPort(),
33009 SourceAddress: o.GetSourceAddress(),
33010 }
33011 }
33012
33013 // GetSourceAndDestination returns value of SourceAndDestination
33014 func (o *VPCRouterSessionAnalysis) GetSourceAndDestination() []*VPCRouterStatisticsValue {
33015 return o.SourceAndDestination
33016 }
33017
33018 // SetSourceAndDestination sets value to SourceAndDestination
33019 func (o *VPCRouterSessionAnalysis) SetSourceAndDestination(v []*VPCRouterStatisticsValue) {
33020 o.SourceAndDestination = v
33021 }
33022
33023 // GetDestinationAddress returns value of DestinationAddress
33024 func (o *VPCRouterSessionAnalysis) GetDestinationAddress() []*VPCRouterStatisticsValue {
33025 return o.DestinationAddress
33026 }
33027
33028 // SetDestinationAddress sets value to DestinationAddress
33029 func (o *VPCRouterSessionAnalysis) SetDestinationAddress(v []*VPCRouterStatisticsValue) {
33030 o.DestinationAddress = v
33031 }
33032
33033 // GetDestinationPort returns value of DestinationPort
33034 func (o *VPCRouterSessionAnalysis) GetDestinationPort() []*VPCRouterStatisticsValue {
33035 return o.DestinationPort
33036 }
33037
33038 // SetDestinationPort sets value to DestinationPort
33039 func (o *VPCRouterSessionAnalysis) SetDestinationPort(v []*VPCRouterStatisticsValue) {
33040 o.DestinationPort = v
33041 }
33042
33043 // GetSourceAddress returns value of SourceAddress
33044 func (o *VPCRouterSessionAnalysis) GetSourceAddress() []*VPCRouterStatisticsValue {
33045 return o.SourceAddress
33046 }
33047
33048 // SetSourceAddress sets value to SourceAddress
33049 func (o *VPCRouterSessionAnalysis) SetSourceAddress(v []*VPCRouterStatisticsValue) {
33050 o.SourceAddress = v
33051 }
33052
33053 /*************************************************
33054 * VPCRouterStatisticsValue
33055 *************************************************/
33056
33057 // VPCRouterStatisticsValue represents API parameter/response structure
33058 type VPCRouterStatisticsValue struct {
33059 Name string
33060 Count int
33061 }
33062
33063 // setDefaults implements iaas.argumentDefaulter
33064 func (o *VPCRouterStatisticsValue) setDefaults() interface{} {
33065 return &struct {
33066 Name string
33067 Count int
33068 }{
33069 Name: o.GetName(),
33070 Count: o.GetCount(),
33071 }
33072 }
33073
33074 // GetName returns value of Name
33075 func (o *VPCRouterStatisticsValue) GetName() string {
33076 return o.Name
33077 }
33078
33079 // SetName sets value to Name
33080 func (o *VPCRouterStatisticsValue) SetName(v string) {
33081 o.Name = v
33082 }
33083
33084 // GetCount returns value of Count
33085 func (o *VPCRouterStatisticsValue) GetCount() int {
33086 return o.Count
33087 }
33088
33089 // SetCount sets value to Count
33090 func (o *VPCRouterStatisticsValue) SetCount(v int) {
33091 o.Count = v
33092 }
33093
33094 /*************************************************
33095 * VPCRouterLog
33096 *************************************************/
33097
33098 // VPCRouterLog represents API parameter/response structure
33099 type VPCRouterLog struct {
33100 Log string
33101 }
33102
33103 // setDefaults implements iaas.argumentDefaulter
33104 func (o *VPCRouterLog) setDefaults() interface{} {
33105 return &struct {
33106 Log string
33107 }{
33108 Log: o.GetLog(),
33109 }
33110 }
33111
33112 // GetLog returns value of Log
33113 func (o *VPCRouterLog) GetLog() string {
33114 return o.Log
33115 }
33116
33117 // SetLog sets value to Log
33118 func (o *VPCRouterLog) SetLog(v string) {
33119 o.Log = v
33120 }
33121
33122 /*************************************************
33123 * VPCRouterPingResults
33124 *************************************************/
33125
33126 // VPCRouterPingResults represents API parameter/response structure
33127 type VPCRouterPingResults struct {
33128 Result []string
33129 }
33130
33131 // setDefaults implements iaas.argumentDefaulter
33132 func (o *VPCRouterPingResults) setDefaults() interface{} {
33133 return &struct {
33134 Result []string
33135 }{
33136 Result: o.GetResult(),
33137 }
33138 }
33139
33140 // GetResult returns value of Result
33141 func (o *VPCRouterPingResults) GetResult() []string {
33142 return o.Result
33143 }
33144
33145 // SetResult sets value to Result
33146 func (o *VPCRouterPingResults) SetResult(v []string) {
33147 o.Result = v
33148 }
33149
33150 /*************************************************
33151 * Zone
33152 *************************************************/
33153
33154 // Zone represents API parameter/response structure
33155 type Zone struct {
33156 ID types.ID
33157 Name string
33158 Description string
33159 DisplayOrder int64
33160 IsDummy bool
33161 VNCProxy *VNCProxy `json:",omitempty"`
33162 FTPServer *FTPServerInfo `json:",omitempty"`
33163 Region *Region `json:",omitempty"`
33164 }
33165
33166 // setDefaults implements iaas.argumentDefaulter
33167 func (o *Zone) setDefaults() interface{} {
33168 return &struct {
33169 ID types.ID
33170 Name string
33171 Description string
33172 DisplayOrder int64
33173 IsDummy bool
33174 VNCProxy *VNCProxy `json:",omitempty"`
33175 FTPServer *FTPServerInfo `json:",omitempty"`
33176 Region *Region `json:",omitempty"`
33177 }{
33178 ID: o.GetID(),
33179 Name: o.GetName(),
33180 Description: o.GetDescription(),
33181 DisplayOrder: o.GetDisplayOrder(),
33182 IsDummy: o.GetIsDummy(),
33183 VNCProxy: o.GetVNCProxy(),
33184 FTPServer: o.GetFTPServer(),
33185 Region: o.GetRegion(),
33186 }
33187 }
33188
33189 // GetID returns value of ID
33190 func (o *Zone) GetID() types.ID {
33191 return o.ID
33192 }
33193
33194 // SetID sets value to ID
33195 func (o *Zone) SetID(v types.ID) {
33196 o.ID = v
33197 }
33198
33199 // SetStringID .
33200 func (o *Zone) SetStringID(id string) {
33201 accessor.SetStringID(o, id)
33202 }
33203
33204 // GetStringID .
33205 func (o *Zone) GetStringID() string {
33206 return accessor.GetStringID(o)
33207 }
33208
33209 // SetInt64ID .
33210 func (o *Zone) SetInt64ID(id int64) {
33211 accessor.SetInt64ID(o, id)
33212 }
33213
33214 // GetInt64ID .
33215 func (o *Zone) GetInt64ID() int64 {
33216 return accessor.GetInt64ID(o)
33217 }
33218
33219 // GetName returns value of Name
33220 func (o *Zone) GetName() string {
33221 return o.Name
33222 }
33223
33224 // SetName sets value to Name
33225 func (o *Zone) SetName(v string) {
33226 o.Name = v
33227 }
33228
33229 // GetDescription returns value of Description
33230 func (o *Zone) GetDescription() string {
33231 return o.Description
33232 }
33233
33234 // SetDescription sets value to Description
33235 func (o *Zone) SetDescription(v string) {
33236 o.Description = v
33237 }
33238
33239 // GetDisplayOrder returns value of DisplayOrder
33240 func (o *Zone) GetDisplayOrder() int64 {
33241 return o.DisplayOrder
33242 }
33243
33244 // SetDisplayOrder sets value to DisplayOrder
33245 func (o *Zone) SetDisplayOrder(v int64) {
33246 o.DisplayOrder = v
33247 }
33248
33249 // GetIsDummy returns value of IsDummy
33250 func (o *Zone) GetIsDummy() bool {
33251 return o.IsDummy
33252 }
33253
33254 // SetIsDummy sets value to IsDummy
33255 func (o *Zone) SetIsDummy(v bool) {
33256 o.IsDummy = v
33257 }
33258
33259 // GetVNCProxy returns value of VNCProxy
33260 func (o *Zone) GetVNCProxy() *VNCProxy {
33261 return o.VNCProxy
33262 }
33263
33264 // SetVNCProxy sets value to VNCProxy
33265 func (o *Zone) SetVNCProxy(v *VNCProxy) {
33266 o.VNCProxy = v
33267 }
33268
33269 // GetFTPServer returns value of FTPServer
33270 func (o *Zone) GetFTPServer() *FTPServerInfo {
33271 return o.FTPServer
33272 }
33273
33274 // SetFTPServer sets value to FTPServer
33275 func (o *Zone) SetFTPServer(v *FTPServerInfo) {
33276 o.FTPServer = v
33277 }
33278
33279 // GetRegion returns value of Region
33280 func (o *Zone) GetRegion() *Region {
33281 return o.Region
33282 }
33283
33284 // SetRegion sets value to Region
33285 func (o *Zone) SetRegion(v *Region) {
33286 o.Region = v
33287 }
33288