add code for VmBeingModified endpoint
Some checks are pending
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:
2024-09-16 08:40:24 +10:00
parent 40fb860385
commit 19d5b2406e
7 changed files with 125 additions and 13 deletions

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"`
}