kingsoftcloud-sdk-python 1.5.8.48__py2.py3-none-any.whl → 1.5.8.50__py2.py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {kingsoftcloud_sdk_python-1.5.8.48.dist-info → kingsoftcloud_sdk_python-1.5.8.50.dist-info}/METADATA +1 -1
- {kingsoftcloud_sdk_python-1.5.8.48.dist-info → kingsoftcloud_sdk_python-1.5.8.50.dist-info}/RECORD +12 -8
- {kingsoftcloud_sdk_python-1.5.8.48.dist-info → kingsoftcloud_sdk_python-1.5.8.50.dist-info}/WHEEL +1 -1
- ksyun/__init__.py +1 -1
- ksyun/client/epc/v20151101/client.py +2 -0
- ksyun/client/epc/v20151101/models.py +10 -0
- ksyun/client/kpfs/__init__.py +0 -0
- ksyun/client/kpfs/v20240930/__init__.py +0 -0
- ksyun/client/kpfs/v20240930/client.py +217 -0
- ksyun/client/kpfs/v20240930/models.py +396 -0
- {kingsoftcloud_sdk_python-1.5.8.48.dist-info → kingsoftcloud_sdk_python-1.5.8.50.dist-info}/licenses/LICENSE +0 -0
- {kingsoftcloud_sdk_python-1.5.8.48.dist-info → kingsoftcloud_sdk_python-1.5.8.50.dist-info}/top_level.txt +0 -0
{kingsoftcloud_sdk_python-1.5.8.48.dist-info → kingsoftcloud_sdk_python-1.5.8.50.dist-info}/RECORD
RENAMED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
kingsoftcloud_sdk_python-1.5.8.
|
|
2
|
-
ksyun/__init__.py,sha256=
|
|
1
|
+
kingsoftcloud_sdk_python-1.5.8.50.dist-info/licenses/LICENSE,sha256=AJyIQ6mPzTpsFn6i0cG6OPVdhJ85l_mfdoOR7J4DnRw,11351
|
|
2
|
+
ksyun/__init__.py,sha256=_peTHqbnXhs7waF2tMA9YpFdYn5G_LYfhi3H90Oo35Y,624
|
|
3
3
|
ksyun/client/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
4
4
|
ksyun/client/actiontrail/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
5
5
|
ksyun/client/actiontrail/v20190401/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
@@ -79,8 +79,8 @@ ksyun/client/eip/v20160304/client.py,sha256=ri642uD5iTeUSDEz55frds22J5UDZmYrziuf
|
|
|
79
79
|
ksyun/client/eip/v20160304/models.py,sha256=cs99SRuR-FfeazAzi8tIe010y5DmgEtUxzLQk7L7g0E,9162
|
|
80
80
|
ksyun/client/epc/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
81
81
|
ksyun/client/epc/v20151101/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
82
|
-
ksyun/client/epc/v20151101/client.py,sha256=
|
|
83
|
-
ksyun/client/epc/v20151101/models.py,sha256=
|
|
82
|
+
ksyun/client/epc/v20151101/client.py,sha256=BWTk7teTb8XH0dTdW_dh88HDHaF-ToiE-CN5dDa2R1M,95444
|
|
83
|
+
ksyun/client/epc/v20151101/models.py,sha256=b_t9eAsW9JByZC0S0odxPMG8TnkJsRKBdEHJ5ZhHKI0,153147
|
|
84
84
|
ksyun/client/iam/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
85
85
|
ksyun/client/iam/v20151101/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
86
86
|
ksyun/client/iam/v20151101/client.py,sha256=ppytkZQuGaKjs4pkMp_LTLe6M08gyr1CgZenHK8KNRo,59542
|
|
@@ -202,6 +202,10 @@ ksyun/client/knad/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU
|
|
|
202
202
|
ksyun/client/knad/v20230323/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
203
203
|
ksyun/client/knad/v20230323/client.py,sha256=rqcj6b8zOxW_4RXgDXG204AvB96ZjMQzY0NTBeBIt1k,15454
|
|
204
204
|
ksyun/client/knad/v20230323/models.py,sha256=wEA_UNP5_KuQbTQzm2SWum8NcJwFKGrRMdsjr39yhWc,14405
|
|
205
|
+
ksyun/client/kpfs/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
206
|
+
ksyun/client/kpfs/v20240930/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
207
|
+
ksyun/client/kpfs/v20240930/client.py,sha256=gX-oFA3TmFOZJFY0oqhovBq-mR4_fqY_Lz1RMFdUfaE,8335
|
|
208
|
+
ksyun/client/kpfs/v20240930/models.py,sha256=n2YRDPAMHwzZZAipmrQICfJow2xeonpMpJ1gF63IKCw,22650
|
|
205
209
|
ksyun/client/krds/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
206
210
|
ksyun/client/krds/v20160701/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
207
211
|
ksyun/client/krds/v20160701/client.py,sha256=G30JO9FgZJbHYasDekJZFcti4zMXaWgaJrdN1vjAc0w,85838
|
|
@@ -327,7 +331,7 @@ ksyun/common/http/request.py,sha256=x8cWSnSQWFqitiTUZ1DAS4UVS96oR-K-X8adgeGmOmY,
|
|
|
327
331
|
ksyun/common/profile/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
328
332
|
ksyun/common/profile/client_profile.py,sha256=RJGav6wx8kPnEQ1unEwzys1ZJuP9jUXCcAMleJDacqU,1594
|
|
329
333
|
ksyun/common/profile/http_profile.py,sha256=pf_F81rldkVfDyUynNTIyjIIxrHqA3WsJ1oirTa9Rhg,2621
|
|
330
|
-
kingsoftcloud_sdk_python-1.5.8.
|
|
331
|
-
kingsoftcloud_sdk_python-1.5.8.
|
|
332
|
-
kingsoftcloud_sdk_python-1.5.8.
|
|
333
|
-
kingsoftcloud_sdk_python-1.5.8.
|
|
334
|
+
kingsoftcloud_sdk_python-1.5.8.50.dist-info/METADATA,sha256=1_nAFldAcUG3Tl8SL-XhX6pl34Hz1i5EvjuInh1v_8c,2117
|
|
335
|
+
kingsoftcloud_sdk_python-1.5.8.50.dist-info/WHEEL,sha256=Mk1ST5gDzEO5il5kYREiBnzzM469m5sI8ESPl7TRhJY,110
|
|
336
|
+
kingsoftcloud_sdk_python-1.5.8.50.dist-info/top_level.txt,sha256=mzM04AZwi_rRte0l5x-qpr79yKptjcaFLfIPtRA-8Dk,6
|
|
337
|
+
kingsoftcloud_sdk_python-1.5.8.50.dist-info/RECORD,,
|
ksyun/__init__.py
CHANGED
|
@@ -256,6 +256,8 @@ storage_bond
|
|
|
256
256
|
:type PathPrefix: String
|
|
257
257
|
:param UserDefinedData: 自定义脚本
|
|
258
258
|
:type PathPrefix: String
|
|
259
|
+
:param GroupSubType: 子机型
|
|
260
|
+
:type PathPrefix: String
|
|
259
261
|
"""
|
|
260
262
|
self.HostType = None
|
|
261
263
|
self.AvailabilityZone = None
|
|
@@ -320,6 +322,7 @@ storage_bond
|
|
|
320
322
|
self.RoceCluster = None
|
|
321
323
|
self.SRoceCluster = None
|
|
322
324
|
self.UserDefinedData = None
|
|
325
|
+
self.GroupSubType = None
|
|
323
326
|
|
|
324
327
|
def _deserialize(self, params):
|
|
325
328
|
if params.get("HostType"):
|
|
@@ -448,6 +451,8 @@ storage_bond
|
|
|
448
451
|
self.SRoceCluster = params.get("SRoceCluster")
|
|
449
452
|
if params.get("UserDefinedData"):
|
|
450
453
|
self.UserDefinedData = params.get("UserDefinedData")
|
|
454
|
+
if params.get("GroupSubType"):
|
|
455
|
+
self.GroupSubType = params.get("GroupSubType")
|
|
451
456
|
|
|
452
457
|
|
|
453
458
|
class StartEpcRequest(AbstractModel):
|
|
@@ -2303,6 +2308,8 @@ storage_bond
|
|
|
2303
2308
|
:type PathPrefix: String
|
|
2304
2309
|
:param RoceCluster: Roce计算卡集群名称
|
|
2305
2310
|
:type PathPrefix: String
|
|
2311
|
+
:param GroupSubType: 子机型
|
|
2312
|
+
:type PathPrefix: String
|
|
2306
2313
|
"""
|
|
2307
2314
|
self.HostType = None
|
|
2308
2315
|
self.AvailabilityZone = None
|
|
@@ -2361,6 +2368,7 @@ storage_bond
|
|
|
2361
2368
|
self.StorageRoceNetworkCardName = None
|
|
2362
2369
|
self.SRoceCluster = None
|
|
2363
2370
|
self.RoceCluster = None
|
|
2371
|
+
self.GroupSubType = None
|
|
2364
2372
|
|
|
2365
2373
|
def _deserialize(self, params):
|
|
2366
2374
|
if params.get("HostType"):
|
|
@@ -2477,6 +2485,8 @@ storage_bond
|
|
|
2477
2485
|
self.SRoceCluster = params.get("SRoceCluster")
|
|
2478
2486
|
if params.get("RoceCluster"):
|
|
2479
2487
|
self.RoceCluster = params.get("RoceCluster")
|
|
2488
|
+
if params.get("GroupSubType"):
|
|
2489
|
+
self.GroupSubType = params.get("GroupSubType")
|
|
2480
2490
|
|
|
2481
2491
|
|
|
2482
2492
|
class DescribeUseHotStandbyRecordsRequest(AbstractModel):
|
|
File without changes
|
|
File without changes
|
|
@@ -0,0 +1,217 @@
|
|
|
1
|
+
import json
|
|
2
|
+
|
|
3
|
+
from ksyun.common.exception.ksyun_sdk_exception import KsyunSDKException
|
|
4
|
+
from ksyun.common.abstract_client import AbstractClient
|
|
5
|
+
|
|
6
|
+
|
|
7
|
+
class KpfsClient(AbstractClient):
|
|
8
|
+
_apiVersion = '2024-09-30'
|
|
9
|
+
_endpoint = 'kpfs.api.ksyun.com'
|
|
10
|
+
_service = 'kpfs'
|
|
11
|
+
def DescribeDirQuotaList(self, request):
|
|
12
|
+
"""查询目录配额列表
|
|
13
|
+
:param request: Request instance for DescribeDirQuotaList.
|
|
14
|
+
:type request: :class:`ksyun.client.kpfs.v20240930.models.DescribeDirQuotaListRequest`
|
|
15
|
+
"""
|
|
16
|
+
try:
|
|
17
|
+
params = request._serialize()
|
|
18
|
+
body = self.call_judge("DescribeDirQuotaList", params, "application/x-www-form-urlencoded")
|
|
19
|
+
response = json.loads(body)
|
|
20
|
+
if "Error" not in response:
|
|
21
|
+
return body
|
|
22
|
+
else:
|
|
23
|
+
code = response["Error"]["Code"]
|
|
24
|
+
message = response["Error"]["Message"]
|
|
25
|
+
req_id = response["RequestId"]
|
|
26
|
+
raise KsyunSDKException(code, message, req_id)
|
|
27
|
+
except Exception as e:
|
|
28
|
+
if isinstance(e, KsyunSDKException):
|
|
29
|
+
raise
|
|
30
|
+
else:
|
|
31
|
+
raise KsyunSDKException(message=str(e))
|
|
32
|
+
|
|
33
|
+
|
|
34
|
+
def DeleteDirQuota(self, request):
|
|
35
|
+
"""删除目录配额
|
|
36
|
+
:param request: Request instance for DeleteDirQuota.
|
|
37
|
+
:type request: :class:`ksyun.client.kpfs.v20240930.models.DeleteDirQuotaRequest`
|
|
38
|
+
"""
|
|
39
|
+
try:
|
|
40
|
+
params = request._serialize()
|
|
41
|
+
body = self.call_judge("DeleteDirQuota", params, "application/json")
|
|
42
|
+
response = json.loads(body)
|
|
43
|
+
if "Error" not in response:
|
|
44
|
+
return body
|
|
45
|
+
else:
|
|
46
|
+
code = response["Error"]["Code"]
|
|
47
|
+
message = response["Error"]["Message"]
|
|
48
|
+
req_id = response["RequestId"]
|
|
49
|
+
raise KsyunSDKException(code, message, req_id)
|
|
50
|
+
except Exception as e:
|
|
51
|
+
if isinstance(e, KsyunSDKException):
|
|
52
|
+
raise
|
|
53
|
+
else:
|
|
54
|
+
raise KsyunSDKException(message=str(e))
|
|
55
|
+
|
|
56
|
+
|
|
57
|
+
def UpdateDirQuota(self, request):
|
|
58
|
+
"""修改目录配额
|
|
59
|
+
:param request: Request instance for UpdateDirQuota.
|
|
60
|
+
:type request: :class:`ksyun.client.kpfs.v20240930.models.UpdateDirQuotaRequest`
|
|
61
|
+
"""
|
|
62
|
+
try:
|
|
63
|
+
params = request._serialize()
|
|
64
|
+
body = self.call_judge("UpdateDirQuota", params, "application/json")
|
|
65
|
+
response = json.loads(body)
|
|
66
|
+
if "Error" not in response:
|
|
67
|
+
return body
|
|
68
|
+
else:
|
|
69
|
+
code = response["Error"]["Code"]
|
|
70
|
+
message = response["Error"]["Message"]
|
|
71
|
+
req_id = response["RequestId"]
|
|
72
|
+
raise KsyunSDKException(code, message, req_id)
|
|
73
|
+
except Exception as e:
|
|
74
|
+
if isinstance(e, KsyunSDKException):
|
|
75
|
+
raise
|
|
76
|
+
else:
|
|
77
|
+
raise KsyunSDKException(message=str(e))
|
|
78
|
+
|
|
79
|
+
|
|
80
|
+
def CreateDirQuota(self, request):
|
|
81
|
+
"""新建目录配额
|
|
82
|
+
:param request: Request instance for CreateDirQuota.
|
|
83
|
+
:type request: :class:`ksyun.client.kpfs.v20240930.models.CreateDirQuotaRequest`
|
|
84
|
+
"""
|
|
85
|
+
try:
|
|
86
|
+
params = request._serialize()
|
|
87
|
+
body = self.call_judge("CreateDirQuota", params, "application/json")
|
|
88
|
+
response = json.loads(body)
|
|
89
|
+
if "Error" not in response:
|
|
90
|
+
return body
|
|
91
|
+
else:
|
|
92
|
+
code = response["Error"]["Code"]
|
|
93
|
+
message = response["Error"]["Message"]
|
|
94
|
+
req_id = response["RequestId"]
|
|
95
|
+
raise KsyunSDKException(code, message, req_id)
|
|
96
|
+
except Exception as e:
|
|
97
|
+
if isinstance(e, KsyunSDKException):
|
|
98
|
+
raise
|
|
99
|
+
else:
|
|
100
|
+
raise KsyunSDKException(message=str(e))
|
|
101
|
+
|
|
102
|
+
|
|
103
|
+
def DescribeSubDirList(self, request):
|
|
104
|
+
"""查询文件系统或特定目录的子目录列表
|
|
105
|
+
:param request: Request instance for DescribeSubDirList.
|
|
106
|
+
:type request: :class:`ksyun.client.kpfs.v20240930.models.DescribeSubDirListRequest`
|
|
107
|
+
"""
|
|
108
|
+
try:
|
|
109
|
+
params = request._serialize()
|
|
110
|
+
body = self.call_judge("DescribeSubDirList", params, "application/x-www-form-urlencoded")
|
|
111
|
+
response = json.loads(body)
|
|
112
|
+
if "Error" not in response:
|
|
113
|
+
return body
|
|
114
|
+
else:
|
|
115
|
+
code = response["Error"]["Code"]
|
|
116
|
+
message = response["Error"]["Message"]
|
|
117
|
+
req_id = response["RequestId"]
|
|
118
|
+
raise KsyunSDKException(code, message, req_id)
|
|
119
|
+
except Exception as e:
|
|
120
|
+
if isinstance(e, KsyunSDKException):
|
|
121
|
+
raise
|
|
122
|
+
else:
|
|
123
|
+
raise KsyunSDKException(message=str(e))
|
|
124
|
+
|
|
125
|
+
|
|
126
|
+
def DeleteDir(self, request):
|
|
127
|
+
"""删除文件系统目录
|
|
128
|
+
:param request: Request instance for DeleteDir.
|
|
129
|
+
:type request: :class:`ksyun.client.kpfs.v20240930.models.DeleteDirRequest`
|
|
130
|
+
"""
|
|
131
|
+
try:
|
|
132
|
+
params = request._serialize()
|
|
133
|
+
body = self.call_judge("DeleteDir", params, "application/json")
|
|
134
|
+
response = json.loads(body)
|
|
135
|
+
if "Error" not in response:
|
|
136
|
+
return body
|
|
137
|
+
else:
|
|
138
|
+
code = response["Error"]["Code"]
|
|
139
|
+
message = response["Error"]["Message"]
|
|
140
|
+
req_id = response["RequestId"]
|
|
141
|
+
raise KsyunSDKException(code, message, req_id)
|
|
142
|
+
except Exception as e:
|
|
143
|
+
if isinstance(e, KsyunSDKException):
|
|
144
|
+
raise
|
|
145
|
+
else:
|
|
146
|
+
raise KsyunSDKException(message=str(e))
|
|
147
|
+
|
|
148
|
+
|
|
149
|
+
def UpdateDir(self, request):
|
|
150
|
+
"""修改文件系统目录
|
|
151
|
+
:param request: Request instance for UpdateDir.
|
|
152
|
+
:type request: :class:`ksyun.client.kpfs.v20240930.models.UpdateDirRequest`
|
|
153
|
+
"""
|
|
154
|
+
try:
|
|
155
|
+
params = request._serialize()
|
|
156
|
+
body = self.call_judge("UpdateDir", params, "application/json")
|
|
157
|
+
response = json.loads(body)
|
|
158
|
+
if "Error" not in response:
|
|
159
|
+
return body
|
|
160
|
+
else:
|
|
161
|
+
code = response["Error"]["Code"]
|
|
162
|
+
message = response["Error"]["Message"]
|
|
163
|
+
req_id = response["RequestId"]
|
|
164
|
+
raise KsyunSDKException(code, message, req_id)
|
|
165
|
+
except Exception as e:
|
|
166
|
+
if isinstance(e, KsyunSDKException):
|
|
167
|
+
raise
|
|
168
|
+
else:
|
|
169
|
+
raise KsyunSDKException(message=str(e))
|
|
170
|
+
|
|
171
|
+
|
|
172
|
+
def CreateDir(self, request):
|
|
173
|
+
"""新建文件系统目录
|
|
174
|
+
:param request: Request instance for CreateDir.
|
|
175
|
+
:type request: :class:`ksyun.client.kpfs.v20240930.models.CreateDirRequest`
|
|
176
|
+
"""
|
|
177
|
+
try:
|
|
178
|
+
params = request._serialize()
|
|
179
|
+
body = self.call_judge("CreateDir", params, "application/json")
|
|
180
|
+
response = json.loads(body)
|
|
181
|
+
if "Error" not in response:
|
|
182
|
+
return body
|
|
183
|
+
else:
|
|
184
|
+
code = response["Error"]["Code"]
|
|
185
|
+
message = response["Error"]["Message"]
|
|
186
|
+
req_id = response["RequestId"]
|
|
187
|
+
raise KsyunSDKException(code, message, req_id)
|
|
188
|
+
except Exception as e:
|
|
189
|
+
if isinstance(e, KsyunSDKException):
|
|
190
|
+
raise
|
|
191
|
+
else:
|
|
192
|
+
raise KsyunSDKException(message=str(e))
|
|
193
|
+
|
|
194
|
+
|
|
195
|
+
def DescribeDirQuota(self, request):
|
|
196
|
+
"""查询指定目录配额
|
|
197
|
+
:param request: Request instance for DescribeDirQuota.
|
|
198
|
+
:type request: :class:`ksyun.client.kpfs.v20240930.models.DescribeDirQuotaRequest`
|
|
199
|
+
"""
|
|
200
|
+
try:
|
|
201
|
+
params = request._serialize()
|
|
202
|
+
body = self.call_judge("DescribeDirQuota", params, "application/x-www-form-urlencoded")
|
|
203
|
+
response = json.loads(body)
|
|
204
|
+
if "Error" not in response:
|
|
205
|
+
return body
|
|
206
|
+
else:
|
|
207
|
+
code = response["Error"]["Code"]
|
|
208
|
+
message = response["Error"]["Message"]
|
|
209
|
+
req_id = response["RequestId"]
|
|
210
|
+
raise KsyunSDKException(code, message, req_id)
|
|
211
|
+
except Exception as e:
|
|
212
|
+
if isinstance(e, KsyunSDKException):
|
|
213
|
+
raise
|
|
214
|
+
else:
|
|
215
|
+
raise KsyunSDKException(message=str(e))
|
|
216
|
+
|
|
217
|
+
|
|
@@ -0,0 +1,396 @@
|
|
|
1
|
+
from ksyun.common.abstract_model import AbstractModel
|
|
2
|
+
|
|
3
|
+
class DescribeDirQuotaListRequest(AbstractModel):
|
|
4
|
+
"""DescribeDirQuotaList请求参数结构体
|
|
5
|
+
"""
|
|
6
|
+
|
|
7
|
+
def __init__(self):
|
|
8
|
+
r"""查询目录配额列表
|
|
9
|
+
:param FileSystemId: 文件系统的实例ID。性能Ⅰ型/性能Ⅱ型指定文件系统支持2种方式,建议择一使用:1.通过文件系统ID(FileSystemId);2.输入文件系统完整信息,存储类型(StoreClass) + 存储池名称(ClusterName) + 文件系统名称(FileSystemName)同时必填。容量Ⅰ型/容量Ⅱ型/标准型支持2种方式,建议择一使用:1.通过文件系统ID(FileSystemId);2.输入文件系统完整信息,存储类型(StoreClass) + 文件系统名称(FileSystemName)同时必填。
|
|
10
|
+
:type PathPrefix: String
|
|
11
|
+
:param StoreClass: 存储类型,取值:KPFS-capacity(容量Ⅰ型)、KPFS-capacity2(容量Ⅱ型)、KPFS-standard(标准型)、KPFS-P-S01(性能Ⅰ型)、KPFS-P-S02(性能Ⅱ型)。
|
|
12
|
+
:type PathPrefix: String
|
|
13
|
+
:param ClusterName: 存储池名称,从控制台>文件系统详情>资源池获取。
|
|
14
|
+
:type PathPrefix: String
|
|
15
|
+
:param FileSystemName: 文件系统名称,名称最大长度63字节。
|
|
16
|
+
:type PathPrefix: String
|
|
17
|
+
:param DirPath: 目录路径模糊查询关键字,支持中间路径的模糊匹配,比如,存在目录配额/dir/subdir,查询关键字为subdir,那么会返回/dir/subdir的目录配额信息。注意:若不传入该参数,则返回文件系统下的目录配额列表。
|
|
18
|
+
:type PathPrefix: String
|
|
19
|
+
:param FuzzySearch: 是否模糊查询,默认 true;精确查询时,格式:dir/xxx 或 /dir/xxx 或 dir/xxx/ 或 /dir/xxx/。
|
|
20
|
+
:type PathPrefix: Boolean
|
|
21
|
+
:param PageSize: 分页大小。默认为10。
|
|
22
|
+
:type PathPrefix: Int
|
|
23
|
+
:param PageNum: 页码。默认为1。
|
|
24
|
+
:type PathPrefix: Int
|
|
25
|
+
"""
|
|
26
|
+
self.FileSystemId = None
|
|
27
|
+
self.StoreClass = None
|
|
28
|
+
self.ClusterName = None
|
|
29
|
+
self.FileSystemName = None
|
|
30
|
+
self.DirPath = None
|
|
31
|
+
self.FuzzySearch = None
|
|
32
|
+
self.PageSize = None
|
|
33
|
+
self.PageNum = None
|
|
34
|
+
|
|
35
|
+
def _deserialize(self, params):
|
|
36
|
+
if params.get("FileSystemId"):
|
|
37
|
+
self.FileSystemId = params.get("FileSystemId")
|
|
38
|
+
if params.get("StoreClass"):
|
|
39
|
+
self.StoreClass = params.get("StoreClass")
|
|
40
|
+
if params.get("ClusterName"):
|
|
41
|
+
self.ClusterName = params.get("ClusterName")
|
|
42
|
+
if params.get("FileSystemName"):
|
|
43
|
+
self.FileSystemName = params.get("FileSystemName")
|
|
44
|
+
if params.get("DirPath"):
|
|
45
|
+
self.DirPath = params.get("DirPath")
|
|
46
|
+
if params.get("FuzzySearch"):
|
|
47
|
+
self.FuzzySearch = params.get("FuzzySearch")
|
|
48
|
+
if params.get("PageSize"):
|
|
49
|
+
self.PageSize = params.get("PageSize")
|
|
50
|
+
if params.get("PageNum"):
|
|
51
|
+
self.PageNum = params.get("PageNum")
|
|
52
|
+
|
|
53
|
+
|
|
54
|
+
class DeleteDirQuotaRequest(AbstractModel):
|
|
55
|
+
"""DeleteDirQuota请求参数结构体
|
|
56
|
+
"""
|
|
57
|
+
|
|
58
|
+
def __init__(self):
|
|
59
|
+
r"""删除目录配额
|
|
60
|
+
:param FileSystemId: 文件系统的实例ID。性能Ⅰ型/性能Ⅱ型指定文件系统支持2种方式,建议择一使用:1. 通过文件系统ID(FileSystemId);2. 输入文件系统完整信息,存储类型(StoreClass) + 存储池名称(ClusterName) + 文件系统名称(FileSystemName)同时必填。容量Ⅰ型/容量Ⅱ型/标准型支持2种方式,建议择一使用:1. 通过文件系统ID(FileSystemId);2. 输入文件系统完整信息,存储类型(StoreClass) + 文件系统名称(FileSystemName)同时必填。
|
|
61
|
+
:type PathPrefix: String
|
|
62
|
+
:param StoreClass: 存储类型
|
|
63
|
+
:type PathPrefix: String
|
|
64
|
+
:param ClusterName: 存储池名称,从控制台>文件系统详情>资源池获取
|
|
65
|
+
:type PathPrefix: String
|
|
66
|
+
:param FileSystemName: 文件系统名称,名称最大长度63字节
|
|
67
|
+
:type PathPrefix: String
|
|
68
|
+
:param DirPath: 目录完整路径,格式:dir/xxx 或 /dir/xxx 或 dir/xxx/ 或 /dir/xxx/
|
|
69
|
+
:type PathPrefix: String
|
|
70
|
+
"""
|
|
71
|
+
self.FileSystemId = None
|
|
72
|
+
self.StoreClass = None
|
|
73
|
+
self.ClusterName = None
|
|
74
|
+
self.FileSystemName = None
|
|
75
|
+
self.DirPath = None
|
|
76
|
+
|
|
77
|
+
def _deserialize(self, params):
|
|
78
|
+
if params.get("FileSystemId"):
|
|
79
|
+
self.FileSystemId = params.get("FileSystemId")
|
|
80
|
+
if params.get("StoreClass"):
|
|
81
|
+
self.StoreClass = params.get("StoreClass")
|
|
82
|
+
if params.get("ClusterName"):
|
|
83
|
+
self.ClusterName = params.get("ClusterName")
|
|
84
|
+
if params.get("FileSystemName"):
|
|
85
|
+
self.FileSystemName = params.get("FileSystemName")
|
|
86
|
+
if params.get("DirPath"):
|
|
87
|
+
self.DirPath = params.get("DirPath")
|
|
88
|
+
|
|
89
|
+
|
|
90
|
+
class UpdateDirQuotaRequest(AbstractModel):
|
|
91
|
+
"""UpdateDirQuota请求参数结构体
|
|
92
|
+
"""
|
|
93
|
+
|
|
94
|
+
def __init__(self):
|
|
95
|
+
r"""修改目录配额
|
|
96
|
+
:param FileSystemId: 文件系统的实例ID。性能Ⅰ型/性能Ⅱ型指定文件系统支持2种方式,建议择一使用:1. 通过文件系统ID(FileSystemId);2. 输入文件系统完整信息,存储类型(StoreClass) + 存储池名称(ClusterName) + 文件系统名称(FileSystemName)同时必填。容量Ⅰ型/容量Ⅱ型/标准型支持2种方式,建议择一使用:1. 通过文件系统ID(FileSystemId);2. 输入文件系统完整信息,存储类型(StoreClass) + 文件系统名称(FileSystemName)同时必填。
|
|
97
|
+
:type PathPrefix: String
|
|
98
|
+
:param StoreClass: 存储类型
|
|
99
|
+
:type PathPrefix: String
|
|
100
|
+
:param ClusterName: 存储池名称,从控制台>文件系统详情>资源池获取
|
|
101
|
+
:type PathPrefix: String
|
|
102
|
+
:param FileSystemName: 文件系统名称,名称最大长度63字节
|
|
103
|
+
:type PathPrefix: String
|
|
104
|
+
:param DirPath: 目录完整路径,格式:dir/xxx 或 /dir/xxx 或 dir/xxx/ 或 /dir/xxx/。注意:1. 性能Ⅰ型/性能Ⅱ型存储池、文件系统名称、目录完整路径不允许修改,必须与原目录相同;2. 容量Ⅰ型/容量Ⅱ型/标准型,必须与原目录相同;3. 已设置目录配额的目录,才允许修改目录配额。
|
|
105
|
+
:type PathPrefix: String
|
|
106
|
+
:param LogicalHardThreshold: 容量硬阈值,不可超过文件系统容量配额,单位:Bytes
|
|
107
|
+
:type PathPrefix: Long
|
|
108
|
+
"""
|
|
109
|
+
self.FileSystemId = None
|
|
110
|
+
self.StoreClass = None
|
|
111
|
+
self.ClusterName = None
|
|
112
|
+
self.FileSystemName = None
|
|
113
|
+
self.DirPath = None
|
|
114
|
+
self.LogicalHardThreshold = None
|
|
115
|
+
|
|
116
|
+
def _deserialize(self, params):
|
|
117
|
+
if params.get("FileSystemId"):
|
|
118
|
+
self.FileSystemId = params.get("FileSystemId")
|
|
119
|
+
if params.get("StoreClass"):
|
|
120
|
+
self.StoreClass = params.get("StoreClass")
|
|
121
|
+
if params.get("ClusterName"):
|
|
122
|
+
self.ClusterName = params.get("ClusterName")
|
|
123
|
+
if params.get("FileSystemName"):
|
|
124
|
+
self.FileSystemName = params.get("FileSystemName")
|
|
125
|
+
if params.get("DirPath"):
|
|
126
|
+
self.DirPath = params.get("DirPath")
|
|
127
|
+
if params.get("LogicalHardThreshold"):
|
|
128
|
+
self.LogicalHardThreshold = params.get("LogicalHardThreshold")
|
|
129
|
+
|
|
130
|
+
|
|
131
|
+
class CreateDirQuotaRequest(AbstractModel):
|
|
132
|
+
"""CreateDirQuota请求参数结构体
|
|
133
|
+
"""
|
|
134
|
+
|
|
135
|
+
def __init__(self):
|
|
136
|
+
r"""新建目录配额
|
|
137
|
+
:param FileSystemId: 文件系统的实例ID。性能Ⅰ型/性能Ⅱ型指定文件系统支持2种方式,建议择一使用:1.通过文件系统ID(FileSystemId);2.输入文件系统完整信息,存储类型(StoreClass) + 存储池名称(ClusterName) + 文件系统名称(FileSystemName)同时必填。容量Ⅰ型/容量Ⅱ型/标准型支持2种方式,建议择一使用:1.通过文件系统ID(FileSystemId);2.输入文件系统完整信息,存储类型(StoreClass) + 文件系统名称(FileSystemName)同时必填。
|
|
138
|
+
:type PathPrefix: String
|
|
139
|
+
:param StoreClass: 存储类型,取值:KPFS-capacity(容量Ⅰ型)、KPFS-capacity2(容量Ⅱ型)、KPFS-standard(标准型)、KPFS-P-S01(性能Ⅰ型)、KPFS-P-S02(性能Ⅱ型)。
|
|
140
|
+
:type PathPrefix: String
|
|
141
|
+
:param ClusterName: 存储池名称,从控制台>文件系统详情>资源池获取。
|
|
142
|
+
:type PathPrefix: String
|
|
143
|
+
:param FileSystemName: 文件系统名称,名称最大长度63字节。
|
|
144
|
+
:type PathPrefix: String
|
|
145
|
+
:param DirPath: 目录完整路径,格式:dir/xxx 或 /dir/xxx 或 dir/xxx/ 或 /dir/xxx/。注意:1.性能Ⅰ型/性能Ⅱ型存储池、文件系统名称、目录完整路径不允许修改,必须与原目录相同;2.容量Ⅰ型/容量Ⅱ型/标准型,若目录不存在,接口会自动创建新目录;3.性能Ⅰ型/性能Ⅱ型,不支持为非空目录新增配额;4.无法为文件系统根目录设置配额,仅支持子目录;5.支持为各级目录设置配额,并且嵌套配额均取最小值作为该目录的阈值。比如:设置/dir配额为1MB,设置/dir/subdir配额为10MB,那么实际使用时会递归地向上查询,确保当前目录用量满足每一级目录的配额设置。
|
|
146
|
+
:type PathPrefix: String
|
|
147
|
+
:param LogicalHardThreshold: 容量硬阈值,不可超过文件系统容量配额。单位:Bytes。
|
|
148
|
+
:type PathPrefix: Long
|
|
149
|
+
"""
|
|
150
|
+
self.FileSystemId = None
|
|
151
|
+
self.StoreClass = None
|
|
152
|
+
self.ClusterName = None
|
|
153
|
+
self.FileSystemName = None
|
|
154
|
+
self.DirPath = None
|
|
155
|
+
self.LogicalHardThreshold = None
|
|
156
|
+
|
|
157
|
+
def _deserialize(self, params):
|
|
158
|
+
if params.get("FileSystemId"):
|
|
159
|
+
self.FileSystemId = params.get("FileSystemId")
|
|
160
|
+
if params.get("StoreClass"):
|
|
161
|
+
self.StoreClass = params.get("StoreClass")
|
|
162
|
+
if params.get("ClusterName"):
|
|
163
|
+
self.ClusterName = params.get("ClusterName")
|
|
164
|
+
if params.get("FileSystemName"):
|
|
165
|
+
self.FileSystemName = params.get("FileSystemName")
|
|
166
|
+
if params.get("DirPath"):
|
|
167
|
+
self.DirPath = params.get("DirPath")
|
|
168
|
+
if params.get("LogicalHardThreshold"):
|
|
169
|
+
self.LogicalHardThreshold = params.get("LogicalHardThreshold")
|
|
170
|
+
|
|
171
|
+
|
|
172
|
+
class DescribeSubDirListRequest(AbstractModel):
|
|
173
|
+
"""DescribeSubDirList请求参数结构体
|
|
174
|
+
"""
|
|
175
|
+
|
|
176
|
+
def __init__(self):
|
|
177
|
+
r"""查询文件系统或特定目录的子目录列表
|
|
178
|
+
:param FileSystemId: 指定文件系统支持2种方式,建议择一使用:1.通过文件系统ID(FileSystemId);2.输入文件系统完整信息,存储类型(StoreClass) + 存储池名称(ClusterName) + 文件系统名称(FileSystemName)同时必填。
|
|
179
|
+
:type PathPrefix: String
|
|
180
|
+
:param StoreClass: 存储类型 取值:KPFS-P-S01(性能Ⅰ型)KPFS-P-S02(性能Ⅱ型)。
|
|
181
|
+
:type PathPrefix: String
|
|
182
|
+
:param ClusterName: 存储池名称,从控制台>文件系统详情>资源池获取。
|
|
183
|
+
:type PathPrefix: String
|
|
184
|
+
:param FileSystemName: 文件系统名称,名称最大长度63字节。
|
|
185
|
+
:type PathPrefix: String
|
|
186
|
+
:param DirPath: 目录完整路径,格式 dir/xxx 或 /dir/xxx 或 dir/xxx/ 或 /dir/xxx/;文件系统传入:/;目录传入路径:dir/xxx 或 /dir/xxx 或 dir/xxx/ 或 /dir/xxx/;目录最大深度255层,根目录是第一层。
|
|
187
|
+
:type PathPrefix: String
|
|
188
|
+
:param Name: 目录名称
|
|
189
|
+
:type PathPrefix: String
|
|
190
|
+
:param PageNum: 当前页码,最小值1,无上限
|
|
191
|
+
:type PathPrefix: Int
|
|
192
|
+
:param PageSize: 每页数量,默认值1000,最小值1,最大值1000
|
|
193
|
+
:type PathPrefix: Int
|
|
194
|
+
"""
|
|
195
|
+
self.FileSystemId = None
|
|
196
|
+
self.StoreClass = None
|
|
197
|
+
self.ClusterName = None
|
|
198
|
+
self.FileSystemName = None
|
|
199
|
+
self.DirPath = None
|
|
200
|
+
self.Name = None
|
|
201
|
+
self.PageNum = None
|
|
202
|
+
self.PageSize = None
|
|
203
|
+
|
|
204
|
+
def _deserialize(self, params):
|
|
205
|
+
if params.get("FileSystemId"):
|
|
206
|
+
self.FileSystemId = params.get("FileSystemId")
|
|
207
|
+
if params.get("StoreClass"):
|
|
208
|
+
self.StoreClass = params.get("StoreClass")
|
|
209
|
+
if params.get("ClusterName"):
|
|
210
|
+
self.ClusterName = params.get("ClusterName")
|
|
211
|
+
if params.get("FileSystemName"):
|
|
212
|
+
self.FileSystemName = params.get("FileSystemName")
|
|
213
|
+
if params.get("DirPath"):
|
|
214
|
+
self.DirPath = params.get("DirPath")
|
|
215
|
+
if params.get("Name"):
|
|
216
|
+
self.Name = params.get("Name")
|
|
217
|
+
if params.get("PageNum"):
|
|
218
|
+
self.PageNum = params.get("PageNum")
|
|
219
|
+
if params.get("PageSize"):
|
|
220
|
+
self.PageSize = params.get("PageSize")
|
|
221
|
+
|
|
222
|
+
|
|
223
|
+
class DeleteDirRequest(AbstractModel):
|
|
224
|
+
"""DeleteDir请求参数结构体
|
|
225
|
+
"""
|
|
226
|
+
|
|
227
|
+
def __init__(self):
|
|
228
|
+
r"""删除文件系统目录
|
|
229
|
+
:param FileSystemId: 指定文件系统支持2种方式,建议择一使用:1.通过文件系统ID(FileSystemId);2.输入文件系统完整信息,存储类型(StoreClass) + 存储池名称(ClusterName) + 文件系统名称(FileSystemName)同时必填。
|
|
230
|
+
:type PathPrefix: String
|
|
231
|
+
:param StoreClass: 存储类型 取值:KPFS-P-S01(性能Ⅰ型)KPFS-P-S02(性能Ⅱ型)。
|
|
232
|
+
:type PathPrefix: String
|
|
233
|
+
:param ClusterName: 存储池名称,从控制台>文件系统详情>资源池获取。
|
|
234
|
+
:type PathPrefix: String
|
|
235
|
+
:param FileSystemName: 文件系统名称,名称最大长度63字节。
|
|
236
|
+
:type PathPrefix: String
|
|
237
|
+
:param DirPath: 目录完整路径,格式 dir/xxx 或 /dir/xxx 或 dir/xxx/ 或 /dir/xxx/。注意:1.存储池、文件系统名称、目录完整路径不允许修改;2.必须与原目录相同;3.若目录中有文件,无法删除。
|
|
238
|
+
:type PathPrefix: String
|
|
239
|
+
"""
|
|
240
|
+
self.FileSystemId = None
|
|
241
|
+
self.StoreClass = None
|
|
242
|
+
self.ClusterName = None
|
|
243
|
+
self.FileSystemName = None
|
|
244
|
+
self.DirPath = None
|
|
245
|
+
|
|
246
|
+
def _deserialize(self, params):
|
|
247
|
+
if params.get("FileSystemId"):
|
|
248
|
+
self.FileSystemId = params.get("FileSystemId")
|
|
249
|
+
if params.get("StoreClass"):
|
|
250
|
+
self.StoreClass = params.get("StoreClass")
|
|
251
|
+
if params.get("ClusterName"):
|
|
252
|
+
self.ClusterName = params.get("ClusterName")
|
|
253
|
+
if params.get("FileSystemName"):
|
|
254
|
+
self.FileSystemName = params.get("FileSystemName")
|
|
255
|
+
if params.get("DirPath"):
|
|
256
|
+
self.DirPath = params.get("DirPath")
|
|
257
|
+
|
|
258
|
+
|
|
259
|
+
class UpdateDirRequest(AbstractModel):
|
|
260
|
+
"""UpdateDir请求参数结构体
|
|
261
|
+
"""
|
|
262
|
+
|
|
263
|
+
def __init__(self):
|
|
264
|
+
r"""修改文件系统目录
|
|
265
|
+
:param FileSystemId: 指定文件系统支持2种方式,建议择一使用:1.通过文件系统ID(FileSystemId);2.输入文件系统完整信息,存储类型(StoreClass) + 存储池名称(ClusterName) + 文件系统名称(FileSystemName)同时必填。
|
|
266
|
+
:type PathPrefix: String
|
|
267
|
+
:param StoreClass: 存储类型 取值:KPFS-P-S01(性能Ⅰ型)KPFS-P-S02(性能Ⅱ型)。
|
|
268
|
+
:type PathPrefix: String
|
|
269
|
+
:param ClusterName: 存储池名称,从控制台>文件系统详情>资源池获取。
|
|
270
|
+
:type PathPrefix: String
|
|
271
|
+
:param FileSystemName: 文件系统名称,名称最大长度63字节。
|
|
272
|
+
:type PathPrefix: String
|
|
273
|
+
:param DirPath: 目录完整路径,格式 dir/xxx 或 /dir/xxx 或 dir/xxx/ 或 /dir/xxx/。注意:1.存储池、文件系统名称、目录完整路径不允许修改;2.必须与原目录相同。
|
|
274
|
+
:type PathPrefix: String
|
|
275
|
+
:param FileSysPosixPermission: 文件读写权限,格式:十位二进制表示法。备注:默认为755 (-rwxr-xr-x),拥有者有读、写、执行权限;而属组用户和其他用户只有读、执行权限。
|
|
276
|
+
:type PathPrefix: Int
|
|
277
|
+
:param FileSysOwnerUserId: 文件所属用户的id。备注:设置为0时,为root权限。注意:所属用户的id和所属用户的用户组id须同时修改。
|
|
278
|
+
:type PathPrefix: Int
|
|
279
|
+
:param FileSysOwnerGroupId: 文件所属用户的用户组id。备注:设置为0时,为root权限。注意:所属用户的id和所属用户的用户组id须同时修改。
|
|
280
|
+
:type PathPrefix: Int
|
|
281
|
+
"""
|
|
282
|
+
self.FileSystemId = None
|
|
283
|
+
self.StoreClass = None
|
|
284
|
+
self.ClusterName = None
|
|
285
|
+
self.FileSystemName = None
|
|
286
|
+
self.DirPath = None
|
|
287
|
+
self.FileSysPosixPermission = None
|
|
288
|
+
self.FileSysOwnerUserId = None
|
|
289
|
+
self.FileSysOwnerGroupId = None
|
|
290
|
+
|
|
291
|
+
def _deserialize(self, params):
|
|
292
|
+
if params.get("FileSystemId"):
|
|
293
|
+
self.FileSystemId = params.get("FileSystemId")
|
|
294
|
+
if params.get("StoreClass"):
|
|
295
|
+
self.StoreClass = params.get("StoreClass")
|
|
296
|
+
if params.get("ClusterName"):
|
|
297
|
+
self.ClusterName = params.get("ClusterName")
|
|
298
|
+
if params.get("FileSystemName"):
|
|
299
|
+
self.FileSystemName = params.get("FileSystemName")
|
|
300
|
+
if params.get("DirPath"):
|
|
301
|
+
self.DirPath = params.get("DirPath")
|
|
302
|
+
if params.get("FileSysPosixPermission"):
|
|
303
|
+
self.FileSysPosixPermission = params.get("FileSysPosixPermission")
|
|
304
|
+
if params.get("FileSysOwnerUserId"):
|
|
305
|
+
self.FileSysOwnerUserId = params.get("FileSysOwnerUserId")
|
|
306
|
+
if params.get("FileSysOwnerGroupId"):
|
|
307
|
+
self.FileSysOwnerGroupId = params.get("FileSysOwnerGroupId")
|
|
308
|
+
|
|
309
|
+
|
|
310
|
+
class CreateDirRequest(AbstractModel):
|
|
311
|
+
"""CreateDir请求参数结构体
|
|
312
|
+
"""
|
|
313
|
+
|
|
314
|
+
def __init__(self):
|
|
315
|
+
r"""新建文件系统目录
|
|
316
|
+
:param FileSystemId: 指定文件系统支持2种方式,建议择一使用:1.通过文件系统ID(FileSystemId);2.输入文件系统完整信息,存储类型(StoreClass) + 存储池名称(ClusterName) + 文件系统名称(FileSystemName)同时必填。
|
|
317
|
+
:type PathPrefix: String
|
|
318
|
+
:param StoreClass: 存储类型 取值:KPFS-P-S01(性能Ⅰ型)KPFS-P-S02(性能Ⅱ型)。
|
|
319
|
+
:type PathPrefix: String
|
|
320
|
+
:param ClusterName: 存储池名称,从控制台>文件系统详情>资源池获取。
|
|
321
|
+
:type PathPrefix: String
|
|
322
|
+
:param FileSystemName: 文件系统名称,名称最大长度63字节。
|
|
323
|
+
:type PathPrefix: String
|
|
324
|
+
:param DirPath: 目录完整路径,格式 dir/xxx 或 /dir/xxx 或 dir/xxx/ 或 /dir/xxx/。限制:1.创建目录的上一层目录必须存在,系统不会自动创建,不存在则报错: $path dose not exist;2.若目录中包含/,系统会自动用/将目录分层,报错信息同上。补充说明:针对目录名称的限制如下:字节长度1-254字节;不允许使用 /;不能设置为.和..。针对完整路径(文件系统名:/dir):最大1024字节。
|
|
325
|
+
:type PathPrefix: String
|
|
326
|
+
:param FileSysOwnerUserId: 文件所属用户的id,不可设置负数。有效值范围:0-(不校验范围)。备注:设置为0时,为root权限。UID和GID必须同时配置,或皆不配置。否则会报错。
|
|
327
|
+
:type PathPrefix: Int
|
|
328
|
+
:param FileSysOwnerGroupId: 文件所属用户的用户组id,不可设置负数。有效值范围:0- (不校验范围)。备注:设置为0时,为root权限。UID和GID必须同时配置,或皆不配置。否则会报错。
|
|
329
|
+
:type PathPrefix: Int
|
|
330
|
+
:param FileSysPosixPermission: 文件读写权限,格式:十位二进制表示法。备注:默认为755 (-rwxr-xr-x),拥有者有读、写、执行权限;而属组用户和其他用户只有读、执行权限。
|
|
331
|
+
:type PathPrefix: Int
|
|
332
|
+
"""
|
|
333
|
+
self.FileSystemId = None
|
|
334
|
+
self.StoreClass = None
|
|
335
|
+
self.ClusterName = None
|
|
336
|
+
self.FileSystemName = None
|
|
337
|
+
self.DirPath = None
|
|
338
|
+
self.FileSysOwnerUserId = None
|
|
339
|
+
self.FileSysOwnerGroupId = None
|
|
340
|
+
self.FileSysPosixPermission = None
|
|
341
|
+
|
|
342
|
+
def _deserialize(self, params):
|
|
343
|
+
if params.get("FileSystemId"):
|
|
344
|
+
self.FileSystemId = params.get("FileSystemId")
|
|
345
|
+
if params.get("StoreClass"):
|
|
346
|
+
self.StoreClass = params.get("StoreClass")
|
|
347
|
+
if params.get("ClusterName"):
|
|
348
|
+
self.ClusterName = params.get("ClusterName")
|
|
349
|
+
if params.get("FileSystemName"):
|
|
350
|
+
self.FileSystemName = params.get("FileSystemName")
|
|
351
|
+
if params.get("DirPath"):
|
|
352
|
+
self.DirPath = params.get("DirPath")
|
|
353
|
+
if params.get("FileSysOwnerUserId"):
|
|
354
|
+
self.FileSysOwnerUserId = params.get("FileSysOwnerUserId")
|
|
355
|
+
if params.get("FileSysOwnerGroupId"):
|
|
356
|
+
self.FileSysOwnerGroupId = params.get("FileSysOwnerGroupId")
|
|
357
|
+
if params.get("FileSysPosixPermission"):
|
|
358
|
+
self.FileSysPosixPermission = params.get("FileSysPosixPermission")
|
|
359
|
+
|
|
360
|
+
|
|
361
|
+
class DescribeDirQuotaRequest(AbstractModel):
|
|
362
|
+
"""DescribeDirQuota请求参数结构体
|
|
363
|
+
"""
|
|
364
|
+
|
|
365
|
+
def __init__(self):
|
|
366
|
+
r"""查询指定目录配额
|
|
367
|
+
:param FileSystemId: 文件系统的实例ID。性能Ⅰ型/性能Ⅱ型指定文件系统支持2种方式,建议择一使用:1. 通过文件系统ID(FileSystemId);2. 输入文件系统完整信息,存储类型(StoreClass) + 存储池名称(ClusterName) + 文件系统名称(FileSystemName)同时必填。容量Ⅰ型/容量Ⅱ型/标准型支持2种方式,建议择一使用:1. 通过文件系统ID(FileSystemId);2. 输入文件系统完整信息,存储类型(StoreClass) + 文件系统名称(FileSystemName)同时必填。
|
|
368
|
+
:type PathPrefix: String
|
|
369
|
+
:param StoreClass: 存储类型
|
|
370
|
+
:type PathPrefix: String
|
|
371
|
+
:param ClusterName: 存储池名称,从控制台>文件系统详情>资源池获取
|
|
372
|
+
:type PathPrefix: String
|
|
373
|
+
:param FileSystemName: 文件系统名称,名称最大长度63字节
|
|
374
|
+
:type PathPrefix: String
|
|
375
|
+
:param DirPath: 目录完整路径,格式:dir/xxx 或 /dir/xxx 或 dir/xxx/ 或 /dir/xxx/
|
|
376
|
+
:type PathPrefix: String
|
|
377
|
+
"""
|
|
378
|
+
self.FileSystemId = None
|
|
379
|
+
self.StoreClass = None
|
|
380
|
+
self.ClusterName = None
|
|
381
|
+
self.FileSystemName = None
|
|
382
|
+
self.DirPath = None
|
|
383
|
+
|
|
384
|
+
def _deserialize(self, params):
|
|
385
|
+
if params.get("FileSystemId"):
|
|
386
|
+
self.FileSystemId = params.get("FileSystemId")
|
|
387
|
+
if params.get("StoreClass"):
|
|
388
|
+
self.StoreClass = params.get("StoreClass")
|
|
389
|
+
if params.get("ClusterName"):
|
|
390
|
+
self.ClusterName = params.get("ClusterName")
|
|
391
|
+
if params.get("FileSystemName"):
|
|
392
|
+
self.FileSystemName = params.get("FileSystemName")
|
|
393
|
+
if params.get("DirPath"):
|
|
394
|
+
self.DirPath = params.get("DirPath")
|
|
395
|
+
|
|
396
|
+
|
|
File without changes
|
|
File without changes
|