Class: TencentCloud::Sqlserver::V20180328::DescribeProductSpecResponse

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

Overview

DescribeProductSpec返回参数结构体

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(totalcount = nil, specinfolist = nil, requestid = nil) ⇒ DescribeProductSpecResponse

Returns a new instance of DescribeProductSpecResponse.



6026
6027
6028
6029
6030
# File 'lib/v20180328/models.rb', line 6026

def initialize(totalcount=nil, specinfolist=nil, requestid=nil)
  @TotalCount = totalcount
  @SpecInfoList = specinfolist
  @RequestId = requestid
end

Instance Attribute Details

#RequestIdObject

Parameters:

  • TotalCount:

    配置地域分的个数

  • SpecInfoList:

    规格信息数组

  • RequestId:

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



6024
6025
6026
# File 'lib/v20180328/models.rb', line 6024

def RequestId
  @RequestId
end

#SpecInfoListObject

Parameters:

  • TotalCount:

    配置地域分的个数

  • SpecInfoList:

    规格信息数组

  • RequestId:

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



6024
6025
6026
# File 'lib/v20180328/models.rb', line 6024

def SpecInfoList
  @SpecInfoList
end

#TotalCountObject

Parameters:

  • TotalCount:

    配置地域分的个数

  • SpecInfoList:

    规格信息数组

  • RequestId:

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



6024
6025
6026
# File 'lib/v20180328/models.rb', line 6024

def TotalCount
  @TotalCount
end

Instance Method Details

#deserialize(params) ⇒ Object



6032
6033
6034
6035
6036
6037
6038
6039
6040
6041
6042
6043
# File 'lib/v20180328/models.rb', line 6032

def deserialize(params)
  @TotalCount = params['TotalCount']
  unless params['SpecInfoList'].nil?
    @SpecInfoList = []
    params['SpecInfoList'].each do |i|
      productspec_tmp = ProductSpec.new
      productspec_tmp.deserialize(i)
      @SpecInfoList << productspec_tmp
    end
  end
  @RequestId = params['RequestId']
end