Class: TencentCloud::Cdwpg::V20201230::ResourceInfo

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

Overview

资源信息

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(specname = nil, count = nil, diskspec = nil, type = nil) ⇒ ResourceInfo

Returns a new instance of ResourceInfo.



921
922
923
924
925
926
# File 'lib/v20201230/models.rb', line 921

def initialize(specname=nil, count=nil, diskspec=nil, type=nil)
  @SpecName = specname
  @Count = count
  @DiskSpec = diskspec
  @Type = type
end

Instance Attribute Details

#CountObject

注意:此字段可能返回 null,表示取不到有效值。 注意:此字段可能返回 null,表示取不到有效值。 注意:此字段可能返回 null,表示取不到有效值。 注意:此字段可能返回 null,表示取不到有效值。

Parameters:

  • SpecName:

    资源名称

  • Count:

    资源数

  • DiskSpec:

    磁盘信息

  • Type:

    资源类型,DATA



919
920
921
# File 'lib/v20201230/models.rb', line 919

def Count
  @Count
end

#DiskSpecObject

注意:此字段可能返回 null,表示取不到有效值。 注意:此字段可能返回 null,表示取不到有效值。 注意:此字段可能返回 null,表示取不到有效值。 注意:此字段可能返回 null,表示取不到有效值。

Parameters:

  • SpecName:

    资源名称

  • Count:

    资源数

  • DiskSpec:

    磁盘信息

  • Type:

    资源类型,DATA



919
920
921
# File 'lib/v20201230/models.rb', line 919

def DiskSpec
  @DiskSpec
end

#SpecNameObject

注意:此字段可能返回 null,表示取不到有效值。 注意:此字段可能返回 null,表示取不到有效值。 注意:此字段可能返回 null,表示取不到有效值。 注意:此字段可能返回 null,表示取不到有效值。

Parameters:

  • SpecName:

    资源名称

  • Count:

    资源数

  • DiskSpec:

    磁盘信息

  • Type:

    资源类型,DATA



919
920
921
# File 'lib/v20201230/models.rb', line 919

def SpecName
  @SpecName
end

#TypeObject

注意:此字段可能返回 null,表示取不到有效值。 注意:此字段可能返回 null,表示取不到有效值。 注意:此字段可能返回 null,表示取不到有效值。 注意:此字段可能返回 null,表示取不到有效值。

Parameters:

  • SpecName:

    资源名称

  • Count:

    资源数

  • DiskSpec:

    磁盘信息

  • Type:

    资源类型,DATA



919
920
921
# File 'lib/v20201230/models.rb', line 919

def Type
  @Type
end

Instance Method Details

#deserialize(params) ⇒ Object



928
929
930
931
932
933
934
935
936
# File 'lib/v20201230/models.rb', line 928

def deserialize(params)
  @SpecName = params['SpecName']
  @Count = params['Count']
  unless params['DiskSpec'].nil?
    @DiskSpec = CBSSpecInfo.new
    @DiskSpec.deserialize(params['DiskSpec'])
  end
  @Type = params['Type']
end