Class: Google::Apis::FileV1beta1::FileShareConfig
- Inherits:
-
Object
- Object
- Google::Apis::FileV1beta1::FileShareConfig
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- generated/google/apis/file_v1beta1/classes.rb,
generated/google/apis/file_v1beta1/representations.rb,
generated/google/apis/file_v1beta1/representations.rb
Overview
File share configuration for the instance.
Instance Attribute Summary collapse
-
#capacity_gb ⇒ Fixnum
File share capacity in gigabytes (GB).
-
#name ⇒ String
The name of the file share (must be 16 characters or less).
Instance Method Summary collapse
-
#initialize(**args) ⇒ FileShareConfig
constructor
A new instance of FileShareConfig.
-
#update!(**args) ⇒ Object
Update properties of this object.
Methods included from Core::JsonObjectSupport
Methods included from Core::Hashable
Constructor Details
#initialize(**args) ⇒ FileShareConfig
Returns a new instance of FileShareConfig
72 73 74 |
# File 'generated/google/apis/file_v1beta1/classes.rb', line 72 def initialize(**args) update!(**args) end |
Instance Attribute Details
#capacity_gb ⇒ Fixnum
File share capacity in gigabytes (GB).
Cloud Filestore defines 1 GB as 1024^3 bytes.
Corresponds to the JSON property capacityGb
65 66 67 |
# File 'generated/google/apis/file_v1beta1/classes.rb', line 65 def capacity_gb @capacity_gb end |
#name ⇒ String
The name of the file share (must be 16 characters or less).
Corresponds to the JSON property name
70 71 72 |
# File 'generated/google/apis/file_v1beta1/classes.rb', line 70 def name @name end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
77 78 79 80 |
# File 'generated/google/apis/file_v1beta1/classes.rb', line 77 def update!(**args) @capacity_gb = args[:capacity_gb] if args.key?(:capacity_gb) @name = args[:name] if args.key?(:name) end |