tencentcloud-sdk-api 1.0.268 → 1.0.269

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 386d166702c2ad16d0ef30b91f975a3a9c100446
4
- data.tar.gz: c7c60a9873cdaa35a6a170b46b2a433b44217f53
3
+ metadata.gz: 4479b58d8b7c8c532c8882759431163c3cc2a009
4
+ data.tar.gz: a5cc20fc19b5ea79f95033b8f4dffca323f7cb0b
5
5
  SHA512:
6
- metadata.gz: 865df5d89c1f1c8389f279522f10f774daeb3f07bde69ec09d51151bb152878e649a9016ca8e77aa1735715bd24bb874e2d451a33fe6a9f7c40ca6013a368b3e
7
- data.tar.gz: 59023de2f8a0563c17bc3b12e60af6e3b80ee6d24b787a72e9924e1586bc90beb2518d215979d4801ec8425bf535c8310220afc0b194282e0db0263c1ec4bbd7
6
+ metadata.gz: 1094c1cee8c77711a26460f2a12e2dc16e824f388e4e974625683e02d059afd1d75de5d81310406f740a3399745cf7f777c37f9bd66b19033a895048697c377a
7
+ data.tar.gz: c1211ac95bb9dc13b9a3f1ee5742229e74e883c90d5ccca01538ebb232e11b1269d13fc376830de990a152febaf1d402bc0e38b5367b139f09899dac51f0e336
data/lib/VERSION CHANGED
@@ -1 +1 @@
1
- 1.0.268
1
+ 1.0.269
@@ -29,6 +29,30 @@ module TencentCloud
29
29
  end
30
30
 
31
31
 
32
+ # 本接口(DescribeProducts)用于查询各个支持地域列表查询的产品信息。
33
+
34
+ # @param request: Request instance for DescribeProducts.
35
+ # @type request: :class:`Tencentcloud::api::V20201106::DescribeProductsRequest`
36
+ # @rtype: :class:`Tencentcloud::api::V20201106::DescribeProductsResponse`
37
+ def DescribeProducts(request)
38
+ body = send_request('DescribeProducts', request.serialize)
39
+ response = JSON.parse(body)
40
+ if response['Response'].key?('Error') == false
41
+ model = DescribeProductsResponse.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
+
32
56
  # 本接口(DescribeRegions)用于查询各个产品支持地域信息。
33
57
 
34
58
  # @param request: Request instance for DescribeRegions.
@@ -17,6 +17,57 @@
17
17
  module TencentCloud
18
18
  module Api
19
19
  module V20201106
20
+ # DescribeProducts请求参数结构体
21
+ class DescribeProductsRequest < TencentCloud::Common::AbstractModel
22
+ # @param Limit: 返回数量,默认为 20,最大值为 100。
23
+ # @type Limit: Integer
24
+ # @param Offset: 偏移量,默认为 0。
25
+ # @type Offset: Integer
26
+
27
+ attr_accessor :Limit, :Offset
28
+
29
+ def initialize(limit=nil, offset=nil)
30
+ @Limit = limit
31
+ @Offset = offset
32
+ end
33
+
34
+ def deserialize(params)
35
+ @Limit = params['Limit']
36
+ @Offset = params['Offset']
37
+ end
38
+ end
39
+
40
+ # DescribeProducts返回参数结构体
41
+ class DescribeProductsResponse < TencentCloud::Common::AbstractModel
42
+ # @param Products: 产品详细信息列表。
43
+ # @type Products: Array
44
+ # @param TotalCount: 产品总数量。
45
+ # @type TotalCount: Integer
46
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
47
+ # @type RequestId: String
48
+
49
+ attr_accessor :Products, :TotalCount, :RequestId
50
+
51
+ def initialize(products=nil, totalcount=nil, requestid=nil)
52
+ @Products = products
53
+ @TotalCount = totalcount
54
+ @RequestId = requestid
55
+ end
56
+
57
+ def deserialize(params)
58
+ unless params['Products'].nil?
59
+ @Products = []
60
+ params['Products'].each do |i|
61
+ regionproduct_tmp = RegionProduct.new
62
+ regionproduct_tmp.deserialize(i)
63
+ @Products << regionproduct_tmp
64
+ end
65
+ end
66
+ @TotalCount = params['TotalCount']
67
+ @RequestId = params['RequestId']
68
+ end
69
+ end
70
+
20
71
  # DescribeRegions请求参数结构体
21
72
  class DescribeRegionsRequest < TencentCloud::Common::AbstractModel
22
73
  # @param Product: 待查询产品的名称,例如cvm
@@ -135,6 +186,22 @@ module TencentCloud
135
186
  end
136
187
  end
137
188
 
189
+ # 地域管理系统支持的产品信息
190
+ class RegionProduct < TencentCloud::Common::AbstractModel
191
+ # @param Name: 产品名称,如cvm
192
+ # @type Name: String
193
+
194
+ attr_accessor :Name
195
+
196
+ def initialize(name=nil)
197
+ @Name = name
198
+ end
199
+
200
+ def deserialize(params)
201
+ @Name = params['Name']
202
+ end
203
+ end
204
+
138
205
  # 可用区信息
139
206
  class ZoneInfo < TencentCloud::Common::AbstractModel
140
207
  # @param Zone: 可用区名称,例如,ap-guangzhou-3
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: tencentcloud-sdk-api
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.268
4
+ version: 1.0.269
5
5
  platform: ruby
6
6
  authors:
7
7
  - Tencent Cloud
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2022-03-02 00:00:00.000000000 Z
11
+ date: 2022-03-03 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: tencentcloud-sdk-common