@@ -50,15 +50,6 @@ class ResourceInfoSchema(schema.ResponseSchema):
5050 }
5151
5252
53- class EnvListSchema (schema .ResponseSchema ):
54- """EnvList - 容器环境变量列表"""
55-
56- fields = {
57- "Key" : fields .Str (required = False , load_from = "Key" ),
58- "Value" : fields .Str (required = False , load_from = "Value" ),
59- }
60-
61-
6253class CfgDictListSchema (schema .ResponseSchema ):
6354 """CfgDictList - 容器配置字典列表"""
6455
@@ -69,23 +60,22 @@ class CfgDictListSchema(schema.ResponseSchema):
6960 }
7061
7162
72- class IpListSchema (schema .ResponseSchema ):
73- """IpList - 容器组外网ip列表 """
63+ class EnvListSchema (schema .ResponseSchema ):
64+ """EnvList - 容器环境变量列表 """
7465
7566 fields = {
76- "Ip " : fields .Str (required = False , load_from = "Ip " ),
77- "Isp " : fields .Str (required = False , load_from = "Isp " ),
67+ "Key " : fields .Str (required = False , load_from = "Key " ),
68+ "Value " : fields .Str (required = False , load_from = "Value " ),
7869 }
7970
8071
81- class StorVolumeInfoSchema (schema .ResponseSchema ):
82- """StorVolumeInfo - 容器组存储卷信息 """
72+ class ImageListSchema (schema .ResponseSchema ):
73+ """ImageList - 容器组镜像密钥列表 """
8374
8475 fields = {
85- "DiskSize" : fields .Int (required = False , load_from = "DiskSize" ),
86- "MountPoint" : fields .Str (required = False , load_from = "MountPoint" ),
87- "Name" : fields .Str (required = False , load_from = "Name" ),
88- "ResourceId" : fields .Str (required = False , load_from = "ResourceId" ),
76+ "ImageKey" : fields .Str (required = False , load_from = "ImageKey" ),
77+ "StoreAddr" : fields .Str (required = False , load_from = "StoreAddr" ),
78+ "UserName" : fields .Str (required = False , load_from = "UserName" ),
8979 }
9080
9181
@@ -106,13 +96,23 @@ class DockerInfoSchema(schema.ResponseSchema):
10696 }
10797
10898
109- class ImageListSchema (schema .ResponseSchema ):
110- """ImageList - 容器组镜像密钥列表 """
99+ class StorVolumeInfoSchema (schema .ResponseSchema ):
100+ """StorVolumeInfo - 容器组存储卷信息 """
111101
112102 fields = {
113- "ImageKey" : fields .Str (required = False , load_from = "ImageKey" ),
114- "StoreAddr" : fields .Str (required = False , load_from = "StoreAddr" ),
115- "UserName" : fields .Str (required = False , load_from = "UserName" ),
103+ "DiskSize" : fields .Int (required = False , load_from = "DiskSize" ),
104+ "MountPoint" : fields .Str (required = False , load_from = "MountPoint" ),
105+ "Name" : fields .Str (required = False , load_from = "Name" ),
106+ "ResourceId" : fields .Str (required = False , load_from = "ResourceId" ),
107+ }
108+
109+
110+ class IpListSchema (schema .ResponseSchema ):
111+ """IpList - 容器组外网ip列表"""
112+
113+ fields = {
114+ "Ip" : fields .Str (required = False , load_from = "Ip" ),
115+ "Isp" : fields .Str (required = False , load_from = "Isp" ),
116116 }
117117
118118
0 commit comments