Class: TencentCloud::Scf::V20180416::UpdateCustomDomainRequest

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

Overview

UpdateCustomDomain请求参数结构体

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

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

Returns a new instance of UpdateCustomDomainRequest.



4946
4947
4948
4949
4950
4951
4952
# File 'lib/v20180416/models.rb', line 4946

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

Instance Attribute Details

#CertConfig ⇒ Object

Parameters:

  • Domain: —

    自定义域名

  • Protocol: —

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

  • CertConfig: —

    证书配置信息,HTTPS协议必穿

  • WafConfig: —

    web 应用防火墙配置

  • EndpointsConfig: —

    路由配置



4944
4945
4946
# File 'lib/v20180416/models.rb', line 4944

def CertConfig
  @CertConfig
end

#Domain ⇒ Object

Parameters:

  • Domain: —

    自定义域名

  • Protocol: —

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

  • CertConfig: —

    证书配置信息,HTTPS协议必穿

  • WafConfig: —

    web 应用防火墙配置

  • EndpointsConfig: —

    路由配置



4944
4945
4946
# File 'lib/v20180416/models.rb', line 4944

def Domain
  @Domain
end

#EndpointsConfig ⇒ Object

Parameters:

  • Domain: —

    自定义域名

  • Protocol: —

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

  • CertConfig: —

    证书配置信息,HTTPS协议必穿

  • WafConfig: —

    web 应用防火墙配置

  • EndpointsConfig: —

    路由配置



4944
4945
4946
# File 'lib/v20180416/models.rb', line 4944

def EndpointsConfig
  @EndpointsConfig
end

#Protocol ⇒ Object

Parameters:

  • Domain: —

    自定义域名

  • Protocol: —

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

  • CertConfig: —

    证书配置信息,HTTPS协议必穿

  • WafConfig: —

    web 应用防火墙配置

  • EndpointsConfig: —

    路由配置



4944
4945
4946
# File 'lib/v20180416/models.rb', line 4944

def Protocol
  @Protocol
end

#WafConfig ⇒ Object

Parameters:

  • Domain: —

    自定义域名

  • Protocol: —

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

  • CertConfig: —

    证书配置信息,HTTPS协议必穿

  • WafConfig: —

    web 应用防火墙配置

  • EndpointsConfig: —

    路由配置



4944
4945
4946
# File 'lib/v20180416/models.rb', line 4944

def WafConfig
  @WafConfig
end

Instance Method Details

#deserialize(params) ⇒ Object



4954
4955
4956
4957
4958
4959
4960
4961
4962
4963
4964
4965
4966
4967
4968
4969
4970
4971
4972
4973
# File 'lib/v20180416/models.rb', line 4954

def deserialize(params)
  @Domain = params['Domain']
  @Protocol = params['Protocol']
  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['EndpointsConfig'].nil?
    @EndpointsConfig = []
    params['EndpointsConfig'].each do |i|
      endpointsconf_tmp = EndpointsConf.new
      endpointsconf_tmp.deserialize(i)
      @EndpointsConfig << endpointsconf_tmp
    end
  end
end