Class: TencentCloud::Thpc::V20230321::AddClusterStorageOptionRequest

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

Overview

AddClusterStorageOption请求参数结构体

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(clusterid = nil, storageoption = nil) ⇒ AddClusterStorageOptionRequest

Returns a new instance of AddClusterStorageOptionRequest.



29
30
31
32
# File 'lib/v20230321/models.rb', line 29

def initialize(clusterid=nil, storageoption=nil)
  @ClusterId = clusterid
  @StorageOption = storageoption
end

Instance Attribute Details

#ClusterIdObject

Parameters:

  • ClusterId:

    集群ID。

  • StorageOption:

    集群存储选项;集群已存在的节点和新增节点都会挂载此存储。



27
28
29
# File 'lib/v20230321/models.rb', line 27

def ClusterId
  @ClusterId
end

#StorageOptionObject

Parameters:

  • ClusterId:

    集群ID。

  • StorageOption:

    集群存储选项;集群已存在的节点和新增节点都会挂载此存储。



27
28
29
# File 'lib/v20230321/models.rb', line 27

def StorageOption
  @StorageOption
end

Instance Method Details

#deserialize(params) ⇒ Object



34
35
36
37
38
39
40
# File 'lib/v20230321/models.rb', line 34

def deserialize(params)
  @ClusterId = params['ClusterId']
  unless params['StorageOption'].nil?
    @StorageOption = StorageOption.new
    @StorageOption.deserialize(params['StorageOption'])
  end
end