exoscale/models/dbaas_service_update.rs
1/*
2 * Exoscale Public API
3 *
4 * Infrastructure automation API, allowing programmatic access to all Exoscale products and services. The [OpenAPI Specification](http://spec.openapis.org/oas/v3.0.3.html) source of this documentation can be obtained here: * [JSON format](https://bump.sh/doc/exoscale-api.json) * [YAML format](https://bump.sh/doc/exoscale-api.yaml)
5 *
6 * The version of the OpenAPI document: 2.0.0
7 * Contact: api@exoscale.com
8 * Generated by: https://openapi-generator.tech
9 */
10
11/// DbaasServiceUpdate : Update waiting to be installed
12
13#[derive(Clone, Debug, PartialEq, Default, Serialize, Deserialize)]
14pub struct DbaasServiceUpdate {
15 /// Description of the update
16 #[serde(rename = "description", skip_serializing_if = "Option::is_none")]
17 pub description: Option<String>,
18 /// Deadline for installing the update
19 #[serde(rename = "deadline", skip_serializing_if = "Option::is_none")]
20 pub deadline: Option<String>,
21 /// The earliest time the update will be automatically applied
22 #[serde(rename = "start-after", skip_serializing_if = "Option::is_none")]
23 pub start_after: Option<String>,
24 /// The time when the update will be automatically applied
25 #[serde(rename = "start-at", skip_serializing_if = "Option::is_none")]
26 pub start_at: Option<String>,
27}
28
29impl DbaasServiceUpdate {
30 /// Update waiting to be installed
31 pub fn new() -> DbaasServiceUpdate {
32 DbaasServiceUpdate {
33 description: None,
34 deadline: None,
35 start_after: None,
36 start_at: None,
37 }
38 }
39}