Skip to main content

exoscale_rs/models/
scale_instance_request.rs

1/*
2 * Exoscale API
3 *
4 * Infrastructure automation API, allowing programmatic access to all Exoscale products and services.
5 *
6 * The version of the OpenAPI document: 2.0.0
7 * Contact: support@exoscale.com
8 * Generated by: https://openapi-generator.tech
9 */
10
11use crate::models;
12use serde::{Deserialize, Serialize};
13
14#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
15pub struct ScaleInstanceRequest {
16    #[serde(rename = "instance-type")]
17    pub instance_type: Box<models::InstanceTypeRef>,
18}
19
20impl ScaleInstanceRequest {
21    pub fn new(instance_type: models::InstanceTypeRef) -> ScaleInstanceRequest {
22        ScaleInstanceRequest {
23            instance_type: Box::new(instance_type),
24        }
25    }
26}
27