Class: TencentCloud::Tke::V20180525::DescribeVersionsResponse

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

Overview

DescribeVersions返回参数结构体

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(totalcount = nil, versioninstanceset = nil, requestid = nil) ⇒ DescribeVersionsResponse

Returns a new instance of DescribeVersionsResponse.



11328
11329
11330
11331
11332
# File 'lib/v20180525/models.rb', line 11328

def initialize(totalcount=nil, versioninstanceset=nil, requestid=nil)
  @TotalCount = totalcount
  @VersionInstanceSet = versioninstanceset
  @RequestId = requestid
end

Instance Attribute Details

#RequestIdObject

Parameters:

  • TotalCount:

    版本数量

  • VersionInstanceSet:

    版本列表

  • RequestId:

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



11326
11327
11328
# File 'lib/v20180525/models.rb', line 11326

def RequestId
  @RequestId
end

#TotalCountObject

Parameters:

  • TotalCount:

    版本数量

  • VersionInstanceSet:

    版本列表

  • RequestId:

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



11326
11327
11328
# File 'lib/v20180525/models.rb', line 11326

def TotalCount
  @TotalCount
end

#VersionInstanceSetObject

Parameters:

  • TotalCount:

    版本数量

  • VersionInstanceSet:

    版本列表

  • RequestId:

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



11326
11327
11328
# File 'lib/v20180525/models.rb', line 11326

def VersionInstanceSet
  @VersionInstanceSet
end

Instance Method Details

#deserialize(params) ⇒ Object



11334
11335
11336
11337
11338
11339
11340
11341
11342
11343
11344
11345
# File 'lib/v20180525/models.rb', line 11334

def deserialize(params)
  @TotalCount = params['TotalCount']
  unless params['VersionInstanceSet'].nil?
    @VersionInstanceSet = []
    params['VersionInstanceSet'].each do |i|
      versioninstance_tmp = VersionInstance.new
      versioninstance_tmp.deserialize(i)
      @VersionInstanceSet << versioninstance_tmp
    end
  end
  @RequestId = params['RequestId']
end