tencentcloud-sdk-tse 1.0.329 → 1.0.332

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: 9de7239e71be8a38a6fcd7f372053fb5e6471513
4
- data.tar.gz: 30e3e58f9f6a7a5a8b988d75d1c33099dd909c3f
3
+ metadata.gz: f70d8746793c463d1c1f263abff797f39bd6c325
4
+ data.tar.gz: 7aab2c022061650d8278e3218b166e30a58b640d
5
5
  SHA512:
6
- metadata.gz: 25fa1a8f81de2aaac573713f11fe65ac11bf4f507211ad5bd38dd2e69eb9cb4a0698d224161edb508863fdf7545d8c31aee827e0bf8009cd4f6a8286675f10e7
7
- data.tar.gz: 015f648420349c8e689bbffc7c97a9a48cd29b886d8f5ec0b26976dd9731d5fdd8cc06d22ee8ef054c447ec3d7da7ad7b0ad139f6ab7e80e247294ee5af84c3d
6
+ metadata.gz: 3a1e19c2b5d8ea007533f7743ee62ae0132f7e68f3968173087f47355293dc421bfffc1b78d6560e64bea46d75f8046f1ec6cc046b5cabe42113bdfd6c44e9b7
7
+ data.tar.gz: f862a08cec87ec4ead1cc4dc7bd94bbda54e1fa3f64562b4b957fe9379692d07b1082b11a65fe6d2c1cdbec3c9661574c56fce498780a3585033360fb038a767
data/lib/VERSION CHANGED
@@ -1 +1 @@
1
- 1.0.329
1
+ 1.0.332
@@ -29,6 +29,54 @@ module TencentCloud
29
29
  end
30
30
 
31
31
 
32
+ # 创建引擎实例
33
+
34
+ # @param request: Request instance for CreateEngine.
35
+ # @type request: :class:`Tencentcloud::tse::V20201207::CreateEngineRequest`
36
+ # @rtype: :class:`Tencentcloud::tse::V20201207::CreateEngineResponse`
37
+ def CreateEngine(request)
38
+ body = send_request('CreateEngine', request.serialize)
39
+ response = JSON.parse(body)
40
+ if response['Response'].key?('Error') == false
41
+ model = CreateEngineResponse.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 DeleteEngine.
59
+ # @type request: :class:`Tencentcloud::tse::V20201207::DeleteEngineRequest`
60
+ # @rtype: :class:`Tencentcloud::tse::V20201207::DeleteEngineResponse`
61
+ def DeleteEngine(request)
62
+ body = send_request('DeleteEngine', request.serialize)
63
+ response = JSON.parse(body)
64
+ if response['Response'].key?('Error') == false
65
+ model = DeleteEngineResponse.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
+
32
80
  # 查询引擎实例访问地址
33
81
 
34
82
  # @param request: Request instance for DescribeSREInstanceAccessAddress.
@@ -17,6 +17,42 @@
17
17
  module TencentCloud
18
18
  module Tse
19
19
  module V20201207
20
+ # Apollo 环境配置参数
21
+ class ApolloEnvParam < TencentCloud::Common::AbstractModel
22
+ # @param Name: 环境名称
23
+ # @type Name: String
24
+ # @param EngineResourceSpec: 环境内引擎的节点规格 ID
25
+ # @type EngineResourceSpec: String
26
+ # @param EngineNodeNum: 环境内引擎的节点数量
27
+ # @type EngineNodeNum: Integer
28
+ # @param StorageCapacity: 配置存储空间大小,以GB为单位
29
+ # @type StorageCapacity: Integer
30
+ # @param VpcId: VPC ID。在 VPC 的子网内分配一个 IP 作为 ConfigServer 的访问地址
31
+ # @type VpcId: String
32
+ # @param SubnetId: 子网 ID。在 VPC 的子网内分配一个 IP 作为 ConfigServer 的访问地址
33
+ # @type SubnetId: String
34
+
35
+ attr_accessor :Name, :EngineResourceSpec, :EngineNodeNum, :StorageCapacity, :VpcId, :SubnetId
36
+
37
+ def initialize(name=nil, engineresourcespec=nil, enginenodenum=nil, storagecapacity=nil, vpcid=nil, subnetid=nil)
38
+ @Name = name
39
+ @EngineResourceSpec = engineresourcespec
40
+ @EngineNodeNum = enginenodenum
41
+ @StorageCapacity = storagecapacity
42
+ @VpcId = vpcid
43
+ @SubnetId = subnetid
44
+ end
45
+
46
+ def deserialize(params)
47
+ @Name = params['Name']
48
+ @EngineResourceSpec = params['EngineResourceSpec']
49
+ @EngineNodeNum = params['EngineNodeNum']
50
+ @StorageCapacity = params['StorageCapacity']
51
+ @VpcId = params['VpcId']
52
+ @SubnetId = params['SubnetId']
53
+ end
54
+ end
55
+
20
56
  # 服务治理引擎绑定的kubernetes信息
21
57
  class BoundK8SInfo < TencentCloud::Common::AbstractModel
22
58
  # @param BoundClusterId: 绑定的kubernetes集群ID
@@ -43,6 +79,198 @@ module TencentCloud
43
79
  end
44
80
  end
45
81
 
82
+ # CreateEngine请求参数结构体
83
+ class CreateEngineRequest < TencentCloud::Common::AbstractModel
84
+ # @param EngineType: 引擎类型。参考值:
85
+ # - zookeeper
86
+ # - nacos
87
+ # - consul
88
+ # - apollo
89
+ # - eureka
90
+ # - polaris
91
+ # @type EngineType: String
92
+ # @param EngineVersion: 引擎的开源版本。每种引擎支持的开源版本不同,请参考产品文档或者控制台购买页
93
+ # @type EngineVersion: String
94
+ # @param EngineProductVersion: 引擎的产品版本。参考值:
95
+ # - STANDARD: 标准版
96
+
97
+ # 引擎各版本及可选择的规格、节点数说明:
98
+ # apollo - STANDARD版本
99
+ # 规格列表:spec-qcr53kf1t(1C2G),spec-qdr53kf2w(2C4G)
100
+ # 节点数:1,2,3,4,5
101
+
102
+ # eureka - STANDARD版本
103
+ # 规格列表:spec-qvj6k7t4q(1C2G),spec-qcr53kfjt(2C4G),spec-qvj6k7t4m(4G8G),spec-qcr54kfjt(8C16G),spec-qcr55kfjt(16C32G)
104
+ # 节点数:3,4,5
105
+ # @type EngineProductVersion: String
106
+ # @param EngineRegion: 引擎所在地域。参考值说明:
107
+ # 中国区 参考值:
108
+ # - ap-guangzhou:广州
109
+ # - ap-beijing:北京
110
+ # - ap-chengdu:成都
111
+ # - ap-chongqing:重庆
112
+ # - ap-nanjing:南京
113
+ # - ap-shanghai:上海
114
+ # - ap-hongkong:香港
115
+ # - ap-taipei:台北
116
+ # 亚太区 参考值:
117
+ # - ap-jakarta:雅加达
118
+ # - ap-singapore:新加坡
119
+ # 北美区 参考值
120
+ # - na-toronto:多伦多
121
+ # 金融专区 参考值
122
+ # - ap-beijing-fsi:北京金融
123
+ # - ap-shanghai-fsi:上海金融
124
+ # - ap-shenzhen-fsi:深圳金融
125
+ # @type EngineRegion: String
126
+ # @param EngineName: 引擎名称。参考值:
127
+ # - eurek-test
128
+ # @type EngineName: String
129
+ # @param TradeType: 付费类型。参考值:
130
+ # - 0:后付费
131
+ # - 1:预付费
132
+ # @type TradeType: Integer
133
+ # @param EngineResourceSpec: 引擎的节点规格 ID。参见EngineProductVersion字段说明
134
+ # @type EngineResourceSpec: String
135
+ # @param EngineNodeNum: 引擎的节点数量。参见EngineProductVersion字段说明
136
+ # @type EngineNodeNum: Integer
137
+ # @param VpcId: VPC ID。在 VPC 的子网内分配一个 IP 作为引擎的访问地址。参考值:
138
+ # - vpc-conz6aix
139
+ # @type VpcId: String
140
+ # @param SubnetId: 子网 ID。在 VPC 的子网内分配一个 IP 作为引擎的访问地址。参考值:
141
+ # - subnet-ahde9me9
142
+ # @type SubnetId: String
143
+ # @param ApolloEnvParams: Apollo 环境配置参数列表。参数说明:
144
+ # 如果创建Apollo类型,此参数为必填的环境信息列表,最多可选4个环境。环境信息参数说明:
145
+ # - Name:环境名。参考值:prod, dev, fat, uat
146
+ # - EngineResourceSpec:环境内引擎的节点规格ID。参见EngineProductVersion参数说明
147
+ # - EngineNodeNum:环境内引擎的节点数量。参见EngineProductVersion参数说明,其中prod环境支持的节点数为2,3,4,5
148
+ # - StorageCapacity:配置存储空间大小,以GB为单位,步长为5.参考值:35
149
+ # - VpcId:VPC ID。参考值:vpc-conz6aix
150
+ # - SubnetId:子网 ID。参考值:subnet-ahde9me9
151
+ # @type ApolloEnvParams: Array
152
+ # @param EngineTags: 引擎的标签列表。用户自定义的key/value形式,无参考值
153
+ # @type EngineTags: Array
154
+ # @param EngineAdmin: 引擎的初始帐号信息。可设置参数:
155
+ # - Name:控制台初始用户名
156
+ # - Password:控制台初始密码
157
+ # - Token:引擎接口的管理员 Token
158
+ # @type EngineAdmin: :class:`Tencentcloud::Tse.v20201207.models.EngineAdmin`
159
+ # @param PrepaidPeriod: 预付费时长,以月为单位
160
+ # @type PrepaidPeriod: Integer
161
+ # @param PrepaidRenewFlag: 自动续费标记,仅预付费使用。参考值:
162
+ # - 0:不自动续费
163
+ # - 1:自动续费
164
+ # @type PrepaidRenewFlag: Integer
165
+
166
+ attr_accessor :EngineType, :EngineVersion, :EngineProductVersion, :EngineRegion, :EngineName, :TradeType, :EngineResourceSpec, :EngineNodeNum, :VpcId, :SubnetId, :ApolloEnvParams, :EngineTags, :EngineAdmin, :PrepaidPeriod, :PrepaidRenewFlag
167
+
168
+ def initialize(enginetype=nil, engineversion=nil, engineproductversion=nil, engineregion=nil, enginename=nil, tradetype=nil, engineresourcespec=nil, enginenodenum=nil, vpcid=nil, subnetid=nil, apolloenvparams=nil, enginetags=nil, engineadmin=nil, prepaidperiod=nil, prepaidrenewflag=nil)
169
+ @EngineType = enginetype
170
+ @EngineVersion = engineversion
171
+ @EngineProductVersion = engineproductversion
172
+ @EngineRegion = engineregion
173
+ @EngineName = enginename
174
+ @TradeType = tradetype
175
+ @EngineResourceSpec = engineresourcespec
176
+ @EngineNodeNum = enginenodenum
177
+ @VpcId = vpcid
178
+ @SubnetId = subnetid
179
+ @ApolloEnvParams = apolloenvparams
180
+ @EngineTags = enginetags
181
+ @EngineAdmin = engineadmin
182
+ @PrepaidPeriod = prepaidperiod
183
+ @PrepaidRenewFlag = prepaidrenewflag
184
+ end
185
+
186
+ def deserialize(params)
187
+ @EngineType = params['EngineType']
188
+ @EngineVersion = params['EngineVersion']
189
+ @EngineProductVersion = params['EngineProductVersion']
190
+ @EngineRegion = params['EngineRegion']
191
+ @EngineName = params['EngineName']
192
+ @TradeType = params['TradeType']
193
+ @EngineResourceSpec = params['EngineResourceSpec']
194
+ @EngineNodeNum = params['EngineNodeNum']
195
+ @VpcId = params['VpcId']
196
+ @SubnetId = params['SubnetId']
197
+ unless params['ApolloEnvParams'].nil?
198
+ @ApolloEnvParams = []
199
+ params['ApolloEnvParams'].each do |i|
200
+ apolloenvparam_tmp = ApolloEnvParam.new
201
+ apolloenvparam_tmp.deserialize(i)
202
+ @ApolloEnvParams << apolloenvparam_tmp
203
+ end
204
+ end
205
+ unless params['EngineTags'].nil?
206
+ @EngineTags = []
207
+ params['EngineTags'].each do |i|
208
+ instancetaginfo_tmp = InstanceTagInfo.new
209
+ instancetaginfo_tmp.deserialize(i)
210
+ @EngineTags << instancetaginfo_tmp
211
+ end
212
+ end
213
+ unless params['EngineAdmin'].nil?
214
+ @EngineAdmin = EngineAdmin.new
215
+ @EngineAdmin.deserialize(params['EngineAdmin'])
216
+ end
217
+ @PrepaidPeriod = params['PrepaidPeriod']
218
+ @PrepaidRenewFlag = params['PrepaidRenewFlag']
219
+ end
220
+ end
221
+
222
+ # CreateEngine返回参数结构体
223
+ class CreateEngineResponse < TencentCloud::Common::AbstractModel
224
+ # @param InstanceId: 引擎实例 ID
225
+ # @type InstanceId: String
226
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
227
+ # @type RequestId: String
228
+
229
+ attr_accessor :InstanceId, :RequestId
230
+
231
+ def initialize(instanceid=nil, requestid=nil)
232
+ @InstanceId = instanceid
233
+ @RequestId = requestid
234
+ end
235
+
236
+ def deserialize(params)
237
+ @InstanceId = params['InstanceId']
238
+ @RequestId = params['RequestId']
239
+ end
240
+ end
241
+
242
+ # DeleteEngine请求参数结构体
243
+ class DeleteEngineRequest < TencentCloud::Common::AbstractModel
244
+ # @param InstanceId: 引擎实例 ID
245
+ # @type InstanceId: String
246
+
247
+ attr_accessor :InstanceId
248
+
249
+ def initialize(instanceid=nil)
250
+ @InstanceId = instanceid
251
+ end
252
+
253
+ def deserialize(params)
254
+ @InstanceId = params['InstanceId']
255
+ end
256
+ end
257
+
258
+ # DeleteEngine返回参数结构体
259
+ class DeleteEngineResponse < TencentCloud::Common::AbstractModel
260
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
261
+ # @type RequestId: String
262
+
263
+ attr_accessor :RequestId
264
+
265
+ def initialize(requestid=nil)
266
+ @RequestId = requestid
267
+ end
268
+
269
+ def deserialize(params)
270
+ @RequestId = params['RequestId']
271
+ end
272
+ end
273
+
46
274
  # DescribeSREInstanceAccessAddress请求参数结构体
47
275
  class DescribeSREInstanceAccessAddressRequest < TencentCloud::Common::AbstractModel
48
276
  # @param InstanceId: 注册引擎实例Id
@@ -192,6 +420,30 @@ module TencentCloud
192
420
  end
193
421
  end
194
422
 
423
+ # 引擎的初始管理帐号
424
+ class EngineAdmin < TencentCloud::Common::AbstractModel
425
+ # @param Name: 控制台初始用户名
426
+ # @type Name: String
427
+ # @param Password: 控制台初始密码
428
+ # @type Password: String
429
+ # @param Token: 引擎接口的管理员 Token
430
+ # @type Token: String
431
+
432
+ attr_accessor :Name, :Password, :Token
433
+
434
+ def initialize(name=nil, password=nil, token=nil)
435
+ @Name = name
436
+ @Password = password
437
+ @Token = token
438
+ end
439
+
440
+ def deserialize(params)
441
+ @Name = params['Name']
442
+ @Password = params['Password']
443
+ @Token = params['Token']
444
+ end
445
+ end
446
+
195
447
  # 多环境网络信息
196
448
  class EnvAddressInfo < TencentCloud::Common::AbstractModel
197
449
  # @param EnvName: 环境名
@@ -303,6 +555,26 @@ module TencentCloud
303
555
  end
304
556
  end
305
557
 
558
+ # 引擎实例的标签信息
559
+ class InstanceTagInfo < TencentCloud::Common::AbstractModel
560
+ # @param TagKey: 标签键
561
+ # @type TagKey: String
562
+ # @param TagValue: 标签值
563
+ # @type TagValue: String
564
+
565
+ attr_accessor :TagKey, :TagValue
566
+
567
+ def initialize(tagkey=nil, tagvalue=nil)
568
+ @TagKey = tagkey
569
+ @TagValue = tagvalue
570
+ end
571
+
572
+ def deserialize(params)
573
+ @TagKey = params['TagKey']
574
+ @TagValue = params['TagValue']
575
+ end
576
+ end
577
+
306
578
  # 键值对
307
579
  class KVPair < TencentCloud::Common::AbstractModel
308
580
  # @param Key: 键
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: tencentcloud-sdk-tse
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.329
4
+ version: 1.0.332
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-06-09 00:00:00.000000000 Z
11
+ date: 2022-06-14 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: tencentcloud-sdk-common