Class: Google::Apis::FileV1beta1::PerformanceConfig
- Inherits:
-
Object
- Object
- Google::Apis::FileV1beta1::PerformanceConfig
- 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
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::FileV1beta1::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::FileV1beta1::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.
1610 1611 1612 |
# File 'lib/google/apis/file_v1beta1/classes.rb', line 1610 def initialize(**args) update!(**args) end |
Instance Attribute Details
#fixed_iops ⇒ Google::Apis::FileV1beta1::FixedIops
Fixed IOPS parameters.
Corresponds to the JSON property fixedIops
1593 1594 1595 |
# File 'lib/google/apis/file_v1beta1/classes.rb', line 1593 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
1602 1603 1604 |
# File 'lib/google/apis/file_v1beta1/classes.rb', line 1602 def iops_by_capacity @iops_by_capacity end |
#iops_per_gb ⇒ Google::Apis::FileV1beta1::IopsPerGb
IOPS per capacity parameters.
Corresponds to the JSON property iopsPerGb
1608 1609 1610 |
# File 'lib/google/apis/file_v1beta1/classes.rb', line 1608 def iops_per_gb @iops_per_gb end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
1615 1616 1617 1618 1619 |
# File 'lib/google/apis/file_v1beta1/classes.rb', line 1615 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 |