lib/ionoscloud/models/lan_properties_post.rb in ionoscloud-6.1.1 vs lib/ionoscloud/models/lan_properties_post.rb in ionoscloud-6.1.2
- old
+ new
@@ -14,18 +14,18 @@
require 'time'
module Ionoscloud
class LanPropertiesPost
- # The name of the resource.
- attr_accessor :name
-
-
# IP failover configurations for lan
attr_accessor :ip_failover
+ # The name of the resource.
+ attr_accessor :name
+
+
# The unique identifier of the private Cross-Connect the LAN is connected to, if any.
attr_accessor :pcc
# This LAN faces the public Internet.
@@ -33,14 +33,14 @@
# Attribute mapping from ruby-style variable name to JSON key.
def self.attribute_map
{
- :'name' => :'name',
-
:'ip_failover' => :'ipFailover',
+ :'name' => :'name',
+
:'pcc' => :'pcc',
:'public' => :'public'
}
end
@@ -52,14 +52,14 @@
# Attribute type mapping.
def self.openapi_types
{
- :'name' => :'String',
-
:'ip_failover' => :'Array<IPFailover>',
+ :'name' => :'String',
+
:'pcc' => :'String',
:'public' => :'Boolean'
}
end
@@ -88,17 +88,17 @@
end
h[k.to_sym] = v
}
- if attributes.key?(:'name')
- self.name = attributes[:'name']
+ if attributes.key?(:'ip_failover') && (value = attributes[:'ip_failover']).is_a?(Array)
+ self.ip_failover = value
end
- if attributes.key?(:'ip_failover') && (value = attributes[:'ip_failover']).is_a?(Array)
- self.ip_failover = value
+ if attributes.key?(:'name')
+ self.name = attributes[:'name']
end
if attributes.key?(:'pcc')
self.pcc = attributes[:'pcc']
@@ -138,12 +138,12 @@
# Checks equality by comparing each attribute.
# @param [Object] Object to be compared
def ==(o)
return true if self.equal?(o)
self.class == o.class &&
- name == o.name &&
ip_failover == o.ip_failover &&
+ name == o.name &&
pcc == o.pcc &&
public == o.public
end
# @see the `==` method
@@ -153,10 +153,10 @@
end
# Calculates hash code according to all attributes.
# @return [Integer] Hash code
def hash
- [name, ip_failover, pcc, public].hash
+ [ip_failover, name, pcc, public].hash
end
# Builds the object from hash
# @param [Hash] attributes Model attributes in the form of hash
# @return [Object] Returns the model itself