Class: TencentCloud::Cme::V20191029::Entity

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

Overview

用于描述资源的归属,归属者为个人或者团队。

Instance Attribute Summary collapse

  • #Type ⇒ Object
  • PERSON:个人。
  • TEAM:团队。
  • .

    Instance Method Summary collapse

    Constructor Details

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

    Returns a new instance of Entity.

    
    
    2124
    2125
    2126
    2127
    # File 'lib/v20191029/models.rb', line 2124
    
    def initialize(type=nil, id=nil)
      @Type = type
      @Id = id
    end

    Instance Attribute Details

    #IdObject

  • PERSON:个人。
  • TEAM:团队。
  • Parameters:

    • 类型,取值有:

    • Id,当 Type=PERSON,取值为用户 Id,当 Type=TEAM,取值为团队 Id。

    
    
    2122
    2123
    2124
    # File 'lib/v20191029/models.rb', line 2122
    
    def Id
      @Id
    end

    #TypeObject

  • PERSON:个人。
  • TEAM:团队。
  • Parameters:

    • 类型,取值有:

    • Id,当 Type=PERSON,取值为用户 Id,当 Type=TEAM,取值为团队 Id。

    
    
    2122
    2123
    2124
    # File 'lib/v20191029/models.rb', line 2122
    
    def Type
      @Type
    end

    Instance Method Details

    #deserialize(params) ⇒ Object

    
    
    2129
    2130
    2131
    2132
    # File 'lib/v20191029/models.rb', line 2129
    
    def deserialize(params)
      @Type = params['Type']
      @Id = params['Id']
    end