lib/ionoscloud/models/kubernetes_node_metadata.rb in ionoscloud-5.1.2 vs lib/ionoscloud/models/kubernetes_node_metadata.rb in ionoscloud-6.0.0.beta.1
- old
+ new
@@ -1,39 +1,34 @@
=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 KubernetesNodeMetadata
-
# Resource's Entity Tag as defined in http://www.w3.org/Protocols/rfc2616/rfc2616-sec3.html#sec3.11 . Entity Tag is also added as an 'ETag response header to requests which don't use 'depth' parameter.
attr_accessor :etag
-
# The last time the resource was created
attr_accessor :created_date
-
# The last time the resource has been modified
attr_accessor :last_modified_date
-
# State of the resource.
attr_accessor :state
-
# The last time the software updated on node.
attr_accessor :last_software_updated_date
class EnumAttributeValidator
attr_reader :datatype
@@ -58,19 +53,14 @@
end
# Attribute mapping from ruby-style variable name to JSON key.
def self.attribute_map
{
-
:'etag' => :'etag',
-
:'created_date' => :'createdDate',
-
:'last_modified_date' => :'lastModifiedDate',
-
:'state' => :'state',
-
:'last_software_updated_date' => :'lastSoftwareUpdatedDate'
}
end
# Returns all the JSON keys this model knows about
@@ -79,31 +69,21 @@
end
# Attribute type mapping.
def self.openapi_types
{
-
:'etag' => :'String',
-
:'created_date' => :'Time',
-
:'last_modified_date' => :'Time',
-
:'state' => :'String',
-
:'last_software_updated_date' => :'Time'
}
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
@@ -117,87 +97,67 @@
if (!self.class.attribute_map.key?(k.to_sym))
fail ArgumentError, "`#{k}` is not a valid attribute in `Ionoscloud::KubernetesNodeMetadata`. 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?(:'etag')
self.etag = attributes[:'etag']
end
-
if attributes.key?(:'created_date')
self.created_date = attributes[:'created_date']
end
-
if attributes.key?(:'last_modified_date')
self.last_modified_date = attributes[:'last_modified_date']
end
-
if attributes.key?(:'state')
self.state = attributes[:'state']
end
-
if attributes.key?(:'last_software_updated_date')
self.last_software_updated_date = attributes[:'last_software_updated_date']
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?
-
-
-
-
- state_validator = EnumAttributeValidator.new('String', ["PROVISIONING", "PROVISIONED", "READY", "TERMINATING", "REBUILDING", "BUSY", "UNKNOWN"])
+ state_validator = EnumAttributeValidator.new('String', ["PROVISIONING", "PROVISIONED", "READY", "TERMINATING", "REBUILDING", "BUSY"])
return false unless state_validator.valid?(@state)
-
true
end
-
-
-
-
# Custom attribute writer method checking allowed values (enum).
# @param [Object] state Object to be assigned
def state=(state)
- validator = EnumAttributeValidator.new('String', ["PROVISIONING", "PROVISIONED", "READY", "TERMINATING", "REBUILDING", "BUSY", "UNKNOWN"])
+ validator = EnumAttributeValidator.new('String', ["PROVISIONING", "PROVISIONED", "READY", "TERMINATING", "REBUILDING", "BUSY"])
unless validator.valid?(state)
fail ArgumentError, "invalid value for \"state\", must be one of #{validator.allowable_values}."
end
@state = state
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 &&
- etag == o.etag &&
- created_date == o.created_date &&
- last_modified_date == o.last_modified_date &&
- state == o.state &&
- last_software_updated_date == o.last_software_updated_date
+ etag == o.etag &&
+ created_date == o.created_date &&
+ last_modified_date == o.last_modified_date &&
+ state == o.state &&
+ last_software_updated_date == o.last_software_updated_date
end
# @see the `==` method
# @param [Object] Object to be compared
def eql?(o)
@@ -325,9 +285,7 @@
value.to_hash
else
value
end
end
-
end
-
end