Class: Google::Apis::HypercomputeclusterV1::FileShareConfig

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
lib/google/apis/hypercomputecluster_v1/classes.rb,
lib/google/apis/hypercomputecluster_v1/representations.rb,
lib/google/apis/hypercomputecluster_v1/representations.rb

Overview

Message describing filestore configuration

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ FileShareConfig

Returns a new instance of FileShareConfig.



758
759
760
# File 'lib/google/apis/hypercomputecluster_v1/classes.rb', line 758

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#capacity_gbFixnum

Required. Size of the filestore in GB. Must be between 1024 and 102400, and must meet scalability requirements described at https://cloud.google.com/ filestore/docs/service-tiers. Corresponds to the JSON property capacityGb

Returns:

  • (Fixnum)


751
752
753
# File 'lib/google/apis/hypercomputecluster_v1/classes.rb', line 751

def capacity_gb
  @capacity_gb
end

#file_shareString

Required. Filestore share location Corresponds to the JSON property fileShare

Returns:

  • (String)


756
757
758
# File 'lib/google/apis/hypercomputecluster_v1/classes.rb', line 756

def file_share
  @file_share
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



763
764
765
766
# File 'lib/google/apis/hypercomputecluster_v1/classes.rb', line 763

def update!(**args)
  @capacity_gb = args[:capacity_gb] if args.key?(:capacity_gb)
  @file_share = args[:file_share] if args.key?(:file_share)
end