Class: Google::Apis::FileV1beta1::PerformanceLimits

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

The enforced performance limits, calculated from the instance's performance configuration.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ PerformanceLimits

Returns a new instance of PerformanceLimits.



1647
1648
1649
# File 'lib/google/apis/file_v1beta1/classes.rb', line 1647

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

Instance Attribute Details

#max_read_iopsFixnum

Output only. The max read IOPS. Corresponds to the JSON property maxReadIops

Returns:

  • (Fixnum)


1630
1631
1632
# File 'lib/google/apis/file_v1beta1/classes.rb', line 1630

def max_read_iops
  @max_read_iops
end

#max_read_throughputFixnum

Output only. The max read throughput. Corresponds to the JSON property maxReadThroughput

Returns:

  • (Fixnum)


1635
1636
1637
# File 'lib/google/apis/file_v1beta1/classes.rb', line 1635

def max_read_throughput
  @max_read_throughput
end

#max_write_iopsFixnum

Output only. The max write IOPS. Corresponds to the JSON property maxWriteIops

Returns:

  • (Fixnum)


1640
1641
1642
# File 'lib/google/apis/file_v1beta1/classes.rb', line 1640

def max_write_iops
  @max_write_iops
end

#max_write_throughputFixnum

Output only. The max write throughput. Corresponds to the JSON property maxWriteThroughput

Returns:

  • (Fixnum)


1645
1646
1647
# File 'lib/google/apis/file_v1beta1/classes.rb', line 1645

def max_write_throughput
  @max_write_throughput
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1652
1653
1654
1655
1656
1657
# File 'lib/google/apis/file_v1beta1/classes.rb', line 1652

def update!(**args)
  @max_read_iops = args[:max_read_iops] if args.key?(:max_read_iops)
  @max_read_throughput = args[:max_read_throughput] if args.key?(:max_read_throughput)
  @max_write_iops = args[:max_write_iops] if args.key?(:max_write_iops)
  @max_write_throughput = args[:max_write_throughput] if args.key?(:max_write_throughput)
end