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.



1017
1018
1019
1020
# File 'lib/v20190904/models.rb', line 1017

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

Instance Attribute Details

#IdObject

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

Parameters:

  • 资源ID

  • 资源名字



1015
1016
1017
# File 'lib/v20190904/models.rb', line 1015

def Id
  @Id
end

#NameObject

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

Parameters:

  • 资源ID

  • 资源名字



1015
1016
1017
# File 'lib/v20190904/models.rb', line 1015

def Name
  @Name
end

Instance Method Details

#deserialize(params) ⇒ Object



1022
1023
1024
1025
# File 'lib/v20190904/models.rb', line 1022

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