tencentcloud-sdk-cfw 3.0.1094 → 3.0.1097
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/VERSION +1 -1
- data/lib/v20190904/client.rb +24 -0
- data/lib/v20190904/models.rb +181 -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: 360964e0fd99501e5838b3bc4080803e1a38d9f7
|
4
|
+
data.tar.gz: 0401b85f67c8f14f9c81794c585a7c050d783463
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 89831c9c8d0c42a57492eb34976ae540537ecb144affdf53e818c56e8a02f6d12e39e690d7ae42875fdbd6f0e6453a24828feeb287c173bbe43f6e045245c461
|
7
|
+
data.tar.gz: 37dae7ca328b946a87f0a3dc853bbef6f0e74fa3d63abe4a4681f6456e7f12deef67aeb063549b0323ba34c0ecba1099b0ec77223f1ae79417cda20d2dbe9faa
|
data/lib/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
3.0.
|
1
|
+
3.0.1097
|
data/lib/v20190904/client.rb
CHANGED
@@ -1211,6 +1211,30 @@ module TencentCloud
|
|
1211
1211
|
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
1212
1212
|
end
|
1213
1213
|
|
1214
|
+
# 租户日志存储统计
|
1215
|
+
|
1216
|
+
# @param request: Request instance for DescribeLogStorageStatistic.
|
1217
|
+
# @type request: :class:`Tencentcloud::cfw::V20190904::DescribeLogStorageStatisticRequest`
|
1218
|
+
# @rtype: :class:`Tencentcloud::cfw::V20190904::DescribeLogStorageStatisticResponse`
|
1219
|
+
def DescribeLogStorageStatistic(request)
|
1220
|
+
body = send_request('DescribeLogStorageStatistic', request.serialize)
|
1221
|
+
response = JSON.parse(body)
|
1222
|
+
if response['Response'].key?('Error') == false
|
1223
|
+
model = DescribeLogStorageStatisticResponse.new
|
1224
|
+
model.deserialize(response['Response'])
|
1225
|
+
model
|
1226
|
+
else
|
1227
|
+
code = response['Response']['Error']['Code']
|
1228
|
+
message = response['Response']['Error']['Message']
|
1229
|
+
reqid = response['Response']['RequestId']
|
1230
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
1231
|
+
end
|
1232
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
1233
|
+
raise e
|
1234
|
+
rescue StandardError => e
|
1235
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
1236
|
+
end
|
1237
|
+
|
1214
1238
|
# 日志审计日志查询
|
1215
1239
|
|
1216
1240
|
# @param request: Request instance for DescribeLogs.
|
data/lib/v20190904/models.rb
CHANGED
@@ -3987,6 +3987,99 @@ module TencentCloud
|
|
3987
3987
|
end
|
3988
3988
|
end
|
3989
3989
|
|
3990
|
+
# DescribeLogStorageStatistic请求参数结构体
|
3991
|
+
class DescribeLogStorageStatisticRequest < TencentCloud::Common::AbstractModel
|
3992
|
+
|
3993
|
+
|
3994
|
+
def initialize()
|
3995
|
+
end
|
3996
|
+
|
3997
|
+
def deserialize(params)
|
3998
|
+
end
|
3999
|
+
end
|
4000
|
+
|
4001
|
+
# DescribeLogStorageStatistic返回参数结构体
|
4002
|
+
class DescribeLogStorageStatisticResponse < TencentCloud::Common::AbstractModel
|
4003
|
+
# @param ReturnCode: 返回状态码 0 成功 非0不成功
|
4004
|
+
# @type ReturnCode: Integer
|
4005
|
+
# @param ReturnMsg: 返回信息 success 成功 其他 不成功
|
4006
|
+
# @type ReturnMsg: String
|
4007
|
+
# @param UsedSize: 已使用存储量,单位B
|
4008
|
+
# @type UsedSize: Integer
|
4009
|
+
# @param TotalSize: 配额存储总量,单位B
|
4010
|
+
# @type TotalSize: Integer
|
4011
|
+
# @param StorageDay: 存储天数
|
4012
|
+
# @type StorageDay: Integer
|
4013
|
+
# @param AclSize: 访问控制日志存储量,单位B
|
4014
|
+
# @type AclSize: Integer
|
4015
|
+
# @param IdsSize: 入侵防御日志存储量,单位B
|
4016
|
+
# @type IdsSize: Integer
|
4017
|
+
# @param NetFlowSize: 流量日志存储量,单位B
|
4018
|
+
# @type NetFlowSize: Integer
|
4019
|
+
# @param OperateSize: 操作日志存储量,单位B
|
4020
|
+
# @type OperateSize: Integer
|
4021
|
+
# @param LeftSize: 剩余存储量,单位B
|
4022
|
+
# @type LeftSize: Integer
|
4023
|
+
# @param PayMode: 计费模式,0后付费,1预付费
|
4024
|
+
# @type PayMode: Integer
|
4025
|
+
# @param TimeHistogram: 每日增加日志存储量柱状图
|
4026
|
+
# @type TimeHistogram: Array
|
4027
|
+
# @param TimeHistogramShow: 柱形图格式数据
|
4028
|
+
# @type TimeHistogramShow: :class:`Tencentcloud::Cfw.v20190904.models.StorageHistogramShow`
|
4029
|
+
# @param ArrearsStopWriting: 后付费模式存储状态,0正常,1欠费停止写入
|
4030
|
+
# @type ArrearsStopWriting: Integer
|
4031
|
+
# @param RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
4032
|
+
# @type RequestId: String
|
4033
|
+
|
4034
|
+
attr_accessor :ReturnCode, :ReturnMsg, :UsedSize, :TotalSize, :StorageDay, :AclSize, :IdsSize, :NetFlowSize, :OperateSize, :LeftSize, :PayMode, :TimeHistogram, :TimeHistogramShow, :ArrearsStopWriting, :RequestId
|
4035
|
+
|
4036
|
+
def initialize(returncode=nil, returnmsg=nil, usedsize=nil, totalsize=nil, storageday=nil, aclsize=nil, idssize=nil, netflowsize=nil, operatesize=nil, leftsize=nil, paymode=nil, timehistogram=nil, timehistogramshow=nil, arrearsstopwriting=nil, requestid=nil)
|
4037
|
+
@ReturnCode = returncode
|
4038
|
+
@ReturnMsg = returnmsg
|
4039
|
+
@UsedSize = usedsize
|
4040
|
+
@TotalSize = totalsize
|
4041
|
+
@StorageDay = storageday
|
4042
|
+
@AclSize = aclsize
|
4043
|
+
@IdsSize = idssize
|
4044
|
+
@NetFlowSize = netflowsize
|
4045
|
+
@OperateSize = operatesize
|
4046
|
+
@LeftSize = leftsize
|
4047
|
+
@PayMode = paymode
|
4048
|
+
@TimeHistogram = timehistogram
|
4049
|
+
@TimeHistogramShow = timehistogramshow
|
4050
|
+
@ArrearsStopWriting = arrearsstopwriting
|
4051
|
+
@RequestId = requestid
|
4052
|
+
end
|
4053
|
+
|
4054
|
+
def deserialize(params)
|
4055
|
+
@ReturnCode = params['ReturnCode']
|
4056
|
+
@ReturnMsg = params['ReturnMsg']
|
4057
|
+
@UsedSize = params['UsedSize']
|
4058
|
+
@TotalSize = params['TotalSize']
|
4059
|
+
@StorageDay = params['StorageDay']
|
4060
|
+
@AclSize = params['AclSize']
|
4061
|
+
@IdsSize = params['IdsSize']
|
4062
|
+
@NetFlowSize = params['NetFlowSize']
|
4063
|
+
@OperateSize = params['OperateSize']
|
4064
|
+
@LeftSize = params['LeftSize']
|
4065
|
+
@PayMode = params['PayMode']
|
4066
|
+
unless params['TimeHistogram'].nil?
|
4067
|
+
@TimeHistogram = []
|
4068
|
+
params['TimeHistogram'].each do |i|
|
4069
|
+
storagehistogram_tmp = StorageHistogram.new
|
4070
|
+
storagehistogram_tmp.deserialize(i)
|
4071
|
+
@TimeHistogram << storagehistogram_tmp
|
4072
|
+
end
|
4073
|
+
end
|
4074
|
+
unless params['TimeHistogramShow'].nil?
|
4075
|
+
@TimeHistogramShow = StorageHistogramShow.new
|
4076
|
+
@TimeHistogramShow.deserialize(params['TimeHistogramShow'])
|
4077
|
+
end
|
4078
|
+
@ArrearsStopWriting = params['ArrearsStopWriting']
|
4079
|
+
@RequestId = params['RequestId']
|
4080
|
+
end
|
4081
|
+
end
|
4082
|
+
|
3990
4083
|
# DescribeLogs请求参数结构体
|
3991
4084
|
class DescribeLogsRequest < TencentCloud::Common::AbstractModel
|
3992
4085
|
# @param Index: 日志类型标识
|
@@ -6068,6 +6161,23 @@ module TencentCloud
|
|
6068
6161
|
end
|
6069
6162
|
end
|
6070
6163
|
|
6164
|
+
# 用于构造二维数组
|
6165
|
+
class IntArray < TencentCloud::Common::AbstractModel
|
6166
|
+
# @param List: 数组
|
6167
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
6168
|
+
# @type List: Array
|
6169
|
+
|
6170
|
+
attr_accessor :List
|
6171
|
+
|
6172
|
+
def initialize(list=nil)
|
6173
|
+
@List = list
|
6174
|
+
end
|
6175
|
+
|
6176
|
+
def deserialize(params)
|
6177
|
+
@List = params['List']
|
6178
|
+
end
|
6179
|
+
end
|
6180
|
+
|
6071
6181
|
# 入侵防御封禁列表、放通列表添加规则入参
|
6072
6182
|
class IntrusionDefenseRule < TencentCloud::Common::AbstractModel
|
6073
6183
|
# @param Direction: 规则方向,0出站,1入站,3内网间
|
@@ -9434,6 +9544,77 @@ module TencentCloud
|
|
9434
9544
|
end
|
9435
9545
|
end
|
9436
9546
|
|
9547
|
+
# 日志存储统计柱形图
|
9548
|
+
class StorageHistogram < TencentCloud::Common::AbstractModel
|
9549
|
+
# @param AclSize: 访问控制日志存储量,单位B
|
9550
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
9551
|
+
# @type AclSize: Integer
|
9552
|
+
# @param IdsSize: 入侵防御日志存储量,单位B
|
9553
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
9554
|
+
# @type IdsSize: Integer
|
9555
|
+
# @param NetFlowSize: 流量日志存储量,单位B
|
9556
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
9557
|
+
# @type NetFlowSize: Integer
|
9558
|
+
# @param OperateSize: 操作日志存储量,单位B
|
9559
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
9560
|
+
# @type OperateSize: Integer
|
9561
|
+
# @param Time: 统计时间
|
9562
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
9563
|
+
# @type Time: String
|
9564
|
+
|
9565
|
+
attr_accessor :AclSize, :IdsSize, :NetFlowSize, :OperateSize, :Time
|
9566
|
+
|
9567
|
+
def initialize(aclsize=nil, idssize=nil, netflowsize=nil, operatesize=nil, time=nil)
|
9568
|
+
@AclSize = aclsize
|
9569
|
+
@IdsSize = idssize
|
9570
|
+
@NetFlowSize = netflowsize
|
9571
|
+
@OperateSize = operatesize
|
9572
|
+
@Time = time
|
9573
|
+
end
|
9574
|
+
|
9575
|
+
def deserialize(params)
|
9576
|
+
@AclSize = params['AclSize']
|
9577
|
+
@IdsSize = params['IdsSize']
|
9578
|
+
@NetFlowSize = params['NetFlowSize']
|
9579
|
+
@OperateSize = params['OperateSize']
|
9580
|
+
@Time = params['Time']
|
9581
|
+
end
|
9582
|
+
end
|
9583
|
+
|
9584
|
+
# 前端图表使用日志存储统计柱形图数据
|
9585
|
+
class StorageHistogramShow < TencentCloud::Common::AbstractModel
|
9586
|
+
# @param StorageType: 存储类型
|
9587
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
9588
|
+
# @type StorageType: Array
|
9589
|
+
# @param Dates: 日期
|
9590
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
9591
|
+
# @type Dates: Array
|
9592
|
+
# @param Data: 数据
|
9593
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
9594
|
+
# @type Data: Array
|
9595
|
+
|
9596
|
+
attr_accessor :StorageType, :Dates, :Data
|
9597
|
+
|
9598
|
+
def initialize(storagetype=nil, dates=nil, data=nil)
|
9599
|
+
@StorageType = storagetype
|
9600
|
+
@Dates = dates
|
9601
|
+
@Data = data
|
9602
|
+
end
|
9603
|
+
|
9604
|
+
def deserialize(params)
|
9605
|
+
@StorageType = params['StorageType']
|
9606
|
+
@Dates = params['Dates']
|
9607
|
+
unless params['Data'].nil?
|
9608
|
+
@Data = []
|
9609
|
+
params['Data'].each do |i|
|
9610
|
+
intarray_tmp = IntArray.new
|
9611
|
+
intarray_tmp.deserialize(i)
|
9612
|
+
@Data << intarray_tmp
|
9613
|
+
end
|
9614
|
+
end
|
9615
|
+
end
|
9616
|
+
end
|
9617
|
+
|
9437
9618
|
# 防火墙开关列表对象
|
9438
9619
|
class SwitchListsData < TencentCloud::Common::AbstractModel
|
9439
9620
|
# @param PublicIp: 公网IP
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: tencentcloud-sdk-cfw
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 3.0.
|
4
|
+
version: 3.0.1097
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Tencent Cloud
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2025-07-
|
11
|
+
date: 2025-07-09 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: tencentcloud-sdk-common
|