lib/ionoscloud/models/kubernetes_node_metadata.rb in ionoscloud-6.1.1 vs lib/ionoscloud/models/kubernetes_node_metadata.rb in ionoscloud-6.1.2

- old
+ new

@@ -14,28 +14,28 @@ 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 date the resource was created. + attr_accessor :created_date - # The last time the resource was created. - attr_accessor :created_date + # The resource entity tag as defined in http://www.w3.org/Protocols/rfc2616/rfc2616-sec3.html#sec3.11 Entity tags are also added as 'ETag' response headers to requests that do not use the 'depth' parameter. + attr_accessor :etag - # The last time the resource was modified. + # The date the resource was last modified. attr_accessor :last_modified_date - # State of the resource. - attr_accessor :state + # The date when the software on the node was last updated. + attr_accessor :last_software_updated_date - # The last time the software was updated on the node. - attr_accessor :last_software_updated_date + # The resource state. + attr_accessor :state class EnumAttributeValidator attr_reader :datatype attr_reader :allowable_values @@ -59,19 +59,19 @@ # Attribute mapping from ruby-style variable name to JSON key. def self.attribute_map { - :'etag' => :'etag', - :'created_date' => :'createdDate', + :'etag' => :'etag', + :'last_modified_date' => :'lastModifiedDate', - :'state' => :'state', + :'last_software_updated_date' => :'lastSoftwareUpdatedDate', - :'last_software_updated_date' => :'lastSoftwareUpdatedDate' + :'state' => :'state' } end # Returns all the JSON keys this model knows about def self.acceptable_attributes @@ -80,19 +80,19 @@ # Attribute type mapping. def self.openapi_types { - :'etag' => :'String', - :'created_date' => :'Time', + :'etag' => :'String', + :'last_modified_date' => :'Time', - :'state' => :'String', + :'last_software_updated_date' => :'Time', - :'last_software_updated_date' => :'Time' + :'state' => :'String' } end # List of attributes with nullable: true def self.openapi_nullable @@ -119,32 +119,32 @@ end h[k.to_sym] = v } - if attributes.key?(:'etag') - self.etag = attributes[:'etag'] + if attributes.key?(:'created_date') + self.created_date = attributes[:'created_date'] end - if attributes.key?(:'created_date') - self.created_date = attributes[:'created_date'] + if attributes.key?(:'etag') + self.etag = attributes[:'etag'] end if attributes.key?(:'last_modified_date') self.last_modified_date = attributes[:'last_modified_date'] end - if attributes.key?(:'state') - self.state = attributes[:'state'] + if attributes.key?(:'last_software_updated_date') + self.last_software_updated_date = attributes[:'last_software_updated_date'] end - if attributes.key?(:'last_software_updated_date') - self.last_software_updated_date = attributes[:'last_software_updated_date'] + if attributes.key?(:'state') + self.state = attributes[:'state'] end end # Show invalid properties with the reasons. Usually used together with valid? # @return Array for valid properties with the reasons @@ -163,41 +163,41 @@ def valid? + 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"]) 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 && + etag == o.etag && last_modified_date == o.last_modified_date && - state == o.state && - last_software_updated_date == o.last_software_updated_date + last_software_updated_date == o.last_software_updated_date && + state == o.state end # @see the `==` method # @param [Object] Object to be compared def eql?(o) @@ -205,10 +205,10 @@ end # Calculates hash code according to all attributes. # @return [Integer] Hash code def hash - [etag, created_date, last_modified_date, state, last_software_updated_date].hash + [created_date, etag, last_modified_date, last_software_updated_date, state].hash end # Builds the object from hash # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself