tencentcloud-sdk-goosefs 3.0.500 → 3.0.501

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 3d5401a99e387b78f203d5cd6deab27feb374ffc
4
- data.tar.gz: bb3175c598332e1c21bacd875c8b2f16c93416ca
3
+ metadata.gz: 5fc0bacb9470353452693fb785d5e47a156fefcb
4
+ data.tar.gz: 53a8f27db9b635df58d693b6578a96d90ebb5d16
5
5
  SHA512:
6
- metadata.gz: da77dc63f39d992f735bb2bee49ea61803f1a969a05b1aa63d87f2d766b2b3d675b4ecc6d9d50f4af77669866a1b97cabcaa1c44a5147293024d72023b620aa6
7
- data.tar.gz: 007533c8c05b4e2f80db27c1063fdf25dd3655fea5ecd28751fd760fda08d28f205461c7b7d4d7ff8974ca44d1203596a3aff3b1f47957b502e8bdca832c749a
6
+ metadata.gz: 510014c1444f2dc1614106b21d97b7ea2dabf03a43a4441a9b14cb29be6a0c4cdce3647048f0df742a19cf2f501dab7fd70f058106b9c1e83f417c440e90a801
7
+ data.tar.gz: 6c20929df780831dd6826548658e20512abb1dfe0bf25c5580ddce4a9c22295ae7fc395f1d5243dfb571d88cafc2bf5afc0a53e92597c89effb57ce6c494f8a9
data/lib/VERSION CHANGED
@@ -1 +1 @@
1
- 3.0.500
1
+ 3.0.501
@@ -53,6 +53,30 @@ module TencentCloud
53
53
  raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
54
54
  end
55
55
 
56
+ # 获取数据流通任务实时状态,用作客户端控制
57
+
58
+ # @param request: Request instance for DescribeDataRepositoryTaskStatus.
59
+ # @type request: :class:`Tencentcloud::goosefs::V20220519::DescribeDataRepositoryTaskStatusRequest`
60
+ # @rtype: :class:`Tencentcloud::goosefs::V20220519::DescribeDataRepositoryTaskStatusResponse`
61
+ def DescribeDataRepositoryTaskStatus(request)
62
+ body = send_request('DescribeDataRepositoryTaskStatus', request.serialize)
63
+ response = JSON.parse(body)
64
+ if response['Response'].key?('Error') == false
65
+ model = DescribeDataRepositoryTaskStatusResponse.new
66
+ model.deserialize(response['Response'])
67
+ model
68
+ else
69
+ code = response['Response']['Error']['Code']
70
+ message = response['Response']['Error']['Message']
71
+ reqid = response['Response']['RequestId']
72
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
73
+ end
74
+ rescue TencentCloud::Common::TencentCloudSDKException => e
75
+ raise e
76
+ rescue StandardError => e
77
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
78
+ end
79
+
56
80
 
57
81
  end
58
82
  end
@@ -19,25 +19,31 @@ module TencentCloud
19
19
  module V20220519
20
20
  # CreateDataRepositoryTask请求参数结构体
21
21
  class CreateDataRepositoryTaskRequest < TencentCloud::Common::AbstractModel
22
- # @param TaskType: 数据流通任务类型, FS_TO_COS(文件系统到COS Bucket),或者Bucket到文件系统(COS_TO_FS)
22
+ # @param TaskType: 数据流通任务类型, FS_TO_COS(文件系统到COS Bucket),或者COS_TO_FS(COS Bucket到文件系统)
23
23
  # @type TaskType: String
24
- # @param Bucket: bucket名
24
+ # @param Bucket: COS存储桶名
25
25
  # @type Bucket: String
26
26
  # @param FileSystemId: 文件系统ID
27
27
  # @type FileSystemId: String
28
- # @param TaskPath: 对于FS_TO_COS, TaskPath是Bucket映射目录的相对路径, 对于COS_TO_FS是COS上的路径。如果置位空, 则表示全部数据
28
+ # @param TaskPath: 对于FS_TO_COS, TaskPath是Bucket映射目录的相对路径, 对于COS_TO_FS是COS上的路径。如果置为空, 则表示全部数据
29
29
  # @type TaskPath: String
30
30
  # @param TaskName: 任务名称
31
31
  # @type TaskName: String
32
+ # @param RepositoryType: 数据流通方式 MSP_AFM 手动加载 RAW_AFM 按需加载
33
+ # @type RepositoryType: String
34
+ # @param TextLocation: 文件列表下载地址,以http开头
35
+ # @type TextLocation: String
32
36
 
33
- attr_accessor :TaskType, :Bucket, :FileSystemId, :TaskPath, :TaskName
37
+ attr_accessor :TaskType, :Bucket, :FileSystemId, :TaskPath, :TaskName, :RepositoryType, :TextLocation
34
38
 
35
- def initialize(tasktype=nil, bucket=nil, filesystemid=nil, taskpath=nil, taskname=nil)
39
+ def initialize(tasktype=nil, bucket=nil, filesystemid=nil, taskpath=nil, taskname=nil, repositorytype=nil, textlocation=nil)
36
40
  @TaskType = tasktype
37
41
  @Bucket = bucket
38
42
  @FileSystemId = filesystemid
39
43
  @TaskPath = taskpath
40
44
  @TaskName = taskname
45
+ @RepositoryType = repositorytype
46
+ @TextLocation = textlocation
41
47
  end
42
48
 
43
49
  def deserialize(params)
@@ -46,6 +52,8 @@ module TencentCloud
46
52
  @FileSystemId = params['FileSystemId']
47
53
  @TaskPath = params['TaskPath']
48
54
  @TaskName = params['TaskName']
55
+ @RepositoryType = params['RepositoryType']
56
+ @TextLocation = params['TextLocation']
49
57
  end
50
58
  end
51
59
 
@@ -69,6 +77,50 @@ module TencentCloud
69
77
  end
70
78
  end
71
79
 
80
+ # DescribeDataRepositoryTaskStatus请求参数结构体
81
+ class DescribeDataRepositoryTaskStatusRequest < TencentCloud::Common::AbstractModel
82
+ # @param TaskId: task id
83
+ # @type TaskId: String
84
+ # @param FileSystemId: file system id
85
+ # @type FileSystemId: String
86
+
87
+ attr_accessor :TaskId, :FileSystemId
88
+
89
+ def initialize(taskid=nil, filesystemid=nil)
90
+ @TaskId = taskid
91
+ @FileSystemId = filesystemid
92
+ end
93
+
94
+ def deserialize(params)
95
+ @TaskId = params['TaskId']
96
+ @FileSystemId = params['FileSystemId']
97
+ end
98
+ end
99
+
100
+ # DescribeDataRepositoryTaskStatus返回参数结构体
101
+ class DescribeDataRepositoryTaskStatusResponse < TencentCloud::Common::AbstractModel
102
+ # @param TaskId: 任务id
103
+ # @type TaskId: String
104
+ # @param Status: 任务状态 0(初始化中), 1(运行中), 2(已完成), 3(任务失败)
105
+ # @type Status: Integer
106
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
107
+ # @type RequestId: String
108
+
109
+ attr_accessor :TaskId, :Status, :RequestId
110
+
111
+ def initialize(taskid=nil, status=nil, requestid=nil)
112
+ @TaskId = taskid
113
+ @Status = status
114
+ @RequestId = requestid
115
+ end
116
+
117
+ def deserialize(params)
118
+ @TaskId = params['TaskId']
119
+ @Status = params['Status']
120
+ @RequestId = params['RequestId']
121
+ end
122
+ end
123
+
72
124
  end
73
125
  end
74
126
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: tencentcloud-sdk-goosefs
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.0.500
4
+ version: 3.0.501
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-02-02 00:00:00.000000000 Z
11
+ date: 2023-02-03 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: tencentcloud-sdk-common