Class: TencentCloud::Apm::V20210622::Resource

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

Overview

资源层信息

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(type = nil, tkemeta = nil, cvmmeta = nil) ⇒ Resource

Returns a new instance of Resource.



3850
3851
3852
3853
3854
# File 'lib/v20210622/models.rb', line 3850

def initialize(type=nil, tkemeta=nil, cvmmeta=nil)
  @Type = type
  @TKEMeta = tkemeta
  @CVMMeta = cvmmeta
end

Instance Attribute Details

#CVMMetaObject

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

Parameters:

  • Type:

    资源类型

  • TKEMeta:

    tke资源层信息

  • CVMMeta:

    cvm资源信息



3848
3849
3850
# File 'lib/v20210622/models.rb', line 3848

def CVMMeta
  @CVMMeta
end

#TKEMetaObject

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

Parameters:

  • Type:

    资源类型

  • TKEMeta:

    tke资源层信息

  • CVMMeta:

    cvm资源信息



3848
3849
3850
# File 'lib/v20210622/models.rb', line 3848

def TKEMeta
  @TKEMeta
end

#TypeObject

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

Parameters:

  • Type:

    资源类型

  • TKEMeta:

    tke资源层信息

  • CVMMeta:

    cvm资源信息



3848
3849
3850
# File 'lib/v20210622/models.rb', line 3848

def Type
  @Type
end

Instance Method Details

#deserialize(params) ⇒ Object



3856
3857
3858
3859
3860
3861
3862
3863
3864
3865
3866
3867
3868
3869
3870
3871
3872
3873
3874
# File 'lib/v20210622/models.rb', line 3856

def deserialize(params)
  @Type = params['Type']
  unless params['TKEMeta'].nil?
    @TKEMeta = []
    params['TKEMeta'].each do |i|
      tkemeta_tmp = TkeMeta.new
      tkemeta_tmp.deserialize(i)
      @TKEMeta << tkemeta_tmp
    end
  end
  unless params['CVMMeta'].nil?
    @CVMMeta = []
    params['CVMMeta'].each do |i|
      cvmmeta_tmp = CVMMeta.new
      cvmmeta_tmp.deserialize(i)
      @CVMMeta << cvmmeta_tmp
    end
  end
end