Class: TencentCloud::Tdmq::V20200217::CreateClusterRequest
- Inherits:
-
Common::AbstractModel
- Object
- Common::AbstractModel
- TencentCloud::Tdmq::V20200217::CreateClusterRequest
- Defined in:
- lib/v20200217/models.rb
Overview
CreateCluster请求参数结构体
Instance Attribute Summary collapse
- #BindClusterId ⇒ Object
- #ClusterName ⇒ Object
- #PublicAccessEnabled ⇒ Object
- #Remark ⇒ Object
- #Tags ⇒ Object
Instance Method Summary collapse
- #deserialize(params) ⇒ Object
-
#initialize(clustername = nil, bindclusterid = nil, remark = nil, tags = nil, publicaccessenabled = nil) ⇒ CreateClusterRequest
constructor
A new instance of CreateClusterRequest.
Constructor Details
#initialize(clustername = nil, bindclusterid = nil, remark = nil, tags = nil, publicaccessenabled = nil) ⇒ CreateClusterRequest
Returns a new instance of CreateClusterRequest.
1133 1134 1135 1136 1137 1138 1139 |
# File 'lib/v20200217/models.rb', line 1133 def initialize(clustername=nil, bindclusterid=nil, remark=nil, =nil, publicaccessenabled=nil) @ClusterName = clustername @BindClusterId = bindclusterid @Remark = remark @Tags = @PublicAccessEnabled = publicaccessenabled end |
Instance Attribute Details
#BindClusterId ⇒ Object
1131 1132 1133 |
# File 'lib/v20200217/models.rb', line 1131 def BindClusterId @BindClusterId end |
#ClusterName ⇒ Object
1131 1132 1133 |
# File 'lib/v20200217/models.rb', line 1131 def ClusterName @ClusterName end |
#PublicAccessEnabled ⇒ Object
1131 1132 1133 |
# File 'lib/v20200217/models.rb', line 1131 def PublicAccessEnabled @PublicAccessEnabled end |
#Remark ⇒ Object
1131 1132 1133 |
# File 'lib/v20200217/models.rb', line 1131 def Remark @Remark end |
#Tags ⇒ Object
1131 1132 1133 |
# File 'lib/v20200217/models.rb', line 1131 def Tags @Tags end |
Instance Method Details
#deserialize(params) ⇒ Object
1141 1142 1143 1144 1145 1146 1147 1148 1149 1150 1151 1152 1153 1154 |
# File 'lib/v20200217/models.rb', line 1141 def deserialize(params) @ClusterName = params['ClusterName'] @BindClusterId = params['BindClusterId'] @Remark = params['Remark'] unless params['Tags'].nil? @Tags = [] params['Tags'].each do |i| tag_tmp = Tag.new tag_tmp.deserialize(i) @Tags << tag_tmp end end @PublicAccessEnabled = params['PublicAccessEnabled'] end |