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,827 @@
|
|
|
1
|
+
""" Code is generated by ucloud-model, DO NOT EDIT IT. """
|
|
2
|
+
|
|
3
|
+
from ucloud.core.typesystem import schema, fields
|
|
4
|
+
from ucloud.services.upgsql.schemas import models
|
|
5
|
+
|
|
6
|
+
""" UPgSQL API Schema
|
|
7
|
+
"""
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
"""
|
|
11
|
+
API: BackupUPgSQLLog
|
|
12
|
+
|
|
13
|
+
备份日志包
|
|
14
|
+
"""
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
class BackupUPgSQLLogRequestSchema(schema.RequestSchema):
|
|
18
|
+
"""BackupUPgSQLLog - 备份日志包"""
|
|
19
|
+
|
|
20
|
+
fields = {
|
|
21
|
+
"BackupFile": fields.Str(required=True, dump_to="BackupFile"),
|
|
22
|
+
"BackupName": fields.Str(required=True, dump_to="BackupName"),
|
|
23
|
+
"BeginTime": fields.Int(required=False, dump_to="BeginTime"),
|
|
24
|
+
"EndTime": fields.Int(required=False, dump_to="EndTime"),
|
|
25
|
+
"InstanceID": fields.Str(required=True, dump_to="InstanceID"),
|
|
26
|
+
"LogType": fields.Str(required=False, dump_to="LogType"),
|
|
27
|
+
"ProjectId": fields.Str(required=False, dump_to="ProjectId"),
|
|
28
|
+
"Region": fields.Str(required=True, dump_to="Region"),
|
|
29
|
+
"Zone": fields.Str(required=True, dump_to="Zone"),
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
|
|
33
|
+
class BackupUPgSQLLogResponseSchema(schema.ResponseSchema):
|
|
34
|
+
"""BackupUPgSQLLog - 备份日志包"""
|
|
35
|
+
|
|
36
|
+
fields = {
|
|
37
|
+
"Message": fields.Str(required=True, load_from="Message"),
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
|
|
41
|
+
"""
|
|
42
|
+
API: CreateUPgSQLInstance
|
|
43
|
+
|
|
44
|
+
创建PG云数据库
|
|
45
|
+
"""
|
|
46
|
+
|
|
47
|
+
|
|
48
|
+
class CreateUPgSQLInstanceRequestSchema(schema.RequestSchema):
|
|
49
|
+
"""CreateUPgSQLInstance - 创建PG云数据库"""
|
|
50
|
+
|
|
51
|
+
fields = {
|
|
52
|
+
"AdminPassword": fields.Str(required=True, dump_to="AdminPassword"),
|
|
53
|
+
"DBVersion": fields.Str(required=True, dump_to="DBVersion"),
|
|
54
|
+
"DiskSpace": fields.Str(required=True, dump_to="DiskSpace"),
|
|
55
|
+
"InstanceMode": fields.Str(required=False, dump_to="InstanceMode"),
|
|
56
|
+
"MachineType": fields.Str(required=True, dump_to="MachineType"),
|
|
57
|
+
"Name": fields.Str(required=True, dump_to="Name"),
|
|
58
|
+
"ParamGroupID": fields.Int(required=True, dump_to="ParamGroupID"),
|
|
59
|
+
"Port": fields.Int(required=True, dump_to="Port"),
|
|
60
|
+
"ProjectId": fields.Str(required=False, dump_to="ProjectId"),
|
|
61
|
+
"Region": fields.Str(required=True, dump_to="Region"),
|
|
62
|
+
"SubnetID": fields.Str(required=True, dump_to="SubnetID"),
|
|
63
|
+
"VPCID": fields.Str(required=True, dump_to="VPCID"),
|
|
64
|
+
"Zone": fields.Str(required=True, dump_to="Zone"),
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
|
|
68
|
+
class CreateUPgSQLInstanceResponseSchema(schema.ResponseSchema):
|
|
69
|
+
"""CreateUPgSQLInstance - 创建PG云数据库"""
|
|
70
|
+
|
|
71
|
+
fields = {
|
|
72
|
+
"InstanceID": fields.Str(required=False, load_from="InstanceID"),
|
|
73
|
+
"Message": fields.Str(required=True, load_from="Message"),
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
|
|
77
|
+
"""
|
|
78
|
+
API: CreateUPgSQLParamTemplate
|
|
79
|
+
|
|
80
|
+
创建PG参数模板
|
|
81
|
+
"""
|
|
82
|
+
|
|
83
|
+
|
|
84
|
+
class CreateUPgSQLParamTemplateRequestSchema(schema.RequestSchema):
|
|
85
|
+
"""CreateUPgSQLParamTemplate - 创建PG参数模板"""
|
|
86
|
+
|
|
87
|
+
fields = {
|
|
88
|
+
"DBVersion": fields.Str(required=True, dump_to="DBVersion"),
|
|
89
|
+
"Description": fields.Str(required=False, dump_to="Description"),
|
|
90
|
+
"GroupName": fields.Str(required=True, dump_to="GroupName"),
|
|
91
|
+
"ProjectId": fields.Str(required=False, dump_to="ProjectId"),
|
|
92
|
+
"Region": fields.Str(required=True, dump_to="Region"),
|
|
93
|
+
"SrcGroupID": fields.Int(required=True, dump_to="SrcGroupID"),
|
|
94
|
+
"Zone": fields.Str(required=True, dump_to="Zone"),
|
|
95
|
+
}
|
|
96
|
+
|
|
97
|
+
|
|
98
|
+
class CreateUPgSQLParamTemplateResponseSchema(schema.ResponseSchema):
|
|
99
|
+
"""CreateUPgSQLParamTemplate - 创建PG参数模板"""
|
|
100
|
+
|
|
101
|
+
fields = {
|
|
102
|
+
"GroupID": fields.Int(required=True, load_from="GroupID"),
|
|
103
|
+
"Message": fields.Str(required=True, load_from="Message"),
|
|
104
|
+
}
|
|
105
|
+
|
|
106
|
+
|
|
107
|
+
"""
|
|
108
|
+
API: CreateUPgSQLReadonly
|
|
109
|
+
|
|
110
|
+
创建PG从库
|
|
111
|
+
"""
|
|
112
|
+
|
|
113
|
+
|
|
114
|
+
class CreateUPgSQLReadonlyRequestSchema(schema.RequestSchema):
|
|
115
|
+
"""CreateUPgSQLReadonly - 创建PG从库"""
|
|
116
|
+
|
|
117
|
+
fields = {
|
|
118
|
+
"DiskSpace": fields.Int(required=True, dump_to="DiskSpace"),
|
|
119
|
+
"MachineType": fields.Str(required=True, dump_to="MachineType"),
|
|
120
|
+
"Name": fields.Str(required=True, dump_to="Name"),
|
|
121
|
+
"Port": fields.Int(required=True, dump_to="Port"),
|
|
122
|
+
"ProjectId": fields.Str(required=False, dump_to="ProjectId"),
|
|
123
|
+
"Region": fields.Str(required=True, dump_to="Region"),
|
|
124
|
+
"SrcInstanceID": fields.Str(required=True, dump_to="SrcInstanceID"),
|
|
125
|
+
"SubnetID": fields.Str(required=False, dump_to="SubnetID"),
|
|
126
|
+
"VPCID": fields.Str(required=False, dump_to="VPCID"),
|
|
127
|
+
"Zone": fields.Str(required=True, dump_to="Zone"),
|
|
128
|
+
}
|
|
129
|
+
|
|
130
|
+
|
|
131
|
+
class CreateUPgSQLReadonlyResponseSchema(schema.ResponseSchema):
|
|
132
|
+
"""CreateUPgSQLReadonly - 创建PG从库"""
|
|
133
|
+
|
|
134
|
+
fields = {
|
|
135
|
+
"InstanceID": fields.Str(required=False, load_from="InstanceID"),
|
|
136
|
+
}
|
|
137
|
+
|
|
138
|
+
|
|
139
|
+
"""
|
|
140
|
+
API: DeleteUPgSQLInstance
|
|
141
|
+
|
|
142
|
+
删除PG实例
|
|
143
|
+
"""
|
|
144
|
+
|
|
145
|
+
|
|
146
|
+
class DeleteUPgSQLInstanceRequestSchema(schema.RequestSchema):
|
|
147
|
+
"""DeleteUPgSQLInstance - 删除PG实例"""
|
|
148
|
+
|
|
149
|
+
fields = {
|
|
150
|
+
"InstanceID": fields.Str(required=True, dump_to="InstanceID"),
|
|
151
|
+
"ProjectId": fields.Str(required=False, dump_to="ProjectId"),
|
|
152
|
+
"Region": fields.Str(required=True, dump_to="Region"),
|
|
153
|
+
"Zone": fields.Str(required=True, dump_to="Zone"),
|
|
154
|
+
}
|
|
155
|
+
|
|
156
|
+
|
|
157
|
+
class DeleteUPgSQLInstanceResponseSchema(schema.ResponseSchema):
|
|
158
|
+
"""DeleteUPgSQLInstance - 删除PG实例"""
|
|
159
|
+
|
|
160
|
+
fields = {
|
|
161
|
+
"Message": fields.Str(required=True, load_from="Message"),
|
|
162
|
+
}
|
|
163
|
+
|
|
164
|
+
|
|
165
|
+
"""
|
|
166
|
+
API: DeleteUPgSQLParamTemplate
|
|
167
|
+
|
|
168
|
+
删除参数模板
|
|
169
|
+
"""
|
|
170
|
+
|
|
171
|
+
|
|
172
|
+
class DeleteUPgSQLParamTemplateRequestSchema(schema.RequestSchema):
|
|
173
|
+
"""DeleteUPgSQLParamTemplate - 删除参数模板"""
|
|
174
|
+
|
|
175
|
+
fields = {
|
|
176
|
+
"GroupID": fields.Int(required=True, dump_to="GroupID"),
|
|
177
|
+
"ProjectId": fields.Str(required=False, dump_to="ProjectId"),
|
|
178
|
+
"Region": fields.Str(required=True, dump_to="Region"),
|
|
179
|
+
"Zone": fields.Str(required=True, dump_to="Zone"),
|
|
180
|
+
}
|
|
181
|
+
|
|
182
|
+
|
|
183
|
+
class DeleteUPgSQLParamTemplateResponseSchema(schema.ResponseSchema):
|
|
184
|
+
"""DeleteUPgSQLParamTemplate - 删除参数模板"""
|
|
185
|
+
|
|
186
|
+
fields = {
|
|
187
|
+
"Message": fields.Str(required=True, load_from="Message"),
|
|
188
|
+
}
|
|
189
|
+
|
|
190
|
+
|
|
191
|
+
"""
|
|
192
|
+
API: DownloadUPgSQLParamTemplate
|
|
193
|
+
|
|
194
|
+
下载参数模板信息
|
|
195
|
+
"""
|
|
196
|
+
|
|
197
|
+
|
|
198
|
+
class DownloadUPgSQLParamTemplateRequestSchema(schema.RequestSchema):
|
|
199
|
+
"""DownloadUPgSQLParamTemplate - 下载参数模板信息"""
|
|
200
|
+
|
|
201
|
+
fields = {
|
|
202
|
+
"GroupID": fields.Int(required=True, dump_to="GroupID"),
|
|
203
|
+
"ProjectId": fields.Str(required=False, dump_to="ProjectId"),
|
|
204
|
+
"Region": fields.Str(required=True, dump_to="Region"),
|
|
205
|
+
"Zone": fields.Str(required=True, dump_to="Zone"),
|
|
206
|
+
}
|
|
207
|
+
|
|
208
|
+
|
|
209
|
+
class DownloadUPgSQLParamTemplateResponseSchema(schema.ResponseSchema):
|
|
210
|
+
"""DownloadUPgSQLParamTemplate - 下载参数模板信息"""
|
|
211
|
+
|
|
212
|
+
fields = {
|
|
213
|
+
"Content": fields.Str(required=True, load_from="Content"),
|
|
214
|
+
"Message": fields.Str(required=True, load_from="Message"),
|
|
215
|
+
}
|
|
216
|
+
|
|
217
|
+
|
|
218
|
+
"""
|
|
219
|
+
API: GetUPgSQLBackupStrategy
|
|
220
|
+
|
|
221
|
+
获取备份策略
|
|
222
|
+
"""
|
|
223
|
+
|
|
224
|
+
|
|
225
|
+
class GetUPgSQLBackupStrategyRequestSchema(schema.RequestSchema):
|
|
226
|
+
"""GetUPgSQLBackupStrategy - 获取备份策略"""
|
|
227
|
+
|
|
228
|
+
fields = {
|
|
229
|
+
"InstanceID": fields.Str(required=True, dump_to="InstanceID"),
|
|
230
|
+
"ProjectId": fields.Str(required=False, dump_to="ProjectId"),
|
|
231
|
+
"Region": fields.Str(required=True, dump_to="Region"),
|
|
232
|
+
"Zone": fields.Str(required=True, dump_to="Zone"),
|
|
233
|
+
}
|
|
234
|
+
|
|
235
|
+
|
|
236
|
+
class GetUPgSQLBackupStrategyResponseSchema(schema.ResponseSchema):
|
|
237
|
+
"""GetUPgSQLBackupStrategy - 获取备份策略"""
|
|
238
|
+
|
|
239
|
+
fields = {
|
|
240
|
+
"BackupMethod": fields.Str(required=True, load_from="BackupMethod"),
|
|
241
|
+
"BackupTimeRange": fields.Str(
|
|
242
|
+
required=True, load_from="BackupTimeRange"
|
|
243
|
+
),
|
|
244
|
+
"BackupWeek": fields.Str(required=True, load_from="BackupWeek"),
|
|
245
|
+
"Message": fields.Str(required=True, load_from="Message"),
|
|
246
|
+
}
|
|
247
|
+
|
|
248
|
+
|
|
249
|
+
"""
|
|
250
|
+
API: GetUPgSQLBackupURL
|
|
251
|
+
|
|
252
|
+
获取备份下载地址
|
|
253
|
+
"""
|
|
254
|
+
|
|
255
|
+
|
|
256
|
+
class GetUPgSQLBackupURLRequestSchema(schema.RequestSchema):
|
|
257
|
+
"""GetUPgSQLBackupURL - 获取备份下载地址"""
|
|
258
|
+
|
|
259
|
+
fields = {
|
|
260
|
+
"BackupID": fields.Str(required=True, dump_to="BackupID"),
|
|
261
|
+
"InstanceID": fields.Str(required=True, dump_to="InstanceID"),
|
|
262
|
+
"ProjectId": fields.Str(required=False, dump_to="ProjectId"),
|
|
263
|
+
"Region": fields.Str(required=True, dump_to="Region"),
|
|
264
|
+
"Zone": fields.Str(required=True, dump_to="Zone"),
|
|
265
|
+
}
|
|
266
|
+
|
|
267
|
+
|
|
268
|
+
class GetUPgSQLBackupURLResponseSchema(schema.ResponseSchema):
|
|
269
|
+
"""GetUPgSQLBackupURL - 获取备份下载地址"""
|
|
270
|
+
|
|
271
|
+
fields = {
|
|
272
|
+
"BackupPath": fields.Str(required=True, load_from="BackupPath"),
|
|
273
|
+
"InnerBackupPath": fields.Str(
|
|
274
|
+
required=True, load_from="InnerBackupPath"
|
|
275
|
+
),
|
|
276
|
+
"Message": fields.Str(required=True, load_from="Message"),
|
|
277
|
+
}
|
|
278
|
+
|
|
279
|
+
|
|
280
|
+
"""
|
|
281
|
+
API: GetUPgSQLInstance
|
|
282
|
+
|
|
283
|
+
获取PG云数据库实例描述
|
|
284
|
+
"""
|
|
285
|
+
|
|
286
|
+
|
|
287
|
+
class GetUPgSQLInstanceRequestSchema(schema.RequestSchema):
|
|
288
|
+
"""GetUPgSQLInstance - 获取PG云数据库实例描述"""
|
|
289
|
+
|
|
290
|
+
fields = {
|
|
291
|
+
"InstanceID": fields.Str(required=True, dump_to="InstanceID"),
|
|
292
|
+
"ProjectId": fields.Str(required=False, dump_to="ProjectId"),
|
|
293
|
+
"Region": fields.Str(required=True, dump_to="Region"),
|
|
294
|
+
"Zone": fields.Str(required=False, dump_to="Zone"),
|
|
295
|
+
}
|
|
296
|
+
|
|
297
|
+
|
|
298
|
+
class GetUPgSQLInstanceResponseSchema(schema.ResponseSchema):
|
|
299
|
+
"""GetUPgSQLInstance - 获取PG云数据库实例描述"""
|
|
300
|
+
|
|
301
|
+
fields = {
|
|
302
|
+
"DataSet": models.UDBInstanceSchema(),
|
|
303
|
+
"Message": fields.Str(required=True, load_from="Message"),
|
|
304
|
+
}
|
|
305
|
+
|
|
306
|
+
|
|
307
|
+
"""
|
|
308
|
+
API: GetUPgSQLInstanceLog
|
|
309
|
+
|
|
310
|
+
可以查询DB的错误日志和满查询日志
|
|
311
|
+
"""
|
|
312
|
+
|
|
313
|
+
|
|
314
|
+
class GetUPgSQLInstanceLogRequestSchema(schema.RequestSchema):
|
|
315
|
+
"""GetUPgSQLInstanceLog - 可以查询DB的错误日志和满查询日志"""
|
|
316
|
+
|
|
317
|
+
fields = {
|
|
318
|
+
"AccountID": fields.Int(required=True, dump_to="AccountID"),
|
|
319
|
+
"BeginTime": fields.Int(required=True, dump_to="BeginTime"),
|
|
320
|
+
"CompanyID": fields.Int(required=True, dump_to="CompanyID"),
|
|
321
|
+
"DBId": fields.Str(required=True, dump_to="DBId"),
|
|
322
|
+
"EndTime": fields.Int(required=True, dump_to="EndTime"),
|
|
323
|
+
"LogType": fields.Str(required=True, dump_to="LogType"),
|
|
324
|
+
"ProjectId": fields.Str(required=False, dump_to="ProjectId"),
|
|
325
|
+
"Region": fields.Str(required=True, dump_to="Region"),
|
|
326
|
+
"ZoneID": fields.Int(required=True, dump_to="ZoneID"),
|
|
327
|
+
}
|
|
328
|
+
|
|
329
|
+
|
|
330
|
+
class GetUPgSQLInstanceLogResponseSchema(schema.ResponseSchema):
|
|
331
|
+
"""GetUPgSQLInstanceLog - 可以查询DB的错误日志和满查询日志"""
|
|
332
|
+
|
|
333
|
+
fields = {
|
|
334
|
+
"Log": fields.Str(required=True, load_from="Log"),
|
|
335
|
+
}
|
|
336
|
+
|
|
337
|
+
|
|
338
|
+
"""
|
|
339
|
+
API: GetUPgSQLInstancePrice
|
|
340
|
+
|
|
341
|
+
获取创建PG云数据库价格
|
|
342
|
+
"""
|
|
343
|
+
|
|
344
|
+
|
|
345
|
+
class GetUPgSQLInstancePriceRequestSchema(schema.RequestSchema):
|
|
346
|
+
"""GetUPgSQLInstancePrice - 获取创建PG云数据库价格"""
|
|
347
|
+
|
|
348
|
+
fields = {
|
|
349
|
+
"ChargeType": fields.Str(required=False, dump_to="ChargeType"),
|
|
350
|
+
"DiskSpace": fields.Int(required=True, dump_to="DiskSpace"),
|
|
351
|
+
"InstanceMode": fields.Str(required=True, dump_to="InstanceMode"),
|
|
352
|
+
"MachineType": fields.Str(required=True, dump_to="MachineType"),
|
|
353
|
+
"ProjectId": fields.Str(required=False, dump_to="ProjectId"),
|
|
354
|
+
"Quantity": fields.Int(required=False, dump_to="Quantity"),
|
|
355
|
+
"Region": fields.Str(required=True, dump_to="Region"),
|
|
356
|
+
"Zone": fields.Str(required=True, dump_to="Zone"),
|
|
357
|
+
}
|
|
358
|
+
|
|
359
|
+
|
|
360
|
+
class GetUPgSQLInstancePriceResponseSchema(schema.ResponseSchema):
|
|
361
|
+
"""GetUPgSQLInstancePrice - 获取创建PG云数据库价格"""
|
|
362
|
+
|
|
363
|
+
fields = {
|
|
364
|
+
"PriceSet": fields.List(
|
|
365
|
+
models.UPgSQLInstancePriceSetSchema(),
|
|
366
|
+
required=False,
|
|
367
|
+
load_from="PriceSet",
|
|
368
|
+
),
|
|
369
|
+
}
|
|
370
|
+
|
|
371
|
+
|
|
372
|
+
"""
|
|
373
|
+
API: GetUPgSQLParamTemplate
|
|
374
|
+
|
|
375
|
+
获取模板信息
|
|
376
|
+
"""
|
|
377
|
+
|
|
378
|
+
|
|
379
|
+
class GetUPgSQLParamTemplateRequestSchema(schema.RequestSchema):
|
|
380
|
+
"""GetUPgSQLParamTemplate - 获取模板信息"""
|
|
381
|
+
|
|
382
|
+
fields = {
|
|
383
|
+
"GroupID": fields.Int(required=True, dump_to="GroupID"),
|
|
384
|
+
"ProjectId": fields.Str(required=False, dump_to="ProjectId"),
|
|
385
|
+
"Region": fields.Str(required=True, dump_to="Region"),
|
|
386
|
+
"Zone": fields.Str(required=True, dump_to="Zone"),
|
|
387
|
+
}
|
|
388
|
+
|
|
389
|
+
|
|
390
|
+
class GetUPgSQLParamTemplateResponseSchema(schema.ResponseSchema):
|
|
391
|
+
"""GetUPgSQLParamTemplate - 获取模板信息"""
|
|
392
|
+
|
|
393
|
+
fields = {
|
|
394
|
+
"Data": fields.List(
|
|
395
|
+
models.ParamSchema(), required=False, load_from="Data"
|
|
396
|
+
),
|
|
397
|
+
"Message": fields.Str(required=True, load_from="Message"),
|
|
398
|
+
}
|
|
399
|
+
|
|
400
|
+
|
|
401
|
+
"""
|
|
402
|
+
API: GetUPgSQLUpgradePrice
|
|
403
|
+
|
|
404
|
+
获取 PG 云数据库升降级价格
|
|
405
|
+
"""
|
|
406
|
+
|
|
407
|
+
|
|
408
|
+
class GetUPgSQLUpgradePriceRequestSchema(schema.RequestSchema):
|
|
409
|
+
"""GetUPgSQLUpgradePrice - 获取 PG 云数据库升降级价格"""
|
|
410
|
+
|
|
411
|
+
fields = {
|
|
412
|
+
"DiskSpace": fields.Int(required=True, dump_to="DiskSpace"),
|
|
413
|
+
"InstanceID": fields.Str(required=True, dump_to="InstanceID"),
|
|
414
|
+
"InstanceMode": fields.Str(required=False, dump_to="InstanceMode"),
|
|
415
|
+
"MachineType": fields.Str(required=True, dump_to="MachineType"),
|
|
416
|
+
"ProjectId": fields.Str(required=False, dump_to="ProjectId"),
|
|
417
|
+
"Region": fields.Str(required=True, dump_to="Region"),
|
|
418
|
+
"Zone": fields.Str(required=True, dump_to="Zone"),
|
|
419
|
+
}
|
|
420
|
+
|
|
421
|
+
|
|
422
|
+
class GetUPgSQLUpgradePriceResponseSchema(schema.ResponseSchema):
|
|
423
|
+
"""GetUPgSQLUpgradePrice - 获取 PG 云数据库升降级价格"""
|
|
424
|
+
|
|
425
|
+
fields = {
|
|
426
|
+
"OriginalPrice": fields.Float(required=True, load_from="OriginalPrice"),
|
|
427
|
+
"Price": fields.Float(required=True, load_from="Price"),
|
|
428
|
+
}
|
|
429
|
+
|
|
430
|
+
|
|
431
|
+
"""
|
|
432
|
+
API: ListUPgSQLBackup
|
|
433
|
+
|
|
434
|
+
获取备份列表
|
|
435
|
+
"""
|
|
436
|
+
|
|
437
|
+
|
|
438
|
+
class ListUPgSQLBackupRequestSchema(schema.RequestSchema):
|
|
439
|
+
"""ListUPgSQLBackup - 获取备份列表"""
|
|
440
|
+
|
|
441
|
+
fields = {
|
|
442
|
+
"BackupType": fields.Int(required=False, dump_to="BackupType"),
|
|
443
|
+
"InstanceID": fields.Str(required=True, dump_to="InstanceID"),
|
|
444
|
+
"Limit": fields.Int(required=False, dump_to="Limit"),
|
|
445
|
+
"Offset": fields.Int(required=False, dump_to="Offset"),
|
|
446
|
+
"ProjectId": fields.Str(required=False, dump_to="ProjectId"),
|
|
447
|
+
"Region": fields.Str(required=True, dump_to="Region"),
|
|
448
|
+
"Zone": fields.Str(required=True, dump_to="Zone"),
|
|
449
|
+
}
|
|
450
|
+
|
|
451
|
+
|
|
452
|
+
class ListUPgSQLBackupResponseSchema(schema.ResponseSchema):
|
|
453
|
+
"""ListUPgSQLBackup - 获取备份列表"""
|
|
454
|
+
|
|
455
|
+
fields = {
|
|
456
|
+
"DataSet": fields.List(
|
|
457
|
+
models.UPgSQLBackupSchema(), required=True, load_from="DataSet"
|
|
458
|
+
),
|
|
459
|
+
"Message": fields.Str(required=True, load_from="Message"),
|
|
460
|
+
"TotalCount": fields.Int(required=True, load_from="TotalCount"),
|
|
461
|
+
}
|
|
462
|
+
|
|
463
|
+
|
|
464
|
+
"""
|
|
465
|
+
API: ListUPgSQLInstance
|
|
466
|
+
|
|
467
|
+
获取PG云数据库列表
|
|
468
|
+
"""
|
|
469
|
+
|
|
470
|
+
|
|
471
|
+
class ListUPgSQLInstanceRequestSchema(schema.RequestSchema):
|
|
472
|
+
"""ListUPgSQLInstance - 获取PG云数据库列表"""
|
|
473
|
+
|
|
474
|
+
fields = {
|
|
475
|
+
"ProjectId": fields.Str(required=False, dump_to="ProjectId"),
|
|
476
|
+
"Region": fields.Str(required=True, dump_to="Region"),
|
|
477
|
+
"Zone": fields.Str(required=False, dump_to="Zone"),
|
|
478
|
+
}
|
|
479
|
+
|
|
480
|
+
|
|
481
|
+
class ListUPgSQLInstanceResponseSchema(schema.ResponseSchema):
|
|
482
|
+
"""ListUPgSQLInstance - 获取PG云数据库列表"""
|
|
483
|
+
|
|
484
|
+
fields = {
|
|
485
|
+
"DataSet": fields.List(
|
|
486
|
+
models.UDBInstanceSetSchema(), required=True, load_from="DataSet"
|
|
487
|
+
),
|
|
488
|
+
"Message": fields.Str(required=True, load_from="Message"),
|
|
489
|
+
}
|
|
490
|
+
|
|
491
|
+
|
|
492
|
+
"""
|
|
493
|
+
API: ListUPgSQLLog
|
|
494
|
+
|
|
495
|
+
获取数据库日志
|
|
496
|
+
"""
|
|
497
|
+
|
|
498
|
+
|
|
499
|
+
class ListUPgSQLLogRequestSchema(schema.RequestSchema):
|
|
500
|
+
"""ListUPgSQLLog - 获取数据库日志"""
|
|
501
|
+
|
|
502
|
+
fields = {
|
|
503
|
+
"BeginTime": fields.Int(required=True, dump_to="BeginTime"),
|
|
504
|
+
"EndTime": fields.Int(required=True, dump_to="EndTime"),
|
|
505
|
+
"InstanceID": fields.Str(required=True, dump_to="InstanceID"),
|
|
506
|
+
"ProjectId": fields.Str(required=False, dump_to="ProjectId"),
|
|
507
|
+
"Region": fields.Str(required=True, dump_to="Region"),
|
|
508
|
+
"Zone": fields.Str(required=True, dump_to="Zone"),
|
|
509
|
+
}
|
|
510
|
+
|
|
511
|
+
|
|
512
|
+
class ListUPgSQLLogResponseSchema(schema.ResponseSchema):
|
|
513
|
+
"""ListUPgSQLLog - 获取数据库日志"""
|
|
514
|
+
|
|
515
|
+
fields = {
|
|
516
|
+
"DataSet": fields.List(
|
|
517
|
+
models.LogSetSchema(), required=True, load_from="DataSet"
|
|
518
|
+
),
|
|
519
|
+
"Message": fields.Str(required=True, load_from="Message"),
|
|
520
|
+
}
|
|
521
|
+
|
|
522
|
+
|
|
523
|
+
"""
|
|
524
|
+
API: ListUPgSQLMachineType
|
|
525
|
+
|
|
526
|
+
获取UPgSQL支持机器类型列表
|
|
527
|
+
"""
|
|
528
|
+
|
|
529
|
+
|
|
530
|
+
class ListUPgSQLMachineTypeRequestSchema(schema.RequestSchema):
|
|
531
|
+
"""ListUPgSQLMachineType - 获取UPgSQL支持机器类型列表"""
|
|
532
|
+
|
|
533
|
+
fields = {
|
|
534
|
+
"ProjectId": fields.Str(required=False, dump_to="ProjectId"),
|
|
535
|
+
"Region": fields.Str(required=True, dump_to="Region"),
|
|
536
|
+
"Zone": fields.Str(required=True, dump_to="Zone"),
|
|
537
|
+
}
|
|
538
|
+
|
|
539
|
+
|
|
540
|
+
class ListUPgSQLMachineTypeResponseSchema(schema.ResponseSchema):
|
|
541
|
+
"""ListUPgSQLMachineType - 获取UPgSQL支持机器类型列表"""
|
|
542
|
+
|
|
543
|
+
fields = {
|
|
544
|
+
"DataSet": fields.List(
|
|
545
|
+
models.PgSQLMachineTypeSchema(), required=True, load_from="DataSet"
|
|
546
|
+
),
|
|
547
|
+
"Message": fields.Str(required=True, load_from="Message"),
|
|
548
|
+
}
|
|
549
|
+
|
|
550
|
+
|
|
551
|
+
"""
|
|
552
|
+
API: ListUPgSQLVersion
|
|
553
|
+
|
|
554
|
+
获取UPgSQL支持版本列表
|
|
555
|
+
"""
|
|
556
|
+
|
|
557
|
+
|
|
558
|
+
class ListUPgSQLVersionRequestSchema(schema.RequestSchema):
|
|
559
|
+
"""ListUPgSQLVersion - 获取UPgSQL支持版本列表"""
|
|
560
|
+
|
|
561
|
+
fields = {
|
|
562
|
+
"ProjectId": fields.Str(required=False, dump_to="ProjectId"),
|
|
563
|
+
"Region": fields.Str(required=True, dump_to="Region"),
|
|
564
|
+
"Zone": fields.Str(required=True, dump_to="Zone"),
|
|
565
|
+
}
|
|
566
|
+
|
|
567
|
+
|
|
568
|
+
class ListUPgSQLVersionResponseSchema(schema.ResponseSchema):
|
|
569
|
+
"""ListUPgSQLVersion - 获取UPgSQL支持版本列表"""
|
|
570
|
+
|
|
571
|
+
fields = {
|
|
572
|
+
"DataSet": fields.List(
|
|
573
|
+
models.PgSQLVersionSchema(), required=True, load_from="DataSet"
|
|
574
|
+
),
|
|
575
|
+
"Message": fields.Str(required=True, load_from="Message"),
|
|
576
|
+
}
|
|
577
|
+
|
|
578
|
+
|
|
579
|
+
"""
|
|
580
|
+
API: RestartUPgSQLInstance
|
|
581
|
+
|
|
582
|
+
重启PG实例
|
|
583
|
+
"""
|
|
584
|
+
|
|
585
|
+
|
|
586
|
+
class RestartUPgSQLInstanceRequestSchema(schema.RequestSchema):
|
|
587
|
+
"""RestartUPgSQLInstance - 重启PG实例"""
|
|
588
|
+
|
|
589
|
+
fields = {
|
|
590
|
+
"ForceToRestart": fields.Bool(required=False, dump_to="ForceToRestart"),
|
|
591
|
+
"InstanceID": fields.Str(required=True, dump_to="InstanceID"),
|
|
592
|
+
"ProjectId": fields.Str(required=False, dump_to="ProjectId"),
|
|
593
|
+
"Region": fields.Str(required=True, dump_to="Region"),
|
|
594
|
+
"RestartHost": fields.Bool(required=False, dump_to="RestartHost"),
|
|
595
|
+
"Zone": fields.Str(required=True, dump_to="Zone"),
|
|
596
|
+
}
|
|
597
|
+
|
|
598
|
+
|
|
599
|
+
class RestartUPgSQLInstanceResponseSchema(schema.ResponseSchema):
|
|
600
|
+
"""RestartUPgSQLInstance - 重启PG实例"""
|
|
601
|
+
|
|
602
|
+
fields = {
|
|
603
|
+
"Message": fields.Str(required=True, load_from="Message"),
|
|
604
|
+
}
|
|
605
|
+
|
|
606
|
+
|
|
607
|
+
"""
|
|
608
|
+
API: StartUPgSQLInstance
|
|
609
|
+
|
|
610
|
+
启动 PG实例
|
|
611
|
+
"""
|
|
612
|
+
|
|
613
|
+
|
|
614
|
+
class StartUPgSQLInstanceRequestSchema(schema.RequestSchema):
|
|
615
|
+
"""StartUPgSQLInstance - 启动 PG实例"""
|
|
616
|
+
|
|
617
|
+
fields = {
|
|
618
|
+
"InstanceID": fields.Str(required=True, dump_to="InstanceID"),
|
|
619
|
+
"ProjectId": fields.Str(required=False, dump_to="ProjectId"),
|
|
620
|
+
"Region": fields.Str(required=True, dump_to="Region"),
|
|
621
|
+
"Zone": fields.Str(required=True, dump_to="Zone"),
|
|
622
|
+
}
|
|
623
|
+
|
|
624
|
+
|
|
625
|
+
class StartUPgSQLInstanceResponseSchema(schema.ResponseSchema):
|
|
626
|
+
"""StartUPgSQLInstance - 启动 PG实例"""
|
|
627
|
+
|
|
628
|
+
fields = {
|
|
629
|
+
"Message": fields.Str(required=True, load_from="Message"),
|
|
630
|
+
}
|
|
631
|
+
|
|
632
|
+
|
|
633
|
+
"""
|
|
634
|
+
API: StopUPgSQLCreatingReadonly
|
|
635
|
+
|
|
636
|
+
停止创建从库
|
|
637
|
+
"""
|
|
638
|
+
|
|
639
|
+
|
|
640
|
+
class StopUPgSQLCreatingReadonlyRequestSchema(schema.RequestSchema):
|
|
641
|
+
"""StopUPgSQLCreatingReadonly - 停止创建从库"""
|
|
642
|
+
|
|
643
|
+
fields = {
|
|
644
|
+
"InstanceID": fields.Str(required=True, dump_to="InstanceID"),
|
|
645
|
+
"ProjectId": fields.Str(required=False, dump_to="ProjectId"),
|
|
646
|
+
"Region": fields.Str(required=True, dump_to="Region"),
|
|
647
|
+
"Zone": fields.Str(required=True, dump_to="Zone"),
|
|
648
|
+
}
|
|
649
|
+
|
|
650
|
+
|
|
651
|
+
class StopUPgSQLCreatingReadonlyResponseSchema(schema.ResponseSchema):
|
|
652
|
+
"""StopUPgSQLCreatingReadonly - 停止创建从库"""
|
|
653
|
+
|
|
654
|
+
fields = {}
|
|
655
|
+
|
|
656
|
+
|
|
657
|
+
"""
|
|
658
|
+
API: StopUPgSQLInstance
|
|
659
|
+
|
|
660
|
+
关闭PG实例
|
|
661
|
+
"""
|
|
662
|
+
|
|
663
|
+
|
|
664
|
+
class StopUPgSQLInstanceRequestSchema(schema.RequestSchema):
|
|
665
|
+
"""StopUPgSQLInstance - 关闭PG实例"""
|
|
666
|
+
|
|
667
|
+
fields = {
|
|
668
|
+
"ForceToStop": fields.Bool(required=False, dump_to="ForceToStop"),
|
|
669
|
+
"InstanceID": fields.Str(required=True, dump_to="InstanceID"),
|
|
670
|
+
"ProjectId": fields.Str(required=False, dump_to="ProjectId"),
|
|
671
|
+
"Region": fields.Str(required=True, dump_to="Region"),
|
|
672
|
+
"StopHost": fields.Bool(required=False, dump_to="StopHost"),
|
|
673
|
+
"Zone": fields.Str(required=True, dump_to="Zone"),
|
|
674
|
+
}
|
|
675
|
+
|
|
676
|
+
|
|
677
|
+
class StopUPgSQLInstanceResponseSchema(schema.ResponseSchema):
|
|
678
|
+
"""StopUPgSQLInstance - 关闭PG实例"""
|
|
679
|
+
|
|
680
|
+
fields = {
|
|
681
|
+
"Message": fields.Str(required=True, load_from="Message"),
|
|
682
|
+
}
|
|
683
|
+
|
|
684
|
+
|
|
685
|
+
"""
|
|
686
|
+
API: UpdateUPgSQLAttribute
|
|
687
|
+
|
|
688
|
+
更新数据库属性
|
|
689
|
+
"""
|
|
690
|
+
|
|
691
|
+
|
|
692
|
+
class UpdateUPgSQLAttributeRequestSchema(schema.RequestSchema):
|
|
693
|
+
"""UpdateUPgSQLAttribute - 更新数据库属性"""
|
|
694
|
+
|
|
695
|
+
fields = {
|
|
696
|
+
"InstanceID": fields.Str(required=True, dump_to="InstanceID"),
|
|
697
|
+
"Name": fields.Str(required=False, dump_to="Name"),
|
|
698
|
+
"ProjectId": fields.Str(required=False, dump_to="ProjectId"),
|
|
699
|
+
"Region": fields.Str(required=True, dump_to="Region"),
|
|
700
|
+
"Remark": fields.Str(required=False, dump_to="Remark"),
|
|
701
|
+
"Zone": fields.Str(required=True, dump_to="Zone"),
|
|
702
|
+
}
|
|
703
|
+
|
|
704
|
+
|
|
705
|
+
class UpdateUPgSQLAttributeResponseSchema(schema.ResponseSchema):
|
|
706
|
+
"""UpdateUPgSQLAttribute - 更新数据库属性"""
|
|
707
|
+
|
|
708
|
+
fields = {
|
|
709
|
+
"Message": fields.Str(required=True, load_from="Message"),
|
|
710
|
+
}
|
|
711
|
+
|
|
712
|
+
|
|
713
|
+
"""
|
|
714
|
+
API: UpdateUPgSQLBackupStrategy
|
|
715
|
+
|
|
716
|
+
修改备份策略
|
|
717
|
+
"""
|
|
718
|
+
|
|
719
|
+
|
|
720
|
+
class UpdateUPgSQLBackupStrategyRequestSchema(schema.RequestSchema):
|
|
721
|
+
"""UpdateUPgSQLBackupStrategy - 修改备份策略"""
|
|
722
|
+
|
|
723
|
+
fields = {
|
|
724
|
+
"BackupMethod": fields.Str(required=False, dump_to="BackupMethod"),
|
|
725
|
+
"BackupTimeRange": fields.Str(
|
|
726
|
+
required=False, dump_to="BackupTimeRange"
|
|
727
|
+
),
|
|
728
|
+
"BackupWeek": fields.Str(required=False, dump_to="BackupWeek"),
|
|
729
|
+
"InstanceID": fields.Str(required=True, dump_to="InstanceID"),
|
|
730
|
+
"ProjectId": fields.Str(required=False, dump_to="ProjectId"),
|
|
731
|
+
"Region": fields.Str(required=True, dump_to="Region"),
|
|
732
|
+
"Zone": fields.Str(required=True, dump_to="Zone"),
|
|
733
|
+
}
|
|
734
|
+
|
|
735
|
+
|
|
736
|
+
class UpdateUPgSQLBackupStrategyResponseSchema(schema.ResponseSchema):
|
|
737
|
+
"""UpdateUPgSQLBackupStrategy - 修改备份策略"""
|
|
738
|
+
|
|
739
|
+
fields = {
|
|
740
|
+
"Message": fields.Str(required=True, load_from="Message"),
|
|
741
|
+
}
|
|
742
|
+
|
|
743
|
+
|
|
744
|
+
"""
|
|
745
|
+
API: UpdateUPgSQLPassword
|
|
746
|
+
|
|
747
|
+
更新数据库密码
|
|
748
|
+
"""
|
|
749
|
+
|
|
750
|
+
|
|
751
|
+
class UpdateUPgSQLPasswordRequestSchema(schema.RequestSchema):
|
|
752
|
+
"""UpdateUPgSQLPassword - 更新数据库密码"""
|
|
753
|
+
|
|
754
|
+
fields = {
|
|
755
|
+
"InstanceID": fields.Str(required=True, dump_to="InstanceID"),
|
|
756
|
+
"Password": fields.Str(required=True, dump_to="Password"),
|
|
757
|
+
"ProjectId": fields.Str(required=False, dump_to="ProjectId"),
|
|
758
|
+
"Region": fields.Str(required=True, dump_to="Region"),
|
|
759
|
+
"Zone": fields.Str(required=True, dump_to="Zone"),
|
|
760
|
+
}
|
|
761
|
+
|
|
762
|
+
|
|
763
|
+
class UpdateUPgSQLPasswordResponseSchema(schema.ResponseSchema):
|
|
764
|
+
"""UpdateUPgSQLPassword - 更新数据库密码"""
|
|
765
|
+
|
|
766
|
+
fields = {
|
|
767
|
+
"Message": fields.Str(required=True, load_from="Message"),
|
|
768
|
+
}
|
|
769
|
+
|
|
770
|
+
|
|
771
|
+
"""
|
|
772
|
+
API: UpgradeUPgSQLInstance
|
|
773
|
+
|
|
774
|
+
硬件规格升降级
|
|
775
|
+
"""
|
|
776
|
+
|
|
777
|
+
|
|
778
|
+
class UpgradeUPgSQLInstanceRequestSchema(schema.RequestSchema):
|
|
779
|
+
"""UpgradeUPgSQLInstance - 硬件规格升降级"""
|
|
780
|
+
|
|
781
|
+
fields = {
|
|
782
|
+
"DiskSpace": fields.Int(required=True, dump_to="DiskSpace"),
|
|
783
|
+
"InstanceID": fields.Str(required=True, dump_to="InstanceID"),
|
|
784
|
+
"MachineType": fields.Str(required=True, dump_to="MachineType"),
|
|
785
|
+
"ProjectId": fields.Str(required=False, dump_to="ProjectId"),
|
|
786
|
+
"Region": fields.Str(required=True, dump_to="Region"),
|
|
787
|
+
"Zone": fields.Str(required=True, dump_to="Zone"),
|
|
788
|
+
}
|
|
789
|
+
|
|
790
|
+
|
|
791
|
+
class UpgradeUPgSQLInstanceResponseSchema(schema.ResponseSchema):
|
|
792
|
+
"""UpgradeUPgSQLInstance - 硬件规格升降级"""
|
|
793
|
+
|
|
794
|
+
fields = {
|
|
795
|
+
"Message": fields.Str(required=False, load_from="Message"),
|
|
796
|
+
}
|
|
797
|
+
|
|
798
|
+
|
|
799
|
+
"""
|
|
800
|
+
API: UploadUPgSQLParamTemplate
|
|
801
|
+
|
|
802
|
+
上传参数模板
|
|
803
|
+
"""
|
|
804
|
+
|
|
805
|
+
|
|
806
|
+
class UploadUPgSQLParamTemplateRequestSchema(schema.RequestSchema):
|
|
807
|
+
"""UploadUPgSQLParamTemplate - 上传参数模板"""
|
|
808
|
+
|
|
809
|
+
fields = {
|
|
810
|
+
"Content": fields.Str(required=True, dump_to="Content"),
|
|
811
|
+
"DBVersion": fields.Str(required=True, dump_to="DBVersion"),
|
|
812
|
+
"Description": fields.Str(required=False, dump_to="Description"),
|
|
813
|
+
"GroupName": fields.Str(required=True, dump_to="GroupName"),
|
|
814
|
+
"ParamGroupType": fields.Str(required=False, dump_to="ParamGroupType"),
|
|
815
|
+
"ProjectId": fields.Str(required=False, dump_to="ProjectId"),
|
|
816
|
+
"Region": fields.Str(required=True, dump_to="Region"),
|
|
817
|
+
"Zone": fields.Str(required=True, dump_to="Zone"),
|
|
818
|
+
}
|
|
819
|
+
|
|
820
|
+
|
|
821
|
+
class UploadUPgSQLParamTemplateResponseSchema(schema.ResponseSchema):
|
|
822
|
+
"""UploadUPgSQLParamTemplate - 上传参数模板"""
|
|
823
|
+
|
|
824
|
+
fields = {
|
|
825
|
+
"GroupID": fields.Int(required=True, load_from="GroupID"),
|
|
826
|
+
"Message": fields.Str(required=True, load_from="Message"),
|
|
827
|
+
}
|