Class: TencentCloud::Asr::V20190614::GetUsageByDateResponse

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

Overview

GetUsageByDate返回参数结构体

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(data = nil, requestid = nil) ⇒ GetUsageByDateResponse

Returns a new instance of GetUsageByDateResponse.



1173
1174
1175
1176
# File 'lib/v20190614/models.rb', line 1173

def initialize(data=nil, requestid=nil)
  @Data = data
  @RequestId = requestid
end

Instance Attribute Details

#DataObject

Parameters:

  • Data:

    用量次数

  • RequestId:

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



1171
1172
1173
# File 'lib/v20190614/models.rb', line 1171

def Data
  @Data
end

#RequestIdObject

Parameters:

  • Data:

    用量次数

  • RequestId:

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



1171
1172
1173
# File 'lib/v20190614/models.rb', line 1171

def RequestId
  @RequestId
end

Instance Method Details

#deserialize(params) ⇒ Object



1178
1179
1180
1181
1182
1183
1184
# File 'lib/v20190614/models.rb', line 1178

def deserialize(params)
  unless params['Data'].nil?
    @Data = UsageByDateInfoData.new
    @Data.deserialize(params['Data'])
  end
  @RequestId = params['RequestId']
end