-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy pathzz_result.go
2325 lines (1782 loc) · 71.7 KB
/
zz_result.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
// Copyright 2022-2025 The sacloud/iaas-api-go Authors
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
// generated by 'github.com/sacloud/iaas-api-go/internal/tools/gen-api-result'; DO NOT EDIT
package iaas
// ArchiveFindResult represents the Result of API
type ArchiveFindResult struct {
Total int `json:",omitempty"` // Total count of target resources
From int `json:",omitempty"` // Current page number
Count int `json:",omitempty"` // Count of current page
Archives []*Archive `json:",omitempty" mapconv:"[]Archives,omitempty,recursive"`
}
// Values returns find results
func (r *ArchiveFindResult) Values() []interface{} {
var results []interface{}
for _, v := range r.Archives {
results = append(results, v)
}
return results
}
// archiveCreateResult represents the Result of API
type archiveCreateResult struct {
IsOk bool `json:",omitempty"` // is_ok
Archive *Archive `json:",omitempty" mapconv:"Archive,omitempty,recursive"`
}
// archiveCreateBlankResult represents the Result of API
type archiveCreateBlankResult struct {
IsOk bool `json:",omitempty"` // is_ok
Archive *Archive `json:",omitempty" mapconv:"Archive,omitempty,recursive"`
FTPServer *FTPServer `json:",omitempty" mapconv:"FTPServer,omitempty,recursive"`
}
// archiveReadResult represents the Result of API
type archiveReadResult struct {
IsOk bool `json:",omitempty"` // is_ok
Archive *Archive `json:",omitempty" mapconv:"Archive,omitempty,recursive"`
}
// archiveUpdateResult represents the Result of API
type archiveUpdateResult struct {
IsOk bool `json:",omitempty"` // is_ok
Archive *Archive `json:",omitempty" mapconv:"Archive,omitempty,recursive"`
}
// archiveOpenFTPResult represents the Result of API
type archiveOpenFTPResult struct {
IsOk bool `json:",omitempty"` // is_ok
FTPServer *FTPServer `json:",omitempty" mapconv:"FTPServer,omitempty,recursive"`
}
// archiveShareResult represents the Result of API
type archiveShareResult struct {
IsOk bool `json:",omitempty"` // is_ok
ArchiveShareInfo *ArchiveShareInfo `json:",omitempty" mapconv:"ArchiveShareInfo,omitempty,recursive"`
}
// archiveCreateFromSharedResult represents the Result of API
type archiveCreateFromSharedResult struct {
IsOk bool `json:",omitempty"` // is_ok
Archive *Archive `json:",omitempty" mapconv:"Archive,omitempty,recursive"`
}
// archiveTransferResult represents the Result of API
type archiveTransferResult struct {
IsOk bool `json:",omitempty"` // is_ok
Archive *Archive `json:",omitempty" mapconv:"Archive,omitempty,recursive"`
}
// authStatusReadResult represents the Result of API
type authStatusReadResult struct {
IsOk bool `json:",omitempty"` // is_ok
AuthStatus *AuthStatus `json:",omitempty" mapconv:"AuthStatus,omitempty,recursive"`
}
// AutoBackupFindResult represents the Result of API
type AutoBackupFindResult struct {
Total int `json:",omitempty"` // Total count of target resources
From int `json:",omitempty"` // Current page number
Count int `json:",omitempty"` // Count of current page
AutoBackups []*AutoBackup `json:",omitempty" mapconv:"[]CommonServiceItems,omitempty,recursive"`
}
// Values returns find results
func (r *AutoBackupFindResult) Values() []interface{} {
var results []interface{}
for _, v := range r.AutoBackups {
results = append(results, v)
}
return results
}
// autoBackupCreateResult represents the Result of API
type autoBackupCreateResult struct {
IsOk bool `json:",omitempty"` // is_ok
AutoBackup *AutoBackup `json:",omitempty" mapconv:"CommonServiceItem,omitempty,recursive"`
}
// autoBackupReadResult represents the Result of API
type autoBackupReadResult struct {
IsOk bool `json:",omitempty"` // is_ok
AutoBackup *AutoBackup `json:",omitempty" mapconv:"CommonServiceItem,omitempty,recursive"`
}
// autoBackupUpdateResult represents the Result of API
type autoBackupUpdateResult struct {
IsOk bool `json:",omitempty"` // is_ok
AutoBackup *AutoBackup `json:",omitempty" mapconv:"CommonServiceItem,omitempty,recursive"`
}
// autoBackupUpdateSettingsResult represents the Result of API
type autoBackupUpdateSettingsResult struct {
IsOk bool `json:",omitempty"` // is_ok
AutoBackup *AutoBackup `json:",omitempty" mapconv:"CommonServiceItem,omitempty,recursive"`
}
// AutoScaleFindResult represents the Result of API
type AutoScaleFindResult struct {
Total int `json:",omitempty"` // Total count of target resources
From int `json:",omitempty"` // Current page number
Count int `json:",omitempty"` // Count of current page
AutoScale []*AutoScale `json:",omitempty" mapconv:"[]CommonServiceItems,omitempty,recursive"`
}
// Values returns find results
func (r *AutoScaleFindResult) Values() []interface{} {
var results []interface{}
for _, v := range r.AutoScale {
results = append(results, v)
}
return results
}
// autoScaleCreateResult represents the Result of API
type autoScaleCreateResult struct {
IsOk bool `json:",omitempty"` // is_ok
AutoScale *AutoScale `json:",omitempty" mapconv:"CommonServiceItem,omitempty,recursive"`
}
// autoScaleReadResult represents the Result of API
type autoScaleReadResult struct {
IsOk bool `json:",omitempty"` // is_ok
AutoScale *AutoScale `json:",omitempty" mapconv:"CommonServiceItem,omitempty,recursive"`
}
// autoScaleUpdateResult represents the Result of API
type autoScaleUpdateResult struct {
IsOk bool `json:",omitempty"` // is_ok
AutoScale *AutoScale `json:",omitempty" mapconv:"CommonServiceItem,omitempty,recursive"`
}
// autoScaleUpdateSettingsResult represents the Result of API
type autoScaleUpdateSettingsResult struct {
IsOk bool `json:",omitempty"` // is_ok
AutoScale *AutoScale `json:",omitempty" mapconv:"CommonServiceItem,omitempty,recursive"`
}
// autoScaleStatusResult represents the Result of API
type autoScaleStatusResult struct {
IsOk bool `json:",omitempty"` // is_ok
AutoScaleStatus *AutoScaleStatus `json:",omitempty" mapconv:"AutoScale,omitempty,recursive"`
}
// BillByContractResult represents the Result of API
type BillByContractResult struct {
Total int `json:",omitempty"` // Total count of target resources
From int `json:",omitempty"` // Current page number
Count int `json:",omitempty"` // Count of current page
Bills []*Bill `json:",omitempty" mapconv:"[]Bills,omitempty,recursive"`
}
// Values returns find results
func (r *BillByContractResult) Values() []interface{} {
var results []interface{}
for _, v := range r.Bills {
results = append(results, v)
}
return results
}
// BillByContractYearResult represents the Result of API
type BillByContractYearResult struct {
Total int `json:",omitempty"` // Total count of target resources
From int `json:",omitempty"` // Current page number
Count int `json:",omitempty"` // Count of current page
Bills []*Bill `json:",omitempty" mapconv:"[]Bills,omitempty,recursive"`
}
// Values returns find results
func (r *BillByContractYearResult) Values() []interface{} {
var results []interface{}
for _, v := range r.Bills {
results = append(results, v)
}
return results
}
// BillByContractYearMonthResult represents the Result of API
type BillByContractYearMonthResult struct {
Total int `json:",omitempty"` // Total count of target resources
From int `json:",omitempty"` // Current page number
Count int `json:",omitempty"` // Count of current page
Bills []*Bill `json:",omitempty" mapconv:"[]Bills,omitempty,recursive"`
}
// Values returns find results
func (r *BillByContractYearMonthResult) Values() []interface{} {
var results []interface{}
for _, v := range r.Bills {
results = append(results, v)
}
return results
}
// BillReadResult represents the Result of API
type BillReadResult struct {
Total int `json:",omitempty"` // Total count of target resources
From int `json:",omitempty"` // Current page number
Count int `json:",omitempty"` // Count of current page
Bills []*Bill `json:",omitempty" mapconv:"[]Bills,omitempty,recursive"`
}
// Values returns find results
func (r *BillReadResult) Values() []interface{} {
var results []interface{}
for _, v := range r.Bills {
results = append(results, v)
}
return results
}
// BillDetailsResult represents the Result of API
type BillDetailsResult struct {
Total int `json:",omitempty"` // Total count of target resources
From int `json:",omitempty"` // Current page number
Count int `json:",omitempty"` // Count of current page
BillDetails []*BillDetail `json:",omitempty" mapconv:"[]BillDetails,omitempty,recursive"`
}
// Values returns find results
func (r *BillDetailsResult) Values() []interface{} {
var results []interface{}
for _, v := range r.BillDetails {
results = append(results, v)
}
return results
}
// billDetailsCSVResult represents the Result of API
type billDetailsCSVResult struct {
IsOk bool `json:",omitempty"` // is_ok
BillDetailCSV *BillDetailCSV `json:",omitempty" mapconv:"CSV,omitempty,recursive"`
}
// BridgeFindResult represents the Result of API
type BridgeFindResult struct {
Total int `json:",omitempty"` // Total count of target resources
From int `json:",omitempty"` // Current page number
Count int `json:",omitempty"` // Count of current page
Bridges []*Bridge `json:",omitempty" mapconv:"[]Bridges,omitempty,recursive"`
}
// Values returns find results
func (r *BridgeFindResult) Values() []interface{} {
var results []interface{}
for _, v := range r.Bridges {
results = append(results, v)
}
return results
}
// bridgeCreateResult represents the Result of API
type bridgeCreateResult struct {
IsOk bool `json:",omitempty"` // is_ok
Bridge *Bridge `json:",omitempty" mapconv:"Bridge,omitempty,recursive"`
}
// bridgeReadResult represents the Result of API
type bridgeReadResult struct {
IsOk bool `json:",omitempty"` // is_ok
Bridge *Bridge `json:",omitempty" mapconv:"Bridge,omitempty,recursive"`
}
// bridgeUpdateResult represents the Result of API
type bridgeUpdateResult struct {
IsOk bool `json:",omitempty"` // is_ok
Bridge *Bridge `json:",omitempty" mapconv:"Bridge,omitempty,recursive"`
}
// CDROMFindResult represents the Result of API
type CDROMFindResult struct {
Total int `json:",omitempty"` // Total count of target resources
From int `json:",omitempty"` // Current page number
Count int `json:",omitempty"` // Count of current page
CDROMs []*CDROM `json:",omitempty" mapconv:"[]CDROMs,omitempty,recursive"`
}
// Values returns find results
func (r *CDROMFindResult) Values() []interface{} {
var results []interface{}
for _, v := range r.CDROMs {
results = append(results, v)
}
return results
}
// cDROMCreateResult represents the Result of API
type cDROMCreateResult struct {
IsOk bool `json:",omitempty"` // is_ok
CDROM *CDROM `json:",omitempty" mapconv:"CDROM,omitempty,recursive"`
FTPServer *FTPServer `json:",omitempty" mapconv:"FTPServer,omitempty,recursive"`
}
// cDROMReadResult represents the Result of API
type cDROMReadResult struct {
IsOk bool `json:",omitempty"` // is_ok
CDROM *CDROM `json:",omitempty" mapconv:"CDROM,omitempty,recursive"`
}
// cDROMUpdateResult represents the Result of API
type cDROMUpdateResult struct {
IsOk bool `json:",omitempty"` // is_ok
CDROM *CDROM `json:",omitempty" mapconv:"CDROM,omitempty,recursive"`
}
// cDROMOpenFTPResult represents the Result of API
type cDROMOpenFTPResult struct {
IsOk bool `json:",omitempty"` // is_ok
FTPServer *FTPServer `json:",omitempty" mapconv:"FTPServer,omitempty,recursive"`
}
// CertificateAuthorityFindResult represents the Result of API
type CertificateAuthorityFindResult struct {
Total int `json:",omitempty"` // Total count of target resources
From int `json:",omitempty"` // Current page number
Count int `json:",omitempty"` // Count of current page
CertificateAuthorities []*CertificateAuthority `json:",omitempty" mapconv:"[]CommonServiceItems,omitempty,recursive"`
}
// Values returns find results
func (r *CertificateAuthorityFindResult) Values() []interface{} {
var results []interface{}
for _, v := range r.CertificateAuthorities {
results = append(results, v)
}
return results
}
// certificateAuthorityCreateResult represents the Result of API
type certificateAuthorityCreateResult struct {
IsOk bool `json:",omitempty"` // is_ok
CertificateAuthority *CertificateAuthority `json:",omitempty" mapconv:"CommonServiceItem,omitempty,recursive"`
}
// certificateAuthorityReadResult represents the Result of API
type certificateAuthorityReadResult struct {
IsOk bool `json:",omitempty"` // is_ok
CertificateAuthority *CertificateAuthority `json:",omitempty" mapconv:"CommonServiceItem,omitempty,recursive"`
}
// certificateAuthorityUpdateResult represents the Result of API
type certificateAuthorityUpdateResult struct {
IsOk bool `json:",omitempty"` // is_ok
CertificateAuthority *CertificateAuthority `json:",omitempty" mapconv:"CommonServiceItem,omitempty,recursive"`
}
// certificateAuthorityDetailResult represents the Result of API
type certificateAuthorityDetailResult struct {
IsOk bool `json:",omitempty"` // is_ok
CertificateAuthority *CertificateAuthorityDetail `json:",omitempty" mapconv:"CertificateAuthority,omitempty,recursive"`
}
// certificateAuthorityAddClientResult represents the Result of API
type certificateAuthorityAddClientResult struct {
IsOk bool `json:",omitempty"` // is_ok
CertificateAuthority *CertificateAuthorityAddClientOrServerResult `json:",omitempty" mapconv:"CertificateAuthority,omitempty,recursive"`
}
// CertificateAuthorityListClientsResult represents the Result of API
type CertificateAuthorityListClientsResult struct {
Total int `json:",omitempty"` // Total count of target resources
From int `json:",omitempty"` // Current page number
Count int `json:",omitempty"` // Count of current page
CertificateAuthority []*CertificateAuthorityClient `json:",omitempty" mapconv:"[]CertificateAuthority,omitempty,recursive"`
}
// Values returns find results
func (r *CertificateAuthorityListClientsResult) Values() []interface{} {
var results []interface{}
for _, v := range r.CertificateAuthority {
results = append(results, v)
}
return results
}
// certificateAuthorityReadClientResult represents the Result of API
type certificateAuthorityReadClientResult struct {
IsOk bool `json:",omitempty"` // is_ok
CertificateAuthority *CertificateAuthorityClient `json:",omitempty" mapconv:"CertificateAuthority,omitempty,recursive"`
}
// certificateAuthorityAddServerResult represents the Result of API
type certificateAuthorityAddServerResult struct {
IsOk bool `json:",omitempty"` // is_ok
CertificateAuthority *CertificateAuthorityAddClientOrServerResult `json:",omitempty" mapconv:"CertificateAuthority,omitempty,recursive"`
}
// CertificateAuthorityListServersResult represents the Result of API
type CertificateAuthorityListServersResult struct {
Total int `json:",omitempty"` // Total count of target resources
From int `json:",omitempty"` // Current page number
Count int `json:",omitempty"` // Count of current page
CertificateAuthority []*CertificateAuthorityServer `json:",omitempty" mapconv:"[]CertificateAuthority,omitempty,recursive"`
}
// Values returns find results
func (r *CertificateAuthorityListServersResult) Values() []interface{} {
var results []interface{}
for _, v := range r.CertificateAuthority {
results = append(results, v)
}
return results
}
// certificateAuthorityReadServerResult represents the Result of API
type certificateAuthorityReadServerResult struct {
IsOk bool `json:",omitempty"` // is_ok
CertificateAuthority *CertificateAuthorityServer `json:",omitempty" mapconv:"CertificateAuthority,omitempty,recursive"`
}
// ContainerRegistryFindResult represents the Result of API
type ContainerRegistryFindResult struct {
Total int `json:",omitempty"` // Total count of target resources
From int `json:",omitempty"` // Current page number
Count int `json:",omitempty"` // Count of current page
ContainerRegistries []*ContainerRegistry `json:",omitempty" mapconv:"[]CommonServiceItems,omitempty,recursive"`
}
// Values returns find results
func (r *ContainerRegistryFindResult) Values() []interface{} {
var results []interface{}
for _, v := range r.ContainerRegistries {
results = append(results, v)
}
return results
}
// containerRegistryCreateResult represents the Result of API
type containerRegistryCreateResult struct {
IsOk bool `json:",omitempty"` // is_ok
ContainerRegistry *ContainerRegistry `json:",omitempty" mapconv:"CommonServiceItem,omitempty,recursive"`
}
// containerRegistryReadResult represents the Result of API
type containerRegistryReadResult struct {
IsOk bool `json:",omitempty"` // is_ok
ContainerRegistry *ContainerRegistry `json:",omitempty" mapconv:"CommonServiceItem,omitempty,recursive"`
}
// containerRegistryUpdateResult represents the Result of API
type containerRegistryUpdateResult struct {
IsOk bool `json:",omitempty"` // is_ok
ContainerRegistry *ContainerRegistry `json:",omitempty" mapconv:"CommonServiceItem,omitempty,recursive"`
}
// containerRegistryUpdateSettingsResult represents the Result of API
type containerRegistryUpdateSettingsResult struct {
IsOk bool `json:",omitempty"` // is_ok
ContainerRegistry *ContainerRegistry `json:",omitempty" mapconv:"CommonServiceItem,omitempty,recursive"`
}
// containerRegistryListUsersResult represents the Result of API
type containerRegistryListUsersResult struct {
IsOk bool `json:",omitempty"` // is_ok
ContainerRegistryUsers *ContainerRegistryUsers `json:",omitempty" mapconv:"ContainerRegistry,omitempty,recursive"`
}
// CouponFindResult represents the Result of API
type CouponFindResult struct {
Total int `json:",omitempty"` // Total count of target resources
From int `json:",omitempty"` // Current page number
Count int `json:",omitempty"` // Count of current page
Coupons []*Coupon `json:",omitempty" mapconv:"[]Coupon,omitempty,recursive"`
}
// Values returns find results
func (r *CouponFindResult) Values() []interface{} {
var results []interface{}
for _, v := range r.Coupons {
results = append(results, v)
}
return results
}
// DatabaseFindResult represents the Result of API
type DatabaseFindResult struct {
Total int `json:",omitempty"` // Total count of target resources
From int `json:",omitempty"` // Current page number
Count int `json:",omitempty"` // Count of current page
Databases []*Database `json:",omitempty" mapconv:"[]Appliances,omitempty,recursive"`
}
// Values returns find results
func (r *DatabaseFindResult) Values() []interface{} {
var results []interface{}
for _, v := range r.Databases {
results = append(results, v)
}
return results
}
// databaseCreateResult represents the Result of API
type databaseCreateResult struct {
IsOk bool `json:",omitempty"` // is_ok
Database *Database `json:",omitempty" mapconv:"Appliance,omitempty,recursive"`
}
// databaseReadResult represents the Result of API
type databaseReadResult struct {
IsOk bool `json:",omitempty"` // is_ok
Database *Database `json:",omitempty" mapconv:"Appliance,omitempty,recursive"`
}
// databaseUpdateResult represents the Result of API
type databaseUpdateResult struct {
IsOk bool `json:",omitempty"` // is_ok
Database *Database `json:",omitempty" mapconv:"Appliance,omitempty,recursive"`
}
// databaseUpdateSettingsResult represents the Result of API
type databaseUpdateSettingsResult struct {
IsOk bool `json:",omitempty"` // is_ok
Database *Database `json:",omitempty" mapconv:"Appliance,omitempty,recursive"`
}
// databaseMonitorCPUResult represents the Result of API
type databaseMonitorCPUResult struct {
IsOk bool `json:",omitempty"` // is_ok
CPUTimeActivity *CPUTimeActivity `json:",omitempty" mapconv:"Data,omitempty,recursive"`
}
// databaseMonitorDiskResult represents the Result of API
type databaseMonitorDiskResult struct {
IsOk bool `json:",omitempty"` // is_ok
DiskActivity *DiskActivity `json:",omitempty" mapconv:"Data,omitempty,recursive"`
}
// databaseMonitorInterfaceResult represents the Result of API
type databaseMonitorInterfaceResult struct {
IsOk bool `json:",omitempty"` // is_ok
InterfaceActivity *InterfaceActivity `json:",omitempty" mapconv:"Data,omitempty,recursive"`
}
// databaseMonitorDatabaseResult represents the Result of API
type databaseMonitorDatabaseResult struct {
IsOk bool `json:",omitempty"` // is_ok
DatabaseActivity *DatabaseActivity `json:",omitempty" mapconv:"Data,omitempty,recursive"`
}
// databaseStatusResult represents the Result of API
type databaseStatusResult struct {
IsOk bool `json:",omitempty"` // is_ok
DatabaseStatus *DatabaseStatus `json:",omitempty" mapconv:"Appliance,omitempty,recursive"`
}
// databaseGetParameterResult represents the Result of API
type databaseGetParameterResult struct {
IsOk bool `json:",omitempty"` // is_ok
DatabaseParameter *DatabaseParameter `json:",omitempty" mapconv:"Database,omitempty,recursive"`
}
// DiskFindResult represents the Result of API
type DiskFindResult struct {
Total int `json:",omitempty"` // Total count of target resources
From int `json:",omitempty"` // Current page number
Count int `json:",omitempty"` // Count of current page
Disks []*Disk `json:",omitempty" mapconv:"[]Disks,omitempty,recursive"`
}
// Values returns find results
func (r *DiskFindResult) Values() []interface{} {
var results []interface{}
for _, v := range r.Disks {
results = append(results, v)
}
return results
}
// diskCreateResult represents the Result of API
type diskCreateResult struct {
IsOk bool `json:",omitempty"` // is_ok
Disk *Disk `json:",omitempty" mapconv:"Disk,omitempty,recursive"`
}
// diskCreateWithConfigResult represents the Result of API
type diskCreateWithConfigResult struct {
IsOk bool `json:",omitempty"` // is_ok
Disk *Disk `json:",omitempty" mapconv:"Disk,omitempty,recursive"`
}
// diskReadResult represents the Result of API
type diskReadResult struct {
IsOk bool `json:",omitempty"` // is_ok
Disk *Disk `json:",omitempty" mapconv:"Disk,omitempty,recursive"`
}
// diskUpdateResult represents the Result of API
type diskUpdateResult struct {
IsOk bool `json:",omitempty"` // is_ok
Disk *Disk `json:",omitempty" mapconv:"Disk,omitempty,recursive"`
}
// diskMonitorResult represents the Result of API
type diskMonitorResult struct {
IsOk bool `json:",omitempty"` // is_ok
DiskActivity *DiskActivity `json:",omitempty" mapconv:"Data,omitempty,recursive"`
}
// diskMonitorDiskResult represents the Result of API
type diskMonitorDiskResult struct {
IsOk bool `json:",omitempty"` // is_ok
DiskActivity *DiskActivity `json:",omitempty" mapconv:"Data,omitempty,recursive"`
}
// DiskPlanFindResult represents the Result of API
type DiskPlanFindResult struct {
Total int `json:",omitempty"` // Total count of target resources
From int `json:",omitempty"` // Current page number
Count int `json:",omitempty"` // Count of current page
DiskPlans []*DiskPlan `json:",omitempty" mapconv:"[]DiskPlans,omitempty,recursive"`
}
// Values returns find results
func (r *DiskPlanFindResult) Values() []interface{} {
var results []interface{}
for _, v := range r.DiskPlans {
results = append(results, v)
}
return results
}
// diskPlanReadResult represents the Result of API
type diskPlanReadResult struct {
IsOk bool `json:",omitempty"` // is_ok
DiskPlan *DiskPlan `json:",omitempty" mapconv:"DiskPlan,omitempty,recursive"`
}
// DNSFindResult represents the Result of API
type DNSFindResult struct {
Total int `json:",omitempty"` // Total count of target resources
From int `json:",omitempty"` // Current page number
Count int `json:",omitempty"` // Count of current page
DNS []*DNS `json:",omitempty" mapconv:"[]CommonServiceItems,omitempty,recursive"`
}
// Values returns find results
func (r *DNSFindResult) Values() []interface{} {
var results []interface{}
for _, v := range r.DNS {
results = append(results, v)
}
return results
}
// dNSCreateResult represents the Result of API
type dNSCreateResult struct {
IsOk bool `json:",omitempty"` // is_ok
DNS *DNS `json:",omitempty" mapconv:"CommonServiceItem,omitempty,recursive"`
}
// dNSReadResult represents the Result of API
type dNSReadResult struct {
IsOk bool `json:",omitempty"` // is_ok
DNS *DNS `json:",omitempty" mapconv:"CommonServiceItem,omitempty,recursive"`
}
// dNSUpdateResult represents the Result of API
type dNSUpdateResult struct {
IsOk bool `json:",omitempty"` // is_ok
DNS *DNS `json:",omitempty" mapconv:"CommonServiceItem,omitempty,recursive"`
}
// dNSUpdateSettingsResult represents the Result of API
type dNSUpdateSettingsResult struct {
IsOk bool `json:",omitempty"` // is_ok
DNS *DNS `json:",omitempty" mapconv:"CommonServiceItem,omitempty,recursive"`
}
// EnhancedDBFindResult represents the Result of API
type EnhancedDBFindResult struct {
Total int `json:",omitempty"` // Total count of target resources
From int `json:",omitempty"` // Current page number
Count int `json:",omitempty"` // Count of current page
EnhancedDBs []*EnhancedDB `json:",omitempty" mapconv:"[]CommonServiceItems,omitempty,recursive"`
}
// Values returns find results
func (r *EnhancedDBFindResult) Values() []interface{} {
var results []interface{}
for _, v := range r.EnhancedDBs {
results = append(results, v)
}
return results
}
// enhancedDBCreateResult represents the Result of API
type enhancedDBCreateResult struct {
IsOk bool `json:",omitempty"` // is_ok
EnhancedDB *EnhancedDB `json:",omitempty" mapconv:"CommonServiceItem,omitempty,recursive"`
}
// enhancedDBReadResult represents the Result of API
type enhancedDBReadResult struct {
IsOk bool `json:",omitempty"` // is_ok
EnhancedDB *EnhancedDB `json:",omitempty" mapconv:"CommonServiceItem,omitempty,recursive"`
}
// enhancedDBUpdateResult represents the Result of API
type enhancedDBUpdateResult struct {
IsOk bool `json:",omitempty"` // is_ok
EnhancedDB *EnhancedDB `json:",omitempty" mapconv:"CommonServiceItem,omitempty,recursive"`
}
// enhancedDBGetConfigResult represents the Result of API
type enhancedDBGetConfigResult struct {
IsOk bool `json:",omitempty"` // is_ok
EnhancedDBConfig *EnhancedDBConfig `json:",omitempty" mapconv:"EnhancedDB,omitempty,recursive"`
}
// ESMEFindResult represents the Result of API
type ESMEFindResult struct {
Total int `json:",omitempty"` // Total count of target resources
From int `json:",omitempty"` // Current page number
Count int `json:",omitempty"` // Count of current page
ESME []*ESME `json:",omitempty" mapconv:"[]CommonServiceItems,omitempty,recursive"`
}
// Values returns find results
func (r *ESMEFindResult) Values() []interface{} {
var results []interface{}
for _, v := range r.ESME {
results = append(results, v)
}
return results
}
// eSMECreateResult represents the Result of API
type eSMECreateResult struct {
IsOk bool `json:",omitempty"` // is_ok
ESME *ESME `json:",omitempty" mapconv:"CommonServiceItem,omitempty,recursive"`
}
// eSMEReadResult represents the Result of API
type eSMEReadResult struct {
IsOk bool `json:",omitempty"` // is_ok
ESME *ESME `json:",omitempty" mapconv:"CommonServiceItem,omitempty,recursive"`
}
// eSMEUpdateResult represents the Result of API
type eSMEUpdateResult struct {
IsOk bool `json:",omitempty"` // is_ok
ESME *ESME `json:",omitempty" mapconv:"CommonServiceItem,omitempty,recursive"`
}
// eSMESendMessageWithGeneratedOTPResult represents the Result of API
type eSMESendMessageWithGeneratedOTPResult struct {
IsOk bool `json:",omitempty"` // is_ok
ESMESendMessageResult *ESMESendMessageResult `json:",omitempty" mapconv:"ESME,omitempty,recursive"`
}
// eSMESendMessageWithInputtedOTPResult represents the Result of API
type eSMESendMessageWithInputtedOTPResult struct {
IsOk bool `json:",omitempty"` // is_ok
ESMESendMessageResult *ESMESendMessageResult `json:",omitempty" mapconv:"ESME,omitempty,recursive"`
}
// eSMELogsResult represents the Result of API
type eSMELogsResult struct {
IsOk bool `json:",omitempty"` // is_ok
Logs []*ESMELogs `json:",omitempty" mapconv:"[]ESME.Logs,omitempty,recursive"`
}
// GSLBFindResult represents the Result of API
type GSLBFindResult struct {
Total int `json:",omitempty"` // Total count of target resources
From int `json:",omitempty"` // Current page number
Count int `json:",omitempty"` // Count of current page
GSLBs []*GSLB `json:",omitempty" mapconv:"[]CommonServiceItems,omitempty,recursive"`
}
// Values returns find results
func (r *GSLBFindResult) Values() []interface{} {
var results []interface{}
for _, v := range r.GSLBs {
results = append(results, v)
}
return results
}
// gSLBCreateResult represents the Result of API
type gSLBCreateResult struct {
IsOk bool `json:",omitempty"` // is_ok
GSLB *GSLB `json:",omitempty" mapconv:"CommonServiceItem,omitempty,recursive"`
}
// gSLBReadResult represents the Result of API
type gSLBReadResult struct {
IsOk bool `json:",omitempty"` // is_ok
GSLB *GSLB `json:",omitempty" mapconv:"CommonServiceItem,omitempty,recursive"`
}
// gSLBUpdateResult represents the Result of API
type gSLBUpdateResult struct {
IsOk bool `json:",omitempty"` // is_ok
GSLB *GSLB `json:",omitempty" mapconv:"CommonServiceItem,omitempty,recursive"`
}
// gSLBUpdateSettingsResult represents the Result of API
type gSLBUpdateSettingsResult struct {
IsOk bool `json:",omitempty"` // is_ok
GSLB *GSLB `json:",omitempty" mapconv:"CommonServiceItem,omitempty,recursive"`
}
// IconFindResult represents the Result of API
type IconFindResult struct {
Total int `json:",omitempty"` // Total count of target resources
From int `json:",omitempty"` // Current page number
Count int `json:",omitempty"` // Count of current page
Icons []*Icon `json:",omitempty" mapconv:"[]Icons,omitempty,recursive"`
}
// Values returns find results
func (r *IconFindResult) Values() []interface{} {
var results []interface{}
for _, v := range r.Icons {
results = append(results, v)
}
return results
}
// iconCreateResult represents the Result of API
type iconCreateResult struct {
IsOk bool `json:",omitempty"` // is_ok
Icon *Icon `json:",omitempty" mapconv:"Icon,omitempty,recursive"`
}
// iconReadResult represents the Result of API
type iconReadResult struct {
IsOk bool `json:",omitempty"` // is_ok
Icon *Icon `json:",omitempty" mapconv:"Icon,omitempty,recursive"`
}
// iconUpdateResult represents the Result of API
type iconUpdateResult struct {
IsOk bool `json:",omitempty"` // is_ok
Icon *Icon `json:",omitempty" mapconv:"Icon,omitempty,recursive"`
}
// InterfaceFindResult represents the Result of API
type InterfaceFindResult struct {
Total int `json:",omitempty"` // Total count of target resources
From int `json:",omitempty"` // Current page number
Count int `json:",omitempty"` // Count of current page
Interfaces []*Interface `json:",omitempty" mapconv:"[]Interfaces,omitempty,recursive"`
}
// Values returns find results
func (r *InterfaceFindResult) Values() []interface{} {
var results []interface{}
for _, v := range r.Interfaces {
results = append(results, v)
}
return results
}
// interfaceCreateResult represents the Result of API
type interfaceCreateResult struct {
IsOk bool `json:",omitempty"` // is_ok
Interface *Interface `json:",omitempty" mapconv:"Interface,omitempty,recursive"`
}
// interfaceReadResult represents the Result of API
type interfaceReadResult struct {