Class: TencentCloud::Ssl::V20191205::COSInstanceList

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

Overview

cos实例详情 - 异步关联云资源数据结构

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(region = nil, instancelist = nil, totalcount = nil, error = nil) ⇒ COSInstanceList

Returns a new instance of COSInstanceList.



266
267
268
269
270
271
# File 'lib/v20191205/models.rb', line 266

def initialize(region=nil, instancelist=nil, totalcount=nil, error=nil)
  @Region = region
  @InstanceList = instancelist
  @TotalCount = totalcount
  @Error = error
end

Instance Attribute Details

#ErrorObject

Parameters:

  • Region:

    地域

  • InstanceList:

    实例详情

  • TotalCount:

    地域下总数

  • Error:

    错误信息



264
265
266
# File 'lib/v20191205/models.rb', line 264

def Error
  @Error
end

#InstanceListObject

Parameters:

  • Region:

    地域

  • InstanceList:

    实例详情

  • TotalCount:

    地域下总数

  • Error:

    错误信息



264
265
266
# File 'lib/v20191205/models.rb', line 264

def InstanceList
  @InstanceList
end

#RegionObject

Parameters:

  • Region:

    地域

  • InstanceList:

    实例详情

  • TotalCount:

    地域下总数

  • Error:

    错误信息



264
265
266
# File 'lib/v20191205/models.rb', line 264

def Region
  @Region
end

#TotalCountObject

Parameters:

  • Region:

    地域

  • InstanceList:

    实例详情

  • TotalCount:

    地域下总数

  • Error:

    错误信息



264
265
266
# File 'lib/v20191205/models.rb', line 264

def TotalCount
  @TotalCount
end

Instance Method Details

#deserialize(params) ⇒ Object



273
274
275
276
277
278
279
280
281
282
283
284
285
# File 'lib/v20191205/models.rb', line 273

def deserialize(params)
  @Region = params['Region']
  unless params['InstanceList'].nil?
    @InstanceList = []
    params['InstanceList'].each do |i|
      cosinstancedetail_tmp = CosInstanceDetail.new
      cosinstancedetail_tmp.deserialize(i)
      @InstanceList << cosinstancedetail_tmp
    end
  end
  @TotalCount = params['TotalCount']
  @Error = params['Error']
end