Class: TencentCloud::Lighthouse::V20200324::DescribeSnapshotsResponse

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

Overview

DescribeSnapshots返回参数结构体

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(totalcount = nil, snapshotset = nil, requestid = nil) ⇒ DescribeSnapshotsResponse

Returns a new instance of DescribeSnapshotsResponse.



4134
4135
4136
4137
4138
# File 'lib/v20200324/models.rb', line 4134

def initialize(totalcount=nil, snapshotset=nil, requestid=nil)
  @TotalCount = totalcount
  @SnapshotSet = snapshotset
  @RequestId = requestid
end

Instance Attribute Details

#RequestIdObject

Parameters:

  • TotalCount:

    快照的数量。

  • SnapshotSet:

    快照的详情列表。

  • RequestId:

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



4132
4133
4134
# File 'lib/v20200324/models.rb', line 4132

def RequestId
  @RequestId
end

#SnapshotSetObject

Parameters:

  • TotalCount:

    快照的数量。

  • SnapshotSet:

    快照的详情列表。

  • RequestId:

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



4132
4133
4134
# File 'lib/v20200324/models.rb', line 4132

def SnapshotSet
  @SnapshotSet
end

#TotalCountObject

Parameters:

  • TotalCount:

    快照的数量。

  • SnapshotSet:

    快照的详情列表。

  • RequestId:

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



4132
4133
4134
# File 'lib/v20200324/models.rb', line 4132

def TotalCount
  @TotalCount
end

Instance Method Details

#deserialize(params) ⇒ Object



4140
4141
4142
4143
4144
4145
4146
4147
4148
4149
4150
4151
# File 'lib/v20200324/models.rb', line 4140

def deserialize(params)
  @TotalCount = params['TotalCount']
  unless params['SnapshotSet'].nil?
    @SnapshotSet = []
    params['SnapshotSet'].each do |i|
      snapshot_tmp = Snapshot.new
      snapshot_tmp.deserialize(i)
      @SnapshotSet << snapshot_tmp
    end
  end
  @RequestId = params['RequestId']
end