[][src]Struct k8s_openapi::api::storage::v1alpha1::VolumeAttachment

pub struct VolumeAttachment {
    pub metadata: Option<ObjectMeta>,
    pub spec: VolumeAttachmentSpec,
    pub status: Option<VolumeAttachmentStatus>,
}

VolumeAttachment captures the intent to attach or detach the specified volume to/from the specified node.

VolumeAttachment objects are non-namespaced.

Fields

metadata: Option<ObjectMeta>

Standard object metadata. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#metadata

spec: VolumeAttachmentSpec

Specification of the desired attach/detach volume behavior. Populated by the Kubernetes system.

status: Option<VolumeAttachmentStatus>

Status of the VolumeAttachment request. Populated by the entity completing the attach or detach operation, i.e. the external-attacher.

Methods

impl VolumeAttachment[src]

pub fn create_volume_attachment(
    body: &VolumeAttachment,
    optional: CreateVolumeAttachmentOptional
) -> Result<(Request<Vec<u8>>, fn(_: StatusCode) -> ResponseBody<CreateVolumeAttachmentResponse>), RequestError>
[src]

create a VolumeAttachment

Use the returned crate::ResponseBody<CreateVolumeAttachmentResponse> constructor, or CreateVolumeAttachmentResponse directly, to parse the HTTP response.

Arguments

  • body

  • optional

    Optional parameters. Use Default::default() to not pass any.

impl VolumeAttachment[src]

pub fn delete_collection_volume_attachment(
    optional: DeleteCollectionVolumeAttachmentOptional
) -> Result<(Request<Vec<u8>>, fn(_: StatusCode) -> ResponseBody<DeleteCollectionVolumeAttachmentResponse>), RequestError>
[src]

delete collection of VolumeAttachment

Use the returned crate::ResponseBody<DeleteCollectionVolumeAttachmentResponse> constructor, or DeleteCollectionVolumeAttachmentResponse directly, to parse the HTTP response.

Arguments

  • optional

    Optional parameters. Use Default::default() to not pass any.

impl VolumeAttachment[src]

pub fn delete_volume_attachment(
    name: &str,
    optional: DeleteVolumeAttachmentOptional
) -> Result<(Request<Vec<u8>>, fn(_: StatusCode) -> ResponseBody<DeleteVolumeAttachmentResponse>), RequestError>
[src]

delete a VolumeAttachment

Use the returned crate::ResponseBody<DeleteVolumeAttachmentResponse> constructor, or DeleteVolumeAttachmentResponse directly, to parse the HTTP response.

Arguments

  • name

    name of the VolumeAttachment

  • optional

    Optional parameters. Use Default::default() to not pass any.

impl VolumeAttachment[src]

pub fn list_volume_attachment(
    optional: ListVolumeAttachmentOptional
) -> Result<(Request<Vec<u8>>, fn(_: StatusCode) -> ResponseBody<ListVolumeAttachmentResponse>), RequestError>
[src]

list or watch objects of kind VolumeAttachment

This operation only supports listing all items of this type.

Use the returned crate::ResponseBody<ListVolumeAttachmentResponse> constructor, or ListVolumeAttachmentResponse directly, to parse the HTTP response.

Arguments

  • optional

    Optional parameters. Use Default::default() to not pass any.

impl VolumeAttachment[src]

pub fn patch_volume_attachment(
    name: &str,
    body: &Patch,
    optional: PatchVolumeAttachmentOptional
) -> Result<(Request<Vec<u8>>, fn(_: StatusCode) -> ResponseBody<PatchVolumeAttachmentResponse>), RequestError>
[src]

partially update the specified VolumeAttachment

Use the returned crate::ResponseBody<PatchVolumeAttachmentResponse> constructor, or PatchVolumeAttachmentResponse directly, to parse the HTTP response.

Arguments

  • name

    name of the VolumeAttachment

  • body

  • optional

    Optional parameters. Use Default::default() to not pass any.

impl VolumeAttachment[src]

pub fn read_volume_attachment(
    name: &str,
    optional: ReadVolumeAttachmentOptional
) -> Result<(Request<Vec<u8>>, fn(_: StatusCode) -> ResponseBody<ReadVolumeAttachmentResponse>), RequestError>
[src]

read the specified VolumeAttachment

Use the returned crate::ResponseBody<ReadVolumeAttachmentResponse> constructor, or ReadVolumeAttachmentResponse directly, to parse the HTTP response.

Arguments

  • name

    name of the VolumeAttachment

  • optional

    Optional parameters. Use Default::default() to not pass any.

impl VolumeAttachment[src]

pub fn replace_volume_attachment(
    name: &str,
    body: &VolumeAttachment,
    optional: ReplaceVolumeAttachmentOptional
) -> Result<(Request<Vec<u8>>, fn(_: StatusCode) -> ResponseBody<ReplaceVolumeAttachmentResponse>), RequestError>
[src]

replace the specified VolumeAttachment

Use the returned crate::ResponseBody<ReplaceVolumeAttachmentResponse> constructor, or ReplaceVolumeAttachmentResponse directly, to parse the HTTP response.

Arguments

  • name

    name of the VolumeAttachment

  • body

  • optional

    Optional parameters. Use Default::default() to not pass any.

impl VolumeAttachment[src]

pub fn watch_volume_attachment(
    optional: WatchVolumeAttachmentOptional
) -> Result<(Request<Vec<u8>>, fn(_: StatusCode) -> ResponseBody<WatchVolumeAttachmentResponse>), RequestError>
[src]

list or watch objects of kind VolumeAttachment

This operation only supports watching one item, or a list of items, of this type for changes.

Use the returned crate::ResponseBody<WatchVolumeAttachmentResponse> constructor, or WatchVolumeAttachmentResponse directly, to parse the HTTP response.

Arguments

  • optional

    Optional parameters. Use Default::default() to not pass any.

Trait Implementations

impl Resource for VolumeAttachment[src]

impl Metadata for VolumeAttachment[src]

type Ty = ObjectMeta

The type of the metadata object.

impl Clone for VolumeAttachment[src]

fn clone_from(&mut self, source: &Self)
1.0.0
[src]

Performs copy-assignment from source. Read more

impl PartialEq<VolumeAttachment> for VolumeAttachment[src]

impl Default for VolumeAttachment[src]

impl Debug for VolumeAttachment[src]

impl Serialize for VolumeAttachment[src]

impl<'de> Deserialize<'de> for VolumeAttachment[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]