pub struct InstanceCreate {
pub name: String,
pub description: String,
pub disks: Vec<InstanceDiskAttachment>,
pub external_ips: Vec<ExternalIpCreate>,
pub hostname: String,
pub memory: u64,
pub ncpus: u16,
pub network_interfaces: Option<InstanceNetworkInterfaceAttachment>,
pub start: bool,
pub user_data: String,
}
Expand description
Create-time parameters for an Instance
Fields§
§name: String
Names must begin with a lower case ASCII letter, be composed exclusively of lowercase ASCII, uppercase ASCII, numbers, and ‘-’, and may not end with a ‘-’. Names cannot be a UUID though they may contain a UUID.
description: String
§disks: Vec<InstanceDiskAttachment>
The disks to be created or attached for this instance.
external_ips: Vec<ExternalIpCreate>
The external IP addresses provided to this instance.
By default, all instances have outbound connectivity, but no inbound connectivity. These external addresses can be used to provide a fixed, known IP address for making inbound connections to the instance.
hostname: String
§memory: u64
A count of bytes, typically used either for memory or storage capacity
The maximum supported byte count is i64::MAX
. This makes it somewhat inconvenient to define constructors: a u32 constructor can be infallible, but an i64 constructor can fail (if the value is negative) and a u64 constructor can fail (if the value is larger than i64::MAX). We provide all of these for consumers’ convenience.
ncpus: u16
The number of CPUs in an Instance
network_interfaces: Option<InstanceNetworkInterfaceAttachment>
Create-time parameters for an Instance
start: bool
Should this instance be started upon creation; true by default.
user_data: String
User data for instance initialization systems (such as cloud-init). Must be a Base64-encoded string, as specified in RFC 4648 § 4 (+ and / characters with padding). Maximum 32 KiB unencoded data.
Trait Implementations§
Source§impl Clone for InstanceCreate
impl Clone for InstanceCreate
Source§fn clone(&self) -> InstanceCreate
fn clone(&self) -> InstanceCreate
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moreSource§impl Debug for InstanceCreate
impl Debug for InstanceCreate
Source§impl Default for InstanceCreate
impl Default for InstanceCreate
Source§fn default() -> InstanceCreate
fn default() -> InstanceCreate
Source§impl<'de> Deserialize<'de> for InstanceCreate
impl<'de> Deserialize<'de> for InstanceCreate
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Source§impl JsonSchema for InstanceCreate
impl JsonSchema for InstanceCreate
Source§fn schema_name() -> String
fn schema_name() -> String
Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Source§fn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Source§fn is_referenceable() -> bool
fn is_referenceable() -> bool
$ref
keyword. Read more