tencentcloud-sdk-tcm 3.0.440 → 3.0.442
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/v20210413/client.rb +72 -0
- data/lib/v20210413/models.rb +125 -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: 793705fe27b89f832d259a4c199c8107c7c1100b
|
4
|
+
data.tar.gz: 66e54d5e78aaa7b15161f398e098dff87427d7da
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 624a00f33e8cba3067c96f4e8b4b051bd653a3e4e9b8ac2435397870795f3c2801ebfddb15bec9a6eb0c6f0b31ebb27ce5eafb62b1a6186e304e7c2d20cb5ca3
|
7
|
+
data.tar.gz: 12ef07c166329725afceab5fad078eeecbd1cef91b01fe129548c6229e1f2a55d0f3136f24d9aa1a396fec25dcc5af38f10b2e4829316406916e4c43af39dded
|
data/lib/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
3.0.
|
1
|
+
3.0.442
|
data/lib/v20210413/client.rb
CHANGED
@@ -149,6 +149,30 @@ module TencentCloud
|
|
149
149
|
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
150
150
|
end
|
151
151
|
|
152
|
+
# 关联Prometheus
|
153
|
+
|
154
|
+
# @param request: Request instance for LinkPrometheus.
|
155
|
+
# @type request: :class:`Tencentcloud::tcm::V20210413::LinkPrometheusRequest`
|
156
|
+
# @rtype: :class:`Tencentcloud::tcm::V20210413::LinkPrometheusResponse`
|
157
|
+
def LinkPrometheus(request)
|
158
|
+
body = send_request('LinkPrometheus', request.serialize)
|
159
|
+
response = JSON.parse(body)
|
160
|
+
if response['Response'].key?('Error') == false
|
161
|
+
model = LinkPrometheusResponse.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
|
+
|
152
176
|
# 修改网格
|
153
177
|
|
154
178
|
# @param request: Request instance for ModifyMesh.
|
@@ -173,6 +197,30 @@ module TencentCloud
|
|
173
197
|
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
174
198
|
end
|
175
199
|
|
200
|
+
# 修改 Tracing 配置
|
201
|
+
|
202
|
+
# @param request: Request instance for ModifyTracingConfig.
|
203
|
+
# @type request: :class:`Tencentcloud::tcm::V20210413::ModifyTracingConfigRequest`
|
204
|
+
# @rtype: :class:`Tencentcloud::tcm::V20210413::ModifyTracingConfigResponse`
|
205
|
+
def ModifyTracingConfig(request)
|
206
|
+
body = send_request('ModifyTracingConfig', request.serialize)
|
207
|
+
response = JSON.parse(body)
|
208
|
+
if response['Response'].key?('Error') == false
|
209
|
+
model = ModifyTracingConfigResponse.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
|
+
|
176
224
|
# 解关联集群
|
177
225
|
|
178
226
|
# @param request: Request instance for UnlinkCluster.
|
@@ -197,6 +245,30 @@ module TencentCloud
|
|
197
245
|
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
198
246
|
end
|
199
247
|
|
248
|
+
# 解除关联Prometheus
|
249
|
+
|
250
|
+
# @param request: Request instance for UnlinkPrometheus.
|
251
|
+
# @type request: :class:`Tencentcloud::tcm::V20210413::UnlinkPrometheusRequest`
|
252
|
+
# @rtype: :class:`Tencentcloud::tcm::V20210413::UnlinkPrometheusResponse`
|
253
|
+
def UnlinkPrometheus(request)
|
254
|
+
body = send_request('UnlinkPrometheus', request.serialize)
|
255
|
+
response = JSON.parse(body)
|
256
|
+
if response['Response'].key?('Error') == false
|
257
|
+
model = UnlinkPrometheusResponse.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
|
+
|
200
272
|
|
201
273
|
end
|
202
274
|
end
|
data/lib/v20210413/models.rb
CHANGED
@@ -1048,6 +1048,45 @@ module TencentCloud
|
|
1048
1048
|
end
|
1049
1049
|
end
|
1050
1050
|
|
1051
|
+
# LinkPrometheus请求参数结构体
|
1052
|
+
class LinkPrometheusRequest < TencentCloud::Common::AbstractModel
|
1053
|
+
# @param MeshID: 网格ID
|
1054
|
+
# @type MeshID: String
|
1055
|
+
# @param Prometheus: 配置
|
1056
|
+
# @type Prometheus: :class:`Tencentcloud::Tcm.v20210413.models.PrometheusConfig`
|
1057
|
+
|
1058
|
+
attr_accessor :MeshID, :Prometheus
|
1059
|
+
|
1060
|
+
def initialize(meshid=nil, prometheus=nil)
|
1061
|
+
@MeshID = meshid
|
1062
|
+
@Prometheus = prometheus
|
1063
|
+
end
|
1064
|
+
|
1065
|
+
def deserialize(params)
|
1066
|
+
@MeshID = params['MeshID']
|
1067
|
+
unless params['Prometheus'].nil?
|
1068
|
+
@Prometheus = PrometheusConfig.new
|
1069
|
+
@Prometheus.deserialize(params['Prometheus'])
|
1070
|
+
end
|
1071
|
+
end
|
1072
|
+
end
|
1073
|
+
|
1074
|
+
# LinkPrometheus返回参数结构体
|
1075
|
+
class LinkPrometheusResponse < TencentCloud::Common::AbstractModel
|
1076
|
+
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
1077
|
+
# @type RequestId: String
|
1078
|
+
|
1079
|
+
attr_accessor :RequestId
|
1080
|
+
|
1081
|
+
def initialize(requestid=nil)
|
1082
|
+
@RequestId = requestid
|
1083
|
+
end
|
1084
|
+
|
1085
|
+
def deserialize(params)
|
1086
|
+
@RequestId = params['RequestId']
|
1087
|
+
end
|
1088
|
+
end
|
1089
|
+
|
1051
1090
|
# 负载均衡配置
|
1052
1091
|
class LoadBalancer < TencentCloud::Common::AbstractModel
|
1053
1092
|
# @param LoadBalancerType: 负载均衡实例的网络类型:
|
@@ -1444,6 +1483,60 @@ module TencentCloud
|
|
1444
1483
|
end
|
1445
1484
|
end
|
1446
1485
|
|
1486
|
+
# ModifyTracingConfig请求参数结构体
|
1487
|
+
class ModifyTracingConfigRequest < TencentCloud::Common::AbstractModel
|
1488
|
+
# @param MeshId: mesh名字
|
1489
|
+
# @type MeshId: String
|
1490
|
+
# @param Enable: 是否启用调用跟踪
|
1491
|
+
# @type Enable: Boolean
|
1492
|
+
# @param APM: 腾讯云 APM 服务相关参数
|
1493
|
+
# @type APM: :class:`Tencentcloud::Tcm.v20210413.models.APM`
|
1494
|
+
# @param Sampling: 调用跟踪采样值
|
1495
|
+
# @type Sampling: Float
|
1496
|
+
# @param Zipkin: 调用追踪Zipkin相关配置
|
1497
|
+
# @type Zipkin: :class:`Tencentcloud::Tcm.v20210413.models.TracingZipkin`
|
1498
|
+
|
1499
|
+
attr_accessor :MeshId, :Enable, :APM, :Sampling, :Zipkin
|
1500
|
+
|
1501
|
+
def initialize(meshid=nil, enable=nil, apm=nil, sampling=nil, zipkin=nil)
|
1502
|
+
@MeshId = meshid
|
1503
|
+
@Enable = enable
|
1504
|
+
@APM = apm
|
1505
|
+
@Sampling = sampling
|
1506
|
+
@Zipkin = zipkin
|
1507
|
+
end
|
1508
|
+
|
1509
|
+
def deserialize(params)
|
1510
|
+
@MeshId = params['MeshId']
|
1511
|
+
@Enable = params['Enable']
|
1512
|
+
unless params['APM'].nil?
|
1513
|
+
@APM = APM.new
|
1514
|
+
@APM.deserialize(params['APM'])
|
1515
|
+
end
|
1516
|
+
@Sampling = params['Sampling']
|
1517
|
+
unless params['Zipkin'].nil?
|
1518
|
+
@Zipkin = TracingZipkin.new
|
1519
|
+
@Zipkin.deserialize(params['Zipkin'])
|
1520
|
+
end
|
1521
|
+
end
|
1522
|
+
end
|
1523
|
+
|
1524
|
+
# ModifyTracingConfig返回参数结构体
|
1525
|
+
class ModifyTracingConfigResponse < TencentCloud::Common::AbstractModel
|
1526
|
+
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
1527
|
+
# @type RequestId: String
|
1528
|
+
|
1529
|
+
attr_accessor :RequestId
|
1530
|
+
|
1531
|
+
def initialize(requestid=nil)
|
1532
|
+
@RequestId = requestid
|
1533
|
+
end
|
1534
|
+
|
1535
|
+
def deserialize(params)
|
1536
|
+
@RequestId = params['RequestId']
|
1537
|
+
end
|
1538
|
+
end
|
1539
|
+
|
1447
1540
|
# PodsMetricSource 定义了如何根据特定指标进行扩缩容
|
1448
1541
|
class PodsMetricSource < TencentCloud::Common::AbstractModel
|
1449
1542
|
# @param MetricName: 指标名
|
@@ -1838,6 +1931,38 @@ module TencentCloud
|
|
1838
1931
|
end
|
1839
1932
|
end
|
1840
1933
|
|
1934
|
+
# UnlinkPrometheus请求参数结构体
|
1935
|
+
class UnlinkPrometheusRequest < TencentCloud::Common::AbstractModel
|
1936
|
+
# @param MeshID: 网格ID
|
1937
|
+
# @type MeshID: String
|
1938
|
+
|
1939
|
+
attr_accessor :MeshID
|
1940
|
+
|
1941
|
+
def initialize(meshid=nil)
|
1942
|
+
@MeshID = meshid
|
1943
|
+
end
|
1944
|
+
|
1945
|
+
def deserialize(params)
|
1946
|
+
@MeshID = params['MeshID']
|
1947
|
+
end
|
1948
|
+
end
|
1949
|
+
|
1950
|
+
# UnlinkPrometheus返回参数结构体
|
1951
|
+
class UnlinkPrometheusResponse < TencentCloud::Common::AbstractModel
|
1952
|
+
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
1953
|
+
# @type RequestId: String
|
1954
|
+
|
1955
|
+
attr_accessor :RequestId
|
1956
|
+
|
1957
|
+
def initialize(requestid=nil)
|
1958
|
+
@RequestId = requestid
|
1959
|
+
end
|
1960
|
+
|
1961
|
+
def deserialize(params)
|
1962
|
+
@RequestId = params['RequestId']
|
1963
|
+
end
|
1964
|
+
end
|
1965
|
+
|
1841
1966
|
# 工作负载配置
|
1842
1967
|
class WorkloadConfig < TencentCloud::Common::AbstractModel
|
1843
1968
|
# @param Replicas: 工作副本数
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: tencentcloud-sdk-tcm
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 3.0.
|
4
|
+
version: 3.0.442
|
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-
|
11
|
+
date: 2022-11-01 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: tencentcloud-sdk-common
|