ucloud-sdk-python3 0.11.81__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- ucloud/__init__.py +0 -0
- ucloud/client.py +469 -0
- ucloud/core/__init__.py +0 -0
- ucloud/core/auth/__init__.py +3 -0
- ucloud/core/auth/_cfg.py +72 -0
- ucloud/core/client/__init__.py +8 -0
- ucloud/core/client/_cfg.py +96 -0
- ucloud/core/client/_client.py +176 -0
- ucloud/core/exc/__init__.py +9 -0
- ucloud/core/exc/_exc.py +94 -0
- ucloud/core/transport/__init__.py +4 -0
- ucloud/core/transport/_requests.py +135 -0
- ucloud/core/transport/http.py +120 -0
- ucloud/core/transport/utils.py +40 -0
- ucloud/core/typesystem/__init__.py +0 -0
- ucloud/core/typesystem/abstract.py +60 -0
- ucloud/core/typesystem/encoder.py +33 -0
- ucloud/core/typesystem/fields.py +149 -0
- ucloud/core/typesystem/schema.py +97 -0
- ucloud/core/utils/__init__.py +0 -0
- ucloud/core/utils/compat.py +15 -0
- ucloud/core/utils/deco.py +31 -0
- ucloud/core/utils/log.py +29 -0
- ucloud/core/utils/middleware.py +63 -0
- ucloud/helpers/__init__.py +0 -0
- ucloud/helpers/utils.py +90 -0
- ucloud/helpers/wait.py +108 -0
- ucloud/services/__init__.py +0 -0
- ucloud/services/cube/__init__.py +0 -0
- ucloud/services/cube/client.py +618 -0
- ucloud/services/cube/schemas/__init__.py +0 -0
- ucloud/services/cube/schemas/apis.py +548 -0
- ucloud/services/cube/schemas/models.py +58 -0
- ucloud/services/iam/__init__.py +0 -0
- ucloud/services/iam/client.py +1078 -0
- ucloud/services/iam/schemas/__init__.py +0 -0
- ucloud/services/iam/schemas/apis.py +973 -0
- ucloud/services/iam/schemas/models.py +127 -0
- ucloud/services/ipsecvpn/__init__.py +0 -0
- ucloud/services/ipsecvpn/client.py +522 -0
- ucloud/services/ipsecvpn/schemas/__init__.py +0 -0
- ucloud/services/ipsecvpn/schemas/apis.py +455 -0
- ucloud/services/ipsecvpn/schemas/models.py +134 -0
- ucloud/services/ipv6gw/__init__.py +0 -0
- ucloud/services/ipv6gw/client.py +44 -0
- ucloud/services/ipv6gw/schemas/__init__.py +0 -0
- ucloud/services/ipv6gw/schemas/apis.py +34 -0
- ucloud/services/ipv6gw/schemas/models.py +3 -0
- ucloud/services/isms/__init__.py +0 -0
- ucloud/services/isms/client.py +330 -0
- ucloud/services/isms/schemas/__init__.py +0 -0
- ucloud/services/isms/schemas/apis.py +272 -0
- ucloud/services/isms/schemas/models.py +50 -0
- ucloud/services/pathx/__init__.py +0 -0
- ucloud/services/pathx/client.py +1656 -0
- ucloud/services/pathx/schemas/__init__.py +0 -0
- ucloud/services/pathx/schemas/apis.py +1289 -0
- ucloud/services/pathx/schemas/models.py +420 -0
- ucloud/services/stepflow/__init__.py +0 -0
- ucloud/services/stepflow/client.py +98 -0
- ucloud/services/stepflow/schemas/__init__.py +0 -0
- ucloud/services/stepflow/schemas/apis.py +67 -0
- ucloud/services/stepflow/schemas/models.py +37 -0
- ucloud/services/sts/__init__.py +0 -0
- ucloud/services/sts/client.py +46 -0
- ucloud/services/sts/schemas/__init__.py +0 -0
- ucloud/services/sts/schemas/apis.py +35 -0
- ucloud/services/sts/schemas/models.py +16 -0
- ucloud/services/tidb/__init__.py +0 -0
- ucloud/services/tidb/client.py +120 -0
- ucloud/services/tidb/schemas/__init__.py +0 -0
- ucloud/services/tidb/schemas/apis.py +103 -0
- ucloud/services/tidb/schemas/models.py +11 -0
- ucloud/services/uaaa/__init__.py +0 -0
- ucloud/services/uaaa/client.py +311 -0
- ucloud/services/uaaa/schemas/__init__.py +0 -0
- ucloud/services/uaaa/schemas/apis.py +252 -0
- ucloud/services/uaaa/schemas/models.py +47 -0
- ucloud/services/uaccount/__init__.py +0 -0
- ucloud/services/uaccount/client.py +547 -0
- ucloud/services/uaccount/schemas/__init__.py +0 -0
- ucloud/services/uaccount/schemas/apis.py +442 -0
- ucloud/services/uaccount/schemas/models.py +128 -0
- ucloud/services/uads/__init__.py +0 -0
- ucloud/services/uads/client.py +1148 -0
- ucloud/services/uads/schemas/__init__.py +0 -0
- ucloud/services/uads/schemas/apis.py +983 -0
- ucloud/services/uads/schemas/models.py +199 -0
- ucloud/services/ubill/__init__.py +0 -0
- ucloud/services/ubill/client.py +248 -0
- ucloud/services/ubill/schemas/__init__.py +0 -0
- ucloud/services/ubill/schemas/apis.py +183 -0
- ucloud/services/ubill/schemas/models.py +107 -0
- ucloud/services/ucdn/__init__.py +0 -0
- ucloud/services/ucdn/client.py +1964 -0
- ucloud/services/ucdn/schemas/__init__.py +0 -0
- ucloud/services/ucdn/schemas/apis.py +1395 -0
- ucloud/services/ucdn/schemas/models.py +576 -0
- ucloud/services/ucloudstack/__init__.py +0 -0
- ucloud/services/ucloudstack/client.py +3352 -0
- ucloud/services/ucloudstack/schemas/__init__.py +0 -0
- ucloud/services/ucloudstack/schemas/apis.py +2887 -0
- ucloud/services/ucloudstack/schemas/models.py +560 -0
- ucloud/services/ucompshare/__init__.py +0 -0
- ucloud/services/ucompshare/client.py +820 -0
- ucloud/services/ucompshare/schemas/__init__.py +0 -0
- ucloud/services/ucompshare/schemas/apis.py +623 -0
- ucloud/services/ucompshare/schemas/models.py +241 -0
- ucloud/services/udb/__init__.py +0 -0
- ucloud/services/udb/client.py +2463 -0
- ucloud/services/udb/schemas/__init__.py +0 -0
- ucloud/services/udb/schemas/apis.py +2053 -0
- ucloud/services/udb/schemas/models.py +319 -0
- ucloud/services/udbproxy/__init__.py +0 -0
- ucloud/services/udbproxy/client.py +67 -0
- ucloud/services/udbproxy/schemas/__init__.py +0 -0
- ucloud/services/udbproxy/schemas/apis.py +38 -0
- ucloud/services/udbproxy/schemas/models.py +31 -0
- ucloud/services/uddb/__init__.py +0 -0
- ucloud/services/uddb/client.py +456 -0
- ucloud/services/uddb/schemas/__init__.py +0 -0
- ucloud/services/uddb/schemas/apis.py +520 -0
- ucloud/services/uddb/schemas/models.py +96 -0
- ucloud/services/udi/__init__.py +0 -0
- ucloud/services/udi/client.py +250 -0
- ucloud/services/udi/schemas/__init__.py +0 -0
- ucloud/services/udi/schemas/apis.py +205 -0
- ucloud/services/udi/schemas/models.py +58 -0
- ucloud/services/udisk/__init__.py +0 -0
- ucloud/services/udisk/client.py +832 -0
- ucloud/services/udisk/schemas/__init__.py +0 -0
- ucloud/services/udisk/schemas/apis.py +741 -0
- ucloud/services/udisk/schemas/models.py +100 -0
- ucloud/services/udns/__init__.py +0 -0
- ucloud/services/udns/client.py +380 -0
- ucloud/services/udns/schemas/__init__.py +0 -0
- ucloud/services/udns/schemas/apis.py +293 -0
- ucloud/services/udns/schemas/models.py +58 -0
- ucloud/services/udpn/__init__.py +0 -0
- ucloud/services/udpn/client.py +240 -0
- ucloud/services/udpn/schemas/__init__.py +0 -0
- ucloud/services/udpn/schemas/apis.py +203 -0
- ucloud/services/udpn/schemas/models.py +29 -0
- ucloud/services/udts/__init__.py +0 -0
- ucloud/services/udts/client.py +410 -0
- ucloud/services/udts/schemas/__init__.py +0 -0
- ucloud/services/udts/schemas/apis.py +403 -0
- ucloud/services/udts/schemas/models.py +93 -0
- ucloud/services/uec/__init__.py +0 -0
- ucloud/services/uec/client.py +1510 -0
- ucloud/services/uec/schemas/__init__.py +0 -0
- ucloud/services/uec/schemas/apis.py +1195 -0
- ucloud/services/uec/schemas/models.py +316 -0
- ucloud/services/ufile/__init__.py +0 -0
- ucloud/services/ufile/client.py +698 -0
- ucloud/services/ufile/schemas/__init__.py +0 -0
- ucloud/services/ufile/schemas/apis.py +542 -0
- ucloud/services/ufile/schemas/models.py +139 -0
- ucloud/services/ufs/__init__.py +0 -0
- ucloud/services/ufs/client.py +328 -0
- ucloud/services/ufs/schemas/__init__.py +0 -0
- ucloud/services/ufs/schemas/apis.py +265 -0
- ucloud/services/ufs/schemas/models.py +52 -0
- ucloud/services/ugn/__init__.py +0 -0
- ucloud/services/ugn/client.py +857 -0
- ucloud/services/ugn/schemas/__init__.py +0 -0
- ucloud/services/ugn/schemas/apis.py +678 -0
- ucloud/services/ugn/schemas/models.py +191 -0
- ucloud/services/uhost/__init__.py +0 -0
- ucloud/services/uhost/client.py +1647 -0
- ucloud/services/uhost/schemas/__init__.py +0 -0
- ucloud/services/uhost/schemas/apis.py +1483 -0
- ucloud/services/uhost/schemas/models.py +427 -0
- ucloud/services/uhub/__init__.py +0 -0
- ucloud/services/uhub/client.py +229 -0
- ucloud/services/uhub/schemas/__init__.py +0 -0
- ucloud/services/uhub/schemas/apis.py +194 -0
- ucloud/services/uhub/schemas/models.py +39 -0
- ucloud/services/uk8s/__init__.py +0 -0
- ucloud/services/uk8s/client.py +729 -0
- ucloud/services/uk8s/schemas/__init__.py +0 -0
- ucloud/services/uk8s/schemas/apis.py +639 -0
- ucloud/services/uk8s/schemas/models.py +179 -0
- ucloud/services/ulb/__init__.py +0 -0
- ucloud/services/ulb/client.py +2285 -0
- ucloud/services/ulb/schemas/__init__.py +0 -0
- ucloud/services/ulb/schemas/apis.py +1678 -0
- ucloud/services/ulb/schemas/models.py +591 -0
- ucloud/services/ulighthost/__init__.py +0 -0
- ucloud/services/ulighthost/client.py +576 -0
- ucloud/services/ulighthost/schemas/__init__.py +0 -0
- ucloud/services/ulighthost/schemas/apis.py +445 -0
- ucloud/services/ulighthost/schemas/models.py +133 -0
- ucloud/services/umem/__init__.py +0 -0
- ucloud/services/umem/client.py +1829 -0
- ucloud/services/umem/schemas/__init__.py +0 -0
- ucloud/services/umem/schemas/apis.py +1477 -0
- ucloud/services/umem/schemas/models.py +327 -0
- ucloud/services/umongodb/__init__.py +0 -0
- ucloud/services/umongodb/client.py +752 -0
- ucloud/services/umongodb/schemas/__init__.py +0 -0
- ucloud/services/umongodb/schemas/apis.py +567 -0
- ucloud/services/umongodb/schemas/models.py +220 -0
- ucloud/services/unet/__init__.py +0 -0
- ucloud/services/unet/client.py +1278 -0
- ucloud/services/unet/schemas/__init__.py +0 -0
- ucloud/services/unet/schemas/apis.py +1006 -0
- ucloud/services/unet/schemas/models.py +275 -0
- ucloud/services/unvs/__init__.py +0 -0
- ucloud/services/unvs/client.py +87 -0
- ucloud/services/unvs/schemas/__init__.py +0 -0
- ucloud/services/unvs/schemas/apis.py +66 -0
- ucloud/services/unvs/schemas/models.py +19 -0
- ucloud/services/upfs/__init__.py +0 -0
- ucloud/services/upfs/client.py +252 -0
- ucloud/services/upfs/schemas/__init__.py +0 -0
- ucloud/services/upfs/schemas/apis.py +204 -0
- ucloud/services/upfs/schemas/models.py +36 -0
- ucloud/services/upgsql/__init__.py +0 -0
- ucloud/services/upgsql/client.py +1007 -0
- ucloud/services/upgsql/schemas/__init__.py +0 -0
- ucloud/services/upgsql/schemas/apis.py +827 -0
- ucloud/services/upgsql/schemas/models.py +158 -0
- ucloud/services/uphone/__init__.py +0 -0
- ucloud/services/uphone/client.py +2122 -0
- ucloud/services/uphone/schemas/__init__.py +0 -0
- ucloud/services/uphone/schemas/apis.py +1799 -0
- ucloud/services/uphone/schemas/models.py +357 -0
- ucloud/services/uphost/__init__.py +0 -0
- ucloud/services/uphost/client.py +847 -0
- ucloud/services/uphost/schemas/__init__.py +0 -0
- ucloud/services/uphost/schemas/apis.py +689 -0
- ucloud/services/uphost/schemas/models.py +175 -0
- ucloud/services/urocketmq/__init__.py +0 -0
- ucloud/services/urocketmq/client.py +117 -0
- ucloud/services/urocketmq/schemas/__init__.py +0 -0
- ucloud/services/urocketmq/schemas/apis.py +92 -0
- ucloud/services/urocketmq/schemas/models.py +14 -0
- ucloud/services/uslk/__init__.py +0 -0
- ucloud/services/uslk/client.py +249 -0
- ucloud/services/uslk/schemas/__init__.py +0 -0
- ucloud/services/uslk/schemas/apis.py +191 -0
- ucloud/services/uslk/schemas/models.py +74 -0
- ucloud/services/usms/__init__.py +0 -0
- ucloud/services/usms/client.py +759 -0
- ucloud/services/usms/schemas/__init__.py +0 -0
- ucloud/services/usms/schemas/apis.py +653 -0
- ucloud/services/usms/schemas/models.py +215 -0
- ucloud/services/utsdb/__init__.py +0 -0
- ucloud/services/utsdb/client.py +604 -0
- ucloud/services/utsdb/schemas/__init__.py +0 -0
- ucloud/services/utsdb/schemas/apis.py +515 -0
- ucloud/services/utsdb/schemas/models.py +61 -0
- ucloud/services/uvms/__init__.py +0 -0
- ucloud/services/uvms/client.py +119 -0
- ucloud/services/uvms/schemas/__init__.py +0 -0
- ucloud/services/uvms/schemas/apis.py +88 -0
- ucloud/services/uvms/schemas/models.py +40 -0
- ucloud/services/vpc/__init__.py +0 -0
- ucloud/services/vpc/client.py +3233 -0
- ucloud/services/vpc/schemas/__init__.py +0 -0
- ucloud/services/vpc/schemas/apis.py +2529 -0
- ucloud/services/vpc/schemas/models.py +651 -0
- ucloud/testing/__init__.py +0 -0
- ucloud/testing/driver/__init__.py +5 -0
- ucloud/testing/driver/_scenario.py +93 -0
- ucloud/testing/driver/_specification.py +57 -0
- ucloud/testing/driver/_step.py +166 -0
- ucloud/testing/env.py +28 -0
- ucloud/testing/exc.py +18 -0
- ucloud/testing/funcs.py +68 -0
- ucloud/testing/mock.py +28 -0
- ucloud/testing/op.py +177 -0
- ucloud/testing/utest.py +195 -0
- ucloud/version.py +1 -0
- ucloud_sdk_python3-0.11.81.dist-info/LICENSE +202 -0
- ucloud_sdk_python3-0.11.81.dist-info/METADATA +71 -0
- ucloud_sdk_python3-0.11.81.dist-info/RECORD +280 -0
- ucloud_sdk_python3-0.11.81.dist-info/WHEEL +5 -0
- ucloud_sdk_python3-0.11.81.dist-info/top_level.txt +1 -0
|
@@ -0,0 +1,1195 @@
|
|
|
1
|
+
""" Code is generated by ucloud-model, DO NOT EDIT IT. """
|
|
2
|
+
|
|
3
|
+
from ucloud.core.typesystem import schema, fields
|
|
4
|
+
from ucloud.services.uec.schemas import models
|
|
5
|
+
|
|
6
|
+
""" UEC API Schema
|
|
7
|
+
"""
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
"""
|
|
11
|
+
API: BindUEcFirewall
|
|
12
|
+
|
|
13
|
+
绑定防火墙,应用防火墙规则
|
|
14
|
+
"""
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
class BindUEcFirewallRequestSchema(schema.RequestSchema):
|
|
18
|
+
"""BindUEcFirewall - 绑定防火墙,应用防火墙规则"""
|
|
19
|
+
|
|
20
|
+
fields = {
|
|
21
|
+
"FirewallId": fields.Str(required=True, dump_to="FirewallId"),
|
|
22
|
+
"ProjectId": fields.Str(required=False, dump_to="ProjectId"),
|
|
23
|
+
"ResourceId": fields.Str(required=True, dump_to="ResourceId"),
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
|
|
27
|
+
class BindUEcFirewallResponseSchema(schema.ResponseSchema):
|
|
28
|
+
"""BindUEcFirewall - 绑定防火墙,应用防火墙规则"""
|
|
29
|
+
|
|
30
|
+
fields = {}
|
|
31
|
+
|
|
32
|
+
|
|
33
|
+
"""
|
|
34
|
+
API: CreateUEcCustomImage
|
|
35
|
+
|
|
36
|
+
从指定虚拟机,生成自定义镜像。
|
|
37
|
+
"""
|
|
38
|
+
|
|
39
|
+
|
|
40
|
+
class CreateUEcCustomImageRequestSchema(schema.RequestSchema):
|
|
41
|
+
"""CreateUEcCustomImage - 从指定虚拟机,生成自定义镜像。"""
|
|
42
|
+
|
|
43
|
+
fields = {
|
|
44
|
+
"ImageDescription": fields.Str(
|
|
45
|
+
required=False, dump_to="ImageDescription"
|
|
46
|
+
),
|
|
47
|
+
"ImageName": fields.Str(required=True, dump_to="ImageName"),
|
|
48
|
+
"NodeId": fields.Str(required=True, dump_to="NodeId"),
|
|
49
|
+
"ProjectId": fields.Str(required=False, dump_to="ProjectId"),
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
|
|
53
|
+
class CreateUEcCustomImageResponseSchema(schema.ResponseSchema):
|
|
54
|
+
"""CreateUEcCustomImage - 从指定虚拟机,生成自定义镜像。"""
|
|
55
|
+
|
|
56
|
+
fields = {
|
|
57
|
+
"ImageId": fields.Str(required=True, load_from="ImageId"),
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
|
|
61
|
+
"""
|
|
62
|
+
API: CreateUEcFirewall
|
|
63
|
+
|
|
64
|
+
创建外网防火墙
|
|
65
|
+
"""
|
|
66
|
+
|
|
67
|
+
|
|
68
|
+
class CreateUEcFirewallParamRuleSchema(schema.RequestSchema):
|
|
69
|
+
"""CreateUEcFirewallParamRule -"""
|
|
70
|
+
|
|
71
|
+
fields = {
|
|
72
|
+
"Action": fields.Str(required=True, dump_to="Action"),
|
|
73
|
+
"Port": fields.Str(required=True, dump_to="Port"),
|
|
74
|
+
"Priority": fields.Str(required=True, dump_to="Priority"),
|
|
75
|
+
"ProtocolType": fields.Str(required=True, dump_to="ProtocolType"),
|
|
76
|
+
"Remark": fields.Str(required=False, dump_to="Remark"),
|
|
77
|
+
"SrcIp": fields.Str(required=True, dump_to="SrcIp"),
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
|
|
81
|
+
class CreateUEcFirewallRequestSchema(schema.RequestSchema):
|
|
82
|
+
"""CreateUEcFirewall - 创建外网防火墙"""
|
|
83
|
+
|
|
84
|
+
fields = {
|
|
85
|
+
"Name": fields.Str(required=True, dump_to="Name"),
|
|
86
|
+
"ProjectId": fields.Str(required=False, dump_to="ProjectId"),
|
|
87
|
+
"Remark": fields.Str(required=False, dump_to="Remark"),
|
|
88
|
+
"Rule": fields.List(CreateUEcFirewallParamRuleSchema()),
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
|
|
92
|
+
class CreateUEcFirewallResponseSchema(schema.ResponseSchema):
|
|
93
|
+
"""CreateUEcFirewall - 创建外网防火墙"""
|
|
94
|
+
|
|
95
|
+
fields = {
|
|
96
|
+
"FirewallId": fields.Str(required=True, load_from="FirewallId"),
|
|
97
|
+
}
|
|
98
|
+
|
|
99
|
+
|
|
100
|
+
"""
|
|
101
|
+
API: CreateUEcHolder
|
|
102
|
+
|
|
103
|
+
创建容器组
|
|
104
|
+
"""
|
|
105
|
+
|
|
106
|
+
|
|
107
|
+
class CreateUEcHolderParamImageSchema(schema.RequestSchema):
|
|
108
|
+
"""CreateUEcHolderParamImage -"""
|
|
109
|
+
|
|
110
|
+
fields = {
|
|
111
|
+
"Message": fields.Str(required=False, dump_to="Message"),
|
|
112
|
+
"StoreAddress": fields.Str(required=False, dump_to="StoreAddress"),
|
|
113
|
+
}
|
|
114
|
+
|
|
115
|
+
|
|
116
|
+
class CreateUEcHolderParamPackSchema(schema.RequestSchema):
|
|
117
|
+
"""CreateUEcHolderParamPack -"""
|
|
118
|
+
|
|
119
|
+
fields = {
|
|
120
|
+
"Args": fields.Str(required=False, dump_to="Args"),
|
|
121
|
+
"Cmd": fields.Str(required=False, dump_to="Cmd"),
|
|
122
|
+
"ConfigDict": fields.Str(required=False, dump_to="ConfigDict"),
|
|
123
|
+
"CpuCore": fields.Float(required=False, dump_to="CpuCore"),
|
|
124
|
+
"Environment": fields.Str(required=False, dump_to="Environment"),
|
|
125
|
+
"ImageName": fields.Str(required=False, dump_to="ImageName"),
|
|
126
|
+
"MemSize": fields.Int(required=False, dump_to="MemSize"),
|
|
127
|
+
"Name": fields.Str(required=False, dump_to="Name"),
|
|
128
|
+
"WorkDir": fields.Str(required=False, dump_to="WorkDir"),
|
|
129
|
+
}
|
|
130
|
+
|
|
131
|
+
|
|
132
|
+
class CreateUEcHolderParamStorageSchema(schema.RequestSchema):
|
|
133
|
+
"""CreateUEcHolderParamStorage -"""
|
|
134
|
+
|
|
135
|
+
fields = {
|
|
136
|
+
"Path": fields.Str(required=False, dump_to="Path"),
|
|
137
|
+
"ResourceId": fields.Str(required=False, dump_to="ResourceId"),
|
|
138
|
+
}
|
|
139
|
+
|
|
140
|
+
|
|
141
|
+
class CreateUEcHolderRequestSchema(schema.RequestSchema):
|
|
142
|
+
"""CreateUEcHolder - 创建容器组"""
|
|
143
|
+
|
|
144
|
+
fields = {
|
|
145
|
+
"Bandwidth": fields.Int(required=False, dump_to="Bandwidth"),
|
|
146
|
+
"ChargeQuantity": fields.Int(required=False, dump_to="ChargeQuantity"),
|
|
147
|
+
"ChargeType": fields.Int(required=False, dump_to="ChargeType"),
|
|
148
|
+
"CpuCore": fields.Float(required=True, dump_to="CpuCore"),
|
|
149
|
+
"ElasticIp": fields.Str(required=False, dump_to="ElasticIp"),
|
|
150
|
+
"FirewallId": fields.Str(required=False, dump_to="FirewallId"),
|
|
151
|
+
"IdcId": fields.Str(required=True, dump_to="IdcId"),
|
|
152
|
+
"Image": fields.List(CreateUEcHolderParamImageSchema()),
|
|
153
|
+
"MemSize": fields.Int(required=True, dump_to="MemSize"),
|
|
154
|
+
"Name": fields.Str(required=False, dump_to="Name"),
|
|
155
|
+
"Pack": fields.List(CreateUEcHolderParamPackSchema()),
|
|
156
|
+
"ProductType": fields.Str(required=False, dump_to="ProductType"),
|
|
157
|
+
"ProjectId": fields.Str(required=False, dump_to="ProjectId"),
|
|
158
|
+
"RestartStrategy": fields.Int(
|
|
159
|
+
required=False, dump_to="RestartStrategy"
|
|
160
|
+
),
|
|
161
|
+
"Storage": fields.List(CreateUEcHolderParamStorageSchema()),
|
|
162
|
+
"SubnetId": fields.Str(required=True, dump_to="SubnetId"),
|
|
163
|
+
}
|
|
164
|
+
|
|
165
|
+
|
|
166
|
+
class CreateUEcHolderResponseSchema(schema.ResponseSchema):
|
|
167
|
+
"""CreateUEcHolder - 创建容器组"""
|
|
168
|
+
|
|
169
|
+
fields = {
|
|
170
|
+
"ResourceId": fields.Str(required=False, load_from="ResourceId"),
|
|
171
|
+
}
|
|
172
|
+
|
|
173
|
+
|
|
174
|
+
"""
|
|
175
|
+
API: CreateUEcSubnet
|
|
176
|
+
|
|
177
|
+
创建子网
|
|
178
|
+
"""
|
|
179
|
+
|
|
180
|
+
|
|
181
|
+
class CreateUEcSubnetRequestSchema(schema.RequestSchema):
|
|
182
|
+
"""CreateUEcSubnet - 创建子网"""
|
|
183
|
+
|
|
184
|
+
fields = {
|
|
185
|
+
"CIDR": fields.Str(required=True, dump_to="CIDR"),
|
|
186
|
+
"Comment": fields.Str(required=False, dump_to="Comment"),
|
|
187
|
+
"IdcId": fields.Str(required=True, dump_to="IdcId"),
|
|
188
|
+
"ProjectId": fields.Str(required=False, dump_to="ProjectId"),
|
|
189
|
+
"SubnetName": fields.Str(required=False, dump_to="SubnetName"),
|
|
190
|
+
}
|
|
191
|
+
|
|
192
|
+
|
|
193
|
+
class CreateUEcSubnetResponseSchema(schema.ResponseSchema):
|
|
194
|
+
"""CreateUEcSubnet - 创建子网"""
|
|
195
|
+
|
|
196
|
+
fields = {
|
|
197
|
+
"SubnetId": fields.Str(required=True, load_from="SubnetId"),
|
|
198
|
+
}
|
|
199
|
+
|
|
200
|
+
|
|
201
|
+
"""
|
|
202
|
+
API: CreateUEcVHost
|
|
203
|
+
|
|
204
|
+
创建虚拟机v2.0
|
|
205
|
+
"""
|
|
206
|
+
|
|
207
|
+
|
|
208
|
+
class CreateUEcVHostRequestSchema(schema.RequestSchema):
|
|
209
|
+
"""CreateUEcVHost - 创建虚拟机v2.0"""
|
|
210
|
+
|
|
211
|
+
fields = {
|
|
212
|
+
"AccountName": fields.Str(required=False, dump_to="AccountName"),
|
|
213
|
+
"ChargeQuantity": fields.Int(required=False, dump_to="ChargeQuantity"),
|
|
214
|
+
"ChargeType": fields.Int(required=False, dump_to="ChargeType"),
|
|
215
|
+
"CpuCore": fields.Int(required=True, dump_to="CpuCore"),
|
|
216
|
+
"DiskSize": fields.Int(required=True, dump_to="DiskSize"),
|
|
217
|
+
"FirewallId": fields.Str(required=False, dump_to="FirewallId"),
|
|
218
|
+
"Gpu": fields.Int(required=False, dump_to="Gpu"),
|
|
219
|
+
"GpuType": fields.Str(required=False, dump_to="GpuType"),
|
|
220
|
+
"IdcId": fields.Str(required=True, dump_to="IdcId"),
|
|
221
|
+
"ImageId": fields.Str(required=True, dump_to="ImageId"),
|
|
222
|
+
"IsNeedOuterIp": fields.Str(required=False, dump_to="IsNeedOuterIp"),
|
|
223
|
+
"Isp": fields.List(fields.Int()),
|
|
224
|
+
"MemSize": fields.Int(required=True, dump_to="MemSize"),
|
|
225
|
+
"NetLimit": fields.Int(required=True, dump_to="NetLimit"),
|
|
226
|
+
"NodeCount": fields.Int(required=False, dump_to="NodeCount"),
|
|
227
|
+
"NodeName": fields.Str(required=False, dump_to="NodeName"),
|
|
228
|
+
"PassWord": fields.Str(required=False, dump_to="PassWord"),
|
|
229
|
+
"ProductType": fields.Str(required=False, dump_to="ProductType"),
|
|
230
|
+
"ProjectId": fields.Str(required=False, dump_to="ProjectId"),
|
|
231
|
+
"SubnetId": fields.Str(required=False, dump_to="SubnetId"),
|
|
232
|
+
"SysDiskSize": fields.Int(required=False, dump_to="SysDiskSize"),
|
|
233
|
+
}
|
|
234
|
+
|
|
235
|
+
|
|
236
|
+
class CreateUEcVHostResponseSchema(schema.ResponseSchema):
|
|
237
|
+
"""CreateUEcVHost - 创建虚拟机v2.0"""
|
|
238
|
+
|
|
239
|
+
fields = {
|
|
240
|
+
"NodeList": fields.List(
|
|
241
|
+
models.NodeListSchema(), required=True, load_from="NodeList"
|
|
242
|
+
),
|
|
243
|
+
}
|
|
244
|
+
|
|
245
|
+
|
|
246
|
+
"""
|
|
247
|
+
API: DeleteUEcCustomImage
|
|
248
|
+
|
|
249
|
+
删除UEDN客户自定义镜像
|
|
250
|
+
"""
|
|
251
|
+
|
|
252
|
+
|
|
253
|
+
class DeleteUEcCustomImageRequestSchema(schema.RequestSchema):
|
|
254
|
+
"""DeleteUEcCustomImage - 删除UEDN客户自定义镜像"""
|
|
255
|
+
|
|
256
|
+
fields = {
|
|
257
|
+
"IdcId": fields.Str(required=False, dump_to="IdcId"),
|
|
258
|
+
"ImageId": fields.Str(required=True, dump_to="ImageId"),
|
|
259
|
+
"ProjectId": fields.Str(required=False, dump_to="ProjectId"),
|
|
260
|
+
}
|
|
261
|
+
|
|
262
|
+
|
|
263
|
+
class DeleteUEcCustomImageResponseSchema(schema.ResponseSchema):
|
|
264
|
+
"""DeleteUEcCustomImage - 删除UEDN客户自定义镜像"""
|
|
265
|
+
|
|
266
|
+
fields = {
|
|
267
|
+
"ImageId": fields.Int(required=True, load_from="ImageId"),
|
|
268
|
+
}
|
|
269
|
+
|
|
270
|
+
|
|
271
|
+
"""
|
|
272
|
+
API: DeleteUEcHolder
|
|
273
|
+
|
|
274
|
+
删除容器组
|
|
275
|
+
"""
|
|
276
|
+
|
|
277
|
+
|
|
278
|
+
class DeleteUEcHolderRequestSchema(schema.RequestSchema):
|
|
279
|
+
"""DeleteUEcHolder - 删除容器组"""
|
|
280
|
+
|
|
281
|
+
fields = {
|
|
282
|
+
"HolderId": fields.List(fields.Str()),
|
|
283
|
+
"ProjectId": fields.Str(required=False, dump_to="ProjectId"),
|
|
284
|
+
}
|
|
285
|
+
|
|
286
|
+
|
|
287
|
+
class DeleteUEcHolderResponseSchema(schema.ResponseSchema):
|
|
288
|
+
"""DeleteUEcHolder - 删除容器组"""
|
|
289
|
+
|
|
290
|
+
fields = {}
|
|
291
|
+
|
|
292
|
+
|
|
293
|
+
"""
|
|
294
|
+
API: DeleteUEcSubnet
|
|
295
|
+
|
|
296
|
+
删除子网
|
|
297
|
+
"""
|
|
298
|
+
|
|
299
|
+
|
|
300
|
+
class DeleteUEcSubnetRequestSchema(schema.RequestSchema):
|
|
301
|
+
"""DeleteUEcSubnet - 删除子网"""
|
|
302
|
+
|
|
303
|
+
fields = {
|
|
304
|
+
"ProjectId": fields.Str(required=False, dump_to="ProjectId"),
|
|
305
|
+
"SubnetId": fields.Str(required=True, dump_to="SubnetId"),
|
|
306
|
+
}
|
|
307
|
+
|
|
308
|
+
|
|
309
|
+
class DeleteUEcSubnetResponseSchema(schema.ResponseSchema):
|
|
310
|
+
"""DeleteUEcSubnet - 删除子网"""
|
|
311
|
+
|
|
312
|
+
fields = {}
|
|
313
|
+
|
|
314
|
+
|
|
315
|
+
"""
|
|
316
|
+
API: DeleteUEcVHost
|
|
317
|
+
|
|
318
|
+
删除vhost虚拟机 v2.0
|
|
319
|
+
"""
|
|
320
|
+
|
|
321
|
+
|
|
322
|
+
class DeleteUEcVHostRequestSchema(schema.RequestSchema):
|
|
323
|
+
"""DeleteUEcVHost - 删除vhost虚拟机 v2.0"""
|
|
324
|
+
|
|
325
|
+
fields = {
|
|
326
|
+
"NodeId": fields.List(fields.Str()),
|
|
327
|
+
"ProjectId": fields.Str(required=False, dump_to="ProjectId"),
|
|
328
|
+
}
|
|
329
|
+
|
|
330
|
+
|
|
331
|
+
class DeleteUEcVHostResponseSchema(schema.ResponseSchema):
|
|
332
|
+
"""DeleteUEcVHost - 删除vhost虚拟机 v2.0"""
|
|
333
|
+
|
|
334
|
+
fields = {}
|
|
335
|
+
|
|
336
|
+
|
|
337
|
+
"""
|
|
338
|
+
API: DescribeUEcFirewall
|
|
339
|
+
|
|
340
|
+
获取防火墙信息
|
|
341
|
+
"""
|
|
342
|
+
|
|
343
|
+
|
|
344
|
+
class DescribeUEcFirewallRequestSchema(schema.RequestSchema):
|
|
345
|
+
"""DescribeUEcFirewall - 获取防火墙信息"""
|
|
346
|
+
|
|
347
|
+
fields = {
|
|
348
|
+
"FirewallId": fields.Str(required=False, dump_to="FirewallId"),
|
|
349
|
+
"Limit": fields.Int(required=False, dump_to="Limit"),
|
|
350
|
+
"Offset": fields.Int(required=False, dump_to="Offset"),
|
|
351
|
+
"ProjectId": fields.Str(required=False, dump_to="ProjectId"),
|
|
352
|
+
"ResourceId": fields.Str(required=False, dump_to="ResourceId"),
|
|
353
|
+
}
|
|
354
|
+
|
|
355
|
+
|
|
356
|
+
class DescribeUEcFirewallResponseSchema(schema.ResponseSchema):
|
|
357
|
+
"""DescribeUEcFirewall - 获取防火墙信息"""
|
|
358
|
+
|
|
359
|
+
fields = {
|
|
360
|
+
"FirewallSet": fields.List(
|
|
361
|
+
models.FirewallInfoSchema(), required=False, load_from="FirewallSet"
|
|
362
|
+
),
|
|
363
|
+
"TotalCount": fields.Int(required=False, load_from="TotalCount"),
|
|
364
|
+
}
|
|
365
|
+
|
|
366
|
+
|
|
367
|
+
"""
|
|
368
|
+
API: DescribeUEcFirewallResource
|
|
369
|
+
|
|
370
|
+
防火墙绑定的资源列表
|
|
371
|
+
"""
|
|
372
|
+
|
|
373
|
+
|
|
374
|
+
class DescribeUEcFirewallResourceRequestSchema(schema.RequestSchema):
|
|
375
|
+
"""DescribeUEcFirewallResource - 防火墙绑定的资源列表"""
|
|
376
|
+
|
|
377
|
+
fields = {
|
|
378
|
+
"FirewallId": fields.Str(required=True, dump_to="FirewallId"),
|
|
379
|
+
"ProjectId": fields.Str(required=False, dump_to="ProjectId"),
|
|
380
|
+
}
|
|
381
|
+
|
|
382
|
+
|
|
383
|
+
class DescribeUEcFirewallResourceResponseSchema(schema.ResponseSchema):
|
|
384
|
+
"""DescribeUEcFirewallResource - 防火墙绑定的资源列表"""
|
|
385
|
+
|
|
386
|
+
fields = {
|
|
387
|
+
"ResourceSet": fields.List(
|
|
388
|
+
models.ResourceInfoSchema(), required=True, load_from="ResourceSet"
|
|
389
|
+
),
|
|
390
|
+
"TotalCount": fields.Int(required=True, load_from="TotalCount"),
|
|
391
|
+
}
|
|
392
|
+
|
|
393
|
+
|
|
394
|
+
"""
|
|
395
|
+
API: DescribeUEcHolder
|
|
396
|
+
|
|
397
|
+
获得容器组信息
|
|
398
|
+
"""
|
|
399
|
+
|
|
400
|
+
|
|
401
|
+
class DescribeUEcHolderRequestSchema(schema.RequestSchema):
|
|
402
|
+
"""DescribeUEcHolder - 获得容器组信息"""
|
|
403
|
+
|
|
404
|
+
fields = {
|
|
405
|
+
"HolderId": fields.List(fields.Str()),
|
|
406
|
+
"Limit": fields.Int(required=False, dump_to="Limit"),
|
|
407
|
+
"Offset": fields.Int(required=False, dump_to="Offset"),
|
|
408
|
+
"ProjectId": fields.Str(required=False, dump_to="ProjectId"),
|
|
409
|
+
}
|
|
410
|
+
|
|
411
|
+
|
|
412
|
+
class DescribeUEcHolderResponseSchema(schema.ResponseSchema):
|
|
413
|
+
"""DescribeUEcHolder - 获得容器组信息"""
|
|
414
|
+
|
|
415
|
+
fields = {
|
|
416
|
+
"HolderList": fields.List(
|
|
417
|
+
models.HolderListSchema(), required=True, load_from="HolderList"
|
|
418
|
+
),
|
|
419
|
+
"TotalCount": fields.Int(required=True, load_from="TotalCount"),
|
|
420
|
+
}
|
|
421
|
+
|
|
422
|
+
|
|
423
|
+
"""
|
|
424
|
+
API: DescribeUEcHolderIDC
|
|
425
|
+
|
|
426
|
+
获取容器组机房信息
|
|
427
|
+
"""
|
|
428
|
+
|
|
429
|
+
|
|
430
|
+
class DescribeUEcHolderIDCRequestSchema(schema.RequestSchema):
|
|
431
|
+
"""DescribeUEcHolderIDC - 获取容器组机房信息"""
|
|
432
|
+
|
|
433
|
+
fields = {
|
|
434
|
+
"Cpu": fields.Float(required=True, dump_to="Cpu"),
|
|
435
|
+
"IdcId": fields.List(fields.Str()),
|
|
436
|
+
"Memory": fields.Int(required=True, dump_to="Memory"),
|
|
437
|
+
"ProductType": fields.Str(required=False, dump_to="ProductType"),
|
|
438
|
+
"ProjectId": fields.Str(required=False, dump_to="ProjectId"),
|
|
439
|
+
"Type": fields.Int(required=False, dump_to="Type"),
|
|
440
|
+
}
|
|
441
|
+
|
|
442
|
+
|
|
443
|
+
class DescribeUEcHolderIDCResponseSchema(schema.ResponseSchema):
|
|
444
|
+
"""DescribeUEcHolderIDC - 获取容器组机房信息"""
|
|
445
|
+
|
|
446
|
+
fields = {
|
|
447
|
+
"IdcList": fields.List(
|
|
448
|
+
models.IdcInfoSchema(), required=True, load_from="IdcList"
|
|
449
|
+
),
|
|
450
|
+
}
|
|
451
|
+
|
|
452
|
+
|
|
453
|
+
"""
|
|
454
|
+
API: DescribeUEcIDC
|
|
455
|
+
|
|
456
|
+
获取IDC机房列表
|
|
457
|
+
"""
|
|
458
|
+
|
|
459
|
+
|
|
460
|
+
class DescribeUEcIDCRequestSchema(schema.RequestSchema):
|
|
461
|
+
"""DescribeUEcIDC - 获取IDC机房列表"""
|
|
462
|
+
|
|
463
|
+
fields = {
|
|
464
|
+
"Cpu": fields.Int(required=True, dump_to="Cpu"),
|
|
465
|
+
"Gpu": fields.Int(required=False, dump_to="Gpu"),
|
|
466
|
+
"IdcId": fields.List(fields.Str()),
|
|
467
|
+
"Memory": fields.Int(required=True, dump_to="Memory"),
|
|
468
|
+
"ProductType": fields.Str(required=False, dump_to="ProductType"),
|
|
469
|
+
"ProjectId": fields.Str(required=False, dump_to="ProjectId"),
|
|
470
|
+
"Type": fields.Int(required=False, dump_to="Type"),
|
|
471
|
+
}
|
|
472
|
+
|
|
473
|
+
|
|
474
|
+
class DescribeUEcIDCResponseSchema(schema.ResponseSchema):
|
|
475
|
+
"""DescribeUEcIDC - 获取IDC机房列表"""
|
|
476
|
+
|
|
477
|
+
fields = {
|
|
478
|
+
"Action": fields.Str(required=True, load_from="Action"),
|
|
479
|
+
"IdcList": fields.List(
|
|
480
|
+
models.IdcInfoSchema(), required=False, load_from="IdcList"
|
|
481
|
+
),
|
|
482
|
+
"RetCode": fields.Int(required=True, load_from="RetCode"),
|
|
483
|
+
}
|
|
484
|
+
|
|
485
|
+
|
|
486
|
+
"""
|
|
487
|
+
API: DescribeUEcSubnet
|
|
488
|
+
|
|
489
|
+
获取子网列表
|
|
490
|
+
"""
|
|
491
|
+
|
|
492
|
+
|
|
493
|
+
class DescribeUEcSubnetRequestSchema(schema.RequestSchema):
|
|
494
|
+
"""DescribeUEcSubnet - 获取子网列表"""
|
|
495
|
+
|
|
496
|
+
fields = {
|
|
497
|
+
"IdcId": fields.Str(required=False, dump_to="IdcId"),
|
|
498
|
+
"ProjectId": fields.Str(required=False, dump_to="ProjectId"),
|
|
499
|
+
"SubnetId": fields.Str(required=False, dump_to="SubnetId"),
|
|
500
|
+
}
|
|
501
|
+
|
|
502
|
+
|
|
503
|
+
class DescribeUEcSubnetResponseSchema(schema.ResponseSchema):
|
|
504
|
+
"""DescribeUEcSubnet - 获取子网列表"""
|
|
505
|
+
|
|
506
|
+
fields = {
|
|
507
|
+
"SubnetList": fields.List(
|
|
508
|
+
models.SubnetInfoSchema(), required=False, load_from="SubnetList"
|
|
509
|
+
),
|
|
510
|
+
}
|
|
511
|
+
|
|
512
|
+
|
|
513
|
+
"""
|
|
514
|
+
API: DescribeUEcVHost
|
|
515
|
+
|
|
516
|
+
获取虚拟机列表 2.0
|
|
517
|
+
"""
|
|
518
|
+
|
|
519
|
+
|
|
520
|
+
class DescribeUEcVHostRequestSchema(schema.RequestSchema):
|
|
521
|
+
"""DescribeUEcVHost - 获取虚拟机列表 2.0"""
|
|
522
|
+
|
|
523
|
+
fields = {
|
|
524
|
+
"IdcId": fields.List(fields.Str()),
|
|
525
|
+
"Limit": fields.Int(required=False, dump_to="Limit"),
|
|
526
|
+
"NodeId": fields.List(fields.Str()),
|
|
527
|
+
"Offset": fields.Int(required=False, dump_to="Offset"),
|
|
528
|
+
"ProjectId": fields.Str(required=False, dump_to="ProjectId"),
|
|
529
|
+
}
|
|
530
|
+
|
|
531
|
+
|
|
532
|
+
class DescribeUEcVHostResponseSchema(schema.ResponseSchema):
|
|
533
|
+
"""DescribeUEcVHost - 获取虚拟机列表 2.0"""
|
|
534
|
+
|
|
535
|
+
fields = {
|
|
536
|
+
"NodeList": fields.List(
|
|
537
|
+
models.NodeInfoSchema(), required=False, load_from="NodeList"
|
|
538
|
+
),
|
|
539
|
+
"TotalCount": fields.Int(required=False, load_from="TotalCount"),
|
|
540
|
+
}
|
|
541
|
+
|
|
542
|
+
|
|
543
|
+
"""
|
|
544
|
+
API: DescribeUEcVHostISP
|
|
545
|
+
|
|
546
|
+
获取虚拟机运营商信息
|
|
547
|
+
"""
|
|
548
|
+
|
|
549
|
+
|
|
550
|
+
class DescribeUEcVHostISPRequestSchema(schema.RequestSchema):
|
|
551
|
+
"""DescribeUEcVHostISP - 获取虚拟机运营商信息"""
|
|
552
|
+
|
|
553
|
+
fields = {
|
|
554
|
+
"City": fields.Str(required=False, dump_to="City"),
|
|
555
|
+
"IspName": fields.Str(required=False, dump_to="IspName"),
|
|
556
|
+
"Province": fields.Str(required=False, dump_to="Province"),
|
|
557
|
+
}
|
|
558
|
+
|
|
559
|
+
|
|
560
|
+
class DescribeUEcVHostISPResponseSchema(schema.ResponseSchema):
|
|
561
|
+
"""DescribeUEcVHostISP - 获取虚拟机运营商信息"""
|
|
562
|
+
|
|
563
|
+
fields = {
|
|
564
|
+
"NodeIspList": fields.List(
|
|
565
|
+
models.NodeIspListSchema(), required=True, load_from="NodeIspList"
|
|
566
|
+
),
|
|
567
|
+
}
|
|
568
|
+
|
|
569
|
+
|
|
570
|
+
"""
|
|
571
|
+
API: GetUEcHolderLog
|
|
572
|
+
|
|
573
|
+
获取单个容器日志
|
|
574
|
+
"""
|
|
575
|
+
|
|
576
|
+
|
|
577
|
+
class GetUEcHolderLogRequestSchema(schema.RequestSchema):
|
|
578
|
+
"""GetUEcHolderLog - 获取单个容器日志"""
|
|
579
|
+
|
|
580
|
+
fields = {
|
|
581
|
+
"PackName": fields.Str(required=True, dump_to="PackName"),
|
|
582
|
+
"ProjectId": fields.Str(required=False, dump_to="ProjectId"),
|
|
583
|
+
"ResourceId": fields.Str(required=True, dump_to="ResourceId"),
|
|
584
|
+
}
|
|
585
|
+
|
|
586
|
+
|
|
587
|
+
class GetUEcHolderLogResponseSchema(schema.ResponseSchema):
|
|
588
|
+
"""GetUEcHolderLog - 获取单个容器日志"""
|
|
589
|
+
|
|
590
|
+
fields = {
|
|
591
|
+
"Data": fields.Str(required=False, load_from="Data"),
|
|
592
|
+
}
|
|
593
|
+
|
|
594
|
+
|
|
595
|
+
"""
|
|
596
|
+
API: GetUEcHolderMetrics
|
|
597
|
+
|
|
598
|
+
获取容器(CPU利用率,带宽,内存)数据
|
|
599
|
+
"""
|
|
600
|
+
|
|
601
|
+
|
|
602
|
+
class GetUEcHolderMetricsRequestSchema(schema.RequestSchema):
|
|
603
|
+
"""GetUEcHolderMetrics - 获取容器(CPU利用率,带宽,内存)数据"""
|
|
604
|
+
|
|
605
|
+
fields = {
|
|
606
|
+
"EndTime": fields.Int(required=False, dump_to="EndTime"),
|
|
607
|
+
"PackName": fields.Str(required=True, dump_to="PackName"),
|
|
608
|
+
"ProjectId": fields.Str(required=False, dump_to="ProjectId"),
|
|
609
|
+
"ResourceId": fields.Str(required=True, dump_to="ResourceId"),
|
|
610
|
+
"StartTime": fields.Int(required=False, dump_to="StartTime"),
|
|
611
|
+
"Type": fields.List(fields.Str()),
|
|
612
|
+
}
|
|
613
|
+
|
|
614
|
+
|
|
615
|
+
class GetUEcHolderMetricsResponseSchema(schema.ResponseSchema):
|
|
616
|
+
"""GetUEcHolderMetrics - 获取容器(CPU利用率,带宽,内存)数据"""
|
|
617
|
+
|
|
618
|
+
fields = {
|
|
619
|
+
"DataSets": models.MetricisDataSetSchema(),
|
|
620
|
+
}
|
|
621
|
+
|
|
622
|
+
|
|
623
|
+
"""
|
|
624
|
+
API: GetUEcIDCCutInfo
|
|
625
|
+
|
|
626
|
+
获取机房割接信息
|
|
627
|
+
"""
|
|
628
|
+
|
|
629
|
+
|
|
630
|
+
class GetUEcIDCCutInfoRequestSchema(schema.RequestSchema):
|
|
631
|
+
"""GetUEcIDCCutInfo - 获取机房割接信息"""
|
|
632
|
+
|
|
633
|
+
fields = {}
|
|
634
|
+
|
|
635
|
+
|
|
636
|
+
class GetUEcIDCCutInfoResponseSchema(schema.ResponseSchema):
|
|
637
|
+
"""GetUEcIDCCutInfo - 获取机房割接信息"""
|
|
638
|
+
|
|
639
|
+
fields = {
|
|
640
|
+
"IDCCutInfo": fields.List(
|
|
641
|
+
models.IDCCutInfoSchema(), required=True, load_from="IDCCutInfo"
|
|
642
|
+
),
|
|
643
|
+
"TotalCount": fields.Int(required=False, load_from="TotalCount"),
|
|
644
|
+
}
|
|
645
|
+
|
|
646
|
+
|
|
647
|
+
"""
|
|
648
|
+
API: GetUEcIDCVHostData
|
|
649
|
+
|
|
650
|
+
获取机房虚拟机监控数据
|
|
651
|
+
"""
|
|
652
|
+
|
|
653
|
+
|
|
654
|
+
class GetUEcIDCVHostDataRequestSchema(schema.RequestSchema):
|
|
655
|
+
"""GetUEcIDCVHostData - 获取机房虚拟机监控数据"""
|
|
656
|
+
|
|
657
|
+
fields = {
|
|
658
|
+
"BeginTime": fields.Int(required=False, dump_to="BeginTime"),
|
|
659
|
+
"EndTime": fields.Int(required=False, dump_to="EndTime"),
|
|
660
|
+
"NodeId": fields.List(fields.Str()),
|
|
661
|
+
"ProjectId": fields.Str(required=False, dump_to="ProjectId"),
|
|
662
|
+
"Type": fields.List(fields.Str()),
|
|
663
|
+
}
|
|
664
|
+
|
|
665
|
+
|
|
666
|
+
class GetUEcIDCVHostDataResponseSchema(schema.ResponseSchema):
|
|
667
|
+
"""GetUEcIDCVHostData - 获取机房虚拟机监控数据"""
|
|
668
|
+
|
|
669
|
+
fields = {
|
|
670
|
+
"DataSets": models.DataSetSchema(),
|
|
671
|
+
}
|
|
672
|
+
|
|
673
|
+
|
|
674
|
+
"""
|
|
675
|
+
API: GetUEcImage
|
|
676
|
+
|
|
677
|
+
uec2.0
|
|
678
|
+
"""
|
|
679
|
+
|
|
680
|
+
|
|
681
|
+
class GetUEcImageRequestSchema(schema.RequestSchema):
|
|
682
|
+
"""GetUEcImage - uec2.0"""
|
|
683
|
+
|
|
684
|
+
fields = {
|
|
685
|
+
"ImageType": fields.Str(required=False, dump_to="ImageType"),
|
|
686
|
+
"Limit": fields.Int(required=False, dump_to="Limit"),
|
|
687
|
+
"Offset": fields.Int(required=False, dump_to="Offset"),
|
|
688
|
+
"ProjectId": fields.Str(required=False, dump_to="ProjectId"),
|
|
689
|
+
}
|
|
690
|
+
|
|
691
|
+
|
|
692
|
+
class GetUEcImageResponseSchema(schema.ResponseSchema):
|
|
693
|
+
"""GetUEcImage - uec2.0"""
|
|
694
|
+
|
|
695
|
+
fields = {
|
|
696
|
+
"ImageList": fields.List(
|
|
697
|
+
models.ImageInfoSchema(), required=False, load_from="ImageList"
|
|
698
|
+
),
|
|
699
|
+
"TotalCount": fields.Int(required=False, load_from="TotalCount"),
|
|
700
|
+
}
|
|
701
|
+
|
|
702
|
+
|
|
703
|
+
"""
|
|
704
|
+
API: GetUEcPodPrice
|
|
705
|
+
|
|
706
|
+
获得容器组价格
|
|
707
|
+
"""
|
|
708
|
+
|
|
709
|
+
|
|
710
|
+
class GetUEcPodPriceRequestSchema(schema.RequestSchema):
|
|
711
|
+
"""GetUEcPodPrice - 获得容器组价格"""
|
|
712
|
+
|
|
713
|
+
fields = {
|
|
714
|
+
"Bandwidth": fields.Int(required=False, dump_to="Bandwidth"),
|
|
715
|
+
"ChargeQuantity": fields.Int(required=False, dump_to="ChargeQuantity"),
|
|
716
|
+
"ChargeType": fields.Int(required=False, dump_to="ChargeType"),
|
|
717
|
+
"CpuCore": fields.Float(required=False, dump_to="CpuCore"),
|
|
718
|
+
"ElasticIp": fields.Str(required=False, dump_to="ElasticIp"),
|
|
719
|
+
"IdcId": fields.Str(required=True, dump_to="IdcId"),
|
|
720
|
+
"MemSize": fields.Int(required=False, dump_to="MemSize"),
|
|
721
|
+
"ProductType": fields.Str(required=False, dump_to="ProductType"),
|
|
722
|
+
}
|
|
723
|
+
|
|
724
|
+
|
|
725
|
+
class GetUEcPodPriceResponseSchema(schema.ResponseSchema):
|
|
726
|
+
"""GetUEcPodPrice - 获得容器组价格"""
|
|
727
|
+
|
|
728
|
+
fields = {
|
|
729
|
+
"HolderPrice": fields.Float(required=True, load_from="HolderPrice"),
|
|
730
|
+
"IpPrice": fields.Float(required=True, load_from="IpPrice"),
|
|
731
|
+
}
|
|
732
|
+
|
|
733
|
+
|
|
734
|
+
"""
|
|
735
|
+
API: GetUEcUpgradePrice
|
|
736
|
+
|
|
737
|
+
获取虚拟机调整差价
|
|
738
|
+
"""
|
|
739
|
+
|
|
740
|
+
|
|
741
|
+
class GetUEcUpgradePriceRequestSchema(schema.RequestSchema):
|
|
742
|
+
"""GetUEcUpgradePrice - 获取虚拟机调整差价"""
|
|
743
|
+
|
|
744
|
+
fields = {
|
|
745
|
+
"CpuCore": fields.Int(required=False, dump_to="CpuCore"),
|
|
746
|
+
"DiskSize": fields.Int(required=False, dump_to="DiskSize"),
|
|
747
|
+
"MemSize": fields.Int(required=False, dump_to="MemSize"),
|
|
748
|
+
"NetLimit": fields.Int(required=False, dump_to="NetLimit"),
|
|
749
|
+
"NodeId": fields.Str(required=True, dump_to="NodeId"),
|
|
750
|
+
"ProjectId": fields.Str(required=False, dump_to="ProjectId"),
|
|
751
|
+
"SysDiskSize": fields.Int(required=False, dump_to="SysDiskSize"),
|
|
752
|
+
}
|
|
753
|
+
|
|
754
|
+
|
|
755
|
+
class GetUEcUpgradePriceResponseSchema(schema.ResponseSchema):
|
|
756
|
+
"""GetUEcUpgradePrice - 获取虚拟机调整差价"""
|
|
757
|
+
|
|
758
|
+
fields = {
|
|
759
|
+
"Price": fields.Int(required=False, load_from="Price"),
|
|
760
|
+
}
|
|
761
|
+
|
|
762
|
+
|
|
763
|
+
"""
|
|
764
|
+
API: GetUEcVHostData
|
|
765
|
+
|
|
766
|
+
获取虚拟机监控数据
|
|
767
|
+
"""
|
|
768
|
+
|
|
769
|
+
|
|
770
|
+
class GetUEcVHostDataRequestSchema(schema.RequestSchema):
|
|
771
|
+
"""GetUEcVHostData - 获取虚拟机监控数据"""
|
|
772
|
+
|
|
773
|
+
fields = {
|
|
774
|
+
"BeginTime": fields.Int(required=False, dump_to="BeginTime"),
|
|
775
|
+
"EndTime": fields.Int(required=False, dump_to="EndTime"),
|
|
776
|
+
"NodeId": fields.Str(required=True, dump_to="NodeId"),
|
|
777
|
+
"ProjectId": fields.Str(required=False, dump_to="ProjectId"),
|
|
778
|
+
"Type": fields.List(fields.Int()),
|
|
779
|
+
}
|
|
780
|
+
|
|
781
|
+
|
|
782
|
+
class GetUEcVHostDataResponseSchema(schema.ResponseSchema):
|
|
783
|
+
"""GetUEcVHostData - 获取虚拟机监控数据"""
|
|
784
|
+
|
|
785
|
+
fields = {
|
|
786
|
+
"Action": fields.Str(required=True, load_from="Action"),
|
|
787
|
+
"DataSets": models.DataSetSchema(),
|
|
788
|
+
"RetCode": fields.Int(required=True, load_from="RetCode"),
|
|
789
|
+
}
|
|
790
|
+
|
|
791
|
+
|
|
792
|
+
"""
|
|
793
|
+
API: GetUEcVHostPrice
|
|
794
|
+
|
|
795
|
+
获取虚拟机价格
|
|
796
|
+
"""
|
|
797
|
+
|
|
798
|
+
|
|
799
|
+
class GetUEcVHostPriceRequestSchema(schema.RequestSchema):
|
|
800
|
+
"""GetUEcVHostPrice - 获取虚拟机价格"""
|
|
801
|
+
|
|
802
|
+
fields = {
|
|
803
|
+
"ChargeQuantity": fields.Int(required=False, dump_to="ChargeQuantity"),
|
|
804
|
+
"ChargeType": fields.Int(required=False, dump_to="ChargeType"),
|
|
805
|
+
"CpuCore": fields.Int(required=False, dump_to="CpuCore"),
|
|
806
|
+
"DiskSize": fields.Int(required=False, dump_to="DiskSize"),
|
|
807
|
+
"Gpu": fields.Int(required=False, dump_to="Gpu"),
|
|
808
|
+
"GpuType": fields.Str(required=False, dump_to="GpuType"),
|
|
809
|
+
"IdcId": fields.Str(required=True, dump_to="IdcId"),
|
|
810
|
+
"IpCount": fields.Int(required=False, dump_to="IpCount"),
|
|
811
|
+
"MemSize": fields.Int(required=False, dump_to="MemSize"),
|
|
812
|
+
"NetLimit": fields.Int(required=False, dump_to="NetLimit"),
|
|
813
|
+
"NodeCount": fields.Int(required=False, dump_to="NodeCount"),
|
|
814
|
+
"ProductType": fields.Str(required=False, dump_to="ProductType"),
|
|
815
|
+
"SysDiskSize": fields.Int(required=False, dump_to="SysDiskSize"),
|
|
816
|
+
}
|
|
817
|
+
|
|
818
|
+
|
|
819
|
+
class GetUEcVHostPriceResponseSchema(schema.ResponseSchema):
|
|
820
|
+
"""GetUEcVHostPrice - 获取虚拟机价格"""
|
|
821
|
+
|
|
822
|
+
fields = {
|
|
823
|
+
"IpPrice": fields.Float(required=False, load_from="IpPrice"),
|
|
824
|
+
"NodePrice": fields.Float(required=False, load_from="NodePrice"),
|
|
825
|
+
}
|
|
826
|
+
|
|
827
|
+
|
|
828
|
+
"""
|
|
829
|
+
API: ImportUEcCustomImage
|
|
830
|
+
|
|
831
|
+
导入自定义镜像
|
|
832
|
+
"""
|
|
833
|
+
|
|
834
|
+
|
|
835
|
+
class ImportUEcCustomImageRequestSchema(schema.RequestSchema):
|
|
836
|
+
"""ImportUEcCustomImage - 导入自定义镜像"""
|
|
837
|
+
|
|
838
|
+
fields = {
|
|
839
|
+
"Format": fields.Str(required=False, dump_to="Format"),
|
|
840
|
+
"IdcId": fields.List(fields.Str()),
|
|
841
|
+
"ImageDesc": fields.Str(required=False, dump_to="ImageDesc"),
|
|
842
|
+
"ImageId": fields.Str(required=False, dump_to="ImageId"),
|
|
843
|
+
"ImageName": fields.Str(required=False, dump_to="ImageName"),
|
|
844
|
+
"OsType": fields.Str(required=False, dump_to="OsType"),
|
|
845
|
+
"ProjectId": fields.Str(required=False, dump_to="ProjectId"),
|
|
846
|
+
"UFileUrl": fields.Str(required=False, dump_to="UFileUrl"),
|
|
847
|
+
}
|
|
848
|
+
|
|
849
|
+
|
|
850
|
+
class ImportUEcCustomImageResponseSchema(schema.ResponseSchema):
|
|
851
|
+
"""ImportUEcCustomImage - 导入自定义镜像"""
|
|
852
|
+
|
|
853
|
+
fields = {
|
|
854
|
+
"ImageId": fields.Str(required=True, load_from="ImageId"),
|
|
855
|
+
}
|
|
856
|
+
|
|
857
|
+
|
|
858
|
+
"""
|
|
859
|
+
API: LoginUEcDocker
|
|
860
|
+
|
|
861
|
+
登录容器
|
|
862
|
+
"""
|
|
863
|
+
|
|
864
|
+
|
|
865
|
+
class LoginUEcDockerRequestSchema(schema.RequestSchema):
|
|
866
|
+
"""LoginUEcDocker - 登录容器"""
|
|
867
|
+
|
|
868
|
+
fields = {
|
|
869
|
+
"Name": fields.Str(required=True, dump_to="Name"),
|
|
870
|
+
"ProjectId": fields.Str(required=False, dump_to="ProjectId"),
|
|
871
|
+
"ResourceId": fields.Str(required=True, dump_to="ResourceId"),
|
|
872
|
+
}
|
|
873
|
+
|
|
874
|
+
|
|
875
|
+
class LoginUEcDockerResponseSchema(schema.ResponseSchema):
|
|
876
|
+
"""LoginUEcDocker - 登录容器"""
|
|
877
|
+
|
|
878
|
+
fields = {
|
|
879
|
+
"Link": fields.Str(required=False, load_from="Link"),
|
|
880
|
+
"LinkPort": fields.Int(required=False, load_from="LinkPort"),
|
|
881
|
+
"SessionId": fields.Str(required=True, load_from="SessionId"),
|
|
882
|
+
}
|
|
883
|
+
|
|
884
|
+
|
|
885
|
+
"""
|
|
886
|
+
API: ModifyUEcBandwidth
|
|
887
|
+
|
|
888
|
+
修改节点带宽限制
|
|
889
|
+
"""
|
|
890
|
+
|
|
891
|
+
|
|
892
|
+
class ModifyUEcBandwidthRequestSchema(schema.RequestSchema):
|
|
893
|
+
"""ModifyUEcBandwidth - 修改节点带宽限制"""
|
|
894
|
+
|
|
895
|
+
fields = {
|
|
896
|
+
"NetLimit": fields.Str(required=True, dump_to="NetLimit"),
|
|
897
|
+
"NodeId": fields.Str(required=True, dump_to="NodeId"),
|
|
898
|
+
"ProjectId": fields.Str(required=False, dump_to="ProjectId"),
|
|
899
|
+
}
|
|
900
|
+
|
|
901
|
+
|
|
902
|
+
class ModifyUEcBandwidthResponseSchema(schema.ResponseSchema):
|
|
903
|
+
"""ModifyUEcBandwidth - 修改节点带宽限制"""
|
|
904
|
+
|
|
905
|
+
fields = {}
|
|
906
|
+
|
|
907
|
+
|
|
908
|
+
"""
|
|
909
|
+
API: ModifyUEcHolderName
|
|
910
|
+
|
|
911
|
+
修改容器组名称
|
|
912
|
+
"""
|
|
913
|
+
|
|
914
|
+
|
|
915
|
+
class ModifyUEcHolderNameRequestSchema(schema.RequestSchema):
|
|
916
|
+
"""ModifyUEcHolderName - 修改容器组名称"""
|
|
917
|
+
|
|
918
|
+
fields = {
|
|
919
|
+
"Name": fields.Str(required=True, dump_to="Name"),
|
|
920
|
+
"ProjectId": fields.Str(required=False, dump_to="ProjectId"),
|
|
921
|
+
"ResourceId": fields.Str(required=True, dump_to="ResourceId"),
|
|
922
|
+
}
|
|
923
|
+
|
|
924
|
+
|
|
925
|
+
class ModifyUEcHolderNameResponseSchema(schema.ResponseSchema):
|
|
926
|
+
"""ModifyUEcHolderName - 修改容器组名称"""
|
|
927
|
+
|
|
928
|
+
fields = {}
|
|
929
|
+
|
|
930
|
+
|
|
931
|
+
"""
|
|
932
|
+
API: ModifyUEcImageName
|
|
933
|
+
|
|
934
|
+
修改镜像名称
|
|
935
|
+
"""
|
|
936
|
+
|
|
937
|
+
|
|
938
|
+
class ModifyUEcImageNameRequestSchema(schema.RequestSchema):
|
|
939
|
+
"""ModifyUEcImageName - 修改镜像名称"""
|
|
940
|
+
|
|
941
|
+
fields = {
|
|
942
|
+
"ImageDesc": fields.Str(required=False, dump_to="ImageDesc"),
|
|
943
|
+
"ImageId": fields.Str(required=True, dump_to="ImageId"),
|
|
944
|
+
"ImageName": fields.Str(required=True, dump_to="ImageName"),
|
|
945
|
+
"ProjectId": fields.Str(required=False, dump_to="ProjectId"),
|
|
946
|
+
}
|
|
947
|
+
|
|
948
|
+
|
|
949
|
+
class ModifyUEcImageNameResponseSchema(schema.ResponseSchema):
|
|
950
|
+
"""ModifyUEcImageName - 修改镜像名称"""
|
|
951
|
+
|
|
952
|
+
fields = {}
|
|
953
|
+
|
|
954
|
+
|
|
955
|
+
"""
|
|
956
|
+
API: PoweroffUEcVHost
|
|
957
|
+
|
|
958
|
+
虚拟机断电
|
|
959
|
+
"""
|
|
960
|
+
|
|
961
|
+
|
|
962
|
+
class PoweroffUEcVHostRequestSchema(schema.RequestSchema):
|
|
963
|
+
"""PoweroffUEcVHost - 虚拟机断电"""
|
|
964
|
+
|
|
965
|
+
fields = {
|
|
966
|
+
"NodeId": fields.List(fields.Str()),
|
|
967
|
+
"ProjectId": fields.Str(required=False, dump_to="ProjectId"),
|
|
968
|
+
}
|
|
969
|
+
|
|
970
|
+
|
|
971
|
+
class PoweroffUEcVHostResponseSchema(schema.ResponseSchema):
|
|
972
|
+
"""PoweroffUEcVHost - 虚拟机断电"""
|
|
973
|
+
|
|
974
|
+
fields = {}
|
|
975
|
+
|
|
976
|
+
|
|
977
|
+
"""
|
|
978
|
+
API: ReinstallUEcVHost
|
|
979
|
+
|
|
980
|
+
虚拟机重装系统
|
|
981
|
+
"""
|
|
982
|
+
|
|
983
|
+
|
|
984
|
+
class ReinstallUEcVHostRequestSchema(schema.RequestSchema):
|
|
985
|
+
"""ReinstallUEcVHost - 虚拟机重装系统"""
|
|
986
|
+
|
|
987
|
+
fields = {
|
|
988
|
+
"ImageId": fields.Str(required=True, dump_to="ImageId"),
|
|
989
|
+
"KeepData": fields.Int(required=False, dump_to="KeepData"),
|
|
990
|
+
"NodeId": fields.Str(required=True, dump_to="NodeId"),
|
|
991
|
+
"Password": fields.Str(required=False, dump_to="Password"),
|
|
992
|
+
"ProjectId": fields.Str(required=False, dump_to="ProjectId"),
|
|
993
|
+
"SysDiskSize": fields.Int(required=False, dump_to="SysDiskSize"),
|
|
994
|
+
}
|
|
995
|
+
|
|
996
|
+
|
|
997
|
+
class ReinstallUEcVHostResponseSchema(schema.ResponseSchema):
|
|
998
|
+
"""ReinstallUEcVHost - 虚拟机重装系统"""
|
|
999
|
+
|
|
1000
|
+
fields = {}
|
|
1001
|
+
|
|
1002
|
+
|
|
1003
|
+
"""
|
|
1004
|
+
API: RestartUEcHolder
|
|
1005
|
+
|
|
1006
|
+
重启容器组
|
|
1007
|
+
"""
|
|
1008
|
+
|
|
1009
|
+
|
|
1010
|
+
class RestartUEcHolderRequestSchema(schema.RequestSchema):
|
|
1011
|
+
"""RestartUEcHolder - 重启容器组"""
|
|
1012
|
+
|
|
1013
|
+
fields = {
|
|
1014
|
+
"ProjectId": fields.Str(required=False, dump_to="ProjectId"),
|
|
1015
|
+
"ResourceId": fields.List(fields.Str()),
|
|
1016
|
+
}
|
|
1017
|
+
|
|
1018
|
+
|
|
1019
|
+
class RestartUEcHolderResponseSchema(schema.ResponseSchema):
|
|
1020
|
+
"""RestartUEcHolder - 重启容器组"""
|
|
1021
|
+
|
|
1022
|
+
fields = {}
|
|
1023
|
+
|
|
1024
|
+
|
|
1025
|
+
"""
|
|
1026
|
+
API: RestartUEcVHost
|
|
1027
|
+
|
|
1028
|
+
重启虚拟机v2.0
|
|
1029
|
+
"""
|
|
1030
|
+
|
|
1031
|
+
|
|
1032
|
+
class RestartUEcVHostRequestSchema(schema.RequestSchema):
|
|
1033
|
+
"""RestartUEcVHost - 重启虚拟机v2.0"""
|
|
1034
|
+
|
|
1035
|
+
fields = {
|
|
1036
|
+
"NodeId": fields.List(fields.Str()),
|
|
1037
|
+
"ProjectId": fields.Str(required=False, dump_to="ProjectId"),
|
|
1038
|
+
}
|
|
1039
|
+
|
|
1040
|
+
|
|
1041
|
+
class RestartUEcVHostResponseSchema(schema.ResponseSchema):
|
|
1042
|
+
"""RestartUEcVHost - 重启虚拟机v2.0"""
|
|
1043
|
+
|
|
1044
|
+
fields = {}
|
|
1045
|
+
|
|
1046
|
+
|
|
1047
|
+
"""
|
|
1048
|
+
API: StartUEcVHost
|
|
1049
|
+
|
|
1050
|
+
启动UEC虚拟机
|
|
1051
|
+
"""
|
|
1052
|
+
|
|
1053
|
+
|
|
1054
|
+
class StartUEcVHostRequestSchema(schema.RequestSchema):
|
|
1055
|
+
"""StartUEcVHost - 启动UEC虚拟机"""
|
|
1056
|
+
|
|
1057
|
+
fields = {
|
|
1058
|
+
"NodeId": fields.List(fields.Str()),
|
|
1059
|
+
"ProjectId": fields.Str(required=False, dump_to="ProjectId"),
|
|
1060
|
+
}
|
|
1061
|
+
|
|
1062
|
+
|
|
1063
|
+
class StartUEcVHostResponseSchema(schema.ResponseSchema):
|
|
1064
|
+
"""StartUEcVHost - 启动UEC虚拟机"""
|
|
1065
|
+
|
|
1066
|
+
fields = {}
|
|
1067
|
+
|
|
1068
|
+
|
|
1069
|
+
"""
|
|
1070
|
+
API: StopUEcVHost
|
|
1071
|
+
|
|
1072
|
+
停止UEC虚拟机
|
|
1073
|
+
"""
|
|
1074
|
+
|
|
1075
|
+
|
|
1076
|
+
class StopUEcVHostRequestSchema(schema.RequestSchema):
|
|
1077
|
+
"""StopUEcVHost - 停止UEC虚拟机"""
|
|
1078
|
+
|
|
1079
|
+
fields = {
|
|
1080
|
+
"NodeId": fields.List(fields.Str()),
|
|
1081
|
+
"ProjectId": fields.Str(required=False, dump_to="ProjectId"),
|
|
1082
|
+
}
|
|
1083
|
+
|
|
1084
|
+
|
|
1085
|
+
class StopUEcVHostResponseSchema(schema.ResponseSchema):
|
|
1086
|
+
"""StopUEcVHost - 停止UEC虚拟机"""
|
|
1087
|
+
|
|
1088
|
+
fields = {}
|
|
1089
|
+
|
|
1090
|
+
|
|
1091
|
+
"""
|
|
1092
|
+
API: UnBindUEcFirewall
|
|
1093
|
+
|
|
1094
|
+
解绑防火墙
|
|
1095
|
+
"""
|
|
1096
|
+
|
|
1097
|
+
|
|
1098
|
+
class UnBindUEcFirewallRequestSchema(schema.RequestSchema):
|
|
1099
|
+
"""UnBindUEcFirewall - 解绑防火墙"""
|
|
1100
|
+
|
|
1101
|
+
fields = {
|
|
1102
|
+
"FirewallId": fields.Str(required=True, dump_to="FirewallId"),
|
|
1103
|
+
"ProjectId": fields.Str(required=False, dump_to="ProjectId"),
|
|
1104
|
+
"ResourceId": fields.Str(required=True, dump_to="ResourceId"),
|
|
1105
|
+
}
|
|
1106
|
+
|
|
1107
|
+
|
|
1108
|
+
class UnBindUEcFirewallResponseSchema(schema.ResponseSchema):
|
|
1109
|
+
"""UnBindUEcFirewall - 解绑防火墙"""
|
|
1110
|
+
|
|
1111
|
+
fields = {}
|
|
1112
|
+
|
|
1113
|
+
|
|
1114
|
+
"""
|
|
1115
|
+
API: UpdateUEcFirewall
|
|
1116
|
+
|
|
1117
|
+
更新防火墙信息,新增和删除规则
|
|
1118
|
+
"""
|
|
1119
|
+
|
|
1120
|
+
|
|
1121
|
+
class UpdateUEcFirewallParamRuleSchema(schema.RequestSchema):
|
|
1122
|
+
"""UpdateUEcFirewallParamRule -"""
|
|
1123
|
+
|
|
1124
|
+
fields = {
|
|
1125
|
+
"Action": fields.Str(required=True, dump_to="Action"),
|
|
1126
|
+
"Port": fields.Str(required=True, dump_to="Port"),
|
|
1127
|
+
"Priority": fields.Str(required=True, dump_to="Priority"),
|
|
1128
|
+
"ProtocolType": fields.Str(required=True, dump_to="ProtocolType"),
|
|
1129
|
+
"Remark": fields.Str(required=True, dump_to="Remark"),
|
|
1130
|
+
"SrcIp": fields.Str(required=True, dump_to="SrcIp"),
|
|
1131
|
+
}
|
|
1132
|
+
|
|
1133
|
+
|
|
1134
|
+
class UpdateUEcFirewallRequestSchema(schema.RequestSchema):
|
|
1135
|
+
"""UpdateUEcFirewall - 更新防火墙信息,新增和删除规则"""
|
|
1136
|
+
|
|
1137
|
+
fields = {
|
|
1138
|
+
"FirewallId": fields.Str(required=True, dump_to="FirewallId"),
|
|
1139
|
+
"ProjectId": fields.Str(required=False, dump_to="ProjectId"),
|
|
1140
|
+
"Rule": fields.List(UpdateUEcFirewallParamRuleSchema()),
|
|
1141
|
+
}
|
|
1142
|
+
|
|
1143
|
+
|
|
1144
|
+
class UpdateUEcFirewallResponseSchema(schema.ResponseSchema):
|
|
1145
|
+
"""UpdateUEcFirewall - 更新防火墙信息,新增和删除规则"""
|
|
1146
|
+
|
|
1147
|
+
fields = {}
|
|
1148
|
+
|
|
1149
|
+
|
|
1150
|
+
"""
|
|
1151
|
+
API: UpdateUEcFirewallAttribute
|
|
1152
|
+
|
|
1153
|
+
更新防火墙名称及描述
|
|
1154
|
+
"""
|
|
1155
|
+
|
|
1156
|
+
|
|
1157
|
+
class UpdateUEcFirewallAttributeRequestSchema(schema.RequestSchema):
|
|
1158
|
+
"""UpdateUEcFirewallAttribute - 更新防火墙名称及描述"""
|
|
1159
|
+
|
|
1160
|
+
fields = {
|
|
1161
|
+
"FirewallId": fields.Str(required=True, dump_to="FirewallId"),
|
|
1162
|
+
"Name": fields.Str(required=False, dump_to="Name"),
|
|
1163
|
+
"ProjectId": fields.Str(required=False, dump_to="ProjectId"),
|
|
1164
|
+
"Remark": fields.Str(required=False, dump_to="Remark"),
|
|
1165
|
+
}
|
|
1166
|
+
|
|
1167
|
+
|
|
1168
|
+
class UpdateUEcFirewallAttributeResponseSchema(schema.ResponseSchema):
|
|
1169
|
+
"""UpdateUEcFirewallAttribute - 更新防火墙名称及描述"""
|
|
1170
|
+
|
|
1171
|
+
fields = {}
|
|
1172
|
+
|
|
1173
|
+
|
|
1174
|
+
"""
|
|
1175
|
+
API: UpdateUEcSubnet
|
|
1176
|
+
|
|
1177
|
+
更新子网信息
|
|
1178
|
+
"""
|
|
1179
|
+
|
|
1180
|
+
|
|
1181
|
+
class UpdateUEcSubnetRequestSchema(schema.RequestSchema):
|
|
1182
|
+
"""UpdateUEcSubnet - 更新子网信息"""
|
|
1183
|
+
|
|
1184
|
+
fields = {
|
|
1185
|
+
"Comment": fields.Str(required=False, dump_to="Comment"),
|
|
1186
|
+
"ProjectId": fields.Str(required=False, dump_to="ProjectId"),
|
|
1187
|
+
"SubnetId": fields.Str(required=True, dump_to="SubnetId"),
|
|
1188
|
+
"SubnetName": fields.Str(required=False, dump_to="SubnetName"),
|
|
1189
|
+
}
|
|
1190
|
+
|
|
1191
|
+
|
|
1192
|
+
class UpdateUEcSubnetResponseSchema(schema.ResponseSchema):
|
|
1193
|
+
"""UpdateUEcSubnet - 更新子网信息"""
|
|
1194
|
+
|
|
1195
|
+
fields = {}
|