Class: TencentCloud::Billing::V20180709::DescribeDosageDetailByDateResponse

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

Overview

DescribeDosageDetailByDate返回参数结构体

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(unit = nil, detailsets = nil, retcode = nil, retmsg = nil, requestid = nil) ⇒ DescribeDosageDetailByDateResponse

Returns a new instance of DescribeDosageDetailByDateResponse.



9231
9232
9233
9234
9235
9236
9237
# File 'lib/v20180709/models.rb', line 9231

def initialize(unit=nil, detailsets=nil, retcode=nil, retmsg=nil, requestid=nil)
  @Unit = unit
  @DetailSets = detailsets
  @RetCode = retcode
  @RetMsg = retmsg
  @RequestId = requestid
end

Instance Attribute Details

#DetailSetsObject

Parameters:

  • Unit:

    计量单位

  • DetailSets:

    用量数组

  • RetCode:

    错误码

  • RetMsg:

    错误信息

  • RequestId:

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



9229
9230
9231
# File 'lib/v20180709/models.rb', line 9229

def DetailSets
  @DetailSets
end

#RequestIdObject

Parameters:

  • Unit:

    计量单位

  • DetailSets:

    用量数组

  • RetCode:

    错误码

  • RetMsg:

    错误信息

  • RequestId:

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



9229
9230
9231
# File 'lib/v20180709/models.rb', line 9229

def RequestId
  @RequestId
end

#RetCodeObject

Parameters:

  • Unit:

    计量单位

  • DetailSets:

    用量数组

  • RetCode:

    错误码

  • RetMsg:

    错误信息

  • RequestId:

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



9229
9230
9231
# File 'lib/v20180709/models.rb', line 9229

def RetCode
  @RetCode
end

#RetMsgObject

Parameters:

  • Unit:

    计量单位

  • DetailSets:

    用量数组

  • RetCode:

    错误码

  • RetMsg:

    错误信息

  • RequestId:

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



9229
9230
9231
# File 'lib/v20180709/models.rb', line 9229

def RetMsg
  @RetMsg
end

#UnitObject

Parameters:

  • Unit:

    计量单位

  • DetailSets:

    用量数组

  • RetCode:

    错误码

  • RetMsg:

    错误信息

  • RequestId:

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



9229
9230
9231
# File 'lib/v20180709/models.rb', line 9229

def Unit
  @Unit
end

Instance Method Details

#deserialize(params) ⇒ Object



9239
9240
9241
9242
9243
9244
9245
9246
9247
9248
9249
9250
9251
9252
# File 'lib/v20180709/models.rb', line 9239

def deserialize(params)
  @Unit = params['Unit']
  unless params['DetailSets'].nil?
    @DetailSets = []
    params['DetailSets'].each do |i|
      detailset_tmp = DetailSet.new
      detailset_tmp.deserialize(i)
      @DetailSets << detailset_tmp
    end
  end
  @RetCode = params['RetCode']
  @RetMsg = params['RetMsg']
  @RequestId = params['RequestId']
end