Skip to content

Commit 8ba7858

Browse files
authored
sdk: rolling update for 0.11.130 (#363)
1 parent 5dfde1c commit 8ba7858

7 files changed

Lines changed: 940 additions & 940 deletions

File tree

‎ucloud/services/uk8s/client.py‎

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

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

Lines changed: 103 additions & 103 deletions
Original file line numberDiff line numberDiff line change
@@ -150,6 +150,16 @@ class AddUK8SUHostNodeParamNetworkInterfaceEIPSchema(schema.RequestSchema):
150150
}
151151

152152

153+
class AddUK8SUHostNodeParamKubeletConfigurationSchema(schema.RequestSchema):
154+
"""AddUK8SUHostNodeParamKubeletConfiguration -"""
155+
156+
fields = {
157+
"ContainerLogMaxFiles": fields.Str(
158+
required=False, dump_to="ContainerLogMaxFiles"
159+
),
160+
}
161+
162+
153163
class AddUK8SUHostNodeParamNetworkInterfaceSchema(schema.RequestSchema):
154164
"""AddUK8SUHostNodeParamNetworkInterface -"""
155165

@@ -179,16 +189,6 @@ class AddUK8SUHostNodeParamSecGroupIdSchema(schema.RequestSchema):
179189
}
180190

181191

182-
class AddUK8SUHostNodeParamKubeletConfigurationSchema(schema.RequestSchema):
183-
"""AddUK8SUHostNodeParamKubeletConfiguration -"""
184-
185-
fields = {
186-
"ContainerLogMaxFiles": fields.Str(
187-
required=False, dump_to="ContainerLogMaxFiles"
188-
),
189-
}
190-
191-
192192
class AddUK8SUHostNodeRequestSchema(schema.RequestSchema):
193193
"""AddUK8SUHostNode - 为UK8S集群添加一台Node节点,机型类型为云主机"""
194194

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

268268

269-
class CreateUK8SClusterV2ParamMasterSecGroupIdSchema(schema.RequestSchema):
270-
"""CreateUK8SClusterV2ParamMasterSecGroupId -"""
271-
272-
fields = {
273-
"Id": fields.Str(required=False, dump_to="Id"),
274-
"Name": fields.Str(required=False, dump_to="Name"),
275-
"Priority": fields.Str(required=False, dump_to="Priority"),
276-
}
277-
278-
279-
class CreateUK8SClusterV2ParamMasterSchema(schema.RequestSchema):
280-
"""CreateUK8SClusterV2ParamMaster -"""
269+
class CreateUK8SClusterV2ParamKubeProxySchema(schema.RequestSchema):
270+
"""CreateUK8SClusterV2ParamKubeProxy -"""
281271

282272
fields = {
283-
"SecGroupId": fields.List(
284-
CreateUK8SClusterV2ParamMasterSecGroupIdSchema()
285-
),
286-
"Zone": fields.Str(required=True, dump_to="Zone"),
273+
"Mode": fields.Str(required=False, dump_to="Mode"),
287274
}
288275

289276

@@ -364,11 +351,24 @@ class CreateUK8SClusterV2ParamNodesSchema(schema.RequestSchema):
364351
}
365352

366353

367-
class CreateUK8SClusterV2ParamKubeProxySchema(schema.RequestSchema):
368-
"""CreateUK8SClusterV2ParamKubeProxy -"""
354+
class CreateUK8SClusterV2ParamMasterSecGroupIdSchema(schema.RequestSchema):
355+
"""CreateUK8SClusterV2ParamMasterSecGroupId -"""
369356

370357
fields = {
371-
"Mode": fields.Str(required=False, dump_to="Mode"),
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+
364+
class CreateUK8SClusterV2ParamMasterSchema(schema.RequestSchema):
365+
"""CreateUK8SClusterV2ParamMaster -"""
366+
367+
fields = {
368+
"SecGroupId": fields.List(
369+
CreateUK8SClusterV2ParamMasterSecGroupIdSchema()
370+
),
371+
"Zone": fields.Str(required=True, dump_to="Zone"),
372372
}
373373

374374

@@ -449,32 +449,6 @@ 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 -"""
466-
467-
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-
),
475-
}
476-
477-
478452
class CreateUK8SULSConfigParamMatchRuleWorkloadsSchema(schema.RequestSchema):
479453
"""CreateUK8SULSConfigParamMatchRuleWorkloads -"""
480454

@@ -485,20 +459,15 @@ class CreateUK8SULSConfigParamMatchRuleWorkloadsSchema(schema.RequestSchema):
485459
}
486460

487461

488-
class CreateUK8SULSConfigParamMatchRuleSchema(schema.RequestSchema):
489-
"""CreateUK8SULSConfigParamMatchRule -"""
462+
class CreateUK8SULSConfigParamMatchRulePodLabelsLabelsSchema(
463+
schema.RequestSchema
464+
):
465+
"""CreateUK8SULSConfigParamMatchRulePodLabelsLabels -"""
490466

491467
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"
498-
),
499-
"Workloads": fields.List(
500-
CreateUK8SULSConfigParamMatchRuleWorkloadsSchema()
501-
),
468+
"Key": fields.Str(required=False, dump_to="Key"),
469+
"Value": fields.Str(required=False, dump_to="Value"),
470+
"ValueOperator": fields.Str(required=False, dump_to="ValueOperator"),
502471
}
503472

504473

@@ -512,15 +481,6 @@ class CreateUK8SULSConfigParamExtractRuleExtractRuleSchema(
512481
}
513482

514483

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-
524484
class CreateUK8SULSConfigParamExtractRuleSchema(schema.RequestSchema):
525485
"""CreateUK8SULSConfigParamExtractRule -"""
526486

@@ -548,6 +508,37 @@ class CreateUK8SULSConfigParamExtractRuleSchema(schema.RequestSchema):
548508
}
549509

550510

511+
class CreateUK8SULSConfigParamMatchRulePodLabelsSchema(schema.RequestSchema):
512+
"""CreateUK8SULSConfigParamMatchRulePodLabels -"""
513+
514+
fields = {
515+
"Labels": fields.List(
516+
CreateUK8SULSConfigParamMatchRulePodLabelsLabelsSchema()
517+
),
518+
"Namespace": fields.Str(required=False, dump_to="Namespace"),
519+
"NamespaceOperator": fields.Str(
520+
required=False, dump_to="NamespaceOperator"
521+
),
522+
}
523+
524+
525+
class CreateUK8SULSConfigParamMatchRuleSchema(schema.RequestSchema):
526+
"""CreateUK8SULSConfigParamMatchRule -"""
527+
528+
fields = {
529+
"Container": fields.Str(required=False, dump_to="Container"),
530+
"ContainerOperator": fields.Str(
531+
required=False, dump_to="ContainerOperator"
532+
),
533+
"PodLabels": CreateUK8SULSConfigParamMatchRulePodLabelsSchema(
534+
required=False, dump_to="PodLabels"
535+
),
536+
"Workloads": fields.List(
537+
CreateUK8SULSConfigParamMatchRuleWorkloadsSchema()
538+
),
539+
}
540+
541+
551542
class CreateUK8SULSConfigParamInputDetailFilePathsSchema(schema.RequestSchema):
552543
"""CreateUK8SULSConfigParamInputDetailFilePaths -"""
553544

@@ -557,6 +548,15 @@ class CreateUK8SULSConfigParamInputDetailFilePathsSchema(schema.RequestSchema):
557548
}
558549

559550

551+
class CreateUK8SULSConfigParamInputDetailMetadataSchema(schema.RequestSchema):
552+
"""CreateUK8SULSConfigParamInputDetailMetadata -"""
553+
554+
fields = {
555+
"Container": fields.Str(required=False, dump_to="Container"),
556+
"Labels": fields.Str(required=False, dump_to="Labels"),
557+
}
558+
559+
560560
class CreateUK8SULSConfigParamInputDetailSchema(schema.RequestSchema):
561561
"""CreateUK8SULSConfigParamInputDetail -"""
562562

@@ -1120,33 +1120,6 @@ class UpdateUK8SULSConfigParamMatchRulePodLabelsSchema(schema.RequestSchema):
11201120
}
11211121

11221122

1123-
class UpdateUK8SULSConfigParamMatchRuleWorkloadsSchema(schema.RequestSchema):
1124-
"""UpdateUK8SULSConfigParamMatchRuleWorkloads -"""
1125-
1126-
fields = {
1127-
"Name": fields.Str(required=False, dump_to="Name"),
1128-
"Namespace": fields.Str(required=False, dump_to="Namespace"),
1129-
"Type": fields.Str(required=False, dump_to="Type"),
1130-
}
1131-
1132-
1133-
class UpdateUK8SULSConfigParamMatchRuleSchema(schema.RequestSchema):
1134-
"""UpdateUK8SULSConfigParamMatchRule -"""
1135-
1136-
fields = {
1137-
"Container": fields.Str(required=False, dump_to="Container"),
1138-
"ContainerOperator": fields.Str(
1139-
required=False, dump_to="ContainerOperator"
1140-
),
1141-
"PodLabels": UpdateUK8SULSConfigParamMatchRulePodLabelsSchema(
1142-
required=False, dump_to="PodLabels"
1143-
),
1144-
"Workloads": fields.List(
1145-
UpdateUK8SULSConfigParamMatchRuleWorkloadsSchema()
1146-
),
1147-
}
1148-
1149-
11501123
class UpdateUK8SULSConfigParamInputDetailFilePathsSchema(schema.RequestSchema):
11511124
"""UpdateUK8SULSConfigParamInputDetailFilePaths -"""
11521125

@@ -1180,6 +1153,33 @@ class UpdateUK8SULSConfigParamInputDetailSchema(schema.RequestSchema):
11801153
}
11811154

11821155

1156+
class UpdateUK8SULSConfigParamMatchRuleWorkloadsSchema(schema.RequestSchema):
1157+
"""UpdateUK8SULSConfigParamMatchRuleWorkloads -"""
1158+
1159+
fields = {
1160+
"Name": fields.Str(required=False, dump_to="Name"),
1161+
"Namespace": fields.Str(required=False, dump_to="Namespace"),
1162+
"Type": fields.Str(required=False, dump_to="Type"),
1163+
}
1164+
1165+
1166+
class UpdateUK8SULSConfigParamMatchRuleSchema(schema.RequestSchema):
1167+
"""UpdateUK8SULSConfigParamMatchRule -"""
1168+
1169+
fields = {
1170+
"Container": fields.Str(required=False, dump_to="Container"),
1171+
"ContainerOperator": fields.Str(
1172+
required=False, dump_to="ContainerOperator"
1173+
),
1174+
"PodLabels": UpdateUK8SULSConfigParamMatchRulePodLabelsSchema(
1175+
required=False, dump_to="PodLabels"
1176+
),
1177+
"Workloads": fields.List(
1178+
UpdateUK8SULSConfigParamMatchRuleWorkloadsSchema()
1179+
),
1180+
}
1181+
1182+
11831183
class UpdateUK8SULSConfigParamExtractRuleSchema(schema.RequestSchema):
11841184
"""UpdateUK8SULSConfigParamExtractRule -"""
11851185

0 commit comments

Comments
 (0)