Skip to content

Commit 9b0bd7e

Browse files
authored
Update disk API to operate on UUIDs (#12)
1 parent c2728e1 commit 9b0bd7e

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

propolis-client/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,4 +14,4 @@ panic = "abort"
1414
[dependencies]
1515
schemars = { version = "0.8", features = [ "uuid" ] }
1616
serde = "1.0"
17-
uuid = "0.8"
17+
uuid = { version = "0.8", features = [ "serde", "v4" ] }

propolis-client/src/api.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -163,8 +163,9 @@ pub struct DiskAttachmentInfo {
163163

164164
#[derive(Deserialize, Serialize, JsonSchema)]
165165
pub enum DiskAttachmentState {
166-
Attached(DiskAttachmentInfo),
166+
Attached(Uuid),
167167
Detached,
168+
Destroyed,
168169
Faulted,
169170
}
170171

0 commit comments

Comments
 (0)