@azure/arm-deviceregistry 1.0.0 → 1.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +1 -1
- package/README.md +3 -3
- package/dist/browser/api/assetEndpointProfiles/index.d.ts +2 -29
- package/dist/browser/api/assetEndpointProfiles/index.js +1 -146
- package/dist/browser/api/assetEndpointProfiles/index.js.map +1 -1
- package/dist/browser/api/assetEndpointProfiles/operations.d.ts +36 -0
- package/dist/browser/api/assetEndpointProfiles/operations.js +216 -0
- package/dist/browser/api/assetEndpointProfiles/operations.js.map +1 -0
- package/dist/browser/api/assetEndpointProfiles/options.d.ts +26 -0
- package/dist/browser/api/assetEndpointProfiles/options.js.map +1 -0
- package/dist/browser/api/assets/index.d.ts +2 -29
- package/dist/browser/api/assets/index.js +1 -134
- package/dist/browser/api/assets/index.js.map +1 -1
- package/dist/browser/api/assets/operations.d.ts +36 -0
- package/dist/browser/api/assets/operations.js +204 -0
- package/dist/browser/api/assets/operations.js.map +1 -0
- package/dist/browser/api/assets/options.d.ts +26 -0
- package/dist/browser/api/assets/options.js.map +1 -0
- package/dist/browser/api/billingContainers/index.d.ts +2 -12
- package/dist/browser/api/billingContainers/index.js +1 -46
- package/dist/browser/api/billingContainers/index.js.map +1 -1
- package/dist/browser/api/billingContainers/operations.d.ts +14 -0
- package/dist/browser/api/billingContainers/operations.js +69 -0
- package/dist/browser/api/billingContainers/operations.js.map +1 -0
- package/dist/browser/api/billingContainers/options.d.ts +8 -0
- package/dist/browser/api/billingContainers/options.js.map +1 -0
- package/dist/browser/api/deviceRegistryManagementContext.d.ts +5 -2
- package/dist/browser/api/deviceRegistryManagementContext.js +18 -11
- package/dist/browser/api/deviceRegistryManagementContext.js.map +1 -1
- package/dist/browser/api/index.d.ts +0 -6
- package/dist/browser/api/index.js +0 -5
- package/dist/browser/api/index.js.map +1 -1
- package/dist/browser/api/namespaceAssets/index.d.ts +3 -0
- package/dist/browser/api/namespaceAssets/index.js +4 -0
- package/dist/browser/api/namespaceAssets/index.js.map +1 -0
- package/dist/browser/api/namespaceAssets/operations.d.ts +32 -0
- package/dist/browser/api/namespaceAssets/operations.js +189 -0
- package/dist/browser/api/namespaceAssets/operations.js.map +1 -0
- package/dist/browser/api/namespaceAssets/options.d.ts +23 -0
- package/dist/browser/api/namespaceAssets/options.js +4 -0
- package/dist/browser/api/namespaceAssets/options.js.map +1 -0
- package/dist/browser/api/namespaceDevices/index.d.ts +3 -0
- package/dist/browser/api/namespaceDevices/index.js +4 -0
- package/dist/browser/api/namespaceDevices/index.js.map +1 -0
- package/dist/browser/api/namespaceDevices/operations.d.ts +32 -0
- package/dist/browser/api/namespaceDevices/operations.js +189 -0
- package/dist/browser/api/namespaceDevices/operations.js.map +1 -0
- package/dist/browser/api/namespaceDevices/options.d.ts +23 -0
- package/dist/browser/api/namespaceDevices/options.js +4 -0
- package/dist/browser/api/namespaceDevices/options.js.map +1 -0
- package/dist/browser/api/namespaceDiscoveredAssets/index.d.ts +3 -0
- package/dist/browser/api/namespaceDiscoveredAssets/index.js +4 -0
- package/dist/browser/api/namespaceDiscoveredAssets/index.js.map +1 -0
- package/dist/browser/api/namespaceDiscoveredAssets/operations.d.ts +32 -0
- package/dist/browser/api/namespaceDiscoveredAssets/operations.js +197 -0
- package/dist/browser/api/namespaceDiscoveredAssets/operations.js.map +1 -0
- package/dist/browser/api/namespaceDiscoveredAssets/options.d.ts +23 -0
- package/dist/browser/api/namespaceDiscoveredAssets/options.js +4 -0
- package/dist/browser/api/namespaceDiscoveredAssets/options.js.map +1 -0
- package/dist/browser/api/namespaceDiscoveredDevices/index.d.ts +3 -0
- package/dist/browser/api/namespaceDiscoveredDevices/index.js +4 -0
- package/dist/browser/api/namespaceDiscoveredDevices/index.js.map +1 -0
- package/dist/browser/api/namespaceDiscoveredDevices/operations.d.ts +32 -0
- package/dist/browser/api/namespaceDiscoveredDevices/operations.js +197 -0
- package/dist/browser/api/namespaceDiscoveredDevices/operations.js.map +1 -0
- package/dist/browser/api/namespaceDiscoveredDevices/options.d.ts +23 -0
- package/dist/browser/api/namespaceDiscoveredDevices/options.js +4 -0
- package/dist/browser/api/namespaceDiscoveredDevices/options.js.map +1 -0
- package/dist/browser/api/namespaces/index.d.ts +3 -0
- package/dist/browser/api/namespaces/index.js +4 -0
- package/dist/browser/api/namespaces/index.js.map +1 -0
- package/dist/browser/api/namespaces/operations.d.ts +40 -0
- package/dist/browser/api/namespaces/operations.js +241 -0
- package/dist/browser/api/namespaces/operations.js.map +1 -0
- package/dist/browser/api/namespaces/options.d.ts +31 -0
- package/dist/browser/api/namespaces/options.js +4 -0
- package/dist/browser/api/namespaces/options.js.map +1 -0
- package/dist/browser/api/operationStatus/index.d.ts +2 -7
- package/dist/browser/api/operationStatus/index.js +1 -22
- package/dist/browser/api/operationStatus/index.js.map +1 -1
- package/dist/browser/api/operationStatus/operations.d.ts +9 -0
- package/dist/browser/api/operationStatus/operations.js +37 -0
- package/dist/browser/api/operationStatus/operations.js.map +1 -0
- package/dist/browser/api/operationStatus/options.d.ts +5 -0
- package/dist/browser/api/operationStatus/options.js +4 -0
- package/dist/browser/api/operationStatus/options.js.map +1 -0
- package/dist/browser/api/operations/index.d.ts +2 -8
- package/dist/browser/api/operations/index.js +1 -20
- package/dist/browser/api/operations/index.js.map +1 -1
- package/dist/browser/api/operations/operations.d.ts +10 -0
- package/dist/browser/api/operations/operations.js +34 -0
- package/dist/browser/api/operations/operations.js.map +1 -0
- package/dist/browser/api/operations/options.d.ts +5 -0
- package/dist/browser/api/operations/options.js +4 -0
- package/dist/browser/api/operations/options.js.map +1 -0
- package/dist/browser/api/schemaRegistries/index.d.ts +3 -0
- package/dist/browser/api/schemaRegistries/index.js +4 -0
- package/dist/browser/api/schemaRegistries/index.js.map +1 -0
- package/dist/browser/api/schemaRegistries/operations.d.ts +36 -0
- package/dist/browser/api/schemaRegistries/operations.js +216 -0
- package/dist/browser/api/schemaRegistries/operations.js.map +1 -0
- package/dist/browser/api/schemaRegistries/options.d.ts +26 -0
- package/dist/browser/api/schemaRegistries/options.js +4 -0
- package/dist/browser/api/schemaRegistries/options.js.map +1 -0
- package/dist/browser/api/schemaVersions/index.d.ts +3 -0
- package/dist/browser/api/schemaVersions/index.js +4 -0
- package/dist/browser/api/schemaVersions/index.js.map +1 -0
- package/dist/browser/api/schemaVersions/operations.d.ts +28 -0
- package/dist/browser/api/schemaVersions/operations.js +143 -0
- package/dist/browser/api/schemaVersions/operations.js.map +1 -0
- package/dist/browser/api/schemaVersions/options.d.ts +16 -0
- package/dist/browser/api/schemaVersions/options.js +4 -0
- package/dist/browser/api/schemaVersions/options.js.map +1 -0
- package/dist/browser/api/schemas/index.d.ts +3 -0
- package/dist/browser/api/schemas/index.js +4 -0
- package/dist/browser/api/schemas/index.js.map +1 -0
- package/dist/browser/api/schemas/operations.d.ts +28 -0
- package/dist/browser/api/schemas/operations.js +139 -0
- package/dist/browser/api/schemas/operations.js.map +1 -0
- package/dist/browser/api/schemas/options.d.ts +16 -0
- package/dist/browser/api/schemas/options.js +4 -0
- package/dist/browser/api/schemas/options.js.map +1 -0
- package/dist/browser/classic/assetEndpointProfiles/index.d.ts +10 -5
- package/dist/browser/classic/assetEndpointProfiles/index.js +10 -8
- package/dist/browser/classic/assetEndpointProfiles/index.js.map +1 -1
- package/dist/browser/classic/assets/index.d.ts +10 -5
- package/dist/browser/classic/assets/index.js +10 -8
- package/dist/browser/classic/assets/index.js.map +1 -1
- package/dist/browser/classic/billingContainers/index.d.ts +4 -4
- package/dist/browser/classic/billingContainers/index.js +6 -4
- package/dist/browser/classic/billingContainers/index.js.map +1 -1
- package/dist/browser/classic/index.d.ts +8 -0
- package/dist/browser/classic/index.js.map +1 -1
- package/dist/browser/classic/namespaceAssets/index.d.ts +25 -0
- package/dist/browser/classic/namespaceAssets/index.js +18 -0
- package/dist/browser/classic/namespaceAssets/index.js.map +1 -0
- package/dist/browser/classic/namespaceDevices/index.d.ts +25 -0
- package/dist/browser/classic/namespaceDevices/index.js +18 -0
- package/dist/browser/classic/namespaceDevices/index.js.map +1 -0
- package/dist/browser/classic/namespaceDiscoveredAssets/index.d.ts +25 -0
- package/dist/browser/classic/namespaceDiscoveredAssets/index.js +18 -0
- package/dist/browser/classic/namespaceDiscoveredAssets/index.js.map +1 -0
- package/dist/browser/classic/namespaceDiscoveredDevices/index.d.ts +25 -0
- package/dist/browser/classic/namespaceDiscoveredDevices/index.js +18 -0
- package/dist/browser/classic/namespaceDiscoveredDevices/index.js.map +1 -0
- package/dist/browser/classic/namespaces/index.d.ts +29 -0
- package/dist/browser/classic/namespaces/index.js +20 -0
- package/dist/browser/classic/namespaces/index.js.map +1 -0
- package/dist/browser/classic/operationStatus/index.d.ts +3 -3
- package/dist/browser/classic/operationStatus/index.js +5 -3
- package/dist/browser/classic/operationStatus/index.js.map +1 -1
- package/dist/browser/classic/operations/index.d.ts +4 -4
- package/dist/browser/classic/operations/index.js +5 -3
- package/dist/browser/classic/operations/index.js.map +1 -1
- package/dist/browser/classic/schemaRegistries/index.d.ts +27 -0
- package/dist/browser/classic/schemaRegistries/index.js +19 -0
- package/dist/browser/classic/schemaRegistries/index.js.map +1 -0
- package/dist/browser/classic/schemaVersions/index.d.ts +23 -0
- package/dist/browser/classic/schemaVersions/index.js +17 -0
- package/dist/browser/classic/schemaVersions/index.js.map +1 -0
- package/dist/browser/classic/schemas/index.d.ts +23 -0
- package/dist/browser/classic/schemas/index.js +17 -0
- package/dist/browser/classic/schemas/index.js.map +1 -0
- package/dist/browser/deviceRegistryManagementClient.d.ts +32 -8
- package/dist/browser/deviceRegistryManagementClient.js +54 -7
- package/dist/browser/deviceRegistryManagementClient.js.map +1 -1
- package/dist/browser/index.d.ts +18 -3
- package/dist/browser/index.js +3 -1
- package/dist/browser/index.js.map +1 -1
- package/dist/browser/models/index.d.ts +1 -1
- package/dist/browser/models/index.js +1 -1
- package/dist/browser/models/index.js.map +1 -1
- package/dist/browser/models/models.d.ts +1788 -324
- package/dist/browser/models/models.js +2500 -395
- package/dist/browser/models/models.js.map +1 -1
- package/dist/browser/restorePollerHelpers.d.ts +4 -4
- package/dist/browser/restorePollerHelpers.js +108 -24
- package/dist/browser/restorePollerHelpers.js.map +1 -1
- package/dist/browser/static-helpers/cloudSettingHelpers.d.ts +22 -0
- package/dist/browser/static-helpers/cloudSettingHelpers.js +38 -0
- package/dist/browser/static-helpers/cloudSettingHelpers.js.map +1 -0
- package/dist/browser/static-helpers/pagingHelpers.d.ts +1 -1
- package/dist/browser/static-helpers/pagingHelpers.js +31 -50
- package/dist/browser/static-helpers/pagingHelpers.js.map +1 -1
- package/dist/browser/static-helpers/pollingHelpers.d.ts +3 -3
- package/dist/browser/static-helpers/pollingHelpers.js +15 -12
- package/dist/browser/static-helpers/pollingHelpers.js.map +1 -1
- package/dist/browser/static-helpers/urlTemplate.d.ts +5 -0
- package/dist/browser/static-helpers/urlTemplate.js +185 -0
- package/dist/browser/static-helpers/urlTemplate.js.map +1 -0
- package/dist/commonjs/api/assetEndpointProfiles/index.d.ts +2 -29
- package/dist/commonjs/api/assetEndpointProfiles/index.js +8 -164
- package/dist/commonjs/api/assetEndpointProfiles/index.js.map +1 -1
- package/dist/commonjs/api/assetEndpointProfiles/operations.d.ts +36 -0
- package/dist/commonjs/api/assetEndpointProfiles/operations.js +236 -0
- package/dist/commonjs/api/assetEndpointProfiles/operations.js.map +1 -0
- package/dist/commonjs/api/assetEndpointProfiles/options.d.ts +26 -0
- package/dist/commonjs/api/assetEndpointProfiles/options.js.map +1 -0
- package/dist/commonjs/api/assets/index.d.ts +2 -29
- package/dist/commonjs/api/assets/index.js +8 -152
- package/dist/commonjs/api/assets/index.js.map +1 -1
- package/dist/commonjs/api/assets/operations.d.ts +36 -0
- package/dist/commonjs/api/assets/operations.js +224 -0
- package/dist/commonjs/api/assets/operations.js.map +1 -0
- package/dist/commonjs/api/assets/options.d.ts +26 -0
- package/dist/commonjs/api/assets/options.js +5 -0
- package/dist/commonjs/api/assets/options.js.map +1 -0
- package/dist/commonjs/api/billingContainers/index.d.ts +2 -12
- package/dist/commonjs/api/billingContainers/index.js +4 -52
- package/dist/commonjs/api/billingContainers/index.js.map +1 -1
- package/dist/commonjs/api/billingContainers/operations.d.ts +14 -0
- package/dist/commonjs/api/billingContainers/operations.js +77 -0
- package/dist/commonjs/api/billingContainers/operations.js.map +1 -0
- package/dist/commonjs/api/billingContainers/options.d.ts +8 -0
- package/dist/commonjs/api/billingContainers/options.js +5 -0
- package/dist/commonjs/api/billingContainers/options.js.map +1 -0
- package/dist/commonjs/api/deviceRegistryManagementContext.d.ts +5 -2
- package/dist/commonjs/api/deviceRegistryManagementContext.js +18 -11
- package/dist/commonjs/api/deviceRegistryManagementContext.js.map +1 -1
- package/dist/commonjs/api/index.d.ts +0 -6
- package/dist/commonjs/api/index.js +1 -22
- package/dist/commonjs/api/index.js.map +1 -1
- package/dist/commonjs/api/namespaceAssets/index.d.ts +3 -0
- package/dist/commonjs/api/namespaceAssets/index.js +12 -0
- package/dist/commonjs/api/namespaceAssets/index.js.map +1 -0
- package/dist/commonjs/api/namespaceAssets/operations.d.ts +32 -0
- package/dist/commonjs/api/namespaceAssets/operations.js +206 -0
- package/dist/commonjs/api/namespaceAssets/operations.js.map +1 -0
- package/dist/commonjs/api/namespaceAssets/options.d.ts +23 -0
- package/dist/commonjs/api/namespaceAssets/options.js +5 -0
- package/dist/commonjs/api/namespaceAssets/options.js.map +1 -0
- package/dist/commonjs/api/namespaceDevices/index.d.ts +3 -0
- package/dist/commonjs/api/namespaceDevices/index.js +12 -0
- package/dist/commonjs/api/namespaceDevices/index.js.map +1 -0
- package/dist/commonjs/api/namespaceDevices/operations.d.ts +32 -0
- package/dist/commonjs/api/namespaceDevices/operations.js +206 -0
- package/dist/commonjs/api/namespaceDevices/operations.js.map +1 -0
- package/dist/commonjs/api/namespaceDevices/options.d.ts +23 -0
- package/dist/commonjs/api/namespaceDevices/options.js +5 -0
- package/dist/commonjs/api/namespaceDevices/options.js.map +1 -0
- package/dist/commonjs/api/namespaceDiscoveredAssets/index.d.ts +3 -0
- package/dist/commonjs/api/namespaceDiscoveredAssets/index.js +12 -0
- package/dist/commonjs/api/namespaceDiscoveredAssets/index.js.map +1 -0
- package/dist/commonjs/api/namespaceDiscoveredAssets/operations.d.ts +32 -0
- package/dist/commonjs/api/namespaceDiscoveredAssets/operations.js +214 -0
- package/dist/commonjs/api/namespaceDiscoveredAssets/operations.js.map +1 -0
- package/dist/commonjs/api/namespaceDiscoveredAssets/options.d.ts +23 -0
- package/dist/commonjs/api/namespaceDiscoveredAssets/options.js +5 -0
- package/dist/commonjs/api/namespaceDiscoveredAssets/options.js.map +1 -0
- package/dist/commonjs/api/namespaceDiscoveredDevices/index.d.ts +3 -0
- package/dist/commonjs/api/namespaceDiscoveredDevices/index.js +12 -0
- package/dist/commonjs/api/namespaceDiscoveredDevices/index.js.map +1 -0
- package/dist/commonjs/api/namespaceDiscoveredDevices/operations.d.ts +32 -0
- package/dist/commonjs/api/namespaceDiscoveredDevices/operations.js +214 -0
- package/dist/commonjs/api/namespaceDiscoveredDevices/operations.js.map +1 -0
- package/dist/commonjs/api/namespaceDiscoveredDevices/options.d.ts +23 -0
- package/dist/commonjs/api/namespaceDiscoveredDevices/options.js +5 -0
- package/dist/commonjs/api/namespaceDiscoveredDevices/options.js.map +1 -0
- package/dist/commonjs/api/namespaces/index.d.ts +3 -0
- package/dist/commonjs/api/namespaces/index.js +14 -0
- package/dist/commonjs/api/namespaces/index.js.map +1 -0
- package/dist/commonjs/api/namespaces/operations.d.ts +40 -0
- package/dist/commonjs/api/namespaces/operations.js +264 -0
- package/dist/commonjs/api/namespaces/operations.js.map +1 -0
- package/dist/commonjs/api/namespaces/options.d.ts +31 -0
- package/dist/commonjs/api/namespaces/options.js +5 -0
- package/dist/commonjs/api/namespaces/options.js.map +1 -0
- package/dist/commonjs/api/operationStatus/index.d.ts +2 -7
- package/dist/commonjs/api/operationStatus/index.js +3 -25
- package/dist/commonjs/api/operationStatus/index.js.map +1 -1
- package/dist/commonjs/api/operationStatus/operations.d.ts +9 -0
- package/dist/commonjs/api/operationStatus/operations.js +42 -0
- package/dist/commonjs/api/operationStatus/operations.js.map +1 -0
- package/dist/commonjs/api/operationStatus/options.d.ts +5 -0
- package/dist/commonjs/api/operationStatus/options.js +5 -0
- package/dist/commonjs/api/operationStatus/options.js.map +1 -0
- package/dist/commonjs/api/operations/index.d.ts +2 -8
- package/dist/commonjs/api/operations/index.js +3 -23
- package/dist/commonjs/api/operations/index.js.map +1 -1
- package/dist/commonjs/api/operations/operations.d.ts +10 -0
- package/dist/commonjs/api/operations/operations.js +39 -0
- package/dist/commonjs/api/operations/operations.js.map +1 -0
- package/dist/commonjs/api/operations/options.d.ts +5 -0
- package/dist/commonjs/api/operations/options.js +5 -0
- package/dist/commonjs/api/operations/options.js.map +1 -0
- package/dist/commonjs/api/schemaRegistries/index.d.ts +3 -0
- package/dist/commonjs/api/schemaRegistries/index.js +13 -0
- package/dist/commonjs/api/schemaRegistries/index.js.map +1 -0
- package/dist/commonjs/api/schemaRegistries/operations.d.ts +36 -0
- package/dist/commonjs/api/schemaRegistries/operations.js +236 -0
- package/dist/commonjs/api/schemaRegistries/operations.js.map +1 -0
- package/dist/commonjs/api/schemaRegistries/options.d.ts +26 -0
- package/dist/commonjs/api/schemaRegistries/options.js +5 -0
- package/dist/commonjs/api/schemaRegistries/options.js.map +1 -0
- package/dist/commonjs/api/schemaVersions/index.d.ts +3 -0
- package/dist/commonjs/api/schemaVersions/index.js +11 -0
- package/dist/commonjs/api/schemaVersions/index.js.map +1 -0
- package/dist/commonjs/api/schemaVersions/operations.d.ts +28 -0
- package/dist/commonjs/api/schemaVersions/operations.js +157 -0
- package/dist/commonjs/api/schemaVersions/operations.js.map +1 -0
- package/dist/commonjs/api/schemaVersions/options.d.ts +16 -0
- package/dist/commonjs/api/schemaVersions/options.js +5 -0
- package/dist/commonjs/api/schemaVersions/options.js.map +1 -0
- package/dist/commonjs/api/schemas/index.d.ts +3 -0
- package/dist/commonjs/api/schemas/index.js +11 -0
- package/dist/commonjs/api/schemas/index.js.map +1 -0
- package/dist/commonjs/api/schemas/operations.d.ts +28 -0
- package/dist/commonjs/api/schemas/operations.js +153 -0
- package/dist/commonjs/api/schemas/operations.js.map +1 -0
- package/dist/commonjs/api/schemas/options.d.ts +16 -0
- package/dist/commonjs/api/schemas/options.js +5 -0
- package/dist/commonjs/api/schemas/options.js.map +1 -0
- package/dist/commonjs/classic/assetEndpointProfiles/index.d.ts +10 -5
- package/dist/commonjs/classic/assetEndpointProfiles/index.js +10 -8
- package/dist/commonjs/classic/assetEndpointProfiles/index.js.map +1 -1
- package/dist/commonjs/classic/assets/index.d.ts +10 -5
- package/dist/commonjs/classic/assets/index.js +10 -8
- package/dist/commonjs/classic/assets/index.js.map +1 -1
- package/dist/commonjs/classic/billingContainers/index.d.ts +4 -4
- package/dist/commonjs/classic/billingContainers/index.js +6 -4
- package/dist/commonjs/classic/billingContainers/index.js.map +1 -1
- package/dist/commonjs/classic/index.d.ts +8 -0
- package/dist/commonjs/classic/index.js.map +1 -1
- package/dist/commonjs/classic/namespaceAssets/index.d.ts +25 -0
- package/dist/commonjs/classic/namespaceAssets/index.js +21 -0
- package/dist/commonjs/classic/namespaceAssets/index.js.map +1 -0
- package/dist/commonjs/classic/namespaceDevices/index.d.ts +25 -0
- package/dist/commonjs/classic/namespaceDevices/index.js +21 -0
- package/dist/commonjs/classic/namespaceDevices/index.js.map +1 -0
- package/dist/commonjs/classic/namespaceDiscoveredAssets/index.d.ts +25 -0
- package/dist/commonjs/classic/namespaceDiscoveredAssets/index.js +21 -0
- package/dist/commonjs/classic/namespaceDiscoveredAssets/index.js.map +1 -0
- package/dist/commonjs/classic/namespaceDiscoveredDevices/index.d.ts +25 -0
- package/dist/commonjs/classic/namespaceDiscoveredDevices/index.js +21 -0
- package/dist/commonjs/classic/namespaceDiscoveredDevices/index.js.map +1 -0
- package/dist/commonjs/classic/namespaces/index.d.ts +29 -0
- package/dist/commonjs/classic/namespaces/index.js +23 -0
- package/dist/commonjs/classic/namespaces/index.js.map +1 -0
- package/dist/commonjs/classic/operationStatus/index.d.ts +3 -3
- package/dist/commonjs/classic/operationStatus/index.js +5 -3
- package/dist/commonjs/classic/operationStatus/index.js.map +1 -1
- package/dist/commonjs/classic/operations/index.d.ts +4 -4
- package/dist/commonjs/classic/operations/index.js +5 -3
- package/dist/commonjs/classic/operations/index.js.map +1 -1
- package/dist/commonjs/classic/schemaRegistries/index.d.ts +27 -0
- package/dist/commonjs/classic/schemaRegistries/index.js +22 -0
- package/dist/commonjs/classic/schemaRegistries/index.js.map +1 -0
- package/dist/commonjs/classic/schemaVersions/index.d.ts +23 -0
- package/dist/commonjs/classic/schemaVersions/index.js +20 -0
- package/dist/commonjs/classic/schemaVersions/index.js.map +1 -0
- package/dist/commonjs/classic/schemas/index.d.ts +23 -0
- package/dist/commonjs/classic/schemas/index.js +20 -0
- package/dist/commonjs/classic/schemas/index.js.map +1 -0
- package/dist/commonjs/deviceRegistryManagementClient.d.ts +32 -8
- package/dist/commonjs/deviceRegistryManagementClient.js +57 -10
- package/dist/commonjs/deviceRegistryManagementClient.js.map +1 -1
- package/dist/commonjs/index.d.ts +18 -3
- package/dist/commonjs/index.js +18 -6
- package/dist/commonjs/index.js.map +1 -1
- package/dist/commonjs/models/index.d.ts +1 -1
- package/dist/commonjs/models/index.js +16 -6
- package/dist/commonjs/models/index.js.map +1 -1
- package/dist/commonjs/models/models.d.ts +1788 -324
- package/dist/commonjs/models/models.js +2726 -400
- package/dist/commonjs/models/models.js.map +1 -1
- package/dist/commonjs/restorePollerHelpers.d.ts +4 -4
- package/dist/commonjs/restorePollerHelpers.js +107 -23
- package/dist/commonjs/restorePollerHelpers.js.map +1 -1
- package/dist/commonjs/static-helpers/cloudSettingHelpers.d.ts +22 -0
- package/dist/commonjs/static-helpers/cloudSettingHelpers.js +42 -0
- package/dist/commonjs/static-helpers/cloudSettingHelpers.js.map +1 -0
- package/dist/commonjs/static-helpers/pagingHelpers.d.ts +1 -1
- package/dist/commonjs/static-helpers/pagingHelpers.js +31 -50
- package/dist/commonjs/static-helpers/pagingHelpers.js.map +1 -1
- package/dist/commonjs/static-helpers/pollingHelpers.d.ts +3 -3
- package/dist/commonjs/static-helpers/pollingHelpers.js +14 -11
- package/dist/commonjs/static-helpers/pollingHelpers.js.map +1 -1
- package/dist/commonjs/static-helpers/urlTemplate.d.ts +5 -0
- package/dist/commonjs/static-helpers/urlTemplate.js +188 -0
- package/dist/commonjs/static-helpers/urlTemplate.js.map +1 -0
- package/dist/commonjs/tsdoc-metadata.json +11 -11
- package/dist/esm/api/assetEndpointProfiles/index.d.ts +2 -29
- package/dist/esm/api/assetEndpointProfiles/index.js +1 -146
- package/dist/esm/api/assetEndpointProfiles/index.js.map +1 -1
- package/dist/esm/api/assetEndpointProfiles/operations.d.ts +36 -0
- package/dist/esm/api/assetEndpointProfiles/operations.js +216 -0
- package/dist/esm/api/assetEndpointProfiles/operations.js.map +1 -0
- package/dist/esm/api/assetEndpointProfiles/options.d.ts +26 -0
- package/dist/esm/api/assetEndpointProfiles/options.js +4 -0
- package/dist/esm/api/assetEndpointProfiles/options.js.map +1 -0
- package/dist/esm/api/assets/index.d.ts +2 -29
- package/dist/esm/api/assets/index.js +1 -134
- package/dist/esm/api/assets/index.js.map +1 -1
- package/dist/esm/api/assets/operations.d.ts +36 -0
- package/dist/esm/api/assets/operations.js +204 -0
- package/dist/esm/api/assets/operations.js.map +1 -0
- package/dist/esm/api/assets/options.d.ts +26 -0
- package/dist/esm/api/assets/options.js +4 -0
- package/dist/esm/api/assets/options.js.map +1 -0
- package/dist/esm/api/billingContainers/index.d.ts +2 -12
- package/dist/esm/api/billingContainers/index.js +1 -46
- package/dist/esm/api/billingContainers/index.js.map +1 -1
- package/dist/esm/api/billingContainers/operations.d.ts +14 -0
- package/dist/esm/api/billingContainers/operations.js +69 -0
- package/dist/esm/api/billingContainers/operations.js.map +1 -0
- package/dist/esm/api/billingContainers/options.d.ts +8 -0
- package/dist/esm/api/billingContainers/options.js +4 -0
- package/dist/esm/api/billingContainers/options.js.map +1 -0
- package/dist/esm/api/deviceRegistryManagementContext.d.ts +5 -2
- package/dist/esm/api/deviceRegistryManagementContext.js +18 -11
- package/dist/esm/api/deviceRegistryManagementContext.js.map +1 -1
- package/dist/esm/api/index.d.ts +0 -6
- package/dist/esm/api/index.js +0 -5
- package/dist/esm/api/index.js.map +1 -1
- package/dist/esm/api/namespaceAssets/index.d.ts +3 -0
- package/dist/esm/api/namespaceAssets/index.js +4 -0
- package/dist/esm/api/namespaceAssets/index.js.map +1 -0
- package/dist/esm/api/namespaceAssets/operations.d.ts +32 -0
- package/dist/esm/api/namespaceAssets/operations.js +189 -0
- package/dist/esm/api/namespaceAssets/operations.js.map +1 -0
- package/dist/esm/api/namespaceAssets/options.d.ts +23 -0
- package/dist/esm/api/namespaceAssets/options.js +4 -0
- package/dist/esm/api/namespaceAssets/options.js.map +1 -0
- package/dist/esm/api/namespaceDevices/index.d.ts +3 -0
- package/dist/esm/api/namespaceDevices/index.js +4 -0
- package/dist/esm/api/namespaceDevices/index.js.map +1 -0
- package/dist/esm/api/namespaceDevices/operations.d.ts +32 -0
- package/dist/esm/api/namespaceDevices/operations.js +189 -0
- package/dist/esm/api/namespaceDevices/operations.js.map +1 -0
- package/dist/esm/api/namespaceDevices/options.d.ts +23 -0
- package/dist/esm/api/namespaceDevices/options.js +4 -0
- package/dist/esm/api/namespaceDevices/options.js.map +1 -0
- package/dist/esm/api/namespaceDiscoveredAssets/index.d.ts +3 -0
- package/dist/esm/api/namespaceDiscoveredAssets/index.js +4 -0
- package/dist/esm/api/namespaceDiscoveredAssets/index.js.map +1 -0
- package/dist/esm/api/namespaceDiscoveredAssets/operations.d.ts +32 -0
- package/dist/esm/api/namespaceDiscoveredAssets/operations.js +197 -0
- package/dist/esm/api/namespaceDiscoveredAssets/operations.js.map +1 -0
- package/dist/esm/api/namespaceDiscoveredAssets/options.d.ts +23 -0
- package/dist/esm/api/namespaceDiscoveredAssets/options.js +4 -0
- package/dist/esm/api/namespaceDiscoveredAssets/options.js.map +1 -0
- package/dist/esm/api/namespaceDiscoveredDevices/index.d.ts +3 -0
- package/dist/esm/api/namespaceDiscoveredDevices/index.js +4 -0
- package/dist/esm/api/namespaceDiscoveredDevices/index.js.map +1 -0
- package/dist/esm/api/namespaceDiscoveredDevices/operations.d.ts +32 -0
- package/dist/esm/api/namespaceDiscoveredDevices/operations.js +197 -0
- package/dist/esm/api/namespaceDiscoveredDevices/operations.js.map +1 -0
- package/dist/esm/api/namespaceDiscoveredDevices/options.d.ts +23 -0
- package/dist/esm/api/namespaceDiscoveredDevices/options.js +4 -0
- package/dist/esm/api/namespaceDiscoveredDevices/options.js.map +1 -0
- package/dist/esm/api/namespaces/index.d.ts +3 -0
- package/dist/esm/api/namespaces/index.js +4 -0
- package/dist/esm/api/namespaces/index.js.map +1 -0
- package/dist/esm/api/namespaces/operations.d.ts +40 -0
- package/dist/esm/api/namespaces/operations.js +241 -0
- package/dist/esm/api/namespaces/operations.js.map +1 -0
- package/dist/esm/api/namespaces/options.d.ts +31 -0
- package/dist/esm/api/namespaces/options.js +4 -0
- package/dist/esm/api/namespaces/options.js.map +1 -0
- package/dist/esm/api/operationStatus/index.d.ts +2 -7
- package/dist/esm/api/operationStatus/index.js +1 -22
- package/dist/esm/api/operationStatus/index.js.map +1 -1
- package/dist/esm/api/operationStatus/operations.d.ts +9 -0
- package/dist/esm/api/operationStatus/operations.js +37 -0
- package/dist/esm/api/operationStatus/operations.js.map +1 -0
- package/dist/esm/api/operationStatus/options.d.ts +5 -0
- package/dist/esm/api/operationStatus/options.js +4 -0
- package/dist/esm/api/operationStatus/options.js.map +1 -0
- package/dist/esm/api/operations/index.d.ts +2 -8
- package/dist/esm/api/operations/index.js +1 -20
- package/dist/esm/api/operations/index.js.map +1 -1
- package/dist/esm/api/operations/operations.d.ts +10 -0
- package/dist/esm/api/operations/operations.js +34 -0
- package/dist/esm/api/operations/operations.js.map +1 -0
- package/dist/esm/api/operations/options.d.ts +5 -0
- package/dist/esm/api/operations/options.js +4 -0
- package/dist/esm/api/operations/options.js.map +1 -0
- package/dist/esm/api/schemaRegistries/index.d.ts +3 -0
- package/dist/esm/api/schemaRegistries/index.js +4 -0
- package/dist/esm/api/schemaRegistries/index.js.map +1 -0
- package/dist/esm/api/schemaRegistries/operations.d.ts +36 -0
- package/dist/esm/api/schemaRegistries/operations.js +216 -0
- package/dist/esm/api/schemaRegistries/operations.js.map +1 -0
- package/dist/esm/api/schemaRegistries/options.d.ts +26 -0
- package/dist/esm/api/schemaRegistries/options.js +4 -0
- package/dist/esm/api/schemaRegistries/options.js.map +1 -0
- package/dist/esm/api/schemaVersions/index.d.ts +3 -0
- package/dist/esm/api/schemaVersions/index.js +4 -0
- package/dist/esm/api/schemaVersions/index.js.map +1 -0
- package/dist/esm/api/schemaVersions/operations.d.ts +28 -0
- package/dist/esm/api/schemaVersions/operations.js +143 -0
- package/dist/esm/api/schemaVersions/operations.js.map +1 -0
- package/dist/esm/api/schemaVersions/options.d.ts +16 -0
- package/dist/esm/api/schemaVersions/options.js +4 -0
- package/dist/esm/api/schemaVersions/options.js.map +1 -0
- package/dist/esm/api/schemas/index.d.ts +3 -0
- package/dist/esm/api/schemas/index.js +4 -0
- package/dist/esm/api/schemas/index.js.map +1 -0
- package/dist/esm/api/schemas/operations.d.ts +28 -0
- package/dist/esm/api/schemas/operations.js +139 -0
- package/dist/esm/api/schemas/operations.js.map +1 -0
- package/dist/esm/api/schemas/options.d.ts +16 -0
- package/dist/esm/api/schemas/options.js +4 -0
- package/dist/esm/api/schemas/options.js.map +1 -0
- package/dist/esm/classic/assetEndpointProfiles/index.d.ts +10 -5
- package/dist/esm/classic/assetEndpointProfiles/index.js +10 -8
- package/dist/esm/classic/assetEndpointProfiles/index.js.map +1 -1
- package/dist/esm/classic/assets/index.d.ts +10 -5
- package/dist/esm/classic/assets/index.js +10 -8
- package/dist/esm/classic/assets/index.js.map +1 -1
- package/dist/esm/classic/billingContainers/index.d.ts +4 -4
- package/dist/esm/classic/billingContainers/index.js +6 -4
- package/dist/esm/classic/billingContainers/index.js.map +1 -1
- package/dist/esm/classic/index.d.ts +8 -0
- package/dist/esm/classic/index.js.map +1 -1
- package/dist/esm/classic/namespaceAssets/index.d.ts +25 -0
- package/dist/esm/classic/namespaceAssets/index.js +18 -0
- package/dist/esm/classic/namespaceAssets/index.js.map +1 -0
- package/dist/esm/classic/namespaceDevices/index.d.ts +25 -0
- package/dist/esm/classic/namespaceDevices/index.js +18 -0
- package/dist/esm/classic/namespaceDevices/index.js.map +1 -0
- package/dist/esm/classic/namespaceDiscoveredAssets/index.d.ts +25 -0
- package/dist/esm/classic/namespaceDiscoveredAssets/index.js +18 -0
- package/dist/esm/classic/namespaceDiscoveredAssets/index.js.map +1 -0
- package/dist/esm/classic/namespaceDiscoveredDevices/index.d.ts +25 -0
- package/dist/esm/classic/namespaceDiscoveredDevices/index.js +18 -0
- package/dist/esm/classic/namespaceDiscoveredDevices/index.js.map +1 -0
- package/dist/esm/classic/namespaces/index.d.ts +29 -0
- package/dist/esm/classic/namespaces/index.js +20 -0
- package/dist/esm/classic/namespaces/index.js.map +1 -0
- package/dist/esm/classic/operationStatus/index.d.ts +3 -3
- package/dist/esm/classic/operationStatus/index.js +5 -3
- package/dist/esm/classic/operationStatus/index.js.map +1 -1
- package/dist/esm/classic/operations/index.d.ts +4 -4
- package/dist/esm/classic/operations/index.js +5 -3
- package/dist/esm/classic/operations/index.js.map +1 -1
- package/dist/esm/classic/schemaRegistries/index.d.ts +27 -0
- package/dist/esm/classic/schemaRegistries/index.js +19 -0
- package/dist/esm/classic/schemaRegistries/index.js.map +1 -0
- package/dist/esm/classic/schemaVersions/index.d.ts +23 -0
- package/dist/esm/classic/schemaVersions/index.js +17 -0
- package/dist/esm/classic/schemaVersions/index.js.map +1 -0
- package/dist/esm/classic/schemas/index.d.ts +23 -0
- package/dist/esm/classic/schemas/index.js +17 -0
- package/dist/esm/classic/schemas/index.js.map +1 -0
- package/dist/esm/deviceRegistryManagementClient.d.ts +32 -8
- package/dist/esm/deviceRegistryManagementClient.js +54 -7
- package/dist/esm/deviceRegistryManagementClient.js.map +1 -1
- package/dist/esm/index.d.ts +18 -3
- package/dist/esm/index.js +3 -1
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/models/index.d.ts +1 -1
- package/dist/esm/models/index.js +1 -1
- package/dist/esm/models/index.js.map +1 -1
- package/dist/esm/models/models.d.ts +1788 -324
- package/dist/esm/models/models.js +2500 -395
- package/dist/esm/models/models.js.map +1 -1
- package/dist/esm/restorePollerHelpers.d.ts +4 -4
- package/dist/esm/restorePollerHelpers.js +108 -24
- package/dist/esm/restorePollerHelpers.js.map +1 -1
- package/dist/esm/static-helpers/cloudSettingHelpers.d.ts +22 -0
- package/dist/esm/static-helpers/cloudSettingHelpers.js +38 -0
- package/dist/esm/static-helpers/cloudSettingHelpers.js.map +1 -0
- package/dist/esm/static-helpers/pagingHelpers.d.ts +1 -1
- package/dist/esm/static-helpers/pagingHelpers.js +31 -50
- package/dist/esm/static-helpers/pagingHelpers.js.map +1 -1
- package/dist/esm/static-helpers/pollingHelpers.d.ts +3 -3
- package/dist/esm/static-helpers/pollingHelpers.js +15 -12
- package/dist/esm/static-helpers/pollingHelpers.js.map +1 -1
- package/dist/esm/static-helpers/urlTemplate.d.ts +5 -0
- package/dist/esm/static-helpers/urlTemplate.js +185 -0
- package/dist/esm/static-helpers/urlTemplate.js.map +1 -0
- package/dist/react-native/api/assetEndpointProfiles/index.d.ts +2 -29
- package/dist/react-native/api/assetEndpointProfiles/index.js +1 -146
- package/dist/react-native/api/assetEndpointProfiles/index.js.map +1 -1
- package/dist/react-native/api/assetEndpointProfiles/operations.d.ts +36 -0
- package/dist/react-native/api/assetEndpointProfiles/operations.js +216 -0
- package/dist/react-native/api/assetEndpointProfiles/operations.js.map +1 -0
- package/dist/react-native/api/assetEndpointProfiles/options.d.ts +26 -0
- package/dist/react-native/api/assetEndpointProfiles/options.js +4 -0
- package/dist/react-native/api/assetEndpointProfiles/options.js.map +1 -0
- package/dist/react-native/api/assets/index.d.ts +2 -29
- package/dist/react-native/api/assets/index.js +1 -134
- package/dist/react-native/api/assets/index.js.map +1 -1
- package/dist/react-native/api/assets/operations.d.ts +36 -0
- package/dist/react-native/api/assets/operations.js +204 -0
- package/dist/react-native/api/assets/operations.js.map +1 -0
- package/dist/react-native/api/assets/options.d.ts +26 -0
- package/dist/react-native/api/assets/options.js +4 -0
- package/dist/react-native/api/assets/options.js.map +1 -0
- package/dist/react-native/api/billingContainers/index.d.ts +2 -12
- package/dist/react-native/api/billingContainers/index.js +1 -46
- package/dist/react-native/api/billingContainers/index.js.map +1 -1
- package/dist/react-native/api/billingContainers/operations.d.ts +14 -0
- package/dist/react-native/api/billingContainers/operations.js +69 -0
- package/dist/react-native/api/billingContainers/operations.js.map +1 -0
- package/dist/react-native/api/billingContainers/options.d.ts +8 -0
- package/dist/react-native/api/billingContainers/options.js +4 -0
- package/dist/react-native/api/billingContainers/options.js.map +1 -0
- package/dist/react-native/api/deviceRegistryManagementContext.d.ts +5 -2
- package/dist/react-native/api/deviceRegistryManagementContext.js +18 -11
- package/dist/react-native/api/deviceRegistryManagementContext.js.map +1 -1
- package/dist/react-native/api/index.d.ts +0 -6
- package/dist/react-native/api/index.js +0 -5
- package/dist/react-native/api/index.js.map +1 -1
- package/dist/react-native/api/namespaceAssets/index.d.ts +3 -0
- package/dist/react-native/api/namespaceAssets/index.js +4 -0
- package/dist/react-native/api/namespaceAssets/index.js.map +1 -0
- package/dist/react-native/api/namespaceAssets/operations.d.ts +32 -0
- package/dist/react-native/api/namespaceAssets/operations.js +189 -0
- package/dist/react-native/api/namespaceAssets/operations.js.map +1 -0
- package/dist/react-native/api/namespaceAssets/options.d.ts +23 -0
- package/dist/react-native/api/namespaceAssets/options.js +4 -0
- package/dist/react-native/api/namespaceAssets/options.js.map +1 -0
- package/dist/react-native/api/namespaceDevices/index.d.ts +3 -0
- package/dist/react-native/api/namespaceDevices/index.js +4 -0
- package/dist/react-native/api/namespaceDevices/index.js.map +1 -0
- package/dist/react-native/api/namespaceDevices/operations.d.ts +32 -0
- package/dist/react-native/api/namespaceDevices/operations.js +189 -0
- package/dist/react-native/api/namespaceDevices/operations.js.map +1 -0
- package/dist/react-native/api/namespaceDevices/options.d.ts +23 -0
- package/dist/react-native/api/namespaceDevices/options.js +4 -0
- package/dist/react-native/api/namespaceDevices/options.js.map +1 -0
- package/dist/react-native/api/namespaceDiscoveredAssets/index.d.ts +3 -0
- package/dist/react-native/api/namespaceDiscoveredAssets/index.js +4 -0
- package/dist/react-native/api/namespaceDiscoveredAssets/index.js.map +1 -0
- package/dist/react-native/api/namespaceDiscoveredAssets/operations.d.ts +32 -0
- package/dist/react-native/api/namespaceDiscoveredAssets/operations.js +197 -0
- package/dist/react-native/api/namespaceDiscoveredAssets/operations.js.map +1 -0
- package/dist/react-native/api/namespaceDiscoveredAssets/options.d.ts +23 -0
- package/dist/react-native/api/namespaceDiscoveredAssets/options.js +4 -0
- package/dist/react-native/api/namespaceDiscoveredAssets/options.js.map +1 -0
- package/dist/react-native/api/namespaceDiscoveredDevices/index.d.ts +3 -0
- package/dist/react-native/api/namespaceDiscoveredDevices/index.js +4 -0
- package/dist/react-native/api/namespaceDiscoveredDevices/index.js.map +1 -0
- package/dist/react-native/api/namespaceDiscoveredDevices/operations.d.ts +32 -0
- package/dist/react-native/api/namespaceDiscoveredDevices/operations.js +197 -0
- package/dist/react-native/api/namespaceDiscoveredDevices/operations.js.map +1 -0
- package/dist/react-native/api/namespaceDiscoveredDevices/options.d.ts +23 -0
- package/dist/react-native/api/namespaceDiscoveredDevices/options.js +4 -0
- package/dist/react-native/api/namespaceDiscoveredDevices/options.js.map +1 -0
- package/dist/react-native/api/namespaces/index.d.ts +3 -0
- package/dist/react-native/api/namespaces/index.js +4 -0
- package/dist/react-native/api/namespaces/index.js.map +1 -0
- package/dist/react-native/api/namespaces/operations.d.ts +40 -0
- package/dist/react-native/api/namespaces/operations.js +241 -0
- package/dist/react-native/api/namespaces/operations.js.map +1 -0
- package/dist/react-native/api/namespaces/options.d.ts +31 -0
- package/dist/react-native/api/namespaces/options.js +4 -0
- package/dist/react-native/api/namespaces/options.js.map +1 -0
- package/dist/react-native/api/operationStatus/index.d.ts +2 -7
- package/dist/react-native/api/operationStatus/index.js +1 -22
- package/dist/react-native/api/operationStatus/index.js.map +1 -1
- package/dist/react-native/api/operationStatus/operations.d.ts +9 -0
- package/dist/react-native/api/operationStatus/operations.js +37 -0
- package/dist/react-native/api/operationStatus/operations.js.map +1 -0
- package/dist/react-native/api/operationStatus/options.d.ts +5 -0
- package/dist/react-native/api/operationStatus/options.js +4 -0
- package/dist/react-native/api/operationStatus/options.js.map +1 -0
- package/dist/react-native/api/operations/index.d.ts +2 -8
- package/dist/react-native/api/operations/index.js +1 -20
- package/dist/react-native/api/operations/index.js.map +1 -1
- package/dist/react-native/api/operations/operations.d.ts +10 -0
- package/dist/react-native/api/operations/operations.js +34 -0
- package/dist/react-native/api/operations/operations.js.map +1 -0
- package/dist/react-native/api/operations/options.d.ts +5 -0
- package/dist/react-native/api/operations/options.js +4 -0
- package/dist/react-native/api/operations/options.js.map +1 -0
- package/dist/react-native/api/schemaRegistries/index.d.ts +3 -0
- package/dist/react-native/api/schemaRegistries/index.js +4 -0
- package/dist/react-native/api/schemaRegistries/index.js.map +1 -0
- package/dist/react-native/api/schemaRegistries/operations.d.ts +36 -0
- package/dist/react-native/api/schemaRegistries/operations.js +216 -0
- package/dist/react-native/api/schemaRegistries/operations.js.map +1 -0
- package/dist/react-native/api/schemaRegistries/options.d.ts +26 -0
- package/dist/react-native/api/schemaRegistries/options.js +4 -0
- package/dist/react-native/api/schemaRegistries/options.js.map +1 -0
- package/dist/react-native/api/schemaVersions/index.d.ts +3 -0
- package/dist/react-native/api/schemaVersions/index.js +4 -0
- package/dist/react-native/api/schemaVersions/index.js.map +1 -0
- package/dist/react-native/api/schemaVersions/operations.d.ts +28 -0
- package/dist/react-native/api/schemaVersions/operations.js +143 -0
- package/dist/react-native/api/schemaVersions/operations.js.map +1 -0
- package/dist/react-native/api/schemaVersions/options.d.ts +16 -0
- package/dist/react-native/api/schemaVersions/options.js +4 -0
- package/dist/react-native/api/schemaVersions/options.js.map +1 -0
- package/dist/react-native/api/schemas/index.d.ts +3 -0
- package/dist/react-native/api/schemas/index.js +4 -0
- package/dist/react-native/api/schemas/index.js.map +1 -0
- package/dist/react-native/api/schemas/operations.d.ts +28 -0
- package/dist/react-native/api/schemas/operations.js +139 -0
- package/dist/react-native/api/schemas/operations.js.map +1 -0
- package/dist/react-native/api/schemas/options.d.ts +16 -0
- package/dist/react-native/api/schemas/options.js +4 -0
- package/dist/react-native/api/schemas/options.js.map +1 -0
- package/dist/react-native/classic/assetEndpointProfiles/index.d.ts +10 -5
- package/dist/react-native/classic/assetEndpointProfiles/index.js +10 -8
- package/dist/react-native/classic/assetEndpointProfiles/index.js.map +1 -1
- package/dist/react-native/classic/assets/index.d.ts +10 -5
- package/dist/react-native/classic/assets/index.js +10 -8
- package/dist/react-native/classic/assets/index.js.map +1 -1
- package/dist/react-native/classic/billingContainers/index.d.ts +4 -4
- package/dist/react-native/classic/billingContainers/index.js +6 -4
- package/dist/react-native/classic/billingContainers/index.js.map +1 -1
- package/dist/react-native/classic/index.d.ts +8 -0
- package/dist/react-native/classic/index.js.map +1 -1
- package/dist/react-native/classic/namespaceAssets/index.d.ts +25 -0
- package/dist/react-native/classic/namespaceAssets/index.js +18 -0
- package/dist/react-native/classic/namespaceAssets/index.js.map +1 -0
- package/dist/react-native/classic/namespaceDevices/index.d.ts +25 -0
- package/dist/react-native/classic/namespaceDevices/index.js +18 -0
- package/dist/react-native/classic/namespaceDevices/index.js.map +1 -0
- package/dist/react-native/classic/namespaceDiscoveredAssets/index.d.ts +25 -0
- package/dist/react-native/classic/namespaceDiscoveredAssets/index.js +18 -0
- package/dist/react-native/classic/namespaceDiscoveredAssets/index.js.map +1 -0
- package/dist/react-native/classic/namespaceDiscoveredDevices/index.d.ts +25 -0
- package/dist/react-native/classic/namespaceDiscoveredDevices/index.js +18 -0
- package/dist/react-native/classic/namespaceDiscoveredDevices/index.js.map +1 -0
- package/dist/react-native/classic/namespaces/index.d.ts +29 -0
- package/dist/react-native/classic/namespaces/index.js +20 -0
- package/dist/react-native/classic/namespaces/index.js.map +1 -0
- package/dist/react-native/classic/operationStatus/index.d.ts +3 -3
- package/dist/react-native/classic/operationStatus/index.js +5 -3
- package/dist/react-native/classic/operationStatus/index.js.map +1 -1
- package/dist/react-native/classic/operations/index.d.ts +4 -4
- package/dist/react-native/classic/operations/index.js +5 -3
- package/dist/react-native/classic/operations/index.js.map +1 -1
- package/dist/react-native/classic/schemaRegistries/index.d.ts +27 -0
- package/dist/react-native/classic/schemaRegistries/index.js +19 -0
- package/dist/react-native/classic/schemaRegistries/index.js.map +1 -0
- package/dist/react-native/classic/schemaVersions/index.d.ts +23 -0
- package/dist/react-native/classic/schemaVersions/index.js +17 -0
- package/dist/react-native/classic/schemaVersions/index.js.map +1 -0
- package/dist/react-native/classic/schemas/index.d.ts +23 -0
- package/dist/react-native/classic/schemas/index.js +17 -0
- package/dist/react-native/classic/schemas/index.js.map +1 -0
- package/dist/react-native/deviceRegistryManagementClient.d.ts +32 -8
- package/dist/react-native/deviceRegistryManagementClient.js +54 -7
- package/dist/react-native/deviceRegistryManagementClient.js.map +1 -1
- package/dist/react-native/index.d.ts +18 -3
- package/dist/react-native/index.js +3 -1
- package/dist/react-native/index.js.map +1 -1
- package/dist/react-native/models/index.d.ts +1 -1
- package/dist/react-native/models/index.js +1 -1
- package/dist/react-native/models/index.js.map +1 -1
- package/dist/react-native/models/models.d.ts +1788 -324
- package/dist/react-native/models/models.js +2500 -395
- package/dist/react-native/models/models.js.map +1 -1
- package/dist/react-native/restorePollerHelpers.d.ts +4 -4
- package/dist/react-native/restorePollerHelpers.js +108 -24
- package/dist/react-native/restorePollerHelpers.js.map +1 -1
- package/dist/react-native/static-helpers/cloudSettingHelpers.d.ts +22 -0
- package/dist/react-native/static-helpers/cloudSettingHelpers.js +38 -0
- package/dist/react-native/static-helpers/cloudSettingHelpers.js.map +1 -0
- package/dist/react-native/static-helpers/pagingHelpers.d.ts +1 -1
- package/dist/react-native/static-helpers/pagingHelpers.js +31 -50
- package/dist/react-native/static-helpers/pagingHelpers.js.map +1 -1
- package/dist/react-native/static-helpers/pollingHelpers.d.ts +3 -3
- package/dist/react-native/static-helpers/pollingHelpers.js +15 -12
- package/dist/react-native/static-helpers/pollingHelpers.js.map +1 -1
- package/dist/react-native/static-helpers/urlTemplate.d.ts +5 -0
- package/dist/react-native/static-helpers/urlTemplate.js +185 -0
- package/dist/react-native/static-helpers/urlTemplate.js.map +1 -0
- package/package.json +314 -53
- package/CHANGELOG.md +0 -7
- package/dist/browser/api/assetEndpointProfiles/index.d.ts.map +0 -1
- package/dist/browser/api/assets/index.d.ts.map +0 -1
- package/dist/browser/api/billingContainers/index.d.ts.map +0 -1
- package/dist/browser/api/deviceRegistryManagementContext.d.ts.map +0 -1
- package/dist/browser/api/index.d.ts.map +0 -1
- package/dist/browser/api/operationStatus/index.d.ts.map +0 -1
- package/dist/browser/api/operations/index.d.ts.map +0 -1
- package/dist/browser/api/options.d.ts +0 -62
- package/dist/browser/api/options.d.ts.map +0 -1
- package/dist/browser/api/options.js.map +0 -1
- package/dist/browser/classic/assetEndpointProfiles/index.d.ts.map +0 -1
- package/dist/browser/classic/assets/index.d.ts.map +0 -1
- package/dist/browser/classic/billingContainers/index.d.ts.map +0 -1
- package/dist/browser/classic/index.d.ts.map +0 -1
- package/dist/browser/classic/operationStatus/index.d.ts.map +0 -1
- package/dist/browser/classic/operations/index.d.ts.map +0 -1
- package/dist/browser/deviceRegistryManagementClient.d.ts.map +0 -1
- package/dist/browser/index.d.ts.map +0 -1
- package/dist/browser/logger.d.ts.map +0 -1
- package/dist/browser/models/index.d.ts.map +0 -1
- package/dist/browser/models/models.d.ts.map +0 -1
- package/dist/browser/restorePollerHelpers.d.ts.map +0 -1
- package/dist/browser/static-helpers/pagingHelpers.d.ts.map +0 -1
- package/dist/browser/static-helpers/pollingHelpers.d.ts.map +0 -1
- package/dist/commonjs/api/assetEndpointProfiles/index.d.ts.map +0 -1
- package/dist/commonjs/api/assets/index.d.ts.map +0 -1
- package/dist/commonjs/api/billingContainers/index.d.ts.map +0 -1
- package/dist/commonjs/api/deviceRegistryManagementContext.d.ts.map +0 -1
- package/dist/commonjs/api/index.d.ts.map +0 -1
- package/dist/commonjs/api/operationStatus/index.d.ts.map +0 -1
- package/dist/commonjs/api/operations/index.d.ts.map +0 -1
- package/dist/commonjs/api/options.d.ts +0 -62
- package/dist/commonjs/api/options.d.ts.map +0 -1
- package/dist/commonjs/api/options.js.map +0 -1
- package/dist/commonjs/classic/assetEndpointProfiles/index.d.ts.map +0 -1
- package/dist/commonjs/classic/assets/index.d.ts.map +0 -1
- package/dist/commonjs/classic/billingContainers/index.d.ts.map +0 -1
- package/dist/commonjs/classic/index.d.ts.map +0 -1
- package/dist/commonjs/classic/operationStatus/index.d.ts.map +0 -1
- package/dist/commonjs/classic/operations/index.d.ts.map +0 -1
- package/dist/commonjs/deviceRegistryManagementClient.d.ts.map +0 -1
- package/dist/commonjs/index.d.ts.map +0 -1
- package/dist/commonjs/logger.d.ts.map +0 -1
- package/dist/commonjs/models/index.d.ts.map +0 -1
- package/dist/commonjs/models/models.d.ts.map +0 -1
- package/dist/commonjs/restorePollerHelpers.d.ts.map +0 -1
- package/dist/commonjs/static-helpers/pagingHelpers.d.ts.map +0 -1
- package/dist/commonjs/static-helpers/pollingHelpers.d.ts.map +0 -1
- package/dist/esm/api/assetEndpointProfiles/index.d.ts.map +0 -1
- package/dist/esm/api/assets/index.d.ts.map +0 -1
- package/dist/esm/api/billingContainers/index.d.ts.map +0 -1
- package/dist/esm/api/deviceRegistryManagementContext.d.ts.map +0 -1
- package/dist/esm/api/index.d.ts.map +0 -1
- package/dist/esm/api/operationStatus/index.d.ts.map +0 -1
- package/dist/esm/api/operations/index.d.ts.map +0 -1
- package/dist/esm/api/options.d.ts +0 -62
- package/dist/esm/api/options.d.ts.map +0 -1
- package/dist/esm/api/options.js.map +0 -1
- package/dist/esm/classic/assetEndpointProfiles/index.d.ts.map +0 -1
- package/dist/esm/classic/assets/index.d.ts.map +0 -1
- package/dist/esm/classic/billingContainers/index.d.ts.map +0 -1
- package/dist/esm/classic/index.d.ts.map +0 -1
- package/dist/esm/classic/operationStatus/index.d.ts.map +0 -1
- package/dist/esm/classic/operations/index.d.ts.map +0 -1
- package/dist/esm/deviceRegistryManagementClient.d.ts.map +0 -1
- package/dist/esm/index.d.ts.map +0 -1
- package/dist/esm/logger.d.ts.map +0 -1
- package/dist/esm/models/index.d.ts.map +0 -1
- package/dist/esm/models/models.d.ts.map +0 -1
- package/dist/esm/restorePollerHelpers.d.ts.map +0 -1
- package/dist/esm/static-helpers/pagingHelpers.d.ts.map +0 -1
- package/dist/esm/static-helpers/pollingHelpers.d.ts.map +0 -1
- package/dist/react-native/api/assetEndpointProfiles/index.d.ts.map +0 -1
- package/dist/react-native/api/assets/index.d.ts.map +0 -1
- package/dist/react-native/api/billingContainers/index.d.ts.map +0 -1
- package/dist/react-native/api/deviceRegistryManagementContext.d.ts.map +0 -1
- package/dist/react-native/api/index.d.ts.map +0 -1
- package/dist/react-native/api/operationStatus/index.d.ts.map +0 -1
- package/dist/react-native/api/operations/index.d.ts.map +0 -1
- package/dist/react-native/api/options.d.ts +0 -62
- package/dist/react-native/api/options.d.ts.map +0 -1
- package/dist/react-native/api/options.js.map +0 -1
- package/dist/react-native/classic/assetEndpointProfiles/index.d.ts.map +0 -1
- package/dist/react-native/classic/assets/index.d.ts.map +0 -1
- package/dist/react-native/classic/billingContainers/index.d.ts.map +0 -1
- package/dist/react-native/classic/index.d.ts.map +0 -1
- package/dist/react-native/classic/operationStatus/index.d.ts.map +0 -1
- package/dist/react-native/classic/operations/index.d.ts.map +0 -1
- package/dist/react-native/deviceRegistryManagementClient.d.ts.map +0 -1
- package/dist/react-native/index.d.ts.map +0 -1
- package/dist/react-native/logger.d.ts.map +0 -1
- package/dist/react-native/models/index.d.ts.map +0 -1
- package/dist/react-native/models/models.d.ts.map +0 -1
- package/dist/react-native/restorePollerHelpers.d.ts.map +0 -1
- package/dist/react-native/static-helpers/pagingHelpers.d.ts.map +0 -1
- package/dist/react-native/static-helpers/pollingHelpers.d.ts.map +0 -1
- package/review/arm-deviceregistry-models.api.md +0 -385
- package/review/arm-deviceregistry.api.md +0 -543
- /package/dist/browser/api/{options.js → assetEndpointProfiles/options.js} +0 -0
- /package/dist/{esm/api → browser/api/assets}/options.js +0 -0
- /package/dist/{react-native/api → browser/api/billingContainers}/options.js +0 -0
- /package/dist/commonjs/api/{options.js → assetEndpointProfiles/options.js} +0 -0
|
@@ -1,85 +1,49 @@
|
|
|
1
1
|
// Copyright (c) Microsoft Corporation.
|
|
2
2
|
// Licensed under the MIT License.
|
|
3
|
-
export function
|
|
4
|
-
return {
|
|
5
|
-
id: item["id"],
|
|
6
|
-
name: item["name"],
|
|
7
|
-
type: item["type"],
|
|
8
|
-
systemData: !item["systemData"]
|
|
9
|
-
? item["systemData"]
|
|
10
|
-
: systemDataDeserializer(item["systemData"]),
|
|
11
|
-
properties: !item["properties"]
|
|
12
|
-
? item["properties"]
|
|
13
|
-
: billingContainerPropertiesDeserializer(item["properties"]),
|
|
14
|
-
etag: item["etag"],
|
|
15
|
-
};
|
|
16
|
-
}
|
|
17
|
-
export function billingContainerPropertiesDeserializer(item) {
|
|
18
|
-
return {
|
|
19
|
-
provisioningState: item["provisioningState"],
|
|
20
|
-
};
|
|
21
|
-
}
|
|
22
|
-
/** The provisioning status of the resource. */
|
|
23
|
-
export var KnownProvisioningState;
|
|
24
|
-
(function (KnownProvisioningState) {
|
|
25
|
-
/** Resource has been created. */
|
|
26
|
-
KnownProvisioningState["Succeeded"] = "Succeeded";
|
|
27
|
-
/** Resource creation failed. */
|
|
28
|
-
KnownProvisioningState["Failed"] = "Failed";
|
|
29
|
-
/** Resource creation was canceled. */
|
|
30
|
-
KnownProvisioningState["Canceled"] = "Canceled";
|
|
31
|
-
/** Resource has been accepted by the server. */
|
|
32
|
-
KnownProvisioningState["Accepted"] = "Accepted";
|
|
33
|
-
/** Resource is deleting. */
|
|
34
|
-
KnownProvisioningState["Deleting"] = "Deleting";
|
|
35
|
-
})(KnownProvisioningState || (KnownProvisioningState = {}));
|
|
36
|
-
export function proxyResourceDeserializer(item) {
|
|
3
|
+
export function _operationListResultDeserializer(item) {
|
|
37
4
|
return {
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
type: item["type"],
|
|
41
|
-
systemData: !item["systemData"]
|
|
42
|
-
? item["systemData"]
|
|
43
|
-
: systemDataDeserializer(item["systemData"]),
|
|
5
|
+
value: operationArrayDeserializer(item["value"]),
|
|
6
|
+
nextLink: item["nextLink"],
|
|
44
7
|
};
|
|
45
8
|
}
|
|
46
|
-
export function
|
|
47
|
-
return item
|
|
9
|
+
export function operationArrayDeserializer(result) {
|
|
10
|
+
return result.map((item) => {
|
|
11
|
+
return operationDeserializer(item);
|
|
12
|
+
});
|
|
48
13
|
}
|
|
49
|
-
export function
|
|
14
|
+
export function operationDeserializer(item) {
|
|
50
15
|
return {
|
|
51
|
-
id: item["id"],
|
|
52
16
|
name: item["name"],
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
17
|
+
isDataAction: item["isDataAction"],
|
|
18
|
+
display: !item["display"] ? item["display"] : operationDisplayDeserializer(item["display"]),
|
|
19
|
+
origin: item["origin"],
|
|
20
|
+
actionType: item["actionType"],
|
|
57
21
|
};
|
|
58
22
|
}
|
|
59
|
-
export function
|
|
23
|
+
export function operationDisplayDeserializer(item) {
|
|
60
24
|
return {
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
lastModifiedByType: item["lastModifiedByType"],
|
|
66
|
-
lastModifiedAt: !item["lastModifiedAt"]
|
|
67
|
-
? item["lastModifiedAt"]
|
|
68
|
-
: new Date(item["lastModifiedAt"]),
|
|
25
|
+
provider: item["provider"],
|
|
26
|
+
resource: item["resource"],
|
|
27
|
+
operation: item["operation"],
|
|
28
|
+
description: item["description"],
|
|
69
29
|
};
|
|
70
30
|
}
|
|
71
|
-
/** The
|
|
72
|
-
export var
|
|
73
|
-
(function (
|
|
74
|
-
/**
|
|
75
|
-
|
|
76
|
-
/**
|
|
77
|
-
|
|
78
|
-
/**
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
31
|
+
/** The intended executor of the operation; as in Resource Based Access Control (RBAC) and audit logs UX. Default value is "user,system" */
|
|
32
|
+
export var KnownOrigin;
|
|
33
|
+
(function (KnownOrigin) {
|
|
34
|
+
/** Indicates the operation is initiated by a user. */
|
|
35
|
+
KnownOrigin["User"] = "user";
|
|
36
|
+
/** Indicates the operation is initiated by a system. */
|
|
37
|
+
KnownOrigin["System"] = "system";
|
|
38
|
+
/** Indicates the operation is initiated by a user or system. */
|
|
39
|
+
KnownOrigin["UserSystem"] = "user,system";
|
|
40
|
+
})(KnownOrigin || (KnownOrigin = {}));
|
|
41
|
+
/** Extensible enum. Indicates the action type. "Internal" refers to actions that are for internal only APIs. */
|
|
42
|
+
export var KnownActionType;
|
|
43
|
+
(function (KnownActionType) {
|
|
44
|
+
/** Actions are for internal-only APIs. */
|
|
45
|
+
KnownActionType["Internal"] = "Internal";
|
|
46
|
+
})(KnownActionType || (KnownActionType = {}));
|
|
83
47
|
export function errorResponseDeserializer(item) {
|
|
84
48
|
return {
|
|
85
49
|
error: !item["error"] ? item["error"] : errorDetailDeserializer(item["error"]),
|
|
@@ -109,34 +73,40 @@ export function errorAdditionalInfoArrayDeserializer(result) {
|
|
|
109
73
|
export function errorAdditionalInfoDeserializer(item) {
|
|
110
74
|
return {
|
|
111
75
|
type: item["type"],
|
|
112
|
-
info:
|
|
76
|
+
info: item["info"],
|
|
113
77
|
};
|
|
114
78
|
}
|
|
115
|
-
export function
|
|
116
|
-
return item;
|
|
117
|
-
}
|
|
118
|
-
export function _billingContainerListResultDeserializer(item) {
|
|
79
|
+
export function operationStatusResultDeserializer(item) {
|
|
119
80
|
return {
|
|
120
|
-
|
|
121
|
-
|
|
81
|
+
id: item["id"],
|
|
82
|
+
name: item["name"],
|
|
83
|
+
status: item["status"],
|
|
84
|
+
percentComplete: item["percentComplete"],
|
|
85
|
+
startTime: !item["startTime"] ? item["startTime"] : new Date(item["startTime"]),
|
|
86
|
+
endTime: !item["endTime"] ? item["endTime"] : new Date(item["endTime"]),
|
|
87
|
+
operations: !item["operations"]
|
|
88
|
+
? item["operations"]
|
|
89
|
+
: operationStatusResultArrayDeserializer(item["operations"]),
|
|
90
|
+
error: !item["error"] ? item["error"] : errorDetailDeserializer(item["error"]),
|
|
91
|
+
resourceId: item["resourceId"],
|
|
122
92
|
};
|
|
123
93
|
}
|
|
124
|
-
export function
|
|
94
|
+
export function operationStatusResultArrayDeserializer(result) {
|
|
125
95
|
return result.map((item) => {
|
|
126
|
-
return
|
|
96
|
+
return operationStatusResultDeserializer(item);
|
|
127
97
|
});
|
|
128
98
|
}
|
|
129
|
-
export function
|
|
99
|
+
export function assetSerializer(item) {
|
|
130
100
|
return {
|
|
131
101
|
tags: item["tags"],
|
|
132
102
|
location: item["location"],
|
|
133
103
|
properties: !item["properties"]
|
|
134
104
|
? item["properties"]
|
|
135
|
-
:
|
|
105
|
+
: assetPropertiesSerializer(item["properties"]),
|
|
136
106
|
extendedLocation: extendedLocationSerializer(item["extendedLocation"]),
|
|
137
107
|
};
|
|
138
108
|
}
|
|
139
|
-
export function
|
|
109
|
+
export function assetDeserializer(item) {
|
|
140
110
|
return {
|
|
141
111
|
tags: item["tags"],
|
|
142
112
|
location: item["location"],
|
|
@@ -148,290 +118,109 @@ export function assetEndpointProfileDeserializer(item) {
|
|
|
148
118
|
: systemDataDeserializer(item["systemData"]),
|
|
149
119
|
properties: !item["properties"]
|
|
150
120
|
? item["properties"]
|
|
151
|
-
:
|
|
121
|
+
: assetPropertiesDeserializer(item["properties"]),
|
|
152
122
|
extendedLocation: extendedLocationDeserializer(item["extendedLocation"]),
|
|
153
123
|
};
|
|
154
124
|
}
|
|
155
|
-
export function
|
|
125
|
+
export function assetPropertiesSerializer(item) {
|
|
156
126
|
return {
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
127
|
+
enabled: item["enabled"],
|
|
128
|
+
externalAssetId: item["externalAssetId"],
|
|
129
|
+
displayName: item["displayName"],
|
|
130
|
+
description: item["description"],
|
|
131
|
+
assetEndpointProfileRef: item["assetEndpointProfileRef"],
|
|
132
|
+
manufacturer: item["manufacturer"],
|
|
133
|
+
manufacturerUri: item["manufacturerUri"],
|
|
134
|
+
model: item["model"],
|
|
135
|
+
productCode: item["productCode"],
|
|
136
|
+
hardwareRevision: item["hardwareRevision"],
|
|
137
|
+
softwareRevision: item["softwareRevision"],
|
|
138
|
+
documentationUri: item["documentationUri"],
|
|
139
|
+
serialNumber: item["serialNumber"],
|
|
140
|
+
attributes: item["attributes"],
|
|
141
|
+
discoveredAssetRefs: !item["discoveredAssetRefs"]
|
|
142
|
+
? item["discoveredAssetRefs"]
|
|
143
|
+
: item["discoveredAssetRefs"].map((p) => {
|
|
144
|
+
return p;
|
|
145
|
+
}),
|
|
146
|
+
defaultDatasetsConfiguration: item["defaultDatasetsConfiguration"],
|
|
147
|
+
defaultEventsConfiguration: item["defaultEventsConfiguration"],
|
|
148
|
+
defaultTopic: !item["defaultTopic"]
|
|
149
|
+
? item["defaultTopic"]
|
|
150
|
+
: topicSerializer(item["defaultTopic"]),
|
|
151
|
+
datasets: !item["datasets"] ? item["datasets"] : datasetArraySerializer(item["datasets"]),
|
|
152
|
+
events: !item["events"] ? item["events"] : eventArraySerializer(item["events"]),
|
|
164
153
|
};
|
|
165
154
|
}
|
|
166
|
-
export function
|
|
155
|
+
export function assetPropertiesDeserializer(item) {
|
|
167
156
|
return {
|
|
168
157
|
uuid: item["uuid"],
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
158
|
+
enabled: item["enabled"],
|
|
159
|
+
externalAssetId: item["externalAssetId"],
|
|
160
|
+
displayName: item["displayName"],
|
|
161
|
+
description: item["description"],
|
|
162
|
+
assetEndpointProfileRef: item["assetEndpointProfileRef"],
|
|
163
|
+
version: item["version"],
|
|
164
|
+
manufacturer: item["manufacturer"],
|
|
165
|
+
manufacturerUri: item["manufacturerUri"],
|
|
166
|
+
model: item["model"],
|
|
167
|
+
productCode: item["productCode"],
|
|
168
|
+
hardwareRevision: item["hardwareRevision"],
|
|
169
|
+
softwareRevision: item["softwareRevision"],
|
|
170
|
+
documentationUri: item["documentationUri"],
|
|
171
|
+
serialNumber: item["serialNumber"],
|
|
172
|
+
attributes: item["attributes"],
|
|
173
|
+
discoveredAssetRefs: !item["discoveredAssetRefs"]
|
|
174
|
+
? item["discoveredAssetRefs"]
|
|
175
|
+
: item["discoveredAssetRefs"].map((p) => {
|
|
176
|
+
return p;
|
|
177
|
+
}),
|
|
178
|
+
defaultDatasetsConfiguration: item["defaultDatasetsConfiguration"],
|
|
179
|
+
defaultEventsConfiguration: item["defaultEventsConfiguration"],
|
|
180
|
+
defaultTopic: !item["defaultTopic"]
|
|
181
|
+
? item["defaultTopic"]
|
|
182
|
+
: topicDeserializer(item["defaultTopic"]),
|
|
183
|
+
datasets: !item["datasets"] ? item["datasets"] : datasetArrayDeserializer(item["datasets"]),
|
|
184
|
+
events: !item["events"] ? item["events"] : eventArrayDeserializer(item["events"]),
|
|
185
|
+
status: !item["status"] ? item["status"] : assetStatusDeserializer(item["status"]),
|
|
179
186
|
provisioningState: item["provisioningState"],
|
|
180
187
|
};
|
|
181
188
|
}
|
|
182
|
-
export function
|
|
189
|
+
export function topicSerializer(item) {
|
|
190
|
+
return { path: item["path"], retain: item["retain"] };
|
|
191
|
+
}
|
|
192
|
+
export function topicDeserializer(item) {
|
|
183
193
|
return {
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
? item["usernamePasswordCredentials"]
|
|
187
|
-
: usernamePasswordCredentialsSerializer(item["usernamePasswordCredentials"]),
|
|
188
|
-
x509Credentials: !item["x509Credentials"]
|
|
189
|
-
? item["x509Credentials"]
|
|
190
|
-
: x509CredentialsSerializer(item["x509Credentials"]),
|
|
194
|
+
path: item["path"],
|
|
195
|
+
retain: item["retain"],
|
|
191
196
|
};
|
|
192
197
|
}
|
|
193
|
-
|
|
198
|
+
/** Topic retain types. */
|
|
199
|
+
export var KnownTopicRetainType;
|
|
200
|
+
(function (KnownTopicRetainType) {
|
|
201
|
+
/** Retain the messages. */
|
|
202
|
+
KnownTopicRetainType["Keep"] = "Keep";
|
|
203
|
+
/** Never retain messages. */
|
|
204
|
+
KnownTopicRetainType["Never"] = "Never";
|
|
205
|
+
})(KnownTopicRetainType || (KnownTopicRetainType = {}));
|
|
206
|
+
export function datasetArraySerializer(result) {
|
|
207
|
+
return result.map((item) => {
|
|
208
|
+
return datasetSerializer(item);
|
|
209
|
+
});
|
|
210
|
+
}
|
|
211
|
+
export function datasetArrayDeserializer(result) {
|
|
212
|
+
return result.map((item) => {
|
|
213
|
+
return datasetDeserializer(item);
|
|
214
|
+
});
|
|
215
|
+
}
|
|
216
|
+
export function datasetSerializer(item) {
|
|
194
217
|
return {
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
: x509CredentialsDeserializer(item["x509Credentials"]),
|
|
202
|
-
};
|
|
203
|
-
}
|
|
204
|
-
/** The method to authenticate the user of the client at the server. */
|
|
205
|
-
export var KnownAuthenticationMethod;
|
|
206
|
-
(function (KnownAuthenticationMethod) {
|
|
207
|
-
/** The user authentication method is anonymous. */
|
|
208
|
-
KnownAuthenticationMethod["Anonymous"] = "Anonymous";
|
|
209
|
-
/** The user authentication method is an x509 certificate. */
|
|
210
|
-
KnownAuthenticationMethod["Certificate"] = "Certificate";
|
|
211
|
-
/** The user authentication method is a username and password. */
|
|
212
|
-
KnownAuthenticationMethod["UsernamePassword"] = "UsernamePassword";
|
|
213
|
-
})(KnownAuthenticationMethod || (KnownAuthenticationMethod = {}));
|
|
214
|
-
export function usernamePasswordCredentialsSerializer(item) {
|
|
215
|
-
return {
|
|
216
|
-
usernameSecretName: item["usernameSecretName"],
|
|
217
|
-
passwordSecretName: item["passwordSecretName"],
|
|
218
|
-
};
|
|
219
|
-
}
|
|
220
|
-
export function usernamePasswordCredentialsDeserializer(item) {
|
|
221
|
-
return {
|
|
222
|
-
usernameSecretName: item["usernameSecretName"],
|
|
223
|
-
passwordSecretName: item["passwordSecretName"],
|
|
224
|
-
};
|
|
225
|
-
}
|
|
226
|
-
export function x509CredentialsSerializer(item) {
|
|
227
|
-
return { certificateSecretName: item["certificateSecretName"] };
|
|
228
|
-
}
|
|
229
|
-
export function x509CredentialsDeserializer(item) {
|
|
230
|
-
return {
|
|
231
|
-
certificateSecretName: item["certificateSecretName"],
|
|
232
|
-
};
|
|
233
|
-
}
|
|
234
|
-
export function assetEndpointProfileStatusDeserializer(item) {
|
|
235
|
-
return {
|
|
236
|
-
errors: !item["errors"]
|
|
237
|
-
? item["errors"]
|
|
238
|
-
: assetEndpointProfileStatusErrorArrayDeserializer(item["errors"]),
|
|
239
|
-
};
|
|
240
|
-
}
|
|
241
|
-
export function assetEndpointProfileStatusErrorArrayDeserializer(result) {
|
|
242
|
-
return result.map((item) => {
|
|
243
|
-
return assetEndpointProfileStatusErrorDeserializer(item);
|
|
244
|
-
});
|
|
245
|
-
}
|
|
246
|
-
export function assetEndpointProfileStatusErrorDeserializer(item) {
|
|
247
|
-
return {
|
|
248
|
-
code: item["code"],
|
|
249
|
-
message: item["message"],
|
|
250
|
-
};
|
|
251
|
-
}
|
|
252
|
-
export function extendedLocationSerializer(item) {
|
|
253
|
-
return { type: item["type"], name: item["name"] };
|
|
254
|
-
}
|
|
255
|
-
export function extendedLocationDeserializer(item) {
|
|
256
|
-
return {
|
|
257
|
-
type: item["type"],
|
|
258
|
-
name: item["name"],
|
|
259
|
-
};
|
|
260
|
-
}
|
|
261
|
-
export function trackedResourceSerializer(item) {
|
|
262
|
-
return { tags: item["tags"], location: item["location"] };
|
|
263
|
-
}
|
|
264
|
-
export function trackedResourceDeserializer(item) {
|
|
265
|
-
return {
|
|
266
|
-
id: item["id"],
|
|
267
|
-
name: item["name"],
|
|
268
|
-
type: item["type"],
|
|
269
|
-
systemData: !item["systemData"]
|
|
270
|
-
? item["systemData"]
|
|
271
|
-
: systemDataDeserializer(item["systemData"]),
|
|
272
|
-
tags: item["tags"],
|
|
273
|
-
location: item["location"],
|
|
274
|
-
};
|
|
275
|
-
}
|
|
276
|
-
export function assetEndpointProfileUpdateSerializer(item) {
|
|
277
|
-
return {
|
|
278
|
-
tags: item["tags"],
|
|
279
|
-
properties: !item["properties"]
|
|
280
|
-
? item["properties"]
|
|
281
|
-
: assetEndpointProfileUpdatePropertiesSerializer(item["properties"]),
|
|
282
|
-
};
|
|
283
|
-
}
|
|
284
|
-
export function assetEndpointProfileUpdatePropertiesSerializer(item) {
|
|
285
|
-
return {
|
|
286
|
-
targetAddress: item["targetAddress"],
|
|
287
|
-
endpointProfileType: item["endpointProfileType"],
|
|
288
|
-
authentication: !item["authentication"]
|
|
289
|
-
? item["authentication"]
|
|
290
|
-
: authenticationSerializer(item["authentication"]),
|
|
291
|
-
additionalConfiguration: item["additionalConfiguration"],
|
|
292
|
-
};
|
|
293
|
-
}
|
|
294
|
-
export function _assetEndpointProfileListResultDeserializer(item) {
|
|
295
|
-
return {
|
|
296
|
-
value: assetEndpointProfileArrayDeserializer(item["value"]),
|
|
297
|
-
nextLink: item["nextLink"],
|
|
298
|
-
};
|
|
299
|
-
}
|
|
300
|
-
export function assetEndpointProfileArraySerializer(result) {
|
|
301
|
-
return result.map((item) => {
|
|
302
|
-
return assetEndpointProfileSerializer(item);
|
|
303
|
-
});
|
|
304
|
-
}
|
|
305
|
-
export function assetEndpointProfileArrayDeserializer(result) {
|
|
306
|
-
return result.map((item) => {
|
|
307
|
-
return assetEndpointProfileDeserializer(item);
|
|
308
|
-
});
|
|
309
|
-
}
|
|
310
|
-
export function assetSerializer(item) {
|
|
311
|
-
return {
|
|
312
|
-
tags: item["tags"],
|
|
313
|
-
location: item["location"],
|
|
314
|
-
properties: !item["properties"]
|
|
315
|
-
? item["properties"]
|
|
316
|
-
: assetPropertiesSerializer(item["properties"]),
|
|
317
|
-
extendedLocation: extendedLocationSerializer(item["extendedLocation"]),
|
|
318
|
-
};
|
|
319
|
-
}
|
|
320
|
-
export function assetDeserializer(item) {
|
|
321
|
-
return {
|
|
322
|
-
tags: item["tags"],
|
|
323
|
-
location: item["location"],
|
|
324
|
-
id: item["id"],
|
|
325
|
-
name: item["name"],
|
|
326
|
-
type: item["type"],
|
|
327
|
-
systemData: !item["systemData"]
|
|
328
|
-
? item["systemData"]
|
|
329
|
-
: systemDataDeserializer(item["systemData"]),
|
|
330
|
-
properties: !item["properties"]
|
|
331
|
-
? item["properties"]
|
|
332
|
-
: assetPropertiesDeserializer(item["properties"]),
|
|
333
|
-
extendedLocation: extendedLocationDeserializer(item["extendedLocation"]),
|
|
334
|
-
};
|
|
335
|
-
}
|
|
336
|
-
export function assetPropertiesSerializer(item) {
|
|
337
|
-
return {
|
|
338
|
-
enabled: item["enabled"],
|
|
339
|
-
externalAssetId: item["externalAssetId"],
|
|
340
|
-
displayName: item["displayName"],
|
|
341
|
-
description: item["description"],
|
|
342
|
-
assetEndpointProfileRef: item["assetEndpointProfileRef"],
|
|
343
|
-
manufacturer: item["manufacturer"],
|
|
344
|
-
manufacturerUri: item["manufacturerUri"],
|
|
345
|
-
model: item["model"],
|
|
346
|
-
productCode: item["productCode"],
|
|
347
|
-
hardwareRevision: item["hardwareRevision"],
|
|
348
|
-
softwareRevision: item["softwareRevision"],
|
|
349
|
-
documentationUri: item["documentationUri"],
|
|
350
|
-
serialNumber: item["serialNumber"],
|
|
351
|
-
attributes: item["attributes"],
|
|
352
|
-
discoveredAssetRefs: !item["discoveredAssetRefs"]
|
|
353
|
-
? item["discoveredAssetRefs"]
|
|
354
|
-
: item["discoveredAssetRefs"].map((p) => {
|
|
355
|
-
return p;
|
|
356
|
-
}),
|
|
357
|
-
defaultDatasetsConfiguration: item["defaultDatasetsConfiguration"],
|
|
358
|
-
defaultEventsConfiguration: item["defaultEventsConfiguration"],
|
|
359
|
-
defaultTopic: !item["defaultTopic"]
|
|
360
|
-
? item["defaultTopic"]
|
|
361
|
-
: topicSerializer(item["defaultTopic"]),
|
|
362
|
-
datasets: !item["datasets"] ? item["datasets"] : datasetArraySerializer(item["datasets"]),
|
|
363
|
-
events: !item["events"] ? item["events"] : eventArraySerializer(item["events"]),
|
|
364
|
-
};
|
|
365
|
-
}
|
|
366
|
-
export function assetPropertiesDeserializer(item) {
|
|
367
|
-
return {
|
|
368
|
-
uuid: item["uuid"],
|
|
369
|
-
enabled: item["enabled"],
|
|
370
|
-
externalAssetId: item["externalAssetId"],
|
|
371
|
-
displayName: item["displayName"],
|
|
372
|
-
description: item["description"],
|
|
373
|
-
assetEndpointProfileRef: item["assetEndpointProfileRef"],
|
|
374
|
-
version: item["version"],
|
|
375
|
-
manufacturer: item["manufacturer"],
|
|
376
|
-
manufacturerUri: item["manufacturerUri"],
|
|
377
|
-
model: item["model"],
|
|
378
|
-
productCode: item["productCode"],
|
|
379
|
-
hardwareRevision: item["hardwareRevision"],
|
|
380
|
-
softwareRevision: item["softwareRevision"],
|
|
381
|
-
documentationUri: item["documentationUri"],
|
|
382
|
-
serialNumber: item["serialNumber"],
|
|
383
|
-
attributes: item["attributes"],
|
|
384
|
-
discoveredAssetRefs: !item["discoveredAssetRefs"]
|
|
385
|
-
? item["discoveredAssetRefs"]
|
|
386
|
-
: item["discoveredAssetRefs"].map((p) => {
|
|
387
|
-
return p;
|
|
388
|
-
}),
|
|
389
|
-
defaultDatasetsConfiguration: item["defaultDatasetsConfiguration"],
|
|
390
|
-
defaultEventsConfiguration: item["defaultEventsConfiguration"],
|
|
391
|
-
defaultTopic: !item["defaultTopic"]
|
|
392
|
-
? item["defaultTopic"]
|
|
393
|
-
: topicDeserializer(item["defaultTopic"]),
|
|
394
|
-
datasets: !item["datasets"] ? item["datasets"] : datasetArrayDeserializer(item["datasets"]),
|
|
395
|
-
events: !item["events"] ? item["events"] : eventArrayDeserializer(item["events"]),
|
|
396
|
-
status: !item["status"] ? item["status"] : assetStatusDeserializer(item["status"]),
|
|
397
|
-
provisioningState: item["provisioningState"],
|
|
398
|
-
};
|
|
399
|
-
}
|
|
400
|
-
export function topicSerializer(item) {
|
|
401
|
-
return { path: item["path"], retain: item["retain"] };
|
|
402
|
-
}
|
|
403
|
-
export function topicDeserializer(item) {
|
|
404
|
-
return {
|
|
405
|
-
path: item["path"],
|
|
406
|
-
retain: item["retain"],
|
|
407
|
-
};
|
|
408
|
-
}
|
|
409
|
-
/** Topic retain types. */
|
|
410
|
-
export var KnownTopicRetainType;
|
|
411
|
-
(function (KnownTopicRetainType) {
|
|
412
|
-
/** Retain the messages. */
|
|
413
|
-
KnownTopicRetainType["Keep"] = "Keep";
|
|
414
|
-
/** Never retain messages. */
|
|
415
|
-
KnownTopicRetainType["Never"] = "Never";
|
|
416
|
-
})(KnownTopicRetainType || (KnownTopicRetainType = {}));
|
|
417
|
-
export function datasetArraySerializer(result) {
|
|
418
|
-
return result.map((item) => {
|
|
419
|
-
return datasetSerializer(item);
|
|
420
|
-
});
|
|
421
|
-
}
|
|
422
|
-
export function datasetArrayDeserializer(result) {
|
|
423
|
-
return result.map((item) => {
|
|
424
|
-
return datasetDeserializer(item);
|
|
425
|
-
});
|
|
426
|
-
}
|
|
427
|
-
export function datasetSerializer(item) {
|
|
428
|
-
return {
|
|
429
|
-
name: item["name"],
|
|
430
|
-
datasetConfiguration: item["datasetConfiguration"],
|
|
431
|
-
topic: !item["topic"] ? item["topic"] : topicSerializer(item["topic"]),
|
|
432
|
-
dataPoints: !item["dataPoints"]
|
|
433
|
-
? item["dataPoints"]
|
|
434
|
-
: dataPointArraySerializer(item["dataPoints"]),
|
|
218
|
+
name: item["name"],
|
|
219
|
+
datasetConfiguration: item["datasetConfiguration"],
|
|
220
|
+
topic: !item["topic"] ? item["topic"] : topicSerializer(item["topic"]),
|
|
221
|
+
dataPoints: !item["dataPoints"]
|
|
222
|
+
? item["dataPoints"]
|
|
223
|
+
: dataPointArraySerializer(item["dataPoints"]),
|
|
435
224
|
};
|
|
436
225
|
}
|
|
437
226
|
export function datasetDeserializer(item) {
|
|
@@ -574,6 +363,29 @@ export function assetStatusEventDeserializer(item) {
|
|
|
574
363
|
: messageSchemaReferenceDeserializer(item["messageSchemaReference"]),
|
|
575
364
|
};
|
|
576
365
|
}
|
|
366
|
+
/** The provisioning status of the resource. */
|
|
367
|
+
export var KnownProvisioningState;
|
|
368
|
+
(function (KnownProvisioningState) {
|
|
369
|
+
/** Resource has been created. */
|
|
370
|
+
KnownProvisioningState["Succeeded"] = "Succeeded";
|
|
371
|
+
/** Resource creation failed. */
|
|
372
|
+
KnownProvisioningState["Failed"] = "Failed";
|
|
373
|
+
/** Resource creation was canceled. */
|
|
374
|
+
KnownProvisioningState["Canceled"] = "Canceled";
|
|
375
|
+
/** Resource has been accepted by the server. */
|
|
376
|
+
KnownProvisioningState["Accepted"] = "Accepted";
|
|
377
|
+
/** Resource is deleting. */
|
|
378
|
+
KnownProvisioningState["Deleting"] = "Deleting";
|
|
379
|
+
})(KnownProvisioningState || (KnownProvisioningState = {}));
|
|
380
|
+
export function extendedLocationSerializer(item) {
|
|
381
|
+
return { type: item["type"], name: item["name"] };
|
|
382
|
+
}
|
|
383
|
+
export function extendedLocationDeserializer(item) {
|
|
384
|
+
return {
|
|
385
|
+
type: item["type"],
|
|
386
|
+
name: item["name"],
|
|
387
|
+
};
|
|
388
|
+
}
|
|
577
389
|
export function dataPointBaseSerializer(item) {
|
|
578
390
|
return {
|
|
579
391
|
name: item["name"],
|
|
@@ -604,9 +416,61 @@ export function eventBaseDeserializer(item) {
|
|
|
604
416
|
topic: !item["topic"] ? item["topic"] : topicDeserializer(item["topic"]),
|
|
605
417
|
};
|
|
606
418
|
}
|
|
607
|
-
export function
|
|
608
|
-
return {
|
|
609
|
-
|
|
419
|
+
export function trackedResourceSerializer(item) {
|
|
420
|
+
return { tags: item["tags"], location: item["location"] };
|
|
421
|
+
}
|
|
422
|
+
export function trackedResourceDeserializer(item) {
|
|
423
|
+
return {
|
|
424
|
+
id: item["id"],
|
|
425
|
+
name: item["name"],
|
|
426
|
+
type: item["type"],
|
|
427
|
+
systemData: !item["systemData"]
|
|
428
|
+
? item["systemData"]
|
|
429
|
+
: systemDataDeserializer(item["systemData"]),
|
|
430
|
+
tags: item["tags"],
|
|
431
|
+
location: item["location"],
|
|
432
|
+
};
|
|
433
|
+
}
|
|
434
|
+
export function resourceSerializer(item) {
|
|
435
|
+
return item;
|
|
436
|
+
}
|
|
437
|
+
export function resourceDeserializer(item) {
|
|
438
|
+
return {
|
|
439
|
+
id: item["id"],
|
|
440
|
+
name: item["name"],
|
|
441
|
+
type: item["type"],
|
|
442
|
+
systemData: !item["systemData"]
|
|
443
|
+
? item["systemData"]
|
|
444
|
+
: systemDataDeserializer(item["systemData"]),
|
|
445
|
+
};
|
|
446
|
+
}
|
|
447
|
+
export function systemDataDeserializer(item) {
|
|
448
|
+
return {
|
|
449
|
+
createdBy: item["createdBy"],
|
|
450
|
+
createdByType: item["createdByType"],
|
|
451
|
+
createdAt: !item["createdAt"] ? item["createdAt"] : new Date(item["createdAt"]),
|
|
452
|
+
lastModifiedBy: item["lastModifiedBy"],
|
|
453
|
+
lastModifiedByType: item["lastModifiedByType"],
|
|
454
|
+
lastModifiedAt: !item["lastModifiedAt"]
|
|
455
|
+
? item["lastModifiedAt"]
|
|
456
|
+
: new Date(item["lastModifiedAt"]),
|
|
457
|
+
};
|
|
458
|
+
}
|
|
459
|
+
/** The kind of entity that created the resource. */
|
|
460
|
+
export var KnownCreatedByType;
|
|
461
|
+
(function (KnownCreatedByType) {
|
|
462
|
+
/** The entity was created by a user. */
|
|
463
|
+
KnownCreatedByType["User"] = "User";
|
|
464
|
+
/** The entity was created by an application. */
|
|
465
|
+
KnownCreatedByType["Application"] = "Application";
|
|
466
|
+
/** The entity was created by a managed identity. */
|
|
467
|
+
KnownCreatedByType["ManagedIdentity"] = "ManagedIdentity";
|
|
468
|
+
/** The entity was created by a key. */
|
|
469
|
+
KnownCreatedByType["Key"] = "Key";
|
|
470
|
+
})(KnownCreatedByType || (KnownCreatedByType = {}));
|
|
471
|
+
export function assetUpdateSerializer(item) {
|
|
472
|
+
return {
|
|
473
|
+
tags: item["tags"],
|
|
610
474
|
properties: !item["properties"]
|
|
611
475
|
? item["properties"]
|
|
612
476
|
: assetUpdatePropertiesSerializer(item["properties"]),
|
|
@@ -651,74 +515,2315 @@ export function assetArrayDeserializer(result) {
|
|
|
651
515
|
return assetDeserializer(item);
|
|
652
516
|
});
|
|
653
517
|
}
|
|
654
|
-
export function
|
|
518
|
+
export function assetEndpointProfileSerializer(item) {
|
|
519
|
+
return {
|
|
520
|
+
tags: item["tags"],
|
|
521
|
+
location: item["location"],
|
|
522
|
+
properties: !item["properties"]
|
|
523
|
+
? item["properties"]
|
|
524
|
+
: assetEndpointProfilePropertiesSerializer(item["properties"]),
|
|
525
|
+
extendedLocation: extendedLocationSerializer(item["extendedLocation"]),
|
|
526
|
+
};
|
|
527
|
+
}
|
|
528
|
+
export function assetEndpointProfileDeserializer(item) {
|
|
655
529
|
return {
|
|
530
|
+
tags: item["tags"],
|
|
531
|
+
location: item["location"],
|
|
656
532
|
id: item["id"],
|
|
657
533
|
name: item["name"],
|
|
658
|
-
|
|
659
|
-
|
|
660
|
-
|
|
661
|
-
|
|
662
|
-
|
|
663
|
-
? item["
|
|
664
|
-
:
|
|
665
|
-
|
|
666
|
-
resourceId: item["resourceId"],
|
|
534
|
+
type: item["type"],
|
|
535
|
+
systemData: !item["systemData"]
|
|
536
|
+
? item["systemData"]
|
|
537
|
+
: systemDataDeserializer(item["systemData"]),
|
|
538
|
+
properties: !item["properties"]
|
|
539
|
+
? item["properties"]
|
|
540
|
+
: assetEndpointProfilePropertiesDeserializer(item["properties"]),
|
|
541
|
+
extendedLocation: extendedLocationDeserializer(item["extendedLocation"]),
|
|
667
542
|
};
|
|
668
543
|
}
|
|
669
|
-
export function
|
|
544
|
+
export function assetEndpointProfilePropertiesSerializer(item) {
|
|
545
|
+
return {
|
|
546
|
+
targetAddress: item["targetAddress"],
|
|
547
|
+
endpointProfileType: item["endpointProfileType"],
|
|
548
|
+
authentication: !item["authentication"]
|
|
549
|
+
? item["authentication"]
|
|
550
|
+
: authenticationSerializer(item["authentication"]),
|
|
551
|
+
additionalConfiguration: item["additionalConfiguration"],
|
|
552
|
+
discoveredAssetEndpointProfileRef: item["discoveredAssetEndpointProfileRef"],
|
|
553
|
+
};
|
|
554
|
+
}
|
|
555
|
+
export function assetEndpointProfilePropertiesDeserializer(item) {
|
|
556
|
+
return {
|
|
557
|
+
uuid: item["uuid"],
|
|
558
|
+
targetAddress: item["targetAddress"],
|
|
559
|
+
endpointProfileType: item["endpointProfileType"],
|
|
560
|
+
authentication: !item["authentication"]
|
|
561
|
+
? item["authentication"]
|
|
562
|
+
: authenticationDeserializer(item["authentication"]),
|
|
563
|
+
additionalConfiguration: item["additionalConfiguration"],
|
|
564
|
+
discoveredAssetEndpointProfileRef: item["discoveredAssetEndpointProfileRef"],
|
|
565
|
+
status: !item["status"]
|
|
566
|
+
? item["status"]
|
|
567
|
+
: assetEndpointProfileStatusDeserializer(item["status"]),
|
|
568
|
+
provisioningState: item["provisioningState"],
|
|
569
|
+
};
|
|
570
|
+
}
|
|
571
|
+
export function authenticationSerializer(item) {
|
|
572
|
+
return {
|
|
573
|
+
method: item["method"],
|
|
574
|
+
usernamePasswordCredentials: !item["usernamePasswordCredentials"]
|
|
575
|
+
? item["usernamePasswordCredentials"]
|
|
576
|
+
: usernamePasswordCredentialsSerializer(item["usernamePasswordCredentials"]),
|
|
577
|
+
x509Credentials: !item["x509Credentials"]
|
|
578
|
+
? item["x509Credentials"]
|
|
579
|
+
: x509CredentialsSerializer(item["x509Credentials"]),
|
|
580
|
+
};
|
|
581
|
+
}
|
|
582
|
+
export function authenticationDeserializer(item) {
|
|
583
|
+
return {
|
|
584
|
+
method: item["method"],
|
|
585
|
+
usernamePasswordCredentials: !item["usernamePasswordCredentials"]
|
|
586
|
+
? item["usernamePasswordCredentials"]
|
|
587
|
+
: usernamePasswordCredentialsDeserializer(item["usernamePasswordCredentials"]),
|
|
588
|
+
x509Credentials: !item["x509Credentials"]
|
|
589
|
+
? item["x509Credentials"]
|
|
590
|
+
: x509CredentialsDeserializer(item["x509Credentials"]),
|
|
591
|
+
};
|
|
592
|
+
}
|
|
593
|
+
/** The method to authenticate the user of the client at the server. */
|
|
594
|
+
export var KnownAuthenticationMethod;
|
|
595
|
+
(function (KnownAuthenticationMethod) {
|
|
596
|
+
/** The user authentication method is anonymous. */
|
|
597
|
+
KnownAuthenticationMethod["Anonymous"] = "Anonymous";
|
|
598
|
+
/** The user authentication method is an x509 certificate. */
|
|
599
|
+
KnownAuthenticationMethod["Certificate"] = "Certificate";
|
|
600
|
+
/** The user authentication method is a username and password. */
|
|
601
|
+
KnownAuthenticationMethod["UsernamePassword"] = "UsernamePassword";
|
|
602
|
+
})(KnownAuthenticationMethod || (KnownAuthenticationMethod = {}));
|
|
603
|
+
export function usernamePasswordCredentialsSerializer(item) {
|
|
604
|
+
return {
|
|
605
|
+
usernameSecretName: item["usernameSecretName"],
|
|
606
|
+
passwordSecretName: item["passwordSecretName"],
|
|
607
|
+
};
|
|
608
|
+
}
|
|
609
|
+
export function usernamePasswordCredentialsDeserializer(item) {
|
|
610
|
+
return {
|
|
611
|
+
usernameSecretName: item["usernameSecretName"],
|
|
612
|
+
passwordSecretName: item["passwordSecretName"],
|
|
613
|
+
};
|
|
614
|
+
}
|
|
615
|
+
export function x509CredentialsSerializer(item) {
|
|
616
|
+
return { certificateSecretName: item["certificateSecretName"] };
|
|
617
|
+
}
|
|
618
|
+
export function x509CredentialsDeserializer(item) {
|
|
619
|
+
return {
|
|
620
|
+
certificateSecretName: item["certificateSecretName"],
|
|
621
|
+
};
|
|
622
|
+
}
|
|
623
|
+
export function assetEndpointProfileStatusDeserializer(item) {
|
|
624
|
+
return {
|
|
625
|
+
errors: !item["errors"]
|
|
626
|
+
? item["errors"]
|
|
627
|
+
: assetEndpointProfileStatusErrorArrayDeserializer(item["errors"]),
|
|
628
|
+
};
|
|
629
|
+
}
|
|
630
|
+
export function assetEndpointProfileStatusErrorArrayDeserializer(result) {
|
|
670
631
|
return result.map((item) => {
|
|
671
|
-
return
|
|
632
|
+
return assetEndpointProfileStatusErrorDeserializer(item);
|
|
672
633
|
});
|
|
673
634
|
}
|
|
674
|
-
export function
|
|
635
|
+
export function assetEndpointProfileStatusErrorDeserializer(item) {
|
|
675
636
|
return {
|
|
676
|
-
|
|
637
|
+
code: item["code"],
|
|
638
|
+
message: item["message"],
|
|
639
|
+
};
|
|
640
|
+
}
|
|
641
|
+
export function assetEndpointProfileUpdateSerializer(item) {
|
|
642
|
+
return {
|
|
643
|
+
tags: item["tags"],
|
|
644
|
+
properties: !item["properties"]
|
|
645
|
+
? item["properties"]
|
|
646
|
+
: assetEndpointProfileUpdatePropertiesSerializer(item["properties"]),
|
|
647
|
+
};
|
|
648
|
+
}
|
|
649
|
+
export function assetEndpointProfileUpdatePropertiesSerializer(item) {
|
|
650
|
+
return {
|
|
651
|
+
targetAddress: item["targetAddress"],
|
|
652
|
+
endpointProfileType: item["endpointProfileType"],
|
|
653
|
+
authentication: !item["authentication"]
|
|
654
|
+
? item["authentication"]
|
|
655
|
+
: authenticationSerializer(item["authentication"]),
|
|
656
|
+
additionalConfiguration: item["additionalConfiguration"],
|
|
657
|
+
};
|
|
658
|
+
}
|
|
659
|
+
export function _assetEndpointProfileListResultDeserializer(item) {
|
|
660
|
+
return {
|
|
661
|
+
value: assetEndpointProfileArrayDeserializer(item["value"]),
|
|
677
662
|
nextLink: item["nextLink"],
|
|
678
663
|
};
|
|
679
664
|
}
|
|
680
|
-
export function
|
|
665
|
+
export function assetEndpointProfileArraySerializer(result) {
|
|
681
666
|
return result.map((item) => {
|
|
682
|
-
return
|
|
667
|
+
return assetEndpointProfileSerializer(item);
|
|
683
668
|
});
|
|
684
669
|
}
|
|
685
|
-
export function
|
|
670
|
+
export function assetEndpointProfileArrayDeserializer(result) {
|
|
671
|
+
return result.map((item) => {
|
|
672
|
+
return assetEndpointProfileDeserializer(item);
|
|
673
|
+
});
|
|
674
|
+
}
|
|
675
|
+
export function billingContainerDeserializer(item) {
|
|
686
676
|
return {
|
|
677
|
+
id: item["id"],
|
|
687
678
|
name: item["name"],
|
|
688
|
-
|
|
689
|
-
|
|
690
|
-
|
|
691
|
-
|
|
679
|
+
type: item["type"],
|
|
680
|
+
systemData: !item["systemData"]
|
|
681
|
+
? item["systemData"]
|
|
682
|
+
: systemDataDeserializer(item["systemData"]),
|
|
683
|
+
properties: !item["properties"]
|
|
684
|
+
? item["properties"]
|
|
685
|
+
: billingContainerPropertiesDeserializer(item["properties"]),
|
|
686
|
+
etag: item["etag"],
|
|
692
687
|
};
|
|
693
688
|
}
|
|
694
|
-
export function
|
|
689
|
+
export function billingContainerPropertiesDeserializer(item) {
|
|
695
690
|
return {
|
|
696
|
-
|
|
697
|
-
resource: item["resource"],
|
|
698
|
-
operation: item["operation"],
|
|
699
|
-
description: item["description"],
|
|
691
|
+
provisioningState: item["provisioningState"],
|
|
700
692
|
};
|
|
701
693
|
}
|
|
702
|
-
|
|
703
|
-
|
|
704
|
-
|
|
705
|
-
|
|
706
|
-
|
|
707
|
-
|
|
708
|
-
|
|
709
|
-
|
|
710
|
-
|
|
711
|
-
|
|
712
|
-
|
|
713
|
-
|
|
714
|
-
|
|
715
|
-
|
|
716
|
-
|
|
717
|
-
|
|
694
|
+
export function proxyResourceSerializer(item) {
|
|
695
|
+
return item;
|
|
696
|
+
}
|
|
697
|
+
export function proxyResourceDeserializer(item) {
|
|
698
|
+
return {
|
|
699
|
+
id: item["id"],
|
|
700
|
+
name: item["name"],
|
|
701
|
+
type: item["type"],
|
|
702
|
+
systemData: !item["systemData"]
|
|
703
|
+
? item["systemData"]
|
|
704
|
+
: systemDataDeserializer(item["systemData"]),
|
|
705
|
+
};
|
|
706
|
+
}
|
|
707
|
+
export function _billingContainerListResultDeserializer(item) {
|
|
708
|
+
return {
|
|
709
|
+
value: billingContainerArrayDeserializer(item["value"]),
|
|
710
|
+
nextLink: item["nextLink"],
|
|
711
|
+
};
|
|
712
|
+
}
|
|
713
|
+
export function billingContainerArrayDeserializer(result) {
|
|
714
|
+
return result.map((item) => {
|
|
715
|
+
return billingContainerDeserializer(item);
|
|
716
|
+
});
|
|
717
|
+
}
|
|
718
|
+
export function namespaceSerializer(item) {
|
|
719
|
+
return {
|
|
720
|
+
tags: item["tags"],
|
|
721
|
+
location: item["location"],
|
|
722
|
+
properties: !item["properties"]
|
|
723
|
+
? item["properties"]
|
|
724
|
+
: namespacePropertiesSerializer(item["properties"]),
|
|
725
|
+
identity: !item["identity"]
|
|
726
|
+
? item["identity"]
|
|
727
|
+
: systemAssignedServiceIdentitySerializer(item["identity"]),
|
|
728
|
+
};
|
|
729
|
+
}
|
|
730
|
+
export function namespaceDeserializer(item) {
|
|
731
|
+
return {
|
|
732
|
+
tags: item["tags"],
|
|
733
|
+
location: item["location"],
|
|
734
|
+
id: item["id"],
|
|
735
|
+
name: item["name"],
|
|
736
|
+
type: item["type"],
|
|
737
|
+
systemData: !item["systemData"]
|
|
738
|
+
? item["systemData"]
|
|
739
|
+
: systemDataDeserializer(item["systemData"]),
|
|
740
|
+
properties: !item["properties"]
|
|
741
|
+
? item["properties"]
|
|
742
|
+
: namespacePropertiesDeserializer(item["properties"]),
|
|
743
|
+
identity: !item["identity"]
|
|
744
|
+
? item["identity"]
|
|
745
|
+
: systemAssignedServiceIdentityDeserializer(item["identity"]),
|
|
746
|
+
};
|
|
747
|
+
}
|
|
748
|
+
export function namespacePropertiesSerializer(item) {
|
|
749
|
+
return {
|
|
750
|
+
messaging: !item["messaging"] ? item["messaging"] : messagingSerializer(item["messaging"]),
|
|
751
|
+
};
|
|
752
|
+
}
|
|
753
|
+
export function namespacePropertiesDeserializer(item) {
|
|
754
|
+
return {
|
|
755
|
+
uuid: item["uuid"],
|
|
756
|
+
messaging: !item["messaging"] ? item["messaging"] : messagingDeserializer(item["messaging"]),
|
|
757
|
+
provisioningState: item["provisioningState"],
|
|
758
|
+
};
|
|
759
|
+
}
|
|
760
|
+
export function messagingSerializer(item) {
|
|
761
|
+
return {
|
|
762
|
+
endpoints: !item["endpoints"]
|
|
763
|
+
? item["endpoints"]
|
|
764
|
+
: messagingEndpointRecordSerializer(item["endpoints"]),
|
|
765
|
+
};
|
|
766
|
+
}
|
|
767
|
+
export function messagingDeserializer(item) {
|
|
768
|
+
return {
|
|
769
|
+
endpoints: !item["endpoints"]
|
|
770
|
+
? item["endpoints"]
|
|
771
|
+
: messagingEndpointRecordDeserializer(item["endpoints"]),
|
|
772
|
+
};
|
|
773
|
+
}
|
|
774
|
+
export function messagingEndpointRecordSerializer(item) {
|
|
775
|
+
const result = {};
|
|
776
|
+
Object.keys(item).map((key) => {
|
|
777
|
+
result[key] = !item[key] ? item[key] : messagingEndpointSerializer(item[key]);
|
|
778
|
+
});
|
|
779
|
+
return result;
|
|
780
|
+
}
|
|
781
|
+
export function messagingEndpointRecordDeserializer(item) {
|
|
782
|
+
const result = {};
|
|
783
|
+
Object.keys(item).map((key) => {
|
|
784
|
+
result[key] = !item[key] ? item[key] : messagingEndpointDeserializer(item[key]);
|
|
785
|
+
});
|
|
786
|
+
return result;
|
|
787
|
+
}
|
|
788
|
+
export function messagingEndpointSerializer(item) {
|
|
789
|
+
return {
|
|
790
|
+
endpointType: item["endpointType"],
|
|
791
|
+
address: item["address"],
|
|
792
|
+
resourceId: item["resourceId"],
|
|
793
|
+
};
|
|
794
|
+
}
|
|
795
|
+
export function messagingEndpointDeserializer(item) {
|
|
796
|
+
return {
|
|
797
|
+
endpointType: item["endpointType"],
|
|
798
|
+
address: item["address"],
|
|
799
|
+
resourceId: item["resourceId"],
|
|
800
|
+
};
|
|
801
|
+
}
|
|
802
|
+
export function systemAssignedServiceIdentitySerializer(item) {
|
|
803
|
+
return { type: item["type"] };
|
|
804
|
+
}
|
|
805
|
+
export function systemAssignedServiceIdentityDeserializer(item) {
|
|
806
|
+
return {
|
|
807
|
+
principalId: item["principalId"],
|
|
808
|
+
tenantId: item["tenantId"],
|
|
809
|
+
type: item["type"],
|
|
810
|
+
};
|
|
811
|
+
}
|
|
812
|
+
/** Type of managed service identity (either system assigned, or none). */
|
|
813
|
+
export var KnownSystemAssignedServiceIdentityType;
|
|
814
|
+
(function (KnownSystemAssignedServiceIdentityType) {
|
|
815
|
+
/** No managed system identity. */
|
|
816
|
+
KnownSystemAssignedServiceIdentityType["None"] = "None";
|
|
817
|
+
/** System assigned managed system identity. */
|
|
818
|
+
KnownSystemAssignedServiceIdentityType["SystemAssigned"] = "SystemAssigned";
|
|
819
|
+
})(KnownSystemAssignedServiceIdentityType || (KnownSystemAssignedServiceIdentityType = {}));
|
|
820
|
+
export function namespaceUpdateSerializer(item) {
|
|
821
|
+
return {
|
|
822
|
+
identity: !item["identity"]
|
|
823
|
+
? item["identity"]
|
|
824
|
+
: systemAssignedServiceIdentitySerializer(item["identity"]),
|
|
825
|
+
tags: item["tags"],
|
|
826
|
+
properties: !item["properties"]
|
|
827
|
+
? item["properties"]
|
|
828
|
+
: namespaceUpdatePropertiesSerializer(item["properties"]),
|
|
829
|
+
};
|
|
830
|
+
}
|
|
831
|
+
export function namespaceUpdatePropertiesSerializer(item) {
|
|
832
|
+
return {
|
|
833
|
+
messaging: !item["messaging"] ? item["messaging"] : messagingSerializer(item["messaging"]),
|
|
834
|
+
};
|
|
835
|
+
}
|
|
836
|
+
export function _namespaceListResultDeserializer(item) {
|
|
837
|
+
return {
|
|
838
|
+
value: namespaceArrayDeserializer(item["value"]),
|
|
839
|
+
nextLink: item["nextLink"],
|
|
840
|
+
};
|
|
841
|
+
}
|
|
842
|
+
export function namespaceArraySerializer(result) {
|
|
843
|
+
return result.map((item) => {
|
|
844
|
+
return namespaceSerializer(item);
|
|
845
|
+
});
|
|
846
|
+
}
|
|
847
|
+
export function namespaceArrayDeserializer(result) {
|
|
848
|
+
return result.map((item) => {
|
|
849
|
+
return namespaceDeserializer(item);
|
|
850
|
+
});
|
|
851
|
+
}
|
|
852
|
+
export function namespaceMigrateRequestSerializer(item) {
|
|
853
|
+
return {
|
|
854
|
+
scope: item["scope"],
|
|
855
|
+
resourceIds: !item["resourceIds"]
|
|
856
|
+
? item["resourceIds"]
|
|
857
|
+
: item["resourceIds"].map((p) => {
|
|
858
|
+
return p;
|
|
859
|
+
}),
|
|
860
|
+
};
|
|
861
|
+
}
|
|
862
|
+
/** Scope of the migrate resources operation. */
|
|
863
|
+
export var KnownScope;
|
|
864
|
+
(function (KnownScope) {
|
|
865
|
+
/** Scoping the migration to resourceIds provided */
|
|
866
|
+
KnownScope["Resources"] = "Resources";
|
|
867
|
+
})(KnownScope || (KnownScope = {}));
|
|
868
|
+
export function errorDetailsArrayDeserializer(result) {
|
|
869
|
+
return result.map((item) => {
|
|
870
|
+
return errorDetailsDeserializer(item);
|
|
871
|
+
});
|
|
872
|
+
}
|
|
873
|
+
export function errorDetailsDeserializer(item) {
|
|
874
|
+
return {
|
|
875
|
+
code: item["code"],
|
|
876
|
+
message: item["message"],
|
|
877
|
+
info: item["info"],
|
|
878
|
+
correlationId: item["correlationId"],
|
|
879
|
+
};
|
|
880
|
+
}
|
|
881
|
+
export function namespaceAssetSerializer(item) {
|
|
882
|
+
return {
|
|
883
|
+
tags: item["tags"],
|
|
884
|
+
location: item["location"],
|
|
885
|
+
properties: !item["properties"]
|
|
886
|
+
? item["properties"]
|
|
887
|
+
: namespaceAssetPropertiesSerializer(item["properties"]),
|
|
888
|
+
extendedLocation: extendedLocationSerializer(item["extendedLocation"]),
|
|
889
|
+
};
|
|
890
|
+
}
|
|
891
|
+
export function namespaceAssetDeserializer(item) {
|
|
892
|
+
return {
|
|
893
|
+
tags: item["tags"],
|
|
894
|
+
location: item["location"],
|
|
895
|
+
id: item["id"],
|
|
896
|
+
name: item["name"],
|
|
897
|
+
type: item["type"],
|
|
898
|
+
systemData: !item["systemData"]
|
|
899
|
+
? item["systemData"]
|
|
900
|
+
: systemDataDeserializer(item["systemData"]),
|
|
901
|
+
properties: !item["properties"]
|
|
902
|
+
? item["properties"]
|
|
903
|
+
: namespaceAssetPropertiesDeserializer(item["properties"]),
|
|
904
|
+
extendedLocation: extendedLocationDeserializer(item["extendedLocation"]),
|
|
905
|
+
};
|
|
906
|
+
}
|
|
907
|
+
export function namespaceAssetPropertiesSerializer(item) {
|
|
908
|
+
return {
|
|
909
|
+
enabled: item["enabled"],
|
|
910
|
+
externalAssetId: item["externalAssetId"],
|
|
911
|
+
displayName: item["displayName"],
|
|
912
|
+
description: item["description"],
|
|
913
|
+
deviceRef: deviceRefSerializer(item["deviceRef"]),
|
|
914
|
+
assetTypeRefs: !item["assetTypeRefs"]
|
|
915
|
+
? item["assetTypeRefs"]
|
|
916
|
+
: item["assetTypeRefs"].map((p) => {
|
|
917
|
+
return p;
|
|
918
|
+
}),
|
|
919
|
+
manufacturer: item["manufacturer"],
|
|
920
|
+
manufacturerUri: item["manufacturerUri"],
|
|
921
|
+
model: item["model"],
|
|
922
|
+
productCode: item["productCode"],
|
|
923
|
+
hardwareRevision: item["hardwareRevision"],
|
|
924
|
+
softwareRevision: item["softwareRevision"],
|
|
925
|
+
documentationUri: item["documentationUri"],
|
|
926
|
+
serialNumber: item["serialNumber"],
|
|
927
|
+
attributes: item["attributes"],
|
|
928
|
+
discoveredAssetRefs: !item["discoveredAssetRefs"]
|
|
929
|
+
? item["discoveredAssetRefs"]
|
|
930
|
+
: item["discoveredAssetRefs"].map((p) => {
|
|
931
|
+
return p;
|
|
932
|
+
}),
|
|
933
|
+
defaultDatasetsConfiguration: item["defaultDatasetsConfiguration"],
|
|
934
|
+
defaultEventsConfiguration: item["defaultEventsConfiguration"],
|
|
935
|
+
defaultStreamsConfiguration: item["defaultStreamsConfiguration"],
|
|
936
|
+
defaultManagementGroupsConfiguration: item["defaultManagementGroupsConfiguration"],
|
|
937
|
+
defaultDatasetsDestinations: !item["defaultDatasetsDestinations"]
|
|
938
|
+
? item["defaultDatasetsDestinations"]
|
|
939
|
+
: datasetDestinationUnionArraySerializer(item["defaultDatasetsDestinations"]),
|
|
940
|
+
defaultEventsDestinations: !item["defaultEventsDestinations"]
|
|
941
|
+
? item["defaultEventsDestinations"]
|
|
942
|
+
: eventDestinationUnionArraySerializer(item["defaultEventsDestinations"]),
|
|
943
|
+
defaultStreamsDestinations: !item["defaultStreamsDestinations"]
|
|
944
|
+
? item["defaultStreamsDestinations"]
|
|
945
|
+
: streamDestinationUnionArraySerializer(item["defaultStreamsDestinations"]),
|
|
946
|
+
datasets: !item["datasets"]
|
|
947
|
+
? item["datasets"]
|
|
948
|
+
: namespaceDatasetArraySerializer(item["datasets"]),
|
|
949
|
+
eventGroups: !item["eventGroups"]
|
|
950
|
+
? item["eventGroups"]
|
|
951
|
+
: namespaceEventGroupArraySerializer(item["eventGroups"]),
|
|
952
|
+
streams: !item["streams"] ? item["streams"] : namespaceStreamArraySerializer(item["streams"]),
|
|
953
|
+
managementGroups: !item["managementGroups"]
|
|
954
|
+
? item["managementGroups"]
|
|
955
|
+
: managementGroupArraySerializer(item["managementGroups"]),
|
|
956
|
+
};
|
|
957
|
+
}
|
|
958
|
+
export function namespaceAssetPropertiesDeserializer(item) {
|
|
959
|
+
return {
|
|
960
|
+
uuid: item["uuid"],
|
|
961
|
+
enabled: item["enabled"],
|
|
962
|
+
externalAssetId: item["externalAssetId"],
|
|
963
|
+
displayName: item["displayName"],
|
|
964
|
+
description: item["description"],
|
|
965
|
+
deviceRef: deviceRefDeserializer(item["deviceRef"]),
|
|
966
|
+
assetTypeRefs: !item["assetTypeRefs"]
|
|
967
|
+
? item["assetTypeRefs"]
|
|
968
|
+
: item["assetTypeRefs"].map((p) => {
|
|
969
|
+
return p;
|
|
970
|
+
}),
|
|
971
|
+
version: item["version"],
|
|
972
|
+
lastTransitionTime: !item["lastTransitionTime"]
|
|
973
|
+
? item["lastTransitionTime"]
|
|
974
|
+
: new Date(item["lastTransitionTime"]),
|
|
975
|
+
manufacturer: item["manufacturer"],
|
|
976
|
+
manufacturerUri: item["manufacturerUri"],
|
|
977
|
+
model: item["model"],
|
|
978
|
+
productCode: item["productCode"],
|
|
979
|
+
hardwareRevision: item["hardwareRevision"],
|
|
980
|
+
softwareRevision: item["softwareRevision"],
|
|
981
|
+
documentationUri: item["documentationUri"],
|
|
982
|
+
serialNumber: item["serialNumber"],
|
|
983
|
+
attributes: item["attributes"],
|
|
984
|
+
discoveredAssetRefs: !item["discoveredAssetRefs"]
|
|
985
|
+
? item["discoveredAssetRefs"]
|
|
986
|
+
: item["discoveredAssetRefs"].map((p) => {
|
|
987
|
+
return p;
|
|
988
|
+
}),
|
|
989
|
+
defaultDatasetsConfiguration: item["defaultDatasetsConfiguration"],
|
|
990
|
+
defaultEventsConfiguration: item["defaultEventsConfiguration"],
|
|
991
|
+
defaultStreamsConfiguration: item["defaultStreamsConfiguration"],
|
|
992
|
+
defaultManagementGroupsConfiguration: item["defaultManagementGroupsConfiguration"],
|
|
993
|
+
defaultDatasetsDestinations: !item["defaultDatasetsDestinations"]
|
|
994
|
+
? item["defaultDatasetsDestinations"]
|
|
995
|
+
: datasetDestinationUnionArrayDeserializer(item["defaultDatasetsDestinations"]),
|
|
996
|
+
defaultEventsDestinations: !item["defaultEventsDestinations"]
|
|
997
|
+
? item["defaultEventsDestinations"]
|
|
998
|
+
: eventDestinationUnionArrayDeserializer(item["defaultEventsDestinations"]),
|
|
999
|
+
defaultStreamsDestinations: !item["defaultStreamsDestinations"]
|
|
1000
|
+
? item["defaultStreamsDestinations"]
|
|
1001
|
+
: streamDestinationUnionArrayDeserializer(item["defaultStreamsDestinations"]),
|
|
1002
|
+
datasets: !item["datasets"]
|
|
1003
|
+
? item["datasets"]
|
|
1004
|
+
: namespaceDatasetArrayDeserializer(item["datasets"]),
|
|
1005
|
+
eventGroups: !item["eventGroups"]
|
|
1006
|
+
? item["eventGroups"]
|
|
1007
|
+
: namespaceEventGroupArrayDeserializer(item["eventGroups"]),
|
|
1008
|
+
streams: !item["streams"] ? item["streams"] : namespaceStreamArrayDeserializer(item["streams"]),
|
|
1009
|
+
managementGroups: !item["managementGroups"]
|
|
1010
|
+
? item["managementGroups"]
|
|
1011
|
+
: managementGroupArrayDeserializer(item["managementGroups"]),
|
|
1012
|
+
status: !item["status"] ? item["status"] : namespaceAssetStatusDeserializer(item["status"]),
|
|
1013
|
+
provisioningState: item["provisioningState"],
|
|
1014
|
+
};
|
|
1015
|
+
}
|
|
1016
|
+
export function deviceRefSerializer(item) {
|
|
1017
|
+
return { deviceName: item["deviceName"], endpointName: item["endpointName"] };
|
|
1018
|
+
}
|
|
1019
|
+
export function deviceRefDeserializer(item) {
|
|
1020
|
+
return {
|
|
1021
|
+
deviceName: item["deviceName"],
|
|
1022
|
+
endpointName: item["endpointName"],
|
|
1023
|
+
};
|
|
1024
|
+
}
|
|
1025
|
+
export function datasetDestinationUnionArraySerializer(result) {
|
|
1026
|
+
return result.map((item) => {
|
|
1027
|
+
return datasetDestinationUnionSerializer(item);
|
|
1028
|
+
});
|
|
1029
|
+
}
|
|
1030
|
+
export function datasetDestinationUnionArrayDeserializer(result) {
|
|
1031
|
+
return result.map((item) => {
|
|
1032
|
+
return datasetDestinationUnionDeserializer(item);
|
|
1033
|
+
});
|
|
1034
|
+
}
|
|
1035
|
+
export function datasetDestinationSerializer(item) {
|
|
1036
|
+
return { target: item["target"] };
|
|
1037
|
+
}
|
|
1038
|
+
export function datasetDestinationDeserializer(item) {
|
|
1039
|
+
return {
|
|
1040
|
+
target: item["target"],
|
|
1041
|
+
};
|
|
1042
|
+
}
|
|
1043
|
+
export function datasetDestinationUnionSerializer(item) {
|
|
1044
|
+
switch (item.target) {
|
|
1045
|
+
case "Mqtt":
|
|
1046
|
+
return datasetMqttDestinationSerializer(item);
|
|
1047
|
+
case "BrokerStateStore":
|
|
1048
|
+
return datasetBrokerStateStoreDestinationSerializer(item);
|
|
1049
|
+
case "Storage":
|
|
1050
|
+
return datasetStorageDestinationSerializer(item);
|
|
1051
|
+
default:
|
|
1052
|
+
return datasetDestinationSerializer(item);
|
|
1053
|
+
}
|
|
1054
|
+
}
|
|
1055
|
+
export function datasetDestinationUnionDeserializer(item) {
|
|
1056
|
+
switch (item.target) {
|
|
1057
|
+
case "Mqtt":
|
|
1058
|
+
return datasetMqttDestinationDeserializer(item);
|
|
1059
|
+
case "BrokerStateStore":
|
|
1060
|
+
return datasetBrokerStateStoreDestinationDeserializer(item);
|
|
1061
|
+
case "Storage":
|
|
1062
|
+
return datasetStorageDestinationDeserializer(item);
|
|
1063
|
+
default:
|
|
1064
|
+
return datasetDestinationDeserializer(item);
|
|
1065
|
+
}
|
|
1066
|
+
}
|
|
1067
|
+
/** The set of supported dataset destinations for an asset. */
|
|
1068
|
+
export var KnownDatasetDestinationTarget;
|
|
1069
|
+
(function (KnownDatasetDestinationTarget) {
|
|
1070
|
+
/** MQTT target. */
|
|
1071
|
+
KnownDatasetDestinationTarget["Mqtt"] = "Mqtt";
|
|
1072
|
+
/** Broker State Store target. */
|
|
1073
|
+
KnownDatasetDestinationTarget["BrokerStateStore"] = "BrokerStateStore";
|
|
1074
|
+
/** Storage target. */
|
|
1075
|
+
KnownDatasetDestinationTarget["Storage"] = "Storage";
|
|
1076
|
+
})(KnownDatasetDestinationTarget || (KnownDatasetDestinationTarget = {}));
|
|
1077
|
+
export function datasetMqttDestinationSerializer(item) {
|
|
1078
|
+
return {
|
|
1079
|
+
target: item["target"],
|
|
1080
|
+
configuration: mqttDestinationConfigurationSerializer(item["configuration"]),
|
|
1081
|
+
};
|
|
1082
|
+
}
|
|
1083
|
+
export function datasetMqttDestinationDeserializer(item) {
|
|
1084
|
+
return {
|
|
1085
|
+
target: item["target"],
|
|
1086
|
+
configuration: mqttDestinationConfigurationDeserializer(item["configuration"]),
|
|
1087
|
+
};
|
|
1088
|
+
}
|
|
1089
|
+
export function mqttDestinationConfigurationSerializer(item) {
|
|
1090
|
+
return {
|
|
1091
|
+
topic: item["topic"],
|
|
1092
|
+
retain: item["retain"],
|
|
1093
|
+
qos: item["qos"],
|
|
1094
|
+
ttl: item["ttl"],
|
|
1095
|
+
};
|
|
1096
|
+
}
|
|
1097
|
+
export function mqttDestinationConfigurationDeserializer(item) {
|
|
1098
|
+
return {
|
|
1099
|
+
topic: item["topic"],
|
|
1100
|
+
retain: item["retain"],
|
|
1101
|
+
qos: item["qos"],
|
|
1102
|
+
ttl: item["ttl"],
|
|
1103
|
+
};
|
|
1104
|
+
}
|
|
1105
|
+
/** The set of supported QoS types for a MQTT destination. */
|
|
1106
|
+
export var KnownMqttDestinationQos;
|
|
1107
|
+
(function (KnownMqttDestinationQos) {
|
|
1108
|
+
/** QoS 0. */
|
|
1109
|
+
KnownMqttDestinationQos["Qos0"] = "Qos0";
|
|
1110
|
+
/** QoS 1. */
|
|
1111
|
+
KnownMqttDestinationQos["Qos1"] = "Qos1";
|
|
1112
|
+
})(KnownMqttDestinationQos || (KnownMqttDestinationQos = {}));
|
|
1113
|
+
export function datasetBrokerStateStoreDestinationSerializer(item) {
|
|
1114
|
+
return {
|
|
1115
|
+
target: item["target"],
|
|
1116
|
+
configuration: brokerStateStoreDestinationConfigurationSerializer(item["configuration"]),
|
|
1117
|
+
};
|
|
1118
|
+
}
|
|
1119
|
+
export function datasetBrokerStateStoreDestinationDeserializer(item) {
|
|
1120
|
+
return {
|
|
1121
|
+
target: item["target"],
|
|
1122
|
+
configuration: brokerStateStoreDestinationConfigurationDeserializer(item["configuration"]),
|
|
1123
|
+
};
|
|
1124
|
+
}
|
|
1125
|
+
export function brokerStateStoreDestinationConfigurationSerializer(item) {
|
|
1126
|
+
return { key: item["key"] };
|
|
1127
|
+
}
|
|
1128
|
+
export function brokerStateStoreDestinationConfigurationDeserializer(item) {
|
|
1129
|
+
return {
|
|
1130
|
+
key: item["key"],
|
|
1131
|
+
};
|
|
1132
|
+
}
|
|
1133
|
+
export function datasetStorageDestinationSerializer(item) {
|
|
1134
|
+
return {
|
|
1135
|
+
target: item["target"],
|
|
1136
|
+
configuration: storageDestinationConfigurationSerializer(item["configuration"]),
|
|
1137
|
+
};
|
|
1138
|
+
}
|
|
1139
|
+
export function datasetStorageDestinationDeserializer(item) {
|
|
1140
|
+
return {
|
|
1141
|
+
target: item["target"],
|
|
1142
|
+
configuration: storageDestinationConfigurationDeserializer(item["configuration"]),
|
|
1143
|
+
};
|
|
1144
|
+
}
|
|
1145
|
+
export function storageDestinationConfigurationSerializer(item) {
|
|
1146
|
+
return { path: item["path"] };
|
|
1147
|
+
}
|
|
1148
|
+
export function storageDestinationConfigurationDeserializer(item) {
|
|
1149
|
+
return {
|
|
1150
|
+
path: item["path"],
|
|
1151
|
+
};
|
|
1152
|
+
}
|
|
1153
|
+
export function eventDestinationUnionArraySerializer(result) {
|
|
1154
|
+
return result.map((item) => {
|
|
1155
|
+
return eventDestinationUnionSerializer(item);
|
|
1156
|
+
});
|
|
1157
|
+
}
|
|
1158
|
+
export function eventDestinationUnionArrayDeserializer(result) {
|
|
1159
|
+
return result.map((item) => {
|
|
1160
|
+
return eventDestinationUnionDeserializer(item);
|
|
1161
|
+
});
|
|
1162
|
+
}
|
|
1163
|
+
export function eventDestinationSerializer(item) {
|
|
1164
|
+
return { target: item["target"] };
|
|
1165
|
+
}
|
|
1166
|
+
export function eventDestinationDeserializer(item) {
|
|
1167
|
+
return {
|
|
1168
|
+
target: item["target"],
|
|
1169
|
+
};
|
|
1170
|
+
}
|
|
1171
|
+
export function eventDestinationUnionSerializer(item) {
|
|
1172
|
+
switch (item.target) {
|
|
1173
|
+
case "Mqtt":
|
|
1174
|
+
return eventMqttDestinationSerializer(item);
|
|
1175
|
+
case "Storage":
|
|
1176
|
+
return eventStorageDestinationSerializer(item);
|
|
1177
|
+
default:
|
|
1178
|
+
return eventDestinationSerializer(item);
|
|
1179
|
+
}
|
|
1180
|
+
}
|
|
1181
|
+
export function eventDestinationUnionDeserializer(item) {
|
|
1182
|
+
switch (item.target) {
|
|
1183
|
+
case "Mqtt":
|
|
1184
|
+
return eventMqttDestinationDeserializer(item);
|
|
1185
|
+
case "Storage":
|
|
1186
|
+
return eventStorageDestinationDeserializer(item);
|
|
1187
|
+
default:
|
|
1188
|
+
return eventDestinationDeserializer(item);
|
|
1189
|
+
}
|
|
1190
|
+
}
|
|
1191
|
+
/** The set of supported event destinations for an asset. */
|
|
1192
|
+
export var KnownEventDestinationTarget;
|
|
1193
|
+
(function (KnownEventDestinationTarget) {
|
|
1194
|
+
/** MQTT target. */
|
|
1195
|
+
KnownEventDestinationTarget["Mqtt"] = "Mqtt";
|
|
1196
|
+
/** Storage target. */
|
|
1197
|
+
KnownEventDestinationTarget["Storage"] = "Storage";
|
|
1198
|
+
})(KnownEventDestinationTarget || (KnownEventDestinationTarget = {}));
|
|
1199
|
+
export function eventMqttDestinationSerializer(item) {
|
|
1200
|
+
return {
|
|
1201
|
+
target: item["target"],
|
|
1202
|
+
configuration: mqttDestinationConfigurationSerializer(item["configuration"]),
|
|
1203
|
+
};
|
|
1204
|
+
}
|
|
1205
|
+
export function eventMqttDestinationDeserializer(item) {
|
|
1206
|
+
return {
|
|
1207
|
+
target: item["target"],
|
|
1208
|
+
configuration: mqttDestinationConfigurationDeserializer(item["configuration"]),
|
|
1209
|
+
};
|
|
1210
|
+
}
|
|
1211
|
+
export function eventStorageDestinationSerializer(item) {
|
|
1212
|
+
return {
|
|
1213
|
+
target: item["target"],
|
|
1214
|
+
configuration: storageDestinationConfigurationSerializer(item["configuration"]),
|
|
1215
|
+
};
|
|
1216
|
+
}
|
|
1217
|
+
export function eventStorageDestinationDeserializer(item) {
|
|
1218
|
+
return {
|
|
1219
|
+
target: item["target"],
|
|
1220
|
+
configuration: storageDestinationConfigurationDeserializer(item["configuration"]),
|
|
1221
|
+
};
|
|
1222
|
+
}
|
|
1223
|
+
export function streamDestinationUnionArraySerializer(result) {
|
|
1224
|
+
return result.map((item) => {
|
|
1225
|
+
return streamDestinationUnionSerializer(item);
|
|
1226
|
+
});
|
|
1227
|
+
}
|
|
1228
|
+
export function streamDestinationUnionArrayDeserializer(result) {
|
|
1229
|
+
return result.map((item) => {
|
|
1230
|
+
return streamDestinationUnionDeserializer(item);
|
|
1231
|
+
});
|
|
1232
|
+
}
|
|
1233
|
+
export function streamDestinationSerializer(item) {
|
|
1234
|
+
return { target: item["target"] };
|
|
1235
|
+
}
|
|
1236
|
+
export function streamDestinationDeserializer(item) {
|
|
1237
|
+
return {
|
|
1238
|
+
target: item["target"],
|
|
1239
|
+
};
|
|
1240
|
+
}
|
|
1241
|
+
export function streamDestinationUnionSerializer(item) {
|
|
1242
|
+
switch (item.target) {
|
|
1243
|
+
case "Mqtt":
|
|
1244
|
+
return streamMqttDestinationSerializer(item);
|
|
1245
|
+
case "Storage":
|
|
1246
|
+
return streamStorageDestinationSerializer(item);
|
|
1247
|
+
default:
|
|
1248
|
+
return streamDestinationSerializer(item);
|
|
1249
|
+
}
|
|
1250
|
+
}
|
|
1251
|
+
export function streamDestinationUnionDeserializer(item) {
|
|
1252
|
+
switch (item.target) {
|
|
1253
|
+
case "Mqtt":
|
|
1254
|
+
return streamMqttDestinationDeserializer(item);
|
|
1255
|
+
case "Storage":
|
|
1256
|
+
return streamStorageDestinationDeserializer(item);
|
|
1257
|
+
default:
|
|
1258
|
+
return streamDestinationDeserializer(item);
|
|
1259
|
+
}
|
|
1260
|
+
}
|
|
1261
|
+
/** The set of supported stream destinations for an asset. */
|
|
1262
|
+
export var KnownStreamDestinationTarget;
|
|
1263
|
+
(function (KnownStreamDestinationTarget) {
|
|
1264
|
+
/** MQTT target. */
|
|
1265
|
+
KnownStreamDestinationTarget["Mqtt"] = "Mqtt";
|
|
1266
|
+
/** Storage target. */
|
|
1267
|
+
KnownStreamDestinationTarget["Storage"] = "Storage";
|
|
1268
|
+
})(KnownStreamDestinationTarget || (KnownStreamDestinationTarget = {}));
|
|
1269
|
+
export function streamMqttDestinationSerializer(item) {
|
|
1270
|
+
return {
|
|
1271
|
+
target: item["target"],
|
|
1272
|
+
configuration: mqttDestinationConfigurationSerializer(item["configuration"]),
|
|
1273
|
+
};
|
|
1274
|
+
}
|
|
1275
|
+
export function streamMqttDestinationDeserializer(item) {
|
|
1276
|
+
return {
|
|
1277
|
+
target: item["target"],
|
|
1278
|
+
configuration: mqttDestinationConfigurationDeserializer(item["configuration"]),
|
|
1279
|
+
};
|
|
1280
|
+
}
|
|
1281
|
+
export function streamStorageDestinationSerializer(item) {
|
|
1282
|
+
return {
|
|
1283
|
+
target: item["target"],
|
|
1284
|
+
configuration: storageDestinationConfigurationSerializer(item["configuration"]),
|
|
1285
|
+
};
|
|
1286
|
+
}
|
|
1287
|
+
export function streamStorageDestinationDeserializer(item) {
|
|
1288
|
+
return {
|
|
1289
|
+
target: item["target"],
|
|
1290
|
+
configuration: storageDestinationConfigurationDeserializer(item["configuration"]),
|
|
1291
|
+
};
|
|
1292
|
+
}
|
|
1293
|
+
export function namespaceDatasetArraySerializer(result) {
|
|
1294
|
+
return result.map((item) => {
|
|
1295
|
+
return namespaceDatasetSerializer(item);
|
|
1296
|
+
});
|
|
1297
|
+
}
|
|
1298
|
+
export function namespaceDatasetArrayDeserializer(result) {
|
|
1299
|
+
return result.map((item) => {
|
|
1300
|
+
return namespaceDatasetDeserializer(item);
|
|
1301
|
+
});
|
|
1302
|
+
}
|
|
1303
|
+
export function namespaceDatasetSerializer(item) {
|
|
1304
|
+
return {
|
|
1305
|
+
name: item["name"],
|
|
1306
|
+
dataSource: item["dataSource"],
|
|
1307
|
+
typeRef: item["typeRef"],
|
|
1308
|
+
datasetConfiguration: item["datasetConfiguration"],
|
|
1309
|
+
destinations: !item["destinations"]
|
|
1310
|
+
? item["destinations"]
|
|
1311
|
+
: datasetDestinationUnionArraySerializer(item["destinations"]),
|
|
1312
|
+
dataPoints: !item["dataPoints"]
|
|
1313
|
+
? item["dataPoints"]
|
|
1314
|
+
: namespaceDatasetDataPointArraySerializer(item["dataPoints"]),
|
|
1315
|
+
};
|
|
1316
|
+
}
|
|
1317
|
+
export function namespaceDatasetDeserializer(item) {
|
|
1318
|
+
return {
|
|
1319
|
+
name: item["name"],
|
|
1320
|
+
dataSource: item["dataSource"],
|
|
1321
|
+
typeRef: item["typeRef"],
|
|
1322
|
+
datasetConfiguration: item["datasetConfiguration"],
|
|
1323
|
+
destinations: !item["destinations"]
|
|
1324
|
+
? item["destinations"]
|
|
1325
|
+
: datasetDestinationUnionArrayDeserializer(item["destinations"]),
|
|
1326
|
+
dataPoints: !item["dataPoints"]
|
|
1327
|
+
? item["dataPoints"]
|
|
1328
|
+
: namespaceDatasetDataPointArrayDeserializer(item["dataPoints"]),
|
|
1329
|
+
};
|
|
1330
|
+
}
|
|
1331
|
+
export function namespaceDatasetDataPointArraySerializer(result) {
|
|
1332
|
+
return result.map((item) => {
|
|
1333
|
+
return namespaceDatasetDataPointSerializer(item);
|
|
1334
|
+
});
|
|
1335
|
+
}
|
|
1336
|
+
export function namespaceDatasetDataPointArrayDeserializer(result) {
|
|
1337
|
+
return result.map((item) => {
|
|
1338
|
+
return namespaceDatasetDataPointDeserializer(item);
|
|
1339
|
+
});
|
|
1340
|
+
}
|
|
1341
|
+
export function namespaceDatasetDataPointSerializer(item) {
|
|
1342
|
+
return {
|
|
1343
|
+
name: item["name"],
|
|
1344
|
+
dataSource: item["dataSource"],
|
|
1345
|
+
dataPointConfiguration: item["dataPointConfiguration"],
|
|
1346
|
+
typeRef: item["typeRef"],
|
|
1347
|
+
};
|
|
1348
|
+
}
|
|
1349
|
+
export function namespaceDatasetDataPointDeserializer(item) {
|
|
1350
|
+
return {
|
|
1351
|
+
name: item["name"],
|
|
1352
|
+
dataSource: item["dataSource"],
|
|
1353
|
+
dataPointConfiguration: item["dataPointConfiguration"],
|
|
1354
|
+
typeRef: item["typeRef"],
|
|
1355
|
+
};
|
|
1356
|
+
}
|
|
1357
|
+
export function namespaceEventGroupArraySerializer(result) {
|
|
1358
|
+
return result.map((item) => {
|
|
1359
|
+
return namespaceEventGroupSerializer(item);
|
|
1360
|
+
});
|
|
1361
|
+
}
|
|
1362
|
+
export function namespaceEventGroupArrayDeserializer(result) {
|
|
1363
|
+
return result.map((item) => {
|
|
1364
|
+
return namespaceEventGroupDeserializer(item);
|
|
1365
|
+
});
|
|
1366
|
+
}
|
|
1367
|
+
export function namespaceEventGroupSerializer(item) {
|
|
1368
|
+
return {
|
|
1369
|
+
name: item["name"],
|
|
1370
|
+
dataSource: item["dataSource"],
|
|
1371
|
+
eventGroupConfiguration: item["eventGroupConfiguration"],
|
|
1372
|
+
defaultDestinations: !item["defaultDestinations"]
|
|
1373
|
+
? item["defaultDestinations"]
|
|
1374
|
+
: eventDestinationUnionArraySerializer(item["defaultDestinations"]),
|
|
1375
|
+
typeRef: item["typeRef"],
|
|
1376
|
+
events: !item["events"] ? item["events"] : namespaceEventArraySerializer(item["events"]),
|
|
1377
|
+
};
|
|
1378
|
+
}
|
|
1379
|
+
export function namespaceEventGroupDeserializer(item) {
|
|
1380
|
+
return {
|
|
1381
|
+
name: item["name"],
|
|
1382
|
+
dataSource: item["dataSource"],
|
|
1383
|
+
eventGroupConfiguration: item["eventGroupConfiguration"],
|
|
1384
|
+
defaultDestinations: !item["defaultDestinations"]
|
|
1385
|
+
? item["defaultDestinations"]
|
|
1386
|
+
: eventDestinationUnionArrayDeserializer(item["defaultDestinations"]),
|
|
1387
|
+
typeRef: item["typeRef"],
|
|
1388
|
+
events: !item["events"] ? item["events"] : namespaceEventArrayDeserializer(item["events"]),
|
|
1389
|
+
};
|
|
1390
|
+
}
|
|
1391
|
+
export function namespaceEventArraySerializer(result) {
|
|
1392
|
+
return result.map((item) => {
|
|
1393
|
+
return namespaceEventSerializer(item);
|
|
1394
|
+
});
|
|
1395
|
+
}
|
|
1396
|
+
export function namespaceEventArrayDeserializer(result) {
|
|
1397
|
+
return result.map((item) => {
|
|
1398
|
+
return namespaceEventDeserializer(item);
|
|
1399
|
+
});
|
|
1400
|
+
}
|
|
1401
|
+
export function namespaceEventSerializer(item) {
|
|
1402
|
+
return {
|
|
1403
|
+
name: item["name"],
|
|
1404
|
+
dataSource: item["dataSource"],
|
|
1405
|
+
eventConfiguration: item["eventConfiguration"],
|
|
1406
|
+
destinations: !item["destinations"]
|
|
1407
|
+
? item["destinations"]
|
|
1408
|
+
: eventDestinationUnionArraySerializer(item["destinations"]),
|
|
1409
|
+
typeRef: item["typeRef"],
|
|
1410
|
+
};
|
|
1411
|
+
}
|
|
1412
|
+
export function namespaceEventDeserializer(item) {
|
|
1413
|
+
return {
|
|
1414
|
+
name: item["name"],
|
|
1415
|
+
dataSource: item["dataSource"],
|
|
1416
|
+
eventConfiguration: item["eventConfiguration"],
|
|
1417
|
+
destinations: !item["destinations"]
|
|
1418
|
+
? item["destinations"]
|
|
1419
|
+
: eventDestinationUnionArrayDeserializer(item["destinations"]),
|
|
1420
|
+
typeRef: item["typeRef"],
|
|
1421
|
+
};
|
|
1422
|
+
}
|
|
1423
|
+
export function namespaceStreamArraySerializer(result) {
|
|
1424
|
+
return result.map((item) => {
|
|
1425
|
+
return namespaceStreamSerializer(item);
|
|
1426
|
+
});
|
|
1427
|
+
}
|
|
1428
|
+
export function namespaceStreamArrayDeserializer(result) {
|
|
1429
|
+
return result.map((item) => {
|
|
1430
|
+
return namespaceStreamDeserializer(item);
|
|
1431
|
+
});
|
|
1432
|
+
}
|
|
1433
|
+
export function namespaceStreamSerializer(item) {
|
|
1434
|
+
return {
|
|
1435
|
+
name: item["name"],
|
|
1436
|
+
streamConfiguration: item["streamConfiguration"],
|
|
1437
|
+
typeRef: item["typeRef"],
|
|
1438
|
+
destinations: !item["destinations"]
|
|
1439
|
+
? item["destinations"]
|
|
1440
|
+
: streamDestinationUnionArraySerializer(item["destinations"]),
|
|
1441
|
+
};
|
|
1442
|
+
}
|
|
1443
|
+
export function namespaceStreamDeserializer(item) {
|
|
1444
|
+
return {
|
|
1445
|
+
name: item["name"],
|
|
1446
|
+
streamConfiguration: item["streamConfiguration"],
|
|
1447
|
+
typeRef: item["typeRef"],
|
|
1448
|
+
destinations: !item["destinations"]
|
|
1449
|
+
? item["destinations"]
|
|
1450
|
+
: streamDestinationUnionArrayDeserializer(item["destinations"]),
|
|
1451
|
+
};
|
|
1452
|
+
}
|
|
1453
|
+
export function managementGroupArraySerializer(result) {
|
|
1454
|
+
return result.map((item) => {
|
|
1455
|
+
return managementGroupSerializer(item);
|
|
1456
|
+
});
|
|
1457
|
+
}
|
|
1458
|
+
export function managementGroupArrayDeserializer(result) {
|
|
1459
|
+
return result.map((item) => {
|
|
1460
|
+
return managementGroupDeserializer(item);
|
|
1461
|
+
});
|
|
1462
|
+
}
|
|
1463
|
+
export function managementGroupSerializer(item) {
|
|
1464
|
+
return {
|
|
1465
|
+
name: item["name"],
|
|
1466
|
+
dataSource: item["dataSource"],
|
|
1467
|
+
managementGroupConfiguration: item["managementGroupConfiguration"],
|
|
1468
|
+
typeRef: item["typeRef"],
|
|
1469
|
+
defaultTopic: item["defaultTopic"],
|
|
1470
|
+
defaultTimeoutInSeconds: item["defaultTimeoutInSeconds"],
|
|
1471
|
+
actions: !item["actions"] ? item["actions"] : managementActionArraySerializer(item["actions"]),
|
|
1472
|
+
};
|
|
1473
|
+
}
|
|
1474
|
+
export function managementGroupDeserializer(item) {
|
|
1475
|
+
return {
|
|
1476
|
+
name: item["name"],
|
|
1477
|
+
dataSource: item["dataSource"],
|
|
1478
|
+
managementGroupConfiguration: item["managementGroupConfiguration"],
|
|
1479
|
+
typeRef: item["typeRef"],
|
|
1480
|
+
defaultTopic: item["defaultTopic"],
|
|
1481
|
+
defaultTimeoutInSeconds: item["defaultTimeoutInSeconds"],
|
|
1482
|
+
actions: !item["actions"]
|
|
1483
|
+
? item["actions"]
|
|
1484
|
+
: managementActionArrayDeserializer(item["actions"]),
|
|
1485
|
+
};
|
|
1486
|
+
}
|
|
1487
|
+
export function managementActionArraySerializer(result) {
|
|
1488
|
+
return result.map((item) => {
|
|
1489
|
+
return managementActionSerializer(item);
|
|
1490
|
+
});
|
|
1491
|
+
}
|
|
1492
|
+
export function managementActionArrayDeserializer(result) {
|
|
1493
|
+
return result.map((item) => {
|
|
1494
|
+
return managementActionDeserializer(item);
|
|
1495
|
+
});
|
|
1496
|
+
}
|
|
1497
|
+
export function managementActionSerializer(item) {
|
|
1498
|
+
return {
|
|
1499
|
+
name: item["name"],
|
|
1500
|
+
actionConfiguration: item["actionConfiguration"],
|
|
1501
|
+
targetUri: item["targetUri"],
|
|
1502
|
+
typeRef: item["typeRef"],
|
|
1503
|
+
topic: item["topic"],
|
|
1504
|
+
actionType: item["actionType"],
|
|
1505
|
+
timeoutInSeconds: item["timeoutInSeconds"],
|
|
1506
|
+
};
|
|
1507
|
+
}
|
|
1508
|
+
export function managementActionDeserializer(item) {
|
|
1509
|
+
return {
|
|
1510
|
+
name: item["name"],
|
|
1511
|
+
actionConfiguration: item["actionConfiguration"],
|
|
1512
|
+
targetUri: item["targetUri"],
|
|
1513
|
+
typeRef: item["typeRef"],
|
|
1514
|
+
topic: item["topic"],
|
|
1515
|
+
actionType: item["actionType"],
|
|
1516
|
+
timeoutInSeconds: item["timeoutInSeconds"],
|
|
1517
|
+
};
|
|
1518
|
+
}
|
|
1519
|
+
/** Defines the ManagementAction's type. */
|
|
1520
|
+
export var KnownManagementActionType;
|
|
1521
|
+
(function (KnownManagementActionType) {
|
|
1522
|
+
/** Call action type. */
|
|
1523
|
+
KnownManagementActionType["Call"] = "Call";
|
|
1524
|
+
/** Read action type. */
|
|
1525
|
+
KnownManagementActionType["Read"] = "Read";
|
|
1526
|
+
/** Write action type. */
|
|
1527
|
+
KnownManagementActionType["Write"] = "Write";
|
|
1528
|
+
})(KnownManagementActionType || (KnownManagementActionType = {}));
|
|
1529
|
+
export function namespaceAssetStatusDeserializer(item) {
|
|
1530
|
+
return {
|
|
1531
|
+
config: !item["config"] ? item["config"] : statusConfigDeserializer(item["config"]),
|
|
1532
|
+
datasets: !item["datasets"]
|
|
1533
|
+
? item["datasets"]
|
|
1534
|
+
: namespaceAssetStatusDatasetArrayDeserializer(item["datasets"]),
|
|
1535
|
+
eventGroups: !item["eventGroups"]
|
|
1536
|
+
? item["eventGroups"]
|
|
1537
|
+
: namespaceAssetStatusEventGroupArrayDeserializer(item["eventGroups"]),
|
|
1538
|
+
streams: !item["streams"]
|
|
1539
|
+
? item["streams"]
|
|
1540
|
+
: namespaceAssetStatusStreamArrayDeserializer(item["streams"]),
|
|
1541
|
+
managementGroups: !item["managementGroups"]
|
|
1542
|
+
? item["managementGroups"]
|
|
1543
|
+
: namespaceAssetStatusManagementGroupArrayDeserializer(item["managementGroups"]),
|
|
1544
|
+
};
|
|
1545
|
+
}
|
|
1546
|
+
export function statusConfigDeserializer(item) {
|
|
1547
|
+
return {
|
|
1548
|
+
version: item["version"],
|
|
1549
|
+
lastTransitionTime: !item["lastTransitionTime"]
|
|
1550
|
+
? item["lastTransitionTime"]
|
|
1551
|
+
: new Date(item["lastTransitionTime"]),
|
|
1552
|
+
error: !item["error"] ? item["error"] : statusErrorDeserializer(item["error"]),
|
|
1553
|
+
};
|
|
1554
|
+
}
|
|
1555
|
+
export function statusErrorDeserializer(item) {
|
|
1556
|
+
return {
|
|
1557
|
+
code: item["code"],
|
|
1558
|
+
message: item["message"],
|
|
1559
|
+
details: !item["details"] ? item["details"] : errorDetailsArrayDeserializer(item["details"]),
|
|
1560
|
+
};
|
|
1561
|
+
}
|
|
1562
|
+
export function namespaceAssetStatusDatasetArrayDeserializer(result) {
|
|
1563
|
+
return result.map((item) => {
|
|
1564
|
+
return namespaceAssetStatusDatasetDeserializer(item);
|
|
1565
|
+
});
|
|
1566
|
+
}
|
|
1567
|
+
export function namespaceAssetStatusDatasetDeserializer(item) {
|
|
1568
|
+
return {
|
|
1569
|
+
name: item["name"],
|
|
1570
|
+
messageSchemaReference: !item["messageSchemaReference"]
|
|
1571
|
+
? item["messageSchemaReference"]
|
|
1572
|
+
: namespaceMessageSchemaReferenceDeserializer(item["messageSchemaReference"]),
|
|
1573
|
+
error: !item["error"] ? item["error"] : statusErrorDeserializer(item["error"]),
|
|
1574
|
+
};
|
|
1575
|
+
}
|
|
1576
|
+
export function namespaceMessageSchemaReferenceDeserializer(item) {
|
|
1577
|
+
return {
|
|
1578
|
+
schemaRegistryNamespace: item["schemaRegistryNamespace"],
|
|
1579
|
+
schemaName: item["schemaName"],
|
|
1580
|
+
schemaVersion: item["schemaVersion"],
|
|
1581
|
+
};
|
|
1582
|
+
}
|
|
1583
|
+
export function namespaceAssetStatusEventGroupArrayDeserializer(result) {
|
|
1584
|
+
return result.map((item) => {
|
|
1585
|
+
return namespaceAssetStatusEventGroupDeserializer(item);
|
|
1586
|
+
});
|
|
1587
|
+
}
|
|
1588
|
+
export function namespaceAssetStatusEventGroupDeserializer(item) {
|
|
1589
|
+
return {
|
|
1590
|
+
name: item["name"],
|
|
1591
|
+
events: !item["events"]
|
|
1592
|
+
? item["events"]
|
|
1593
|
+
: namespaceAssetStatusEventArrayDeserializer(item["events"]),
|
|
1594
|
+
};
|
|
1595
|
+
}
|
|
1596
|
+
export function namespaceAssetStatusEventArrayDeserializer(result) {
|
|
1597
|
+
return result.map((item) => {
|
|
1598
|
+
return namespaceAssetStatusEventDeserializer(item);
|
|
1599
|
+
});
|
|
1600
|
+
}
|
|
1601
|
+
export function namespaceAssetStatusEventDeserializer(item) {
|
|
1602
|
+
return {
|
|
1603
|
+
name: item["name"],
|
|
1604
|
+
messageSchemaReference: !item["messageSchemaReference"]
|
|
1605
|
+
? item["messageSchemaReference"]
|
|
1606
|
+
: namespaceMessageSchemaReferenceDeserializer(item["messageSchemaReference"]),
|
|
1607
|
+
error: !item["error"] ? item["error"] : statusErrorDeserializer(item["error"]),
|
|
1608
|
+
};
|
|
1609
|
+
}
|
|
1610
|
+
export function namespaceAssetStatusStreamArrayDeserializer(result) {
|
|
1611
|
+
return result.map((item) => {
|
|
1612
|
+
return namespaceAssetStatusStreamDeserializer(item);
|
|
1613
|
+
});
|
|
1614
|
+
}
|
|
1615
|
+
export function namespaceAssetStatusStreamDeserializer(item) {
|
|
1616
|
+
return {
|
|
1617
|
+
name: item["name"],
|
|
1618
|
+
messageSchemaReference: !item["messageSchemaReference"]
|
|
1619
|
+
? item["messageSchemaReference"]
|
|
1620
|
+
: namespaceMessageSchemaReferenceDeserializer(item["messageSchemaReference"]),
|
|
1621
|
+
error: !item["error"] ? item["error"] : statusErrorDeserializer(item["error"]),
|
|
1622
|
+
};
|
|
1623
|
+
}
|
|
1624
|
+
export function namespaceAssetStatusManagementGroupArrayDeserializer(result) {
|
|
1625
|
+
return result.map((item) => {
|
|
1626
|
+
return namespaceAssetStatusManagementGroupDeserializer(item);
|
|
1627
|
+
});
|
|
1628
|
+
}
|
|
1629
|
+
export function namespaceAssetStatusManagementGroupDeserializer(item) {
|
|
1630
|
+
return {
|
|
1631
|
+
name: item["name"],
|
|
1632
|
+
actions: !item["actions"]
|
|
1633
|
+
? item["actions"]
|
|
1634
|
+
: namespaceAssetStatusManagementActionArrayDeserializer(item["actions"]),
|
|
1635
|
+
};
|
|
1636
|
+
}
|
|
1637
|
+
export function namespaceAssetStatusManagementActionArrayDeserializer(result) {
|
|
1638
|
+
return result.map((item) => {
|
|
1639
|
+
return namespaceAssetStatusManagementActionDeserializer(item);
|
|
1640
|
+
});
|
|
1641
|
+
}
|
|
1642
|
+
export function namespaceAssetStatusManagementActionDeserializer(item) {
|
|
1643
|
+
return {
|
|
1644
|
+
name: item["name"],
|
|
1645
|
+
requestMessageSchemaReference: !item["requestMessageSchemaReference"]
|
|
1646
|
+
? item["requestMessageSchemaReference"]
|
|
1647
|
+
: namespaceMessageSchemaReferenceDeserializer(item["requestMessageSchemaReference"]),
|
|
1648
|
+
responseMessageSchemaReference: !item["responseMessageSchemaReference"]
|
|
1649
|
+
? item["responseMessageSchemaReference"]
|
|
1650
|
+
: namespaceMessageSchemaReferenceDeserializer(item["responseMessageSchemaReference"]),
|
|
1651
|
+
error: !item["error"] ? item["error"] : statusErrorDeserializer(item["error"]),
|
|
1652
|
+
};
|
|
1653
|
+
}
|
|
1654
|
+
export function namespaceAssetUpdateSerializer(item) {
|
|
1655
|
+
return {
|
|
1656
|
+
tags: item["tags"],
|
|
1657
|
+
properties: !item["properties"]
|
|
1658
|
+
? item["properties"]
|
|
1659
|
+
: namespaceAssetUpdatePropertiesSerializer(item["properties"]),
|
|
1660
|
+
};
|
|
1661
|
+
}
|
|
1662
|
+
export function namespaceAssetUpdatePropertiesSerializer(item) {
|
|
1663
|
+
return {
|
|
1664
|
+
enabled: item["enabled"],
|
|
1665
|
+
displayName: item["displayName"],
|
|
1666
|
+
description: item["description"],
|
|
1667
|
+
assetTypeRefs: !item["assetTypeRefs"]
|
|
1668
|
+
? item["assetTypeRefs"]
|
|
1669
|
+
: item["assetTypeRefs"].map((p) => {
|
|
1670
|
+
return p;
|
|
1671
|
+
}),
|
|
1672
|
+
manufacturer: item["manufacturer"],
|
|
1673
|
+
manufacturerUri: item["manufacturerUri"],
|
|
1674
|
+
model: item["model"],
|
|
1675
|
+
productCode: item["productCode"],
|
|
1676
|
+
hardwareRevision: item["hardwareRevision"],
|
|
1677
|
+
softwareRevision: item["softwareRevision"],
|
|
1678
|
+
documentationUri: item["documentationUri"],
|
|
1679
|
+
serialNumber: item["serialNumber"],
|
|
1680
|
+
attributes: item["attributes"],
|
|
1681
|
+
defaultDatasetsConfiguration: item["defaultDatasetsConfiguration"],
|
|
1682
|
+
defaultEventsConfiguration: item["defaultEventsConfiguration"],
|
|
1683
|
+
defaultStreamsConfiguration: item["defaultStreamsConfiguration"],
|
|
1684
|
+
defaultManagementGroupsConfiguration: item["defaultManagementGroupsConfiguration"],
|
|
1685
|
+
defaultDatasetsDestinations: !item["defaultDatasetsDestinations"]
|
|
1686
|
+
? item["defaultDatasetsDestinations"]
|
|
1687
|
+
: datasetDestinationUnionArraySerializer(item["defaultDatasetsDestinations"]),
|
|
1688
|
+
defaultEventsDestinations: !item["defaultEventsDestinations"]
|
|
1689
|
+
? item["defaultEventsDestinations"]
|
|
1690
|
+
: eventDestinationUnionArraySerializer(item["defaultEventsDestinations"]),
|
|
1691
|
+
defaultStreamsDestinations: !item["defaultStreamsDestinations"]
|
|
1692
|
+
? item["defaultStreamsDestinations"]
|
|
1693
|
+
: streamDestinationUnionArraySerializer(item["defaultStreamsDestinations"]),
|
|
1694
|
+
datasets: !item["datasets"]
|
|
1695
|
+
? item["datasets"]
|
|
1696
|
+
: namespaceDatasetArraySerializer(item["datasets"]),
|
|
1697
|
+
eventGroups: !item["eventGroups"]
|
|
1698
|
+
? item["eventGroups"]
|
|
1699
|
+
: namespaceEventGroupArraySerializer(item["eventGroups"]),
|
|
1700
|
+
streams: !item["streams"] ? item["streams"] : namespaceStreamArraySerializer(item["streams"]),
|
|
1701
|
+
managementGroups: !item["managementGroups"]
|
|
1702
|
+
? item["managementGroups"]
|
|
1703
|
+
: managementGroupArraySerializer(item["managementGroups"]),
|
|
1704
|
+
};
|
|
1705
|
+
}
|
|
1706
|
+
export function _namespaceAssetListResultDeserializer(item) {
|
|
1707
|
+
return {
|
|
1708
|
+
value: namespaceAssetArrayDeserializer(item["value"]),
|
|
1709
|
+
nextLink: item["nextLink"],
|
|
1710
|
+
};
|
|
1711
|
+
}
|
|
1712
|
+
export function namespaceAssetArraySerializer(result) {
|
|
1713
|
+
return result.map((item) => {
|
|
1714
|
+
return namespaceAssetSerializer(item);
|
|
1715
|
+
});
|
|
1716
|
+
}
|
|
1717
|
+
export function namespaceAssetArrayDeserializer(result) {
|
|
1718
|
+
return result.map((item) => {
|
|
1719
|
+
return namespaceAssetDeserializer(item);
|
|
1720
|
+
});
|
|
1721
|
+
}
|
|
1722
|
+
export function namespaceDeviceSerializer(item) {
|
|
1723
|
+
return {
|
|
1724
|
+
tags: item["tags"],
|
|
1725
|
+
location: item["location"],
|
|
1726
|
+
properties: !item["properties"]
|
|
1727
|
+
? item["properties"]
|
|
1728
|
+
: namespaceDevicePropertiesSerializer(item["properties"]),
|
|
1729
|
+
extendedLocation: !item["extendedLocation"]
|
|
1730
|
+
? item["extendedLocation"]
|
|
1731
|
+
: extendedLocationSerializer(item["extendedLocation"]),
|
|
1732
|
+
};
|
|
1733
|
+
}
|
|
1734
|
+
export function namespaceDeviceDeserializer(item) {
|
|
1735
|
+
return {
|
|
1736
|
+
tags: item["tags"],
|
|
1737
|
+
location: item["location"],
|
|
1738
|
+
id: item["id"],
|
|
1739
|
+
name: item["name"],
|
|
1740
|
+
type: item["type"],
|
|
1741
|
+
systemData: !item["systemData"]
|
|
1742
|
+
? item["systemData"]
|
|
1743
|
+
: systemDataDeserializer(item["systemData"]),
|
|
1744
|
+
properties: !item["properties"]
|
|
1745
|
+
? item["properties"]
|
|
1746
|
+
: namespaceDevicePropertiesDeserializer(item["properties"]),
|
|
1747
|
+
etag: item["etag"],
|
|
1748
|
+
extendedLocation: !item["extendedLocation"]
|
|
1749
|
+
? item["extendedLocation"]
|
|
1750
|
+
: extendedLocationDeserializer(item["extendedLocation"]),
|
|
1751
|
+
};
|
|
1752
|
+
}
|
|
1753
|
+
export function namespaceDevicePropertiesSerializer(item) {
|
|
1754
|
+
return {
|
|
1755
|
+
enabled: item["enabled"],
|
|
1756
|
+
externalDeviceId: item["externalDeviceId"],
|
|
1757
|
+
discoveredDeviceRef: item["discoveredDeviceRef"],
|
|
1758
|
+
manufacturer: item["manufacturer"],
|
|
1759
|
+
model: item["model"],
|
|
1760
|
+
operatingSystem: item["operatingSystem"],
|
|
1761
|
+
operatingSystemVersion: item["operatingSystemVersion"],
|
|
1762
|
+
endpoints: !item["endpoints"]
|
|
1763
|
+
? item["endpoints"]
|
|
1764
|
+
: messagingEndpointsSerializer(item["endpoints"]),
|
|
1765
|
+
attributes: item["attributes"],
|
|
1766
|
+
};
|
|
1767
|
+
}
|
|
1768
|
+
export function namespaceDevicePropertiesDeserializer(item) {
|
|
1769
|
+
return {
|
|
1770
|
+
uuid: item["uuid"],
|
|
1771
|
+
enabled: item["enabled"],
|
|
1772
|
+
externalDeviceId: item["externalDeviceId"],
|
|
1773
|
+
discoveredDeviceRef: item["discoveredDeviceRef"],
|
|
1774
|
+
manufacturer: item["manufacturer"],
|
|
1775
|
+
model: item["model"],
|
|
1776
|
+
operatingSystem: item["operatingSystem"],
|
|
1777
|
+
operatingSystemVersion: item["operatingSystemVersion"],
|
|
1778
|
+
endpoints: !item["endpoints"]
|
|
1779
|
+
? item["endpoints"]
|
|
1780
|
+
: messagingEndpointsDeserializer(item["endpoints"]),
|
|
1781
|
+
attributes: item["attributes"],
|
|
1782
|
+
status: !item["status"] ? item["status"] : deviceStatusDeserializer(item["status"]),
|
|
1783
|
+
version: item["version"],
|
|
1784
|
+
lastTransitionTime: !item["lastTransitionTime"]
|
|
1785
|
+
? item["lastTransitionTime"]
|
|
1786
|
+
: new Date(item["lastTransitionTime"]),
|
|
1787
|
+
provisioningState: item["provisioningState"],
|
|
1788
|
+
};
|
|
1789
|
+
}
|
|
1790
|
+
export function messagingEndpointsSerializer(item) {
|
|
1791
|
+
return {
|
|
1792
|
+
inbound: !item["inbound"] ? item["inbound"] : inboundEndpointsRecordSerializer(item["inbound"]),
|
|
1793
|
+
outbound: !item["outbound"] ? item["outbound"] : outboundEndpointsSerializer(item["outbound"]),
|
|
1794
|
+
};
|
|
1795
|
+
}
|
|
1796
|
+
export function messagingEndpointsDeserializer(item) {
|
|
1797
|
+
return {
|
|
1798
|
+
inbound: !item["inbound"]
|
|
1799
|
+
? item["inbound"]
|
|
1800
|
+
: inboundEndpointsRecordDeserializer(item["inbound"]),
|
|
1801
|
+
outbound: !item["outbound"]
|
|
1802
|
+
? item["outbound"]
|
|
1803
|
+
: outboundEndpointsDeserializer(item["outbound"]),
|
|
1804
|
+
};
|
|
1805
|
+
}
|
|
1806
|
+
export function inboundEndpointsRecordSerializer(item) {
|
|
1807
|
+
const result = {};
|
|
1808
|
+
Object.keys(item).map((key) => {
|
|
1809
|
+
result[key] = !item[key] ? item[key] : inboundEndpointsSerializer(item[key]);
|
|
1810
|
+
});
|
|
1811
|
+
return result;
|
|
1812
|
+
}
|
|
1813
|
+
export function inboundEndpointsRecordDeserializer(item) {
|
|
1814
|
+
const result = {};
|
|
1815
|
+
Object.keys(item).map((key) => {
|
|
1816
|
+
result[key] = !item[key] ? item[key] : inboundEndpointsDeserializer(item[key]);
|
|
1817
|
+
});
|
|
1818
|
+
return result;
|
|
1819
|
+
}
|
|
1820
|
+
export function inboundEndpointsSerializer(item) {
|
|
1821
|
+
return {
|
|
1822
|
+
endpointType: item["endpointType"],
|
|
1823
|
+
address: item["address"],
|
|
1824
|
+
version: item["version"],
|
|
1825
|
+
authentication: !item["authentication"]
|
|
1826
|
+
? item["authentication"]
|
|
1827
|
+
: hostAuthenticationSerializer(item["authentication"]),
|
|
1828
|
+
trustSettings: !item["trustSettings"]
|
|
1829
|
+
? item["trustSettings"]
|
|
1830
|
+
: trustSettingsSerializer(item["trustSettings"]),
|
|
1831
|
+
additionalConfiguration: item["additionalConfiguration"],
|
|
1832
|
+
};
|
|
1833
|
+
}
|
|
1834
|
+
export function inboundEndpointsDeserializer(item) {
|
|
1835
|
+
return {
|
|
1836
|
+
endpointType: item["endpointType"],
|
|
1837
|
+
address: item["address"],
|
|
1838
|
+
version: item["version"],
|
|
1839
|
+
authentication: !item["authentication"]
|
|
1840
|
+
? item["authentication"]
|
|
1841
|
+
: hostAuthenticationDeserializer(item["authentication"]),
|
|
1842
|
+
trustSettings: !item["trustSettings"]
|
|
1843
|
+
? item["trustSettings"]
|
|
1844
|
+
: trustSettingsDeserializer(item["trustSettings"]),
|
|
1845
|
+
additionalConfiguration: item["additionalConfiguration"],
|
|
1846
|
+
};
|
|
1847
|
+
}
|
|
1848
|
+
export function hostAuthenticationSerializer(item) {
|
|
1849
|
+
return {
|
|
1850
|
+
method: item["method"],
|
|
1851
|
+
usernamePasswordCredentials: !item["usernamePasswordCredentials"]
|
|
1852
|
+
? item["usernamePasswordCredentials"]
|
|
1853
|
+
: usernamePasswordCredentialsSerializer(item["usernamePasswordCredentials"]),
|
|
1854
|
+
x509Credentials: !item["x509Credentials"]
|
|
1855
|
+
? item["x509Credentials"]
|
|
1856
|
+
: x509CertificateCredentialsSerializer(item["x509Credentials"]),
|
|
1857
|
+
};
|
|
1858
|
+
}
|
|
1859
|
+
export function hostAuthenticationDeserializer(item) {
|
|
1860
|
+
return {
|
|
1861
|
+
method: item["method"],
|
|
1862
|
+
usernamePasswordCredentials: !item["usernamePasswordCredentials"]
|
|
1863
|
+
? item["usernamePasswordCredentials"]
|
|
1864
|
+
: usernamePasswordCredentialsDeserializer(item["usernamePasswordCredentials"]),
|
|
1865
|
+
x509Credentials: !item["x509Credentials"]
|
|
1866
|
+
? item["x509Credentials"]
|
|
1867
|
+
: x509CertificateCredentialsDeserializer(item["x509Credentials"]),
|
|
1868
|
+
};
|
|
1869
|
+
}
|
|
1870
|
+
export function x509CertificateCredentialsSerializer(item) {
|
|
1871
|
+
return {
|
|
1872
|
+
certificateSecretName: item["certificateSecretName"],
|
|
1873
|
+
keySecretName: item["keySecretName"],
|
|
1874
|
+
intermediateCertificatesSecretName: item["intermediateCertificatesSecretName"],
|
|
1875
|
+
};
|
|
1876
|
+
}
|
|
1877
|
+
export function x509CertificateCredentialsDeserializer(item) {
|
|
1878
|
+
return {
|
|
1879
|
+
certificateSecretName: item["certificateSecretName"],
|
|
1880
|
+
keySecretName: item["keySecretName"],
|
|
1881
|
+
intermediateCertificatesSecretName: item["intermediateCertificatesSecretName"],
|
|
1882
|
+
};
|
|
1883
|
+
}
|
|
1884
|
+
export function trustSettingsSerializer(item) {
|
|
1885
|
+
return { trustList: item["trustList"] };
|
|
1886
|
+
}
|
|
1887
|
+
export function trustSettingsDeserializer(item) {
|
|
1888
|
+
return {
|
|
1889
|
+
trustList: item["trustList"],
|
|
1890
|
+
};
|
|
1891
|
+
}
|
|
1892
|
+
export function outboundEndpointsSerializer(item) {
|
|
1893
|
+
return {
|
|
1894
|
+
assigned: deviceMessagingEndpointRecordSerializer(item["assigned"]),
|
|
1895
|
+
unassigned: !item["unassigned"]
|
|
1896
|
+
? item["unassigned"]
|
|
1897
|
+
: deviceMessagingEndpointRecordSerializer(item["unassigned"]),
|
|
1898
|
+
};
|
|
1899
|
+
}
|
|
1900
|
+
export function outboundEndpointsDeserializer(item) {
|
|
1901
|
+
return {
|
|
1902
|
+
assigned: deviceMessagingEndpointRecordDeserializer(item["assigned"]),
|
|
1903
|
+
unassigned: !item["unassigned"]
|
|
1904
|
+
? item["unassigned"]
|
|
1905
|
+
: deviceMessagingEndpointRecordDeserializer(item["unassigned"]),
|
|
1906
|
+
};
|
|
1907
|
+
}
|
|
1908
|
+
export function deviceMessagingEndpointRecordSerializer(item) {
|
|
1909
|
+
const result = {};
|
|
1910
|
+
Object.keys(item).map((key) => {
|
|
1911
|
+
result[key] = !item[key] ? item[key] : deviceMessagingEndpointSerializer(item[key]);
|
|
1912
|
+
});
|
|
1913
|
+
return result;
|
|
1914
|
+
}
|
|
1915
|
+
export function deviceMessagingEndpointRecordDeserializer(item) {
|
|
1916
|
+
const result = {};
|
|
1917
|
+
Object.keys(item).map((key) => {
|
|
1918
|
+
result[key] = !item[key] ? item[key] : deviceMessagingEndpointDeserializer(item[key]);
|
|
1919
|
+
});
|
|
1920
|
+
return result;
|
|
1921
|
+
}
|
|
1922
|
+
export function deviceMessagingEndpointSerializer(item) {
|
|
1923
|
+
return { endpointType: item["endpointType"], address: item["address"] };
|
|
1924
|
+
}
|
|
1925
|
+
export function deviceMessagingEndpointDeserializer(item) {
|
|
1926
|
+
return {
|
|
1927
|
+
endpointType: item["endpointType"],
|
|
1928
|
+
address: item["address"],
|
|
1929
|
+
};
|
|
1930
|
+
}
|
|
1931
|
+
export function deviceStatusDeserializer(item) {
|
|
1932
|
+
return {
|
|
1933
|
+
config: !item["config"] ? item["config"] : statusConfigDeserializer(item["config"]),
|
|
1934
|
+
endpoints: !item["endpoints"]
|
|
1935
|
+
? item["endpoints"]
|
|
1936
|
+
: deviceStatusEndpointsDeserializer(item["endpoints"]),
|
|
1937
|
+
};
|
|
1938
|
+
}
|
|
1939
|
+
export function deviceStatusEndpointsDeserializer(item) {
|
|
1940
|
+
return {
|
|
1941
|
+
inbound: !item["inbound"]
|
|
1942
|
+
? item["inbound"]
|
|
1943
|
+
: deviceStatusEndpointRecordDeserializer(item["inbound"]),
|
|
1944
|
+
};
|
|
1945
|
+
}
|
|
1946
|
+
export function deviceStatusEndpointRecordDeserializer(item) {
|
|
1947
|
+
const result = {};
|
|
1948
|
+
Object.keys(item).map((key) => {
|
|
1949
|
+
result[key] = !item[key] ? item[key] : deviceStatusEndpointDeserializer(item[key]);
|
|
1950
|
+
});
|
|
1951
|
+
return result;
|
|
1952
|
+
}
|
|
1953
|
+
export function deviceStatusEndpointDeserializer(item) {
|
|
1954
|
+
return {
|
|
1955
|
+
error: !item["error"] ? item["error"] : statusErrorDeserializer(item["error"]),
|
|
1956
|
+
};
|
|
1957
|
+
}
|
|
1958
|
+
export function namespaceDeviceUpdateSerializer(item) {
|
|
1959
|
+
return {
|
|
1960
|
+
tags: item["tags"],
|
|
1961
|
+
properties: !item["properties"]
|
|
1962
|
+
? item["properties"]
|
|
1963
|
+
: namespaceDeviceUpdatePropertiesSerializer(item["properties"]),
|
|
1964
|
+
};
|
|
1965
|
+
}
|
|
1966
|
+
export function namespaceDeviceUpdatePropertiesSerializer(item) {
|
|
1967
|
+
return {
|
|
1968
|
+
operatingSystemVersion: item["operatingSystemVersion"],
|
|
1969
|
+
endpoints: !item["endpoints"]
|
|
1970
|
+
? item["endpoints"]
|
|
1971
|
+
: messagingEndpointsSerializer(item["endpoints"]),
|
|
1972
|
+
attributes: item["attributes"],
|
|
1973
|
+
enabled: item["enabled"],
|
|
1974
|
+
};
|
|
1975
|
+
}
|
|
1976
|
+
export function _namespaceDeviceListResultDeserializer(item) {
|
|
1977
|
+
return {
|
|
1978
|
+
value: namespaceDeviceArrayDeserializer(item["value"]),
|
|
1979
|
+
nextLink: item["nextLink"],
|
|
1980
|
+
};
|
|
1981
|
+
}
|
|
1982
|
+
export function namespaceDeviceArraySerializer(result) {
|
|
1983
|
+
return result.map((item) => {
|
|
1984
|
+
return namespaceDeviceSerializer(item);
|
|
1985
|
+
});
|
|
1986
|
+
}
|
|
1987
|
+
export function namespaceDeviceArrayDeserializer(result) {
|
|
1988
|
+
return result.map((item) => {
|
|
1989
|
+
return namespaceDeviceDeserializer(item);
|
|
1990
|
+
});
|
|
1991
|
+
}
|
|
1992
|
+
export function namespaceDiscoveredAssetSerializer(item) {
|
|
1993
|
+
return {
|
|
1994
|
+
tags: item["tags"],
|
|
1995
|
+
location: item["location"],
|
|
1996
|
+
properties: !item["properties"]
|
|
1997
|
+
? item["properties"]
|
|
1998
|
+
: namespaceDiscoveredAssetPropertiesSerializer(item["properties"]),
|
|
1999
|
+
extendedLocation: extendedLocationSerializer(item["extendedLocation"]),
|
|
2000
|
+
};
|
|
2001
|
+
}
|
|
2002
|
+
export function namespaceDiscoveredAssetDeserializer(item) {
|
|
2003
|
+
return {
|
|
2004
|
+
tags: item["tags"],
|
|
2005
|
+
location: item["location"],
|
|
2006
|
+
id: item["id"],
|
|
2007
|
+
name: item["name"],
|
|
2008
|
+
type: item["type"],
|
|
2009
|
+
systemData: !item["systemData"]
|
|
2010
|
+
? item["systemData"]
|
|
2011
|
+
: systemDataDeserializer(item["systemData"]),
|
|
2012
|
+
properties: !item["properties"]
|
|
2013
|
+
? item["properties"]
|
|
2014
|
+
: namespaceDiscoveredAssetPropertiesDeserializer(item["properties"]),
|
|
2015
|
+
extendedLocation: extendedLocationDeserializer(item["extendedLocation"]),
|
|
2016
|
+
};
|
|
2017
|
+
}
|
|
2018
|
+
export function namespaceDiscoveredAssetPropertiesSerializer(item) {
|
|
2019
|
+
return {
|
|
2020
|
+
deviceRef: deviceRefSerializer(item["deviceRef"]),
|
|
2021
|
+
displayName: item["displayName"],
|
|
2022
|
+
assetTypeRefs: !item["assetTypeRefs"]
|
|
2023
|
+
? item["assetTypeRefs"]
|
|
2024
|
+
: item["assetTypeRefs"].map((p) => {
|
|
2025
|
+
return p;
|
|
2026
|
+
}),
|
|
2027
|
+
description: item["description"],
|
|
2028
|
+
discoveryId: item["discoveryId"],
|
|
2029
|
+
externalAssetId: item["externalAssetId"],
|
|
2030
|
+
version: item["version"],
|
|
2031
|
+
manufacturer: item["manufacturer"],
|
|
2032
|
+
manufacturerUri: item["manufacturerUri"],
|
|
2033
|
+
model: item["model"],
|
|
2034
|
+
productCode: item["productCode"],
|
|
2035
|
+
hardwareRevision: item["hardwareRevision"],
|
|
2036
|
+
softwareRevision: item["softwareRevision"],
|
|
2037
|
+
documentationUri: item["documentationUri"],
|
|
2038
|
+
serialNumber: item["serialNumber"],
|
|
2039
|
+
attributes: item["attributes"],
|
|
2040
|
+
defaultDatasetsConfiguration: item["defaultDatasetsConfiguration"],
|
|
2041
|
+
defaultEventsConfiguration: item["defaultEventsConfiguration"],
|
|
2042
|
+
defaultStreamsConfiguration: item["defaultStreamsConfiguration"],
|
|
2043
|
+
defaultManagementGroupsConfiguration: item["defaultManagementGroupsConfiguration"],
|
|
2044
|
+
defaultDatasetsDestinations: !item["defaultDatasetsDestinations"]
|
|
2045
|
+
? item["defaultDatasetsDestinations"]
|
|
2046
|
+
: datasetDestinationUnionArraySerializer(item["defaultDatasetsDestinations"]),
|
|
2047
|
+
defaultEventsDestinations: !item["defaultEventsDestinations"]
|
|
2048
|
+
? item["defaultEventsDestinations"]
|
|
2049
|
+
: eventDestinationUnionArraySerializer(item["defaultEventsDestinations"]),
|
|
2050
|
+
defaultStreamsDestinations: !item["defaultStreamsDestinations"]
|
|
2051
|
+
? item["defaultStreamsDestinations"]
|
|
2052
|
+
: streamDestinationUnionArraySerializer(item["defaultStreamsDestinations"]),
|
|
2053
|
+
datasets: !item["datasets"]
|
|
2054
|
+
? item["datasets"]
|
|
2055
|
+
: namespaceDiscoveredDatasetArraySerializer(item["datasets"]),
|
|
2056
|
+
eventGroups: !item["eventGroups"]
|
|
2057
|
+
? item["eventGroups"]
|
|
2058
|
+
: namespaceDiscoveredEventGroupArraySerializer(item["eventGroups"]),
|
|
2059
|
+
streams: !item["streams"]
|
|
2060
|
+
? item["streams"]
|
|
2061
|
+
: namespaceDiscoveredStreamArraySerializer(item["streams"]),
|
|
2062
|
+
managementGroups: !item["managementGroups"]
|
|
2063
|
+
? item["managementGroups"]
|
|
2064
|
+
: namespaceDiscoveredManagementGroupArraySerializer(item["managementGroups"]),
|
|
2065
|
+
};
|
|
2066
|
+
}
|
|
2067
|
+
export function namespaceDiscoveredAssetPropertiesDeserializer(item) {
|
|
2068
|
+
return {
|
|
2069
|
+
deviceRef: deviceRefDeserializer(item["deviceRef"]),
|
|
2070
|
+
displayName: item["displayName"],
|
|
2071
|
+
assetTypeRefs: !item["assetTypeRefs"]
|
|
2072
|
+
? item["assetTypeRefs"]
|
|
2073
|
+
: item["assetTypeRefs"].map((p) => {
|
|
2074
|
+
return p;
|
|
2075
|
+
}),
|
|
2076
|
+
description: item["description"],
|
|
2077
|
+
discoveryId: item["discoveryId"],
|
|
2078
|
+
externalAssetId: item["externalAssetId"],
|
|
2079
|
+
version: item["version"],
|
|
2080
|
+
manufacturer: item["manufacturer"],
|
|
2081
|
+
manufacturerUri: item["manufacturerUri"],
|
|
2082
|
+
model: item["model"],
|
|
2083
|
+
productCode: item["productCode"],
|
|
2084
|
+
hardwareRevision: item["hardwareRevision"],
|
|
2085
|
+
softwareRevision: item["softwareRevision"],
|
|
2086
|
+
documentationUri: item["documentationUri"],
|
|
2087
|
+
serialNumber: item["serialNumber"],
|
|
2088
|
+
attributes: item["attributes"],
|
|
2089
|
+
defaultDatasetsConfiguration: item["defaultDatasetsConfiguration"],
|
|
2090
|
+
defaultEventsConfiguration: item["defaultEventsConfiguration"],
|
|
2091
|
+
defaultStreamsConfiguration: item["defaultStreamsConfiguration"],
|
|
2092
|
+
defaultManagementGroupsConfiguration: item["defaultManagementGroupsConfiguration"],
|
|
2093
|
+
defaultDatasetsDestinations: !item["defaultDatasetsDestinations"]
|
|
2094
|
+
? item["defaultDatasetsDestinations"]
|
|
2095
|
+
: datasetDestinationUnionArrayDeserializer(item["defaultDatasetsDestinations"]),
|
|
2096
|
+
defaultEventsDestinations: !item["defaultEventsDestinations"]
|
|
2097
|
+
? item["defaultEventsDestinations"]
|
|
2098
|
+
: eventDestinationUnionArrayDeserializer(item["defaultEventsDestinations"]),
|
|
2099
|
+
defaultStreamsDestinations: !item["defaultStreamsDestinations"]
|
|
2100
|
+
? item["defaultStreamsDestinations"]
|
|
2101
|
+
: streamDestinationUnionArrayDeserializer(item["defaultStreamsDestinations"]),
|
|
2102
|
+
datasets: !item["datasets"]
|
|
2103
|
+
? item["datasets"]
|
|
2104
|
+
: namespaceDiscoveredDatasetArrayDeserializer(item["datasets"]),
|
|
2105
|
+
eventGroups: !item["eventGroups"]
|
|
2106
|
+
? item["eventGroups"]
|
|
2107
|
+
: namespaceDiscoveredEventGroupArrayDeserializer(item["eventGroups"]),
|
|
2108
|
+
streams: !item["streams"]
|
|
2109
|
+
? item["streams"]
|
|
2110
|
+
: namespaceDiscoveredStreamArrayDeserializer(item["streams"]),
|
|
2111
|
+
managementGroups: !item["managementGroups"]
|
|
2112
|
+
? item["managementGroups"]
|
|
2113
|
+
: namespaceDiscoveredManagementGroupArrayDeserializer(item["managementGroups"]),
|
|
2114
|
+
provisioningState: item["provisioningState"],
|
|
2115
|
+
};
|
|
2116
|
+
}
|
|
2117
|
+
export function namespaceDiscoveredDatasetArraySerializer(result) {
|
|
2118
|
+
return result.map((item) => {
|
|
2119
|
+
return namespaceDiscoveredDatasetSerializer(item);
|
|
2120
|
+
});
|
|
2121
|
+
}
|
|
2122
|
+
export function namespaceDiscoveredDatasetArrayDeserializer(result) {
|
|
2123
|
+
return result.map((item) => {
|
|
2124
|
+
return namespaceDiscoveredDatasetDeserializer(item);
|
|
2125
|
+
});
|
|
2126
|
+
}
|
|
2127
|
+
export function namespaceDiscoveredDatasetSerializer(item) {
|
|
2128
|
+
return {
|
|
2129
|
+
name: item["name"],
|
|
2130
|
+
dataSource: item["dataSource"],
|
|
2131
|
+
typeRef: item["typeRef"],
|
|
2132
|
+
datasetConfiguration: item["datasetConfiguration"],
|
|
2133
|
+
destinations: !item["destinations"]
|
|
2134
|
+
? item["destinations"]
|
|
2135
|
+
: datasetDestinationUnionArraySerializer(item["destinations"]),
|
|
2136
|
+
dataPoints: !item["dataPoints"]
|
|
2137
|
+
? item["dataPoints"]
|
|
2138
|
+
: namespaceDiscoveredDatasetDataPointArraySerializer(item["dataPoints"]),
|
|
2139
|
+
lastUpdatedOn: !item["lastUpdatedOn"]
|
|
2140
|
+
? item["lastUpdatedOn"]
|
|
2141
|
+
: item["lastUpdatedOn"].toISOString(),
|
|
2142
|
+
};
|
|
2143
|
+
}
|
|
2144
|
+
export function namespaceDiscoveredDatasetDeserializer(item) {
|
|
2145
|
+
return {
|
|
2146
|
+
name: item["name"],
|
|
2147
|
+
dataSource: item["dataSource"],
|
|
2148
|
+
typeRef: item["typeRef"],
|
|
2149
|
+
datasetConfiguration: item["datasetConfiguration"],
|
|
2150
|
+
destinations: !item["destinations"]
|
|
2151
|
+
? item["destinations"]
|
|
2152
|
+
: datasetDestinationUnionArrayDeserializer(item["destinations"]),
|
|
2153
|
+
dataPoints: !item["dataPoints"]
|
|
2154
|
+
? item["dataPoints"]
|
|
2155
|
+
: namespaceDiscoveredDatasetDataPointArrayDeserializer(item["dataPoints"]),
|
|
2156
|
+
lastUpdatedOn: !item["lastUpdatedOn"] ? item["lastUpdatedOn"] : new Date(item["lastUpdatedOn"]),
|
|
2157
|
+
};
|
|
2158
|
+
}
|
|
2159
|
+
export function namespaceDiscoveredDatasetDataPointArraySerializer(result) {
|
|
2160
|
+
return result.map((item) => {
|
|
2161
|
+
return namespaceDiscoveredDatasetDataPointSerializer(item);
|
|
2162
|
+
});
|
|
2163
|
+
}
|
|
2164
|
+
export function namespaceDiscoveredDatasetDataPointArrayDeserializer(result) {
|
|
2165
|
+
return result.map((item) => {
|
|
2166
|
+
return namespaceDiscoveredDatasetDataPointDeserializer(item);
|
|
2167
|
+
});
|
|
2168
|
+
}
|
|
2169
|
+
export function namespaceDiscoveredDatasetDataPointSerializer(item) {
|
|
2170
|
+
return {
|
|
2171
|
+
name: item["name"],
|
|
2172
|
+
dataSource: item["dataSource"],
|
|
2173
|
+
dataPointConfiguration: item["dataPointConfiguration"],
|
|
2174
|
+
lastUpdatedOn: !item["lastUpdatedOn"]
|
|
2175
|
+
? item["lastUpdatedOn"]
|
|
2176
|
+
: item["lastUpdatedOn"].toISOString(),
|
|
2177
|
+
typeRef: item["typeRef"],
|
|
2178
|
+
};
|
|
2179
|
+
}
|
|
2180
|
+
export function namespaceDiscoveredDatasetDataPointDeserializer(item) {
|
|
2181
|
+
return {
|
|
2182
|
+
name: item["name"],
|
|
2183
|
+
dataSource: item["dataSource"],
|
|
2184
|
+
dataPointConfiguration: item["dataPointConfiguration"],
|
|
2185
|
+
lastUpdatedOn: !item["lastUpdatedOn"] ? item["lastUpdatedOn"] : new Date(item["lastUpdatedOn"]),
|
|
2186
|
+
typeRef: item["typeRef"],
|
|
2187
|
+
};
|
|
2188
|
+
}
|
|
2189
|
+
export function namespaceDiscoveredEventGroupArraySerializer(result) {
|
|
2190
|
+
return result.map((item) => {
|
|
2191
|
+
return namespaceDiscoveredEventGroupSerializer(item);
|
|
2192
|
+
});
|
|
2193
|
+
}
|
|
2194
|
+
export function namespaceDiscoveredEventGroupArrayDeserializer(result) {
|
|
2195
|
+
return result.map((item) => {
|
|
2196
|
+
return namespaceDiscoveredEventGroupDeserializer(item);
|
|
2197
|
+
});
|
|
2198
|
+
}
|
|
2199
|
+
export function namespaceDiscoveredEventGroupSerializer(item) {
|
|
2200
|
+
return {
|
|
2201
|
+
name: item["name"],
|
|
2202
|
+
dataSource: item["dataSource"],
|
|
2203
|
+
eventGroupConfiguration: item["eventGroupConfiguration"],
|
|
2204
|
+
defaultDestinations: !item["defaultDestinations"]
|
|
2205
|
+
? item["defaultDestinations"]
|
|
2206
|
+
: eventDestinationUnionArraySerializer(item["defaultDestinations"]),
|
|
2207
|
+
typeRef: item["typeRef"],
|
|
2208
|
+
events: !item["events"]
|
|
2209
|
+
? item["events"]
|
|
2210
|
+
: namespaceDiscoveredEventArraySerializer(item["events"]),
|
|
2211
|
+
};
|
|
2212
|
+
}
|
|
2213
|
+
export function namespaceDiscoveredEventGroupDeserializer(item) {
|
|
2214
|
+
return {
|
|
2215
|
+
name: item["name"],
|
|
2216
|
+
dataSource: item["dataSource"],
|
|
2217
|
+
eventGroupConfiguration: item["eventGroupConfiguration"],
|
|
2218
|
+
defaultDestinations: !item["defaultDestinations"]
|
|
2219
|
+
? item["defaultDestinations"]
|
|
2220
|
+
: eventDestinationUnionArrayDeserializer(item["defaultDestinations"]),
|
|
2221
|
+
typeRef: item["typeRef"],
|
|
2222
|
+
events: !item["events"]
|
|
2223
|
+
? item["events"]
|
|
2224
|
+
: namespaceDiscoveredEventArrayDeserializer(item["events"]),
|
|
2225
|
+
};
|
|
2226
|
+
}
|
|
2227
|
+
export function namespaceDiscoveredEventArraySerializer(result) {
|
|
2228
|
+
return result.map((item) => {
|
|
2229
|
+
return namespaceDiscoveredEventSerializer(item);
|
|
2230
|
+
});
|
|
2231
|
+
}
|
|
2232
|
+
export function namespaceDiscoveredEventArrayDeserializer(result) {
|
|
2233
|
+
return result.map((item) => {
|
|
2234
|
+
return namespaceDiscoveredEventDeserializer(item);
|
|
2235
|
+
});
|
|
2236
|
+
}
|
|
2237
|
+
export function namespaceDiscoveredEventSerializer(item) {
|
|
2238
|
+
return {
|
|
2239
|
+
name: item["name"],
|
|
2240
|
+
dataSource: item["dataSource"],
|
|
2241
|
+
eventConfiguration: item["eventConfiguration"],
|
|
2242
|
+
destinations: !item["destinations"]
|
|
2243
|
+
? item["destinations"]
|
|
2244
|
+
: eventDestinationUnionArraySerializer(item["destinations"]),
|
|
2245
|
+
typeRef: item["typeRef"],
|
|
2246
|
+
lastUpdatedOn: !item["lastUpdatedOn"]
|
|
2247
|
+
? item["lastUpdatedOn"]
|
|
2248
|
+
: item["lastUpdatedOn"].toISOString(),
|
|
2249
|
+
};
|
|
2250
|
+
}
|
|
2251
|
+
export function namespaceDiscoveredEventDeserializer(item) {
|
|
2252
|
+
return {
|
|
2253
|
+
name: item["name"],
|
|
2254
|
+
dataSource: item["dataSource"],
|
|
2255
|
+
eventConfiguration: item["eventConfiguration"],
|
|
2256
|
+
destinations: !item["destinations"]
|
|
2257
|
+
? item["destinations"]
|
|
2258
|
+
: eventDestinationUnionArrayDeserializer(item["destinations"]),
|
|
2259
|
+
typeRef: item["typeRef"],
|
|
2260
|
+
lastUpdatedOn: !item["lastUpdatedOn"] ? item["lastUpdatedOn"] : new Date(item["lastUpdatedOn"]),
|
|
2261
|
+
};
|
|
2262
|
+
}
|
|
2263
|
+
export function namespaceDiscoveredStreamArraySerializer(result) {
|
|
2264
|
+
return result.map((item) => {
|
|
2265
|
+
return namespaceDiscoveredStreamSerializer(item);
|
|
2266
|
+
});
|
|
2267
|
+
}
|
|
2268
|
+
export function namespaceDiscoveredStreamArrayDeserializer(result) {
|
|
2269
|
+
return result.map((item) => {
|
|
2270
|
+
return namespaceDiscoveredStreamDeserializer(item);
|
|
2271
|
+
});
|
|
2272
|
+
}
|
|
2273
|
+
export function namespaceDiscoveredStreamSerializer(item) {
|
|
2274
|
+
return {
|
|
2275
|
+
name: item["name"],
|
|
2276
|
+
streamConfiguration: item["streamConfiguration"],
|
|
2277
|
+
typeRef: item["typeRef"],
|
|
2278
|
+
destinations: !item["destinations"]
|
|
2279
|
+
? item["destinations"]
|
|
2280
|
+
: streamDestinationUnionArraySerializer(item["destinations"]),
|
|
2281
|
+
lastUpdatedOn: !item["lastUpdatedOn"]
|
|
2282
|
+
? item["lastUpdatedOn"]
|
|
2283
|
+
: item["lastUpdatedOn"].toISOString(),
|
|
2284
|
+
};
|
|
2285
|
+
}
|
|
2286
|
+
export function namespaceDiscoveredStreamDeserializer(item) {
|
|
2287
|
+
return {
|
|
2288
|
+
name: item["name"],
|
|
2289
|
+
streamConfiguration: item["streamConfiguration"],
|
|
2290
|
+
typeRef: item["typeRef"],
|
|
2291
|
+
destinations: !item["destinations"]
|
|
2292
|
+
? item["destinations"]
|
|
2293
|
+
: streamDestinationUnionArrayDeserializer(item["destinations"]),
|
|
2294
|
+
lastUpdatedOn: !item["lastUpdatedOn"] ? item["lastUpdatedOn"] : new Date(item["lastUpdatedOn"]),
|
|
2295
|
+
};
|
|
2296
|
+
}
|
|
2297
|
+
export function namespaceDiscoveredManagementGroupArraySerializer(result) {
|
|
2298
|
+
return result.map((item) => {
|
|
2299
|
+
return namespaceDiscoveredManagementGroupSerializer(item);
|
|
2300
|
+
});
|
|
2301
|
+
}
|
|
2302
|
+
export function namespaceDiscoveredManagementGroupArrayDeserializer(result) {
|
|
2303
|
+
return result.map((item) => {
|
|
2304
|
+
return namespaceDiscoveredManagementGroupDeserializer(item);
|
|
2305
|
+
});
|
|
2306
|
+
}
|
|
2307
|
+
export function namespaceDiscoveredManagementGroupSerializer(item) {
|
|
2308
|
+
return {
|
|
2309
|
+
name: item["name"],
|
|
2310
|
+
managementGroupConfiguration: item["managementGroupConfiguration"],
|
|
2311
|
+
typeRef: item["typeRef"],
|
|
2312
|
+
dataSource: item["dataSource"],
|
|
2313
|
+
defaultTopic: item["defaultTopic"],
|
|
2314
|
+
defaultTimeoutInSeconds: item["defaultTimeoutInSeconds"],
|
|
2315
|
+
actions: !item["actions"]
|
|
2316
|
+
? item["actions"]
|
|
2317
|
+
: namespaceDiscoveredManagementActionArraySerializer(item["actions"]),
|
|
2318
|
+
lastUpdatedOn: !item["lastUpdatedOn"]
|
|
2319
|
+
? item["lastUpdatedOn"]
|
|
2320
|
+
: item["lastUpdatedOn"].toISOString(),
|
|
2321
|
+
};
|
|
2322
|
+
}
|
|
2323
|
+
export function namespaceDiscoveredManagementGroupDeserializer(item) {
|
|
2324
|
+
return {
|
|
2325
|
+
name: item["name"],
|
|
2326
|
+
managementGroupConfiguration: item["managementGroupConfiguration"],
|
|
2327
|
+
typeRef: item["typeRef"],
|
|
2328
|
+
dataSource: item["dataSource"],
|
|
2329
|
+
defaultTopic: item["defaultTopic"],
|
|
2330
|
+
defaultTimeoutInSeconds: item["defaultTimeoutInSeconds"],
|
|
2331
|
+
actions: !item["actions"]
|
|
2332
|
+
? item["actions"]
|
|
2333
|
+
: namespaceDiscoveredManagementActionArrayDeserializer(item["actions"]),
|
|
2334
|
+
lastUpdatedOn: !item["lastUpdatedOn"] ? item["lastUpdatedOn"] : new Date(item["lastUpdatedOn"]),
|
|
2335
|
+
};
|
|
2336
|
+
}
|
|
2337
|
+
export function namespaceDiscoveredManagementActionArraySerializer(result) {
|
|
2338
|
+
return result.map((item) => {
|
|
2339
|
+
return namespaceDiscoveredManagementActionSerializer(item);
|
|
2340
|
+
});
|
|
2341
|
+
}
|
|
2342
|
+
export function namespaceDiscoveredManagementActionArrayDeserializer(result) {
|
|
2343
|
+
return result.map((item) => {
|
|
2344
|
+
return namespaceDiscoveredManagementActionDeserializer(item);
|
|
2345
|
+
});
|
|
2346
|
+
}
|
|
2347
|
+
export function namespaceDiscoveredManagementActionSerializer(item) {
|
|
2348
|
+
return {
|
|
2349
|
+
name: item["name"],
|
|
2350
|
+
actionConfiguration: item["actionConfiguration"],
|
|
2351
|
+
targetUri: item["targetUri"],
|
|
2352
|
+
typeRef: item["typeRef"],
|
|
2353
|
+
topic: item["topic"],
|
|
2354
|
+
actionType: item["actionType"],
|
|
2355
|
+
timeoutInSeconds: item["timeoutInSeconds"],
|
|
2356
|
+
lastUpdatedOn: !item["lastUpdatedOn"]
|
|
2357
|
+
? item["lastUpdatedOn"]
|
|
2358
|
+
: item["lastUpdatedOn"].toISOString(),
|
|
2359
|
+
};
|
|
2360
|
+
}
|
|
2361
|
+
export function namespaceDiscoveredManagementActionDeserializer(item) {
|
|
2362
|
+
return {
|
|
2363
|
+
name: item["name"],
|
|
2364
|
+
actionConfiguration: item["actionConfiguration"],
|
|
2365
|
+
targetUri: item["targetUri"],
|
|
2366
|
+
typeRef: item["typeRef"],
|
|
2367
|
+
topic: item["topic"],
|
|
2368
|
+
actionType: item["actionType"],
|
|
2369
|
+
timeoutInSeconds: item["timeoutInSeconds"],
|
|
2370
|
+
lastUpdatedOn: !item["lastUpdatedOn"] ? item["lastUpdatedOn"] : new Date(item["lastUpdatedOn"]),
|
|
2371
|
+
};
|
|
2372
|
+
}
|
|
2373
|
+
/** Defines the ManagementAction's type. */
|
|
2374
|
+
export var KnownNamespaceDiscoveredManagementActionType;
|
|
2375
|
+
(function (KnownNamespaceDiscoveredManagementActionType) {
|
|
2376
|
+
/** Call action type. */
|
|
2377
|
+
KnownNamespaceDiscoveredManagementActionType["Call"] = "Call";
|
|
2378
|
+
/** Read action type. */
|
|
2379
|
+
KnownNamespaceDiscoveredManagementActionType["Read"] = "Read";
|
|
2380
|
+
/** Write action type. */
|
|
2381
|
+
KnownNamespaceDiscoveredManagementActionType["Write"] = "Write";
|
|
2382
|
+
})(KnownNamespaceDiscoveredManagementActionType || (KnownNamespaceDiscoveredManagementActionType = {}));
|
|
2383
|
+
export function namespaceDiscoveredAssetUpdateSerializer(item) {
|
|
2384
|
+
return {
|
|
2385
|
+
tags: item["tags"],
|
|
2386
|
+
properties: !item["properties"]
|
|
2387
|
+
? item["properties"]
|
|
2388
|
+
: namespaceDiscoveredAssetUpdatePropertiesSerializer(item["properties"]),
|
|
2389
|
+
};
|
|
2390
|
+
}
|
|
2391
|
+
export function namespaceDiscoveredAssetUpdatePropertiesSerializer(item) {
|
|
2392
|
+
return {
|
|
2393
|
+
deviceRef: !item["deviceRef"] ? item["deviceRef"] : deviceRefSerializer(item["deviceRef"]),
|
|
2394
|
+
displayName: item["displayName"],
|
|
2395
|
+
assetTypeRefs: !item["assetTypeRefs"]
|
|
2396
|
+
? item["assetTypeRefs"]
|
|
2397
|
+
: item["assetTypeRefs"].map((p) => {
|
|
2398
|
+
return p;
|
|
2399
|
+
}),
|
|
2400
|
+
description: item["description"],
|
|
2401
|
+
discoveryId: item["discoveryId"],
|
|
2402
|
+
version: item["version"],
|
|
2403
|
+
manufacturer: item["manufacturer"],
|
|
2404
|
+
manufacturerUri: item["manufacturerUri"],
|
|
2405
|
+
model: item["model"],
|
|
2406
|
+
productCode: item["productCode"],
|
|
2407
|
+
hardwareRevision: item["hardwareRevision"],
|
|
2408
|
+
softwareRevision: item["softwareRevision"],
|
|
2409
|
+
documentationUri: item["documentationUri"],
|
|
2410
|
+
serialNumber: item["serialNumber"],
|
|
2411
|
+
attributes: item["attributes"],
|
|
2412
|
+
defaultDatasetsConfiguration: item["defaultDatasetsConfiguration"],
|
|
2413
|
+
defaultEventsConfiguration: item["defaultEventsConfiguration"],
|
|
2414
|
+
defaultStreamsConfiguration: item["defaultStreamsConfiguration"],
|
|
2415
|
+
defaultManagementGroupsConfiguration: item["defaultManagementGroupsConfiguration"],
|
|
2416
|
+
defaultDatasetsDestinations: !item["defaultDatasetsDestinations"]
|
|
2417
|
+
? item["defaultDatasetsDestinations"]
|
|
2418
|
+
: datasetDestinationUnionArraySerializer(item["defaultDatasetsDestinations"]),
|
|
2419
|
+
defaultEventsDestinations: !item["defaultEventsDestinations"]
|
|
2420
|
+
? item["defaultEventsDestinations"]
|
|
2421
|
+
: eventDestinationUnionArraySerializer(item["defaultEventsDestinations"]),
|
|
2422
|
+
defaultStreamsDestinations: !item["defaultStreamsDestinations"]
|
|
2423
|
+
? item["defaultStreamsDestinations"]
|
|
2424
|
+
: streamDestinationUnionArraySerializer(item["defaultStreamsDestinations"]),
|
|
2425
|
+
datasets: !item["datasets"]
|
|
2426
|
+
? item["datasets"]
|
|
2427
|
+
: namespaceDiscoveredDatasetArraySerializer(item["datasets"]),
|
|
2428
|
+
eventGroups: !item["eventGroups"]
|
|
2429
|
+
? item["eventGroups"]
|
|
2430
|
+
: namespaceDiscoveredEventGroupArraySerializer(item["eventGroups"]),
|
|
2431
|
+
streams: !item["streams"]
|
|
2432
|
+
? item["streams"]
|
|
2433
|
+
: namespaceDiscoveredStreamArraySerializer(item["streams"]),
|
|
2434
|
+
managementGroups: !item["managementGroups"]
|
|
2435
|
+
? item["managementGroups"]
|
|
2436
|
+
: namespaceDiscoveredManagementGroupArraySerializer(item["managementGroups"]),
|
|
2437
|
+
};
|
|
2438
|
+
}
|
|
2439
|
+
export function _namespaceDiscoveredAssetListResultDeserializer(item) {
|
|
2440
|
+
return {
|
|
2441
|
+
value: namespaceDiscoveredAssetArrayDeserializer(item["value"]),
|
|
2442
|
+
nextLink: item["nextLink"],
|
|
2443
|
+
};
|
|
2444
|
+
}
|
|
2445
|
+
export function namespaceDiscoveredAssetArraySerializer(result) {
|
|
2446
|
+
return result.map((item) => {
|
|
2447
|
+
return namespaceDiscoveredAssetSerializer(item);
|
|
2448
|
+
});
|
|
2449
|
+
}
|
|
2450
|
+
export function namespaceDiscoveredAssetArrayDeserializer(result) {
|
|
2451
|
+
return result.map((item) => {
|
|
2452
|
+
return namespaceDiscoveredAssetDeserializer(item);
|
|
2453
|
+
});
|
|
2454
|
+
}
|
|
2455
|
+
export function namespaceDiscoveredDeviceSerializer(item) {
|
|
2456
|
+
return {
|
|
2457
|
+
tags: item["tags"],
|
|
2458
|
+
location: item["location"],
|
|
2459
|
+
properties: !item["properties"]
|
|
2460
|
+
? item["properties"]
|
|
2461
|
+
: namespaceDiscoveredDevicePropertiesSerializer(item["properties"]),
|
|
2462
|
+
extendedLocation: extendedLocationSerializer(item["extendedLocation"]),
|
|
2463
|
+
};
|
|
2464
|
+
}
|
|
2465
|
+
export function namespaceDiscoveredDeviceDeserializer(item) {
|
|
2466
|
+
return {
|
|
2467
|
+
tags: item["tags"],
|
|
2468
|
+
location: item["location"],
|
|
2469
|
+
id: item["id"],
|
|
2470
|
+
name: item["name"],
|
|
2471
|
+
type: item["type"],
|
|
2472
|
+
systemData: !item["systemData"]
|
|
2473
|
+
? item["systemData"]
|
|
2474
|
+
: systemDataDeserializer(item["systemData"]),
|
|
2475
|
+
properties: !item["properties"]
|
|
2476
|
+
? item["properties"]
|
|
2477
|
+
: namespaceDiscoveredDevicePropertiesDeserializer(item["properties"]),
|
|
2478
|
+
extendedLocation: extendedLocationDeserializer(item["extendedLocation"]),
|
|
2479
|
+
};
|
|
2480
|
+
}
|
|
2481
|
+
export function namespaceDiscoveredDevicePropertiesSerializer(item) {
|
|
2482
|
+
return {
|
|
2483
|
+
externalDeviceId: item["externalDeviceId"],
|
|
2484
|
+
endpoints: !item["endpoints"]
|
|
2485
|
+
? item["endpoints"]
|
|
2486
|
+
: discoveredMessagingEndpointsSerializer(item["endpoints"]),
|
|
2487
|
+
manufacturer: item["manufacturer"],
|
|
2488
|
+
model: item["model"],
|
|
2489
|
+
operatingSystem: item["operatingSystem"],
|
|
2490
|
+
operatingSystemVersion: item["operatingSystemVersion"],
|
|
2491
|
+
attributes: item["attributes"],
|
|
2492
|
+
discoveryId: item["discoveryId"],
|
|
2493
|
+
version: item["version"],
|
|
2494
|
+
};
|
|
2495
|
+
}
|
|
2496
|
+
export function namespaceDiscoveredDevicePropertiesDeserializer(item) {
|
|
2497
|
+
return {
|
|
2498
|
+
externalDeviceId: item["externalDeviceId"],
|
|
2499
|
+
endpoints: !item["endpoints"]
|
|
2500
|
+
? item["endpoints"]
|
|
2501
|
+
: discoveredMessagingEndpointsDeserializer(item["endpoints"]),
|
|
2502
|
+
manufacturer: item["manufacturer"],
|
|
2503
|
+
model: item["model"],
|
|
2504
|
+
operatingSystem: item["operatingSystem"],
|
|
2505
|
+
operatingSystemVersion: item["operatingSystemVersion"],
|
|
2506
|
+
attributes: item["attributes"],
|
|
2507
|
+
discoveryId: item["discoveryId"],
|
|
2508
|
+
version: item["version"],
|
|
2509
|
+
provisioningState: item["provisioningState"],
|
|
2510
|
+
};
|
|
2511
|
+
}
|
|
2512
|
+
export function discoveredMessagingEndpointsSerializer(item) {
|
|
2513
|
+
return {
|
|
2514
|
+
inbound: !item["inbound"]
|
|
2515
|
+
? item["inbound"]
|
|
2516
|
+
: discoveredInboundEndpointsRecordSerializer(item["inbound"]),
|
|
2517
|
+
outbound: !item["outbound"]
|
|
2518
|
+
? item["outbound"]
|
|
2519
|
+
: discoveredOutboundEndpointsSerializer(item["outbound"]),
|
|
2520
|
+
};
|
|
2521
|
+
}
|
|
2522
|
+
export function discoveredMessagingEndpointsDeserializer(item) {
|
|
2523
|
+
return {
|
|
2524
|
+
inbound: !item["inbound"]
|
|
2525
|
+
? item["inbound"]
|
|
2526
|
+
: discoveredInboundEndpointsRecordDeserializer(item["inbound"]),
|
|
2527
|
+
outbound: !item["outbound"]
|
|
2528
|
+
? item["outbound"]
|
|
2529
|
+
: discoveredOutboundEndpointsDeserializer(item["outbound"]),
|
|
2530
|
+
};
|
|
2531
|
+
}
|
|
2532
|
+
export function discoveredInboundEndpointsRecordSerializer(item) {
|
|
2533
|
+
const result = {};
|
|
2534
|
+
Object.keys(item).map((key) => {
|
|
2535
|
+
result[key] = !item[key] ? item[key] : discoveredInboundEndpointsSerializer(item[key]);
|
|
2536
|
+
});
|
|
2537
|
+
return result;
|
|
2538
|
+
}
|
|
2539
|
+
export function discoveredInboundEndpointsRecordDeserializer(item) {
|
|
2540
|
+
const result = {};
|
|
2541
|
+
Object.keys(item).map((key) => {
|
|
2542
|
+
result[key] = !item[key] ? item[key] : discoveredInboundEndpointsDeserializer(item[key]);
|
|
2543
|
+
});
|
|
2544
|
+
return result;
|
|
2545
|
+
}
|
|
2546
|
+
export function discoveredInboundEndpointsSerializer(item) {
|
|
2547
|
+
return {
|
|
2548
|
+
endpointType: item["endpointType"],
|
|
2549
|
+
address: item["address"],
|
|
2550
|
+
version: item["version"],
|
|
2551
|
+
supportedAuthenticationMethods: !item["supportedAuthenticationMethods"]
|
|
2552
|
+
? item["supportedAuthenticationMethods"]
|
|
2553
|
+
: item["supportedAuthenticationMethods"].map((p) => {
|
|
2554
|
+
return p;
|
|
2555
|
+
}),
|
|
2556
|
+
additionalConfiguration: item["additionalConfiguration"],
|
|
2557
|
+
lastUpdatedOn: !item["lastUpdatedOn"]
|
|
2558
|
+
? item["lastUpdatedOn"]
|
|
2559
|
+
: item["lastUpdatedOn"].toISOString(),
|
|
2560
|
+
};
|
|
2561
|
+
}
|
|
2562
|
+
export function discoveredInboundEndpointsDeserializer(item) {
|
|
2563
|
+
return {
|
|
2564
|
+
endpointType: item["endpointType"],
|
|
2565
|
+
address: item["address"],
|
|
2566
|
+
version: item["version"],
|
|
2567
|
+
supportedAuthenticationMethods: !item["supportedAuthenticationMethods"]
|
|
2568
|
+
? item["supportedAuthenticationMethods"]
|
|
2569
|
+
: item["supportedAuthenticationMethods"].map((p) => {
|
|
2570
|
+
return p;
|
|
2571
|
+
}),
|
|
2572
|
+
additionalConfiguration: item["additionalConfiguration"],
|
|
2573
|
+
lastUpdatedOn: !item["lastUpdatedOn"] ? item["lastUpdatedOn"] : new Date(item["lastUpdatedOn"]),
|
|
2574
|
+
};
|
|
2575
|
+
}
|
|
2576
|
+
export function discoveredOutboundEndpointsSerializer(item) {
|
|
2577
|
+
return {
|
|
2578
|
+
assigned: deviceMessagingEndpointRecordSerializer(item["assigned"]),
|
|
2579
|
+
};
|
|
2580
|
+
}
|
|
2581
|
+
export function discoveredOutboundEndpointsDeserializer(item) {
|
|
2582
|
+
return {
|
|
2583
|
+
assigned: deviceMessagingEndpointRecordDeserializer(item["assigned"]),
|
|
2584
|
+
};
|
|
2585
|
+
}
|
|
2586
|
+
export function namespaceDiscoveredDeviceUpdateSerializer(item) {
|
|
2587
|
+
return {
|
|
2588
|
+
tags: item["tags"],
|
|
2589
|
+
properties: !item["properties"]
|
|
2590
|
+
? item["properties"]
|
|
2591
|
+
: namespaceDiscoveredDeviceUpdatePropertiesSerializer(item["properties"]),
|
|
2592
|
+
};
|
|
2593
|
+
}
|
|
2594
|
+
export function namespaceDiscoveredDeviceUpdatePropertiesSerializer(item) {
|
|
2595
|
+
return {
|
|
2596
|
+
externalDeviceId: item["externalDeviceId"],
|
|
2597
|
+
endpoints: !item["endpoints"]
|
|
2598
|
+
? item["endpoints"]
|
|
2599
|
+
: discoveredMessagingEndpointsSerializer(item["endpoints"]),
|
|
2600
|
+
operatingSystemVersion: item["operatingSystemVersion"],
|
|
2601
|
+
attributes: item["attributes"],
|
|
2602
|
+
discoveryId: item["discoveryId"],
|
|
2603
|
+
version: item["version"],
|
|
2604
|
+
};
|
|
2605
|
+
}
|
|
2606
|
+
export function _namespaceDiscoveredDeviceListResultDeserializer(item) {
|
|
2607
|
+
return {
|
|
2608
|
+
value: namespaceDiscoveredDeviceArrayDeserializer(item["value"]),
|
|
2609
|
+
nextLink: item["nextLink"],
|
|
2610
|
+
};
|
|
2611
|
+
}
|
|
2612
|
+
export function namespaceDiscoveredDeviceArraySerializer(result) {
|
|
2613
|
+
return result.map((item) => {
|
|
2614
|
+
return namespaceDiscoveredDeviceSerializer(item);
|
|
2615
|
+
});
|
|
2616
|
+
}
|
|
2617
|
+
export function namespaceDiscoveredDeviceArrayDeserializer(result) {
|
|
2618
|
+
return result.map((item) => {
|
|
2619
|
+
return namespaceDiscoveredDeviceDeserializer(item);
|
|
2620
|
+
});
|
|
2621
|
+
}
|
|
2622
|
+
export function schemaRegistrySerializer(item) {
|
|
2623
|
+
return {
|
|
2624
|
+
tags: item["tags"],
|
|
2625
|
+
location: item["location"],
|
|
2626
|
+
properties: !item["properties"]
|
|
2627
|
+
? item["properties"]
|
|
2628
|
+
: schemaRegistryPropertiesSerializer(item["properties"]),
|
|
2629
|
+
identity: !item["identity"]
|
|
2630
|
+
? item["identity"]
|
|
2631
|
+
: systemAssignedServiceIdentitySerializer(item["identity"]),
|
|
2632
|
+
};
|
|
2633
|
+
}
|
|
2634
|
+
export function schemaRegistryDeserializer(item) {
|
|
2635
|
+
return {
|
|
2636
|
+
tags: item["tags"],
|
|
2637
|
+
location: item["location"],
|
|
2638
|
+
id: item["id"],
|
|
2639
|
+
name: item["name"],
|
|
2640
|
+
type: item["type"],
|
|
2641
|
+
systemData: !item["systemData"]
|
|
2642
|
+
? item["systemData"]
|
|
2643
|
+
: systemDataDeserializer(item["systemData"]),
|
|
2644
|
+
properties: !item["properties"]
|
|
2645
|
+
? item["properties"]
|
|
2646
|
+
: schemaRegistryPropertiesDeserializer(item["properties"]),
|
|
2647
|
+
identity: !item["identity"]
|
|
2648
|
+
? item["identity"]
|
|
2649
|
+
: systemAssignedServiceIdentityDeserializer(item["identity"]),
|
|
2650
|
+
};
|
|
2651
|
+
}
|
|
2652
|
+
export function schemaRegistryPropertiesSerializer(item) {
|
|
2653
|
+
return {
|
|
2654
|
+
namespace: item["namespace"],
|
|
2655
|
+
displayName: item["displayName"],
|
|
2656
|
+
description: item["description"],
|
|
2657
|
+
storageAccountContainerUrl: item["storageAccountContainerUrl"],
|
|
2658
|
+
};
|
|
2659
|
+
}
|
|
2660
|
+
export function schemaRegistryPropertiesDeserializer(item) {
|
|
2661
|
+
return {
|
|
2662
|
+
uuid: item["uuid"],
|
|
2663
|
+
namespace: item["namespace"],
|
|
2664
|
+
displayName: item["displayName"],
|
|
2665
|
+
description: item["description"],
|
|
2666
|
+
storageAccountContainerUrl: item["storageAccountContainerUrl"],
|
|
2667
|
+
provisioningState: item["provisioningState"],
|
|
2668
|
+
};
|
|
2669
|
+
}
|
|
2670
|
+
export function schemaRegistryUpdateSerializer(item) {
|
|
2671
|
+
return {
|
|
2672
|
+
identity: !item["identity"]
|
|
2673
|
+
? item["identity"]
|
|
2674
|
+
: systemAssignedServiceIdentitySerializer(item["identity"]),
|
|
2675
|
+
tags: item["tags"],
|
|
2676
|
+
properties: !item["properties"]
|
|
2677
|
+
? item["properties"]
|
|
2678
|
+
: schemaRegistryUpdatePropertiesSerializer(item["properties"]),
|
|
2679
|
+
};
|
|
2680
|
+
}
|
|
2681
|
+
export function schemaRegistryUpdatePropertiesSerializer(item) {
|
|
2682
|
+
return { displayName: item["displayName"], description: item["description"] };
|
|
2683
|
+
}
|
|
2684
|
+
export function _schemaRegistryListResultDeserializer(item) {
|
|
2685
|
+
return {
|
|
2686
|
+
value: schemaRegistryArrayDeserializer(item["value"]),
|
|
2687
|
+
nextLink: item["nextLink"],
|
|
2688
|
+
};
|
|
2689
|
+
}
|
|
2690
|
+
export function schemaRegistryArraySerializer(result) {
|
|
2691
|
+
return result.map((item) => {
|
|
2692
|
+
return schemaRegistrySerializer(item);
|
|
2693
|
+
});
|
|
2694
|
+
}
|
|
2695
|
+
export function schemaRegistryArrayDeserializer(result) {
|
|
2696
|
+
return result.map((item) => {
|
|
2697
|
+
return schemaRegistryDeserializer(item);
|
|
2698
|
+
});
|
|
2699
|
+
}
|
|
2700
|
+
export function schemaSerializer(item) {
|
|
2701
|
+
return {
|
|
2702
|
+
properties: !item["properties"]
|
|
2703
|
+
? item["properties"]
|
|
2704
|
+
: schemaPropertiesSerializer(item["properties"]),
|
|
2705
|
+
};
|
|
2706
|
+
}
|
|
2707
|
+
export function schemaDeserializer(item) {
|
|
2708
|
+
return {
|
|
2709
|
+
id: item["id"],
|
|
2710
|
+
name: item["name"],
|
|
2711
|
+
type: item["type"],
|
|
2712
|
+
systemData: !item["systemData"]
|
|
2713
|
+
? item["systemData"]
|
|
2714
|
+
: systemDataDeserializer(item["systemData"]),
|
|
2715
|
+
properties: !item["properties"]
|
|
2716
|
+
? item["properties"]
|
|
2717
|
+
: schemaPropertiesDeserializer(item["properties"]),
|
|
2718
|
+
};
|
|
2719
|
+
}
|
|
2720
|
+
export function schemaPropertiesSerializer(item) {
|
|
2721
|
+
return {
|
|
2722
|
+
displayName: item["displayName"],
|
|
2723
|
+
description: item["description"],
|
|
2724
|
+
format: item["format"],
|
|
2725
|
+
schemaType: item["schemaType"],
|
|
2726
|
+
tags: item["tags"],
|
|
2727
|
+
};
|
|
2728
|
+
}
|
|
2729
|
+
export function schemaPropertiesDeserializer(item) {
|
|
2730
|
+
return {
|
|
2731
|
+
uuid: item["uuid"],
|
|
2732
|
+
displayName: item["displayName"],
|
|
2733
|
+
description: item["description"],
|
|
2734
|
+
format: item["format"],
|
|
2735
|
+
schemaType: item["schemaType"],
|
|
2736
|
+
provisioningState: item["provisioningState"],
|
|
2737
|
+
tags: item["tags"],
|
|
2738
|
+
};
|
|
2739
|
+
}
|
|
2740
|
+
/** Defines the schema format. */
|
|
2741
|
+
export var KnownFormat;
|
|
2742
|
+
(function (KnownFormat) {
|
|
2743
|
+
/** JSON Schema version draft 7 format */
|
|
2744
|
+
KnownFormat["JsonSchemaDraft7"] = "JsonSchema/draft-07";
|
|
2745
|
+
/** Delta format */
|
|
2746
|
+
KnownFormat["Delta10"] = "Delta/1.0";
|
|
2747
|
+
})(KnownFormat || (KnownFormat = {}));
|
|
2748
|
+
/** Defines the schema type. */
|
|
2749
|
+
export var KnownSchemaType;
|
|
2750
|
+
(function (KnownSchemaType) {
|
|
2751
|
+
/** Message Schema schema type */
|
|
2752
|
+
KnownSchemaType["MessageSchema"] = "MessageSchema";
|
|
2753
|
+
})(KnownSchemaType || (KnownSchemaType = {}));
|
|
2754
|
+
export function _schemaListResultDeserializer(item) {
|
|
2755
|
+
return {
|
|
2756
|
+
value: schemaArrayDeserializer(item["value"]),
|
|
2757
|
+
nextLink: item["nextLink"],
|
|
2758
|
+
};
|
|
2759
|
+
}
|
|
2760
|
+
export function schemaArraySerializer(result) {
|
|
2761
|
+
return result.map((item) => {
|
|
2762
|
+
return schemaSerializer(item);
|
|
2763
|
+
});
|
|
2764
|
+
}
|
|
2765
|
+
export function schemaArrayDeserializer(result) {
|
|
2766
|
+
return result.map((item) => {
|
|
2767
|
+
return schemaDeserializer(item);
|
|
2768
|
+
});
|
|
2769
|
+
}
|
|
2770
|
+
export function schemaVersionSerializer(item) {
|
|
2771
|
+
return {
|
|
2772
|
+
properties: !item["properties"]
|
|
2773
|
+
? item["properties"]
|
|
2774
|
+
: schemaVersionPropertiesSerializer(item["properties"]),
|
|
2775
|
+
};
|
|
2776
|
+
}
|
|
2777
|
+
export function schemaVersionDeserializer(item) {
|
|
2778
|
+
return {
|
|
2779
|
+
id: item["id"],
|
|
2780
|
+
name: item["name"],
|
|
2781
|
+
type: item["type"],
|
|
2782
|
+
systemData: !item["systemData"]
|
|
2783
|
+
? item["systemData"]
|
|
2784
|
+
: systemDataDeserializer(item["systemData"]),
|
|
2785
|
+
properties: !item["properties"]
|
|
2786
|
+
? item["properties"]
|
|
2787
|
+
: schemaVersionPropertiesDeserializer(item["properties"]),
|
|
2788
|
+
};
|
|
2789
|
+
}
|
|
2790
|
+
export function schemaVersionPropertiesSerializer(item) {
|
|
2791
|
+
return {
|
|
2792
|
+
description: item["description"],
|
|
2793
|
+
schemaContent: item["schemaContent"],
|
|
2794
|
+
};
|
|
2795
|
+
}
|
|
2796
|
+
export function schemaVersionPropertiesDeserializer(item) {
|
|
2797
|
+
return {
|
|
2798
|
+
uuid: item["uuid"],
|
|
2799
|
+
description: item["description"],
|
|
2800
|
+
schemaContent: item["schemaContent"],
|
|
2801
|
+
hash: item["hash"],
|
|
2802
|
+
provisioningState: item["provisioningState"],
|
|
2803
|
+
};
|
|
2804
|
+
}
|
|
2805
|
+
export function _schemaVersionListResultDeserializer(item) {
|
|
2806
|
+
return {
|
|
2807
|
+
value: schemaVersionArrayDeserializer(item["value"]),
|
|
2808
|
+
nextLink: item["nextLink"],
|
|
2809
|
+
};
|
|
2810
|
+
}
|
|
2811
|
+
export function schemaVersionArraySerializer(result) {
|
|
2812
|
+
return result.map((item) => {
|
|
2813
|
+
return schemaVersionSerializer(item);
|
|
2814
|
+
});
|
|
2815
|
+
}
|
|
2816
|
+
export function schemaVersionArrayDeserializer(result) {
|
|
2817
|
+
return result.map((item) => {
|
|
2818
|
+
return schemaVersionDeserializer(item);
|
|
2819
|
+
});
|
|
2820
|
+
}
|
|
718
2821
|
/** Microsoft.DeviceRegistry Resource Provider supported API versions. */
|
|
719
2822
|
export var KnownVersions;
|
|
720
2823
|
(function (KnownVersions) {
|
|
721
2824
|
/** Microsoft.DeviceRegistry Resource Provider management API version 2024-11-01. */
|
|
722
2825
|
KnownVersions["V20241101"] = "2024-11-01";
|
|
2826
|
+
/** Microsoft.DeviceRegistry Resource Provider management API version 2025-10-01. */
|
|
2827
|
+
KnownVersions["V20251001"] = "2025-10-01";
|
|
723
2828
|
})(KnownVersions || (KnownVersions = {}));
|
|
724
2829
|
//# sourceMappingURL=models.js.map
|