Package net.stickycode.kuuty.model.v18
Class IoK8sApiCoreV1CSIVolumeSource
- java.lang.Object
-
- net.stickycode.kuuty.model.v18.IoK8sApiCoreV1CSIVolumeSource
-
@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen", date="2020-11-26T11:01:11.402583+13:00[Pacific/Auckland]") public class IoK8sApiCoreV1CSIVolumeSource extends Object
Represents a source location of a volume to mount, managed by an external CSI driver
-
-
Field Summary
Fields Modifier and Type Field Description static StringJSON_PROPERTY_DRIVERstatic StringJSON_PROPERTY_FS_TYPEstatic StringJSON_PROPERTY_NODE_PUBLISH_SECRET_REFstatic StringJSON_PROPERTY_READ_ONLYstatic StringJSON_PROPERTY_VOLUME_ATTRIBUTES
-
Constructor Summary
Constructors Constructor Description IoK8sApiCoreV1CSIVolumeSource()
-
Method Summary
-
-
-
Field Detail
-
JSON_PROPERTY_DRIVER
public static final String JSON_PROPERTY_DRIVER
- See Also:
- Constant Field Values
-
JSON_PROPERTY_FS_TYPE
public static final String JSON_PROPERTY_FS_TYPE
- See Also:
- Constant Field Values
-
JSON_PROPERTY_NODE_PUBLISH_SECRET_REF
public static final String JSON_PROPERTY_NODE_PUBLISH_SECRET_REF
- See Also:
- Constant Field Values
-
JSON_PROPERTY_READ_ONLY
public static final String JSON_PROPERTY_READ_ONLY
- See Also:
- Constant Field Values
-
JSON_PROPERTY_VOLUME_ATTRIBUTES
public static final String JSON_PROPERTY_VOLUME_ATTRIBUTES
- See Also:
- Constant Field Values
-
-
Method Detail
-
driver
public IoK8sApiCoreV1CSIVolumeSource driver(String driver)
-
getDriver
public String getDriver()
Driver is the name of the CSI driver that handles this volume. Consult with your admin for the correct name as registered in the cluster.- Returns:
- driver
-
setDriver
public void setDriver(String driver)
-
fsType
public IoK8sApiCoreV1CSIVolumeSource fsType(String fsType)
-
getFsType
@Nullable public String getFsType()
Filesystem type to mount. Ex. \"ext4\", \"xfs\", \"ntfs\". If not provided, the empty value is passed to the associated CSI driver which will determine the default filesystem to apply.- Returns:
- fsType
-
setFsType
public void setFsType(String fsType)
-
nodePublishSecretRef
public IoK8sApiCoreV1CSIVolumeSource nodePublishSecretRef(IoK8sApiCoreV1LocalObjectReference nodePublishSecretRef)
-
getNodePublishSecretRef
@Nullable public IoK8sApiCoreV1LocalObjectReference getNodePublishSecretRef()
Get nodePublishSecretRef- Returns:
- nodePublishSecretRef
-
setNodePublishSecretRef
public void setNodePublishSecretRef(IoK8sApiCoreV1LocalObjectReference nodePublishSecretRef)
-
readOnly
public IoK8sApiCoreV1CSIVolumeSource readOnly(Boolean readOnly)
-
getReadOnly
@Nullable public Boolean getReadOnly()
Specifies a read-only configuration for the volume. Defaults to false (read/write).- Returns:
- readOnly
-
setReadOnly
public void setReadOnly(Boolean readOnly)
-
volumeAttributes
public IoK8sApiCoreV1CSIVolumeSource volumeAttributes(Map<String,String> volumeAttributes)
-
putVolumeAttributesItem
public IoK8sApiCoreV1CSIVolumeSource putVolumeAttributesItem(String key, String volumeAttributesItem)
-
getVolumeAttributes
@Nullable public Map<String,String> getVolumeAttributes()
VolumeAttributes stores driver-specific properties that are passed to the CSI driver. Consult your driver's documentation for supported values.- Returns:
- volumeAttributes
-
-