Class: Google::Apis::FileV1::PerformanceConfig
- Inherits:
-
Object
- Object
- Google::Apis::FileV1::PerformanceConfig
- 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
-
#fixed_iops ⇒ Google::Apis::FileV1::FixedIops
Fixed IOPS parameters.
-
#iops_by_capacity ⇒ Boolean
(also: #iops_by_capacity?)
Automatically provision maximum available IOPS based on the capacity of the instance.
-
#iops_per_gb ⇒ Google::Apis::FileV1::IopsPerGb
IOPS per capacity parameters.
Instance Method Summary collapse
-
#initialize(**args) ⇒ PerformanceConfig
constructor
A new instance of PerformanceConfig.
-
#update!(**args) ⇒ Object
Update properties of this object.
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_iops ⇒ Google::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_capacity ⇒ Boolean 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
1468 1469 1470 |
# File 'lib/google/apis/file_v1/classes.rb', line 1468 def iops_by_capacity @iops_by_capacity end |
#iops_per_gb ⇒ Google::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 |