Class: Google::Apis::FileV1beta1::FileShareConfig
- Inherits:
-
Object
- Object
- Google::Apis::FileV1beta1::FileShareConfig
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/file_v1beta1/classes.rb,
lib/google/apis/file_v1beta1/representations.rb,
lib/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 32 characters or less for Enterprise and High Scale SSD tiers and 16 characters or less for all other tiers).
-
#nfs_export_options ⇒ Array<Google::Apis::FileV1beta1::NfsExportOptions>
Nfs Export Options.
-
#source_backup ⇒ String
The resource name of the backup, in the format
projects/
project_id/ locations/
location_id/backups/
backup_id``, that this file share has been restored from.
Instance Method Summary collapse
-
#initialize(**args) ⇒ FileShareConfig
constructor
A new instance of FileShareConfig.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ FileShareConfig
Returns a new instance of FileShareConfig.
316 317 318 |
# File 'lib/google/apis/file_v1beta1/classes.rb', line 316 def initialize(**args) update!(**args) end |
Instance Attribute Details
#capacity_gb ⇒ Fixnum
File share capacity in gigabytes (GB). Filestore defines 1 GB as 1024^3 bytes.
Corresponds to the JSON property capacityGb
296 297 298 |
# File 'lib/google/apis/file_v1beta1/classes.rb', line 296 def capacity_gb @capacity_gb end |
#name ⇒ String
The name of the file share (must be 32 characters or less for Enterprise and
High Scale SSD tiers and 16 characters or less for all other tiers).
Corresponds to the JSON property name
302 303 304 |
# File 'lib/google/apis/file_v1beta1/classes.rb', line 302 def name @name end |
#nfs_export_options ⇒ Array<Google::Apis::FileV1beta1::NfsExportOptions>
Nfs Export Options. There is a limit of 10 export options per file share.
Corresponds to the JSON property nfsExportOptions
307 308 309 |
# File 'lib/google/apis/file_v1beta1/classes.rb', line 307 def @nfs_export_options end |
#source_backup ⇒ String
The resource name of the backup, in the format projects/
project_id/
locations/
location_id/backups/
backup_id`, that this file share has been
restored from.
Corresponds to the JSON property
sourceBackup`
314 315 316 |
# File 'lib/google/apis/file_v1beta1/classes.rb', line 314 def source_backup @source_backup end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
321 322 323 324 325 326 |
# File 'lib/google/apis/file_v1beta1/classes.rb', line 321 def update!(**args) @capacity_gb = args[:capacity_gb] if args.key?(:capacity_gb) @name = args[:name] if args.key?(:name) @nfs_export_options = args[:nfs_export_options] if args.key?(:nfs_export_options) @source_backup = args[:source_backup] if args.key?(:source_backup) end |