Skip to content

Latest commit

 

History

History
186 lines (101 loc) · 6.18 KB

V1PersistentVolumeClaimSpec.md

File metadata and controls

186 lines (101 loc) · 6.18 KB

V1PersistentVolumeClaimSpec

Properties

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]

Methods

NewV1PersistentVolumeClaimSpec

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

NewV1PersistentVolumeClaimSpecWithDefaults

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

GetAccessModes

func (o *V1PersistentVolumeClaimSpec) GetAccessModes() []V1PersistentVolumeAccessMode

GetAccessModes returns the AccessModes field if non-nil, zero value otherwise.

GetAccessModesOk

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.

SetAccessModes

func (o *V1PersistentVolumeClaimSpec) SetAccessModes(v []V1PersistentVolumeAccessMode)

SetAccessModes sets AccessModes field to given value.

HasAccessModes

func (o *V1PersistentVolumeClaimSpec) HasAccessModes() bool

HasAccessModes returns a boolean if a field has been set.

GetResources

func (o *V1PersistentVolumeClaimSpec) GetResources() V1ResourceRequirements

GetResources returns the Resources field if non-nil, zero value otherwise.

GetResourcesOk

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.

SetResources

func (o *V1PersistentVolumeClaimSpec) SetResources(v V1ResourceRequirements)

SetResources sets Resources field to given value.

HasResources

func (o *V1PersistentVolumeClaimSpec) HasResources() bool

HasResources returns a boolean if a field has been set.

GetSelector

func (o *V1PersistentVolumeClaimSpec) GetSelector() V1LabelSelector

GetSelector returns the Selector field if non-nil, zero value otherwise.

GetSelectorOk

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.

SetSelector

func (o *V1PersistentVolumeClaimSpec) SetSelector(v V1LabelSelector)

SetSelector sets Selector field to given value.

HasSelector

func (o *V1PersistentVolumeClaimSpec) HasSelector() bool

HasSelector returns a boolean if a field has been set.

GetStorageClassName

func (o *V1PersistentVolumeClaimSpec) GetStorageClassName() string

GetStorageClassName returns the StorageClassName field if non-nil, zero value otherwise.

GetStorageClassNameOk

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.

SetStorageClassName

func (o *V1PersistentVolumeClaimSpec) SetStorageClassName(v string)

SetStorageClassName sets StorageClassName field to given value.

HasStorageClassName

func (o *V1PersistentVolumeClaimSpec) HasStorageClassName() bool

HasStorageClassName returns a boolean if a field has been set.

GetVolumeMode

func (o *V1PersistentVolumeClaimSpec) GetVolumeMode() V1PersistentVolumeMode

GetVolumeMode returns the VolumeMode field if non-nil, zero value otherwise.

GetVolumeModeOk

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.

SetVolumeMode

func (o *V1PersistentVolumeClaimSpec) SetVolumeMode(v V1PersistentVolumeMode)

SetVolumeMode sets VolumeMode field to given value.

HasVolumeMode

func (o *V1PersistentVolumeClaimSpec) HasVolumeMode() bool

HasVolumeMode returns a boolean if a field has been set.

GetVolumeName

func (o *V1PersistentVolumeClaimSpec) GetVolumeName() string

GetVolumeName returns the VolumeName field if non-nil, zero value otherwise.

GetVolumeNameOk

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.

SetVolumeName

func (o *V1PersistentVolumeClaimSpec) SetVolumeName(v string)

SetVolumeName sets VolumeName field to given value.

HasVolumeName

func (o *V1PersistentVolumeClaimSpec) HasVolumeName() bool

HasVolumeName returns a boolean if a field has been set.

[Back to Model list] [Back to API list] [Back to README]