Class: Google::Apis::CloudnumberregistryV1alpha::RangeUtilization

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

Overview

Message for the utilization of an IP range

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ RangeUtilization

Returns a new instance of RangeUtilization.



990
991
992
# File 'lib/google/apis/cloudnumberregistry_v1alpha/classes.rb', line 990

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

Instance Attribute Details

#total_consumedString

Output only. The total number of IP addresses consumed in the range. Corresponds to the JSON property totalConsumed

Returns:

  • (String)


976
977
978
# File 'lib/google/apis/cloudnumberregistry_v1alpha/classes.rb', line 976

def total_consumed
  @total_consumed
end

#total_producedString

Output only. The total number of IP addresses produced in the range. Corresponds to the JSON property totalProduced

Returns:

  • (String)


981
982
983
# File 'lib/google/apis/cloudnumberregistry_v1alpha/classes.rb', line 981

def total_produced
  @total_produced
end

#usageFloat

Output only. The usage of the range as a percentage. This is marked as optional so that we have presence tracking and API responses show 0.0 instead of NULL. Corresponds to the JSON property usage

Returns:

  • (Float)


988
989
990
# File 'lib/google/apis/cloudnumberregistry_v1alpha/classes.rb', line 988

def usage
  @usage
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



995
996
997
998
999
# File 'lib/google/apis/cloudnumberregistry_v1alpha/classes.rb', line 995

def update!(**args)
  @total_consumed = args[:total_consumed] if args.key?(:total_consumed)
  @total_produced = args[:total_produced] if args.key?(:total_produced)
  @usage = args[:usage] if args.key?(:usage)
end