Class: TencentCloud::Mongodb::V20190725::SetAccountUserPrivilegeRequest
- Inherits:
-
Common::AbstractModel
- Object
- Common::AbstractModel
- TencentCloud::Mongodb::V20190725::SetAccountUserPrivilegeRequest
- Defined in:
- lib/v20190725/models.rb
Overview
SetAccountUserPrivilege请求参数结构体
Instance Attribute Summary collapse
Instance Method Summary collapse
- #deserialize(params) ⇒ Object
-
#initialize(instanceid = nil, username = nil, authrole = nil) ⇒ SetAccountUserPrivilegeRequest
constructor
A new instance of SetAccountUserPrivilegeRequest.
Constructor Details
#initialize(instanceid = nil, username = nil, authrole = nil) ⇒ SetAccountUserPrivilegeRequest
Returns a new instance of SetAccountUserPrivilegeRequest.
5732 5733 5734 5735 5736 |
# File 'lib/v20190725/models.rb', line 5732 def initialize(instanceid=nil, username=nil, authrole=nil) @InstanceId = instanceid @UserName = username @AuthRole = authrole end |
Instance Attribute Details
#AuthRole ⇒ Object
5730 5731 5732 |
# File 'lib/v20190725/models.rb', line 5730 def AuthRole @AuthRole end |
#InstanceId ⇒ Object
5730 5731 5732 |
# File 'lib/v20190725/models.rb', line 5730 def InstanceId @InstanceId end |
#UserName ⇒ Object
5730 5731 5732 |
# File 'lib/v20190725/models.rb', line 5730 def UserName @UserName end |
Instance Method Details
#deserialize(params) ⇒ Object
5738 5739 5740 5741 5742 5743 5744 5745 5746 5747 5748 5749 |
# File 'lib/v20190725/models.rb', line 5738 def deserialize(params) @InstanceId = params['InstanceId'] @UserName = params['UserName'] unless params['AuthRole'].nil? @AuthRole = [] params['AuthRole'].each do |i| auth_tmp = Auth.new auth_tmp.deserialize(i) @AuthRole << auth_tmp end end end |