Skip to main content

AutoscalepoolsUpdateResponseAutoscalePoolDropletTemplate

Struct AutoscalepoolsUpdateResponseAutoscalePoolDropletTemplate 

Source
pub struct AutoscalepoolsUpdateResponseAutoscalePoolDropletTemplate {
    pub image: String,
    pub ipv6: Option<bool>,
    pub name: Option<String>,
    pub project_id: Option<String>,
    pub public_networking: bool,
    pub region: AutoscalepoolsUpdateResponseAutoscalePoolDropletTemplateRegion,
    pub size: String,
    pub ssh_keys: Vec<String>,
    pub tags: Vec<String>,
    pub user_data: Option<String>,
    pub vpc_uuid: Option<String>,
    pub with_droplet_agent: Option<bool>,
}
Expand description

AutoscalepoolsUpdateResponseAutoscalePoolDropletTemplate

JSON schema
{
 "type": "object",
 "required": [
   "image",
   "region",
   "size",
   "ssh_keys"
 ],
 "properties": {
   "image": {
     "description": "The Droplet image to be used for all Droplets in the autoscale pool. You may specify the slug or the image ID.",
     "examples": [
       "ubuntu-20-04-x64"
     ],
     "type": "string"
   },
   "ipv6": {
     "description": "Assigns a unique IPv6 address to each of the Droplets in the autoscale pool.",
     "examples": [
       true
     ],
     "type": "boolean"
   },
   "name": {
     "description": "The name(s) to be applied to all Droplets in the autoscale pool.",
     "examples": [
       "my-droplet-name"
     ],
     "type": "string"
   },
   "project_id": {
     "description": "The project that the Droplets in the autoscale pool will belong to.\nRequires `project:read` scope.\n",
     "examples": [
       "746c6152-2fa2-11ed-92d3-27aaa54e4988"
     ],
     "type": "string"
   },
   "public_networking": {
     "description": "An optional boolean indicating whether the Droplets should be created with public networking or not. By default, all Droplets are created with public networking available. If explicitly set to `false`, only private networking will be enabled, and public networking will be disabled; currently this means that it will not have any public static or Reserved IPv4 or IPv6 address, nor can one be assigned later. If explicitly set to `false`, `ipv6` must also be `false`.",
     "default": true,
     "examples": [
       true
     ],
     "type": "boolean"
   },
   "region": {
     "description": "The datacenter in which all of the Droplets will be created.",
     "examples": [
       "tor1"
     ],
     "type": "string",
     "enum": [
       "nyc1",
       "nyc2",
       "nyc3",
       "ams2",
       "ams3",
       "sfo1",
       "sfo2",
       "sfo3",
       "sgp1",
       "lon1",
       "fra1",
       "tor1",
       "blr1",
       "syd1"
     ]
   },
   "size": {
     "description": "The Droplet size to be used for all Droplets in the autoscale pool.",
     "examples": [
       "c-2"
     ],
     "type": "string"
   },
   "ssh_keys": {
     "description": "The SSH keys to be installed on the Droplets in the autoscale pool. You can either specify the key ID or the fingerprint.\nRequires `ssh_key:read` scope.\n",
     "examples": [
       [
         "88:66:90:d2:68:d5:b5:85:e3:26:26:11:31:57:e6:f8"
       ]
     ],
     "type": "array",
     "items": {
       "type": "string"
     }
   },
   "tags": {
     "description": "The tags to apply to each of the Droplets in the autoscale pool.\nRequires `tag:read` scope.\n",
     "examples": [
       [
         "my-tag"
       ]
     ],
     "type": "array",
     "items": {
       "type": "string"
     }
   },
   "user_data": {
     "description": "A string containing user data that cloud-init consumes to configure a Droplet on first boot. User data is often a cloud-config file or Bash script. It must be plain text and may not exceed 64 KiB in size.",
     "examples": [
       "#cloud-config\nruncmd:\n  - touch /test.txt\n"
     ],
     "type": "string"
   },
   "vpc_uuid": {
     "description": "The VPC where the Droplets in the autoscale pool will be created. The VPC must be in the region where you want to create the Droplets.\nRequires `vpc:read` scope.\n",
     "examples": [
       "760e09ef-dc84-11e8-981e-3cfdfeaae000"
     ],
     "type": "string"
   },
   "with_droplet_agent": {
     "description": "Installs the Droplet agent. This must be set to true to monitor Droplets for resource utilization scaling.",
     "examples": [
       true
     ],
     "type": "boolean"
   }
 }
}

Fields§

§image: String

The Droplet image to be used for all Droplets in the autoscale pool. You may specify the slug or the image ID.

§ipv6: Option<bool>

Assigns a unique IPv6 address to each of the Droplets in the autoscale pool.

§name: Option<String>

The name(s) to be applied to all Droplets in the autoscale pool.

§project_id: Option<String>

The project that the Droplets in the autoscale pool will belong to. Requires project:read scope.

§public_networking: bool

An optional boolean indicating whether the Droplets should be created with public networking or not. By default, all Droplets are created with public networking available. If explicitly set to false, only private networking will be enabled, and public networking will be disabled; currently this means that it will not have any public static or Reserved IPv4 or IPv6 address, nor can one be assigned later. If explicitly set to false, ipv6 must also be false.

§region: AutoscalepoolsUpdateResponseAutoscalePoolDropletTemplateRegion

The datacenter in which all of the Droplets will be created.

§size: String

The Droplet size to be used for all Droplets in the autoscale pool.

§ssh_keys: Vec<String>

The SSH keys to be installed on the Droplets in the autoscale pool. You can either specify the key ID or the fingerprint. Requires ssh_key:read scope.

§tags: Vec<String>

The tags to apply to each of the Droplets in the autoscale pool. Requires tag:read scope.

§user_data: Option<String>

A string containing user data that cloud-init consumes to configure a Droplet on first boot. User data is often a cloud-config file or Bash script. It must be plain text and may not exceed 64 KiB in size.

§vpc_uuid: Option<String>

The VPC where the Droplets in the autoscale pool will be created. The VPC must be in the region where you want to create the Droplets. Requires vpc:read scope.

§with_droplet_agent: Option<bool>

Installs the Droplet agent. This must be set to true to monitor Droplets for resource utilization scaling.

Trait Implementations§

Source§

impl Clone for AutoscalepoolsUpdateResponseAutoscalePoolDropletTemplate

Source§

fn clone(&self) -> AutoscalepoolsUpdateResponseAutoscalePoolDropletTemplate

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for AutoscalepoolsUpdateResponseAutoscalePoolDropletTemplate

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl<'de> Deserialize<'de> for AutoscalepoolsUpdateResponseAutoscalePoolDropletTemplate

Source§

fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>
where __D: Deserializer<'de>,

Deserialize this value from the given Serde deserializer. Read more
Source§

impl From<&AutoscalepoolsUpdateResponseAutoscalePoolDropletTemplate> for AutoscalepoolsUpdateResponseAutoscalePoolDropletTemplate

Source§

fn from( value: &AutoscalepoolsUpdateResponseAutoscalePoolDropletTemplate, ) -> Self

Converts to this type from the input type.
Source§

impl Serialize for AutoscalepoolsUpdateResponseAutoscalePoolDropletTemplate

Source§

fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>
where __S: Serializer,

Serialize this value into the given Serde serializer. Read more

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> DeserializeOwned for T
where T: for<'de> Deserialize<'de>,

Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T> Instrument for T

Source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
Source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> PolicyExt for T
where T: ?Sized,

Source§

fn and<P, B, E>(self, other: P) -> And<T, P>
where T: Sized + Policy<B, E>, P: Policy<B, E>,

Create a new Policy that returns Action::Follow only if self and other return Action::Follow. Read more
Source§

fn or<P, B, E>(self, other: P) -> Or<T, P>
where T: Sized + Policy<B, E>, P: Policy<B, E>,

Create a new Policy that returns Action::Follow if either self or other returns Action::Follow. Read more
Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = !

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<T> WithSubscriber for T

Source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
Source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more