Class: TencentCloud::Tcb::V20180608::DescribeCloudBaseRunVersionSnapshotResponse

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

Overview

DescribeCloudBaseRunVersionSnapshot返回参数结构体

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(snapshots = nil, requestid = nil) ⇒ DescribeCloudBaseRunVersionSnapshotResponse

Returns a new instance of DescribeCloudBaseRunVersionSnapshotResponse.



4167
4168
4169
4170
# File 'lib/v20180608/models.rb', line 4167

def initialize(snapshots=nil, requestid=nil)
  @Snapshots = snapshots
  @RequestId = requestid
end

Instance Attribute Details

#RequestIdObject

Parameters:

  • Snapshots:

    版本历史

  • RequestId:

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



4165
4166
4167
# File 'lib/v20180608/models.rb', line 4165

def RequestId
  @RequestId
end

#SnapshotsObject

Parameters:

  • Snapshots:

    版本历史

  • RequestId:

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



4165
4166
4167
# File 'lib/v20180608/models.rb', line 4165

def Snapshots
  @Snapshots
end

Instance Method Details

#deserialize(params) ⇒ Object



4172
4173
4174
4175
4176
4177
4178
4179
4180
4181
4182
# File 'lib/v20180608/models.rb', line 4172

def deserialize(params)
  unless params['Snapshots'].nil?
    @Snapshots = []
    params['Snapshots'].each do |i|
      cloudrunservicesimpleversionsnapshot_tmp = CloudRunServiceSimpleVersionSnapshot.new
      cloudrunservicesimpleversionsnapshot_tmp.deserialize(i)
      @Snapshots << cloudrunservicesimpleversionsnapshot_tmp
    end
  end
  @RequestId = params['RequestId']
end