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 aliyunsdkdataworks_public .endpoint import endpoint_data
22
+
23
+ class CreatePermissionApplyOrderRequest (RpcRequest ):
24
+
25
+ def __init__ (self ):
26
+ RpcRequest .__init__ (self , 'dataworks-public' , '2020-05-18' , 'CreatePermissionApplyOrder' )
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_ApplyReason (self ):
35
+ return self .get_query_params ().get ('ApplyReason' )
36
+
37
+ def set_ApplyReason (self ,ApplyReason ):
38
+ self .add_query_param ('ApplyReason' ,ApplyReason )
39
+
40
+ def get_MaxComputeProjectName (self ):
41
+ return self .get_query_params ().get ('MaxComputeProjectName' )
42
+
43
+ def set_MaxComputeProjectName (self ,MaxComputeProjectName ):
44
+ self .add_query_param ('MaxComputeProjectName' ,MaxComputeProjectName )
45
+
46
+ def get_ApplyObjects (self ):
47
+ return self .get_query_params ().get ('ApplyObject' )
48
+
49
+ def set_ApplyObjects (self , ApplyObjects ):
50
+ for depth1 in range (len (ApplyObjects )):
51
+ if ApplyObjects [depth1 ].get ('ColumnMetaList' ) is not None :
52
+ for depth2 in range (len (ApplyObjects [depth1 ].get ('ColumnMetaList' ))):
53
+ if ApplyObjects [depth1 ].get ('ColumnMetaList' )[depth2 ].get ('Name' ) is not None :
54
+ self .add_query_param ('ApplyObject.' + str (depth1 + 1 ) + '.ColumnMetaList.' + str (depth2 + 1 ) + '.Name' , ApplyObjects [depth1 ].get ('ColumnMetaList' )[depth2 ].get ('Name' ))
55
+ if ApplyObjects [depth1 ].get ('Name' ) is not None :
56
+ self .add_query_param ('ApplyObject.' + str (depth1 + 1 ) + '.Name' , ApplyObjects [depth1 ].get ('Name' ))
57
+ if ApplyObjects [depth1 ].get ('Actions' ) is not None :
58
+ self .add_query_param ('ApplyObject.' + str (depth1 + 1 ) + '.Actions' , ApplyObjects [depth1 ].get ('Actions' ))
59
+
60
+ def get_ApplyUserIds (self ):
61
+ return self .get_query_params ().get ('ApplyUserIds' )
62
+
63
+ def set_ApplyUserIds (self ,ApplyUserIds ):
64
+ self .add_query_param ('ApplyUserIds' ,ApplyUserIds )
65
+
66
+ def get_Deadline (self ):
67
+ return self .get_query_params ().get ('Deadline' )
68
+
69
+ def set_Deadline (self ,Deadline ):
70
+ self .add_query_param ('Deadline' ,Deadline )
71
+
72
+ def get_WorkspaceId (self ):
73
+ return self .get_query_params ().get ('WorkspaceId' )
74
+
75
+ def set_WorkspaceId (self ,WorkspaceId ):
76
+ self .add_query_param ('WorkspaceId' ,WorkspaceId )
77
+
78
+ def get_OrderType (self ):
79
+ return self .get_query_params ().get ('OrderType' )
80
+
81
+ def set_OrderType (self ,OrderType ):
82
+ self .add_query_param ('OrderType' ,OrderType )
83
+
84
+ def get_EngineType (self ):
85
+ return self .get_query_params ().get ('EngineType' )
86
+
87
+ def set_EngineType (self ,EngineType ):
88
+ self .add_query_param ('EngineType' ,EngineType )
0 commit comments