Class: TencentCloud::Cfw::V20190904::CommonIdName

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

Overview

ID NAME 组合

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(id = nil, name = nil) ⇒ CommonIdName

Returns a new instance of CommonIdName.



770
771
772
773
# File 'lib/v20190904/models.rb', line 770

def initialize(id=nil, name=nil)
  @Id = id
  @Name = name
end

Instance Attribute Details

#IdObject

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

Parameters:

  • Id:

    资源ID

  • Name:

    资源名字



768
769
770
# File 'lib/v20190904/models.rb', line 768

def Id
  @Id
end

#NameObject

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

Parameters:

  • Id:

    资源ID

  • Name:

    资源名字



768
769
770
# File 'lib/v20190904/models.rb', line 768

def Name
  @Name
end

Instance Method Details

#deserialize(params) ⇒ Object



775
776
777
778
# File 'lib/v20190904/models.rb', line 775

def deserialize(params)
  @Id = params['Id']
  @Name = params['Name']
end