Class: TencentCloud::Teo::V20220901::DescribeCustomErrorPagesResponse

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

Overview

DescribeCustomErrorPages返回参数结构体

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(totalcount = nil, errorpages = nil, requestid = nil) ⇒ DescribeCustomErrorPagesResponse

Returns a new instance of DescribeCustomErrorPagesResponse.



8034
8035
8036
8037
8038
# File 'lib/v20220901/models.rb', line 8034

def initialize(totalcount=nil, errorpages=nil, requestid=nil)
  @TotalCount = totalcount
  @ErrorPages = errorpages
  @RequestId = requestid
end

Instance Attribute Details

#ErrorPagesObject

Parameters:

  • TotalCount:

    自定义错误页面总数。

  • ErrorPages:

    自定义错误页面数据列表。

  • RequestId:

    唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。



8032
8033
8034
# File 'lib/v20220901/models.rb', line 8032

def ErrorPages
  @ErrorPages
end

#RequestIdObject

Parameters:

  • TotalCount:

    自定义错误页面总数。

  • ErrorPages:

    自定义错误页面数据列表。

  • RequestId:

    唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。



8032
8033
8034
# File 'lib/v20220901/models.rb', line 8032

def RequestId
  @RequestId
end

#TotalCountObject

Parameters:

  • TotalCount:

    自定义错误页面总数。

  • ErrorPages:

    自定义错误页面数据列表。

  • RequestId:

    唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。



8032
8033
8034
# File 'lib/v20220901/models.rb', line 8032

def TotalCount
  @TotalCount
end

Instance Method Details

#deserialize(params) ⇒ Object



8040
8041
8042
8043
8044
8045
8046
8047
8048
8049
8050
8051
# File 'lib/v20220901/models.rb', line 8040

def deserialize(params)
  @TotalCount = params['TotalCount']
  unless params['ErrorPages'].nil?
    @ErrorPages = []
    params['ErrorPages'].each do |i|
      customerrorpage_tmp = CustomErrorPage.new
      customerrorpage_tmp.deserialize(i)
      @ErrorPages << customerrorpage_tmp
    end
  end
  @RequestId = params['RequestId']
end