models.pvc_info_pvc_spec module¶
-
class
models.pvc_info_pvc_spec.
PVCInfo_PVCSpec
(access_modes=None, data_source=None, resources=None, selector=None, server_ip=None, volume_mode=None, volume_name=None)[source]¶ Bases:
object
Implementation of the ‘PVCInfo_PVCSpec’ model.
- Attributes:
- access_modes (list of string): AccessModes contains the desired access
modes the volume should have.
- data_source (ObjectReference): This field can be used to specify either:
An existing VolumeSnapshot object An existing PVC (PersistentVolumeClaim) An existing custom resource/object that implements data population.
- resources (PVCInfo_PVCSpec_Resources): Resources represents the minimum
resources the volume should have.
- selector (LabelSelector): A label query over volumes to consider for
binding.
server_ip (string): Name of the StorageClass required by the claim. volume_mode (string): volumeMode defines what type of volume is required
by the claim. Value of Filesystem is implied when not included in claim spec.
volume_name (string): Name of the volume that is using this PVC.
-
classmethod
from_dictionary
(dictionary)[source]¶ Creates an instance of this model from a dictionary
- Args:
dictionary (dictionary): A dictionary representation of the object as obtained from the deserialization of the server’s response. The keys MUST match property names in the API description.
- Returns:
object: An instance of this structure class.