Struct k8s_openapi::v1_7::kubernetes::pkg::api::v1::PersistentVolume [−][src]
pub struct PersistentVolume {
pub api_version: Option<String>,
pub kind: Option<String>,
pub metadata: Option<ObjectMeta>,
pub spec: Option<PersistentVolumeSpec>,
pub status: Option<PersistentVolumeStatus>,
}PersistentVolume (PV) is a storage resource provisioned by an administrator. It is analogous to a node. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes
Fields
api_version: Option<String>
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/api-conventions.md#resources
kind: Option<String>
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/api-conventions.md#types-kinds
metadata: Option<ObjectMeta>
Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#metadata
spec: Option<PersistentVolumeSpec>
Spec defines a specification of a persistent volume owned by the cluster. Provisioned by an administrator. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#persistent-volumes
status: Option<PersistentVolumeStatus>
Status represents the current information/status for the persistent volume. Populated by the system. Read-only. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#persistent-volumes
Methods
impl PersistentVolume[src]
impl PersistentVolumepub fn create_core_v1_persistent_volume(
body: &PersistentVolume,
pretty: Option<&str>
) -> Result<Request<Vec<u8>>, RequestError>[src]
pub fn create_core_v1_persistent_volume(
body: &PersistentVolume,
pretty: Option<&str>
) -> Result<Request<Vec<u8>>, RequestError>create a PersistentVolume
Use CreateCoreV1PersistentVolumeResponse to parse the HTTP response.
impl PersistentVolume[src]
impl PersistentVolumepub fn delete_core_v1_collection_persistent_volume(
field_selector: Option<&str>,
include_uninitialized: Option<bool>,
label_selector: Option<&str>,
pretty: Option<&str>,
resource_version: Option<&str>,
timeout_seconds: Option<i64>,
watch: Option<bool>
) -> Result<Request<Vec<u8>>, RequestError>[src]
pub fn delete_core_v1_collection_persistent_volume(
field_selector: Option<&str>,
include_uninitialized: Option<bool>,
label_selector: Option<&str>,
pretty: Option<&str>,
resource_version: Option<&str>,
timeout_seconds: Option<i64>,
watch: Option<bool>
) -> Result<Request<Vec<u8>>, RequestError>delete collection of PersistentVolume
Use DeleteCoreV1CollectionPersistentVolumeResponse to parse the HTTP response.
impl PersistentVolume[src]
impl PersistentVolumepub fn delete_core_v1_persistent_volume(
name: &str,
grace_period_seconds: Option<i64>,
orphan_dependents: Option<bool>,
pretty: Option<&str>,
propagation_policy: Option<&str>
) -> Result<Request<Vec<u8>>, RequestError>[src]
pub fn delete_core_v1_persistent_volume(
name: &str,
grace_period_seconds: Option<i64>,
orphan_dependents: Option<bool>,
pretty: Option<&str>,
propagation_policy: Option<&str>
) -> Result<Request<Vec<u8>>, RequestError>delete a PersistentVolume
Use DeleteCoreV1PersistentVolumeResponse to parse the HTTP response.
impl PersistentVolume[src]
impl PersistentVolumepub fn list_core_v1_persistent_volume(
field_selector: Option<&str>,
include_uninitialized: Option<bool>,
label_selector: Option<&str>,
pretty: Option<&str>,
resource_version: Option<&str>,
timeout_seconds: Option<i64>,
watch: Option<bool>
) -> Result<Request<Vec<u8>>, RequestError>[src]
pub fn list_core_v1_persistent_volume(
field_selector: Option<&str>,
include_uninitialized: Option<bool>,
label_selector: Option<&str>,
pretty: Option<&str>,
resource_version: Option<&str>,
timeout_seconds: Option<i64>,
watch: Option<bool>
) -> Result<Request<Vec<u8>>, RequestError>list or watch objects of kind PersistentVolume
Use ListCoreV1PersistentVolumeResponse to parse the HTTP response.
impl PersistentVolume[src]
impl PersistentVolumepub fn patch_core_v1_persistent_volume(
name: &str,
body: &Patch,
pretty: Option<&str>
) -> Result<Request<Vec<u8>>, RequestError>[src]
pub fn patch_core_v1_persistent_volume(
name: &str,
body: &Patch,
pretty: Option<&str>
) -> Result<Request<Vec<u8>>, RequestError>partially update the specified PersistentVolume
Use PatchCoreV1PersistentVolumeResponse to parse the HTTP response.
impl PersistentVolume[src]
impl PersistentVolumepub fn patch_core_v1_persistent_volume_status(
name: &str,
body: &Patch,
pretty: Option<&str>
) -> Result<Request<Vec<u8>>, RequestError>[src]
pub fn patch_core_v1_persistent_volume_status(
name: &str,
body: &Patch,
pretty: Option<&str>
) -> Result<Request<Vec<u8>>, RequestError>partially update status of the specified PersistentVolume
Use PatchCoreV1PersistentVolumeStatusResponse to parse the HTTP response.
impl PersistentVolume[src]
impl PersistentVolumepub fn read_core_v1_persistent_volume(
name: &str,
exact: Option<bool>,
export: Option<bool>,
pretty: Option<&str>
) -> Result<Request<Vec<u8>>, RequestError>[src]
pub fn read_core_v1_persistent_volume(
name: &str,
exact: Option<bool>,
export: Option<bool>,
pretty: Option<&str>
) -> Result<Request<Vec<u8>>, RequestError>read the specified PersistentVolume
Use ReadCoreV1PersistentVolumeResponse to parse the HTTP response.
impl PersistentVolume[src]
impl PersistentVolumepub fn read_core_v1_persistent_volume_status(
name: &str,
pretty: Option<&str>
) -> Result<Request<Vec<u8>>, RequestError>[src]
pub fn read_core_v1_persistent_volume_status(
name: &str,
pretty: Option<&str>
) -> Result<Request<Vec<u8>>, RequestError>read status of the specified PersistentVolume
Use ReadCoreV1PersistentVolumeStatusResponse to parse the HTTP response.
impl PersistentVolume[src]
impl PersistentVolumepub fn replace_core_v1_persistent_volume(
name: &str,
body: &PersistentVolume,
pretty: Option<&str>
) -> Result<Request<Vec<u8>>, RequestError>[src]
pub fn replace_core_v1_persistent_volume(
name: &str,
body: &PersistentVolume,
pretty: Option<&str>
) -> Result<Request<Vec<u8>>, RequestError>replace the specified PersistentVolume
Use ReplaceCoreV1PersistentVolumeResponse to parse the HTTP response.
impl PersistentVolume[src]
impl PersistentVolumepub fn replace_core_v1_persistent_volume_status(
name: &str,
body: &PersistentVolume,
pretty: Option<&str>
) -> Result<Request<Vec<u8>>, RequestError>[src]
pub fn replace_core_v1_persistent_volume_status(
name: &str,
body: &PersistentVolume,
pretty: Option<&str>
) -> Result<Request<Vec<u8>>, RequestError>replace status of the specified PersistentVolume
Use ReplaceCoreV1PersistentVolumeStatusResponse to parse the HTTP response.
impl PersistentVolume[src]
impl PersistentVolumepub fn watch_core_v1_persistent_volume(
name: &str,
field_selector: Option<&str>,
include_uninitialized: Option<bool>,
label_selector: Option<&str>,
pretty: Option<&str>,
resource_version: Option<&str>,
timeout_seconds: Option<i64>,
watch: Option<bool>
) -> Result<Request<Vec<u8>>, RequestError>[src]
pub fn watch_core_v1_persistent_volume(
name: &str,
field_selector: Option<&str>,
include_uninitialized: Option<bool>,
label_selector: Option<&str>,
pretty: Option<&str>,
resource_version: Option<&str>,
timeout_seconds: Option<i64>,
watch: Option<bool>
) -> Result<Request<Vec<u8>>, RequestError>watch changes to an object of kind PersistentVolume
Use WatchCoreV1PersistentVolumeResponse to parse the HTTP response.
impl PersistentVolume[src]
impl PersistentVolumepub fn watch_core_v1_persistent_volume_list(
field_selector: Option<&str>,
include_uninitialized: Option<bool>,
label_selector: Option<&str>,
pretty: Option<&str>,
resource_version: Option<&str>,
timeout_seconds: Option<i64>,
watch: Option<bool>
) -> Result<Request<Vec<u8>>, RequestError>[src]
pub fn watch_core_v1_persistent_volume_list(
field_selector: Option<&str>,
include_uninitialized: Option<bool>,
label_selector: Option<&str>,
pretty: Option<&str>,
resource_version: Option<&str>,
timeout_seconds: Option<i64>,
watch: Option<bool>
) -> Result<Request<Vec<u8>>, RequestError>watch individual changes to a list of PersistentVolume
Use WatchCoreV1PersistentVolumeListResponse to parse the HTTP response.
Trait Implementations
impl Clone for PersistentVolume[src]
impl Clone for PersistentVolumefn clone(&self) -> PersistentVolume[src]
fn clone(&self) -> PersistentVolumeReturns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)1.0.0[src]
fn clone_from(&mut self, source: &Self)Performs copy-assignment from source. Read more
impl Debug for PersistentVolume[src]
impl Debug for PersistentVolumefn fmt(&self, f: &mut Formatter) -> Result[src]
fn fmt(&self, f: &mut Formatter) -> ResultFormats the value using the given formatter. Read more
impl Default for PersistentVolume[src]
impl Default for PersistentVolumefn default() -> PersistentVolume[src]
fn default() -> PersistentVolumeReturns the "default value" for a type. Read more
impl PartialEq for PersistentVolume[src]
impl PartialEq for PersistentVolumefn eq(&self, other: &PersistentVolume) -> bool[src]
fn eq(&self, other: &PersistentVolume) -> boolThis method tests for self and other values to be equal, and is used by ==. Read more
fn ne(&self, other: &PersistentVolume) -> bool[src]
fn ne(&self, other: &PersistentVolume) -> boolThis method tests for !=.
impl<'de> Deserialize<'de> for PersistentVolume[src]
impl<'de> Deserialize<'de> for PersistentVolumefn deserialize<D>(deserializer: D) -> Result<Self, D::Error> where
D: Deserializer<'de>, [src]
fn deserialize<D>(deserializer: D) -> Result<Self, D::Error> where
D: Deserializer<'de>, Deserialize this value from the given Serde deserializer. Read more
impl Serialize for PersistentVolume[src]
impl Serialize for PersistentVolumeAuto Trait Implementations
impl Send for PersistentVolume
impl Send for PersistentVolumeimpl Sync for PersistentVolume
impl Sync for PersistentVolume