diff --git a/src/utils/compose-types.d.ts b/src/utils/compose-types.d.ts index ab566167..8bd000cb 100644 --- a/src/utils/compose-types.d.ts +++ b/src/utils/compose-types.d.ts @@ -95,7 +95,7 @@ export interface Release { | 'end_timestamp' >; serviceImages: Dictionary< - Omit + Omit >; } diff --git a/src/utils/compose.ts b/src/utils/compose.ts index 3b38f658..1270cc91 100644 --- a/src/utils/compose.ts +++ b/src/utils/compose.ts @@ -186,13 +186,9 @@ export const createRelease = async function ( serviceImages: _.mapValues( serviceImages, (serviceImage) => - _.omit(serviceImage, [ - 'created_at', - 'is_a_build_of__service', - '__metadata', - ]) as Omit< + _.omit(serviceImage, ['created_at', 'is_a_build_of__service']) as Omit< typeof serviceImage, - 'created_at' | 'is_a_build_of__service' | '__metadata' + 'created_at' | 'is_a_build_of__service' >, ), }; diff --git a/tests/commands/release.spec.ts b/tests/commands/release.spec.ts index 7c749b6e..1ced28ca 100644 --- a/tests/commands/release.spec.ts +++ b/tests/commands/release.spec.ts @@ -85,6 +85,5 @@ describe('balena release', function () { expect(json[0].contains__image[0].image[0].start_timestamp).to.equal( '2020-01-04T01:13:08.583Z', ); - expect(json[0].__metadata.uri).to.equal('/resin/release(@id)?@id=142334'); }); }); diff --git a/tests/nock/balena-api-mock.ts b/tests/nock/balena-api-mock.ts index d0ce59b6..c468efbf 100644 --- a/tests/nock/balena-api-mock.ts +++ b/tests/nock/balena-api-mock.ts @@ -90,9 +90,8 @@ export class BalenaAPIMock extends NockMock { this.optGet(/^\/v7\/my_application($|[(?])/, opts).reply( 200, JSON.parse(`{"d": [{ - "organization": [{ "handle": "bob", "__metadata": {} }], - "id": 1301645, - "__metadata": { "uri": "/resin/my_application(@id)?@id=1301645" }}]} + "organization": [{ "handle": "bob" }], + "id": 1301645}]} `), ); } @@ -423,9 +422,6 @@ export class BalenaAPIMock extends NockMock { actor: { __id: 1234567 }, username: 'gh_user', created_at: '2018-08-19T13:55:04.485Z', - __metadata: { - uri: '/resin/user(@id)?@id=43699', - }, }, ], }); diff --git a/tests/test-data/api-response/application-GET-v7-expanded-app-type-cpu-arch.json b/tests/test-data/api-response/application-GET-v7-expanded-app-type-cpu-arch.json index 0cee0659..5dc62b16 100644 --- a/tests/test-data/api-response/application-GET-v7-expanded-app-type-cpu-arch.json +++ b/tests/test-data/api-response/application-GET-v7-expanded-app-type-cpu-arch.json @@ -6,8 +6,7 @@ "name": "Starter", "slug": "microservices-starter", "supports_multicontainer": true, - "is_legacy": true, - "__metadata": {} + "is_legacy": true } ], "id": 1301645, @@ -44,10 +43,7 @@ "should_track_latest_release": true, "is_accessible_by_support_until__date": null, "is_public": false, - "is_host": false, - "__metadata": { - "uri": "/resin/application(@id)?@id=1301645" - } + "is_host": false } ] } diff --git a/tests/test-data/api-response/application-GET-v7-expanded-app-type.json b/tests/test-data/api-response/application-GET-v7-expanded-app-type.json index 9f6d194f..af136e83 100644 --- a/tests/test-data/api-response/application-GET-v7-expanded-app-type.json +++ b/tests/test-data/api-response/application-GET-v7-expanded-app-type.json @@ -6,8 +6,7 @@ "name": "Starter", "slug": "microservices-starter", "supports_multicontainer": true, - "is_legacy": true, - "__metadata": {} + "is_legacy": true } ], "id": 1301645, @@ -39,10 +38,7 @@ "should_track_latest_release": true, "is_accessible_by_support_until__date": null, "is_public": false, - "is_host": false, - "__metadata": { - "uri": "/resin/application(@id)?@id=1301645" - } + "is_host": false } ] } diff --git a/tests/test-data/api-response/device-missing-app.json b/tests/test-data/api-response/device-missing-app.json index 7a2d8411..10d51076 100644 --- a/tests/test-data/api-response/device-missing-app.json +++ b/tests/test-data/api-response/device-missing-app.json @@ -24,10 +24,7 @@ "storage_block_device": "/dev/mmcblk0", "storage_usage": 1000, "storage_total": 64000, - "is_undervolted": true, - "__metadata": { - "uri": "/resin/device(@id)?@id=1747415" - } + "is_undervolted": true } ] } diff --git a/tests/test-data/api-response/device-missing-fields.json b/tests/test-data/api-response/device-missing-fields.json index ab52e340..1f6a0601 100644 --- a/tests/test-data/api-response/device-missing-fields.json +++ b/tests/test-data/api-response/device-missing-fields.json @@ -4,8 +4,7 @@ "belongs_to__application": [ { "app_name": "test app", - "slug": "org/test app", - "__metadata": {} + "slug": "org/test app" } ], "id": 1747415, @@ -21,10 +20,7 @@ "os_version": "balenaOS 2.44.0+rev3", "supervisor_version": "10.3.7", "is_web_accessible": false, - "overall_status": "disconnected", - "__metadata": { - "uri": "/resin/device(@id)?@id=1747415" - } + "overall_status": "disconnected" } ] } diff --git a/tests/test-data/api-response/device-status.json b/tests/test-data/api-response/device-status.json index 4dff4953..0ee67523 100644 --- a/tests/test-data/api-response/device-status.json +++ b/tests/test-data/api-response/device-status.json @@ -1,8 +1,7 @@ { "d": [ { - "overall_status": "disconnected", - "__metadata": {} + "overall_status": "disconnected" } ] } diff --git a/tests/test-data/api-response/device-type-GET-v7.json b/tests/test-data/api-response/device-type-GET-v7.json index da1ff638..fe9d67ac 100644 --- a/tests/test-data/api-response/device-type-GET-v7.json +++ b/tests/test-data/api-response/device-type-GET-v7.json @@ -3,124 +3,97 @@ { "is_of__cpu_architecture": [ { - "slug": "aarch64", - "__metadata": {} + "slug": "aarch64" } ], "device_type_alias": [ { - "is_referenced_by__alias": "n310-tx2", - "__metadata": {} + "is_referenced_by__alias": "n310-tx2" } ], "id": 162, "slug": "n310-tx2", "name": "Aetina N310 TX2", "is_private": false, - "belongs_to__device_family": null, - "__metadata": { - "uri": "/resin/device_type(@id)?@id=162" - } + "belongs_to__device_family": null }, { "is_of__cpu_architecture": [ { - "slug": "aarch64", - "__metadata": {} + "slug": "aarch64" } ], "device_type_alias": [ { - "is_referenced_by__alias": "n510-tx2", - "__metadata": {} + "is_referenced_by__alias": "n510-tx2" } ], "id": 39, "slug": "n510-tx2", "name": "Aetina N510 TX2", "is_private": false, - "belongs_to__device_family": null, - "__metadata": { - "uri": "/resin/device_type(@id)?@id=39" - } + "belongs_to__device_family": null }, { "is_of__cpu_architecture": [ { - "slug": "armv7hf", - "__metadata": {} + "slug": "armv7hf" } ], "device_type_alias": [ { - "is_referenced_by__alias": "aio-3288c", - "__metadata": {} + "is_referenced_by__alias": "aio-3288c" } ], "id": 148, "slug": "aio-3288c", "name": "AIO 3288C", "is_private": false, - "belongs_to__device_family": null, - "__metadata": { - "uri": "/resin/device_type(@id)?@id=148" - } + "belongs_to__device_family": null }, { "is_of__cpu_architecture": [ { - "slug": "armv7hf", - "__metadata": {} + "slug": "armv7hf" } ], "device_type_alias": [ { - "is_referenced_by__alias": "am571x-evm", - "__metadata": {} + "is_referenced_by__alias": "am571x-evm" } ], "id": 1, "slug": "am571x-evm", "name": "AM571X EVM", "is_private": false, - "belongs_to__device_family": null, - "__metadata": { - "uri": "/resin/device_type(@id)?@id=1" - } + "belongs_to__device_family": null }, { "is_of__cpu_architecture": [ { - "slug": "armv7hf", - "__metadata": {} + "slug": "armv7hf" } ], "device_type_alias": [ { - "is_referenced_by__alias": "apalis-imx6q", - "__metadata": {} + "is_referenced_by__alias": "apalis-imx6q" } ], "id": 2, "slug": "apalis-imx6q", "name": "Apalis iMX6q", "is_private": false, - "belongs_to__device_family": null, - "__metadata": { - "uri": "/resin/device_type(@id)?@id=2" - } + "belongs_to__device_family": null }, { "is_of__cpu_architecture": [ { - "slug": "armv7hf", - "__metadata": {} + "slug": "armv7hf" } ], "device_type_alias": [ { - "is_referenced_by__alias": "asus-tinker-board", - "__metadata": {} + "is_referenced_by__alias": "asus-tinker-board" } ], "id": 8, @@ -132,22 +105,17 @@ "__deferred": { "uri": "/resin/device_family(@id)?@id=1" } - }, - "__metadata": { - "uri": "/resin/device_type(@id)?@id=8" } }, { "is_of__cpu_architecture": [ { - "slug": "armv7hf", - "__metadata": {} + "slug": "armv7hf" } ], "device_type_alias": [ { - "is_referenced_by__alias": "asus-tinker-board-s", - "__metadata": {} + "is_referenced_by__alias": "asus-tinker-board-s" } ], "id": 9, @@ -159,1824 +127,1409 @@ "__deferred": { "uri": "/resin/device_family(@id)?@id=1" } - }, - "__metadata": { - "uri": "/resin/device_type(@id)?@id=9" } }, { "is_of__cpu_architecture": [ { - "slug": "aarch64", - "__metadata": {} + "slug": "aarch64" } ], "device_type_alias": [ { - "is_referenced_by__alias": "jn30b-nano", - "__metadata": {} + "is_referenced_by__alias": "jn30b-nano" } ], "id": 141, "slug": "jn30b-nano", "name": "Auvidea JN30B Nano", "is_private": false, - "belongs_to__device_family": null, - "__metadata": { - "uri": "/resin/device_type(@id)?@id=141" - } + "belongs_to__device_family": null }, { "is_of__cpu_architecture": [ { - "slug": "armv7hf", - "__metadata": {} + "slug": "armv7hf" } ], "device_type_alias": [ { - "is_referenced_by__alias": "fincm3", - "__metadata": {} + "is_referenced_by__alias": "fincm3" } ], "id": 21, "slug": "fincm3", "name": "Balena Fin (CM3)", "is_private": false, - "belongs_to__device_family": null, - "__metadata": { - "uri": "/resin/device_type(@id)?@id=21" - } + "belongs_to__device_family": null }, { "is_of__cpu_architecture": [ { - "slug": "armv7hf", - "__metadata": {} + "slug": "armv7hf" } ], "device_type_alias": [ { - "is_referenced_by__alias": "bananapi-m1-plus", - "__metadata": {} + "is_referenced_by__alias": "bananapi-m1-plus" } ], "id": 10, "slug": "bananapi-m1-plus", "name": "BananaPi-M1+", "is_private": false, - "belongs_to__device_family": null, - "__metadata": { - "uri": "/resin/device_type(@id)?@id=10" - } + "belongs_to__device_family": null }, { "is_of__cpu_architecture": [ { - "slug": "armv7hf", - "__metadata": {} + "slug": "armv7hf" } ], "device_type_alias": [ { - "is_referenced_by__alias": "beagleboard-xm", - "__metadata": {} + "is_referenced_by__alias": "beagleboard-xm" } ], "id": 11, "slug": "beagleboard-xm", "name": "BeagleBoard-XM", "is_private": false, - "belongs_to__device_family": null, - "__metadata": { - "uri": "/resin/device_type(@id)?@id=11" - } + "belongs_to__device_family": null }, { "is_of__cpu_architecture": [ { - "slug": "armv7hf", - "__metadata": {} + "slug": "armv7hf" } ], "device_type_alias": [ { - "is_referenced_by__alias": "beaglebone-black", - "__metadata": {} + "is_referenced_by__alias": "beaglebone-black" } ], "id": 12, "slug": "beaglebone-black", "name": "BeagleBone Black", "is_private": false, - "belongs_to__device_family": null, - "__metadata": { - "uri": "/resin/device_type(@id)?@id=12" - } + "belongs_to__device_family": null }, { "is_of__cpu_architecture": [ { - "slug": "armv7hf", - "__metadata": {} + "slug": "armv7hf" } ], "device_type_alias": [ { - "is_referenced_by__alias": "beaglebone-green", - "__metadata": {} + "is_referenced_by__alias": "beaglebone-green" } ], "id": 13, "slug": "beaglebone-green", "name": "BeagleBone Green", "is_private": false, - "belongs_to__device_family": null, - "__metadata": { - "uri": "/resin/device_type(@id)?@id=13" - } + "belongs_to__device_family": null }, { "is_of__cpu_architecture": [ { - "slug": "armv7hf", - "__metadata": {} + "slug": "armv7hf" } ], "device_type_alias": [ { - "is_referenced_by__alias": "beaglebone-green-gateway", - "__metadata": {} + "is_referenced_by__alias": "beaglebone-green-gateway" } ], "id": 184, "slug": "beaglebone-green-gateway", "name": "BeagleBone Green Gateway", "is_private": false, - "belongs_to__device_family": null, - "__metadata": { - "uri": "/resin/device_type(@id)?@id=184" - } + "belongs_to__device_family": null }, { "is_of__cpu_architecture": [ { - "slug": "armv7hf", - "__metadata": {} + "slug": "armv7hf" } ], "device_type_alias": [ { - "is_referenced_by__alias": "beaglebone-green-wifi", - "__metadata": {} + "is_referenced_by__alias": "beaglebone-green-wifi" } ], "id": 14, "slug": "beaglebone-green-wifi", "name": "BeagleBone Green Wireless", "is_private": false, - "belongs_to__device_family": null, - "__metadata": { - "uri": "/resin/device_type(@id)?@id=14" - } + "belongs_to__device_family": null }, { "is_of__cpu_architecture": [ { - "slug": "armv7hf", - "__metadata": {} + "slug": "armv7hf" } ], "device_type_alias": [ { - "is_referenced_by__alias": "colibri-imx6dl", - "__metadata": {} + "is_referenced_by__alias": "colibri-imx6dl" } ], "id": 18, "slug": "colibri-imx6dl", "name": "Colibri iMX6dl", "is_private": false, - "belongs_to__device_family": null, - "__metadata": { - "uri": "/resin/device_type(@id)?@id=18" - } + "belongs_to__device_family": null }, { "is_of__cpu_architecture": [ { - "slug": "aarch64", - "__metadata": {} + "slug": "aarch64" } ], "device_type_alias": [ { - "is_referenced_by__alias": "iot-gate-imx8", - "__metadata": {} + "is_referenced_by__alias": "iot-gate-imx8" } ], "id": 190, "slug": "iot-gate-imx8", "name": "Compulab IOT-gate-imx8", "is_private": false, - "belongs_to__device_family": null, - "__metadata": { - "uri": "/resin/device_type(@id)?@id=190" - } + "belongs_to__device_family": null }, { "is_of__cpu_architecture": [ { - "slug": "aarch64", - "__metadata": {} + "slug": "aarch64" } ], "device_type_alias": [ { - "is_referenced_by__alias": "cl-som-imx8", - "__metadata": {} + "is_referenced_by__alias": "cl-som-imx8" } ], "id": 17, "slug": "cl-som-imx8", "name": "Compulab MX8M", "is_private": false, - "belongs_to__device_family": null, - "__metadata": { - "uri": "/resin/device_type(@id)?@id=17" - } + "belongs_to__device_family": null }, { "is_of__cpu_architecture": [ { - "slug": "aarch64", - "__metadata": {} + "slug": "aarch64" } ], "device_type_alias": [ { - "is_referenced_by__alias": "coral-dev", - "__metadata": {} + "is_referenced_by__alias": "coral-dev" } ], "id": 142, "slug": "coral-dev", "name": "Coral Dev Board", "is_private": false, - "belongs_to__device_family": null, - "__metadata": { - "uri": "/resin/device_type(@id)?@id=142" - } + "belongs_to__device_family": null }, { "is_of__cpu_architecture": [ { - "slug": "aarch64", - "__metadata": {} + "slug": "aarch64" } ], "device_type_alias": [ { - "is_referenced_by__alias": "astro-tx2", - "__metadata": {} + "is_referenced_by__alias": "astro-tx2" } ], "id": 161, "slug": "astro-tx2", "name": "CTI Astro TX2 G+", "is_private": false, - "belongs_to__device_family": null, - "__metadata": { - "uri": "/resin/device_type(@id)?@id=161" - } + "belongs_to__device_family": null }, { "is_of__cpu_architecture": [ { - "slug": "aarch64", - "__metadata": {} + "slug": "aarch64" } ], "device_type_alias": [ { - "is_referenced_by__alias": "orbitty-tx2", - "__metadata": {} + "is_referenced_by__alias": "orbitty-tx2" } ], "id": 52, "slug": "orbitty-tx2", "name": "CTI Orbitty TX2", "is_private": false, - "belongs_to__device_family": null, - "__metadata": { - "uri": "/resin/device_type(@id)?@id=52" - } + "belongs_to__device_family": null }, { "is_of__cpu_architecture": [ { - "slug": "aarch64", - "__metadata": {} + "slug": "aarch64" } ], "device_type_alias": [ { - "is_referenced_by__alias": "photon-nano", - "__metadata": {} + "is_referenced_by__alias": "photon-nano" } ], "id": 146, "slug": "photon-nano", "name": "CTI Photon Nano", "is_private": false, - "belongs_to__device_family": null, - "__metadata": { - "uri": "/resin/device_type(@id)?@id=146" - } + "belongs_to__device_family": null }, { "is_of__cpu_architecture": [ { - "slug": "aarch64", - "__metadata": {} + "slug": "aarch64" } ], "device_type_alias": [ { - "is_referenced_by__alias": "photon-xavier-nx", - "__metadata": {} + "is_referenced_by__alias": "photon-xavier-nx" } ], "id": 176, "slug": "photon-xavier-nx", "name": "CTI Photon Xavier NX", "is_private": false, - "belongs_to__device_family": null, - "__metadata": { - "uri": "/resin/device_type(@id)?@id=176" - } + "belongs_to__device_family": null }, { "is_of__cpu_architecture": [ { - "slug": "aarch64", - "__metadata": {} + "slug": "aarch64" } ], "device_type_alias": [ { - "is_referenced_by__alias": "spacely-tx2", - "__metadata": {} + "is_referenced_by__alias": "spacely-tx2" } ], "id": 64, "slug": "spacely-tx2", "name": "CTI Spacely TX2", "is_private": false, - "belongs_to__device_family": null, - "__metadata": { - "uri": "/resin/device_type(@id)?@id=64" - } + "belongs_to__device_family": null }, { "is_of__cpu_architecture": [ { - "slug": "i386-nlp", - "__metadata": {} + "slug": "i386-nlp" } ], "device_type_alias": [ { - "is_referenced_by__alias": "cybertan-ze250", - "__metadata": {} + "is_referenced_by__alias": "cybertan-ze250" } ], "id": 19, "slug": "cybertan-ze250", "name": "Cybertan ZE250", "is_private": false, - "belongs_to__device_family": null, - "__metadata": { - "uri": "/resin/device_type(@id)?@id=19" - } + "belongs_to__device_family": null }, { "is_of__cpu_architecture": [ { - "slug": "aarch64", - "__metadata": {} + "slug": "aarch64" } ], "device_type_alias": [ { - "is_referenced_by__alias": "ccimx8x-sbc-pro", - "__metadata": {} + "is_referenced_by__alias": "ccimx8x-sbc-pro" } ], "id": 185, "slug": "ccimx8x-sbc-pro", "name": "Digi ConnectCore 8X SBC Pro", "is_private": false, - "belongs_to__device_family": null, - "__metadata": { - "uri": "/resin/device_type(@id)?@id=185" - } + "belongs_to__device_family": null }, { "is_of__cpu_architecture": [ { - "slug": "amd64", - "__metadata": {} + "slug": "amd64" } ], "device_type_alias": [ { - "is_referenced_by__alias": "edge", - "__metadata": {} + "is_referenced_by__alias": "edge" } ], "id": 20, "slug": "edge", "name": "Edge Device Builder", "is_private": false, - "belongs_to__device_family": null, - "__metadata": { - "uri": "/resin/device_type(@id)?@id=20" - } + "belongs_to__device_family": null }, { "is_of__cpu_architecture": [ { - "slug": "aarch64", - "__metadata": {} + "slug": "aarch64" } ], "device_type_alias": [ { - "is_referenced_by__alias": "etcher-pro", - "__metadata": {} + "is_referenced_by__alias": "etcher-pro" } ], "id": 144, "slug": "etcher-pro", "name": "Etcher Pro", "is_private": false, - "belongs_to__device_family": null, - "__metadata": { - "uri": "/resin/device_type(@id)?@id=144" - } + "belongs_to__device_family": null }, { "is_of__cpu_architecture": [ { - "slug": "armv7hf", - "__metadata": {} + "slug": "armv7hf" } ], "device_type_alias": [ { - "is_referenced_by__alias": "firefly-rk3288", - "__metadata": {} + "is_referenced_by__alias": "firefly-rk3288" } ], "id": 147, "slug": "firefly-rk3288", "name": "FireFly rk3288", "is_private": false, - "belongs_to__device_family": null, - "__metadata": { - "uri": "/resin/device_type(@id)?@id=147" - } + "belongs_to__device_family": null }, { "is_of__cpu_architecture": [ { - "slug": "aarch64", - "__metadata": {} + "slug": "aarch64" } ], "device_type_alias": [ { - "is_referenced_by__alias": "floyd-nano", - "__metadata": {} + "is_referenced_by__alias": "floyd-nano" } ], "id": 192, "slug": "floyd-nano", "name": "Floyd Nano BB02A eMMC", "is_private": false, - "belongs_to__device_family": null, - "__metadata": { - "uri": "/resin/device_type(@id)?@id=192" - } + "belongs_to__device_family": null }, { "is_of__cpu_architecture": [ { - "slug": "amd64", - "__metadata": {} + "slug": "amd64" } ], "device_type_alias": [ { - "is_referenced_by__alias": "generic", - "__metadata": {} + "is_referenced_by__alias": "generic" } ], "id": 22, "slug": "generic", "name": "Generic", "is_private": false, - "belongs_to__device_family": null, - "__metadata": { - "uri": "/resin/device_type(@id)?@id=22" - } + "belongs_to__device_family": null }, { "is_of__cpu_architecture": [ { - "slug": "aarch64", - "__metadata": {} + "slug": "aarch64" } ], "device_type_alias": [ { - "is_referenced_by__alias": "generic-aarch64", - "__metadata": {} + "is_referenced_by__alias": "generic-aarch64" } ], "id": 23, "slug": "generic-aarch64", "name": "Generic AARCH64", "is_private": false, - "belongs_to__device_family": null, - "__metadata": { - "uri": "/resin/device_type(@id)?@id=23" - } + "belongs_to__device_family": null }, { "is_of__cpu_architecture": [ { - "slug": "aarch64", - "__metadata": {} + "slug": "aarch64" } ], "device_type_alias": [ { - "is_referenced_by__alias": "generic-amd64", - "__metadata": {} + "is_referenced_by__alias": "generic-amd64" } ], "id": 24, "slug": "generic-amd64", "name": "generic-amd64", "is_private": true, - "belongs_to__device_family": null, - "__metadata": { - "uri": "/resin/device_type(@id)?@id=24" - } + "belongs_to__device_family": null }, { "is_of__cpu_architecture": [ { - "slug": "armv7hf", - "__metadata": {} + "slug": "armv7hf" } ], "device_type_alias": [ { - "is_referenced_by__alias": "generic-armv7ahf", - "__metadata": {} + "is_referenced_by__alias": "generic-armv7ahf" } ], "id": 178, "slug": "generic-armv7ahf", "name": "Generic ARMv7-a HF", "is_private": false, - "belongs_to__device_family": null, - "__metadata": { - "uri": "/resin/device_type(@id)?@id=178" - } + "belongs_to__device_family": null }, { "is_of__cpu_architecture": [ { - "slug": "amd64", - "__metadata": {} + "slug": "amd64" } ], "device_type_alias": [ { - "is_referenced_by__alias": "genericx86-64-ext", - "__metadata": {} + "is_referenced_by__alias": "genericx86-64-ext" } ], "id": 145, "slug": "genericx86-64-ext", "name": "Generic x86_64", "is_private": false, - "belongs_to__device_family": null, - "__metadata": { - "uri": "/resin/device_type(@id)?@id=145" - } + "belongs_to__device_family": null }, { "is_of__cpu_architecture": [ { - "slug": "armv7hf", - "__metadata": {} + "slug": "armv7hf" } ], "device_type_alias": [ { - "is_referenced_by__alias": "hummingboard", - "__metadata": {} + "is_referenced_by__alias": "hummingboard" } ], "id": 25, "slug": "hummingboard", "name": "Hummingboard", "is_private": false, - "belongs_to__device_family": null, - "__metadata": { - "uri": "/resin/device_type(@id)?@id=25" - } + "belongs_to__device_family": null }, { "is_of__cpu_architecture": [ { - "slug": "aarch64", - "__metadata": {} + "slug": "aarch64" } ], "device_type_alias": [ { - "is_referenced_by__alias": "imx8mm-var-dart ", - "__metadata": {} + "is_referenced_by__alias": "imx8mm-var-dart " } ], "id": 151, "slug": "imx8mm-var-dart ", "name": "imx8mm-var-dart ", "is_private": false, - "belongs_to__device_family": null, - "__metadata": { - "uri": "/resin/device_type(@id)?@id=151" - } + "belongs_to__device_family": null }, { "is_of__cpu_architecture": [ { - "slug": "i386", - "__metadata": {} + "slug": "i386" } ], "device_type_alias": [ { - "is_referenced_by__alias": "intel-edison", - "__metadata": {} + "is_referenced_by__alias": "intel-edison" } ], "id": 29, "slug": "intel-edison", "name": "Intel Edison", "is_private": false, - "belongs_to__device_family": null, - "__metadata": { - "uri": "/resin/device_type(@id)?@id=29" - } + "belongs_to__device_family": null }, { "is_of__cpu_architecture": [ { - "slug": "amd64", - "__metadata": {} + "slug": "amd64" } ], "device_type_alias": [ { - "is_referenced_by__alias": "intel-nuc", - "__metadata": {} + "is_referenced_by__alias": "intel-nuc" }, { - "is_referenced_by__alias": "nuc", - "__metadata": {} + "is_referenced_by__alias": "nuc" } ], "id": 30, "slug": "intel-nuc", "name": "Intel NUC", "is_private": false, - "belongs_to__device_family": null, - "__metadata": { - "uri": "/resin/device_type(@id)?@id=30" - } + "belongs_to__device_family": null }, { "is_of__cpu_architecture": [ { - "slug": "aarch64", - "__metadata": {} + "slug": "aarch64" } ], "device_type_alias": [ { - "is_referenced_by__alias": "smarc-px30", - "__metadata": {} + "is_referenced_by__alias": "smarc-px30" } ], "id": 186, "slug": "smarc-px30", "name": "I-Pi SMARC PX30 SD-CARD", "is_private": false, - "belongs_to__device_family": null, - "__metadata": { - "uri": "/resin/device_type(@id)?@id=186" - } + "belongs_to__device_family": null }, { "is_of__cpu_architecture": [ { - "slug": "amd64", - "__metadata": {} + "slug": "amd64" } ], "device_type_alias": [ { - "is_referenced_by__alias": "surface-pro-6", - "__metadata": {} + "is_referenced_by__alias": "surface-pro-6" } ], "id": 67, "slug": "surface-pro-6", "name": "Microsoft Surface 6", "is_private": false, - "belongs_to__device_family": null, - "__metadata": { - "uri": "/resin/device_type(@id)?@id=67" - } + "belongs_to__device_family": null }, { "is_of__cpu_architecture": [ { - "slug": "amd64", - "__metadata": {} + "slug": "amd64" } ], "device_type_alias": [ { - "is_referenced_by__alias": "surface-go", - "__metadata": {} + "is_referenced_by__alias": "surface-go" } ], "id": 140, "slug": "surface-go", "name": "Microsoft Surface Go", "is_private": false, - "belongs_to__device_family": null, - "__metadata": { - "uri": "/resin/device_type(@id)?@id=140" - } + "belongs_to__device_family": null }, { "is_of__cpu_architecture": [ { - "slug": "aarch64", - "__metadata": {} + "slug": "aarch64" } ], "device_type_alias": [ { - "is_referenced_by__alias": "nanopc-t4", - "__metadata": {} + "is_referenced_by__alias": "nanopc-t4" } ], "id": 40, "slug": "nanopc-t4", "name": "NanoPC-T4", "is_private": false, - "belongs_to__device_family": null, - "__metadata": { - "uri": "/resin/device_type(@id)?@id=40" - } + "belongs_to__device_family": null }, { "is_of__cpu_architecture": [ { - "slug": "armv7hf", - "__metadata": {} + "slug": "armv7hf" } ], "device_type_alias": [ { - "is_referenced_by__alias": "nanopi-neo-air", - "__metadata": {} + "is_referenced_by__alias": "nanopi-neo-air" } ], "id": 41, "slug": "nanopi-neo-air", "name": "Nanopi Neo Air", "is_private": false, - "belongs_to__device_family": null, - "__metadata": { - "uri": "/resin/device_type(@id)?@id=41" - } + "belongs_to__device_family": null }, { "is_of__cpu_architecture": [ { - "slug": "armv7hf", - "__metadata": {} + "slug": "armv7hf" } ], "device_type_alias": [ { - "is_referenced_by__alias": "nitrogen6x", - "__metadata": {} + "is_referenced_by__alias": "nitrogen6x" } ], "id": 42, "slug": "nitrogen6x", "name": "Nitrogen 6x", "is_private": false, - "belongs_to__device_family": null, - "__metadata": { - "uri": "/resin/device_type(@id)?@id=42" - } + "belongs_to__device_family": null }, { "is_of__cpu_architecture": [ { - "slug": "armv7hf", - "__metadata": {} + "slug": "armv7hf" } ], "device_type_alias": [ { - "is_referenced_by__alias": "nitrogen6xq2g", - "__metadata": {} + "is_referenced_by__alias": "nitrogen6xq2g" } ], "id": 43, "slug": "nitrogen6xq2g", "name": "Nitrogen 6X Quad 2GB", "is_private": false, - "belongs_to__device_family": null, - "__metadata": { - "uri": "/resin/device_type(@id)?@id=43" - } + "belongs_to__device_family": null }, { "is_of__cpu_architecture": [ { - "slug": "aarch64", - "__metadata": {} + "slug": "aarch64" } ], "device_type_alias": [ { - "is_referenced_by__alias": "nitrogen8mm", - "__metadata": {} + "is_referenced_by__alias": "nitrogen8mm" } ], "id": 44, "slug": "nitrogen8mm", "name": "Nitrogen8M Mini SBC", "is_private": false, - "belongs_to__device_family": null, - "__metadata": { - "uri": "/resin/device_type(@id)?@id=44" - } + "belongs_to__device_family": null }, { "is_of__cpu_architecture": [ { - "slug": "armv7hf", - "__metadata": {} + "slug": "armv7hf" } ], "device_type_alias": [ { - "is_referenced_by__alias": "npe-x500-m3", - "__metadata": {} + "is_referenced_by__alias": "npe-x500-m3" } ], "id": 45, "slug": "npe-x500-m3", "name": "NPE X500 M3", "is_private": false, - "belongs_to__device_family": null, - "__metadata": { - "uri": "/resin/device_type(@id)?@id=45" - } + "belongs_to__device_family": null }, { "is_of__cpu_architecture": [ { - "slug": "aarch64", - "__metadata": {} + "slug": "aarch64" } ], "device_type_alias": [ { - "is_referenced_by__alias": "blackboard-tx2", - "__metadata": {} + "is_referenced_by__alias": "blackboard-tx2" } ], "id": 16, "slug": "blackboard-tx2", "name": "Nvidia blackboard TX2", "is_private": false, - "belongs_to__device_family": null, - "__metadata": { - "uri": "/resin/device_type(@id)?@id=16" - } + "belongs_to__device_family": null }, { "is_of__cpu_architecture": [ { - "slug": "aarch64", - "__metadata": {} + "slug": "aarch64" } ], "device_type_alias": [ { - "is_referenced_by__alias": "jetson-nano-2gb-devkit", - "__metadata": {} + "is_referenced_by__alias": "jetson-nano-2gb-devkit" } ], "id": 188, "slug": "jetson-nano-2gb-devkit", "name": "Nvidia Jetson Nano 2GB Devkit SD", "is_private": false, - "belongs_to__device_family": null, - "__metadata": { - "uri": "/resin/device_type(@id)?@id=188" - } + "belongs_to__device_family": null }, { "is_of__cpu_architecture": [ { - "slug": "aarch64", - "__metadata": {} + "slug": "aarch64" } ], "device_type_alias": [ { - "is_referenced_by__alias": "jetson-nano-emmc", - "__metadata": {} + "is_referenced_by__alias": "jetson-nano-emmc" } ], "id": 158, "slug": "jetson-nano-emmc", "name": "Nvidia Jetson Nano eMMC", "is_private": false, - "belongs_to__device_family": null, - "__metadata": { - "uri": "/resin/device_type(@id)?@id=158" - } + "belongs_to__device_family": null }, { "is_of__cpu_architecture": [ { - "slug": "aarch64", - "__metadata": {} + "slug": "aarch64" } ], "device_type_alias": [ { - "is_referenced_by__alias": "jetson-nano", - "__metadata": {} + "is_referenced_by__alias": "jetson-nano" } ], "id": 32, "slug": "jetson-nano", "name": "Nvidia Jetson Nano SD-CARD", "is_private": false, - "belongs_to__device_family": null, - "__metadata": { - "uri": "/resin/device_type(@id)?@id=32" - } + "belongs_to__device_family": null }, { "is_of__cpu_architecture": [ { - "slug": "aarch64", - "__metadata": {} + "slug": "aarch64" } ], "device_type_alias": [ { - "is_referenced_by__alias": "jetson-tx1", - "__metadata": {} + "is_referenced_by__alias": "jetson-tx1" } ], "id": 33, "slug": "jetson-tx1", "name": "Nvidia Jetson TX1", "is_private": false, - "belongs_to__device_family": null, - "__metadata": { - "uri": "/resin/device_type(@id)?@id=33" - } + "belongs_to__device_family": null }, { "is_of__cpu_architecture": [ { - "slug": "aarch64", - "__metadata": {} + "slug": "aarch64" } ], "device_type_alias": [ { - "is_referenced_by__alias": "jetson-tx2", - "__metadata": {} + "is_referenced_by__alias": "jetson-tx2" } ], "id": 34, "slug": "jetson-tx2", "name": "Nvidia Jetson TX2", "is_private": false, - "belongs_to__device_family": null, - "__metadata": { - "uri": "/resin/device_type(@id)?@id=34" - } + "belongs_to__device_family": null }, { "is_of__cpu_architecture": [ { - "slug": "aarch64", - "__metadata": {} + "slug": "aarch64" } ], "device_type_alias": [ { - "is_referenced_by__alias": "jetson-tx2-skycatch", - "__metadata": {} + "is_referenced_by__alias": "jetson-tx2-skycatch" } ], "id": 35, "slug": "jetson-tx2-skycatch", "name": "Nvidia Jetson TX2 Skycatch (EXPERIMENTAL)", "is_private": false, - "belongs_to__device_family": null, - "__metadata": { - "uri": "/resin/device_type(@id)?@id=35" - } + "belongs_to__device_family": null }, { "is_of__cpu_architecture": [ { - "slug": "aarch64", - "__metadata": {} + "slug": "aarch64" } ], "device_type_alias": [ { - "is_referenced_by__alias": "jetson-xavier", - "__metadata": {} + "is_referenced_by__alias": "jetson-xavier" } ], "id": 36, "slug": "jetson-xavier", "name": "Nvidia Jetson Xavier", "is_private": false, - "belongs_to__device_family": null, - "__metadata": { - "uri": "/resin/device_type(@id)?@id=36" - } + "belongs_to__device_family": null }, { "is_of__cpu_architecture": [ { - "slug": "aarch64", - "__metadata": {} + "slug": "aarch64" } ], "device_type_alias": [ { - "is_referenced_by__alias": "jetson-xavier-nx-devkit-emmc", - "__metadata": {} + "is_referenced_by__alias": "jetson-xavier-nx-devkit-emmc" } ], "id": 159, "slug": "jetson-xavier-nx-devkit-emmc", "name": "Nvidia Jetson Xavier NX Devkit eMMC", "is_private": false, - "belongs_to__device_family": null, - "__metadata": { - "uri": "/resin/device_type(@id)?@id=159" - } + "belongs_to__device_family": null }, { "is_of__cpu_architecture": [ { - "slug": "aarch64", - "__metadata": {} + "slug": "aarch64" } ], "device_type_alias": [ { - "is_referenced_by__alias": "jetson-xavier-nx-devkit", - "__metadata": {} + "is_referenced_by__alias": "jetson-xavier-nx-devkit" } ], "id": 181, "slug": "jetson-xavier-nx-devkit", "name": "Nvidia Jetson Xavier NX Devkit SD-CARD", "is_private": false, - "belongs_to__device_family": null, - "__metadata": { - "uri": "/resin/device_type(@id)?@id=181" - } + "belongs_to__device_family": null }, { "is_of__cpu_architecture": [ { - "slug": "armv7hf", - "__metadata": {} + "slug": "armv7hf" } ], "device_type_alias": [ { - "is_referenced_by__alias": "odroid-c1", - "__metadata": {} + "is_referenced_by__alias": "odroid-c1" } ], "id": 46, "slug": "odroid-c1", "name": "ODROID-C1+", "is_private": false, - "belongs_to__device_family": null, - "__metadata": { - "uri": "/resin/device_type(@id)?@id=46" - } + "belongs_to__device_family": null }, { "is_of__cpu_architecture": [ { - "slug": "armv7hf", - "__metadata": {} + "slug": "armv7hf" } ], "device_type_alias": [ { - "is_referenced_by__alias": "odroid-u3+", - "__metadata": {} + "is_referenced_by__alias": "odroid-u3+" }, { - "is_referenced_by__alias": "odroid-ux3", - "__metadata": {} + "is_referenced_by__alias": "odroid-ux3" }, { - "is_referenced_by__alias": "odroid-xu4", - "__metadata": {} + "is_referenced_by__alias": "odroid-xu4" } ], "id": 47, "slug": "odroid-xu4", "name": "ODROID-XU4", "is_private": false, - "belongs_to__device_family": null, - "__metadata": { - "uri": "/resin/device_type(@id)?@id=47" - } + "belongs_to__device_family": null }, { "is_of__cpu_architecture": [ { - "slug": "armv7hf", - "__metadata": {} + "slug": "armv7hf" } ], "device_type_alias": [ { - "is_referenced_by__alias": "orange-pi-lite", - "__metadata": {} + "is_referenced_by__alias": "orange-pi-lite" } ], "id": 48, "slug": "orange-pi-lite", "name": "Orange Pi Lite", "is_private": false, - "belongs_to__device_family": null, - "__metadata": { - "uri": "/resin/device_type(@id)?@id=48" - } + "belongs_to__device_family": null }, { "is_of__cpu_architecture": [ { - "slug": "armv7hf", - "__metadata": {} + "slug": "armv7hf" } ], "device_type_alias": [ { - "is_referenced_by__alias": "orange-pi-one", - "__metadata": {} + "is_referenced_by__alias": "orange-pi-one" } ], "id": 49, "slug": "orange-pi-one", "name": "Orange Pi One", "is_private": false, - "belongs_to__device_family": null, - "__metadata": { - "uri": "/resin/device_type(@id)?@id=49" - } + "belongs_to__device_family": null }, { "is_of__cpu_architecture": [ { - "slug": "armv7hf", - "__metadata": {} + "slug": "armv7hf" } ], "device_type_alias": [ { - "is_referenced_by__alias": "orangepi-plus2", - "__metadata": {} + "is_referenced_by__alias": "orangepi-plus2" } ], "id": 50, "slug": "orangepi-plus2", "name": "Orange Pi Plus2", "is_private": false, - "belongs_to__device_family": null, - "__metadata": { - "uri": "/resin/device_type(@id)?@id=50" - } + "belongs_to__device_family": null }, { "is_of__cpu_architecture": [ { - "slug": "armv7hf", - "__metadata": {} + "slug": "armv7hf" } ], "device_type_alias": [ { - "is_referenced_by__alias": "orange-pi-zero", - "__metadata": {} + "is_referenced_by__alias": "orange-pi-zero" } ], "id": 51, "slug": "orange-pi-zero", "name": "Orange Pi Zero", "is_private": false, - "belongs_to__device_family": null, - "__metadata": { - "uri": "/resin/device_type(@id)?@id=51" - } + "belongs_to__device_family": null }, { "is_of__cpu_architecture": [ { - "slug": "armv7hf", - "__metadata": {} + "slug": "armv7hf" } ], "device_type_alias": [ { - "is_referenced_by__alias": "parallella", - "__metadata": {} + "is_referenced_by__alias": "parallella" } ], "id": 53, "slug": "parallella", "name": "Parallella", "is_private": false, - "belongs_to__device_family": null, - "__metadata": { - "uri": "/resin/device_type(@id)?@id=53" - } + "belongs_to__device_family": null }, { "is_of__cpu_architecture": [ { - "slug": "armv7hf", - "__metadata": {} + "slug": "armv7hf" } ], "device_type_alias": [ { - "is_referenced_by__alias": "beaglebone-pocket", - "__metadata": {} + "is_referenced_by__alias": "beaglebone-pocket" } ], "id": 15, "slug": "beaglebone-pocket", "name": "PocketBeagle", "is_private": false, - "belongs_to__device_family": null, - "__metadata": { - "uri": "/resin/device_type(@id)?@id=15" - } + "belongs_to__device_family": null }, { "is_of__cpu_architecture": [ { - "slug": "i386", - "__metadata": {} + "slug": "i386" } ], "device_type_alias": [ { - "is_referenced_by__alias": "qemux86", - "__metadata": {} + "is_referenced_by__alias": "qemux86" } ], "id": 54, "slug": "qemux86", "name": "QEMU X86 32bit", "is_private": false, - "belongs_to__device_family": null, - "__metadata": { - "uri": "/resin/device_type(@id)?@id=54" - } + "belongs_to__device_family": null }, { "is_of__cpu_architecture": [ { - "slug": "amd64", - "__metadata": {} + "slug": "amd64" } ], "device_type_alias": [ { - "is_referenced_by__alias": "qemux86-64", - "__metadata": {} + "is_referenced_by__alias": "qemux86-64" } ], "id": 55, "slug": "qemux86-64", "name": "QEMU X86 64bit", "is_private": false, - "belongs_to__device_family": null, - "__metadata": { - "uri": "/resin/device_type(@id)?@id=55" - } + "belongs_to__device_family": null }, { "is_of__cpu_architecture": [ { - "slug": "armv7hf", - "__metadata": {} + "slug": "armv7hf" } ], "device_type_alias": [ { - "is_referenced_by__alias": "raspberrypi2", - "__metadata": {} + "is_referenced_by__alias": "raspberrypi2" }, { - "is_referenced_by__alias": "raspberry-pi2", - "__metadata": {} + "is_referenced_by__alias": "raspberry-pi2" } ], "id": 57, "slug": "raspberry-pi2", "name": "Raspberry Pi 2", "is_private": false, - "belongs_to__device_family": null, - "__metadata": { - "uri": "/resin/device_type(@id)?@id=57" - } + "belongs_to__device_family": null }, { "is_of__cpu_architecture": [ { - "slug": "armv7hf", - "__metadata": {} + "slug": "armv7hf" } ], "device_type_alias": [ { - "is_referenced_by__alias": "raspberrypi3", - "__metadata": {} + "is_referenced_by__alias": "raspberrypi3" } ], "id": 58, "slug": "raspberrypi3", "name": "Raspberry Pi 3", "is_private": false, - "belongs_to__device_family": null, - "__metadata": { - "uri": "/resin/device_type(@id)?@id=58" - } + "belongs_to__device_family": null }, { "is_of__cpu_architecture": [ { - "slug": "aarch64", - "__metadata": {} + "slug": "aarch64" } ], "device_type_alias": [ { - "is_referenced_by__alias": "raspberrypi3-64", - "__metadata": {} + "is_referenced_by__alias": "raspberrypi3-64" } ], "id": 59, "slug": "raspberrypi3-64", "name": "Raspberry Pi 3 (using 64bit OS)", "is_private": false, - "belongs_to__device_family": null, - "__metadata": { - "uri": "/resin/device_type(@id)?@id=59" - } + "belongs_to__device_family": null }, { "is_of__cpu_architecture": [ { - "slug": "aarch64", - "__metadata": {} + "slug": "aarch64" } ], "device_type_alias": [ { - "is_referenced_by__alias": "raspberrypi400-64", - "__metadata": {} + "is_referenced_by__alias": "raspberrypi400-64" } ], "id": 183, "slug": "raspberrypi400-64", "name": "Raspberry Pi 400", "is_private": false, - "belongs_to__device_family": null, - "__metadata": { - "uri": "/resin/device_type(@id)?@id=183" - } + "belongs_to__device_family": null }, { "is_of__cpu_architecture": [ { - "slug": "aarch64", - "__metadata": {} + "slug": "aarch64" } ], "device_type_alias": [ { - "is_referenced_by__alias": "raspberrypi4-64", - "__metadata": {} + "is_referenced_by__alias": "raspberrypi4-64" } ], "id": 60, "slug": "raspberrypi4-64", "name": "Raspberry Pi 4 (using 64bit OS)", "is_private": false, - "belongs_to__device_family": null, - "__metadata": { - "uri": "/resin/device_type(@id)?@id=60" - } + "belongs_to__device_family": null }, { "is_of__cpu_architecture": [ { - "slug": "aarch64", - "__metadata": {} + "slug": "aarch64" } ], "device_type_alias": [ { - "is_referenced_by__alias": "raspberrypicm4-ioboard", - "__metadata": {} + "is_referenced_by__alias": "raspberrypicm4-ioboard" } ], "id": 191, "slug": "raspberrypicm4-ioboard", "name": "Raspberry Pi CM4 IO Board", "is_private": false, - "belongs_to__device_family": null, - "__metadata": { - "uri": "/resin/device_type(@id)?@id=191" - } + "belongs_to__device_family": null }, { "is_of__cpu_architecture": [ { - "slug": "rpi", - "__metadata": {} + "slug": "rpi" } ], "device_type_alias": [ { - "is_referenced_by__alias": "raspberrypi", - "__metadata": {} + "is_referenced_by__alias": "raspberrypi" }, { - "is_referenced_by__alias": "raspberry-pi", - "__metadata": {} + "is_referenced_by__alias": "raspberry-pi" } ], "id": 56, "slug": "raspberry-pi", "name": "Raspberry Pi (v1 / Zero / Zero W)", "is_private": false, - "belongs_to__device_family": null, - "__metadata": { - "uri": "/resin/device_type(@id)?@id=56" - } + "belongs_to__device_family": null }, { "is_of__cpu_architecture": [ { - "slug": "armv7hf", - "__metadata": {} + "slug": "armv7hf" } ], "device_type_alias": [ { - "is_referenced_by__alias": "revpi-connect", - "__metadata": {} + "is_referenced_by__alias": "revpi-connect" } ], "id": 163, "slug": "revpi-connect", "name": "Revolution Pi Connect", "is_private": false, - "belongs_to__device_family": null, - "__metadata": { - "uri": "/resin/device_type(@id)?@id=163" - } + "belongs_to__device_family": null }, { "is_of__cpu_architecture": [ { - "slug": "armv7hf", - "__metadata": {} + "slug": "armv7hf" } ], "device_type_alias": [ { - "is_referenced_by__alias": "revpi-core-3", - "__metadata": {} + "is_referenced_by__alias": "revpi-core-3" } ], "id": 61, "slug": "revpi-core-3", "name": "Revolution Pi Core 3", "is_private": false, - "belongs_to__device_family": null, - "__metadata": { - "uri": "/resin/device_type(@id)?@id=61" - } + "belongs_to__device_family": null }, { "is_of__cpu_architecture": [ { - "slug": "armv7hf", - "__metadata": {} + "slug": "armv7hf" } ], "device_type_alias": [ { - "is_referenced_by__alias": "kitra520", - "__metadata": {} + "is_referenced_by__alias": "kitra520" } ], "id": 37, "slug": "kitra520", "name": "RushUp Kitra 520", "is_private": false, - "belongs_to__device_family": null, - "__metadata": { - "uri": "/resin/device_type(@id)?@id=37" - } + "belongs_to__device_family": null }, { "is_of__cpu_architecture": [ { - "slug": "aarch64", - "__metadata": {} + "slug": "aarch64" } ], "device_type_alias": [ { - "is_referenced_by__alias": "kitra710", - "__metadata": {} + "is_referenced_by__alias": "kitra710" } ], "id": 38, "slug": "kitra710", "name": "RushUp Kitra 710", "is_private": false, - "belongs_to__device_family": null, - "__metadata": { - "uri": "/resin/device_type(@id)?@id=38" - } + "belongs_to__device_family": null }, { "is_of__cpu_architecture": [ { - "slug": "armv7hf", - "__metadata": {} + "slug": "armv7hf" } ], "device_type_alias": [ { - "is_referenced_by__alias": "artik10", - "__metadata": {} + "is_referenced_by__alias": "artik10" } ], "id": 3, "slug": "artik10", "name": "Samsung Artik 10", "is_private": false, - "belongs_to__device_family": null, - "__metadata": { - "uri": "/resin/device_type(@id)?@id=3" - } + "belongs_to__device_family": null }, { "is_of__cpu_architecture": [ { - "slug": "armv7hf", - "__metadata": {} + "slug": "armv7hf" } ], "device_type_alias": [ { - "is_referenced_by__alias": "artik5", - "__metadata": {} + "is_referenced_by__alias": "artik5" } ], "id": 4, "slug": "artik5", "name": "Samsung Artik 520", "is_private": false, - "belongs_to__device_family": null, - "__metadata": { - "uri": "/resin/device_type(@id)?@id=4" - } + "belongs_to__device_family": null }, { "is_of__cpu_architecture": [ { - "slug": "armv7hf", - "__metadata": {} + "slug": "armv7hf" } ], "device_type_alias": [ { - "is_referenced_by__alias": "artik530", - "__metadata": {} + "is_referenced_by__alias": "artik530" } ], "id": 5, "slug": "artik530", "name": "Samsung Artik 530", "is_private": false, - "belongs_to__device_family": null, - "__metadata": { - "uri": "/resin/device_type(@id)?@id=5" - } + "belongs_to__device_family": null }, { "is_of__cpu_architecture": [ { - "slug": "armv7hf", - "__metadata": {} + "slug": "armv7hf" } ], "device_type_alias": [ { - "is_referenced_by__alias": "artik533s", - "__metadata": {} + "is_referenced_by__alias": "artik533s" } ], "id": 6, "slug": "artik533s", "name": "Samsung Artik 530s 1G", "is_private": false, - "belongs_to__device_family": null, - "__metadata": { - "uri": "/resin/device_type(@id)?@id=6" - } + "belongs_to__device_family": null }, { "is_of__cpu_architecture": [ { - "slug": "aarch64", - "__metadata": {} + "slug": "aarch64" } ], "device_type_alias": [ { - "is_referenced_by__alias": "artik710", - "__metadata": {} + "is_referenced_by__alias": "artik710" } ], "id": 7, "slug": "artik710", "name": "Samsung Artik 710", "is_private": false, - "belongs_to__device_family": null, - "__metadata": { - "uri": "/resin/device_type(@id)?@id=7" - } + "belongs_to__device_family": null }, { "is_of__cpu_architecture": [ { - "slug": "i386-nlp", - "__metadata": {} + "slug": "i386-nlp" } ], "device_type_alias": [ { - "is_referenced_by__alias": "iot2000", - "__metadata": {} + "is_referenced_by__alias": "iot2000" } ], "id": 31, "slug": "iot2000", "name": "Siemens IOT2000", "is_private": false, - "belongs_to__device_family": null, - "__metadata": { - "uri": "/resin/device_type(@id)?@id=31" - } + "belongs_to__device_family": null }, { "is_of__cpu_architecture": [ { - "slug": "aarch64", - "__metadata": {} + "slug": "aarch64" } ], "device_type_alias": [ { - "is_referenced_by__alias": "skx2", - "__metadata": {} + "is_referenced_by__alias": "skx2" } ], "id": 62, "slug": "skx2", "name": "SKX2", "is_private": true, - "belongs_to__device_family": null, - "__metadata": { - "uri": "/resin/device_type(@id)?@id=62" - } + "belongs_to__device_family": null }, { "is_of__cpu_architecture": [ { - "slug": "armv7hf", - "__metadata": {} + "slug": "armv7hf" } ], "device_type_alias": [ { - "is_referenced_by__alias": "ts4900", - "__metadata": {} + "is_referenced_by__alias": "ts4900" } ], "id": 68, "slug": "ts4900", "name": "Technologic TS-4900", "is_private": false, - "belongs_to__device_family": null, - "__metadata": { - "uri": "/resin/device_type(@id)?@id=68" - } + "belongs_to__device_family": null }, { "is_of__cpu_architecture": [ { - "slug": "aarch64", - "__metadata": {} + "slug": "aarch64" } ], "device_type_alias": [ { - "is_referenced_by__alias": "ts7700", - "__metadata": {} + "is_referenced_by__alias": "ts7700" } ], "id": 69, "slug": "ts7700", "name": "Technologic TS-7700", "is_private": false, - "belongs_to__device_family": null, - "__metadata": { - "uri": "/resin/device_type(@id)?@id=69" - } + "belongs_to__device_family": null }, { "is_of__cpu_architecture": [ { - "slug": "amd64", - "__metadata": {} + "slug": "amd64" } ], "device_type_alias": [ { - "is_referenced_by__alias": "up-board", - "__metadata": {} + "is_referenced_by__alias": "up-board" } ], "id": 70, @@ -1988,22 +1541,17 @@ "__deferred": { "uri": "/resin/device_family(@id)?@id=2" } - }, - "__metadata": { - "uri": "/resin/device_type(@id)?@id=70" } }, { "is_of__cpu_architecture": [ { - "slug": "amd64", - "__metadata": {} + "slug": "amd64" } ], "device_type_alias": [ { - "is_referenced_by__alias": "up-core", - "__metadata": {} + "is_referenced_by__alias": "up-core" } ], "id": 71, @@ -2015,22 +1563,17 @@ "__deferred": { "uri": "/resin/device_family(@id)?@id=2" } - }, - "__metadata": { - "uri": "/resin/device_type(@id)?@id=71" } }, { "is_of__cpu_architecture": [ { - "slug": "amd64", - "__metadata": {} + "slug": "amd64" } ], "device_type_alias": [ { - "is_referenced_by__alias": "up-core-plus", - "__metadata": {} + "is_referenced_by__alias": "up-core-plus" } ], "id": 72, @@ -2042,22 +1585,17 @@ "__deferred": { "uri": "/resin/device_family(@id)?@id=2" } - }, - "__metadata": { - "uri": "/resin/device_type(@id)?@id=72" } }, { "is_of__cpu_architecture": [ { - "slug": "amd64", - "__metadata": {} + "slug": "amd64" } ], "device_type_alias": [ { - "is_referenced_by__alias": "up-squared", - "__metadata": {} + "is_referenced_by__alias": "up-squared" } ], "id": 73, @@ -2069,186 +1607,143 @@ "__deferred": { "uri": "/resin/device_family(@id)?@id=2" } - }, - "__metadata": { - "uri": "/resin/device_type(@id)?@id=73" } }, { "is_of__cpu_architecture": [ { - "slug": "armv7hf", - "__metadata": {} + "slug": "armv7hf" } ], "device_type_alias": [ { - "is_referenced_by__alias": "imx6ul-var-dart", - "__metadata": {} + "is_referenced_by__alias": "imx6ul-var-dart" } ], "id": 26, "slug": "imx6ul-var-dart", "name": "Variscite DART-6UL", "is_private": false, - "belongs_to__device_family": null, - "__metadata": { - "uri": "/resin/device_type(@id)?@id=26" - } + "belongs_to__device_family": null }, { "is_of__cpu_architecture": [ { - "slug": "aarch64", - "__metadata": {} + "slug": "aarch64" } ], "device_type_alias": [ { - "is_referenced_by__alias": "imx8m-var-dart", - "__metadata": {} + "is_referenced_by__alias": "imx8m-var-dart" } ], "id": 28, "slug": "imx8m-var-dart", "name": "Variscite DART-MX8M", "is_private": false, - "belongs_to__device_family": null, - "__metadata": { - "uri": "/resin/device_type(@id)?@id=28" - } + "belongs_to__device_family": null }, { "is_of__cpu_architecture": [ { - "slug": "aarch64", - "__metadata": {} + "slug": "aarch64" } ], "device_type_alias": [ { - "is_referenced_by__alias": "imx8mm-var-dart", - "__metadata": {} + "is_referenced_by__alias": "imx8mm-var-dart" } ], "id": 150, "slug": "imx8mm-var-dart", "name": "Variscite DART-MX8M Mini", "is_private": false, - "belongs_to__device_family": null, - "__metadata": { - "uri": "/resin/device_type(@id)?@id=150" - } + "belongs_to__device_family": null }, { "is_of__cpu_architecture": [ { - "slug": "armv7hf", - "__metadata": {} + "slug": "armv7hf" } ], "device_type_alias": [ { - "is_referenced_by__alias": "var-som-mx6", - "__metadata": {} + "is_referenced_by__alias": "var-som-mx6" } ], "id": 74, "slug": "var-som-mx6", "name": "Variscite VAR-SOM-MX6", "is_private": false, - "belongs_to__device_family": null, - "__metadata": { - "uri": "/resin/device_type(@id)?@id=74" - } + "belongs_to__device_family": null }, { "is_of__cpu_architecture": [ { - "slug": "armv7hf", - "__metadata": {} + "slug": "armv7hf" } ], "device_type_alias": [ { - "is_referenced_by__alias": "imx7-var-som", - "__metadata": {} + "is_referenced_by__alias": "imx7-var-som" } ], "id": 27, "slug": "imx7-var-som", "name": "Variscite VAR-SOM-MX7", "is_private": false, - "belongs_to__device_family": null, - "__metadata": { - "uri": "/resin/device_type(@id)?@id=27" - } + "belongs_to__device_family": null }, { "is_of__cpu_architecture": [ { - "slug": "armv7hf", - "__metadata": {} + "slug": "armv7hf" } ], "device_type_alias": [ { - "is_referenced_by__alias": "via-vab820-quad", - "__metadata": {} + "is_referenced_by__alias": "via-vab820-quad" } ], "id": 75, "slug": "via-vab820-quad", "name": "VIA VAB 820-quad", "is_private": false, - "belongs_to__device_family": null, - "__metadata": { - "uri": "/resin/device_type(@id)?@id=75" - } + "belongs_to__device_family": null }, { "is_of__cpu_architecture": [ { - "slug": "armv7hf", - "__metadata": {} + "slug": "armv7hf" } ], "device_type_alias": [ { - "is_referenced_by__alias": "zc702-zynq7", - "__metadata": {} + "is_referenced_by__alias": "zc702-zynq7" } ], "id": 169, "slug": "zc702-zynq7", "name": "Zynq ZC702", "is_private": false, - "belongs_to__device_family": null, - "__metadata": { - "uri": "/resin/device_type(@id)?@id=169" - } + "belongs_to__device_family": null }, { "is_of__cpu_architecture": [ { - "slug": "aarch64", - "__metadata": {} + "slug": "aarch64" } ], "device_type_alias": [ { - "is_referenced_by__alias": "zynq-xz702", - "__metadata": {} + "is_referenced_by__alias": "zynq-xz702" } ], "id": 76, "slug": "zynq-xz702", "name": "Zynq ZC702 (DISCONTINUED)", "is_private": false, - "belongs_to__device_family": null, - "__metadata": { - "uri": "/resin/device_type(@id)?@id=76" - } + "belongs_to__device_family": null } ] -} \ No newline at end of file +} diff --git a/tests/test-data/api-response/device.json b/tests/test-data/api-response/device.json index d5c508c7..74b67fef 100644 --- a/tests/test-data/api-response/device.json +++ b/tests/test-data/api-response/device.json @@ -4,8 +4,7 @@ "belongs_to__application": [ { "app_name": "test app", - "slug": "org/test app", - "__metadata": {} + "slug": "org/test app" } ], "device_tag": [ @@ -36,10 +35,7 @@ "storage_block_device": "/dev/mmcblk0", "storage_usage": 1000, "storage_total": 64000, - "is_undervolted": true, - "__metadata": { - "uri": "/resin/device(@id)?@id=1747415" - } + "is_undervolted": true } ] } diff --git a/tests/test-data/api-response/devices.json b/tests/test-data/api-response/devices.json index e6403c4a..bc1672d3 100644 --- a/tests/test-data/api-response/devices.json +++ b/tests/test-data/api-response/devices.json @@ -3,8 +3,7 @@ { "belongs_to__application": [ { - "slug": "org/test app", - "__metadata": {} + "slug": "org/test app" } ], "id": 1747415, @@ -19,10 +18,7 @@ "status": "Idle", "is_online": false, "os_version": "balenaOS 2.44.0+rev3", - "supervisor_version": "10.3.7", - "__metadata": { - "uri": "/resin/device(@id)?@id=1747415" - } + "supervisor_version": "10.3.7" }, { "belongs_to__application": [], @@ -38,10 +34,7 @@ "status": "Idle", "is_online": false, "os_version": "balenaOS 2.44.0+rev3", - "supervisor_version": "10.3.7", - "__metadata": { - "uri": "/resin/device(@id)?@id=1747415" - } + "supervisor_version": "10.3.7" } ] } diff --git a/tests/test-data/api-response/image-POST-v7.json b/tests/test-data/api-response/image-POST-v7.json index 17f7fb32..c1ef357d 100644 --- a/tests/test-data/api-response/image-POST-v7.json +++ b/tests/test-data/api-response/image-POST-v7.json @@ -18,8 +18,5 @@ "push_timestamp": null, "status": "running", "content_hash": null, - "contract": null, - "__metadata": { - "uri": "/resin/image(@id)?@id=1859016" - } -} \ No newline at end of file + "contract": null +} diff --git a/tests/test-data/api-response/image-is-part-of-release-POST-v7.json b/tests/test-data/api-response/image-is-part-of-release-POST-v7.json index d45645ab..db5c6abe 100644 --- a/tests/test-data/api-response/image-is-part-of-release-POST-v7.json +++ b/tests/test-data/api-response/image-is-part-of-release-POST-v7.json @@ -12,8 +12,5 @@ "uri": "/resin/release(1218643)" }, "__id": 1218643 - }, - "__metadata": { - "uri": "/resin/image__is_part_of__release(@id)?@id=1774668" } -} \ No newline at end of file +} diff --git a/tests/test-data/api-response/image-label-POST-v7.json b/tests/test-data/api-response/image-label-POST-v7.json index a22b53c9..83d6b893 100644 --- a/tests/test-data/api-response/image-label-POST-v7.json +++ b/tests/test-data/api-response/image-label-POST-v7.json @@ -8,8 +8,5 @@ "__id": 1774668 }, "label_name": "io.resin.features.firmware", - "value": "1", - "__metadata": { - "uri": "/resin/image_label(@id)?@id=99699617" - } -} \ No newline at end of file + "value": "1" +} diff --git a/tests/test-data/api-response/release-GET-v7.json b/tests/test-data/api-response/release-GET-v7.json index 082ac77a..3f0b8788 100644 --- a/tests/test-data/api-response/release-GET-v7.json +++ b/tests/test-data/api-response/release-GET-v7.json @@ -10,9 +10,6 @@ "build_log": null, "start_timestamp": "2021-08-25T22:18:33.624Z", "end_timestamp": "2021-08-25T22:18:48.820Z", - "__metadata": { - "uri": "/resin/release(@id)?@id=142334" - }, "contains__image": [ { "image": [ @@ -36,10 +33,7 @@ "push_timestamp": "2020-01-04T01:13:14.415Z", "status": "success", "content_hash": "sha256:6b5471aae43ae81e8f69e10d1a516cb412569a6d5020a57eae311f8fa16d688a", - "contract": null, - "__metadata": { - "uri": "/resin/image(@id)?@id=1820810" - } + "contract": null } ], "id": 1738663, @@ -49,17 +43,13 @@ "uri": "/resin/release(1203844)" }, "__id": 1203844 - }, - "__metadata": { - "uri": "/resin/image__is_part_of__release(@id)?@id=1738663" } } ], "release_tag": [ { "tag_key": "testtag1", - "value": "val1", - "__metadata": {} + "value": "val1" } ], "composition": { diff --git a/tests/test-data/api-response/release-POST-v7.json b/tests/test-data/api-response/release-POST-v7.json index ab5ca345..1c3b5b41 100644 --- a/tests/test-data/api-response/release-POST-v7.json +++ b/tests/test-data/api-response/release-POST-v7.json @@ -29,9 +29,7 @@ "tty": true, "restart": "always", "network_mode": "host", - "volumes": [ - "resin-data:/data" - ], + "volumes": ["resin-data:/data"], "labels": { "io.resin.features.kernel-modules": "1", "io.resin.features.firmware": "1", @@ -47,8 +45,5 @@ "build_log": null, "start_timestamp": "2020-01-16T17:08:52.710Z", "end_timestamp": null, - "update_timestamp": "2020-01-16T17:08:53.017Z", - "__metadata": { - "uri": "/resin/release(@id)?@id=1218643" - } -} \ No newline at end of file + "update_timestamp": "2020-01-16T17:08:53.017Z" +}