Class HardwareRAIDVolume
- java.lang.Object
-
- io.fabric8.openshift.api.model.miscellaneous.metal3.v1alpha1.HardwareRAIDVolume
-
- All Implemented Interfaces:
io.fabric8.kubernetes.api.builder.Editable<HardwareRAIDVolumeBuilder>,io.fabric8.kubernetes.api.model.KubernetesResource,Serializable
@Generated("io.fabric8.kubernetes.schema.generator.model.ModelGenerator") public class HardwareRAIDVolume extends Object implements io.fabric8.kubernetes.api.builder.Editable<HardwareRAIDVolumeBuilder>, io.fabric8.kubernetes.api.model.KubernetesResource
HardwareRAIDVolume defines the desired configuration of volume in hardware RAID.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description HardwareRAIDVolume()No args constructor for use in serializationHardwareRAIDVolume(String controller, String level, String name, Integer numberOfPhysicalDisks, List<String> physicalDisks, Boolean rotational, Integer sizeGibibytes)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description HardwareRAIDVolumeBuilderedit()Map<String,Object>getAdditionalProperties()StringgetController()The name of the RAID controller to use.StringgetLevel()RAID level for the logical disk.StringgetName()Name of the volume.IntegergetNumberOfPhysicalDisks()Integer, number of physical disks to use for the logical disk.List<String>getPhysicalDisks()Optional list of physical disk names to be used for the hardware RAID volumes.BooleangetRotational()Select disks with only rotational (if set to true) or solid-state (if set to false) storage.IntegergetSizeGibibytes()Size of the logical disk to be created in GiB.voidsetAdditionalProperties(Map<String,Object> additionalProperties)voidsetAdditionalProperty(String name, Object value)voidsetController(String controller)The name of the RAID controller to use.voidsetLevel(String level)RAID level for the logical disk.voidsetName(String name)Name of the volume.voidsetNumberOfPhysicalDisks(Integer numberOfPhysicalDisks)Integer, number of physical disks to use for the logical disk.voidsetPhysicalDisks(List<String> physicalDisks)Optional list of physical disk names to be used for the hardware RAID volumes.voidsetRotational(Boolean rotational)Select disks with only rotational (if set to true) or solid-state (if set to false) storage.voidsetSizeGibibytes(Integer sizeGibibytes)Size of the logical disk to be created in GiB.HardwareRAIDVolumeBuildertoBuilder()
-
-
-
Method Detail
-
getController
public String getController()
The name of the RAID controller to use.
-
setController
public void setController(String controller)
The name of the RAID controller to use.
-
getLevel
public String getLevel()
RAID level for the logical disk. The following levels are supported: 0, 1, 2, 5, 6, 1+0, 5+0, 6+0 (drivers may support only some of them).
-
setLevel
public void setLevel(String level)
RAID level for the logical disk. The following levels are supported: 0, 1, 2, 5, 6, 1+0, 5+0, 6+0 (drivers may support only some of them).
-
getName
public String getName()
Name of the volume. Should be unique within the Node. If not specified, the name will be auto-generated.
-
setName
public void setName(String name)
Name of the volume. Should be unique within the Node. If not specified, the name will be auto-generated.
-
getNumberOfPhysicalDisks
public Integer getNumberOfPhysicalDisks()
Integer, number of physical disks to use for the logical disk. Defaults to minimum number of disks required for the particular RAID level.
-
setNumberOfPhysicalDisks
public void setNumberOfPhysicalDisks(Integer numberOfPhysicalDisks)
Integer, number of physical disks to use for the logical disk. Defaults to minimum number of disks required for the particular RAID level.
-
getPhysicalDisks
public List<String> getPhysicalDisks()
Optional list of physical disk names to be used for the hardware RAID volumes. The disk names are interpreted by the hardware RAID controller, and the format is hardware specific.
-
setPhysicalDisks
public void setPhysicalDisks(List<String> physicalDisks)
Optional list of physical disk names to be used for the hardware RAID volumes. The disk names are interpreted by the hardware RAID controller, and the format is hardware specific.
-
getRotational
public Boolean getRotational()
Select disks with only rotational (if set to true) or solid-state (if set to false) storage. By default, any disks can be picked.
-
setRotational
public void setRotational(Boolean rotational)
Select disks with only rotational (if set to true) or solid-state (if set to false) storage. By default, any disks can be picked.
-
getSizeGibibytes
public Integer getSizeGibibytes()
Size of the logical disk to be created in GiB. If unspecified or set be 0, the maximum capacity of disk will be used for logical disk.
-
setSizeGibibytes
public void setSizeGibibytes(Integer sizeGibibytes)
Size of the logical disk to be created in GiB. If unspecified or set be 0, the maximum capacity of disk will be used for logical disk.
-
edit
public HardwareRAIDVolumeBuilder edit()
- Specified by:
editin interfaceio.fabric8.kubernetes.api.builder.Editable<HardwareRAIDVolumeBuilder>
-
toBuilder
public HardwareRAIDVolumeBuilder toBuilder()
-
-