Class: Google::Apis::FileV1::PerformanceLimits
- Inherits:
-
Object
- Object
- Google::Apis::FileV1::PerformanceLimits
- 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
-
#max_read_iops ⇒ Fixnum
Output only.
-
#max_read_throughput_bps ⇒ Fixnum
Output only.
-
#max_write_iops ⇒ Fixnum
Output only.
-
#max_write_throughput_bps ⇒ Fixnum
Output only.
Instance Method Summary collapse
-
#initialize(**args) ⇒ PerformanceLimits
constructor
A new instance of PerformanceLimits.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ PerformanceLimits
Returns a new instance of PerformanceLimits.
1546 1547 1548 |
# File 'lib/google/apis/file_v1/classes.rb', line 1546 def initialize(**args) update!(**args) end |
Instance Attribute Details
#max_read_iops ⇒ Fixnum
Output only. The max read IOPS.
Corresponds to the JSON property maxReadIops
1529 1530 1531 |
# File 'lib/google/apis/file_v1/classes.rb', line 1529 def max_read_iops @max_read_iops end |
#max_read_throughput_bps ⇒ Fixnum
Output only. The max read throughput in bytes per second.
Corresponds to the JSON property maxReadThroughputBps
1534 1535 1536 |
# File 'lib/google/apis/file_v1/classes.rb', line 1534 def max_read_throughput_bps @max_read_throughput_bps end |
#max_write_iops ⇒ Fixnum
Output only. The max write IOPS.
Corresponds to the JSON property maxWriteIops
1539 1540 1541 |
# File 'lib/google/apis/file_v1/classes.rb', line 1539 def max_write_iops @max_write_iops end |
#max_write_throughput_bps ⇒ Fixnum
Output only. The max write throughput in bytes per second.
Corresponds to the JSON property maxWriteThroughputBps
1544 1545 1546 |
# File 'lib/google/apis/file_v1/classes.rb', line 1544 def max_write_throughput_bps @max_write_throughput_bps end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
1551 1552 1553 1554 1555 1556 |
# File 'lib/google/apis/file_v1/classes.rb', line 1551 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 |