Class: TencentCloud::Cam::V20190116::AttachEntityOfPolicy

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

Overview

策略关联的实体信息

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(id = nil, name = nil, uin = nil, relatedtype = nil, attachmenttime = nil) ⇒ AttachEntityOfPolicy

Returns a new instance of AttachEntityOfPolicy.



224
225
226
227
228
229
230
# File 'lib/v20190116/models.rb', line 224

def initialize(id=nil, name=nil, uin=nil, relatedtype=nil, attachmenttime=nil)
  @Id = id
  @Name = name
  @Uin = uin
  @RelatedType = relatedtype
  @AttachmentTime = attachmenttime
end

Instance Attribute Details

#AttachmentTimeObject

Parameters:

  • Id:

    实体ID

  • Name:

    实体名称

  • Uin:

    实体Uin

  • RelatedType:

    关联类型。1 用户关联 ; 2 用户组关联 3 角色关联

  • AttachmentTime:

    策略关联时间



222
223
224
# File 'lib/v20190116/models.rb', line 222

def AttachmentTime
  @AttachmentTime
end

#IdObject

Parameters:

  • Id:

    实体ID

  • Name:

    实体名称

  • Uin:

    实体Uin

  • RelatedType:

    关联类型。1 用户关联 ; 2 用户组关联 3 角色关联

  • AttachmentTime:

    策略关联时间



222
223
224
# File 'lib/v20190116/models.rb', line 222

def Id
  @Id
end

#NameObject

Parameters:

  • Id:

    实体ID

  • Name:

    实体名称

  • Uin:

    实体Uin

  • RelatedType:

    关联类型。1 用户关联 ; 2 用户组关联 3 角色关联

  • AttachmentTime:

    策略关联时间



222
223
224
# File 'lib/v20190116/models.rb', line 222

def Name
  @Name
end

#RelatedTypeObject

Parameters:

  • Id:

    实体ID

  • Name:

    实体名称

  • Uin:

    实体Uin

  • RelatedType:

    关联类型。1 用户关联 ; 2 用户组关联 3 角色关联

  • AttachmentTime:

    策略关联时间



222
223
224
# File 'lib/v20190116/models.rb', line 222

def RelatedType
  @RelatedType
end

#UinObject

Parameters:

  • Id:

    实体ID

  • Name:

    实体名称

  • Uin:

    实体Uin

  • RelatedType:

    关联类型。1 用户关联 ; 2 用户组关联 3 角色关联

  • AttachmentTime:

    策略关联时间



222
223
224
# File 'lib/v20190116/models.rb', line 222

def Uin
  @Uin
end

Instance Method Details

#deserialize(params) ⇒ Object



232
233
234
235
236
237
238
# File 'lib/v20190116/models.rb', line 232

def deserialize(params)
  @Id = params['Id']
  @Name = params['Name']
  @Uin = params['Uin']
  @RelatedType = params['RelatedType']
  @AttachmentTime = params['AttachmentTime']
end