Interface Generated.PersistentVolumeSpecOrBuilder

    • Method Detail

      • getCapacityCount

        int getCapacityCount()
         capacity is the description of the persistent volume's resources and capacity.
         More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#capacity
         +optional
         
        map<string, .k8s.io.apimachinery.pkg.api.resource.Quantity> capacity = 1;
      • containsCapacity

        boolean containsCapacity​(String key)
         capacity is the description of the persistent volume's resources and capacity.
         More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#capacity
         +optional
         
        map<string, .k8s.io.apimachinery.pkg.api.resource.Quantity> capacity = 1;
      • getCapacityMap

        Map<String,​Generated.Quantity> getCapacityMap()
         capacity is the description of the persistent volume's resources and capacity.
         More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#capacity
         +optional
         
        map<string, .k8s.io.apimachinery.pkg.api.resource.Quantity> capacity = 1;
      • getCapacityOrDefault

        Generated.Quantity getCapacityOrDefault​(String key,
                                                Generated.Quantity defaultValue)
         capacity is the description of the persistent volume's resources and capacity.
         More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#capacity
         +optional
         
        map<string, .k8s.io.apimachinery.pkg.api.resource.Quantity> capacity = 1;
      • getCapacityOrThrow

        Generated.Quantity getCapacityOrThrow​(String key)
         capacity is the description of the persistent volume's resources and capacity.
         More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#capacity
         +optional
         
        map<string, .k8s.io.apimachinery.pkg.api.resource.Quantity> capacity = 1;
      • hasPersistentVolumeSource

        boolean hasPersistentVolumeSource()
         persistentVolumeSource is the actual volume backing the persistent volume.
         
        optional .k8s.io.api.core.v1.PersistentVolumeSource persistentVolumeSource = 2;
        Returns:
        Whether the persistentVolumeSource field is set.
      • getPersistentVolumeSource

        Generated.PersistentVolumeSource getPersistentVolumeSource()
         persistentVolumeSource is the actual volume backing the persistent volume.
         
        optional .k8s.io.api.core.v1.PersistentVolumeSource persistentVolumeSource = 2;
        Returns:
        The persistentVolumeSource.
      • getPersistentVolumeSourceOrBuilder

        Generated.PersistentVolumeSourceOrBuilder getPersistentVolumeSourceOrBuilder()
         persistentVolumeSource is the actual volume backing the persistent volume.
         
        optional .k8s.io.api.core.v1.PersistentVolumeSource persistentVolumeSource = 2;
      • getAccessModesList

        List<String> getAccessModesList()
         accessModes contains all ways the volume can be mounted.
         More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#access-modes
         +optional
         +listType=atomic
         
        repeated string accessModes = 3;
        Returns:
        A list containing the accessModes.
      • getAccessModesCount

        int getAccessModesCount()
         accessModes contains all ways the volume can be mounted.
         More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#access-modes
         +optional
         +listType=atomic
         
        repeated string accessModes = 3;
        Returns:
        The count of accessModes.
      • getAccessModes

        String getAccessModes​(int index)
         accessModes contains all ways the volume can be mounted.
         More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#access-modes
         +optional
         +listType=atomic
         
        repeated string accessModes = 3;
        Parameters:
        index - The index of the element to return.
        Returns:
        The accessModes at the given index.
      • getAccessModesBytes

        com.google.protobuf.ByteString getAccessModesBytes​(int index)
         accessModes contains all ways the volume can be mounted.
         More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#access-modes
         +optional
         +listType=atomic
         
        repeated string accessModes = 3;
        Parameters:
        index - The index of the value to return.
        Returns:
        The bytes of the accessModes at the given index.
      • hasClaimRef

        boolean hasClaimRef()
         claimRef is part of a bi-directional binding between PersistentVolume and PersistentVolumeClaim.
         Expected to be non-nil when bound.
         claim.VolumeName is the authoritative bind between PV and PVC.
         More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#binding
         +optional
         +structType=granular
         
        optional .k8s.io.api.core.v1.ObjectReference claimRef = 4;
        Returns:
        Whether the claimRef field is set.
      • getClaimRef

        Generated.ObjectReference getClaimRef()
         claimRef is part of a bi-directional binding between PersistentVolume and PersistentVolumeClaim.
         Expected to be non-nil when bound.
         claim.VolumeName is the authoritative bind between PV and PVC.
         More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#binding
         +optional
         +structType=granular
         
        optional .k8s.io.api.core.v1.ObjectReference claimRef = 4;
        Returns:
        The claimRef.
      • getClaimRefOrBuilder

        Generated.ObjectReferenceOrBuilder getClaimRefOrBuilder()
         claimRef is part of a bi-directional binding between PersistentVolume and PersistentVolumeClaim.
         Expected to be non-nil when bound.
         claim.VolumeName is the authoritative bind between PV and PVC.
         More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#binding
         +optional
         +structType=granular
         
        optional .k8s.io.api.core.v1.ObjectReference claimRef = 4;
      • hasPersistentVolumeReclaimPolicy

        boolean hasPersistentVolumeReclaimPolicy()
         persistentVolumeReclaimPolicy defines what happens to a persistent volume when released from its claim.
         Valid options are Retain (default for manually created PersistentVolumes), Delete (default
         for dynamically provisioned PersistentVolumes), and Recycle (deprecated).
         Recycle must be supported by the volume plugin underlying this PersistentVolume.
         More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#reclaiming
         +optional
         
        optional string persistentVolumeReclaimPolicy = 5;
        Returns:
        Whether the persistentVolumeReclaimPolicy field is set.
      • getPersistentVolumeReclaimPolicy

        String getPersistentVolumeReclaimPolicy()
         persistentVolumeReclaimPolicy defines what happens to a persistent volume when released from its claim.
         Valid options are Retain (default for manually created PersistentVolumes), Delete (default
         for dynamically provisioned PersistentVolumes), and Recycle (deprecated).
         Recycle must be supported by the volume plugin underlying this PersistentVolume.
         More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#reclaiming
         +optional
         
        optional string persistentVolumeReclaimPolicy = 5;
        Returns:
        The persistentVolumeReclaimPolicy.
      • getPersistentVolumeReclaimPolicyBytes

        com.google.protobuf.ByteString getPersistentVolumeReclaimPolicyBytes()
         persistentVolumeReclaimPolicy defines what happens to a persistent volume when released from its claim.
         Valid options are Retain (default for manually created PersistentVolumes), Delete (default
         for dynamically provisioned PersistentVolumes), and Recycle (deprecated).
         Recycle must be supported by the volume plugin underlying this PersistentVolume.
         More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#reclaiming
         +optional
         
        optional string persistentVolumeReclaimPolicy = 5;
        Returns:
        The bytes for persistentVolumeReclaimPolicy.
      • hasStorageClassName

        boolean hasStorageClassName()
         storageClassName is the name of StorageClass to which this persistent volume belongs. Empty value
         means that this volume does not belong to any StorageClass.
         +optional
         
        optional string storageClassName = 6;
        Returns:
        Whether the storageClassName field is set.
      • getStorageClassName

        String getStorageClassName()
         storageClassName is the name of StorageClass to which this persistent volume belongs. Empty value
         means that this volume does not belong to any StorageClass.
         +optional
         
        optional string storageClassName = 6;
        Returns:
        The storageClassName.
      • getStorageClassNameBytes

        com.google.protobuf.ByteString getStorageClassNameBytes()
         storageClassName is the name of StorageClass to which this persistent volume belongs. Empty value
         means that this volume does not belong to any StorageClass.
         +optional
         
        optional string storageClassName = 6;
        Returns:
        The bytes for storageClassName.
      • getMountOptionsList

        List<String> getMountOptionsList()
         mountOptions is the list of mount options, e.g. ["ro", "soft"]. Not validated - mount will
         simply fail if one is invalid.
         More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes/#mount-options
         +optional
         +listType=atomic
         
        repeated string mountOptions = 7;
        Returns:
        A list containing the mountOptions.
      • getMountOptionsCount

        int getMountOptionsCount()
         mountOptions is the list of mount options, e.g. ["ro", "soft"]. Not validated - mount will
         simply fail if one is invalid.
         More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes/#mount-options
         +optional
         +listType=atomic
         
        repeated string mountOptions = 7;
        Returns:
        The count of mountOptions.
      • getMountOptions

        String getMountOptions​(int index)
         mountOptions is the list of mount options, e.g. ["ro", "soft"]. Not validated - mount will
         simply fail if one is invalid.
         More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes/#mount-options
         +optional
         +listType=atomic
         
        repeated string mountOptions = 7;
        Parameters:
        index - The index of the element to return.
        Returns:
        The mountOptions at the given index.
      • getMountOptionsBytes

        com.google.protobuf.ByteString getMountOptionsBytes​(int index)
         mountOptions is the list of mount options, e.g. ["ro", "soft"]. Not validated - mount will
         simply fail if one is invalid.
         More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes/#mount-options
         +optional
         +listType=atomic
         
        repeated string mountOptions = 7;
        Parameters:
        index - The index of the value to return.
        Returns:
        The bytes of the mountOptions at the given index.
      • hasVolumeMode

        boolean hasVolumeMode()
         volumeMode defines if a volume is intended to be used with a formatted filesystem
         or to remain in raw block state. Value of Filesystem is implied when not included in spec.
         +optional
         
        optional string volumeMode = 8;
        Returns:
        Whether the volumeMode field is set.
      • getVolumeMode

        String getVolumeMode()
         volumeMode defines if a volume is intended to be used with a formatted filesystem
         or to remain in raw block state. Value of Filesystem is implied when not included in spec.
         +optional
         
        optional string volumeMode = 8;
        Returns:
        The volumeMode.
      • getVolumeModeBytes

        com.google.protobuf.ByteString getVolumeModeBytes()
         volumeMode defines if a volume is intended to be used with a formatted filesystem
         or to remain in raw block state. Value of Filesystem is implied when not included in spec.
         +optional
         
        optional string volumeMode = 8;
        Returns:
        The bytes for volumeMode.
      • hasNodeAffinity

        boolean hasNodeAffinity()
         nodeAffinity defines constraints that limit what nodes this volume can be accessed from.
         This field influences the scheduling of pods that use this volume.
         +optional
         
        optional .k8s.io.api.core.v1.VolumeNodeAffinity nodeAffinity = 9;
        Returns:
        Whether the nodeAffinity field is set.
      • getNodeAffinity

        Generated.VolumeNodeAffinity getNodeAffinity()
         nodeAffinity defines constraints that limit what nodes this volume can be accessed from.
         This field influences the scheduling of pods that use this volume.
         +optional
         
        optional .k8s.io.api.core.v1.VolumeNodeAffinity nodeAffinity = 9;
        Returns:
        The nodeAffinity.
      • getNodeAffinityOrBuilder

        Generated.VolumeNodeAffinityOrBuilder getNodeAffinityOrBuilder()
         nodeAffinity defines constraints that limit what nodes this volume can be accessed from.
         This field influences the scheduling of pods that use this volume.
         +optional
         
        optional .k8s.io.api.core.v1.VolumeNodeAffinity nodeAffinity = 9;
      • hasVolumeAttributesClassName

        boolean hasVolumeAttributesClassName()
         Name of VolumeAttributesClass to which this persistent volume belongs. Empty value
         is not allowed. When this field is not set, it indicates that this volume does not belong to any
         VolumeAttributesClass. This field is mutable and can be changed by the CSI driver
         after a volume has been updated successfully to a new class.
         For an unbound PersistentVolume, the volumeAttributesClassName will be matched with unbound
         PersistentVolumeClaims during the binding process.
         This is a beta field and requires enabling VolumeAttributesClass feature (off by default).
         +featureGate=VolumeAttributesClass
         +optional
         
        optional string volumeAttributesClassName = 10;
        Returns:
        Whether the volumeAttributesClassName field is set.
      • getVolumeAttributesClassName

        String getVolumeAttributesClassName()
         Name of VolumeAttributesClass to which this persistent volume belongs. Empty value
         is not allowed. When this field is not set, it indicates that this volume does not belong to any
         VolumeAttributesClass. This field is mutable and can be changed by the CSI driver
         after a volume has been updated successfully to a new class.
         For an unbound PersistentVolume, the volumeAttributesClassName will be matched with unbound
         PersistentVolumeClaims during the binding process.
         This is a beta field and requires enabling VolumeAttributesClass feature (off by default).
         +featureGate=VolumeAttributesClass
         +optional
         
        optional string volumeAttributesClassName = 10;
        Returns:
        The volumeAttributesClassName.
      • getVolumeAttributesClassNameBytes

        com.google.protobuf.ByteString getVolumeAttributesClassNameBytes()
         Name of VolumeAttributesClass to which this persistent volume belongs. Empty value
         is not allowed. When this field is not set, it indicates that this volume does not belong to any
         VolumeAttributesClass. This field is mutable and can be changed by the CSI driver
         after a volume has been updated successfully to a new class.
         For an unbound PersistentVolume, the volumeAttributesClassName will be matched with unbound
         PersistentVolumeClaims during the binding process.
         This is a beta field and requires enabling VolumeAttributesClass feature (off by default).
         +featureGate=VolumeAttributesClass
         +optional
         
        optional string volumeAttributesClassName = 10;
        Returns:
        The bytes for volumeAttributesClassName.