Class: TencentCloud::Thpc::V20220401::StorageOption

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

Overview

描述集群文件系统选项

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(cfsoptions = nil, goosefsoptions = nil) ⇒ StorageOption

Returns a new instance of StorageOption.



1934
1935
1936
1937
# File 'lib/v20220401/models.rb', line 1934

def initialize(cfsoptions=nil, goosefsoptions=nil)
  @CFSOptions = cfsoptions
  @GooseFSOptions = goosefsoptions
end

Instance Attribute Details

#CFSOptionsObject

Parameters:

  • CFSOptions:

    集群挂载CFS文件系统选项。

  • GooseFSOptions:

    集群挂载GooseFS文件系统选项。



1932
1933
1934
# File 'lib/v20220401/models.rb', line 1932

def CFSOptions
  @CFSOptions
end

#GooseFSOptionsObject

Parameters:

  • CFSOptions:

    集群挂载CFS文件系统选项。

  • GooseFSOptions:

    集群挂载GooseFS文件系统选项。



1932
1933
1934
# File 'lib/v20220401/models.rb', line 1932

def GooseFSOptions
  @GooseFSOptions
end

Instance Method Details

#deserialize(params) ⇒ Object



1939
1940
1941
1942
1943
1944
1945
1946
1947
1948
1949
1950
1951
1952
1953
1954
1955
1956
# File 'lib/v20220401/models.rb', line 1939

def deserialize(params)
  unless params['CFSOptions'].nil?
    @CFSOptions = []
    params['CFSOptions'].each do |i|
      cfsoption_tmp = CFSOption.new
      cfsoption_tmp.deserialize(i)
      @CFSOptions << cfsoption_tmp
    end
  end
  unless params['GooseFSOptions'].nil?
    @GooseFSOptions = []
    params['GooseFSOptions'].each do |i|
      goosefsoption_tmp = GooseFSOption.new
      goosefsoption_tmp.deserialize(i)
      @GooseFSOptions << goosefsoption_tmp
    end
  end
end