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,35 @@
|
|
|
1
|
+
""" Code is generated by ucloud-model, DO NOT EDIT IT. """
|
|
2
|
+
|
|
3
|
+
from ucloud.core.typesystem import schema, fields
|
|
4
|
+
from ucloud.services.sts.schemas import models
|
|
5
|
+
|
|
6
|
+
""" STS API Schema
|
|
7
|
+
"""
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
"""
|
|
11
|
+
API: AssumeRole
|
|
12
|
+
|
|
13
|
+
获取扮演角色的临时身份凭证
|
|
14
|
+
"""
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
class AssumeRoleRequestSchema(schema.RequestSchema):
|
|
18
|
+
"""AssumeRole - 获取扮演角色的临时身份凭证"""
|
|
19
|
+
|
|
20
|
+
fields = {
|
|
21
|
+
"DurationSeconds": fields.Int(
|
|
22
|
+
required=False, dump_to="DurationSeconds"
|
|
23
|
+
),
|
|
24
|
+
"Policy": fields.Str(required=False, dump_to="Policy"),
|
|
25
|
+
"RoleSessionName": fields.Str(required=True, dump_to="RoleSessionName"),
|
|
26
|
+
"RoleUrn": fields.Str(required=True, dump_to="RoleUrn"),
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
|
|
30
|
+
class AssumeRoleResponseSchema(schema.ResponseSchema):
|
|
31
|
+
"""AssumeRole - 获取扮演角色的临时身份凭证"""
|
|
32
|
+
|
|
33
|
+
fields = {
|
|
34
|
+
"Credentials": models.CredentialsSchema(),
|
|
35
|
+
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
""" Code is generated by ucloud-model, DO NOT EDIT IT. """
|
|
2
|
+
|
|
3
|
+
from ucloud.core.typesystem import schema, fields
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
class CredentialsSchema(schema.ResponseSchema):
|
|
7
|
+
"""Credentials -"""
|
|
8
|
+
|
|
9
|
+
fields = {
|
|
10
|
+
"AccessKeyId": fields.Str(required=True, load_from="AccessKeyId"),
|
|
11
|
+
"AccessKeySecret": fields.Str(
|
|
12
|
+
required=True, load_from="AccessKeySecret"
|
|
13
|
+
),
|
|
14
|
+
"Expiration": fields.Str(required=True, load_from="Expiration"),
|
|
15
|
+
"SecurityToken": fields.Str(required=True, load_from="SecurityToken"),
|
|
16
|
+
}
|
|
File without changes
|
|
@@ -0,0 +1,120 @@
|
|
|
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.tidb.schemas import apis
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
class TiDBClient(Client):
|
|
11
|
+
def __init__(
|
|
12
|
+
self, config: dict, transport=None, middleware=None, logger=None
|
|
13
|
+
):
|
|
14
|
+
super(TiDBClient, self).__init__(config, transport, middleware, logger)
|
|
15
|
+
|
|
16
|
+
def create_ti_db_service(
|
|
17
|
+
self, req: typing.Optional[dict] = None, **kwargs
|
|
18
|
+
) -> dict:
|
|
19
|
+
"""CreateTiDBService - 创建TiDB服务
|
|
20
|
+
|
|
21
|
+
**Request**
|
|
22
|
+
|
|
23
|
+
- **ProjectId** (str) - (Config) 项目 ID
|
|
24
|
+
- **Region** (str) - (Config) 地域。 参见 `地域和可用区列表 <https://docs.ucloud.cn/api/summary/regionlist>`_
|
|
25
|
+
- **Name** (str) - (Required) 服务名称, 长度不超过64
|
|
26
|
+
- **Password** (str) - (Required) 服务root账号的密码, 长度不超过32
|
|
27
|
+
- **SubnetId** (str) - (Required) 子网 ID
|
|
28
|
+
- **VPCId** (str) - (Required) VPC ID
|
|
29
|
+
- **DTType** (str) - 容灾类型:10:同可用区,20:跨可用区,默认是同可用区
|
|
30
|
+
- **Ip** (str) - ipv4
|
|
31
|
+
- **Port** (str) - 端口
|
|
32
|
+
- **TikvMemoryHardTh** (str) - 实例类型: 0: 旗舰版,30: 体验版,60: 轻量版
|
|
33
|
+
|
|
34
|
+
**Response**
|
|
35
|
+
|
|
36
|
+
- **Data** (dict) - 见 **ServiceID** 模型定义
|
|
37
|
+
- **Message** (str) - 返回信息
|
|
38
|
+
- **ServiceId** (str) - 服务ID
|
|
39
|
+
|
|
40
|
+
**Response Model**
|
|
41
|
+
|
|
42
|
+
**ServiceID**
|
|
43
|
+
- **Id** (str) - 服务ID
|
|
44
|
+
|
|
45
|
+
|
|
46
|
+
"""
|
|
47
|
+
# build request
|
|
48
|
+
d = {
|
|
49
|
+
"ProjectId": self.config.project_id,
|
|
50
|
+
"Region": self.config.region,
|
|
51
|
+
}
|
|
52
|
+
req and d.update(req)
|
|
53
|
+
d = apis.CreateTiDBServiceRequestSchema().dumps(d)
|
|
54
|
+
|
|
55
|
+
# build options
|
|
56
|
+
kwargs["max_retries"] = 0 # ignore retry when api is not idempotent
|
|
57
|
+
|
|
58
|
+
resp = self.invoke("CreateTiDBService", d, **kwargs)
|
|
59
|
+
return apis.CreateTiDBServiceResponseSchema().loads(resp)
|
|
60
|
+
|
|
61
|
+
def delete_ti_db_service(
|
|
62
|
+
self, req: typing.Optional[dict] = None, **kwargs
|
|
63
|
+
) -> dict:
|
|
64
|
+
"""DeleteTiDBService - 删除一个服务
|
|
65
|
+
|
|
66
|
+
**Request**
|
|
67
|
+
|
|
68
|
+
- **Region** (str) - (Config) 地域。 参见 `地域和可用区列表 <https://docs.ucloud.cn/api/summary/regionlist>`_
|
|
69
|
+
- **Id** (str) - (Required) 资源ID
|
|
70
|
+
|
|
71
|
+
**Response**
|
|
72
|
+
|
|
73
|
+
- **Message** (str) - 返回信息
|
|
74
|
+
- **ServiceId** (str) - ServiceId
|
|
75
|
+
|
|
76
|
+
"""
|
|
77
|
+
# build request
|
|
78
|
+
d = {
|
|
79
|
+
"Region": self.config.region,
|
|
80
|
+
}
|
|
81
|
+
req and d.update(req)
|
|
82
|
+
d = apis.DeleteTiDBServiceRequestSchema().dumps(d)
|
|
83
|
+
|
|
84
|
+
resp = self.invoke("DeleteTiDBService", d, **kwargs)
|
|
85
|
+
return apis.DeleteTiDBServiceResponseSchema().loads(resp)
|
|
86
|
+
|
|
87
|
+
def set_ti_db_config(
|
|
88
|
+
self, req: typing.Optional[dict] = None, **kwargs
|
|
89
|
+
) -> dict:
|
|
90
|
+
"""SetTiDBConfig - 设置TiDB服务实例参数
|
|
91
|
+
|
|
92
|
+
**Request**
|
|
93
|
+
|
|
94
|
+
- **ProjectId** (str) - (Config) 项目ID。不填写为默认项目,子帐号必须填写。 请参考 `GetProjectList接口 <https://docs.ucloud.cn/api/summary/get_project_list>`_
|
|
95
|
+
- **Region** (str) - (Config) 地域。 参见 `地域和可用区列表 <https://docs.ucloud.cn/api/summary/regionlist>`_
|
|
96
|
+
- **Id** (str) - (Required) 资源Id
|
|
97
|
+
- **Configs** (list) - 见 **SetTiDBConfigParamConfigs** 模型定义
|
|
98
|
+
|
|
99
|
+
**Response**
|
|
100
|
+
|
|
101
|
+
- **ServiceId** (str) - ServiceId
|
|
102
|
+
|
|
103
|
+
**Request Model**
|
|
104
|
+
|
|
105
|
+
**SetTiDBConfigParamConfigs**
|
|
106
|
+
- **Name** (str) - 修改的参数名: proxysql_mysql-max_connections:类型:string, 描述: 所有用户总共的最大连接数 。proxysql_max_connections: 类型:string, 描述: 每个用户的最大连接数。tidb_gc: 类型:string, 描述: tikv_gc_life_time。
|
|
107
|
+
- **Value** (str) - 对应修改的参数值: string
|
|
108
|
+
|
|
109
|
+
|
|
110
|
+
"""
|
|
111
|
+
# build request
|
|
112
|
+
d = {
|
|
113
|
+
"ProjectId": self.config.project_id,
|
|
114
|
+
"Region": self.config.region,
|
|
115
|
+
}
|
|
116
|
+
req and d.update(req)
|
|
117
|
+
d = apis.SetTiDBConfigRequestSchema().dumps(d)
|
|
118
|
+
|
|
119
|
+
resp = self.invoke("SetTiDBConfig", d, **kwargs)
|
|
120
|
+
return apis.SetTiDBConfigResponseSchema().loads(resp)
|
|
File without changes
|
|
@@ -0,0 +1,103 @@
|
|
|
1
|
+
""" Code is generated by ucloud-model, DO NOT EDIT IT. """
|
|
2
|
+
|
|
3
|
+
from ucloud.core.typesystem import schema, fields
|
|
4
|
+
from ucloud.services.tidb.schemas import models
|
|
5
|
+
|
|
6
|
+
""" TiDB API Schema
|
|
7
|
+
"""
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
"""
|
|
11
|
+
API: CreateTiDBService
|
|
12
|
+
|
|
13
|
+
创建TiDB服务
|
|
14
|
+
"""
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
class CreateTiDBServiceRequestSchema(schema.RequestSchema):
|
|
18
|
+
"""CreateTiDBService - 创建TiDB服务"""
|
|
19
|
+
|
|
20
|
+
fields = {
|
|
21
|
+
"DTType": fields.Str(required=False, dump_to="DTType"),
|
|
22
|
+
"Ip": fields.Str(required=False, dump_to="Ip"),
|
|
23
|
+
"Name": fields.Str(required=True, dump_to="Name"),
|
|
24
|
+
"Password": fields.Str(required=True, dump_to="Password"),
|
|
25
|
+
"Port": fields.Str(required=False, dump_to="Port"),
|
|
26
|
+
"ProjectId": fields.Str(required=True, dump_to="ProjectId"),
|
|
27
|
+
"Region": fields.Str(required=True, dump_to="Region"),
|
|
28
|
+
"SubnetId": fields.Str(required=True, dump_to="SubnetId"),
|
|
29
|
+
"TikvMemoryHardTh": fields.Str(
|
|
30
|
+
required=False, dump_to="TikvMemoryHardTh"
|
|
31
|
+
),
|
|
32
|
+
"VPCId": fields.Str(required=True, dump_to="VPCId"),
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
|
|
36
|
+
class CreateTiDBServiceResponseSchema(schema.ResponseSchema):
|
|
37
|
+
"""CreateTiDBService - 创建TiDB服务"""
|
|
38
|
+
|
|
39
|
+
fields = {
|
|
40
|
+
"Data": models.ServiceIDSchema(),
|
|
41
|
+
"Message": fields.Str(required=False, load_from="Message"),
|
|
42
|
+
"ServiceId": fields.Str(required=False, load_from="ServiceId"),
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
|
|
46
|
+
"""
|
|
47
|
+
API: DeleteTiDBService
|
|
48
|
+
|
|
49
|
+
删除一个服务
|
|
50
|
+
"""
|
|
51
|
+
|
|
52
|
+
|
|
53
|
+
class DeleteTiDBServiceRequestSchema(schema.RequestSchema):
|
|
54
|
+
"""DeleteTiDBService - 删除一个服务"""
|
|
55
|
+
|
|
56
|
+
fields = {
|
|
57
|
+
"Id": fields.Str(required=True, dump_to="Id"),
|
|
58
|
+
"Region": fields.Str(required=True, dump_to="Region"),
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
|
|
62
|
+
class DeleteTiDBServiceResponseSchema(schema.ResponseSchema):
|
|
63
|
+
"""DeleteTiDBService - 删除一个服务"""
|
|
64
|
+
|
|
65
|
+
fields = {
|
|
66
|
+
"Message": fields.Str(required=True, load_from="Message"),
|
|
67
|
+
"ServiceId": fields.Str(required=False, load_from="ServiceId"),
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
|
|
71
|
+
"""
|
|
72
|
+
API: SetTiDBConfig
|
|
73
|
+
|
|
74
|
+
设置TiDB服务实例参数
|
|
75
|
+
"""
|
|
76
|
+
|
|
77
|
+
|
|
78
|
+
class SetTiDBConfigParamConfigsSchema(schema.RequestSchema):
|
|
79
|
+
"""SetTiDBConfigParamConfigs -"""
|
|
80
|
+
|
|
81
|
+
fields = {
|
|
82
|
+
"Name": fields.Str(required=True, dump_to="Name"),
|
|
83
|
+
"Value": fields.Str(required=True, dump_to="Value"),
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
|
|
87
|
+
class SetTiDBConfigRequestSchema(schema.RequestSchema):
|
|
88
|
+
"""SetTiDBConfig - 设置TiDB服务实例参数"""
|
|
89
|
+
|
|
90
|
+
fields = {
|
|
91
|
+
"Configs": fields.List(SetTiDBConfigParamConfigsSchema()),
|
|
92
|
+
"Id": fields.Str(required=True, dump_to="Id"),
|
|
93
|
+
"ProjectId": fields.Str(required=False, dump_to="ProjectId"),
|
|
94
|
+
"Region": fields.Str(required=True, dump_to="Region"),
|
|
95
|
+
}
|
|
96
|
+
|
|
97
|
+
|
|
98
|
+
class SetTiDBConfigResponseSchema(schema.ResponseSchema):
|
|
99
|
+
"""SetTiDBConfig - 设置TiDB服务实例参数"""
|
|
100
|
+
|
|
101
|
+
fields = {
|
|
102
|
+
"ServiceId": fields.Str(required=False, load_from="ServiceId"),
|
|
103
|
+
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
""" Code is generated by ucloud-model, DO NOT EDIT IT. """
|
|
2
|
+
|
|
3
|
+
from ucloud.core.typesystem import schema, fields
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
class ServiceIDSchema(schema.ResponseSchema):
|
|
7
|
+
"""ServiceID - 服务ID"""
|
|
8
|
+
|
|
9
|
+
fields = {
|
|
10
|
+
"Id": fields.Str(required=True, load_from="Id"),
|
|
11
|
+
}
|
|
File without changes
|
|
@@ -0,0 +1,311 @@
|
|
|
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.uaaa.schemas import apis
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
class UAAAClient(Client):
|
|
11
|
+
def __init__(
|
|
12
|
+
self, config: dict, transport=None, middleware=None, logger=None
|
|
13
|
+
):
|
|
14
|
+
super(UAAAClient, self).__init__(config, transport, middleware, logger)
|
|
15
|
+
|
|
16
|
+
def create_app_repo(
|
|
17
|
+
self, req: typing.Optional[dict] = None, **kwargs
|
|
18
|
+
) -> dict:
|
|
19
|
+
"""CreateAppRepo - 创建应用仓库加速实例
|
|
20
|
+
|
|
21
|
+
**Request**
|
|
22
|
+
|
|
23
|
+
- **ProjectId** (str) - (Config) 项目ID。不填写为默认项目,子帐号必须填写。 请参考 `GetProjectList接口 <https://docs.ucloud.cn/api/summary/get_project_list>`_
|
|
24
|
+
- **Region** (str) - (Config) 地域。 参见 `地域和可用区列表 <https://docs.ucloud.cn/api/summary/regionlist>`_
|
|
25
|
+
- **ChargeType** (str) - (Required) 计费类型(年:'Year', 月:'Month',小时:'Dynamic')
|
|
26
|
+
- **Name** (str) - (Required) 名称
|
|
27
|
+
- **VPCId** (list) - (Required) 待加速的VPCId ( 目前只允许一个)
|
|
28
|
+
- **CouponId** (str) - 代金券
|
|
29
|
+
- **Description** (str) - 应用仓库描述
|
|
30
|
+
- **Quantity** (int) - 数量(ChargeType对应的数值): ChargeType = Month 时,默认0 ,其他条件为必须字段
|
|
31
|
+
- **RecordName** (list) - 记录名称,需在给定列表中
|
|
32
|
+
|
|
33
|
+
**Response**
|
|
34
|
+
|
|
35
|
+
- **InstanceId** (str) - 应用仓库加速实例ID
|
|
36
|
+
- **Message** (str) - 错误信息
|
|
37
|
+
|
|
38
|
+
"""
|
|
39
|
+
# build request
|
|
40
|
+
d = {
|
|
41
|
+
"ProjectId": self.config.project_id,
|
|
42
|
+
"Region": self.config.region,
|
|
43
|
+
}
|
|
44
|
+
req and d.update(req)
|
|
45
|
+
d = apis.CreateAppRepoRequestSchema().dumps(d)
|
|
46
|
+
|
|
47
|
+
# build options
|
|
48
|
+
kwargs["max_retries"] = 0 # ignore retry when api is not idempotent
|
|
49
|
+
|
|
50
|
+
resp = self.invoke("CreateAppRepo", d, **kwargs)
|
|
51
|
+
return apis.CreateAppRepoResponseSchema().loads(resp)
|
|
52
|
+
|
|
53
|
+
def delete_app_repo(
|
|
54
|
+
self, req: typing.Optional[dict] = None, **kwargs
|
|
55
|
+
) -> dict:
|
|
56
|
+
"""DeleteAppRepo - 删除应用仓库加速实例
|
|
57
|
+
|
|
58
|
+
**Request**
|
|
59
|
+
|
|
60
|
+
- **ProjectId** (str) - (Config) 项目ID。不填写为默认项目,子帐号必须填写。 请参考 `GetProjectList接口 <https://docs.ucloud.cn/api/summary/get_project_list>`_
|
|
61
|
+
- **Region** (str) - (Config) 地域。 参见 `地域和可用区列表 <https://docs.ucloud.cn/api/summary/regionlist>`_
|
|
62
|
+
- **InstanceId** (str) - (Required) 实例 ID
|
|
63
|
+
|
|
64
|
+
**Response**
|
|
65
|
+
|
|
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.DeleteAppRepoRequestSchema().dumps(d)
|
|
75
|
+
|
|
76
|
+
resp = self.invoke("DeleteAppRepo", d, **kwargs)
|
|
77
|
+
return apis.DeleteAppRepoResponseSchema().loads(resp)
|
|
78
|
+
|
|
79
|
+
def describe_app_repo(
|
|
80
|
+
self, req: typing.Optional[dict] = None, **kwargs
|
|
81
|
+
) -> dict:
|
|
82
|
+
"""DescribeAppRepo - 查询应用仓库实例信息
|
|
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
|
+
- **InstanceId** (str) - 应用仓库加速实例ID
|
|
89
|
+
|
|
90
|
+
**Response**
|
|
91
|
+
|
|
92
|
+
- **DataSet** (list) - 见 **AppRepoInstance** 模型定义
|
|
93
|
+
- **Message** (str) - 错误信息
|
|
94
|
+
|
|
95
|
+
**Response Model**
|
|
96
|
+
|
|
97
|
+
**AppRepoInstance**
|
|
98
|
+
- **ChargeType** (str) - 计费类型
|
|
99
|
+
- **CreateTime** (int) - 创建时间。格式为Unix Timestamp
|
|
100
|
+
- **Description** (str) - 应用仓库描述信息
|
|
101
|
+
- **ExpireTime** (int) - 到期时间
|
|
102
|
+
- **InstanceId** (str) - 应用仓库实例ID
|
|
103
|
+
- **Name** (str) - 应用仓库名
|
|
104
|
+
- **RecordName** (list) - 应用仓库绑定的加速域名
|
|
105
|
+
- **VPC** (list) - 应用仓库绑定的vpc 信息
|
|
106
|
+
|
|
107
|
+
|
|
108
|
+
"""
|
|
109
|
+
# build request
|
|
110
|
+
d = {
|
|
111
|
+
"ProjectId": self.config.project_id,
|
|
112
|
+
"Region": self.config.region,
|
|
113
|
+
}
|
|
114
|
+
req and d.update(req)
|
|
115
|
+
d = apis.DescribeAppRepoRequestSchema().dumps(d)
|
|
116
|
+
|
|
117
|
+
resp = self.invoke("DescribeAppRepo", d, **kwargs)
|
|
118
|
+
return apis.DescribeAppRepoResponseSchema().loads(resp)
|
|
119
|
+
|
|
120
|
+
def describe_app_repo_permit_domain(
|
|
121
|
+
self, req: typing.Optional[dict] = None, **kwargs
|
|
122
|
+
) -> dict:
|
|
123
|
+
"""DescribeAppRepoPermitDomain - 查询允许加速的域名白名单
|
|
124
|
+
|
|
125
|
+
**Request**
|
|
126
|
+
|
|
127
|
+
- **ProjectId** (str) - (Config) 项目ID。不填写为默认项目,子帐号必须填写。 请参考 `GetProjectList接口 <https://docs.ucloud.cn/api/summary/get_project_list>`_
|
|
128
|
+
- **Region** (str) - (Config) 地域。 参见 `地域和可用区列表 <https://docs.ucloud.cn/api/summary/regionlist>`_
|
|
129
|
+
|
|
130
|
+
**Response**
|
|
131
|
+
|
|
132
|
+
- **DataSet** (list) - 见 **DomainDetail** 模型定义
|
|
133
|
+
- **Message** (str) - 错误信息
|
|
134
|
+
|
|
135
|
+
**Response Model**
|
|
136
|
+
|
|
137
|
+
**DomainDetail**
|
|
138
|
+
- **Info** (dict) - 见 **DomainInfo** 模型定义
|
|
139
|
+
- **Redirect** (list) - 见 **DomainInfo** 模型定义
|
|
140
|
+
|
|
141
|
+
|
|
142
|
+
**DomainInfo**
|
|
143
|
+
- **Desc** (str) - 备注信息
|
|
144
|
+
- **DomainName** (str) - 域名解析记录名称
|
|
145
|
+
|
|
146
|
+
|
|
147
|
+
"""
|
|
148
|
+
# build request
|
|
149
|
+
d = {
|
|
150
|
+
"ProjectId": self.config.project_id,
|
|
151
|
+
"Region": self.config.region,
|
|
152
|
+
}
|
|
153
|
+
req and d.update(req)
|
|
154
|
+
d = apis.DescribeAppRepoPermitDomainRequestSchema().dumps(d)
|
|
155
|
+
|
|
156
|
+
resp = self.invoke("DescribeAppRepoPermitDomain", d, **kwargs)
|
|
157
|
+
return apis.DescribeAppRepoPermitDomainResponseSchema().loads(resp)
|
|
158
|
+
|
|
159
|
+
def describe_app_repo_post_paid_record(
|
|
160
|
+
self, req: typing.Optional[dict] = None, **kwargs
|
|
161
|
+
) -> dict:
|
|
162
|
+
"""DescribeAppRepoPostPaidRecord - 查询应用仓库实例后付费记录
|
|
163
|
+
|
|
164
|
+
**Request**
|
|
165
|
+
|
|
166
|
+
- **ProjectId** (str) - (Config) 项目ID。不填写为默认项目,子帐号必须填写。 请参考 `GetProjectList接口 <https://docs.ucloud.cn/api/summary/get_project_list>`_
|
|
167
|
+
- **Region** (str) - (Config) 地域。 参见 `地域和可用区列表 <https://docs.ucloud.cn/api/summary/regionlist>`_
|
|
168
|
+
- **EndTime** (int) - (Required) 结束时间 (StartTime <EndTime )
|
|
169
|
+
- **InstanceId** (str) - (Required) 应用仓库实例
|
|
170
|
+
- **StartTime** (int) - (Required) 开始时间 (StartTime <EndTime )
|
|
171
|
+
- **Limit** (int) - 最大查询数量(默认30, 最大值200 )
|
|
172
|
+
- **Offset** (int) - 偏移量(默认0,最小值 0)
|
|
173
|
+
|
|
174
|
+
**Response**
|
|
175
|
+
|
|
176
|
+
- **DataSet** (list) - 见 **TPostpaidBase** 模型定义
|
|
177
|
+
- **TotalCount** (int) - 记录总数
|
|
178
|
+
|
|
179
|
+
**Response Model**
|
|
180
|
+
|
|
181
|
+
**TPostpaidBase**
|
|
182
|
+
- **EndTime** (int) - 结束时间
|
|
183
|
+
- **InstanceId** (str) - 应用仓库资源ID
|
|
184
|
+
- **StartTime** (int) - 开始时间
|
|
185
|
+
- **TrafficSum** (int) - 流量(单位: MB)
|
|
186
|
+
|
|
187
|
+
|
|
188
|
+
"""
|
|
189
|
+
# build request
|
|
190
|
+
d = {
|
|
191
|
+
"ProjectId": self.config.project_id,
|
|
192
|
+
"Region": self.config.region,
|
|
193
|
+
}
|
|
194
|
+
req and d.update(req)
|
|
195
|
+
d = apis.DescribeAppRepoPostPaidRecordRequestSchema().dumps(d)
|
|
196
|
+
|
|
197
|
+
resp = self.invoke("DescribeAppRepoPostPaidRecord", d, **kwargs)
|
|
198
|
+
return apis.DescribeAppRepoPostPaidRecordResponseSchema().loads(resp)
|
|
199
|
+
|
|
200
|
+
def get_app_repo_price(
|
|
201
|
+
self, req: typing.Optional[dict] = None, **kwargs
|
|
202
|
+
) -> dict:
|
|
203
|
+
"""GetAppRepoPrice - 获取应用仓库实例价格
|
|
204
|
+
|
|
205
|
+
**Request**
|
|
206
|
+
|
|
207
|
+
- **ProjectId** (str) - (Config) 项目ID。不填写为默认项目,子帐号必须填写。 请参考 `GetProjectList接口 <https://docs.ucloud.cn/api/summary/get_project_list>`_
|
|
208
|
+
- **Region** (str) - (Config) 地域。 参见 `地域和可用区列表 <https://docs.ucloud.cn/api/summary/regionlist>`_
|
|
209
|
+
- **ChargeType** (str) - (Required) 计费类型
|
|
210
|
+
- **DomainQuantity** (int) - 域名绑定数量( >= 0) ,默认: 0
|
|
211
|
+
- **Quantity** (int) - 数量(和ChargeType相关): ChargeType = Month, 默认值为0 , 其他情况为必传字段
|
|
212
|
+
|
|
213
|
+
**Response**
|
|
214
|
+
|
|
215
|
+
- **Price** (float) - 价格
|
|
216
|
+
|
|
217
|
+
"""
|
|
218
|
+
# build request
|
|
219
|
+
d = {
|
|
220
|
+
"ProjectId": self.config.project_id,
|
|
221
|
+
"Region": self.config.region,
|
|
222
|
+
}
|
|
223
|
+
req and d.update(req)
|
|
224
|
+
d = apis.GetAppRepoPriceRequestSchema().dumps(d)
|
|
225
|
+
|
|
226
|
+
resp = self.invoke("GetAppRepoPrice", d, **kwargs)
|
|
227
|
+
return apis.GetAppRepoPriceResponseSchema().loads(resp)
|
|
228
|
+
|
|
229
|
+
def get_app_repo_upgrade_price(
|
|
230
|
+
self, req: typing.Optional[dict] = None, **kwargs
|
|
231
|
+
) -> dict:
|
|
232
|
+
"""GetAppRepoUpgradePrice - 获取改配后的退/补金额
|
|
233
|
+
|
|
234
|
+
**Request**
|
|
235
|
+
|
|
236
|
+
- **ProjectId** (str) - (Config) 项目ID。不填写为默认项目,子帐号必须填写。 请参考 `GetProjectList接口 <https://docs.ucloud.cn/api/summary/get_project_list>`_
|
|
237
|
+
- **Region** (str) - (Config) 地域。 参见 `地域和可用区列表 <https://docs.ucloud.cn/api/summary/regionlist>`_
|
|
238
|
+
- **InstanceId** (str) - (Required) 实例资源id
|
|
239
|
+
- **DomainQuantity** (int) - 绑定域名的数量
|
|
240
|
+
|
|
241
|
+
**Response**
|
|
242
|
+
|
|
243
|
+
- **Price** (float) - 应补差价(单位:元)
|
|
244
|
+
|
|
245
|
+
"""
|
|
246
|
+
# build request
|
|
247
|
+
d = {
|
|
248
|
+
"ProjectId": self.config.project_id,
|
|
249
|
+
"Region": self.config.region,
|
|
250
|
+
}
|
|
251
|
+
req and d.update(req)
|
|
252
|
+
d = apis.GetAppRepoUpgradePriceRequestSchema().dumps(d)
|
|
253
|
+
|
|
254
|
+
resp = self.invoke("GetAppRepoUpgradePrice", d, **kwargs)
|
|
255
|
+
return apis.GetAppRepoUpgradePriceResponseSchema().loads(resp)
|
|
256
|
+
|
|
257
|
+
def update_app_repo(
|
|
258
|
+
self, req: typing.Optional[dict] = None, **kwargs
|
|
259
|
+
) -> dict:
|
|
260
|
+
"""UpdateAppRepo - 修改应用仓库实例基本信息
|
|
261
|
+
|
|
262
|
+
**Request**
|
|
263
|
+
|
|
264
|
+
- **ProjectId** (str) - (Config) 项目ID。不填写为默认项目,子帐号必须填写。 请参考 `GetProjectList接口 <https://docs.ucloud.cn/api/summary/get_project_list>`_
|
|
265
|
+
- **Region** (str) - (Config) 地域。 参见 `地域和可用区列表 <https://docs.ucloud.cn/api/summary/regionlist>`_
|
|
266
|
+
- **InstanceId** (str) - (Required) 应用仓库实例ID
|
|
267
|
+
- **Description** (str) - 应用仓库备注信息
|
|
268
|
+
- **Name** (str) - 应用仓库名称
|
|
269
|
+
|
|
270
|
+
**Response**
|
|
271
|
+
|
|
272
|
+
|
|
273
|
+
"""
|
|
274
|
+
# build request
|
|
275
|
+
d = {
|
|
276
|
+
"ProjectId": self.config.project_id,
|
|
277
|
+
"Region": self.config.region,
|
|
278
|
+
}
|
|
279
|
+
req and d.update(req)
|
|
280
|
+
d = apis.UpdateAppRepoRequestSchema().dumps(d)
|
|
281
|
+
|
|
282
|
+
resp = self.invoke("UpdateAppRepo", d, **kwargs)
|
|
283
|
+
return apis.UpdateAppRepoResponseSchema().loads(resp)
|
|
284
|
+
|
|
285
|
+
def update_app_repo_domain_name(
|
|
286
|
+
self, req: typing.Optional[dict] = None, **kwargs
|
|
287
|
+
) -> dict:
|
|
288
|
+
"""UpdateAppRepoDomainName - 更新应用仓库实例绑定的加速域名
|
|
289
|
+
|
|
290
|
+
**Request**
|
|
291
|
+
|
|
292
|
+
- **ProjectId** (str) - (Config) 项目ID。不填写为默认项目,子帐号必须填写。 请参考 `GetProjectList接口 <https://docs.ucloud.cn/api/summary/get_project_list>`_
|
|
293
|
+
- **Region** (str) - (Config) 地域。 参见 `地域和可用区列表 <https://docs.ucloud.cn/api/summary/regionlist>`_
|
|
294
|
+
- **InstanceId** (str) - (Required) 应用仓库实例ID
|
|
295
|
+
- **CouponId** (str) - 代金券
|
|
296
|
+
- **RecordName** (list) - 加速域名列表。 不填写,相当于清空所有加速域名
|
|
297
|
+
|
|
298
|
+
**Response**
|
|
299
|
+
|
|
300
|
+
|
|
301
|
+
"""
|
|
302
|
+
# build request
|
|
303
|
+
d = {
|
|
304
|
+
"ProjectId": self.config.project_id,
|
|
305
|
+
"Region": self.config.region,
|
|
306
|
+
}
|
|
307
|
+
req and d.update(req)
|
|
308
|
+
d = apis.UpdateAppRepoDomainNameRequestSchema().dumps(d)
|
|
309
|
+
|
|
310
|
+
resp = self.invoke("UpdateAppRepoDomainName", d, **kwargs)
|
|
311
|
+
return apis.UpdateAppRepoDomainNameResponseSchema().loads(resp)
|
|
File without changes
|