Class: TencentCloud::Cme::V20191029::Resource

Inherits:
TencentCloud::Common::AbstractModel
  • Object
show all
Defined in:
lib/v20191029/models.rb

Overview

用于描述资源

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#IdObject

<li>MATERIAL:素材。</li> <li>CLASS:分类。</li>

Parameters:

  • Type:

    类型,取值有:

  • Id:

    资源 Id,当 Type 为 MATERIAL 时,取值为素材 Id;当 Type 为 CLASS 时,取值为分类路径 ClassPath。



5253
5254
5255
# File 'lib/v20191029/models.rb', line 5253

def Id
  @Id
end

#TypeObject

<li>MATERIAL:素材。</li> <li>CLASS:分类。</li>

Parameters:

  • Type:

    类型,取值有:

  • Id:

    资源 Id,当 Type 为 MATERIAL 时,取值为素材 Id;当 Type 为 CLASS 时,取值为分类路径 ClassPath。



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