Skip to content

Commit c4e66f4

Browse files
authored
sdk: rolling update for 0.11.128 (#361)
1 parent 545a85c commit c4e66f4

8 files changed

Lines changed: 539 additions & 394 deletions

File tree

‎ucloud/services/uk8s/client.py‎

Lines changed: 134 additions & 134 deletions
Large diffs are not rendered by default.

‎ucloud/services/uk8s/schemas/apis.py‎

Lines changed: 137 additions & 137 deletions
Original file line numberDiff line numberDiff line change
@@ -136,16 +136,6 @@ class AddUK8SPHostNodeResponseSchema(schema.ResponseSchema):
136136
"""
137137

138138

139-
class AddUK8SUHostNodeParamKubeletConfigurationSchema(schema.RequestSchema):
140-
"""AddUK8SUHostNodeParamKubeletConfiguration -"""
141-
142-
fields = {
143-
"ContainerLogMaxFiles": fields.Str(
144-
required=False, dump_to="ContainerLogMaxFiles"
145-
),
146-
}
147-
148-
149139
class AddUK8SUHostNodeParamNetworkInterfaceEIPSchema(schema.RequestSchema):
150140
"""AddUK8SUHostNodeParamNetworkInterfaceEIP -"""
151141

@@ -170,6 +160,16 @@ class AddUK8SUHostNodeParamNetworkInterfaceSchema(schema.RequestSchema):
170160
}
171161

172162

163+
class AddUK8SUHostNodeParamKubeletConfigurationSchema(schema.RequestSchema):
164+
"""AddUK8SUHostNodeParamKubeletConfiguration -"""
165+
166+
fields = {
167+
"ContainerLogMaxFiles": fields.Str(
168+
required=False, dump_to="ContainerLogMaxFiles"
169+
),
170+
}
171+
172+
173173
class AddUK8SUHostNodeParamSecGroupIdSchema(schema.RequestSchema):
174174
"""AddUK8SUHostNodeParamSecGroupId -"""
175175

@@ -266,16 +266,8 @@ class AddUK8SUHostNodeResponseSchema(schema.ResponseSchema):
266266
"""
267267

268268

269-
class CreateUK8SClusterV2ParamKubeProxySchema(schema.RequestSchema):
270-
"""CreateUK8SClusterV2ParamKubeProxy -"""
271-
272-
fields = {
273-
"Mode": fields.Str(required=False, dump_to="Mode"),
274-
}
275-
276-
277-
class CreateUK8SClusterV2ParamNodesSecGroupIdSchema(schema.RequestSchema):
278-
"""CreateUK8SClusterV2ParamNodesSecGroupId -"""
269+
class CreateUK8SClusterV2ParamMasterSecGroupIdSchema(schema.RequestSchema):
270+
"""CreateUK8SClusterV2ParamMasterSecGroupId -"""
279271

280272
fields = {
281273
"Id": fields.Str(required=False, dump_to="Id"),
@@ -300,6 +292,14 @@ class CreateUK8SClusterV2ParamNodesNetworkInterfaceEIPSchema(
300292
}
301293

302294

295+
class CreateUK8SClusterV2ParamKubeProxySchema(schema.RequestSchema):
296+
"""CreateUK8SClusterV2ParamKubeProxy -"""
297+
298+
fields = {
299+
"Mode": fields.Str(required=False, dump_to="Mode"),
300+
}
301+
302+
303303
class CreateUK8SClusterV2ParamNodesNetworkInterfaceSchema(schema.RequestSchema):
304304
"""CreateUK8SClusterV2ParamNodesNetworkInterface -"""
305305

@@ -310,6 +310,16 @@ class CreateUK8SClusterV2ParamNodesNetworkInterfaceSchema(schema.RequestSchema):
310310
}
311311

312312

313+
class CreateUK8SClusterV2ParamNodesSecGroupIdSchema(schema.RequestSchema):
314+
"""CreateUK8SClusterV2ParamNodesSecGroupId -"""
315+
316+
fields = {
317+
"Id": fields.Str(required=False, dump_to="Id"),
318+
"Name": fields.Str(required=False, dump_to="Name"),
319+
"Priority": fields.Str(required=False, dump_to="Priority"),
320+
}
321+
322+
313323
class CreateUK8SClusterV2ParamNodesSchema(schema.RequestSchema):
314324
"""CreateUK8SClusterV2ParamNodes -"""
315325

@@ -351,16 +361,6 @@ class CreateUK8SClusterV2ParamNodesSchema(schema.RequestSchema):
351361
}
352362

353363

354-
class CreateUK8SClusterV2ParamMasterSecGroupIdSchema(schema.RequestSchema):
355-
"""CreateUK8SClusterV2ParamMasterSecGroupId -"""
356-
357-
fields = {
358-
"Id": fields.Str(required=False, dump_to="Id"),
359-
"Name": fields.Str(required=False, dump_to="Name"),
360-
"Priority": fields.Str(required=False, dump_to="Priority"),
361-
}
362-
363-
364364
class CreateUK8SClusterV2ParamMasterSchema(schema.RequestSchema):
365365
"""CreateUK8SClusterV2ParamMaster -"""
366366

@@ -449,56 +449,36 @@ class CreateUK8SClusterV2ResponseSchema(schema.ResponseSchema):
449449
"""
450450

451451

452-
class CreateUK8SULSConfigParamMatchRulePodLabelsLabelsSchema(
453-
schema.RequestSchema
454-
):
455-
"""CreateUK8SULSConfigParamMatchRulePodLabelsLabels -"""
456-
457-
fields = {
458-
"Key": fields.Str(required=False, dump_to="Key"),
459-
"Value": fields.Str(required=False, dump_to="Value"),
460-
"ValueOperator": fields.Str(required=False, dump_to="ValueOperator"),
461-
}
462-
463-
464-
class CreateUK8SULSConfigParamMatchRulePodLabelsSchema(schema.RequestSchema):
465-
"""CreateUK8SULSConfigParamMatchRulePodLabels -"""
452+
class CreateUK8SULSConfigParamInputDetailMetadataSchema(schema.RequestSchema):
453+
"""CreateUK8SULSConfigParamInputDetailMetadata -"""
466454

467455
fields = {
468-
"Labels": fields.List(
469-
CreateUK8SULSConfigParamMatchRulePodLabelsLabelsSchema()
470-
),
471-
"Namespace": fields.Str(required=False, dump_to="Namespace"),
472-
"NamespaceOperator": fields.Str(
473-
required=False, dump_to="NamespaceOperator"
474-
),
456+
"Container": fields.Str(required=False, dump_to="Container"),
457+
"Labels": fields.Str(required=False, dump_to="Labels"),
475458
}
476459

477460

478-
class CreateUK8SULSConfigParamMatchRuleWorkloadsSchema(schema.RequestSchema):
479-
"""CreateUK8SULSConfigParamMatchRuleWorkloads -"""
461+
class CreateUK8SULSConfigParamInputDetailFilePathsSchema(schema.RequestSchema):
462+
"""CreateUK8SULSConfigParamInputDetailFilePaths -"""
480463

481464
fields = {
482-
"Name": fields.Str(required=False, dump_to="Name"),
483-
"Namespace": fields.Str(required=False, dump_to="Namespace"),
484-
"Type": fields.Str(required=False, dump_to="Type"),
465+
"File": fields.Str(required=False, dump_to="File"),
466+
"Path": fields.Str(required=False, dump_to="Path"),
485467
}
486468

487469

488-
class CreateUK8SULSConfigParamMatchRuleSchema(schema.RequestSchema):
489-
"""CreateUK8SULSConfigParamMatchRule -"""
470+
class CreateUK8SULSConfigParamInputDetailSchema(schema.RequestSchema):
471+
"""CreateUK8SULSConfigParamInputDetail -"""
490472

491473
fields = {
492-
"Container": fields.Str(required=False, dump_to="Container"),
493-
"ContainerOperator": fields.Str(
494-
required=False, dump_to="ContainerOperator"
495-
),
496-
"PodLabels": CreateUK8SULSConfigParamMatchRulePodLabelsSchema(
497-
required=False, dump_to="PodLabels"
474+
"FilePaths": fields.List(
475+
CreateUK8SULSConfigParamInputDetailFilePathsSchema()
498476
),
499-
"Workloads": fields.List(
500-
CreateUK8SULSConfigParamMatchRuleWorkloadsSchema()
477+
"Metadata": CreateUK8SULSConfigParamInputDetailMetadataSchema(
478+
required=False, dump_to="Metadata"
501479
),
480+
"Stream": fields.Str(required=False, dump_to="Stream"),
481+
"Type": fields.Str(required=True, dump_to="Type"),
502482
}
503483

504484

@@ -512,21 +492,13 @@ class CreateUK8SULSConfigParamExtractRuleExtractRuleSchema(
512492
}
513493

514494

515-
class CreateUK8SULSConfigParamInputDetailMetadataSchema(schema.RequestSchema):
516-
"""CreateUK8SULSConfigParamInputDetailMetadata -"""
517-
518-
fields = {
519-
"Container": fields.Str(required=False, dump_to="Container"),
520-
"Labels": fields.Str(required=False, dump_to="Labels"),
521-
}
522-
523-
524-
class CreateUK8SULSConfigParamInputDetailFilePathsSchema(schema.RequestSchema):
525-
"""CreateUK8SULSConfigParamInputDetailFilePaths -"""
495+
class CreateUK8SULSConfigParamMatchRuleWorkloadsSchema(schema.RequestSchema):
496+
"""CreateUK8SULSConfigParamMatchRuleWorkloads -"""
526497

527498
fields = {
528-
"File": fields.Str(required=False, dump_to="File"),
529-
"Path": fields.Str(required=False, dump_to="Path"),
499+
"Name": fields.Str(required=False, dump_to="Name"),
500+
"Namespace": fields.Str(required=False, dump_to="Namespace"),
501+
"Type": fields.Str(required=False, dump_to="Type"),
530502
}
531503

532504

@@ -557,18 +529,46 @@ class CreateUK8SULSConfigParamExtractRuleSchema(schema.RequestSchema):
557529
}
558530

559531

560-
class CreateUK8SULSConfigParamInputDetailSchema(schema.RequestSchema):
561-
"""CreateUK8SULSConfigParamInputDetail -"""
532+
class CreateUK8SULSConfigParamMatchRulePodLabelsLabelsSchema(
533+
schema.RequestSchema
534+
):
535+
"""CreateUK8SULSConfigParamMatchRulePodLabelsLabels -"""
562536

563537
fields = {
564-
"FilePaths": fields.List(
565-
CreateUK8SULSConfigParamInputDetailFilePathsSchema()
538+
"Key": fields.Str(required=False, dump_to="Key"),
539+
"Value": fields.Str(required=False, dump_to="Value"),
540+
"ValueOperator": fields.Str(required=False, dump_to="ValueOperator"),
541+
}
542+
543+
544+
class CreateUK8SULSConfigParamMatchRulePodLabelsSchema(schema.RequestSchema):
545+
"""CreateUK8SULSConfigParamMatchRulePodLabels -"""
546+
547+
fields = {
548+
"Labels": fields.List(
549+
CreateUK8SULSConfigParamMatchRulePodLabelsLabelsSchema()
566550
),
567-
"Metadata": CreateUK8SULSConfigParamInputDetailMetadataSchema(
568-
required=False, dump_to="Metadata"
551+
"Namespace": fields.Str(required=False, dump_to="Namespace"),
552+
"NamespaceOperator": fields.Str(
553+
required=False, dump_to="NamespaceOperator"
554+
),
555+
}
556+
557+
558+
class CreateUK8SULSConfigParamMatchRuleSchema(schema.RequestSchema):
559+
"""CreateUK8SULSConfigParamMatchRule -"""
560+
561+
fields = {
562+
"Container": fields.Str(required=False, dump_to="Container"),
563+
"ContainerOperator": fields.Str(
564+
required=False, dump_to="ContainerOperator"
565+
),
566+
"PodLabels": CreateUK8SULSConfigParamMatchRulePodLabelsSchema(
567+
required=False, dump_to="PodLabels"
568+
),
569+
"Workloads": fields.List(
570+
CreateUK8SULSConfigParamMatchRuleWorkloadsSchema()
569571
),
570-
"Stream": fields.Str(required=False, dump_to="Stream"),
571-
"Type": fields.Str(required=True, dump_to="Type"),
572572
}
573573

574574

@@ -1094,6 +1094,15 @@ class RemoveUK8SNodeGroupResponseSchema(schema.ResponseSchema):
10941094
"""
10951095

10961096

1097+
class UpdateUK8SULSConfigParamInputDetailMetadataSchema(schema.RequestSchema):
1098+
"""UpdateUK8SULSConfigParamInputDetailMetadata -"""
1099+
1100+
fields = {
1101+
"Container": fields.Str(required=False, dump_to="Container"),
1102+
"Labels": fields.Str(required=False, dump_to="Labels"),
1103+
}
1104+
1105+
10971106
class UpdateUK8SULSConfigParamMatchRulePodLabelsLabelsSchema(
10981107
schema.RequestSchema
10991108
):
@@ -1106,6 +1115,47 @@ class UpdateUK8SULSConfigParamMatchRulePodLabelsLabelsSchema(
11061115
}
11071116

11081117

1118+
class UpdateUK8SULSConfigParamMatchRulePodLabelsSchema(schema.RequestSchema):
1119+
"""UpdateUK8SULSConfigParamMatchRulePodLabels -"""
1120+
1121+
fields = {
1122+
"Labels": fields.List(
1123+
UpdateUK8SULSConfigParamMatchRulePodLabelsLabelsSchema()
1124+
),
1125+
"Namespace": fields.Str(required=False, dump_to="Namespace"),
1126+
"NamespaceOperator": fields.Str(
1127+
required=False, dump_to="NamespaceOperator"
1128+
),
1129+
}
1130+
1131+
1132+
class UpdateUK8SULSConfigParamMatchRuleWorkloadsSchema(schema.RequestSchema):
1133+
"""UpdateUK8SULSConfigParamMatchRuleWorkloads -"""
1134+
1135+
fields = {
1136+
"Name": fields.Str(required=False, dump_to="Name"),
1137+
"Namespace": fields.Str(required=False, dump_to="Namespace"),
1138+
"Type": fields.Str(required=False, dump_to="Type"),
1139+
}
1140+
1141+
1142+
class UpdateUK8SULSConfigParamMatchRuleSchema(schema.RequestSchema):
1143+
"""UpdateUK8SULSConfigParamMatchRule -"""
1144+
1145+
fields = {
1146+
"Container": fields.Str(required=False, dump_to="Container"),
1147+
"ContainerOperator": fields.Str(
1148+
required=False, dump_to="ContainerOperator"
1149+
),
1150+
"PodLabels": UpdateUK8SULSConfigParamMatchRulePodLabelsSchema(
1151+
required=False, dump_to="PodLabels"
1152+
),
1153+
"Workloads": fields.List(
1154+
UpdateUK8SULSConfigParamMatchRuleWorkloadsSchema()
1155+
),
1156+
}
1157+
1158+
11091159
class UpdateUK8SULSConfigParamExtractRuleSchema(schema.RequestSchema):
11101160
"""UpdateUK8SULSConfigParamExtractRule -"""
11111161

@@ -1140,15 +1190,6 @@ class UpdateUK8SULSConfigParamInputDetailFilePathsSchema(schema.RequestSchema):
11401190
}
11411191

11421192

1143-
class UpdateUK8SULSConfigParamInputDetailMetadataSchema(schema.RequestSchema):
1144-
"""UpdateUK8SULSConfigParamInputDetailMetadata -"""
1145-
1146-
fields = {
1147-
"Container": fields.Str(required=False, dump_to="Container"),
1148-
"Labels": fields.Str(required=False, dump_to="Labels"),
1149-
}
1150-
1151-
11521193
class UpdateUK8SULSConfigParamInputDetailSchema(schema.RequestSchema):
11531194
"""UpdateUK8SULSConfigParamInputDetail -"""
11541195

@@ -1164,47 +1205,6 @@ class UpdateUK8SULSConfigParamInputDetailSchema(schema.RequestSchema):
11641205
}
11651206

11661207

1167-
class UpdateUK8SULSConfigParamMatchRulePodLabelsSchema(schema.RequestSchema):
1168-
"""UpdateUK8SULSConfigParamMatchRulePodLabels -"""
1169-
1170-
fields = {
1171-
"Labels": fields.List(
1172-
UpdateUK8SULSConfigParamMatchRulePodLabelsLabelsSchema()
1173-
),
1174-
"Namespace": fields.Str(required=False, dump_to="Namespace"),
1175-
"NamespaceOperator": fields.Str(
1176-
required=False, dump_to="NamespaceOperator"
1177-
),
1178-
}
1179-
1180-
1181-
class UpdateUK8SULSConfigParamMatchRuleWorkloadsSchema(schema.RequestSchema):
1182-
"""UpdateUK8SULSConfigParamMatchRuleWorkloads -"""
1183-
1184-
fields = {
1185-
"Name": fields.Str(required=False, dump_to="Name"),
1186-
"Namespace": fields.Str(required=False, dump_to="Namespace"),
1187-
"Type": fields.Str(required=False, dump_to="Type"),
1188-
}
1189-
1190-
1191-
class UpdateUK8SULSConfigParamMatchRuleSchema(schema.RequestSchema):
1192-
"""UpdateUK8SULSConfigParamMatchRule -"""
1193-
1194-
fields = {
1195-
"Container": fields.Str(required=False, dump_to="Container"),
1196-
"ContainerOperator": fields.Str(
1197-
required=False, dump_to="ContainerOperator"
1198-
),
1199-
"PodLabels": UpdateUK8SULSConfigParamMatchRulePodLabelsSchema(
1200-
required=False, dump_to="PodLabels"
1201-
),
1202-
"Workloads": fields.List(
1203-
UpdateUK8SULSConfigParamMatchRuleWorkloadsSchema()
1204-
),
1205-
}
1206-
1207-
12081208
class UpdateUK8SULSConfigRequestSchema(schema.RequestSchema):
12091209
"""UpdateUK8SULSConfig - 更新指定UK8S集群的日志采集规则。"""
12101210

0 commit comments

Comments
 (0)