Class: TencentCloud::Tdmq::V20200217::CreateRocketMQVipInstanceRequest
- Inherits:
-
Common::AbstractModel
- Object
- Common::AbstractModel
- TencentCloud::Tdmq::V20200217::CreateRocketMQVipInstanceRequest
- Defined in:
- lib/v20200217/models.rb
Overview
CreateRocketMQVipInstance请求参数结构体
Instance Attribute Summary collapse
- #Bandwidth ⇒ Object
- #EnablePublic ⇒ Object
- #IpRules ⇒ Object
- #Name ⇒ Object
- #NodeCount ⇒ Object
- #Spec ⇒ Object
- #StorageSize ⇒ Object
- #SupportsMigrateToCloud ⇒ Object
- #Tags ⇒ Object
- #TimeSpan ⇒ Object
- #VpcInfo ⇒ Object
- #ZoneIds ⇒ Object
Instance Method Summary collapse
- #deserialize(params) ⇒ Object
-
#initialize(name = nil, spec = nil, nodecount = nil, storagesize = nil, zoneids = nil, vpcinfo = nil, timespan = nil, supportsmigratetocloud = nil, enablepublic = nil, bandwidth = nil, iprules = nil, tags = nil) ⇒ CreateRocketMQVipInstanceRequest
constructor
A new instance of CreateRocketMQVipInstanceRequest.
Constructor Details
#initialize(name = nil, spec = nil, nodecount = nil, storagesize = nil, zoneids = nil, vpcinfo = nil, timespan = nil, supportsmigratetocloud = nil, enablepublic = nil, bandwidth = nil, iprules = nil, tags = nil) ⇒ CreateRocketMQVipInstanceRequest
Returns a new instance of CreateRocketMQVipInstanceRequest.
2238 2239 2240 2241 2242 2243 2244 2245 2246 2247 2248 2249 2250 2251 |
# File 'lib/v20200217/models.rb', line 2238 def initialize(name=nil, spec=nil, nodecount=nil, storagesize=nil, zoneids=nil, vpcinfo=nil, timespan=nil, supportsmigratetocloud=nil, enablepublic=nil, bandwidth=nil, iprules=nil, =nil) @Name = name @Spec = spec @NodeCount = nodecount @StorageSize = storagesize @ZoneIds = zoneids @VpcInfo = vpcinfo @TimeSpan = timespan @SupportsMigrateToCloud = supportsmigratetocloud @EnablePublic = enablepublic @Bandwidth = bandwidth @IpRules = iprules @Tags = end |
Instance Attribute Details
#Bandwidth ⇒ Object
2236 2237 2238 |
# File 'lib/v20200217/models.rb', line 2236 def Bandwidth @Bandwidth end |
#EnablePublic ⇒ Object
2236 2237 2238 |
# File 'lib/v20200217/models.rb', line 2236 def EnablePublic @EnablePublic end |
#IpRules ⇒ Object
2236 2237 2238 |
# File 'lib/v20200217/models.rb', line 2236 def IpRules @IpRules end |
#Name ⇒ Object
2236 2237 2238 |
# File 'lib/v20200217/models.rb', line 2236 def Name @Name end |
#NodeCount ⇒ Object
2236 2237 2238 |
# File 'lib/v20200217/models.rb', line 2236 def NodeCount @NodeCount end |
#Spec ⇒ Object
2236 2237 2238 |
# File 'lib/v20200217/models.rb', line 2236 def Spec @Spec end |
#StorageSize ⇒ Object
2236 2237 2238 |
# File 'lib/v20200217/models.rb', line 2236 def StorageSize @StorageSize end |
#SupportsMigrateToCloud ⇒ Object
2236 2237 2238 |
# File 'lib/v20200217/models.rb', line 2236 def SupportsMigrateToCloud @SupportsMigrateToCloud end |
#Tags ⇒ Object
2236 2237 2238 |
# File 'lib/v20200217/models.rb', line 2236 def Tags @Tags end |
#TimeSpan ⇒ Object
2236 2237 2238 |
# File 'lib/v20200217/models.rb', line 2236 def TimeSpan @TimeSpan end |
#VpcInfo ⇒ Object
2236 2237 2238 |
# File 'lib/v20200217/models.rb', line 2236 def VpcInfo @VpcInfo end |
#ZoneIds ⇒ Object
2236 2237 2238 |
# File 'lib/v20200217/models.rb', line 2236 def ZoneIds @ZoneIds end |
Instance Method Details
#deserialize(params) ⇒ Object
2253 2254 2255 2256 2257 2258 2259 2260 2261 2262 2263 2264 2265 2266 2267 2268 2269 2270 2271 2272 2273 2274 2275 2276 2277 2278 2279 2280 2281 2282 2283 |
# File 'lib/v20200217/models.rb', line 2253 def deserialize(params) @Name = params['Name'] @Spec = params['Spec'] @NodeCount = params['NodeCount'] @StorageSize = params['StorageSize'] @ZoneIds = params['ZoneIds'] unless params['VpcInfo'].nil? @VpcInfo = VpcInfo.new @VpcInfo.deserialize(params['VpcInfo']) end @TimeSpan = params['TimeSpan'] @SupportsMigrateToCloud = params['SupportsMigrateToCloud'] @EnablePublic = params['EnablePublic'] @Bandwidth = params['Bandwidth'] unless params['IpRules'].nil? @IpRules = [] params['IpRules'].each do |i| publicaccessrule_tmp = PublicAccessRule.new publicaccessrule_tmp.deserialize(i) @IpRules << publicaccessrule_tmp end end unless params['Tags'].nil? @Tags = [] params['Tags'].each do |i| tag_tmp = Tag.new tag_tmp.deserialize(i) @Tags << tag_tmp end end end |