Package io.fabric8.kubernetes.api.model
Class StorageOSPersistentVolumeSource
- java.lang.Object
-
- io.fabric8.kubernetes.api.model.StorageOSPersistentVolumeSource
-
- All Implemented Interfaces:
io.fabric8.kubernetes.api.builder.Editable<StorageOSPersistentVolumeSourceBuilder>
,KubernetesResource
,Serializable
@Generated("io.fabric8.kubernetes.schema.generator.model.ModelGenerator") public class StorageOSPersistentVolumeSource extends Object implements io.fabric8.kubernetes.api.builder.Editable<StorageOSPersistentVolumeSourceBuilder>, KubernetesResource
Represents a StorageOS persistent volume resource.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description StorageOSPersistentVolumeSource()
No args constructor for use in serializationStorageOSPersistentVolumeSource(String fsType, Boolean readOnly, ObjectReference secretRef, String volumeName, String volumeNamespace)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StorageOSPersistentVolumeSourceBuilder
edit()
Map<String,Object>
getAdditionalProperties()
String
getFsType()
fsType is the filesystem type to mount.Boolean
getReadOnly()
readOnly defaults to false (read/write).ObjectReference
getSecretRef()
Represents a StorageOS persistent volume resource.String
getVolumeName()
volumeName is the human-readable name of the StorageOS volume.String
getVolumeNamespace()
volumeNamespace specifies the scope of the volume within StorageOS.void
setAdditionalProperties(Map<String,Object> additionalProperties)
void
setAdditionalProperty(String name, Object value)
void
setFsType(String fsType)
fsType is the filesystem type to mount.void
setReadOnly(Boolean readOnly)
readOnly defaults to false (read/write).void
setSecretRef(ObjectReference secretRef)
Represents a StorageOS persistent volume resource.void
setVolumeName(String volumeName)
volumeName is the human-readable name of the StorageOS volume.void
setVolumeNamespace(String volumeNamespace)
volumeNamespace specifies the scope of the volume within StorageOS.StorageOSPersistentVolumeSourceBuilder
toBuilder()
-
-
-
Constructor Detail
-
StorageOSPersistentVolumeSource
public StorageOSPersistentVolumeSource()
No args constructor for use in serialization
-
StorageOSPersistentVolumeSource
public StorageOSPersistentVolumeSource(String fsType, Boolean readOnly, ObjectReference secretRef, String volumeName, String volumeNamespace)
-
-
Method Detail
-
getFsType
public String getFsType()
fsType is the filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified.
-
setFsType
public void setFsType(String fsType)
fsType is the filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified.
-
getReadOnly
public Boolean getReadOnly()
readOnly defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts.
-
setReadOnly
public void setReadOnly(Boolean readOnly)
readOnly defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts.
-
getSecretRef
public ObjectReference getSecretRef()
Represents a StorageOS persistent volume resource.
-
setSecretRef
public void setSecretRef(ObjectReference secretRef)
Represents a StorageOS persistent volume resource.
-
getVolumeName
public String getVolumeName()
volumeName is the human-readable name of the StorageOS volume. Volume names are only unique within a namespace.
-
setVolumeName
public void setVolumeName(String volumeName)
volumeName is the human-readable name of the StorageOS volume. Volume names are only unique within a namespace.
-
getVolumeNamespace
public String getVolumeNamespace()
volumeNamespace specifies the scope of the volume within StorageOS. If no namespace is specified then the Pod's namespace will be used. This allows the Kubernetes name scoping to be mirrored within StorageOS for tighter integration. Set VolumeName to any name to override the default behaviour. Set to "default" if you are not using namespaces within StorageOS. Namespaces that do not pre-exist within StorageOS will be created.
-
setVolumeNamespace
public void setVolumeNamespace(String volumeNamespace)
volumeNamespace specifies the scope of the volume within StorageOS. If no namespace is specified then the Pod's namespace will be used. This allows the Kubernetes name scoping to be mirrored within StorageOS for tighter integration. Set VolumeName to any name to override the default behaviour. Set to "default" if you are not using namespaces within StorageOS. Namespaces that do not pre-exist within StorageOS will be created.
-
edit
public StorageOSPersistentVolumeSourceBuilder edit()
- Specified by:
edit
in interfaceio.fabric8.kubernetes.api.builder.Editable<StorageOSPersistentVolumeSourceBuilder>
-
toBuilder
public StorageOSPersistentVolumeSourceBuilder toBuilder()
-
-