Class V1AzureDiskVolumeSource
java.lang.Object
io.kubernetes.client.openapi.models.V1AzureDiskVolumeSource
@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen",
date="2024-02-02T17:56:12.287571Z[Etc/UTC]")
public class V1AzureDiskVolumeSource
extends Object
AzureDisk represents an Azure Data Disk mount on the host and bind mount to the pod.
-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncachingMode
(String cachingMode) boolean
static V1AzureDiskVolumeSource
Create an instance of V1AzureDiskVolumeSource given an JSON stringcachingMode is the Host Caching mode: None, Read Only, Read Write.diskName is the Name of the data disk in the blob storagediskURI is the URI of data disk in the blob storagefsType is Filesystem type to mount.getKind()
kind expected values are Shared: multiple blob disks per storage account Dedicated: single blob disk per storage account Managed: azure managed data disk (only in managed availability set).readOnly Defaults to false (read/write).int
hashCode()
void
setCachingMode
(String cachingMode) void
setDiskName
(String diskName) void
setDiskURI
(String diskURI) void
void
void
setReadOnly
(Boolean readOnly) toJson()
Convert an instance of V1AzureDiskVolumeSource to an JSON stringtoString()
static void
validateJsonObject
(com.google.gson.JsonObject jsonObj) Validates the JSON Object and throws an exception if issues found
-
Field Details
-
SERIALIZED_NAME_CACHING_MODE
- See Also:
-
SERIALIZED_NAME_DISK_NAME
- See Also:
-
SERIALIZED_NAME_DISK_U_R_I
- See Also:
-
SERIALIZED_NAME_FS_TYPE
- See Also:
-
SERIALIZED_NAME_KIND
- See Also:
-
SERIALIZED_NAME_READ_ONLY
- See Also:
-
openapiFields
-
openapiRequiredFields
-
-
Constructor Details
-
V1AzureDiskVolumeSource
public V1AzureDiskVolumeSource()
-
-
Method Details
-
cachingMode
-
getCachingMode
cachingMode is the Host Caching mode: None, Read Only, Read Write.- Returns:
- cachingMode
-
setCachingMode
-
diskName
-
getDiskName
diskName is the Name of the data disk in the blob storage- Returns:
- diskName
-
setDiskName
-
diskURI
-
getDiskURI
diskURI is the URI of data disk in the blob storage- Returns:
- diskURI
-
setDiskURI
-
fsType
-
getFsType
fsType is 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.- Returns:
- fsType
-
setFsType
-
kind
-
getKind
kind expected values are Shared: multiple blob disks per storage account Dedicated: single blob disk per storage account Managed: azure managed data disk (only in managed availability set). defaults to shared- Returns:
- kind
-
setKind
-
readOnly
-
getReadOnly
readOnly Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts.- Returns:
- readOnly
-
setReadOnly
-
equals
-
hashCode
public int hashCode() -
toString
-
validateJsonObject
Validates the JSON Object and throws an exception if issues found- Parameters:
jsonObj
- JSON Object- Throws:
IOException
- if the JSON Object is invalid with respect to V1AzureDiskVolumeSource
-
fromJson
Create an instance of V1AzureDiskVolumeSource given an JSON string- Parameters:
jsonString
- JSON string- Returns:
- An instance of V1AzureDiskVolumeSource
- Throws:
IOException
- if the JSON string is invalid with respect to V1AzureDiskVolumeSource
-
toJson
Convert an instance of V1AzureDiskVolumeSource to an JSON string- Returns:
- JSON string
-