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,455 @@
|
|
|
1
|
+
""" Code is generated by ucloud-model, DO NOT EDIT IT. """
|
|
2
|
+
|
|
3
|
+
from ucloud.core.typesystem import schema, fields
|
|
4
|
+
from ucloud.services.ipsecvpn.schemas import models
|
|
5
|
+
|
|
6
|
+
""" IPSecVPN API Schema
|
|
7
|
+
"""
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
"""
|
|
11
|
+
API: CreateRemoteVPNGateway
|
|
12
|
+
|
|
13
|
+
创建客户VPN网关
|
|
14
|
+
"""
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
class CreateRemoteVPNGatewayRequestSchema(schema.RequestSchema):
|
|
18
|
+
"""CreateRemoteVPNGateway - 创建客户VPN网关"""
|
|
19
|
+
|
|
20
|
+
fields = {
|
|
21
|
+
"ProjectId": fields.Str(required=True, dump_to="ProjectId"),
|
|
22
|
+
"Region": fields.Str(required=True, dump_to="Region"),
|
|
23
|
+
"Remark": fields.Str(required=False, dump_to="Remark"),
|
|
24
|
+
"RemoteVPNGatewayAddr": fields.Str(
|
|
25
|
+
required=True, dump_to="RemoteVPNGatewayAddr"
|
|
26
|
+
),
|
|
27
|
+
"RemoteVPNGatewayName": fields.Str(
|
|
28
|
+
required=True, dump_to="RemoteVPNGatewayName"
|
|
29
|
+
),
|
|
30
|
+
"Tag": fields.Str(required=False, dump_to="Tag"),
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
|
|
34
|
+
class CreateRemoteVPNGatewayResponseSchema(schema.ResponseSchema):
|
|
35
|
+
"""CreateRemoteVPNGateway - 创建客户VPN网关"""
|
|
36
|
+
|
|
37
|
+
fields = {
|
|
38
|
+
"RemoteVPNGatewayId": fields.Str(
|
|
39
|
+
required=False, load_from="RemoteVPNGatewayId"
|
|
40
|
+
),
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
|
|
44
|
+
"""
|
|
45
|
+
API: CreateVPNGateway
|
|
46
|
+
|
|
47
|
+
创建VPN网关
|
|
48
|
+
"""
|
|
49
|
+
|
|
50
|
+
|
|
51
|
+
class CreateVPNGatewayRequestSchema(schema.RequestSchema):
|
|
52
|
+
"""CreateVPNGateway - 创建VPN网关"""
|
|
53
|
+
|
|
54
|
+
fields = {
|
|
55
|
+
"BusinessId": fields.Str(required=False, dump_to="BusinessId"),
|
|
56
|
+
"ChargeType": fields.Str(required=False, dump_to="ChargeType"),
|
|
57
|
+
"CouponId": fields.Str(required=False, dump_to="CouponId"),
|
|
58
|
+
"EIPId": fields.Str(required=False, dump_to="EIPId"),
|
|
59
|
+
"Grade": fields.Str(required=True, dump_to="Grade"),
|
|
60
|
+
"ProjectId": fields.Str(required=True, dump_to="ProjectId"),
|
|
61
|
+
"Quantity": fields.Int(required=False, dump_to="Quantity"),
|
|
62
|
+
"Region": fields.Str(required=True, dump_to="Region"),
|
|
63
|
+
"Remark": fields.Str(required=False, dump_to="Remark"),
|
|
64
|
+
"Tag": fields.Str(required=False, dump_to="Tag"),
|
|
65
|
+
"VPCId": fields.Str(required=True, dump_to="VPCId"),
|
|
66
|
+
"VPNGatewayName": fields.Str(required=True, dump_to="VPNGatewayName"),
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
|
|
70
|
+
class CreateVPNGatewayResponseSchema(schema.ResponseSchema):
|
|
71
|
+
"""CreateVPNGateway - 创建VPN网关"""
|
|
72
|
+
|
|
73
|
+
fields = {
|
|
74
|
+
"VPNGatewayId": fields.Str(required=False, load_from="VPNGatewayId"),
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
|
|
78
|
+
"""
|
|
79
|
+
API: CreateVPNTunnel
|
|
80
|
+
|
|
81
|
+
创建VPN隧道
|
|
82
|
+
"""
|
|
83
|
+
|
|
84
|
+
|
|
85
|
+
class CreateVPNTunnelRequestSchema(schema.RequestSchema):
|
|
86
|
+
"""CreateVPNTunnel - 创建VPN隧道"""
|
|
87
|
+
|
|
88
|
+
fields = {
|
|
89
|
+
"IKEAuthenticationAlgorithm": fields.Str(
|
|
90
|
+
required=False, dump_to="IKEAuthenticationAlgorithm"
|
|
91
|
+
),
|
|
92
|
+
"IKEDhGroup": fields.Str(required=False, dump_to="IKEDhGroup"),
|
|
93
|
+
"IKEEncryptionAlgorithm": fields.Str(
|
|
94
|
+
required=False, dump_to="IKEEncryptionAlgorithm"
|
|
95
|
+
),
|
|
96
|
+
"IKEExchangeMode": fields.Str(
|
|
97
|
+
required=False, dump_to="IKEExchangeMode"
|
|
98
|
+
),
|
|
99
|
+
"IKELocalId": fields.Str(required=False, dump_to="IKELocalId"),
|
|
100
|
+
"IKEPreSharedKey": fields.Str(required=True, dump_to="IKEPreSharedKey"),
|
|
101
|
+
"IKERemoteId": fields.Str(required=False, dump_to="IKERemoteId"),
|
|
102
|
+
"IKESALifetime": fields.Str(required=False, dump_to="IKESALifetime"),
|
|
103
|
+
"IKEVersion": fields.Str(required=True, dump_to="IKEVersion"),
|
|
104
|
+
"IPSecAuthenticationAlgorithm": fields.Str(
|
|
105
|
+
required=False, dump_to="IPSecAuthenticationAlgorithm"
|
|
106
|
+
),
|
|
107
|
+
"IPSecCloseAction": fields.Str(
|
|
108
|
+
required=False, dump_to="IPSecCloseAction"
|
|
109
|
+
),
|
|
110
|
+
"IPSecEncryptionAlgorithm": fields.Str(
|
|
111
|
+
required=False, dump_to="IPSecEncryptionAlgorithm"
|
|
112
|
+
),
|
|
113
|
+
"IPSecLocalSubnetIds": fields.List(fields.Str()),
|
|
114
|
+
"IPSecPFSDhGroup": fields.Str(
|
|
115
|
+
required=False, dump_to="IPSecPFSDhGroup"
|
|
116
|
+
),
|
|
117
|
+
"IPSecProtocol": fields.Str(required=False, dump_to="IPSecProtocol"),
|
|
118
|
+
"IPSecRemoteSubnets": fields.List(fields.Str()),
|
|
119
|
+
"IPSecSALifetime": fields.Str(
|
|
120
|
+
required=False, dump_to="IPSecSALifetime"
|
|
121
|
+
),
|
|
122
|
+
"IPSecSALifetimeBytes": fields.Str(
|
|
123
|
+
required=False, dump_to="IPSecSALifetimeBytes"
|
|
124
|
+
),
|
|
125
|
+
"ProjectId": fields.Str(required=True, dump_to="ProjectId"),
|
|
126
|
+
"Region": fields.Str(required=True, dump_to="Region"),
|
|
127
|
+
"Remark": fields.Str(required=False, dump_to="Remark"),
|
|
128
|
+
"RemoteVPNGatewayId": fields.Str(
|
|
129
|
+
required=True, dump_to="RemoteVPNGatewayId"
|
|
130
|
+
),
|
|
131
|
+
"Tag": fields.Str(required=False, dump_to="Tag"),
|
|
132
|
+
"VPCId": fields.Str(required=True, dump_to="VPCId"),
|
|
133
|
+
"VPNGatewayId": fields.Str(required=True, dump_to="VPNGatewayId"),
|
|
134
|
+
"VPNTunnelName": fields.Str(required=True, dump_to="VPNTunnelName"),
|
|
135
|
+
}
|
|
136
|
+
|
|
137
|
+
|
|
138
|
+
class CreateVPNTunnelResponseSchema(schema.ResponseSchema):
|
|
139
|
+
"""CreateVPNTunnel - 创建VPN隧道"""
|
|
140
|
+
|
|
141
|
+
fields = {
|
|
142
|
+
"VPNTunnelId": fields.Str(required=False, load_from="VPNTunnelId"),
|
|
143
|
+
}
|
|
144
|
+
|
|
145
|
+
|
|
146
|
+
"""
|
|
147
|
+
API: DeleteRemoteVPNGateway
|
|
148
|
+
|
|
149
|
+
删除客户VPN网关
|
|
150
|
+
"""
|
|
151
|
+
|
|
152
|
+
|
|
153
|
+
class DeleteRemoteVPNGatewayRequestSchema(schema.RequestSchema):
|
|
154
|
+
"""DeleteRemoteVPNGateway - 删除客户VPN网关"""
|
|
155
|
+
|
|
156
|
+
fields = {
|
|
157
|
+
"ProjectId": fields.Str(required=True, dump_to="ProjectId"),
|
|
158
|
+
"Region": fields.Str(required=True, dump_to="Region"),
|
|
159
|
+
"RemoteVPNGatewayId": fields.Str(
|
|
160
|
+
required=True, dump_to="RemoteVPNGatewayId"
|
|
161
|
+
),
|
|
162
|
+
}
|
|
163
|
+
|
|
164
|
+
|
|
165
|
+
class DeleteRemoteVPNGatewayResponseSchema(schema.ResponseSchema):
|
|
166
|
+
"""DeleteRemoteVPNGateway - 删除客户VPN网关"""
|
|
167
|
+
|
|
168
|
+
fields = {}
|
|
169
|
+
|
|
170
|
+
|
|
171
|
+
"""
|
|
172
|
+
API: DeleteVPNGateway
|
|
173
|
+
|
|
174
|
+
删除VPN网关
|
|
175
|
+
"""
|
|
176
|
+
|
|
177
|
+
|
|
178
|
+
class DeleteVPNGatewayRequestSchema(schema.RequestSchema):
|
|
179
|
+
"""DeleteVPNGateway - 删除VPN网关"""
|
|
180
|
+
|
|
181
|
+
fields = {
|
|
182
|
+
"ProjectId": fields.Str(required=True, dump_to="ProjectId"),
|
|
183
|
+
"Region": fields.Str(required=True, dump_to="Region"),
|
|
184
|
+
"ReleaseEip": fields.Bool(required=False, dump_to="ReleaseEip"),
|
|
185
|
+
"VPNGatewayId": fields.Str(required=True, dump_to="VPNGatewayId"),
|
|
186
|
+
}
|
|
187
|
+
|
|
188
|
+
|
|
189
|
+
class DeleteVPNGatewayResponseSchema(schema.ResponseSchema):
|
|
190
|
+
"""DeleteVPNGateway - 删除VPN网关"""
|
|
191
|
+
|
|
192
|
+
fields = {}
|
|
193
|
+
|
|
194
|
+
|
|
195
|
+
"""
|
|
196
|
+
API: DeleteVPNTunnel
|
|
197
|
+
|
|
198
|
+
删除VPN隧道
|
|
199
|
+
"""
|
|
200
|
+
|
|
201
|
+
|
|
202
|
+
class DeleteVPNTunnelRequestSchema(schema.RequestSchema):
|
|
203
|
+
"""DeleteVPNTunnel - 删除VPN隧道"""
|
|
204
|
+
|
|
205
|
+
fields = {
|
|
206
|
+
"ProjectId": fields.Str(required=True, dump_to="ProjectId"),
|
|
207
|
+
"Region": fields.Str(required=True, dump_to="Region"),
|
|
208
|
+
"VPNTunnelId": fields.Str(required=True, dump_to="VPNTunnelId"),
|
|
209
|
+
}
|
|
210
|
+
|
|
211
|
+
|
|
212
|
+
class DeleteVPNTunnelResponseSchema(schema.ResponseSchema):
|
|
213
|
+
"""DeleteVPNTunnel - 删除VPN隧道"""
|
|
214
|
+
|
|
215
|
+
fields = {}
|
|
216
|
+
|
|
217
|
+
|
|
218
|
+
"""
|
|
219
|
+
API: DescribeRemoteVPNGateway
|
|
220
|
+
|
|
221
|
+
获取客户VPN网关信息
|
|
222
|
+
"""
|
|
223
|
+
|
|
224
|
+
|
|
225
|
+
class DescribeRemoteVPNGatewayRequestSchema(schema.RequestSchema):
|
|
226
|
+
"""DescribeRemoteVPNGateway - 获取客户VPN网关信息"""
|
|
227
|
+
|
|
228
|
+
fields = {
|
|
229
|
+
"Limit": fields.Int(required=False, dump_to="Limit"),
|
|
230
|
+
"Offset": fields.Int(required=False, dump_to="Offset"),
|
|
231
|
+
"ProjectId": fields.Str(required=True, dump_to="ProjectId"),
|
|
232
|
+
"Region": fields.Str(required=True, dump_to="Region"),
|
|
233
|
+
"RemoteVPNGatewayIds": fields.List(fields.Str()),
|
|
234
|
+
"Tag": fields.Str(required=False, dump_to="Tag"),
|
|
235
|
+
}
|
|
236
|
+
|
|
237
|
+
|
|
238
|
+
class DescribeRemoteVPNGatewayResponseSchema(schema.ResponseSchema):
|
|
239
|
+
"""DescribeRemoteVPNGateway - 获取客户VPN网关信息"""
|
|
240
|
+
|
|
241
|
+
fields = {
|
|
242
|
+
"DataSet": fields.List(
|
|
243
|
+
models.RemoteVPNGatewayDataSetSchema(),
|
|
244
|
+
required=False,
|
|
245
|
+
load_from="DataSet",
|
|
246
|
+
),
|
|
247
|
+
"TotalCount": fields.Int(required=False, load_from="TotalCount"),
|
|
248
|
+
}
|
|
249
|
+
|
|
250
|
+
|
|
251
|
+
"""
|
|
252
|
+
API: DescribeVPNGateway
|
|
253
|
+
|
|
254
|
+
获取VPN网关信息
|
|
255
|
+
"""
|
|
256
|
+
|
|
257
|
+
|
|
258
|
+
class DescribeVPNGatewayRequestSchema(schema.RequestSchema):
|
|
259
|
+
"""DescribeVPNGateway - 获取VPN网关信息"""
|
|
260
|
+
|
|
261
|
+
fields = {
|
|
262
|
+
"Limit": fields.Int(required=False, dump_to="Limit"),
|
|
263
|
+
"Offset": fields.Int(required=False, dump_to="Offset"),
|
|
264
|
+
"ProjectId": fields.Str(required=True, dump_to="ProjectId"),
|
|
265
|
+
"Region": fields.Str(required=True, dump_to="Region"),
|
|
266
|
+
"Tag": fields.Str(required=False, dump_to="Tag"),
|
|
267
|
+
"VPCId": fields.Str(required=False, dump_to="VPCId"),
|
|
268
|
+
"VPNGatewayIds": fields.List(fields.Str()),
|
|
269
|
+
}
|
|
270
|
+
|
|
271
|
+
|
|
272
|
+
class DescribeVPNGatewayResponseSchema(schema.ResponseSchema):
|
|
273
|
+
"""DescribeVPNGateway - 获取VPN网关信息"""
|
|
274
|
+
|
|
275
|
+
fields = {
|
|
276
|
+
"DataSet": fields.List(
|
|
277
|
+
models.VPNGatewayDataSetSchema(),
|
|
278
|
+
required=False,
|
|
279
|
+
load_from="DataSet",
|
|
280
|
+
),
|
|
281
|
+
"TotalCount": fields.Int(required=False, load_from="TotalCount"),
|
|
282
|
+
}
|
|
283
|
+
|
|
284
|
+
|
|
285
|
+
"""
|
|
286
|
+
API: DescribeVPNTunnel
|
|
287
|
+
|
|
288
|
+
获取VPN隧道信息
|
|
289
|
+
"""
|
|
290
|
+
|
|
291
|
+
|
|
292
|
+
class DescribeVPNTunnelRequestSchema(schema.RequestSchema):
|
|
293
|
+
"""DescribeVPNTunnel - 获取VPN隧道信息"""
|
|
294
|
+
|
|
295
|
+
fields = {
|
|
296
|
+
"Limit": fields.Int(required=False, dump_to="Limit"),
|
|
297
|
+
"Offset": fields.Int(required=False, dump_to="Offset"),
|
|
298
|
+
"ProjectId": fields.Str(required=True, dump_to="ProjectId"),
|
|
299
|
+
"Region": fields.Str(required=True, dump_to="Region"),
|
|
300
|
+
"Tag": fields.Str(required=False, dump_to="Tag"),
|
|
301
|
+
"VPNTunnelIds": fields.List(fields.Str()),
|
|
302
|
+
}
|
|
303
|
+
|
|
304
|
+
|
|
305
|
+
class DescribeVPNTunnelResponseSchema(schema.ResponseSchema):
|
|
306
|
+
"""DescribeVPNTunnel - 获取VPN隧道信息"""
|
|
307
|
+
|
|
308
|
+
fields = {
|
|
309
|
+
"DataSet": fields.List(
|
|
310
|
+
models.VPNTunnelDataSetSchema(), required=False, load_from="DataSet"
|
|
311
|
+
),
|
|
312
|
+
"TotalCount": fields.Int(required=False, load_from="TotalCount"),
|
|
313
|
+
}
|
|
314
|
+
|
|
315
|
+
|
|
316
|
+
"""
|
|
317
|
+
API: GetVPNGatewayPrice
|
|
318
|
+
|
|
319
|
+
获取VPN价格
|
|
320
|
+
"""
|
|
321
|
+
|
|
322
|
+
|
|
323
|
+
class GetVPNGatewayPriceRequestSchema(schema.RequestSchema):
|
|
324
|
+
"""GetVPNGatewayPrice - 获取VPN价格"""
|
|
325
|
+
|
|
326
|
+
fields = {
|
|
327
|
+
"ChargeType": fields.Str(required=False, dump_to="ChargeType"),
|
|
328
|
+
"Grade": fields.Str(required=True, dump_to="Grade"),
|
|
329
|
+
"ProjectId": fields.Str(required=True, dump_to="ProjectId"),
|
|
330
|
+
"Quantity": fields.Int(required=False, dump_to="Quantity"),
|
|
331
|
+
"Region": fields.Str(required=True, dump_to="Region"),
|
|
332
|
+
}
|
|
333
|
+
|
|
334
|
+
|
|
335
|
+
class GetVPNGatewayPriceResponseSchema(schema.ResponseSchema):
|
|
336
|
+
"""GetVPNGatewayPrice - 获取VPN价格"""
|
|
337
|
+
|
|
338
|
+
fields = {
|
|
339
|
+
"PriceSet": fields.List(
|
|
340
|
+
models.VPNGatewayPriceSetSchema(),
|
|
341
|
+
required=False,
|
|
342
|
+
load_from="PriceSet",
|
|
343
|
+
),
|
|
344
|
+
}
|
|
345
|
+
|
|
346
|
+
|
|
347
|
+
"""
|
|
348
|
+
API: GetVPNGatewayUpgradePrice
|
|
349
|
+
|
|
350
|
+
获取VPN网关规格改动价格
|
|
351
|
+
"""
|
|
352
|
+
|
|
353
|
+
|
|
354
|
+
class GetVPNGatewayUpgradePriceRequestSchema(schema.RequestSchema):
|
|
355
|
+
"""GetVPNGatewayUpgradePrice - 获取VPN网关规格改动价格"""
|
|
356
|
+
|
|
357
|
+
fields = {
|
|
358
|
+
"Grade": fields.Str(required=True, dump_to="Grade"),
|
|
359
|
+
"ProjectId": fields.Str(required=True, dump_to="ProjectId"),
|
|
360
|
+
"Region": fields.Str(required=True, dump_to="Region"),
|
|
361
|
+
"VPNGatewayId": fields.Str(required=True, dump_to="VPNGatewayId"),
|
|
362
|
+
}
|
|
363
|
+
|
|
364
|
+
|
|
365
|
+
class GetVPNGatewayUpgradePriceResponseSchema(schema.ResponseSchema):
|
|
366
|
+
"""GetVPNGatewayUpgradePrice - 获取VPN网关规格改动价格"""
|
|
367
|
+
|
|
368
|
+
fields = {
|
|
369
|
+
"Price": fields.Float(required=False, load_from="Price"),
|
|
370
|
+
}
|
|
371
|
+
|
|
372
|
+
|
|
373
|
+
"""
|
|
374
|
+
API: UpdateVPNGateway
|
|
375
|
+
|
|
376
|
+
更改VPN网关规格
|
|
377
|
+
"""
|
|
378
|
+
|
|
379
|
+
|
|
380
|
+
class UpdateVPNGatewayRequestSchema(schema.RequestSchema):
|
|
381
|
+
"""UpdateVPNGateway - 更改VPN网关规格"""
|
|
382
|
+
|
|
383
|
+
fields = {
|
|
384
|
+
"Grade": fields.Str(required=True, dump_to="Grade"),
|
|
385
|
+
"ProjectId": fields.Str(required=True, dump_to="ProjectId"),
|
|
386
|
+
"Region": fields.Str(required=True, dump_to="Region"),
|
|
387
|
+
"VPNGatewayId": fields.Str(required=True, dump_to="VPNGatewayId"),
|
|
388
|
+
}
|
|
389
|
+
|
|
390
|
+
|
|
391
|
+
class UpdateVPNGatewayResponseSchema(schema.ResponseSchema):
|
|
392
|
+
"""UpdateVPNGateway - 更改VPN网关规格"""
|
|
393
|
+
|
|
394
|
+
fields = {}
|
|
395
|
+
|
|
396
|
+
|
|
397
|
+
"""
|
|
398
|
+
API: UpdateVPNTunnelAttribute
|
|
399
|
+
|
|
400
|
+
更新VPN隧道属性
|
|
401
|
+
"""
|
|
402
|
+
|
|
403
|
+
|
|
404
|
+
class UpdateVPNTunnelAttributeRequestSchema(schema.RequestSchema):
|
|
405
|
+
"""UpdateVPNTunnelAttribute - 更新VPN隧道属性"""
|
|
406
|
+
|
|
407
|
+
fields = {
|
|
408
|
+
"IKEAuthenticationAlgorithm": fields.Str(
|
|
409
|
+
required=False, dump_to="IKEAuthenticationAlgorithm"
|
|
410
|
+
),
|
|
411
|
+
"IKEDhGroup": fields.Str(required=False, dump_to="IKEDhGroup"),
|
|
412
|
+
"IKEEncryptionAlgorithm": fields.Str(
|
|
413
|
+
required=False, dump_to="IKEEncryptionAlgorithm"
|
|
414
|
+
),
|
|
415
|
+
"IKEExchangeMode": fields.Str(
|
|
416
|
+
required=False, dump_to="IKEExchangeMode"
|
|
417
|
+
),
|
|
418
|
+
"IKELocalId": fields.Str(required=False, dump_to="IKELocalId"),
|
|
419
|
+
"IKEPreSharedKey": fields.Str(
|
|
420
|
+
required=False, dump_to="IKEPreSharedKey"
|
|
421
|
+
),
|
|
422
|
+
"IKERemoteId": fields.Str(required=False, dump_to="IKERemoteId"),
|
|
423
|
+
"IKESALifetime": fields.Str(required=False, dump_to="IKESALifetime"),
|
|
424
|
+
"IKEVersion": fields.Str(required=False, dump_to="IKEVersion"),
|
|
425
|
+
"IPSecAuthenticationAlgorithm": fields.Str(
|
|
426
|
+
required=False, dump_to="IPSecAuthenticationAlgorithm"
|
|
427
|
+
),
|
|
428
|
+
"IPSecCloseAction": fields.Str(
|
|
429
|
+
required=False, dump_to="IPSecCloseAction"
|
|
430
|
+
),
|
|
431
|
+
"IPSecEncryptionAlgorithm": fields.Str(
|
|
432
|
+
required=False, dump_to="IPSecEncryptionAlgorithm"
|
|
433
|
+
),
|
|
434
|
+
"IPSecLocalSubnetIds": fields.List(fields.Str()),
|
|
435
|
+
"IPSecPFSDhGroup": fields.Str(
|
|
436
|
+
required=False, dump_to="IPSecPFSDhGroup"
|
|
437
|
+
),
|
|
438
|
+
"IPSecProtocol": fields.Str(required=False, dump_to="IPSecProtocol"),
|
|
439
|
+
"IPSecRemoteSubnets": fields.List(fields.Str()),
|
|
440
|
+
"IPSecSALifetime": fields.Str(
|
|
441
|
+
required=False, dump_to="IPSecSALifetime"
|
|
442
|
+
),
|
|
443
|
+
"IPSecSALifetimeBytes": fields.Str(
|
|
444
|
+
required=False, dump_to="IPSecSALifetimeBytes"
|
|
445
|
+
),
|
|
446
|
+
"ProjectId": fields.Str(required=True, dump_to="ProjectId"),
|
|
447
|
+
"Region": fields.Str(required=True, dump_to="Region"),
|
|
448
|
+
"VPNTunnelId": fields.Str(required=True, dump_to="VPNTunnelId"),
|
|
449
|
+
}
|
|
450
|
+
|
|
451
|
+
|
|
452
|
+
class UpdateVPNTunnelAttributeResponseSchema(schema.ResponseSchema):
|
|
453
|
+
"""UpdateVPNTunnelAttribute - 更新VPN隧道属性"""
|
|
454
|
+
|
|
455
|
+
fields = {}
|
|
@@ -0,0 +1,134 @@
|
|
|
1
|
+
""" Code is generated by ucloud-model, DO NOT EDIT IT. """
|
|
2
|
+
|
|
3
|
+
from ucloud.core.typesystem import schema, fields
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
class RemoteVPNGatewayDataSetSchema(schema.ResponseSchema):
|
|
7
|
+
"""RemoteVPNGatewayDataSet - DescribeRemoteVPNGateway返回参数"""
|
|
8
|
+
|
|
9
|
+
fields = {
|
|
10
|
+
"ActiveTunnels": fields.Str(
|
|
11
|
+
required=False, load_from="ActiveTunnels"
|
|
12
|
+
), # Deprecated, will be removed at 1.0
|
|
13
|
+
"CreateTime": fields.Int(required=False, load_from="CreateTime"),
|
|
14
|
+
"Remark": fields.Str(required=False, load_from="Remark"),
|
|
15
|
+
"RemoteVPNGatewayAddr": fields.Str(
|
|
16
|
+
required=False, load_from="RemoteVPNGatewayAddr"
|
|
17
|
+
),
|
|
18
|
+
"RemoteVPNGatewayId": fields.Str(
|
|
19
|
+
required=False, load_from="RemoteVPNGatewayId"
|
|
20
|
+
),
|
|
21
|
+
"RemoteVPNGatewayName": fields.Str(
|
|
22
|
+
required=False, load_from="RemoteVPNGatewayName"
|
|
23
|
+
),
|
|
24
|
+
"Tag": fields.Str(required=False, load_from="Tag"),
|
|
25
|
+
"TunnelCount": fields.Int(required=False, load_from="TunnelCount"),
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
|
|
29
|
+
class VPNGatewayDataSetSchema(schema.ResponseSchema):
|
|
30
|
+
"""VPNGatewayDataSet - DescribeVPNGateway返回参数"""
|
|
31
|
+
|
|
32
|
+
fields = {
|
|
33
|
+
"AutoRenew": fields.Str(required=False, load_from="AutoRenew"),
|
|
34
|
+
"ChargeType": fields.Str(required=False, load_from="ChargeType"),
|
|
35
|
+
"CreateTime": fields.Int(required=False, load_from="CreateTime"),
|
|
36
|
+
"EIP": fields.Str(required=False, load_from="EIP"),
|
|
37
|
+
"EIPId": fields.Str(required=False, load_from="EIPId"),
|
|
38
|
+
"EIPType": fields.Str(required=False, load_from="EIPType"),
|
|
39
|
+
"ExpireTime": fields.Int(required=False, load_from="ExpireTime"),
|
|
40
|
+
"Grade": fields.Str(required=False, load_from="Grade"),
|
|
41
|
+
"Remark": fields.Str(required=False, load_from="Remark"),
|
|
42
|
+
"Tag": fields.Str(required=False, load_from="Tag"),
|
|
43
|
+
"VPCId": fields.Str(required=False, load_from="VPCId"),
|
|
44
|
+
"VPCName": fields.Str(required=False, load_from="VPCName"),
|
|
45
|
+
"VPNGatewayId": fields.Str(required=False, load_from="VPNGatewayId"),
|
|
46
|
+
"VPNGatewayName": fields.Str(
|
|
47
|
+
required=False, load_from="VPNGatewayName"
|
|
48
|
+
),
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
|
|
52
|
+
class IKEDataSchema(schema.ResponseSchema):
|
|
53
|
+
"""IKEData - IKE信息"""
|
|
54
|
+
|
|
55
|
+
fields = {
|
|
56
|
+
"IKEAuthenticationAlgorithm": fields.Str(
|
|
57
|
+
required=False, load_from="IKEAuthenticationAlgorithm"
|
|
58
|
+
),
|
|
59
|
+
"IKEDhGroup": fields.Str(required=False, load_from="IKEDhGroup"),
|
|
60
|
+
"IKEEncryptionAlgorithm": fields.Str(
|
|
61
|
+
required=False, load_from="IKEEncryptionAlgorithm"
|
|
62
|
+
),
|
|
63
|
+
"IKEExchangeMode": fields.Str(
|
|
64
|
+
required=False, load_from="IKEExchangeMode"
|
|
65
|
+
),
|
|
66
|
+
"IKELocalId": fields.Str(required=False, load_from="IKELocalId"),
|
|
67
|
+
"IKEPreSharedKey": fields.Str(
|
|
68
|
+
required=False, load_from="IKEPreSharedKey"
|
|
69
|
+
),
|
|
70
|
+
"IKERemoteId": fields.Str(required=False, load_from="IKERemoteId"),
|
|
71
|
+
"IKESALifetime": fields.Str(required=False, load_from="IKESALifetime"),
|
|
72
|
+
"IKEVersion": fields.Str(required=False, load_from="IKEVersion"),
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
|
|
76
|
+
class IPSecDataSchema(schema.ResponseSchema):
|
|
77
|
+
"""IPSecData - IPSec参数"""
|
|
78
|
+
|
|
79
|
+
fields = {
|
|
80
|
+
"IPSecAuthenticationAlgorithm": fields.Str(
|
|
81
|
+
required=False, load_from="IPSecAuthenticationAlgorithm"
|
|
82
|
+
),
|
|
83
|
+
"IPSecEncryptionAlgorithm": fields.Str(
|
|
84
|
+
required=False, load_from="IPSecEncryptionAlgorithm"
|
|
85
|
+
),
|
|
86
|
+
"IPSecLocalSubnetIds": fields.List(fields.Str()),
|
|
87
|
+
"IPSecPFSDhGroup": fields.Str(
|
|
88
|
+
required=False, load_from="IPSecPFSDhGroup"
|
|
89
|
+
),
|
|
90
|
+
"IPSecProtocol": fields.Str(required=False, load_from="IPSecProtocol"),
|
|
91
|
+
"IPSecRemoteSubnets": fields.List(fields.Str()),
|
|
92
|
+
"IPSecSALifetime": fields.Str(
|
|
93
|
+
required=False, load_from="IPSecSALifetime"
|
|
94
|
+
),
|
|
95
|
+
"IPSecSALifetimeBytes": fields.Str(
|
|
96
|
+
required=False, load_from="IPSecSALifetimeBytes"
|
|
97
|
+
),
|
|
98
|
+
}
|
|
99
|
+
|
|
100
|
+
|
|
101
|
+
class VPNTunnelDataSetSchema(schema.ResponseSchema):
|
|
102
|
+
"""VPNTunnelDataSet - DescribeVPNTunnel信息"""
|
|
103
|
+
|
|
104
|
+
fields = {
|
|
105
|
+
"CreateTime": fields.Int(required=False, load_from="CreateTime"),
|
|
106
|
+
"IKEData": IKEDataSchema(),
|
|
107
|
+
"IPSecData": IPSecDataSchema(),
|
|
108
|
+
"Remark": fields.Str(required=False, load_from="Remark"),
|
|
109
|
+
"RemoteVPNGatewayId": fields.Str(
|
|
110
|
+
required=False, load_from="RemoteVPNGatewayId"
|
|
111
|
+
),
|
|
112
|
+
"RemoteVPNGatewayName": fields.Str(
|
|
113
|
+
required=False, load_from="RemoteVPNGatewayName"
|
|
114
|
+
),
|
|
115
|
+
"Tag": fields.Str(required=False, load_from="Tag"),
|
|
116
|
+
"VPCId": fields.Str(required=False, load_from="VPCId"),
|
|
117
|
+
"VPCName": fields.Str(required=False, load_from="VPCName"),
|
|
118
|
+
"VPNGatewayId": fields.Str(required=False, load_from="VPNGatewayId"),
|
|
119
|
+
"VPNGatewayName": fields.Str(
|
|
120
|
+
required=False, load_from="VPNGatewayName"
|
|
121
|
+
),
|
|
122
|
+
"VPNTunnelId": fields.Str(required=False, load_from="VPNTunnelId"),
|
|
123
|
+
"VPNTunnelName": fields.Str(required=False, load_from="VPNTunnelName"),
|
|
124
|
+
}
|
|
125
|
+
|
|
126
|
+
|
|
127
|
+
class VPNGatewayPriceSetSchema(schema.ResponseSchema):
|
|
128
|
+
"""VPNGatewayPriceSet - VPN网关的价格信息"""
|
|
129
|
+
|
|
130
|
+
fields = {
|
|
131
|
+
"ChargeType": fields.Str(required=False, load_from="ChargeType"),
|
|
132
|
+
"Price": fields.Float(required=False, load_from="Price"),
|
|
133
|
+
"PurchaseValue": fields.Int(required=False, load_from="PurchaseValue"),
|
|
134
|
+
}
|
|
File without changes
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
""" Code is generated by ucloud-model, DO NOT EDIT IT. """
|
|
2
|
+
|
|
3
|
+
import typing
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
from ucloud.core.client import Client
|
|
7
|
+
from ucloud.services.ipv6gw.schemas import apis
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
class ipv6gwClient(Client):
|
|
11
|
+
def __init__(
|
|
12
|
+
self, config: dict, transport=None, middleware=None, logger=None
|
|
13
|
+
):
|
|
14
|
+
super(ipv6gwClient, self).__init__(
|
|
15
|
+
config, transport, middleware, logger
|
|
16
|
+
)
|
|
17
|
+
|
|
18
|
+
def modify_ipv_6internet_bandwidth(
|
|
19
|
+
self, req: typing.Optional[dict] = None, **kwargs
|
|
20
|
+
) -> dict:
|
|
21
|
+
"""ModifyIpv6InternetBandwidth - 修改ipv6公网带宽值
|
|
22
|
+
|
|
23
|
+
**Request**
|
|
24
|
+
|
|
25
|
+
- **ProjectId** (str) - (Config) 项目ID。不填写为默认项目,子帐号必须填写。 请参考 `GetProjectList接口 <https://docs.ucloud.cn/api/summary/get_project_list>`_
|
|
26
|
+
- **Region** (str) - (Config) 地域。 参见 `地域和可用区列表 <https://docs.ucloud.cn/api/summary/regionlist>`_
|
|
27
|
+
- **Bandwidth** (int) - 要修改为的出向带宽峰值。带宽值范围[1, 2000]
|
|
28
|
+
- **InternetBandwidthId** (str) - ipv6公网带宽Id;与Ipv6AddressId二选一必填
|
|
29
|
+
- **Ipv6AddressId** (str) - Ipv6地址 id;与InternetBandwidthId二选一必填
|
|
30
|
+
|
|
31
|
+
**Response**
|
|
32
|
+
|
|
33
|
+
|
|
34
|
+
"""
|
|
35
|
+
# build request
|
|
36
|
+
d = {
|
|
37
|
+
"ProjectId": self.config.project_id,
|
|
38
|
+
"Region": self.config.region,
|
|
39
|
+
}
|
|
40
|
+
req and d.update(req)
|
|
41
|
+
d = apis.ModifyIpv6InternetBandwidthRequestSchema().dumps(d)
|
|
42
|
+
|
|
43
|
+
resp = self.invoke("ModifyIpv6InternetBandwidth", d, **kwargs)
|
|
44
|
+
return apis.ModifyIpv6InternetBandwidthResponseSchema().loads(resp)
|
|
File without changes
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
""" Code is generated by ucloud-model, DO NOT EDIT IT. """
|
|
2
|
+
|
|
3
|
+
from ucloud.core.typesystem import schema, fields
|
|
4
|
+
from ucloud.services.ipv6gw.schemas import models
|
|
5
|
+
|
|
6
|
+
""" ipv6gw API Schema
|
|
7
|
+
"""
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
"""
|
|
11
|
+
API: ModifyIpv6InternetBandwidth
|
|
12
|
+
|
|
13
|
+
修改ipv6公网带宽值
|
|
14
|
+
"""
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
class ModifyIpv6InternetBandwidthRequestSchema(schema.RequestSchema):
|
|
18
|
+
"""ModifyIpv6InternetBandwidth - 修改ipv6公网带宽值"""
|
|
19
|
+
|
|
20
|
+
fields = {
|
|
21
|
+
"Bandwidth": fields.Int(required=False, dump_to="Bandwidth"),
|
|
22
|
+
"InternetBandwidthId": fields.Str(
|
|
23
|
+
required=False, dump_to="InternetBandwidthId"
|
|
24
|
+
),
|
|
25
|
+
"Ipv6AddressId": fields.Str(required=False, dump_to="Ipv6AddressId"),
|
|
26
|
+
"ProjectId": fields.Str(required=True, dump_to="ProjectId"),
|
|
27
|
+
"Region": fields.Str(required=True, dump_to="Region"),
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
|
|
31
|
+
class ModifyIpv6InternetBandwidthResponseSchema(schema.ResponseSchema):
|
|
32
|
+
"""ModifyIpv6InternetBandwidth - 修改ipv6公网带宽值"""
|
|
33
|
+
|
|
34
|
+
fields = {}
|
|
File without changes
|