tencentcloud-sdk-api 1.0.267 → 1.0.270

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 79d728ca7db10d5b2a5dcd400d8e94cb88ea9134
4
- data.tar.gz: e7efe9b1552c047c08be264efc013fdf0a424aa9
3
+ metadata.gz: abdbc2219c8538d0157316b00c25c3d23c47f4c0
4
+ data.tar.gz: f80af0e8008dd50a003f08634507ec240ab75438
5
5
  SHA512:
6
- metadata.gz: 9e7d29663a95dad38d02703cb38c957b7b8cf7118e8e31d8ae7d0c07ce3edd9d5d799565666ebe4c7685a40b94805e7526608c0c0f0045ad106c5fc26be8d13c
7
- data.tar.gz: af1649ed1ad70969453918b7b07608cd1296adb129076f7b58e7878a537dfaa933ad399ab0e77714e652b2ef20bf52a9db640de6d21c0df1f92296e007f766c2
6
+ metadata.gz: dbbdb81c33147908ed77a5c37803256a07c9d2c185739824fb7cdbf850b873746e2a3cc1cc92c50ffb0d4a8a65d3bcda6e0f68dcc8d4dba287e0accc42fbb0fc
7
+ data.tar.gz: b06c97d8cda97ac6cb477d5c39010d2dd6b732d9348f3b0ecd56cc460e224a756e5470ecb43b5a04dbbb8f1cea4c03bfd58169ded9d2165fc8604aceb491ee4c
data/lib/VERSION CHANGED
@@ -1 +1 @@
1
- 1.0.267
1
+ 1.0.270
@@ -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.267
4
+ version: 1.0.270
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-01 00:00:00.000000000 Z
11
+ date: 2022-03-04 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: tencentcloud-sdk-common