Skip to content

Commit b26728f

Browse files
authored
auto codegen for PathX
1 parent 0fb2ff4 commit b26728f

File tree

2 files changed

+22
-22
lines changed

2 files changed

+22
-22
lines changed

ucloud/services/pathx/client.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ def create_global_ssh_instance(
5454
- **BandwidthPackage** (int) - Ultimate版本带宽包大小,枚举值:[0,20,40]。单位MB
5555
- **ChargeType** (str) - 支付方式,如按月:Month、 按年:Year、按时:Dynamic
5656
- **CouponId** (str) - 使用代金券可冲抵部分费用
57-
- **ForwardRegion** (str) - InstanceType等于Basic时可以在["cn-bj2","cn-sh2","cn-gd"]中选择1个作为转发机房,Free版本固定为cn-bj2,其他付费版默认配置三个转发机房
57+
- **ForwardRegion** (str) - InstanceType等于Basic时可以在["cn-bj2","cn-sh2","cn-gd"]中选择1个作为转发机房,其他付费版默认配置三个转发机房
5858
- **InstanceType** (str) - 枚举值:["Ultimate","Enterprise","Basic","Primary"], 分别代表旗舰版,企业版,基础版,入门版
5959
- **Quantity** (int) - 购买数量按月购买至月底请传0
6060
- **Remark** (str) - 备注信息

ucloud/services/pathx/schemas/models.py

Lines changed: 21 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -89,27 +89,6 @@ class PathXSSLSetSchema(schema.ResponseSchema):
8989
}
9090

9191

92-
class UGAL7ForwarderSchema(schema.ResponseSchema):
93-
"""UGAL7Forwarder - UGA实例 7层转发器信息"""
94-
95-
fields = {
96-
"Port": fields.Int(required=True, load_from="Port"),
97-
"Protocol": fields.Str(required=True, load_from="Protocol"),
98-
"RSPort": fields.Int(required=True, load_from="RSPort"),
99-
"SSLId": fields.Str(required=False, load_from="SSLId"),
100-
"SSLName": fields.Str(required=False, load_from="SSLName"),
101-
}
102-
103-
104-
class OutPublicIpInfoSchema(schema.ResponseSchema):
105-
"""OutPublicIpInfo - 线路出口IP信息"""
106-
107-
fields = {
108-
"Area": fields.Str(required=False, load_from="Area"),
109-
"IP": fields.Str(required=False, load_from="IP"),
110-
}
111-
112-
11392
class UPathSetSchema(schema.ResponseSchema):
11493
"""UPathSet - uga关联的upath信息"""
11594

@@ -125,6 +104,18 @@ class UPathSetSchema(schema.ResponseSchema):
125104
}
126105

127106

107+
class UGAL7ForwarderSchema(schema.ResponseSchema):
108+
"""UGAL7Forwarder - UGA实例 7层转发器信息"""
109+
110+
fields = {
111+
"Port": fields.Int(required=True, load_from="Port"),
112+
"Protocol": fields.Str(required=True, load_from="Protocol"),
113+
"RSPort": fields.Int(required=True, load_from="RSPort"),
114+
"SSLId": fields.Str(required=False, load_from="SSLId"),
115+
"SSLName": fields.Str(required=False, load_from="SSLName"),
116+
}
117+
118+
128119
class UGAATaskSchema(schema.ResponseSchema):
129120
"""UGAATask - 用户在UGAA实例下配置的多端口任务"""
130121

@@ -134,6 +125,15 @@ class UGAATaskSchema(schema.ResponseSchema):
134125
}
135126

136127

128+
class OutPublicIpInfoSchema(schema.ResponseSchema):
129+
"""OutPublicIpInfo - 线路出口IP信息"""
130+
131+
fields = {
132+
"Area": fields.Str(required=False, load_from="Area"),
133+
"IP": fields.Str(required=False, load_from="IP"),
134+
}
135+
136+
137137
class UGAL4ForwarderSchema(schema.ResponseSchema):
138138
"""UGAL4Forwarder - UGA实例 4层转发器信息"""
139139

0 commit comments

Comments
 (0)