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