Class: Google::Apis::CloudnumberregistryV1alpha::RangeUtilization
- Inherits:
-
Object
- Object
- Google::Apis::CloudnumberregistryV1alpha::RangeUtilization
- 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
Utilization metrics for an IP Range, including consumed and produced address counts.
Instance Attribute Summary collapse
-
#total_consumed ⇒ String
Output only.
-
#total_produced ⇒ String
Output only.
-
#usage ⇒ Float
Output only.
Instance Method Summary collapse
-
#initialize(**args) ⇒ RangeUtilization
constructor
A new instance of RangeUtilization.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ RangeUtilization
Returns a new instance of RangeUtilization.
1010 1011 1012 |
# File 'lib/google/apis/cloudnumberregistry_v1alpha/classes.rb', line 1010 def initialize(**args) update!(**args) end |
Instance Attribute Details
#total_consumed ⇒ String
Output only. The total number of IP addresses consumed in the Range.
Corresponds to the JSON property totalConsumed
996 997 998 |
# File 'lib/google/apis/cloudnumberregistry_v1alpha/classes.rb', line 996 def total_consumed @total_consumed end |
#total_produced ⇒ String
Output only. The total number of IP addresses produced in the Range.
Corresponds to the JSON property totalProduced
1001 1002 1003 |
# File 'lib/google/apis/cloudnumberregistry_v1alpha/classes.rb', line 1001 def total_produced @total_produced end |
#usage ⇒ Float
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
1008 1009 1010 |
# File 'lib/google/apis/cloudnumberregistry_v1alpha/classes.rb', line 1008 def usage @usage end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
1015 1016 1017 1018 1019 |
# File 'lib/google/apis/cloudnumberregistry_v1alpha/classes.rb', line 1015 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 |