[−][src]Struct k8s_openapi::api::storage::v1::VolumeAttachment
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: VolumeAttachmentSpecSpecification 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]
body: &VolumeAttachment,
optional: CreateVolumeAttachmentOptional
) -> Result<(Request<Vec<u8>>, fn(_: StatusCode) -> ResponseBody<CreateVolumeAttachmentResponse>), RequestError>
create a VolumeAttachment
Use the returned crate::ResponseBody<CreateVolumeAttachmentResponse> constructor, or CreateVolumeAttachmentResponse directly, to parse the HTTP response.
Arguments
-
body -
optionalOptional parameters. Use
Default::default()to not pass any.
impl VolumeAttachment[src]
pub fn delete_collection_volume_attachment(
delete_optional: DeleteOptional,
list_optional: ListOptional
) -> Result<(Request<Vec<u8>>, fn(_: StatusCode) -> ResponseBody<DeleteCollectionVolumeAttachmentResponse>), RequestError>[src]
delete_optional: DeleteOptional,
list_optional: ListOptional
) -> Result<(Request<Vec<u8>>, fn(_: StatusCode) -> ResponseBody<DeleteCollectionVolumeAttachmentResponse>), RequestError>
delete collection of VolumeAttachment
Use the returned crate::ResponseBody<DeleteCollectionVolumeAttachmentResponse> constructor, or DeleteCollectionVolumeAttachmentResponse 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 VolumeAttachment[src]
pub fn delete_volume_attachment(
name: &str,
optional: DeleteOptional
) -> Result<(Request<Vec<u8>>, fn(_: StatusCode) -> ResponseBody<DeleteVolumeAttachmentResponse>), RequestError>[src]
name: &str,
optional: DeleteOptional
) -> Result<(Request<Vec<u8>>, fn(_: StatusCode) -> ResponseBody<DeleteVolumeAttachmentResponse>), RequestError>
delete a VolumeAttachment
Use the returned crate::ResponseBody<DeleteVolumeAttachmentResponse> constructor, or DeleteVolumeAttachmentResponse directly, to parse the HTTP response.
Arguments
-
namename of the VolumeAttachment
-
optionalOptional parameters. Use
Default::default()to not pass any.
impl VolumeAttachment[src]
pub fn list_volume_attachment(
optional: ListOptional
) -> Result<(Request<Vec<u8>>, fn(_: StatusCode) -> ResponseBody<ListVolumeAttachmentResponse>), RequestError>[src]
optional: ListOptional
) -> Result<(Request<Vec<u8>>, fn(_: StatusCode) -> ResponseBody<ListVolumeAttachmentResponse>), RequestError>
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
-
optionalOptional parameters. Use
Default::default()to not pass any.
impl VolumeAttachment[src]
pub fn patch_volume_attachment(
name: &str,
body: &Patch,
optional: PatchOptional
) -> Result<(Request<Vec<u8>>, fn(_: StatusCode) -> ResponseBody<PatchVolumeAttachmentResponse>), RequestError>[src]
name: &str,
body: &Patch,
optional: PatchOptional
) -> Result<(Request<Vec<u8>>, fn(_: StatusCode) -> ResponseBody<PatchVolumeAttachmentResponse>), RequestError>
partially update the specified VolumeAttachment
Use the returned crate::ResponseBody<PatchVolumeAttachmentResponse> constructor, or PatchVolumeAttachmentResponse directly, to parse the HTTP response.
Arguments
-
namename of the VolumeAttachment
-
body -
optionalOptional parameters. Use
Default::default()to not pass any.
impl VolumeAttachment[src]
pub fn patch_volume_attachment_status(
name: &str,
body: &Patch,
optional: PatchOptional
) -> Result<(Request<Vec<u8>>, fn(_: StatusCode) -> ResponseBody<PatchVolumeAttachmentStatusResponse>), RequestError>[src]
name: &str,
body: &Patch,
optional: PatchOptional
) -> Result<(Request<Vec<u8>>, fn(_: StatusCode) -> ResponseBody<PatchVolumeAttachmentStatusResponse>), RequestError>
partially update status of the specified VolumeAttachment
Use the returned crate::ResponseBody<PatchVolumeAttachmentStatusResponse> constructor, or PatchVolumeAttachmentStatusResponse directly, to parse the HTTP response.
Arguments
-
namename of the VolumeAttachment
-
body -
optionalOptional 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]
name: &str,
optional: ReadVolumeAttachmentOptional
) -> Result<(Request<Vec<u8>>, fn(_: StatusCode) -> ResponseBody<ReadVolumeAttachmentResponse>), RequestError>
read the specified VolumeAttachment
Use the returned crate::ResponseBody<ReadVolumeAttachmentResponse> constructor, or ReadVolumeAttachmentResponse directly, to parse the HTTP response.
Arguments
-
namename of the VolumeAttachment
-
optionalOptional parameters. Use
Default::default()to not pass any.
impl VolumeAttachment[src]
pub fn read_volume_attachment_status(
name: &str,
optional: ReadVolumeAttachmentStatusOptional
) -> Result<(Request<Vec<u8>>, fn(_: StatusCode) -> ResponseBody<ReadVolumeAttachmentStatusResponse>), RequestError>[src]
name: &str,
optional: ReadVolumeAttachmentStatusOptional
) -> Result<(Request<Vec<u8>>, fn(_: StatusCode) -> ResponseBody<ReadVolumeAttachmentStatusResponse>), RequestError>
read status of the specified VolumeAttachment
Use the returned crate::ResponseBody<ReadVolumeAttachmentStatusResponse> constructor, or ReadVolumeAttachmentStatusResponse directly, to parse the HTTP response.
Arguments
-
namename of the VolumeAttachment
-
optionalOptional 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]
name: &str,
body: &VolumeAttachment,
optional: ReplaceVolumeAttachmentOptional
) -> Result<(Request<Vec<u8>>, fn(_: StatusCode) -> ResponseBody<ReplaceVolumeAttachmentResponse>), RequestError>
replace the specified VolumeAttachment
Use the returned crate::ResponseBody<ReplaceVolumeAttachmentResponse> constructor, or ReplaceVolumeAttachmentResponse directly, to parse the HTTP response.
Arguments
-
namename of the VolumeAttachment
-
body -
optionalOptional parameters. Use
Default::default()to not pass any.
impl VolumeAttachment[src]
pub fn replace_volume_attachment_status(
name: &str,
body: &VolumeAttachment,
optional: ReplaceVolumeAttachmentStatusOptional
) -> Result<(Request<Vec<u8>>, fn(_: StatusCode) -> ResponseBody<ReplaceVolumeAttachmentStatusResponse>), RequestError>[src]
name: &str,
body: &VolumeAttachment,
optional: ReplaceVolumeAttachmentStatusOptional
) -> Result<(Request<Vec<u8>>, fn(_: StatusCode) -> ResponseBody<ReplaceVolumeAttachmentStatusResponse>), RequestError>
replace status of the specified VolumeAttachment
Use the returned crate::ResponseBody<ReplaceVolumeAttachmentStatusResponse> constructor, or ReplaceVolumeAttachmentStatusResponse directly, to parse the HTTP response.
Arguments
-
namename of the VolumeAttachment
-
body -
optionalOptional parameters. Use
Default::default()to not pass any.
impl VolumeAttachment[src]
pub fn watch_volume_attachment(
optional: WatchOptional
) -> Result<(Request<Vec<u8>>, fn(_: StatusCode) -> ResponseBody<WatchVolumeAttachmentResponse>), RequestError>[src]
optional: WatchOptional
) -> Result<(Request<Vec<u8>>, fn(_: StatusCode) -> ResponseBody<WatchVolumeAttachmentResponse>), RequestError>
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
-
optionalOptional parameters. Use
Default::default()to not pass any.
Trait Implementations
impl Resource for VolumeAttachment[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 VolumeAttachment[src]
impl Default for VolumeAttachment[src]
fn default() -> VolumeAttachment[src]
impl Clone for VolumeAttachment[src]
fn clone(&self) -> 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]
fn eq(&self, other: &VolumeAttachment) -> bool[src]
fn ne(&self, other: &VolumeAttachment) -> bool[src]
impl Debug for VolumeAttachment[src]
impl Serialize for VolumeAttachment[src]
impl<'de> Deserialize<'de> for VolumeAttachment[src]
fn deserialize<D>(deserializer: D) -> Result<Self, D::Error> where
D: Deserializer<'de>, [src]
D: Deserializer<'de>,
Auto Trait Implementations
impl Sync for VolumeAttachment
impl Unpin for VolumeAttachment
impl Send for VolumeAttachment
impl UnwindSafe for VolumeAttachment
impl RefUnwindSafe for VolumeAttachment
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>,