tencentcloud-sdk-tke 3.0.902 → 3.0.904
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/VERSION +1 -1
- data/lib/v20180525/models.rb +6 -2
- data/lib/v20220501/client.rb +144 -0
- data/lib/v20220501/models.rb +432 -0
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 38c4655857bb83f6f4cc62c11037aea6cf009a47
|
4
|
+
data.tar.gz: c930a511e2ccc3d4c5d089da94cc6eea39b40f53
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 05021c57153a4b723d65c7e4f22ce192d3818a155b3bba49e905a4e671dbedef57777a7fa153411c908aadd7ffdef9dd2b5512061facb5ac9a0d1377fabdce5c
|
7
|
+
data.tar.gz: 0dfc1f4a71b4e67718d68193d36c98fae8edc22156e61f43e526196009c53838e7a27f42086bb4b81a4d365c3b3d7fe0816ea4b347e692f7d12b44332de3d9d8
|
data/lib/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
3.0.
|
1
|
+
3.0.904
|
data/lib/v20180525/models.rb
CHANGED
@@ -2323,10 +2323,12 @@ module TencentCloud
|
|
2323
2323
|
# @type InstanceDataDiskMountSettings: Array
|
2324
2324
|
# @param ExtensionAddons: 需要安装的扩展组件信息
|
2325
2325
|
# @type ExtensionAddons: Array
|
2326
|
+
# @param CdcId: 本地专用集群Id
|
2327
|
+
# @type CdcId: String
|
2326
2328
|
|
2327
|
-
attr_accessor :ClusterType, :ClusterCIDRSettings, :RunInstancesForNode, :ClusterBasicSettings, :ClusterAdvancedSettings, :InstanceAdvancedSettings, :ExistedInstancesForNode, :InstanceDataDiskMountSettings, :ExtensionAddons
|
2329
|
+
attr_accessor :ClusterType, :ClusterCIDRSettings, :RunInstancesForNode, :ClusterBasicSettings, :ClusterAdvancedSettings, :InstanceAdvancedSettings, :ExistedInstancesForNode, :InstanceDataDiskMountSettings, :ExtensionAddons, :CdcId
|
2328
2330
|
|
2329
|
-
def initialize(clustertype=nil, clustercidrsettings=nil, runinstancesfornode=nil, clusterbasicsettings=nil, clusteradvancedsettings=nil, instanceadvancedsettings=nil, existedinstancesfornode=nil, instancedatadiskmountsettings=nil, extensionaddons=nil)
|
2331
|
+
def initialize(clustertype=nil, clustercidrsettings=nil, runinstancesfornode=nil, clusterbasicsettings=nil, clusteradvancedsettings=nil, instanceadvancedsettings=nil, existedinstancesfornode=nil, instancedatadiskmountsettings=nil, extensionaddons=nil, cdcid=nil)
|
2330
2332
|
@ClusterType = clustertype
|
2331
2333
|
@ClusterCIDRSettings = clustercidrsettings
|
2332
2334
|
@RunInstancesForNode = runinstancesfornode
|
@@ -2336,6 +2338,7 @@ module TencentCloud
|
|
2336
2338
|
@ExistedInstancesForNode = existedinstancesfornode
|
2337
2339
|
@InstanceDataDiskMountSettings = instancedatadiskmountsettings
|
2338
2340
|
@ExtensionAddons = extensionaddons
|
2341
|
+
@CdcId = cdcid
|
2339
2342
|
end
|
2340
2343
|
|
2341
2344
|
def deserialize(params)
|
@@ -2388,6 +2391,7 @@ module TencentCloud
|
|
2388
2391
|
@ExtensionAddons << extensionaddon_tmp
|
2389
2392
|
end
|
2390
2393
|
end
|
2394
|
+
@CdcId = params['CdcId']
|
2391
2395
|
end
|
2392
2396
|
end
|
2393
2397
|
|
data/lib/v20220501/client.rb
CHANGED
@@ -29,6 +29,30 @@ module TencentCloud
|
|
29
29
|
end
|
30
30
|
|
31
31
|
|
32
|
+
# 创建健康检测策略
|
33
|
+
|
34
|
+
# @param request: Request instance for CreateHealthCheckPolicy.
|
35
|
+
# @type request: :class:`Tencentcloud::tke::V20220501::CreateHealthCheckPolicyRequest`
|
36
|
+
# @rtype: :class:`Tencentcloud::tke::V20220501::CreateHealthCheckPolicyResponse`
|
37
|
+
def CreateHealthCheckPolicy(request)
|
38
|
+
body = send_request('CreateHealthCheckPolicy', request.serialize)
|
39
|
+
response = JSON.parse(body)
|
40
|
+
if response['Response'].key?('Error') == false
|
41
|
+
model = CreateHealthCheckPolicyResponse.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
|
# 创建 TKE 节点池
|
33
57
|
|
34
58
|
# @param request: Request instance for CreateNodePool.
|
@@ -53,6 +77,30 @@ module TencentCloud
|
|
53
77
|
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
54
78
|
end
|
55
79
|
|
80
|
+
# 删除健康检测策略
|
81
|
+
|
82
|
+
# @param request: Request instance for DeleteHealthCheckPolicy.
|
83
|
+
# @type request: :class:`Tencentcloud::tke::V20220501::DeleteHealthCheckPolicyRequest`
|
84
|
+
# @rtype: :class:`Tencentcloud::tke::V20220501::DeleteHealthCheckPolicyResponse`
|
85
|
+
def DeleteHealthCheckPolicy(request)
|
86
|
+
body = send_request('DeleteHealthCheckPolicy', request.serialize)
|
87
|
+
response = JSON.parse(body)
|
88
|
+
if response['Response'].key?('Error') == false
|
89
|
+
model = DeleteHealthCheckPolicyResponse.new
|
90
|
+
model.deserialize(response['Response'])
|
91
|
+
model
|
92
|
+
else
|
93
|
+
code = response['Response']['Error']['Code']
|
94
|
+
message = response['Response']['Error']['Message']
|
95
|
+
reqid = response['Response']['RequestId']
|
96
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
97
|
+
end
|
98
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
99
|
+
raise e
|
100
|
+
rescue StandardError => e
|
101
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
102
|
+
end
|
103
|
+
|
56
104
|
# 删除 TKE 节点池
|
57
105
|
|
58
106
|
# @param request: Request instance for DeleteNodePool.
|
@@ -101,6 +149,78 @@ module TencentCloud
|
|
101
149
|
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
102
150
|
end
|
103
151
|
|
152
|
+
# 查询健康检测策略
|
153
|
+
|
154
|
+
# @param request: Request instance for DescribeHealthCheckPolicies.
|
155
|
+
# @type request: :class:`Tencentcloud::tke::V20220501::DescribeHealthCheckPoliciesRequest`
|
156
|
+
# @rtype: :class:`Tencentcloud::tke::V20220501::DescribeHealthCheckPoliciesResponse`
|
157
|
+
def DescribeHealthCheckPolicies(request)
|
158
|
+
body = send_request('DescribeHealthCheckPolicies', request.serialize)
|
159
|
+
response = JSON.parse(body)
|
160
|
+
if response['Response'].key?('Error') == false
|
161
|
+
model = DescribeHealthCheckPoliciesResponse.new
|
162
|
+
model.deserialize(response['Response'])
|
163
|
+
model
|
164
|
+
else
|
165
|
+
code = response['Response']['Error']['Code']
|
166
|
+
message = response['Response']['Error']['Message']
|
167
|
+
reqid = response['Response']['RequestId']
|
168
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
169
|
+
end
|
170
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
171
|
+
raise e
|
172
|
+
rescue StandardError => e
|
173
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
174
|
+
end
|
175
|
+
|
176
|
+
# 查询健康检测策略绑定关系
|
177
|
+
|
178
|
+
# @param request: Request instance for DescribeHealthCheckPolicyBindings.
|
179
|
+
# @type request: :class:`Tencentcloud::tke::V20220501::DescribeHealthCheckPolicyBindingsRequest`
|
180
|
+
# @rtype: :class:`Tencentcloud::tke::V20220501::DescribeHealthCheckPolicyBindingsResponse`
|
181
|
+
def DescribeHealthCheckPolicyBindings(request)
|
182
|
+
body = send_request('DescribeHealthCheckPolicyBindings', request.serialize)
|
183
|
+
response = JSON.parse(body)
|
184
|
+
if response['Response'].key?('Error') == false
|
185
|
+
model = DescribeHealthCheckPolicyBindingsResponse.new
|
186
|
+
model.deserialize(response['Response'])
|
187
|
+
model
|
188
|
+
else
|
189
|
+
code = response['Response']['Error']['Code']
|
190
|
+
message = response['Response']['Error']['Message']
|
191
|
+
reqid = response['Response']['RequestId']
|
192
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
193
|
+
end
|
194
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
195
|
+
raise e
|
196
|
+
rescue StandardError => e
|
197
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
198
|
+
end
|
199
|
+
|
200
|
+
# 查询健康检测策略模板
|
201
|
+
|
202
|
+
# @param request: Request instance for DescribeHealthCheckTemplate.
|
203
|
+
# @type request: :class:`Tencentcloud::tke::V20220501::DescribeHealthCheckTemplateRequest`
|
204
|
+
# @rtype: :class:`Tencentcloud::tke::V20220501::DescribeHealthCheckTemplateResponse`
|
205
|
+
def DescribeHealthCheckTemplate(request)
|
206
|
+
body = send_request('DescribeHealthCheckTemplate', request.serialize)
|
207
|
+
response = JSON.parse(body)
|
208
|
+
if response['Response'].key?('Error') == false
|
209
|
+
model = DescribeHealthCheckTemplateResponse.new
|
210
|
+
model.deserialize(response['Response'])
|
211
|
+
model
|
212
|
+
else
|
213
|
+
code = response['Response']['Error']['Code']
|
214
|
+
message = response['Response']['Error']['Message']
|
215
|
+
reqid = response['Response']['RequestId']
|
216
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
217
|
+
end
|
218
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
219
|
+
raise e
|
220
|
+
rescue StandardError => e
|
221
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
222
|
+
end
|
223
|
+
|
104
224
|
# 查询 TKE 节点池列表
|
105
225
|
|
106
226
|
# @param request: Request instance for DescribeNodePools.
|
@@ -125,6 +245,30 @@ module TencentCloud
|
|
125
245
|
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
126
246
|
end
|
127
247
|
|
248
|
+
# 修改健康检测策略
|
249
|
+
|
250
|
+
# @param request: Request instance for ModifyHealthCheckPolicy.
|
251
|
+
# @type request: :class:`Tencentcloud::tke::V20220501::ModifyHealthCheckPolicyRequest`
|
252
|
+
# @rtype: :class:`Tencentcloud::tke::V20220501::ModifyHealthCheckPolicyResponse`
|
253
|
+
def ModifyHealthCheckPolicy(request)
|
254
|
+
body = send_request('ModifyHealthCheckPolicy', request.serialize)
|
255
|
+
response = JSON.parse(body)
|
256
|
+
if response['Response'].key?('Error') == false
|
257
|
+
model = ModifyHealthCheckPolicyResponse.new
|
258
|
+
model.deserialize(response['Response'])
|
259
|
+
model
|
260
|
+
else
|
261
|
+
code = response['Response']['Error']['Code']
|
262
|
+
message = response['Response']['Error']['Message']
|
263
|
+
reqid = response['Response']['RequestId']
|
264
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
265
|
+
end
|
266
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
267
|
+
raise e
|
268
|
+
rescue StandardError => e
|
269
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
270
|
+
end
|
271
|
+
|
128
272
|
# 更新 TKE 节点池
|
129
273
|
|
130
274
|
# @param request: Request instance for ModifyNodePool.
|
data/lib/v20220501/models.rb
CHANGED
@@ -92,6 +92,49 @@ module TencentCloud
|
|
92
92
|
end
|
93
93
|
end
|
94
94
|
|
95
|
+
# CreateHealthCheckPolicy请求参数结构体
|
96
|
+
class CreateHealthCheckPolicyRequest < TencentCloud::Common::AbstractModel
|
97
|
+
# @param ClusterId: 集群ID
|
98
|
+
# @type ClusterId: String
|
99
|
+
# @param HealthCheckPolicy: 健康检测策略
|
100
|
+
# @type HealthCheckPolicy: :class:`Tencentcloud::Tke.v20220501.models.HealthCheckPolicy`
|
101
|
+
|
102
|
+
attr_accessor :ClusterId, :HealthCheckPolicy
|
103
|
+
|
104
|
+
def initialize(clusterid=nil, healthcheckpolicy=nil)
|
105
|
+
@ClusterId = clusterid
|
106
|
+
@HealthCheckPolicy = healthcheckpolicy
|
107
|
+
end
|
108
|
+
|
109
|
+
def deserialize(params)
|
110
|
+
@ClusterId = params['ClusterId']
|
111
|
+
unless params['HealthCheckPolicy'].nil?
|
112
|
+
@HealthCheckPolicy = HealthCheckPolicy.new
|
113
|
+
@HealthCheckPolicy.deserialize(params['HealthCheckPolicy'])
|
114
|
+
end
|
115
|
+
end
|
116
|
+
end
|
117
|
+
|
118
|
+
# CreateHealthCheckPolicy返回参数结构体
|
119
|
+
class CreateHealthCheckPolicyResponse < TencentCloud::Common::AbstractModel
|
120
|
+
# @param HealthCheckPolicyName: 健康检测策略名称
|
121
|
+
# @type HealthCheckPolicyName: String
|
122
|
+
# @param RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
123
|
+
# @type RequestId: String
|
124
|
+
|
125
|
+
attr_accessor :HealthCheckPolicyName, :RequestId
|
126
|
+
|
127
|
+
def initialize(healthcheckpolicyname=nil, requestid=nil)
|
128
|
+
@HealthCheckPolicyName = healthcheckpolicyname
|
129
|
+
@RequestId = requestid
|
130
|
+
end
|
131
|
+
|
132
|
+
def deserialize(params)
|
133
|
+
@HealthCheckPolicyName = params['HealthCheckPolicyName']
|
134
|
+
@RequestId = params['RequestId']
|
135
|
+
end
|
136
|
+
end
|
137
|
+
|
95
138
|
# 原生节点池创建参数
|
96
139
|
class CreateNativeNodePoolParam < TencentCloud::Common::AbstractModel
|
97
140
|
# @param Scaling: 节点池伸缩配置
|
@@ -377,6 +420,42 @@ module TencentCloud
|
|
377
420
|
end
|
378
421
|
end
|
379
422
|
|
423
|
+
# DeleteHealthCheckPolicy请求参数结构体
|
424
|
+
class DeleteHealthCheckPolicyRequest < TencentCloud::Common::AbstractModel
|
425
|
+
# @param ClusterId: 集群 ID
|
426
|
+
# @type ClusterId: String
|
427
|
+
# @param HealthCheckPolicyName: 健康检测策略名称
|
428
|
+
# @type HealthCheckPolicyName: String
|
429
|
+
|
430
|
+
attr_accessor :ClusterId, :HealthCheckPolicyName
|
431
|
+
|
432
|
+
def initialize(clusterid=nil, healthcheckpolicyname=nil)
|
433
|
+
@ClusterId = clusterid
|
434
|
+
@HealthCheckPolicyName = healthcheckpolicyname
|
435
|
+
end
|
436
|
+
|
437
|
+
def deserialize(params)
|
438
|
+
@ClusterId = params['ClusterId']
|
439
|
+
@HealthCheckPolicyName = params['HealthCheckPolicyName']
|
440
|
+
end
|
441
|
+
end
|
442
|
+
|
443
|
+
# DeleteHealthCheckPolicy返回参数结构体
|
444
|
+
class DeleteHealthCheckPolicyResponse < TencentCloud::Common::AbstractModel
|
445
|
+
# @param RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
446
|
+
# @type RequestId: String
|
447
|
+
|
448
|
+
attr_accessor :RequestId
|
449
|
+
|
450
|
+
def initialize(requestid=nil)
|
451
|
+
@RequestId = requestid
|
452
|
+
end
|
453
|
+
|
454
|
+
def deserialize(params)
|
455
|
+
@RequestId = params['RequestId']
|
456
|
+
end
|
457
|
+
end
|
458
|
+
|
380
459
|
# DeleteNodePool请求参数结构体
|
381
460
|
class DeleteNodePoolRequest < TencentCloud::Common::AbstractModel
|
382
461
|
# @param ClusterId: 集群 ID
|
@@ -492,6 +571,182 @@ module TencentCloud
|
|
492
571
|
end
|
493
572
|
end
|
494
573
|
|
574
|
+
# DescribeHealthCheckPolicies请求参数结构体
|
575
|
+
class DescribeHealthCheckPoliciesRequest < TencentCloud::Common::AbstractModel
|
576
|
+
# @param ClusterId: 集群 ID
|
577
|
+
# @type ClusterId: String
|
578
|
+
# @param Filters: · HealthCheckPolicyName
|
579
|
+
# 按照【健康检测策略名称】进行过滤。
|
580
|
+
# 类型:String
|
581
|
+
# 必选:否
|
582
|
+
# @type Filters: Array
|
583
|
+
# @param Limit: 最大输出条数,默认20,最大为100
|
584
|
+
# @type Limit: Integer
|
585
|
+
# @param Offset: 偏移量,默认0
|
586
|
+
# @type Offset: Integer
|
587
|
+
|
588
|
+
attr_accessor :ClusterId, :Filters, :Limit, :Offset
|
589
|
+
|
590
|
+
def initialize(clusterid=nil, filters=nil, limit=nil, offset=nil)
|
591
|
+
@ClusterId = clusterid
|
592
|
+
@Filters = filters
|
593
|
+
@Limit = limit
|
594
|
+
@Offset = offset
|
595
|
+
end
|
596
|
+
|
597
|
+
def deserialize(params)
|
598
|
+
@ClusterId = params['ClusterId']
|
599
|
+
unless params['Filters'].nil?
|
600
|
+
@Filters = []
|
601
|
+
params['Filters'].each do |i|
|
602
|
+
filter_tmp = Filter.new
|
603
|
+
filter_tmp.deserialize(i)
|
604
|
+
@Filters << filter_tmp
|
605
|
+
end
|
606
|
+
end
|
607
|
+
@Limit = params['Limit']
|
608
|
+
@Offset = params['Offset']
|
609
|
+
end
|
610
|
+
end
|
611
|
+
|
612
|
+
# DescribeHealthCheckPolicies返回参数结构体
|
613
|
+
class DescribeHealthCheckPoliciesResponse < TencentCloud::Common::AbstractModel
|
614
|
+
# @param HealthCheckPolicies: 健康检测策略数组
|
615
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
616
|
+
# @type HealthCheckPolicies: Array
|
617
|
+
# @param TotalCount: 数组总数目
|
618
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
619
|
+
# @type TotalCount: Integer
|
620
|
+
# @param RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
621
|
+
# @type RequestId: String
|
622
|
+
|
623
|
+
attr_accessor :HealthCheckPolicies, :TotalCount, :RequestId
|
624
|
+
|
625
|
+
def initialize(healthcheckpolicies=nil, totalcount=nil, requestid=nil)
|
626
|
+
@HealthCheckPolicies = healthcheckpolicies
|
627
|
+
@TotalCount = totalcount
|
628
|
+
@RequestId = requestid
|
629
|
+
end
|
630
|
+
|
631
|
+
def deserialize(params)
|
632
|
+
unless params['HealthCheckPolicies'].nil?
|
633
|
+
@HealthCheckPolicies = []
|
634
|
+
params['HealthCheckPolicies'].each do |i|
|
635
|
+
healthcheckpolicy_tmp = HealthCheckPolicy.new
|
636
|
+
healthcheckpolicy_tmp.deserialize(i)
|
637
|
+
@HealthCheckPolicies << healthcheckpolicy_tmp
|
638
|
+
end
|
639
|
+
end
|
640
|
+
@TotalCount = params['TotalCount']
|
641
|
+
@RequestId = params['RequestId']
|
642
|
+
end
|
643
|
+
end
|
644
|
+
|
645
|
+
# DescribeHealthCheckPolicyBindings请求参数结构体
|
646
|
+
class DescribeHealthCheckPolicyBindingsRequest < TencentCloud::Common::AbstractModel
|
647
|
+
# @param ClusterId: 集群 ID
|
648
|
+
# @type ClusterId: String
|
649
|
+
# @param Filter: · HealthCheckPolicyName
|
650
|
+
# 按照【健康检测规则名称】进行过滤。
|
651
|
+
# 类型:String
|
652
|
+
# 必选:否
|
653
|
+
# @type Filter: Array
|
654
|
+
# @param Limit: 最大输出条数,默认20,最大为100
|
655
|
+
# @type Limit: Integer
|
656
|
+
# @param Offset: 偏移量,默认0
|
657
|
+
# @type Offset: Integer
|
658
|
+
|
659
|
+
attr_accessor :ClusterId, :Filter, :Limit, :Offset
|
660
|
+
|
661
|
+
def initialize(clusterid=nil, filter=nil, limit=nil, offset=nil)
|
662
|
+
@ClusterId = clusterid
|
663
|
+
@Filter = filter
|
664
|
+
@Limit = limit
|
665
|
+
@Offset = offset
|
666
|
+
end
|
667
|
+
|
668
|
+
def deserialize(params)
|
669
|
+
@ClusterId = params['ClusterId']
|
670
|
+
unless params['Filter'].nil?
|
671
|
+
@Filter = []
|
672
|
+
params['Filter'].each do |i|
|
673
|
+
filter_tmp = Filter.new
|
674
|
+
filter_tmp.deserialize(i)
|
675
|
+
@Filter << filter_tmp
|
676
|
+
end
|
677
|
+
end
|
678
|
+
@Limit = params['Limit']
|
679
|
+
@Offset = params['Offset']
|
680
|
+
end
|
681
|
+
end
|
682
|
+
|
683
|
+
# DescribeHealthCheckPolicyBindings返回参数结构体
|
684
|
+
class DescribeHealthCheckPolicyBindingsResponse < TencentCloud::Common::AbstractModel
|
685
|
+
# @param HealthCheckPolicyBindings: 健康检测规则数组
|
686
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
687
|
+
# @type HealthCheckPolicyBindings: Array
|
688
|
+
# @param TotalCount: 健康检测规则数量
|
689
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
690
|
+
# @type TotalCount: Integer
|
691
|
+
# @param RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
692
|
+
# @type RequestId: String
|
693
|
+
|
694
|
+
attr_accessor :HealthCheckPolicyBindings, :TotalCount, :RequestId
|
695
|
+
|
696
|
+
def initialize(healthcheckpolicybindings=nil, totalcount=nil, requestid=nil)
|
697
|
+
@HealthCheckPolicyBindings = healthcheckpolicybindings
|
698
|
+
@TotalCount = totalcount
|
699
|
+
@RequestId = requestid
|
700
|
+
end
|
701
|
+
|
702
|
+
def deserialize(params)
|
703
|
+
unless params['HealthCheckPolicyBindings'].nil?
|
704
|
+
@HealthCheckPolicyBindings = []
|
705
|
+
params['HealthCheckPolicyBindings'].each do |i|
|
706
|
+
healthcheckpolicybinding_tmp = HealthCheckPolicyBinding.new
|
707
|
+
healthcheckpolicybinding_tmp.deserialize(i)
|
708
|
+
@HealthCheckPolicyBindings << healthcheckpolicybinding_tmp
|
709
|
+
end
|
710
|
+
end
|
711
|
+
@TotalCount = params['TotalCount']
|
712
|
+
@RequestId = params['RequestId']
|
713
|
+
end
|
714
|
+
end
|
715
|
+
|
716
|
+
# DescribeHealthCheckTemplate请求参数结构体
|
717
|
+
class DescribeHealthCheckTemplateRequest < TencentCloud::Common::AbstractModel
|
718
|
+
|
719
|
+
|
720
|
+
def initialize()
|
721
|
+
end
|
722
|
+
|
723
|
+
def deserialize(params)
|
724
|
+
end
|
725
|
+
end
|
726
|
+
|
727
|
+
# DescribeHealthCheckTemplate返回参数结构体
|
728
|
+
class DescribeHealthCheckTemplateResponse < TencentCloud::Common::AbstractModel
|
729
|
+
# @param HealthCheckTemplate: 健康检测策略模板
|
730
|
+
# @type HealthCheckTemplate: :class:`Tencentcloud::Tke.v20220501.models.HealthCheckTemplate`
|
731
|
+
# @param RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
732
|
+
# @type RequestId: String
|
733
|
+
|
734
|
+
attr_accessor :HealthCheckTemplate, :RequestId
|
735
|
+
|
736
|
+
def initialize(healthchecktemplate=nil, requestid=nil)
|
737
|
+
@HealthCheckTemplate = healthchecktemplate
|
738
|
+
@RequestId = requestid
|
739
|
+
end
|
740
|
+
|
741
|
+
def deserialize(params)
|
742
|
+
unless params['HealthCheckTemplate'].nil?
|
743
|
+
@HealthCheckTemplate = HealthCheckTemplate.new
|
744
|
+
@HealthCheckTemplate.deserialize(params['HealthCheckTemplate'])
|
745
|
+
end
|
746
|
+
@RequestId = params['RequestId']
|
747
|
+
end
|
748
|
+
end
|
749
|
+
|
495
750
|
# DescribeNodePools请求参数结构体
|
496
751
|
class DescribeNodePoolsRequest < TencentCloud::Common::AbstractModel
|
497
752
|
# @param ClusterId: 集群 ID
|
@@ -685,6 +940,144 @@ module TencentCloud
|
|
685
940
|
end
|
686
941
|
end
|
687
942
|
|
943
|
+
# 健康检测规则
|
944
|
+
class HealthCheckPolicy < TencentCloud::Common::AbstractModel
|
945
|
+
# @param Name: 健康检测策略名称
|
946
|
+
# @type Name: String
|
947
|
+
# @param Rules: 健康检测策略规则列表
|
948
|
+
# @type Rules: Array
|
949
|
+
|
950
|
+
attr_accessor :Name, :Rules
|
951
|
+
|
952
|
+
def initialize(name=nil, rules=nil)
|
953
|
+
@Name = name
|
954
|
+
@Rules = rules
|
955
|
+
end
|
956
|
+
|
957
|
+
def deserialize(params)
|
958
|
+
@Name = params['Name']
|
959
|
+
unless params['Rules'].nil?
|
960
|
+
@Rules = []
|
961
|
+
params['Rules'].each do |i|
|
962
|
+
healthcheckpolicyrule_tmp = HealthCheckPolicyRule.new
|
963
|
+
healthcheckpolicyrule_tmp.deserialize(i)
|
964
|
+
@Rules << healthcheckpolicyrule_tmp
|
965
|
+
end
|
966
|
+
end
|
967
|
+
end
|
968
|
+
end
|
969
|
+
|
970
|
+
# 健康检测策略和节点池的绑定关系
|
971
|
+
class HealthCheckPolicyBinding < TencentCloud::Common::AbstractModel
|
972
|
+
# @param Name: 健康检测策略名称
|
973
|
+
# @type Name: String
|
974
|
+
# @param CreatedAt: 规则创建时间
|
975
|
+
# @type CreatedAt: String
|
976
|
+
# @param NodePools: 关联节点池数组
|
977
|
+
# @type NodePools: Array
|
978
|
+
|
979
|
+
attr_accessor :Name, :CreatedAt, :NodePools
|
980
|
+
|
981
|
+
def initialize(name=nil, createdat=nil, nodepools=nil)
|
982
|
+
@Name = name
|
983
|
+
@CreatedAt = createdat
|
984
|
+
@NodePools = nodepools
|
985
|
+
end
|
986
|
+
|
987
|
+
def deserialize(params)
|
988
|
+
@Name = params['Name']
|
989
|
+
@CreatedAt = params['CreatedAt']
|
990
|
+
@NodePools = params['NodePools']
|
991
|
+
end
|
992
|
+
end
|
993
|
+
|
994
|
+
# 健康检测规则
|
995
|
+
class HealthCheckPolicyRule < TencentCloud::Common::AbstractModel
|
996
|
+
# @param Name: 健康检测规则
|
997
|
+
# @type Name: String
|
998
|
+
# @param Enabled: 是否检测此项目
|
999
|
+
# @type Enabled: Boolean
|
1000
|
+
# @param AutoRepairEnabled: 是否启用修复
|
1001
|
+
# @type AutoRepairEnabled: Boolean
|
1002
|
+
|
1003
|
+
attr_accessor :Name, :Enabled, :AutoRepairEnabled
|
1004
|
+
|
1005
|
+
def initialize(name=nil, enabled=nil, autorepairenabled=nil)
|
1006
|
+
@Name = name
|
1007
|
+
@Enabled = enabled
|
1008
|
+
@AutoRepairEnabled = autorepairenabled
|
1009
|
+
end
|
1010
|
+
|
1011
|
+
def deserialize(params)
|
1012
|
+
@Name = params['Name']
|
1013
|
+
@Enabled = params['Enabled']
|
1014
|
+
@AutoRepairEnabled = params['AutoRepairEnabled']
|
1015
|
+
end
|
1016
|
+
end
|
1017
|
+
|
1018
|
+
# 健康检测模板
|
1019
|
+
class HealthCheckTemplate < TencentCloud::Common::AbstractModel
|
1020
|
+
# @param Rules: 健康检测项
|
1021
|
+
# @type Rules: Array
|
1022
|
+
|
1023
|
+
attr_accessor :Rules
|
1024
|
+
|
1025
|
+
def initialize(rules=nil)
|
1026
|
+
@Rules = rules
|
1027
|
+
end
|
1028
|
+
|
1029
|
+
def deserialize(params)
|
1030
|
+
unless params['Rules'].nil?
|
1031
|
+
@Rules = []
|
1032
|
+
params['Rules'].each do |i|
|
1033
|
+
healthchecktemplaterule_tmp = HealthCheckTemplateRule.new
|
1034
|
+
healthchecktemplaterule_tmp.deserialize(i)
|
1035
|
+
@Rules << healthchecktemplaterule_tmp
|
1036
|
+
end
|
1037
|
+
end
|
1038
|
+
end
|
1039
|
+
end
|
1040
|
+
|
1041
|
+
# 健康检测模板规则
|
1042
|
+
class HealthCheckTemplateRule < TencentCloud::Common::AbstractModel
|
1043
|
+
# @param Name: 健康检测项目名称
|
1044
|
+
# @type Name: String
|
1045
|
+
# @param Description: 健康检测规则描述
|
1046
|
+
# @type Description: String
|
1047
|
+
# @param RepairAction: 修复动作
|
1048
|
+
# @type RepairAction: String
|
1049
|
+
# @param RepairEffect: 修复影响
|
1050
|
+
# @type RepairEffect: String
|
1051
|
+
# @param ShouldEnable: 是否建议开启检测
|
1052
|
+
# @type ShouldEnable: Boolean
|
1053
|
+
# @param ShouldRepair: 是否建议修复
|
1054
|
+
# @type ShouldRepair: Boolean
|
1055
|
+
# @param Severity: 问题严重程度
|
1056
|
+
# @type Severity: String
|
1057
|
+
|
1058
|
+
attr_accessor :Name, :Description, :RepairAction, :RepairEffect, :ShouldEnable, :ShouldRepair, :Severity
|
1059
|
+
|
1060
|
+
def initialize(name=nil, description=nil, repairaction=nil, repaireffect=nil, shouldenable=nil, shouldrepair=nil, severity=nil)
|
1061
|
+
@Name = name
|
1062
|
+
@Description = description
|
1063
|
+
@RepairAction = repairaction
|
1064
|
+
@RepairEffect = repaireffect
|
1065
|
+
@ShouldEnable = shouldenable
|
1066
|
+
@ShouldRepair = shouldrepair
|
1067
|
+
@Severity = severity
|
1068
|
+
end
|
1069
|
+
|
1070
|
+
def deserialize(params)
|
1071
|
+
@Name = params['Name']
|
1072
|
+
@Description = params['Description']
|
1073
|
+
@RepairAction = params['RepairAction']
|
1074
|
+
@RepairEffect = params['RepairEffect']
|
1075
|
+
@ShouldEnable = params['ShouldEnable']
|
1076
|
+
@ShouldRepair = params['ShouldRepair']
|
1077
|
+
@Severity = params['Severity']
|
1078
|
+
end
|
1079
|
+
end
|
1080
|
+
|
688
1081
|
# 集群的实例信息
|
689
1082
|
class Instance < TencentCloud::Common::AbstractModel
|
690
1083
|
# @param InstanceId: 实例ID
|
@@ -1070,6 +1463,45 @@ module TencentCloud
|
|
1070
1463
|
end
|
1071
1464
|
end
|
1072
1465
|
|
1466
|
+
# ModifyHealthCheckPolicy请求参数结构体
|
1467
|
+
class ModifyHealthCheckPolicyRequest < TencentCloud::Common::AbstractModel
|
1468
|
+
# @param ClusterId: 集群 ID
|
1469
|
+
# @type ClusterId: String
|
1470
|
+
# @param HealthCheckPolicy: 健康检测策略
|
1471
|
+
# @type HealthCheckPolicy: :class:`Tencentcloud::Tke.v20220501.models.HealthCheckPolicy`
|
1472
|
+
|
1473
|
+
attr_accessor :ClusterId, :HealthCheckPolicy
|
1474
|
+
|
1475
|
+
def initialize(clusterid=nil, healthcheckpolicy=nil)
|
1476
|
+
@ClusterId = clusterid
|
1477
|
+
@HealthCheckPolicy = healthcheckpolicy
|
1478
|
+
end
|
1479
|
+
|
1480
|
+
def deserialize(params)
|
1481
|
+
@ClusterId = params['ClusterId']
|
1482
|
+
unless params['HealthCheckPolicy'].nil?
|
1483
|
+
@HealthCheckPolicy = HealthCheckPolicy.new
|
1484
|
+
@HealthCheckPolicy.deserialize(params['HealthCheckPolicy'])
|
1485
|
+
end
|
1486
|
+
end
|
1487
|
+
end
|
1488
|
+
|
1489
|
+
# ModifyHealthCheckPolicy返回参数结构体
|
1490
|
+
class ModifyHealthCheckPolicyResponse < TencentCloud::Common::AbstractModel
|
1491
|
+
# @param RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
1492
|
+
# @type RequestId: String
|
1493
|
+
|
1494
|
+
attr_accessor :RequestId
|
1495
|
+
|
1496
|
+
def initialize(requestid=nil)
|
1497
|
+
@RequestId = requestid
|
1498
|
+
end
|
1499
|
+
|
1500
|
+
def deserialize(params)
|
1501
|
+
@RequestId = params['RequestId']
|
1502
|
+
end
|
1503
|
+
end
|
1504
|
+
|
1073
1505
|
# ModifyNodePool请求参数结构体
|
1074
1506
|
class ModifyNodePoolRequest < TencentCloud::Common::AbstractModel
|
1075
1507
|
# @param ClusterId: 集群 ID
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: tencentcloud-sdk-tke
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 3.0.
|
4
|
+
version: 3.0.904
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Tencent Cloud
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2024-09-
|
11
|
+
date: 2024-09-11 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: tencentcloud-sdk-common
|