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,293 @@
|
|
|
1
|
+
""" Code is generated by ucloud-model, DO NOT EDIT IT. """
|
|
2
|
+
|
|
3
|
+
from ucloud.core.typesystem import schema, fields
|
|
4
|
+
from ucloud.services.udns.schemas import models
|
|
5
|
+
|
|
6
|
+
""" UDNS API Schema
|
|
7
|
+
"""
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
"""
|
|
11
|
+
API: AssociateUDNSZoneVPC
|
|
12
|
+
|
|
13
|
+
绑定域名与VPC
|
|
14
|
+
"""
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
class AssociateUDNSZoneVPCRequestSchema(schema.RequestSchema):
|
|
18
|
+
"""AssociateUDNSZoneVPC - 绑定域名与VPC"""
|
|
19
|
+
|
|
20
|
+
fields = {
|
|
21
|
+
"DNSZoneId": fields.Str(required=True, dump_to="DNSZoneId"),
|
|
22
|
+
"ProjectId": fields.Str(required=False, dump_to="ProjectId"),
|
|
23
|
+
"Region": fields.Str(required=True, dump_to="Region"),
|
|
24
|
+
"VPCId": fields.Str(required=True, dump_to="VPCId"),
|
|
25
|
+
"VPCProjectId": fields.Str(required=True, dump_to="VPCProjectId"),
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
|
|
29
|
+
class AssociateUDNSZoneVPCResponseSchema(schema.ResponseSchema):
|
|
30
|
+
"""AssociateUDNSZoneVPC - 绑定域名与VPC"""
|
|
31
|
+
|
|
32
|
+
fields = {}
|
|
33
|
+
|
|
34
|
+
|
|
35
|
+
"""
|
|
36
|
+
API: CreateUDNSRecord
|
|
37
|
+
|
|
38
|
+
创建域名记录
|
|
39
|
+
"""
|
|
40
|
+
|
|
41
|
+
|
|
42
|
+
class CreateUDNSRecordRequestSchema(schema.RequestSchema):
|
|
43
|
+
"""CreateUDNSRecord - 创建域名记录"""
|
|
44
|
+
|
|
45
|
+
fields = {
|
|
46
|
+
"DNSZoneId": fields.Str(required=True, dump_to="DNSZoneId"),
|
|
47
|
+
"Name": fields.Str(required=True, dump_to="Name"),
|
|
48
|
+
"ProjectId": fields.Str(required=False, dump_to="ProjectId"),
|
|
49
|
+
"Region": fields.Str(required=True, dump_to="Region"),
|
|
50
|
+
"Remark": fields.Str(required=False, dump_to="Remark"),
|
|
51
|
+
"TTL": fields.Int(required=False, dump_to="TTL"),
|
|
52
|
+
"Type": fields.Str(required=True, dump_to="Type"),
|
|
53
|
+
"Value": fields.Str(required=True, dump_to="Value"),
|
|
54
|
+
"ValueType": fields.Str(required=True, dump_to="ValueType"),
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
|
|
58
|
+
class CreateUDNSRecordResponseSchema(schema.ResponseSchema):
|
|
59
|
+
"""CreateUDNSRecord - 创建域名记录"""
|
|
60
|
+
|
|
61
|
+
fields = {
|
|
62
|
+
"DNSRecordId": fields.Str(required=True, load_from="DNSRecordId"),
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
|
|
66
|
+
"""
|
|
67
|
+
API: CreateUDNSZone
|
|
68
|
+
|
|
69
|
+
创建域名
|
|
70
|
+
"""
|
|
71
|
+
|
|
72
|
+
|
|
73
|
+
class CreateUDNSZoneRequestSchema(schema.RequestSchema):
|
|
74
|
+
"""CreateUDNSZone - 创建域名"""
|
|
75
|
+
|
|
76
|
+
fields = {
|
|
77
|
+
"ChargeType": fields.Str(required=False, dump_to="ChargeType"),
|
|
78
|
+
"CouponId": fields.Str(required=False, dump_to="CouponId"),
|
|
79
|
+
"DNSZoneName": fields.Str(required=True, dump_to="DNSZoneName"),
|
|
80
|
+
"IsRecursionEnabled": fields.Str(
|
|
81
|
+
required=False, dump_to="IsRecursionEnabled"
|
|
82
|
+
),
|
|
83
|
+
"ProjectId": fields.Str(required=False, dump_to="ProjectId"),
|
|
84
|
+
"Quantity": fields.Int(required=False, dump_to="Quantity"),
|
|
85
|
+
"Region": fields.Str(required=True, dump_to="Region"),
|
|
86
|
+
"Remark": fields.Str(required=False, dump_to="Remark"),
|
|
87
|
+
"Tag": fields.Str(required=False, dump_to="Tag"),
|
|
88
|
+
"Type": fields.Str(required=True, dump_to="Type"),
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
|
|
92
|
+
class CreateUDNSZoneResponseSchema(schema.ResponseSchema):
|
|
93
|
+
"""CreateUDNSZone - 创建域名"""
|
|
94
|
+
|
|
95
|
+
fields = {
|
|
96
|
+
"DNSZoneId": fields.Str(required=True, load_from="DNSZoneId"),
|
|
97
|
+
}
|
|
98
|
+
|
|
99
|
+
|
|
100
|
+
"""
|
|
101
|
+
API: DeleteUDNSRecord
|
|
102
|
+
|
|
103
|
+
删除域名记录
|
|
104
|
+
"""
|
|
105
|
+
|
|
106
|
+
|
|
107
|
+
class DeleteUDNSRecordRequestSchema(schema.RequestSchema):
|
|
108
|
+
"""DeleteUDNSRecord - 删除域名记录"""
|
|
109
|
+
|
|
110
|
+
fields = {
|
|
111
|
+
"DNSZoneId": fields.Str(required=True, dump_to="DNSZoneId"),
|
|
112
|
+
"ProjectId": fields.Str(required=False, dump_to="ProjectId"),
|
|
113
|
+
"RecordIds": fields.List(fields.Str()),
|
|
114
|
+
"Region": fields.Str(required=True, dump_to="Region"),
|
|
115
|
+
}
|
|
116
|
+
|
|
117
|
+
|
|
118
|
+
class DeleteUDNSRecordResponseSchema(schema.ResponseSchema):
|
|
119
|
+
"""DeleteUDNSRecord - 删除域名记录"""
|
|
120
|
+
|
|
121
|
+
fields = {}
|
|
122
|
+
|
|
123
|
+
|
|
124
|
+
"""
|
|
125
|
+
API: DescribeUDNSDomain
|
|
126
|
+
|
|
127
|
+
zone下所有域名的rr记录
|
|
128
|
+
"""
|
|
129
|
+
|
|
130
|
+
|
|
131
|
+
class DescribeUDNSDomainRequestSchema(schema.RequestSchema):
|
|
132
|
+
"""DescribeUDNSDomain - zone下所有域名的rr记录"""
|
|
133
|
+
|
|
134
|
+
fields = {
|
|
135
|
+
"DNSZoneName": fields.Str(required=True, dump_to="DNSZoneName"),
|
|
136
|
+
"Limit": fields.Int(required=False, dump_to="Limit"),
|
|
137
|
+
"Offset": fields.Int(required=False, dump_to="Offset"),
|
|
138
|
+
"ProjectId": fields.Str(required=True, dump_to="ProjectId"),
|
|
139
|
+
"Region": fields.Str(required=True, dump_to="Region"),
|
|
140
|
+
"VPCId": fields.Str(required=True, dump_to="VPCId"),
|
|
141
|
+
}
|
|
142
|
+
|
|
143
|
+
|
|
144
|
+
class DescribeUDNSDomainResponseSchema(schema.ResponseSchema):
|
|
145
|
+
"""DescribeUDNSDomain - zone下所有域名的rr记录"""
|
|
146
|
+
|
|
147
|
+
fields = {
|
|
148
|
+
"RecordInfos": fields.List(
|
|
149
|
+
models.RecordInfoSchema(), required=True, load_from="RecordInfos"
|
|
150
|
+
),
|
|
151
|
+
"TotalCount": fields.Int(required=True, load_from="TotalCount"),
|
|
152
|
+
}
|
|
153
|
+
|
|
154
|
+
|
|
155
|
+
"""
|
|
156
|
+
API: DescribeUDNSRecord
|
|
157
|
+
|
|
158
|
+
获取域名记录
|
|
159
|
+
"""
|
|
160
|
+
|
|
161
|
+
|
|
162
|
+
class DescribeUDNSRecordRequestSchema(schema.RequestSchema):
|
|
163
|
+
"""DescribeUDNSRecord - 获取域名记录"""
|
|
164
|
+
|
|
165
|
+
fields = {
|
|
166
|
+
"DNSZoneId": fields.Str(required=True, dump_to="DNSZoneId"),
|
|
167
|
+
"Limit": fields.Int(required=False, dump_to="Limit"),
|
|
168
|
+
"Offset": fields.Int(required=False, dump_to="Offset"),
|
|
169
|
+
"ProjectId": fields.Str(required=False, dump_to="ProjectId"),
|
|
170
|
+
"RecordIds": fields.List(fields.Str()),
|
|
171
|
+
"Region": fields.Str(required=True, dump_to="Region"),
|
|
172
|
+
}
|
|
173
|
+
|
|
174
|
+
|
|
175
|
+
class DescribeUDNSRecordResponseSchema(schema.ResponseSchema):
|
|
176
|
+
"""DescribeUDNSRecord - 获取域名记录"""
|
|
177
|
+
|
|
178
|
+
fields = {
|
|
179
|
+
"RecordInfos": fields.List(
|
|
180
|
+
models.RecordInfoSchema(), required=False, load_from="RecordInfos"
|
|
181
|
+
),
|
|
182
|
+
"TotalCount": fields.Int(required=True, load_from="TotalCount"),
|
|
183
|
+
}
|
|
184
|
+
|
|
185
|
+
|
|
186
|
+
"""
|
|
187
|
+
API: DescribeUDNSZone
|
|
188
|
+
|
|
189
|
+
获取域名信息
|
|
190
|
+
"""
|
|
191
|
+
|
|
192
|
+
|
|
193
|
+
class DescribeUDNSZoneRequestSchema(schema.RequestSchema):
|
|
194
|
+
"""DescribeUDNSZone - 获取域名信息"""
|
|
195
|
+
|
|
196
|
+
fields = {
|
|
197
|
+
"DNSZoneIds": fields.List(fields.Str()),
|
|
198
|
+
"Limit": fields.Int(required=False, dump_to="Limit"),
|
|
199
|
+
"Offset": fields.Int(required=False, dump_to="Offset"),
|
|
200
|
+
"ProjectId": fields.Str(required=False, dump_to="ProjectId"),
|
|
201
|
+
"Region": fields.Str(required=True, dump_to="Region"),
|
|
202
|
+
}
|
|
203
|
+
|
|
204
|
+
|
|
205
|
+
class DescribeUDNSZoneResponseSchema(schema.ResponseSchema):
|
|
206
|
+
"""DescribeUDNSZone - 获取域名信息"""
|
|
207
|
+
|
|
208
|
+
fields = {
|
|
209
|
+
"DNSZoneInfos": fields.List(
|
|
210
|
+
models.ZoneInfoSchema(), required=False, load_from="DNSZoneInfos"
|
|
211
|
+
),
|
|
212
|
+
"TotalCount": fields.Int(required=True, load_from="TotalCount"),
|
|
213
|
+
}
|
|
214
|
+
|
|
215
|
+
|
|
216
|
+
"""
|
|
217
|
+
API: DisassociateUDNSZoneVPC
|
|
218
|
+
|
|
219
|
+
解绑域名和VPC
|
|
220
|
+
"""
|
|
221
|
+
|
|
222
|
+
|
|
223
|
+
class DisassociateUDNSZoneVPCRequestSchema(schema.RequestSchema):
|
|
224
|
+
"""DisassociateUDNSZoneVPC - 解绑域名和VPC"""
|
|
225
|
+
|
|
226
|
+
fields = {
|
|
227
|
+
"DNSZoneId": fields.Str(required=True, dump_to="DNSZoneId"),
|
|
228
|
+
"ProjectId": fields.Str(required=False, dump_to="ProjectId"),
|
|
229
|
+
"Region": fields.Str(required=True, dump_to="Region"),
|
|
230
|
+
"VPCId": fields.Str(required=True, dump_to="VPCId"),
|
|
231
|
+
"VPCProjectId": fields.Str(required=True, dump_to="VPCProjectId"),
|
|
232
|
+
}
|
|
233
|
+
|
|
234
|
+
|
|
235
|
+
class DisassociateUDNSZoneVPCResponseSchema(schema.ResponseSchema):
|
|
236
|
+
"""DisassociateUDNSZoneVPC - 解绑域名和VPC"""
|
|
237
|
+
|
|
238
|
+
fields = {}
|
|
239
|
+
|
|
240
|
+
|
|
241
|
+
"""
|
|
242
|
+
API: ModifyUDNSRecord
|
|
243
|
+
|
|
244
|
+
修改域名记录
|
|
245
|
+
"""
|
|
246
|
+
|
|
247
|
+
|
|
248
|
+
class ModifyUDNSRecordRequestSchema(schema.RequestSchema):
|
|
249
|
+
"""ModifyUDNSRecord - 修改域名记录"""
|
|
250
|
+
|
|
251
|
+
fields = {
|
|
252
|
+
"DNSZoneId": fields.Str(required=True, dump_to="DNSZoneId"),
|
|
253
|
+
"ProjectId": fields.Str(required=False, dump_to="ProjectId"),
|
|
254
|
+
"RecordId": fields.Str(required=True, dump_to="RecordId"),
|
|
255
|
+
"Region": fields.Str(required=True, dump_to="Region"),
|
|
256
|
+
"Remark": fields.Str(required=False, dump_to="Remark"),
|
|
257
|
+
"TTL": fields.Int(required=False, dump_to="TTL"),
|
|
258
|
+
"Value": fields.Str(required=False, dump_to="Value"),
|
|
259
|
+
"ValueType": fields.Str(required=False, dump_to="ValueType"),
|
|
260
|
+
}
|
|
261
|
+
|
|
262
|
+
|
|
263
|
+
class ModifyUDNSRecordResponseSchema(schema.ResponseSchema):
|
|
264
|
+
"""ModifyUDNSRecord - 修改域名记录"""
|
|
265
|
+
|
|
266
|
+
fields = {}
|
|
267
|
+
|
|
268
|
+
|
|
269
|
+
"""
|
|
270
|
+
API: ModifyUDNSZone
|
|
271
|
+
|
|
272
|
+
修改域名备注/递归查询状态
|
|
273
|
+
"""
|
|
274
|
+
|
|
275
|
+
|
|
276
|
+
class ModifyUDNSZoneRequestSchema(schema.RequestSchema):
|
|
277
|
+
"""ModifyUDNSZone - 修改域名备注/递归查询状态"""
|
|
278
|
+
|
|
279
|
+
fields = {
|
|
280
|
+
"DNSZoneId": fields.Str(required=True, dump_to="DNSZoneId"),
|
|
281
|
+
"IsRecursionEnabled": fields.Str(
|
|
282
|
+
required=False, dump_to="IsRecursionEnabled"
|
|
283
|
+
),
|
|
284
|
+
"ProjectId": fields.Str(required=False, dump_to="ProjectId"),
|
|
285
|
+
"Region": fields.Str(required=True, dump_to="Region"),
|
|
286
|
+
"Remark": fields.Str(required=False, dump_to="Remark"),
|
|
287
|
+
}
|
|
288
|
+
|
|
289
|
+
|
|
290
|
+
class ModifyUDNSZoneResponseSchema(schema.ResponseSchema):
|
|
291
|
+
"""ModifyUDNSZone - 修改域名备注/递归查询状态"""
|
|
292
|
+
|
|
293
|
+
fields = {}
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
""" Code is generated by ucloud-model, DO NOT EDIT IT. """
|
|
2
|
+
|
|
3
|
+
from ucloud.core.typesystem import schema, fields
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
class ValueSetSchema(schema.ResponseSchema):
|
|
7
|
+
"""ValueSet - RecordInfos"""
|
|
8
|
+
|
|
9
|
+
fields = {
|
|
10
|
+
"Data": fields.Str(required=True, load_from="Data"),
|
|
11
|
+
"IsEnabled": fields.Int(required=True, load_from="IsEnabled"),
|
|
12
|
+
"Weight": fields.Int(required=True, load_from="Weight"),
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
class RecordInfoSchema(schema.ResponseSchema):
|
|
17
|
+
"""RecordInfo - DescribeUDNSRecord"""
|
|
18
|
+
|
|
19
|
+
fields = {
|
|
20
|
+
"Name": fields.Str(required=True, load_from="Name"),
|
|
21
|
+
"RecordId": fields.Str(required=True, load_from="RecordId"),
|
|
22
|
+
"Remark": fields.Str(required=True, load_from="Remark"),
|
|
23
|
+
"TTL": fields.Int(required=True, load_from="TTL"),
|
|
24
|
+
"Type": fields.Str(required=True, load_from="Type"),
|
|
25
|
+
"ValueSet": fields.List(ValueSetSchema()),
|
|
26
|
+
"ValueType": fields.Str(required=True, load_from="ValueType"),
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
|
|
30
|
+
class VPCInfoSchema(schema.ResponseSchema):
|
|
31
|
+
"""VPCInfo - ZoneInfo"""
|
|
32
|
+
|
|
33
|
+
fields = {
|
|
34
|
+
"Name": fields.Str(required=False, load_from="Name"),
|
|
35
|
+
"Network": fields.List(fields.Str()),
|
|
36
|
+
"VPCId": fields.Str(required=False, load_from="VPCId"),
|
|
37
|
+
"VPCProjectId": fields.Str(required=False, load_from="VPCProjectId"),
|
|
38
|
+
"VPCType": fields.Str(required=False, load_from="VPCType"),
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
|
|
42
|
+
class ZoneInfoSchema(schema.ResponseSchema):
|
|
43
|
+
"""ZoneInfo - DescribeUDNSZone"""
|
|
44
|
+
|
|
45
|
+
fields = {
|
|
46
|
+
"ChargeType": fields.Str(required=True, load_from="ChargeType"),
|
|
47
|
+
"CreateTime": fields.Int(required=True, load_from="CreateTime"),
|
|
48
|
+
"DNSZoneName": fields.Str(required=True, load_from="DNSZoneName"),
|
|
49
|
+
"ExpireTime": fields.Int(required=True, load_from="ExpireTime"),
|
|
50
|
+
"IsAutoRenew": fields.Str(required=True, load_from="IsAutoRenew"),
|
|
51
|
+
"IsRecursionEnabled": fields.Str(
|
|
52
|
+
required=True, load_from="IsRecursionEnabled"
|
|
53
|
+
),
|
|
54
|
+
"RecordInfos": fields.List(fields.Str()),
|
|
55
|
+
"Remark": fields.Str(required=True, load_from="Remark"),
|
|
56
|
+
"Tag": fields.Str(required=True, load_from="Tag"),
|
|
57
|
+
"VPCInfos": fields.List(VPCInfoSchema()),
|
|
58
|
+
}
|
|
File without changes
|
|
@@ -0,0 +1,240 @@
|
|
|
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.udpn.schemas import apis
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
class UDPNClient(Client):
|
|
11
|
+
def __init__(
|
|
12
|
+
self, config: dict, transport=None, middleware=None, logger=None
|
|
13
|
+
):
|
|
14
|
+
super(UDPNClient, self).__init__(config, transport, middleware, logger)
|
|
15
|
+
|
|
16
|
+
def allocate_udpn(
|
|
17
|
+
self, req: typing.Optional[dict] = None, **kwargs
|
|
18
|
+
) -> dict:
|
|
19
|
+
"""AllocateUDPN - 分配一条 UDPN 专线
|
|
20
|
+
|
|
21
|
+
**Request**
|
|
22
|
+
|
|
23
|
+
- **ProjectId** (str) - (Config) 项目ID。不填写为默认项目,子帐号必须填写。 请参考 `GetProjectList接口 <https://docs.ucloud.cn/api/summary/get_project_list>`_
|
|
24
|
+
- **Region** (str) - (Config) 地域。 参见 `地域和可用区列表 <https://docs.ucloud.cn/api/summary/regionlist>`_
|
|
25
|
+
- **Bandwidth** (int) - (Required) 带宽
|
|
26
|
+
- **Peer1** (str) - (Required) 专线可用区1,支持地域:北京二:cn-bj2, 上海二:cn-sh2, 广东:cn-gd, 亚太: hk, 上海一:cn-sh1, 法兰克福:ge-fra, 新加坡:sg, 洛杉矶:us-ca, 华盛顿:us-ws, 东京:jpn-tky
|
|
27
|
+
- **Peer2** (str) - (Required) 专线可用区2,支持地域:北京二:cn-bj2, 上海二:cn-sh2, 广东:cn-gd, 亚太: hk, 上海一:cn-sh1, 法兰克福:ge-fra, 新加坡:sg, 洛杉矶:us-ca, 华盛顿:us-ws, 东京:jpn-tky
|
|
28
|
+
- **ChargeType** (str) - 计费类型,枚举值为: Year,按年付费; Month,按月付费; Dynamic,按需付费
|
|
29
|
+
- **CouponId** (str) - 代金劵
|
|
30
|
+
- **PayMode** (str) - 计费模式. 枚举值:"Traffic", 流量计费模式; 否则 带宽计费模式;
|
|
31
|
+
- **Quantity** (int) - 计费时长,默认 1
|
|
32
|
+
|
|
33
|
+
**Response**
|
|
34
|
+
|
|
35
|
+
- **Action** (str) - 操作名称
|
|
36
|
+
- **RetCode** (int) - 返回码
|
|
37
|
+
- **UDPNId** (str) - 资源名称
|
|
38
|
+
|
|
39
|
+
"""
|
|
40
|
+
# build request
|
|
41
|
+
d = {
|
|
42
|
+
"ProjectId": self.config.project_id,
|
|
43
|
+
"Region": self.config.region,
|
|
44
|
+
}
|
|
45
|
+
req and d.update(req)
|
|
46
|
+
d = apis.AllocateUDPNRequestSchema().dumps(d)
|
|
47
|
+
|
|
48
|
+
# build options
|
|
49
|
+
kwargs["max_retries"] = 0 # ignore retry when api is not idempotent
|
|
50
|
+
|
|
51
|
+
resp = self.invoke("AllocateUDPN", d, **kwargs)
|
|
52
|
+
return apis.AllocateUDPNResponseSchema().loads(resp)
|
|
53
|
+
|
|
54
|
+
def describe_udpn(
|
|
55
|
+
self, req: typing.Optional[dict] = None, **kwargs
|
|
56
|
+
) -> dict:
|
|
57
|
+
"""DescribeUDPN - 描述 UDPN
|
|
58
|
+
|
|
59
|
+
**Request**
|
|
60
|
+
|
|
61
|
+
- **ProjectId** (str) - (Config) 项目ID。不填写为默认项目,子帐号必须填写。 请参考 `GetProjectList接口 <https://docs.ucloud.cn/api/summary/get_project_list>`_
|
|
62
|
+
- **Region** (str) - (Config) 地域。 参见 `地域和可用区列表 <https://docs.ucloud.cn/api/summary/regionlist>`_
|
|
63
|
+
- **Limit** (int) - 返回数据长度,默认为 20
|
|
64
|
+
- **Offset** (int) - 列表起始位置偏移量,默认为 0
|
|
65
|
+
- **UDPNId** (str) - 申请到的 UDPN 资源 ID。若为空,则查询该用户在机房所有的专线信息。非默认项目资源,需填写ProjectId
|
|
66
|
+
|
|
67
|
+
**Response**
|
|
68
|
+
|
|
69
|
+
- **DataSet** (list) - 见 **UDPNData** 模型定义
|
|
70
|
+
- **TotalCount** (int) - 查询到的总数量
|
|
71
|
+
|
|
72
|
+
**Response Model**
|
|
73
|
+
|
|
74
|
+
**UDPNData**
|
|
75
|
+
- **Bandwidth** (int) - 带宽
|
|
76
|
+
- **ChargeType** (str) - 计费类型
|
|
77
|
+
- **CreateTime** (int) - unix 时间戳 创建时间
|
|
78
|
+
- **ExpireTime** (int) - unix 时间戳 到期时间
|
|
79
|
+
- **Peer1** (str) - 可用区域 1
|
|
80
|
+
- **Peer2** (str) - 可用区域 2
|
|
81
|
+
- **UDPNId** (str) - UDPN 资源短 ID
|
|
82
|
+
|
|
83
|
+
|
|
84
|
+
"""
|
|
85
|
+
# build request
|
|
86
|
+
d = {
|
|
87
|
+
"ProjectId": self.config.project_id,
|
|
88
|
+
"Region": self.config.region,
|
|
89
|
+
}
|
|
90
|
+
req and d.update(req)
|
|
91
|
+
d = apis.DescribeUDPNRequestSchema().dumps(d)
|
|
92
|
+
|
|
93
|
+
resp = self.invoke("DescribeUDPN", d, **kwargs)
|
|
94
|
+
return apis.DescribeUDPNResponseSchema().loads(resp)
|
|
95
|
+
|
|
96
|
+
def get_udpn_line_list(
|
|
97
|
+
self, req: typing.Optional[dict] = None, **kwargs
|
|
98
|
+
) -> dict:
|
|
99
|
+
"""GetUDPNLineList - 获取当前支持的专线线路列表
|
|
100
|
+
|
|
101
|
+
**Request**
|
|
102
|
+
|
|
103
|
+
- **ProjectId** (str) - (Config)
|
|
104
|
+
- **Region** (str) - (Config) 地域。 参见 `地域和可用区列表 <https://docs.ucloud.cn/api/summary/regionlist.html>`_
|
|
105
|
+
|
|
106
|
+
**Response**
|
|
107
|
+
|
|
108
|
+
- **DataSet** (list) - 见 **UDPNLineSet** 模型定义
|
|
109
|
+
- **TotalCount** (int) - DataSet中的元素个数
|
|
110
|
+
|
|
111
|
+
**Response Model**
|
|
112
|
+
|
|
113
|
+
**UDPNLineSet**
|
|
114
|
+
- **BandwidthUpperLimit** (int) - 线路带宽上限,单位 M
|
|
115
|
+
- **LocalRegion** (str) - 支持UDPN的地域之一,北京二:cn-bj2, 上海二:cn-sh2, 广东:cn-gd, 亚太: hk, 上海一:cn-sh1, 法兰克福:ge-fra, 新加坡:sg, 华盛顿:us-ws, 洛杉矶:us-la, 东京:jpn-tky
|
|
116
|
+
- **RemoteRegion** (str) - 支持UDPN的地域之一,北京二:cn-bj2, 上海二:cn-sh2, 广东:cn-gd, 亚太: hk, 上海一:cn-sh1, 法兰克福:ge-fra, 新加坡:sg, 华盛顿:us-ws, 洛杉矶:us-la, 东京:jpn-tky
|
|
117
|
+
|
|
118
|
+
|
|
119
|
+
"""
|
|
120
|
+
# build request
|
|
121
|
+
d = {
|
|
122
|
+
"ProjectId": self.config.project_id,
|
|
123
|
+
"Region": self.config.region,
|
|
124
|
+
}
|
|
125
|
+
req and d.update(req)
|
|
126
|
+
d = apis.GetUDPNLineListRequestSchema().dumps(d)
|
|
127
|
+
|
|
128
|
+
resp = self.invoke("GetUDPNLineList", d, **kwargs)
|
|
129
|
+
return apis.GetUDPNLineListResponseSchema().loads(resp)
|
|
130
|
+
|
|
131
|
+
def get_udpn_price(
|
|
132
|
+
self, req: typing.Optional[dict] = None, **kwargs
|
|
133
|
+
) -> dict:
|
|
134
|
+
"""GetUDPNPrice - 获取 UDPN 价格
|
|
135
|
+
|
|
136
|
+
**Request**
|
|
137
|
+
|
|
138
|
+
- **Region** (str) - (Config) 地域。 参见 `地域和可用区列表 <https://docs.ucloud.cn/api/summary/regionlist.html>`_
|
|
139
|
+
- **Bandwidth** (int) - (Required) 带宽信息
|
|
140
|
+
- **Peer1** (str) - (Required) 专线可用区1,支持地域:北京二:cn-bj2, 上海二:cn-sh2, 广东:cn-gd, 亚太: hk, 上海一:cn-sh1, 法兰克福:ge-fra, 新加坡:sg, 洛杉矶:us-la, 华盛顿:us-ws, 东京:jpn-tky
|
|
141
|
+
- **Peer2** (str) - (Required) 专线可用区2,支持地域:北京二:cn-bj2, 上海二:cn-sh2, 广东:cn-gd, 亚太: hk, 上海一:cn-sh1, 法兰克福:ge-fra, 新加坡:sg, 洛杉矶:us-la, 华盛顿:us-ws, 东京:jpn-tky
|
|
142
|
+
- **ChargeType** (str) - 计费类型
|
|
143
|
+
- **PayMode** (str) - PayMode,枚举值,Bandwidth:带宽;Traffic:流量 默认不填写:带宽
|
|
144
|
+
- **Quantity** (int) - 购买时长
|
|
145
|
+
|
|
146
|
+
**Response**
|
|
147
|
+
|
|
148
|
+
- **Price** (float) - 专线价格
|
|
149
|
+
- **PurchaseValue** (int) - 资源有效期 unix 时间戳
|
|
150
|
+
|
|
151
|
+
"""
|
|
152
|
+
# build request
|
|
153
|
+
d = {
|
|
154
|
+
"Region": self.config.region,
|
|
155
|
+
}
|
|
156
|
+
req and d.update(req)
|
|
157
|
+
d = apis.GetUDPNPriceRequestSchema().dumps(d)
|
|
158
|
+
|
|
159
|
+
resp = self.invoke("GetUDPNPrice", d, **kwargs)
|
|
160
|
+
return apis.GetUDPNPriceResponseSchema().loads(resp)
|
|
161
|
+
|
|
162
|
+
def get_udpn_upgrade_price(
|
|
163
|
+
self, req: typing.Optional[dict] = None, **kwargs
|
|
164
|
+
) -> dict:
|
|
165
|
+
"""GetUDPNUpgradePrice - 获取专线升级价格
|
|
166
|
+
|
|
167
|
+
**Request**
|
|
168
|
+
|
|
169
|
+
- **ProjectId** (str) - (Config) 项目ID。不填写为默认项目,子帐号必须填写。 请参考 `GetProjectList接口 <https://docs.ucloud.cn/api/summary/get_project_list.html>`_
|
|
170
|
+
- **Region** (str) - (Config) 地域。 参见 `地域和可用区列表 <https://docs.ucloud.cn/api/summary/regionlist.html>`_
|
|
171
|
+
- **Bandwidth** (int) - (Required) 带宽
|
|
172
|
+
- **UDPNId** (str) - (Required) 专线带宽资源 Id
|
|
173
|
+
|
|
174
|
+
**Response**
|
|
175
|
+
|
|
176
|
+
- **Price** (float) - 升级后的价格
|
|
177
|
+
|
|
178
|
+
"""
|
|
179
|
+
# build request
|
|
180
|
+
d = {
|
|
181
|
+
"ProjectId": self.config.project_id,
|
|
182
|
+
"Region": self.config.region,
|
|
183
|
+
}
|
|
184
|
+
req and d.update(req)
|
|
185
|
+
d = apis.GetUDPNUpgradePriceRequestSchema().dumps(d)
|
|
186
|
+
|
|
187
|
+
resp = self.invoke("GetUDPNUpgradePrice", d, **kwargs)
|
|
188
|
+
return apis.GetUDPNUpgradePriceResponseSchema().loads(resp)
|
|
189
|
+
|
|
190
|
+
def modify_udpn_bandwidth(
|
|
191
|
+
self, req: typing.Optional[dict] = None, **kwargs
|
|
192
|
+
) -> dict:
|
|
193
|
+
"""ModifyUDPNBandwidth - 修改带宽值
|
|
194
|
+
|
|
195
|
+
**Request**
|
|
196
|
+
|
|
197
|
+
- **ProjectId** (str) - (Config) 项目ID。不填写为默认项目,子帐号必须填写。 请参考 `GetProjectList接口 <https://docs.ucloud.cn/api/summary/get_project_list.html>`_
|
|
198
|
+
- **Region** (str) - (Config)
|
|
199
|
+
- **Bandwidth** (int) - (Required) 调整后专线带宽, 单位为Mbps,取值范围为大于等于2且小于等于1000([2-1000])的整数
|
|
200
|
+
- **UDPNId** (str) - (Required) UDPN Id
|
|
201
|
+
- **CouponId** (str) - 代金劵 ID
|
|
202
|
+
|
|
203
|
+
**Response**
|
|
204
|
+
|
|
205
|
+
|
|
206
|
+
"""
|
|
207
|
+
# build request
|
|
208
|
+
d = {
|
|
209
|
+
"ProjectId": self.config.project_id,
|
|
210
|
+
"Region": self.config.region,
|
|
211
|
+
}
|
|
212
|
+
req and d.update(req)
|
|
213
|
+
d = apis.ModifyUDPNBandwidthRequestSchema().dumps(d)
|
|
214
|
+
|
|
215
|
+
resp = self.invoke("ModifyUDPNBandwidth", d, **kwargs)
|
|
216
|
+
return apis.ModifyUDPNBandwidthResponseSchema().loads(resp)
|
|
217
|
+
|
|
218
|
+
def release_udpn(self, req: typing.Optional[dict] = None, **kwargs) -> dict:
|
|
219
|
+
"""ReleaseUDPN - 释放 UDPN
|
|
220
|
+
|
|
221
|
+
**Request**
|
|
222
|
+
|
|
223
|
+
- **ProjectId** (str) - (Config) 项目ID。不填写为默认项目,子帐号必须填写。 请参考 `GetProjectList接口 <https://docs.ucloud.cn/api/summary/get_project_list.html>`_
|
|
224
|
+
- **Region** (str) - (Config) 地域。 参见 `地域和可用区列表 <https://docs.ucloud.cn/api/summary/regionlist.html>`_
|
|
225
|
+
- **UDPNId** (str) - (Required) UDPN 资源 Id
|
|
226
|
+
|
|
227
|
+
**Response**
|
|
228
|
+
|
|
229
|
+
|
|
230
|
+
"""
|
|
231
|
+
# build request
|
|
232
|
+
d = {
|
|
233
|
+
"ProjectId": self.config.project_id,
|
|
234
|
+
"Region": self.config.region,
|
|
235
|
+
}
|
|
236
|
+
req and d.update(req)
|
|
237
|
+
d = apis.ReleaseUDPNRequestSchema().dumps(d)
|
|
238
|
+
|
|
239
|
+
resp = self.invoke("ReleaseUDPN", d, **kwargs)
|
|
240
|
+
return apis.ReleaseUDPNResponseSchema().loads(resp)
|
|
File without changes
|