lib/ionoscloud/models/request_properties.rb in ionoscloud-6.1.1 vs lib/ionoscloud/models/request_properties.rb in ionoscloud-6.1.2

- old
+ new

@@ -14,30 +14,30 @@ require 'time' module Ionoscloud class RequestProperties - attr_accessor :method + attr_accessor :body attr_accessor :headers - attr_accessor :body + attr_accessor :method attr_accessor :url # Attribute mapping from ruby-style variable name to JSON key. def self.attribute_map { - :'method' => :'method', + :'body' => :'body', :'headers' => :'headers', - :'body' => :'body', + :'method' => :'method', :'url' => :'url' } end @@ -48,15 +48,15 @@ # Attribute type mapping. def self.openapi_types { - :'method' => :'String', + :'body' => :'String', :'headers' => :'Hash<String, String>', - :'body' => :'String', + :'method' => :'String', :'url' => :'String' } end @@ -84,22 +84,22 @@ end h[k.to_sym] = v } - if attributes.key?(:'method') - self.method = attributes[:'method'] + if attributes.key?(:'body') + self.body = attributes[:'body'] end if attributes.key?(:'headers') && (value = attributes[:'headers']).is_a?(Hash) self.headers = value end - if attributes.key?(:'body') - self.body = attributes[:'body'] + if attributes.key?(:'method') + self.method = attributes[:'method'] end if attributes.key?(:'url') self.url = attributes[:'url'] @@ -134,13 +134,13 @@ # Checks equality by comparing each attribute. # @param [Object] Object to be compared def ==(o) return true if self.equal?(o) self.class == o.class && - method == o.method && - headers == o.headers && body == o.body && + headers == o.headers && + method == o.method && url == o.url end # @see the `==` method # @param [Object] Object to be compared @@ -149,10 +149,10 @@ end # Calculates hash code according to all attributes. # @return [Integer] Hash code def hash - [method, headers, body, url].hash + [body, headers, method, url].hash end # Builds the object from hash # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself