Class: TencentCloud::Cdn::V20180606::UpdateScdnDomainRequest

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

Overview

UpdateScdnDomain请求参数结构体

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(domain = nil, waf = nil, acl = nil, cc = nil, ddos = nil, bot = nil) ⇒ UpdateScdnDomainRequest

Returns a new instance of UpdateScdnDomainRequest.



14019
14020
14021
14022
14023
14024
14025
14026
# File 'lib/v20180606/models.rb', line 14019

def initialize(domain=nil, waf=nil, acl=nil, cc=nil, ddos=nil, bot=nil)
  @Domain = domain
  @Waf = waf
  @Acl = acl
  @CC = cc
  @Ddos = ddos
  @Bot = bot
end

Instance Attribute Details

#AclObject

Parameters:

  • Domain:

    域名

  • Waf:

    Web 攻击防护(WAF)配置

  • Acl:

    自定义防护策略配置

  • CC:

    CC 防护配置,目前 CC 防护默认开启

  • Ddos:

    DDOS 防护配置,目前 DDoS 防护默认开启

  • Bot:

    BOT 防护配置



14017
14018
14019
# File 'lib/v20180606/models.rb', line 14017

def Acl
  @Acl
end

#BotObject

Parameters:

  • Domain:

    域名

  • Waf:

    Web 攻击防护(WAF)配置

  • Acl:

    自定义防护策略配置

  • CC:

    CC 防护配置,目前 CC 防护默认开启

  • Ddos:

    DDOS 防护配置,目前 DDoS 防护默认开启

  • Bot:

    BOT 防护配置



14017
14018
14019
# File 'lib/v20180606/models.rb', line 14017

def Bot
  @Bot
end

#CCObject

Parameters:

  • Domain:

    域名

  • Waf:

    Web 攻击防护(WAF)配置

  • Acl:

    自定义防护策略配置

  • CC:

    CC 防护配置,目前 CC 防护默认开启

  • Ddos:

    DDOS 防护配置,目前 DDoS 防护默认开启

  • Bot:

    BOT 防护配置



14017
14018
14019
# File 'lib/v20180606/models.rb', line 14017

def CC
  @CC
end

#DdosObject

Parameters:

  • Domain:

    域名

  • Waf:

    Web 攻击防护(WAF)配置

  • Acl:

    自定义防护策略配置

  • CC:

    CC 防护配置,目前 CC 防护默认开启

  • Ddos:

    DDOS 防护配置,目前 DDoS 防护默认开启

  • Bot:

    BOT 防护配置



14017
14018
14019
# File 'lib/v20180606/models.rb', line 14017

def Ddos
  @Ddos
end

#DomainObject

Parameters:

  • Domain:

    域名

  • Waf:

    Web 攻击防护(WAF)配置

  • Acl:

    自定义防护策略配置

  • CC:

    CC 防护配置,目前 CC 防护默认开启

  • Ddos:

    DDOS 防护配置,目前 DDoS 防护默认开启

  • Bot:

    BOT 防护配置



14017
14018
14019
# File 'lib/v20180606/models.rb', line 14017

def Domain
  @Domain
end

#WafObject

Parameters:

  • Domain:

    域名

  • Waf:

    Web 攻击防护(WAF)配置

  • Acl:

    自定义防护策略配置

  • CC:

    CC 防护配置,目前 CC 防护默认开启

  • Ddos:

    DDOS 防护配置,目前 DDoS 防护默认开启

  • Bot:

    BOT 防护配置



14017
14018
14019
# File 'lib/v20180606/models.rb', line 14017

def Waf
  @Waf
end

Instance Method Details

#deserialize(params) ⇒ Object



14028
14029
14030
14031
14032
14033
14034
14035
14036
14037
14038
14039
14040
14041
14042
14043
14044
14045
14046
14047
14048
14049
14050
# File 'lib/v20180606/models.rb', line 14028

def deserialize(params)
  @Domain = params['Domain']
  unless params['Waf'].nil?
    @Waf = ScdnWafConfig.new
    @Waf.deserialize(params['Waf'])
  end
  unless params['Acl'].nil?
    @Acl = ScdnAclConfig.new
    @Acl.deserialize(params['Acl'])
  end
  unless params['CC'].nil?
    @CC = ScdnConfig.new
    @CC.deserialize(params['CC'])
  end
  unless params['Ddos'].nil?
    @Ddos = ScdnDdosConfig.new
    @Ddos.deserialize(params['Ddos'])
  end
  unless params['Bot'].nil?
    @Bot = ScdnBotConfig.new
    @Bot.deserialize(params['Bot'])
  end
end