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

Message describing 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.



957
958
959
# File 'lib/google/apis/cloudnumberregistry_v1alpha/classes.rb', line 957

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

Instance Attribute Details

#custom_rangeGoogle::Apis::CloudnumberregistryV1alpha::CustomRange

Message describing CustomRange object Corresponds to the JSON property customRange



945
946
947
# File 'lib/google/apis/cloudnumberregistry_v1alpha/classes.rb', line 945

def custom_range
  @custom_range
end

#discovered_rangeGoogle::Apis::CloudnumberregistryV1alpha::DiscoveredRange

Message describing DiscoveredRange object Corresponds to the JSON property discoveredRange



950
951
952
# File 'lib/google/apis/cloudnumberregistry_v1alpha/classes.rb', line 950

def discovered_range
  @discovered_range
end

#utilizationGoogle::Apis::CloudnumberregistryV1alpha::RangeUtilization

Message for the utilization of an IP range Corresponds to the JSON property utilization



955
956
957
# File 'lib/google/apis/cloudnumberregistry_v1alpha/classes.rb', line 955

def utilization
  @utilization
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



962
963
964
965
966
# File 'lib/google/apis/cloudnumberregistry_v1alpha/classes.rb', line 962

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