kubernetes.client.models.v1_storage_class 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_storage_class.V1StorageClass(*, allow_volume_expansion: Annotated[bool, Strict(strict=True)] | None = None, allowed_topologies: List[V1TopologySelectorTerm] | None = None, api_version: Annotated[str, Strict(strict=True)] | None = None, kind: Annotated[str, Strict(strict=True)] | None = None, metadata: V1ObjectMeta | None = None, mount_options: List[Annotated[str, Strict(strict=True)]] | None = None, parameters: Dict[str, Annotated[str, Strict(strict=True)]] | None = None, provisioner: Annotated[str, Strict(strict=True)], reclaim_policy: Annotated[str, Strict(strict=True)] | None = None, volume_binding_mode: Annotated[str, Strict(strict=True)] | None = None)

Bases: BaseModel

StorageClass describes the parameters for a class of storage for which PersistentVolumes can be dynamically provisioned. StorageClasses are non-namespaced; the name of the storage class according to etcd is in ObjectMeta.Name.

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.

allow_volume_expansion: StrictBool | None
allowed_topologies: List[V1TopologySelectorTerm] | None
api_version: StrictStr | None
attribute_map: ClassVar[Dict[str, str]] = {'allow_volume_expansion': 'allowVolumeExpansion', 'allowed_topologies': 'allowedTopologies', 'api_version': 'apiVersion', 'kind': 'kind', 'metadata': 'metadata', 'mount_options': 'mountOptions', 'parameters': 'parameters', 'provisioner': 'provisioner', 'reclaim_policy': 'reclaimPolicy', 'volume_binding_mode': 'volumeBindingMode'}
classmethod from_dict(obj: Dict[str, Any] | None) Self | None

Create an instance of V1StorageClass from a dict

classmethod from_json(json_str: str) Self | None

Create an instance of V1StorageClass from a JSON string

kind: StrictStr | None
metadata: V1ObjectMeta | None
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].

mount_options: List[StrictStr] | None
openapi_types: ClassVar[Dict[str, str]] = {'allow_volume_expansion': 'bool', 'allowed_topologies': 'List[V1TopologySelectorTerm]', 'api_version': 'str', 'kind': 'str', 'metadata': 'V1ObjectMeta', 'mount_options': 'List[str]', 'parameters': 'Dict[str, str]', 'provisioner': 'str', 'reclaim_policy': 'str', 'volume_binding_mode': 'str'}
parameters: Dict[str, StrictStr] | None
provisioner: StrictStr
reclaim_policy: 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_binding_mode: StrictStr | None