Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions docs/services.rst
Original file line number Diff line number Diff line change
@@ -1,6 +1,12 @@
UCloud SDK Services
===================

PathX
-----

.. autoclass:: ucloud.services.pathx.client.PathXClient
:members:

StepFlow
--------

Expand Down
7 changes: 7 additions & 0 deletions ucloud/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,13 @@ def __init__(self, config: dict, transport=None, middleware=None):
self._config = config
super(Client, self).__init__(config, transport, middleware)

def pathx(self):
from ucloud.services.pathx.client import PathXClient

return PathXClient(
self._config, self.transport, self.middleware, self.logger
)

def stepflow(self):
from ucloud.services.stepflow.client import StepFlowClient

Expand Down
2 changes: 1 addition & 1 deletion ucloud/services/ucdn/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ def batch_describe_new_ucdn_domain(

- **Arrearage** (list) - 标识欠费的数组,数组含有下列元素值, 1=国内流量有欠费 2=国外流量有欠费 3=国内带宽有欠费 4=国外带宽有欠费
- **ChargeType** (int) - 当前计费方式,10=流量付费 20=带宽日峰值 30=按月后付费
- **DomainList** (list) - 见 **DomainInfo** 模型定义
- **DomainSet** (list) - 见 **DomainInfo** 模型定义
- **LastChargeType** (int) - 表示最后一次切换的计费方式,10=流量付费 20=带宽日峰值 30=按月后付费 40=未选择计费方式
- **MaxDomainNum** (int) - 最大域名数量,默认20
- **TotalCount** (int) - 满足条件的域名个数
Expand Down
4 changes: 2 additions & 2 deletions ucloud/services/ucdn/schemas/apis.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,8 +37,8 @@ class BatchDescribeNewUcdnDomainResponseSchema(schema.ResponseSchema):
fields.Str(), required=False, load_from="Arrearage"
),
"ChargeType": fields.Int(required=False, load_from="ChargeType"),
"DomainList": fields.List(
models.DomainInfoSchema(), required=False, load_from="DomainList"
"DomainSet": fields.List(
models.DomainInfoSchema(), required=False, load_from="DomainSet"
),
"LastChargeType": fields.Int(
required=False, load_from="LastChargeType"
Expand Down