Skip to content

Commit 857a1f4

Browse files
ucloud-botyufeiminds
authored andcommitted
auto codegen for UCDN (#26)
BUG FIXES: - fix `UCDN` response fields
1 parent a068473 commit 857a1f4

File tree

4 files changed

+16
-3
lines changed

4 files changed

+16
-3
lines changed

docs/services.rst

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,12 @@
11
UCloud SDK Services
22
===================
33

4+
PathX
5+
-----
6+
7+
.. autoclass:: ucloud.services.pathx.client.PathXClient
8+
:members:
9+
410
StepFlow
511
--------
612

ucloud/client.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,13 @@ def __init__(self, config: dict, transport=None, middleware=None):
88
self._config = config
99
super(Client, self).__init__(config, transport, middleware)
1010

11+
def pathx(self):
12+
from ucloud.services.pathx.client import PathXClient
13+
14+
return PathXClient(
15+
self._config, self.transport, self.middleware, self.logger
16+
)
17+
1118
def stepflow(self):
1219
from ucloud.services.stepflow.client import StepFlowClient
1320

ucloud/services/ucdn/client.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ def batch_describe_new_ucdn_domain(
3030
3131
- **Arrearage** (list) - 标识欠费的数组,数组含有下列元素值, 1=国内流量有欠费 2=国外流量有欠费 3=国内带宽有欠费 4=国外带宽有欠费
3232
- **ChargeType** (int) - 当前计费方式,10=流量付费 20=带宽日峰值 30=按月后付费
33-
- **DomainList** (list) - 见 **DomainInfo** 模型定义
33+
- **DomainSet** (list) - 见 **DomainInfo** 模型定义
3434
- **LastChargeType** (int) - 表示最后一次切换的计费方式,10=流量付费 20=带宽日峰值 30=按月后付费 40=未选择计费方式
3535
- **MaxDomainNum** (int) - 最大域名数量,默认20
3636
- **TotalCount** (int) - 满足条件的域名个数

ucloud/services/ucdn/schemas/apis.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,8 +37,8 @@ class BatchDescribeNewUcdnDomainResponseSchema(schema.ResponseSchema):
3737
fields.Str(), required=False, load_from="Arrearage"
3838
),
3939
"ChargeType": fields.Int(required=False, load_from="ChargeType"),
40-
"DomainList": fields.List(
41-
models.DomainInfoSchema(), required=False, load_from="DomainList"
40+
"DomainSet": fields.List(
41+
models.DomainInfoSchema(), required=False, load_from="DomainSet"
4242
),
4343
"LastChargeType": fields.Int(
4444
required=False, load_from="LastChargeType"

0 commit comments

Comments
 (0)