Class: TencentCloud::Cme::V20191029::Resource
- Inherits:
-
TencentCloud::Common::AbstractModel
- Object
- TencentCloud::Common::AbstractModel
- TencentCloud::Cme::V20191029::Resource
- Defined in:
- lib/v20191029/models.rb
Overview
用于描述资源
Instance Attribute Summary collapse
-
#Id ⇒ Object
<li>MATERIAL:素材。</li> <li>CLASS:分类。</li>.
-
#Type ⇒ Object
<li>MATERIAL:素材。</li> <li>CLASS:分类。</li>.
Instance Method Summary collapse
- #deserialize(params) ⇒ Object
-
#initialize(type = nil, id = nil) ⇒ Resource
constructor
A new instance of Resource.
Constructor Details
#initialize(type = nil, id = nil) ⇒ Resource
Returns a new instance of Resource.
5255 5256 5257 5258 |
# File 'lib/v20191029/models.rb', line 5255 def initialize(type=nil, id=nil) @Type = type @Id = id end |
Instance Attribute Details
#Id ⇒ Object
<li>MATERIAL:素材。</li> <li>CLASS:分类。</li>
5253 5254 5255 |
# File 'lib/v20191029/models.rb', line 5253 def Id @Id end |
#Type ⇒ Object
<li>MATERIAL:素材。</li> <li>CLASS:分类。</li>
5253 5254 5255 |
# File 'lib/v20191029/models.rb', line 5253 def Type @Type end |
Instance Method Details
#deserialize(params) ⇒ Object
5260 5261 5262 5263 |
# File 'lib/v20191029/models.rb', line 5260 def deserialize(params) @Type = params['Type'] @Id = params['Id'] end |