tencentcloud-sdk-dataintegration 1.0.364
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 +7 -0
- data/lib/VERSION +1 -0
- data/lib/tencentcloud-sdk-dataintegration.rb +11 -0
- data/lib/v20220613/client.rb +60 -0
- data/lib/v20220613/models.rb +90 -0
- metadata +66 -0
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA1:
|
3
|
+
metadata.gz: ced19c1ec3d45b90e7a1245462323e51d73c7aff
|
4
|
+
data.tar.gz: 1901fc14f49cb060b299841bca702a259b887dd2
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: 41488400d745d211d535e3b105391c1439266407991bbe5836c7e419120879870f8dcd81d096d17e814f836ccc81e85b76487a9b0c7a620c7fddf6316973e180
|
7
|
+
data.tar.gz: 51764915a9874a06687f087b6645f70d742f6d26cf9f77ddf1a25165c03cc0636bda6ccb38b3718de36a8dd0b65bbf0e2a749e1b0df21545229af5878c658543
|
data/lib/VERSION
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
1.0.364
|
@@ -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 Dataintegration
|
21
|
+
module V20220613
|
22
|
+
class Client < TencentCloud::Common::AbstractClient
|
23
|
+
|
24
|
+
def initialize(credential, region, profile = nil)
|
25
|
+
api_version = '2022-06-13'
|
26
|
+
api_endpoint = 'dataintegration.tencentcloudapi.com'
|
27
|
+
sdk_version = 'DATAINTEGRATION_' + File.read(File.expand_path('../VERSION', __dir__)).strip
|
28
|
+
super(credential, region, api_version, api_endpoint, sdk_version, profile)
|
29
|
+
end
|
30
|
+
|
31
|
+
|
32
|
+
# 使用SDK将数据上报到DIP
|
33
|
+
|
34
|
+
# @param request: Request instance for SendMessage.
|
35
|
+
# @type request: :class:`Tencentcloud::dataintegration::V20220613::SendMessageRequest`
|
36
|
+
# @rtype: :class:`Tencentcloud::dataintegration::V20220613::SendMessageResponse`
|
37
|
+
def SendMessage(request)
|
38
|
+
body = send_request('SendMessage', request.serialize)
|
39
|
+
response = JSON.parse(body)
|
40
|
+
if response['Response'].key?('Error') == false
|
41
|
+
model = SendMessageResponse.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,90 @@
|
|
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 Dataintegration
|
19
|
+
module V20220613
|
20
|
+
# 批量消息
|
21
|
+
class BatchContent < TencentCloud::Common::AbstractModel
|
22
|
+
# @param Body: 消息体
|
23
|
+
# @type Body: String
|
24
|
+
# @param Key: 消息的键名
|
25
|
+
# @type Key: String
|
26
|
+
|
27
|
+
attr_accessor :Body, :Key
|
28
|
+
|
29
|
+
def initialize(body=nil, key=nil)
|
30
|
+
@Body = body
|
31
|
+
@Key = key
|
32
|
+
end
|
33
|
+
|
34
|
+
def deserialize(params)
|
35
|
+
@Body = params['Body']
|
36
|
+
@Key = params['Key']
|
37
|
+
end
|
38
|
+
end
|
39
|
+
|
40
|
+
# SendMessage请求参数结构体
|
41
|
+
class SendMessageRequest < TencentCloud::Common::AbstractModel
|
42
|
+
# @param DataHubId: 接入资源ID
|
43
|
+
# @type DataHubId: String
|
44
|
+
# @param Message: 批量消息
|
45
|
+
# @type Message: Array
|
46
|
+
|
47
|
+
attr_accessor :DataHubId, :Message
|
48
|
+
|
49
|
+
def initialize(datahubid=nil, message=nil)
|
50
|
+
@DataHubId = datahubid
|
51
|
+
@Message = message
|
52
|
+
end
|
53
|
+
|
54
|
+
def deserialize(params)
|
55
|
+
@DataHubId = params['DataHubId']
|
56
|
+
unless params['Message'].nil?
|
57
|
+
@Message = []
|
58
|
+
params['Message'].each do |i|
|
59
|
+
batchcontent_tmp = BatchContent.new
|
60
|
+
batchcontent_tmp.deserialize(i)
|
61
|
+
@Message << batchcontent_tmp
|
62
|
+
end
|
63
|
+
end
|
64
|
+
end
|
65
|
+
end
|
66
|
+
|
67
|
+
# SendMessage返回参数结构体
|
68
|
+
class SendMessageResponse < TencentCloud::Common::AbstractModel
|
69
|
+
# @param MessageId: 消息ID
|
70
|
+
# @type MessageId: Array
|
71
|
+
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
72
|
+
# @type RequestId: String
|
73
|
+
|
74
|
+
attr_accessor :MessageId, :RequestId
|
75
|
+
|
76
|
+
def initialize(messageid=nil, requestid=nil)
|
77
|
+
@MessageId = messageid
|
78
|
+
@RequestId = requestid
|
79
|
+
end
|
80
|
+
|
81
|
+
def deserialize(params)
|
82
|
+
@MessageId = params['MessageId']
|
83
|
+
@RequestId = params['RequestId']
|
84
|
+
end
|
85
|
+
end
|
86
|
+
|
87
|
+
end
|
88
|
+
end
|
89
|
+
end
|
90
|
+
|
metadata
ADDED
@@ -0,0 +1,66 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: tencentcloud-sdk-dataintegration
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 1.0.364
|
5
|
+
platform: ruby
|
6
|
+
authors:
|
7
|
+
- Tencent Cloud
|
8
|
+
autorequire:
|
9
|
+
bindir: bin
|
10
|
+
cert_chain: []
|
11
|
+
date: 2022-07-26 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
|
+
DATAINTEGRATION.
|
30
|
+
email:
|
31
|
+
- tencentcloudapi@tencent.com
|
32
|
+
executables: []
|
33
|
+
extensions: []
|
34
|
+
extra_rdoc_files: []
|
35
|
+
files:
|
36
|
+
- lib/VERSION
|
37
|
+
- lib/tencentcloud-sdk-dataintegration.rb
|
38
|
+
- lib/v20220613/client.rb
|
39
|
+
- lib/v20220613/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-dataintegration
|
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 - DATAINTEGRATION
|
66
|
+
test_files: []
|