Class: TencentCloud::Dlc::V20210125::DetachUserPolicyRequest

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

Overview

DetachUserPolicy请求参数结构体

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(userid = nil, policyset = nil, accounttype = nil) ⇒ DetachUserPolicyRequest

Returns a new instance of DetachUserPolicyRequest.



10626
10627
10628
10629
10630
# File 'lib/v20210125/models.rb', line 10626

def initialize(userid=nil, policyset=nil, accounttype=nil)
  @UserId = userid
  @PolicySet = policyset
  @AccountType = accounttype
end

Instance Attribute Details

#AccountTypeObject

Parameters:

  • UserId:

    用户Id,和CAM侧Uin匹配

  • PolicySet:

    解绑的权限集合

  • AccountType:

    用户来源类型TencentAccount(普通腾讯云用户) / EntraAccount(微软用户)



10624
10625
10626
# File 'lib/v20210125/models.rb', line 10624

def AccountType
  @AccountType
end

#PolicySetObject

Parameters:

  • UserId:

    用户Id,和CAM侧Uin匹配

  • PolicySet:

    解绑的权限集合

  • AccountType:

    用户来源类型TencentAccount(普通腾讯云用户) / EntraAccount(微软用户)



10624
10625
10626
# File 'lib/v20210125/models.rb', line 10624

def PolicySet
  @PolicySet
end

#UserIdObject

Parameters:

  • UserId:

    用户Id,和CAM侧Uin匹配

  • PolicySet:

    解绑的权限集合

  • AccountType:

    用户来源类型TencentAccount(普通腾讯云用户) / EntraAccount(微软用户)



10624
10625
10626
# File 'lib/v20210125/models.rb', line 10624

def UserId
  @UserId
end

Instance Method Details

#deserialize(params) ⇒ Object



10632
10633
10634
10635
10636
10637
10638
10639
10640
10641
10642
10643
# File 'lib/v20210125/models.rb', line 10632

def deserialize(params)
  @UserId = params['UserId']
  unless params['PolicySet'].nil?
    @PolicySet = []
    params['PolicySet'].each do |i|
      policy_tmp = Policy.new
      policy_tmp.deserialize(i)
      @PolicySet << policy_tmp
    end
  end
  @AccountType = params['AccountType']
end