From e22c97dcca7478d6941b78bdf7cd873bc0d23cdc Mon Sep 17 00:00:00 2001 From: Dante Niewenhuis Date: Tue, 22 Jul 2025 15:47:44 +0200 Subject: Updated workload schema (#360) --- .../src/main/kotlin/org/opendc/compute/api/Flavor.kt | 6 +++--- .../src/main/kotlin/org/opendc/compute/api/Resource.kt | 9 +-------- 2 files changed, 4 insertions(+), 11 deletions(-) (limited to 'opendc-compute/opendc-compute-api/src/main/kotlin/org') 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 + public val dependencies: Set /** * Set of Tasks that need to be finished before this can startAdd commentMore actions */ - public val parents: Set + public val parents: Set /** * Set of Tasks that need to be finished before this can startAdd commentMore actions */ - public val children: Set + public val children: Set } 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. -- cgit v1.2.3