Class V1ISCSIVolumeSource
java.lang.Object
io.kubernetes.client.openapi.models.V1ISCSIVolumeSource
@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen",
date="2024-02-02T17:56:12.287571Z[Etc/UTC]")
public class V1ISCSIVolumeSource
extends Object
Represents an ISCSI disk. ISCSI volumes can only be mounted as read/write once. ISCSI volumes support ownership management and SELinux relabeling.
-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaddPortalsItem
(String portalsItem) chapAuthDiscovery
(Boolean chapAuthDiscovery) chapAuthSession
(Boolean chapAuthSession) boolean
static V1ISCSIVolumeSource
Create an instance of V1ISCSIVolumeSource given an JSON stringchapAuthDiscovery defines whether support iSCSI Discovery CHAP authenticationchapAuthSession defines whether support iSCSI Session CHAP authenticationfsType is the filesystem type of the volume that you want to mount.initiatorName is the custom iSCSI Initiator Name.getIqn()
iqn is the target iSCSI Qualified Name.iscsiInterface is the interface Name that uses an iSCSI transport.getLun()
lun represents iSCSI Target Lun number.portals is the iSCSI Target Portal List.readOnly here will force the ReadOnly setting in VolumeMounts.Get secretReftargetPortal is iSCSI Target Portal.int
hashCode()
initiatorName
(String initiatorName) iscsiInterface
(String iscsiInterface) secretRef
(V1LocalObjectReference secretRef) void
setChapAuthDiscovery
(Boolean chapAuthDiscovery) void
setChapAuthSession
(Boolean chapAuthSession) void
void
setInitiatorName
(String initiatorName) void
void
setIscsiInterface
(String iscsiInterface) void
void
setPortals
(List<String> portals) void
setReadOnly
(Boolean readOnly) void
setSecretRef
(V1LocalObjectReference secretRef) void
setTargetPortal
(String targetPortal) targetPortal
(String targetPortal) toJson()
Convert an instance of V1ISCSIVolumeSource 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_CHAP_AUTH_DISCOVERY
- See Also:
-
SERIALIZED_NAME_CHAP_AUTH_SESSION
- See Also:
-
SERIALIZED_NAME_FS_TYPE
- See Also:
-
SERIALIZED_NAME_INITIATOR_NAME
- See Also:
-
SERIALIZED_NAME_IQN
- See Also:
-
SERIALIZED_NAME_ISCSI_INTERFACE
- See Also:
-
SERIALIZED_NAME_LUN
- See Also:
-
SERIALIZED_NAME_PORTALS
- See Also:
-
SERIALIZED_NAME_READ_ONLY
- See Also:
-
SERIALIZED_NAME_SECRET_REF
- See Also:
-
SERIALIZED_NAME_TARGET_PORTAL
- See Also:
-
openapiFields
-
openapiRequiredFields
-
-
Constructor Details
-
V1ISCSIVolumeSource
public V1ISCSIVolumeSource()
-
-
Method Details
-
chapAuthDiscovery
-
getChapAuthDiscovery
chapAuthDiscovery defines whether support iSCSI Discovery CHAP authentication- Returns:
- chapAuthDiscovery
-
setChapAuthDiscovery
-
chapAuthSession
-
getChapAuthSession
chapAuthSession defines whether support iSCSI Session CHAP authentication- Returns:
- chapAuthSession
-
setChapAuthSession
-
fsType
-
getFsType
fsType is the filesystem type of the volume that you want to mount. Tip: Ensure that the filesystem type is supported by the host operating system. Examples: \"ext4\", \"xfs\", \"ntfs\". Implicitly inferred to be \"ext4\" if unspecified. More info: https://kubernetes.io/docs/concepts/storage/volumes#iscsi- Returns:
- fsType
-
setFsType
-
initiatorName
-
getInitiatorName
initiatorName is the custom iSCSI Initiator Name. If initiatorName is specified with iscsiInterface simultaneously, new iSCSI interface <target portal>:<volume name> will be created for the connection.- Returns:
- initiatorName
-
setInitiatorName
-
iqn
-
getIqn
iqn is the target iSCSI Qualified Name.- Returns:
- iqn
-
setIqn
-
iscsiInterface
-
getIscsiInterface
iscsiInterface is the interface Name that uses an iSCSI transport. Defaults to 'default' (tcp).- Returns:
- iscsiInterface
-
setIscsiInterface
-
lun
-
getLun
lun represents iSCSI Target Lun number.- Returns:
- lun
-
setLun
-
portals
-
addPortalsItem
-
getPortals
portals is the iSCSI Target Portal List. The portal is either an IP or ip_addr:port if the port is other than default (typically TCP ports 860 and 3260).- Returns:
- portals
-
setPortals
-
readOnly
-
getReadOnly
readOnly here will force the ReadOnly setting in VolumeMounts. Defaults to false.- Returns:
- readOnly
-
setReadOnly
-
secretRef
-
getSecretRef
Get secretRef- Returns:
- secretRef
-
setSecretRef
-
targetPortal
-
getTargetPortal
targetPortal is iSCSI Target Portal. The Portal is either an IP or ip_addr:port if the port is other than default (typically TCP ports 860 and 3260).- Returns:
- targetPortal
-
setTargetPortal
-
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 V1ISCSIVolumeSource
-
fromJson
Create an instance of V1ISCSIVolumeSource given an JSON string- Parameters:
jsonString
- JSON string- Returns:
- An instance of V1ISCSIVolumeSource
- Throws:
IOException
- if the JSON string is invalid with respect to V1ISCSIVolumeSource
-
toJson
Convert an instance of V1ISCSIVolumeSource to an JSON string- Returns:
- JSON string
-