Class: TencentCloud::Tdmq::V20200217::CreateRoleRequest

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

Overview

CreateRole请求参数结构体

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(rolename = nil, remark = nil, clusterid = nil) ⇒ CreateRoleRequest

Returns a new instance of CreateRoleRequest.



2317
2318
2319
2320
2321
# File 'lib/v20200217/models.rb', line 2317

def initialize(rolename=nil, remark=nil, clusterid=nil)
  @RoleName = rolename
  @Remark = remark
  @ClusterId = clusterid
end

Instance Attribute Details

#ClusterIdObject

Parameters:

  • RoleName:

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

  • Remark:

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

  • ClusterId:

    必填字段,集群Id



2315
2316
2317
# File 'lib/v20200217/models.rb', line 2315

def ClusterId
  @ClusterId
end

#RemarkObject

Parameters:

  • RoleName:

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

  • Remark:

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

  • ClusterId:

    必填字段,集群Id



2315
2316
2317
# File 'lib/v20200217/models.rb', line 2315

def Remark
  @Remark
end

#RoleNameObject

Parameters:

  • RoleName:

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

  • Remark:

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

  • ClusterId:

    必填字段,集群Id



2315
2316
2317
# File 'lib/v20200217/models.rb', line 2315

def RoleName
  @RoleName
end

Instance Method Details

#deserialize(params) ⇒ Object



2323
2324
2325
2326
2327
# File 'lib/v20200217/models.rb', line 2323

def deserialize(params)
  @RoleName = params['RoleName']
  @Remark = params['Remark']
  @ClusterId = params['ClusterId']
end