Class: TencentCloud::Bm::V20180423::DiskInfo

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

Overview

自定义机型磁盘的描述

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(disktypeid = nil, size = nil, diskdescription = nil) ⇒ DiskInfo

Returns a new instance of DiskInfo.



2792
2793
2794
2795
2796
# File 'lib/v20180423/models.rb', line 2792

def initialize(disktypeid=nil, size=nil, diskdescription=nil)
  @DiskTypeId = disktypeid
  @Size = size
  @DiskDescription = diskdescription
end

Instance Attribute Details

#DiskDescriptionObject

Parameters:

  • DiskTypeId:

    磁盘ID

  • Size:

    磁盘的容量,单位为G

  • DiskDescription:

    磁盘信息描述



2790
2791
2792
# File 'lib/v20180423/models.rb', line 2790

def DiskDescription
  @DiskDescription
end

#DiskTypeIdObject

Parameters:

  • DiskTypeId:

    磁盘ID

  • Size:

    磁盘的容量,单位为G

  • DiskDescription:

    磁盘信息描述



2790
2791
2792
# File 'lib/v20180423/models.rb', line 2790

def DiskTypeId
  @DiskTypeId
end

#SizeObject

Parameters:

  • DiskTypeId:

    磁盘ID

  • Size:

    磁盘的容量,单位为G

  • DiskDescription:

    磁盘信息描述



2790
2791
2792
# File 'lib/v20180423/models.rb', line 2790

def Size
  @Size
end

Instance Method Details

#deserialize(params) ⇒ Object



2798
2799
2800
2801
2802
# File 'lib/v20180423/models.rb', line 2798

def deserialize(params)
  @DiskTypeId = params['DiskTypeId']
  @Size = params['Size']
  @DiskDescription = params['DiskDescription']
end