kubernetes_asyncio.client.models.v1_storage_class 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_storage_class.V1StorageClass(allow_volume_expansion=None, allowed_topologies=None, api_version=None, kind=None, metadata=None, mount_options=None, parameters=None, provisioner=None, reclaim_policy=None, volume_binding_mode=None, local_vars_configuration=None)
Bases:
objectNOTE: This class is auto generated by OpenAPI Generator. Ref: https://openapi-generator.tech
Do not edit the class manually.
- property allow_volume_expansion
Gets the allow_volume_expansion of this V1StorageClass. # noqa: E501
allowVolumeExpansion shows whether the storage class allow volume expand. # noqa: E501
- Returns:
The allow_volume_expansion of this V1StorageClass. # noqa: E501
- Return type:
bool
- property allowed_topologies
Gets the allowed_topologies of this V1StorageClass. # noqa: E501
allowedTopologies restrict the node topologies where volumes can be dynamically provisioned. Each volume plugin defines its own supported topology specifications. An empty TopologySelectorTerm list means there is no topology restriction. This field is only honored by servers that enable the VolumeScheduling feature. # noqa: E501
- Returns:
The allowed_topologies of this V1StorageClass. # noqa: E501
- Return type:
list[V1TopologySelectorTerm]
- property api_version
Gets the api_version of this V1StorageClass. # noqa: E501
APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources # noqa: E501
- Returns:
The api_version of this V1StorageClass. # noqa: E501
- Return type:
str
- attribute_map = {'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'}
- property kind
Gets the kind of this V1StorageClass. # noqa: E501
Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds # noqa: E501
- Returns:
The kind of this V1StorageClass. # noqa: E501
- Return type:
str
- property metadata
Gets the metadata of this V1StorageClass. # noqa: E501
- Returns:
The metadata of this V1StorageClass. # noqa: E501
- Return type:
- property mount_options
Gets the mount_options of this V1StorageClass. # noqa: E501
mountOptions controls the mountOptions for dynamically provisioned PersistentVolumes of this storage class. e.g. [“ro”, “soft”]. Not validated - mount of the PVs will simply fail if one is invalid. # noqa: E501
- Returns:
The mount_options of this V1StorageClass. # noqa: E501
- Return type:
list[str]
- openapi_types = {'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'}
- property parameters
Gets the parameters of this V1StorageClass. # noqa: E501
parameters holds the parameters for the provisioner that should create volumes of this storage class. # noqa: E501
- Returns:
The parameters of this V1StorageClass. # noqa: E501
- Return type:
dict(str, str)
- property provisioner
Gets the provisioner of this V1StorageClass. # noqa: E501
provisioner indicates the type of the provisioner. # noqa: E501
- Returns:
The provisioner of this V1StorageClass. # noqa: E501
- Return type:
str
- property reclaim_policy
Gets the reclaim_policy of this V1StorageClass. # noqa: E501
reclaimPolicy controls the reclaimPolicy for dynamically provisioned PersistentVolumes of this storage class. Defaults to Delete. # noqa: E501
- Returns:
The reclaim_policy of this V1StorageClass. # noqa: E501
- Return type:
str
- to_dict(serialize=False)
Returns the model properties as a dict
- to_str()
Returns the string representation of the model
- property volume_binding_mode
Gets the volume_binding_mode of this V1StorageClass. # noqa: E501
volumeBindingMode indicates how PersistentVolumeClaims should be provisioned and bound. When unset, VolumeBindingImmediate is used. This field is only honored by servers that enable the VolumeScheduling feature. # noqa: E501
- Returns:
The volume_binding_mode of this V1StorageClass. # noqa: E501
- Return type:
str