Class: Google::Apis::FileV1::PerformanceConfig

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

Overview

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ PerformanceConfig

Returns a new instance of PerformanceConfig.



1476
1477
1478
# File 'lib/google/apis/file_v1/classes.rb', line 1476

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

Instance Attribute Details

#fixed_iopsGoogle::Apis::FileV1::FixedIops

Fixed IOPS parameters. Corresponds to the JSON property fixedIops



1459
1460
1461
# File 'lib/google/apis/file_v1/classes.rb', line 1459

def fixed_iops
  @fixed_iops
end

#iops_by_capacityBoolean Also known as: iops_by_capacity?

Automatically provision maximum available IOPS based on the capacity of the instance. Larger instances will be granted more IOPS. If instance capacity is increased or decreased, IOPS will be automatically adjusted upwards or downwards accordingly. The maximum available IOPS for a given capacity is defined in Filestore documentation. Corresponds to the JSON property iopsByCapacity

Returns:

  • (Boolean)


1468
1469
1470
# File 'lib/google/apis/file_v1/classes.rb', line 1468

def iops_by_capacity
  @iops_by_capacity
end

#iops_per_gbGoogle::Apis::FileV1::IopsPerGb

IOPS per capacity parameters. Corresponds to the JSON property iopsPerGb



1474
1475
1476
# File 'lib/google/apis/file_v1/classes.rb', line 1474

def iops_per_gb
  @iops_per_gb
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1481
1482
1483
1484
1485
# File 'lib/google/apis/file_v1/classes.rb', line 1481

def update!(**args)
  @fixed_iops = args[:fixed_iops] if args.key?(:fixed_iops)
  @iops_by_capacity = args[:iops_by_capacity] if args.key?(:iops_by_capacity)
  @iops_per_gb = args[:iops_per_gb] if args.key?(:iops_per_gb)
end