Class: TencentCloud::Tdmq::V20200217::CreateRocketMQRoleRequest

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

Overview

CreateRocketMQRole请求参数结构体

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

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

Returns a new instance of CreateRocketMQRoleRequest.



2115
2116
2117
2118
2119
# File 'lib/v20200217/models.rb', line 2115

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

Instance Attribute Details

#ClusterIdObject

Parameters:

  • RoleName:

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

  • ClusterId:

    必填字段,集群Id

  • Remark:

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



2113
2114
2115
# File 'lib/v20200217/models.rb', line 2113

def ClusterId
  @ClusterId
end

#RemarkObject

Parameters:

  • RoleName:

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

  • ClusterId:

    必填字段,集群Id

  • Remark:

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



2113
2114
2115
# File 'lib/v20200217/models.rb', line 2113

def Remark
  @Remark
end

#RoleNameObject

Parameters:

  • RoleName:

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

  • ClusterId:

    必填字段,集群Id

  • Remark:

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



2113
2114
2115
# File 'lib/v20200217/models.rb', line 2113

def RoleName
  @RoleName
end

Instance Method Details

#deserialize(params) ⇒ Object



2121
2122
2123
2124
2125
# File 'lib/v20200217/models.rb', line 2121

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