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 aliyunsdkdbfs .endpoint import endpoint_data
22
+
23
+ class CreateDbfsRequest (RpcRequest ):
24
+
25
+ def __init__ (self ):
26
+ RpcRequest .__init__ (self , 'DBFS' , '2020-04-18' , 'CreateDbfs' )
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_SizeG (self ):
35
+ return self .get_query_params ().get ('SizeG' )
36
+
37
+ def set_SizeG (self ,SizeG ):
38
+ self .add_query_param ('SizeG' ,SizeG )
39
+
40
+ def get_SnapshotId (self ):
41
+ return self .get_query_params ().get ('SnapshotId' )
42
+
43
+ def set_SnapshotId (self ,SnapshotId ):
44
+ self .add_query_param ('SnapshotId' ,SnapshotId )
45
+
46
+ def get_ClientToken (self ):
47
+ return self .get_query_params ().get ('ClientToken' )
48
+
49
+ def set_ClientToken (self ,ClientToken ):
50
+ self .add_query_param ('ClientToken' ,ClientToken )
51
+
52
+ def get_FsName (self ):
53
+ return self .get_query_params ().get ('FsName' )
54
+
55
+ def set_FsName (self ,FsName ):
56
+ self .add_query_param ('FsName' ,FsName )
57
+
58
+ def get_RaidStripeUnitNumber (self ):
59
+ return self .get_query_params ().get ('RaidStripeUnitNumber' )
60
+
61
+ def set_RaidStripeUnitNumber (self ,RaidStripeUnitNumber ):
62
+ self .add_query_param ('RaidStripeUnitNumber' ,RaidStripeUnitNumber )
63
+
64
+ def get_Encryption (self ):
65
+ return self .get_query_params ().get ('Encryption' )
66
+
67
+ def set_Encryption (self ,Encryption ):
68
+ self .add_query_param ('Encryption' ,Encryption )
69
+
70
+ def get_PerformanceLevel (self ):
71
+ return self .get_query_params ().get ('PerformanceLevel' )
72
+
73
+ def set_PerformanceLevel (self ,PerformanceLevel ):
74
+ self .add_query_param ('PerformanceLevel' ,PerformanceLevel )
75
+
76
+ def get_EnableRaid (self ):
77
+ return self .get_query_params ().get ('EnableRaid' )
78
+
79
+ def set_EnableRaid (self ,EnableRaid ):
80
+ self .add_query_param ('EnableRaid' ,EnableRaid )
81
+
82
+ def get_DeleteSnapshot (self ):
83
+ return self .get_query_params ().get ('DeleteSnapshot' )
84
+
85
+ def set_DeleteSnapshot (self ,DeleteSnapshot ):
86
+ self .add_query_param ('DeleteSnapshot' ,DeleteSnapshot )
87
+
88
+ def get_ZoneId (self ):
89
+ return self .get_query_params ().get ('ZoneId' )
90
+
91
+ def set_ZoneId (self ,ZoneId ):
92
+ self .add_query_param ('ZoneId' ,ZoneId )
93
+
94
+ def get_Category (self ):
95
+ return self .get_query_params ().get ('Category' )
96
+
97
+ def set_Category (self ,Category ):
98
+ self .add_query_param ('Category' ,Category )
99
+
100
+ def get_KMSKeyId (self ):
101
+ return self .get_query_params ().get ('KMSKeyId' )
102
+
103
+ def set_KMSKeyId (self ,KMSKeyId ):
104
+ self .add_query_param ('KMSKeyId' ,KMSKeyId )
0 commit comments