Class: TencentCloud::Scf::V20180416::DomainInfo
- Inherits:
-
Common::AbstractModel
- Object
- Common::AbstractModel
- TencentCloud::Scf::V20180416::DomainInfo
- Defined in:
- lib/v20180416/models.rb
Overview
云函数自定义域名详情
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) ⇒ DomainInfo
constructor
A new instance of DomainInfo.
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, =nil) @Domain = domain @Protocol = protocol @EndpointsConfig = endpointsconfig @CertConfig = certconfig @WafConfig = wafconfig @Tags = end |
Instance Attribute Details
#CertConfig ⇒ Object
1244 1245 1246 |
# File 'lib/v20180416/models.rb', line 1244 def CertConfig @CertConfig end |
#Domain ⇒ Object
1244 1245 1246 |
# File 'lib/v20180416/models.rb', line 1244 def Domain @Domain end |
#EndpointsConfig ⇒ Object
1244 1245 1246 |
# File 'lib/v20180416/models.rb', line 1244 def EndpointsConfig @EndpointsConfig end |
#Protocol ⇒ Object
1244 1245 1246 |
# File 'lib/v20180416/models.rb', line 1244 def Protocol @Protocol end |
#Tags ⇒ Object
1244 1245 1246 |
# File 'lib/v20180416/models.rb', line 1244 def Tags @Tags end |
#WafConfig ⇒ Object
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 |