/
zz_generated.model.go
2969 lines (2743 loc) · 102 KB
/
zz_generated.model.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
// 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.
// Code generated by model-api-gen. DO NOT EDIT.
package compute
import (
time "time"
cloudprovider "yunion.io/x/cloudmux/pkg/cloudprovider"
jsonutils "yunion.io/x/jsonutils"
"yunion.io/x/onecloud/pkg/apis"
)
// SAccessGroup is an autogenerated struct via yunion.io/x/onecloud/pkg/compute/models.SAccessGroup.
type SAccessGroup struct {
apis.SStatusInfrasResourceBase
IsDirty bool `json:"is_dirty"`
}
// SAccessGroupCache is an autogenerated struct via yunion.io/x/onecloud/pkg/compute/models.SAccessGroupCache.
type SAccessGroupCache struct {
apis.SStatusStandaloneResourceBase
apis.SExternalizedResourceBase
SCloudregionResourceBase
SManagedResourceBase
SAccessGroupResourceBase
// 已关联的挂载点数量
MountTargetCount int `json:"mount_target_count"`
FileSystemType string `json:"file_system_type"`
NetworkType string `json:"network_type"`
}
// SAccessGroupResourceBase is an autogenerated struct via yunion.io/x/onecloud/pkg/compute/models.SAccessGroupResourceBase.
type SAccessGroupResourceBase struct {
// 权限组Id
AccessGroupId string `json:"access_group_id"`
}
// SAccessGroupRule is an autogenerated struct via yunion.io/x/onecloud/pkg/compute/models.SAccessGroupRule.
type SAccessGroupRule struct {
apis.SResourceBase
SAccessGroupResourceBase
Id string `json:"id"`
Priority int `json:"priority"`
Source string `json:"source"`
RWAccessType string `json:"rw_access_type"`
UserAccessType string `json:"user_access_type"`
Description string `json:"description"`
}
// SApp is an autogenerated struct via yunion.io/x/onecloud/pkg/compute/models.SApp.
type SApp struct {
apis.SVirtualResourceBase
apis.SExternalizedResourceBase
apis.SEnabledResourceBase
SManagedResourceBase
SCloudregionResourceBase
Type string `json:"type"`
TechStack string `json:"tech_stack"`
Kind string `json:"kind"`
}
// SAppEnvironment is an autogenerated struct via yunion.io/x/onecloud/pkg/compute/models.SAppEnvironment.
type SAppEnvironment struct {
apis.SVirtualResourceBase
apis.SExternalizedResourceBase
AppId string `json:"app_id"`
InstanceType string `json:"instance_type"`
InstanceNumber int `json:"instance_number"`
}
// SAwsCachedLb is an autogenerated struct via yunion.io/x/onecloud/pkg/compute/models.SAwsCachedLb.
type SAwsCachedLb struct {
apis.SVirtualResourceBase
apis.SExternalizedResourceBase
SManagedResourceBase
SCloudregionResourceBase
BackendServerId string `json:"backend_server_id"`
// 后端服务器 实例ID
BackendId string `json:"backend_id"`
// 本地loadbalancebackend id
CachedBackendGroupId string `json:"cached_backend_group_id"`
}
// SAwsCachedLbbg is an autogenerated struct via yunion.io/x/onecloud/pkg/compute/models.SAwsCachedLbbg.
type SAwsCachedLbbg struct {
apis.SVirtualResourceBase
apis.SExternalizedResourceBase
SManagedResourceBase
SCloudregionResourceBase
LoadbalancerId string `json:"loadbalancer_id"`
BackendGroupId string `json:"backend_group_id"`
TargetType string `json:"target_type"`
// 后端服务器类型
ProtocolType string `json:"protocol_type"`
// 监听协议类型
Port int `json:"port"`
// 监听端口
HealthCheckProtocol string `json:"health_check_protocol"`
// 健康检查协议类型
HealthCheckInterval int `json:"health_check_interval"`
}
// SBackupDiskConfig is an autogenerated struct via yunion.io/x/onecloud/pkg/compute/models.SBackupDiskConfig.
type SBackupDiskConfig struct {
DiskConfig
Name string `json:"name"`
}
// SBackupStorage is an autogenerated struct via yunion.io/x/onecloud/pkg/compute/models.SBackupStorage.
type SBackupStorage struct {
apis.SEnabledStatusInfrasResourceBase
AccessInfo *SBackupStorageAccessInfo `json:"access_info"`
StorageType string `json:"storage_type"`
CapacityMb int `json:"capacity_mb"`
}
// SBackupStorageAccessInfo is an autogenerated struct via yunion.io/x/onecloud/pkg/compute/models.SBackupStorageAccessInfo.
type SBackupStorageAccessInfo struct {
NfsHost string `json:"nfs_host"`
NfsSharedDir string `json:"nfs_shared_dir"`
}
// SBaremetalagent is an autogenerated struct via yunion.io/x/onecloud/pkg/compute/models.SBaremetalagent.
type SBaremetalagent struct {
apis.SStandaloneResourceBase
SZoneResourceBase
Status string `json:"status"`
AccessIp string `json:"access_ip"`
ManagerUri string `json:"manager_uri"`
AgentType string `json:"agent_type"`
Version string `json:"version"`
StoragecacheId string `json:"storagecache_id"`
DisableImageCache bool `json:"disable_image_cache"`
}
// SBillingResourceBase is an autogenerated struct via yunion.io/x/onecloud/pkg/compute/models.SBillingResourceBase.
type SBillingResourceBase struct {
// 计费类型, 按量、包年包月
// example: postpaid
BillingType string `json:"billing_type"`
// 过期时间
ExpiredAt time.Time `json:"expired_at"`
// 计费周期
BillingCycle string `json:"billing_cycle"`
// 是否自动续费
AutoRenew bool `json:"auto_renew"`
}
// SBillingResourceCheck is an autogenerated struct via yunion.io/x/onecloud/pkg/compute/models.SBillingResourceCheck.
type SBillingResourceCheck struct {
apis.SResourceBase
ResourceId string `json:"resource_id"`
ResourceType string `json:"resource_type"`
AdvanceDays int `json:"advance_days"`
NotifyNumber int `json:"notify_number"`
}
// SBucket is an autogenerated struct via yunion.io/x/onecloud/pkg/compute/models.SBucket.
type SBucket struct {
apis.SSharableVirtualResourceBase
apis.SExternalizedResourceBase
SCloudregionResourceBase
SManagedResourceBase
StorageClass string `json:"storage_class"`
Location string `json:"location"`
Acl string `json:"acl"`
SizeBytes int64 `json:"size_bytes"`
ObjectCnt int `json:"object_cnt"`
SizeBytesLimit int64 `json:"size_bytes_limit"`
ObjectCntLimit int `json:"object_cnt_limit"`
AccessUrls jsonutils.JSONObject `json:"access_urls"`
}
// SCDNDomain is an autogenerated struct via yunion.io/x/onecloud/pkg/compute/models.SCDNDomain.
type SCDNDomain struct {
apis.SEnabledStatusInfrasResourceBase
apis.SExternalizedResourceBase
SDeletePreventableResourceBase
SManagedResourceBase
Cname string `json:"cname"`
// 源站信息
Origins *cloudprovider.SCdnOrigins `json:"origins"`
// 服务类别
ServiceType string `json:"service_type"`
// 加速区域
Area string `json:"area"`
}
// SCachedLoadbalancerAcl is an autogenerated struct via yunion.io/x/onecloud/pkg/compute/models.SCachedLoadbalancerAcl.
type SCachedLoadbalancerAcl struct {
apis.SVirtualResourceBase
apis.SExternalizedResourceBase
SManagedResourceBase
SCloudregionResourceBase
SLoadbalancerAclResourceBase
ListenerId string `json:"listener_id"`
}
// SCachedLoadbalancerCertificate is an autogenerated struct via yunion.io/x/onecloud/pkg/compute/models.SCachedLoadbalancerCertificate.
type SCachedLoadbalancerCertificate struct {
apis.SVirtualResourceBase
apis.SExternalizedResourceBase
SManagedResourceBase
// 云账号ID
SCloudregionResourceBase
SLoadbalancerCertificateResourceBase
}
// SCachedimage is an autogenerated struct via yunion.io/x/onecloud/pkg/compute/models.SCachedimage.
type SCachedimage struct {
apis.SSharableVirtualResourceBase
apis.SExternalizedResourceBase
// 镜像大小单位: Byte
// example: 53687091200
Size int64 `json:"size"`
// 镜像详情信息
// example: {"deleted":false,"disk_format":"qcow2","id":"img-a6uucnfl","is_public":true,"min_disk":51200,"min_ram":0,"name":"FreeBSD 11.1 64bit","properties":{"os_arch":"x86_64","os_distribution":"FreeBSD","os_type":"FreeBSD","os_version":"11"},"protected":true,"size":53687091200,"status":"active"}
Info jsonutils.JSONObject `json:"info"`
// 上此同步时间
// example: 2020-01-17T05:28:54.000000Z
LastSync time.Time `json:"last_sync"`
// 最近一次缓存引用时间
// 2020-01-17T05:20:54.000000Z
LastRef time.Time `json:"last_ref"`
// 引用次数
// example: 0
RefCount int `json:"ref_count"`
// 是否支持UEFI
// example: false
UEFI *bool `json:"uefi,omitempty"`
// 镜像类型, system: 公有云镜像, customized: 自定义镜像
// example: system
ImageType string `json:"image_type"`
}
// SCloudaccount is an autogenerated struct via yunion.io/x/onecloud/pkg/compute/models.SCloudaccount.
type SCloudaccount struct {
apis.SEnabledStatusInfrasResourceBase
SSyncableBaseResource
// 项目Id
ProjectId string `json:"tenant_id"`
// 云环境连接地址
AccessUrl string `json:"access_url"`
// 云账号
Account string `json:"account"`
// 云账号密码
Secret string `json:"secret"`
// 云环境唯一标识
AccountId string `json:"account_id"`
// 是否是公有云账号
// example: true
IsPublicCloud *bool `json:"is_public_cloud,omitempty"`
// 是否是本地IDC账号
// example: false
IsOnPremise bool `json:"is_on_premise"`
// 云平台类型
// example: google
Provider string `json:"provider"`
// 账户余额
// example: 124.2
Balance float64 `json:"balance"`
// 上次账号探测时间
ProbeAt time.Time `json:"probe_at"`
// 账号健康状态
// example: normal
HealthStatus string `json:"health_status"`
// 账号探测异常错误次数
ErrorCount int `json:"error_count"`
// 是否根据云上项目自动在本地创建对应项目
// example: false
AutoCreateProject bool `json:"auto_create_project"`
// 云API版本
Version string `json:"version"`
// 云系统信息
Sysinfo jsonutils.JSONObject `json:"sysinfo"`
// 品牌信息, 一般和provider相同
// example: DStack
Brand string `json:"brand"`
// 额外信息
Options *jsonutils.JSONDict `json:"options"`
// for backward compatiblity, keep is_public field, but not usable
// IsPublic bool `default:"false" nullable:"false"`
// add share_mode field to indicate the share range of this account
ShareMode string `json:"share_mode"`
// 默认值proxyapi.ProxySettingId_DIRECT
ProxySettingId string `json:"proxy_setting_id"`
// 公有云子账号登录地址
IamLoginUrl string `json:"iam_login_url"`
SAMLAuth *bool `json:"saml_auth,omitempty"`
SProjectMappingResourceBase
ReadOnly bool `json:"read_only"`
// 设置允许同步的账号及订阅
SubAccounts *cloudprovider.SubAccounts `json:"sub_accounts"`
// 缺失的权限,云账号操作资源时自动更新
LakeOfPermissions *SAccountPermissions `json:"lake_of_permissions"`
}
// SCloudimage is an autogenerated struct via yunion.io/x/onecloud/pkg/compute/models.SCloudimage.
type SCloudimage struct {
apis.SStandaloneResourceBase
apis.SExternalizedResourceBase
SCloudregionResourceBase
}
// SCloudprovider is an autogenerated struct via yunion.io/x/onecloud/pkg/compute/models.SCloudprovider.
type SCloudprovider struct {
apis.SEnabledStatusStandaloneResourceBase
apis.SProjectizedResourceBase
SSyncableBaseResource
// 云端服务健康状态。例如欠费、项目冻结都属于不健康状态。
// | HealthStatus | 说明 |
// |---------------|----------------------|
// | normal | 远端处于健康状态 |
// | insufficient | 不足按需资源余额 |
// | suspended | 远端处于冻结状态 |
// | arrears | 远端处于欠费状态 |
// | unknown | 未知状态,查询失败 |
// | no permission | 没有权限获取账单信息 |
HealthStatus string `json:"health_status"`
AccessUrl string `json:"access_url"`
// 云账号的用户信息,例如用户名,access key等
Account string `json:"account"`
// 云账号的密码信息,例如密码,access key secret等。该字段在数据库加密存储。Google需要存储秘钥证书,需要此字段比较长
Secret string `json:"secret"`
// 归属云账号ID
CloudaccountId string `json:"cloudaccount_id"`
// 云账号的平台信息
Provider string `json:"provider"`
SProjectMappingResourceBase
}
// SCloudproviderCapability is an autogenerated struct via yunion.io/x/onecloud/pkg/compute/models.SCloudproviderCapability.
type SCloudproviderCapability struct {
apis.SResourceBase
CloudproviderId string `json:"cloudprovider_id"`
CloudregionId string `json:"cloudregion_id"`
Capability string `json:"capability"`
}
// SCloudproviderQuota is an autogenerated struct via yunion.io/x/onecloud/pkg/compute/models.SCloudproviderQuota.
type SCloudproviderQuota struct {
apis.SStandaloneResourceBase
apis.SExternalizedResourceBase
SManagedResourceBase
SCloudregionResourceBase
// 配额范围
// cloudregion: 区域级别
// cloudprovider: 云订阅级别
QuotaRange string `json:"quota_range"`
// 已使用的配额
// -1代表未从云平台拿到已使用配额信息
UsedCount int `json:"used_count"`
// 最大配额限制
MaxCount int `json:"max_count"`
// 配额类型
QuotaType string `json:"quota_type"`
}
// SCloudproviderResourceBase is an autogenerated struct via yunion.io/x/onecloud/pkg/compute/models.SCloudproviderResourceBase.
type SCloudproviderResourceBase struct {
CloudproviderId string `json:"cloudprovider_id"`
}
// SCloudproviderregion is an autogenerated struct via yunion.io/x/onecloud/pkg/compute/models.SCloudproviderregion.
type SCloudproviderregion struct {
apis.SJointResourceBase
SSyncableBaseResource
SCloudregionResourceBase
// 云订阅ID
CloudproviderId string `json:"cloudprovider_id"`
Enabled bool `json:"enabled"`
// SyncIntervalSeconds int `list:"domain"`
SyncResults jsonutils.JSONObject `json:"sync_results"`
LastDeepSyncAt time.Time `json:"last_deep_sync_at"`
LastAutoSyncAt time.Time `json:"last_auto_sync_at"`
}
// SCloudproviderschedtag is an autogenerated struct via yunion.io/x/onecloud/pkg/compute/models.SCloudproviderschedtag.
type SCloudproviderschedtag struct {
SSchedtagJointsBase
SCloudproviderResourceBase
}
// SCloudregion is an autogenerated struct via yunion.io/x/onecloud/pkg/compute/models.SCloudregion.
type SCloudregion struct {
apis.SEnabledStatusStandaloneResourceBase
SI18nResourceBase
SManagedResourceBase
apis.SExternalizedResourceBase
cloudprovider.SGeographicInfo
// 云环境
// example: ChinaCloud
Environment string `json:"environment"`
// 云平台
// example: Huawei
Provider string `json:"provider"`
}
// SCloudregionResourceBase is an autogenerated struct via yunion.io/x/onecloud/pkg/compute/models.SCloudregionResourceBase.
type SCloudregionResourceBase struct {
// 归属区域ID
CloudregionId string `json:"cloudregion_id"`
}
// SCloudregionschedtag is an autogenerated struct via yunion.io/x/onecloud/pkg/compute/models.SCloudregionschedtag.
type SCloudregionschedtag struct {
SSchedtagJointsBase
SCloudregionResourceBase
}
// SDBInstance is an autogenerated struct via yunion.io/x/onecloud/pkg/compute/models.SDBInstance.
type SDBInstance struct {
apis.SVirtualResourceBase
apis.SExternalizedResourceBase
SManagedResourceBase
SBillingResourceBase
SCloudregionResourceBase
SDeletePreventableResourceBase
// 主实例Id
MasterInstanceId string `json:"master_instance_id"`
// CPU数量
// example: 1
VcpuCount int `json:"vcpu_count"`
// 内存大小
// example: 1024
VmemSizeMb int `json:"vmem_size_mb"`
// 存储类型
// example: local_ssd
StorageType string `json:"storage_type"`
// 存储大小
// example: 10240
DiskSizeGB int `json:"disk_size_gb"`
// 已使用的存储大小
DiskSizeUsedMB int `json:"disk_size_used_mb"`
// 端口
// example: 3306
Port int `json:"port"`
// 实例类型
// example: ha
Category string `json:"category"`
// 最大连接数
Iops int `json:"iops"`
// 引擎
// example: MySQL
Engine string `json:"engine"`
// 引擎版本
// example: 5.7
EngineVersion string `json:"engine_version"`
// 套餐名称
// example: mysql.x4.large.2c
InstanceType string `json:"instance_type"`
// 维护时间
MaintainTime string `json:"maintain_time"`
// 虚拟私有网络Id
// example: ed20d84e-3158-41b1-870c-1725e412e8b6
VpcId string `json:"vpc_id"`
// 外部连接地址
ConnectionStr string `json:"connection_str"`
// 内部连接地址
InternalConnectionStr string `json:"internal_connection_str"`
// 可用区1
Zone1 string `json:"zone1"`
// 可用区2
Zone2 string `json:"zone2"`
// 可用区3
Zone3 string `json:"zone3"`
// 从备份创建新实例
DBInstancebackupId string `json:"dbinstancebackup_id"`
}
// SDBInstanceAccount is an autogenerated struct via yunion.io/x/onecloud/pkg/compute/models.SDBInstanceAccount.
type SDBInstanceAccount struct {
apis.SStatusStandaloneResourceBase
Host string `json:"host"`
SDBInstanceResourceBase
// 数据库密码
Secret string `json:"secret"`
}
// SDBInstanceBackup is an autogenerated struct via yunion.io/x/onecloud/pkg/compute/models.SDBInstanceBackup.
type SDBInstanceBackup struct {
apis.SVirtualResourceBase
SCloudregionResourceBase
SManagedResourceBase
apis.SExternalizedResourceBase
SDBInstanceResourceBase
// RDS引擎
// example: MySQL
Engine string `json:"engine"`
// RDS引擎版本
// example: 5.7
EngineVersion string `json:"engine_version"`
// 备份开始时间
StartTime time.Time `json:"start_time"`
// 备份结束时间
EndTime time.Time `json:"end_time"`
// 备份模式
BackupMode string `json:"backup_mode"`
// 备份数据库名称
DBNames string `json:"db_names"`
// 备份大小
// example: 32
BackupSizeMb int `json:"backup_size_mb"`
// 备份方式 Logical|Physical
BackupMethod string `json:"backup_method"`
}
// SDBInstanceDatabase is an autogenerated struct via yunion.io/x/onecloud/pkg/compute/models.SDBInstanceDatabase.
type SDBInstanceDatabase struct {
apis.SStatusStandaloneResourceBase
apis.SExternalizedResourceBase
SDBInstanceResourceBase
// 字符集
// example: utf-8
CharacterSet string `json:"character_set"`
}
// SDBInstanceJointsBase is an autogenerated struct via yunion.io/x/onecloud/pkg/compute/models.SDBInstanceJointsBase.
type SDBInstanceJointsBase struct {
apis.SVirtualJointResourceBase
SDBInstanceResourceBase
}
// SDBInstanceNetwork is an autogenerated struct via yunion.io/x/onecloud/pkg/compute/models.SDBInstanceNetwork.
type SDBInstanceNetwork struct {
SDBInstanceJointsBase
NetworkId string `json:"network_id"`
IpAddr string `json:"ip_addr"`
}
// SDBInstanceParameter is an autogenerated struct via yunion.io/x/onecloud/pkg/compute/models.SDBInstanceParameter.
type SDBInstanceParameter struct {
apis.SStandaloneResourceBase
apis.SExternalizedResourceBase
SDBInstanceResourceBase
// 数据库参数名称
Key string `json:"key"`
// 数据库参数值
Value string `json:"value"`
}
// SDBInstancePrivilege is an autogenerated struct via yunion.io/x/onecloud/pkg/compute/models.SDBInstancePrivilege.
type SDBInstancePrivilege struct {
apis.SResourceBase
apis.SExternalizedResourceBase
Id string `json:"id"`
Privilege string `json:"privilege"`
DBInstanceaccountId string `json:"dbinstanceaccount_id"`
DBInstancedatabaseId string `json:"dbinstancedatabase_id"`
}
// SDBInstanceResourceBase is an autogenerated struct via yunion.io/x/onecloud/pkg/compute/models.SDBInstanceResourceBase.
type SDBInstanceResourceBase struct {
DBInstanceId string `json:"dbinstance_id"`
}
// SDBInstanceSecgroup is an autogenerated struct via yunion.io/x/onecloud/pkg/compute/models.SDBInstanceSecgroup.
type SDBInstanceSecgroup struct {
SDBInstanceJointsBase
SSecurityGroupResourceBase
}
// SDBInstanceSku is an autogenerated struct via yunion.io/x/onecloud/pkg/compute/models.SDBInstanceSku.
type SDBInstanceSku struct {
apis.SEnabledStatusStandaloneResourceBase
apis.SExternalizedResourceBase
SCloudregionResourceBase
Provider string `json:"provider"`
StorageType string `json:"storage_type"`
DiskSizeStep int `json:"disk_size_step"`
// 步长
MaxDiskSizeGb int `json:"max_disk_size_gb"`
MinDiskSizeGb int `json:"min_disk_size_gb"`
IOPS int `json:"iops"`
TPS int `json:"tps"`
QPS int `json:"qps"`
MaxConnections int `json:"max_connections"`
VcpuCount int `json:"vcpu_count"`
VmemSizeMb int `json:"vmem_size_mb"`
Category string `json:"category"`
Engine string `json:"engine"`
EngineVersion string `json:"engine_version"`
Zone1 string `json:"zone1"`
Zone2 string `json:"zone2"`
Zone3 string `json:"zone3"`
ZoneId string `json:"zone_id"`
MultiAZ *bool `json:"multi_az,omitempty"`
}
// SDeletePreventableResourceBase is an autogenerated struct via yunion.io/x/onecloud/pkg/compute/models.SDeletePreventableResourceBase.
type SDeletePreventableResourceBase struct {
// 是否开启删除保护
// example: true
DisableDelete *bool `json:"disable_delete,omitempty"`
}
// SDisk is an autogenerated struct via yunion.io/x/onecloud/pkg/compute/models.SDisk.
type SDisk struct {
apis.SVirtualResourceBase
apis.SExternalizedResourceBase
SBillingResourceBase
SStorageResourceBase
apis.SMultiArchResourceBase
apis.SAutoDeleteResourceBase
apis.SEncryptedResource
// 磁盘存储类型
// example: qcow2
DiskFormat string `json:"disk_format"`
// 磁盘大小, 单位Mb
// example: 10240
DiskSize int `json:"disk_size"`
// 磁盘路径
AccessPath string `json:"access_path"`
// 备份磁盘实例的存储ID
BackupStorageId string `json:"backup_storage_id"`
// 镜像Id
TemplateId string `json:"template_id"`
// 快照Id
SnapshotId string `json:"snapshot_id"`
// 备份Id
BackupId string `json:"backup_id"`
// 文件系统
FsFormat string `json:"fs_format"`
// 磁盘类型
// sys: 系统盘
// data: 数据盘
// swap: 交换盘
// example: sys
DiskType string `json:"disk_type"`
// # is persistent
Nonpersistent bool `json:"nonpersistent"`
// 是否标记为SSD磁盘
IsSsd bool `json:"is_ssd"`
// 最大连接数
Iops int `json:"iops"`
// 磁盘吞吐量
Throughput int `json:"throughput"`
}
// SDiskBackup is an autogenerated struct via yunion.io/x/onecloud/pkg/compute/models.SDiskBackup.
type SDiskBackup struct {
apis.SVirtualResourceBase
SManagedResourceBase
SCloudregionResourceBase
apis.SMultiArchResourceBase
apis.SEncryptedResource
DiskId string `json:"disk_id"`
BackupStorageId string `json:"backup_storage_id"`
StorageId string `json:"storage_id"`
// 备份大小
SizeMb int `json:"size_mb"`
DiskSizeMb int `json:"disk_size_mb"`
DiskType string `json:"disk_type"`
// 操作系统类型
OsType string `json:"os_type"`
DiskConfig *SBackupDiskConfig `json:"disk_config"`
}
// SDiskResourceBase is an autogenerated struct via yunion.io/x/onecloud/pkg/compute/models.SDiskResourceBase.
type SDiskResourceBase struct {
DiskId string `json:"disk_id"`
}
// SDnsRecord is an autogenerated struct via yunion.io/x/onecloud/pkg/compute/models.SDnsRecord.
type SDnsRecord struct {
apis.SAdminSharableVirtualResourceBase
apis.SEnabledResourceBase
// DNS记录的过期时间,单位为秒
// example: 60
Ttl int `json:"ttl"`
}
// SDnsRecordSet is an autogenerated struct via yunion.io/x/onecloud/pkg/compute/models.SDnsRecordSet.
type SDnsRecordSet struct {
apis.SEnabledStatusStandaloneResourceBase
SDnsZoneResourceBase
DnsType string `json:"dns_type"`
DnsValue string `json:"dns_value"`
TTL int64 `json:"ttl"`
MxPriority int64 `json:"mx_priority"`
}
// SDnsRecordSetTrafficPolicy is an autogenerated struct via yunion.io/x/onecloud/pkg/compute/models.SDnsRecordSetTrafficPolicy.
type SDnsRecordSetTrafficPolicy struct {
apis.SJointResourceBase
DnsRecordsetId string `json:"dns_recordset_id"`
DnsTrafficPolicyId string `json:"dns_traffic_policy_id"`
}
// SDnsTrafficPolicy is an autogenerated struct via yunion.io/x/onecloud/pkg/compute/models.SDnsTrafficPolicy.
type SDnsTrafficPolicy struct {
apis.SEnabledStatusInfrasResourceBase
Provider string `json:"provider"`
PolicyType string `json:"policy_type"`
PolicyValue string `json:"policy_value"`
Options *jsonutils.JSONDict `json:"options"`
}
// SDnsZone is an autogenerated struct via yunion.io/x/onecloud/pkg/compute/models.SDnsZone.
type SDnsZone struct {
apis.SEnabledStatusInfrasResourceBase
IsDirty bool `json:"is_dirty"`
ZoneType string `json:"zone_type"`
Options *jsonutils.JSONDict `json:"options"`
}
// SDnsZoneCache is an autogenerated struct via yunion.io/x/onecloud/pkg/compute/models.SDnsZoneCache.
type SDnsZoneCache struct {
apis.SStatusStandaloneResourceBase
apis.SExternalizedResourceBase
SDnsZoneResourceBase
// 归属云账号ID
CloudaccountId string `json:"cloudaccount_id"`
ProductType string `json:"product_type"`
}
// SDnsZoneResourceBase is an autogenerated struct via yunion.io/x/onecloud/pkg/compute/models.SDnsZoneResourceBase.
type SDnsZoneResourceBase struct {
DnsZoneId string `json:"dns_zone_id"`
}
// SDnsZoneVpc is an autogenerated struct via yunion.io/x/onecloud/pkg/compute/models.SDnsZoneVpc.
type SDnsZoneVpc struct {
apis.SJointResourceBase
SDnsZoneResourceBase
VpcId string `json:"vpc_id"`
}
// SDynamicschedtag is an autogenerated struct via yunion.io/x/onecloud/pkg/compute/models.SDynamicschedtag.
type SDynamicschedtag struct {
apis.SStandaloneResourceBase
SSchedtagResourceBase
// 动态调度标间的匹配条件
// example: host.sys_load > 1.5 || host.mem_used_percent > 0.7 => "high_load"
Condition string `json:"condition"`
Enabled *bool `json:"enabled,omitempty"`
}
// SElasticSearch is an autogenerated struct via yunion.io/x/onecloud/pkg/compute/models.SElasticSearch.
type SElasticSearch struct {
apis.SVirtualResourceBase
apis.SExternalizedResourceBase
SManagedResourceBase
SBillingResourceBase
SCloudregionResourceBase
SDeletePreventableResourceBase
// 版本
Version string `json:"version"`
// 套餐名称
// example: elasticsearch.sn2ne.xlarge
InstanceType string `json:"instance_type"`
// CPU数量
// example: 1
VcpuCount int `json:"vcpu_count"`
// 内存大小
// example: 1024
VmemSizeGb int `json:"vmem_size_gb"`
// 存储类型
// example: local_ssd
StorageType string `json:"storage_type"`
// 存储大小
// example: 1024
DiskSizeGb int `json:"disk_size_gb"`
// 实例类型
// example: ha
Category string `json:"category"`
VpcId string `json:"vpc_id"`
NetworkId string `json:"network_id"`
// 可用区Id
ZoneId string `json:"zone_id"`
// 是否是多可用区部署
IsMultiAz bool `json:"is_multi_az"`
}
// SElasticcache is an autogenerated struct via yunion.io/x/onecloud/pkg/compute/models.SElasticcache.
type SElasticcache struct {
apis.SVirtualResourceBase
apis.SExternalizedResourceBase
SBillingResourceBase
SDeletePreventableResourceBase
SVpcResourceBase
SZoneResourceBase
// 备可用区
SlaveZones string `json:"slave_zones"`
// 实例规格
// example: redis.master.micro.default
InstanceType string `json:"instance_type"`
// 容量
// example: 1024
CapacityMB int `json:"capacity_mb"`
// 对应Sku
LocalCategory string `json:"local_category"`
// 类型
// single(单副本) | double(双副本) | readone (单可读) | readthree (3可读) | readfive(5只读)
NodeType string `json:"node_type"`
// 后端存储引擎
// Redis | Memcache
// example: redis
Engine string `json:"engine"`
// 后端存储引擎版本
// example: 4.0
EngineVersion string `json:"engine_version"`
// 网络类型, CLASSIC(经典网络) VPC(专有网络)
// example: CLASSIC
NetworkType string `json:"network_type"`
// 所属网络ID
NetworkId string `json:"network_id"`
// 带宽
Bandwidth int `json:"bandwidth"`
// 内网DNS
PrivateDNS string `json:"private_dns"`
// 内网IP地址
PrivateIpAddr string `json:"private_ip_addr"`
// 内网访问端口
PrivateConnectPort int `json:"private_connect_port"`
// 公网DNS
PublicDNS string `json:"public_dns"`
// 公网IP地址
PublicIpAddr string `json:"public_ip_addr"`
// 外网访问端口
PublicConnectPort int `json:"public_connect_port"`
// 维护开始时间,格式为HH:mmZ
// example: 02:00Z
MaintainStartTime string `json:"maintain_start_time"`
// 维护结束时间
MaintainEndTime string `json:"maintain_end_time"`
// 访问密码? on (开启密码)|off (免密码访问)
AuthMode string `json:"auth_mode"`
// 最大连接数
Connections int `json:"connections"`
}
// SElasticcacheAccount is an autogenerated struct via yunion.io/x/onecloud/pkg/compute/models.SElasticcacheAccount.
type SElasticcacheAccount struct {
apis.SStatusStandaloneResourceBase
apis.SExternalizedResourceBase
SElasticcacheResourceBase
AccountType string `json:"account_type"`
// 账号类型 normal |admin
AccountPrivilege string `json:"account_privilege"`
// 账号权限 read | write | repl(复制, 复制权限支持读写,且开放SYNC/PSYNC命令)
Password string `json:"password"`
}
// SElasticcacheAcl is an autogenerated struct via yunion.io/x/onecloud/pkg/compute/models.SElasticcacheAcl.
type SElasticcacheAcl struct {
apis.SStatusStandaloneResourceBase
apis.SExternalizedResourceBase
SElasticcacheResourceBase
// Ip地址白名单列表
IpList string `json:"ip_list"`
}
// SElasticcacheBackup is an autogenerated struct via yunion.io/x/onecloud/pkg/compute/models.SElasticcacheBackup.
type SElasticcacheBackup struct {
apis.SStatusStandaloneResourceBase
apis.SExternalizedResourceBase
SElasticcacheResourceBase
// 备份大小
BackupSizeMb int `json:"backup_size_mb"`
// 备份类型, 全量|增量额
BackupType string `json:"backup_type"`
// 备份模式,自动|手动
BackupMode string `json:"backup_mode"`
// 下载地址
DownloadURL string `json:"download_url"`
// 开始备份时间
StartTime time.Time `json:"start_time"`
// 结束备份时间
EndTime time.Time `json:"end_time"`
}
// SElasticcacheJointsBase is an autogenerated struct via yunion.io/x/onecloud/pkg/compute/models.SElasticcacheJointsBase.
type SElasticcacheJointsBase struct {
apis.SVirtualJointResourceBase
SElasticcacheResourceBase
}
// SElasticcacheParameter is an autogenerated struct via yunion.io/x/onecloud/pkg/compute/models.SElasticcacheParameter.
type SElasticcacheParameter struct {
apis.SStatusStandaloneResourceBase
apis.SExternalizedResourceBase
SElasticcacheResourceBase
// Parameter KEY
Key string `json:"key"`
// Parameter Value
Value string `json:"value"`
// 校验代码,参数的可选范围。
ValueRange string `json:"value_range"`
// True(可修改) False(不可修改)
Modifiable bool `json:"modifiable"`
// True(重启生效) False(无需重启,提交后即生效)
ForceRestart bool `json:"force_restart"`
}
// SElasticcacheResourceBase is an autogenerated struct via yunion.io/x/onecloud/pkg/compute/models.SElasticcacheResourceBase.
type SElasticcacheResourceBase struct {
// 弹性缓存ID
ElasticcacheId string `json:"elasticcache_id"`
}
// SElasticcacheSku is an autogenerated struct via yunion.io/x/onecloud/pkg/compute/models.SElasticcacheSku.
type SElasticcacheSku struct {
apis.SStatusStandaloneResourceBase
apis.SExternalizedResourceBase
SCloudregionResourceBase
// 区域
SZoneResourceBase
SlaveZoneId string `json:"slave_zone_id"`
InstanceSpec string `json:"instance_spec"`
EngineArch string `json:"engine_arch"`
LocalCategory string `json:"local_category"`
PrepaidStatus string `json:"prepaid_status"`
PostpaidStatus string `json:"postpaid_status"`
// 引擎 redis|memcached
Engine string `json:"engine"`
// 引擎版本 3.0
EngineVersion string `json:"engine_version"`
// CPU 架构 x86|ARM
CpuArch string `json:"cpu_arch"`
// 存储类型 DRAM|SCM
StorageType string `json:"storage_type"`
// standrad|enhanced
PerformanceType string `json:"performance_type"`
// single(单副本) | double(双副本) | readone (单可读) | readthree (3可读) | readfive(5只读)
NodeType string `json:"node_type"`
// 内存容量
MemorySizeMB int `json:"memory_size_mb"`
// 套餐附带硬盘容量
DiskSizeGB int `json:"disk_size_gb"`
// 最小分片数量
ShardNum int `json:"shard_num"`
// 最大分片数量
MaxShardNum int `json:"max_shard_num"`
// 最小副本数量
ReplicasNum int `json:"replicas_num"`
// 最大副本数量
MaxReplicasNum int `json:"max_replicas_num"`
// 最大客户端数
MaxClients int `json:"max_clients"`
// 最大连接数
MaxConnections int `json:"max_connections"`
// 最大内网带宽
MaxInBandwidthMb int `json:"max_in_bandwidth_mb"`
// 实际可使用的最大内存
MaxMemoryMB int `json:"max_memory_mb"`
// QPS参考值
QPS int `json:"qps"`
// 公有云厂商 Aliyun/Azure/AWS/Qcloud/...
Provider string `json:"provider"`
}
// SElasticcachesecgroup is an autogenerated struct via yunion.io/x/onecloud/pkg/compute/models.SElasticcachesecgroup.
type SElasticcachesecgroup struct {
SElasticcacheJointsBase
SSecurityGroupResourceBase
}
// SElasticip is an autogenerated struct via yunion.io/x/onecloud/pkg/compute/models.SElasticip.
type SElasticip struct {
apis.SVirtualResourceBase
apis.SExternalizedResourceBase
SManagedResourceBase
SCloudregionResourceBase
SBillingResourceBase
// IP子网Id, 仅私有云不为空
NetworkId string `json:"network_id"`
// 标识弹性或非弹性
// | Mode | 说明 |
// |------------|------------|
// | public_ip | 公网IP |
// | elastic_ip | 弹性公网IP |
// example: elastic_ip
Mode string `json:"mode"`
// IP地址
IpAddr string `json:"ip_addr"`
// 绑定资源类型
AssociateType string `json:"associate_type"`
// 绑定资源Id
AssociateId string `json:"associate_id"`
// 带宽大小
Bandwidth int `json:"bandwidth"`
// 计费类型: 流量、带宽
// example: bandwidth
ChargeType string `json:"charge_type"`
// 线路类型
BgpType string `json:"bgp_type"`