[][src]Struct k8s_csi::v1_3_0::CreateSnapshotRequest

pub struct CreateSnapshotRequest {
    pub source_volume_id: String,
    pub name: String,
    pub secrets: BTreeMap<String, String>,
    pub parameters: BTreeMap<String, String>,
}

Fields

source_volume_id: String

The ID of the source volume to be snapshotted. This field is REQUIRED.

name: String

The suggested name for the snapshot. This field is REQUIRED for idempotency. Any Unicode string that conforms to the length limit is allowed except those containing the following banned characters: U+0000-U+0008, U+000B, U+000C, U+000E-U+001F, U+007F-U+009F. (These are control characters other than commonly used whitespace.)

secrets: BTreeMap<String, String>

Secrets required by plugin to complete snapshot creation request. This field is OPTIONAL. Refer to the Secrets Requirements section on how to use this field.

parameters: BTreeMap<String, String>

Plugin specific parameters passed in as opaque key-value pairs. This field is OPTIONAL. The Plugin is responsible for parsing and validating these parameters. COs will treat these as opaque. Use cases for opaque parameters:

  • Specify a policy to automatically clean up the snapshot.
  • Specify an expiration date for the snapshot.
  • Specify whether the snapshot is readonly or read/write.
  • Specify if the snapshot should be replicated to some place.
  • Specify primary or secondary for replication systems that support snapshotting only on primary.

Trait Implementations

impl Clone for CreateSnapshotRequest[src]

impl Debug for CreateSnapshotRequest[src]

impl Default for CreateSnapshotRequest[src]

impl Message for CreateSnapshotRequest[src]

impl PartialEq<CreateSnapshotRequest> for CreateSnapshotRequest[src]

impl StructuralPartialEq for CreateSnapshotRequest[src]

Auto Trait Implementations

Blanket Implementations

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

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

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

impl<T> From<T> for T[src]

impl<T> Instrument for T[src]

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

impl<T> IntoRequest<T> for T[src]

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

type Owned = T

The resulting type after obtaining ownership.

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

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> 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<V, T> VZip<V> for T where
    V: MultiLane<T>, 

impl<T> WithSubscriber for T[src]