kubernetes_asyncio.client.models.v1_csi_storage_capacity 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_csi_storage_capacity.V1CSIStorageCapacity(api_version=None, capacity=None, kind=None, maximum_volume_size=None, metadata=None, node_topology=None, storage_class_name=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 api_version
Gets the api_version of this V1CSIStorageCapacity. # 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 V1CSIStorageCapacity. # noqa: E501
- Return type:
str
- attribute_map = {'api_version': 'apiVersion', 'capacity': 'capacity', 'kind': 'kind', 'maximum_volume_size': 'maximumVolumeSize', 'metadata': 'metadata', 'node_topology': 'nodeTopology', 'storage_class_name': 'storageClassName'}
- property capacity
Gets the capacity of this V1CSIStorageCapacity. # noqa: E501
capacity is the value reported by the CSI driver in its GetCapacityResponse for a GetCapacityRequest with topology and parameters that match the previous fields. The semantic is currently (CSI spec 1.2) defined as: The available capacity, in bytes, of the storage that can be used to provision volumes. If not set, that information is currently unavailable. # noqa: E501
- Returns:
The capacity of this V1CSIStorageCapacity. # noqa: E501
- Return type:
str
- property kind
Gets the kind of this V1CSIStorageCapacity. # 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 V1CSIStorageCapacity. # noqa: E501
- Return type:
str
- property maximum_volume_size
Gets the maximum_volume_size of this V1CSIStorageCapacity. # noqa: E501
maximumVolumeSize is the value reported by the CSI driver in its GetCapacityResponse for a GetCapacityRequest with topology and parameters that match the previous fields. This is defined since CSI spec 1.4.0 as the largest size that may be used in a CreateVolumeRequest.capacity_range.required_bytes field to create a volume with the same parameters as those in GetCapacityRequest. The corresponding value in the Kubernetes API is ResourceRequirements.Requests in a volume claim. # noqa: E501
- Returns:
The maximum_volume_size of this V1CSIStorageCapacity. # noqa: E501
- Return type:
str
- property metadata
Gets the metadata of this V1CSIStorageCapacity. # noqa: E501
- Returns:
The metadata of this V1CSIStorageCapacity. # noqa: E501
- Return type:
- property node_topology
Gets the node_topology of this V1CSIStorageCapacity. # noqa: E501
- Returns:
The node_topology of this V1CSIStorageCapacity. # noqa: E501
- Return type:
- openapi_types = {'api_version': 'str', 'capacity': 'str', 'kind': 'str', 'maximum_volume_size': 'str', 'metadata': 'V1ObjectMeta', 'node_topology': 'V1LabelSelector', 'storage_class_name': 'str'}
- property storage_class_name
Gets the storage_class_name of this V1CSIStorageCapacity. # noqa: E501
storageClassName represents the name of the StorageClass that the reported capacity applies to. It must meet the same requirements as the name of a StorageClass object (non-empty, DNS subdomain). If that object no longer exists, the CSIStorageCapacity object is obsolete and should be removed by its creator. This field is immutable. # noqa: E501
- Returns:
The storage_class_name of this V1CSIStorageCapacity. # 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