Class: Google::Apis::CloudnumberregistryV1alpha::Range
- Inherits:
-
Object
- Object
- Google::Apis::CloudnumberregistryV1alpha::Range
- 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
Represents either a CustomRange or a DiscoveredRange.
Instance Attribute Summary collapse
-
#custom_range ⇒ Google::Apis::CloudnumberregistryV1alpha::CustomRange
A CustomRange represents a user-defined IP address range.
-
#discovered_range ⇒ Google::Apis::CloudnumberregistryV1alpha::DiscoveredRange
A DiscoveredRange represents an IP address range automatically detected by the discovery pipeline.
-
#utilization ⇒ Google::Apis::CloudnumberregistryV1alpha::RangeUtilization
Utilization metrics for an IP Range, including consumed and produced address counts.
Instance Method Summary collapse
-
#initialize(**args) ⇒ Range
constructor
A new instance of Range.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ Range
Returns a new instance of Range.
976 977 978 |
# File 'lib/google/apis/cloudnumberregistry_v1alpha/classes.rb', line 976 def initialize(**args) update!(**args) end |
Instance Attribute Details
#custom_range ⇒ Google::Apis::CloudnumberregistryV1alpha::CustomRange
A CustomRange represents a user-defined IP address range.
Corresponds to the JSON property customRange
962 963 964 |
# File 'lib/google/apis/cloudnumberregistry_v1alpha/classes.rb', line 962 def custom_range @custom_range end |
#discovered_range ⇒ Google::Apis::CloudnumberregistryV1alpha::DiscoveredRange
A DiscoveredRange represents an IP address range automatically detected by the
discovery pipeline.
Corresponds to the JSON property discoveredRange
968 969 970 |
# File 'lib/google/apis/cloudnumberregistry_v1alpha/classes.rb', line 968 def discovered_range @discovered_range end |
#utilization ⇒ Google::Apis::CloudnumberregistryV1alpha::RangeUtilization
Utilization metrics for an IP Range, including consumed and produced address
counts.
Corresponds to the JSON property utilization
974 975 976 |
# File 'lib/google/apis/cloudnumberregistry_v1alpha/classes.rb', line 974 def utilization @utilization end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
981 982 983 984 985 |
# File 'lib/google/apis/cloudnumberregistry_v1alpha/classes.rb', line 981 def update!(**args) @custom_range = args[:custom_range] if args.key?(:custom_range) @discovered_range = args[:discovered_range] if args.key?(:discovered_range) @utilization = args[:utilization] if args.key?(:utilization) end |