[−][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
-
optional
Optional parameters. Use
Default::default()
to not pass any.
impl PersistentVolume
[src]
pub fn delete_collection_persistent_volume(
optional: DeleteCollectionPersistentVolumeOptional
) -> Result<(Request<Vec<u8>>, fn(_: StatusCode) -> ResponseBody<DeleteCollectionPersistentVolumeResponse>), RequestError>
[src]
optional: DeleteCollectionPersistentVolumeOptional
) -> 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
-
optional
Optional parameters. Use
Default::default()
to not pass any.
impl PersistentVolume
[src]
pub fn delete_persistent_volume(
name: &str,
optional: DeletePersistentVolumeOptional
) -> Result<(Request<Vec<u8>>, fn(_: StatusCode) -> ResponseBody<DeletePersistentVolumeResponse>), RequestError>
[src]
name: &str,
optional: DeletePersistentVolumeOptional
) -> 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
-
name
name of the PersistentVolume
-
optional
Optional parameters. Use
Default::default()
to not pass any.
impl PersistentVolume
[src]
pub fn list_persistent_volume(
optional: ListPersistentVolumeOptional
) -> Result<(Request<Vec<u8>>, fn(_: StatusCode) -> ResponseBody<ListPersistentVolumeResponse>), RequestError>
[src]
optional: ListPersistentVolumeOptional
) -> 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
-
optional
Optional parameters. Use
Default::default()
to not pass any.
impl PersistentVolume
[src]
pub fn patch_persistent_volume(
name: &str,
body: &Patch,
optional: PatchPersistentVolumeOptional
) -> Result<(Request<Vec<u8>>, fn(_: StatusCode) -> ResponseBody<PatchPersistentVolumeResponse>), RequestError>
[src]
name: &str,
body: &Patch,
optional: PatchPersistentVolumeOptional
) -> 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
-
name
name of the PersistentVolume
-
body
-
optional
Optional parameters. Use
Default::default()
to not pass any.
impl PersistentVolume
[src]
pub fn patch_persistent_volume_status(
name: &str,
body: &Patch,
optional: PatchPersistentVolumeStatusOptional
) -> Result<(Request<Vec<u8>>, fn(_: StatusCode) -> ResponseBody<PatchPersistentVolumeStatusResponse>), RequestError>
[src]
name: &str,
body: &Patch,
optional: PatchPersistentVolumeStatusOptional
) -> 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
-
name
name of the PersistentVolume
-
body
-
optional
Optional 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
-
name
name of the PersistentVolume
-
optional
Optional 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
-
name
name of the PersistentVolume
-
optional
Optional 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
-
name
name of the PersistentVolume
-
body
-
optional
Optional 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
-
name
name of the PersistentVolume
-
body
-
optional
Optional parameters. Use
Default::default()
to not pass any.
impl PersistentVolume
[src]
pub fn watch_persistent_volume(
optional: WatchPersistentVolumeOptional
) -> Result<(Request<Vec<u8>>, fn(_: StatusCode) -> ResponseBody<WatchPersistentVolumeResponse>), RequestError>
[src]
optional: WatchPersistentVolumeOptional
) -> 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
-
optional
Optional 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 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 Default for PersistentVolume
[src]
fn default() -> PersistentVolume
[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 Send for PersistentVolume
impl Sync for PersistentVolume
Blanket Implementations
impl<T> From for T
[src]
impl<T, U> Into for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
impl<T, U> TryFrom 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> Borrow for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> BorrowMut for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T, U> TryInto 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> DeserializeOwned for T where
T: Deserialize<'de>,
[src]
T: Deserialize<'de>,