@@ -91,6 +91,33 @@ class TaskInfoSchema(schema.ResponseSchema):
9191 }
9292
9393
94+ class KwaiAuthKvSchema (schema .ResponseSchema ):
95+ """KwaiAuthKv - 快手鉴权键值信息"""
96+
97+ fields = {
98+ "Iv" : fields .Str (required = True , load_from = "Iv" ),
99+ "Key" : fields .Str (required = True , load_from = "Key" ),
100+ }
101+
102+
103+ class KwaiAuthConfigSchema (schema .ResponseSchema ):
104+ """KwaiAuthConfig - 鉴权信息"""
105+
106+ fields = {
107+ "Keys" : fields .List (KwaiAuthKvSchema ()),
108+ "Type" : fields .Str (required = True , load_from = "Type" ),
109+ }
110+
111+
112+ class KwaiDomainAuthConfigSchema (schema .ResponseSchema ):
113+ """KwaiDomainAuthConfig - 快手域名鉴权信息"""
114+
115+ fields = {
116+ "Config" : fields .List (KwaiAuthConfigSchema ()),
117+ "Domain" : fields .Str (required = True , load_from = "Domain" ),
118+ }
119+
120+
94121class CertListSchema (schema .ResponseSchema ):
95122 """CertList - 证书信息"""
96123
@@ -267,6 +294,16 @@ class BandwidthTrafficInfoSchema(schema.ResponseSchema):
267294 }
268295
269296
297+ class ReferConfSchema (schema .ResponseSchema ):
298+ """ReferConf - refer配置"""
299+
300+ fields = {
301+ "NullRefer" : fields .Int (required = False , load_from = "NullRefer" ),
302+ "ReferList" : fields .List (fields .Str ()),
303+ "ReferType" : fields .Int (required = False , load_from = "ReferType" ),
304+ }
305+
306+
270307class CacheKeyInfoSchema (schema .ResponseSchema ):
271308 """CacheKeyInfo - 忽略参数缓存配置"""
272309
@@ -277,13 +314,33 @@ class CacheKeyInfoSchema(schema.ResponseSchema):
277314 }
278315
279316
280- class ReferConfSchema (schema .ResponseSchema ):
281- """ReferConf - refer配置 """
317+ class AdvancedConfSchema (schema .ResponseSchema ):
318+ """AdvancedConf - 域名高级配置 """
282319
283320 fields = {
284- "NullRefer" : fields .Int (required = False , load_from = "NullRefer" ),
285- "ReferList" : fields .List (fields .Str ()),
286- "ReferType" : fields .Int (required = False , load_from = "ReferType" ),
321+ "Http2Https" : fields .Bool (required = False , load_from = "Http2Https" ),
322+ "HttpClientHeader" : fields .List (fields .Str ()),
323+ "HttpOriginHeader" : fields .List (fields .Str ()),
324+ }
325+
326+
327+ class AccessControlConfSchema (schema .ResponseSchema ):
328+ """AccessControlConf - 访问控制配置参数"""
329+
330+ fields = {
331+ "IpBlackList" : fields .List (fields .Str ()),
332+ "ReferConf" : ReferConfSchema (),
333+ }
334+
335+
336+ class CacheAllConfigSchema (schema .ResponseSchema ):
337+ """CacheAllConfig - 缓存相关的配置"""
338+
339+ fields = {
340+ "CacheHost" : fields .Str (required = False , load_from = "CacheHost" ),
341+ "CacheKeyList" : fields .List (CacheKeyInfoSchema ()),
342+ "CacheList" : fields .List (CacheConfSchema ()),
343+ "HttpCodeCacheList" : fields .List (CacheConfSchema ()),
287344 }
288345
289346
@@ -316,36 +373,6 @@ class OriginConfSchema(schema.ResponseSchema):
316373 }
317374
318375
319- class CacheAllConfigSchema (schema .ResponseSchema ):
320- """CacheAllConfig - 缓存相关的配置"""
321-
322- fields = {
323- "CacheHost" : fields .Str (required = False , load_from = "CacheHost" ),
324- "CacheKeyList" : fields .List (CacheKeyInfoSchema ()),
325- "CacheList" : fields .List (CacheConfSchema ()),
326- "HttpCodeCacheList" : fields .List (CacheConfSchema ()),
327- }
328-
329-
330- class AdvancedConfSchema (schema .ResponseSchema ):
331- """AdvancedConf - 域名高级配置"""
332-
333- fields = {
334- "Http2Https" : fields .Bool (required = False , load_from = "Http2Https" ),
335- "HttpClientHeader" : fields .List (fields .Str ()),
336- "HttpOriginHeader" : fields .List (fields .Str ()),
337- }
338-
339-
340- class AccessControlConfSchema (schema .ResponseSchema ):
341- """AccessControlConf - 访问控制配置参数"""
342-
343- fields = {
344- "IpBlackList" : fields .List (fields .Str ()),
345- "ReferConf" : ReferConfSchema (),
346- }
347-
348-
349376class DomainConfigInfoSchema (schema .ResponseSchema ):
350377 """DomainConfigInfo - 更新域名配置"""
351378
0 commit comments