Class: TencentCloud::Tke::V20180525::CreateClusterRequest
- Inherits:
-
Common::AbstractModel
- Object
- Common::AbstractModel
- TencentCloud::Tke::V20180525::CreateClusterRequest
- Defined in:
- lib/v20180525/models.rb
Overview
CreateCluster请求参数结构体
Instance Attribute Summary collapse
- #CdcId ⇒ Object
- #ClusterAdvancedSettings ⇒ Object
- #ClusterBasicSettings ⇒ Object
- #ClusterCIDRSettings ⇒ Object
- #ClusterType ⇒ Object
- #ExistedInstancesForNode ⇒ Object
- #ExtensionAddons ⇒ Object
- #InstanceAdvancedSettings ⇒ Object
- #InstanceDataDiskMountSettings ⇒ Object
- #RunInstancesForNode ⇒ Object
Instance Method Summary collapse
- #deserialize(params) ⇒ Object
-
#initialize(clustertype = nil, clustercidrsettings = nil, runinstancesfornode = nil, clusterbasicsettings = nil, clusteradvancedsettings = nil, instanceadvancedsettings = nil, existedinstancesfornode = nil, instancedatadiskmountsettings = nil, extensionaddons = nil, cdcid = nil) ⇒ CreateClusterRequest
constructor
A new instance of CreateClusterRequest.
Constructor Details
#initialize(clustertype = nil, clustercidrsettings = nil, runinstancesfornode = nil, clusterbasicsettings = nil, clusteradvancedsettings = nil, instanceadvancedsettings = nil, existedinstancesfornode = nil, instancedatadiskmountsettings = nil, extensionaddons = nil, cdcid = nil) ⇒ CreateClusterRequest
Returns a new instance of CreateClusterRequest.
2336 2337 2338 2339 2340 2341 2342 2343 2344 2345 2346 2347 |
# File 'lib/v20180525/models.rb', line 2336 def initialize(clustertype=nil, clustercidrsettings=nil, runinstancesfornode=nil, clusterbasicsettings=nil, clusteradvancedsettings=nil, instanceadvancedsettings=nil, existedinstancesfornode=nil, instancedatadiskmountsettings=nil, extensionaddons=nil, cdcid=nil) @ClusterType = clustertype @ClusterCIDRSettings = clustercidrsettings @RunInstancesForNode = runinstancesfornode @ClusterBasicSettings = clusterbasicsettings @ClusterAdvancedSettings = clusteradvancedsettings @InstanceAdvancedSettings = instanceadvancedsettings @ExistedInstancesForNode = existedinstancesfornode @InstanceDataDiskMountSettings = instancedatadiskmountsettings @ExtensionAddons = extensionaddons @CdcId = cdcid end |
Instance Attribute Details
#CdcId ⇒ Object
2334 2335 2336 |
# File 'lib/v20180525/models.rb', line 2334 def CdcId @CdcId end |
#ClusterAdvancedSettings ⇒ Object
2334 2335 2336 |
# File 'lib/v20180525/models.rb', line 2334 def ClusterAdvancedSettings @ClusterAdvancedSettings end |
#ClusterBasicSettings ⇒ Object
2334 2335 2336 |
# File 'lib/v20180525/models.rb', line 2334 def ClusterBasicSettings @ClusterBasicSettings end |
#ClusterCIDRSettings ⇒ Object
2334 2335 2336 |
# File 'lib/v20180525/models.rb', line 2334 def ClusterCIDRSettings @ClusterCIDRSettings end |
#ClusterType ⇒ Object
2334 2335 2336 |
# File 'lib/v20180525/models.rb', line 2334 def ClusterType @ClusterType end |
#ExistedInstancesForNode ⇒ Object
2334 2335 2336 |
# File 'lib/v20180525/models.rb', line 2334 def ExistedInstancesForNode @ExistedInstancesForNode end |
#ExtensionAddons ⇒ Object
2334 2335 2336 |
# File 'lib/v20180525/models.rb', line 2334 def ExtensionAddons @ExtensionAddons end |
#InstanceAdvancedSettings ⇒ Object
2334 2335 2336 |
# File 'lib/v20180525/models.rb', line 2334 def InstanceAdvancedSettings @InstanceAdvancedSettings end |
#InstanceDataDiskMountSettings ⇒ Object
2334 2335 2336 |
# File 'lib/v20180525/models.rb', line 2334 def InstanceDataDiskMountSettings @InstanceDataDiskMountSettings end |
#RunInstancesForNode ⇒ Object
2334 2335 2336 |
# File 'lib/v20180525/models.rb', line 2334 def RunInstancesForNode @RunInstancesForNode end |
Instance Method Details
#deserialize(params) ⇒ Object
2349 2350 2351 2352 2353 2354 2355 2356 2357 2358 2359 2360 2361 2362 2363 2364 2365 2366 2367 2368 2369 2370 2371 2372 2373 2374 2375 2376 2377 2378 2379 2380 2381 2382 2383 2384 2385 2386 2387 2388 2389 2390 2391 2392 2393 2394 2395 2396 2397 2398 2399 2400 |
# File 'lib/v20180525/models.rb', line 2349 def deserialize(params) @ClusterType = params['ClusterType'] unless params['ClusterCIDRSettings'].nil? @ClusterCIDRSettings = ClusterCIDRSettings.new @ClusterCIDRSettings.deserialize(params['ClusterCIDRSettings']) end unless params['RunInstancesForNode'].nil? @RunInstancesForNode = [] params['RunInstancesForNode'].each do |i| runinstancesfornode_tmp = RunInstancesForNode.new runinstancesfornode_tmp.deserialize(i) @RunInstancesForNode << runinstancesfornode_tmp end end unless params['ClusterBasicSettings'].nil? @ClusterBasicSettings = ClusterBasicSettings.new @ClusterBasicSettings.deserialize(params['ClusterBasicSettings']) end unless params['ClusterAdvancedSettings'].nil? @ClusterAdvancedSettings = ClusterAdvancedSettings.new @ClusterAdvancedSettings.deserialize(params['ClusterAdvancedSettings']) end unless params['InstanceAdvancedSettings'].nil? @InstanceAdvancedSettings = InstanceAdvancedSettings.new @InstanceAdvancedSettings.deserialize(params['InstanceAdvancedSettings']) end unless params['ExistedInstancesForNode'].nil? @ExistedInstancesForNode = [] params['ExistedInstancesForNode'].each do |i| existedinstancesfornode_tmp = ExistedInstancesForNode.new existedinstancesfornode_tmp.deserialize(i) @ExistedInstancesForNode << existedinstancesfornode_tmp end end unless params['InstanceDataDiskMountSettings'].nil? @InstanceDataDiskMountSettings = [] params['InstanceDataDiskMountSettings'].each do |i| instancedatadiskmountsetting_tmp = InstanceDataDiskMountSetting.new instancedatadiskmountsetting_tmp.deserialize(i) @InstanceDataDiskMountSettings << instancedatadiskmountsetting_tmp end end unless params['ExtensionAddons'].nil? @ExtensionAddons = [] params['ExtensionAddons'].each do |i| extensionaddon_tmp = ExtensionAddon.new extensionaddon_tmp.deserialize(i) @ExtensionAddons << extensionaddon_tmp end end @CdcId = params['CdcId'] end |