lib/ionoscloud/models/volume_properties.rb in ionoscloud-6.0.0 vs lib/ionoscloud/models/volume_properties.rb in ionoscloud-6.0.1
- old
+ new
@@ -45,11 +45,11 @@
# Public SSH keys are set on the image as authorized keys for appropriate SSH login to the instance using the corresponding private key. This field may only be set in creation requests. When reading, it always returns null. SSH keys are only supported if a public Linux image is used for the volume creation.
attr_accessor :ssh_keys
- # The bus type of the volume. Default is VIRTIO
+ # The bus type for this volume; default is VIRTIO.
attr_accessor :bus
# OS type for this volume.
attr_accessor :licence_type
@@ -92,10 +92,14 @@
# The cloud-init configuration for the volume as base64 encoded string. The property is immutable and is only allowed to be set on creation of a new a volume. It is mandatory to provide either 'public image' or 'imageAlias' that has cloud-init compatibility in conjunction with this property.
attr_accessor :user_data
+
+ # The UUID of the attached server.
+ attr_accessor :boot_server
+
class EnumAttributeValidator
attr_reader :datatype
attr_reader :allowable_values
def initialize(datatype, allowable_values)
@@ -156,11 +160,13 @@
:'pci_slot' => :'pciSlot',
:'backupunit_id' => :'backupunitId',
- :'user_data' => :'userData'
+ :'user_data' => :'userData',
+
+ :'boot_server' => :'bootServer'
}
end
# Returns all the JSON keys this model knows about
def self.acceptable_attributes
@@ -207,11 +213,13 @@
:'pci_slot' => :'Integer',
:'backupunit_id' => :'String',
- :'user_data' => :'String'
+ :'user_data' => :'String',
+
+ :'boot_server' => :'String'
}
end
# List of attributes with nullable: true
def self.openapi_nullable
@@ -234,10 +242,11 @@
+
])
end
# Initializes the object
# @param [Hash] attributes Model attributes in the form of hash
@@ -351,10 +360,15 @@
if attributes.key?(:'user_data')
self.user_data = attributes[:'user_data']
end
+
+
+ if attributes.key?(:'boot_server')
+ self.boot_server = attributes[:'boot_server']
+ 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
@@ -381,10 +395,11 @@
+
invalid_properties
end
# Check to see if the all the properties in the model are valid
# @return true if the model is valid
@@ -404,11 +419,11 @@
bus_validator = EnumAttributeValidator.new('String', ["VIRTIO", "IDE", "UNKNOWN"])
return false unless bus_validator.valid?(@bus)
- licence_type_validator = EnumAttributeValidator.new('String', ["UNKNOWN", "WINDOWS", "WINDOWS2016", "LINUX", "OTHER"])
+ licence_type_validator = EnumAttributeValidator.new('String', ["UNKNOWN", "WINDOWS", "WINDOWS2016", "WINDOWS2022", "LINUX", "OTHER"])
return false unless licence_type_validator.valid?(@licence_type)
@@ -416,10 +431,11 @@
+
true
end
@@ -462,11 +478,11 @@
# Custom attribute writer method checking allowed values (enum).
# @param [Object] licence_type Object to be assigned
def licence_type=(licence_type)
- validator = EnumAttributeValidator.new('String', ["UNKNOWN", "WINDOWS", "WINDOWS2016", "LINUX", "OTHER"])
+ validator = EnumAttributeValidator.new('String', ["UNKNOWN", "WINDOWS", "WINDOWS2016", "WINDOWS2022", "LINUX", "OTHER"])
unless validator.valid?(licence_type)
fail ArgumentError, "invalid value for \"licence_type\", must be one of #{validator.allowable_values}."
end
@licence_type = licence_type
end
@@ -479,10 +495,11 @@
+
# Checks equality by comparing each attribute.
# @param [Object] Object to be compared
def ==(o)
return true if self.equal?(o)
self.class == o.class &&
@@ -503,11 +520,12 @@
disc_virtio_hot_plug == o.disc_virtio_hot_plug &&
disc_virtio_hot_unplug == o.disc_virtio_hot_unplug &&
device_number == o.device_number &&
pci_slot == o.pci_slot &&
backupunit_id == o.backupunit_id &&
- user_data == o.user_data
+ user_data == o.user_data &&
+ boot_server == o.boot_server
end
# @see the `==` method
# @param [Object] Object to be compared
def eql?(o)
@@ -515,10 +533,10 @@
end
# Calculates hash code according to all attributes.
# @return [Integer] Hash code
def hash
- [name, type, size, availability_zone, image, image_password, image_alias, ssh_keys, bus, licence_type, cpu_hot_plug, ram_hot_plug, nic_hot_plug, nic_hot_unplug, disc_virtio_hot_plug, disc_virtio_hot_unplug, device_number, pci_slot, backupunit_id, user_data].hash
+ [name, type, size, availability_zone, image, image_password, image_alias, ssh_keys, bus, licence_type, cpu_hot_plug, ram_hot_plug, nic_hot_plug, nic_hot_unplug, disc_virtio_hot_plug, disc_virtio_hot_unplug, device_number, pci_slot, backupunit_id, user_data, boot_server].hash
end
# Builds the object from hash
# @param [Hash] attributes Model attributes in the form of hash
# @return [Object] Returns the model itself