Class: TencentCloud::Tdmq::V20200217::ModifyRoleRequest
- Inherits:
-
Common::AbstractModel
- Object
- Common::AbstractModel
- TencentCloud::Tdmq::V20200217::ModifyRoleRequest
- Defined in:
- lib/v20200217/models.rb
Overview
ModifyRole请求参数结构体
Instance Attribute Summary collapse
- #ClusterId ⇒ Object
- #EnvironmentRoleSets ⇒ Object
- #Remark ⇒ Object
- #RoleName ⇒ Object
- #UnbindAllEnvironment ⇒ Object
Instance Method Summary collapse
- #deserialize(params) ⇒ Object
-
#initialize(rolename = nil, clusterid = nil, remark = nil, environmentrolesets = nil, unbindallenvironment = nil) ⇒ ModifyRoleRequest
constructor
A new instance of ModifyRoleRequest.
Constructor Details
#initialize(rolename = nil, clusterid = nil, remark = nil, environmentrolesets = nil, unbindallenvironment = nil) ⇒ ModifyRoleRequest
Returns a new instance of ModifyRoleRequest.
9482 9483 9484 9485 9486 9487 9488 |
# File 'lib/v20200217/models.rb', line 9482 def initialize(rolename=nil, clusterid=nil, remark=nil, environmentrolesets=nil, unbindallenvironment=nil) @RoleName = rolename @ClusterId = clusterid @Remark = remark @EnvironmentRoleSets = environmentrolesets @UnbindAllEnvironment = unbindallenvironment end |
Instance Attribute Details
#ClusterId ⇒ Object
9480 9481 9482 |
# File 'lib/v20200217/models.rb', line 9480 def ClusterId @ClusterId end |
#EnvironmentRoleSets ⇒ Object
9480 9481 9482 |
# File 'lib/v20200217/models.rb', line 9480 def EnvironmentRoleSets @EnvironmentRoleSets end |
#Remark ⇒ Object
9480 9481 9482 |
# File 'lib/v20200217/models.rb', line 9480 def Remark @Remark end |
#RoleName ⇒ Object
9480 9481 9482 |
# File 'lib/v20200217/models.rb', line 9480 def RoleName @RoleName end |
#UnbindAllEnvironment ⇒ Object
9480 9481 9482 |
# File 'lib/v20200217/models.rb', line 9480 def UnbindAllEnvironment @UnbindAllEnvironment end |
Instance Method Details
#deserialize(params) ⇒ Object
9490 9491 9492 9493 9494 9495 9496 9497 9498 9499 9500 9501 9502 9503 |
# File 'lib/v20200217/models.rb', line 9490 def deserialize(params) @RoleName = params['RoleName'] @ClusterId = params['ClusterId'] @Remark = params['Remark'] unless params['EnvironmentRoleSets'].nil? @EnvironmentRoleSets = [] params['EnvironmentRoleSets'].each do |i| environmentroleset_tmp = EnvironmentRoleSet.new environmentroleset_tmp.deserialize(i) @EnvironmentRoleSets << environmentroleset_tmp end end @UnbindAllEnvironment = params['UnbindAllEnvironment'] end |