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,175 @@
|
|
|
1
|
+
""" Code is generated by ucloud-model, DO NOT EDIT IT. """
|
|
2
|
+
|
|
3
|
+
from ucloud.core.typesystem import schema, fields
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
class PHostComponentSetSchema(schema.ResponseSchema):
|
|
7
|
+
"""PHostComponentSet - GetPHostTypeInfo"""
|
|
8
|
+
|
|
9
|
+
fields = {
|
|
10
|
+
"Count": fields.Int(required=False, load_from="Count"),
|
|
11
|
+
"Name": fields.Str(required=False, load_from="Name"),
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
class PHostClusterSetSchema(schema.ResponseSchema):
|
|
16
|
+
"""PHostClusterSet - 物理云主机集群库存信息"""
|
|
17
|
+
|
|
18
|
+
fields = {
|
|
19
|
+
"Name": fields.Str(required=False, load_from="Name"),
|
|
20
|
+
"StockStatus": fields.Str(required=False, load_from="StockStatus"),
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
|
|
24
|
+
class PHostCPUSetSchema(schema.ResponseSchema):
|
|
25
|
+
"""PHostCPUSet - DescribePHost"""
|
|
26
|
+
|
|
27
|
+
fields = {
|
|
28
|
+
"CoreCount": fields.Int(required=False, load_from="CoreCount"),
|
|
29
|
+
"Count": fields.Int(required=False, load_from="Count"),
|
|
30
|
+
"Frequence": fields.Float(required=False, load_from="Frequence"),
|
|
31
|
+
"Model": fields.Str(required=False, load_from="Model"),
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
|
|
35
|
+
class PHostCloudMachineTypeSetSchema(schema.ResponseSchema):
|
|
36
|
+
"""PHostCloudMachineTypeSet - 裸金属云盘的MachineTypeSet"""
|
|
37
|
+
|
|
38
|
+
fields = {
|
|
39
|
+
"CPU": PHostCPUSetSchema(),
|
|
40
|
+
"Clusters": fields.List(PHostClusterSetSchema()),
|
|
41
|
+
"Components": PHostComponentSetSchema(),
|
|
42
|
+
"Memory": fields.Int(required=False, load_from="Memory"),
|
|
43
|
+
"Type": fields.Str(required=True, load_from="Type"),
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
|
|
47
|
+
class PHostIPSetSchema(schema.ResponseSchema):
|
|
48
|
+
"""PHostIPSet - DescribePHost"""
|
|
49
|
+
|
|
50
|
+
fields = {
|
|
51
|
+
"Bandwidth": fields.Int(required=False, load_from="Bandwidth"),
|
|
52
|
+
"IPAddr": fields.Str(required=False, load_from="IPAddr"),
|
|
53
|
+
"IPId": fields.Str(required=False, load_from="IPId"),
|
|
54
|
+
"MACAddr": fields.Str(required=False, load_from="MACAddr"),
|
|
55
|
+
"OperatorName": fields.Str(required=False, load_from="OperatorName"),
|
|
56
|
+
"SubnetId": fields.Str(required=False, load_from="SubnetId"),
|
|
57
|
+
"VPCId": fields.Str(required=False, load_from="VPCId"),
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
|
|
61
|
+
class PHostDescDiskSetSchema(schema.ResponseSchema):
|
|
62
|
+
"""PHostDescDiskSet - DescribePHost(包括传统和裸金属1、裸金属2)"""
|
|
63
|
+
|
|
64
|
+
fields = {
|
|
65
|
+
"Count": fields.Int(required=False, load_from="Count"),
|
|
66
|
+
"DiskId": fields.Str(required=False, load_from="DiskId"),
|
|
67
|
+
"Drive": fields.Str(required=False, load_from="Drive"),
|
|
68
|
+
"IOCap": fields.Int(required=False, load_from="IOCap"),
|
|
69
|
+
"IsBoot": fields.Str(required=False, load_from="IsBoot"),
|
|
70
|
+
"Name": fields.Str(required=False, load_from="Name"),
|
|
71
|
+
"Space": fields.Int(required=False, load_from="Space"),
|
|
72
|
+
"Type": fields.Str(required=False, load_from="Type"),
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
|
|
76
|
+
class PHostSetSchema(schema.ResponseSchema):
|
|
77
|
+
"""PHostSet - DescribePHost"""
|
|
78
|
+
|
|
79
|
+
fields = {
|
|
80
|
+
"AutoRenew": fields.Str(required=False, load_from="AutoRenew"),
|
|
81
|
+
"BootDiskState": fields.Str(required=False, load_from="BootDiskState"),
|
|
82
|
+
"CPUSet": PHostCPUSetSchema(),
|
|
83
|
+
"ChargeType": fields.Str(required=False, load_from="ChargeType"),
|
|
84
|
+
"Cluster": fields.Str(required=False, load_from="Cluster"),
|
|
85
|
+
"Components": fields.Str(required=False, load_from="Components"),
|
|
86
|
+
"CreateTime": fields.Int(required=False, load_from="CreateTime"),
|
|
87
|
+
"DiskSet": fields.List(PHostDescDiskSetSchema()),
|
|
88
|
+
"ExpireTime": fields.Int(required=False, load_from="ExpireTime"),
|
|
89
|
+
"IPSet": fields.List(PHostIPSetSchema()),
|
|
90
|
+
"ImageName": fields.Str(required=False, load_from="ImageName"),
|
|
91
|
+
"IsSupportKVM": fields.Str(required=False, load_from="IsSupportKVM"),
|
|
92
|
+
"Memory": fields.Int(required=False, load_from="Memory"),
|
|
93
|
+
"Name": fields.Str(required=False, load_from="Name"),
|
|
94
|
+
"OSType": fields.Str(required=False, load_from="OSType"),
|
|
95
|
+
"OSname": fields.Str(required=False, load_from="OSname"),
|
|
96
|
+
"PHostId": fields.Str(required=False, load_from="PHostId"),
|
|
97
|
+
"PHostType": fields.Str(required=False, load_from="PHostType"),
|
|
98
|
+
"PMStatus": fields.Str(required=False, load_from="PMStatus"),
|
|
99
|
+
"PhostClass": fields.Str(required=False, load_from="PhostClass"),
|
|
100
|
+
"PowerState": fields.Str(required=False, load_from="PowerState"),
|
|
101
|
+
"RaidSupported": fields.Str(required=False, load_from="RaidSupported"),
|
|
102
|
+
"RdmaClusterId": fields.Str(required=False, load_from="RdmaClusterId"),
|
|
103
|
+
"Remark": fields.Str(required=False, load_from="Remark"),
|
|
104
|
+
"SN": fields.Str(required=False, load_from="SN"),
|
|
105
|
+
"Tag": fields.Str(required=False, load_from="Tag"),
|
|
106
|
+
"Zone": fields.Str(required=False, load_from="Zone"),
|
|
107
|
+
}
|
|
108
|
+
|
|
109
|
+
|
|
110
|
+
class PHostImageSetSchema(schema.ResponseSchema):
|
|
111
|
+
"""PHostImageSet - DescribePHostImage"""
|
|
112
|
+
|
|
113
|
+
fields = {
|
|
114
|
+
"CreateTime": fields.Int(required=False, load_from="CreateTime"),
|
|
115
|
+
"ImageDescription": fields.Str(
|
|
116
|
+
required=False, load_from="ImageDescription"
|
|
117
|
+
),
|
|
118
|
+
"ImageId": fields.Str(required=False, load_from="ImageId"),
|
|
119
|
+
"ImageName": fields.Str(required=False, load_from="ImageName"),
|
|
120
|
+
"ImageSize": fields.Int(required=False, load_from="ImageSize"),
|
|
121
|
+
"ImageType": fields.Str(required=False, load_from="ImageType"),
|
|
122
|
+
"OsName": fields.Str(required=False, load_from="OsName"),
|
|
123
|
+
"OsType": fields.Str(required=False, load_from="OsType"),
|
|
124
|
+
"State": fields.Str(required=False, load_from="State"),
|
|
125
|
+
"Support": fields.List(fields.Str()),
|
|
126
|
+
"Version": fields.Str(required=False, load_from="Version"),
|
|
127
|
+
}
|
|
128
|
+
|
|
129
|
+
|
|
130
|
+
class PHostDiskSetSchema(schema.ResponseSchema):
|
|
131
|
+
"""PHostDiskSet - GetPHostTypeInfo"""
|
|
132
|
+
|
|
133
|
+
fields = {
|
|
134
|
+
"Count": fields.Int(required=False, load_from="Count"),
|
|
135
|
+
"IOCap": fields.Int(required=False, load_from="IOCap"),
|
|
136
|
+
"Name": fields.Str(required=False, load_from="Name"),
|
|
137
|
+
"Space": fields.Int(required=False, load_from="Space"),
|
|
138
|
+
"Type": fields.Str(required=False, load_from="Type"),
|
|
139
|
+
}
|
|
140
|
+
|
|
141
|
+
|
|
142
|
+
class PHostMachineTypeSetSchema(schema.ResponseSchema):
|
|
143
|
+
"""PHostMachineTypeSet - 物理云主机机型列表"""
|
|
144
|
+
|
|
145
|
+
fields = {
|
|
146
|
+
"CPU": PHostCPUSetSchema(),
|
|
147
|
+
"Clusters": fields.List(PHostClusterSetSchema()),
|
|
148
|
+
"Components": PHostComponentSetSchema(),
|
|
149
|
+
"Disks": fields.List(PHostDiskSetSchema()),
|
|
150
|
+
"Memory": fields.Int(required=False, load_from="Memory"),
|
|
151
|
+
"RaidSupported": fields.Str(required=False, load_from="RaidSupported"),
|
|
152
|
+
"Type": fields.Str(required=True, load_from="Type"),
|
|
153
|
+
}
|
|
154
|
+
|
|
155
|
+
|
|
156
|
+
class PHostTagSetSchema(schema.ResponseSchema):
|
|
157
|
+
"""PHostTagSet - DescribePHostTags"""
|
|
158
|
+
|
|
159
|
+
fields = {
|
|
160
|
+
"Tag": fields.Str(required=False, load_from="Tag"),
|
|
161
|
+
"TotalCount": fields.Int(required=False, load_from="TotalCount"),
|
|
162
|
+
}
|
|
163
|
+
|
|
164
|
+
|
|
165
|
+
class PHostPriceSetSchema(schema.ResponseSchema):
|
|
166
|
+
"""PHostPriceSet - GetPHostPrice"""
|
|
167
|
+
|
|
168
|
+
fields = {
|
|
169
|
+
"ChargeType": fields.Str(required=False, load_from="ChargeType"),
|
|
170
|
+
"OriginalPrice": fields.Float(
|
|
171
|
+
required=False, load_from="OriginalPrice"
|
|
172
|
+
),
|
|
173
|
+
"Price": fields.Float(required=False, load_from="Price"),
|
|
174
|
+
"Product": fields.Str(required=False, load_from="Product"),
|
|
175
|
+
}
|
|
File without changes
|
|
@@ -0,0 +1,117 @@
|
|
|
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.urocketmq.schemas import apis
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
class URocketMQClient(Client):
|
|
11
|
+
def __init__(
|
|
12
|
+
self, config: dict, transport=None, middleware=None, logger=None
|
|
13
|
+
):
|
|
14
|
+
super(URocketMQClient, self).__init__(
|
|
15
|
+
config, transport, middleware, logger
|
|
16
|
+
)
|
|
17
|
+
|
|
18
|
+
def create_u_rocket_mq_group(
|
|
19
|
+
self, req: typing.Optional[dict] = None, **kwargs
|
|
20
|
+
) -> dict:
|
|
21
|
+
"""CreateURocketMQGroup - 创建一个 Group, 如果同名 Group 在当前 Service 中已存在, 则会失败.
|
|
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
|
+
- **Name** (str) - (Required) Group 名称,支持大小写字母、数字及-, _ ,长度1~36
|
|
28
|
+
- **ServiceId** (str) - (Required) Service ID
|
|
29
|
+
- **Remark** (str) - Group 描述.
|
|
30
|
+
|
|
31
|
+
**Response**
|
|
32
|
+
|
|
33
|
+
- **GroupId** (str) - 新建 Group 的 ID
|
|
34
|
+
- **Message** (str) - 返回信息
|
|
35
|
+
|
|
36
|
+
"""
|
|
37
|
+
# build request
|
|
38
|
+
d = {
|
|
39
|
+
"ProjectId": self.config.project_id,
|
|
40
|
+
"Region": self.config.region,
|
|
41
|
+
}
|
|
42
|
+
req and d.update(req)
|
|
43
|
+
d = apis.CreateURocketMQGroupRequestSchema().dumps(d)
|
|
44
|
+
|
|
45
|
+
# build options
|
|
46
|
+
kwargs["max_retries"] = 0 # ignore retry when api is not idempotent
|
|
47
|
+
|
|
48
|
+
resp = self.invoke("CreateURocketMQGroup", d, **kwargs)
|
|
49
|
+
return apis.CreateURocketMQGroupResponseSchema().loads(resp)
|
|
50
|
+
|
|
51
|
+
def delete_u_rocket_mq_group(
|
|
52
|
+
self, req: typing.Optional[dict] = None, **kwargs
|
|
53
|
+
) -> dict:
|
|
54
|
+
"""DeleteURocketMQGroup - 删除一个已存在的 Group
|
|
55
|
+
|
|
56
|
+
**Request**
|
|
57
|
+
|
|
58
|
+
- **ProjectId** (str) - (Config) 项目ID。 请参考 `GetProjectList接口 <https://docs.ucloud.cn/api/summary/get_project_list>`_
|
|
59
|
+
- **Region** (str) - (Config) 地域。 参见 `地域和可用区列表 <https://docs.ucloud.cn/api/summary/regionlist>`_
|
|
60
|
+
- **GroupName** (str) - (Required) Group名称
|
|
61
|
+
- **ServiceId** (str) - (Required) Service ID
|
|
62
|
+
|
|
63
|
+
**Response**
|
|
64
|
+
|
|
65
|
+
- **Message** (str) - 返回信息
|
|
66
|
+
|
|
67
|
+
"""
|
|
68
|
+
# build request
|
|
69
|
+
d = {
|
|
70
|
+
"ProjectId": self.config.project_id,
|
|
71
|
+
"Region": self.config.region,
|
|
72
|
+
}
|
|
73
|
+
req and d.update(req)
|
|
74
|
+
d = apis.DeleteURocketMQGroupRequestSchema().dumps(d)
|
|
75
|
+
|
|
76
|
+
resp = self.invoke("DeleteURocketMQGroup", d, **kwargs)
|
|
77
|
+
return apis.DeleteURocketMQGroupResponseSchema().loads(resp)
|
|
78
|
+
|
|
79
|
+
def list_u_rocket_mq_group(
|
|
80
|
+
self, req: typing.Optional[dict] = None, **kwargs
|
|
81
|
+
) -> dict:
|
|
82
|
+
"""ListURocketMQGroup - 获取一个 RocketMQ 服务下的所有 Group
|
|
83
|
+
|
|
84
|
+
**Request**
|
|
85
|
+
|
|
86
|
+
- **ProjectId** (str) - (Config) 项目ID。 请参考 `GetProjectList接口 <https://docs.ucloud.cn/api/summary/get_project_list>`_
|
|
87
|
+
- **Region** (str) - (Config) 地域。 参见 `地域和可用区列表 <https://docs.ucloud.cn/api/summary/regionlist>`_
|
|
88
|
+
- **ServiceId** (str) - (Required) Service ID
|
|
89
|
+
- **Limit** (int) - 最多返回的条目数量, (0, 1000], 默认 50 条
|
|
90
|
+
- **Offset** (int) - 查询起始位置, [0, ∞)
|
|
91
|
+
|
|
92
|
+
**Response**
|
|
93
|
+
|
|
94
|
+
- **GroupList** (list) - 见 **GroupBaseInfo** 模型定义
|
|
95
|
+
- **Message** (str) - 返回信息
|
|
96
|
+
- **TotalCount** (int) - 记录总数
|
|
97
|
+
|
|
98
|
+
**Response Model**
|
|
99
|
+
|
|
100
|
+
**GroupBaseInfo**
|
|
101
|
+
- **CreateTime** (int) - Group 创建时间
|
|
102
|
+
- **GroupName** (str) - Group 名称
|
|
103
|
+
- **Id** (str) - Group ID
|
|
104
|
+
- **Remark** (str) - Group 描述
|
|
105
|
+
|
|
106
|
+
|
|
107
|
+
"""
|
|
108
|
+
# build request
|
|
109
|
+
d = {
|
|
110
|
+
"ProjectId": self.config.project_id,
|
|
111
|
+
"Region": self.config.region,
|
|
112
|
+
}
|
|
113
|
+
req and d.update(req)
|
|
114
|
+
d = apis.ListURocketMQGroupRequestSchema().dumps(d)
|
|
115
|
+
|
|
116
|
+
resp = self.invoke("ListURocketMQGroup", d, **kwargs)
|
|
117
|
+
return apis.ListURocketMQGroupResponseSchema().loads(resp)
|
|
File without changes
|
|
@@ -0,0 +1,92 @@
|
|
|
1
|
+
""" Code is generated by ucloud-model, DO NOT EDIT IT. """
|
|
2
|
+
|
|
3
|
+
from ucloud.core.typesystem import schema, fields
|
|
4
|
+
from ucloud.services.urocketmq.schemas import models
|
|
5
|
+
|
|
6
|
+
""" URocketMQ API Schema
|
|
7
|
+
"""
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
"""
|
|
11
|
+
API: CreateURocketMQGroup
|
|
12
|
+
|
|
13
|
+
创建一个 Group, 如果同名 Group 在当前 Service 中已存在, 则会失败.
|
|
14
|
+
"""
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
class CreateURocketMQGroupRequestSchema(schema.RequestSchema):
|
|
18
|
+
"""CreateURocketMQGroup - 创建一个 Group, 如果同名 Group 在当前 Service 中已存在, 则会失败."""
|
|
19
|
+
|
|
20
|
+
fields = {
|
|
21
|
+
"Name": fields.Str(required=True, dump_to="Name"),
|
|
22
|
+
"ProjectId": fields.Str(required=True, dump_to="ProjectId"),
|
|
23
|
+
"Region": fields.Str(required=True, dump_to="Region"),
|
|
24
|
+
"Remark": fields.Str(required=False, dump_to="Remark"),
|
|
25
|
+
"ServiceId": fields.Str(required=True, dump_to="ServiceId"),
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
|
|
29
|
+
class CreateURocketMQGroupResponseSchema(schema.ResponseSchema):
|
|
30
|
+
"""CreateURocketMQGroup - 创建一个 Group, 如果同名 Group 在当前 Service 中已存在, 则会失败."""
|
|
31
|
+
|
|
32
|
+
fields = {
|
|
33
|
+
"GroupId": fields.Str(required=True, load_from="GroupId"),
|
|
34
|
+
"Message": fields.Str(required=False, load_from="Message"),
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
|
|
38
|
+
"""
|
|
39
|
+
API: DeleteURocketMQGroup
|
|
40
|
+
|
|
41
|
+
删除一个已存在的 Group
|
|
42
|
+
"""
|
|
43
|
+
|
|
44
|
+
|
|
45
|
+
class DeleteURocketMQGroupRequestSchema(schema.RequestSchema):
|
|
46
|
+
"""DeleteURocketMQGroup - 删除一个已存在的 Group"""
|
|
47
|
+
|
|
48
|
+
fields = {
|
|
49
|
+
"GroupName": fields.Str(required=True, dump_to="GroupName"),
|
|
50
|
+
"ProjectId": fields.Str(required=True, dump_to="ProjectId"),
|
|
51
|
+
"Region": fields.Str(required=True, dump_to="Region"),
|
|
52
|
+
"ServiceId": fields.Str(required=True, dump_to="ServiceId"),
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
|
|
56
|
+
class DeleteURocketMQGroupResponseSchema(schema.ResponseSchema):
|
|
57
|
+
"""DeleteURocketMQGroup - 删除一个已存在的 Group"""
|
|
58
|
+
|
|
59
|
+
fields = {
|
|
60
|
+
"Message": fields.Str(required=False, load_from="Message"),
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
|
|
64
|
+
"""
|
|
65
|
+
API: ListURocketMQGroup
|
|
66
|
+
|
|
67
|
+
获取一个 RocketMQ 服务下的所有 Group
|
|
68
|
+
"""
|
|
69
|
+
|
|
70
|
+
|
|
71
|
+
class ListURocketMQGroupRequestSchema(schema.RequestSchema):
|
|
72
|
+
"""ListURocketMQGroup - 获取一个 RocketMQ 服务下的所有 Group"""
|
|
73
|
+
|
|
74
|
+
fields = {
|
|
75
|
+
"Limit": fields.Int(required=False, dump_to="Limit"),
|
|
76
|
+
"Offset": fields.Int(required=False, dump_to="Offset"),
|
|
77
|
+
"ProjectId": fields.Str(required=True, dump_to="ProjectId"),
|
|
78
|
+
"Region": fields.Str(required=True, dump_to="Region"),
|
|
79
|
+
"ServiceId": fields.Str(required=True, dump_to="ServiceId"),
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
|
|
83
|
+
class ListURocketMQGroupResponseSchema(schema.ResponseSchema):
|
|
84
|
+
"""ListURocketMQGroup - 获取一个 RocketMQ 服务下的所有 Group"""
|
|
85
|
+
|
|
86
|
+
fields = {
|
|
87
|
+
"GroupList": fields.List(
|
|
88
|
+
models.GroupBaseInfoSchema(), required=False, load_from="GroupList"
|
|
89
|
+
),
|
|
90
|
+
"Message": fields.Str(required=False, load_from="Message"),
|
|
91
|
+
"TotalCount": fields.Int(required=False, load_from="TotalCount"),
|
|
92
|
+
}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
""" Code is generated by ucloud-model, DO NOT EDIT IT. """
|
|
2
|
+
|
|
3
|
+
from ucloud.core.typesystem import schema, fields
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
class GroupBaseInfoSchema(schema.ResponseSchema):
|
|
7
|
+
"""GroupBaseInfo - Group基础信息"""
|
|
8
|
+
|
|
9
|
+
fields = {
|
|
10
|
+
"CreateTime": fields.Int(required=True, load_from="CreateTime"),
|
|
11
|
+
"GroupName": fields.Str(required=True, load_from="GroupName"),
|
|
12
|
+
"Id": fields.Str(required=True, load_from="Id"),
|
|
13
|
+
"Remark": fields.Str(required=True, load_from="Remark"),
|
|
14
|
+
}
|
|
File without changes
|
|
@@ -0,0 +1,249 @@
|
|
|
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.uslk.schemas import apis
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
class USLKClient(Client):
|
|
11
|
+
def __init__(
|
|
12
|
+
self, config: dict, transport=None, middleware=None, logger=None
|
|
13
|
+
):
|
|
14
|
+
super(USLKClient, self).__init__(config, transport, middleware, logger)
|
|
15
|
+
|
|
16
|
+
def batch_create_uslk_short_link(
|
|
17
|
+
self, req: typing.Optional[dict] = None, **kwargs
|
|
18
|
+
) -> dict:
|
|
19
|
+
"""BatchCreateUSLKShortLink - 批量创建短链接【免审】
|
|
20
|
+
|
|
21
|
+
**Request**
|
|
22
|
+
|
|
23
|
+
- **EndTime** (int) - (Required) 过期时间戳(秒级),传 3376656000 表示生成永久生效短链接
|
|
24
|
+
- **LongLinks** (list) - (Required) 长链接数组,示例: "LongLinks.0": "http://ucloud.cn/0", "LongLinks.1": "http://ucloud.cn/1"
|
|
25
|
+
- **Proto** (str) - (Required) 协议名称:http/https
|
|
26
|
+
- **ScenarioID** (int) - (Required) 场景ID
|
|
27
|
+
- **ShortLinkDomain** (str) - (Required) 短链接域名
|
|
28
|
+
- **StartTime** (int) - (Required) 开始生效时间戳(秒级), 传 3376656000 表示生成永久生效短链接
|
|
29
|
+
|
|
30
|
+
**Response**
|
|
31
|
+
|
|
32
|
+
- **Message** (str) - Message
|
|
33
|
+
- **ShortLinks** (list) - 创建成功的短链接,根据传LongLinks顺序排列
|
|
34
|
+
|
|
35
|
+
"""
|
|
36
|
+
# build request
|
|
37
|
+
d = {}
|
|
38
|
+
req and d.update(req)
|
|
39
|
+
d = apis.BatchCreateUSLKShortLinkRequestSchema().dumps(d)
|
|
40
|
+
|
|
41
|
+
# build options
|
|
42
|
+
kwargs["max_retries"] = 0 # ignore retry when api is not idempotent
|
|
43
|
+
|
|
44
|
+
resp = self.invoke("BatchCreateUSLKShortLink", d, **kwargs)
|
|
45
|
+
return apis.BatchCreateUSLKShortLinkResponseSchema().loads(resp)
|
|
46
|
+
|
|
47
|
+
def create_uslk_long_link(
|
|
48
|
+
self, req: typing.Optional[dict] = None, **kwargs
|
|
49
|
+
) -> dict:
|
|
50
|
+
"""CreateUSLKLongLink - 报备长链接
|
|
51
|
+
|
|
52
|
+
**Request**
|
|
53
|
+
|
|
54
|
+
- **LongLink** (str) - (Required) 要报备的长链接
|
|
55
|
+
- **ScenarioID** (int) - (Required) 场景ID
|
|
56
|
+
|
|
57
|
+
**Response**
|
|
58
|
+
|
|
59
|
+
- **LongLinkID** (int) - 长链接ID
|
|
60
|
+
- **Message** (str) - Message
|
|
61
|
+
- **ReqUuid** (str) - ReqUuid
|
|
62
|
+
|
|
63
|
+
"""
|
|
64
|
+
# build request
|
|
65
|
+
d = {}
|
|
66
|
+
req and d.update(req)
|
|
67
|
+
d = apis.CreateUSLKLongLinkRequestSchema().dumps(d)
|
|
68
|
+
|
|
69
|
+
# build options
|
|
70
|
+
kwargs["max_retries"] = 0 # ignore retry when api is not idempotent
|
|
71
|
+
|
|
72
|
+
resp = self.invoke("CreateUSLKLongLink", d, **kwargs)
|
|
73
|
+
return apis.CreateUSLKLongLinkResponseSchema().loads(resp)
|
|
74
|
+
|
|
75
|
+
def create_uslk_scenario(
|
|
76
|
+
self, req: typing.Optional[dict] = None, **kwargs
|
|
77
|
+
) -> dict:
|
|
78
|
+
"""CreateUSLKScenario - 长链接报备场景创建
|
|
79
|
+
|
|
80
|
+
**Request**
|
|
81
|
+
|
|
82
|
+
- **Scenario** (str) - (Required) 场景名称
|
|
83
|
+
- **ScenarioDesc** (str) - (Required) 场景说明
|
|
84
|
+
|
|
85
|
+
**Response**
|
|
86
|
+
|
|
87
|
+
- **Message** (str) - Message
|
|
88
|
+
- **ReqUuid** (str) - ReqUuid
|
|
89
|
+
- **ScenarioID** (int) - 场景ID
|
|
90
|
+
|
|
91
|
+
"""
|
|
92
|
+
# build request
|
|
93
|
+
d = {}
|
|
94
|
+
req and d.update(req)
|
|
95
|
+
d = apis.CreateUSLKScenarioRequestSchema().dumps(d)
|
|
96
|
+
|
|
97
|
+
# build options
|
|
98
|
+
kwargs["max_retries"] = 0 # ignore retry when api is not idempotent
|
|
99
|
+
|
|
100
|
+
resp = self.invoke("CreateUSLKScenario", d, **kwargs)
|
|
101
|
+
return apis.CreateUSLKScenarioResponseSchema().loads(resp)
|
|
102
|
+
|
|
103
|
+
def create_uslk_short_link(
|
|
104
|
+
self, req: typing.Optional[dict] = None, **kwargs
|
|
105
|
+
) -> dict:
|
|
106
|
+
"""CreateUSLKShortLink - 创建短链接
|
|
107
|
+
|
|
108
|
+
**Request**
|
|
109
|
+
|
|
110
|
+
- **EndTime** (int) - (Required) 过期时间戳,传 3376656000 表示生成永久生效短链接
|
|
111
|
+
- **LongLinkID** (int) - (Required) 长链接ID,状态必须为审核通过
|
|
112
|
+
- **Proto** (str) - (Required) 协议名称:http/https
|
|
113
|
+
- **StartTime** (int) - (Required) 开始生效时间戳, 传 3376656000 表示生成永久生效短链接
|
|
114
|
+
- **Type** (int) - (Required) 链接类型-预留:普通跳转、随机跳转,当前默认普通跳转 1: 普通跳转
|
|
115
|
+
- **ShortLinkDomain** (str) - 短链接域名,默认:uslk.net
|
|
116
|
+
|
|
117
|
+
**Response**
|
|
118
|
+
|
|
119
|
+
- **Message** (str) - Message
|
|
120
|
+
- **ShortLink** (str) - 生成的短链接内容
|
|
121
|
+
|
|
122
|
+
"""
|
|
123
|
+
# build request
|
|
124
|
+
d = {}
|
|
125
|
+
req and d.update(req)
|
|
126
|
+
d = apis.CreateUSLKShortLinkRequestSchema().dumps(d)
|
|
127
|
+
|
|
128
|
+
# build options
|
|
129
|
+
kwargs["max_retries"] = 0 # ignore retry when api is not idempotent
|
|
130
|
+
|
|
131
|
+
resp = self.invoke("CreateUSLKShortLink", d, **kwargs)
|
|
132
|
+
return apis.CreateUSLKShortLinkResponseSchema().loads(resp)
|
|
133
|
+
|
|
134
|
+
def describe_uslk_redirect_records(
|
|
135
|
+
self, req: typing.Optional[dict] = None, **kwargs
|
|
136
|
+
) -> dict:
|
|
137
|
+
"""DescribeUSLKRedirectRecords - 查询短链接访问明细列表
|
|
138
|
+
|
|
139
|
+
**Request**
|
|
140
|
+
|
|
141
|
+
- **EndTime** (int) - (Required) 查询周期结束时间戳(ms级别)
|
|
142
|
+
- **ShortLink** (str) - (Required) 短链接
|
|
143
|
+
- **StartTime** (int) - (Required) 查询周期开始时间戳(ms级别)
|
|
144
|
+
- **FuzzySearch** (str) - 模糊查询字段值,支持根据生成短链接进行模糊查询。支持字段(ShortLink,场景名称)
|
|
145
|
+
- **NumPerPage** (int) - 每页个数,用于分页查找,默认20
|
|
146
|
+
- **OrderBy** (str) - 根据指定字段排序:默认按短链接访问时间:CreateTime 排序
|
|
147
|
+
- **OrderType** (str) - 排序方式。asc-正序 desc-倒序
|
|
148
|
+
- **Page** (int) - 页码,从0开始,用于分页查找
|
|
149
|
+
|
|
150
|
+
**Response**
|
|
151
|
+
|
|
152
|
+
- **Data** (list) - 见 **RedirectRecords** 模型定义
|
|
153
|
+
- **Message** (str) - Message
|
|
154
|
+
- **Total** (int) - 数据总量
|
|
155
|
+
|
|
156
|
+
**Response Model**
|
|
157
|
+
|
|
158
|
+
**RedirectRecords**
|
|
159
|
+
- **AccountID** (int) - 账户ID
|
|
160
|
+
- **Browser** (str) - 访问设备
|
|
161
|
+
- **ClientIP** (str) - 访问IP
|
|
162
|
+
- **Os** (str) - 访问操作系统
|
|
163
|
+
- **ProvinceCode** (str) - 访问省份信息
|
|
164
|
+
- **RedirectTime** (int) - 重定向时间戳 (ms)
|
|
165
|
+
- **RequestTime** (int) - 访问时间戳(ms)
|
|
166
|
+
- **Scenario** (str) - 报备场景
|
|
167
|
+
- **ScenarioID** (int) - 场景ID
|
|
168
|
+
- **ShortLink** (str) - 短链接
|
|
169
|
+
- **ShortLinkDomain** (str) - 短链接域名
|
|
170
|
+
|
|
171
|
+
|
|
172
|
+
"""
|
|
173
|
+
# build request
|
|
174
|
+
d = {}
|
|
175
|
+
req and d.update(req)
|
|
176
|
+
d = apis.DescribeUSLKRedirectRecordsRequestSchema().dumps(d)
|
|
177
|
+
|
|
178
|
+
resp = self.invoke("DescribeUSLKRedirectRecords", d, **kwargs)
|
|
179
|
+
return apis.DescribeUSLKRedirectRecordsResponseSchema().loads(resp)
|
|
180
|
+
|
|
181
|
+
def describe_uslk_short_link_list(
|
|
182
|
+
self, req: typing.Optional[dict] = None, **kwargs
|
|
183
|
+
) -> dict:
|
|
184
|
+
"""DescribeUSLKShortLinkList - 查询短链接列表
|
|
185
|
+
|
|
186
|
+
**Request**
|
|
187
|
+
|
|
188
|
+
- **EndTime** (int) - 查询周期结束时间戳
|
|
189
|
+
- **FuzzySearch** (str) - 模糊查询字段值,支持根据生成短链接进行模糊查询。支持字段(LonkLink,场景名称)
|
|
190
|
+
- **LongLinkID** (int) - 长链接ID
|
|
191
|
+
- **NumPerPage** (int) - 每页个数,用于分页查找,默认20
|
|
192
|
+
- **OrderBy** (str) - 根据指定字段排序:默认按创建时间:CreateTime 排序,支持值:CreateTime,StartTime,EndTime
|
|
193
|
+
- **OrderType** (str) - 排序方式。asc-正序 desc-倒序
|
|
194
|
+
- **Page** (int) - 页码,从0开始,用于分页查找
|
|
195
|
+
- **ScenarioID** (int) - 场景ID
|
|
196
|
+
- **ShortLink** (str) - 短链
|
|
197
|
+
- **StartTime** (int) - 查询周期开始时间戳
|
|
198
|
+
- **Status** (int) - 1: 待生效;2:已生效;3:已失效;4:已删除(预留);5:已封禁
|
|
199
|
+
|
|
200
|
+
**Response**
|
|
201
|
+
|
|
202
|
+
- **Data** (list) - 见 **ShortLink** 模型定义
|
|
203
|
+
- **Message** (str) - Message
|
|
204
|
+
|
|
205
|
+
**Response Model**
|
|
206
|
+
|
|
207
|
+
**ShortLink**
|
|
208
|
+
- **ClickCount** (int) - 累计访问量
|
|
209
|
+
- **ClickCountToday** (int) - 当日访问量
|
|
210
|
+
- **CreateTime** (int) - 短链接创建时间
|
|
211
|
+
- **DeleteTime** (int) - 删除时间戳
|
|
212
|
+
- **EndTime** (int) - 短链接过期时间戳
|
|
213
|
+
- **ID** (int) - 短链接ID
|
|
214
|
+
- **LongLinks** (list) - 关联长链接列表
|
|
215
|
+
- **Operator** (str) - 操作人
|
|
216
|
+
- **Remark** (str) - 操作说明(封禁原因)
|
|
217
|
+
- **Scenario** (str) - 报备场景
|
|
218
|
+
- **ScenarioDesc** (str) - 场景描述
|
|
219
|
+
- **ScenarioID** (int) - 场景ID
|
|
220
|
+
- **SecondaryLinks** (list) - 见 **SecondaryLinkForQuery** 模型定义
|
|
221
|
+
- **ShortLink** (str) - 短链接
|
|
222
|
+
- **ShortLinkDomain** (str) - 短链接域名
|
|
223
|
+
- **StartTime** (int) - 短链接开始生效时间戳
|
|
224
|
+
- **Status** (int) - 短链接状态:1: 待生效;2:已生效;3:已失效;4:已删除(预留);5:已封禁
|
|
225
|
+
- **Type** (int) - 链接类型-预留:1:普通跳转 3:智能跳转等
|
|
226
|
+
- **UniqueClickCount** (int) - 累计独立访问量
|
|
227
|
+
- **UniqueClickCountToday** (int) - 今日独立访问量
|
|
228
|
+
- **UpdateTime** (int) - 更新时间戳
|
|
229
|
+
|
|
230
|
+
|
|
231
|
+
**SecondaryLinkForQuery**
|
|
232
|
+
- **IsSecondary** (bool) - 是否是次链接
|
|
233
|
+
- **LongLink** (str) - 长链接
|
|
234
|
+
- **LongLinkID** (int) - 长链接ID
|
|
235
|
+
- **Oses** (str) - 操作系统,例如: Windows,Android,多个以逗号分隔
|
|
236
|
+
- **ProvinceCodes** (str) - 省份codes,例如: Hebei,Shandong,多个以逗号分隔
|
|
237
|
+
- **Scenario** (str) - 场景名称
|
|
238
|
+
- **ScenarioID** (int) - 场景ID
|
|
239
|
+
- **ShortLongMapID** (int) - 长短链接映射ID
|
|
240
|
+
|
|
241
|
+
|
|
242
|
+
"""
|
|
243
|
+
# build request
|
|
244
|
+
d = {}
|
|
245
|
+
req and d.update(req)
|
|
246
|
+
d = apis.DescribeUSLKShortLinkListRequestSchema().dumps(d)
|
|
247
|
+
|
|
248
|
+
resp = self.invoke("DescribeUSLKShortLinkList", d, **kwargs)
|
|
249
|
+
return apis.DescribeUSLKShortLinkListResponseSchema().loads(resp)
|
|
File without changes
|