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).
-
#deleted ⇒ Boolean
(also: #deleted?)
Delete requested.
-
#enabled ⇒ Boolean
(also: #enabled?)
Service enabled.
-
#exports ⇒ Array<Google::Apis::FileV1beta1::Export>
Exports.
-
#name ⇒ String
The name of the file share (must be 16 characters or less).
-
#protocols ⇒ Array<String>
Protocols supported.
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
192 193 194 |
# File 'generated/google/apis/file_v1beta1/classes.rb', line 192 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
159 160 161 |
# File 'generated/google/apis/file_v1beta1/classes.rb', line 159 def capacity_gb @capacity_gb end |
#deleted ⇒ Boolean Also known as: deleted?
Delete requested. The file share will be deleted.
Corresponds to the JSON property deleted
164 165 166 |
# File 'generated/google/apis/file_v1beta1/classes.rb', line 164 def deleted @deleted end |
#enabled ⇒ Boolean Also known as: enabled?
Service enabled.
When enabled, the instance exposes the exports to the user for mounting.
Corresponds to the JSON property enabled
171 172 173 |
# File 'generated/google/apis/file_v1beta1/classes.rb', line 171 def enabled @enabled end |
#exports ⇒ Array<Google::Apis::FileV1beta1::Export>
Exports.
If protocols and exports are both zero-length, a default protocol of
NFSV3 and a default export of "*" are provided, and enabled is set to
true.
Corresponds to the JSON property exports
180 181 182 |
# File 'generated/google/apis/file_v1beta1/classes.rb', line 180 def exports @exports end |
#name ⇒ String
The name of the file share (must be 16 characters or less).
Corresponds to the JSON property name
185 186 187 |
# File 'generated/google/apis/file_v1beta1/classes.rb', line 185 def name @name end |
#protocols ⇒ Array<String>
Protocols supported.
Corresponds to the JSON property protocols
190 191 192 |
# File 'generated/google/apis/file_v1beta1/classes.rb', line 190 def protocols @protocols end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
197 198 199 200 201 202 203 204 |
# File 'generated/google/apis/file_v1beta1/classes.rb', line 197 def update!(**args) @capacity_gb = args[:capacity_gb] if args.key?(:capacity_gb) @deleted = args[:deleted] if args.key?(:deleted) @enabled = args[:enabled] if args.key?(:enabled) @exports = args[:exports] if args.key?(:exports) @name = args[:name] if args.key?(:name) @protocols = args[:protocols] if args.key?(:protocols) end |