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 duplicate 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 for CreateInstanceRequest
impl PartialEq for CreateInstanceRequest
Source§impl Serialize for CreateInstanceRequest
impl Serialize for CreateInstanceRequest
impl StructuralPartialEq for CreateInstanceRequest
Auto Trait Implementations§
impl Freeze for CreateInstanceRequest
impl RefUnwindSafe for CreateInstanceRequest
impl Send for CreateInstanceRequest
impl Sync for CreateInstanceRequest
impl Unpin for CreateInstanceRequest
impl UnwindSafe for CreateInstanceRequest
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more