lib/ionoscloud/models/kubernetes_node_pool.rb in ionoscloud-5.1.2 vs lib/ionoscloud/models/kubernetes_node_pool.rb in ionoscloud-6.0.0.beta.1
- old
+ new
@@ -1,38 +1,33 @@
=begin
#CLOUD API
#An enterprise-grade Infrastructure is provided as a Service (IaaS) solution that can be managed through a browser-based \"Data Center Designer\" (DCD) tool or via an easy to use API. The API allows you to perform a variety of management tasks such as spinning up additional servers, adding volumes, adjusting networking, and so forth. It is designed to allow users to leverage the same power and flexibility found within the DCD visual tool. Both tools are consistent with their concepts and lend well to making the experience smooth and intuitive.
-The version of the OpenAPI document: 5.0
+The version of the OpenAPI document: 6.0
Generated by: https://openapi-generator.tech
-OpenAPI Generator version: 5.2.1-SNAPSHOT
+OpenAPI Generator version: 5.0.1-SNAPSHOT
=end
require 'date'
require 'time'
module Ionoscloud
class KubernetesNodePool
-
# The resource's unique identifier.
attr_accessor :id
-
# The type of object
attr_accessor :type
-
# URL to the object representation (absolute path)
attr_accessor :href
-
attr_accessor :metadata
-
attr_accessor :properties
class EnumAttributeValidator
attr_reader :datatype
attr_reader :allowable_values
@@ -56,19 +51,14 @@
end
# Attribute mapping from ruby-style variable name to JSON key.
def self.attribute_map
{
-
:'id' => :'id',
-
:'type' => :'type',
-
:'href' => :'href',
-
:'metadata' => :'metadata',
-
:'properties' => :'properties'
}
end
# Returns all the JSON keys this model knows about
@@ -77,31 +67,21 @@
end
# Attribute type mapping.
def self.openapi_types
{
-
:'id' => :'String',
-
:'type' => :'String',
-
:'href' => :'String',
-
:'metadata' => :'DatacenterElementMetadata',
-
:'properties' => :'KubernetesNodePoolProperties'
}
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
@@ -115,92 +95,72 @@
if (!self.class.attribute_map.key?(k.to_sym))
fail ArgumentError, "`#{k}` is not a valid attribute in `Ionoscloud::KubernetesNodePool`. 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?(:'id')
self.id = attributes[:'id']
end
-
if attributes.key?(:'type')
self.type = attributes[:'type']
end
-
if attributes.key?(:'href')
self.href = attributes[:'href']
end
-
if attributes.key?(:'metadata')
self.metadata = attributes[:'metadata']
end
-
if attributes.key?(:'properties')
self.properties = attributes[:'properties']
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
-
-
-
-
-
if @properties.nil?
invalid_properties.push('invalid value for "properties", properties cannot be nil.')
end
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?
-
-
type_validator = EnumAttributeValidator.new('String', ["nodepool"])
return false unless type_validator.valid?(@type)
-
-
-
return false if @properties.nil?
true
end
-
-
# Custom attribute writer method checking allowed values (enum).
# @param [Object] type Object to be assigned
def type=(type)
validator = EnumAttributeValidator.new('String', ["nodepool"])
unless validator.valid?(type)
fail ArgumentError, "invalid value for \"type\", must be one of #{validator.allowable_values}."
end
@type = type
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 &&
- id == o.id &&
- type == o.type &&
- href == o.href &&
- metadata == o.metadata &&
- properties == o.properties
+ id == o.id &&
+ type == o.type &&
+ href == o.href &&
+ metadata == o.metadata &&
+ properties == o.properties
end
# @see the `==` method
# @param [Object] Object to be compared
def eql?(o)
@@ -328,9 +288,7 @@
value.to_hash
else
value
end
end
-
end
-
end