tencentcloud-sdk-goosefs 3.0.499

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA1:
3
+ metadata.gz: e0ea4b1f8352882ac7948744fed12b18f9ec9022
4
+ data.tar.gz: 7b042957fc9d10a98089c529eb6c1e812e8c1042
5
+ SHA512:
6
+ metadata.gz: e4fc06223e3a0cc7ce243a9330e916f65ac88376fa76948739db5658c771602c77339d711a4a16be760fdd31578439e68148e057fb594984b91ffa9770a163b7
7
+ data.tar.gz: 703b39ae3dceb28a57d08735d5cba3eeeb33af22aed47e95aa391880495d66e6c6a0d4b82f47e2549aa60a118412dd27f69a7f9ac99ddd2d8815bf2e91af4b4f
data/lib/VERSION ADDED
@@ -0,0 +1 @@
1
+ 3.0.499
@@ -0,0 +1,11 @@
1
+ # frozen_string_literal: true
2
+
3
+ require 'tencentcloud-sdk-common'
4
+
5
+ require_relative 'v20220519/client'
6
+ require_relative 'v20220519/models'
7
+
8
+ module TencentCloud
9
+ module Goosefs
10
+ end
11
+ end
@@ -0,0 +1,60 @@
1
+ # frozen_string_literal: true
2
+
3
+ # Copyright (c) 2017-2018 THL A29 Limited, a Tencent company. All Rights Reserved.
4
+ #
5
+ # Licensed under the Apache License, Version 2.0 (the "License");
6
+ # you may not use this file except in compliance with the License.
7
+ # You may obtain a copy of the License at
8
+ #
9
+ # http://www.apache.org/licenses/LICENSE-2.0
10
+ #
11
+ # Unless required by applicable law or agreed to in writing, software
12
+ # distributed under the License is distributed on an "AS IS" BASIS,
13
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14
+ # See the License for the specific language governing permissions and
15
+ # limitations under the License.
16
+
17
+ require 'json'
18
+
19
+ module TencentCloud
20
+ module Goosefs
21
+ module V20220519
22
+ class Client < TencentCloud::Common::AbstractClient
23
+
24
+ def initialize(credential, region, profile = nil)
25
+ api_version = '2022-05-19'
26
+ api_endpoint = 'goosefs.tencentcloudapi.com'
27
+ sdk_version = 'GOOSEFS_' + File.read(File.expand_path('../VERSION', __dir__)).strip
28
+ super(credential, region, api_version, api_endpoint, sdk_version, profile)
29
+ end
30
+
31
+
32
+ # 创建数据流通任务,包括从将文件系统的数据上传到存储桶下, 以及从存储桶下载到文件系统里。
33
+
34
+ # @param request: Request instance for CreateDataRepositoryTask.
35
+ # @type request: :class:`Tencentcloud::goosefs::V20220519::CreateDataRepositoryTaskRequest`
36
+ # @rtype: :class:`Tencentcloud::goosefs::V20220519::CreateDataRepositoryTaskResponse`
37
+ def CreateDataRepositoryTask(request)
38
+ body = send_request('CreateDataRepositoryTask', request.serialize)
39
+ response = JSON.parse(body)
40
+ if response['Response'].key?('Error') == false
41
+ model = CreateDataRepositoryTaskResponse.new
42
+ model.deserialize(response['Response'])
43
+ model
44
+ else
45
+ code = response['Response']['Error']['Code']
46
+ message = response['Response']['Error']['Message']
47
+ reqid = response['Response']['RequestId']
48
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
49
+ end
50
+ rescue TencentCloud::Common::TencentCloudSDKException => e
51
+ raise e
52
+ rescue StandardError => e
53
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
54
+ end
55
+
56
+
57
+ end
58
+ end
59
+ end
60
+ end
@@ -0,0 +1,75 @@
1
+ # frozen_string_literal: true
2
+
3
+ # Copyright (c) 2017-2018 THL A29 Limited, a Tencent company. All Rights Reserved.
4
+ #
5
+ # Licensed under the Apache License, Version 2.0 (the "License");
6
+ # you may not use this file except in compliance with the License.
7
+ # You may obtain a copy of the License at
8
+ #
9
+ # http://www.apache.org/licenses/LICENSE-2.0
10
+ #
11
+ # Unless required by applicable law or agreed to in writing, software
12
+ # distributed under the License is distributed on an "AS IS" BASIS,
13
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14
+ # See the License for the specific language governing permissions and
15
+ # limitations under the License.
16
+
17
+ module TencentCloud
18
+ module Goosefs
19
+ module V20220519
20
+ # CreateDataRepositoryTask请求参数结构体
21
+ class CreateDataRepositoryTaskRequest < TencentCloud::Common::AbstractModel
22
+ # @param TaskType: 数据流通任务类型, FS_TO_COS(文件系统到COS Bucket),或者Bucket到文件系统(COS_TO_FS)
23
+ # @type TaskType: String
24
+ # @param Bucket: bucket名
25
+ # @type Bucket: String
26
+ # @param FileSystemId: 文件系统ID
27
+ # @type FileSystemId: String
28
+ # @param TaskPath: 对于FS_TO_COS, TaskPath是Bucket映射目录的相对路径, 对于COS_TO_FS是COS上的路径。如果置位空, 则表示全部数据
29
+ # @type TaskPath: String
30
+ # @param TaskName: 任务名称
31
+ # @type TaskName: String
32
+
33
+ attr_accessor :TaskType, :Bucket, :FileSystemId, :TaskPath, :TaskName
34
+
35
+ def initialize(tasktype=nil, bucket=nil, filesystemid=nil, taskpath=nil, taskname=nil)
36
+ @TaskType = tasktype
37
+ @Bucket = bucket
38
+ @FileSystemId = filesystemid
39
+ @TaskPath = taskpath
40
+ @TaskName = taskname
41
+ end
42
+
43
+ def deserialize(params)
44
+ @TaskType = params['TaskType']
45
+ @Bucket = params['Bucket']
46
+ @FileSystemId = params['FileSystemId']
47
+ @TaskPath = params['TaskPath']
48
+ @TaskName = params['TaskName']
49
+ end
50
+ end
51
+
52
+ # CreateDataRepositoryTask返回参数结构体
53
+ class CreateDataRepositoryTaskResponse < TencentCloud::Common::AbstractModel
54
+ # @param TaskId: 任务ID
55
+ # @type TaskId: String
56
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
57
+ # @type RequestId: String
58
+
59
+ attr_accessor :TaskId, :RequestId
60
+
61
+ def initialize(taskid=nil, requestid=nil)
62
+ @TaskId = taskid
63
+ @RequestId = requestid
64
+ end
65
+
66
+ def deserialize(params)
67
+ @TaskId = params['TaskId']
68
+ @RequestId = params['RequestId']
69
+ end
70
+ end
71
+
72
+ end
73
+ end
74
+ end
75
+
metadata ADDED
@@ -0,0 +1,66 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: tencentcloud-sdk-goosefs
3
+ version: !ruby/object:Gem::Version
4
+ version: 3.0.499
5
+ platform: ruby
6
+ authors:
7
+ - Tencent Cloud
8
+ autorequire:
9
+ bindir: bin
10
+ cert_chain: []
11
+ date: 2023-02-01 00:00:00.000000000 Z
12
+ dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: tencentcloud-sdk-common
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - ~>
18
+ - !ruby/object:Gem::Version
19
+ version: '3.0'
20
+ type: :runtime
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - ~>
25
+ - !ruby/object:Gem::Version
26
+ version: '3.0'
27
+ description: Tencent Cloud Ruby SDK is the official software development kit, which
28
+ allows Ruby developers to write software that makes use of Tencent Cloud service
29
+ GOOSEFS.
30
+ email:
31
+ - tencentcloudapi@tencent.com
32
+ executables: []
33
+ extensions: []
34
+ extra_rdoc_files: []
35
+ files:
36
+ - lib/v20220519/client.rb
37
+ - lib/v20220519/models.rb
38
+ - lib/tencentcloud-sdk-goosefs.rb
39
+ - lib/VERSION
40
+ homepage: https://github.com/TencentCloud/tencentcloud-sdk-ruby
41
+ licenses:
42
+ - Apache-2.0
43
+ metadata:
44
+ source_code_uri: https://github.com/TencentCloud/tencentcloud-sdk-ruby/tencentcloud-sdk-goosefs
45
+ changelog_uri: https://github.com/TencentCloud/tencentcloud-sdk-ruby/blob/master/CHANGELOG.md
46
+ post_install_message:
47
+ rdoc_options: []
48
+ require_paths:
49
+ - lib
50
+ required_ruby_version: !ruby/object:Gem::Requirement
51
+ requirements:
52
+ - - '>='
53
+ - !ruby/object:Gem::Version
54
+ version: '0'
55
+ required_rubygems_version: !ruby/object:Gem::Requirement
56
+ requirements:
57
+ - - '>='
58
+ - !ruby/object:Gem::Version
59
+ version: '0'
60
+ requirements: []
61
+ rubyforge_project:
62
+ rubygems_version: 2.0.14
63
+ signing_key:
64
+ specification_version: 4
65
+ summary: Tencent Cloud SDK for Ruby - GOOSEFS
66
+ test_files: []