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.



1513
1514
1515
# File 'lib/google/apis/file_v1/classes.rb', line 1513

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)


1496
1497
1498
# File 'lib/google/apis/file_v1/classes.rb', line 1496

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)


1501
1502
1503
# File 'lib/google/apis/file_v1/classes.rb', line 1501

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)


1506
1507
1508
# File 'lib/google/apis/file_v1/classes.rb', line 1506

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)


1511
1512
1513
# File 'lib/google/apis/file_v1/classes.rb', line 1511

def max_write_throughput
  @max_write_throughput
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1518
1519
1520
1521
1522
1523
# File 'lib/google/apis/file_v1/classes.rb', line 1518

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