tencentcloud-sdk-tcm 3.0.456 → 3.0.458
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 +131 -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: bf2164a55b709ed2506e2fb51604d83353627838
|
4
|
+
data.tar.gz: fff80b61d61093418ce13d90df28b46894d83742
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 7bde91c5e0394d40dc14b67a036dc0f15fbe949a0f9f5d266ffd49bd1018de7948fc293946b6d9a07f8e12133d1c9b5952d67100030f2dc7ecbd9b70bd74b67b
|
7
|
+
data.tar.gz: bcc1d60e478b6099b38287d4ab98156f4d138c62f116a09e93efd0dcf145639d3743b37b9ace7b6c372b2f5b39369107c6425f912a84c34f9a5eadccb4b6690d
|
data/lib/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
3.0.
|
1
|
+
3.0.458
|
data/lib/v20210413/client.rb
CHANGED
@@ -77,6 +77,30 @@ module TencentCloud
|
|
77
77
|
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
78
78
|
end
|
79
79
|
|
80
|
+
# 获取AccessLog配置
|
81
|
+
|
82
|
+
# @param request: Request instance for DescribeAccessLogConfig.
|
83
|
+
# @type request: :class:`Tencentcloud::tcm::V20210413::DescribeAccessLogConfigRequest`
|
84
|
+
# @rtype: :class:`Tencentcloud::tcm::V20210413::DescribeAccessLogConfigResponse`
|
85
|
+
def DescribeAccessLogConfig(request)
|
86
|
+
body = send_request('DescribeAccessLogConfig', request.serialize)
|
87
|
+
response = JSON.parse(body)
|
88
|
+
if response['Response'].key?('Error') == false
|
89
|
+
model = DescribeAccessLogConfigResponse.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
|
+
|
80
104
|
# 查询网格详情
|
81
105
|
|
82
106
|
# @param request: Request instance for DescribeMesh.
|
@@ -173,6 +197,30 @@ module TencentCloud
|
|
173
197
|
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
174
198
|
end
|
175
199
|
|
200
|
+
# 修改访问日志配置
|
201
|
+
|
202
|
+
# @param request: Request instance for ModifyAccessLogConfig.
|
203
|
+
# @type request: :class:`Tencentcloud::tcm::V20210413::ModifyAccessLogConfigRequest`
|
204
|
+
# @rtype: :class:`Tencentcloud::tcm::V20210413::ModifyAccessLogConfigResponse`
|
205
|
+
def ModifyAccessLogConfig(request)
|
206
|
+
body = send_request('ModifyAccessLogConfig', request.serialize)
|
207
|
+
response = JSON.parse(body)
|
208
|
+
if response['Response'].key?('Error') == false
|
209
|
+
model = ModifyAccessLogConfigResponse.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 ModifyMesh.
|
data/lib/v20210413/models.rb
CHANGED
@@ -521,6 +521,63 @@ module TencentCloud
|
|
521
521
|
end
|
522
522
|
end
|
523
523
|
|
524
|
+
# DescribeAccessLogConfig请求参数结构体
|
525
|
+
class DescribeAccessLogConfigRequest < TencentCloud::Common::AbstractModel
|
526
|
+
# @param MeshId: mesh名字
|
527
|
+
# @type MeshId: String
|
528
|
+
|
529
|
+
attr_accessor :MeshId
|
530
|
+
|
531
|
+
def initialize(meshid=nil)
|
532
|
+
@MeshId = meshid
|
533
|
+
end
|
534
|
+
|
535
|
+
def deserialize(params)
|
536
|
+
@MeshId = params['MeshId']
|
537
|
+
end
|
538
|
+
end
|
539
|
+
|
540
|
+
# DescribeAccessLogConfig返回参数结构体
|
541
|
+
class DescribeAccessLogConfigResponse < TencentCloud::Common::AbstractModel
|
542
|
+
# @param File: 访问日志输出路径。默认 /dev/stdout
|
543
|
+
# @type File: String
|
544
|
+
# @param Format: 访问日志的格式。
|
545
|
+
# @type Format: String
|
546
|
+
# @param Encoding: 访问日志输出编码。默认 “TEXT”。除此之外还有“JSON”
|
547
|
+
# @type Encoding: String
|
548
|
+
# @param SelectedRange: 选中的范围
|
549
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
550
|
+
# @type SelectedRange: :class:`Tencentcloud::Tcm.v20210413.models.SelectedRange`
|
551
|
+
# @param Template: 采用的模板,可取值为"istio, trace,默认为istio
|
552
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
553
|
+
# @type Template: String
|
554
|
+
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
555
|
+
# @type RequestId: String
|
556
|
+
|
557
|
+
attr_accessor :File, :Format, :Encoding, :SelectedRange, :Template, :RequestId
|
558
|
+
|
559
|
+
def initialize(file=nil, format=nil, encoding=nil, selectedrange=nil, template=nil, requestid=nil)
|
560
|
+
@File = file
|
561
|
+
@Format = format
|
562
|
+
@Encoding = encoding
|
563
|
+
@SelectedRange = selectedrange
|
564
|
+
@Template = template
|
565
|
+
@RequestId = requestid
|
566
|
+
end
|
567
|
+
|
568
|
+
def deserialize(params)
|
569
|
+
@File = params['File']
|
570
|
+
@Format = params['Format']
|
571
|
+
@Encoding = params['Encoding']
|
572
|
+
unless params['SelectedRange'].nil?
|
573
|
+
@SelectedRange = SelectedRange.new
|
574
|
+
@SelectedRange.deserialize(params['SelectedRange'])
|
575
|
+
end
|
576
|
+
@Template = params['Template']
|
577
|
+
@RequestId = params['RequestId']
|
578
|
+
end
|
579
|
+
end
|
580
|
+
|
524
581
|
# DescribeMeshList请求参数结构体
|
525
582
|
class DescribeMeshListRequest < TencentCloud::Common::AbstractModel
|
526
583
|
# @param Filters: 过滤条件
|
@@ -1429,6 +1486,80 @@ module TencentCloud
|
|
1429
1486
|
end
|
1430
1487
|
end
|
1431
1488
|
|
1489
|
+
# ModifyAccessLogConfig请求参数结构体
|
1490
|
+
class ModifyAccessLogConfigRequest < TencentCloud::Common::AbstractModel
|
1491
|
+
# @param MeshId: mesh ID
|
1492
|
+
# @type MeshId: String
|
1493
|
+
# @param SelectedRange: 选中的范围
|
1494
|
+
# @type SelectedRange: :class:`Tencentcloud::Tcm.v20210413.models.SelectedRange`
|
1495
|
+
# @param Template: 采用的模板,可选值:istio(默认)、trace、custom
|
1496
|
+
# @type Template: String
|
1497
|
+
# @param Enable: 是否启用
|
1498
|
+
# @type Enable: Boolean
|
1499
|
+
# @param CLS: 腾讯云日志服务相关参数
|
1500
|
+
# @type CLS: :class:`Tencentcloud::Tcm.v20210413.models.CLS`
|
1501
|
+
# @param Encoding: 编码格式,可选值:TEXT、JSON
|
1502
|
+
# @type Encoding: String
|
1503
|
+
# @param Format: 日志格式
|
1504
|
+
# @type Format: String
|
1505
|
+
# @param EnableStdout: 是否启用标准输出
|
1506
|
+
# @type EnableStdout: Boolean
|
1507
|
+
# @param EnableServer: 是否启动GRPC第三方服务器
|
1508
|
+
# @type EnableServer: Boolean
|
1509
|
+
# @param Address: GRPC第三方服务器地址
|
1510
|
+
# @type Address: String
|
1511
|
+
|
1512
|
+
attr_accessor :MeshId, :SelectedRange, :Template, :Enable, :CLS, :Encoding, :Format, :EnableStdout, :EnableServer, :Address
|
1513
|
+
|
1514
|
+
def initialize(meshid=nil, selectedrange=nil, template=nil, enable=nil, cls=nil, encoding=nil, format=nil, enablestdout=nil, enableserver=nil, address=nil)
|
1515
|
+
@MeshId = meshid
|
1516
|
+
@SelectedRange = selectedrange
|
1517
|
+
@Template = template
|
1518
|
+
@Enable = enable
|
1519
|
+
@CLS = cls
|
1520
|
+
@Encoding = encoding
|
1521
|
+
@Format = format
|
1522
|
+
@EnableStdout = enablestdout
|
1523
|
+
@EnableServer = enableserver
|
1524
|
+
@Address = address
|
1525
|
+
end
|
1526
|
+
|
1527
|
+
def deserialize(params)
|
1528
|
+
@MeshId = params['MeshId']
|
1529
|
+
unless params['SelectedRange'].nil?
|
1530
|
+
@SelectedRange = SelectedRange.new
|
1531
|
+
@SelectedRange.deserialize(params['SelectedRange'])
|
1532
|
+
end
|
1533
|
+
@Template = params['Template']
|
1534
|
+
@Enable = params['Enable']
|
1535
|
+
unless params['CLS'].nil?
|
1536
|
+
@CLS = CLS.new
|
1537
|
+
@CLS.deserialize(params['CLS'])
|
1538
|
+
end
|
1539
|
+
@Encoding = params['Encoding']
|
1540
|
+
@Format = params['Format']
|
1541
|
+
@EnableStdout = params['EnableStdout']
|
1542
|
+
@EnableServer = params['EnableServer']
|
1543
|
+
@Address = params['Address']
|
1544
|
+
end
|
1545
|
+
end
|
1546
|
+
|
1547
|
+
# ModifyAccessLogConfig返回参数结构体
|
1548
|
+
class ModifyAccessLogConfigResponse < TencentCloud::Common::AbstractModel
|
1549
|
+
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
1550
|
+
# @type RequestId: String
|
1551
|
+
|
1552
|
+
attr_accessor :RequestId
|
1553
|
+
|
1554
|
+
def initialize(requestid=nil)
|
1555
|
+
@RequestId = requestid
|
1556
|
+
end
|
1557
|
+
|
1558
|
+
def deserialize(params)
|
1559
|
+
@RequestId = params['RequestId']
|
1560
|
+
end
|
1561
|
+
end
|
1562
|
+
|
1432
1563
|
# ModifyMesh请求参数结构体
|
1433
1564
|
class ModifyMeshRequest < TencentCloud::Common::AbstractModel
|
1434
1565
|
# @param MeshId: 需要修改的网格Id
|
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.458
|
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-
|
11
|
+
date: 2022-11-24 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: tencentcloud-sdk-common
|