pub use foundation_deployment::providers::common::{
read_error_body, send_bytes, send_checked, send_json, send_json_lines, send_without_body,
with_raw_body, ApiClient, BodyLimits, ByteStream, JsonLinesStream,
};
pub use foundation_deployment::providers::common::{
ApiError, ApiPending, ApiResponse, BoxedSendExecutionAction, Empty, Operation,
};
use foundation_macros::JsonHash;
use serde::{Deserialize, Serialize};
#[derive(Debug, Clone, Default, Serialize, Deserialize, JsonHash)]
pub struct AnnouncedUnavailableAfterObject {
pub announced: String,
pub unavailable_after: String,
}
#[derive(Debug, Clone, Default, Serialize, Deserialize, JsonHash)]
pub struct CodeMessageObject {
pub code: String,
pub message: String,
}
#[derive(Debug, Clone, Default, Serialize, Deserialize, JsonHash)]
pub struct CreateServerResponseServerLocationShape {
pub city: String,
pub country: String,
pub description: String,
pub id: i64,
pub latitude: f64,
pub longitude: f64,
pub name: String,
pub network_zone: String,
}
#[derive(Debug, Clone, Default, Serialize, Deserialize, JsonHash)]
pub struct CreateServerResponseServerPlacementGroupShape {
pub created: String,
pub id: i64,
pub labels: serde_json::Value,
pub name: String,
pub servers: Vec<i64>,
#[serde(rename = "type")]
pub r#type: String,
}
#[derive(Debug, Clone, Default, Serialize, Deserialize, JsonHash)]
pub struct CreateServerResponseServerPrivateNetItemShape {
pub alias_ips: Option<Vec<String>>,
pub ip: Option<String>,
pub mac_address: Option<String>,
pub network: Option<i64>,
}
#[derive(Debug, Clone, Default, Serialize, Deserialize, JsonHash)]
pub struct CreateServerResponseServerPublicNetIpv4Shape {
pub blocked: bool,
pub dns_ptr: String,
pub id: Option<i64>,
pub ip: String,
}
#[derive(Debug, Clone, Default, Serialize, Deserialize, JsonHash)]
pub struct CreateSshKeyResponseSshKeyShape {
pub created: String,
pub fingerprint: String,
pub id: i64,
pub labels: serde_json::Value,
pub name: String,
pub public_key: String,
}
#[derive(Debug, Clone, Default, Serialize, Deserialize, JsonHash)]
pub struct DeleteObject {
pub delete: bool,
}
#[derive(Debug, Clone, Default, Serialize, Deserialize, JsonHash)]
pub struct DeleteRebuildObject {
pub delete: bool,
pub rebuild: bool,
}
#[derive(Debug, Clone, Default, Serialize, Deserialize, JsonHash)]
pub struct DnsPtrIpObject {
pub dns_ptr: String,
pub ip: String,
}
#[derive(Debug, Clone, Default, Serialize, Deserialize, JsonHash)]
pub struct GrossNetObject {
pub gross: String,
pub net: String,
}
#[derive(Debug, Clone, Default, Serialize, JsonHash)]
pub struct IdArgs {
pub id: String,
}
#[derive(Debug, Clone, Default, Serialize, Deserialize, JsonHash)]
pub struct IdNameObject {
pub id: i64,
pub name: String,
}
#[derive(Debug, Clone, Default, Serialize, Deserialize, JsonHash)]
pub struct IdStatusObject {
pub id: Option<i64>,
pub status: Option<String>,
}
#[derive(Debug, Clone, Default, Serialize, Deserialize, JsonHash)]
pub struct IdTypeObject {
pub id: i64,
#[serde(rename = "type")]
pub r#type: String,
}
#[derive(Debug, Clone, Default, Serialize, Deserialize, JsonHash)]
pub struct ListServersResponseMetaPaginationShape {
pub last_page: Option<i64>,
pub next_page: Option<i64>,
pub page: i64,
pub per_page: i64,
pub previous_page: Option<i64>,
pub total_entries: Option<i64>,
}