[−][src]Struct k8s_openapi::api::core::v1::PersistentVolume
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
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]
pub fn create_persistent_volume(
body: &PersistentVolume,
optional: CreatePersistentVolumeOptional
) -> Result<(Request<Vec<u8>>, fn(_: StatusCode) -> ResponseBody<CreatePersistentVolumeResponse>), RequestError>[src]
body: &PersistentVolume,
optional: CreatePersistentVolumeOptional
) -> Result<(Request<Vec<u8>>, fn(_: StatusCode) -> ResponseBody<CreatePersistentVolumeResponse>), RequestError>
create a PersistentVolume
Use the returned crate::ResponseBody<CreatePersistentVolumeResponse> constructor, or CreatePersistentVolumeResponse directly, to parse the HTTP response.
Arguments
-
body -
optionalOptional parameters. Use
Default::default()to not pass any.
impl PersistentVolume[src]
pub fn delete_collection_persistent_volume(
delete_optional: DeleteOptional,
list_optional: ListOptional
) -> Result<(Request<Vec<u8>>, fn(_: StatusCode) -> ResponseBody<DeleteCollectionPersistentVolumeResponse>), RequestError>[src]
delete_optional: DeleteOptional,
list_optional: ListOptional
) -> Result<(Request<Vec<u8>>, fn(_: StatusCode) -> ResponseBody<DeleteCollectionPersistentVolumeResponse>), RequestError>
delete collection of PersistentVolume
Use the returned crate::ResponseBody<DeleteCollectionPersistentVolumeResponse> constructor, or DeleteCollectionPersistentVolumeResponse directly, to parse the HTTP response.
Arguments
-
delete_optionalDelete options. Use
Default::default()to not pass any. -
list_optionalList options. Use
Default::default()to not pass any.
impl PersistentVolume[src]
pub fn delete_persistent_volume(
name: &str,
optional: DeleteOptional
) -> Result<(Request<Vec<u8>>, fn(_: StatusCode) -> ResponseBody<DeletePersistentVolumeResponse>), RequestError>[src]
name: &str,
optional: DeleteOptional
) -> Result<(Request<Vec<u8>>, fn(_: StatusCode) -> ResponseBody<DeletePersistentVolumeResponse>), RequestError>
delete a PersistentVolume
Use the returned crate::ResponseBody<DeletePersistentVolumeResponse> constructor, or DeletePersistentVolumeResponse directly, to parse the HTTP response.
Arguments
-
namename of the PersistentVolume
-
optionalOptional parameters. Use
Default::default()to not pass any.
impl PersistentVolume[src]
pub fn list_persistent_volume(
optional: ListOptional
) -> Result<(Request<Vec<u8>>, fn(_: StatusCode) -> ResponseBody<ListPersistentVolumeResponse>), RequestError>[src]
optional: ListOptional
) -> Result<(Request<Vec<u8>>, fn(_: StatusCode) -> ResponseBody<ListPersistentVolumeResponse>), RequestError>
list or watch objects of kind PersistentVolume
This operation only supports listing all items of this type.
Use the returned crate::ResponseBody<ListPersistentVolumeResponse> constructor, or ListPersistentVolumeResponse directly, to parse the HTTP response.
Arguments
-
optionalOptional parameters. Use
Default::default()to not pass any.
impl PersistentVolume[src]
pub fn patch_persistent_volume(
name: &str,
body: &Patch,
optional: PatchOptional
) -> Result<(Request<Vec<u8>>, fn(_: StatusCode) -> ResponseBody<PatchPersistentVolumeResponse>), RequestError>[src]
name: &str,
body: &Patch,
optional: PatchOptional
) -> Result<(Request<Vec<u8>>, fn(_: StatusCode) -> ResponseBody<PatchPersistentVolumeResponse>), RequestError>
partially update the specified PersistentVolume
Use the returned crate::ResponseBody<PatchPersistentVolumeResponse> constructor, or PatchPersistentVolumeResponse directly, to parse the HTTP response.
Arguments
-
namename of the PersistentVolume
-
body -
optionalOptional parameters. Use
Default::default()to not pass any.
impl PersistentVolume[src]
pub fn patch_persistent_volume_status(
name: &str,
body: &Patch,
optional: PatchOptional
) -> Result<(Request<Vec<u8>>, fn(_: StatusCode) -> ResponseBody<PatchPersistentVolumeStatusResponse>), RequestError>[src]
name: &str,
body: &Patch,
optional: PatchOptional
) -> Result<(Request<Vec<u8>>, fn(_: StatusCode) -> ResponseBody<PatchPersistentVolumeStatusResponse>), RequestError>
partially update status of the specified PersistentVolume
Use the returned crate::ResponseBody<PatchPersistentVolumeStatusResponse> constructor, or PatchPersistentVolumeStatusResponse directly, to parse the HTTP response.
Arguments
-
namename of the PersistentVolume
-
body -
optionalOptional parameters. Use
Default::default()to not pass any.
impl PersistentVolume[src]
pub fn read_persistent_volume(
name: &str,
optional: ReadPersistentVolumeOptional
) -> Result<(Request<Vec<u8>>, fn(_: StatusCode) -> ResponseBody<ReadPersistentVolumeResponse>), RequestError>[src]
name: &str,
optional: ReadPersistentVolumeOptional
) -> Result<(Request<Vec<u8>>, fn(_: StatusCode) -> ResponseBody<ReadPersistentVolumeResponse>), RequestError>
read the specified PersistentVolume
Use the returned crate::ResponseBody<ReadPersistentVolumeResponse> constructor, or ReadPersistentVolumeResponse directly, to parse the HTTP response.
Arguments
-
namename of the PersistentVolume
-
optionalOptional parameters. Use
Default::default()to not pass any.
impl PersistentVolume[src]
pub fn read_persistent_volume_status(
name: &str,
optional: ReadPersistentVolumeStatusOptional
) -> Result<(Request<Vec<u8>>, fn(_: StatusCode) -> ResponseBody<ReadPersistentVolumeStatusResponse>), RequestError>[src]
name: &str,
optional: ReadPersistentVolumeStatusOptional
) -> Result<(Request<Vec<u8>>, fn(_: StatusCode) -> ResponseBody<ReadPersistentVolumeStatusResponse>), RequestError>
read status of the specified PersistentVolume
Use the returned crate::ResponseBody<ReadPersistentVolumeStatusResponse> constructor, or ReadPersistentVolumeStatusResponse directly, to parse the HTTP response.
Arguments
-
namename of the PersistentVolume
-
optionalOptional parameters. Use
Default::default()to not pass any.
impl PersistentVolume[src]
pub fn replace_persistent_volume(
name: &str,
body: &PersistentVolume,
optional: ReplacePersistentVolumeOptional
) -> Result<(Request<Vec<u8>>, fn(_: StatusCode) -> ResponseBody<ReplacePersistentVolumeResponse>), RequestError>[src]
name: &str,
body: &PersistentVolume,
optional: ReplacePersistentVolumeOptional
) -> Result<(Request<Vec<u8>>, fn(_: StatusCode) -> ResponseBody<ReplacePersistentVolumeResponse>), RequestError>
replace the specified PersistentVolume
Use the returned crate::ResponseBody<ReplacePersistentVolumeResponse> constructor, or ReplacePersistentVolumeResponse directly, to parse the HTTP response.
Arguments
-
namename of the PersistentVolume
-
body -
optionalOptional parameters. Use
Default::default()to not pass any.
impl PersistentVolume[src]
pub fn replace_persistent_volume_status(
name: &str,
body: &PersistentVolume,
optional: ReplacePersistentVolumeStatusOptional
) -> Result<(Request<Vec<u8>>, fn(_: StatusCode) -> ResponseBody<ReplacePersistentVolumeStatusResponse>), RequestError>[src]
name: &str,
body: &PersistentVolume,
optional: ReplacePersistentVolumeStatusOptional
) -> Result<(Request<Vec<u8>>, fn(_: StatusCode) -> ResponseBody<ReplacePersistentVolumeStatusResponse>), RequestError>
replace status of the specified PersistentVolume
Use the returned crate::ResponseBody<ReplacePersistentVolumeStatusResponse> constructor, or ReplacePersistentVolumeStatusResponse directly, to parse the HTTP response.
Arguments
-
namename of the PersistentVolume
-
body -
optionalOptional parameters. Use
Default::default()to not pass any.
impl PersistentVolume[src]
pub fn watch_persistent_volume(
optional: WatchOptional
) -> Result<(Request<Vec<u8>>, fn(_: StatusCode) -> ResponseBody<WatchPersistentVolumeResponse>), RequestError>[src]
optional: WatchOptional
) -> Result<(Request<Vec<u8>>, fn(_: StatusCode) -> ResponseBody<WatchPersistentVolumeResponse>), RequestError>
list or watch objects of kind PersistentVolume
This operation only supports watching one item, or a list of items, of this type for changes.
Use the returned crate::ResponseBody<WatchPersistentVolumeResponse> constructor, or WatchPersistentVolumeResponse directly, to parse the HTTP response.
Arguments
-
optionalOptional parameters. Use
Default::default()to not pass any.
Trait Implementations
impl Resource for PersistentVolume[src]
fn api_version() -> &'static str[src]
fn group() -> &'static str[src]
fn kind() -> &'static str[src]
fn version() -> &'static str[src]
impl Metadata for PersistentVolume[src]
impl Default for PersistentVolume[src]
fn default() -> PersistentVolume[src]
impl Clone for PersistentVolume[src]
fn clone(&self) -> PersistentVolume[src]
fn clone_from(&mut self, source: &Self)1.0.0[src]
Performs copy-assignment from source. Read more
impl PartialEq<PersistentVolume> for PersistentVolume[src]
fn eq(&self, other: &PersistentVolume) -> bool[src]
fn ne(&self, other: &PersistentVolume) -> bool[src]
impl Debug for PersistentVolume[src]
impl Serialize for PersistentVolume[src]
impl<'de> Deserialize<'de> for PersistentVolume[src]
fn deserialize<D>(deserializer: D) -> Result<Self, D::Error> where
D: Deserializer<'de>, [src]
D: Deserializer<'de>,
Auto Trait Implementations
impl Sync for PersistentVolume
impl Unpin for PersistentVolume
impl Send for PersistentVolume
impl UnwindSafe for PersistentVolume
impl RefUnwindSafe for PersistentVolume
Blanket Implementations
impl<T, U> Into<U> for T where
U: From<T>, [src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone, [src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T[src]
fn clone_into(&self, target: &mut T)[src]
impl<T> From<T> for T[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>, [src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>, [src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>[src]
impl<T> Borrow<T> for T where
T: ?Sized, [src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized, [src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T[src]
impl<T> Any for T where
T: 'static + ?Sized, [src]
T: 'static + ?Sized,
impl<T> DeserializeOwned for T where
T: Deserialize<'de>, [src]
T: Deserialize<'de>,