Making an alternate backup copy of the OSConfig model files from the public repo (#376)

This commit is contained in:
Marius Niculescu 2022-09-09 12:15:41 -07:00 коммит произвёл GitHub
Родитель f1188a2095
Коммит 87a1acfd08
Не найден ключ, соответствующий данной подписи
Идентификатор ключа GPG: 4AEE18F83AFDEB23
35 изменённых файлов: 2110 добавлений и 0 удалений

5
dtmi/README.md Normal file
Просмотреть файл

@ -0,0 +1,5 @@
# OSConfig Digital Twins Model Interfaces (DTMI)
These files are copied from the public models repository at [github.com/Azure/iot-plugandplay-models/tree/main/dtmi/osconfig/](https://github.com/Azure/iot-plugandplay-models/tree/main/dtmi/osconfig/).
Do not edit, add or remove files from this folder.

107
dtmi/commandrunner-1.json Normal file
Просмотреть файл

@ -0,0 +1,107 @@
{
"@context": "dtmi:dtdl:context;2",
"@id": "dtmi:osconfig:commandrunner;1",
"@type": "Interface",
"displayName": "Command Runner",
"description": "Provides functionality to remotely run commands on the device",
"contents": [
{
"@type": "Property",
"name": "CommandStatus",
"schema": {
"@type": "Object",
"fields": [
{
"name": "CommandId",
"schema": "string"
},
{
"name": "ResultCode",
"schema": "integer"
},
{
"name": "ExtendedResultCode",
"schema": "integer"
},
{
"name": "TextResult",
"schema": "string"
},
{
"name": "CurrentState",
"schema": {
"@type": "Enum",
"valueSchema": "integer",
"enumValues": [
{
"name": "Unknown",
"enumValue": 0
},
{
"name": "Running",
"enumValue": 1
},
{
"name": "Succeeded",
"enumValue": 2
},
{
"name": "Failed",
"enumValue": 3
}
]
}
}
]
},
"writable": false
},
{
"@type": "Property",
"name": "CommandArguments",
"schema": {
"@type": "Object",
"fields": [
{
"name": "CommandId",
"schema": "string"
},
{
"name": "Arguments",
"schema": "string"
},
{
"name": "Action",
"schema": {
"@type": "Enum",
"valueSchema": "integer",
"enumValues": [
{
"name": "None",
"enumValue": 0
},
{
"name": "Reboot",
"enumValue": 1
},
{
"name": "Shutdown",
"enumValue": 2
},
{
"name": "RunCommand",
"enumValue": 3
},
{
"name": "RefreshCommandStatus",
"enumValue": 4
}
]
}
}
]
},
"writable": true
}
]
}

123
dtmi/commandrunner-2.json Normal file
Просмотреть файл

@ -0,0 +1,123 @@
{
"@context": "dtmi:dtdl:context;2",
"@id": "dtmi:osconfig:commandrunner;2",
"@type": "Interface",
"displayName": "Command Runner",
"description": "Provides functionality to remotely run commands on the device",
"contents": [
{
"@type": "Property",
"name": "CommandStatus",
"schema": {
"@type": "Object",
"fields": [
{
"name": "CommandId",
"schema": "string"
},
{
"name": "ResultCode",
"schema": "integer"
},
{
"name": "TextResult",
"schema": "string"
},
{
"name": "CurrentState",
"schema": {
"@type": "Enum",
"valueSchema": "integer",
"enumValues": [
{
"name": "Unknown",
"enumValue": 0
},
{
"name": "Running",
"enumValue": 1
},
{
"name": "Succeeded",
"enumValue": 2
},
{
"name": "Failed",
"enumValue": 3
},
{
"name": "TimedOut",
"enumValue": 4
},
{
"name": "Canceled",
"enumValue": 5
}
]
}
}
]
},
"writable": false
},
{
"@type": "Property",
"name": "CommandArguments",
"schema": {
"@type": "Object",
"fields": [
{
"name": "CommandId",
"schema": "string"
},
{
"name": "Arguments",
"schema": "string"
},
{
"name": "Timeout",
"schema": "integer"
},
{
"name": "SingleLineTextResult",
"schema": "boolean"
},
{
"name": "Action",
"schema": {
"@type": "Enum",
"valueSchema": "integer",
"enumValues": [
{
"name": "None",
"enumValue": 0
},
{
"name": "Reboot",
"enumValue": 1
},
{
"name": "Shutdown",
"enumValue": 2
},
{
"name": "RunCommand",
"enumValue": 3
},
{
"name": "RefreshCommandStatus",
"enumValue": 4
},
{
"name": "CancelCommand",
"enumValue": 5
}
]
}
}
]
},
"writable": true
}
]
}

123
dtmi/commandrunner-3.json Normal file
Просмотреть файл

@ -0,0 +1,123 @@
{
"@context": "dtmi:dtdl:context;2",
"@id": "dtmi:osconfig:commandrunner;3",
"@type": "Interface",
"displayName": "Command Runner",
"description": "Provides functionality to remotely run commands on the device",
"contents": [
{
"@type": "Property",
"name": "commandStatus",
"schema": {
"@type": "Object",
"fields": [
{
"name": "commandId",
"schema": "string"
},
{
"name": "resultCode",
"schema": "integer"
},
{
"name": "textResult",
"schema": "string"
},
{
"name": "currentState",
"schema": {
"@type": "Enum",
"valueSchema": "integer",
"enumValues": [
{
"name": "unknown",
"enumValue": 0
},
{
"name": "running",
"enumValue": 1
},
{
"name": "succeeded",
"enumValue": 2
},
{
"name": "failed",
"enumValue": 3
},
{
"name": "timedOut",
"enumValue": 4
},
{
"name": "canceled",
"enumValue": 5
}
]
}
}
]
},
"writable": false
},
{
"@type": "Property",
"name": "commandArguments",
"schema": {
"@type": "Object",
"fields": [
{
"name": "commandId",
"schema": "string"
},
{
"name": "arguments",
"schema": "string"
},
{
"name": "timeout",
"schema": "integer"
},
{
"name": "singleLineTextResult",
"schema": "boolean"
},
{
"name": "action",
"schema": {
"@type": "Enum",
"valueSchema": "integer",
"enumValues": [
{
"name": "none",
"enumValue": 0
},
{
"name": "reboot",
"enumValue": 1
},
{
"name": "shutdown",
"enumValue": 2
},
{
"name": "runCommand",
"enumValue": 3
},
{
"name": "refreshCommandStatus",
"enumValue": 4
},
{
"name": "cancelCommand",
"enumValue": 5
}
]
}
}
]
},
"writable": true
}
]
}

57
dtmi/deviceinfo-1.json Normal file
Просмотреть файл

@ -0,0 +1,57 @@
{
"@context": "dtmi:dtdl:context;2",
"@id": "dtmi:osconfig:deviceinfo;1",
"@type": "Interface",
"displayName": "Device Information",
"description": "Provides functionality to remotely query device properties",
"contents": [
{
"@type": "Property",
"name": "OsName",
"schema":"string",
"writable": false
},
{
"@type": "Property",
"name": "OsVersion",
"schema":"string",
"writable": false
},
{
"@type": "Property",
"name": "CpuType",
"schema":"string",
"writable": false
},
{
"@type": "Property",
"name": "KernelName",
"schema":"string",
"writable": false
},
{
"@type": "Property",
"name": "KernelRelease",
"schema":"string",
"writable": false
},
{
"@type": "Property",
"name": "KernelVersion",
"schema":"string",
"writable": false
},
{
"@type": "Property",
"name": "Manufacturer",
"schema":"string",
"writable": false
},
{
"@type": "Property",
"name": "Model",
"schema":"string",
"writable": false
}
]
}

57
dtmi/deviceinfo-2.json Normal file
Просмотреть файл

@ -0,0 +1,57 @@
{
"@context": "dtmi:dtdl:context;2",
"@id": "dtmi:osconfig:deviceinfo;2",
"@type": "Interface",
"displayName": "Device Information",
"description": "Provides functionality to remotely query device properties",
"contents": [
{
"@type": "Property",
"name": "osName",
"schema":"string",
"writable": false
},
{
"@type": "Property",
"name": "osVersion",
"schema":"string",
"writable": false
},
{
"@type": "Property",
"name": "cpuType",
"schema":"string",
"writable": false
},
{
"@type": "Property",
"name": "kernelName",
"schema":"string",
"writable": false
},
{
"@type": "Property",
"name": "kernelRelease",
"schema":"string",
"writable": false
},
{
"@type": "Property",
"name": "kernelVersion",
"schema":"string",
"writable": false
},
{
"@type": "Property",
"name": "manufacturer",
"schema":"string",
"writable": false
},
{
"@type": "Property",
"name": "model",
"schema":"string",
"writable": false
}
]
}

69
dtmi/deviceinfo-3.json Normal file
Просмотреть файл

@ -0,0 +1,69 @@
{
"@context": "dtmi:dtdl:context;2",
"@id": "dtmi:osconfig:deviceinfo;3",
"@type": "Interface",
"displayName": "Device Information",
"description": "Provides functionality to remotely query device properties",
"contents": [
{
"@type": "Property",
"name": "osName",
"schema":"string",
"writable": false
},
{
"@type": "Property",
"name": "osVersion",
"schema":"string",
"writable": false
},
{
"@type": "Property",
"name": "cpuType",
"schema":"string",
"writable": false
},
{
"@type": "Property",
"name": "cpuVendorId",
"schema":"string",
"writable": false
},
{
"@type": "Property",
"name": "cpuModel",
"schema":"string",
"writable": false
},
{
"@type": "Property",
"name": "kernelName",
"schema":"string",
"writable": false
},
{
"@type": "Property",
"name": "kernelRelease",
"schema":"string",
"writable": false
},
{
"@type": "Property",
"name": "kernelVersion",
"schema":"string",
"writable": false
},
{
"@type": "Property",
"name": "manufacturer",
"schema":"string",
"writable": false
},
{
"@type": "Property",
"name": "model",
"schema":"string",
"writable": false
}
]
}

75
dtmi/deviceinfo-4.json Normal file
Просмотреть файл

@ -0,0 +1,75 @@
{
"@context": "dtmi:dtdl:context;2",
"@id": "dtmi:osconfig:deviceinfo;4",
"@type": "Interface",
"displayName": "Device Information",
"description": "Provides functionality to remotely query device properties",
"contents": [
{
"@type": "Property",
"name": "osName",
"schema":"string",
"writable": false
},
{
"@type": "Property",
"name": "osVersion",
"schema":"string",
"writable": false
},
{
"@type": "Property",
"name": "cpuType",
"schema":"string",
"writable": false
},
{
"@type": "Property",
"name": "cpuVendorId",
"schema":"string",
"writable": false
},
{
"@type": "Property",
"name": "cpuModel",
"schema":"string",
"writable": false
},
{
"@type": "Property",
"name": "totalMemory",
"schema":"string",
"writable": false
},
{
"@type": "Property",
"name": "kernelName",
"schema":"string",
"writable": false
},
{
"@type": "Property",
"name": "kernelRelease",
"schema":"string",
"writable": false
},
{
"@type": "Property",
"name": "kernelVersion",
"schema":"string",
"writable": false
},
{
"@type": "Property",
"name": "manufacturer",
"schema":"string",
"writable": false
},
{
"@type": "Property",
"name": "model",
"schema":"string",
"writable": false
}
]
}

105
dtmi/deviceinfo-5.json Normal file
Просмотреть файл

@ -0,0 +1,105 @@
{
"@context": "dtmi:dtdl:context;2",
"@id": "dtmi:osconfig:deviceinfo;5",
"@type": "Interface",
"displayName": "Device Information",
"description": "Provides functionality to remotely query device properties",
"contents": [
{
"@type": "Property",
"name": "osName",
"schema":"string",
"writable": false
},
{
"@type": "Property",
"name": "osVersion",
"schema":"string",
"writable": false
},
{
"@type": "Property",
"name": "cpuType",
"schema":"string",
"writable": false
},
{
"@type": "Property",
"name": "cpuVendorId",
"schema":"string",
"writable": false
},
{
"@type": "Property",
"name": "cpuModel",
"schema":"string",
"writable": false
},
{
"@type": "Property",
"name": "totalMemory",
"schema": "long",
"writable": false
},
{
"@type": "Property",
"name": "freeMemory",
"schema": "long",
"writable": false
},
{
"@type": "Property",
"name": "kernelName",
"schema":"string",
"writable": false
},
{
"@type": "Property",
"name": "kernelRelease",
"schema":"string",
"writable": false
},
{
"@type": "Property",
"name": "kernelVersion",
"schema":"string",
"writable": false
},
{
"@type": "Property",
"name": "productVendor",
"schema":"string",
"writable": false
},
{
"@type": "Property",
"name": "productName",
"schema":"string",
"writable": false
},
{
"@type": "Property",
"name": "productVersion",
"schema":"string",
"writable": false
},
{
"@type": "Property",
"name": "systemCapabilities",
"schema":"string",
"writable": false
},
{
"@type": "Property",
"name": "systemConfiguration",
"schema":"string",
"writable": false
},
{
"@type": "Property",
"name": "osConfigVersion",
"schema":"string",
"writable": false
}
]
}

Просмотреть файл

@ -0,0 +1,18 @@
{
"@context": "dtmi:dtdl:context;2",
"@id": "dtmi:osconfig:deviceosconfiguration;1",
"@type": "Interface",
"displayName": "Device OS Configuration",
"contents": [
{
"schema": "dtmi:osconfig:settings;1",
"@type": "Component",
"name": "Settings"
},
{
"schema": "dtmi:osconfig:commandrunner;1",
"@type": "Component",
"name": "CommandRunner"
}
]
}

Просмотреть файл

@ -0,0 +1,48 @@
{
"@context": "dtmi:dtdl:context;2",
"@id": "dtmi:osconfig:deviceosconfiguration;10",
"@type": "Interface",
"displayName": "Device OS Configuration",
"contents": [
{
"schema": "dtmi:osconfig:commandrunner;3",
"@type": "Component",
"name": "CommandRunner"
},
{
"schema": "dtmi:osconfig:deviceinfo;5",
"@type": "Component",
"name": "DeviceInfo"
},
{
"schema": "dtmi:osconfig:firewall;3",
"@type": "Component",
"name": "Firewall"
},
{
"schema": "dtmi:osconfig:hostname;2",
"@type": "Component",
"name": "HostName"
},
{
"schema": "dtmi:osconfig:networking;2",
"@type": "Component",
"name": "Networking"
},
{
"schema": "dtmi:osconfig:settings;2",
"@type": "Component",
"name": "Settings"
},
{
"schema": "dtmi:osconfig:tpm;3",
"@type": "Component",
"name": "Tpm"
},
{
"schema": "dtmi:osconfig:ztsi;2",
"@type": "Component",
"name": "Ztsi"
}
]
}

Просмотреть файл

@ -0,0 +1,48 @@
{
"@context": "dtmi:dtdl:context;2",
"@id": "dtmi:osconfig:deviceosconfiguration;11",
"@type": "Interface",
"displayName": "Device OS Configuration",
"contents": [
{
"schema": "dtmi:osconfig:commandrunner;3",
"@type": "Component",
"name": "CommandRunner"
},
{
"schema": "dtmi:osconfig:deviceinfo;5",
"@type": "Component",
"name": "DeviceInfo"
},
{
"schema": "dtmi:osconfig:firewall;4",
"@type": "Component",
"name": "Firewall"
},
{
"schema": "dtmi:osconfig:hostname;2",
"@type": "Component",
"name": "HostName"
},
{
"schema": "dtmi:osconfig:networking;2",
"@type": "Component",
"name": "Networking"
},
{
"schema": "dtmi:osconfig:settings;2",
"@type": "Component",
"name": "Settings"
},
{
"schema": "dtmi:osconfig:tpm;3",
"@type": "Component",
"name": "Tpm"
},
{
"schema": "dtmi:osconfig:ztsi;2",
"@type": "Component",
"name": "Ztsi"
}
]
}

Просмотреть файл

@ -0,0 +1,23 @@
{
"@context": "dtmi:dtdl:context;2",
"@id": "dtmi:osconfig:deviceosconfiguration;2",
"@type": "Interface",
"displayName": "Device OS Configuration",
"contents": [
{
"schema": "dtmi:osconfig:settings;1",
"@type": "Component",
"name": "Settings"
},
{
"schema": "dtmi:osconfig:commandrunner;1",
"@type": "Component",
"name": "CommandRunner"
},
{
"schema": "dtmi:osconfig:networking;1",
"@type": "Component",
"name": "Networking"
}
]
}

Просмотреть файл

@ -0,0 +1,28 @@
{
"@context": "dtmi:dtdl:context;2",
"@id": "dtmi:osconfig:deviceosconfiguration;3",
"@type": "Interface",
"displayName": "Device OS Configuration",
"contents": [
{
"schema": "dtmi:osconfig:settings;1",
"@type": "Component",
"name": "Settings"
},
{
"schema": "dtmi:osconfig:commandrunner;1",
"@type": "Component",
"name": "CommandRunner"
},
{
"schema": "dtmi:osconfig:networking;1",
"@type": "Component",
"name": "Networking"
},
{
"schema": "dtmi:osconfig:firewall;1",
"@type": "Component",
"name": "Firewall"
}
]
}

Просмотреть файл

@ -0,0 +1,38 @@
{
"@context": "dtmi:dtdl:context;2",
"@id": "dtmi:osconfig:deviceosconfiguration;4",
"@type": "Interface",
"displayName": "Device OS Configuration",
"contents": [
{
"schema": "dtmi:osconfig:settings;1",
"@type": "Component",
"name": "Settings"
},
{
"schema": "dtmi:osconfig:commandrunner;2",
"@type": "Component",
"name": "CommandRunner"
},
{
"schema": "dtmi:osconfig:networking;1",
"@type": "Component",
"name": "Networking"
},
{
"schema": "dtmi:osconfig:firewall;2",
"@type": "Component",
"name": "Firewall"
},
{
"schema": "dtmi:osconfig:tpm;1",
"@type": "Component",
"name": "Tpm"
},
{
"schema": "dtmi:osconfig:ztsi;1",
"@type": "Component",
"name": "Ztsi"
}
]
}

Просмотреть файл

@ -0,0 +1,43 @@
{
"@context": "dtmi:dtdl:context;2",
"@id": "dtmi:osconfig:deviceosconfiguration;5",
"@type": "Interface",
"displayName": "Device OS Configuration",
"contents": [
{
"schema": "dtmi:osconfig:settings;1",
"@type": "Component",
"name": "Settings"
},
{
"schema": "dtmi:osconfig:commandrunner;2",
"@type": "Component",
"name": "CommandRunner"
},
{
"schema": "dtmi:osconfig:networking;1",
"@type": "Component",
"name": "Networking"
},
{
"schema": "dtmi:osconfig:firewall;2",
"@type": "Component",
"name": "Firewall"
},
{
"schema": "dtmi:osconfig:tpm;2",
"@type": "Component",
"name": "Tpm"
},
{
"schema": "dtmi:osconfig:hostname;1",
"@type": "Component",
"name": "HostName"
},
{
"schema": "dtmi:osconfig:ztsi;1",
"@type": "Component",
"name": "Ztsi"
}
]
}

Просмотреть файл

@ -0,0 +1,48 @@
{
"@context": "dtmi:dtdl:context;2",
"@id": "dtmi:osconfig:deviceosconfiguration;6",
"@type": "Interface",
"displayName": "Device OS Configuration",
"contents": [
{
"schema": "dtmi:osconfig:commandrunner;2",
"@type": "Component",
"name": "CommandRunner"
},
{
"schema": "dtmi:osconfig:deviceinfo;1",
"@type": "Component",
"name": "DeviceInfo"
},
{
"schema": "dtmi:osconfig:firewall;2",
"@type": "Component",
"name": "Firewall"
},
{
"schema": "dtmi:osconfig:hostname;1",
"@type": "Component",
"name": "HostName"
},
{
"schema": "dtmi:osconfig:networking;1",
"@type": "Component",
"name": "Networking"
},
{
"schema": "dtmi:osconfig:settings;1",
"@type": "Component",
"name": "Settings"
},
{
"schema": "dtmi:osconfig:tpm;2",
"@type": "Component",
"name": "Tpm"
},
{
"schema": "dtmi:osconfig:ztsi;1",
"@type": "Component",
"name": "Ztsi"
}
]
}

Просмотреть файл

@ -0,0 +1,48 @@
{
"@context": "dtmi:dtdl:context;2",
"@id": "dtmi:osconfig:deviceosconfiguration;7",
"@type": "Interface",
"displayName": "Device OS Configuration",
"contents": [
{
"schema": "dtmi:osconfig:commandrunner;3",
"@type": "Component",
"name": "CommandRunner"
},
{
"schema": "dtmi:osconfig:deviceinfo;2",
"@type": "Component",
"name": "DeviceInfo"
},
{
"schema": "dtmi:osconfig:firewall;3",
"@type": "Component",
"name": "Firewall"
},
{
"schema": "dtmi:osconfig:hostname;2",
"@type": "Component",
"name": "HostName"
},
{
"schema": "dtmi:osconfig:networking;2",
"@type": "Component",
"name": "Networking"
},
{
"schema": "dtmi:osconfig:settings;2",
"@type": "Component",
"name": "Settings"
},
{
"schema": "dtmi:osconfig:tpm;3",
"@type": "Component",
"name": "Tpm"
},
{
"schema": "dtmi:osconfig:ztsi;2",
"@type": "Component",
"name": "Ztsi"
}
]
}

Просмотреть файл

@ -0,0 +1,48 @@
{
"@context": "dtmi:dtdl:context;2",
"@id": "dtmi:osconfig:deviceosconfiguration;8",
"@type": "Interface",
"displayName": "Device OS Configuration",
"contents": [
{
"schema": "dtmi:osconfig:commandrunner;3",
"@type": "Component",
"name": "CommandRunner"
},
{
"schema": "dtmi:osconfig:deviceinfo;3",
"@type": "Component",
"name": "DeviceInfo"
},
{
"schema": "dtmi:osconfig:firewall;3",
"@type": "Component",
"name": "Firewall"
},
{
"schema": "dtmi:osconfig:hostname;2",
"@type": "Component",
"name": "HostName"
},
{
"schema": "dtmi:osconfig:networking;2",
"@type": "Component",
"name": "Networking"
},
{
"schema": "dtmi:osconfig:settings;2",
"@type": "Component",
"name": "Settings"
},
{
"schema": "dtmi:osconfig:tpm;3",
"@type": "Component",
"name": "Tpm"
},
{
"schema": "dtmi:osconfig:ztsi;2",
"@type": "Component",
"name": "Ztsi"
}
]
}

Просмотреть файл

@ -0,0 +1,48 @@
{
"@context": "dtmi:dtdl:context;2",
"@id": "dtmi:osconfig:deviceosconfiguration;9",
"@type": "Interface",
"displayName": "Device OS Configuration",
"contents": [
{
"schema": "dtmi:osconfig:commandrunner;3",
"@type": "Component",
"name": "CommandRunner"
},
{
"schema": "dtmi:osconfig:deviceinfo;4",
"@type": "Component",
"name": "DeviceInfo"
},
{
"schema": "dtmi:osconfig:firewall;3",
"@type": "Component",
"name": "Firewall"
},
{
"schema": "dtmi:osconfig:hostname;2",
"@type": "Component",
"name": "HostName"
},
{
"schema": "dtmi:osconfig:networking;2",
"@type": "Component",
"name": "Networking"
},
{
"schema": "dtmi:osconfig:settings;2",
"@type": "Component",
"name": "Settings"
},
{
"schema": "dtmi:osconfig:tpm;3",
"@type": "Component",
"name": "Tpm"
},
{
"schema": "dtmi:osconfig:ztsi;2",
"@type": "Component",
"name": "Ztsi"
}
]
}

39
dtmi/firewall-1.json Normal file
Просмотреть файл

@ -0,0 +1,39 @@
{
"@context": "dtmi:dtdl:context;2",
"@id": "dtmi:osconfig:firewall;1",
"@type": "Interface",
"displayName": "Firewall",
"description": "Provides functionality to remotely query firewall rules on device",
"contents": [
{
"@type": "Property",
"name": "FirewallRules",
"schema": {
"@type": "Object",
"fields": [
{
"name": "Directions",
"schema": "string"
},
{
"name": "Targets",
"schema": "string"
},
{
"name": "Protocols",
"schema": "string"
},
{
"name": "IpAddresses",
"schema": "string"
},
{
"name": "Ports",
"schema": "string"
}
]
},
"writable": false
}
]
}

38
dtmi/firewall-2.json Normal file
Просмотреть файл

@ -0,0 +1,38 @@
{
"@context": "dtmi:dtdl:context;2",
"@id": "dtmi:osconfig:firewall;2",
"@type": "Interface",
"displayName": "Firewall",
"description": "Provides functionality to remotely manage firewall rules on device",
"contents": [
{
"@type": "Property",
"name": "FirewallState",
"schema": {
"@type": "Enum",
"valueSchema": "integer",
"enumValues": [
{
"name": "Unknown",
"enumValue": 0
},
{
"name": "Enabled",
"enumValue": 1
},
{
"name": "Disabled",
"enumValue": 2
}
]
},
"writable": false
},
{
"@type": "Property",
"name": "FirewallFingerprint",
"schema":"string",
"writable": false
}
]
}

38
dtmi/firewall-3.json Normal file
Просмотреть файл

@ -0,0 +1,38 @@
{
"@context": "dtmi:dtdl:context;2",
"@id": "dtmi:osconfig:firewall;3",
"@type": "Interface",
"displayName": "Firewall",
"description": "Provides functionality to remotely manage firewall rules on device",
"contents": [
{
"@type": "Property",
"name": "firewallState",
"schema": {
"@type": "Enum",
"valueSchema": "integer",
"enumValues": [
{
"name": "unknown",
"enumValue": 0
},
{
"name": "enabled",
"enumValue": 1
},
{
"name": "disabled",
"enumValue": 2
}
]
},
"writable": false
},
{
"@type": "Property",
"name": "firewallFingerprint",
"schema":"string",
"writable": false
}
]
}

270
dtmi/firewall-4.json Normal file
Просмотреть файл

@ -0,0 +1,270 @@
{
"@context": "dtmi:dtdl:context;2",
"@id": "dtmi:osconfig:firewall;4",
"@type": "Interface",
"displayName": "Firewall",
"description": "Provides functionality to remotely manage firewall rules on device",
"contents": [
{
"@type": "Property",
"name": "firewallState",
"writeable": false,
"schema": {
"type": "enum",
"valueSchema": "string",
"enumValues": [
{
"name": "unknown",
"enumValue": "unknown"
},
{
"name": "enabled",
"enumValue": "enabled"
},
{
"name": "disabled",
"enumValue": "disabled"
}
]
}
},
{
"@type": "Property",
"name": "firewallFingerprint",
"writeable": false,
"schema": "string"
},
{
"@type": "Property",
"name": "configurationStatus",
"writeable": false,
"schema": {
"type": "enum",
"valueSchema": "string",
"enumValues": [
{
"name": "unknown",
"enumValue": "unknown"
},
{
"name": "success",
"enumValue": "success"
},
{
"name": "failure",
"enumValue": "failure"
}
]
}
},
{
"@type": "Property",
"name": "configurationStatusDetail",
"writeable": false,
"schema": "string"
},
{
"@type": "Property",
"name": "defaultPolicies",
"writeable": false,
"schema": {
"type": "array",
"elementSchema": {
"type": "object",
"fields": [
{
"name": "direction",
"schema": {
"type": "enum",
"valueSchema": "string",
"enumValues": [
{
"name": "in",
"enumValue": "in"
},
{
"name": "out",
"enumValue": "out"
}
]
}
},
{
"name": "action",
"schema": {
"type": "enum",
"valueSchema": "string",
"enumValues": [
{
"name": "accept",
"enumValue": "accept"
},
{
"name": "drop",
"enumValue": "drop"
}
]
}
}
]
}
}
},
{
"@type": "Property",
"name": "desiredFirewallRules",
"writeable": true,
"schema": {
"type": "array",
"elementSchema": {
"type": "object",
"fields": [
{
"name": "desiredState",
"schema": {
"type": "enum",
"valueSchema": "string",
"enumValues": [
{
"name": "present",
"enumValue": "present"
},
{
"name": "absent",
"enumValue": "absent"
}
]
}
},
{
"name": "action",
"schema": {
"type": "enum",
"valueSchema": "string",
"enumValues": [
{
"name": "accept",
"enumValue": "accept"
},
{
"name": "drop",
"enumValue": "drop"
},
{
"name": "reject",
"enumValue": "reject"
}
]
}
},
{
"name": "direction",
"schema": {
"type": "enum",
"valueSchema": "string",
"enumValues": [
{
"name": "in",
"enumValue": "in"
},
{
"name": "out",
"enumValue": "out"
}
]
}
},
{
"name": "protocol",
"schema": {
"type": "enum",
"valueSchema": "string",
"enumValues": [
{
"name": "any",
"enumValue": "any"
},
{
"name": "tcp",
"enumValue": "tcp"
},
{
"name": "udp",
"enumValue": "udp"
},
{
"name": "icmp",
"enumValue": "icmp"
}
]
}
},
{
"name": "sourceAddress",
"schema": "string"
},
{
"name": "sourcePort",
"schema": "integer"
},
{
"name": "destinationAddress",
"schema": "string"
},
{
"name": "destinationPort",
"schema": "integer"
}
]
}
}
},
{
"@type": "Property",
"name": "firewallDesiredDefaultPolicies",
"writeable": true,
"schema": {
"type": "array",
"elementSchema": {
"type": "object",
"fields": [
{
"name": "direction",
"schema": {
"type": "enum",
"valueSchema": "string",
"enumValues": [
{
"name": "in",
"enumValue": "in"
},
{
"name": "out",
"enumValue": "out"
}
]
}
},
{
"name": "action",
"schema": {
"type": "enum",
"valueSchema": "string",
"enumValues": [
{
"name": "accept",
"enumValue": "accept"
},
{
"name": "drop",
"enumValue": "drop"
}
]
}
}
]
}
}
}
]
}

33
dtmi/hostname-1.json Normal file
Просмотреть файл

@ -0,0 +1,33 @@
{
"@context": "dtmi:dtdl:context;2",
"@id": "dtmi:osconfig:hostname;1",
"@type": "Interface",
"displayName": "Host Name Configuration",
"description": "Provides functionality to remotely configure the network host name of the device",
"contents": [
{
"@type": "Property",
"name": "DesiredName",
"schema":"string",
"writable": true
},
{
"@type": "Property",
"name": "DesiredHosts",
"schema":"string",
"writable": true
},
{
"@type": "Property",
"name": "Name",
"schema":"string",
"writable": false
},
{
"@type": "Property",
"name": "Hosts",
"schema":"string",
"writable": false
}
]
}

33
dtmi/hostname-2.json Normal file
Просмотреть файл

@ -0,0 +1,33 @@
{
"@context": "dtmi:dtdl:context;2",
"@id": "dtmi:osconfig:hostname;2",
"@type": "Interface",
"displayName": "Host Name Configuration",
"description": "Provides functionality to remotely configure the network host name of the device",
"contents": [
{
"@type": "Property",
"name": "desiredName",
"schema":"string",
"writable": true
},
{
"@type": "Property",
"name": "desiredHosts",
"schema":"string",
"writable": true
},
{
"@type": "Property",
"name": "name",
"schema":"string",
"writable": false
},
{
"@type": "Property",
"name": "hosts",
"schema":"string",
"writable": false
}
]
}

55
dtmi/networking-1.json Normal file
Просмотреть файл

@ -0,0 +1,55 @@
{
"@context": "dtmi:dtdl:context;2",
"@id": "dtmi:osconfig:networking;1",
"@type": "Interface",
"displayName": "Networking",
"description": "Provides functionality to remotely query device networking",
"contents": [
{
"@type": "Property",
"name": "NetworkConfiguration",
"schema": {
"@type": "Object",
"fields": [
{
"name": "InterfaceTypes",
"schema": "string"
},
{
"name": "MacAddresses",
"schema": "string"
},
{
"name": "IpAddresses",
"schema": "string"
},
{
"name": "SubnetMasks",
"schema": "string"
},
{
"name": "DefaultGateways",
"schema": "string"
},
{
"name": "DnsServers",
"schema": "string"
},
{
"name": "DhcpEnabled",
"schema": "string"
},
{
"name": "Enabled",
"schema": "string"
},
{
"name": "Connected",
"schema": "string"
}
]
},
"writable": false
}
]
}

55
dtmi/networking-2.json Normal file
Просмотреть файл

@ -0,0 +1,55 @@
{
"@context": "dtmi:dtdl:context;2",
"@id": "dtmi:osconfig:networking;2",
"@type": "Interface",
"displayName": "Networking",
"description": "Provides functionality to remotely query device networking",
"contents": [
{
"@type": "Property",
"name": "networkConfiguration",
"schema": {
"@type": "Object",
"fields": [
{
"name": "interfaceTypes",
"schema": "string"
},
{
"name": "macAddresses",
"schema": "string"
},
{
"name": "ipAddresses",
"schema": "string"
},
{
"name": "subnetMasks",
"schema": "string"
},
{
"name": "defaultGateways",
"schema": "string"
},
{
"name": "dnsServers",
"schema": "string"
},
{
"name": "dhcpEnabled",
"schema": "string"
},
{
"name": "enabled",
"schema": "string"
},
{
"name": "connected",
"schema": "string"
}
]
},
"writable": false
}
]
}

79
dtmi/settings-1.json Normal file
Просмотреть файл

@ -0,0 +1,79 @@
{
"@context": "dtmi:dtdl:context;2",
"@id": "dtmi:osconfig:settings;1",
"@type": "Interface",
"displayName": "Settings",
"description": "Provides functionality to remotely configure other settings on the device",
"contents": [
{
"@type": "Property",
"name": "DeviceHealthTelemetryConfiguration",
"schema": {
"@type": "Enum",
"valueSchema": "integer",
"enumValues": [
{
"name": "None",
"enumValue": 0
},
{
"name": "Required",
"enumValue": 1
},
{
"name": "Optional",
"enumValue": 2
}
]
},
"writable": true
},
{
"@type": "Property",
"name": "DeliveryOptimizationPolicies",
"schema": {
"@type": "Object",
"fields": [
{
"name": "PercentageDownloadThrottle",
"schema": "integer"
},
{
"name": "CacheHostSource",
"schema": {
"@type": "Enum",
"valueSchema": "integer",
"enumValues": [
{
"name": "None",
"enumValue": 0
},
{
"name": "AzureDeviceUpdate",
"enumValue": 1
},
{
"name": "DeviceDiscoveryService",
"enumValue": 2
},
{
"name": "DhcpServerCustomOptionId235",
"enumValue": 3
}
]
}
},
{
"name": "CacheHost",
"schema": "string"
},
{
"name": "CacheHostFallback",
"schema": "integer"
}
]
},
"writable": true
}
]
}

79
dtmi/settings-2.json Normal file
Просмотреть файл

@ -0,0 +1,79 @@
{
"@context": "dtmi:dtdl:context;2",
"@id": "dtmi:osconfig:settings;2",
"@type": "Interface",
"displayName": "Settings",
"description": "Provides functionality to remotely configure other settings on the device",
"contents": [
{
"@type": "Property",
"name": "deviceHealthTelemetryConfiguration",
"schema": {
"@type": "Enum",
"valueSchema": "integer",
"enumValues": [
{
"name": "none",
"enumValue": 0
},
{
"name": "required",
"enumValue": 1
},
{
"name": "optional",
"enumValue": 2
}
]
},
"writable": true
},
{
"@type": "Property",
"name": "deliveryOptimizationPolicies",
"schema": {
"@type": "Object",
"fields": [
{
"name": "percentageDownloadThrottle",
"schema": "integer"
},
{
"name": "cacheHostSource",
"schema": {
"@type": "Enum",
"valueSchema": "integer",
"enumValues": [
{
"name": "none",
"enumValue": 0
},
{
"name": "azureDeviceUpdate",
"enumValue": 1
},
{
"name": "deviceDiscoveryService",
"enumValue": 2
},
{
"name": "dhcpServerCustomOptionId235",
"enumValue": 3
}
]
}
},
{
"name": "cacheHost",
"schema": "string"
},
{
"name": "cacheHostFallback",
"schema": "integer"
}
]
},
"writable": true
}
]
}

44
dtmi/tpm-1.json Normal file
Просмотреть файл

@ -0,0 +1,44 @@
{
"@context": "dtmi:dtdl:context;2",
"@id": "dtmi:osconfig:tpm;1",
"@type": "Interface",
"displayName": "TPM Configuration",
"description": "Provides functionality to remotely query the TPM on device",
"contents": [
{
"@type": "Property",
"name": "TpmStatus",
"schema": {
"@type": "Enum",
"valueSchema": "integer",
"enumValues": [
{
"name": "Unknown",
"enumValue": 0
},
{
"name": "TpmDetected",
"enumValue": 1
},
{
"name": "TpmNotDetected",
"enumValue": 2
}
]
},
"writable": false
},
{
"@type": "Property",
"name": "TpmVersion",
"schema":"string",
"writable": false
},
{
"@type": "Property",
"name": "TpmManufacturer",
"schema":"boolean",
"writable": false
}
]
}

44
dtmi/tpm-2.json Normal file
Просмотреть файл

@ -0,0 +1,44 @@
{
"@context": "dtmi:dtdl:context;2",
"@id": "dtmi:osconfig:tpm;2",
"@type": "Interface",
"displayName": "TPM Configuration",
"description": "Provides functionality to remotely query the TPM on device",
"contents": [
{
"@type": "Property",
"name": "TpmStatus",
"schema": {
"@type": "Enum",
"valueSchema": "integer",
"enumValues": [
{
"name": "Unknown",
"enumValue": 0
},
{
"name": "TpmDetected",
"enumValue": 1
},
{
"name": "TpmNotDetected",
"enumValue": 2
}
]
},
"writable": false
},
{
"@type": "Property",
"name": "TpmVersion",
"schema":"string",
"writable": false
},
{
"@type": "Property",
"name": "TpmManufacturer",
"schema":"string",
"writable": false
}
]
}

44
dtmi/tpm-3.json Normal file
Просмотреть файл

@ -0,0 +1,44 @@
{
"@context": "dtmi:dtdl:context;2",
"@id": "dtmi:osconfig:tpm;3",
"@type": "Interface",
"displayName": "TPM Configuration",
"description": "Provides functionality to remotely query the TPM on device",
"contents": [
{
"@type": "Property",
"name": "tpmStatus",
"schema": {
"@type": "Enum",
"valueSchema": "integer",
"enumValues": [
{
"name": "unknown",
"enumValue": 0
},
{
"name": "tpmDetected",
"enumValue": 1
},
{
"name": "tpmNotDetected",
"enumValue": 2
}
]
},
"writable": false
},
{
"@type": "Property",
"name": "tpmVersion",
"schema":"string",
"writable": false
},
{
"@type": "Property",
"name": "tpmManufacturer",
"schema":"string",
"writable": false
}
]
}

50
dtmi/ztsi-1.json Normal file
Просмотреть файл

@ -0,0 +1,50 @@
{
"@context": "dtmi:dtdl:context;2",
"@id": "dtmi:osconfig:ztsi;1",
"@type": "Interface",
"displayName": "ZTSI Agent Configuration",
"description": "Provides functionality to remotely configure the ZTSI Agent on device",
"contents": [
{
"@type": "Property",
"name": "DesiredServiceUrl",
"schema":"string",
"writable": true
},
{
"@type": "Property",
"name": "DesiredEnabled",
"schema":"boolean",
"writable": true
},
{
"@type": "Property",
"name": "ServiceUrl",
"schema":"string",
"writable": false
},
{
"@type": "Property",
"name": "Enabled",
"schema": {
"@type": "Enum",
"valueSchema": "integer",
"enumValues": [
{
"name": "Unknown",
"enumValue": 0
},
{
"name": "Enabled",
"enumValue": 1
},
{
"name": "Disabled",
"enumValue": 2
}
]
},
"writable": false
}
]
}

50
dtmi/ztsi-2.json Normal file
Просмотреть файл

@ -0,0 +1,50 @@
{
"@context": "dtmi:dtdl:context;2",
"@id": "dtmi:osconfig:ztsi;2",
"@type": "Interface",
"displayName": "ZTSI Agent Configuration",
"description": "Provides functionality to remotely configure the ZTSI Agent on device",
"contents": [
{
"@type": "Property",
"name": "desiredServiceUrl",
"schema":"string",
"writable": true
},
{
"@type": "Property",
"name": "desiredEnabled",
"schema":"boolean",
"writable": true
},
{
"@type": "Property",
"name": "serviceUrl",
"schema":"string",
"writable": false
},
{
"@type": "Property",
"name": "enabled",
"schema": {
"@type": "Enum",
"valueSchema": "integer",
"enumValues": [
{
"name": "unknown",
"enumValue": 0
},
{
"name": "enabled",
"enumValue": 1
},
{
"name": "disabled",
"enumValue": 2
}
]
},
"writable": false
}
]
}