summaryrefslogtreecommitdiff
path: root/opendc-compute/opendc-compute-api/src/main/kotlin/org/opendc/compute
diff options
context:
space:
mode:
authorDante Niewenhuis <d.niewenhuis@hotmail.com>2025-07-22 15:47:44 +0200
committerGitHub <noreply@github.com>2025-07-22 15:47:44 +0200
commite22c97dcca7478d6941b78bdf7cd873bc0d23cdc (patch)
treef1859c16f4c7973d8b16ed693caad4c749d42331 /opendc-compute/opendc-compute-api/src/main/kotlin/org/opendc/compute
parent0c0cf25616771cd40a9e401edcba4a5e5016f76e (diff)
Updated workload schema (#360)
Diffstat (limited to 'opendc-compute/opendc-compute-api/src/main/kotlin/org/opendc/compute')
-rw-r--r--opendc-compute/opendc-compute-api/src/main/kotlin/org/opendc/compute/api/Flavor.kt6
-rw-r--r--opendc-compute/opendc-compute-api/src/main/kotlin/org/opendc/compute/api/Resource.kt9
2 files changed, 4 insertions, 11 deletions
diff --git a/opendc-compute/opendc-compute-api/src/main/kotlin/org/opendc/compute/api/Flavor.kt b/opendc-compute/opendc-compute-api/src/main/kotlin/org/opendc/compute/api/Flavor.kt
index a15191c6..581c29ba 100644
--- a/opendc-compute/opendc-compute-api/src/main/kotlin/org/opendc/compute/api/Flavor.kt
+++ b/opendc-compute/opendc-compute-api/src/main/kotlin/org/opendc/compute/api/Flavor.kt
@@ -45,15 +45,15 @@ public interface Flavor : Resource {
/**
* Set of Tasks that need to be finished before this can startAdd commentMore actions
*/
- public val dependencies: Set<String>
+ public val dependencies: Set<Int>
/**
* Set of Tasks that need to be finished before this can startAdd commentMore actions
*/
- public val parents: Set<String>
+ public val parents: Set<Int>
/**
* Set of Tasks that need to be finished before this can startAdd commentMore actions
*/
- public val children: Set<String>
+ public val children: Set<Int>
}
diff --git a/opendc-compute/opendc-compute-api/src/main/kotlin/org/opendc/compute/api/Resource.kt b/opendc-compute/opendc-compute-api/src/main/kotlin/org/opendc/compute/api/Resource.kt
index 2c3822a7..ab9d42f3 100644
--- a/opendc-compute/opendc-compute-api/src/main/kotlin/org/opendc/compute/api/Resource.kt
+++ b/opendc-compute/opendc-compute-api/src/main/kotlin/org/opendc/compute/api/Resource.kt
@@ -22,21 +22,14 @@
package org.opendc.compute.api
-import java.util.UUID
-
/**
* A generic resource provided by the OpenDC Compute service.
*/
public interface Resource {
/**
- * The unique identifier of the resource.
- */
- public val uid: UUID
-
- /**
* The name of the resource.
*/
- public val name: String
+ public val taskId: Int
/**
* The non-identifying metadata attached to the resource.