tencentcloud-sdk-tke 3.0.908 → 3.0.910
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/client.rb +48 -0
- data/lib/v20180525/models.rb +109 -1
- 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: b80fdc2698009033be862fd32725b2641a2490c5
|
4
|
+
data.tar.gz: 0c292a345a5a2e2a44ffcacef2ee4e5711e7fff8
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 668820b42859f81a3097e7f9f7b98354704cf383162a8bde51654033c17e7f9914569c625f266add501beb2a27ca09de475d6a419a442b4fdf0832c2ba632c09
|
7
|
+
data.tar.gz: 1cf21ba2e700f88f01cc8e52c25b21e49b4380acf694e2f3061535235b1da7b7a4fd3094936c2566aa9424cb80ad57eea7e62d080d4686d562160dc32c3f0e05
|
data/lib/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
3.0.
|
1
|
+
3.0.910
|
data/lib/v20180525/client.rb
CHANGED
@@ -1373,6 +1373,30 @@ module TencentCloud
|
|
1373
1373
|
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
1374
1374
|
end
|
1375
1375
|
|
1376
|
+
# 删除集群内采集规则
|
1377
|
+
|
1378
|
+
# @param request: Request instance for DeleteLogConfigs.
|
1379
|
+
# @type request: :class:`Tencentcloud::tke::V20180525::DeleteLogConfigsRequest`
|
1380
|
+
# @rtype: :class:`Tencentcloud::tke::V20180525::DeleteLogConfigsResponse`
|
1381
|
+
def DeleteLogConfigs(request)
|
1382
|
+
body = send_request('DeleteLogConfigs', request.serialize)
|
1383
|
+
response = JSON.parse(body)
|
1384
|
+
if response['Response'].key?('Error') == false
|
1385
|
+
model = DeleteLogConfigsResponse.new
|
1386
|
+
model.deserialize(response['Response'])
|
1387
|
+
model
|
1388
|
+
else
|
1389
|
+
code = response['Response']['Error']['Code']
|
1390
|
+
message = response['Response']['Error']['Message']
|
1391
|
+
reqid = response['Response']['RequestId']
|
1392
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
1393
|
+
end
|
1394
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
1395
|
+
raise e
|
1396
|
+
rescue StandardError => e
|
1397
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
1398
|
+
end
|
1399
|
+
|
1376
1400
|
# 删除2.0实例告警策略
|
1377
1401
|
|
1378
1402
|
# @param request: Request instance for DeletePrometheusAlertPolicy.
|
@@ -2911,6 +2935,30 @@ module TencentCloud
|
|
2911
2935
|
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
2912
2936
|
end
|
2913
2937
|
|
2938
|
+
# 查询日志采集规则
|
2939
|
+
|
2940
|
+
# @param request: Request instance for DescribeLogConfigs.
|
2941
|
+
# @type request: :class:`Tencentcloud::tke::V20180525::DescribeLogConfigsRequest`
|
2942
|
+
# @rtype: :class:`Tencentcloud::tke::V20180525::DescribeLogConfigsResponse`
|
2943
|
+
def DescribeLogConfigs(request)
|
2944
|
+
body = send_request('DescribeLogConfigs', request.serialize)
|
2945
|
+
response = JSON.parse(body)
|
2946
|
+
if response['Response'].key?('Error') == false
|
2947
|
+
model = DescribeLogConfigsResponse.new
|
2948
|
+
model.deserialize(response['Response'])
|
2949
|
+
model
|
2950
|
+
else
|
2951
|
+
code = response['Response']['Error']['Code']
|
2952
|
+
message = response['Response']['Error']['Message']
|
2953
|
+
reqid = response['Response']['RequestId']
|
2954
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
2955
|
+
end
|
2956
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
2957
|
+
raise e
|
2958
|
+
rescue StandardError => e
|
2959
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
2960
|
+
end
|
2961
|
+
|
2914
2962
|
# 查询集群日志(审计、事件、普通日志)开关列表
|
2915
2963
|
|
2916
2964
|
# @param request: Request instance for DescribeLogSwitches.
|
data/lib/v20180525/models.rb
CHANGED
@@ -4607,6 +4607,51 @@ module TencentCloud
|
|
4607
4607
|
end
|
4608
4608
|
end
|
4609
4609
|
|
4610
|
+
# DeleteLogConfigs请求参数结构体
|
4611
|
+
class DeleteLogConfigsRequest < TencentCloud::Common::AbstractModel
|
4612
|
+
# @param ClusterId: 集群ID
|
4613
|
+
# @type ClusterId: String
|
4614
|
+
# @param LogConfigNames: 待删除采集规则名称,多个采集规则使用","分隔
|
4615
|
+
# @type LogConfigNames: String
|
4616
|
+
# @param ClusterType: 集群集群类型, tke/eks 默认为 tke 集群
|
4617
|
+
# @type ClusterType: String
|
4618
|
+
|
4619
|
+
attr_accessor :ClusterId, :LogConfigNames, :ClusterType
|
4620
|
+
|
4621
|
+
def initialize(clusterid=nil, logconfignames=nil, clustertype=nil)
|
4622
|
+
@ClusterId = clusterid
|
4623
|
+
@LogConfigNames = logconfignames
|
4624
|
+
@ClusterType = clustertype
|
4625
|
+
end
|
4626
|
+
|
4627
|
+
def deserialize(params)
|
4628
|
+
@ClusterId = params['ClusterId']
|
4629
|
+
@LogConfigNames = params['LogConfigNames']
|
4630
|
+
@ClusterType = params['ClusterType']
|
4631
|
+
end
|
4632
|
+
end
|
4633
|
+
|
4634
|
+
# DeleteLogConfigs返回参数结构体
|
4635
|
+
class DeleteLogConfigsResponse < TencentCloud::Common::AbstractModel
|
4636
|
+
# @param Message: 删除采集规则遇到错误时返回错误原因
|
4637
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
4638
|
+
# @type Message: String
|
4639
|
+
# @param RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
4640
|
+
# @type RequestId: String
|
4641
|
+
|
4642
|
+
attr_accessor :Message, :RequestId
|
4643
|
+
|
4644
|
+
def initialize(message=nil, requestid=nil)
|
4645
|
+
@Message = message
|
4646
|
+
@RequestId = requestid
|
4647
|
+
end
|
4648
|
+
|
4649
|
+
def deserialize(params)
|
4650
|
+
@Message = params['Message']
|
4651
|
+
@RequestId = params['RequestId']
|
4652
|
+
end
|
4653
|
+
end
|
4654
|
+
|
4610
4655
|
# DeletePrometheusAlertPolicy请求参数结构体
|
4611
4656
|
class DeletePrometheusAlertPolicyRequest < TencentCloud::Common::AbstractModel
|
4612
4657
|
# @param InstanceId: 实例id
|
@@ -8027,6 +8072,69 @@ module TencentCloud
|
|
8027
8072
|
end
|
8028
8073
|
end
|
8029
8074
|
|
8075
|
+
# DescribeLogConfigs请求参数结构体
|
8076
|
+
class DescribeLogConfigsRequest < TencentCloud::Common::AbstractModel
|
8077
|
+
# @param ClusterId: 集群ID
|
8078
|
+
# @type ClusterId: String
|
8079
|
+
# @param ClusterType: 当前集群类型支持tke、eks。默认为tke
|
8080
|
+
# @type ClusterType: String
|
8081
|
+
# @param LogConfigNames: 按照采集规则名称查找,多个采集规则使用 "," 分隔。
|
8082
|
+
# @type LogConfigNames: String
|
8083
|
+
# @param Offset: 偏移量,默认0
|
8084
|
+
# @type Offset: Integer
|
8085
|
+
# @param Limit: 最大输出条数,默认20,最大为100
|
8086
|
+
# @type Limit: Integer
|
8087
|
+
|
8088
|
+
attr_accessor :ClusterId, :ClusterType, :LogConfigNames, :Offset, :Limit
|
8089
|
+
|
8090
|
+
def initialize(clusterid=nil, clustertype=nil, logconfignames=nil, offset=nil, limit=nil)
|
8091
|
+
@ClusterId = clusterid
|
8092
|
+
@ClusterType = clustertype
|
8093
|
+
@LogConfigNames = logconfignames
|
8094
|
+
@Offset = offset
|
8095
|
+
@Limit = limit
|
8096
|
+
end
|
8097
|
+
|
8098
|
+
def deserialize(params)
|
8099
|
+
@ClusterId = params['ClusterId']
|
8100
|
+
@ClusterType = params['ClusterType']
|
8101
|
+
@LogConfigNames = params['LogConfigNames']
|
8102
|
+
@Offset = params['Offset']
|
8103
|
+
@Limit = params['Limit']
|
8104
|
+
end
|
8105
|
+
end
|
8106
|
+
|
8107
|
+
# DescribeLogConfigs返回参数结构体
|
8108
|
+
class DescribeLogConfigsResponse < TencentCloud::Common::AbstractModel
|
8109
|
+
# @param Total: 分页查找时返回采集规则总数
|
8110
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
8111
|
+
# @type Total: Integer
|
8112
|
+
# @param Message: 指定采集规则名称查找,部分失败时返回失败采集规则名称及最后一个失败原因
|
8113
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
8114
|
+
# @type Message: String
|
8115
|
+
# @param LogConfigs: 采集规则查询结果
|
8116
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
8117
|
+
# @type LogConfigs: String
|
8118
|
+
# @param RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
8119
|
+
# @type RequestId: String
|
8120
|
+
|
8121
|
+
attr_accessor :Total, :Message, :LogConfigs, :RequestId
|
8122
|
+
|
8123
|
+
def initialize(total=nil, message=nil, logconfigs=nil, requestid=nil)
|
8124
|
+
@Total = total
|
8125
|
+
@Message = message
|
8126
|
+
@LogConfigs = logconfigs
|
8127
|
+
@RequestId = requestid
|
8128
|
+
end
|
8129
|
+
|
8130
|
+
def deserialize(params)
|
8131
|
+
@Total = params['Total']
|
8132
|
+
@Message = params['Message']
|
8133
|
+
@LogConfigs = params['LogConfigs']
|
8134
|
+
@RequestId = params['RequestId']
|
8135
|
+
end
|
8136
|
+
end
|
8137
|
+
|
8030
8138
|
# DescribeLogSwitches请求参数结构体
|
8031
8139
|
class DescribeLogSwitchesRequest < TencentCloud::Common::AbstractModel
|
8032
8140
|
# @param ClusterIds: 集群ID列表
|
@@ -15136,7 +15244,7 @@ module TencentCloud
|
|
15136
15244
|
# @param Namespace: 应用命名空间
|
15137
15245
|
# 注意:此字段可能返回 null,表示取不到有效值。
|
15138
15246
|
# @type Namespace: String
|
15139
|
-
# @param Status: 应用状态
|
15247
|
+
# @param Status: 应用状态(参考helm的发布状态: unknown, deployed, uninstalled, superseded, failed, uninstalling, pending-install, pending-upgrade 或 pending-rollback)
|
15140
15248
|
# 注意:此字段可能返回 null,表示取不到有效值。
|
15141
15249
|
# @type Status: String
|
15142
15250
|
# @param UpdatedTime: 更新时间
|
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.910
|
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-22 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: tencentcloud-sdk-common
|