lib/v20200309/models.rb in tencentcloud-sdk-antiddos-1.0.227 vs lib/v20200309/models.rb in tencentcloud-sdk-antiddos-1.0.228

- old
+ new

@@ -703,10 +703,57 @@ def deserialize(params) @RequestId = params['RequestId'] end end + # CreateDDoSBlackWhiteIpList请求参数结构体 + class CreateDDoSBlackWhiteIpListRequest < TencentCloud::Common::AbstractModel + # @param InstanceId: 资源实例ID + # @type InstanceId: String + # @param IpList: IP列表 + # @type IpList: Array + # @param Type: IP类型,取值[black(黑名单IP), white(白名单IP)] + # @type Type: String + + attr_accessor :InstanceId, :IpList, :Type + + def initialize(instanceid=nil, iplist=nil, type=nil) + @InstanceId = instanceid + @IpList = iplist + @Type = type + end + + def deserialize(params) + @InstanceId = params['InstanceId'] + unless params['IpList'].nil? + @IpList = [] + params['IpList'].each do |i| + ipsegment_tmp = IpSegment.new + ipsegment_tmp.deserialize(i) + @IpList << ipsegment_tmp + end + end + @Type = params['Type'] + end + end + + # CreateDDoSBlackWhiteIpList返回参数结构体 + class CreateDDoSBlackWhiteIpListResponse < TencentCloud::Common::AbstractModel + # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 + # @type RequestId: String + + attr_accessor :RequestId + + def initialize(requestid=nil) + @RequestId = requestid + end + + def deserialize(params) + @RequestId = params['RequestId'] + end + end + # CreateDDoSGeoIPBlockConfig请求参数结构体 class CreateDDoSGeoIPBlockConfigRequest < TencentCloud::Common::AbstractModel # @param InstanceId: 资源实例ID # @type InstanceId: String # @param DDoSGeoIPBlockConfig: DDoS区域封禁配置,填写参数时配置ID请为空 @@ -1340,10 +1387,57 @@ def deserialize(params) @RequestId = params['RequestId'] end end + # DeleteDDoSBlackWhiteIpList请求参数结构体 + class DeleteDDoSBlackWhiteIpListRequest < TencentCloud::Common::AbstractModel + # @param InstanceId: 资源实例ID + # @type InstanceId: String + # @param IpList: IP列表 + # @type IpList: Array + # @param Type: IP类型,取值[black(黑名单IP), white(白名单IP)] + # @type Type: String + + attr_accessor :InstanceId, :IpList, :Type + + def initialize(instanceid=nil, iplist=nil, type=nil) + @InstanceId = instanceid + @IpList = iplist + @Type = type + end + + def deserialize(params) + @InstanceId = params['InstanceId'] + unless params['IpList'].nil? + @IpList = [] + params['IpList'].each do |i| + ipsegment_tmp = IpSegment.new + ipsegment_tmp.deserialize(i) + @IpList << ipsegment_tmp + end + end + @Type = params['Type'] + end + end + + # DeleteDDoSBlackWhiteIpList返回参数结构体 + class DeleteDDoSBlackWhiteIpListResponse < TencentCloud::Common::AbstractModel + # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 + # @type RequestId: String + + attr_accessor :RequestId + + def initialize(requestid=nil) + @RequestId = requestid + end + + def deserialize(params) + @RequestId = params['RequestId'] + end + end + # DeleteDDoSGeoIPBlockConfig请求参数结构体 class DeleteDDoSGeoIPBlockConfigRequest < TencentCloud::Common::AbstractModel # @param InstanceId: 资源实例ID # @type InstanceId: String # @param DDoSGeoIPBlockConfig: DDoS区域封禁配置,填写参数时配置ID不能为空 @@ -1787,10 +1881,64 @@ @MetricName = params['MetricName'] @RequestId = params['RequestId'] end end + # DescribeDDoSBlackWhiteIpList请求参数结构体 + class DescribeDDoSBlackWhiteIpListRequest < TencentCloud::Common::AbstractModel + # @param InstanceId: 资源实例ID + # @type InstanceId: String + + attr_accessor :InstanceId + + def initialize(instanceid=nil) + @InstanceId = instanceid + end + + def deserialize(params) + @InstanceId = params['InstanceId'] + end + end + + # DescribeDDoSBlackWhiteIpList返回参数结构体 + class DescribeDDoSBlackWhiteIpListResponse < TencentCloud::Common::AbstractModel + # @param BlackIpList: 黑名单IP列表 + # @type BlackIpList: Array + # @param WhiteIpList: 白名单IP列表 + # @type WhiteIpList: Array + # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 + # @type RequestId: String + + attr_accessor :BlackIpList, :WhiteIpList, :RequestId + + def initialize(blackiplist=nil, whiteiplist=nil, requestid=nil) + @BlackIpList = blackiplist + @WhiteIpList = whiteiplist + @RequestId = requestid + end + + def deserialize(params) + unless params['BlackIpList'].nil? + @BlackIpList = [] + params['BlackIpList'].each do |i| + ipsegment_tmp = IpSegment.new + ipsegment_tmp.deserialize(i) + @BlackIpList << ipsegment_tmp + end + end + unless params['WhiteIpList'].nil? + @WhiteIpList = [] + params['WhiteIpList'].each do |i| + ipsegment_tmp = IpSegment.new + ipsegment_tmp.deserialize(i) + @WhiteIpList << ipsegment_tmp + end + end + @RequestId = params['RequestId'] + end + end + # DescribeDDoSTrend请求参数结构体 class DescribeDDoSTrendRequest < TencentCloud::Common::AbstractModel # @param Business: 大禹子产品代号(bgpip表示高防IP;bgp表示独享包;bgp-multip表示共享包;net表示高防IP专业版;basic表示DDoS基础防护) # @type Business: String # @param Ip: 资源实例的IP @@ -3081,9 +3229,29 @@ end def deserialize(params) @EipList = params['EipList'] @InstanceId = params['InstanceId'] + end + end + + # ip段数据结构 + class IpSegment < TencentCloud::Common::AbstractModel + # @param Ip: ip地址 + # @type Ip: String + # @param Mask: ip掩码,如果为32位ip,填0 + # @type Mask: Integer + + attr_accessor :Ip, :Mask + + def initialize(ip=nil, mask=nil) + @Ip = ip + @Mask = mask + end + + def deserialize(params) + @Ip = params['Ip'] + @Mask = params['Mask'] end end # 字段值,K-V形式 class KeyValue < TencentCloud::Common::AbstractModel