Class: Google::Apis::ContainerV1beta1::RangeInfo

Inherits:
Object
  • Object
show all
Includes:
Google::Apis::Core::Hashable, Google::Apis::Core::JsonObjectSupport
Defined in:
lib/google/apis/container_v1beta1/classes.rb,
lib/google/apis/container_v1beta1/representations.rb,
lib/google/apis/container_v1beta1/representations.rb

Overview

RangeInfo contains the range name and the range utilization by this cluster.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ RangeInfo

Returns a new instance of RangeInfo.



5317
5318
5319
# File 'lib/google/apis/container_v1beta1/classes.rb', line 5317

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

Instance Attribute Details

#range_nameString

Output only. [Output only] Name of a range. Corresponds to the JSON property rangeName

Returns:

  • (String)


5310
5311
5312
# File 'lib/google/apis/container_v1beta1/classes.rb', line 5310

def range_name
  @range_name
end

#utilizationFloat

Output only. [Output only] The utilization of the range. Corresponds to the JSON property utilization

Returns:

  • (Float)


5315
5316
5317
# File 'lib/google/apis/container_v1beta1/classes.rb', line 5315

def utilization
  @utilization
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



5322
5323
5324
5325
# File 'lib/google/apis/container_v1beta1/classes.rb', line 5322

def update!(**args)
  @range_name = args[:range_name] if args.key?(:range_name)
  @utilization = args[:utilization] if args.key?(:utilization)
end