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.



1869
1870
1871
# File 'lib/google/apis/file_v1beta1/classes.rb', line 1869

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

Instance Attribute Details

#max_iopsFixnum

Output only. The maximum IOPS. Corresponds to the JSON property maxIops

Returns:

  • (Fixnum)


1847
1848
1849
# File 'lib/google/apis/file_v1beta1/classes.rb', line 1847

def max_iops
  @max_iops
end

#max_read_iopsFixnum

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

Returns:

  • (Fixnum)


1852
1853
1854
# File 'lib/google/apis/file_v1beta1/classes.rb', line 1852

def max_read_iops
  @max_read_iops
end

#max_read_throughput_bpsFixnum

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

Returns:

  • (Fixnum)


1857
1858
1859
# File 'lib/google/apis/file_v1beta1/classes.rb', line 1857

def max_read_throughput_bps
  @max_read_throughput_bps
end

#max_write_iopsFixnum

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

Returns:

  • (Fixnum)


1862
1863
1864
# File 'lib/google/apis/file_v1beta1/classes.rb', line 1862

def max_write_iops
  @max_write_iops
end

#max_write_throughput_bpsFixnum

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

Returns:

  • (Fixnum)


1867
1868
1869
# File 'lib/google/apis/file_v1beta1/classes.rb', line 1867

def max_write_throughput_bps
  @max_write_throughput_bps
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1874
1875
1876
1877
1878
1879
1880
# File 'lib/google/apis/file_v1beta1/classes.rb', line 1874

def update!(**args)
  @max_iops = args[:max_iops] if args.key?(:max_iops)
  @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