Class: TencentCloud::Scf::V20180416::DomainInfo

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

Overview

云函数自定义域名详情

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

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

Returns a new instance of DomainInfo.



1246
1247
1248
1249
1250
1251
1252
1253
# File 'lib/v20180416/models.rb', line 1246

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: —

    标签



1244
1245
1246
# File 'lib/v20180416/models.rb', line 1244

def CertConfig
  @CertConfig
end

#Domain ⇒ Object

Parameters:

  • Domain: —

    域名,不支持泛域名

  • Protocol: —

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

  • EndpointsConfig: —

    路由配置信息

  • CertConfig: —

    证书配置信息,HTTPS协议必传路由配置

  • WafConfig: —

    web 应用防火墙配置

  • Tags: —

    标签



1244
1245
1246
# File 'lib/v20180416/models.rb', line 1244

def Domain
  @Domain
end

#EndpointsConfig ⇒ Object

Parameters:

  • Domain: —

    域名,不支持泛域名

  • Protocol: —

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

  • EndpointsConfig: —

    路由配置信息

  • CertConfig: —

    证书配置信息,HTTPS协议必传路由配置

  • WafConfig: —

    web 应用防火墙配置

  • Tags: —

    标签



1244
1245
1246
# File 'lib/v20180416/models.rb', line 1244

def EndpointsConfig
  @EndpointsConfig
end

#Protocol ⇒ Object

Parameters:

  • Domain: —

    域名,不支持泛域名

  • Protocol: —

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

  • EndpointsConfig: —

    路由配置信息

  • CertConfig: —

    证书配置信息,HTTPS协议必传路由配置

  • WafConfig: —

    web 应用防火墙配置

  • Tags: —

    标签



1244
1245
1246
# File 'lib/v20180416/models.rb', line 1244

def Protocol
  @Protocol
end

#Tags ⇒ Object

Parameters:

  • Domain: —

    域名,不支持泛域名

  • Protocol: —

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

  • EndpointsConfig: —

    路由配置信息

  • CertConfig: —

    证书配置信息,HTTPS协议必传路由配置

  • WafConfig: —

    web 应用防火墙配置

  • Tags: —

    标签



1244
1245
1246
# File 'lib/v20180416/models.rb', line 1244

def Tags
  @Tags
end

#WafConfig ⇒ Object

Parameters:

  • Domain: —

    域名,不支持泛域名

  • Protocol: —

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

  • EndpointsConfig: —

    路由配置信息

  • CertConfig: —

    证书配置信息,HTTPS协议必传路由配置

  • WafConfig: —

    web 应用防火墙配置

  • Tags: —

    标签



1244
1245
1246
# File 'lib/v20180416/models.rb', line 1244

def WafConfig
  @WafConfig
end

Instance Method Details

#deserialize(params) ⇒ Object



1255
1256
1257
1258
1259
1260
1261
1262
1263
1264
1265
1266
1267
1268
1269
1270
1271
1272
1273
1274
1275
1276
1277
1278
1279
1280
1281
1282
# File 'lib/v20180416/models.rb', line 1255

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