lib/ionoscloud/models/nic_entities.rb in ionoscloud-6.1.1 vs lib/ionoscloud/models/nic_entities.rb in ionoscloud-6.1.2
- old
+ new
@@ -14,22 +14,22 @@
require 'time'
module Ionoscloud
class NicEntities
- attr_accessor :flowlogs
+ attr_accessor :firewallrules
- attr_accessor :firewallrules
+ attr_accessor :flowlogs
# Attribute mapping from ruby-style variable name to JSON key.
def self.attribute_map
{
- :'flowlogs' => :'flowlogs',
+ :'firewallrules' => :'firewallrules',
- :'firewallrules' => :'firewallrules'
+ :'flowlogs' => :'flowlogs'
}
end
# Returns all the JSON keys this model knows about
def self.acceptable_attributes
@@ -38,13 +38,13 @@
# Attribute type mapping.
def self.openapi_types
{
- :'flowlogs' => :'FlowLogs',
+ :'firewallrules' => :'FirewallRules',
- :'firewallrules' => :'FirewallRules'
+ :'flowlogs' => :'FlowLogs'
}
end
# List of attributes with nullable: true
def self.openapi_nullable
@@ -68,17 +68,17 @@
end
h[k.to_sym] = v
}
- if attributes.key?(:'flowlogs')
- self.flowlogs = attributes[:'flowlogs']
+ if attributes.key?(:'firewallrules')
+ self.firewallrules = attributes[:'firewallrules']
end
- if attributes.key?(:'firewallrules')
- self.firewallrules = attributes[:'firewallrules']
+ if attributes.key?(:'flowlogs')
+ self.flowlogs = attributes[:'flowlogs']
end
end
# Show invalid properties with the reasons. Usually used together with valid?
# @return Array for valid properties with the reasons
@@ -102,12 +102,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 &&
- flowlogs == o.flowlogs &&
- firewallrules == o.firewallrules
+ firewallrules == o.firewallrules &&
+ flowlogs == o.flowlogs
end
# @see the `==` method
# @param [Object] Object to be compared
def eql?(o)
@@ -115,10 +115,10 @@
end
# Calculates hash code according to all attributes.
# @return [Integer] Hash code
def hash
- [flowlogs, firewallrules].hash
+ [firewallrules, flowlogs].hash
end
# Builds the object from hash
# @param [Hash] attributes Model attributes in the form of hash
# @return [Object] Returns the model itself