tencentcloud-sdk-cfs 3.0.551 → 3.0.553
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.
- checksums.yaml +4 -4
- data/lib/VERSION +1 -1
- data/lib/v20190719/client.rb +125 -0
- data/lib/v20190719/models.rb +444 -0
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 7368ebfb9c676fe7390a2fbb20b0d2217d55c368
|
4
|
+
data.tar.gz: 0febd65b364ee59cb502edfc9462293736c81abc
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 9a3944461fcfa58efa0b52e3c26e1dd6c4334d3f693b923c1141a15f97700b7d58d881e1195c052df55ebda4ad719c4d69c601d690ba8043b9dd85e323022f57
|
7
|
+
data.tar.gz: 274ec4bcd8d906ad801e11a60b64b5ee4310fe79ac7b988567da9af18218ba738a1581d29b27d314c7036f32ce0220ca8aae33f243ef62122d6f441041e35e41
|
data/lib/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
3.0.
|
1
|
+
3.0.553
|
data/lib/v20190719/client.rb
CHANGED
@@ -173,6 +173,31 @@ module TencentCloud
|
|
173
173
|
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
174
174
|
end
|
175
175
|
|
176
|
+
# 用于创建迁移任务。
|
177
|
+
# 此接口需提交工单,开启白名单之后才能使用。
|
178
|
+
|
179
|
+
# @param request: Request instance for CreateMigrationTask.
|
180
|
+
# @type request: :class:`Tencentcloud::cfs::V20190719::CreateMigrationTaskRequest`
|
181
|
+
# @rtype: :class:`Tencentcloud::cfs::V20190719::CreateMigrationTaskResponse`
|
182
|
+
def CreateMigrationTask(request)
|
183
|
+
body = send_request('CreateMigrationTask', request.serialize)
|
184
|
+
response = JSON.parse(body)
|
185
|
+
if response['Response'].key?('Error') == false
|
186
|
+
model = CreateMigrationTaskResponse.new
|
187
|
+
model.deserialize(response['Response'])
|
188
|
+
model
|
189
|
+
else
|
190
|
+
code = response['Response']['Error']['Code']
|
191
|
+
message = response['Response']['Error']['Message']
|
192
|
+
reqid = response['Response']['RequestId']
|
193
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
194
|
+
end
|
195
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
196
|
+
raise e
|
197
|
+
rescue StandardError => e
|
198
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
199
|
+
end
|
200
|
+
|
176
201
|
# 删除快照定期策略
|
177
202
|
|
178
203
|
# @param request: Request instance for DeleteAutoSnapshotPolicy.
|
@@ -293,6 +318,31 @@ module TencentCloud
|
|
293
318
|
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
294
319
|
end
|
295
320
|
|
321
|
+
# 用于删除迁移任务。
|
322
|
+
# 此接口需提交工单,开启白名单之后才能使用。
|
323
|
+
|
324
|
+
# @param request: Request instance for DeleteMigrationTask.
|
325
|
+
# @type request: :class:`Tencentcloud::cfs::V20190719::DeleteMigrationTaskRequest`
|
326
|
+
# @rtype: :class:`Tencentcloud::cfs::V20190719::DeleteMigrationTaskResponse`
|
327
|
+
def DeleteMigrationTask(request)
|
328
|
+
body = send_request('DeleteMigrationTask', request.serialize)
|
329
|
+
response = JSON.parse(body)
|
330
|
+
if response['Response'].key?('Error') == false
|
331
|
+
model = DeleteMigrationTaskResponse.new
|
332
|
+
model.deserialize(response['Response'])
|
333
|
+
model
|
334
|
+
else
|
335
|
+
code = response['Response']['Error']['Code']
|
336
|
+
message = response['Response']['Error']['Message']
|
337
|
+
reqid = response['Response']['RequestId']
|
338
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
339
|
+
end
|
340
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
341
|
+
raise e
|
342
|
+
rescue StandardError => e
|
343
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
344
|
+
end
|
345
|
+
|
296
346
|
# 本接口(DeleteMountTarget)用于删除挂载点
|
297
347
|
|
298
348
|
# @param request: Request instance for DeleteMountTarget.
|
@@ -389,6 +439,31 @@ module TencentCloud
|
|
389
439
|
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
390
440
|
end
|
391
441
|
|
442
|
+
# 用于获取数据源桶列表。
|
443
|
+
# 此接口需提交工单,开启白名单之后才能使用。
|
444
|
+
|
445
|
+
# @param request: Request instance for DescribeBucketList.
|
446
|
+
# @type request: :class:`Tencentcloud::cfs::V20190719::DescribeBucketListRequest`
|
447
|
+
# @rtype: :class:`Tencentcloud::cfs::V20190719::DescribeBucketListResponse`
|
448
|
+
def DescribeBucketList(request)
|
449
|
+
body = send_request('DescribeBucketList', request.serialize)
|
450
|
+
response = JSON.parse(body)
|
451
|
+
if response['Response'].key?('Error') == false
|
452
|
+
model = DescribeBucketListResponse.new
|
453
|
+
model.deserialize(response['Response'])
|
454
|
+
model
|
455
|
+
else
|
456
|
+
code = response['Response']['Error']['Code']
|
457
|
+
message = response['Response']['Error']['Message']
|
458
|
+
reqid = response['Response']['RequestId']
|
459
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
460
|
+
end
|
461
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
462
|
+
raise e
|
463
|
+
rescue StandardError => e
|
464
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
465
|
+
end
|
466
|
+
|
392
467
|
# 查询挂载该文件系统的客户端。此功能需要客户端安装CFS监控插件。
|
393
468
|
|
394
469
|
# @param request: Request instance for DescribeCfsFileSystemClients.
|
@@ -557,6 +632,31 @@ module TencentCloud
|
|
557
632
|
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
558
633
|
end
|
559
634
|
|
635
|
+
# 用于获取迁移任务列表。
|
636
|
+
# 此接口需提交工单,开启白名单之后才能使用。
|
637
|
+
|
638
|
+
# @param request: Request instance for DescribeMigrationTasks.
|
639
|
+
# @type request: :class:`Tencentcloud::cfs::V20190719::DescribeMigrationTasksRequest`
|
640
|
+
# @rtype: :class:`Tencentcloud::cfs::V20190719::DescribeMigrationTasksResponse`
|
641
|
+
def DescribeMigrationTasks(request)
|
642
|
+
body = send_request('DescribeMigrationTasks', request.serialize)
|
643
|
+
response = JSON.parse(body)
|
644
|
+
if response['Response'].key?('Error') == false
|
645
|
+
model = DescribeMigrationTasksResponse.new
|
646
|
+
model.deserialize(response['Response'])
|
647
|
+
model
|
648
|
+
else
|
649
|
+
code = response['Response']['Error']['Code']
|
650
|
+
message = response['Response']['Error']['Message']
|
651
|
+
reqid = response['Response']['RequestId']
|
652
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
653
|
+
end
|
654
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
655
|
+
raise e
|
656
|
+
rescue StandardError => e
|
657
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
658
|
+
end
|
659
|
+
|
560
660
|
# 本接口(DescribeMountTargets)用于查询文件系统挂载点信息
|
561
661
|
|
562
662
|
# @param request: Request instance for DescribeMountTargets.
|
@@ -677,6 +777,31 @@ module TencentCloud
|
|
677
777
|
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
678
778
|
end
|
679
779
|
|
780
|
+
# 用于终止迁移任务。
|
781
|
+
# 此接口需提交工单,开启白名单之后才能使用。
|
782
|
+
|
783
|
+
# @param request: Request instance for StopMigrationTask.
|
784
|
+
# @type request: :class:`Tencentcloud::cfs::V20190719::StopMigrationTaskRequest`
|
785
|
+
# @rtype: :class:`Tencentcloud::cfs::V20190719::StopMigrationTaskResponse`
|
786
|
+
def StopMigrationTask(request)
|
787
|
+
body = send_request('StopMigrationTask', request.serialize)
|
788
|
+
response = JSON.parse(body)
|
789
|
+
if response['Response'].key?('Error') == false
|
790
|
+
model = StopMigrationTaskResponse.new
|
791
|
+
model.deserialize(response['Response'])
|
792
|
+
model
|
793
|
+
else
|
794
|
+
code = response['Response']['Error']['Code']
|
795
|
+
message = response['Response']['Error']['Message']
|
796
|
+
reqid = response['Response']['RequestId']
|
797
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
798
|
+
end
|
799
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
800
|
+
raise e
|
801
|
+
rescue StandardError => e
|
802
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
803
|
+
end
|
804
|
+
|
680
805
|
# 解除文件系统绑定的快照策略
|
681
806
|
|
682
807
|
# @param request: Request instance for UnbindAutoSnapshotPolicy.
|
data/lib/v20190719/models.rb
CHANGED
@@ -267,6 +267,27 @@ module TencentCloud
|
|
267
267
|
end
|
268
268
|
end
|
269
269
|
|
270
|
+
# 对象存储桶
|
271
|
+
class BucketInfo < TencentCloud::Common::AbstractModel
|
272
|
+
# @param Name: 桶名称
|
273
|
+
# @type Name: String
|
274
|
+
# @param Region: 桶所在地域
|
275
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
276
|
+
# @type Region: String
|
277
|
+
|
278
|
+
attr_accessor :Name, :Region
|
279
|
+
|
280
|
+
def initialize(name=nil, region=nil)
|
281
|
+
@Name = name
|
282
|
+
@Region = region
|
283
|
+
end
|
284
|
+
|
285
|
+
def deserialize(params)
|
286
|
+
@Name = params['Name']
|
287
|
+
@Region = params['Region']
|
288
|
+
end
|
289
|
+
end
|
290
|
+
|
270
291
|
# CreateAutoSnapshotPolicy请求参数结构体
|
271
292
|
class CreateAutoSnapshotPolicyRequest < TencentCloud::Common::AbstractModel
|
272
293
|
# @param Hour: 快照重复时间点
|
@@ -625,6 +646,98 @@ module TencentCloud
|
|
625
646
|
end
|
626
647
|
end
|
627
648
|
|
649
|
+
# CreateMigrationTask请求参数结构体
|
650
|
+
class CreateMigrationTaskRequest < TencentCloud::Common::AbstractModel
|
651
|
+
# @param TaskName: 迁移任务名称
|
652
|
+
# @type TaskName: String
|
653
|
+
# @param MigrationType: 迁移方式标志位,默认为0。0: 桶迁移;1: 清单迁移
|
654
|
+
# @type MigrationType: Integer
|
655
|
+
# @param MigrationMode: 迁移模式,默认为0。0: 全量迁移
|
656
|
+
# @type MigrationMode: Integer
|
657
|
+
# @param SrcSecretId: 数据源账号的SecretId
|
658
|
+
# @type SrcSecretId: String
|
659
|
+
# @param SrcSecretKey: 数据源账号的SecretKey
|
660
|
+
# @type SrcSecretKey: String
|
661
|
+
# @param FileSystemId: 文件系统实例Id
|
662
|
+
# @type FileSystemId: String
|
663
|
+
# @param FsPath: 文件系统路径
|
664
|
+
# @type FsPath: String
|
665
|
+
# @param CoverType: 同名文件迁移时覆盖策略,默认为0。0: 最后修改时间优先;1: 全覆盖;2: 不覆盖
|
666
|
+
# @type CoverType: Integer
|
667
|
+
# @param SrcService: 数据源服务商。COS: 腾讯云COS,OSS: 阿里云OSS,OBS:华为云OBS
|
668
|
+
# @type SrcService: String
|
669
|
+
# @param BucketName: 数据源桶名称,名称和地址至少有一个
|
670
|
+
# @type BucketName: String
|
671
|
+
# @param BucketRegion: 数据源桶地域
|
672
|
+
# @type BucketRegion: String
|
673
|
+
# @param BucketAddress: 数据源桶地址,名称和地址至少有一个
|
674
|
+
# @type BucketAddress: String
|
675
|
+
# @param ListAddress: 清单地址,迁移方式为清单迁移时必填
|
676
|
+
# @type ListAddress: String
|
677
|
+
# @param FsName: 目标文件系统名称
|
678
|
+
# @type FsName: String
|
679
|
+
# @param BucketPath: 源桶路径,默认为/
|
680
|
+
# @type BucketPath: String
|
681
|
+
|
682
|
+
attr_accessor :TaskName, :MigrationType, :MigrationMode, :SrcSecretId, :SrcSecretKey, :FileSystemId, :FsPath, :CoverType, :SrcService, :BucketName, :BucketRegion, :BucketAddress, :ListAddress, :FsName, :BucketPath
|
683
|
+
|
684
|
+
def initialize(taskname=nil, migrationtype=nil, migrationmode=nil, srcsecretid=nil, srcsecretkey=nil, filesystemid=nil, fspath=nil, covertype=nil, srcservice=nil, bucketname=nil, bucketregion=nil, bucketaddress=nil, listaddress=nil, fsname=nil, bucketpath=nil)
|
685
|
+
@TaskName = taskname
|
686
|
+
@MigrationType = migrationtype
|
687
|
+
@MigrationMode = migrationmode
|
688
|
+
@SrcSecretId = srcsecretid
|
689
|
+
@SrcSecretKey = srcsecretkey
|
690
|
+
@FileSystemId = filesystemid
|
691
|
+
@FsPath = fspath
|
692
|
+
@CoverType = covertype
|
693
|
+
@SrcService = srcservice
|
694
|
+
@BucketName = bucketname
|
695
|
+
@BucketRegion = bucketregion
|
696
|
+
@BucketAddress = bucketaddress
|
697
|
+
@ListAddress = listaddress
|
698
|
+
@FsName = fsname
|
699
|
+
@BucketPath = bucketpath
|
700
|
+
end
|
701
|
+
|
702
|
+
def deserialize(params)
|
703
|
+
@TaskName = params['TaskName']
|
704
|
+
@MigrationType = params['MigrationType']
|
705
|
+
@MigrationMode = params['MigrationMode']
|
706
|
+
@SrcSecretId = params['SrcSecretId']
|
707
|
+
@SrcSecretKey = params['SrcSecretKey']
|
708
|
+
@FileSystemId = params['FileSystemId']
|
709
|
+
@FsPath = params['FsPath']
|
710
|
+
@CoverType = params['CoverType']
|
711
|
+
@SrcService = params['SrcService']
|
712
|
+
@BucketName = params['BucketName']
|
713
|
+
@BucketRegion = params['BucketRegion']
|
714
|
+
@BucketAddress = params['BucketAddress']
|
715
|
+
@ListAddress = params['ListAddress']
|
716
|
+
@FsName = params['FsName']
|
717
|
+
@BucketPath = params['BucketPath']
|
718
|
+
end
|
719
|
+
end
|
720
|
+
|
721
|
+
# CreateMigrationTask返回参数结构体
|
722
|
+
class CreateMigrationTaskResponse < TencentCloud::Common::AbstractModel
|
723
|
+
# @param TaskId: 迁移任务Id
|
724
|
+
# @type TaskId: String
|
725
|
+
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
726
|
+
# @type RequestId: String
|
727
|
+
|
728
|
+
attr_accessor :TaskId, :RequestId
|
729
|
+
|
730
|
+
def initialize(taskid=nil, requestid=nil)
|
731
|
+
@TaskId = taskid
|
732
|
+
@RequestId = requestid
|
733
|
+
end
|
734
|
+
|
735
|
+
def deserialize(params)
|
736
|
+
@TaskId = params['TaskId']
|
737
|
+
@RequestId = params['RequestId']
|
738
|
+
end
|
739
|
+
end
|
740
|
+
|
628
741
|
# DeleteAutoSnapshotPolicy请求参数结构体
|
629
742
|
class DeleteAutoSnapshotPolicyRequest < TencentCloud::Common::AbstractModel
|
630
743
|
# @param AutoSnapshotPolicyId: 快照策略ID
|
@@ -817,6 +930,38 @@ module TencentCloud
|
|
817
930
|
end
|
818
931
|
end
|
819
932
|
|
933
|
+
# DeleteMigrationTask请求参数结构体
|
934
|
+
class DeleteMigrationTaskRequest < TencentCloud::Common::AbstractModel
|
935
|
+
# @param TaskId: 迁移任务ID
|
936
|
+
# @type TaskId: String
|
937
|
+
|
938
|
+
attr_accessor :TaskId
|
939
|
+
|
940
|
+
def initialize(taskid=nil)
|
941
|
+
@TaskId = taskid
|
942
|
+
end
|
943
|
+
|
944
|
+
def deserialize(params)
|
945
|
+
@TaskId = params['TaskId']
|
946
|
+
end
|
947
|
+
end
|
948
|
+
|
949
|
+
# DeleteMigrationTask返回参数结构体
|
950
|
+
class DeleteMigrationTaskResponse < TencentCloud::Common::AbstractModel
|
951
|
+
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
952
|
+
# @type RequestId: String
|
953
|
+
|
954
|
+
attr_accessor :RequestId
|
955
|
+
|
956
|
+
def initialize(requestid=nil)
|
957
|
+
@RequestId = requestid
|
958
|
+
end
|
959
|
+
|
960
|
+
def deserialize(params)
|
961
|
+
@RequestId = params['RequestId']
|
962
|
+
end
|
963
|
+
end
|
964
|
+
|
820
965
|
# DeleteMountTarget请求参数结构体
|
821
966
|
class DeleteMountTargetRequest < TencentCloud::Common::AbstractModel
|
822
967
|
# @param FileSystemId: 文件系统 ID
|
@@ -1005,6 +1150,61 @@ module TencentCloud
|
|
1005
1150
|
end
|
1006
1151
|
end
|
1007
1152
|
|
1153
|
+
# DescribeBucketList请求参数结构体
|
1154
|
+
class DescribeBucketListRequest < TencentCloud::Common::AbstractModel
|
1155
|
+
# @param SrcService: 数据源服务商。COS: 腾讯云COS,OSS: 阿里云OSS,OBS:华为云OBS
|
1156
|
+
# @type SrcService: String
|
1157
|
+
# @param SrcSecretId: 数据源账号的SecretId
|
1158
|
+
# @type SrcSecretId: String
|
1159
|
+
# @param SrcSecretKey: 数据源账号的SecretKey
|
1160
|
+
# @type SrcSecretKey: String
|
1161
|
+
|
1162
|
+
attr_accessor :SrcService, :SrcSecretId, :SrcSecretKey
|
1163
|
+
|
1164
|
+
def initialize(srcservice=nil, srcsecretid=nil, srcsecretkey=nil)
|
1165
|
+
@SrcService = srcservice
|
1166
|
+
@SrcSecretId = srcsecretid
|
1167
|
+
@SrcSecretKey = srcsecretkey
|
1168
|
+
end
|
1169
|
+
|
1170
|
+
def deserialize(params)
|
1171
|
+
@SrcService = params['SrcService']
|
1172
|
+
@SrcSecretId = params['SrcSecretId']
|
1173
|
+
@SrcSecretKey = params['SrcSecretKey']
|
1174
|
+
end
|
1175
|
+
end
|
1176
|
+
|
1177
|
+
# DescribeBucketList返回参数结构体
|
1178
|
+
class DescribeBucketListResponse < TencentCloud::Common::AbstractModel
|
1179
|
+
# @param TotalCount: 桶的数量
|
1180
|
+
# @type TotalCount: Integer
|
1181
|
+
# @param BucketList: 桶列表
|
1182
|
+
# @type BucketList: Array
|
1183
|
+
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
1184
|
+
# @type RequestId: String
|
1185
|
+
|
1186
|
+
attr_accessor :TotalCount, :BucketList, :RequestId
|
1187
|
+
|
1188
|
+
def initialize(totalcount=nil, bucketlist=nil, requestid=nil)
|
1189
|
+
@TotalCount = totalcount
|
1190
|
+
@BucketList = bucketlist
|
1191
|
+
@RequestId = requestid
|
1192
|
+
end
|
1193
|
+
|
1194
|
+
def deserialize(params)
|
1195
|
+
@TotalCount = params['TotalCount']
|
1196
|
+
unless params['BucketList'].nil?
|
1197
|
+
@BucketList = []
|
1198
|
+
params['BucketList'].each do |i|
|
1199
|
+
bucketinfo_tmp = BucketInfo.new
|
1200
|
+
bucketinfo_tmp.deserialize(i)
|
1201
|
+
@BucketList << bucketinfo_tmp
|
1202
|
+
end
|
1203
|
+
end
|
1204
|
+
@RequestId = params['RequestId']
|
1205
|
+
end
|
1206
|
+
end
|
1207
|
+
|
1008
1208
|
# DescribeCfsFileSystemClients请求参数结构体
|
1009
1209
|
class DescribeCfsFileSystemClientsRequest < TencentCloud::Common::AbstractModel
|
1010
1210
|
# @param FileSystemId: 文件系统 ID。
|
@@ -1335,6 +1535,82 @@ module TencentCloud
|
|
1335
1535
|
end
|
1336
1536
|
end
|
1337
1537
|
|
1538
|
+
# DescribeMigrationTasks请求参数结构体
|
1539
|
+
class DescribeMigrationTasksRequest < TencentCloud::Common::AbstractModel
|
1540
|
+
# @param Offset: 分页的偏移量,默认值为0。
|
1541
|
+
# @type Offset: Integer
|
1542
|
+
# @param Limit: 分页单页限制数目,默认值为20,最大值100。
|
1543
|
+
# @type Limit: Integer
|
1544
|
+
# @param Filters: <br><li> taskId
|
1545
|
+
|
1546
|
+
# 按照【迁移任务id】进行过滤。
|
1547
|
+
# 类型:String
|
1548
|
+
|
1549
|
+
# 必选:否
|
1550
|
+
|
1551
|
+
# <br><li> taskName
|
1552
|
+
|
1553
|
+
# 按照【迁移任务名字】进行模糊搜索过滤。
|
1554
|
+
# 类型:String
|
1555
|
+
|
1556
|
+
# 必选:否
|
1557
|
+
|
1558
|
+
# 每次请求的Filters的上限为10,Filter.Values的上限为100。
|
1559
|
+
# @type Filters: Array
|
1560
|
+
|
1561
|
+
attr_accessor :Offset, :Limit, :Filters
|
1562
|
+
|
1563
|
+
def initialize(offset=nil, limit=nil, filters=nil)
|
1564
|
+
@Offset = offset
|
1565
|
+
@Limit = limit
|
1566
|
+
@Filters = filters
|
1567
|
+
end
|
1568
|
+
|
1569
|
+
def deserialize(params)
|
1570
|
+
@Offset = params['Offset']
|
1571
|
+
@Limit = params['Limit']
|
1572
|
+
unless params['Filters'].nil?
|
1573
|
+
@Filters = []
|
1574
|
+
params['Filters'].each do |i|
|
1575
|
+
filter_tmp = Filter.new
|
1576
|
+
filter_tmp.deserialize(i)
|
1577
|
+
@Filters << filter_tmp
|
1578
|
+
end
|
1579
|
+
end
|
1580
|
+
end
|
1581
|
+
end
|
1582
|
+
|
1583
|
+
# DescribeMigrationTasks返回参数结构体
|
1584
|
+
class DescribeMigrationTasksResponse < TencentCloud::Common::AbstractModel
|
1585
|
+
# @param TotalCount: 迁移任务的数量
|
1586
|
+
# @type TotalCount: Integer
|
1587
|
+
# @param MigrationTasks: 迁移任务详情
|
1588
|
+
# @type MigrationTasks: Array
|
1589
|
+
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
1590
|
+
# @type RequestId: String
|
1591
|
+
|
1592
|
+
attr_accessor :TotalCount, :MigrationTasks, :RequestId
|
1593
|
+
|
1594
|
+
def initialize(totalcount=nil, migrationtasks=nil, requestid=nil)
|
1595
|
+
@TotalCount = totalcount
|
1596
|
+
@MigrationTasks = migrationtasks
|
1597
|
+
@RequestId = requestid
|
1598
|
+
end
|
1599
|
+
|
1600
|
+
def deserialize(params)
|
1601
|
+
@TotalCount = params['TotalCount']
|
1602
|
+
unless params['MigrationTasks'].nil?
|
1603
|
+
@MigrationTasks = []
|
1604
|
+
params['MigrationTasks'].each do |i|
|
1605
|
+
migrationtaskinfo_tmp = MigrationTaskInfo.new
|
1606
|
+
migrationtaskinfo_tmp.deserialize(i)
|
1607
|
+
@MigrationTasks << migrationtaskinfo_tmp
|
1608
|
+
end
|
1609
|
+
end
|
1610
|
+
@RequestId = params['RequestId']
|
1611
|
+
end
|
1612
|
+
end
|
1613
|
+
|
1338
1614
|
# DescribeMountTargets请求参数结构体
|
1339
1615
|
class DescribeMountTargetsRequest < TencentCloud::Common::AbstractModel
|
1340
1616
|
# @param FileSystemId: 文件系统 ID
|
@@ -1721,6 +1997,134 @@ module TencentCloud
|
|
1721
1997
|
end
|
1722
1998
|
end
|
1723
1999
|
|
2000
|
+
# CFS数据迁移任务信息
|
2001
|
+
class MigrationTaskInfo < TencentCloud::Common::AbstractModel
|
2002
|
+
# @param TaskName: 迁移任务名称
|
2003
|
+
# @type TaskName: String
|
2004
|
+
# @param TaskId: 迁移任务id
|
2005
|
+
# @type TaskId: String
|
2006
|
+
# @param MigrationType: 迁移方式标志位,默认为0。0: 桶迁移;1: 清单迁移
|
2007
|
+
# @type MigrationType: Integer
|
2008
|
+
# @param MigrationMode: 迁移模式,默认为0。0: 全量迁移
|
2009
|
+
# @type MigrationMode: Integer
|
2010
|
+
# @param BucketName: 数据源桶名称
|
2011
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
2012
|
+
# @type BucketName: String
|
2013
|
+
# @param BucketRegion: 数据源桶地域
|
2014
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
2015
|
+
# @type BucketRegion: String
|
2016
|
+
# @param BucketAddress: 数据源桶地址
|
2017
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
2018
|
+
# @type BucketAddress: String
|
2019
|
+
# @param ListAddress: 清单地址
|
2020
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
2021
|
+
# @type ListAddress: String
|
2022
|
+
# @param FsName: 文件系统实例名称
|
2023
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
2024
|
+
# @type FsName: String
|
2025
|
+
# @param FileSystemId: 文件系统实例Id
|
2026
|
+
# @type FileSystemId: String
|
2027
|
+
# @param FsPath: 文件系统路径
|
2028
|
+
# @type FsPath: String
|
2029
|
+
# @param CoverType: 同名文件迁移时覆盖策略,默认为0。0: 最后修改时间优先;1: 全覆盖;2: 不覆盖
|
2030
|
+
# @type CoverType: Integer
|
2031
|
+
# @param CreateTime: 创建时间
|
2032
|
+
# @type CreateTime: Integer
|
2033
|
+
# @param EndTime: 完成/终止时间
|
2034
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
2035
|
+
# @type EndTime: Integer
|
2036
|
+
# @param Status: 迁移状态。0: 已完成;1: 进行中;2: 已终止
|
2037
|
+
# @type Status: Integer
|
2038
|
+
# @param FileTotalCount: 文件数量
|
2039
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
2040
|
+
# @type FileTotalCount: Integer
|
2041
|
+
# @param FileMigratedCount: 已迁移文件数量
|
2042
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
2043
|
+
# @type FileMigratedCount: Integer
|
2044
|
+
# @param FileFailedCount: 迁移失败文件数量
|
2045
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
2046
|
+
# @type FileFailedCount: Integer
|
2047
|
+
# @param FileTotalSize: 文件容量,单位Byte
|
2048
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
2049
|
+
# @type FileTotalSize: Integer
|
2050
|
+
# @param FileMigratedSize: 已迁移文件容量,单位Byte
|
2051
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
2052
|
+
# @type FileMigratedSize: Integer
|
2053
|
+
# @param FileFailedSize: 迁移失败文件容量,单位Byte
|
2054
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
2055
|
+
# @type FileFailedSize: Integer
|
2056
|
+
# @param FileTotalList: 全部清单
|
2057
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
2058
|
+
# @type FileTotalList: String
|
2059
|
+
# @param FileCompletedList: 已完成文件清单
|
2060
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
2061
|
+
# @type FileCompletedList: String
|
2062
|
+
# @param FileFailedList: 失败文件清单
|
2063
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
2064
|
+
# @type FileFailedList: String
|
2065
|
+
# @param BucketPath: 源桶路径
|
2066
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
2067
|
+
# @type BucketPath: String
|
2068
|
+
|
2069
|
+
attr_accessor :TaskName, :TaskId, :MigrationType, :MigrationMode, :BucketName, :BucketRegion, :BucketAddress, :ListAddress, :FsName, :FileSystemId, :FsPath, :CoverType, :CreateTime, :EndTime, :Status, :FileTotalCount, :FileMigratedCount, :FileFailedCount, :FileTotalSize, :FileMigratedSize, :FileFailedSize, :FileTotalList, :FileCompletedList, :FileFailedList, :BucketPath
|
2070
|
+
|
2071
|
+
def initialize(taskname=nil, taskid=nil, migrationtype=nil, migrationmode=nil, bucketname=nil, bucketregion=nil, bucketaddress=nil, listaddress=nil, fsname=nil, filesystemid=nil, fspath=nil, covertype=nil, createtime=nil, endtime=nil, status=nil, filetotalcount=nil, filemigratedcount=nil, filefailedcount=nil, filetotalsize=nil, filemigratedsize=nil, filefailedsize=nil, filetotallist=nil, filecompletedlist=nil, filefailedlist=nil, bucketpath=nil)
|
2072
|
+
@TaskName = taskname
|
2073
|
+
@TaskId = taskid
|
2074
|
+
@MigrationType = migrationtype
|
2075
|
+
@MigrationMode = migrationmode
|
2076
|
+
@BucketName = bucketname
|
2077
|
+
@BucketRegion = bucketregion
|
2078
|
+
@BucketAddress = bucketaddress
|
2079
|
+
@ListAddress = listaddress
|
2080
|
+
@FsName = fsname
|
2081
|
+
@FileSystemId = filesystemid
|
2082
|
+
@FsPath = fspath
|
2083
|
+
@CoverType = covertype
|
2084
|
+
@CreateTime = createtime
|
2085
|
+
@EndTime = endtime
|
2086
|
+
@Status = status
|
2087
|
+
@FileTotalCount = filetotalcount
|
2088
|
+
@FileMigratedCount = filemigratedcount
|
2089
|
+
@FileFailedCount = filefailedcount
|
2090
|
+
@FileTotalSize = filetotalsize
|
2091
|
+
@FileMigratedSize = filemigratedsize
|
2092
|
+
@FileFailedSize = filefailedsize
|
2093
|
+
@FileTotalList = filetotallist
|
2094
|
+
@FileCompletedList = filecompletedlist
|
2095
|
+
@FileFailedList = filefailedlist
|
2096
|
+
@BucketPath = bucketpath
|
2097
|
+
end
|
2098
|
+
|
2099
|
+
def deserialize(params)
|
2100
|
+
@TaskName = params['TaskName']
|
2101
|
+
@TaskId = params['TaskId']
|
2102
|
+
@MigrationType = params['MigrationType']
|
2103
|
+
@MigrationMode = params['MigrationMode']
|
2104
|
+
@BucketName = params['BucketName']
|
2105
|
+
@BucketRegion = params['BucketRegion']
|
2106
|
+
@BucketAddress = params['BucketAddress']
|
2107
|
+
@ListAddress = params['ListAddress']
|
2108
|
+
@FsName = params['FsName']
|
2109
|
+
@FileSystemId = params['FileSystemId']
|
2110
|
+
@FsPath = params['FsPath']
|
2111
|
+
@CoverType = params['CoverType']
|
2112
|
+
@CreateTime = params['CreateTime']
|
2113
|
+
@EndTime = params['EndTime']
|
2114
|
+
@Status = params['Status']
|
2115
|
+
@FileTotalCount = params['FileTotalCount']
|
2116
|
+
@FileMigratedCount = params['FileMigratedCount']
|
2117
|
+
@FileFailedCount = params['FileFailedCount']
|
2118
|
+
@FileTotalSize = params['FileTotalSize']
|
2119
|
+
@FileMigratedSize = params['FileMigratedSize']
|
2120
|
+
@FileFailedSize = params['FileFailedSize']
|
2121
|
+
@FileTotalList = params['FileTotalList']
|
2122
|
+
@FileCompletedList = params['FileCompletedList']
|
2123
|
+
@FileFailedList = params['FileFailedList']
|
2124
|
+
@BucketPath = params['BucketPath']
|
2125
|
+
end
|
2126
|
+
end
|
2127
|
+
|
1724
2128
|
# 挂载点信息
|
1725
2129
|
class MountInfo < TencentCloud::Common::AbstractModel
|
1726
2130
|
# @param FileSystemId: 文件系统 ID
|
@@ -2071,6 +2475,46 @@ module TencentCloud
|
|
2071
2475
|
end
|
2072
2476
|
end
|
2073
2477
|
|
2478
|
+
# StopMigrationTask请求参数结构体
|
2479
|
+
class StopMigrationTaskRequest < TencentCloud::Common::AbstractModel
|
2480
|
+
# @param TaskId: 迁移任务名称
|
2481
|
+
# @type TaskId: String
|
2482
|
+
|
2483
|
+
attr_accessor :TaskId
|
2484
|
+
|
2485
|
+
def initialize(taskid=nil)
|
2486
|
+
@TaskId = taskid
|
2487
|
+
end
|
2488
|
+
|
2489
|
+
def deserialize(params)
|
2490
|
+
@TaskId = params['TaskId']
|
2491
|
+
end
|
2492
|
+
end
|
2493
|
+
|
2494
|
+
# StopMigrationTask返回参数结构体
|
2495
|
+
class StopMigrationTaskResponse < TencentCloud::Common::AbstractModel
|
2496
|
+
# @param TaskId: 迁移任务Id
|
2497
|
+
# @type TaskId: String
|
2498
|
+
# @param Status: 迁移状态。0: 已完成;1: 进行中;2: 已终止
|
2499
|
+
# @type Status: Integer
|
2500
|
+
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
2501
|
+
# @type RequestId: String
|
2502
|
+
|
2503
|
+
attr_accessor :TaskId, :Status, :RequestId
|
2504
|
+
|
2505
|
+
def initialize(taskid=nil, status=nil, requestid=nil)
|
2506
|
+
@TaskId = taskid
|
2507
|
+
@Status = status
|
2508
|
+
@RequestId = requestid
|
2509
|
+
end
|
2510
|
+
|
2511
|
+
def deserialize(params)
|
2512
|
+
@TaskId = params['TaskId']
|
2513
|
+
@Status = params['Status']
|
2514
|
+
@RequestId = params['RequestId']
|
2515
|
+
end
|
2516
|
+
end
|
2517
|
+
|
2074
2518
|
# Tag信息单元
|
2075
2519
|
class TagInfo < TencentCloud::Common::AbstractModel
|
2076
2520
|
# @param TagKey: 标签键
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: tencentcloud-sdk-cfs
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 3.0.
|
4
|
+
version: 3.0.553
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Tencent Cloud
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2023-04-
|
11
|
+
date: 2023-04-18 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: tencentcloud-sdk-common
|