kubernetes.client.models.v1_persistent_volume_claim_spec module

Kubernetes

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

The version of the OpenAPI document: release-1.36 Generated by OpenAPI Generator (https://openapi-generator.tech)

Do not edit the class manually.

class kubernetes.client.models.v1_persistent_volume_claim_spec.V1PersistentVolumeClaimSpec(*, access_modes: List[Annotated[str, Strict(strict=True)]] | None = None, data_source: V1TypedLocalObjectReference | None = None, data_source_ref: V1TypedObjectReference | None = None, resources: V1VolumeResourceRequirements | None = None, selector: V1LabelSelector | None = None, storage_class_name: Annotated[str, Strict(strict=True)] | None = None, volume_attributes_class_name: Annotated[str, Strict(strict=True)] | None = None, volume_mode: Annotated[str, Strict(strict=True)] | None = None, volume_name: Annotated[str, Strict(strict=True)] | None = None)

Bases: BaseModel

PersistentVolumeClaimSpec describes the common attributes of storage devices and allows a Source for provider-specific attributes

Attributes:
openapi_types (dict): The key is attribute name

and the value is attribute type.

attribute_map (dict): The key is attribute name

and the value is json key in definition.

access_modes: List[StrictStr] | None
attribute_map: ClassVar[Dict[str, str]] = {'access_modes': 'accessModes', 'data_source': 'dataSource', 'data_source_ref': 'dataSourceRef', 'resources': 'resources', 'selector': 'selector', 'storage_class_name': 'storageClassName', 'volume_attributes_class_name': 'volumeAttributesClassName', 'volume_mode': 'volumeMode', 'volume_name': 'volumeName'}
data_source: V1TypedLocalObjectReference | None
data_source_ref: V1TypedObjectReference | None
classmethod from_dict(obj: Dict[str, Any] | None) Self | None

Create an instance of V1PersistentVolumeClaimSpec from a dict

classmethod from_json(json_str: str) Self | None

Create an instance of V1PersistentVolumeClaimSpec from a JSON string

model_config = {'extra': 'forbid', 'protected_namespaces': (), 'validate_assignment': True, 'validate_by_alias': True, 'validate_by_name': True}

Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].

openapi_types: ClassVar[Dict[str, str]] = {'access_modes': 'List[str]', 'data_source': 'V1TypedLocalObjectReference', 'data_source_ref': 'V1TypedObjectReference', 'resources': 'V1VolumeResourceRequirements', 'selector': 'V1LabelSelector', 'storage_class_name': 'str', 'volume_attributes_class_name': 'str', 'volume_mode': 'str', 'volume_name': 'str'}
resources: V1VolumeResourceRequirements | None
selector: V1LabelSelector | None
storage_class_name: StrictStr | None
to_dict(serialize: bool = False) Dict[str, Any]

Return all declared model fields using public or wire names.

to_json() str

Returns the JSON representation of the model using alias

to_str() str

Returns the string representation of the model

volume_attributes_class_name: StrictStr | None
volume_mode: StrictStr | None
volume_name: StrictStr | None