Class Storage
- java.lang.Object
-
- io.fabric8.openshift.api.model.miscellaneous.metal3.v1alpha1.Storage
-
- All Implemented Interfaces:
io.fabric8.kubernetes.api.builder.Editable<StorageBuilder>,io.fabric8.kubernetes.api.model.KubernetesResource,Serializable
@Generated("io.fabric8.kubernetes.schema.generator.model.ModelGenerator") public class Storage extends Object implements io.fabric8.kubernetes.api.builder.Editable<StorageBuilder>, io.fabric8.kubernetes.api.model.KubernetesResource
Storage describes one storage device (disk, SSD, etc.) on the host.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description Storage()No args constructor for use in serializationStorage(List<String> alternateNames, String hctl, String model, String name, Boolean rotational, String serialNumber, Long sizeBytes, String type, String vendor, String wwn, String wwnVendorExtension, String wwnWithExtension)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StorageBuilderedit()Map<String,Object>getAdditionalProperties()List<String>getAlternateNames()A list of alternate Linux device names of the disk, e.g.StringgetHctl()The SCSI location of the deviceStringgetModel()Hardware modelStringgetName()A Linux device name of the disk, e.g.BooleangetRotational()Whether this disk represents rotational storage.StringgetSerialNumber()The serial number of the deviceLonggetSizeBytes()The size of the disk in BytesStringgetType()Device type, one of: HDD, SSD, NVME.StringgetVendor()The name of the vendor of the deviceStringgetWwn()The WWN of the deviceStringgetWwnVendorExtension()The WWN Vendor extension of the deviceStringgetWwnWithExtension()The WWN with the extensionvoidsetAdditionalProperties(Map<String,Object> additionalProperties)voidsetAdditionalProperty(String name, Object value)voidsetAlternateNames(List<String> alternateNames)A list of alternate Linux device names of the disk, e.g.voidsetHctl(String hctl)The SCSI location of the devicevoidsetModel(String model)Hardware modelvoidsetName(String name)A Linux device name of the disk, e.g.voidsetRotational(Boolean rotational)Whether this disk represents rotational storage.voidsetSerialNumber(String serialNumber)The serial number of the devicevoidsetSizeBytes(Long sizeBytes)The size of the disk in BytesvoidsetType(String type)Device type, one of: HDD, SSD, NVME.voidsetVendor(String vendor)The name of the vendor of the devicevoidsetWwn(String wwn)The WWN of the devicevoidsetWwnVendorExtension(String wwnVendorExtension)The WWN Vendor extension of the devicevoidsetWwnWithExtension(String wwnWithExtension)The WWN with the extensionStorageBuildertoBuilder()
-
-
-
Method Detail
-
getAlternateNames
public List<String> getAlternateNames()
A list of alternate Linux device names of the disk, e.g. "/dev/sda". Note that this list is not exhaustive, and names may not be stable across reboots.
-
setAlternateNames
public void setAlternateNames(List<String> alternateNames)
A list of alternate Linux device names of the disk, e.g. "/dev/sda". Note that this list is not exhaustive, and names may not be stable across reboots.
-
getHctl
public String getHctl()
The SCSI location of the device
-
setHctl
public void setHctl(String hctl)
The SCSI location of the device
-
getModel
public String getModel()
Hardware model
-
setModel
public void setModel(String model)
Hardware model
-
getName
public String getName()
A Linux device name of the disk, e.g. "/dev/disk/by-path/pci-0000:01:00.0-scsi-0:2:0:0". This will be a name that is stable across reboots if one is available.
-
setName
public void setName(String name)
A Linux device name of the disk, e.g. "/dev/disk/by-path/pci-0000:01:00.0-scsi-0:2:0:0". This will be a name that is stable across reboots if one is available.
-
getRotational
public Boolean getRotational()
Whether this disk represents rotational storage. This field is not recommended for usage, please prefer using 'Type' field instead, this field will be deprecated eventually.
-
setRotational
public void setRotational(Boolean rotational)
Whether this disk represents rotational storage. This field is not recommended for usage, please prefer using 'Type' field instead, this field will be deprecated eventually.
-
getSerialNumber
public String getSerialNumber()
The serial number of the device
-
setSerialNumber
public void setSerialNumber(String serialNumber)
The serial number of the device
-
getSizeBytes
public Long getSizeBytes()
The size of the disk in Bytes
-
setSizeBytes
public void setSizeBytes(Long sizeBytes)
The size of the disk in Bytes
-
getType
public String getType()
Device type, one of: HDD, SSD, NVME.
-
setType
public void setType(String type)
Device type, one of: HDD, SSD, NVME.
-
getVendor
public String getVendor()
The name of the vendor of the device
-
setVendor
public void setVendor(String vendor)
The name of the vendor of the device
-
getWwn
public String getWwn()
The WWN of the device
-
setWwn
public void setWwn(String wwn)
The WWN of the device
-
getWwnVendorExtension
public String getWwnVendorExtension()
The WWN Vendor extension of the device
-
setWwnVendorExtension
public void setWwnVendorExtension(String wwnVendorExtension)
The WWN Vendor extension of the device
-
getWwnWithExtension
public String getWwnWithExtension()
The WWN with the extension
-
setWwnWithExtension
public void setWwnWithExtension(String wwnWithExtension)
The WWN with the extension
-
edit
public StorageBuilder edit()
- Specified by:
editin interfaceio.fabric8.kubernetes.api.builder.Editable<StorageBuilder>
-
toBuilder
public StorageBuilder toBuilder()
-
-