Class: TencentCloud::Scf::V20180416::CreateCustomDomainRequest

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

Overview

CreateCustomDomain请求参数结构体

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(domain = nil, protocol = nil, endpointsconfig = nil, certconfig = nil, wafconfig = nil, tags = nil) ⇒ CreateCustomDomainRequest

Returns a new instance of CreateCustomDomainRequest.



471
472
473
474
475
476
477
478
# File 'lib/v20180416/models.rb', line 471

def initialize(domain=nil, protocol=nil, endpointsconfig=nil, certconfig=nil, wafconfig=nil, tags=nil)
  @Domain = domain
  @Protocol = protocol
  @EndpointsConfig = endpointsconfig
  @CertConfig = certconfig
  @WafConfig = wafconfig
  @Tags = tags
end

Instance Attribute Details

#CertConfig ⇒ Object

Parameters:

  • Domain: —

    域名,不支持泛域名

  • Protocol: —

    协议,取值范围:HTTP, HTTPS, HTTP&HTTPS

  • EndpointsConfig: —

    路由配置

  • CertConfig: —

    证书配置信息,有使用HTTPS协议时候必须传

  • WafConfig: —

    web 应用防火墙配置

  • Tags: —

    标签



469
470
471
# File 'lib/v20180416/models.rb', line 469

def CertConfig
  @CertConfig
end

#Domain ⇒ Object

Parameters:

  • Domain: —

    域名,不支持泛域名

  • Protocol: —

    协议,取值范围:HTTP, HTTPS, HTTP&HTTPS

  • EndpointsConfig: —

    路由配置

  • CertConfig: —

    证书配置信息,有使用HTTPS协议时候必须传

  • WafConfig: —

    web 应用防火墙配置

  • Tags: —

    标签



469
470
471
# File 'lib/v20180416/models.rb', line 469

def Domain
  @Domain
end

#EndpointsConfig ⇒ Object

Parameters:

  • Domain: —

    域名,不支持泛域名

  • Protocol: —

    协议,取值范围:HTTP, HTTPS, HTTP&HTTPS

  • EndpointsConfig: —

    路由配置

  • CertConfig: —

    证书配置信息,有使用HTTPS协议时候必须传

  • WafConfig: —

    web 应用防火墙配置

  • Tags: —

    标签



469
470
471
# File 'lib/v20180416/models.rb', line 469

def EndpointsConfig
  @EndpointsConfig
end

#Protocol ⇒ Object

Parameters:

  • Domain: —

    域名,不支持泛域名

  • Protocol: —

    协议,取值范围:HTTP, HTTPS, HTTP&HTTPS

  • EndpointsConfig: —

    路由配置

  • CertConfig: —

    证书配置信息,有使用HTTPS协议时候必须传

  • WafConfig: —

    web 应用防火墙配置

  • Tags: —

    标签



469
470
471
# File 'lib/v20180416/models.rb', line 469

def Protocol
  @Protocol
end

#Tags ⇒ Object

Parameters:

  • Domain: —

    域名,不支持泛域名

  • Protocol: —

    协议,取值范围:HTTP, HTTPS, HTTP&HTTPS

  • EndpointsConfig: —

    路由配置

  • CertConfig: —

    证书配置信息,有使用HTTPS协议时候必须传

  • WafConfig: —

    web 应用防火墙配置

  • Tags: —

    标签



469
470
471
# File 'lib/v20180416/models.rb', line 469

def Tags
  @Tags
end

#WafConfig ⇒ Object

Parameters:

  • Domain: —

    域名,不支持泛域名

  • Protocol: —

    协议,取值范围:HTTP, HTTPS, HTTP&HTTPS

  • EndpointsConfig: —

    路由配置

  • CertConfig: —

    证书配置信息,有使用HTTPS协议时候必须传

  • WafConfig: —

    web 应用防火墙配置

  • Tags: —

    标签



469
470
471
# File 'lib/v20180416/models.rb', line 469

def WafConfig
  @WafConfig
end

Instance Method Details

#deserialize(params) ⇒ Object



480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
# File 'lib/v20180416/models.rb', line 480

def deserialize(params)
  @Domain = params['Domain']
  @Protocol = params['Protocol']
  unless params['EndpointsConfig'].nil?
    @EndpointsConfig = []
    params['EndpointsConfig'].each do |i|
      endpointsconf_tmp = EndpointsConf.new
      endpointsconf_tmp.deserialize(i)
      @EndpointsConfig << endpointsconf_tmp
    end
  end
  unless params['CertConfig'].nil?
    @CertConfig = CertConf.new
    @CertConfig.deserialize(params['CertConfig'])
  end
  unless params['WafConfig'].nil?
    @WafConfig = WafConf.new
    @WafConfig.deserialize(params['WafConfig'])
  end
  unless params['Tags'].nil?
    @Tags = []
    params['Tags'].each do |i|
      tag_tmp = Tag.new
      tag_tmp.deserialize(i)
      @Tags << tag_tmp
    end
  end
end