lib/purecloud/models/domain_capabilities.rb in purecloud-0.50.1 vs lib/purecloud/models/domain_capabilities.rb in purecloud-0.51.1

- old
+ new

@@ -16,35 +16,50 @@ require 'date' module PureCloud class DomainCapabilities + # True if this address family on the interface is enabled. attr_accessor :enabled + # True if this address family on the interface is using DHCP. attr_accessor :dhcp + # The metric being used for the address family on this interface. Lower values will have a higher priority. If autoMetric is true, this value will be the automatically calculated metric. To set this value be sure autoMetric is false. If no value is returned, metric configuration is not supported on this Edge. attr_accessor :metric + # True if the metric is being calculated automatically for the address family on this interface. + attr_accessor :auto_metric + + # True if metric configuration is supported. + attr_accessor :supports_metric + # Attribute mapping from ruby-style variable name to JSON key. def self.attribute_map { :'enabled' => :'enabled', :'dhcp' => :'dhcp', - :'metric' => :'metric' + :'metric' => :'metric', + :'auto_metric' => :'autoMetric', + + :'supports_metric' => :'supportsMetric' + } end # Attribute type mapping. def self.swagger_types { :'enabled' => :'BOOLEAN', :'dhcp' => :'BOOLEAN', - :'metric' => :'Integer' + :'metric' => :'Integer', + :'auto_metric' => :'BOOLEAN', + :'supports_metric' => :'BOOLEAN' } end def initialize(attributes = {}) @@ -68,28 +83,42 @@ if attributes[:'metric'] self.metric = attributes[:'metric'] end + if attributes[:'autoMetric'] + self.auto_metric = attributes[:'autoMetric'] + else + self.auto_metric = false + end + + if attributes[:'supportsMetric'] + self.supports_metric = attributes[:'supportsMetric'] + else + self.supports_metric = false + end + end # Check equality by comparing each attribute. def ==(o) return true if self.equal?(o) self.class == o.class && enabled == o.enabled && dhcp == o.dhcp && - metric == o.metric + metric == o.metric && + auto_metric == o.auto_metric && + supports_metric == o.supports_metric end # @see the `==` method def eql?(o) self == o end # Calculate hash code according to all attributes. def hash - [enabled, dhcp, metric].hash + [enabled, dhcp, metric, auto_metric, supports_metric].hash end # build the object from hash def build_from_hash(attributes) return nil unless attributes.is_a?(Hash)