tencentcloud-sdk-api 1.0.200

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: ad8ca4c1809a8246f2ae2fdd68377492b259929e
4
+ data.tar.gz: e19303d9cc19862e9bf794776481d9c8d00d0198
5
+ SHA512:
6
+ metadata.gz: 5ed7a1d612fa0196b0e20bb41fc0f5649a9bafe18f44c448f5e7d7fe9894e6d025cb44db559d07073239d539d2af5cb266786fa1bb887b6579053b712f708aaf
7
+ data.tar.gz: a072d76369c54c0f1e5786c625b64b02ca6cc161f58322270b1a4a2b0c4ab25818e272db0f6b2667dfd8d6fc67bc9edae0442b353141b5c7abb3004e4df2c612
data/lib/VERSION ADDED
@@ -0,0 +1 @@
1
+ 1.0.200
@@ -0,0 +1,11 @@
1
+ # frozen_string_literal: true
2
+
3
+ require 'tencentcloud-sdk-common'
4
+
5
+ require_relative 'v20201106/client'
6
+ require_relative 'v20201106/models'
7
+
8
+ module TencentCloud
9
+ module Api
10
+ end
11
+ end
@@ -0,0 +1,84 @@
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 Api
21
+ module V20201106
22
+ class Client < TencentCloud::Common::AbstractClient
23
+
24
+ def initialize(credential, region, profile = nil)
25
+ api_version = '2020-11-06'
26
+ api_endpoint = 'api.tencentcloudapi.com'
27
+ sdk_version = 'API_' + File.read(File.expand_path('../VERSION', __dir__)).strip
28
+ super(credential, region, api_version, api_endpoint, sdk_version, profile)
29
+ end
30
+
31
+
32
+ # 本接口(DescribeRegions)用于查询各个产品支持地域信息,当前只支持cvm。
33
+
34
+ # @param request: Request instance for DescribeRegions.
35
+ # @type request: :class:`Tencentcloud::api::V20201106::DescribeRegionsRequest`
36
+ # @rtype: :class:`Tencentcloud::api::V20201106::DescribeRegionsResponse`
37
+ def DescribeRegions(request)
38
+ body = send_request('DescribeRegions', request.serialize)
39
+ response = JSON.parse(body)
40
+ if response['Response'].key?('Error') == false
41
+ model = DescribeRegionsResponse.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
+ # 本接口(DescribeZones)用于查询产品可用区信息,当前只支持cvm。
57
+
58
+ # @param request: Request instance for DescribeZones.
59
+ # @type request: :class:`Tencentcloud::api::V20201106::DescribeZonesRequest`
60
+ # @rtype: :class:`Tencentcloud::api::V20201106::DescribeZonesResponse`
61
+ def DescribeZones(request)
62
+ body = send_request('DescribeZones', request.serialize)
63
+ response = JSON.parse(body)
64
+ if response['Response'].key?('Error') == false
65
+ model = DescribeZonesResponse.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
+
81
+ end
82
+ end
83
+ end
84
+ end
@@ -0,0 +1,213 @@
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 Api
19
+ module V20201106
20
+ # DescribeRegions请求参数结构体
21
+ class DescribeRegionsRequest < TencentCloud::Common::AbstractModel
22
+ # @param Product: 待查询产品的名称,例如cvm、vpc
23
+ # @type Product: String
24
+
25
+ attr_accessor :Product
26
+
27
+ def initialize(product=nil)
28
+ @Product = product
29
+ end
30
+
31
+ def deserialize(params)
32
+ @Product = params['Product']
33
+ end
34
+ end
35
+
36
+ # DescribeRegions返回参数结构体
37
+ class DescribeRegionsResponse < TencentCloud::Common::AbstractModel
38
+ # @param TotalCount: 地域数量
39
+ # @type TotalCount: Integer
40
+ # @param RegionSet: 地域列表信息
41
+ # @type RegionSet: Array
42
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
43
+ # @type RequestId: String
44
+
45
+ attr_accessor :TotalCount, :RegionSet, :RequestId
46
+
47
+ def initialize(totalcount=nil, regionset=nil, requestid=nil)
48
+ @TotalCount = totalcount
49
+ @RegionSet = regionset
50
+ @RequestId = requestid
51
+ end
52
+
53
+ def deserialize(params)
54
+ @TotalCount = params['TotalCount']
55
+ unless params['RegionSet'].nil?
56
+ @RegionSet = []
57
+ params['RegionSet'].each do |i|
58
+ regioninfo_tmp = RegionInfo.new
59
+ regioninfo_tmp.deserialize(i)
60
+ @RegionSet << regioninfo_tmp
61
+ end
62
+ end
63
+ @RequestId = params['RequestId']
64
+ end
65
+ end
66
+
67
+ # DescribeZones请求参数结构体
68
+ class DescribeZonesRequest < TencentCloud::Common::AbstractModel
69
+ # @param Product: 待查询产品的名称,例如cvm、vpc
70
+ # @type Product: String
71
+
72
+ attr_accessor :Product
73
+
74
+ def initialize(product=nil)
75
+ @Product = product
76
+ end
77
+
78
+ def deserialize(params)
79
+ @Product = params['Product']
80
+ end
81
+ end
82
+
83
+ # DescribeZones返回参数结构体
84
+ class DescribeZonesResponse < TencentCloud::Common::AbstractModel
85
+ # @param TotalCount: 可用区数量。
86
+ # @type TotalCount: Integer
87
+ # @param ZoneSet: 可用区列表信息。
88
+ # @type ZoneSet: Array
89
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
90
+ # @type RequestId: String
91
+
92
+ attr_accessor :TotalCount, :ZoneSet, :RequestId
93
+
94
+ def initialize(totalcount=nil, zoneset=nil, requestid=nil)
95
+ @TotalCount = totalcount
96
+ @ZoneSet = zoneset
97
+ @RequestId = requestid
98
+ end
99
+
100
+ def deserialize(params)
101
+ @TotalCount = params['TotalCount']
102
+ unless params['ZoneSet'].nil?
103
+ @ZoneSet = []
104
+ params['ZoneSet'].each do |i|
105
+ zoneinfo_tmp = ZoneInfo.new
106
+ zoneinfo_tmp.deserialize(i)
107
+ @ZoneSet << zoneinfo_tmp
108
+ end
109
+ end
110
+ @RequestId = params['RequestId']
111
+ end
112
+ end
113
+
114
+ # 地域信息
115
+ class RegionInfo < TencentCloud::Common::AbstractModel
116
+ # @param Region: 地域名称,例如,ap-guangzhou
117
+ # @type Region: String
118
+ # @param RegionName: 地域描述,例如,华南地区(广州)
119
+ # @type RegionName: String
120
+ # @param RegionState: 地域是否可用状态
121
+ # @type RegionState: String
122
+
123
+ attr_accessor :Region, :RegionName, :RegionState
124
+
125
+ def initialize(region=nil, regionname=nil, regionstate=nil)
126
+ @Region = region
127
+ @RegionName = regionname
128
+ @RegionState = regionstate
129
+ end
130
+
131
+ def deserialize(params)
132
+ @Region = params['Region']
133
+ @RegionName = params['RegionName']
134
+ @RegionState = params['RegionState']
135
+ end
136
+ end
137
+
138
+ # 可用区信息
139
+ class ZoneInfo < TencentCloud::Common::AbstractModel
140
+ # @param Zone: 可用区名称,例如,ap-guangzhou-3
141
+ # 全网可用区名称如下:
142
+ # <li> ap-chongqing-1 </li>
143
+ # <li> ap-seoul-1 </li>
144
+ # <li> ap-seoul-2 </li>
145
+ # <li> ap-chengdu-1 </li>
146
+ # <li> ap-chengdu-2 </li>
147
+ # <li> ap-hongkong-1 </li>
148
+ # <li> ap-hongkong-2 </li>
149
+ # <li> ap-shenzhen-fsi-1 </li>
150
+ # <li> ap-shenzhen-fsi-2 </li>
151
+ # <li> ap-shenzhen-fsi-3 </li>
152
+ # <li> ap-guangzhou-1(售罄)</li>
153
+ # <li> ap-guangzhou-2(售罄)</li>
154
+ # <li> ap-guangzhou-3 </li>
155
+ # <li> ap-guangzhou-4 </li>
156
+ # <li> ap-guangzhou-6 </li>
157
+ # <li> ap-tokyo-1 </li>
158
+ # <li> ap-singapore-1 </li>
159
+ # <li> ap-singapore-2 </li>
160
+ # <li> ap-shanghai-fsi-1 </li>
161
+ # <li> ap-shanghai-fsi-2 </li>
162
+ # <li> ap-shanghai-fsi-3 </li>
163
+ # <li> ap-bangkok-1 </li>
164
+ # <li> ap-shanghai-1(售罄) </li>
165
+ # <li> ap-shanghai-2 </li>
166
+ # <li> ap-shanghai-3 </li>
167
+ # <li> ap-shanghai-4 </li>
168
+ # <li> ap-shanghai-5 </li>
169
+ # <li> ap-mumbai-1 </li>
170
+ # <li> ap-mumbai-2 </li>
171
+ # <li> eu-moscow-1 </li>
172
+ # <li> ap-beijing-1 </li>
173
+ # <li> ap-beijing-2 </li>
174
+ # <li> ap-beijing-3 </li>
175
+ # <li> ap-beijing-4 </li>
176
+ # <li> ap-beijing-5 </li>
177
+ # <li> na-siliconvalley-1 </li>
178
+ # <li> na-siliconvalley-2 </li>
179
+ # <li> eu-frankfurt-1 </li>
180
+ # <li> na-toronto-1 </li>
181
+ # <li> na-ashburn-1 </li>
182
+ # <li> na-ashburn-2 </li>
183
+ # <li> ap-nanjing-1 </li>
184
+ # <li> ap-nanjing-2 </li>
185
+ # @type Zone: String
186
+ # @param ZoneName: 可用区描述,例如,广州三区
187
+ # @type ZoneName: String
188
+ # @param ZoneId: 可用区ID
189
+ # @type ZoneId: String
190
+ # @param ZoneState: 可用区状态,包含AVAILABLE和UNAVAILABLE。AVAILABLE代表可用,UNAVAILABLE代表不可用。
191
+ # @type ZoneState: String
192
+
193
+ attr_accessor :Zone, :ZoneName, :ZoneId, :ZoneState
194
+
195
+ def initialize(zone=nil, zonename=nil, zoneid=nil, zonestate=nil)
196
+ @Zone = zone
197
+ @ZoneName = zonename
198
+ @ZoneId = zoneid
199
+ @ZoneState = zonestate
200
+ end
201
+
202
+ def deserialize(params)
203
+ @Zone = params['Zone']
204
+ @ZoneName = params['ZoneName']
205
+ @ZoneId = params['ZoneId']
206
+ @ZoneState = params['ZoneState']
207
+ end
208
+ end
209
+
210
+ end
211
+ end
212
+ end
213
+
metadata ADDED
@@ -0,0 +1,66 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: tencentcloud-sdk-api
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
+ API.
30
+ email:
31
+ - tencentcloudapi@tencent.com
32
+ executables: []
33
+ extensions: []
34
+ extra_rdoc_files: []
35
+ files:
36
+ - lib/VERSION
37
+ - lib/tencentcloud-sdk-api.rb
38
+ - lib/v20201106/client.rb
39
+ - lib/v20201106/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-api
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 - API
66
+ test_files: []