lib/purecloud/models/pure_cloud.rb in purecloud-0.41.1 vs lib/purecloud/models/pure_cloud.rb in purecloud-0.42.1

- old
+ new

@@ -21,10 +21,12 @@ # The globally unique identifier for the object. attr_accessor :id attr_accessor :name + attr_accessor :disabled + # The URI for this object attr_accessor :self_uri # Attribute mapping from ruby-style variable name to JSON key. def self.attribute_map @@ -32,20 +34,23 @@ :'id' => :'id', :'name' => :'name', + :'disabled' => :'disabled', + :'self_uri' => :'selfUri' } end # Attribute type mapping. def self.swagger_types { :'id' => :'String', :'name' => :'String', + :'disabled' => :'BOOLEAN', :'self_uri' => :'String' } end @@ -62,10 +67,16 @@ if attributes[:'name'] self.name = attributes[:'name'] end + if attributes[:'disabled'] + self.disabled = attributes[:'disabled'] + else + self.disabled = false + end + if attributes[:'selfUri'] self.self_uri = attributes[:'selfUri'] end end @@ -74,20 +85,21 @@ def ==(o) return true if self.equal?(o) self.class == o.class && id == o.id && name == o.name && + disabled == o.disabled && self_uri == o.self_uri end # @see the `==` method def eql?(o) self == o end # Calculate hash code according to all attributes. def hash - [id, name, self_uri].hash + [id, name, disabled, self_uri].hash end # build the object from hash def build_from_hash(attributes) return nil unless attributes.is_a?(Hash)