tencentcloud-sdk-tcm 3.0.439 → 3.0.441
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 +48 -0
- data/lib/v20210413/models.rb +71 -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: 4a5a89df71e42edc3f219942e5016c25f3417cd6
|
4
|
+
data.tar.gz: 8c63fdd2a01c7605d9dc248e104b662fca47cc91
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 40476d37c2883b9e4084df858f7a9a6654f74c80d9675b91cc105906cbf77e5c290cca960e781121d8ad9e788b5404a6437efc3b858b0af1df6e48b6fbcd56f5
|
7
|
+
data.tar.gz: 9ee26e58070b50423a52191df7a137b07ad68c5a9e70620b99f819fb6f4417f79135374e720dae90257b0141c9fb4e14e40415d42328ed0bf06887cb10dffe80
|
data/lib/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
3.0.
|
1
|
+
3.0.441
|
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.
|
@@ -197,6 +221,30 @@ module TencentCloud
|
|
197
221
|
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
198
222
|
end
|
199
223
|
|
224
|
+
# 解除关联Prometheus
|
225
|
+
|
226
|
+
# @param request: Request instance for UnlinkPrometheus.
|
227
|
+
# @type request: :class:`Tencentcloud::tcm::V20210413::UnlinkPrometheusRequest`
|
228
|
+
# @rtype: :class:`Tencentcloud::tcm::V20210413::UnlinkPrometheusResponse`
|
229
|
+
def UnlinkPrometheus(request)
|
230
|
+
body = send_request('UnlinkPrometheus', request.serialize)
|
231
|
+
response = JSON.parse(body)
|
232
|
+
if response['Response'].key?('Error') == false
|
233
|
+
model = UnlinkPrometheusResponse.new
|
234
|
+
model.deserialize(response['Response'])
|
235
|
+
model
|
236
|
+
else
|
237
|
+
code = response['Response']['Error']['Code']
|
238
|
+
message = response['Response']['Error']['Message']
|
239
|
+
reqid = response['Response']['RequestId']
|
240
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
241
|
+
end
|
242
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
243
|
+
raise e
|
244
|
+
rescue StandardError => e
|
245
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
246
|
+
end
|
247
|
+
|
200
248
|
|
201
249
|
end
|
202
250
|
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: 负载均衡实例的网络类型:
|
@@ -1838,6 +1877,38 @@ module TencentCloud
|
|
1838
1877
|
end
|
1839
1878
|
end
|
1840
1879
|
|
1880
|
+
# UnlinkPrometheus请求参数结构体
|
1881
|
+
class UnlinkPrometheusRequest < TencentCloud::Common::AbstractModel
|
1882
|
+
# @param MeshID: 网格ID
|
1883
|
+
# @type MeshID: String
|
1884
|
+
|
1885
|
+
attr_accessor :MeshID
|
1886
|
+
|
1887
|
+
def initialize(meshid=nil)
|
1888
|
+
@MeshID = meshid
|
1889
|
+
end
|
1890
|
+
|
1891
|
+
def deserialize(params)
|
1892
|
+
@MeshID = params['MeshID']
|
1893
|
+
end
|
1894
|
+
end
|
1895
|
+
|
1896
|
+
# UnlinkPrometheus返回参数结构体
|
1897
|
+
class UnlinkPrometheusResponse < TencentCloud::Common::AbstractModel
|
1898
|
+
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
1899
|
+
# @type RequestId: String
|
1900
|
+
|
1901
|
+
attr_accessor :RequestId
|
1902
|
+
|
1903
|
+
def initialize(requestid=nil)
|
1904
|
+
@RequestId = requestid
|
1905
|
+
end
|
1906
|
+
|
1907
|
+
def deserialize(params)
|
1908
|
+
@RequestId = params['RequestId']
|
1909
|
+
end
|
1910
|
+
end
|
1911
|
+
|
1841
1912
|
# 工作负载配置
|
1842
1913
|
class WorkloadConfig < TencentCloud::Common::AbstractModel
|
1843
1914
|
# @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.441
|
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
|