Type Definition digitalocean::request::VolumeRequest
[−]
[src]
type VolumeRequest<M, V> = Request<M, V>;
A type alias with Request<_, Volume>
specific functions.
Methods
impl VolumeRequest<Get, Volume>
[src]
fn attach(self, droplet: usize) -> VolumeActionRequest<Create, Action>
[src]
fn detach(self, droplet: usize) -> VolumeActionRequest<Create, Action>
[src]
fn resize(self, size: usize) -> VolumeActionRequest<Create, Action>
[src]
fn actions(self) -> VolumeActionRequest<List, Vec<Action>>
[src]
fn action(self, id: usize) -> VolumeActionRequest<Get, Action>
[src]
impl VolumeRequest<List, Vec<Volume>>
[src]
impl VolumeRequest<Get, Volume>
[src]
fn snapshots(self) -> SnapshotRequest<List, Vec<Snapshot>>
[src]
fn snapshot<S>(self, name: S) -> SnapshotRequest<Create, Snapshot> where
S: AsRef<str> + Serialize + Display,
[src]
S: AsRef<str> + Serialize + Display,
impl VolumeRequest<Create, Volume>
[src]
fn description<S>(self, val: S) -> Self where
S: AsRef<str> + Serialize + Display,
[src]
S: AsRef<str> + Serialize + Display,
An optional free-form text field to describe a Block Storage volume.
fn region<S>(self, val: S) -> Self where
S: AsRef<str> + Serialize + Display,
[src]
S: AsRef<str> + Serialize + Display,
The region where the Block Storage volume will be created. When setting a region, the value should be the slug identifier for the region. When you query a Block Storage volume, the entire region object will be returned.
Note: Should not be specified with a snapshot_id
.
fn snapshot_id<S>(self, val: S) -> Self where
S: AsRef<str> + Serialize + Display,
[src]
S: AsRef<str> + Serialize + Display,
The unique identifier for the volume snapshot from which to create the volume.
Note: Should not be specified with a region_id
.