lib/ionoscloud/models/resource_properties.rb in ionoscloud-5.1.1 vs lib/ionoscloud/models/resource_properties.rb in ionoscloud-5.1.2
- old
+ new
@@ -13,20 +13,24 @@
require 'date'
require 'time'
module Ionoscloud
class ResourceProperties
+
# name of the resource
attr_accessor :name
+
# Boolean value representing if the resource is multi factor protected or not e.g. using two factor protection. Currently only Data Centers and Snapshots are allowed to be multi factor protected, The value of attribute if null is intentional and it means that the resource doesn't support multi factor protection at all.
attr_accessor :sec_auth_protection
# Attribute mapping from ruby-style variable name to JSON key.
def self.attribute_map
{
+
:'name' => :'name',
+
:'sec_auth_protection' => :'secAuthProtection'
}
end
# Returns all the JSON keys this model knows about
@@ -35,18 +39,22 @@
end
# Attribute type mapping.
def self.openapi_types
{
+
:'name' => :'String',
+
:'sec_auth_protection' => :'Boolean'
}
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
@@ -60,39 +68,47 @@
if (!self.class.attribute_map.key?(k.to_sym))
fail ArgumentError, "`#{k}` is not a valid attribute in `Ionoscloud::ResourceProperties`. 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?(:'name')
self.name = attributes[:'name']
end
+
if attributes.key?(:'sec_auth_protection')
self.sec_auth_protection = attributes[:'sec_auth_protection']
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 &&
- name == o.name &&
- sec_auth_protection == o.sec_auth_protection
+ name == o.name &&
+ sec_auth_protection == o.sec_auth_protection
end
# @see the `==` method
# @param [Object] Object to be compared
def eql?(o)