tencentcloud-sdk-python-cfs 3.0.873__py2.py3-none-any.whl → 3.0.875__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.
- tencentcloud/__init__.py +1 -1
- tencentcloud/cfs/v20190719/cfs_client.py +120 -0
- tencentcloud/cfs/v20190719/errorcodes.py +9 -0
- tencentcloud/cfs/v20190719/models.py +500 -0
- {tencentcloud_sdk_python_cfs-3.0.873.dist-info → tencentcloud_sdk_python_cfs-3.0.875.dist-info}/METADATA +1 -1
- tencentcloud_sdk_python_cfs-3.0.875.dist-info/RECORD +10 -0
- tencentcloud_sdk_python_cfs-3.0.873.dist-info/RECORD +0 -10
- {tencentcloud_sdk_python_cfs-3.0.873.dist-info → tencentcloud_sdk_python_cfs-3.0.875.dist-info}/WHEEL +0 -0
- {tencentcloud_sdk_python_cfs-3.0.873.dist-info → tencentcloud_sdk_python_cfs-3.0.875.dist-info}/top_level.txt +0 -0
tencentcloud/__init__.py
CHANGED
|
@@ -164,6 +164,30 @@ class CfsClient(AbstractClient):
|
|
|
164
164
|
raise TencentCloudSDKException(e.message, e.message)
|
|
165
165
|
|
|
166
166
|
|
|
167
|
+
def CreateMigrationTask(self, request):
|
|
168
|
+
"""用于创建迁移任务。
|
|
169
|
+
此接口需提交工单,开启白名单之后才能使用。
|
|
170
|
+
|
|
171
|
+
:param request: Request instance for CreateMigrationTask.
|
|
172
|
+
:type request: :class:`tencentcloud.cfs.v20190719.models.CreateMigrationTaskRequest`
|
|
173
|
+
:rtype: :class:`tencentcloud.cfs.v20190719.models.CreateMigrationTaskResponse`
|
|
174
|
+
|
|
175
|
+
"""
|
|
176
|
+
try:
|
|
177
|
+
params = request._serialize()
|
|
178
|
+
headers = request.headers
|
|
179
|
+
body = self.call("CreateMigrationTask", params, headers=headers)
|
|
180
|
+
response = json.loads(body)
|
|
181
|
+
model = models.CreateMigrationTaskResponse()
|
|
182
|
+
model._deserialize(response["Response"])
|
|
183
|
+
return model
|
|
184
|
+
except Exception as e:
|
|
185
|
+
if isinstance(e, TencentCloudSDKException):
|
|
186
|
+
raise
|
|
187
|
+
else:
|
|
188
|
+
raise TencentCloudSDKException(e.message, e.message)
|
|
189
|
+
|
|
190
|
+
|
|
167
191
|
def DeleteAutoSnapshotPolicy(self, request):
|
|
168
192
|
"""删除快照定期策略
|
|
169
193
|
|
|
@@ -279,6 +303,30 @@ class CfsClient(AbstractClient):
|
|
|
279
303
|
raise TencentCloudSDKException(e.message, e.message)
|
|
280
304
|
|
|
281
305
|
|
|
306
|
+
def DeleteMigrationTask(self, request):
|
|
307
|
+
"""用于删除迁移任务。
|
|
308
|
+
此接口需提交工单,开启白名单之后才能使用。
|
|
309
|
+
|
|
310
|
+
:param request: Request instance for DeleteMigrationTask.
|
|
311
|
+
:type request: :class:`tencentcloud.cfs.v20190719.models.DeleteMigrationTaskRequest`
|
|
312
|
+
:rtype: :class:`tencentcloud.cfs.v20190719.models.DeleteMigrationTaskResponse`
|
|
313
|
+
|
|
314
|
+
"""
|
|
315
|
+
try:
|
|
316
|
+
params = request._serialize()
|
|
317
|
+
headers = request.headers
|
|
318
|
+
body = self.call("DeleteMigrationTask", params, headers=headers)
|
|
319
|
+
response = json.loads(body)
|
|
320
|
+
model = models.DeleteMigrationTaskResponse()
|
|
321
|
+
model._deserialize(response["Response"])
|
|
322
|
+
return model
|
|
323
|
+
except Exception as e:
|
|
324
|
+
if isinstance(e, TencentCloudSDKException):
|
|
325
|
+
raise
|
|
326
|
+
else:
|
|
327
|
+
raise TencentCloudSDKException(e.message, e.message)
|
|
328
|
+
|
|
329
|
+
|
|
282
330
|
def DeleteMountTarget(self, request):
|
|
283
331
|
"""本接口(DeleteMountTarget)用于删除挂载点
|
|
284
332
|
|
|
@@ -371,6 +419,30 @@ class CfsClient(AbstractClient):
|
|
|
371
419
|
raise TencentCloudSDKException(e.message, e.message)
|
|
372
420
|
|
|
373
421
|
|
|
422
|
+
def DescribeBucketList(self, request):
|
|
423
|
+
"""用于获取数据源桶列表。
|
|
424
|
+
此接口需提交工单,开启白名单之后才能使用。
|
|
425
|
+
|
|
426
|
+
:param request: Request instance for DescribeBucketList.
|
|
427
|
+
:type request: :class:`tencentcloud.cfs.v20190719.models.DescribeBucketListRequest`
|
|
428
|
+
:rtype: :class:`tencentcloud.cfs.v20190719.models.DescribeBucketListResponse`
|
|
429
|
+
|
|
430
|
+
"""
|
|
431
|
+
try:
|
|
432
|
+
params = request._serialize()
|
|
433
|
+
headers = request.headers
|
|
434
|
+
body = self.call("DescribeBucketList", params, headers=headers)
|
|
435
|
+
response = json.loads(body)
|
|
436
|
+
model = models.DescribeBucketListResponse()
|
|
437
|
+
model._deserialize(response["Response"])
|
|
438
|
+
return model
|
|
439
|
+
except Exception as e:
|
|
440
|
+
if isinstance(e, TencentCloudSDKException):
|
|
441
|
+
raise
|
|
442
|
+
else:
|
|
443
|
+
raise TencentCloudSDKException(e.message, e.message)
|
|
444
|
+
|
|
445
|
+
|
|
374
446
|
def DescribeCfsFileSystemClients(self, request):
|
|
375
447
|
"""查询挂载该文件系统的客户端。此功能需要客户端安装CFS监控插件。
|
|
376
448
|
|
|
@@ -532,6 +604,30 @@ class CfsClient(AbstractClient):
|
|
|
532
604
|
raise TencentCloudSDKException(e.message, e.message)
|
|
533
605
|
|
|
534
606
|
|
|
607
|
+
def DescribeMigrationTasks(self, request):
|
|
608
|
+
"""用于获取迁移任务列表。
|
|
609
|
+
此接口需提交工单,开启白名单之后才能使用。
|
|
610
|
+
|
|
611
|
+
:param request: Request instance for DescribeMigrationTasks.
|
|
612
|
+
:type request: :class:`tencentcloud.cfs.v20190719.models.DescribeMigrationTasksRequest`
|
|
613
|
+
:rtype: :class:`tencentcloud.cfs.v20190719.models.DescribeMigrationTasksResponse`
|
|
614
|
+
|
|
615
|
+
"""
|
|
616
|
+
try:
|
|
617
|
+
params = request._serialize()
|
|
618
|
+
headers = request.headers
|
|
619
|
+
body = self.call("DescribeMigrationTasks", params, headers=headers)
|
|
620
|
+
response = json.loads(body)
|
|
621
|
+
model = models.DescribeMigrationTasksResponse()
|
|
622
|
+
model._deserialize(response["Response"])
|
|
623
|
+
return model
|
|
624
|
+
except Exception as e:
|
|
625
|
+
if isinstance(e, TencentCloudSDKException):
|
|
626
|
+
raise
|
|
627
|
+
else:
|
|
628
|
+
raise TencentCloudSDKException(e.message, e.message)
|
|
629
|
+
|
|
630
|
+
|
|
535
631
|
def DescribeMountTargets(self, request):
|
|
536
632
|
"""本接口(DescribeMountTargets)用于查询文件系统挂载点信息
|
|
537
633
|
|
|
@@ -647,6 +743,30 @@ class CfsClient(AbstractClient):
|
|
|
647
743
|
raise TencentCloudSDKException(e.message, e.message)
|
|
648
744
|
|
|
649
745
|
|
|
746
|
+
def StopMigrationTask(self, request):
|
|
747
|
+
"""用于终止迁移任务。
|
|
748
|
+
此接口需提交工单,开启白名单之后才能使用。
|
|
749
|
+
|
|
750
|
+
:param request: Request instance for StopMigrationTask.
|
|
751
|
+
:type request: :class:`tencentcloud.cfs.v20190719.models.StopMigrationTaskRequest`
|
|
752
|
+
:rtype: :class:`tencentcloud.cfs.v20190719.models.StopMigrationTaskResponse`
|
|
753
|
+
|
|
754
|
+
"""
|
|
755
|
+
try:
|
|
756
|
+
params = request._serialize()
|
|
757
|
+
headers = request.headers
|
|
758
|
+
body = self.call("StopMigrationTask", params, headers=headers)
|
|
759
|
+
response = json.loads(body)
|
|
760
|
+
model = models.StopMigrationTaskResponse()
|
|
761
|
+
model._deserialize(response["Response"])
|
|
762
|
+
return model
|
|
763
|
+
except Exception as e:
|
|
764
|
+
if isinstance(e, TencentCloudSDKException):
|
|
765
|
+
raise
|
|
766
|
+
else:
|
|
767
|
+
raise TencentCloudSDKException(e.message, e.message)
|
|
768
|
+
|
|
769
|
+
|
|
650
770
|
def UnbindAutoSnapshotPolicy(self, request):
|
|
651
771
|
"""解除文件系统绑定的快照策略
|
|
652
772
|
|
|
@@ -284,6 +284,15 @@ INVALIDPARAMETERVALUE_UNAVAILABLEZONE = 'InvalidParameterValue.UnavailableZone'
|
|
|
284
284
|
# ZoneId和Region不匹配。
|
|
285
285
|
INVALIDPARAMETERVALUE_ZONEIDREGIONNOTMATCH = 'InvalidParameterValue.ZoneIdRegionNotMatch'
|
|
286
286
|
|
|
287
|
+
# 缺少参数错误。
|
|
288
|
+
MISSINGPARAMETER = 'MissingParameter'
|
|
289
|
+
|
|
290
|
+
# 操作被拒绝。
|
|
291
|
+
OPERATIONDENIED = 'OperationDenied'
|
|
292
|
+
|
|
293
|
+
# 资源被占用。
|
|
294
|
+
RESOURCEINUSE = 'ResourceInUse'
|
|
295
|
+
|
|
287
296
|
# 文件系统数量达到上限。
|
|
288
297
|
RESOURCEINSUFFICIENT_FILESYSTEMLIMITEXCEEDED = 'ResourceInsufficient.FileSystemLimitExceeded'
|
|
289
298
|
|
|
@@ -309,6 +309,35 @@ class BindAutoSnapshotPolicyResponse(AbstractModel):
|
|
|
309
309
|
self.RequestId = params.get("RequestId")
|
|
310
310
|
|
|
311
311
|
|
|
312
|
+
class BucketInfo(AbstractModel):
|
|
313
|
+
"""对象存储桶
|
|
314
|
+
|
|
315
|
+
"""
|
|
316
|
+
|
|
317
|
+
def __init__(self):
|
|
318
|
+
r"""
|
|
319
|
+
:param Name: 桶名称
|
|
320
|
+
:type Name: str
|
|
321
|
+
:param Region: 桶所在地域
|
|
322
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
323
|
+
:type Region: str
|
|
324
|
+
"""
|
|
325
|
+
self.Name = None
|
|
326
|
+
self.Region = None
|
|
327
|
+
|
|
328
|
+
|
|
329
|
+
def _deserialize(self, params):
|
|
330
|
+
self.Name = params.get("Name")
|
|
331
|
+
self.Region = params.get("Region")
|
|
332
|
+
memeber_set = set(params.keys())
|
|
333
|
+
for name, value in vars(self).items():
|
|
334
|
+
if name in memeber_set:
|
|
335
|
+
memeber_set.remove(name)
|
|
336
|
+
if len(memeber_set) > 0:
|
|
337
|
+
warnings.warn("%s fileds are useless." % ",".join(memeber_set))
|
|
338
|
+
|
|
339
|
+
|
|
340
|
+
|
|
312
341
|
class CreateAutoSnapshotPolicyRequest(AbstractModel):
|
|
313
342
|
"""CreateAutoSnapshotPolicy请求参数结构体
|
|
314
343
|
|
|
@@ -708,6 +737,107 @@ class CreateCfsSnapshotResponse(AbstractModel):
|
|
|
708
737
|
self.RequestId = params.get("RequestId")
|
|
709
738
|
|
|
710
739
|
|
|
740
|
+
class CreateMigrationTaskRequest(AbstractModel):
|
|
741
|
+
"""CreateMigrationTask请求参数结构体
|
|
742
|
+
|
|
743
|
+
"""
|
|
744
|
+
|
|
745
|
+
def __init__(self):
|
|
746
|
+
r"""
|
|
747
|
+
:param TaskName: 迁移任务名称
|
|
748
|
+
:type TaskName: str
|
|
749
|
+
:param MigrationType: 迁移方式标志位,默认为0。0: 桶迁移;1: 清单迁移
|
|
750
|
+
:type MigrationType: int
|
|
751
|
+
:param MigrationMode: 迁移模式,默认为0。0: 全量迁移
|
|
752
|
+
:type MigrationMode: int
|
|
753
|
+
:param SrcSecretId: 数据源账号的SecretId
|
|
754
|
+
:type SrcSecretId: str
|
|
755
|
+
:param SrcSecretKey: 数据源账号的SecretKey
|
|
756
|
+
:type SrcSecretKey: str
|
|
757
|
+
:param FileSystemId: 文件系统实例Id
|
|
758
|
+
:type FileSystemId: str
|
|
759
|
+
:param FsPath: 文件系统路径
|
|
760
|
+
:type FsPath: str
|
|
761
|
+
:param CoverType: 同名文件迁移时覆盖策略,默认为0。0: 最后修改时间优先;1: 全覆盖;2: 不覆盖
|
|
762
|
+
:type CoverType: int
|
|
763
|
+
:param SrcService: 数据源服务商。COS: 腾讯云COS,OSS: 阿里云OSS,OBS:华为云OBS
|
|
764
|
+
:type SrcService: str
|
|
765
|
+
:param BucketName: 数据源桶名称,名称和地址至少有一个
|
|
766
|
+
:type BucketName: str
|
|
767
|
+
:param BucketRegion: 数据源桶地域
|
|
768
|
+
:type BucketRegion: str
|
|
769
|
+
:param BucketAddress: 数据源桶地址,名称和地址至少有一个
|
|
770
|
+
:type BucketAddress: str
|
|
771
|
+
:param ListAddress: 清单地址,迁移方式为清单迁移时必填
|
|
772
|
+
:type ListAddress: str
|
|
773
|
+
:param FsName: 目标文件系统名称
|
|
774
|
+
:type FsName: str
|
|
775
|
+
:param BucketPath: 源桶路径,默认为/
|
|
776
|
+
:type BucketPath: str
|
|
777
|
+
"""
|
|
778
|
+
self.TaskName = None
|
|
779
|
+
self.MigrationType = None
|
|
780
|
+
self.MigrationMode = None
|
|
781
|
+
self.SrcSecretId = None
|
|
782
|
+
self.SrcSecretKey = None
|
|
783
|
+
self.FileSystemId = None
|
|
784
|
+
self.FsPath = None
|
|
785
|
+
self.CoverType = None
|
|
786
|
+
self.SrcService = None
|
|
787
|
+
self.BucketName = None
|
|
788
|
+
self.BucketRegion = None
|
|
789
|
+
self.BucketAddress = None
|
|
790
|
+
self.ListAddress = None
|
|
791
|
+
self.FsName = None
|
|
792
|
+
self.BucketPath = None
|
|
793
|
+
|
|
794
|
+
|
|
795
|
+
def _deserialize(self, params):
|
|
796
|
+
self.TaskName = params.get("TaskName")
|
|
797
|
+
self.MigrationType = params.get("MigrationType")
|
|
798
|
+
self.MigrationMode = params.get("MigrationMode")
|
|
799
|
+
self.SrcSecretId = params.get("SrcSecretId")
|
|
800
|
+
self.SrcSecretKey = params.get("SrcSecretKey")
|
|
801
|
+
self.FileSystemId = params.get("FileSystemId")
|
|
802
|
+
self.FsPath = params.get("FsPath")
|
|
803
|
+
self.CoverType = params.get("CoverType")
|
|
804
|
+
self.SrcService = params.get("SrcService")
|
|
805
|
+
self.BucketName = params.get("BucketName")
|
|
806
|
+
self.BucketRegion = params.get("BucketRegion")
|
|
807
|
+
self.BucketAddress = params.get("BucketAddress")
|
|
808
|
+
self.ListAddress = params.get("ListAddress")
|
|
809
|
+
self.FsName = params.get("FsName")
|
|
810
|
+
self.BucketPath = params.get("BucketPath")
|
|
811
|
+
memeber_set = set(params.keys())
|
|
812
|
+
for name, value in vars(self).items():
|
|
813
|
+
if name in memeber_set:
|
|
814
|
+
memeber_set.remove(name)
|
|
815
|
+
if len(memeber_set) > 0:
|
|
816
|
+
warnings.warn("%s fileds are useless." % ",".join(memeber_set))
|
|
817
|
+
|
|
818
|
+
|
|
819
|
+
|
|
820
|
+
class CreateMigrationTaskResponse(AbstractModel):
|
|
821
|
+
"""CreateMigrationTask返回参数结构体
|
|
822
|
+
|
|
823
|
+
"""
|
|
824
|
+
|
|
825
|
+
def __init__(self):
|
|
826
|
+
r"""
|
|
827
|
+
:param TaskId: 迁移任务Id
|
|
828
|
+
:type TaskId: str
|
|
829
|
+
:param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
|
830
|
+
:type RequestId: str
|
|
831
|
+
"""
|
|
832
|
+
self.TaskId = None
|
|
833
|
+
self.RequestId = None
|
|
834
|
+
|
|
835
|
+
|
|
836
|
+
def _deserialize(self, params):
|
|
837
|
+
self.TaskId = params.get("TaskId")
|
|
838
|
+
self.RequestId = params.get("RequestId")
|
|
839
|
+
|
|
840
|
+
|
|
711
841
|
class DeleteAutoSnapshotPolicyRequest(AbstractModel):
|
|
712
842
|
"""DeleteAutoSnapshotPolicy请求参数结构体
|
|
713
843
|
|
|
@@ -945,6 +1075,47 @@ class DeleteCfsSnapshotResponse(AbstractModel):
|
|
|
945
1075
|
self.RequestId = params.get("RequestId")
|
|
946
1076
|
|
|
947
1077
|
|
|
1078
|
+
class DeleteMigrationTaskRequest(AbstractModel):
|
|
1079
|
+
"""DeleteMigrationTask请求参数结构体
|
|
1080
|
+
|
|
1081
|
+
"""
|
|
1082
|
+
|
|
1083
|
+
def __init__(self):
|
|
1084
|
+
r"""
|
|
1085
|
+
:param TaskId: 迁移任务ID
|
|
1086
|
+
:type TaskId: str
|
|
1087
|
+
"""
|
|
1088
|
+
self.TaskId = None
|
|
1089
|
+
|
|
1090
|
+
|
|
1091
|
+
def _deserialize(self, params):
|
|
1092
|
+
self.TaskId = params.get("TaskId")
|
|
1093
|
+
memeber_set = set(params.keys())
|
|
1094
|
+
for name, value in vars(self).items():
|
|
1095
|
+
if name in memeber_set:
|
|
1096
|
+
memeber_set.remove(name)
|
|
1097
|
+
if len(memeber_set) > 0:
|
|
1098
|
+
warnings.warn("%s fileds are useless." % ",".join(memeber_set))
|
|
1099
|
+
|
|
1100
|
+
|
|
1101
|
+
|
|
1102
|
+
class DeleteMigrationTaskResponse(AbstractModel):
|
|
1103
|
+
"""DeleteMigrationTask返回参数结构体
|
|
1104
|
+
|
|
1105
|
+
"""
|
|
1106
|
+
|
|
1107
|
+
def __init__(self):
|
|
1108
|
+
r"""
|
|
1109
|
+
:param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
|
1110
|
+
:type RequestId: str
|
|
1111
|
+
"""
|
|
1112
|
+
self.RequestId = None
|
|
1113
|
+
|
|
1114
|
+
|
|
1115
|
+
def _deserialize(self, params):
|
|
1116
|
+
self.RequestId = params.get("RequestId")
|
|
1117
|
+
|
|
1118
|
+
|
|
948
1119
|
class DeleteMountTargetRequest(AbstractModel):
|
|
949
1120
|
"""DeleteMountTarget请求参数结构体
|
|
950
1121
|
|
|
@@ -1150,6 +1321,69 @@ class DescribeAvailableZoneInfoResponse(AbstractModel):
|
|
|
1150
1321
|
self.RequestId = params.get("RequestId")
|
|
1151
1322
|
|
|
1152
1323
|
|
|
1324
|
+
class DescribeBucketListRequest(AbstractModel):
|
|
1325
|
+
"""DescribeBucketList请求参数结构体
|
|
1326
|
+
|
|
1327
|
+
"""
|
|
1328
|
+
|
|
1329
|
+
def __init__(self):
|
|
1330
|
+
r"""
|
|
1331
|
+
:param SrcService: 数据源服务商。COS: 腾讯云COS,OSS: 阿里云OSS,OBS:华为云OBS
|
|
1332
|
+
:type SrcService: str
|
|
1333
|
+
:param SrcSecretId: 数据源账号的SecretId
|
|
1334
|
+
|
|
1335
|
+
:type SrcSecretId: str
|
|
1336
|
+
:param SrcSecretKey: 数据源账号的SecretKey
|
|
1337
|
+
:type SrcSecretKey: str
|
|
1338
|
+
"""
|
|
1339
|
+
self.SrcService = None
|
|
1340
|
+
self.SrcSecretId = None
|
|
1341
|
+
self.SrcSecretKey = None
|
|
1342
|
+
|
|
1343
|
+
|
|
1344
|
+
def _deserialize(self, params):
|
|
1345
|
+
self.SrcService = params.get("SrcService")
|
|
1346
|
+
self.SrcSecretId = params.get("SrcSecretId")
|
|
1347
|
+
self.SrcSecretKey = params.get("SrcSecretKey")
|
|
1348
|
+
memeber_set = set(params.keys())
|
|
1349
|
+
for name, value in vars(self).items():
|
|
1350
|
+
if name in memeber_set:
|
|
1351
|
+
memeber_set.remove(name)
|
|
1352
|
+
if len(memeber_set) > 0:
|
|
1353
|
+
warnings.warn("%s fileds are useless." % ",".join(memeber_set))
|
|
1354
|
+
|
|
1355
|
+
|
|
1356
|
+
|
|
1357
|
+
class DescribeBucketListResponse(AbstractModel):
|
|
1358
|
+
"""DescribeBucketList返回参数结构体
|
|
1359
|
+
|
|
1360
|
+
"""
|
|
1361
|
+
|
|
1362
|
+
def __init__(self):
|
|
1363
|
+
r"""
|
|
1364
|
+
:param TotalCount: 桶的数量
|
|
1365
|
+
:type TotalCount: int
|
|
1366
|
+
:param BucketList: 桶列表
|
|
1367
|
+
:type BucketList: list of BucketInfo
|
|
1368
|
+
:param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
|
1369
|
+
:type RequestId: str
|
|
1370
|
+
"""
|
|
1371
|
+
self.TotalCount = None
|
|
1372
|
+
self.BucketList = None
|
|
1373
|
+
self.RequestId = None
|
|
1374
|
+
|
|
1375
|
+
|
|
1376
|
+
def _deserialize(self, params):
|
|
1377
|
+
self.TotalCount = params.get("TotalCount")
|
|
1378
|
+
if params.get("BucketList") is not None:
|
|
1379
|
+
self.BucketList = []
|
|
1380
|
+
for item in params.get("BucketList"):
|
|
1381
|
+
obj = BucketInfo()
|
|
1382
|
+
obj._deserialize(item)
|
|
1383
|
+
self.BucketList.append(obj)
|
|
1384
|
+
self.RequestId = params.get("RequestId")
|
|
1385
|
+
|
|
1386
|
+
|
|
1153
1387
|
class DescribeCfsFileSystemClientsRequest(AbstractModel):
|
|
1154
1388
|
"""DescribeCfsFileSystemClients请求参数结构体
|
|
1155
1389
|
|
|
@@ -1490,6 +1724,87 @@ class DescribeCfsSnapshotsResponse(AbstractModel):
|
|
|
1490
1724
|
self.RequestId = params.get("RequestId")
|
|
1491
1725
|
|
|
1492
1726
|
|
|
1727
|
+
class DescribeMigrationTasksRequest(AbstractModel):
|
|
1728
|
+
"""DescribeMigrationTasks请求参数结构体
|
|
1729
|
+
|
|
1730
|
+
"""
|
|
1731
|
+
|
|
1732
|
+
def __init__(self):
|
|
1733
|
+
r"""
|
|
1734
|
+
:param Offset: 分页的偏移量,默认值为0。
|
|
1735
|
+
:type Offset: int
|
|
1736
|
+
:param Limit: 分页单页限制数目,默认值为20,最大值100。
|
|
1737
|
+
:type Limit: int
|
|
1738
|
+
:param Filters: <br><li> taskId
|
|
1739
|
+
|
|
1740
|
+
按照【迁移任务id】进行过滤。
|
|
1741
|
+
类型:String
|
|
1742
|
+
|
|
1743
|
+
必选:否
|
|
1744
|
+
|
|
1745
|
+
<br><li> taskName
|
|
1746
|
+
|
|
1747
|
+
按照【迁移任务名字】进行模糊搜索过滤。
|
|
1748
|
+
类型:String
|
|
1749
|
+
|
|
1750
|
+
必选:否
|
|
1751
|
+
|
|
1752
|
+
每次请求的Filters的上限为10,Filter.Values的上限为100。
|
|
1753
|
+
:type Filters: list of Filter
|
|
1754
|
+
"""
|
|
1755
|
+
self.Offset = None
|
|
1756
|
+
self.Limit = None
|
|
1757
|
+
self.Filters = None
|
|
1758
|
+
|
|
1759
|
+
|
|
1760
|
+
def _deserialize(self, params):
|
|
1761
|
+
self.Offset = params.get("Offset")
|
|
1762
|
+
self.Limit = params.get("Limit")
|
|
1763
|
+
if params.get("Filters") is not None:
|
|
1764
|
+
self.Filters = []
|
|
1765
|
+
for item in params.get("Filters"):
|
|
1766
|
+
obj = Filter()
|
|
1767
|
+
obj._deserialize(item)
|
|
1768
|
+
self.Filters.append(obj)
|
|
1769
|
+
memeber_set = set(params.keys())
|
|
1770
|
+
for name, value in vars(self).items():
|
|
1771
|
+
if name in memeber_set:
|
|
1772
|
+
memeber_set.remove(name)
|
|
1773
|
+
if len(memeber_set) > 0:
|
|
1774
|
+
warnings.warn("%s fileds are useless." % ",".join(memeber_set))
|
|
1775
|
+
|
|
1776
|
+
|
|
1777
|
+
|
|
1778
|
+
class DescribeMigrationTasksResponse(AbstractModel):
|
|
1779
|
+
"""DescribeMigrationTasks返回参数结构体
|
|
1780
|
+
|
|
1781
|
+
"""
|
|
1782
|
+
|
|
1783
|
+
def __init__(self):
|
|
1784
|
+
r"""
|
|
1785
|
+
:param TotalCount: 迁移任务的数量
|
|
1786
|
+
:type TotalCount: int
|
|
1787
|
+
:param MigrationTasks: 迁移任务详情
|
|
1788
|
+
:type MigrationTasks: list of MigrationTaskInfo
|
|
1789
|
+
:param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
|
1790
|
+
:type RequestId: str
|
|
1791
|
+
"""
|
|
1792
|
+
self.TotalCount = None
|
|
1793
|
+
self.MigrationTasks = None
|
|
1794
|
+
self.RequestId = None
|
|
1795
|
+
|
|
1796
|
+
|
|
1797
|
+
def _deserialize(self, params):
|
|
1798
|
+
self.TotalCount = params.get("TotalCount")
|
|
1799
|
+
if params.get("MigrationTasks") is not None:
|
|
1800
|
+
self.MigrationTasks = []
|
|
1801
|
+
for item in params.get("MigrationTasks"):
|
|
1802
|
+
obj = MigrationTaskInfo()
|
|
1803
|
+
obj._deserialize(item)
|
|
1804
|
+
self.MigrationTasks.append(obj)
|
|
1805
|
+
self.RequestId = params.get("RequestId")
|
|
1806
|
+
|
|
1807
|
+
|
|
1493
1808
|
class DescribeMountTargetsRequest(AbstractModel):
|
|
1494
1809
|
"""DescribeMountTargets请求参数结构体
|
|
1495
1810
|
|
|
@@ -1923,6 +2238,142 @@ class Filter(AbstractModel):
|
|
|
1923
2238
|
|
|
1924
2239
|
|
|
1925
2240
|
|
|
2241
|
+
class MigrationTaskInfo(AbstractModel):
|
|
2242
|
+
"""CFS数据迁移任务信息
|
|
2243
|
+
|
|
2244
|
+
"""
|
|
2245
|
+
|
|
2246
|
+
def __init__(self):
|
|
2247
|
+
r"""
|
|
2248
|
+
:param TaskName: 迁移任务名称
|
|
2249
|
+
:type TaskName: str
|
|
2250
|
+
:param TaskId: 迁移任务id
|
|
2251
|
+
:type TaskId: str
|
|
2252
|
+
:param MigrationType: 迁移方式标志位,默认为0。0: 桶迁移;1: 清单迁移
|
|
2253
|
+
:type MigrationType: int
|
|
2254
|
+
:param MigrationMode: 迁移模式,默认为0。0: 全量迁移
|
|
2255
|
+
:type MigrationMode: int
|
|
2256
|
+
:param BucketName: 数据源桶名称
|
|
2257
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
2258
|
+
:type BucketName: str
|
|
2259
|
+
:param BucketRegion: 数据源桶地域
|
|
2260
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
2261
|
+
:type BucketRegion: str
|
|
2262
|
+
:param BucketAddress: 数据源桶地址
|
|
2263
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
2264
|
+
:type BucketAddress: str
|
|
2265
|
+
:param ListAddress: 清单地址
|
|
2266
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
2267
|
+
:type ListAddress: str
|
|
2268
|
+
:param FsName: 文件系统实例名称
|
|
2269
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
2270
|
+
:type FsName: str
|
|
2271
|
+
:param FileSystemId: 文件系统实例Id
|
|
2272
|
+
:type FileSystemId: str
|
|
2273
|
+
:param FsPath: 文件系统路径
|
|
2274
|
+
:type FsPath: str
|
|
2275
|
+
:param CoverType: 同名文件迁移时覆盖策略,默认为0。0: 最后修改时间优先;1: 全覆盖;2: 不覆盖
|
|
2276
|
+
:type CoverType: int
|
|
2277
|
+
:param CreateTime: 创建时间
|
|
2278
|
+
:type CreateTime: int
|
|
2279
|
+
:param EndTime: 完成/终止时间
|
|
2280
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
2281
|
+
:type EndTime: int
|
|
2282
|
+
:param Status: 迁移状态。0: 已完成;1: 进行中;2: 已终止
|
|
2283
|
+
:type Status: int
|
|
2284
|
+
:param FileTotalCount: 文件数量
|
|
2285
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
2286
|
+
:type FileTotalCount: int
|
|
2287
|
+
:param FileMigratedCount: 已迁移文件数量
|
|
2288
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
2289
|
+
:type FileMigratedCount: int
|
|
2290
|
+
:param FileFailedCount: 迁移失败文件数量
|
|
2291
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
2292
|
+
:type FileFailedCount: int
|
|
2293
|
+
:param FileTotalSize: 文件容量,单位Byte
|
|
2294
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
2295
|
+
:type FileTotalSize: int
|
|
2296
|
+
:param FileMigratedSize: 已迁移文件容量,单位Byte
|
|
2297
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
2298
|
+
:type FileMigratedSize: int
|
|
2299
|
+
:param FileFailedSize: 迁移失败文件容量,单位Byte
|
|
2300
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
2301
|
+
:type FileFailedSize: int
|
|
2302
|
+
:param FileTotalList: 全部清单
|
|
2303
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
2304
|
+
:type FileTotalList: str
|
|
2305
|
+
:param FileCompletedList: 已完成文件清单
|
|
2306
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
2307
|
+
:type FileCompletedList: str
|
|
2308
|
+
:param FileFailedList: 失败文件清单
|
|
2309
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
2310
|
+
:type FileFailedList: str
|
|
2311
|
+
:param BucketPath: 源桶路径
|
|
2312
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
2313
|
+
:type BucketPath: str
|
|
2314
|
+
"""
|
|
2315
|
+
self.TaskName = None
|
|
2316
|
+
self.TaskId = None
|
|
2317
|
+
self.MigrationType = None
|
|
2318
|
+
self.MigrationMode = None
|
|
2319
|
+
self.BucketName = None
|
|
2320
|
+
self.BucketRegion = None
|
|
2321
|
+
self.BucketAddress = None
|
|
2322
|
+
self.ListAddress = None
|
|
2323
|
+
self.FsName = None
|
|
2324
|
+
self.FileSystemId = None
|
|
2325
|
+
self.FsPath = None
|
|
2326
|
+
self.CoverType = None
|
|
2327
|
+
self.CreateTime = None
|
|
2328
|
+
self.EndTime = None
|
|
2329
|
+
self.Status = None
|
|
2330
|
+
self.FileTotalCount = None
|
|
2331
|
+
self.FileMigratedCount = None
|
|
2332
|
+
self.FileFailedCount = None
|
|
2333
|
+
self.FileTotalSize = None
|
|
2334
|
+
self.FileMigratedSize = None
|
|
2335
|
+
self.FileFailedSize = None
|
|
2336
|
+
self.FileTotalList = None
|
|
2337
|
+
self.FileCompletedList = None
|
|
2338
|
+
self.FileFailedList = None
|
|
2339
|
+
self.BucketPath = None
|
|
2340
|
+
|
|
2341
|
+
|
|
2342
|
+
def _deserialize(self, params):
|
|
2343
|
+
self.TaskName = params.get("TaskName")
|
|
2344
|
+
self.TaskId = params.get("TaskId")
|
|
2345
|
+
self.MigrationType = params.get("MigrationType")
|
|
2346
|
+
self.MigrationMode = params.get("MigrationMode")
|
|
2347
|
+
self.BucketName = params.get("BucketName")
|
|
2348
|
+
self.BucketRegion = params.get("BucketRegion")
|
|
2349
|
+
self.BucketAddress = params.get("BucketAddress")
|
|
2350
|
+
self.ListAddress = params.get("ListAddress")
|
|
2351
|
+
self.FsName = params.get("FsName")
|
|
2352
|
+
self.FileSystemId = params.get("FileSystemId")
|
|
2353
|
+
self.FsPath = params.get("FsPath")
|
|
2354
|
+
self.CoverType = params.get("CoverType")
|
|
2355
|
+
self.CreateTime = params.get("CreateTime")
|
|
2356
|
+
self.EndTime = params.get("EndTime")
|
|
2357
|
+
self.Status = params.get("Status")
|
|
2358
|
+
self.FileTotalCount = params.get("FileTotalCount")
|
|
2359
|
+
self.FileMigratedCount = params.get("FileMigratedCount")
|
|
2360
|
+
self.FileFailedCount = params.get("FileFailedCount")
|
|
2361
|
+
self.FileTotalSize = params.get("FileTotalSize")
|
|
2362
|
+
self.FileMigratedSize = params.get("FileMigratedSize")
|
|
2363
|
+
self.FileFailedSize = params.get("FileFailedSize")
|
|
2364
|
+
self.FileTotalList = params.get("FileTotalList")
|
|
2365
|
+
self.FileCompletedList = params.get("FileCompletedList")
|
|
2366
|
+
self.FileFailedList = params.get("FileFailedList")
|
|
2367
|
+
self.BucketPath = params.get("BucketPath")
|
|
2368
|
+
memeber_set = set(params.keys())
|
|
2369
|
+
for name, value in vars(self).items():
|
|
2370
|
+
if name in memeber_set:
|
|
2371
|
+
memeber_set.remove(name)
|
|
2372
|
+
if len(memeber_set) > 0:
|
|
2373
|
+
warnings.warn("%s fileds are useless." % ",".join(memeber_set))
|
|
2374
|
+
|
|
2375
|
+
|
|
2376
|
+
|
|
1926
2377
|
class MountInfo(AbstractModel):
|
|
1927
2378
|
"""挂载点信息
|
|
1928
2379
|
|
|
@@ -2332,6 +2783,55 @@ class SnapshotStatistics(AbstractModel):
|
|
|
2332
2783
|
|
|
2333
2784
|
|
|
2334
2785
|
|
|
2786
|
+
class StopMigrationTaskRequest(AbstractModel):
|
|
2787
|
+
"""StopMigrationTask请求参数结构体
|
|
2788
|
+
|
|
2789
|
+
"""
|
|
2790
|
+
|
|
2791
|
+
def __init__(self):
|
|
2792
|
+
r"""
|
|
2793
|
+
:param TaskId: 迁移任务名称
|
|
2794
|
+
:type TaskId: str
|
|
2795
|
+
"""
|
|
2796
|
+
self.TaskId = None
|
|
2797
|
+
|
|
2798
|
+
|
|
2799
|
+
def _deserialize(self, params):
|
|
2800
|
+
self.TaskId = params.get("TaskId")
|
|
2801
|
+
memeber_set = set(params.keys())
|
|
2802
|
+
for name, value in vars(self).items():
|
|
2803
|
+
if name in memeber_set:
|
|
2804
|
+
memeber_set.remove(name)
|
|
2805
|
+
if len(memeber_set) > 0:
|
|
2806
|
+
warnings.warn("%s fileds are useless." % ",".join(memeber_set))
|
|
2807
|
+
|
|
2808
|
+
|
|
2809
|
+
|
|
2810
|
+
class StopMigrationTaskResponse(AbstractModel):
|
|
2811
|
+
"""StopMigrationTask返回参数结构体
|
|
2812
|
+
|
|
2813
|
+
"""
|
|
2814
|
+
|
|
2815
|
+
def __init__(self):
|
|
2816
|
+
r"""
|
|
2817
|
+
:param TaskId: 迁移任务Id
|
|
2818
|
+
:type TaskId: str
|
|
2819
|
+
:param Status: 迁移状态。0: 已完成;1: 进行中;2: 已终止
|
|
2820
|
+
:type Status: int
|
|
2821
|
+
:param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
|
2822
|
+
:type RequestId: str
|
|
2823
|
+
"""
|
|
2824
|
+
self.TaskId = None
|
|
2825
|
+
self.Status = None
|
|
2826
|
+
self.RequestId = None
|
|
2827
|
+
|
|
2828
|
+
|
|
2829
|
+
def _deserialize(self, params):
|
|
2830
|
+
self.TaskId = params.get("TaskId")
|
|
2831
|
+
self.Status = params.get("Status")
|
|
2832
|
+
self.RequestId = params.get("RequestId")
|
|
2833
|
+
|
|
2834
|
+
|
|
2335
2835
|
class TagInfo(AbstractModel):
|
|
2336
2836
|
"""Tag信息单元
|
|
2337
2837
|
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
tencentcloud/__init__.py,sha256=Yb1B5VI6wS1VM3Gyg4k5zZjEUN_jehngjcfVrcAmF44,630
|
|
2
|
+
tencentcloud/cfs/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
3
|
+
tencentcloud/cfs/v20190719/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
4
|
+
tencentcloud/cfs/v20190719/cfs_client.py,sha256=aavxy0FUosX33PbSNSmfst0EnK9zdioIzvDjC9qOEYs,37934
|
|
5
|
+
tencentcloud/cfs/v20190719/errorcodes.py,sha256=3Sf_XjiVQHwexT5UwxrBVBQZrixNJlLvrEjaxbfiM8Y,13561
|
|
6
|
+
tencentcloud/cfs/v20190719/models.py,sha256=ptDy1Aoe7KaljP3g4n-DZf5Zm4t6wW2Z9dx71tItWNQ,112598
|
|
7
|
+
tencentcloud_sdk_python_cfs-3.0.875.dist-info/METADATA,sha256=vKGn5BxFnoYg2Ai_q3uI689-FFJE9Ngb6LaWCSLOfyA,1432
|
|
8
|
+
tencentcloud_sdk_python_cfs-3.0.875.dist-info/WHEEL,sha256=z9j0xAa_JmUKMpmz72K0ZGALSM_n-wQVmGbleXx2VHg,110
|
|
9
|
+
tencentcloud_sdk_python_cfs-3.0.875.dist-info/top_level.txt,sha256=g-8OyzoqI6O6LiS85zkeNzhB-osEnRIPZMdyRd_0eL0,13
|
|
10
|
+
tencentcloud_sdk_python_cfs-3.0.875.dist-info/RECORD,,
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
tencentcloud/__init__.py,sha256=olKhz7d9niXOtUqIOOo1G-ObDN0_05e2OFUrl5bT2cU,630
|
|
2
|
-
tencentcloud/cfs/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
3
|
-
tencentcloud/cfs/v20190719/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
4
|
-
tencentcloud/cfs/v20190719/cfs_client.py,sha256=wPlMWD4kzmLp2SqxvwCwOZxMbtjEAoF_sTZT__yiJXg,33132
|
|
5
|
-
tencentcloud/cfs/v20190719/errorcodes.py,sha256=ChqnGOLq3KwWNq1J3yVI9iq-5e0E3ghTeix25ERjcg0,13386
|
|
6
|
-
tencentcloud/cfs/v20190719/models.py,sha256=2jYTyXES2s00SbtTjTYooPHv4N_oXPwh0rfLpTdv_B4,95368
|
|
7
|
-
tencentcloud_sdk_python_cfs-3.0.873.dist-info/METADATA,sha256=_1t9bmNZh5cL0f15hGBIrTMpmLIWWPQAaVwRKgejBFw,1432
|
|
8
|
-
tencentcloud_sdk_python_cfs-3.0.873.dist-info/WHEEL,sha256=z9j0xAa_JmUKMpmz72K0ZGALSM_n-wQVmGbleXx2VHg,110
|
|
9
|
-
tencentcloud_sdk_python_cfs-3.0.873.dist-info/top_level.txt,sha256=g-8OyzoqI6O6LiS85zkeNzhB-osEnRIPZMdyRd_0eL0,13
|
|
10
|
-
tencentcloud_sdk_python_cfs-3.0.873.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|