Skip to content

Commit

Permalink
Add edge Update Manager models
Browse files Browse the repository at this point in the history
Signed-off-by: Dimitar Dimitrov <[email protected]>
  • Loading branch information
dimitar-dimitrow committed Aug 17, 2023
1 parent a5b8d9e commit 1bd244b
Show file tree
Hide file tree
Showing 51 changed files with 5,115 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Copyright (C) 2023 Bosch.IO GmbH
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
vortolang 1.0
namespace com.bosch.iot.suite.edge.update
version 1.0.0
displayname "Action"
description "Represents an action that is performed during an update procedure"

using com.bosch.iot.suite.edge.update.Component ; 1.0.0
using com.bosch.iot.suite.edge.update.ActionStatusType ; 1.0.0

entity Action {
component as Component
status as ActionStatusType
progress as int
message as string
}
281 changes: 281 additions & 0 deletions models/com.bosch.iot.suite.edge.update-Action-1.0.0.type/model.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,281 @@
{
"root" : {
"name" : "Action",
"namespace" : "com.bosch.iot.suite.edge.update",
"version" : "1.0.0",
"prettyFormat" : "com.bosch.iot.suite.edge.update:Action:1.0.0"
},
"models" : {
"com.bosch.iot.suite.edge.update:Action:1.0.0" : {
"targetPlatformKey" : null,
"stereotypes" : [ ],
"mappingReference" : null,
"vortolang" : "1.0",
"id" : {
"name" : "Action",
"namespace" : "com.bosch.iot.suite.edge.update",
"version" : "1.0.0",
"prettyFormat" : "com.bosch.iot.suite.edge.update:Action:1.0.0"
},
"type" : "Datatype",
"displayName" : "Action",
"description" : "Represents an action that is performed during an update procedure",
"category" : null,
"fileName" : "Action.type",
"modelType" : "EntityModel",
"references" : [ {
"name" : "Component",
"namespace" : "com.bosch.iot.suite.edge.update",
"version" : "1.0.0",
"prettyFormat" : "com.bosch.iot.suite.edge.update:Component:1.0.0"
}, {
"name" : "ActionStatusType",
"namespace" : "com.bosch.iot.suite.edge.update",
"version" : "1.0.0",
"prettyFormat" : "com.bosch.iot.suite.edge.update:ActionStatusType:1.0.0"
} ],
"properties" : [ {
"targetPlatformKey" : null,
"stereotypes" : [ ],
"mappingReference" : null,
"mandatory" : true,
"name" : "component",
"description" : null,
"type" : {
"name" : "Component",
"namespace" : "com.bosch.iot.suite.edge.update",
"version" : "1.0.0",
"prettyFormat" : "com.bosch.iot.suite.edge.update:Component:1.0.0"
},
"constraints" : [ ],
"attributes" : [ ],
"multiple" : false,
"primitive" : false
}, {
"targetPlatformKey" : null,
"stereotypes" : [ ],
"mappingReference" : null,
"mandatory" : true,
"name" : "status",
"description" : null,
"type" : {
"name" : "ActionStatusType",
"namespace" : "com.bosch.iot.suite.edge.update",
"version" : "1.0.0",
"prettyFormat" : "com.bosch.iot.suite.edge.update:ActionStatusType:1.0.0"
},
"constraints" : [ ],
"attributes" : [ ],
"multiple" : false,
"primitive" : false
}, {
"targetPlatformKey" : null,
"stereotypes" : [ ],
"mappingReference" : null,
"mandatory" : true,
"name" : "progress",
"description" : null,
"type" : "INT",
"constraints" : [ ],
"attributes" : [ ],
"multiple" : false,
"primitive" : true
}, {
"targetPlatformKey" : null,
"stereotypes" : [ ],
"mappingReference" : null,
"mandatory" : true,
"name" : "message",
"description" : null,
"type" : "STRING",
"constraints" : [ ],
"attributes" : [ ],
"multiple" : false,
"primitive" : true
} ],
"superType" : null
},
"com.bosch.iot.suite.edge.update:ActionStatusType:1.0.0" : {
"targetPlatformKey" : null,
"stereotypes" : [ ],
"mappingReference" : null,
"vortolang" : "1.0",
"id" : {
"name" : "ActionStatusType",
"namespace" : "com.bosch.iot.suite.edge.update",
"version" : "1.0.0",
"prettyFormat" : "com.bosch.iot.suite.edge.update:ActionStatusType:1.0.0"
},
"type" : "Datatype",
"displayName" : "ActionStatusType",
"description" : "Represents the possible status values for an update action",
"category" : null,
"fileName" : "ActionStatusType.type",
"modelType" : "EnumModel",
"references" : [ ],
"literals" : [ {
"name" : "IDENTIFIED",
"description" : null,
"parent" : {
"name" : "ActionStatusType",
"namespace" : "com.bosch.iot.suite.edge.update",
"version" : "1.0.0",
"prettyFormat" : "com.bosch.iot.suite.edge.update:ActionStatusType:1.0.0"
}
}, {
"name" : "DOWNLOADING",
"description" : null,
"parent" : {
"name" : "ActionStatusType",
"namespace" : "com.bosch.iot.suite.edge.update",
"version" : "1.0.0",
"prettyFormat" : "com.bosch.iot.suite.edge.update:ActionStatusType:1.0.0"
}
}, {
"name" : "DOWNLOAD_FAILURE",
"description" : null,
"parent" : {
"name" : "ActionStatusType",
"namespace" : "com.bosch.iot.suite.edge.update",
"version" : "1.0.0",
"prettyFormat" : "com.bosch.iot.suite.edge.update:ActionStatusType:1.0.0"
}
}, {
"name" : "DOWNLOAD_SUCCESS",
"description" : null,
"parent" : {
"name" : "ActionStatusType",
"namespace" : "com.bosch.iot.suite.edge.update",
"version" : "1.0.0",
"prettyFormat" : "com.bosch.iot.suite.edge.update:ActionStatusType:1.0.0"
}
}, {
"name" : "UPDATING",
"description" : null,
"parent" : {
"name" : "ActionStatusType",
"namespace" : "com.bosch.iot.suite.edge.update",
"version" : "1.0.0",
"prettyFormat" : "com.bosch.iot.suite.edge.update:ActionStatusType:1.0.0"
}
}, {
"name" : "UPDATE_FAILURE",
"description" : null,
"parent" : {
"name" : "ActionStatusType",
"namespace" : "com.bosch.iot.suite.edge.update",
"version" : "1.0.0",
"prettyFormat" : "com.bosch.iot.suite.edge.update:ActionStatusType:1.0.0"
}
}, {
"name" : "UPDATE_SUCCESS",
"description" : null,
"parent" : {
"name" : "ActionStatusType",
"namespace" : "com.bosch.iot.suite.edge.update",
"version" : "1.0.0",
"prettyFormat" : "com.bosch.iot.suite.edge.update:ActionStatusType:1.0.0"
}
}, {
"name" : "REMOVING",
"description" : null,
"parent" : {
"name" : "ActionStatusType",
"namespace" : "com.bosch.iot.suite.edge.update",
"version" : "1.0.0",
"prettyFormat" : "com.bosch.iot.suite.edge.update:ActionStatusType:1.0.0"
}
}, {
"name" : "REMOVAL_FAILURE",
"description" : null,
"parent" : {
"name" : "ActionStatusType",
"namespace" : "com.bosch.iot.suite.edge.update",
"version" : "1.0.0",
"prettyFormat" : "com.bosch.iot.suite.edge.update:ActionStatusType:1.0.0"
}
}, {
"name" : "REMOVAL_SUCCESS",
"description" : null,
"parent" : {
"name" : "ActionStatusType",
"namespace" : "com.bosch.iot.suite.edge.update",
"version" : "1.0.0",
"prettyFormat" : "com.bosch.iot.suite.edge.update:ActionStatusType:1.0.0"
}
}, {
"name" : "ACTIVATING",
"description" : null,
"parent" : {
"name" : "ActionStatusType",
"namespace" : "com.bosch.iot.suite.edge.update",
"version" : "1.0.0",
"prettyFormat" : "com.bosch.iot.suite.edge.update:ActionStatusType:1.0.0"
}
}, {
"name" : "ACTIVATION_FAILURE",
"description" : null,
"parent" : {
"name" : "ActionStatusType",
"namespace" : "com.bosch.iot.suite.edge.update",
"version" : "1.0.0",
"prettyFormat" : "com.bosch.iot.suite.edge.update:ActionStatusType:1.0.0"
}
}, {
"name" : "ACTIVATION_SUCCESS",
"description" : null,
"parent" : {
"name" : "ActionStatusType",
"namespace" : "com.bosch.iot.suite.edge.update",
"version" : "1.0.0",
"prettyFormat" : "com.bosch.iot.suite.edge.update:ActionStatusType:1.0.0"
}
} ]
},
"com.bosch.iot.suite.edge.update:Component:1.0.0" : {
"targetPlatformKey" : null,
"stereotypes" : [ ],
"mappingReference" : null,
"vortolang" : "1.0",
"id" : {
"name" : "Component",
"namespace" : "com.bosch.iot.suite.edge.update",
"version" : "1.0.0",
"prettyFormat" : "com.bosch.iot.suite.edge.update:Component:1.0.0"
},
"type" : "Datatype",
"displayName" : "Component",
"description" : "Represents a desired state component",
"category" : null,
"fileName" : "Component.type",
"modelType" : "EntityModel",
"references" : [ ],
"properties" : [ {
"targetPlatformKey" : null,
"stereotypes" : [ ],
"mappingReference" : null,
"mandatory" : true,
"name" : "id",
"description" : null,
"type" : "STRING",
"constraints" : [ ],
"attributes" : [ ],
"multiple" : false,
"primitive" : true
}, {
"targetPlatformKey" : null,
"stereotypes" : [ ],
"mappingReference" : null,
"mandatory" : true,
"name" : "version",
"description" : null,
"type" : "STRING",
"constraints" : [ ],
"attributes" : [ ],
"multiple" : false,
"primitive" : true
} ],
"superType" : null
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Copyright (C) 2023 Bosch.IO GmbH
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
vortolang 1.0
namespace com.bosch.iot.suite.edge.update
version 1.0.0
displayname "ActionStatusType"
description "Represents the possible status values for an update action"

enum ActionStatusType {
IDENTIFIED,
DOWNLOADING,
DOWNLOAD_FAILURE,
DOWNLOAD_SUCCESS,
UPDATING,
UPDATE_FAILURE,
UPDATE_SUCCESS,
REMOVING,
REMOVAL_FAILURE,
REMOVAL_SUCCESS,
ACTIVATING,
ACTIVATION_FAILURE,
ACTIVATION_SUCCESS
}
Loading

0 comments on commit 1bd244b

Please sign in to comment.