Class: TencentCloud::Thpc::V20230321::ModifyInitNodeScriptsRequest

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

Overview

ModifyInitNodeScripts请求参数结构体

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(clusterid = nil, initnodescripts = nil) ⇒ ModifyInitNodeScriptsRequest

Returns a new instance of ModifyInitNodeScriptsRequest.



2101
2102
2103
2104
# File 'lib/v20230321/models.rb', line 2101

def initialize(clusterid=nil, initnodescripts=nil)
  @ClusterId = clusterid
  @InitNodeScripts = initnodescripts
end

Instance Attribute Details

#ClusterIdObject

Parameters:

  • ClusterId:

    集群ID。

  • InitNodeScripts:

    节点初始化脚本信息列表。



2099
2100
2101
# File 'lib/v20230321/models.rb', line 2099

def ClusterId
  @ClusterId
end

#InitNodeScriptsObject

Parameters:

  • ClusterId:

    集群ID。

  • InitNodeScripts:

    节点初始化脚本信息列表。



2099
2100
2101
# File 'lib/v20230321/models.rb', line 2099

def InitNodeScripts
  @InitNodeScripts
end

Instance Method Details

#deserialize(params) ⇒ Object



2106
2107
2108
2109
2110
2111
2112
2113
2114
2115
2116
# File 'lib/v20230321/models.rb', line 2106

def deserialize(params)
  @ClusterId = params['ClusterId']
  unless params['InitNodeScripts'].nil?
    @InitNodeScripts = []
    params['InitNodeScripts'].each do |i|
      nodescript_tmp = NodeScript.new
      nodescript_tmp.deserialize(i)
      @InitNodeScripts << nodescript_tmp
    end
  end
end