Class: Google::Apis::FileV1::PerformanceLimits

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

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.



1560
1561
1562
# File 'lib/google/apis/file_v1/classes.rb', line 1560

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)


1543
1544
1545
# File 'lib/google/apis/file_v1/classes.rb', line 1543

def max_read_iops
  @max_read_iops
end

#max_read_throughput_bpsFixnum

Output only. The max read throughput in bytes per second. Corresponds to the JSON property maxReadThroughputBps

Returns:

  • (Fixnum)


1548
1549
1550
# File 'lib/google/apis/file_v1/classes.rb', line 1548

def max_read_throughput_bps
  @max_read_throughput_bps
end

#max_write_iopsFixnum

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

Returns:

  • (Fixnum)


1553
1554
1555
# File 'lib/google/apis/file_v1/classes.rb', line 1553

def max_write_iops
  @max_write_iops
end

#max_write_throughput_bpsFixnum

Output only. The max write throughput in bytes per second. Corresponds to the JSON property maxWriteThroughputBps

Returns:

  • (Fixnum)


1558
1559
1560
# File 'lib/google/apis/file_v1/classes.rb', line 1558

def max_write_throughput_bps
  @max_write_throughput_bps
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1565
1566
1567
1568
1569
1570
# File 'lib/google/apis/file_v1/classes.rb', line 1565

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