pub struct CreateInstanceRequest {Show 15 fields
pub organization_id: Option<String>,
pub project_id: Option<String>,
pub name: Option<String>,
pub engine: String,
pub user_name: String,
pub password: String,
pub node_type: String,
pub is_ha_cluster: Option<bool>,
pub disable_backup: Option<bool>,
pub tags: Option<Vec<String>>,
pub init_settings: Option<Vec<ScalewayPeriodRdbPeriodV1PeriodInstanceSetting>>,
pub volume_type: Option<VolumeType>,
pub volume_size: Option<i32>,
pub init_endpoints: Option<Vec<ScalewayPeriodRdbPeriodV1PeriodEndpointSpec>>,
pub backup_same_region: Option<bool>,
}
Fields§
§organization_id: Option<String>
Please use project_id
instead
project_id: Option<String>
The project ID on which to create the instance
name: Option<String>
Name of the instance
engine: String
Database engine of the database (PostgreSQL, MySQL, …)
user_name: String
Name of the user created when the instance is created
password: String
Password of the user
node_type: String
Type of node to use for the instance
is_ha_cluster: Option<bool>
Whether or not High-Availability is enabled
disable_backup: Option<bool>
Whether or not backups are disabled
Tags to apply to the instance
init_settings: Option<Vec<ScalewayPeriodRdbPeriodV1PeriodInstanceSetting>>
List of engine settings to be set at database initialisation
volume_type: Option<VolumeType>
Type of volume where data are stored (lssd, bssd, …)
volume_size: Option<i32>
Volume size when volume_type is not lssd (in bytes)
init_endpoints: Option<Vec<ScalewayPeriodRdbPeriodV1PeriodEndpointSpec>>
One or multiple EndpointSpec used to expose your database instance. A load_balancer public endpoint is systematically created
backup_same_region: Option<bool>
Store logical backups in the same region as the database instance
Implementations§
Trait Implementations§
source§impl Clone for CreateInstanceRequest
impl Clone for CreateInstanceRequest
source§fn clone(&self) -> CreateInstanceRequest
fn clone(&self) -> CreateInstanceRequest
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for CreateInstanceRequest
impl Debug for CreateInstanceRequest
source§impl Default for CreateInstanceRequest
impl Default for CreateInstanceRequest
source§fn default() -> CreateInstanceRequest
fn default() -> CreateInstanceRequest
Returns the “default value” for a type. Read more
source§impl<'de> Deserialize<'de> for CreateInstanceRequest
impl<'de> Deserialize<'de> for CreateInstanceRequest
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>,
Deserialize this value from the given Serde deserializer. Read more
source§impl PartialEq<CreateInstanceRequest> for CreateInstanceRequest
impl PartialEq<CreateInstanceRequest> for CreateInstanceRequest
source§fn eq(&self, other: &CreateInstanceRequest) -> bool
fn eq(&self, other: &CreateInstanceRequest) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.