tencentcloud-sdk-tchd 3.0.610

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 ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA1:
3
+ metadata.gz: 8fd0ed862329cf28c6714650a346485053a5e53b
4
+ data.tar.gz: 56666fce9c1b58849100a9fba19ad86a14dc2006
5
+ SHA512:
6
+ metadata.gz: 667ae29ec8889d0e5a85263ab49cf7047a0c130b7743c3a5b215f34440df00ffd71ba084ed18318fa0be497948f4be28597221bada25fc81a1130a3c252bf671
7
+ data.tar.gz: 3b90999099ff91bb5cf1d56e0c4e794485a74559573f6209b1df5bbf2dbd9d467665da574dd05235c14c28da30687d485d9bdde9afc29d1ffaf930d056af0e95
data/lib/VERSION ADDED
@@ -0,0 +1 @@
1
+ 3.0.610
@@ -0,0 +1,11 @@
1
+ # frozen_string_literal: true
2
+
3
+ require 'tencentcloud-sdk-common'
4
+
5
+ require_relative 'v20230306/client'
6
+ require_relative 'v20230306/models'
7
+
8
+ module TencentCloud
9
+ module Tchd
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 Tchd
21
+ module V20230306
22
+ class Client < TencentCloud::Common::AbstractClient
23
+
24
+ def initialize(credential, region, profile = nil)
25
+ api_version = '2023-03-06'
26
+ api_endpoint = 'tchd.tencentcloudapi.com'
27
+ sdk_version = 'TCHD_' + 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 DescribeEvents.
35
+ # @type request: :class:`Tencentcloud::tchd::V20230306::DescribeEventsRequest`
36
+ # @rtype: :class:`Tencentcloud::tchd::V20230306::DescribeEventsResponse`
37
+ def DescribeEvents(request)
38
+ body = send_request('DescribeEvents', request.serialize)
39
+ response = JSON.parse(body)
40
+ if response['Response'].key?('Error') == false
41
+ model = DescribeEventsResponse.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,137 @@
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 Tchd
19
+ module V20230306
20
+ # DescribeEvents请求参数结构体
21
+ class DescribeEventsRequest < TencentCloud::Common::AbstractModel
22
+ # @param EventDate: 事件的发生日期
23
+ # @type EventDate: String
24
+ # @param ProductIds: 1. 不指定产品列表时将查询所有产品。
25
+ # 2. 产品ID示例:cvm、lb、cdb、cdn、crs
26
+ # @type ProductIds: Array
27
+ # @param RegionIds: 1. 不指定地域列表时将查询所有地域。
28
+ # 2. 查询非区域性产品事件时,地域ID指定为:non-regional
29
+ # 3. 其他地域ID取值请参考:https://cloud.tencent.com/document/api/213/15692
30
+ # @type RegionIds: Array
31
+
32
+ attr_accessor :EventDate, :ProductIds, :RegionIds
33
+
34
+ def initialize(eventdate=nil, productids=nil, regionids=nil)
35
+ @EventDate = eventdate
36
+ @ProductIds = productids
37
+ @RegionIds = regionids
38
+ end
39
+
40
+ def deserialize(params)
41
+ @EventDate = params['EventDate']
42
+ @ProductIds = params['ProductIds']
43
+ @RegionIds = params['RegionIds']
44
+ end
45
+ end
46
+
47
+ # DescribeEvents返回参数结构体
48
+ class DescribeEventsResponse < TencentCloud::Common::AbstractModel
49
+ # @param Data: 事件详情列表
50
+ # @type Data: :class:`Tencentcloud::Tchd.v20230306.models.ProductEventList`
51
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
52
+ # @type RequestId: String
53
+
54
+ attr_accessor :Data, :RequestId
55
+
56
+ def initialize(data=nil, requestid=nil)
57
+ @Data = data
58
+ @RequestId = requestid
59
+ end
60
+
61
+ def deserialize(params)
62
+ unless params['Data'].nil?
63
+ @Data = ProductEventList.new
64
+ @Data.deserialize(params['Data'])
65
+ end
66
+ @RequestId = params['RequestId']
67
+ end
68
+ end
69
+
70
+ # 事件详情信息,包含:产品名称、地域名称、事件开始时间、事件结束时间、事件当前状态;
71
+ class EventDetail < TencentCloud::Common::AbstractModel
72
+ # @param ProductId: 产品ID
73
+ # @type ProductId: String
74
+ # @param ProductName: 产品名称
75
+ # @type ProductName: String
76
+ # @param RegionId: 地域ID,非区域性地域返回non-regional
77
+ # @type RegionId: String
78
+ # @param RegionName: 地域名称
79
+ # @type RegionName: String
80
+ # @param StartTime: 事件开始时间
81
+ # @type StartTime: String
82
+ # @param EndTime: 事件结束时间,当事件正在发生还未结束时,结束时间返回空
83
+ # @type EndTime: String
84
+ # @param CurrentStatus: 事件当前状态:提示、异常、正常
85
+ # @type CurrentStatus: String
86
+
87
+ attr_accessor :ProductId, :ProductName, :RegionId, :RegionName, :StartTime, :EndTime, :CurrentStatus
88
+
89
+ def initialize(productid=nil, productname=nil, regionid=nil, regionname=nil, starttime=nil, endtime=nil, currentstatus=nil)
90
+ @ProductId = productid
91
+ @ProductName = productname
92
+ @RegionId = regionid
93
+ @RegionName = regionname
94
+ @StartTime = starttime
95
+ @EndTime = endtime
96
+ @CurrentStatus = currentstatus
97
+ end
98
+
99
+ def deserialize(params)
100
+ @ProductId = params['ProductId']
101
+ @ProductName = params['ProductName']
102
+ @RegionId = params['RegionId']
103
+ @RegionName = params['RegionName']
104
+ @StartTime = params['StartTime']
105
+ @EndTime = params['EndTime']
106
+ @CurrentStatus = params['CurrentStatus']
107
+ end
108
+ end
109
+
110
+ # 产品可用性事件详情列表
111
+ class ProductEventList < TencentCloud::Common::AbstractModel
112
+ # @param EventList: 事件详情列表
113
+ # 注意:此字段可能返回 null,表示取不到有效值。
114
+ # @type EventList: Array
115
+
116
+ attr_accessor :EventList
117
+
118
+ def initialize(eventlist=nil)
119
+ @EventList = eventlist
120
+ end
121
+
122
+ def deserialize(params)
123
+ unless params['EventList'].nil?
124
+ @EventList = []
125
+ params['EventList'].each do |i|
126
+ eventdetail_tmp = EventDetail.new
127
+ eventdetail_tmp.deserialize(i)
128
+ @EventList << eventdetail_tmp
129
+ end
130
+ end
131
+ end
132
+ end
133
+
134
+ end
135
+ end
136
+ end
137
+
metadata ADDED
@@ -0,0 +1,66 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: tencentcloud-sdk-tchd
3
+ version: !ruby/object:Gem::Version
4
+ version: 3.0.610
5
+ platform: ruby
6
+ authors:
7
+ - Tencent Cloud
8
+ autorequire:
9
+ bindir: bin
10
+ cert_chain: []
11
+ date: 2023-07-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: '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
+ TCHD.
30
+ email:
31
+ - tencentcloudapi@tencent.com
32
+ executables: []
33
+ extensions: []
34
+ extra_rdoc_files: []
35
+ files:
36
+ - lib/v20230306/client.rb
37
+ - lib/v20230306/models.rb
38
+ - lib/tencentcloud-sdk-tchd.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-tchd
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 - TCHD
66
+ test_files: []