Class: TencentCloud::Tke::V20180525::RunInstancesForNode
- Inherits:
-
Common::AbstractModel
- Object
- Common::AbstractModel
- TencentCloud::Tke::V20180525::RunInstancesForNode
- Defined in:
- lib/v20180525/models.rb
Overview
不同角色的节点配置参数
Instance Attribute Summary collapse
Instance Method Summary collapse
- #deserialize(params) ⇒ Object
-
#initialize(noderole = nil, runinstancespara = nil, instanceadvancedsettingsoverrides = nil) ⇒ RunInstancesForNode
constructor
A new instance of RunInstancesForNode.
Constructor Details
#initialize(noderole = nil, runinstancespara = nil, instanceadvancedsettingsoverrides = nil) ⇒ RunInstancesForNode
Returns a new instance of RunInstancesForNode.
17870 17871 17872 17873 17874 |
# File 'lib/v20180525/models.rb', line 17870 def initialize(noderole=nil, runinstancespara=nil, instanceadvancedsettingsoverrides=nil) @NodeRole = noderole @RunInstancesPara = runinstancespara @InstanceAdvancedSettingsOverrides = instanceadvancedsettingsoverrides end |
Instance Attribute Details
#InstanceAdvancedSettingsOverrides ⇒ Object
17868 17869 17870 |
# File 'lib/v20180525/models.rb', line 17868 def InstanceAdvancedSettingsOverrides @InstanceAdvancedSettingsOverrides end |
#NodeRole ⇒ Object
17868 17869 17870 |
# File 'lib/v20180525/models.rb', line 17868 def NodeRole @NodeRole end |
#RunInstancesPara ⇒ Object
17868 17869 17870 |
# File 'lib/v20180525/models.rb', line 17868 def RunInstancesPara @RunInstancesPara end |
Instance Method Details
#deserialize(params) ⇒ Object
17876 17877 17878 17879 17880 17881 17882 17883 17884 17885 17886 17887 |
# File 'lib/v20180525/models.rb', line 17876 def deserialize(params) @NodeRole = params['NodeRole'] @RunInstancesPara = params['RunInstancesPara'] unless params['InstanceAdvancedSettingsOverrides'].nil? @InstanceAdvancedSettingsOverrides = [] params['InstanceAdvancedSettingsOverrides'].each do |i| instanceadvancedsettings_tmp = InstanceAdvancedSettings.new instanceadvancedsettings_tmp.deserialize(i) @InstanceAdvancedSettingsOverrides << instanceadvancedsettings_tmp end end end |