Class: TencentCloud::Cwp::V20180228::RiskDnsPolicy

Inherits:
TencentCloud::Common::AbstractModel
  • Object
show all
Defined in:
lib/v20180228/models.rb

Overview

恶意请求策略

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(policyname = nil, policytype = nil, policyaction = nil, hostscope = nil, hostids = nil, domains = nil, isenabled = nil, policyid = nil, policydesc = nil, isdealoldevent = nil, updatetime = nil, eventid = nil) ⇒ RiskDnsPolicy

Returns a new instance of RiskDnsPolicy.



37671
37672
37673
37674
37675
37676
37677
37678
37679
37680
37681
37682
37683
37684
# File 'lib/v20180228/models.rb', line 37671

def initialize(policyname=nil, policytype=nil, policyaction=nil, hostscope=nil, hostids=nil, domains=nil, isenabled=nil, policyid=nil, policydesc=nil, isdealoldevent=nil, updatetime=nil, eventid=nil)
  @PolicyName = policyname
  @PolicyType = policytype
  @PolicyAction = policyaction
  @HostScope = hostscope
  @HostIds = hostids
  @Domains = domains
  @IsEnabled = isenabled
  @PolicyId = policyid
  @PolicyDesc = policydesc
  @IsDealOldEvent = isdealoldevent
  @UpdateTime = updatetime
  @EventId = eventid
end

Instance Attribute Details

#DomainsObject

Parameters:

  • PolicyName:

    策略名称

  • PolicyType:
  • PolicyAction:
  • HostScope:

    主机范围[1: 所有专业版+旗舰版|2:所有旗舰版|0: 部分主机]

  • HostIds:

    主机ID

  • Domains:

    域名,作为入参时需要进行base64 encode

  • IsEnabled:
  • PolicyId:

    策略ID

  • PolicyDesc:

    策略描述

  • IsDealOldEvent:
  • UpdateTime:

    更新时间

  • EventId:

    事件ID



37669
37670
37671
# File 'lib/v20180228/models.rb', line 37669

def Domains
  @Domains
end

#EventIdObject

Parameters:

  • PolicyName:

    策略名称

  • PolicyType:
  • PolicyAction:
  • HostScope:

    主机范围[1: 所有专业版+旗舰版|2:所有旗舰版|0: 部分主机]

  • HostIds:

    主机ID

  • Domains:

    域名,作为入参时需要进行base64 encode

  • IsEnabled:
  • PolicyId:

    策略ID

  • PolicyDesc:

    策略描述

  • IsDealOldEvent:
  • UpdateTime:

    更新时间

  • EventId:

    事件ID



37669
37670
37671
# File 'lib/v20180228/models.rb', line 37669

def EventId
  @EventId
end

#HostIdsObject

Parameters:

  • PolicyName:

    策略名称

  • PolicyType:
  • PolicyAction:
  • HostScope:

    主机范围[1: 所有专业版+旗舰版|2:所有旗舰版|0: 部分主机]

  • HostIds:

    主机ID

  • Domains:

    域名,作为入参时需要进行base64 encode

  • IsEnabled:
  • PolicyId:

    策略ID

  • PolicyDesc:

    策略描述

  • IsDealOldEvent:
  • UpdateTime:

    更新时间

  • EventId:

    事件ID



37669
37670
37671
# File 'lib/v20180228/models.rb', line 37669

def HostIds
  @HostIds
end

#HostScopeObject

Parameters:

  • PolicyName:

    策略名称

  • PolicyType:
  • PolicyAction:
  • HostScope:

    主机范围[1: 所有专业版+旗舰版|2:所有旗舰版|0: 部分主机]

  • HostIds:

    主机ID

  • Domains:

    域名,作为入参时需要进行base64 encode

  • IsEnabled:
  • PolicyId:

    策略ID

  • PolicyDesc:

    策略描述

  • IsDealOldEvent:
  • UpdateTime:

    更新时间

  • EventId:

    事件ID



37669
37670
37671
# File 'lib/v20180228/models.rb', line 37669

def HostScope
  @HostScope
end

#IsDealOldEventObject

Parameters:

  • PolicyName:

    策略名称

  • PolicyType:
  • PolicyAction:
  • HostScope:

    主机范围[1: 所有专业版+旗舰版|2:所有旗舰版|0: 部分主机]

  • HostIds:

    主机ID

  • Domains:

    域名,作为入参时需要进行base64 encode

  • IsEnabled:
  • PolicyId:

    策略ID

  • PolicyDesc:

    策略描述

  • IsDealOldEvent:
  • UpdateTime:

    更新时间

  • EventId:

    事件ID



37669
37670
37671
# File 'lib/v20180228/models.rb', line 37669

def IsDealOldEvent
  @IsDealOldEvent
end

#IsEnabledObject

Parameters:

  • PolicyName:

    策略名称

  • PolicyType:
  • PolicyAction:
  • HostScope:

    主机范围[1: 所有专业版+旗舰版|2:所有旗舰版|0: 部分主机]

  • HostIds:

    主机ID

  • Domains:

    域名,作为入参时需要进行base64 encode

  • IsEnabled:
  • PolicyId:

    策略ID

  • PolicyDesc:

    策略描述

  • IsDealOldEvent:
  • UpdateTime:

    更新时间

  • EventId:

    事件ID



37669
37670
37671
# File 'lib/v20180228/models.rb', line 37669

def IsEnabled
  @IsEnabled
end

#PolicyActionObject

Parameters:

  • PolicyName:

    策略名称

  • PolicyType:
  • PolicyAction:
  • HostScope:

    主机范围[1: 所有专业版+旗舰版|2:所有旗舰版|0: 部分主机]

  • HostIds:

    主机ID

  • Domains:

    域名,作为入参时需要进行base64 encode

  • IsEnabled:
  • PolicyId:

    策略ID

  • PolicyDesc:

    策略描述

  • IsDealOldEvent:
  • UpdateTime:

    更新时间

  • EventId:

    事件ID



37669
37670
37671
# File 'lib/v20180228/models.rb', line 37669

def PolicyAction
  @PolicyAction
end

#PolicyDescObject

Parameters:

  • PolicyName:

    策略名称

  • PolicyType:
  • PolicyAction:
  • HostScope:

    主机范围[1: 所有专业版+旗舰版|2:所有旗舰版|0: 部分主机]

  • HostIds:

    主机ID

  • Domains:

    域名,作为入参时需要进行base64 encode

  • IsEnabled:
  • PolicyId:

    策略ID

  • PolicyDesc:

    策略描述

  • IsDealOldEvent:
  • UpdateTime:

    更新时间

  • EventId:

    事件ID



37669
37670
37671
# File 'lib/v20180228/models.rb', line 37669

def PolicyDesc
  @PolicyDesc
end

#PolicyIdObject

Parameters:

  • PolicyName:

    策略名称

  • PolicyType:
  • PolicyAction:
  • HostScope:

    主机范围[1: 所有专业版+旗舰版|2:所有旗舰版|0: 部分主机]

  • HostIds:

    主机ID

  • Domains:

    域名,作为入参时需要进行base64 encode

  • IsEnabled:
  • PolicyId:

    策略ID

  • PolicyDesc:

    策略描述

  • IsDealOldEvent:
  • UpdateTime:

    更新时间

  • EventId:

    事件ID



37669
37670
37671
# File 'lib/v20180228/models.rb', line 37669

def PolicyId
  @PolicyId
end

#PolicyNameObject

Parameters:

  • PolicyName:

    策略名称

  • PolicyType:
  • PolicyAction:
  • HostScope:

    主机范围[1: 所有专业版+旗舰版|2:所有旗舰版|0: 部分主机]

  • HostIds:

    主机ID

  • Domains:

    域名,作为入参时需要进行base64 encode

  • IsEnabled:
  • PolicyId:

    策略ID

  • PolicyDesc:

    策略描述

  • IsDealOldEvent:
  • UpdateTime:

    更新时间

  • EventId:

    事件ID



37669
37670
37671
# File 'lib/v20180228/models.rb', line 37669

def PolicyName
  @PolicyName
end

#PolicyTypeObject

Parameters:

  • PolicyName:

    策略名称

  • PolicyType:
  • PolicyAction:
  • HostScope:

    主机范围[1: 所有专业版+旗舰版|2:所有旗舰版|0: 部分主机]

  • HostIds:

    主机ID

  • Domains:

    域名,作为入参时需要进行base64 encode

  • IsEnabled:
  • PolicyId:

    策略ID

  • PolicyDesc:

    策略描述

  • IsDealOldEvent:
  • UpdateTime:

    更新时间

  • EventId:

    事件ID



37669
37670
37671
# File 'lib/v20180228/models.rb', line 37669

def PolicyType
  @PolicyType
end

#UpdateTimeObject

Parameters:

  • PolicyName:

    策略名称

  • PolicyType:
  • PolicyAction:
  • HostScope:

    主机范围[1: 所有专业版+旗舰版|2:所有旗舰版|0: 部分主机]

  • HostIds:

    主机ID

  • Domains:

    域名,作为入参时需要进行base64 encode

  • IsEnabled:
  • PolicyId:

    策略ID

  • PolicyDesc:

    策略描述

  • IsDealOldEvent:
  • UpdateTime:

    更新时间

  • EventId:

    事件ID



37669
37670
37671
# File 'lib/v20180228/models.rb', line 37669

def UpdateTime
  @UpdateTime
end

Instance Method Details

#deserialize(params) ⇒ Object



37686
37687
37688
37689
37690
37691
37692
37693
37694
37695
37696
37697
37698
37699
# File 'lib/v20180228/models.rb', line 37686

def deserialize(params)
  @PolicyName = params['PolicyName']
  @PolicyType = params['PolicyType']
  @PolicyAction = params['PolicyAction']
  @HostScope = params['HostScope']
  @HostIds = params['HostIds']
  @Domains = params['Domains']
  @IsEnabled = params['IsEnabled']
  @PolicyId = params['PolicyId']
  @PolicyDesc = params['PolicyDesc']
  @IsDealOldEvent = params['IsDealOldEvent']
  @UpdateTime = params['UpdateTime']
  @EventId = params['EventId']
end