add code for VmBeingModified endpoint
CI / Lint (push) Waiting to run
CI / Test (push) Waiting to run
CI / End-to-End (push) Waiting to run
CI / Publish Docker (push) Blocked by required conditions
continuous-integration/drone/push Build is passing

This commit is contained in:
nathan committed 2024-09-16 08:40:24 +10:00
1 parent 40fb860385
commit 19d5b2406e
7 files changed
+125 -13

No files matched your search

+10 -5
View File
@@ -1,6 +1,9 @@
package models
import "time"
import (
"encoding/json"
"time"
)
type CloudEventReceived struct {
CloudEvent struct {
@@ -55,10 +58,12 @@ type CloudEventReceived struct {
Value string `json:"Value"`
} `json:"Vm"`
} `json:"Vm"`
ConfigSpec any `json:"configSpec"`
ConfigChanges struct {
Modified string `json:"modified"`
} `json:"configChanges"`
ConfigSpec *json.RawMessage `json:"configSpec"`
ConfigChanges ConfigChangesReceived `json:"configChanges"`
} `json:"data"`
} `json:"cloudEvent"`
}
type ConfigChangesReceived struct {
Modified string `json:"modified"`
}