1
+ # -*- coding: utf-8 -*-
2
+ # Copyright (c) 2025 Aliyun.com All right reserved. This software is the
3
+ # confidential and proprietary information of Aliyun.com ("Confidential
4
+ # Information"). You shall not disclose such Confidential Information and shall
5
+ # use it only in accordance with the terms of the license agreement you entered
6
+ # into with Aliyun.com .
7
+ # created by xiaohui at 2025/4/10 15:16
8
+ # Licensed to the Apache Software Foundation (ASF) under one
9
+ # or more contributor license agreements. See the NOTICE file
10
+ # distributed with this work for additional information
11
+ # regarding copyright ownership. The ASF licenses this file
12
+ # to you under the Apache License, Version 2.0 (the
13
+ # "License"); you may not use this file except in compliance
14
+ # with the License. You may obtain a copy of the License at
15
+ #
16
+ # http://www.apache.org/licenses/LICENSE-2.0
17
+ #
18
+ #
19
+ #
20
+ # Unless required by applicable law or agreed to in writing,
21
+ # software distributed under the License is distributed on an
22
+ # "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
23
+ # KIND, either express or implied. See the License for the
24
+ # specific language governing permissions and limitations
25
+ # under the License.
26
+
27
+ from aliyunsdkcore .request import RpcRequest
28
+
29
+
30
+ class DescribeContainerGroupEventsRequest (RpcRequest ):
31
+ def __init__ (self ):
32
+ RpcRequest .__init__ (self , 'Eci' , '2018-08-08' , 'DescribeContainerGroupEvents' , 'eci' )
33
+
34
+ def get_ResourceOwnerId (self ):
35
+ return self .get_query_params ().get ('ResourceOwnerId' )
36
+
37
+ def set_ResourceOwnerId (self , ResourceOwnerId ):
38
+ self .add_query_param ('ResourceOwnerId' , ResourceOwnerId )
39
+
40
+ def get_RegionId (self ):
41
+ return self .get_query_params ().get ('RegionId' )
42
+
43
+ def set_RegionId (self , RegionId ):
44
+ self .add_query_param ('RegionId' , RegionId )
45
+
46
+ def get_ZoneId (self ):
47
+ return self .get_query_params ().get ('ZoneId' )
48
+
49
+ def set_ZoneId (self , ZoneId ):
50
+ self .add_query_param ('ZoneId' , ZoneId )
51
+
52
+ def get_VSwitchId (self ):
53
+ return self .get_query_params ().get ('VSwitchId' )
54
+
55
+ def set_VSwitchId (self , VSwitchId ):
56
+ self .add_query_param ('VSwitchId' , VSwitchId )
57
+
58
+ def get_ResourceGroupId (self ):
59
+ return self .get_query_params ().get ('ResourceGroupId' )
60
+
61
+ def set_ResourceGroupId (self , ResourceGroupId ):
62
+ self .add_query_param ('ResourceGroupId' , ResourceGroupId )
63
+
64
+ def get_ContainerGroupIds (self ):
65
+ return self .get_query_params ().get ('ContainerGroupIds' )
66
+
67
+ def set_ContainerGroupIds (self , ContainerGroupIds ):
68
+ self .add_query_param ('ContainerGroupIds' , ContainerGroupIds )
69
+
70
+ def get_Tags (self ):
71
+ return self .get_query_params ().get ('Tags' )
72
+
73
+ def set_Tags (self , Tags ):
74
+ for i in range (len (Tags )):
75
+ if Tags [i ].get ('Key' ) is not None :
76
+ self .add_query_param ('Tag.' + str (i + 1 ) + '.Key' , Tags [i ].get ('Key' ))
77
+ if Tags [i ].get ('Value' ) is not None :
78
+ self .add_query_param ('Tag.' + str (i + 1 ) + '.Value' , Tags [i ].get ('Value' ))
79
+
80
+ def get_Condition (self ):
81
+ return self .get_query_params ().get ('Condition' )
82
+
83
+ def set_Condition (self , Condition ):
84
+ for i in range (len (Condition )):
85
+ if Condition [i ].get ('Type' ) is not None :
86
+ self .add_query_param ('Condition.' + str (i + 1 ) + '.Type' , Condition [i ].get ('Type' ))
87
+ if Condition [i ].get ('Status' ) is not None :
88
+ self .add_query_param ('Condition.' + str (i + 1 ) + '.Status' , Condition [i ].get ('Status' ))
89
+
90
+ def get_NextToken (self ):
91
+ return self .get_query_params ().get ('NextToken' )
92
+
93
+ def set_NextToken (self , NextToken ):
94
+ self .add_query_param ('NextToken' , NextToken )
95
+
96
+ def get_EventSource (self ):
97
+ return self .get_query_params ().get ('EventSource' )
98
+
99
+ def set_EventSource (self , EventSource ):
100
+ self .add_query_param ('EventSource' , EventSource )
101
+
102
+ def get_SinceSecond (self ):
103
+ return self .get_query_params ().get ('SinceSecond' )
104
+
105
+ def set_SinceSecond (self , SinceSecond ):
106
+ self .add_query_param ('SinceSecond' , SinceSecond )
0 commit comments