@@ -116,17 +116,6 @@ class SrcAreaInfoSchema(schema.ResponseSchema):
116116 }
117117
118118
119- class AccelerationAreaInfosSchema (schema .ResponseSchema ):
120- """AccelerationAreaInfos - 加速大区信息"""
121-
122- fields = {
123- "AccelerationArea" : fields .Str (
124- required = True , load_from = "AccelerationArea"
125- ),
126- "AccelerationNodes" : fields .List (SrcAreaInfoSchema ()),
127- }
128-
129-
130119class OutPublicIpInfoSchema (schema .ResponseSchema ):
131120 """OutPublicIpInfo - 线路回源IP信息"""
132121
@@ -146,6 +135,17 @@ class ForwardTaskSchema(schema.ResponseSchema):
146135 }
147136
148137
138+ class AccelerationAreaInfosSchema (schema .ResponseSchema ):
139+ """AccelerationAreaInfos - 加速大区信息"""
140+
141+ fields = {
142+ "AccelerationArea" : fields .Str (
143+ required = True , load_from = "AccelerationArea"
144+ ),
145+ "AccelerationNodes" : fields .List (SrcAreaInfoSchema ()),
146+ }
147+
148+
149149class ForwardInfoSchema (schema .ResponseSchema ):
150150 """ForwardInfo - 全球统一接入加速实例配置信息"""
151151
@@ -212,12 +212,18 @@ class AccelerationInfoSchema(schema.ResponseSchema):
212212 }
213213
214214
215- class UGAATaskSchema (schema .ResponseSchema ):
216- """UGAATask - 用户在UGAA实例下配置的多端口任务 """
215+ class UPathSetSchema (schema .ResponseSchema ):
216+ """UPathSet - uga关联的upath信息 """
217217
218218 fields = {
219- "Port" : fields .Int (required = True , load_from = "Port" ),
220- "Protocol" : fields .Str (required = True , load_from = "Protocol" ),
219+ "Bandwidth" : fields .Int (required = False , load_from = "Bandwidth" ),
220+ "LineFrom" : fields .Str (required = False , load_from = "LineFrom" ),
221+ "LineFromName" : fields .Str (required = False , load_from = "LineFromName" ),
222+ "LineId" : fields .Str (required = False , load_from = "LineId" ),
223+ "LineTo" : fields .Str (required = False , load_from = "LineTo" ),
224+ "LineToName" : fields .Str (required = False , load_from = "LineToName" ),
225+ "UPathId" : fields .Str (required = False , load_from = "UPathId" ),
226+ "UPathName" : fields .Str (required = False , load_from = "UPathName" ),
221227 }
222228
223229
@@ -231,18 +237,12 @@ class UGAL4ForwarderSchema(schema.ResponseSchema):
231237 }
232238
233239
234- class UPathSetSchema (schema .ResponseSchema ):
235- """UPathSet - uga关联的upath信息 """
240+ class UGAATaskSchema (schema .ResponseSchema ):
241+ """UGAATask - 用户在UGAA实例下配置的多端口任务 """
236242
237243 fields = {
238- "Bandwidth" : fields .Int (required = False , load_from = "Bandwidth" ),
239- "LineFrom" : fields .Str (required = False , load_from = "LineFrom" ),
240- "LineFromName" : fields .Str (required = False , load_from = "LineFromName" ),
241- "LineId" : fields .Str (required = False , load_from = "LineId" ),
242- "LineTo" : fields .Str (required = False , load_from = "LineTo" ),
243- "LineToName" : fields .Str (required = False , load_from = "LineToName" ),
244- "UPathId" : fields .Str (required = False , load_from = "UPathId" ),
245- "UPathName" : fields .Str (required = False , load_from = "UPathName" ),
244+ "Port" : fields .Int (required = True , load_from = "Port" ),
245+ "Protocol" : fields .Str (required = True , load_from = "Protocol" ),
246246 }
247247
248248
0 commit comments