Class: TencentCloud::Tdmq::V20200217::ModifyRoleRequest

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

Overview

ModifyRole请求参数结构体

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#ClusterIdObject

Parameters:

  • RoleName:

    角色名称,不支持中字以及除了短线和下划线外的特殊字符且长度必须大于0且小等于32。

  • ClusterId:

    必填字段,集群Id

  • Remark:

    备注说明,长度必须大等于0且小等于128。

  • EnvironmentRoleSets:

    批量绑定名字空间信息

  • UnbindAllEnvironment:

    全部解绑名字空间,设置为 true



9480
9481
9482
# File 'lib/v20200217/models.rb', line 9480

def ClusterId
  @ClusterId
end

#EnvironmentRoleSetsObject

Parameters:

  • RoleName:

    角色名称,不支持中字以及除了短线和下划线外的特殊字符且长度必须大于0且小等于32。

  • ClusterId:

    必填字段,集群Id

  • Remark:

    备注说明,长度必须大等于0且小等于128。

  • EnvironmentRoleSets:

    批量绑定名字空间信息

  • UnbindAllEnvironment:

    全部解绑名字空间,设置为 true



9480
9481
9482
# File 'lib/v20200217/models.rb', line 9480

def EnvironmentRoleSets
  @EnvironmentRoleSets
end

#RemarkObject

Parameters:

  • RoleName:

    角色名称,不支持中字以及除了短线和下划线外的特殊字符且长度必须大于0且小等于32。

  • ClusterId:

    必填字段,集群Id

  • Remark:

    备注说明,长度必须大等于0且小等于128。

  • EnvironmentRoleSets:

    批量绑定名字空间信息

  • UnbindAllEnvironment:

    全部解绑名字空间,设置为 true



9480
9481
9482
# File 'lib/v20200217/models.rb', line 9480

def Remark
  @Remark
end

#RoleNameObject

Parameters:

  • RoleName:

    角色名称,不支持中字以及除了短线和下划线外的特殊字符且长度必须大于0且小等于32。

  • ClusterId:

    必填字段,集群Id

  • Remark:

    备注说明,长度必须大等于0且小等于128。

  • EnvironmentRoleSets:

    批量绑定名字空间信息

  • UnbindAllEnvironment:

    全部解绑名字空间,设置为 true



9480
9481
9482
# File 'lib/v20200217/models.rb', line 9480

def RoleName
  @RoleName
end

#UnbindAllEnvironmentObject

Parameters:

  • RoleName:

    角色名称,不支持中字以及除了短线和下划线外的特殊字符且长度必须大于0且小等于32。

  • ClusterId:

    必填字段,集群Id

  • Remark:

    备注说明,长度必须大等于0且小等于128。

  • EnvironmentRoleSets:

    批量绑定名字空间信息

  • UnbindAllEnvironment:

    全部解绑名字空间,设置为 true



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