Class: TencentCloud::Scf::V20180416::ListLayersResponse

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

Overview

ListLayers返回参数结构体

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(layers = nil, totalcount = nil, requestid = nil) ⇒ ListLayersResponse

Returns a new instance of ListLayersResponse.



3430
3431
3432
3433
3434
# File 'lib/v20180416/models.rb', line 3430

def initialize(layers=nil, totalcount=nil, requestid=nil)
  @Layers = layers
  @TotalCount = totalcount
  @RequestId = requestid
end

Instance Attribute Details

#Layers ⇒ Object

Parameters:

  • Layers: —

    层列表

  • TotalCount: —

    层总数

  • RequestId: —

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



3428
3429
3430
# File 'lib/v20180416/models.rb', line 3428

def Layers
  @Layers
end

#RequestId ⇒ Object

Parameters:

  • Layers: —

    层列表

  • TotalCount: —

    层总数

  • RequestId: —

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



3428
3429
3430
# File 'lib/v20180416/models.rb', line 3428

def RequestId
  @RequestId
end

#TotalCount ⇒ Object

Parameters:

  • Layers: —

    层列表

  • TotalCount: —

    层总数

  • RequestId: —

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



3428
3429
3430
# File 'lib/v20180416/models.rb', line 3428

def TotalCount
  @TotalCount
end

Instance Method Details

#deserialize(params) ⇒ Object



3436
3437
3438
3439
3440
3441
3442
3443
3444
3445
3446
3447
# File 'lib/v20180416/models.rb', line 3436

def deserialize(params)
  unless params['Layers'].nil?
    @Layers = []
    params['Layers'].each do |i|
      layerversioninfo_tmp = LayerVersionInfo.new
      layerversioninfo_tmp.deserialize(i)
      @Layers << layerversioninfo_tmp
    end
  end
  @TotalCount = params['TotalCount']
  @RequestId = params['RequestId']
end