lib/ionoscloud/models/attached_volumes.rb in ionoscloud-6.1.1 vs lib/ionoscloud/models/attached_volumes.rb in ionoscloud-6.1.2
- old
+ new
@@ -14,53 +14,53 @@
require 'time'
module Ionoscloud
class AttachedVolumes
- # The resource's unique identifier.
- attr_accessor :id
+ attr_accessor :_links
- # The type of object that has been created.
- attr_accessor :type
+ # The URL to the object representation (absolute path).
+ attr_accessor :href
- # URL to the object representation (absolute path).
- attr_accessor :href
+ # The resource's unique identifier.
+ attr_accessor :id
# Array of items in the collection.
attr_accessor :items
- # The offset (if specified in the request).
- attr_accessor :offset
-
-
# The limit (if specified in the request).
attr_accessor :limit
- attr_accessor :_links
+ # The offset (if specified in the request).
+ attr_accessor :offset
+
+ # The type of object that has been created.
+ attr_accessor :type
+
# Attribute mapping from ruby-style variable name to JSON key.
def self.attribute_map
{
- :'id' => :'id',
+ :'_links' => :'_links',
- :'type' => :'type',
-
:'href' => :'href',
+ :'id' => :'id',
+
:'items' => :'items',
- :'offset' => :'offset',
-
:'limit' => :'limit',
- :'_links' => :'_links'
+ :'offset' => :'offset',
+
+ :'type' => :'type'
}
end
# Returns all the JSON keys this model knows about
def self.acceptable_attributes
@@ -69,23 +69,23 @@
# Attribute type mapping.
def self.openapi_types
{
- :'id' => :'String',
+ :'_links' => :'PaginationLinks',
- :'type' => :'Type',
-
:'href' => :'String',
+ :'id' => :'String',
+
:'items' => :'Array<Volume>',
- :'offset' => :'Float',
-
:'limit' => :'Float',
- :'_links' => :'PaginationLinks'
+ :'offset' => :'Float',
+
+ :'type' => :'Type'
}
end
# List of attributes with nullable: true
def self.openapi_nullable
@@ -114,42 +114,42 @@
end
h[k.to_sym] = v
}
- if attributes.key?(:'id')
- self.id = attributes[:'id']
+ if attributes.key?(:'_links')
+ self._links = attributes[:'_links']
end
- if attributes.key?(:'type')
- self.type = attributes[:'type']
+ if attributes.key?(:'href')
+ self.href = attributes[:'href']
end
- if attributes.key?(:'href')
- self.href = attributes[:'href']
+ if attributes.key?(:'id')
+ self.id = attributes[:'id']
end
if attributes.key?(:'items') && (value = attributes[:'items']).is_a?(Array)
self.items = value
end
- if attributes.key?(:'offset')
- self.offset = attributes[:'offset']
+ if attributes.key?(:'limit')
+ self.limit = attributes[:'limit']
end
- if attributes.key?(:'limit')
- self.limit = attributes[:'limit']
+ if attributes.key?(:'offset')
+ self.offset = attributes[:'offset']
end
- if attributes.key?(:'_links')
- self._links = attributes[:'_links']
+ if attributes.key?(:'type')
+ self.type = attributes[:'type']
end
end
# Show invalid properties with the reasons. Usually used together with valid?
# @return Array for valid properties with the reasons
@@ -188,17 +188,17 @@
# Checks equality by comparing each attribute.
# @param [Object] Object to be compared
def ==(o)
return true if self.equal?(o)
self.class == o.class &&
- id == o.id &&
- type == o.type &&
+ _links == o._links &&
href == o.href &&
+ id == o.id &&
items == o.items &&
- offset == o.offset &&
limit == o.limit &&
- _links == o._links
+ offset == o.offset &&
+ type == o.type
end
# @see the `==` method
# @param [Object] Object to be compared
def eql?(o)
@@ -206,10 +206,10 @@
end
# Calculates hash code according to all attributes.
# @return [Integer] Hash code
def hash
- [id, type, href, items, offset, limit, _links].hash
+ [_links, href, id, items, limit, offset, type].hash
end
# Builds the object from hash
# @param [Hash] attributes Model attributes in the form of hash
# @return [Object] Returns the model itself