[][src]Struct k8s_openapi::api::core::v1::PersistentVolume

pub struct PersistentVolume {
    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

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]

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]

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]

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]

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]

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]

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]

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]

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]

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]

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]

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]

impl Metadata for PersistentVolume[src]

type Ty = ObjectMeta

The type of the metadata object.

impl Clone for 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]

impl Default for PersistentVolume[src]

impl Debug for PersistentVolume[src]

impl Serialize for PersistentVolume[src]

impl<'de> Deserialize<'de> for PersistentVolume[src]

Auto Trait Implementations

Blanket Implementations

impl<T> From for T[src]

impl<T, U> Into for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

impl<T, U> TryFrom for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T> Borrow for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> BorrowMut for T where
    T: ?Sized
[src]

impl<T, U> TryInto for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> DeserializeOwned for T where
    T: Deserialize<'de>, 
[src]