tencentcloud-sdk-casb 1.0.271

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: 6b37c0655c7b293f1f5b18fa5ac0043a4c9f4bd9
4
+ data.tar.gz: dfe744c37d7780a49e64bbd0ad0349b909eeed2e
5
+ SHA512:
6
+ metadata.gz: b3d0bf3c18ade8daac2e9b1f1e5de820e128db6e714d9fa47f3c9851a249e079f2cf4ef6cfea8f6b1a70bff29bb937f97e77271233a1e373b4bd0c777edd6547
7
+ data.tar.gz: 0ab1aa064973d4e279b857b1be0b5dbfdec96a45bdbb424112baf01713d6046c375fed933df5d13eaa4ab6022f33a5e2989c74002af4f1ad09e55377e072b754
data/lib/VERSION ADDED
@@ -0,0 +1 @@
1
+ 1.0.271
@@ -0,0 +1,11 @@
1
+ # frozen_string_literal: true
2
+
3
+ require 'tencentcloud-sdk-common'
4
+
5
+ require_relative 'v20200507/client'
6
+ require_relative 'v20200507/models'
7
+
8
+ module TencentCloud
9
+ module Casb
10
+ end
11
+ end
@@ -0,0 +1,66 @@
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 Casb
21
+ module V20200507
22
+ class Client < TencentCloud::Common::AbstractClient
23
+
24
+ def initialize(credential, region, profile = nil)
25
+ api_version = '2020-05-07'
26
+ api_endpoint = 'casb.tencentcloudapi.com'
27
+ sdk_version = 'CASB_' + File.read(File.expand_path('../VERSION', __dir__)).strip
28
+ super(credential, region, api_version, api_endpoint, sdk_version, profile)
29
+ end
30
+
31
+
32
+ # 同region下 根据用户输入的CasbId,MetaDataId 复制策略到DstCasbId,MetaDataId中。
33
+ # 场景1:
34
+ # 相同CasbId,不同MetadataId 下策略复制
35
+ # 场景2:
36
+ # 不同Casbid,不同MetaDataId 下策略复制
37
+ # 场景3:
38
+ # 相同CasbId,相同MetaDataId 且 DatabaseName不同 策略复制
39
+
40
+ # @param request: Request instance for CopyCryptoColumnPolicy.
41
+ # @type request: :class:`Tencentcloud::casb::V20200507::CopyCryptoColumnPolicyRequest`
42
+ # @rtype: :class:`Tencentcloud::casb::V20200507::CopyCryptoColumnPolicyResponse`
43
+ def CopyCryptoColumnPolicy(request)
44
+ body = send_request('CopyCryptoColumnPolicy', request.serialize)
45
+ response = JSON.parse(body)
46
+ if response['Response'].key?('Error') == false
47
+ model = CopyCryptoColumnPolicyResponse.new
48
+ model.deserialize(response['Response'])
49
+ model
50
+ else
51
+ code = response['Response']['Error']['Code']
52
+ message = response['Response']['Error']['Message']
53
+ reqid = response['Response']['RequestId']
54
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
55
+ end
56
+ rescue TencentCloud::Common::TencentCloudSDKException => e
57
+ raise e
58
+ rescue StandardError => e
59
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
60
+ end
61
+
62
+
63
+ end
64
+ end
65
+ end
66
+ end
@@ -0,0 +1,102 @@
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 Casb
19
+ module V20200507
20
+ # CopyCryptoColumnPolicy请求参数结构体
21
+ class CopyCryptoColumnPolicyRequest < TencentCloud::Common::AbstractModel
22
+ # @param CasbId: 实例Id
23
+ # @type CasbId: String
24
+ # @param MetaDataId: 元数据id
25
+ # @type MetaDataId: String
26
+ # @param DstCasbId: 目标实例Id 如果和实例Id相同则为同CasbId下的策略复制
27
+ # @type DstCasbId: String
28
+ # @param DstMetaDataId: 目标实例Id 如果和[元数据id]相同则为同元数据下的策略复制
29
+ # @type DstMetaDataId: String
30
+ # @param SrcTableFilter: 筛选来源数据库的表
31
+ # @type SrcTableFilter: Array
32
+ # @param DstDatabaseName: 复制同元数据下的策略,需要填写目标数据库名
33
+ # @type DstDatabaseName: String
34
+
35
+ attr_accessor :CasbId, :MetaDataId, :DstCasbId, :DstMetaDataId, :SrcTableFilter, :DstDatabaseName
36
+
37
+ def initialize(casbid=nil, metadataid=nil, dstcasbid=nil, dstmetadataid=nil, srctablefilter=nil, dstdatabasename=nil)
38
+ @CasbId = casbid
39
+ @MetaDataId = metadataid
40
+ @DstCasbId = dstcasbid
41
+ @DstMetaDataId = dstmetadataid
42
+ @SrcTableFilter = srctablefilter
43
+ @DstDatabaseName = dstdatabasename
44
+ end
45
+
46
+ def deserialize(params)
47
+ @CasbId = params['CasbId']
48
+ @MetaDataId = params['MetaDataId']
49
+ @DstCasbId = params['DstCasbId']
50
+ @DstMetaDataId = params['DstMetaDataId']
51
+ unless params['SrcTableFilter'].nil?
52
+ @SrcTableFilter = []
53
+ params['SrcTableFilter'].each do |i|
54
+ cryptocopycolumnpolicytablefilter_tmp = CryptoCopyColumnPolicyTableFilter.new
55
+ cryptocopycolumnpolicytablefilter_tmp.deserialize(i)
56
+ @SrcTableFilter << cryptocopycolumnpolicytablefilter_tmp
57
+ end
58
+ end
59
+ @DstDatabaseName = params['DstDatabaseName']
60
+ end
61
+ end
62
+
63
+ # CopyCryptoColumnPolicy返回参数结构体
64
+ class CopyCryptoColumnPolicyResponse < TencentCloud::Common::AbstractModel
65
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
66
+ # @type RequestId: String
67
+
68
+ attr_accessor :RequestId
69
+
70
+ def initialize(requestid=nil)
71
+ @RequestId = requestid
72
+ end
73
+
74
+ def deserialize(params)
75
+ @RequestId = params['RequestId']
76
+ end
77
+ end
78
+
79
+ # 策略迁移表信息筛选
80
+ class CryptoCopyColumnPolicyTableFilter < TencentCloud::Common::AbstractModel
81
+ # @param DatabaseName: 数据库名称
82
+ # @type DatabaseName: String
83
+ # @param TableNameSet: 表名称
84
+ # @type TableNameSet: Array
85
+
86
+ attr_accessor :DatabaseName, :TableNameSet
87
+
88
+ def initialize(databasename=nil, tablenameset=nil)
89
+ @DatabaseName = databasename
90
+ @TableNameSet = tablenameset
91
+ end
92
+
93
+ def deserialize(params)
94
+ @DatabaseName = params['DatabaseName']
95
+ @TableNameSet = params['TableNameSet']
96
+ end
97
+ end
98
+
99
+ end
100
+ end
101
+ end
102
+
metadata ADDED
@@ -0,0 +1,66 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: tencentcloud-sdk-casb
3
+ version: !ruby/object:Gem::Version
4
+ version: 1.0.271
5
+ platform: ruby
6
+ authors:
7
+ - Tencent Cloud
8
+ autorequire:
9
+ bindir: bin
10
+ cert_chain: []
11
+ date: 2022-03-07 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: '1.0'
20
+ type: :runtime
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - "~>"
25
+ - !ruby/object:Gem::Version
26
+ version: '1.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
+ CASB.
30
+ email:
31
+ - tencentcloudapi@tencent.com
32
+ executables: []
33
+ extensions: []
34
+ extra_rdoc_files: []
35
+ files:
36
+ - lib/VERSION
37
+ - lib/tencentcloud-sdk-casb.rb
38
+ - lib/v20200507/client.rb
39
+ - lib/v20200507/models.rb
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-casb
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.6.14
63
+ signing_key:
64
+ specification_version: 4
65
+ summary: Tencent Cloud SDK for Ruby - CASB
66
+ test_files: []