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
Message for the utilization of an IP range
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.
990 991 992 |
# File 'lib/google/apis/cloudnumberregistry_v1alpha/classes.rb', line 990 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
976 977 978 |
# File 'lib/google/apis/cloudnumberregistry_v1alpha/classes.rb', line 976 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
981 982 983 |
# File 'lib/google/apis/cloudnumberregistry_v1alpha/classes.rb', line 981 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
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 |