Name | Type | Description | Notes |
---|---|---|---|
AccessModes | Pointer to []V1PersistentVolumeAccessMode | AccessModes contains the desired access modes the volume should have. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#access-modes-1 | [optional] |
Resources | Pointer to V1ResourceRequirements | [optional] | |
Selector | Pointer to V1LabelSelector | [optional] | |
StorageClassName | Pointer to string | Name of the StorageClass required by the claim. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#class-1 | [optional] |
VolumeMode | Pointer to V1PersistentVolumeMode | [optional] | |
VolumeName | Pointer to string | VolumeName is the binding reference to the PersistentVolume backing this claim. | [optional] |
func NewV1PersistentVolumeClaimSpec() *V1PersistentVolumeClaimSpec
NewV1PersistentVolumeClaimSpec instantiates a new V1PersistentVolumeClaimSpec object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed
func NewV1PersistentVolumeClaimSpecWithDefaults() *V1PersistentVolumeClaimSpec
NewV1PersistentVolumeClaimSpecWithDefaults instantiates a new V1PersistentVolumeClaimSpec object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set
func (o *V1PersistentVolumeClaimSpec) GetAccessModes() []V1PersistentVolumeAccessMode
GetAccessModes returns the AccessModes field if non-nil, zero value otherwise.
func (o *V1PersistentVolumeClaimSpec) GetAccessModesOk() (*[]V1PersistentVolumeAccessMode, bool)
GetAccessModesOk returns a tuple with the AccessModes field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *V1PersistentVolumeClaimSpec) SetAccessModes(v []V1PersistentVolumeAccessMode)
SetAccessModes sets AccessModes field to given value.
func (o *V1PersistentVolumeClaimSpec) HasAccessModes() bool
HasAccessModes returns a boolean if a field has been set.
func (o *V1PersistentVolumeClaimSpec) GetResources() V1ResourceRequirements
GetResources returns the Resources field if non-nil, zero value otherwise.
func (o *V1PersistentVolumeClaimSpec) GetResourcesOk() (*V1ResourceRequirements, bool)
GetResourcesOk returns a tuple with the Resources field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *V1PersistentVolumeClaimSpec) SetResources(v V1ResourceRequirements)
SetResources sets Resources field to given value.
func (o *V1PersistentVolumeClaimSpec) HasResources() bool
HasResources returns a boolean if a field has been set.
func (o *V1PersistentVolumeClaimSpec) GetSelector() V1LabelSelector
GetSelector returns the Selector field if non-nil, zero value otherwise.
func (o *V1PersistentVolumeClaimSpec) GetSelectorOk() (*V1LabelSelector, bool)
GetSelectorOk returns a tuple with the Selector field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *V1PersistentVolumeClaimSpec) SetSelector(v V1LabelSelector)
SetSelector sets Selector field to given value.
func (o *V1PersistentVolumeClaimSpec) HasSelector() bool
HasSelector returns a boolean if a field has been set.
func (o *V1PersistentVolumeClaimSpec) GetStorageClassName() string
GetStorageClassName returns the StorageClassName field if non-nil, zero value otherwise.
func (o *V1PersistentVolumeClaimSpec) GetStorageClassNameOk() (*string, bool)
GetStorageClassNameOk returns a tuple with the StorageClassName field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *V1PersistentVolumeClaimSpec) SetStorageClassName(v string)
SetStorageClassName sets StorageClassName field to given value.
func (o *V1PersistentVolumeClaimSpec) HasStorageClassName() bool
HasStorageClassName returns a boolean if a field has been set.
func (o *V1PersistentVolumeClaimSpec) GetVolumeMode() V1PersistentVolumeMode
GetVolumeMode returns the VolumeMode field if non-nil, zero value otherwise.
func (o *V1PersistentVolumeClaimSpec) GetVolumeModeOk() (*V1PersistentVolumeMode, bool)
GetVolumeModeOk returns a tuple with the VolumeMode field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *V1PersistentVolumeClaimSpec) SetVolumeMode(v V1PersistentVolumeMode)
SetVolumeMode sets VolumeMode field to given value.
func (o *V1PersistentVolumeClaimSpec) HasVolumeMode() bool
HasVolumeMode returns a boolean if a field has been set.
func (o *V1PersistentVolumeClaimSpec) GetVolumeName() string
GetVolumeName returns the VolumeName field if non-nil, zero value otherwise.
func (o *V1PersistentVolumeClaimSpec) GetVolumeNameOk() (*string, bool)
GetVolumeNameOk returns a tuple with the VolumeName field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *V1PersistentVolumeClaimSpec) SetVolumeName(v string)
SetVolumeName sets VolumeName field to given value.
func (o *V1PersistentVolumeClaimSpec) HasVolumeName() bool
HasVolumeName returns a boolean if a field has been set.