Class: TencentCloud::Emr::V20190103::JobFlowResource
- Inherits:
-
Common::AbstractModel
- Object
- Common::AbstractModel
- TencentCloud::Emr::V20190103::JobFlowResource
- Defined in:
- lib/v20190103/models.rb
Overview
机器资源描述。
Instance Attribute Summary collapse
Instance Method Summary collapse
- #deserialize(params) ⇒ Object
-
#initialize(spec = nil, instancetype = nil, tags = nil, diskgroups = nil) ⇒ JobFlowResource
constructor
A new instance of JobFlowResource.
Constructor Details
#initialize(spec = nil, instancetype = nil, tags = nil, diskgroups = nil) ⇒ JobFlowResource
Returns a new instance of JobFlowResource.
8127 8128 8129 8130 8131 8132 |
# File 'lib/v20190103/models.rb', line 8127 def initialize(spec=nil, instancetype=nil, =nil, diskgroups=nil) @Spec = spec @InstanceType = instancetype @Tags = @DiskGroups = diskgroups end |
Instance Attribute Details
#DiskGroups ⇒ Object
8125 8126 8127 |
# File 'lib/v20190103/models.rb', line 8125 def DiskGroups @DiskGroups end |
#InstanceType ⇒ Object
8125 8126 8127 |
# File 'lib/v20190103/models.rb', line 8125 def InstanceType @InstanceType end |
#Spec ⇒ Object
8125 8126 8127 |
# File 'lib/v20190103/models.rb', line 8125 def Spec @Spec end |
#Tags ⇒ Object
8125 8126 8127 |
# File 'lib/v20190103/models.rb', line 8125 def Tags @Tags end |
Instance Method Details
#deserialize(params) ⇒ Object
8134 8135 8136 8137 8138 8139 8140 8141 8142 8143 8144 8145 8146 8147 8148 8149 8150 8151 8152 8153 |
# File 'lib/v20190103/models.rb', line 8134 def deserialize(params) @Spec = params['Spec'] @InstanceType = params['InstanceType'] unless params['Tags'].nil? @Tags = [] params['Tags'].each do |i| tag_tmp = Tag.new tag_tmp.deserialize(i) @Tags << tag_tmp end end unless params['DiskGroups'].nil? @DiskGroups = [] params['DiskGroups'].each do |i| diskgroup_tmp = DiskGroup.new diskgroup_tmp.deserialize(i) @DiskGroups << diskgroup_tmp end end end |