summaryrefslogtreecommitdiff
path: root/opendc-compute/opendc-compute-api
diff options
context:
space:
mode:
Diffstat (limited to 'opendc-compute/opendc-compute-api')
-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.