Class: Google::Apis::FileV1beta1::PerformanceConfig

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

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.



1610
1611
1612
# File 'lib/google/apis/file_v1beta1/classes.rb', line 1610

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

Instance Attribute Details

#fixed_iopsGoogle::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_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)


1602
1603
1604
# File 'lib/google/apis/file_v1beta1/classes.rb', line 1602

def iops_by_capacity
  @iops_by_capacity
end

#iops_per_gbGoogle::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