tencentcloud-sdk-tsw 1.0.200

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: 5f445f3dea6c6f1a67425b589daa4b3b9e7a932e
4
+ data.tar.gz: 6cb44db5e8e199f89e2954760e31c68a11b7b62e
5
+ SHA512:
6
+ metadata.gz: ed9784e9c10ac6b525f631ec95e0ad5ebf5d796a9c85ae98f51a7a07e850a4bf2ede77d72d53cc8b00e35d4ab125e9bfa42bd554f9a7fdec0739c228eeb95ea4
7
+ data.tar.gz: 6eb286f2d9f77ef469b21bf75faa39bf1ccf258686eef952f177f9689cce8016991ea357d75a618a3b1c1fba48fc06c028c5cfb081aaac3bfbbcd27520e8587a
data/lib/VERSION ADDED
@@ -0,0 +1 @@
1
+ 1.0.200
@@ -0,0 +1,14 @@
1
+ # frozen_string_literal: true
2
+
3
+ require 'tencentcloud-sdk-common'
4
+
5
+ require_relative 'v20200924/client'
6
+ require_relative 'v20200924/models'
7
+
8
+ require_relative 'v20210412/client'
9
+ require_relative 'v20210412/models'
10
+
11
+ module TencentCloud
12
+ module Tsw
13
+ end
14
+ 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 Tsw
21
+ module V20200924
22
+ class Client < TencentCloud::Common::AbstractClient
23
+
24
+ def initialize(credential, region, profile = nil)
25
+ api_version = '2020-09-24'
26
+ api_endpoint = 'tsw.tencentcloudapi.com'
27
+ sdk_version = 'TSW_' + 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 DescribeAgentShell.
35
+ # @type request: :class:`Tencentcloud::tsw::V20200924::DescribeAgentShellRequest`
36
+ # @rtype: :class:`Tencentcloud::tsw::V20200924::DescribeAgentShellResponse`
37
+ def DescribeAgentShell(request)
38
+ body = send_request('DescribeAgentShell', request.serialize)
39
+ response = JSON.parse(body)
40
+ if response['Response'].key?('Error') == false
41
+ model = DescribeAgentShellResponse.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,110 @@
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 Tsw
19
+ module V20200924
20
+ # agent安装脚本串
21
+ class AgentShell < TencentCloud::Common::AbstractModel
22
+ # @param Token: 鉴权token
23
+ # 注意:此字段可能返回 null,表示取不到有效值。
24
+ # @type Token: String
25
+ # @param EtlIp: 数据接收Ip
26
+ # 注意:此字段可能返回 null,表示取不到有效值。
27
+ # @type EtlIp: String
28
+ # @param EtlPort: 数据接收port
29
+ # 注意:此字段可能返回 null,表示取不到有效值。
30
+ # @type EtlPort: String
31
+ # @param ByHandAccess: 手动接入脚本串
32
+ # 注意:此字段可能返回 null,表示取不到有效值。
33
+ # @type ByHandAccess: String
34
+ # @param ByShellAccess: 自动接入脚本串
35
+ # 注意:此字段可能返回 null,表示取不到有效值。
36
+ # @type ByShellAccess: String
37
+ # @param SkyWalkingPort: SkyWalking数据接收port
38
+ # 注意:此字段可能返回 null,表示取不到有效值。
39
+ # @type SkyWalkingPort: String
40
+ # @param ZipkinPort: Zipkin数据接收port
41
+ # 注意:此字段可能返回 null,表示取不到有效值。
42
+ # @type ZipkinPort: String
43
+ # @param JaegerPort: Jaeger数据接收port
44
+ # 注意:此字段可能返回 null,表示取不到有效值。
45
+ # @type JaegerPort: String
46
+
47
+ attr_accessor :Token, :EtlIp, :EtlPort, :ByHandAccess, :ByShellAccess, :SkyWalkingPort, :ZipkinPort, :JaegerPort
48
+
49
+ def initialize(token=nil, etlip=nil, etlport=nil, byhandaccess=nil, byshellaccess=nil, skywalkingport=nil, zipkinport=nil, jaegerport=nil)
50
+ @Token = token
51
+ @EtlIp = etlip
52
+ @EtlPort = etlport
53
+ @ByHandAccess = byhandaccess
54
+ @ByShellAccess = byshellaccess
55
+ @SkyWalkingPort = skywalkingport
56
+ @ZipkinPort = zipkinport
57
+ @JaegerPort = jaegerport
58
+ end
59
+
60
+ def deserialize(params)
61
+ @Token = params['Token']
62
+ @EtlIp = params['EtlIp']
63
+ @EtlPort = params['EtlPort']
64
+ @ByHandAccess = params['ByHandAccess']
65
+ @ByShellAccess = params['ByShellAccess']
66
+ @SkyWalkingPort = params['SkyWalkingPort']
67
+ @ZipkinPort = params['ZipkinPort']
68
+ @JaegerPort = params['JaegerPort']
69
+ end
70
+ end
71
+
72
+ # DescribeAgentShell请求参数结构体
73
+ class DescribeAgentShellRequest < TencentCloud::Common::AbstractModel
74
+
75
+
76
+ def initialize()
77
+ end
78
+
79
+ def deserialize(params)
80
+ end
81
+ end
82
+
83
+ # DescribeAgentShell返回参数结构体
84
+ class DescribeAgentShellResponse < TencentCloud::Common::AbstractModel
85
+ # @param Result: 接入信息
86
+ # 注意:此字段可能返回 null,表示取不到有效值。
87
+ # @type Result: :class:`Tencentcloud::Tsw.v20200924.models.AgentShell`
88
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
89
+ # @type RequestId: String
90
+
91
+ attr_accessor :Result, :RequestId
92
+
93
+ def initialize(result=nil, requestid=nil)
94
+ @Result = result
95
+ @RequestId = requestid
96
+ end
97
+
98
+ def deserialize(params)
99
+ unless params['Result'].nil?
100
+ @Result = AgentShell.new
101
+ @Result.deserialize(params['Result'])
102
+ end
103
+ @RequestId = params['RequestId']
104
+ end
105
+ end
106
+
107
+ end
108
+ end
109
+ end
110
+
@@ -0,0 +1,108 @@
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 Tsw
21
+ module V20210412
22
+ class Client < TencentCloud::Common::AbstractClient
23
+
24
+ def initialize(credential, region, profile = nil)
25
+ api_version = '2021-04-12'
26
+ api_endpoint = 'tsw.tencentcloudapi.com'
27
+ sdk_version = 'TSW_' + 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 DescribeComponentAlertObject.
35
+ # @type request: :class:`Tencentcloud::tsw::V20210412::DescribeComponentAlertObjectRequest`
36
+ # @rtype: :class:`Tencentcloud::tsw::V20210412::DescribeComponentAlertObjectResponse`
37
+ def DescribeComponentAlertObject(request)
38
+ body = send_request('DescribeComponentAlertObject', request.serialize)
39
+ response = JSON.parse(body)
40
+ if response['Response'].key?('Error') == false
41
+ model = DescribeComponentAlertObjectResponse.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
+
58
+ # @param request: Request instance for DescribeServiceAlertObject.
59
+ # @type request: :class:`Tencentcloud::tsw::V20210412::DescribeServiceAlertObjectRequest`
60
+ # @rtype: :class:`Tencentcloud::tsw::V20210412::DescribeServiceAlertObjectResponse`
61
+ def DescribeServiceAlertObject(request)
62
+ body = send_request('DescribeServiceAlertObject', request.serialize)
63
+ response = JSON.parse(body)
64
+ if response['Response'].key?('Error') == false
65
+ model = DescribeServiceAlertObjectResponse.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
+
80
+ # 查询token
81
+
82
+ # @param request: Request instance for DescribeToken.
83
+ # @type request: :class:`Tencentcloud::tsw::V20210412::DescribeTokenRequest`
84
+ # @rtype: :class:`Tencentcloud::tsw::V20210412::DescribeTokenResponse`
85
+ def DescribeToken(request)
86
+ body = send_request('DescribeToken', request.serialize)
87
+ response = JSON.parse(body)
88
+ if response['Response'].key?('Error') == false
89
+ model = DescribeTokenResponse.new
90
+ model.deserialize(response['Response'])
91
+ model
92
+ else
93
+ code = response['Response']['Error']['Code']
94
+ message = response['Response']['Error']['Message']
95
+ reqid = response['Response']['RequestId']
96
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
97
+ end
98
+ rescue TencentCloud::Common::TencentCloudSDKException => e
99
+ raise e
100
+ rescue StandardError => e
101
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
102
+ end
103
+
104
+
105
+ end
106
+ end
107
+ end
108
+ end
@@ -0,0 +1,113 @@
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 Tsw
19
+ module V20210412
20
+ # DescribeComponentAlertObject请求参数结构体
21
+ class DescribeComponentAlertObjectRequest < TencentCloud::Common::AbstractModel
22
+
23
+
24
+ def initialize()
25
+ end
26
+
27
+ def deserialize(params)
28
+ end
29
+ end
30
+
31
+ # DescribeComponentAlertObject返回参数结构体
32
+ class DescribeComponentAlertObjectResponse < TencentCloud::Common::AbstractModel
33
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
34
+ # @type RequestId: String
35
+
36
+ attr_accessor :RequestId
37
+
38
+ def initialize(requestid=nil)
39
+ @RequestId = requestid
40
+ end
41
+
42
+ def deserialize(params)
43
+ @RequestId = params['RequestId']
44
+ end
45
+ end
46
+
47
+ # DescribeServiceAlertObject请求参数结构体
48
+ class DescribeServiceAlertObjectRequest < TencentCloud::Common::AbstractModel
49
+
50
+
51
+ def initialize()
52
+ end
53
+
54
+ def deserialize(params)
55
+ end
56
+ end
57
+
58
+ # DescribeServiceAlertObject返回参数结构体
59
+ class DescribeServiceAlertObjectResponse < TencentCloud::Common::AbstractModel
60
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
61
+ # @type RequestId: String
62
+
63
+ attr_accessor :RequestId
64
+
65
+ def initialize(requestid=nil)
66
+ @RequestId = requestid
67
+ end
68
+
69
+ def deserialize(params)
70
+ @RequestId = params['RequestId']
71
+ end
72
+ end
73
+
74
+ # DescribeToken请求参数结构体
75
+ class DescribeTokenRequest < TencentCloud::Common::AbstractModel
76
+ # @param Namespace: 命名空间
77
+ # @type Namespace: String
78
+
79
+ attr_accessor :Namespace
80
+
81
+ def initialize(namespace=nil)
82
+ @Namespace = namespace
83
+ end
84
+
85
+ def deserialize(params)
86
+ @Namespace = params['Namespace']
87
+ end
88
+ end
89
+
90
+ # DescribeToken返回参数结构体
91
+ class DescribeTokenResponse < TencentCloud::Common::AbstractModel
92
+ # @param Result: token
93
+ # @type Result: String
94
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
95
+ # @type RequestId: String
96
+
97
+ attr_accessor :Result, :RequestId
98
+
99
+ def initialize(result=nil, requestid=nil)
100
+ @Result = result
101
+ @RequestId = requestid
102
+ end
103
+
104
+ def deserialize(params)
105
+ @Result = params['Result']
106
+ @RequestId = params['RequestId']
107
+ end
108
+ end
109
+
110
+ end
111
+ end
112
+ end
113
+
metadata ADDED
@@ -0,0 +1,68 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: tencentcloud-sdk-tsw
3
+ version: !ruby/object:Gem::Version
4
+ version: 1.0.200
5
+ platform: ruby
6
+ authors:
7
+ - Tencent Cloud
8
+ autorequire:
9
+ bindir: bin
10
+ cert_chain: []
11
+ date: 2021-11-11 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
+ TSW.
30
+ email:
31
+ - tencentcloudapi@tencent.com
32
+ executables: []
33
+ extensions: []
34
+ extra_rdoc_files: []
35
+ files:
36
+ - lib/VERSION
37
+ - lib/tencentcloud-sdk-tsw.rb
38
+ - lib/v20200924/client.rb
39
+ - lib/v20200924/models.rb
40
+ - lib/v20210412/client.rb
41
+ - lib/v20210412/models.rb
42
+ homepage: https://github.com/TencentCloud/tencentcloud-sdk-ruby
43
+ licenses:
44
+ - Apache-2.0
45
+ metadata:
46
+ source_code_uri: https://github.com/TencentCloud/tencentcloud-sdk-ruby/tencentcloud-sdk-tsw
47
+ changelog_uri: https://github.com/TencentCloud/tencentcloud-sdk-ruby/blob/master/CHANGELOG.md
48
+ post_install_message:
49
+ rdoc_options: []
50
+ require_paths:
51
+ - lib
52
+ required_ruby_version: !ruby/object:Gem::Requirement
53
+ requirements:
54
+ - - ">="
55
+ - !ruby/object:Gem::Version
56
+ version: '0'
57
+ required_rubygems_version: !ruby/object:Gem::Requirement
58
+ requirements:
59
+ - - ">="
60
+ - !ruby/object:Gem::Version
61
+ version: '0'
62
+ requirements: []
63
+ rubyforge_project:
64
+ rubygems_version: 2.6.14
65
+ signing_key:
66
+ specification_version: 4
67
+ summary: Tencent Cloud SDK for Ruby - TSW
68
+ test_files: []