Type Definition digitalocean::request::DropletRequest
[−]
[src]
type DropletRequest<M, V> = Request<M, V>;
A type alias with Request<_, Droplet>
specific functions.
Methods
impl DropletRequest<Get, Droplet>
[src]
fn actions(self) -> DropletActionRequest<List, Vec<Action>>
[src]
fn enable_backups(self) -> DropletActionRequest<Create, Action>
[src]
fn disable_backups(self) -> DropletActionRequest<Create, Action>
[src]
fn reboot(self) -> DropletActionRequest<Create, Action>
[src]
fn power_cycle(self) -> DropletActionRequest<Create, Action>
[src]
fn shutdown(self) -> DropletActionRequest<Create, Action>
[src]
fn power(self, val: bool) -> DropletActionRequest<Create, Action>
[src]
fn restore<D>(self, image: D) -> DropletActionRequest<Create, Action> where
D: Display,
[src]
D: Display,
fn password_reset(self) -> DropletActionRequest<Create, Action>
[src]
fn resize<S>(self, size: S, disk: bool) -> DropletActionRequest<Create, Action> where
S: AsRef<str> + Serialize + Display,
[src]
S: AsRef<str> + Serialize + Display,
fn rebuild<S>(self, image: S) -> DropletActionRequest<Create, Action> where
S: AsRef<str> + Serialize + Display,
[src]
S: AsRef<str> + Serialize + Display,
fn rename<S>(self, name: S) -> DropletActionRequest<Create, Action> where
S: AsRef<str> + Serialize + Display,
[src]
S: AsRef<str> + Serialize + Display,
fn kernel(self, kernel: usize) -> DropletActionRequest<Create, Action>
[src]
fn enable_ipv6(self) -> DropletActionRequest<Create, Action>
[src]
fn enable_private_networking(self) -> DropletActionRequest<Create, Action>
[src]
fn snapshot<S>(self, name: S) -> DropletActionRequest<Create, Action> where
S: AsRef<str> + Serialize + Display,
[src]
S: AsRef<str> + Serialize + Display,
fn action(self, id: usize) -> DropletActionRequest<Get, Action>
[src]
impl DropletRequest<Create, Droplet>
[src]
fn ssh_keys<D>(self, val: Vec<D>) -> Self where
D: Display + Serialize,
[src]
D: Display + Serialize,
An array containing the IDs or fingerprints of the SSH keys that you wish to embed in the Droplet's root account upon creation.
fn backups(self, val: bool) -> Self
[src]
A boolean indicating whether automated backups should be enabled for the Droplet. Automated backups can only be enabled when the Droplet is created.
fn ipv6(self, val: bool) -> Self
[src]
A boolean indicating whether IPv6 is enabled on the Droplet.
fn private_networking(self, val: bool) -> Self
[src]
A boolean indicating whether private networking is enabled for the Droplet. Private networking is currently only available in certain regions.
fn user_data(self, val: bool) -> Self
[src]
A string containing 'user data' which may be used to configure the Droplet on first boot, often a 'cloud-config' file or Bash script. It must be plain text and may not exceed 64 KiB in size.
fn monitoring(self, val: bool) -> Self
[src]
A boolean indicating whether to install the DigitalOcean agent for monitoring.
fn volumes(self, val: Vec<String>) -> Self
[src]
A flat array including the unique string identifier for each Block Storage volume to be attached to the Droplet. At the moment a volume can only be attached to a single Droplet.
[src]
A flat array of tag names as strings to apply to the Droplet after it is created. Tag names can either be existing or new tags.
impl DropletRequest<Create, Vec<Droplet>>
[src]
fn ssh_keys<D>(self, val: Vec<D>) -> Self where
D: Display + Serialize,
[src]
D: Display + Serialize,
An array containing the IDs or fingerprints of the SSH keys that you wish to embed in the Droplet's root account upon creation.
fn backups(self, val: bool) -> Self
[src]
A boolean indicating whether automated backups should be enabled for the Droplet. Automated backups can only be enabled when the Droplet is created.
fn ipv6(self, val: bool) -> Self
[src]
A boolean indicating whether IPv6 is enabled on the Droplet.
fn private_networking(self, val: bool) -> Self
[src]
A boolean indicating whether private networking is enabled for the Droplet. Private networking is currently only available in certain regions.
fn user_data(self, val: bool) -> Self
[src]
A string containing 'user data' which may be used to configure the Droplet on first boot, often a 'cloud-config' file or Bash script. It must be plain text and may not exceed 64 KiB in size.
fn monitoring(self, val: bool) -> Self
[src]
A boolean indicating whether to install the DigitalOcean agent for monitoring.
fn volumes(self, val: Vec<String>) -> Self
[src]
A flat array including the unique string identifier for each Block Storage volume to be attached to the Droplet. At the moment a volume can only be attached to a single Droplet.
[src]
A flat array of tag names as strings to apply to the Droplet after it is created. Tag names can either be existing or new tags.