Class: Google::Apis::FileV1::FileShareConfig

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

Overview

File share configuration for the instance.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ FileShareConfig

Returns a new instance of FileShareConfig.



286
287
288
# File 'generated/google/apis/file_v1/classes.rb', line 286

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

Instance Attribute Details

#capacity_gbFixnum

File share capacity in gigabytes (GB). Cloud Filestore defines 1 GB as 1024^3 bytes. Corresponds to the JSON property capacityGb

Returns:

  • (Fixnum)


267
268
269
# File 'generated/google/apis/file_v1/classes.rb', line 267

def capacity_gb
  @capacity_gb
end

#nameString

The name of the file share (must be 16 characters or less). Corresponds to the JSON property name

Returns:

  • (String)


272
273
274
# File 'generated/google/apis/file_v1/classes.rb', line 272

def name
  @name
end

#nfs_export_optionsArray<Google::Apis::FileV1::NfsExportOptions>

Nfs Export Options. There is a limit of 10 export options per file share. Corresponds to the JSON property nfsExportOptions



277
278
279
# File 'generated/google/apis/file_v1/classes.rb', line 277

def nfs_export_options
  @nfs_export_options
end

#source_backupString

The resource name of the backup, in the format projects/project_number/ locations/location_id/backups/backup_id, that this file share has been restored from. Corresponds to the JSON property sourceBackup

Returns:

  • (String)


284
285
286
# File 'generated/google/apis/file_v1/classes.rb', line 284

def source_backup
  @source_backup
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



291
292
293
294
295
296
# File 'generated/google/apis/file_v1/classes.rb', line 291

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