Class: TencentCloud::Chc::V20230418::Idc
- Inherits:
-
TencentCloud::Common::AbstractModel
- Object
- TencentCloud::Common::AbstractModel
- TencentCloud::Chc::V20230418::Idc
- Defined in:
- lib/v20230418/models.rb
Overview
机房信息
Instance Attribute Summary collapse
Instance Method Summary collapse
- #deserialize(params) ⇒ Object
-
#initialize(idcname = nil, idcid = nil, idcunitset = nil) ⇒ Idc
constructor
A new instance of Idc.
Constructor Details
#initialize(idcname = nil, idcid = nil, idcunitset = nil) ⇒ Idc
Returns a new instance of Idc.
2951 2952 2953 2954 2955 |
# File 'lib/v20230418/models.rb', line 2951 def initialize(idcname=nil, idcid=nil, idcunitset=nil) @IdcName = idcname @IdcId = idcid @IdcUnitSet = idcunitset end |
Instance Attribute Details
#IdcId ⇒ Object
2949 2950 2951 |
# File 'lib/v20230418/models.rb', line 2949 def IdcId @IdcId end |
#IdcName ⇒ Object
2949 2950 2951 |
# File 'lib/v20230418/models.rb', line 2949 def IdcName @IdcName end |
#IdcUnitSet ⇒ Object
2949 2950 2951 |
# File 'lib/v20230418/models.rb', line 2949 def IdcUnitSet @IdcUnitSet end |
Instance Method Details
#deserialize(params) ⇒ Object
2957 2958 2959 2960 2961 2962 2963 2964 2965 2966 2967 2968 |
# File 'lib/v20230418/models.rb', line 2957 def deserialize(params) @IdcName = params['IdcName'] @IdcId = params['IdcId'] unless params['IdcUnitSet'].nil? @IdcUnitSet = [] params['IdcUnitSet'].each do |i| idcunit_tmp = IdcUnit.new idcunit_tmp.deserialize(i) @IdcUnitSet << idcunit_tmp end end end |