]> git.immae.eu Git - github/fretlink/ansible-clever.git/blobdiff - dhall/ServiceDependency.dhall
Add dhall definitions for linked service dependencies
[github/fretlink/ansible-clever.git] / dhall / ServiceDependency.dhall
diff --git a/dhall/ServiceDependency.dhall b/dhall/ServiceDependency.dhall
new file mode 100644 (file)
index 0000000..9cad9b4
--- /dev/null
@@ -0,0 +1,9 @@
+let ServiceDependency =
+      < Addon : { addon_id : Text } | Application : { app_id : Text } >
+
+let addon = λ(addon_id : Text) → ServiceDependency.Addon { addon_id = addon_id }
+
+let application =
+      λ(app_id : Text) → ServiceDependency.Application { app_id = app_id }
+
+in  { Type = ServiceDependency, addon = addon, application = application }