1
+ # Licensed to the Apache Software Foundation (ASF) under one
2
+ # or more contributor license agreements. See the NOTICE file
3
+ # distributed with this work for additional information
4
+ # regarding copyright ownership. The ASF licenses this file
5
+ # to you under the Apache License, Version 2.0 (the
6
+ # "License"); you may not use this file except in compliance
7
+ # with the License. You may obtain a copy of the License at
8
+ #
9
+ #
10
+ # http://www.apache.org/licenses/LICENSE-2.0
11
+ #
12
+ #
13
+ # Unless required by applicable law or agreed to in writing,
14
+ # software distributed under the License is distributed on an
15
+ # "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
16
+ # KIND, either express or implied. See the License for the
17
+ # specific language governing permissions and limitations
18
+ # under the License.
19
+
20
+ from aliyunsdkcore .request import RpcRequest
21
+ from aliyunsdkpolardb .endpoint import endpoint_data
22
+
23
+ class TempModifyDBNodeRequest (RpcRequest ):
24
+
25
+ def __init__ (self ):
26
+ RpcRequest .__init__ (self , 'polardb' , '2017-08-01' , 'TempModifyDBNode' ,'polardb' )
27
+ self .set_method ('POST' )
28
+ if hasattr (self , "endpoint_map" ):
29
+ setattr (self , "endpoint_map" , endpoint_data .getEndpointMap ())
30
+ if hasattr (self , "endpoint_regional" ):
31
+ setattr (self , "endpoint_regional" , endpoint_data .getEndpointRegional ())
32
+
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_ClientToken (self ):
41
+ return self .get_query_params ().get ('ClientToken' )
42
+
43
+ def set_ClientToken (self ,ClientToken ):
44
+ self .add_query_param ('ClientToken' ,ClientToken )
45
+
46
+ def get_RestoreTime (self ):
47
+ return self .get_query_params ().get ('RestoreTime' )
48
+
49
+ def set_RestoreTime (self ,RestoreTime ):
50
+ self .add_query_param ('RestoreTime' ,RestoreTime )
51
+
52
+ def get_ResourceOwnerAccount (self ):
53
+ return self .get_query_params ().get ('ResourceOwnerAccount' )
54
+
55
+ def set_ResourceOwnerAccount (self ,ResourceOwnerAccount ):
56
+ self .add_query_param ('ResourceOwnerAccount' ,ResourceOwnerAccount )
57
+
58
+ def get_DBClusterId (self ):
59
+ return self .get_query_params ().get ('DBClusterId' )
60
+
61
+ def set_DBClusterId (self ,DBClusterId ):
62
+ self .add_query_param ('DBClusterId' ,DBClusterId )
63
+
64
+ def get_OwnerAccount (self ):
65
+ return self .get_query_params ().get ('OwnerAccount' )
66
+
67
+ def set_OwnerAccount (self ,OwnerAccount ):
68
+ self .add_query_param ('OwnerAccount' ,OwnerAccount )
69
+
70
+ def get_OperationType (self ):
71
+ return self .get_query_params ().get ('OperationType' )
72
+
73
+ def set_OperationType (self ,OperationType ):
74
+ self .add_query_param ('OperationType' ,OperationType )
75
+
76
+ def get_OwnerId (self ):
77
+ return self .get_query_params ().get ('OwnerId' )
78
+
79
+ def set_OwnerId (self ,OwnerId ):
80
+ self .add_query_param ('OwnerId' ,OwnerId )
81
+
82
+ def get_ModifyType (self ):
83
+ return self .get_query_params ().get ('ModifyType' )
84
+
85
+ def set_ModifyType (self ,ModifyType ):
86
+ self .add_query_param ('ModifyType' ,ModifyType )
87
+
88
+ def get_DBNodes (self ):
89
+ return self .get_query_params ().get ('DBNode' )
90
+
91
+ def set_DBNodes (self , DBNodes ):
92
+ for depth1 in range (len (DBNodes )):
93
+ if DBNodes [depth1 ].get ('TargetClass' ) is not None :
94
+ self .add_query_param ('DBNode.' + str (depth1 + 1 ) + '.TargetClass' , DBNodes [depth1 ].get ('TargetClass' ))
95
+ if DBNodes [depth1 ].get ('ZoneId' ) is not None :
96
+ self .add_query_param ('DBNode.' + str (depth1 + 1 ) + '.ZoneId' , DBNodes [depth1 ].get ('ZoneId' ))
0 commit comments