Class: TencentCloud::Dlc::V20210125::AttachUserPolicyRequest

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

Overview

AttachUserPolicy请求参数结构体

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

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

Returns a new instance of AttachUserPolicyRequest.



777
778
779
780
781
# File 'lib/v20210125/models.rb', line 777

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

Instance Attribute Details

#AccountTypeObject

Parameters:

  • UserId:

    用户Id,和子用户uin相同,需要先使用CreateUser接口创建用户。可以使用DescribeUsers接口查看。

  • PolicySet:

    鉴权策略集合

  • AccountType:

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



775
776
777
# File 'lib/v20210125/models.rb', line 775

def AccountType
  @AccountType
end

#PolicySetObject

Parameters:

  • UserId:

    用户Id,和子用户uin相同,需要先使用CreateUser接口创建用户。可以使用DescribeUsers接口查看。

  • PolicySet:

    鉴权策略集合

  • AccountType:

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



775
776
777
# File 'lib/v20210125/models.rb', line 775

def PolicySet
  @PolicySet
end

#UserIdObject

Parameters:

  • UserId:

    用户Id,和子用户uin相同,需要先使用CreateUser接口创建用户。可以使用DescribeUsers接口查看。

  • PolicySet:

    鉴权策略集合

  • AccountType:

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



775
776
777
# File 'lib/v20210125/models.rb', line 775

def UserId
  @UserId
end

Instance Method Details

#deserialize(params) ⇒ Object



783
784
785
786
787
788
789
790
791
792
793
794
# File 'lib/v20210125/models.rb', line 783

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