lib/purecloudplatformclientv2/models/domain_capabilities.rb in purecloudplatformclientv2-8.0.0 vs lib/purecloudplatformclientv2/models/domain_capabilities.rb in purecloudplatformclientv2-9.0.0

- old
+ new

@@ -37,28 +37,42 @@ attr_accessor :ping_enabled # Attribute mapping from ruby-style variable name to JSON key. def self.attribute_map { + :'enabled' => :'enabled', + :'dhcp' => :'dhcp', + :'metric' => :'metric', + :'auto_metric' => :'autoMetric', + :'supports_metric' => :'supportsMetric', + :'ping_enabled' => :'pingEnabled' + } end # Attribute type mapping. def self.swagger_types { + :'enabled' => :'BOOLEAN', + :'dhcp' => :'BOOLEAN', + :'metric' => :'Integer', + :'auto_metric' => :'BOOLEAN', + :'supports_metric' => :'BOOLEAN', + :'ping_enabled' => :'BOOLEAN' + } end # Initializes the object # @param [Hash] attributes Model attributes in the form of hash @@ -66,47 +80,136 @@ return unless attributes.is_a?(Hash) # convert string to symbol for hash key attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v} + if attributes.has_key?(:'enabled') + + self.enabled = attributes[:'enabled'] + + end + if attributes.has_key?(:'dhcp') + + self.dhcp = attributes[:'dhcp'] + + end + if attributes.has_key?(:'metric') + + self.metric = attributes[:'metric'] + + end + if attributes.has_key?(:'autoMetric') + + self.auto_metric = attributes[:'autoMetric'] + + end + if attributes.has_key?(:'supportsMetric') + + self.supports_metric = attributes[:'supportsMetric'] + + end + if attributes.has_key?(:'pingEnabled') + + self.ping_enabled = attributes[:'pingEnabled'] + + end + end # Show invalid properties with the reasons. Usually used together with valid? # @return Array for valid properies with the reasons def list_invalid_properties invalid_properties = Array.new + + return invalid_properties end # Check to see if the all the properties in the model are valid # @return true if the model is valid def valid? + + + + + + + + + + + + + + + + + + + + + + + + + end + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + # Checks equality by comparing each attribute. # @param [Object] Object to be compared def ==(o) return true if self.equal?(o) self.class == o.class &&