Class: Google::Apis::FileV1beta1::FileShareConfig

Inherits:
Object
  • Object
show all
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

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ FileShareConfig

Returns a new instance of FileShareConfig.



345
346
347
# File 'lib/google/apis/file_v1beta1/classes.rb', line 345

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

Instance Attribute Details

#capacity_gbFixnum

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

Returns:

  • (Fixnum)


311
312
313
# File 'lib/google/apis/file_v1beta1/classes.rb', line 311

def capacity_gb
  @capacity_gb
end

#nameString

Required. The name of the file share. Must use 1-16 characters for the basic service tier and 1-63 characters for all other service tiers. Must use lowercase letters, numbers, or underscores [a-z0-9_]. Must start with a letter. Immutable. Corresponds to the JSON property name

Returns:

  • (String)


319
320
321
# File 'lib/google/apis/file_v1beta1/classes.rb', line 319

def name
  @name
end

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

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



324
325
326
# File 'lib/google/apis/file_v1beta1/classes.rb', line 324

def nfs_export_options
  @nfs_export_options
end

#performance_configGoogle::Apis::FileV1beta1::PerformanceConfig

Performance configuration. Used for setting the performance configuration. Defaults to iops_by_capacity if unset in instance creation. Corresponds to the JSON property performanceConfig



330
331
332
# File 'lib/google/apis/file_v1beta1/classes.rb', line 330

def performance_config
  @performance_config
end

#performance_limitsGoogle::Apis::FileV1beta1::PerformanceLimits

The enforced performance limits, calculated from the instance's performance configuration. Corresponds to the JSON property performanceLimits



336
337
338
# File 'lib/google/apis/file_v1beta1/classes.rb', line 336

def performance_limits
  @performance_limits
end

#source_backupString

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 propertysourceBackup`

Returns:

  • (String)


343
344
345
# File 'lib/google/apis/file_v1beta1/classes.rb', line 343

def source_backup
  @source_backup
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



350
351
352
353
354
355
356
357
# File 'lib/google/apis/file_v1beta1/classes.rb', line 350

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)
  @performance_config = args[:performance_config] if args.key?(:performance_config)
  @performance_limits = args[:performance_limits] if args.key?(:performance_limits)
  @source_backup = args[:source_backup] if args.key?(:source_backup)
end