Package io.kubernetes.client.proto
Interface V1.PersistentVolumeClaimSpecOrBuilder
- All Superinterfaces:
com.google.protobuf.MessageLiteOrBuilder
,com.google.protobuf.MessageOrBuilder
- All Known Implementing Classes:
V1.PersistentVolumeClaimSpec
,V1.PersistentVolumeClaimSpec.Builder
- Enclosing class:
- V1
public static interface V1.PersistentVolumeClaimSpecOrBuilder
extends com.google.protobuf.MessageOrBuilder
-
Method Summary
Modifier and TypeMethodDescriptiongetAccessModes
(int index) AccessModes contains the desired access modes the volume should have.com.google.protobuf.ByteString
getAccessModesBytes
(int index) AccessModes contains the desired access modes the volume should have.int
AccessModes contains the desired access modes the volume should have.AccessModes contains the desired access modes the volume should have.This field can be used to specify either: * An existing VolumeSnapshot object (snapshot.storage.k8s.io/VolumeSnapshot) * An existing PVC (PersistentVolumeClaim) If the provisioner or an external controller can support the specified data source, it will create a new volume based on the contents of the specified data source.This field can be used to specify either: * An existing VolumeSnapshot object (snapshot.storage.k8s.io/VolumeSnapshot) * An existing PVC (PersistentVolumeClaim) If the provisioner or an external controller can support the specified data source, it will create a new volume based on the contents of the specified data source.Specifies the object from which to populate the volume with data, if a non-empty volume is desired.Specifies the object from which to populate the volume with data, if a non-empty volume is desired.Resources represents the minimum resources the volume should have.Resources represents the minimum resources the volume should have.A label query over volumes to consider for binding.A label query over volumes to consider for binding.Name of the StorageClass required by the claim.com.google.protobuf.ByteString
Name of the StorageClass required by the claim.volumeMode defines what type of volume is required by the claim.com.google.protobuf.ByteString
volumeMode defines what type of volume is required by the claim.VolumeName is the binding reference to the PersistentVolume backing this claim.com.google.protobuf.ByteString
VolumeName is the binding reference to the PersistentVolume backing this claim.boolean
This field can be used to specify either: * An existing VolumeSnapshot object (snapshot.storage.k8s.io/VolumeSnapshot) * An existing PVC (PersistentVolumeClaim) If the provisioner or an external controller can support the specified data source, it will create a new volume based on the contents of the specified data source.boolean
Specifies the object from which to populate the volume with data, if a non-empty volume is desired.boolean
Resources represents the minimum resources the volume should have.boolean
A label query over volumes to consider for binding.boolean
Name of the StorageClass required by the claim.boolean
volumeMode defines what type of volume is required by the claim.boolean
VolumeName is the binding reference to the PersistentVolume backing this claim.Methods inherited from interface com.google.protobuf.MessageLiteOrBuilder
isInitialized
Methods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getDefaultInstanceForType, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
getAccessModesList
AccessModes contains the desired access modes the volume should have. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#access-modes-1 +optional
repeated string accessModes = 1;
-
getAccessModesCount
int getAccessModesCount()AccessModes contains the desired access modes the volume should have. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#access-modes-1 +optional
repeated string accessModes = 1;
-
getAccessModes
AccessModes contains the desired access modes the volume should have. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#access-modes-1 +optional
repeated string accessModes = 1;
-
getAccessModesBytes
com.google.protobuf.ByteString getAccessModesBytes(int index) AccessModes contains the desired access modes the volume should have. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#access-modes-1 +optional
repeated string accessModes = 1;
-
hasSelector
boolean hasSelector()A label query over volumes to consider for binding. +optional
optional .k8s.io.apimachinery.pkg.apis.meta.v1.LabelSelector selector = 4;
-
getSelector
Meta.LabelSelector getSelector()A label query over volumes to consider for binding. +optional
optional .k8s.io.apimachinery.pkg.apis.meta.v1.LabelSelector selector = 4;
-
getSelectorOrBuilder
Meta.LabelSelectorOrBuilder getSelectorOrBuilder()A label query over volumes to consider for binding. +optional
optional .k8s.io.apimachinery.pkg.apis.meta.v1.LabelSelector selector = 4;
-
hasResources
boolean hasResources()Resources represents the minimum resources the volume should have. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#resources +optional
optional .k8s.io.api.core.v1.ResourceRequirements resources = 2;
-
getResources
V1.ResourceRequirements getResources()Resources represents the minimum resources the volume should have. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#resources +optional
optional .k8s.io.api.core.v1.ResourceRequirements resources = 2;
-
getResourcesOrBuilder
V1.ResourceRequirementsOrBuilder getResourcesOrBuilder()Resources represents the minimum resources the volume should have. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#resources +optional
optional .k8s.io.api.core.v1.ResourceRequirements resources = 2;
-
hasVolumeName
boolean hasVolumeName()VolumeName is the binding reference to the PersistentVolume backing this claim. +optional
optional string volumeName = 3;
-
getVolumeName
String getVolumeName()VolumeName is the binding reference to the PersistentVolume backing this claim. +optional
optional string volumeName = 3;
-
getVolumeNameBytes
com.google.protobuf.ByteString getVolumeNameBytes()VolumeName is the binding reference to the PersistentVolume backing this claim. +optional
optional string volumeName = 3;
-
hasStorageClassName
boolean hasStorageClassName()Name of the StorageClass required by the claim. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#class-1 +optional
optional string storageClassName = 5;
-
getStorageClassName
String getStorageClassName()Name of the StorageClass required by the claim. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#class-1 +optional
optional string storageClassName = 5;
-
getStorageClassNameBytes
com.google.protobuf.ByteString getStorageClassNameBytes()Name of the StorageClass required by the claim. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#class-1 +optional
optional string storageClassName = 5;
-
hasVolumeMode
boolean hasVolumeMode()volumeMode defines what type of volume is required by the claim. Value of Filesystem is implied when not included in claim spec. +optional
optional string volumeMode = 6;
-
getVolumeMode
String getVolumeMode()volumeMode defines what type of volume is required by the claim. Value of Filesystem is implied when not included in claim spec. +optional
optional string volumeMode = 6;
-
getVolumeModeBytes
com.google.protobuf.ByteString getVolumeModeBytes()volumeMode defines what type of volume is required by the claim. Value of Filesystem is implied when not included in claim spec. +optional
optional string volumeMode = 6;
-
hasDataSource
boolean hasDataSource()This field can be used to specify either: * An existing VolumeSnapshot object (snapshot.storage.k8s.io/VolumeSnapshot) * An existing PVC (PersistentVolumeClaim) If the provisioner or an external controller can support the specified data source, it will create a new volume based on the contents of the specified data source. If the AnyVolumeDataSource feature gate is enabled, this field will always have the same contents as the DataSourceRef field. +optional
optional .k8s.io.api.core.v1.TypedLocalObjectReference dataSource = 7;
-
getDataSource
V1.TypedLocalObjectReference getDataSource()This field can be used to specify either: * An existing VolumeSnapshot object (snapshot.storage.k8s.io/VolumeSnapshot) * An existing PVC (PersistentVolumeClaim) If the provisioner or an external controller can support the specified data source, it will create a new volume based on the contents of the specified data source. If the AnyVolumeDataSource feature gate is enabled, this field will always have the same contents as the DataSourceRef field. +optional
optional .k8s.io.api.core.v1.TypedLocalObjectReference dataSource = 7;
-
getDataSourceOrBuilder
V1.TypedLocalObjectReferenceOrBuilder getDataSourceOrBuilder()This field can be used to specify either: * An existing VolumeSnapshot object (snapshot.storage.k8s.io/VolumeSnapshot) * An existing PVC (PersistentVolumeClaim) If the provisioner or an external controller can support the specified data source, it will create a new volume based on the contents of the specified data source. If the AnyVolumeDataSource feature gate is enabled, this field will always have the same contents as the DataSourceRef field. +optional
optional .k8s.io.api.core.v1.TypedLocalObjectReference dataSource = 7;
-
hasDataSourceRef
boolean hasDataSourceRef()Specifies the object from which to populate the volume with data, if a non-empty volume is desired. This may be any local object from a non-empty API group (non core object) or a PersistentVolumeClaim object. When this field is specified, volume binding will only succeed if the type of the specified object matches some installed volume populator or dynamic provisioner. This field will replace the functionality of the DataSource field and as such if both fields are non-empty, they must have the same value. For backwards compatibility, both fields (DataSource and DataSourceRef) will be set to the same value automatically if one of them is empty and the other is non-empty. There are two important differences between DataSource and DataSourceRef: * While DataSource only allows two specific types of objects, DataSourceRef allows any non-core object, as well as PersistentVolumeClaim objects. * While DataSource ignores disallowed values (dropping them), DataSourceRef preserves all values, and generates an error if a disallowed value is specified. (Alpha) Using this field requires the AnyVolumeDataSource feature gate to be enabled. +optional
optional .k8s.io.api.core.v1.TypedLocalObjectReference dataSourceRef = 8;
-
getDataSourceRef
V1.TypedLocalObjectReference getDataSourceRef()Specifies the object from which to populate the volume with data, if a non-empty volume is desired. This may be any local object from a non-empty API group (non core object) or a PersistentVolumeClaim object. When this field is specified, volume binding will only succeed if the type of the specified object matches some installed volume populator or dynamic provisioner. This field will replace the functionality of the DataSource field and as such if both fields are non-empty, they must have the same value. For backwards compatibility, both fields (DataSource and DataSourceRef) will be set to the same value automatically if one of them is empty and the other is non-empty. There are two important differences between DataSource and DataSourceRef: * While DataSource only allows two specific types of objects, DataSourceRef allows any non-core object, as well as PersistentVolumeClaim objects. * While DataSource ignores disallowed values (dropping them), DataSourceRef preserves all values, and generates an error if a disallowed value is specified. (Alpha) Using this field requires the AnyVolumeDataSource feature gate to be enabled. +optional
optional .k8s.io.api.core.v1.TypedLocalObjectReference dataSourceRef = 8;
-
getDataSourceRefOrBuilder
V1.TypedLocalObjectReferenceOrBuilder getDataSourceRefOrBuilder()Specifies the object from which to populate the volume with data, if a non-empty volume is desired. This may be any local object from a non-empty API group (non core object) or a PersistentVolumeClaim object. When this field is specified, volume binding will only succeed if the type of the specified object matches some installed volume populator or dynamic provisioner. This field will replace the functionality of the DataSource field and as such if both fields are non-empty, they must have the same value. For backwards compatibility, both fields (DataSource and DataSourceRef) will be set to the same value automatically if one of them is empty and the other is non-empty. There are two important differences between DataSource and DataSourceRef: * While DataSource only allows two specific types of objects, DataSourceRef allows any non-core object, as well as PersistentVolumeClaim objects. * While DataSource ignores disallowed values (dropping them), DataSourceRef preserves all values, and generates an error if a disallowed value is specified. (Alpha) Using this field requires the AnyVolumeDataSource feature gate to be enabled. +optional
optional .k8s.io.api.core.v1.TypedLocalObjectReference dataSourceRef = 8;
-