Class: TencentCloud::Dlc::V20210125::ResourceInfo
- Inherits:
-
Common::AbstractModel
- Object
- Common::AbstractModel
- TencentCloud::Dlc::V20210125::ResourceInfo
- Defined in:
- lib/v20210125/models.rb
Overview
数据优化资源信息结构
Instance Attribute Summary collapse
-
#AttributionType ⇒ Object
注意:此字段可能返回 null,表示取不到有效值。.
-
#Favor ⇒ Object
注意:此字段可能返回 null,表示取不到有效值。.
-
#Instance ⇒ Object
注意:此字段可能返回 null,表示取不到有效值。.
-
#Name ⇒ Object
注意:此字段可能返回 null,表示取不到有效值。.
-
#ResourceConf ⇒ Object
注意:此字段可能返回 null,表示取不到有效值。.
-
#ResourceGroupName ⇒ Object
注意:此字段可能返回 null,表示取不到有效值。.
-
#ResourceType ⇒ Object
注意:此字段可能返回 null,表示取不到有效值。.
-
#Status ⇒ Object
注意:此字段可能返回 null,表示取不到有效值。.
Instance Method Summary collapse
- #deserialize(params) ⇒ Object
-
#initialize(attributiontype = nil, resourcetype = nil, name = nil, instance = nil, favor = nil, status = nil, resourcegroupname = nil, resourceconf = nil) ⇒ ResourceInfo
constructor
A new instance of ResourceInfo.
Constructor Details
#initialize(attributiontype = nil, resourcetype = nil, name = nil, instance = nil, favor = nil, status = nil, resourcegroupname = nil, resourceconf = nil) ⇒ ResourceInfo
Returns a new instance of ResourceInfo.
13824 13825 13826 13827 13828 13829 13830 13831 13832 13833 |
# File 'lib/v20210125/models.rb', line 13824 def initialize(attributiontype=nil, resourcetype=nil, name=nil, instance=nil, favor=nil, status=nil, resourcegroupname=nil, resourceconf=nil) @AttributionType = attributiontype @ResourceType = resourcetype @Name = name @Instance = instance @Favor = favor @Status = status @ResourceGroupName = resourcegroupname @ResourceConf = resourceconf end |
Instance Attribute Details
#AttributionType ⇒ Object
注意:此字段可能返回 null,表示取不到有效值。
13822 13823 13824 |
# File 'lib/v20210125/models.rb', line 13822 def AttributionType @AttributionType end |
#Favor ⇒ Object
注意:此字段可能返回 null,表示取不到有效值。
13822 13823 13824 |
# File 'lib/v20210125/models.rb', line 13822 def Favor @Favor end |
#Instance ⇒ Object
注意:此字段可能返回 null,表示取不到有效值。
13822 13823 13824 |
# File 'lib/v20210125/models.rb', line 13822 def Instance @Instance end |
#Name ⇒ Object
注意:此字段可能返回 null,表示取不到有效值。
13822 13823 13824 |
# File 'lib/v20210125/models.rb', line 13822 def Name @Name end |
#ResourceConf ⇒ Object
注意:此字段可能返回 null,表示取不到有效值。
13822 13823 13824 |
# File 'lib/v20210125/models.rb', line 13822 def ResourceConf @ResourceConf end |
#ResourceGroupName ⇒ Object
注意:此字段可能返回 null,表示取不到有效值。
13822 13823 13824 |
# File 'lib/v20210125/models.rb', line 13822 def ResourceGroupName @ResourceGroupName end |
#ResourceType ⇒ Object
注意:此字段可能返回 null,表示取不到有效值。
13822 13823 13824 |
# File 'lib/v20210125/models.rb', line 13822 def ResourceType @ResourceType end |
#Status ⇒ Object
注意:此字段可能返回 null,表示取不到有效值。
13822 13823 13824 |
# File 'lib/v20210125/models.rb', line 13822 def Status @Status end |
Instance Method Details
#deserialize(params) ⇒ Object
13835 13836 13837 13838 13839 13840 13841 13842 13843 13844 13845 13846 13847 13848 13849 13850 13851 13852 13853 13854 |
# File 'lib/v20210125/models.rb', line 13835 def deserialize(params) @AttributionType = params['AttributionType'] @ResourceType = params['ResourceType'] @Name = params['Name'] @Instance = params['Instance'] unless params['Favor'].nil? @Favor = [] params['Favor'].each do |i| favorinfo_tmp = FavorInfo.new favorinfo_tmp.deserialize(i) @Favor << favorinfo_tmp end end @Status = params['Status'] @ResourceGroupName = params['ResourceGroupName'] unless params['ResourceConf'].nil? @ResourceConf = ResourceConf.new @ResourceConf.deserialize(params['ResourceConf']) end end |