Package k8s.io.api.core.v1
Interface Generated.PersistentVolumeSpecOrBuilder
-
- All Superinterfaces:
com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder
- All Known Implementing Classes:
Generated.PersistentVolumeSpec,Generated.PersistentVolumeSpec.Builder
- Enclosing class:
- Generated
public static interface Generated.PersistentVolumeSpecOrBuilder extends com.google.protobuf.MessageOrBuilder
-
-
Method Summary
All Methods Instance Methods Abstract Methods Deprecated Methods Modifier and Type Method Description booleancontainsCapacity(String key)capacity is the description of the persistent volume's resources and capacity.StringgetAccessModes(int index)accessModes contains all ways the volume can be mounted.com.google.protobuf.ByteStringgetAccessModesBytes(int index)accessModes contains all ways the volume can be mounted.intgetAccessModesCount()accessModes contains all ways the volume can be mounted.List<String>getAccessModesList()accessModes contains all ways the volume can be mounted.Map<String,Generated.Quantity>getCapacity()Deprecated.intgetCapacityCount()capacity is the description of the persistent volume's resources and capacity.Map<String,Generated.Quantity>getCapacityMap()capacity is the description of the persistent volume's resources and capacity.Generated.QuantitygetCapacityOrDefault(String key, Generated.Quantity defaultValue)capacity is the description of the persistent volume's resources and capacity.Generated.QuantitygetCapacityOrThrow(String key)capacity is the description of the persistent volume's resources and capacity.Generated.ObjectReferencegetClaimRef()claimRef is part of a bi-directional binding between PersistentVolume and PersistentVolumeClaim.Generated.ObjectReferenceOrBuildergetClaimRefOrBuilder()claimRef is part of a bi-directional binding between PersistentVolume and PersistentVolumeClaim.StringgetMountOptions(int index)mountOptions is the list of mount options, e.g.com.google.protobuf.ByteStringgetMountOptionsBytes(int index)mountOptions is the list of mount options, e.g.intgetMountOptionsCount()mountOptions is the list of mount options, e.g.List<String>getMountOptionsList()mountOptions is the list of mount options, e.g.Generated.VolumeNodeAffinitygetNodeAffinity()nodeAffinity defines constraints that limit what nodes this volume can be accessed from.Generated.VolumeNodeAffinityOrBuildergetNodeAffinityOrBuilder()nodeAffinity defines constraints that limit what nodes this volume can be accessed from.StringgetPersistentVolumeReclaimPolicy()persistentVolumeReclaimPolicy defines what happens to a persistent volume when released from its claim.com.google.protobuf.ByteStringgetPersistentVolumeReclaimPolicyBytes()persistentVolumeReclaimPolicy defines what happens to a persistent volume when released from its claim.Generated.PersistentVolumeSourcegetPersistentVolumeSource()persistentVolumeSource is the actual volume backing the persistent volume.Generated.PersistentVolumeSourceOrBuildergetPersistentVolumeSourceOrBuilder()persistentVolumeSource is the actual volume backing the persistent volume.StringgetStorageClassName()storageClassName is the name of StorageClass to which this persistent volume belongs.com.google.protobuf.ByteStringgetStorageClassNameBytes()storageClassName is the name of StorageClass to which this persistent volume belongs.StringgetVolumeAttributesClassName()Name of VolumeAttributesClass to which this persistent volume belongs.com.google.protobuf.ByteStringgetVolumeAttributesClassNameBytes()Name of VolumeAttributesClass to which this persistent volume belongs.StringgetVolumeMode()volumeMode defines if a volume is intended to be used with a formatted filesystem or to remain in raw block state.com.google.protobuf.ByteStringgetVolumeModeBytes()volumeMode defines if a volume is intended to be used with a formatted filesystem or to remain in raw block state.booleanhasClaimRef()claimRef is part of a bi-directional binding between PersistentVolume and PersistentVolumeClaim.booleanhasNodeAffinity()nodeAffinity defines constraints that limit what nodes this volume can be accessed from.booleanhasPersistentVolumeReclaimPolicy()persistentVolumeReclaimPolicy defines what happens to a persistent volume when released from its claim.booleanhasPersistentVolumeSource()persistentVolumeSource is the actual volume backing the persistent volume.booleanhasStorageClassName()storageClassName is the name of StorageClass to which this persistent volume belongs.booleanhasVolumeAttributesClassName()Name of VolumeAttributesClass to which this persistent volume belongs.booleanhasVolumeMode()volumeMode defines if a volume is intended to be used with a formatted filesystem or to remain in raw block state.-
Methods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getDefaultInstanceForType, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
-
-
-
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;
-
getCapacity
@Deprecated Map<String,Generated.Quantity> getCapacity()
Deprecated.UsegetCapacityMap()instead.
-
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.
-
-