Class: TencentCloud::Scf::V20180416::CreateCustomDomainRequest
- Inherits:
-
Common::AbstractModel
- Object
- Common::AbstractModel
- TencentCloud::Scf::V20180416::CreateCustomDomainRequest
- Defined in:
- lib/v20180416/models.rb
Overview
CreateCustomDomain请求参数结构体
Instance Attribute Summary collapse
- #CertConfig ⇒ Object
- #Domain ⇒ Object
- #EndpointsConfig ⇒ Object
- #Protocol ⇒ Object
- #Tags ⇒ Object
- #WafConfig ⇒ Object
Instance Method Summary collapse
- #deserialize(params) ⇒ Object
-
#initialize(domain = nil, protocol = nil, endpointsconfig = nil, certconfig = nil, wafconfig = nil, tags = nil) ⇒ CreateCustomDomainRequest
constructor
A new instance of CreateCustomDomainRequest.
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, =nil) @Domain = domain @Protocol = protocol @EndpointsConfig = endpointsconfig @CertConfig = certconfig @WafConfig = wafconfig @Tags = end |
Instance Attribute Details
#CertConfig ⇒ Object
469 470 471 |
# File 'lib/v20180416/models.rb', line 469 def CertConfig @CertConfig end |
#Domain ⇒ Object
469 470 471 |
# File 'lib/v20180416/models.rb', line 469 def Domain @Domain end |
#EndpointsConfig ⇒ Object
469 470 471 |
# File 'lib/v20180416/models.rb', line 469 def EndpointsConfig @EndpointsConfig end |
#Protocol ⇒ Object
469 470 471 |
# File 'lib/v20180416/models.rb', line 469 def Protocol @Protocol end |
#Tags ⇒ Object
469 470 471 |
# File 'lib/v20180416/models.rb', line 469 def Tags @Tags end |
#WafConfig ⇒ Object
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 |