tencentcloud-sdk-waf 3.0.921 → 3.0.923
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/v20180125/client.rb +48 -0
- data/lib/v20180125/models.rb +405 -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: 992f127c045e3a9e0799db32f363c918a5a6648b
|
4
|
+
data.tar.gz: fe409231d5393ce3d4336d68b58137dac2e9c3d2
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 6ded4f9755eb9c1f21423017b2b017d861780611874e78af116058dee7d1abbf957d4cf2a23aa5d571b7befb84722e2774ba698e223839c3571c64a54023e04b
|
7
|
+
data.tar.gz: 3499fc6493a9a3d5c59fe498c3d1952efe891a465bef6d1e1181cc6a7820d6b14666affbb662a12c5da7bd56ed1d03fb13f43372abe209216ee4377568539743
|
data/lib/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
3.0.
|
1
|
+
3.0.923
|
data/lib/v20180125/client.rb
CHANGED
@@ -875,6 +875,54 @@ module TencentCloud
|
|
875
875
|
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
876
876
|
end
|
877
877
|
|
878
|
+
# 获取Api请求详情信息
|
879
|
+
|
880
|
+
# @param request: Request instance for DescribeApiDetail.
|
881
|
+
# @type request: :class:`Tencentcloud::waf::V20180125::DescribeApiDetailRequest`
|
882
|
+
# @rtype: :class:`Tencentcloud::waf::V20180125::DescribeApiDetailResponse`
|
883
|
+
def DescribeApiDetail(request)
|
884
|
+
body = send_request('DescribeApiDetail', request.serialize)
|
885
|
+
response = JSON.parse(body)
|
886
|
+
if response['Response'].key?('Error') == false
|
887
|
+
model = DescribeApiDetailResponse.new
|
888
|
+
model.deserialize(response['Response'])
|
889
|
+
model
|
890
|
+
else
|
891
|
+
code = response['Response']['Error']['Code']
|
892
|
+
message = response['Response']['Error']['Message']
|
893
|
+
reqid = response['Response']['RequestId']
|
894
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
895
|
+
end
|
896
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
897
|
+
raise e
|
898
|
+
rescue StandardError => e
|
899
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
900
|
+
end
|
901
|
+
|
902
|
+
# api资产列表
|
903
|
+
|
904
|
+
# @param request: Request instance for DescribeApiListVersionTwo.
|
905
|
+
# @type request: :class:`Tencentcloud::waf::V20180125::DescribeApiListVersionTwoRequest`
|
906
|
+
# @rtype: :class:`Tencentcloud::waf::V20180125::DescribeApiListVersionTwoResponse`
|
907
|
+
def DescribeApiListVersionTwo(request)
|
908
|
+
body = send_request('DescribeApiListVersionTwo', request.serialize)
|
909
|
+
response = JSON.parse(body)
|
910
|
+
if response['Response'].key?('Error') == false
|
911
|
+
model = DescribeApiListVersionTwoResponse.new
|
912
|
+
model.deserialize(response['Response'])
|
913
|
+
model
|
914
|
+
else
|
915
|
+
code = response['Response']['Error']['Code']
|
916
|
+
message = response['Response']['Error']['Message']
|
917
|
+
reqid = response['Response']['RequestId']
|
918
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
919
|
+
end
|
920
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
921
|
+
raise e
|
922
|
+
rescue StandardError => e
|
923
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
924
|
+
end
|
925
|
+
|
878
926
|
# 获取地域封禁配置包括地域封禁开关,设置封禁的地区信息
|
879
927
|
|
880
928
|
# @param request: Request instance for DescribeAreaBanAreas.
|
data/lib/v20180125/models.rb
CHANGED
@@ -1086,6 +1086,201 @@ module TencentCloud
|
|
1086
1086
|
end
|
1087
1087
|
end
|
1088
1088
|
|
1089
|
+
# api列表
|
1090
|
+
class ApiAsset < TencentCloud::Common::AbstractModel
|
1091
|
+
# @param Domain: 域名
|
1092
|
+
# @type Domain: String
|
1093
|
+
# @param Method: 请求方法
|
1094
|
+
# @type Method: String
|
1095
|
+
# @param ApiName: api名称
|
1096
|
+
# @type ApiName: String
|
1097
|
+
# @param Scene: 场景
|
1098
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
1099
|
+
# @type Scene: String
|
1100
|
+
# @param Label: 数据标签
|
1101
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
1102
|
+
# @type Label: Array
|
1103
|
+
# @param Active: 过去7天是否活跃
|
1104
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
1105
|
+
# @type Active: Boolean
|
1106
|
+
# @param Timestamp: 最近更新时间
|
1107
|
+
# @type Timestamp: Integer
|
1108
|
+
# @param InsertTime: api发现时间
|
1109
|
+
# @type InsertTime: Integer
|
1110
|
+
# @param Mode: 资产状态,1:新发现,2,确认中,3,已确认,4,已下线,5,已忽略
|
1111
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
1112
|
+
# @type Mode: String
|
1113
|
+
# @param Level: 风险等级,100,200,300对应低中高
|
1114
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
1115
|
+
# @type Level: String
|
1116
|
+
# @param Count: 近30天调用量
|
1117
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
1118
|
+
# @type Count: Integer
|
1119
|
+
# @param Remark: 备注
|
1120
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
1121
|
+
# @type Remark: String
|
1122
|
+
# @param IsAuth: 是否鉴权,1标识是,0表示否
|
1123
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
1124
|
+
# @type IsAuth: Integer
|
1125
|
+
# @param ApiRequestRuleId: 如果添加了api入参检测规则,则此id返回值不为0
|
1126
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
1127
|
+
# @type ApiRequestRuleId: Integer
|
1128
|
+
# @param ApiLimitRuleId: 如果添加了api限流规则,则此id返回值不为0
|
1129
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
1130
|
+
# @type ApiLimitRuleId: Integer
|
1131
|
+
# @param HostList: 对象接入和泛域名接入时,展示host列表
|
1132
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
1133
|
+
# @type HostList: Array
|
1134
|
+
|
1135
|
+
attr_accessor :Domain, :Method, :ApiName, :Scene, :Label, :Active, :Timestamp, :InsertTime, :Mode, :Level, :Count, :Remark, :IsAuth, :ApiRequestRuleId, :ApiLimitRuleId, :HostList
|
1136
|
+
|
1137
|
+
def initialize(domain=nil, method=nil, apiname=nil, scene=nil, label=nil, active=nil, timestamp=nil, inserttime=nil, mode=nil, level=nil, count=nil, remark=nil, isauth=nil, apirequestruleid=nil, apilimitruleid=nil, hostlist=nil)
|
1138
|
+
@Domain = domain
|
1139
|
+
@Method = method
|
1140
|
+
@ApiName = apiname
|
1141
|
+
@Scene = scene
|
1142
|
+
@Label = label
|
1143
|
+
@Active = active
|
1144
|
+
@Timestamp = timestamp
|
1145
|
+
@InsertTime = inserttime
|
1146
|
+
@Mode = mode
|
1147
|
+
@Level = level
|
1148
|
+
@Count = count
|
1149
|
+
@Remark = remark
|
1150
|
+
@IsAuth = isauth
|
1151
|
+
@ApiRequestRuleId = apirequestruleid
|
1152
|
+
@ApiLimitRuleId = apilimitruleid
|
1153
|
+
@HostList = hostlist
|
1154
|
+
end
|
1155
|
+
|
1156
|
+
def deserialize(params)
|
1157
|
+
@Domain = params['Domain']
|
1158
|
+
@Method = params['Method']
|
1159
|
+
@ApiName = params['ApiName']
|
1160
|
+
@Scene = params['Scene']
|
1161
|
+
@Label = params['Label']
|
1162
|
+
@Active = params['Active']
|
1163
|
+
@Timestamp = params['Timestamp']
|
1164
|
+
@InsertTime = params['InsertTime']
|
1165
|
+
@Mode = params['Mode']
|
1166
|
+
@Level = params['Level']
|
1167
|
+
@Count = params['Count']
|
1168
|
+
@Remark = params['Remark']
|
1169
|
+
@IsAuth = params['IsAuth']
|
1170
|
+
@ApiRequestRuleId = params['ApiRequestRuleId']
|
1171
|
+
@ApiLimitRuleId = params['ApiLimitRuleId']
|
1172
|
+
@HostList = params['HostList']
|
1173
|
+
end
|
1174
|
+
end
|
1175
|
+
|
1176
|
+
# api资产列表过滤器
|
1177
|
+
class ApiDataFilter < TencentCloud::Common::AbstractModel
|
1178
|
+
# @param Entity: 数据标签,是否活跃,功能场景
|
1179
|
+
# @type Entity: String
|
1180
|
+
# @param Operator: 等于
|
1181
|
+
# @type Operator: String
|
1182
|
+
# @param Value: 日期,手机号,邮箱等
|
1183
|
+
# @type Value: String
|
1184
|
+
|
1185
|
+
attr_accessor :Entity, :Operator, :Value
|
1186
|
+
|
1187
|
+
def initialize(entity=nil, operator=nil, value=nil)
|
1188
|
+
@Entity = entity
|
1189
|
+
@Operator = operator
|
1190
|
+
@Value = value
|
1191
|
+
end
|
1192
|
+
|
1193
|
+
def deserialize(params)
|
1194
|
+
@Entity = params['Entity']
|
1195
|
+
@Operator = params['Operator']
|
1196
|
+
@Value = params['Value']
|
1197
|
+
end
|
1198
|
+
end
|
1199
|
+
|
1200
|
+
# api历史样例返回结构体
|
1201
|
+
class ApiDetailSampleHistory < TencentCloud::Common::AbstractModel
|
1202
|
+
# @param SampleNme: 样例名称
|
1203
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
1204
|
+
# @type SampleNme: String
|
1205
|
+
# @param RepLog: 请求样例
|
1206
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
1207
|
+
# @type RepLog: String
|
1208
|
+
# @param RspLog: 响应样例
|
1209
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
1210
|
+
# @type RspLog: String
|
1211
|
+
|
1212
|
+
attr_accessor :SampleNme, :RepLog, :RspLog
|
1213
|
+
|
1214
|
+
def initialize(samplenme=nil, replog=nil, rsplog=nil)
|
1215
|
+
@SampleNme = samplenme
|
1216
|
+
@RepLog = replog
|
1217
|
+
@RspLog = rsplog
|
1218
|
+
end
|
1219
|
+
|
1220
|
+
def deserialize(params)
|
1221
|
+
@SampleNme = params['SampleNme']
|
1222
|
+
@RepLog = params['RepLog']
|
1223
|
+
@RspLog = params['RspLog']
|
1224
|
+
end
|
1225
|
+
end
|
1226
|
+
|
1227
|
+
# api请求参数类型
|
1228
|
+
class ApiParameterType < TencentCloud::Common::AbstractModel
|
1229
|
+
# @param ParameterName: 参数名称
|
1230
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
1231
|
+
# @type ParameterName: String
|
1232
|
+
# @param Type: 参数类型
|
1233
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
1234
|
+
# @type Type: String
|
1235
|
+
# @param Location: 参数位置
|
1236
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
1237
|
+
# @type Location: String
|
1238
|
+
# @param Label: 数据标签(敏感字段)
|
1239
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
1240
|
+
# @type Label: Array
|
1241
|
+
# @param Timestamp: 时间戳
|
1242
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
1243
|
+
# @type Timestamp: Integer
|
1244
|
+
# @param Remark: 备注信息
|
1245
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
1246
|
+
# @type Remark: String
|
1247
|
+
# @param Source: 来源是请求或者响应
|
1248
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
1249
|
+
# @type Source: String
|
1250
|
+
# @param IsPan: 是否需要泛化 ,0表示不需要,1表示需要
|
1251
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
1252
|
+
# @type IsPan: Integer
|
1253
|
+
# @param IsAuth: 是否鉴权,1表示是,0表示否
|
1254
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
1255
|
+
# @type IsAuth: Integer
|
1256
|
+
|
1257
|
+
attr_accessor :ParameterName, :Type, :Location, :Label, :Timestamp, :Remark, :Source, :IsPan, :IsAuth
|
1258
|
+
|
1259
|
+
def initialize(parametername=nil, type=nil, location=nil, label=nil, timestamp=nil, remark=nil, source=nil, ispan=nil, isauth=nil)
|
1260
|
+
@ParameterName = parametername
|
1261
|
+
@Type = type
|
1262
|
+
@Location = location
|
1263
|
+
@Label = label
|
1264
|
+
@Timestamp = timestamp
|
1265
|
+
@Remark = remark
|
1266
|
+
@Source = source
|
1267
|
+
@IsPan = ispan
|
1268
|
+
@IsAuth = isauth
|
1269
|
+
end
|
1270
|
+
|
1271
|
+
def deserialize(params)
|
1272
|
+
@ParameterName = params['ParameterName']
|
1273
|
+
@Type = params['Type']
|
1274
|
+
@Location = params['Location']
|
1275
|
+
@Label = params['Label']
|
1276
|
+
@Timestamp = params['Timestamp']
|
1277
|
+
@Remark = params['Remark']
|
1278
|
+
@Source = params['Source']
|
1279
|
+
@IsPan = params['IsPan']
|
1280
|
+
@IsAuth = params['IsAuth']
|
1281
|
+
end
|
1282
|
+
end
|
1283
|
+
|
1089
1284
|
# API安全资源信息
|
1090
1285
|
class ApiPkg < TencentCloud::Common::AbstractModel
|
1091
1286
|
# @param ResourceIds: 资源id
|
@@ -3788,6 +3983,216 @@ module TencentCloud
|
|
3788
3983
|
end
|
3789
3984
|
end
|
3790
3985
|
|
3986
|
+
# DescribeApiDetail请求参数结构体
|
3987
|
+
class DescribeApiDetailRequest < TencentCloud::Common::AbstractModel
|
3988
|
+
# @param Domain: 域名
|
3989
|
+
# @type Domain: String
|
3990
|
+
# @param ApiName: Api名称
|
3991
|
+
# @type ApiName: String
|
3992
|
+
# @param Method: 请求方法
|
3993
|
+
# @type Method: String
|
3994
|
+
# @param IsSensitive: 是否仅查询敏感的,1表示查询,0表示不查询
|
3995
|
+
# @type IsSensitive: Integer
|
3996
|
+
# @param IsPan: 是否仅查询泛化的,1表示查询,0表示不查询
|
3997
|
+
# @type IsPan: Integer
|
3998
|
+
|
3999
|
+
attr_accessor :Domain, :ApiName, :Method, :IsSensitive, :IsPan
|
4000
|
+
|
4001
|
+
def initialize(domain=nil, apiname=nil, method=nil, issensitive=nil, ispan=nil)
|
4002
|
+
@Domain = domain
|
4003
|
+
@ApiName = apiname
|
4004
|
+
@Method = method
|
4005
|
+
@IsSensitive = issensitive
|
4006
|
+
@IsPan = ispan
|
4007
|
+
end
|
4008
|
+
|
4009
|
+
def deserialize(params)
|
4010
|
+
@Domain = params['Domain']
|
4011
|
+
@ApiName = params['ApiName']
|
4012
|
+
@Method = params['Method']
|
4013
|
+
@IsSensitive = params['IsSensitive']
|
4014
|
+
@IsPan = params['IsPan']
|
4015
|
+
end
|
4016
|
+
end
|
4017
|
+
|
4018
|
+
# DescribeApiDetail返回参数结构体
|
4019
|
+
class DescribeApiDetailResponse < TencentCloud::Common::AbstractModel
|
4020
|
+
# @param Log: 请求样例,json字符串格式
|
4021
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
4022
|
+
# @type Log: String
|
4023
|
+
# @param ParameterList: 请求参数样例列表
|
4024
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
4025
|
+
# @type ParameterList: Array
|
4026
|
+
# @param Scene: 当前场景标签
|
4027
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
4028
|
+
# @type Scene: String
|
4029
|
+
# @param SensitiveFields: 敏感字段
|
4030
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
4031
|
+
# @type SensitiveFields: Array
|
4032
|
+
# @param IsActive: 7天内是否活跃
|
4033
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
4034
|
+
# @type IsActive: Boolean
|
4035
|
+
# @param IpCount: 访问ip数
|
4036
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
4037
|
+
# @type IpCount: Integer
|
4038
|
+
# @param RegionCount: 访问地域数量
|
4039
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
4040
|
+
# @type RegionCount: Integer
|
4041
|
+
# @param EventCount: 关联事件数
|
4042
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
4043
|
+
# @type EventCount: Integer
|
4044
|
+
# @param SensitiveCount: 涉敏数据条数
|
4045
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
4046
|
+
# @type SensitiveCount: Integer
|
4047
|
+
# @param Level: 风险等级
|
4048
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
4049
|
+
# @type Level: Integer
|
4050
|
+
# @param RspLog: 响应体
|
4051
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
4052
|
+
# @type RspLog: String
|
4053
|
+
# @param MaxQPS: 昨日访问峰值QPS
|
4054
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
4055
|
+
# @type MaxQPS: Integer
|
4056
|
+
# @param ApiDetailSampleHistory: 历史样例
|
4057
|
+
# @type ApiDetailSampleHistory: Array
|
4058
|
+
# @param RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
4059
|
+
# @type RequestId: String
|
4060
|
+
|
4061
|
+
attr_accessor :Log, :ParameterList, :Scene, :SensitiveFields, :IsActive, :IpCount, :RegionCount, :EventCount, :SensitiveCount, :Level, :RspLog, :MaxQPS, :ApiDetailSampleHistory, :RequestId
|
4062
|
+
|
4063
|
+
def initialize(log=nil, parameterlist=nil, scene=nil, sensitivefields=nil, isactive=nil, ipcount=nil, regioncount=nil, eventcount=nil, sensitivecount=nil, level=nil, rsplog=nil, maxqps=nil, apidetailsamplehistory=nil, requestid=nil)
|
4064
|
+
@Log = log
|
4065
|
+
@ParameterList = parameterlist
|
4066
|
+
@Scene = scene
|
4067
|
+
@SensitiveFields = sensitivefields
|
4068
|
+
@IsActive = isactive
|
4069
|
+
@IpCount = ipcount
|
4070
|
+
@RegionCount = regioncount
|
4071
|
+
@EventCount = eventcount
|
4072
|
+
@SensitiveCount = sensitivecount
|
4073
|
+
@Level = level
|
4074
|
+
@RspLog = rsplog
|
4075
|
+
@MaxQPS = maxqps
|
4076
|
+
@ApiDetailSampleHistory = apidetailsamplehistory
|
4077
|
+
@RequestId = requestid
|
4078
|
+
end
|
4079
|
+
|
4080
|
+
def deserialize(params)
|
4081
|
+
@Log = params['Log']
|
4082
|
+
unless params['ParameterList'].nil?
|
4083
|
+
@ParameterList = []
|
4084
|
+
params['ParameterList'].each do |i|
|
4085
|
+
apiparametertype_tmp = ApiParameterType.new
|
4086
|
+
apiparametertype_tmp.deserialize(i)
|
4087
|
+
@ParameterList << apiparametertype_tmp
|
4088
|
+
end
|
4089
|
+
end
|
4090
|
+
@Scene = params['Scene']
|
4091
|
+
@SensitiveFields = params['SensitiveFields']
|
4092
|
+
@IsActive = params['IsActive']
|
4093
|
+
@IpCount = params['IpCount']
|
4094
|
+
@RegionCount = params['RegionCount']
|
4095
|
+
@EventCount = params['EventCount']
|
4096
|
+
@SensitiveCount = params['SensitiveCount']
|
4097
|
+
@Level = params['Level']
|
4098
|
+
@RspLog = params['RspLog']
|
4099
|
+
@MaxQPS = params['MaxQPS']
|
4100
|
+
unless params['ApiDetailSampleHistory'].nil?
|
4101
|
+
@ApiDetailSampleHistory = []
|
4102
|
+
params['ApiDetailSampleHistory'].each do |i|
|
4103
|
+
apidetailsamplehistory_tmp = ApiDetailSampleHistory.new
|
4104
|
+
apidetailsamplehistory_tmp.deserialize(i)
|
4105
|
+
@ApiDetailSampleHistory << apidetailsamplehistory_tmp
|
4106
|
+
end
|
4107
|
+
end
|
4108
|
+
@RequestId = params['RequestId']
|
4109
|
+
end
|
4110
|
+
end
|
4111
|
+
|
4112
|
+
# DescribeApiListVersionTwo请求参数结构体
|
4113
|
+
class DescribeApiListVersionTwoRequest < TencentCloud::Common::AbstractModel
|
4114
|
+
# @param Domain: 域名
|
4115
|
+
# @type Domain: String
|
4116
|
+
# @param PageIndex: 页面索引,第几页
|
4117
|
+
# @type PageIndex: Integer
|
4118
|
+
# @param PageSize: 页面大小
|
4119
|
+
# @type PageSize: Integer
|
4120
|
+
# @param Filters: 过滤条件
|
4121
|
+
# @type Filters: Array
|
4122
|
+
# @param Sort: 排序方法,1 升序,-1 降序
|
4123
|
+
# @type Sort: Array
|
4124
|
+
# @param NeedTotalCount: 是否进行总数查询
|
4125
|
+
# @type NeedTotalCount: Boolean
|
4126
|
+
# @param StartTs: 查询开始时间
|
4127
|
+
# @type StartTs: Integer
|
4128
|
+
# @param EndTs: 查询结束时间
|
4129
|
+
# @type EndTs: Integer
|
4130
|
+
|
4131
|
+
attr_accessor :Domain, :PageIndex, :PageSize, :Filters, :Sort, :NeedTotalCount, :StartTs, :EndTs
|
4132
|
+
|
4133
|
+
def initialize(domain=nil, pageindex=nil, pagesize=nil, filters=nil, sort=nil, needtotalcount=nil, startts=nil, endts=nil)
|
4134
|
+
@Domain = domain
|
4135
|
+
@PageIndex = pageindex
|
4136
|
+
@PageSize = pagesize
|
4137
|
+
@Filters = filters
|
4138
|
+
@Sort = sort
|
4139
|
+
@NeedTotalCount = needtotalcount
|
4140
|
+
@StartTs = startts
|
4141
|
+
@EndTs = endts
|
4142
|
+
end
|
4143
|
+
|
4144
|
+
def deserialize(params)
|
4145
|
+
@Domain = params['Domain']
|
4146
|
+
@PageIndex = params['PageIndex']
|
4147
|
+
@PageSize = params['PageSize']
|
4148
|
+
unless params['Filters'].nil?
|
4149
|
+
@Filters = []
|
4150
|
+
params['Filters'].each do |i|
|
4151
|
+
apidatafilter_tmp = ApiDataFilter.new
|
4152
|
+
apidatafilter_tmp.deserialize(i)
|
4153
|
+
@Filters << apidatafilter_tmp
|
4154
|
+
end
|
4155
|
+
end
|
4156
|
+
@Sort = params['Sort']
|
4157
|
+
@NeedTotalCount = params['NeedTotalCount']
|
4158
|
+
@StartTs = params['StartTs']
|
4159
|
+
@EndTs = params['EndTs']
|
4160
|
+
end
|
4161
|
+
end
|
4162
|
+
|
4163
|
+
# DescribeApiListVersionTwo返回参数结构体
|
4164
|
+
class DescribeApiListVersionTwoResponse < TencentCloud::Common::AbstractModel
|
4165
|
+
# @param Data: api资产列表
|
4166
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
4167
|
+
# @type Data: Array
|
4168
|
+
# @param Total: 总数
|
4169
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
4170
|
+
# @type Total: Integer
|
4171
|
+
# @param RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
4172
|
+
# @type RequestId: String
|
4173
|
+
|
4174
|
+
attr_accessor :Data, :Total, :RequestId
|
4175
|
+
|
4176
|
+
def initialize(data=nil, total=nil, requestid=nil)
|
4177
|
+
@Data = data
|
4178
|
+
@Total = total
|
4179
|
+
@RequestId = requestid
|
4180
|
+
end
|
4181
|
+
|
4182
|
+
def deserialize(params)
|
4183
|
+
unless params['Data'].nil?
|
4184
|
+
@Data = []
|
4185
|
+
params['Data'].each do |i|
|
4186
|
+
apiasset_tmp = ApiAsset.new
|
4187
|
+
apiasset_tmp.deserialize(i)
|
4188
|
+
@Data << apiasset_tmp
|
4189
|
+
end
|
4190
|
+
end
|
4191
|
+
@Total = params['Total']
|
4192
|
+
@RequestId = params['RequestId']
|
4193
|
+
end
|
4194
|
+
end
|
4195
|
+
|
3791
4196
|
# DescribeAreaBanAreas请求参数结构体
|
3792
4197
|
class DescribeAreaBanAreasRequest < TencentCloud::Common::AbstractModel
|
3793
4198
|
# @param Domain: 需要查询的域名
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: tencentcloud-sdk-waf
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 3.0.
|
4
|
+
version: 3.0.923
|
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-10-
|
11
|
+
date: 2024-10-13 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: tencentcloud-sdk-common
|