lib/purecloudplatformclientv2/models/array_node.rb in purecloudplatformclientv2-49.0.1 vs lib/purecloudplatformclientv2/models/array_node.rb in purecloudplatformclientv2-50.0.0

- old
+ new

@@ -18,28 +18,20 @@ module PureCloud class ArrayNode attr_accessor :node_type - attr_accessor :object - attr_accessor :boolean attr_accessor :number attr_accessor :float + attr_accessor :object + attr_accessor :floating_point_number - attr_accessor :value_node - - attr_accessor :container_node - - attr_accessor :missing_node - - attr_accessor :pojo - attr_accessor :integral_number attr_accessor :short attr_accessor :int @@ -54,38 +46,38 @@ attr_accessor :textual attr_accessor :binary + attr_accessor :value_node + + attr_accessor :container_node + + attr_accessor :missing_node + + attr_accessor :pojo + attr_accessor :array attr_accessor :null # Attribute mapping from ruby-style variable name to JSON key. def self.attribute_map { :'node_type' => :'nodeType', - :'object' => :'object', - :'boolean' => :'boolean', :'number' => :'number', :'float' => :'float', + :'object' => :'object', + :'floating_point_number' => :'floatingPointNumber', - :'value_node' => :'valueNode', - - :'container_node' => :'containerNode', - - :'missing_node' => :'missingNode', - - :'pojo' => :'pojo', - :'integral_number' => :'integralNumber', :'short' => :'short', :'int' => :'int', @@ -100,10 +92,18 @@ :'textual' => :'textual', :'binary' => :'binary', + :'value_node' => :'valueNode', + + :'container_node' => :'containerNode', + + :'missing_node' => :'missingNode', + + :'pojo' => :'pojo', + :'array' => :'array', :'null' => :'null' } @@ -113,28 +113,20 @@ def self.swagger_types { :'node_type' => :'String', - :'object' => :'BOOLEAN', - :'boolean' => :'BOOLEAN', :'number' => :'BOOLEAN', :'float' => :'BOOLEAN', + :'object' => :'BOOLEAN', + :'floating_point_number' => :'BOOLEAN', - :'value_node' => :'BOOLEAN', - - :'container_node' => :'BOOLEAN', - - :'missing_node' => :'BOOLEAN', - - :'pojo' => :'BOOLEAN', - :'integral_number' => :'BOOLEAN', :'short' => :'BOOLEAN', :'int' => :'BOOLEAN', @@ -149,10 +141,18 @@ :'textual' => :'BOOLEAN', :'binary' => :'BOOLEAN', + :'value_node' => :'BOOLEAN', + + :'container_node' => :'BOOLEAN', + + :'missing_node' => :'BOOLEAN', + + :'pojo' => :'BOOLEAN', + :'array' => :'BOOLEAN', :'null' => :'BOOLEAN' } @@ -174,41 +174,41 @@ end - if attributes.has_key?(:'object') + if attributes.has_key?(:'boolean') - self.object = attributes[:'object'] + self.boolean = attributes[:'boolean'] end - if attributes.has_key?(:'boolean') + if attributes.has_key?(:'number') - self.boolean = attributes[:'boolean'] + self.number = attributes[:'number'] end - if attributes.has_key?(:'number') + if attributes.has_key?(:'float') - self.number = attributes[:'number'] + self.float = attributes[:'float'] end - if attributes.has_key?(:'float') + if attributes.has_key?(:'object') - self.float = attributes[:'float'] + self.object = attributes[:'object'] end @@ -219,122 +219,122 @@ end - if attributes.has_key?(:'valueNode') + if attributes.has_key?(:'integralNumber') - self.value_node = attributes[:'valueNode'] + self.integral_number = attributes[:'integralNumber'] end - if attributes.has_key?(:'containerNode') + if attributes.has_key?(:'short') - self.container_node = attributes[:'containerNode'] + self.short = attributes[:'short'] end - if attributes.has_key?(:'missingNode') + if attributes.has_key?(:'int') - self.missing_node = attributes[:'missingNode'] + self.int = attributes[:'int'] end - if attributes.has_key?(:'pojo') + if attributes.has_key?(:'long') - self.pojo = attributes[:'pojo'] + self.long = attributes[:'long'] end - if attributes.has_key?(:'integralNumber') + if attributes.has_key?(:'double') - self.integral_number = attributes[:'integralNumber'] + self.double = attributes[:'double'] end - if attributes.has_key?(:'short') + if attributes.has_key?(:'bigDecimal') - self.short = attributes[:'short'] + self.big_decimal = attributes[:'bigDecimal'] end - if attributes.has_key?(:'int') + if attributes.has_key?(:'bigInteger') - self.int = attributes[:'int'] + self.big_integer = attributes[:'bigInteger'] end - if attributes.has_key?(:'long') + if attributes.has_key?(:'textual') - self.long = attributes[:'long'] + self.textual = attributes[:'textual'] end - if attributes.has_key?(:'double') + if attributes.has_key?(:'binary') - self.double = attributes[:'double'] + self.binary = attributes[:'binary'] end - if attributes.has_key?(:'bigDecimal') + if attributes.has_key?(:'valueNode') - self.big_decimal = attributes[:'bigDecimal'] + self.value_node = attributes[:'valueNode'] end - if attributes.has_key?(:'bigInteger') + if attributes.has_key?(:'containerNode') - self.big_integer = attributes[:'bigInteger'] + self.container_node = attributes[:'containerNode'] end - if attributes.has_key?(:'textual') + if attributes.has_key?(:'missingNode') - self.textual = attributes[:'textual'] + self.missing_node = attributes[:'missingNode'] end - if attributes.has_key?(:'binary') + if attributes.has_key?(:'pojo') - self.binary = attributes[:'binary'] + self.pojo = attributes[:'pojo'] end @@ -581,28 +581,28 @@ # @param [Object] Object to be compared def ==(o) return true if self.equal?(o) self.class == o.class && node_type == o.node_type && - object == o.object && boolean == o.boolean && number == o.number && float == o.float && + object == o.object && floating_point_number == o.floating_point_number && - value_node == o.value_node && - container_node == o.container_node && - missing_node == o.missing_node && - pojo == o.pojo && integral_number == o.integral_number && short == o.short && int == o.int && long == o.long && double == o.double && big_decimal == o.big_decimal && big_integer == o.big_integer && textual == o.textual && binary == o.binary && + value_node == o.value_node && + container_node == o.container_node && + missing_node == o.missing_node && + pojo == o.pojo && array == o.array && null == o.null end # @see the `==` method @@ -612,10 +612,10 @@ end # Calculates hash code according to all attributes. # @return [Fixnum] Hash code def hash - [node_type, object, boolean, number, float, floating_point_number, value_node, container_node, missing_node, pojo, integral_number, short, int, long, double, big_decimal, big_integer, textual, binary, array, null].hash + [node_type, boolean, number, float, object, floating_point_number, integral_number, short, int, long, double, big_decimal, big_integer, textual, binary, value_node, container_node, missing_node, pojo, array, null].hash end # build the object from hash def build_from_hash(attributes) return nil unless attributes.is_a?(Hash)