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

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

Overview

用于描述资源

Instance Attribute Summary collapse

  • #Type ⇒ Object
  • MATERIAL:素材。
  • CLASS:分类。
  • .

    Instance Method Summary collapse

    Constructor Details

    #initialize(type = nil, id = nil) ⇒ Resource

    Returns a new instance of Resource.

    
    
    5263
    5264
    5265
    5266
    # File 'lib/v20191029/models.rb', line 5263
    
    def initialize(type=nil, id=nil)
      @Type = type
      @Id = id
    end

    Instance Attribute Details

    #IdObject

  • MATERIAL:素材。
  • CLASS:分类。
  • Parameters:

    • Type:

      类型,取值有:

    • Id:

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

    
    
    5261
    5262
    5263
    # File 'lib/v20191029/models.rb', line 5261
    
    def Id
      @Id
    end

    #TypeObject

  • MATERIAL:素材。
  • CLASS:分类。
  • Parameters:

    • Type:

      类型,取值有:

    • Id:

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

    
    
    5261
    5262
    5263
    # File 'lib/v20191029/models.rb', line 5261
    
    def Type
      @Type
    end

    Instance Method Details

    #deserialize(params) ⇒ Object

    
    
    5268
    5269
    5270
    5271
    # File 'lib/v20191029/models.rb', line 5268
    
    def deserialize(params)
      @Type = params['Type']
      @Id = params['Id']
    end