kubernetes_asyncio.client.models.v1_stateful_set_persistent_volume_claim_retention_policy module

Kubernetes

No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501

The version of the OpenAPI document: v1.34.3 Generated by: https://openapi-generator.tech

class kubernetes_asyncio.client.models.v1_stateful_set_persistent_volume_claim_retention_policy.V1StatefulSetPersistentVolumeClaimRetentionPolicy(when_deleted=None, when_scaled=None, local_vars_configuration=None)

Bases: object

NOTE: This class is auto generated by OpenAPI Generator. Ref: https://openapi-generator.tech

Do not edit the class manually.

attribute_map = {'when_deleted': 'whenDeleted', 'when_scaled': 'whenScaled'}
openapi_types = {'when_deleted': 'str', 'when_scaled': 'str'}
to_dict(serialize=False)

Returns the model properties as a dict

to_str()

Returns the string representation of the model

property when_deleted

Gets the when_deleted of this V1StatefulSetPersistentVolumeClaimRetentionPolicy. # noqa: E501

WhenDeleted specifies what happens to PVCs created from StatefulSet VolumeClaimTemplates when the StatefulSet is deleted. The default policy of Retain causes PVCs to not be affected by StatefulSet deletion. The Delete policy causes those PVCs to be deleted. # noqa: E501

Returns:

The when_deleted of this V1StatefulSetPersistentVolumeClaimRetentionPolicy. # noqa: E501

Return type:

str

property when_scaled

Gets the when_scaled of this V1StatefulSetPersistentVolumeClaimRetentionPolicy. # noqa: E501

WhenScaled specifies what happens to PVCs created from StatefulSet VolumeClaimTemplates when the StatefulSet is scaled down. The default policy of Retain causes PVCs to not be affected by a scaledown. The Delete policy causes the associated PVCs for any excess pods above the replica count to be deleted. # noqa: E501

Returns:

The when_scaled of this V1StatefulSetPersistentVolumeClaimRetentionPolicy. # noqa: E501

Return type:

str