Class: TencentCloud::Dlc::V20210125::AttachUserPolicyRequest
- Inherits:
-
Common::AbstractModel
- Object
- Common::AbstractModel
- TencentCloud::Dlc::V20210125::AttachUserPolicyRequest
- Defined in:
- lib/v20210125/models.rb
Overview
AttachUserPolicy请求参数结构体
Instance Attribute Summary collapse
Instance Method Summary collapse
- #deserialize(params) ⇒ Object
-
#initialize(userid = nil, policyset = nil, accounttype = nil) ⇒ AttachUserPolicyRequest
constructor
A new instance of AttachUserPolicyRequest.
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
#AccountType ⇒ Object
775 776 777 |
# File 'lib/v20210125/models.rb', line 775 def AccountType @AccountType end |
#PolicySet ⇒ Object
775 776 777 |
# File 'lib/v20210125/models.rb', line 775 def PolicySet @PolicySet end |
#UserId ⇒ Object
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 |