lib/ionoscloud/models/request_properties.rb in ionoscloud-5.1.1 vs lib/ionoscloud/models/request_properties.rb in ionoscloud-5.1.2

- old
+ new

@@ -13,24 +13,32 @@ require 'date' require 'time' module Ionoscloud class RequestProperties + attr_accessor :method + attr_accessor :headers + attr_accessor :body + attr_accessor :url # Attribute mapping from ruby-style variable name to JSON key. def self.attribute_map { + :'method' => :'method', + :'headers' => :'headers', + :'body' => :'body', + :'url' => :'url' } end # Returns all the JSON keys this model knows about @@ -39,20 +47,28 @@ end # Attribute type mapping. def self.openapi_types { + :'method' => :'String', + :'headers' => :'Hash<String, String>', + :'body' => :'String', + :'url' => :'String' } end # List of attributes with nullable: true def self.openapi_nullable Set.new([ + + + + ]) end # Initializes the object # @param [Hash] attributes Model attributes in the form of hash @@ -66,51 +82,65 @@ if (!self.class.attribute_map.key?(k.to_sym)) fail ArgumentError, "`#{k}` is not a valid attribute in `Ionoscloud::RequestProperties`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect end h[k.to_sym] = v } + if attributes.key?(:'method') self.method = attributes[:'method'] end - if attributes.key?(:'headers') - if (value = attributes[:'headers']).is_a?(Hash) - self.headers = value - end + + if attributes.key?(:'headers') && (value = attributes[:'headers']).is_a?(Hash) + self.headers = value end + if attributes.key?(:'body') self.body = attributes[:'body'] end + if attributes.key?(:'url') self.url = attributes[:'url'] end end # Show invalid properties with the reasons. Usually used together with valid? # @return Array for valid properties with the reasons def list_invalid_properties invalid_properties = Array.new + + + + 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? + + + + true 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 && - method == o.method && - headers == o.headers && - body == o.body && - url == o.url + method == o.method && + headers == o.headers && + body == o.body && + url == o.url end # @see the `==` method # @param [Object] Object to be compared def eql?(o)