Class: Google::Apis::CloudnumberregistryV1alpha::Range

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

Represents either a CustomRange or a DiscoveredRange.

Instance Attribute Summary collapse

Instance Method Summary collapse

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_rangeGoogle::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_rangeGoogle::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

#utilizationGoogle::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