Class: TencentCloud::Cvm::V20170312::InquiryPriceTerminateInstancesResponse

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

Overview

InquiryPriceTerminateInstances返回参数结构体

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(instancerefundsset = nil, requestid = nil) ⇒ InquiryPriceTerminateInstancesResponse

Returns a new instance of InquiryPriceTerminateInstancesResponse.



5003
5004
5005
5006
# File 'lib/v20170312/models.rb', line 5003

def initialize(instancerefundsset=nil, requestid=nil)
  @InstanceRefundsSet = instancerefundsset
  @RequestId = requestid
end

Instance Attribute Details

#InstanceRefundsSetObject

Parameters:

  • InstanceRefundsSet:

    退款详情。

  • RequestId:

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



5001
5002
5003
# File 'lib/v20170312/models.rb', line 5001

def InstanceRefundsSet
  @InstanceRefundsSet
end

#RequestIdObject

Parameters:

  • InstanceRefundsSet:

    退款详情。

  • RequestId:

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



5001
5002
5003
# File 'lib/v20170312/models.rb', line 5001

def RequestId
  @RequestId
end

Instance Method Details

#deserialize(params) ⇒ Object



5008
5009
5010
5011
5012
5013
5014
5015
5016
5017
5018
# File 'lib/v20170312/models.rb', line 5008

def deserialize(params)
  unless params['InstanceRefundsSet'].nil?
    @InstanceRefundsSet = []
    params['InstanceRefundsSet'].each do |i|
      instancerefund_tmp = InstanceRefund.new
      instancerefund_tmp.deserialize(i)
      @InstanceRefundsSet << instancerefund_tmp
    end
  end
  @RequestId = params['RequestId']
end