Class: TencentCloud::Goosefs::V20220519::GooseFSxBuildElement

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

Overview

GooseFSx创建时候的属性

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(model = nil, capacity = nil, mappedbucketlist = nil) ⇒ GooseFSxBuildElement

Returns a new instance of GooseFSxBuildElement.



1028
1029
1030
1031
1032
# File 'lib/v20220519/models.rb', line 1028

def initialize(model=nil, capacity=nil, mappedbucketlist=nil)
  @Model = model
  @Capacity = capacity
  @MappedBucketList = mappedbucketlist
end

Instance Attribute Details

#CapacityObject

Parameters:

  • Model:

    GooseFSx的型号

  • Capacity:

    容量单位是GB, 例如4608(4.5TB)

  • MappedBucketList:

    要关联映射的bucket列表



1026
1027
1028
# File 'lib/v20220519/models.rb', line 1026

def Capacity
  @Capacity
end

#MappedBucketListObject

Parameters:

  • Model:

    GooseFSx的型号

  • Capacity:

    容量单位是GB, 例如4608(4.5TB)

  • MappedBucketList:

    要关联映射的bucket列表



1026
1027
1028
# File 'lib/v20220519/models.rb', line 1026

def MappedBucketList
  @MappedBucketList
end

#ModelObject

Parameters:

  • Model:

    GooseFSx的型号

  • Capacity:

    容量单位是GB, 例如4608(4.5TB)

  • MappedBucketList:

    要关联映射的bucket列表



1026
1027
1028
# File 'lib/v20220519/models.rb', line 1026

def Model
  @Model
end

Instance Method Details

#deserialize(params) ⇒ Object



1034
1035
1036
1037
1038
1039
1040
1041
1042
1043
1044
1045
# File 'lib/v20220519/models.rb', line 1034

def deserialize(params)
  @Model = params['Model']
  @Capacity = params['Capacity']
  unless params['MappedBucketList'].nil?
    @MappedBucketList = []
    params['MappedBucketList'].each do |i|
      mappedbucket_tmp = MappedBucket.new
      mappedbucket_tmp.deserialize(i)
      @MappedBucketList << mappedbucket_tmp
    end
  end
end