Class: TencentCloud::Teo::V20220901::CustomErrorPage
- Inherits:
-
Common::AbstractModel
- Object
- Common::AbstractModel
- TencentCloud::Teo::V20220901::CustomErrorPage
- Defined in:
- lib/v20220901/models.rb
Overview
自定义错误码页面结构体。
Instance Attribute Summary collapse
- #Content ⇒ Object
- #ContentType ⇒ Object
- #Description ⇒ Object
- #Name ⇒ Object
- #PageId ⇒ Object
- #References ⇒ Object
- #ZoneId ⇒ Object
Instance Method Summary collapse
- #deserialize(params) ⇒ Object
-
#initialize(pageid = nil, zoneid = nil, name = nil, contenttype = nil, description = nil, content = nil, references = nil) ⇒ CustomErrorPage
constructor
A new instance of CustomErrorPage.
Constructor Details
#initialize(pageid = nil, zoneid = nil, name = nil, contenttype = nil, description = nil, content = nil, references = nil) ⇒ CustomErrorPage
Returns a new instance of CustomErrorPage.
5808 5809 5810 5811 5812 5813 5814 5815 5816 |
# File 'lib/v20220901/models.rb', line 5808 def initialize(pageid=nil, zoneid=nil, name=nil, contenttype=nil, description=nil, content=nil, references=nil) @PageId = pageid @ZoneId = zoneid @Name = name @ContentType = contenttype @Description = description @Content = content @References = references end |
Instance Attribute Details
#Content ⇒ Object
5806 5807 5808 |
# File 'lib/v20220901/models.rb', line 5806 def Content @Content end |
#ContentType ⇒ Object
5806 5807 5808 |
# File 'lib/v20220901/models.rb', line 5806 def ContentType @ContentType end |
#Description ⇒ Object
5806 5807 5808 |
# File 'lib/v20220901/models.rb', line 5806 def Description @Description end |
#Name ⇒ Object
5806 5807 5808 |
# File 'lib/v20220901/models.rb', line 5806 def Name @Name end |
#PageId ⇒ Object
5806 5807 5808 |
# File 'lib/v20220901/models.rb', line 5806 def PageId @PageId end |
#References ⇒ Object
5806 5807 5808 |
# File 'lib/v20220901/models.rb', line 5806 def References @References end |
#ZoneId ⇒ Object
5806 5807 5808 |
# File 'lib/v20220901/models.rb', line 5806 def ZoneId @ZoneId end |
Instance Method Details
#deserialize(params) ⇒ Object
5818 5819 5820 5821 5822 5823 5824 5825 5826 5827 5828 5829 5830 5831 5832 5833 |
# File 'lib/v20220901/models.rb', line 5818 def deserialize(params) @PageId = params['PageId'] @ZoneId = params['ZoneId'] @Name = params['Name'] @ContentType = params['ContentType'] @Description = params['Description'] @Content = params['Content'] unless params['References'].nil? @References = [] params['References'].each do |i| errorpagereference_tmp = ErrorPageReference.new errorpagereference_tmp.deserialize(i) @References << errorpagereference_tmp end end end |