Class: TencentCloud::Cme::V20191029::ResourceInfo
- Inherits:
-
TencentCloud::Common::AbstractModel
- Object
- TencentCloud::Common::AbstractModel
- TencentCloud::Cme::V20191029::ResourceInfo
- Defined in:
- lib/v20191029/models.rb
Overview
资源信息,包含资源以及归属信息
Instance Attribute Summary collapse
Instance Method Summary collapse
- #deserialize(params) ⇒ Object
-
#initialize(resource = nil, owner = nil) ⇒ ResourceInfo
constructor
A new instance of ResourceInfo.
Constructor Details
#initialize(resource = nil, owner = nil) ⇒ ResourceInfo
Returns a new instance of ResourceInfo.
5283 5284 5285 5286 |
# File 'lib/v20191029/models.rb', line 5283 def initialize(resource=nil, owner=nil) @Resource = resource @Owner = owner end |
Instance Attribute Details
#Owner ⇒ Object
5281 5282 5283 |
# File 'lib/v20191029/models.rb', line 5281 def Owner @Owner end |
#Resource ⇒ Object
5281 5282 5283 |
# File 'lib/v20191029/models.rb', line 5281 def Resource @Resource end |
Instance Method Details
#deserialize(params) ⇒ Object
5288 5289 5290 5291 5292 5293 5294 5295 5296 5297 |
# File 'lib/v20191029/models.rb', line 5288 def deserialize(params) unless params['Resource'].nil? @Resource = Resource.new @Resource.deserialize(params['Resource']) end unless params['Owner'].nil? @Owner = Entity.new @Owner.deserialize(params['Owner']) end end |