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,1799 @@
|
|
|
1
|
+
""" Code is generated by ucloud-model, DO NOT EDIT IT. """
|
|
2
|
+
|
|
3
|
+
from ucloud.core.typesystem import schema, fields
|
|
4
|
+
from ucloud.services.uphone.schemas import models
|
|
5
|
+
|
|
6
|
+
""" UPhone API Schema
|
|
7
|
+
"""
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
"""
|
|
11
|
+
API: CreateUPhone
|
|
12
|
+
|
|
13
|
+
创建云手机
|
|
14
|
+
"""
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
class CreateUPhoneRequestSchema(schema.RequestSchema):
|
|
18
|
+
"""CreateUPhone - 创建云手机"""
|
|
19
|
+
|
|
20
|
+
fields = {
|
|
21
|
+
"Bandwidth": fields.Int(
|
|
22
|
+
required=False, dump_to="Bandwidth"
|
|
23
|
+
), # Deprecated, will be removed at 1.0
|
|
24
|
+
"BindIp": fields.Bool(required=False, dump_to="BindIp"),
|
|
25
|
+
"ChargeType": fields.Str(required=False, dump_to="ChargeType"),
|
|
26
|
+
"CityId": fields.Str(required=True, dump_to="CityId"),
|
|
27
|
+
"CouponId": fields.Str(required=False, dump_to="CouponId"),
|
|
28
|
+
"ImageId": fields.Str(required=True, dump_to="ImageId"),
|
|
29
|
+
"IpDestRegion": fields.Str(required=False, dump_to="IpDestRegion"),
|
|
30
|
+
"IpProportion": fields.Int(required=False, dump_to="IpProportion"),
|
|
31
|
+
"MediaBandwidth": fields.Int(
|
|
32
|
+
required=False, dump_to="MediaBandwidth"
|
|
33
|
+
), # Deprecated, will be removed at 1.0
|
|
34
|
+
"Name": fields.Str(required=True, dump_to="Name"),
|
|
35
|
+
"ProjectId": fields.Str(required=False, dump_to="ProjectId"),
|
|
36
|
+
"Quantity": fields.Str(required=False, dump_to="Quantity"),
|
|
37
|
+
"ShareBandwidthId": fields.Str(
|
|
38
|
+
required=False, dump_to="ShareBandwidthId"
|
|
39
|
+
),
|
|
40
|
+
"ShareBandwidthName": fields.Str(
|
|
41
|
+
required=False, dump_to="ShareBandwidthName"
|
|
42
|
+
),
|
|
43
|
+
"Tag": fields.Str(required=False, dump_to="Tag"),
|
|
44
|
+
"UPhoneBandwidth": fields.Int(
|
|
45
|
+
required=False, dump_to="UPhoneBandwidth"
|
|
46
|
+
),
|
|
47
|
+
"UPhoneCount": fields.Int(required=True, dump_to="UPhoneCount"),
|
|
48
|
+
"UPhoneModelName": fields.Str(required=True, dump_to="UPhoneModelName"),
|
|
49
|
+
"UseGlobalBws": fields.Bool(required=False, dump_to="UseGlobalBws"),
|
|
50
|
+
"UseKbps": fields.Bool(required=False, dump_to="UseKbps"),
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
|
|
54
|
+
class CreateUPhoneResponseSchema(schema.ResponseSchema):
|
|
55
|
+
"""CreateUPhone - 创建云手机"""
|
|
56
|
+
|
|
57
|
+
fields = {
|
|
58
|
+
"JobId": fields.Str(required=True, load_from="JobId"),
|
|
59
|
+
"Message": fields.Str(required=False, load_from="Message"),
|
|
60
|
+
"UPhoneIds": fields.List(
|
|
61
|
+
fields.Str(), required=False, load_from="UPhoneIds"
|
|
62
|
+
),
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
|
|
66
|
+
"""
|
|
67
|
+
API: CreateUPhoneApp
|
|
68
|
+
|
|
69
|
+
一个 app 对应多个 app_version。
|
|
70
|
+
"""
|
|
71
|
+
|
|
72
|
+
|
|
73
|
+
class CreateUPhoneAppRequestSchema(schema.RequestSchema):
|
|
74
|
+
"""CreateUPhoneApp - 一个 app 对应多个 app_version。"""
|
|
75
|
+
|
|
76
|
+
fields = {
|
|
77
|
+
"Description": fields.Str(required=False, dump_to="Description"),
|
|
78
|
+
"Name": fields.Str(required=True, dump_to="Name"),
|
|
79
|
+
"ProductType": fields.Str(required=False, dump_to="ProductType"),
|
|
80
|
+
"ProjectId": fields.Str(required=False, dump_to="ProjectId"),
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
|
|
84
|
+
class CreateUPhoneAppResponseSchema(schema.ResponseSchema):
|
|
85
|
+
"""CreateUPhoneApp - 一个 app 对应多个 app_version。"""
|
|
86
|
+
|
|
87
|
+
fields = {
|
|
88
|
+
"AppId": fields.Str(required=True, load_from="AppId"),
|
|
89
|
+
"Message": fields.Str(required=True, load_from="Message"),
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
|
|
93
|
+
"""
|
|
94
|
+
API: CreateUPhoneAppVersion
|
|
95
|
+
|
|
96
|
+
创建云手机应用版本。
|
|
97
|
+
注:一个 app 对应多个 app_version。
|
|
98
|
+
"""
|
|
99
|
+
|
|
100
|
+
|
|
101
|
+
class CreateUPhoneAppVersionRequestSchema(schema.RequestSchema):
|
|
102
|
+
"""CreateUPhoneAppVersion - 创建云手机应用版本。
|
|
103
|
+
注:一个 app 对应多个 app_version。
|
|
104
|
+
"""
|
|
105
|
+
|
|
106
|
+
fields = {
|
|
107
|
+
"AppId": fields.Str(required=True, dump_to="AppId"),
|
|
108
|
+
"Description": fields.Str(required=False, dump_to="Description"),
|
|
109
|
+
"Name": fields.Str(required=True, dump_to="Name"),
|
|
110
|
+
"ProductType": fields.Str(required=False, dump_to="ProductType"),
|
|
111
|
+
"ProjectId": fields.Str(required=False, dump_to="ProjectId"),
|
|
112
|
+
"URL": fields.Str(required=True, dump_to="URL"),
|
|
113
|
+
}
|
|
114
|
+
|
|
115
|
+
|
|
116
|
+
class CreateUPhoneAppVersionResponseSchema(schema.ResponseSchema):
|
|
117
|
+
"""CreateUPhoneAppVersion - 创建云手机应用版本。
|
|
118
|
+
注:一个 app 对应多个 app_version。
|
|
119
|
+
"""
|
|
120
|
+
|
|
121
|
+
fields = {
|
|
122
|
+
"AppVersionId": fields.Str(required=True, load_from="AppVersionId"),
|
|
123
|
+
}
|
|
124
|
+
|
|
125
|
+
|
|
126
|
+
"""
|
|
127
|
+
API: CreateUPhoneImage
|
|
128
|
+
|
|
129
|
+
创建云手机镜像。
|
|
130
|
+
"""
|
|
131
|
+
|
|
132
|
+
|
|
133
|
+
class CreateUPhoneImageRequestSchema(schema.RequestSchema):
|
|
134
|
+
"""CreateUPhoneImage - 创建云手机镜像。"""
|
|
135
|
+
|
|
136
|
+
fields = {
|
|
137
|
+
"CityId": fields.Str(required=False, dump_to="CityId"),
|
|
138
|
+
"Description": fields.Str(required=False, dump_to="Description"),
|
|
139
|
+
"Name": fields.Str(required=True, dump_to="Name"),
|
|
140
|
+
"ProductType": fields.Str(required=False, dump_to="ProductType"),
|
|
141
|
+
"ProjectId": fields.Str(required=False, dump_to="ProjectId"),
|
|
142
|
+
"UPhoneId": fields.Str(required=True, dump_to="UPhoneId"),
|
|
143
|
+
}
|
|
144
|
+
|
|
145
|
+
|
|
146
|
+
class CreateUPhoneImageResponseSchema(schema.ResponseSchema):
|
|
147
|
+
"""CreateUPhoneImage - 创建云手机镜像。"""
|
|
148
|
+
|
|
149
|
+
fields = {
|
|
150
|
+
"ImageId": fields.Str(required=False, load_from="ImageId"),
|
|
151
|
+
"JobId": fields.Str(required=False, load_from="JobId"),
|
|
152
|
+
"Message": fields.Str(required=True, load_from="Message"),
|
|
153
|
+
}
|
|
154
|
+
|
|
155
|
+
|
|
156
|
+
"""
|
|
157
|
+
API: CreateUPhoneServer
|
|
158
|
+
|
|
159
|
+
创建云手机服务器
|
|
160
|
+
"""
|
|
161
|
+
|
|
162
|
+
|
|
163
|
+
class CreateUPhoneServerParamNetworkInterfaceSchema(schema.RequestSchema):
|
|
164
|
+
"""CreateUPhoneServerParamNetworkInterface -"""
|
|
165
|
+
|
|
166
|
+
fields = {}
|
|
167
|
+
|
|
168
|
+
|
|
169
|
+
class CreateUPhoneServerRequestSchema(schema.RequestSchema):
|
|
170
|
+
"""CreateUPhoneServer - 创建云手机服务器"""
|
|
171
|
+
|
|
172
|
+
fields = {
|
|
173
|
+
"ChargeType": fields.Str(required=False, dump_to="ChargeType"),
|
|
174
|
+
"CityId": fields.Str(required=True, dump_to="CityId"),
|
|
175
|
+
"CouponId": fields.Str(required=False, dump_to="CouponId"),
|
|
176
|
+
"ImageId": fields.Str(required=True, dump_to="ImageId"),
|
|
177
|
+
"IpDestRegion": fields.Str(required=False, dump_to="IpDestRegion"),
|
|
178
|
+
"IpProportion": fields.Int(required=False, dump_to="IpProportion"),
|
|
179
|
+
"Name": fields.Str(required=True, dump_to="Name"),
|
|
180
|
+
"ProjectId": fields.Str(required=False, dump_to="ProjectId"),
|
|
181
|
+
"Quantity": fields.Str(required=False, dump_to="Quantity"),
|
|
182
|
+
"ServerModelName": fields.Str(required=True, dump_to="ServerModelName"),
|
|
183
|
+
"ShareBandwidth": fields.Int(required=False, dump_to="ShareBandwidth"),
|
|
184
|
+
"Tag": fields.Str(required=False, dump_to="Tag"),
|
|
185
|
+
"UPhoneModelName": fields.Str(required=True, dump_to="UPhoneModelName"),
|
|
186
|
+
}
|
|
187
|
+
|
|
188
|
+
|
|
189
|
+
class CreateUPhoneServerResponseSchema(schema.ResponseSchema):
|
|
190
|
+
"""CreateUPhoneServer - 创建云手机服务器"""
|
|
191
|
+
|
|
192
|
+
fields = {
|
|
193
|
+
"Message": fields.Str(required=True, load_from="Message"),
|
|
194
|
+
"ServerId": fields.Str(required=True, load_from="ServerId"),
|
|
195
|
+
}
|
|
196
|
+
|
|
197
|
+
|
|
198
|
+
"""
|
|
199
|
+
API: DeleteUPhone
|
|
200
|
+
|
|
201
|
+
删除云手机
|
|
202
|
+
"""
|
|
203
|
+
|
|
204
|
+
|
|
205
|
+
class DeleteUPhoneRequestSchema(schema.RequestSchema):
|
|
206
|
+
"""DeleteUPhone - 删除云手机"""
|
|
207
|
+
|
|
208
|
+
fields = {
|
|
209
|
+
"CityId": fields.Str(required=False, dump_to="CityId"),
|
|
210
|
+
"ProductType": fields.Str(required=False, dump_to="ProductType"),
|
|
211
|
+
"ProjectId": fields.Str(required=False, dump_to="ProjectId"),
|
|
212
|
+
"UPhoneIds": fields.List(fields.Str()),
|
|
213
|
+
}
|
|
214
|
+
|
|
215
|
+
|
|
216
|
+
class DeleteUPhoneResponseSchema(schema.ResponseSchema):
|
|
217
|
+
"""DeleteUPhone - 删除云手机"""
|
|
218
|
+
|
|
219
|
+
fields = {
|
|
220
|
+
"JobId": fields.Str(required=True, load_from="JobId"),
|
|
221
|
+
}
|
|
222
|
+
|
|
223
|
+
|
|
224
|
+
"""
|
|
225
|
+
API: DeleteUPhoneImage
|
|
226
|
+
|
|
227
|
+
删除自制云手机镜像。
|
|
228
|
+
"""
|
|
229
|
+
|
|
230
|
+
|
|
231
|
+
class DeleteUPhoneImageRequestSchema(schema.RequestSchema):
|
|
232
|
+
"""DeleteUPhoneImage - 删除自制云手机镜像。"""
|
|
233
|
+
|
|
234
|
+
fields = {
|
|
235
|
+
"ImageId": fields.Str(required=True, dump_to="ImageId"),
|
|
236
|
+
"ProductType": fields.Str(required=False, dump_to="ProductType"),
|
|
237
|
+
"ProjectId": fields.Str(required=False, dump_to="ProjectId"),
|
|
238
|
+
}
|
|
239
|
+
|
|
240
|
+
|
|
241
|
+
class DeleteUPhoneImageResponseSchema(schema.ResponseSchema):
|
|
242
|
+
"""DeleteUPhoneImage - 删除自制云手机镜像。"""
|
|
243
|
+
|
|
244
|
+
fields = {
|
|
245
|
+
"ImageId": fields.Str(required=True, load_from="ImageId"),
|
|
246
|
+
"Message": fields.Str(required=True, load_from="Message"),
|
|
247
|
+
}
|
|
248
|
+
|
|
249
|
+
|
|
250
|
+
"""
|
|
251
|
+
API: DeleteUPhoneServer
|
|
252
|
+
|
|
253
|
+
删除云手机服务器。
|
|
254
|
+
"""
|
|
255
|
+
|
|
256
|
+
|
|
257
|
+
class DeleteUPhoneServerRequestSchema(schema.RequestSchema):
|
|
258
|
+
"""DeleteUPhoneServer - 删除云手机服务器。"""
|
|
259
|
+
|
|
260
|
+
fields = {
|
|
261
|
+
"CityId": fields.Str(required=True, dump_to="CityId"),
|
|
262
|
+
"ProjectId": fields.Str(required=False, dump_to="ProjectId"),
|
|
263
|
+
"ReleaseEIP": fields.Bool(required=False, dump_to="ReleaseEIP"),
|
|
264
|
+
"ReleaseUDisk": fields.Bool(required=False, dump_to="ReleaseUDisk"),
|
|
265
|
+
"ServerId": fields.Str(required=True, dump_to="ServerId"),
|
|
266
|
+
}
|
|
267
|
+
|
|
268
|
+
|
|
269
|
+
class DeleteUPhoneServerResponseSchema(schema.ResponseSchema):
|
|
270
|
+
"""DeleteUPhoneServer - 删除云手机服务器。"""
|
|
271
|
+
|
|
272
|
+
fields = {
|
|
273
|
+
"Message": fields.Str(required=True, load_from="Message"),
|
|
274
|
+
}
|
|
275
|
+
|
|
276
|
+
|
|
277
|
+
"""
|
|
278
|
+
API: DeleteUPhoneShareBandwidth
|
|
279
|
+
|
|
280
|
+
删除云手机共享带宽
|
|
281
|
+
"""
|
|
282
|
+
|
|
283
|
+
|
|
284
|
+
class DeleteUPhoneShareBandwidthRequestSchema(schema.RequestSchema):
|
|
285
|
+
"""DeleteUPhoneShareBandwidth - 删除云手机共享带宽"""
|
|
286
|
+
|
|
287
|
+
fields = {
|
|
288
|
+
"ProjectId": fields.Str(required=False, dump_to="ProjectId"),
|
|
289
|
+
"ShareBandwidthId": fields.Str(
|
|
290
|
+
required=True, dump_to="ShareBandwidthId"
|
|
291
|
+
),
|
|
292
|
+
}
|
|
293
|
+
|
|
294
|
+
|
|
295
|
+
class DeleteUPhoneShareBandwidthResponseSchema(schema.ResponseSchema):
|
|
296
|
+
"""DeleteUPhoneShareBandwidth - 删除云手机共享带宽"""
|
|
297
|
+
|
|
298
|
+
fields = {
|
|
299
|
+
"Message": fields.Str(required=True, load_from="Message"),
|
|
300
|
+
}
|
|
301
|
+
|
|
302
|
+
|
|
303
|
+
"""
|
|
304
|
+
API: DescribeUPhone
|
|
305
|
+
|
|
306
|
+
获取云手机列表信息。
|
|
307
|
+
"""
|
|
308
|
+
|
|
309
|
+
|
|
310
|
+
class DescribeUPhoneRequestSchema(schema.RequestSchema):
|
|
311
|
+
"""DescribeUPhone - 获取云手机列表信息。"""
|
|
312
|
+
|
|
313
|
+
fields = {
|
|
314
|
+
"CityId": fields.Str(required=False, dump_to="CityId"),
|
|
315
|
+
"IsAll": fields.Bool(required=False, dump_to="IsAll"),
|
|
316
|
+
"Limit": fields.Int(required=False, dump_to="Limit"),
|
|
317
|
+
"Offset": fields.Int(required=False, dump_to="Offset"),
|
|
318
|
+
"ProductType": fields.Str(required=False, dump_to="ProductType"),
|
|
319
|
+
"ProjectId": fields.Str(required=False, dump_to="ProjectId"),
|
|
320
|
+
"ServerId": fields.Str(required=False, dump_to="ServerId"),
|
|
321
|
+
"Tag": fields.Str(required=False, dump_to="Tag"),
|
|
322
|
+
"UPhoneIds": fields.List(fields.Str()),
|
|
323
|
+
}
|
|
324
|
+
|
|
325
|
+
|
|
326
|
+
class DescribeUPhoneResponseSchema(schema.ResponseSchema):
|
|
327
|
+
"""DescribeUPhone - 获取云手机列表信息。"""
|
|
328
|
+
|
|
329
|
+
fields = {
|
|
330
|
+
"Message": fields.Str(required=False, load_from="Message"),
|
|
331
|
+
"TotalCount": fields.Int(required=True, load_from="TotalCount"),
|
|
332
|
+
"UPhones": fields.List(
|
|
333
|
+
models.UPhoneInstanceSchema(), required=True, load_from="UPhones"
|
|
334
|
+
),
|
|
335
|
+
}
|
|
336
|
+
|
|
337
|
+
|
|
338
|
+
"""
|
|
339
|
+
API: DescribeUPhoneApp
|
|
340
|
+
|
|
341
|
+
获取应用列表。
|
|
342
|
+
"""
|
|
343
|
+
|
|
344
|
+
|
|
345
|
+
class DescribeUPhoneAppRequestSchema(schema.RequestSchema):
|
|
346
|
+
"""DescribeUPhoneApp - 获取应用列表。"""
|
|
347
|
+
|
|
348
|
+
fields = {
|
|
349
|
+
"AppIds": fields.List(fields.Str()),
|
|
350
|
+
"Limit": fields.Int(required=False, dump_to="Limit"),
|
|
351
|
+
"Offset": fields.Int(required=False, dump_to="Offset"),
|
|
352
|
+
"ProductType": fields.Str(required=False, dump_to="ProductType"),
|
|
353
|
+
"ProjectId": fields.Str(required=False, dump_to="ProjectId"),
|
|
354
|
+
}
|
|
355
|
+
|
|
356
|
+
|
|
357
|
+
class DescribeUPhoneAppResponseSchema(schema.ResponseSchema):
|
|
358
|
+
"""DescribeUPhoneApp - 获取应用列表。"""
|
|
359
|
+
|
|
360
|
+
fields = {
|
|
361
|
+
"Apps": fields.List(
|
|
362
|
+
models.AppInstanceSchema(), required=False, load_from="Apps"
|
|
363
|
+
),
|
|
364
|
+
"Message": fields.Str(required=True, load_from="Message"),
|
|
365
|
+
"TotalCount": fields.Int(required=True, load_from="TotalCount"),
|
|
366
|
+
}
|
|
367
|
+
|
|
368
|
+
|
|
369
|
+
"""
|
|
370
|
+
API: DescribeUPhoneAppVersion
|
|
371
|
+
|
|
372
|
+
获取应用版本列表。
|
|
373
|
+
"""
|
|
374
|
+
|
|
375
|
+
|
|
376
|
+
class DescribeUPhoneAppVersionRequestSchema(schema.RequestSchema):
|
|
377
|
+
"""DescribeUPhoneAppVersion - 获取应用版本列表。"""
|
|
378
|
+
|
|
379
|
+
fields = {
|
|
380
|
+
"AppId": fields.Str(required=False, dump_to="AppId"),
|
|
381
|
+
"AppVersionIds": fields.List(fields.Str()),
|
|
382
|
+
"Limit": fields.Int(required=False, dump_to="Limit"),
|
|
383
|
+
"Offset": fields.Int(required=False, dump_to="Offset"),
|
|
384
|
+
"ProductType": fields.Str(required=False, dump_to="ProductType"),
|
|
385
|
+
"ProjectId": fields.Str(required=False, dump_to="ProjectId"),
|
|
386
|
+
"UPhoneId": fields.Str(required=False, dump_to="UPhoneId"),
|
|
387
|
+
}
|
|
388
|
+
|
|
389
|
+
|
|
390
|
+
class DescribeUPhoneAppVersionResponseSchema(schema.ResponseSchema):
|
|
391
|
+
"""DescribeUPhoneAppVersion - 获取应用版本列表。"""
|
|
392
|
+
|
|
393
|
+
fields = {
|
|
394
|
+
"AppVersions": fields.List(
|
|
395
|
+
models.AppVersionInstanceSchema(),
|
|
396
|
+
required=True,
|
|
397
|
+
load_from="AppVersions",
|
|
398
|
+
),
|
|
399
|
+
"Message": fields.Str(required=True, load_from="Message"),
|
|
400
|
+
"TotalCount": fields.Int(required=True, load_from="TotalCount"),
|
|
401
|
+
}
|
|
402
|
+
|
|
403
|
+
|
|
404
|
+
"""
|
|
405
|
+
API: DescribeUPhoneCities
|
|
406
|
+
|
|
407
|
+
获取云手机提供服务的城市列表
|
|
408
|
+
"""
|
|
409
|
+
|
|
410
|
+
|
|
411
|
+
class DescribeUPhoneCitiesRequestSchema(schema.RequestSchema):
|
|
412
|
+
"""DescribeUPhoneCities - 获取云手机提供服务的城市列表"""
|
|
413
|
+
|
|
414
|
+
fields = {
|
|
415
|
+
"ProductType": fields.Str(required=False, dump_to="ProductType"),
|
|
416
|
+
"ProjectId": fields.Str(required=False, dump_to="ProjectId"),
|
|
417
|
+
}
|
|
418
|
+
|
|
419
|
+
|
|
420
|
+
class DescribeUPhoneCitiesResponseSchema(schema.ResponseSchema):
|
|
421
|
+
"""DescribeUPhoneCities - 获取云手机提供服务的城市列表"""
|
|
422
|
+
|
|
423
|
+
fields = {
|
|
424
|
+
"UPhoneCities": fields.List(
|
|
425
|
+
models.CityInstanceSchema(), required=True, load_from="UPhoneCities"
|
|
426
|
+
),
|
|
427
|
+
}
|
|
428
|
+
|
|
429
|
+
|
|
430
|
+
"""
|
|
431
|
+
API: DescribeUPhoneDetailByApp
|
|
432
|
+
|
|
433
|
+
根据AppId,查询安装该应用的云手机以及相关的应用版本信息
|
|
434
|
+
"""
|
|
435
|
+
|
|
436
|
+
|
|
437
|
+
class DescribeUPhoneDetailByAppRequestSchema(schema.RequestSchema):
|
|
438
|
+
"""DescribeUPhoneDetailByApp - 根据AppId,查询安装该应用的云手机以及相关的应用版本信息"""
|
|
439
|
+
|
|
440
|
+
fields = {
|
|
441
|
+
"AppId": fields.Str(required=True, dump_to="AppId"),
|
|
442
|
+
"CityId": fields.Str(required=False, dump_to="CityId"),
|
|
443
|
+
"Limit": fields.Int(required=False, dump_to="Limit"),
|
|
444
|
+
"Offset": fields.Int(required=False, dump_to="Offset"),
|
|
445
|
+
"ProductType": fields.Str(required=False, dump_to="ProductType"),
|
|
446
|
+
"ProjectId": fields.Str(required=False, dump_to="ProjectId"),
|
|
447
|
+
}
|
|
448
|
+
|
|
449
|
+
|
|
450
|
+
class DescribeUPhoneDetailByAppResponseSchema(schema.ResponseSchema):
|
|
451
|
+
"""DescribeUPhoneDetailByApp - 根据AppId,查询安装该应用的云手机以及相关的应用版本信息"""
|
|
452
|
+
|
|
453
|
+
fields = {
|
|
454
|
+
"Message": fields.Str(required=True, load_from="Message"),
|
|
455
|
+
"TotalCount": fields.Int(required=True, load_from="TotalCount"),
|
|
456
|
+
"UPhoneDetails": fields.List(
|
|
457
|
+
models.UPhoneDetailInstanceSchema(),
|
|
458
|
+
required=True,
|
|
459
|
+
load_from="UPhoneDetails",
|
|
460
|
+
),
|
|
461
|
+
}
|
|
462
|
+
|
|
463
|
+
|
|
464
|
+
"""
|
|
465
|
+
API: DescribeUPhoneEipList
|
|
466
|
+
|
|
467
|
+
获取云手机Eip列表
|
|
468
|
+
"""
|
|
469
|
+
|
|
470
|
+
|
|
471
|
+
class DescribeUPhoneEipListRequestSchema(schema.RequestSchema):
|
|
472
|
+
"""DescribeUPhoneEipList - 获取云手机Eip列表"""
|
|
473
|
+
|
|
474
|
+
fields = {
|
|
475
|
+
"ProjectId": fields.Str(required=False, dump_to="ProjectId"),
|
|
476
|
+
"Proportion": fields.Str(required=False, dump_to="Proportion"),
|
|
477
|
+
"Region": fields.Str(required=False, dump_to="Region"),
|
|
478
|
+
}
|
|
479
|
+
|
|
480
|
+
|
|
481
|
+
class DescribeUPhoneEipListResponseSchema(schema.ResponseSchema):
|
|
482
|
+
"""DescribeUPhoneEipList - 获取云手机Eip列表"""
|
|
483
|
+
|
|
484
|
+
fields = {
|
|
485
|
+
"EipInfos": fields.List(
|
|
486
|
+
models.EipInfoSchema(), required=True, load_from="EipInfos"
|
|
487
|
+
),
|
|
488
|
+
"Message": fields.Str(required=True, load_from="Message"),
|
|
489
|
+
"TotalCount": fields.Int(required=False, load_from="TotalCount"),
|
|
490
|
+
}
|
|
491
|
+
|
|
492
|
+
|
|
493
|
+
"""
|
|
494
|
+
API: DescribeUPhoneImage
|
|
495
|
+
|
|
496
|
+
获取云手机镜像信息列表。
|
|
497
|
+
"""
|
|
498
|
+
|
|
499
|
+
|
|
500
|
+
class DescribeUPhoneImageRequestSchema(schema.RequestSchema):
|
|
501
|
+
"""DescribeUPhoneImage - 获取云手机镜像信息列表。"""
|
|
502
|
+
|
|
503
|
+
fields = {
|
|
504
|
+
"ImageIds": fields.List(fields.Str()),
|
|
505
|
+
"Limit": fields.Str(required=False, dump_to="Limit"),
|
|
506
|
+
"Offset": fields.Str(required=False, dump_to="Offset"),
|
|
507
|
+
"ProductType": fields.Str(required=False, dump_to="ProductType"),
|
|
508
|
+
"ProjectId": fields.Str(required=False, dump_to="ProjectId"),
|
|
509
|
+
"Type": fields.Str(required=False, dump_to="Type"),
|
|
510
|
+
}
|
|
511
|
+
|
|
512
|
+
|
|
513
|
+
class DescribeUPhoneImageResponseSchema(schema.ResponseSchema):
|
|
514
|
+
"""DescribeUPhoneImage - 获取云手机镜像信息列表。"""
|
|
515
|
+
|
|
516
|
+
fields = {
|
|
517
|
+
"Images": fields.List(
|
|
518
|
+
models.UPhoneImageInstanceSchema(),
|
|
519
|
+
required=True,
|
|
520
|
+
load_from="Images",
|
|
521
|
+
),
|
|
522
|
+
"Message": fields.Str(required=True, load_from="Message"),
|
|
523
|
+
"TotalCount": fields.Int(required=False, load_from="TotalCount"),
|
|
524
|
+
}
|
|
525
|
+
|
|
526
|
+
|
|
527
|
+
"""
|
|
528
|
+
API: DescribeUPhoneIpRegions
|
|
529
|
+
|
|
530
|
+
获取云手机所在城市支持绑定独立IP的地域列表
|
|
531
|
+
"""
|
|
532
|
+
|
|
533
|
+
|
|
534
|
+
class DescribeUPhoneIpRegionsRequestSchema(schema.RequestSchema):
|
|
535
|
+
"""DescribeUPhoneIpRegions - 获取云手机所在城市支持绑定独立IP的地域列表"""
|
|
536
|
+
|
|
537
|
+
fields = {
|
|
538
|
+
"CityId": fields.Str(required=True, dump_to="CityId"),
|
|
539
|
+
"ProductType": fields.Str(required=False, dump_to="ProductType"),
|
|
540
|
+
"ProjectId": fields.Str(required=False, dump_to="ProjectId"),
|
|
541
|
+
}
|
|
542
|
+
|
|
543
|
+
|
|
544
|
+
class DescribeUPhoneIpRegionsResponseSchema(schema.ResponseSchema):
|
|
545
|
+
"""DescribeUPhoneIpRegions - 获取云手机所在城市支持绑定独立IP的地域列表"""
|
|
546
|
+
|
|
547
|
+
fields = {
|
|
548
|
+
"Regions": fields.List(
|
|
549
|
+
models.IpRegionSchema(), required=True, load_from="Regions"
|
|
550
|
+
),
|
|
551
|
+
"TotalCount": fields.Int(required=False, load_from="TotalCount"),
|
|
552
|
+
}
|
|
553
|
+
|
|
554
|
+
|
|
555
|
+
"""
|
|
556
|
+
API: DescribeUPhoneJob
|
|
557
|
+
|
|
558
|
+
查询Job的执行状态。
|
|
559
|
+
"""
|
|
560
|
+
|
|
561
|
+
|
|
562
|
+
class DescribeUPhoneJobRequestSchema(schema.RequestSchema):
|
|
563
|
+
"""DescribeUPhoneJob - 查询Job的执行状态。"""
|
|
564
|
+
|
|
565
|
+
fields = {
|
|
566
|
+
"CityId": fields.Str(required=False, dump_to="CityId"),
|
|
567
|
+
"JobIds": fields.List(fields.Str()),
|
|
568
|
+
"Limit": fields.Int(required=False, dump_to="Limit"),
|
|
569
|
+
"Offset": fields.Int(required=False, dump_to="Offset"),
|
|
570
|
+
"ProductType": fields.Str(required=False, dump_to="ProductType"),
|
|
571
|
+
"ProjectId": fields.Str(required=False, dump_to="ProjectId"),
|
|
572
|
+
"State": fields.Str(required=False, dump_to="State"),
|
|
573
|
+
"Types": fields.List(fields.Str()),
|
|
574
|
+
}
|
|
575
|
+
|
|
576
|
+
|
|
577
|
+
class DescribeUPhoneJobResponseSchema(schema.ResponseSchema):
|
|
578
|
+
"""DescribeUPhoneJob - 查询Job的执行状态。"""
|
|
579
|
+
|
|
580
|
+
fields = {
|
|
581
|
+
"Jobs": fields.List(
|
|
582
|
+
models.JobSchema(), required=False, load_from="Jobs"
|
|
583
|
+
),
|
|
584
|
+
"Message": fields.Str(required=True, load_from="Message"),
|
|
585
|
+
"TotalCount": fields.Int(required=False, load_from="TotalCount"),
|
|
586
|
+
}
|
|
587
|
+
|
|
588
|
+
|
|
589
|
+
"""
|
|
590
|
+
API: DescribeUPhoneModel
|
|
591
|
+
|
|
592
|
+
获取云手机规格列表。两种类型:uphone代表单云手机场景、uphone-server代表云手机服务器场景。
|
|
593
|
+
"""
|
|
594
|
+
|
|
595
|
+
|
|
596
|
+
class DescribeUPhoneModelRequestSchema(schema.RequestSchema):
|
|
597
|
+
"""DescribeUPhoneModel - 获取云手机规格列表。两种类型:uphone代表单云手机场景、uphone-server代表云手机服务器场景。"""
|
|
598
|
+
|
|
599
|
+
fields = {
|
|
600
|
+
"Limit": fields.Int(required=False, dump_to="Limit"),
|
|
601
|
+
"Offset": fields.Int(required=False, dump_to="Offset"),
|
|
602
|
+
"ProductType": fields.Str(required=False, dump_to="ProductType"),
|
|
603
|
+
"ProjectId": fields.Str(required=False, dump_to="ProjectId"),
|
|
604
|
+
"Scene": fields.Str(required=False, dump_to="Scene"),
|
|
605
|
+
"UPhoneModelNames": fields.List(fields.Str()),
|
|
606
|
+
}
|
|
607
|
+
|
|
608
|
+
|
|
609
|
+
class DescribeUPhoneModelResponseSchema(schema.ResponseSchema):
|
|
610
|
+
"""DescribeUPhoneModel - 获取云手机规格列表。两种类型:uphone代表单云手机场景、uphone-server代表云手机服务器场景。"""
|
|
611
|
+
|
|
612
|
+
fields = {
|
|
613
|
+
"Message": fields.Str(required=True, load_from="Message"),
|
|
614
|
+
"TotalCount": fields.Int(required=True, load_from="TotalCount"),
|
|
615
|
+
"UPhoneModels": fields.List(
|
|
616
|
+
models.UPhoneModelInstanceSchema(),
|
|
617
|
+
required=True,
|
|
618
|
+
load_from="UPhoneModels",
|
|
619
|
+
),
|
|
620
|
+
}
|
|
621
|
+
|
|
622
|
+
|
|
623
|
+
"""
|
|
624
|
+
API: DescribeUPhoneServer
|
|
625
|
+
|
|
626
|
+
获取云手机服务器列表信息。
|
|
627
|
+
"""
|
|
628
|
+
|
|
629
|
+
|
|
630
|
+
class DescribeUPhoneServerRequestSchema(schema.RequestSchema):
|
|
631
|
+
"""DescribeUPhoneServer - 获取云手机服务器列表信息。"""
|
|
632
|
+
|
|
633
|
+
fields = {
|
|
634
|
+
"CityId": fields.Str(required=True, dump_to="CityId"),
|
|
635
|
+
"Limit": fields.Int(required=False, dump_to="Limit"),
|
|
636
|
+
"Offset": fields.Int(required=False, dump_to="Offset"),
|
|
637
|
+
"ProjectId": fields.Str(required=False, dump_to="ProjectId"),
|
|
638
|
+
"ServerIds": fields.List(fields.Str()),
|
|
639
|
+
}
|
|
640
|
+
|
|
641
|
+
|
|
642
|
+
class DescribeUPhoneServerResponseSchema(schema.ResponseSchema):
|
|
643
|
+
"""DescribeUPhoneServer - 获取云手机服务器列表信息。"""
|
|
644
|
+
|
|
645
|
+
fields = {
|
|
646
|
+
"Message": fields.Str(required=False, load_from="Message"),
|
|
647
|
+
"Servers": fields.List(
|
|
648
|
+
models.ServerInstanceSchema(), required=True, load_from="Servers"
|
|
649
|
+
),
|
|
650
|
+
"TotalCount": fields.Int(required=True, load_from="TotalCount"),
|
|
651
|
+
}
|
|
652
|
+
|
|
653
|
+
|
|
654
|
+
"""
|
|
655
|
+
API: DescribeUPhoneServerModel
|
|
656
|
+
|
|
657
|
+
获取ServerModel列表。
|
|
658
|
+
"""
|
|
659
|
+
|
|
660
|
+
|
|
661
|
+
class DescribeUPhoneServerModelRequestSchema(schema.RequestSchema):
|
|
662
|
+
"""DescribeUPhoneServerModel - 获取ServerModel列表。"""
|
|
663
|
+
|
|
664
|
+
fields = {
|
|
665
|
+
"CityId": fields.Str(required=True, dump_to="CityId"),
|
|
666
|
+
"Limit": fields.Int(required=False, dump_to="Limit"),
|
|
667
|
+
"Offset": fields.Int(required=False, dump_to="Offset"),
|
|
668
|
+
"ProjectId": fields.Str(required=False, dump_to="ProjectId"),
|
|
669
|
+
"ServerModelNames": fields.List(fields.Str()),
|
|
670
|
+
}
|
|
671
|
+
|
|
672
|
+
|
|
673
|
+
class DescribeUPhoneServerModelResponseSchema(schema.ResponseSchema):
|
|
674
|
+
"""DescribeUPhoneServerModel - 获取ServerModel列表。"""
|
|
675
|
+
|
|
676
|
+
fields = {
|
|
677
|
+
"Message": fields.Str(required=True, load_from="Message"),
|
|
678
|
+
"ServerModels": fields.List(
|
|
679
|
+
models.ServerModelInstanceSchema(),
|
|
680
|
+
required=False,
|
|
681
|
+
load_from="ServerModels",
|
|
682
|
+
),
|
|
683
|
+
"Stock": fields.List(
|
|
684
|
+
models.StockInfoSchema(), required=False, load_from="Stock"
|
|
685
|
+
),
|
|
686
|
+
"TotalCount": fields.Int(required=True, load_from="TotalCount"),
|
|
687
|
+
}
|
|
688
|
+
|
|
689
|
+
|
|
690
|
+
"""
|
|
691
|
+
API: DescribeUPhoneShareBandwidth
|
|
692
|
+
|
|
693
|
+
获取共享带宽列表
|
|
694
|
+
"""
|
|
695
|
+
|
|
696
|
+
|
|
697
|
+
class DescribeUPhoneShareBandwidthRequestSchema(schema.RequestSchema):
|
|
698
|
+
"""DescribeUPhoneShareBandwidth - 获取共享带宽列表"""
|
|
699
|
+
|
|
700
|
+
fields = {
|
|
701
|
+
"ProjectId": fields.Str(required=False, dump_to="ProjectId"),
|
|
702
|
+
"Region": fields.Str(required=True, dump_to="Region"),
|
|
703
|
+
"ShareBandwidthId": fields.Str(
|
|
704
|
+
required=False, dump_to="ShareBandwidthId"
|
|
705
|
+
),
|
|
706
|
+
}
|
|
707
|
+
|
|
708
|
+
|
|
709
|
+
class DescribeUPhoneShareBandwidthResponseSchema(schema.ResponseSchema):
|
|
710
|
+
"""DescribeUPhoneShareBandwidth - 获取共享带宽列表"""
|
|
711
|
+
|
|
712
|
+
fields = {
|
|
713
|
+
"Message": fields.Str(required=True, load_from="Message"),
|
|
714
|
+
"ShareBandwidth": fields.List(
|
|
715
|
+
models.ShareBandwidthInfoSchema(),
|
|
716
|
+
required=True,
|
|
717
|
+
load_from="ShareBandwidth",
|
|
718
|
+
),
|
|
719
|
+
"TotalCount": fields.Int(required=False, load_from="TotalCount"),
|
|
720
|
+
}
|
|
721
|
+
|
|
722
|
+
|
|
723
|
+
"""
|
|
724
|
+
API: GetUPhoneAllowance
|
|
725
|
+
|
|
726
|
+
获取云手机创建余量
|
|
727
|
+
"""
|
|
728
|
+
|
|
729
|
+
|
|
730
|
+
class GetUPhoneAllowanceRequestSchema(schema.RequestSchema):
|
|
731
|
+
"""GetUPhoneAllowance - 获取云手机创建余量"""
|
|
732
|
+
|
|
733
|
+
fields = {
|
|
734
|
+
"CityId": fields.Str(required=True, dump_to="CityId"),
|
|
735
|
+
"ProjectId": fields.Str(required=False, dump_to="ProjectId"),
|
|
736
|
+
}
|
|
737
|
+
|
|
738
|
+
|
|
739
|
+
class GetUPhoneAllowanceResponseSchema(schema.ResponseSchema):
|
|
740
|
+
"""GetUPhoneAllowance - 获取云手机创建余量"""
|
|
741
|
+
|
|
742
|
+
fields = {
|
|
743
|
+
"UPhoneAllowance": fields.List(
|
|
744
|
+
models.UPhoneAllowanceSchema(),
|
|
745
|
+
required=True,
|
|
746
|
+
load_from="UPhoneAllowance",
|
|
747
|
+
),
|
|
748
|
+
}
|
|
749
|
+
|
|
750
|
+
|
|
751
|
+
"""
|
|
752
|
+
API: GetUPhoneBandwidthUpgradePrice
|
|
753
|
+
|
|
754
|
+
获取云手机带宽升降级价格
|
|
755
|
+
"""
|
|
756
|
+
|
|
757
|
+
|
|
758
|
+
class GetUPhoneBandwidthUpgradePriceRequestSchema(schema.RequestSchema):
|
|
759
|
+
"""GetUPhoneBandwidthUpgradePrice - 获取云手机带宽升降级价格"""
|
|
760
|
+
|
|
761
|
+
fields = {
|
|
762
|
+
"Bandwidth": fields.Int(required=True, dump_to="Bandwidth"),
|
|
763
|
+
"ProductType": fields.Str(required=True, dump_to="ProductType"),
|
|
764
|
+
"ProjectId": fields.Str(required=False, dump_to="ProjectId"),
|
|
765
|
+
"UPhoneId": fields.Str(required=True, dump_to="UPhoneId"),
|
|
766
|
+
}
|
|
767
|
+
|
|
768
|
+
|
|
769
|
+
class GetUPhoneBandwidthUpgradePriceResponseSchema(schema.ResponseSchema):
|
|
770
|
+
"""GetUPhoneBandwidthUpgradePrice - 获取云手机带宽升降级价格"""
|
|
771
|
+
|
|
772
|
+
fields = {
|
|
773
|
+
"ListPrice": fields.Float(required=True, load_from="ListPrice"),
|
|
774
|
+
"Message": fields.Str(required=True, load_from="Message"),
|
|
775
|
+
"OriginalPrice": fields.Float(required=True, load_from="OriginalPrice"),
|
|
776
|
+
"Price": fields.Float(required=True, load_from="Price"),
|
|
777
|
+
}
|
|
778
|
+
|
|
779
|
+
|
|
780
|
+
"""
|
|
781
|
+
API: GetUPhonePrice
|
|
782
|
+
|
|
783
|
+
根据云手机规格名称,获取UPhone实例的价格。
|
|
784
|
+
"""
|
|
785
|
+
|
|
786
|
+
|
|
787
|
+
class GetUPhonePriceRequestSchema(schema.RequestSchema):
|
|
788
|
+
"""GetUPhonePrice - 根据云手机规格名称,获取UPhone实例的价格。"""
|
|
789
|
+
|
|
790
|
+
fields = {
|
|
791
|
+
"BandwidthLine": fields.Int(required=False, dump_to="BandwidthLine"),
|
|
792
|
+
"ChargeType": fields.Str(required=False, dump_to="ChargeType"),
|
|
793
|
+
"CityId": fields.Str(required=True, dump_to="CityId"),
|
|
794
|
+
"INetBandwidth": fields.Int(required=False, dump_to="INetBandwidth"),
|
|
795
|
+
"IpCount": fields.Int(required=False, dump_to="IpCount"),
|
|
796
|
+
"IpDestRegion": fields.Str(required=False, dump_to="IpDestRegion"),
|
|
797
|
+
"MediaBandwidth": fields.Int(
|
|
798
|
+
required=False, dump_to="MediaBandwidth"
|
|
799
|
+
), # Deprecated, will be removed at 1.0
|
|
800
|
+
"ProjectId": fields.Str(required=False, dump_to="ProjectId"),
|
|
801
|
+
"Quantity": fields.Int(required=False, dump_to="Quantity"),
|
|
802
|
+
"UPhoneBandwidth": fields.Int(
|
|
803
|
+
required=False, dump_to="UPhoneBandwidth"
|
|
804
|
+
),
|
|
805
|
+
"UPhoneCount": fields.Int(required=False, dump_to="UPhoneCount"),
|
|
806
|
+
"UPhoneModelName": fields.Int(
|
|
807
|
+
required=False, dump_to="UPhoneModelName"
|
|
808
|
+
),
|
|
809
|
+
"UseGlobalBws": fields.Bool(required=False, dump_to="UseGlobalBws"),
|
|
810
|
+
"UseKbps": fields.Bool(required=False, dump_to="UseKbps"),
|
|
811
|
+
}
|
|
812
|
+
|
|
813
|
+
|
|
814
|
+
class GetUPhonePriceResponseSchema(schema.ResponseSchema):
|
|
815
|
+
"""GetUPhonePrice - 根据云手机规格名称,获取UPhone实例的价格。"""
|
|
816
|
+
|
|
817
|
+
fields = {
|
|
818
|
+
"PriceSet": fields.List(
|
|
819
|
+
models.UPhonePriceSetSchema(), required=True, load_from="PriceSet"
|
|
820
|
+
),
|
|
821
|
+
}
|
|
822
|
+
|
|
823
|
+
|
|
824
|
+
"""
|
|
825
|
+
API: GetUPhoneRenewPrice
|
|
826
|
+
|
|
827
|
+
获取云手机续费价格,不包括独立ip价格。
|
|
828
|
+
"""
|
|
829
|
+
|
|
830
|
+
|
|
831
|
+
class GetUPhoneRenewPriceRequestSchema(schema.RequestSchema):
|
|
832
|
+
"""GetUPhoneRenewPrice - 获取云手机续费价格,不包括独立ip价格。"""
|
|
833
|
+
|
|
834
|
+
fields = {
|
|
835
|
+
"ChargeType": fields.Str(required=False, dump_to="ChargeType"),
|
|
836
|
+
"CityId": fields.Str(required=False, dump_to="CityId"),
|
|
837
|
+
"ProjectId": fields.Str(required=False, dump_to="ProjectId"),
|
|
838
|
+
"UPhoneId": fields.Str(required=True, dump_to="UPhoneId"),
|
|
839
|
+
}
|
|
840
|
+
|
|
841
|
+
|
|
842
|
+
class GetUPhoneRenewPriceResponseSchema(schema.ResponseSchema):
|
|
843
|
+
"""GetUPhoneRenewPrice - 获取云手机续费价格,不包括独立ip价格。"""
|
|
844
|
+
|
|
845
|
+
fields = {
|
|
846
|
+
"PriceSet": fields.List(
|
|
847
|
+
models.UPhonePriceSetSchema(), required=True, load_from="PriceSet"
|
|
848
|
+
),
|
|
849
|
+
}
|
|
850
|
+
|
|
851
|
+
|
|
852
|
+
"""
|
|
853
|
+
API: GetUPhoneScreenCapture
|
|
854
|
+
|
|
855
|
+
云手机截屏
|
|
856
|
+
"""
|
|
857
|
+
|
|
858
|
+
|
|
859
|
+
class GetUPhoneScreenCaptureRequestSchema(schema.RequestSchema):
|
|
860
|
+
"""GetUPhoneScreenCapture - 云手机截屏"""
|
|
861
|
+
|
|
862
|
+
fields = {
|
|
863
|
+
"CityId": fields.Str(required=False, dump_to="CityId"),
|
|
864
|
+
"ProductType": fields.Str(required=False, dump_to="ProductType"),
|
|
865
|
+
"ProjectId": fields.Str(required=False, dump_to="ProjectId"),
|
|
866
|
+
"UPhoneID": fields.Str(required=True, dump_to="UPhoneID"),
|
|
867
|
+
}
|
|
868
|
+
|
|
869
|
+
|
|
870
|
+
class GetUPhoneScreenCaptureResponseSchema(schema.ResponseSchema):
|
|
871
|
+
"""GetUPhoneScreenCapture - 云手机截屏"""
|
|
872
|
+
|
|
873
|
+
fields = {
|
|
874
|
+
"URL": fields.Str(required=True, load_from="URL"),
|
|
875
|
+
}
|
|
876
|
+
|
|
877
|
+
|
|
878
|
+
"""
|
|
879
|
+
API: GetUPhoneServerPrice
|
|
880
|
+
|
|
881
|
+
根据服务器规格名称,获取UPhoneServer实例的价格。
|
|
882
|
+
"""
|
|
883
|
+
|
|
884
|
+
|
|
885
|
+
class GetUPhoneServerPriceRequestSchema(schema.RequestSchema):
|
|
886
|
+
"""GetUPhoneServerPrice - 根据服务器规格名称,获取UPhoneServer实例的价格。"""
|
|
887
|
+
|
|
888
|
+
fields = {
|
|
889
|
+
"Bandwidth": fields.Int(required=False, dump_to="Bandwidth"),
|
|
890
|
+
"ChargeType": fields.Str(required=False, dump_to="ChargeType"),
|
|
891
|
+
"CityId": fields.Str(required=True, dump_to="CityId"),
|
|
892
|
+
"IpCount": fields.Int(required=False, dump_to="IpCount"),
|
|
893
|
+
"IpDestRegion": fields.Str(required=False, dump_to="IpDestRegion"),
|
|
894
|
+
"ProjectId": fields.Str(required=False, dump_to="ProjectId"),
|
|
895
|
+
"Quantity": fields.Int(required=False, dump_to="Quantity"),
|
|
896
|
+
"ServerModelName": fields.Str(required=True, dump_to="ServerModelName"),
|
|
897
|
+
}
|
|
898
|
+
|
|
899
|
+
|
|
900
|
+
class GetUPhoneServerPriceResponseSchema(schema.ResponseSchema):
|
|
901
|
+
"""GetUPhoneServerPrice - 根据服务器规格名称,获取UPhoneServer实例的价格。"""
|
|
902
|
+
|
|
903
|
+
fields = {
|
|
904
|
+
"Message": fields.Str(required=True, load_from="Message"),
|
|
905
|
+
"PriceSet": fields.List(
|
|
906
|
+
models.UPhoneServerPriceSetSchema(),
|
|
907
|
+
required=True,
|
|
908
|
+
load_from="PriceSet",
|
|
909
|
+
),
|
|
910
|
+
}
|
|
911
|
+
|
|
912
|
+
|
|
913
|
+
"""
|
|
914
|
+
API: GetUPhoneServerRenewPrice
|
|
915
|
+
|
|
916
|
+
获取云手机服务器续费价格
|
|
917
|
+
|
|
918
|
+
提示信息: 须按照控制台服务器模型配置创建服务器。详情请参考控制台。
|
|
919
|
+
"""
|
|
920
|
+
|
|
921
|
+
|
|
922
|
+
class GetUPhoneServerRenewPriceRequestSchema(schema.RequestSchema):
|
|
923
|
+
"""GetUPhoneServerRenewPrice - 获取云手机服务器续费价格
|
|
924
|
+
|
|
925
|
+
提示信息: 须按照控制台服务器模型配置创建服务器。详情请参考控制台。
|
|
926
|
+
"""
|
|
927
|
+
|
|
928
|
+
fields = {
|
|
929
|
+
"ChargeType": fields.Str(required=False, dump_to="ChargeType"),
|
|
930
|
+
"CityId": fields.Str(required=True, dump_to="CityId"),
|
|
931
|
+
"ProjectId": fields.Str(required=False, dump_to="ProjectId"),
|
|
932
|
+
"ServerId": fields.Str(required=True, dump_to="ServerId"),
|
|
933
|
+
}
|
|
934
|
+
|
|
935
|
+
|
|
936
|
+
class GetUPhoneServerRenewPriceResponseSchema(schema.ResponseSchema):
|
|
937
|
+
"""GetUPhoneServerRenewPrice - 获取云手机服务器续费价格
|
|
938
|
+
|
|
939
|
+
提示信息: 须按照控制台服务器模型配置创建服务器。详情请参考控制台。
|
|
940
|
+
"""
|
|
941
|
+
|
|
942
|
+
fields = {
|
|
943
|
+
"Message": fields.Str(required=True, load_from="Message"),
|
|
944
|
+
"PriceSet": fields.List(
|
|
945
|
+
models.UPhoneServerPriceSetSchema(),
|
|
946
|
+
required=True,
|
|
947
|
+
load_from="PriceSet",
|
|
948
|
+
),
|
|
949
|
+
}
|
|
950
|
+
|
|
951
|
+
|
|
952
|
+
"""
|
|
953
|
+
API: GetUPhoneShareBandwidthUpgradePrice
|
|
954
|
+
|
|
955
|
+
获取云手机共享带宽升降级价格
|
|
956
|
+
"""
|
|
957
|
+
|
|
958
|
+
|
|
959
|
+
class GetUPhoneShareBandwidthUpgradePriceRequestSchema(schema.RequestSchema):
|
|
960
|
+
"""GetUPhoneShareBandwidthUpgradePrice - 获取云手机共享带宽升降级价格"""
|
|
961
|
+
|
|
962
|
+
fields = {
|
|
963
|
+
"Bandwidth": fields.Int(required=True, dump_to="Bandwidth"),
|
|
964
|
+
"ProjectId": fields.Str(required=False, dump_to="ProjectId"),
|
|
965
|
+
"ShareBandwidthId": fields.Str(
|
|
966
|
+
required=True, dump_to="ShareBandwidthId"
|
|
967
|
+
),
|
|
968
|
+
}
|
|
969
|
+
|
|
970
|
+
|
|
971
|
+
class GetUPhoneShareBandwidthUpgradePriceResponseSchema(schema.ResponseSchema):
|
|
972
|
+
"""GetUPhoneShareBandwidthUpgradePrice - 获取云手机共享带宽升降级价格"""
|
|
973
|
+
|
|
974
|
+
fields = {
|
|
975
|
+
"ListPrice": fields.Float(required=True, load_from="ListPrice"),
|
|
976
|
+
"Message": fields.Str(required=True, load_from="Message"),
|
|
977
|
+
"OriginalPrice": fields.Float(required=True, load_from="OriginalPrice"),
|
|
978
|
+
"Price": fields.Float(required=True, load_from="Price"),
|
|
979
|
+
}
|
|
980
|
+
|
|
981
|
+
|
|
982
|
+
"""
|
|
983
|
+
API: ImportFile
|
|
984
|
+
|
|
985
|
+
上传文件到云手机目录/sdcard/Download/并自动安装APK文件
|
|
986
|
+
"""
|
|
987
|
+
|
|
988
|
+
|
|
989
|
+
class ImportFileRequestSchema(schema.RequestSchema):
|
|
990
|
+
"""ImportFile - 上传文件到云手机目录/sdcard/Download/并自动安装APK文件"""
|
|
991
|
+
|
|
992
|
+
fields = {
|
|
993
|
+
"ABI": fields.Str(required=False, dump_to="ABI"),
|
|
994
|
+
"CityId": fields.Str(required=False, dump_to="CityId"),
|
|
995
|
+
"FileName": fields.Str(required=True, dump_to="FileName"),
|
|
996
|
+
"ProductType": fields.Str(required=False, dump_to="ProductType"),
|
|
997
|
+
"ProjectId": fields.Str(required=False, dump_to="ProjectId"),
|
|
998
|
+
"UPhoneIds": fields.List(fields.Str()),
|
|
999
|
+
"URL": fields.Str(required=True, dump_to="URL"),
|
|
1000
|
+
}
|
|
1001
|
+
|
|
1002
|
+
|
|
1003
|
+
class ImportFileResponseSchema(schema.ResponseSchema):
|
|
1004
|
+
"""ImportFile - 上传文件到云手机目录/sdcard/Download/并自动安装APK文件"""
|
|
1005
|
+
|
|
1006
|
+
fields = {
|
|
1007
|
+
"JobId": fields.Str(required=True, load_from="JobId"),
|
|
1008
|
+
}
|
|
1009
|
+
|
|
1010
|
+
|
|
1011
|
+
"""
|
|
1012
|
+
API: InstallUPhoneAppVersion
|
|
1013
|
+
|
|
1014
|
+
在云手机中安装应用版本相关的Apk文件。系统会根据AppVersionId将对应的Apk文件下载后安装到云手机中。一次只支持安装一个Apk。
|
|
1015
|
+
"""
|
|
1016
|
+
|
|
1017
|
+
|
|
1018
|
+
class InstallUPhoneAppVersionRequestSchema(schema.RequestSchema):
|
|
1019
|
+
"""InstallUPhoneAppVersion - 在云手机中安装应用版本相关的Apk文件。系统会根据AppVersionId将对应的Apk文件下载后安装到云手机中。一次只支持安装一个Apk。"""
|
|
1020
|
+
|
|
1021
|
+
fields = {
|
|
1022
|
+
"AppVersionId": fields.Str(required=True, dump_to="AppVersionId"),
|
|
1023
|
+
"CityId": fields.Str(required=False, dump_to="CityId"),
|
|
1024
|
+
"ProductType": fields.Str(required=False, dump_to="ProductType"),
|
|
1025
|
+
"ProjectId": fields.Str(required=False, dump_to="ProjectId"),
|
|
1026
|
+
"UPhoneIds": fields.List(fields.Str()),
|
|
1027
|
+
}
|
|
1028
|
+
|
|
1029
|
+
|
|
1030
|
+
class InstallUPhoneAppVersionResponseSchema(schema.ResponseSchema):
|
|
1031
|
+
"""InstallUPhoneAppVersion - 在云手机中安装应用版本相关的Apk文件。系统会根据AppVersionId将对应的Apk文件下载后安装到云手机中。一次只支持安装一个Apk。"""
|
|
1032
|
+
|
|
1033
|
+
fields = {
|
|
1034
|
+
"JobId": fields.Str(required=True, load_from="JobId"),
|
|
1035
|
+
"Message": fields.Str(required=True, load_from="Message"),
|
|
1036
|
+
}
|
|
1037
|
+
|
|
1038
|
+
|
|
1039
|
+
"""
|
|
1040
|
+
API: ModifyUPhoneBandwidth
|
|
1041
|
+
|
|
1042
|
+
修改云手机带宽
|
|
1043
|
+
"""
|
|
1044
|
+
|
|
1045
|
+
|
|
1046
|
+
class ModifyUPhoneBandwidthRequestSchema(schema.RequestSchema):
|
|
1047
|
+
"""ModifyUPhoneBandwidth - 修改云手机带宽"""
|
|
1048
|
+
|
|
1049
|
+
fields = {
|
|
1050
|
+
"Bandwidth": fields.Int(required=True, dump_to="Bandwidth"),
|
|
1051
|
+
"ProductType": fields.Str(required=True, dump_to="ProductType"),
|
|
1052
|
+
"ProjectId": fields.Str(required=False, dump_to="ProjectId"),
|
|
1053
|
+
"UPhoneId": fields.Str(required=True, dump_to="UPhoneId"),
|
|
1054
|
+
}
|
|
1055
|
+
|
|
1056
|
+
|
|
1057
|
+
class ModifyUPhoneBandwidthResponseSchema(schema.ResponseSchema):
|
|
1058
|
+
"""ModifyUPhoneBandwidth - 修改云手机带宽"""
|
|
1059
|
+
|
|
1060
|
+
fields = {
|
|
1061
|
+
"Message": fields.Str(required=True, load_from="Message"),
|
|
1062
|
+
}
|
|
1063
|
+
|
|
1064
|
+
|
|
1065
|
+
"""
|
|
1066
|
+
API: ModifyUPhoneName
|
|
1067
|
+
|
|
1068
|
+
修改指定云手机实例名称。
|
|
1069
|
+
"""
|
|
1070
|
+
|
|
1071
|
+
|
|
1072
|
+
class ModifyUPhoneNameRequestSchema(schema.RequestSchema):
|
|
1073
|
+
"""ModifyUPhoneName - 修改指定云手机实例名称。"""
|
|
1074
|
+
|
|
1075
|
+
fields = {
|
|
1076
|
+
"CityId": fields.Str(required=False, dump_to="CityId"),
|
|
1077
|
+
"Name": fields.Str(required=True, dump_to="Name"),
|
|
1078
|
+
"ProjectId": fields.Str(required=False, dump_to="ProjectId"),
|
|
1079
|
+
"UPhoneId": fields.Str(required=True, dump_to="UPhoneId"),
|
|
1080
|
+
}
|
|
1081
|
+
|
|
1082
|
+
|
|
1083
|
+
class ModifyUPhoneNameResponseSchema(schema.ResponseSchema):
|
|
1084
|
+
"""ModifyUPhoneName - 修改指定云手机实例名称。"""
|
|
1085
|
+
|
|
1086
|
+
fields = {
|
|
1087
|
+
"Message": fields.Str(required=True, load_from="Message"),
|
|
1088
|
+
"UPhoneId": fields.Str(required=True, load_from="UPhoneId"),
|
|
1089
|
+
}
|
|
1090
|
+
|
|
1091
|
+
|
|
1092
|
+
"""
|
|
1093
|
+
API: ModifyUPhoneRemark
|
|
1094
|
+
|
|
1095
|
+
修改指定云手机实例备注信息。
|
|
1096
|
+
"""
|
|
1097
|
+
|
|
1098
|
+
|
|
1099
|
+
class ModifyUPhoneRemarkRequestSchema(schema.RequestSchema):
|
|
1100
|
+
"""ModifyUPhoneRemark - 修改指定云手机实例备注信息。"""
|
|
1101
|
+
|
|
1102
|
+
fields = {
|
|
1103
|
+
"CityId": fields.Str(required=False, dump_to="CityId"),
|
|
1104
|
+
"ProjectId": fields.Str(required=False, dump_to="ProjectId"),
|
|
1105
|
+
"Remark": fields.Str(required=False, dump_to="Remark"),
|
|
1106
|
+
"UPhoneId": fields.Str(required=True, dump_to="UPhoneId"),
|
|
1107
|
+
}
|
|
1108
|
+
|
|
1109
|
+
|
|
1110
|
+
class ModifyUPhoneRemarkResponseSchema(schema.ResponseSchema):
|
|
1111
|
+
"""ModifyUPhoneRemark - 修改指定云手机实例备注信息。"""
|
|
1112
|
+
|
|
1113
|
+
fields = {
|
|
1114
|
+
"Message": fields.Str(required=True, load_from="Message"),
|
|
1115
|
+
"UPhoneId": fields.Str(required=True, load_from="UPhoneId"),
|
|
1116
|
+
}
|
|
1117
|
+
|
|
1118
|
+
|
|
1119
|
+
"""
|
|
1120
|
+
API: ModifyUPhoneServerName
|
|
1121
|
+
|
|
1122
|
+
修改指定云手机服务器实例名称。
|
|
1123
|
+
"""
|
|
1124
|
+
|
|
1125
|
+
|
|
1126
|
+
class ModifyUPhoneServerNameRequestSchema(schema.RequestSchema):
|
|
1127
|
+
"""ModifyUPhoneServerName - 修改指定云手机服务器实例名称。"""
|
|
1128
|
+
|
|
1129
|
+
fields = {
|
|
1130
|
+
"CityId": fields.Str(required=True, dump_to="CityId"),
|
|
1131
|
+
"Name": fields.Str(required=False, dump_to="Name"),
|
|
1132
|
+
"ProjectId": fields.Str(required=False, dump_to="ProjectId"),
|
|
1133
|
+
"ServerId": fields.Str(required=True, dump_to="ServerId"),
|
|
1134
|
+
}
|
|
1135
|
+
|
|
1136
|
+
|
|
1137
|
+
class ModifyUPhoneServerNameResponseSchema(schema.ResponseSchema):
|
|
1138
|
+
"""ModifyUPhoneServerName - 修改指定云手机服务器实例名称。"""
|
|
1139
|
+
|
|
1140
|
+
fields = {
|
|
1141
|
+
"Message": fields.Str(required=True, load_from="Message"),
|
|
1142
|
+
"ServerId": fields.Str(required=True, load_from="ServerId"),
|
|
1143
|
+
}
|
|
1144
|
+
|
|
1145
|
+
|
|
1146
|
+
"""
|
|
1147
|
+
API: ModifyUPhoneServerRemark
|
|
1148
|
+
|
|
1149
|
+
修改指定云手机实例备注信息。
|
|
1150
|
+
"""
|
|
1151
|
+
|
|
1152
|
+
|
|
1153
|
+
class ModifyUPhoneServerRemarkRequestSchema(schema.RequestSchema):
|
|
1154
|
+
"""ModifyUPhoneServerRemark - 修改指定云手机实例备注信息。"""
|
|
1155
|
+
|
|
1156
|
+
fields = {
|
|
1157
|
+
"CityId": fields.Str(required=True, dump_to="CityId"),
|
|
1158
|
+
"ProjectId": fields.Str(required=False, dump_to="ProjectId"),
|
|
1159
|
+
"Remark": fields.Str(required=False, dump_to="Remark"),
|
|
1160
|
+
"ServerId": fields.Str(required=True, dump_to="ServerId"),
|
|
1161
|
+
}
|
|
1162
|
+
|
|
1163
|
+
|
|
1164
|
+
class ModifyUPhoneServerRemarkResponseSchema(schema.ResponseSchema):
|
|
1165
|
+
"""ModifyUPhoneServerRemark - 修改指定云手机实例备注信息。"""
|
|
1166
|
+
|
|
1167
|
+
fields = {
|
|
1168
|
+
"Message": fields.Str(required=True, load_from="Message"),
|
|
1169
|
+
"ServerId": fields.Str(required=True, load_from="ServerId"),
|
|
1170
|
+
}
|
|
1171
|
+
|
|
1172
|
+
|
|
1173
|
+
"""
|
|
1174
|
+
API: ModifyUPhoneShareBandwidth
|
|
1175
|
+
|
|
1176
|
+
修改云手机共享带宽
|
|
1177
|
+
"""
|
|
1178
|
+
|
|
1179
|
+
|
|
1180
|
+
class ModifyUPhoneShareBandwidthRequestSchema(schema.RequestSchema):
|
|
1181
|
+
"""ModifyUPhoneShareBandwidth - 修改云手机共享带宽"""
|
|
1182
|
+
|
|
1183
|
+
fields = {
|
|
1184
|
+
"Bandwidth": fields.Str(required=True, dump_to="Bandwidth"),
|
|
1185
|
+
"ProjectId": fields.Str(required=False, dump_to="ProjectId"),
|
|
1186
|
+
"ShareBandwidthId": fields.Str(
|
|
1187
|
+
required=True, dump_to="ShareBandwidthId"
|
|
1188
|
+
),
|
|
1189
|
+
}
|
|
1190
|
+
|
|
1191
|
+
|
|
1192
|
+
class ModifyUPhoneShareBandwidthResponseSchema(schema.ResponseSchema):
|
|
1193
|
+
"""ModifyUPhoneShareBandwidth - 修改云手机共享带宽"""
|
|
1194
|
+
|
|
1195
|
+
fields = {
|
|
1196
|
+
"Message": fields.Str(required=True, load_from="Message"),
|
|
1197
|
+
}
|
|
1198
|
+
|
|
1199
|
+
|
|
1200
|
+
"""
|
|
1201
|
+
API: ModifyUPhoneShareBandwidthName
|
|
1202
|
+
|
|
1203
|
+
修改云手机共享带宽名称
|
|
1204
|
+
"""
|
|
1205
|
+
|
|
1206
|
+
|
|
1207
|
+
class ModifyUPhoneShareBandwidthNameRequestSchema(schema.RequestSchema):
|
|
1208
|
+
"""ModifyUPhoneShareBandwidthName - 修改云手机共享带宽名称"""
|
|
1209
|
+
|
|
1210
|
+
fields = {
|
|
1211
|
+
"Name": fields.Str(required=True, dump_to="Name"),
|
|
1212
|
+
"ProjectId": fields.Str(required=False, dump_to="ProjectId"),
|
|
1213
|
+
"ShareBandwidthId": fields.Str(
|
|
1214
|
+
required=True, dump_to="ShareBandwidthId"
|
|
1215
|
+
),
|
|
1216
|
+
}
|
|
1217
|
+
|
|
1218
|
+
|
|
1219
|
+
class ModifyUPhoneShareBandwidthNameResponseSchema(schema.ResponseSchema):
|
|
1220
|
+
"""ModifyUPhoneShareBandwidthName - 修改云手机共享带宽名称"""
|
|
1221
|
+
|
|
1222
|
+
fields = {
|
|
1223
|
+
"Message": fields.Str(required=True, load_from="Message"),
|
|
1224
|
+
}
|
|
1225
|
+
|
|
1226
|
+
|
|
1227
|
+
"""
|
|
1228
|
+
API: ModifyUPhoneShareBandwidthRemark
|
|
1229
|
+
|
|
1230
|
+
修改云手机共享带宽备注
|
|
1231
|
+
"""
|
|
1232
|
+
|
|
1233
|
+
|
|
1234
|
+
class ModifyUPhoneShareBandwidthRemarkRequestSchema(schema.RequestSchema):
|
|
1235
|
+
"""ModifyUPhoneShareBandwidthRemark - 修改云手机共享带宽备注"""
|
|
1236
|
+
|
|
1237
|
+
fields = {
|
|
1238
|
+
"ProjectId": fields.Str(required=False, dump_to="ProjectId"),
|
|
1239
|
+
"Remark": fields.Str(required=True, dump_to="Remark"),
|
|
1240
|
+
"ShareBandwidthId": fields.Str(
|
|
1241
|
+
required=True, dump_to="ShareBandwidthId"
|
|
1242
|
+
),
|
|
1243
|
+
}
|
|
1244
|
+
|
|
1245
|
+
|
|
1246
|
+
class ModifyUPhoneShareBandwidthRemarkResponseSchema(schema.ResponseSchema):
|
|
1247
|
+
"""ModifyUPhoneShareBandwidthRemark - 修改云手机共享带宽备注"""
|
|
1248
|
+
|
|
1249
|
+
fields = {
|
|
1250
|
+
"Message": fields.Str(required=True, load_from="Message"),
|
|
1251
|
+
}
|
|
1252
|
+
|
|
1253
|
+
|
|
1254
|
+
"""
|
|
1255
|
+
API: PoweroffUPhone
|
|
1256
|
+
|
|
1257
|
+
关闭处于运行状态的云手机实例
|
|
1258
|
+
"""
|
|
1259
|
+
|
|
1260
|
+
|
|
1261
|
+
class PoweroffUPhoneRequestSchema(schema.RequestSchema):
|
|
1262
|
+
"""PoweroffUPhone - 关闭处于运行状态的云手机实例"""
|
|
1263
|
+
|
|
1264
|
+
fields = {
|
|
1265
|
+
"CityId": fields.Str(required=False, dump_to="CityId"),
|
|
1266
|
+
"ProductType": fields.Str(required=False, dump_to="ProductType"),
|
|
1267
|
+
"ProjectId": fields.Str(required=False, dump_to="ProjectId"),
|
|
1268
|
+
"UPhoneIds": fields.List(fields.Str()),
|
|
1269
|
+
}
|
|
1270
|
+
|
|
1271
|
+
|
|
1272
|
+
class PoweroffUPhoneResponseSchema(schema.ResponseSchema):
|
|
1273
|
+
"""PoweroffUPhone - 关闭处于运行状态的云手机实例"""
|
|
1274
|
+
|
|
1275
|
+
fields = {
|
|
1276
|
+
"JobId": fields.Str(required=False, load_from="JobId"),
|
|
1277
|
+
"Message": fields.Str(required=True, load_from="Message"),
|
|
1278
|
+
}
|
|
1279
|
+
|
|
1280
|
+
|
|
1281
|
+
"""
|
|
1282
|
+
API: PoweronUPhone
|
|
1283
|
+
|
|
1284
|
+
启动处于关闭状态的云手机实例
|
|
1285
|
+
"""
|
|
1286
|
+
|
|
1287
|
+
|
|
1288
|
+
class PoweronUPhoneRequestSchema(schema.RequestSchema):
|
|
1289
|
+
"""PoweronUPhone - 启动处于关闭状态的云手机实例"""
|
|
1290
|
+
|
|
1291
|
+
fields = {
|
|
1292
|
+
"CityId": fields.Str(required=False, dump_to="CityId"),
|
|
1293
|
+
"ProductType": fields.Str(required=False, dump_to="ProductType"),
|
|
1294
|
+
"ProjectId": fields.Str(required=False, dump_to="ProjectId"),
|
|
1295
|
+
"UPhoneIds": fields.List(fields.Str()),
|
|
1296
|
+
}
|
|
1297
|
+
|
|
1298
|
+
|
|
1299
|
+
class PoweronUPhoneResponseSchema(schema.ResponseSchema):
|
|
1300
|
+
"""PoweronUPhone - 启动处于关闭状态的云手机实例"""
|
|
1301
|
+
|
|
1302
|
+
fields = {
|
|
1303
|
+
"JobId": fields.Str(required=False, load_from="JobId"),
|
|
1304
|
+
"Message": fields.Str(required=True, load_from="Message"),
|
|
1305
|
+
}
|
|
1306
|
+
|
|
1307
|
+
|
|
1308
|
+
"""
|
|
1309
|
+
API: RebootUPhone
|
|
1310
|
+
|
|
1311
|
+
重新启动云手机实例
|
|
1312
|
+
"""
|
|
1313
|
+
|
|
1314
|
+
|
|
1315
|
+
class RebootUPhoneRequestSchema(schema.RequestSchema):
|
|
1316
|
+
"""RebootUPhone - 重新启动云手机实例"""
|
|
1317
|
+
|
|
1318
|
+
fields = {
|
|
1319
|
+
"CityId": fields.Str(required=False, dump_to="CityId"),
|
|
1320
|
+
"ProductType": fields.Str(required=False, dump_to="ProductType"),
|
|
1321
|
+
"ProjectId": fields.Str(required=False, dump_to="ProjectId"),
|
|
1322
|
+
"UPhoneIds": fields.List(fields.Str()),
|
|
1323
|
+
}
|
|
1324
|
+
|
|
1325
|
+
|
|
1326
|
+
class RebootUPhoneResponseSchema(schema.ResponseSchema):
|
|
1327
|
+
"""RebootUPhone - 重新启动云手机实例"""
|
|
1328
|
+
|
|
1329
|
+
fields = {
|
|
1330
|
+
"JobId": fields.Str(required=False, load_from="JobId"),
|
|
1331
|
+
"Message": fields.Str(required=True, load_from="Message"),
|
|
1332
|
+
}
|
|
1333
|
+
|
|
1334
|
+
|
|
1335
|
+
"""
|
|
1336
|
+
API: RenewUPhone
|
|
1337
|
+
|
|
1338
|
+
修改UPhone的device_id、imei、meid 以及其他相关配置,达到一键新机的效果
|
|
1339
|
+
"""
|
|
1340
|
+
|
|
1341
|
+
|
|
1342
|
+
class RenewUPhoneRequestSchema(schema.RequestSchema):
|
|
1343
|
+
"""RenewUPhone - 修改UPhone的device_id、imei、meid 以及其他相关配置,达到一键新机的效果"""
|
|
1344
|
+
|
|
1345
|
+
fields = {
|
|
1346
|
+
"AndroidID": fields.Str(required=False, dump_to="AndroidID"),
|
|
1347
|
+
"BSSID": fields.Str(required=False, dump_to="BSSID"),
|
|
1348
|
+
"BaseBand": fields.Str(required=False, dump_to="BaseBand"),
|
|
1349
|
+
"Board": fields.Str(required=False, dump_to="Board"),
|
|
1350
|
+
"BootLoader": fields.Str(required=False, dump_to="BootLoader"),
|
|
1351
|
+
"Brand": fields.Str(required=False, dump_to="Brand"),
|
|
1352
|
+
"BuildHost": fields.Str(required=False, dump_to="BuildHost"),
|
|
1353
|
+
"BuildID": fields.Str(required=False, dump_to="BuildID"),
|
|
1354
|
+
"BuildTags": fields.Str(required=False, dump_to="BuildTags"),
|
|
1355
|
+
"BuildVersionInc": fields.Str(
|
|
1356
|
+
required=False, dump_to="BuildVersionInc"
|
|
1357
|
+
),
|
|
1358
|
+
"CityId": fields.Str(required=False, dump_to="CityId"),
|
|
1359
|
+
"Customize": fields.Bool(required=False, dump_to="Customize"),
|
|
1360
|
+
"Device": fields.Str(required=False, dump_to="Device"),
|
|
1361
|
+
"DisplayID": fields.Str(required=False, dump_to="DisplayID"),
|
|
1362
|
+
"FingerPrint": fields.Str(required=False, dump_to="FingerPrint"),
|
|
1363
|
+
"ICCID": fields.Str(required=False, dump_to="ICCID"),
|
|
1364
|
+
"IMEI": fields.Str(required=False, dump_to="IMEI"),
|
|
1365
|
+
"IMEISV": fields.Str(required=False, dump_to="IMEISV"),
|
|
1366
|
+
"IMSI": fields.Str(required=False, dump_to="IMSI"),
|
|
1367
|
+
"Manufacture": fields.Str(required=False, dump_to="Manufacture"),
|
|
1368
|
+
"Model": fields.Str(required=False, dump_to="Model"),
|
|
1369
|
+
"PhoneNumber": fields.Str(required=False, dump_to="PhoneNumber"),
|
|
1370
|
+
"ProductName": fields.Str(required=False, dump_to="ProductName"),
|
|
1371
|
+
"ProductType": fields.Str(required=False, dump_to="ProductType"),
|
|
1372
|
+
"ProjectId": fields.Str(required=False, dump_to="ProjectId"),
|
|
1373
|
+
"RadioMac": fields.Str(required=False, dump_to="RadioMac"),
|
|
1374
|
+
"SerialNumber": fields.Str(required=False, dump_to="SerialNumber"),
|
|
1375
|
+
"UPhoneIds": fields.List(fields.Str()),
|
|
1376
|
+
"WiFiName": fields.Str(required=False, dump_to="WiFiName"),
|
|
1377
|
+
}
|
|
1378
|
+
|
|
1379
|
+
|
|
1380
|
+
class RenewUPhoneResponseSchema(schema.ResponseSchema):
|
|
1381
|
+
"""RenewUPhone - 修改UPhone的device_id、imei、meid 以及其他相关配置,达到一键新机的效果"""
|
|
1382
|
+
|
|
1383
|
+
fields = {
|
|
1384
|
+
"JobId": fields.Str(required=False, load_from="JobId"),
|
|
1385
|
+
"Message": fields.Str(required=True, load_from="Message"),
|
|
1386
|
+
}
|
|
1387
|
+
|
|
1388
|
+
|
|
1389
|
+
"""
|
|
1390
|
+
API: ResetUPhone
|
|
1391
|
+
|
|
1392
|
+
将云手机恢复为创建时的状态。
|
|
1393
|
+
"""
|
|
1394
|
+
|
|
1395
|
+
|
|
1396
|
+
class ResetUPhoneRequestSchema(schema.RequestSchema):
|
|
1397
|
+
"""ResetUPhone - 将云手机恢复为创建时的状态。"""
|
|
1398
|
+
|
|
1399
|
+
fields = {
|
|
1400
|
+
"CityId": fields.Str(required=False, dump_to="CityId"),
|
|
1401
|
+
"ImageId": fields.Str(required=False, dump_to="ImageId"),
|
|
1402
|
+
"ProductType": fields.Str(required=False, dump_to="ProductType"),
|
|
1403
|
+
"ProjectId": fields.Str(required=False, dump_to="ProjectId"),
|
|
1404
|
+
"UPhoneIds": fields.List(fields.Str()),
|
|
1405
|
+
"UPhoneModelName": fields.Str(
|
|
1406
|
+
required=False, dump_to="UPhoneModelName"
|
|
1407
|
+
), # Deprecated, will be removed at 1.0
|
|
1408
|
+
}
|
|
1409
|
+
|
|
1410
|
+
|
|
1411
|
+
class ResetUPhoneResponseSchema(schema.ResponseSchema):
|
|
1412
|
+
"""ResetUPhone - 将云手机恢复为创建时的状态。"""
|
|
1413
|
+
|
|
1414
|
+
fields = {
|
|
1415
|
+
"JobId": fields.Str(required=False, load_from="JobId"),
|
|
1416
|
+
"Message": fields.Str(required=True, load_from="Message"),
|
|
1417
|
+
}
|
|
1418
|
+
|
|
1419
|
+
|
|
1420
|
+
"""
|
|
1421
|
+
API: RunAsyncCommand
|
|
1422
|
+
|
|
1423
|
+
在云手机中执行异步shell命令。
|
|
1424
|
+
"""
|
|
1425
|
+
|
|
1426
|
+
|
|
1427
|
+
class RunAsyncCommandRequestSchema(schema.RequestSchema):
|
|
1428
|
+
"""RunAsyncCommand - 在云手机中执行异步shell命令。"""
|
|
1429
|
+
|
|
1430
|
+
fields = {
|
|
1431
|
+
"CityId": fields.Str(required=False, dump_to="CityId"),
|
|
1432
|
+
"Content": fields.Str(required=True, dump_to="Content"),
|
|
1433
|
+
"ProductType": fields.Str(required=False, dump_to="ProductType"),
|
|
1434
|
+
"ProjectId": fields.Str(required=False, dump_to="ProjectId"),
|
|
1435
|
+
"UPhoneIds": fields.List(fields.Str()),
|
|
1436
|
+
}
|
|
1437
|
+
|
|
1438
|
+
|
|
1439
|
+
class RunAsyncCommandResponseSchema(schema.ResponseSchema):
|
|
1440
|
+
"""RunAsyncCommand - 在云手机中执行异步shell命令。"""
|
|
1441
|
+
|
|
1442
|
+
fields = {
|
|
1443
|
+
"JobId": fields.Str(required=True, load_from="JobId"),
|
|
1444
|
+
"Message": fields.Str(required=True, load_from="Message"),
|
|
1445
|
+
}
|
|
1446
|
+
|
|
1447
|
+
|
|
1448
|
+
"""
|
|
1449
|
+
API: RunSyncCommand
|
|
1450
|
+
|
|
1451
|
+
在云手机中执行同步shell命令。
|
|
1452
|
+
"""
|
|
1453
|
+
|
|
1454
|
+
|
|
1455
|
+
class RunSyncCommandRequestSchema(schema.RequestSchema):
|
|
1456
|
+
"""RunSyncCommand - 在云手机中执行同步shell命令。"""
|
|
1457
|
+
|
|
1458
|
+
fields = {
|
|
1459
|
+
"CityId": fields.Str(required=False, dump_to="CityId"),
|
|
1460
|
+
"Content": fields.Str(required=True, dump_to="Content"),
|
|
1461
|
+
"ProductType": fields.Str(required=False, dump_to="ProductType"),
|
|
1462
|
+
"ProjectId": fields.Str(required=False, dump_to="ProjectId"),
|
|
1463
|
+
"UPhoneIds": fields.List(fields.Str()),
|
|
1464
|
+
}
|
|
1465
|
+
|
|
1466
|
+
|
|
1467
|
+
class RunSyncCommandResponseSchema(schema.ResponseSchema):
|
|
1468
|
+
"""RunSyncCommand - 在云手机中执行同步shell命令。"""
|
|
1469
|
+
|
|
1470
|
+
fields = {
|
|
1471
|
+
"Message": fields.Str(required=True, load_from="Message"),
|
|
1472
|
+
"Results": fields.List(
|
|
1473
|
+
models.UPhoneCommandResultSchema(),
|
|
1474
|
+
required=True,
|
|
1475
|
+
load_from="Results",
|
|
1476
|
+
),
|
|
1477
|
+
}
|
|
1478
|
+
|
|
1479
|
+
|
|
1480
|
+
"""
|
|
1481
|
+
API: SetUPhoneCallback
|
|
1482
|
+
|
|
1483
|
+
设置云手机异步操作以及状态更新回调,支持云手机重置,安装应用,卸载应用,设备占用状态回调
|
|
1484
|
+
"""
|
|
1485
|
+
|
|
1486
|
+
|
|
1487
|
+
class SetUPhoneCallbackRequestSchema(schema.RequestSchema):
|
|
1488
|
+
"""SetUPhoneCallback - 设置云手机异步操作以及状态更新回调,支持云手机重置,安装应用,卸载应用,设备占用状态回调"""
|
|
1489
|
+
|
|
1490
|
+
fields = {
|
|
1491
|
+
"CityId": fields.Str(required=False, dump_to="CityId"),
|
|
1492
|
+
"ProductType": fields.Str(required=False, dump_to="ProductType"),
|
|
1493
|
+
"ProjectId": fields.Str(required=False, dump_to="ProjectId"),
|
|
1494
|
+
"UPhoneId": fields.Str(required=True, dump_to="UPhoneId"),
|
|
1495
|
+
"URL": fields.Str(required=True, dump_to="URL"),
|
|
1496
|
+
}
|
|
1497
|
+
|
|
1498
|
+
|
|
1499
|
+
class SetUPhoneCallbackResponseSchema(schema.ResponseSchema):
|
|
1500
|
+
"""SetUPhoneCallback - 设置云手机异步操作以及状态更新回调,支持云手机重置,安装应用,卸载应用,设备占用状态回调"""
|
|
1501
|
+
|
|
1502
|
+
fields = {}
|
|
1503
|
+
|
|
1504
|
+
|
|
1505
|
+
"""
|
|
1506
|
+
API: SetUPhoneConfig
|
|
1507
|
+
|
|
1508
|
+
设置云手机画面参数(分辨率、DPI、帧率、码率)
|
|
1509
|
+
"""
|
|
1510
|
+
|
|
1511
|
+
|
|
1512
|
+
class SetUPhoneConfigRequestSchema(schema.RequestSchema):
|
|
1513
|
+
"""SetUPhoneConfig - 设置云手机画面参数(分辨率、DPI、帧率、码率)"""
|
|
1514
|
+
|
|
1515
|
+
fields = {
|
|
1516
|
+
"Async": fields.Str(required=False, dump_to="Async"),
|
|
1517
|
+
"Bitrate": fields.Str(required=False, dump_to="Bitrate"),
|
|
1518
|
+
"CityId": fields.Str(required=False, dump_to="CityId"),
|
|
1519
|
+
"Dpi": fields.Str(required=False, dump_to="Dpi"),
|
|
1520
|
+
"ProductType": fields.Str(required=False, dump_to="ProductType"),
|
|
1521
|
+
"ProjectId": fields.Str(required=False, dump_to="ProjectId"),
|
|
1522
|
+
"Refresh": fields.Str(required=False, dump_to="Refresh"),
|
|
1523
|
+
"Resolution": fields.Str(required=False, dump_to="Resolution"),
|
|
1524
|
+
"UPhoneIds": fields.List(fields.Str()),
|
|
1525
|
+
}
|
|
1526
|
+
|
|
1527
|
+
|
|
1528
|
+
class SetUPhoneConfigResponseSchema(schema.ResponseSchema):
|
|
1529
|
+
"""SetUPhoneConfig - 设置云手机画面参数(分辨率、DPI、帧率、码率)"""
|
|
1530
|
+
|
|
1531
|
+
fields = {
|
|
1532
|
+
"JobId": fields.Str(required=False, load_from="JobId"),
|
|
1533
|
+
"Message": fields.Str(required=False, load_from="Message"),
|
|
1534
|
+
"RequestId": fields.Str(required=True, load_from="RequestId"),
|
|
1535
|
+
"Results": fields.List(
|
|
1536
|
+
models.ResultsSchema(), required=False, load_from="Results"
|
|
1537
|
+
),
|
|
1538
|
+
}
|
|
1539
|
+
|
|
1540
|
+
|
|
1541
|
+
"""
|
|
1542
|
+
API: SetUPhoneGPS
|
|
1543
|
+
|
|
1544
|
+
设置云手机GPS信息
|
|
1545
|
+
"""
|
|
1546
|
+
|
|
1547
|
+
|
|
1548
|
+
class SetUPhoneGPSParamUPhoneGPSsSchema(schema.RequestSchema):
|
|
1549
|
+
"""SetUPhoneGPSParamUPhoneGPSs -"""
|
|
1550
|
+
|
|
1551
|
+
fields = {
|
|
1552
|
+
"Altitude": fields.Float(required=False, dump_to="Altitude"),
|
|
1553
|
+
"Enabled": fields.Bool(required=False, dump_to="Enabled"),
|
|
1554
|
+
"Latitude": fields.Float(required=False, dump_to="Latitude"),
|
|
1555
|
+
"Longitude": fields.Float(required=False, dump_to="Longitude"),
|
|
1556
|
+
"UPhoneId": fields.Str(required=False, dump_to="UPhoneId"),
|
|
1557
|
+
}
|
|
1558
|
+
|
|
1559
|
+
|
|
1560
|
+
class SetUPhoneGPSRequestSchema(schema.RequestSchema):
|
|
1561
|
+
"""SetUPhoneGPS - 设置云手机GPS信息"""
|
|
1562
|
+
|
|
1563
|
+
fields = {
|
|
1564
|
+
"CityId": fields.Str(required=False, dump_to="CityId"),
|
|
1565
|
+
"ProductType": fields.Str(required=False, dump_to="ProductType"),
|
|
1566
|
+
"ProjectId": fields.Str(required=False, dump_to="ProjectId"),
|
|
1567
|
+
"UPhoneGPSs": fields.List(SetUPhoneGPSParamUPhoneGPSsSchema()),
|
|
1568
|
+
}
|
|
1569
|
+
|
|
1570
|
+
|
|
1571
|
+
class SetUPhoneGPSResponseSchema(schema.ResponseSchema):
|
|
1572
|
+
"""SetUPhoneGPS - 设置云手机GPS信息"""
|
|
1573
|
+
|
|
1574
|
+
fields = {
|
|
1575
|
+
"JobId": fields.Str(required=False, load_from="JobId"),
|
|
1576
|
+
"Message": fields.Str(required=True, load_from="Message"),
|
|
1577
|
+
}
|
|
1578
|
+
|
|
1579
|
+
|
|
1580
|
+
"""
|
|
1581
|
+
API: SetUPhoneManagerMode
|
|
1582
|
+
|
|
1583
|
+
管理员模式支持所有按键,普通用户模式禁用返回桌面
|
|
1584
|
+
"""
|
|
1585
|
+
|
|
1586
|
+
|
|
1587
|
+
class SetUPhoneManagerModeRequestSchema(schema.RequestSchema):
|
|
1588
|
+
"""SetUPhoneManagerMode - 管理员模式支持所有按键,普通用户模式禁用返回桌面"""
|
|
1589
|
+
|
|
1590
|
+
fields = {
|
|
1591
|
+
"CityId": fields.Str(required=False, dump_to="CityId"),
|
|
1592
|
+
"Mode": fields.Str(required=True, dump_to="Mode"),
|
|
1593
|
+
"ProductType": fields.Str(required=False, dump_to="ProductType"),
|
|
1594
|
+
"ProjectId": fields.Str(required=False, dump_to="ProjectId"),
|
|
1595
|
+
"UPhoneId": fields.Str(required=True, dump_to="UPhoneId"),
|
|
1596
|
+
}
|
|
1597
|
+
|
|
1598
|
+
|
|
1599
|
+
class SetUPhoneManagerModeResponseSchema(schema.ResponseSchema):
|
|
1600
|
+
"""SetUPhoneManagerMode - 管理员模式支持所有按键,普通用户模式禁用返回桌面"""
|
|
1601
|
+
|
|
1602
|
+
fields = {}
|
|
1603
|
+
|
|
1604
|
+
|
|
1605
|
+
"""
|
|
1606
|
+
API: SetUPhoneRootMode
|
|
1607
|
+
|
|
1608
|
+
设置云手机Root模式
|
|
1609
|
+
"""
|
|
1610
|
+
|
|
1611
|
+
|
|
1612
|
+
class SetUPhoneRootModeRequestSchema(schema.RequestSchema):
|
|
1613
|
+
"""SetUPhoneRootMode - 设置云手机Root模式"""
|
|
1614
|
+
|
|
1615
|
+
fields = {
|
|
1616
|
+
"CityId": fields.Str(required=False, dump_to="CityId"),
|
|
1617
|
+
"PkgNames": fields.List(fields.Str()),
|
|
1618
|
+
"ProductType": fields.Str(required=False, dump_to="ProductType"),
|
|
1619
|
+
"ProjectId": fields.Str(required=True, dump_to="ProjectId"),
|
|
1620
|
+
"Root": fields.Bool(required=True, dump_to="Root"),
|
|
1621
|
+
"UPhoneIds": fields.List(fields.Str()),
|
|
1622
|
+
}
|
|
1623
|
+
|
|
1624
|
+
|
|
1625
|
+
class SetUPhoneRootModeResponseSchema(schema.ResponseSchema):
|
|
1626
|
+
"""SetUPhoneRootMode - 设置云手机Root模式"""
|
|
1627
|
+
|
|
1628
|
+
fields = {
|
|
1629
|
+
"JobId": fields.Str(required=True, load_from="JobId"),
|
|
1630
|
+
"Message": fields.Str(required=True, load_from="Message"),
|
|
1631
|
+
}
|
|
1632
|
+
|
|
1633
|
+
|
|
1634
|
+
"""
|
|
1635
|
+
API: SetUPhoneSplashScreen
|
|
1636
|
+
|
|
1637
|
+
|
|
1638
|
+
"""
|
|
1639
|
+
|
|
1640
|
+
|
|
1641
|
+
class SetUPhoneSplashScreenRequestSchema(schema.RequestSchema):
|
|
1642
|
+
"""SetUPhoneSplashScreen -"""
|
|
1643
|
+
|
|
1644
|
+
fields = {
|
|
1645
|
+
"CityId": fields.Str(required=True, dump_to="CityId"),
|
|
1646
|
+
"ProductType": fields.Str(required=False, dump_to="ProductType"),
|
|
1647
|
+
"ProjectId": fields.Str(required=False, dump_to="ProjectId"),
|
|
1648
|
+
"UPhoneId": fields.Str(required=True, dump_to="UPhoneId"),
|
|
1649
|
+
"URL": fields.Str(required=True, dump_to="URL"),
|
|
1650
|
+
}
|
|
1651
|
+
|
|
1652
|
+
|
|
1653
|
+
class SetUPhoneSplashScreenResponseSchema(schema.ResponseSchema):
|
|
1654
|
+
"""SetUPhoneSplashScreen -"""
|
|
1655
|
+
|
|
1656
|
+
fields = {}
|
|
1657
|
+
|
|
1658
|
+
|
|
1659
|
+
"""
|
|
1660
|
+
API: SetUPhoneToken
|
|
1661
|
+
|
|
1662
|
+
设置云手机RTC连接Token提高安全性
|
|
1663
|
+
"""
|
|
1664
|
+
|
|
1665
|
+
|
|
1666
|
+
class SetUPhoneTokenRequestSchema(schema.RequestSchema):
|
|
1667
|
+
"""SetUPhoneToken - 设置云手机RTC连接Token提高安全性"""
|
|
1668
|
+
|
|
1669
|
+
fields = {
|
|
1670
|
+
"CityId": fields.Str(required=False, dump_to="CityId"),
|
|
1671
|
+
"ProductType": fields.Str(required=False, dump_to="ProductType"),
|
|
1672
|
+
"ProjectId": fields.Str(required=False, dump_to="ProjectId"),
|
|
1673
|
+
"Token": fields.Str(required=False, dump_to="Token"),
|
|
1674
|
+
"UPhoneId": fields.Str(required=True, dump_to="UPhoneId"),
|
|
1675
|
+
}
|
|
1676
|
+
|
|
1677
|
+
|
|
1678
|
+
class SetUPhoneTokenResponseSchema(schema.ResponseSchema):
|
|
1679
|
+
"""SetUPhoneToken - 设置云手机RTC连接Token提高安全性"""
|
|
1680
|
+
|
|
1681
|
+
fields = {}
|
|
1682
|
+
|
|
1683
|
+
|
|
1684
|
+
"""
|
|
1685
|
+
API: SwitchUPhoneIndependentIp
|
|
1686
|
+
|
|
1687
|
+
更换云手机独立IP
|
|
1688
|
+
"""
|
|
1689
|
+
|
|
1690
|
+
|
|
1691
|
+
class SwitchUPhoneIndependentIpRequestSchema(schema.RequestSchema):
|
|
1692
|
+
"""SwitchUPhoneIndependentIp - 更换云手机独立IP"""
|
|
1693
|
+
|
|
1694
|
+
fields = {
|
|
1695
|
+
"EipId": fields.Str(required=True, dump_to="EipId"),
|
|
1696
|
+
"ProjectId": fields.Str(required=False, dump_to="ProjectId"),
|
|
1697
|
+
}
|
|
1698
|
+
|
|
1699
|
+
|
|
1700
|
+
class SwitchUPhoneIndependentIpResponseSchema(schema.ResponseSchema):
|
|
1701
|
+
"""SwitchUPhoneIndependentIp - 更换云手机独立IP"""
|
|
1702
|
+
|
|
1703
|
+
fields = {
|
|
1704
|
+
"Message": fields.Str(required=True, load_from="Message"),
|
|
1705
|
+
"NewIp": fields.Str(required=True, load_from="NewIp"),
|
|
1706
|
+
}
|
|
1707
|
+
|
|
1708
|
+
|
|
1709
|
+
"""
|
|
1710
|
+
API: SwitchUPhoneInstance
|
|
1711
|
+
|
|
1712
|
+
|
|
1713
|
+
"""
|
|
1714
|
+
|
|
1715
|
+
|
|
1716
|
+
class SwitchUPhoneInstanceParamSwitchInfosSchema(schema.RequestSchema):
|
|
1717
|
+
"""SwitchUPhoneInstanceParamSwitchInfos -"""
|
|
1718
|
+
|
|
1719
|
+
fields = {
|
|
1720
|
+
"ImageId": fields.Str(required=False, dump_to="ImageId"),
|
|
1721
|
+
"UPhoneId": fields.Str(required=True, dump_to="UPhoneId"),
|
|
1722
|
+
}
|
|
1723
|
+
|
|
1724
|
+
|
|
1725
|
+
class SwitchUPhoneInstanceRequestSchema(schema.RequestSchema):
|
|
1726
|
+
"""SwitchUPhoneInstance -"""
|
|
1727
|
+
|
|
1728
|
+
fields = {
|
|
1729
|
+
"CityId": fields.Str(required=True, dump_to="CityId"),
|
|
1730
|
+
"ProjectId": fields.Str(required=False, dump_to="ProjectId"),
|
|
1731
|
+
"SwitchInfos": fields.List(
|
|
1732
|
+
SwitchUPhoneInstanceParamSwitchInfosSchema()
|
|
1733
|
+
),
|
|
1734
|
+
}
|
|
1735
|
+
|
|
1736
|
+
|
|
1737
|
+
class SwitchUPhoneInstanceResponseSchema(schema.ResponseSchema):
|
|
1738
|
+
"""SwitchUPhoneInstance -"""
|
|
1739
|
+
|
|
1740
|
+
fields = {
|
|
1741
|
+
"JobId": fields.Str(required=True, load_from="JobId"),
|
|
1742
|
+
"Message": fields.Str(required=True, load_from="Message"),
|
|
1743
|
+
}
|
|
1744
|
+
|
|
1745
|
+
|
|
1746
|
+
"""
|
|
1747
|
+
API: UnInstallUPhoneAppVersion
|
|
1748
|
+
|
|
1749
|
+
传入应用版本Id,在云手机中根据应用版本的PackageName卸载相关应用。一次只支持卸载一个应用。
|
|
1750
|
+
"""
|
|
1751
|
+
|
|
1752
|
+
|
|
1753
|
+
class UnInstallUPhoneAppVersionRequestSchema(schema.RequestSchema):
|
|
1754
|
+
"""UnInstallUPhoneAppVersion - 传入应用版本Id,在云手机中根据应用版本的PackageName卸载相关应用。一次只支持卸载一个应用。"""
|
|
1755
|
+
|
|
1756
|
+
fields = {
|
|
1757
|
+
"AppVersionId": fields.Str(required=True, dump_to="AppVersionId"),
|
|
1758
|
+
"CityId": fields.Str(required=False, dump_to="CityId"),
|
|
1759
|
+
"ProductType": fields.Str(required=False, dump_to="ProductType"),
|
|
1760
|
+
"ProjectId": fields.Str(required=False, dump_to="ProjectId"),
|
|
1761
|
+
"UPhoneIds": fields.List(fields.Str()),
|
|
1762
|
+
}
|
|
1763
|
+
|
|
1764
|
+
|
|
1765
|
+
class UnInstallUPhoneAppVersionResponseSchema(schema.ResponseSchema):
|
|
1766
|
+
"""UnInstallUPhoneAppVersion - 传入应用版本Id,在云手机中根据应用版本的PackageName卸载相关应用。一次只支持卸载一个应用。"""
|
|
1767
|
+
|
|
1768
|
+
fields = {
|
|
1769
|
+
"JobId": fields.Str(required=True, load_from="JobId"),
|
|
1770
|
+
"Message": fields.Str(required=True, load_from="Message"),
|
|
1771
|
+
}
|
|
1772
|
+
|
|
1773
|
+
|
|
1774
|
+
"""
|
|
1775
|
+
API: UpdateUPhoneImage
|
|
1776
|
+
|
|
1777
|
+
更新云手机镜像信息。
|
|
1778
|
+
"""
|
|
1779
|
+
|
|
1780
|
+
|
|
1781
|
+
class UpdateUPhoneImageRequestSchema(schema.RequestSchema):
|
|
1782
|
+
"""UpdateUPhoneImage - 更新云手机镜像信息。"""
|
|
1783
|
+
|
|
1784
|
+
fields = {
|
|
1785
|
+
"Description": fields.Str(required=False, dump_to="Description"),
|
|
1786
|
+
"ImageId": fields.Str(required=True, dump_to="ImageId"),
|
|
1787
|
+
"Name": fields.Str(required=False, dump_to="Name"),
|
|
1788
|
+
"ProductType": fields.Str(required=False, dump_to="ProductType"),
|
|
1789
|
+
"ProjectId": fields.Str(required=False, dump_to="ProjectId"),
|
|
1790
|
+
}
|
|
1791
|
+
|
|
1792
|
+
|
|
1793
|
+
class UpdateUPhoneImageResponseSchema(schema.ResponseSchema):
|
|
1794
|
+
"""UpdateUPhoneImage - 更新云手机镜像信息。"""
|
|
1795
|
+
|
|
1796
|
+
fields = {
|
|
1797
|
+
"ImageId": fields.Str(required=True, load_from="ImageId"),
|
|
1798
|
+
"Message": fields.Str(required=True, load_from="Message"),
|
|
1799
|
+
}
|