tencentcloud-sdk-python-cfs 3.1.189__tar.gz → 3.1.208__tar.gz

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.
Files changed (17) hide show
  1. {tencentcloud_sdk_python_cfs-3.1.189 → tencentcloud_sdk_python_cfs-3.1.208}/PKG-INFO +2 -2
  2. {tencentcloud_sdk_python_cfs-3.1.189 → tencentcloud_sdk_python_cfs-3.1.208}/setup.py +1 -1
  3. {tencentcloud_sdk_python_cfs-3.1.189 → tencentcloud_sdk_python_cfs-3.1.208}/tencentcloud/__init__.py +1 -1
  4. {tencentcloud_sdk_python_cfs-3.1.189 → tencentcloud_sdk_python_cfs-3.1.208}/tencentcloud/cfs/v20190719/cfs_client.py +92 -0
  5. {tencentcloud_sdk_python_cfs-3.1.189 → tencentcloud_sdk_python_cfs-3.1.208}/tencentcloud/cfs/v20190719/cfs_client_async.py +72 -0
  6. {tencentcloud_sdk_python_cfs-3.1.189 → tencentcloud_sdk_python_cfs-3.1.208}/tencentcloud/cfs/v20190719/errorcodes.py +30 -0
  7. {tencentcloud_sdk_python_cfs-3.1.189 → tencentcloud_sdk_python_cfs-3.1.208}/tencentcloud/cfs/v20190719/models.py +612 -0
  8. {tencentcloud_sdk_python_cfs-3.1.189 → tencentcloud_sdk_python_cfs-3.1.208}/tencentcloud_sdk_python_cfs.egg-info/PKG-INFO +2 -2
  9. tencentcloud_sdk_python_cfs-3.1.208/tencentcloud_sdk_python_cfs.egg-info/requires.txt +1 -0
  10. tencentcloud_sdk_python_cfs-3.1.189/tencentcloud_sdk_python_cfs.egg-info/requires.txt +0 -1
  11. {tencentcloud_sdk_python_cfs-3.1.189 → tencentcloud_sdk_python_cfs-3.1.208}/README.rst +0 -0
  12. {tencentcloud_sdk_python_cfs-3.1.189 → tencentcloud_sdk_python_cfs-3.1.208}/setup.cfg +0 -0
  13. {tencentcloud_sdk_python_cfs-3.1.189 → tencentcloud_sdk_python_cfs-3.1.208}/tencentcloud/cfs/__init__.py +0 -0
  14. {tencentcloud_sdk_python_cfs-3.1.189 → tencentcloud_sdk_python_cfs-3.1.208}/tencentcloud/cfs/v20190719/__init__.py +0 -0
  15. {tencentcloud_sdk_python_cfs-3.1.189 → tencentcloud_sdk_python_cfs-3.1.208}/tencentcloud_sdk_python_cfs.egg-info/SOURCES.txt +0 -0
  16. {tencentcloud_sdk_python_cfs-3.1.189 → tencentcloud_sdk_python_cfs-3.1.208}/tencentcloud_sdk_python_cfs.egg-info/dependency_links.txt +0 -0
  17. {tencentcloud_sdk_python_cfs-3.1.189 → tencentcloud_sdk_python_cfs-3.1.208}/tencentcloud_sdk_python_cfs.egg-info/top_level.txt +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: tencentcloud-sdk-python-cfs
3
- Version: 3.1.189
3
+ Version: 3.1.208
4
4
  Summary: Tencent Cloud Cfs SDK for Python
5
5
  Home-page: https://github.com/TencentCloud/tencentcloud-sdk-python
6
6
  Author: Tencent Cloud
@@ -15,7 +15,7 @@ Classifier: Programming Language :: Python :: 2.7
15
15
  Classifier: Programming Language :: Python :: 3
16
16
  Classifier: Programming Language :: Python :: 3.6
17
17
  Classifier: Programming Language :: Python :: 3.7
18
- Requires-Dist: tencentcloud-sdk-python-common<4.0.0,>=3.1.189
18
+ Requires-Dist: tencentcloud-sdk-python-common<4.0.0,>=3.1.208
19
19
 
20
20
  ============================
21
21
  Tencent Cloud SDK for Python
@@ -8,7 +8,7 @@ ROOT = os.path.dirname(__file__)
8
8
 
9
9
  setup(
10
10
  name='tencentcloud-sdk-python-cfs',
11
- install_requires=["tencentcloud-sdk-python-common>=3.1.189,<4.0.0"],
11
+ install_requires=["tencentcloud-sdk-python-common>=3.1.208,<4.0.0"],
12
12
 
13
13
  version=tencentcloud.__version__,
14
14
  description='Tencent Cloud Cfs SDK for Python',
@@ -14,4 +14,4 @@
14
14
  # limitations under the License.
15
15
 
16
16
 
17
- __version__ = '3.1.189'
17
+ __version__ = '3.1.208'
@@ -95,6 +95,29 @@ class CfsClient(AbstractClient):
95
95
  raise TencentCloudSDKException(type(e).__name__, str(e))
96
96
 
97
97
 
98
+ def CreateAutoDeletePolicy(self, request):
99
+ r"""为指定 CFS 文件系统创建一条数据自动删除策略
100
+
101
+ :param request: Request instance for CreateAutoDeletePolicy.
102
+ :type request: :class:`tencentcloud.cfs.v20190719.models.CreateAutoDeletePolicyRequest`
103
+ :rtype: :class:`tencentcloud.cfs.v20190719.models.CreateAutoDeletePolicyResponse`
104
+
105
+ """
106
+ try:
107
+ params = request._serialize()
108
+ headers = request.headers
109
+ body = self.call("CreateAutoDeletePolicy", params, headers=headers)
110
+ response = json.loads(body)
111
+ model = models.CreateAutoDeletePolicyResponse()
112
+ model._deserialize(response["Response"])
113
+ return model
114
+ except Exception as e:
115
+ if isinstance(e, TencentCloudSDKException):
116
+ raise
117
+ else:
118
+ raise TencentCloudSDKException(type(e).__name__, str(e))
119
+
120
+
98
121
  def CreateAutoSnapshotPolicy(self, request):
99
122
  r"""创建定期快照策略
100
123
 
@@ -348,6 +371,29 @@ class CfsClient(AbstractClient):
348
371
  raise TencentCloudSDKException(type(e).__name__, str(e))
349
372
 
350
373
 
374
+ def DeleteAutoDeletePolicy(self, request):
375
+ r"""删除指定自动删除策略
376
+
377
+ :param request: Request instance for DeleteAutoDeletePolicy.
378
+ :type request: :class:`tencentcloud.cfs.v20190719.models.DeleteAutoDeletePolicyRequest`
379
+ :rtype: :class:`tencentcloud.cfs.v20190719.models.DeleteAutoDeletePolicyResponse`
380
+
381
+ """
382
+ try:
383
+ params = request._serialize()
384
+ headers = request.headers
385
+ body = self.call("DeleteAutoDeletePolicy", params, headers=headers)
386
+ response = json.loads(body)
387
+ model = models.DeleteAutoDeletePolicyResponse()
388
+ model._deserialize(response["Response"])
389
+ return model
390
+ except Exception as e:
391
+ if isinstance(e, TencentCloudSDKException):
392
+ raise
393
+ else:
394
+ raise TencentCloudSDKException(type(e).__name__, str(e))
395
+
396
+
351
397
  def DeleteAutoSnapshotPolicy(self, request):
352
398
  r"""删除快照定期策略
353
399
 
@@ -580,6 +626,29 @@ class CfsClient(AbstractClient):
580
626
  raise TencentCloudSDKException(type(e).__name__, str(e))
581
627
 
582
628
 
629
+ def DescribeAutoDeletePolicies(self, request):
630
+ r"""查询数据自动删除策略列表
631
+
632
+ :param request: Request instance for DescribeAutoDeletePolicies.
633
+ :type request: :class:`tencentcloud.cfs.v20190719.models.DescribeAutoDeletePoliciesRequest`
634
+ :rtype: :class:`tencentcloud.cfs.v20190719.models.DescribeAutoDeletePoliciesResponse`
635
+
636
+ """
637
+ try:
638
+ params = request._serialize()
639
+ headers = request.headers
640
+ body = self.call("DescribeAutoDeletePolicies", params, headers=headers)
641
+ response = json.loads(body)
642
+ model = models.DescribeAutoDeletePoliciesResponse()
643
+ model._deserialize(response["Response"])
644
+ return model
645
+ except Exception as e:
646
+ if isinstance(e, TencentCloudSDKException):
647
+ raise
648
+ else:
649
+ raise TencentCloudSDKException(type(e).__name__, str(e))
650
+
651
+
583
652
  def DescribeAutoSnapshotPolicies(self, request):
584
653
  r"""查询文件系统快照定期策略列表信息
585
654
 
@@ -1043,6 +1112,29 @@ class CfsClient(AbstractClient):
1043
1112
  raise TencentCloudSDKException(type(e).__name__, str(e))
1044
1113
 
1045
1114
 
1115
+ def ModifyAutoDeletePolicy(self, request):
1116
+ r"""修改自动删除策略名称或清理路径
1117
+
1118
+ :param request: Request instance for ModifyAutoDeletePolicy.
1119
+ :type request: :class:`tencentcloud.cfs.v20190719.models.ModifyAutoDeletePolicyRequest`
1120
+ :rtype: :class:`tencentcloud.cfs.v20190719.models.ModifyAutoDeletePolicyResponse`
1121
+
1122
+ """
1123
+ try:
1124
+ params = request._serialize()
1125
+ headers = request.headers
1126
+ body = self.call("ModifyAutoDeletePolicy", params, headers=headers)
1127
+ response = json.loads(body)
1128
+ model = models.ModifyAutoDeletePolicyResponse()
1129
+ model._deserialize(response["Response"])
1130
+ return model
1131
+ except Exception as e:
1132
+ if isinstance(e, TencentCloudSDKException):
1133
+ raise
1134
+ else:
1135
+ raise TencentCloudSDKException(type(e).__name__, str(e))
1136
+
1137
+
1046
1138
  def ModifyDataFlow(self, request):
1047
1139
  r"""修改数据流动相关参数
1048
1140
 
@@ -79,6 +79,24 @@ class CfsClient(AbstractClient):
79
79
 
80
80
  return await self.call_and_deserialize(**kwargs)
81
81
 
82
+ async def CreateAutoDeletePolicy(
83
+ self,
84
+ request: models.CreateAutoDeletePolicyRequest,
85
+ opts: Dict = None,
86
+ ) -> models.CreateAutoDeletePolicyResponse:
87
+ """
88
+ 为指定 CFS 文件系统创建一条数据自动删除策略
89
+ """
90
+
91
+ kwargs = {}
92
+ kwargs["action"] = "CreateAutoDeletePolicy"
93
+ kwargs["params"] = request._serialize()
94
+ kwargs["resp_cls"] = models.CreateAutoDeletePolicyResponse
95
+ kwargs["headers"] = request.headers
96
+ kwargs["opts"] = opts or {}
97
+
98
+ return await self.call_and_deserialize(**kwargs)
99
+
82
100
  async def CreateAutoSnapshotPolicy(
83
101
  self,
84
102
  request: models.CreateAutoSnapshotPolicyRequest,
@@ -277,6 +295,24 @@ class CfsClient(AbstractClient):
277
295
 
278
296
  return await self.call_and_deserialize(**kwargs)
279
297
 
298
+ async def DeleteAutoDeletePolicy(
299
+ self,
300
+ request: models.DeleteAutoDeletePolicyRequest,
301
+ opts: Dict = None,
302
+ ) -> models.DeleteAutoDeletePolicyResponse:
303
+ """
304
+ 删除指定自动删除策略
305
+ """
306
+
307
+ kwargs = {}
308
+ kwargs["action"] = "DeleteAutoDeletePolicy"
309
+ kwargs["params"] = request._serialize()
310
+ kwargs["resp_cls"] = models.DeleteAutoDeletePolicyResponse
311
+ kwargs["headers"] = request.headers
312
+ kwargs["opts"] = opts or {}
313
+
314
+ return await self.call_and_deserialize(**kwargs)
315
+
280
316
  async def DeleteAutoSnapshotPolicy(
281
317
  self,
282
318
  request: models.DeleteAutoSnapshotPolicyRequest,
@@ -459,6 +495,24 @@ class CfsClient(AbstractClient):
459
495
 
460
496
  return await self.call_and_deserialize(**kwargs)
461
497
 
498
+ async def DescribeAutoDeletePolicies(
499
+ self,
500
+ request: models.DescribeAutoDeletePoliciesRequest,
501
+ opts: Dict = None,
502
+ ) -> models.DescribeAutoDeletePoliciesResponse:
503
+ """
504
+ 查询数据自动删除策略列表
505
+ """
506
+
507
+ kwargs = {}
508
+ kwargs["action"] = "DescribeAutoDeletePolicies"
509
+ kwargs["params"] = request._serialize()
510
+ kwargs["resp_cls"] = models.DescribeAutoDeletePoliciesResponse
511
+ kwargs["headers"] = request.headers
512
+ kwargs["opts"] = opts or {}
513
+
514
+ return await self.call_and_deserialize(**kwargs)
515
+
462
516
  async def DescribeAutoSnapshotPolicies(
463
517
  self,
464
518
  request: models.DescribeAutoSnapshotPoliciesRequest,
@@ -822,6 +876,24 @@ class CfsClient(AbstractClient):
822
876
 
823
877
  return await self.call_and_deserialize(**kwargs)
824
878
 
879
+ async def ModifyAutoDeletePolicy(
880
+ self,
881
+ request: models.ModifyAutoDeletePolicyRequest,
882
+ opts: Dict = None,
883
+ ) -> models.ModifyAutoDeletePolicyResponse:
884
+ """
885
+ 修改自动删除策略名称或清理路径
886
+ """
887
+
888
+ kwargs = {}
889
+ kwargs["action"] = "ModifyAutoDeletePolicy"
890
+ kwargs["params"] = request._serialize()
891
+ kwargs["resp_cls"] = models.ModifyAutoDeletePolicyResponse
892
+ kwargs["headers"] = request.headers
893
+ kwargs["opts"] = opts or {}
894
+
895
+ return await self.call_and_deserialize(**kwargs)
896
+
825
897
  async def ModifyDataFlow(
826
898
  self,
827
899
  request: models.ModifyDataFlowRequest,
@@ -32,6 +32,18 @@ FAILEDOPERATION = 'FailedOperation'
32
32
  # 调整频率超限
33
33
  FAILEDOPERATION_ADJUSTFREQUENCYLIMIT = 'FailedOperation.AdjustFrequencyLimit'
34
34
 
35
+ # 该文件系统已存在自动删除策略
36
+ FAILEDOPERATION_AUTODELETEPOLICYALREADYEXIST = 'FailedOperation.AutoDeletePolicyAlreadyExist'
37
+
38
+ # 自动删除策略已禁用
39
+ FAILEDOPERATION_AUTODELETEPOLICYDISABLED = 'FailedOperation.AutoDeletePolicyDisabled'
40
+
41
+ # 自动删除策略已启用
42
+ FAILEDOPERATION_AUTODELETEPOLICYENABLED = 'FailedOperation.AutoDeletePolicyEnabled'
43
+
44
+ # 自动删除策略处理中,请等待
45
+ FAILEDOPERATION_AUTODELETEPOLICYPROCESSING = 'FailedOperation.AutoDeletePolicyProcessing'
46
+
35
47
  # 文件系统绑定资源包失败。
36
48
  FAILEDOPERATION_BINDRESOURCEPKGFAILED = 'FailedOperation.BindResourcePkgFailed'
37
49
 
@@ -80,6 +92,12 @@ INTERNALERROR_TIMEOUT = 'InternalError.Timeout'
80
92
  # 参数错误。
81
93
  INVALIDPARAMETER = 'InvalidParameter'
82
94
 
95
+ # 路径格式非法(非绝对路径)
96
+ INVALIDPARAMETER_AUTODELETEPATHINVALID = 'InvalidParameter.AutoDeletePathInvalid'
97
+
98
+ # 路径必须以 /cfs/ 开头
99
+ INVALIDPARAMETER_AUTODELETEPATHPREFIXINVALID = 'InvalidParameter.AutoDeletePathPrefixInvalid'
100
+
83
101
  # 快照策略未找到。
84
102
  INVALIDPARAMETER_AUTOPOLICYNOTFOUND = 'InvalidParameter.AutoPolicyNotFound'
85
103
 
@@ -122,6 +140,12 @@ INVALIDPARAMETER_SNAPSHOTPOLICYNAMELIMITEXCEEDED = 'InvalidParameter.SnapshotPol
122
140
  # 参数取值错误。
123
141
  INVALIDPARAMETERVALUE = 'InvalidParameterValue'
124
142
 
143
+ # 路径数量超过 20 个上限
144
+ INVALIDPARAMETERVALUE_AUTODELETEPATHCOUNTEXCEED = 'InvalidParameterValue.AutoDeletePathCountExceed'
145
+
146
+ # 清理目录路径嵌套
147
+ INVALIDPARAMETERVALUE_AUTODELETEPATHNESTED = 'InvalidParameterValue.AutoDeletePathNested'
148
+
125
149
  # 自动扩容策略不存在
126
150
  INVALIDPARAMETERVALUE_AUTOPOLICYNOTFOUND = 'InvalidParameterValue.AutoPolicyNotFound'
127
151
 
@@ -497,6 +521,9 @@ RESOURCEINSUFFICIENT_TURBOSPECIALCAPACITYFILESYSTEMCOUNTLIMIT = 'ResourceInsuffi
497
521
  # 资源不存在。
498
522
  RESOURCENOTFOUND = 'ResourceNotFound'
499
523
 
524
+ # 自动删除策略不存在
525
+ RESOURCENOTFOUND_AUTODELETEPOLICYNOTEXIST = 'ResourceNotFound.AutoDeletePolicyNotExist'
526
+
500
527
  # ResourceNotFound.DataRetrievalNotFound
501
528
  RESOURCENOTFOUND_DATARETRIEVALNOTFOUND = 'ResourceNotFound.DataRetrievalNotFound'
502
529
 
@@ -533,6 +560,9 @@ UNAUTHORIZEDOPERATION_UNAUTHORIZEDOPERATION = 'UnauthorizedOperation.Unauthorize
533
560
  # 操作不支持。
534
561
  UNSUPPORTEDOPERATION = 'UnsupportedOperation'
535
562
 
563
+ # 文件系统类型不支持自动删除策略
564
+ UNSUPPORTEDOPERATION_AUTODELETEFSTYPENOTSUPPORTED = 'UnsupportedOperation.AutoDeleteFsTypeNotSupported'
565
+
536
566
  # 该可用区不支持基础网络。
537
567
  UNSUPPORTEDOPERATION_BASICNETINTERFACENOTSUPPORTED = 'UnsupportedOperation.BasicNetInterfaceNotSupported'
538
568
 
@@ -124,6 +124,162 @@ class ApplyPathLifecyclePolicyResponse(AbstractModel):
124
124
  self._RequestId = params.get("RequestId")
125
125
 
126
126
 
127
+ class AutoDeletePolicy(AbstractModel):
128
+ r"""自动删除策略配置信息
129
+
130
+ """
131
+
132
+ def __init__(self):
133
+ r"""
134
+ :param _PolicyId: <p>策略 ID</p>
135
+ :type PolicyId: str
136
+ :param _FileSystemId: <p>文件系统Id</p>
137
+ :type FileSystemId: str
138
+ :param _PolicyName: <p>自动清理策略名称</p>
139
+ :type PolicyName: str
140
+ :param _Paths: <p>待清理的路径</p>
141
+ :type Paths: list of str
142
+ :param _Status: <p>自动清理策略状态</p><p>枚举值:</p><ul><li>enabling: 启用中</li><li>enabled: 已启用</li><li>disabling: 禁用中</li><li>disabed: 已禁用</li><li>deleting: 删除中</li><li>failed: 失败</li><li>creating: 创建中</li><li>updating: 修改中</li></ul>
143
+ :type Status: str
144
+ :param _CreateTime: <p>清理策略创建时间</p><p>参数格式:YYYY-MM-DD hh:mm:ss</p>
145
+ :type CreateTime: str
146
+ :param _UpdateTime: <p>策略更新时间</p><p>参数格式:YYYY-MM-DD hh:mm:ss</p>
147
+ :type UpdateTime: str
148
+ :param _Region: <p>策略所属地域</p>
149
+ :type Region: str
150
+ :param _ErrMsg: <p>错误信息</p>
151
+ :type ErrMsg: str
152
+ """
153
+ self._PolicyId = None
154
+ self._FileSystemId = None
155
+ self._PolicyName = None
156
+ self._Paths = None
157
+ self._Status = None
158
+ self._CreateTime = None
159
+ self._UpdateTime = None
160
+ self._Region = None
161
+ self._ErrMsg = None
162
+
163
+ @property
164
+ def PolicyId(self):
165
+ r"""<p>策略 ID</p>
166
+ :rtype: str
167
+ """
168
+ return self._PolicyId
169
+
170
+ @PolicyId.setter
171
+ def PolicyId(self, PolicyId):
172
+ self._PolicyId = PolicyId
173
+
174
+ @property
175
+ def FileSystemId(self):
176
+ r"""<p>文件系统Id</p>
177
+ :rtype: str
178
+ """
179
+ return self._FileSystemId
180
+
181
+ @FileSystemId.setter
182
+ def FileSystemId(self, FileSystemId):
183
+ self._FileSystemId = FileSystemId
184
+
185
+ @property
186
+ def PolicyName(self):
187
+ r"""<p>自动清理策略名称</p>
188
+ :rtype: str
189
+ """
190
+ return self._PolicyName
191
+
192
+ @PolicyName.setter
193
+ def PolicyName(self, PolicyName):
194
+ self._PolicyName = PolicyName
195
+
196
+ @property
197
+ def Paths(self):
198
+ r"""<p>待清理的路径</p>
199
+ :rtype: list of str
200
+ """
201
+ return self._Paths
202
+
203
+ @Paths.setter
204
+ def Paths(self, Paths):
205
+ self._Paths = Paths
206
+
207
+ @property
208
+ def Status(self):
209
+ r"""<p>自动清理策略状态</p><p>枚举值:</p><ul><li>enabling: 启用中</li><li>enabled: 已启用</li><li>disabling: 禁用中</li><li>disabed: 已禁用</li><li>deleting: 删除中</li><li>failed: 失败</li><li>creating: 创建中</li><li>updating: 修改中</li></ul>
210
+ :rtype: str
211
+ """
212
+ return self._Status
213
+
214
+ @Status.setter
215
+ def Status(self, Status):
216
+ self._Status = Status
217
+
218
+ @property
219
+ def CreateTime(self):
220
+ r"""<p>清理策略创建时间</p><p>参数格式:YYYY-MM-DD hh:mm:ss</p>
221
+ :rtype: str
222
+ """
223
+ return self._CreateTime
224
+
225
+ @CreateTime.setter
226
+ def CreateTime(self, CreateTime):
227
+ self._CreateTime = CreateTime
228
+
229
+ @property
230
+ def UpdateTime(self):
231
+ r"""<p>策略更新时间</p><p>参数格式:YYYY-MM-DD hh:mm:ss</p>
232
+ :rtype: str
233
+ """
234
+ return self._UpdateTime
235
+
236
+ @UpdateTime.setter
237
+ def UpdateTime(self, UpdateTime):
238
+ self._UpdateTime = UpdateTime
239
+
240
+ @property
241
+ def Region(self):
242
+ r"""<p>策略所属地域</p>
243
+ :rtype: str
244
+ """
245
+ return self._Region
246
+
247
+ @Region.setter
248
+ def Region(self, Region):
249
+ self._Region = Region
250
+
251
+ @property
252
+ def ErrMsg(self):
253
+ r"""<p>错误信息</p>
254
+ :rtype: str
255
+ """
256
+ return self._ErrMsg
257
+
258
+ @ErrMsg.setter
259
+ def ErrMsg(self, ErrMsg):
260
+ self._ErrMsg = ErrMsg
261
+
262
+
263
+ def _deserialize(self, params):
264
+ self._PolicyId = params.get("PolicyId")
265
+ self._FileSystemId = params.get("FileSystemId")
266
+ self._PolicyName = params.get("PolicyName")
267
+ self._Paths = params.get("Paths")
268
+ self._Status = params.get("Status")
269
+ self._CreateTime = params.get("CreateTime")
270
+ self._UpdateTime = params.get("UpdateTime")
271
+ self._Region = params.get("Region")
272
+ self._ErrMsg = params.get("ErrMsg")
273
+ memeber_set = set(params.keys())
274
+ for name, value in vars(self).items():
275
+ property_name = name[1:]
276
+ if property_name in memeber_set:
277
+ memeber_set.remove(property_name)
278
+ if len(memeber_set) > 0:
279
+ warnings.warn("%s fileds are useless." % ",".join(memeber_set))
280
+
281
+
282
+
127
283
  class AutoScaleUpRule(AbstractModel):
128
284
  r"""自动扩容规则
129
285
 
@@ -1161,6 +1317,115 @@ class CreateAccessCertResponse(AbstractModel):
1161
1317
  self._RequestId = params.get("RequestId")
1162
1318
 
1163
1319
 
1320
+ class CreateAutoDeletePolicyRequest(AbstractModel):
1321
+ r"""CreateAutoDeletePolicy请求参数结构体
1322
+
1323
+ """
1324
+
1325
+ def __init__(self):
1326
+ r"""
1327
+ :param _FileSystemId: <p>文件系统 ID</p>
1328
+ :type FileSystemId: str
1329
+ :param _PolicyName: <p>自动清理策略名称</p>
1330
+ :type PolicyName: str
1331
+ :param _Paths: <p>自动清理策略路径列表</p>
1332
+ :type Paths: list of str
1333
+ """
1334
+ self._FileSystemId = None
1335
+ self._PolicyName = None
1336
+ self._Paths = None
1337
+
1338
+ @property
1339
+ def FileSystemId(self):
1340
+ r"""<p>文件系统 ID</p>
1341
+ :rtype: str
1342
+ """
1343
+ return self._FileSystemId
1344
+
1345
+ @FileSystemId.setter
1346
+ def FileSystemId(self, FileSystemId):
1347
+ self._FileSystemId = FileSystemId
1348
+
1349
+ @property
1350
+ def PolicyName(self):
1351
+ r"""<p>自动清理策略名称</p>
1352
+ :rtype: str
1353
+ """
1354
+ return self._PolicyName
1355
+
1356
+ @PolicyName.setter
1357
+ def PolicyName(self, PolicyName):
1358
+ self._PolicyName = PolicyName
1359
+
1360
+ @property
1361
+ def Paths(self):
1362
+ r"""<p>自动清理策略路径列表</p>
1363
+ :rtype: list of str
1364
+ """
1365
+ return self._Paths
1366
+
1367
+ @Paths.setter
1368
+ def Paths(self, Paths):
1369
+ self._Paths = Paths
1370
+
1371
+
1372
+ def _deserialize(self, params):
1373
+ self._FileSystemId = params.get("FileSystemId")
1374
+ self._PolicyName = params.get("PolicyName")
1375
+ self._Paths = params.get("Paths")
1376
+ memeber_set = set(params.keys())
1377
+ for name, value in vars(self).items():
1378
+ property_name = name[1:]
1379
+ if property_name in memeber_set:
1380
+ memeber_set.remove(property_name)
1381
+ if len(memeber_set) > 0:
1382
+ warnings.warn("%s fileds are useless." % ",".join(memeber_set))
1383
+
1384
+
1385
+
1386
+ class CreateAutoDeletePolicyResponse(AbstractModel):
1387
+ r"""CreateAutoDeletePolicy返回参数结构体
1388
+
1389
+ """
1390
+
1391
+ def __init__(self):
1392
+ r"""
1393
+ :param _PolicyId: <p>自动清理策略ID</p>
1394
+ :type PolicyId: str
1395
+ :param _RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
1396
+ :type RequestId: str
1397
+ """
1398
+ self._PolicyId = None
1399
+ self._RequestId = None
1400
+
1401
+ @property
1402
+ def PolicyId(self):
1403
+ r"""<p>自动清理策略ID</p>
1404
+ :rtype: str
1405
+ """
1406
+ return self._PolicyId
1407
+
1408
+ @PolicyId.setter
1409
+ def PolicyId(self, PolicyId):
1410
+ self._PolicyId = PolicyId
1411
+
1412
+ @property
1413
+ def RequestId(self):
1414
+ r"""唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
1415
+ :rtype: str
1416
+ """
1417
+ return self._RequestId
1418
+
1419
+ @RequestId.setter
1420
+ def RequestId(self, RequestId):
1421
+ self._RequestId = RequestId
1422
+
1423
+
1424
+ def _deserialize(self, params):
1425
+ self._PolicyId = params.get("PolicyId")
1426
+ self._RequestId = params.get("RequestId")
1427
+
1428
+
1164
1429
  class CreateAutoSnapshotPolicyRequest(AbstractModel):
1165
1430
  r"""CreateAutoSnapshotPolicy请求参数结构体
1166
1431
 
@@ -4028,6 +4293,85 @@ class DataRetrievalTaskInfo(AbstractModel):
4028
4293
 
4029
4294
 
4030
4295
 
4296
+ class DeleteAutoDeletePolicyRequest(AbstractModel):
4297
+ r"""DeleteAutoDeletePolicy请求参数结构体
4298
+
4299
+ """
4300
+
4301
+ def __init__(self):
4302
+ r"""
4303
+ :param _FileSystemId: <p>文件系统 ID</p>
4304
+ :type FileSystemId: str
4305
+ :param _PolicyId: <p>自动清理策略ID</p>
4306
+ :type PolicyId: str
4307
+ """
4308
+ self._FileSystemId = None
4309
+ self._PolicyId = None
4310
+
4311
+ @property
4312
+ def FileSystemId(self):
4313
+ r"""<p>文件系统 ID</p>
4314
+ :rtype: str
4315
+ """
4316
+ return self._FileSystemId
4317
+
4318
+ @FileSystemId.setter
4319
+ def FileSystemId(self, FileSystemId):
4320
+ self._FileSystemId = FileSystemId
4321
+
4322
+ @property
4323
+ def PolicyId(self):
4324
+ r"""<p>自动清理策略ID</p>
4325
+ :rtype: str
4326
+ """
4327
+ return self._PolicyId
4328
+
4329
+ @PolicyId.setter
4330
+ def PolicyId(self, PolicyId):
4331
+ self._PolicyId = PolicyId
4332
+
4333
+
4334
+ def _deserialize(self, params):
4335
+ self._FileSystemId = params.get("FileSystemId")
4336
+ self._PolicyId = params.get("PolicyId")
4337
+ memeber_set = set(params.keys())
4338
+ for name, value in vars(self).items():
4339
+ property_name = name[1:]
4340
+ if property_name in memeber_set:
4341
+ memeber_set.remove(property_name)
4342
+ if len(memeber_set) > 0:
4343
+ warnings.warn("%s fileds are useless." % ",".join(memeber_set))
4344
+
4345
+
4346
+
4347
+ class DeleteAutoDeletePolicyResponse(AbstractModel):
4348
+ r"""DeleteAutoDeletePolicy返回参数结构体
4349
+
4350
+ """
4351
+
4352
+ def __init__(self):
4353
+ r"""
4354
+ :param _RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
4355
+ :type RequestId: str
4356
+ """
4357
+ self._RequestId = None
4358
+
4359
+ @property
4360
+ def RequestId(self):
4361
+ r"""唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
4362
+ :rtype: str
4363
+ """
4364
+ return self._RequestId
4365
+
4366
+ @RequestId.setter
4367
+ def RequestId(self, RequestId):
4368
+ self._RequestId = RequestId
4369
+
4370
+
4371
+ def _deserialize(self, params):
4372
+ self._RequestId = params.get("RequestId")
4373
+
4374
+
4031
4375
  class DeleteAutoSnapshotPolicyRequest(AbstractModel):
4032
4376
  r"""DeleteAutoSnapshotPolicy请求参数结构体
4033
4377
 
@@ -4850,6 +5194,135 @@ class DeleteUserQuotaResponse(AbstractModel):
4850
5194
  self._RequestId = params.get("RequestId")
4851
5195
 
4852
5196
 
5197
+ class DescribeAutoDeletePoliciesRequest(AbstractModel):
5198
+ r"""DescribeAutoDeletePolicies请求参数结构体
5199
+
5200
+ """
5201
+
5202
+ def __init__(self):
5203
+ r"""
5204
+ :param _FileSystemId: <p>文件系统 ID</p>
5205
+ :type FileSystemId: str
5206
+ :param _Offset: <p>分页偏移量</p>
5207
+ :type Offset: int
5208
+ :param _Limit: <p>分页大小</p>
5209
+ :type Limit: int
5210
+ """
5211
+ self._FileSystemId = None
5212
+ self._Offset = None
5213
+ self._Limit = None
5214
+
5215
+ @property
5216
+ def FileSystemId(self):
5217
+ r"""<p>文件系统 ID</p>
5218
+ :rtype: str
5219
+ """
5220
+ return self._FileSystemId
5221
+
5222
+ @FileSystemId.setter
5223
+ def FileSystemId(self, FileSystemId):
5224
+ self._FileSystemId = FileSystemId
5225
+
5226
+ @property
5227
+ def Offset(self):
5228
+ r"""<p>分页偏移量</p>
5229
+ :rtype: int
5230
+ """
5231
+ return self._Offset
5232
+
5233
+ @Offset.setter
5234
+ def Offset(self, Offset):
5235
+ self._Offset = Offset
5236
+
5237
+ @property
5238
+ def Limit(self):
5239
+ r"""<p>分页大小</p>
5240
+ :rtype: int
5241
+ """
5242
+ return self._Limit
5243
+
5244
+ @Limit.setter
5245
+ def Limit(self, Limit):
5246
+ self._Limit = Limit
5247
+
5248
+
5249
+ def _deserialize(self, params):
5250
+ self._FileSystemId = params.get("FileSystemId")
5251
+ self._Offset = params.get("Offset")
5252
+ self._Limit = params.get("Limit")
5253
+ memeber_set = set(params.keys())
5254
+ for name, value in vars(self).items():
5255
+ property_name = name[1:]
5256
+ if property_name in memeber_set:
5257
+ memeber_set.remove(property_name)
5258
+ if len(memeber_set) > 0:
5259
+ warnings.warn("%s fileds are useless." % ",".join(memeber_set))
5260
+
5261
+
5262
+
5263
+ class DescribeAutoDeletePoliciesResponse(AbstractModel):
5264
+ r"""DescribeAutoDeletePolicies返回参数结构体
5265
+
5266
+ """
5267
+
5268
+ def __init__(self):
5269
+ r"""
5270
+ :param _Policies: <p>自动清理策略列表</p>
5271
+ :type Policies: list of AutoDeletePolicy
5272
+ :param _TotalCount: <p>总数</p>
5273
+ :type TotalCount: int
5274
+ :param _RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
5275
+ :type RequestId: str
5276
+ """
5277
+ self._Policies = None
5278
+ self._TotalCount = None
5279
+ self._RequestId = None
5280
+
5281
+ @property
5282
+ def Policies(self):
5283
+ r"""<p>自动清理策略列表</p>
5284
+ :rtype: list of AutoDeletePolicy
5285
+ """
5286
+ return self._Policies
5287
+
5288
+ @Policies.setter
5289
+ def Policies(self, Policies):
5290
+ self._Policies = Policies
5291
+
5292
+ @property
5293
+ def TotalCount(self):
5294
+ r"""<p>总数</p>
5295
+ :rtype: int
5296
+ """
5297
+ return self._TotalCount
5298
+
5299
+ @TotalCount.setter
5300
+ def TotalCount(self, TotalCount):
5301
+ self._TotalCount = TotalCount
5302
+
5303
+ @property
5304
+ def RequestId(self):
5305
+ r"""唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
5306
+ :rtype: str
5307
+ """
5308
+ return self._RequestId
5309
+
5310
+ @RequestId.setter
5311
+ def RequestId(self, RequestId):
5312
+ self._RequestId = RequestId
5313
+
5314
+
5315
+ def _deserialize(self, params):
5316
+ if params.get("Policies") is not None:
5317
+ self._Policies = []
5318
+ for item in params.get("Policies"):
5319
+ obj = AutoDeletePolicy()
5320
+ obj._deserialize(item)
5321
+ self._Policies.append(obj)
5322
+ self._TotalCount = params.get("TotalCount")
5323
+ self._RequestId = params.get("RequestId")
5324
+
5325
+
4853
5326
  class DescribeAutoSnapshotPoliciesRequest(AbstractModel):
4854
5327
  r"""DescribeAutoSnapshotPolicies请求参数结构体
4855
5328
 
@@ -9548,6 +10021,130 @@ class MigrationTaskInfo(AbstractModel):
9548
10021
 
9549
10022
 
9550
10023
 
10024
+ class ModifyAutoDeletePolicyRequest(AbstractModel):
10025
+ r"""ModifyAutoDeletePolicy请求参数结构体
10026
+
10027
+ """
10028
+
10029
+ def __init__(self):
10030
+ r"""
10031
+ :param _FileSystemId: <p>文件系统 ID</p>
10032
+ :type FileSystemId: str
10033
+ :param _PolicyId: <p>自动清理策略 ID</p>
10034
+ :type PolicyId: str
10035
+ :param _Paths: <p>自动清理路径列表</p>
10036
+ :type Paths: list of str
10037
+ :param _PolicyName: <p>自动清理策略名称</p>
10038
+ :type PolicyName: str
10039
+ :param _Status: <p>策略状态</p><p>枚举值:</p><ul><li>enabled: 启用</li><li>disabled: 禁用</li></ul>
10040
+ :type Status: str
10041
+ """
10042
+ self._FileSystemId = None
10043
+ self._PolicyId = None
10044
+ self._Paths = None
10045
+ self._PolicyName = None
10046
+ self._Status = None
10047
+
10048
+ @property
10049
+ def FileSystemId(self):
10050
+ r"""<p>文件系统 ID</p>
10051
+ :rtype: str
10052
+ """
10053
+ return self._FileSystemId
10054
+
10055
+ @FileSystemId.setter
10056
+ def FileSystemId(self, FileSystemId):
10057
+ self._FileSystemId = FileSystemId
10058
+
10059
+ @property
10060
+ def PolicyId(self):
10061
+ r"""<p>自动清理策略 ID</p>
10062
+ :rtype: str
10063
+ """
10064
+ return self._PolicyId
10065
+
10066
+ @PolicyId.setter
10067
+ def PolicyId(self, PolicyId):
10068
+ self._PolicyId = PolicyId
10069
+
10070
+ @property
10071
+ def Paths(self):
10072
+ r"""<p>自动清理路径列表</p>
10073
+ :rtype: list of str
10074
+ """
10075
+ return self._Paths
10076
+
10077
+ @Paths.setter
10078
+ def Paths(self, Paths):
10079
+ self._Paths = Paths
10080
+
10081
+ @property
10082
+ def PolicyName(self):
10083
+ r"""<p>自动清理策略名称</p>
10084
+ :rtype: str
10085
+ """
10086
+ return self._PolicyName
10087
+
10088
+ @PolicyName.setter
10089
+ def PolicyName(self, PolicyName):
10090
+ self._PolicyName = PolicyName
10091
+
10092
+ @property
10093
+ def Status(self):
10094
+ r"""<p>策略状态</p><p>枚举值:</p><ul><li>enabled: 启用</li><li>disabled: 禁用</li></ul>
10095
+ :rtype: str
10096
+ """
10097
+ return self._Status
10098
+
10099
+ @Status.setter
10100
+ def Status(self, Status):
10101
+ self._Status = Status
10102
+
10103
+
10104
+ def _deserialize(self, params):
10105
+ self._FileSystemId = params.get("FileSystemId")
10106
+ self._PolicyId = params.get("PolicyId")
10107
+ self._Paths = params.get("Paths")
10108
+ self._PolicyName = params.get("PolicyName")
10109
+ self._Status = params.get("Status")
10110
+ memeber_set = set(params.keys())
10111
+ for name, value in vars(self).items():
10112
+ property_name = name[1:]
10113
+ if property_name in memeber_set:
10114
+ memeber_set.remove(property_name)
10115
+ if len(memeber_set) > 0:
10116
+ warnings.warn("%s fileds are useless." % ",".join(memeber_set))
10117
+
10118
+
10119
+
10120
+ class ModifyAutoDeletePolicyResponse(AbstractModel):
10121
+ r"""ModifyAutoDeletePolicy返回参数结构体
10122
+
10123
+ """
10124
+
10125
+ def __init__(self):
10126
+ r"""
10127
+ :param _RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
10128
+ :type RequestId: str
10129
+ """
10130
+ self._RequestId = None
10131
+
10132
+ @property
10133
+ def RequestId(self):
10134
+ r"""唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
10135
+ :rtype: str
10136
+ """
10137
+ return self._RequestId
10138
+
10139
+ @RequestId.setter
10140
+ def RequestId(self, RequestId):
10141
+ self._RequestId = RequestId
10142
+
10143
+
10144
+ def _deserialize(self, params):
10145
+ self._RequestId = params.get("RequestId")
10146
+
10147
+
9551
10148
  class ModifyDataFlowRequest(AbstractModel):
9552
10149
  r"""ModifyDataFlow请求参数结构体
9553
10150
 
@@ -11281,6 +11878,8 @@ class SnapshotInfo(AbstractModel):
11281
11878
  :param _SnapshotTime: <p>实际快照时间,反映快照对应文件系统某个时刻的数据。</p>
11282
11879
  注意:此字段可能返回 null,表示取不到有效值。
11283
11880
  :type SnapshotTime: str
11881
+ :param _FinishTime: <p>快照完成时间</p>
11882
+ :type FinishTime: str
11284
11883
  """
11285
11884
  self._CreationTime = None
11286
11885
  self._SnapshotName = None
@@ -11297,6 +11896,7 @@ class SnapshotInfo(AbstractModel):
11297
11896
  self._Tags = None
11298
11897
  self._SnapshotType = None
11299
11898
  self._SnapshotTime = None
11899
+ self._FinishTime = None
11300
11900
 
11301
11901
  @property
11302
11902
  def CreationTime(self):
@@ -11465,6 +12065,17 @@ class SnapshotInfo(AbstractModel):
11465
12065
  def SnapshotTime(self, SnapshotTime):
11466
12066
  self._SnapshotTime = SnapshotTime
11467
12067
 
12068
+ @property
12069
+ def FinishTime(self):
12070
+ r"""<p>快照完成时间</p>
12071
+ :rtype: str
12072
+ """
12073
+ return self._FinishTime
12074
+
12075
+ @FinishTime.setter
12076
+ def FinishTime(self, FinishTime):
12077
+ self._FinishTime = FinishTime
12078
+
11468
12079
 
11469
12080
  def _deserialize(self, params):
11470
12081
  self._CreationTime = params.get("CreationTime")
@@ -11487,6 +12098,7 @@ class SnapshotInfo(AbstractModel):
11487
12098
  self._Tags.append(obj)
11488
12099
  self._SnapshotType = params.get("SnapshotType")
11489
12100
  self._SnapshotTime = params.get("SnapshotTime")
12101
+ self._FinishTime = params.get("FinishTime")
11490
12102
  memeber_set = set(params.keys())
11491
12103
  for name, value in vars(self).items():
11492
12104
  property_name = name[1:]
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: tencentcloud-sdk-python-cfs
3
- Version: 3.1.189
3
+ Version: 3.1.208
4
4
  Summary: Tencent Cloud Cfs SDK for Python
5
5
  Home-page: https://github.com/TencentCloud/tencentcloud-sdk-python
6
6
  Author: Tencent Cloud
@@ -15,7 +15,7 @@ Classifier: Programming Language :: Python :: 2.7
15
15
  Classifier: Programming Language :: Python :: 3
16
16
  Classifier: Programming Language :: Python :: 3.6
17
17
  Classifier: Programming Language :: Python :: 3.7
18
- Requires-Dist: tencentcloud-sdk-python-common<4.0.0,>=3.1.189
18
+ Requires-Dist: tencentcloud-sdk-python-common<4.0.0,>=3.1.208
19
19
 
20
20
  ============================
21
21
  Tencent Cloud SDK for Python
@@ -0,0 +1 @@
1
+ tencentcloud-sdk-python-common<4.0.0,>=3.1.208
@@ -1 +0,0 @@
1
- tencentcloud-sdk-python-common<4.0.0,>=3.1.189