Class: TencentCloud::Cdn::V20180606::CreateScdnDomainRequest

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

Overview

CreateScdnDomain请求参数结构体

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

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

Returns a new instance of CreateScdnDomainRequest.



2995
2996
2997
2998
2999
3000
3001
3002
# File 'lib/v20180606/models.rb', line 2995

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 防护配置



2993
2994
2995
# File 'lib/v20180606/models.rb', line 2993

def Acl
  @Acl
end

#BotObject

Parameters:

  • Domain:

    域名

  • Waf:

    Web 攻击防护(WAF)配置

  • Acl:

    自定义防护策略配置

  • CC:

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

  • Ddos:

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

  • Bot:

    BOT 防护配置



2993
2994
2995
# File 'lib/v20180606/models.rb', line 2993

def Bot
  @Bot
end

#CCObject

Parameters:

  • Domain:

    域名

  • Waf:

    Web 攻击防护(WAF)配置

  • Acl:

    自定义防护策略配置

  • CC:

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

  • Ddos:

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

  • Bot:

    BOT 防护配置



2993
2994
2995
# File 'lib/v20180606/models.rb', line 2993

def CC
  @CC
end

#DdosObject

Parameters:

  • Domain:

    域名

  • Waf:

    Web 攻击防护(WAF)配置

  • Acl:

    自定义防护策略配置

  • CC:

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

  • Ddos:

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

  • Bot:

    BOT 防护配置



2993
2994
2995
# File 'lib/v20180606/models.rb', line 2993

def Ddos
  @Ddos
end

#DomainObject

Parameters:

  • Domain:

    域名

  • Waf:

    Web 攻击防护(WAF)配置

  • Acl:

    自定义防护策略配置

  • CC:

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

  • Ddos:

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

  • Bot:

    BOT 防护配置



2993
2994
2995
# File 'lib/v20180606/models.rb', line 2993

def Domain
  @Domain
end

#WafObject

Parameters:

  • Domain:

    域名

  • Waf:

    Web 攻击防护(WAF)配置

  • Acl:

    自定义防护策略配置

  • CC:

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

  • Ddos:

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

  • Bot:

    BOT 防护配置



2993
2994
2995
# File 'lib/v20180606/models.rb', line 2993

def Waf
  @Waf
end

Instance Method Details

#deserialize(params) ⇒ Object



3004
3005
3006
3007
3008
3009
3010
3011
3012
3013
3014
3015
3016
3017
3018
3019
3020
3021
3022
3023
3024
3025
3026
# File 'lib/v20180606/models.rb', line 3004

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