@azure/arm-sphere 1.0.0-beta.1
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/CHANGELOG.md +5 -0
- package/LICENSE +21 -0
- package/README.md +109 -0
- package/dist/index.js +6284 -0
- package/dist/index.js.map +1 -0
- package/dist/index.min.js +1 -0
- package/dist/index.min.js.map +1 -0
- package/dist-esm/samples-dev/catalogsCountDevicesSample.d.ts +2 -0
- package/dist-esm/samples-dev/catalogsCountDevicesSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/catalogsCountDevicesSample.js +39 -0
- package/dist-esm/samples-dev/catalogsCountDevicesSample.js.map +1 -0
- package/dist-esm/samples-dev/catalogsCreateOrUpdateSample.d.ts +2 -0
- package/dist-esm/samples-dev/catalogsCreateOrUpdateSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/catalogsCreateOrUpdateSample.js +40 -0
- package/dist-esm/samples-dev/catalogsCreateOrUpdateSample.js.map +1 -0
- package/dist-esm/samples-dev/catalogsDeleteSample.d.ts +2 -0
- package/dist-esm/samples-dev/catalogsDeleteSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/catalogsDeleteSample.js +39 -0
- package/dist-esm/samples-dev/catalogsDeleteSample.js.map +1 -0
- package/dist-esm/samples-dev/catalogsGetSample.d.ts +2 -0
- package/dist-esm/samples-dev/catalogsGetSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/catalogsGetSample.js +39 -0
- package/dist-esm/samples-dev/catalogsGetSample.js.map +1 -0
- package/dist-esm/samples-dev/catalogsListByResourceGroupSample.d.ts +2 -0
- package/dist-esm/samples-dev/catalogsListByResourceGroupSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/catalogsListByResourceGroupSample.js +59 -0
- package/dist-esm/samples-dev/catalogsListByResourceGroupSample.js.map +1 -0
- package/dist-esm/samples-dev/catalogsListBySubscriptionSample.d.ts +2 -0
- package/dist-esm/samples-dev/catalogsListBySubscriptionSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/catalogsListBySubscriptionSample.js +58 -0
- package/dist-esm/samples-dev/catalogsListBySubscriptionSample.js.map +1 -0
- package/dist-esm/samples-dev/catalogsListDeploymentsSample.d.ts +2 -0
- package/dist-esm/samples-dev/catalogsListDeploymentsSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/catalogsListDeploymentsSample.js +60 -0
- package/dist-esm/samples-dev/catalogsListDeploymentsSample.js.map +1 -0
- package/dist-esm/samples-dev/catalogsListDeviceGroupsSample.d.ts +2 -0
- package/dist-esm/samples-dev/catalogsListDeviceGroupsSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/catalogsListDeviceGroupsSample.js +63 -0
- package/dist-esm/samples-dev/catalogsListDeviceGroupsSample.js.map +1 -0
- package/dist-esm/samples-dev/catalogsListDeviceInsightsSample.d.ts +2 -0
- package/dist-esm/samples-dev/catalogsListDeviceInsightsSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/catalogsListDeviceInsightsSample.js +62 -0
- package/dist-esm/samples-dev/catalogsListDeviceInsightsSample.js.map +1 -0
- package/dist-esm/samples-dev/catalogsListDevicesSample.d.ts +2 -0
- package/dist-esm/samples-dev/catalogsListDevicesSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/catalogsListDevicesSample.js +60 -0
- package/dist-esm/samples-dev/catalogsListDevicesSample.js.map +1 -0
- package/dist-esm/samples-dev/catalogsUpdateSample.d.ts +2 -0
- package/dist-esm/samples-dev/catalogsUpdateSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/catalogsUpdateSample.js +40 -0
- package/dist-esm/samples-dev/catalogsUpdateSample.js.map +1 -0
- package/dist-esm/samples-dev/certificatesGetSample.d.ts +2 -0
- package/dist-esm/samples-dev/certificatesGetSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/certificatesGetSample.js +40 -0
- package/dist-esm/samples-dev/certificatesGetSample.js.map +1 -0
- package/dist-esm/samples-dev/certificatesListByCatalogSample.d.ts +2 -0
- package/dist-esm/samples-dev/certificatesListByCatalogSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/certificatesListByCatalogSample.js +60 -0
- package/dist-esm/samples-dev/certificatesListByCatalogSample.js.map +1 -0
- package/dist-esm/samples-dev/certificatesRetrieveCertChainSample.d.ts +2 -0
- package/dist-esm/samples-dev/certificatesRetrieveCertChainSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/certificatesRetrieveCertChainSample.js +40 -0
- package/dist-esm/samples-dev/certificatesRetrieveCertChainSample.js.map +1 -0
- package/dist-esm/samples-dev/certificatesRetrieveProofOfPossessionNonceSample.d.ts +2 -0
- package/dist-esm/samples-dev/certificatesRetrieveProofOfPossessionNonceSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/certificatesRetrieveProofOfPossessionNonceSample.js +43 -0
- package/dist-esm/samples-dev/certificatesRetrieveProofOfPossessionNonceSample.js.map +1 -0
- package/dist-esm/samples-dev/deploymentsCreateOrUpdateSample.d.ts +2 -0
- package/dist-esm/samples-dev/deploymentsCreateOrUpdateSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/deploymentsCreateOrUpdateSample.js +43 -0
- package/dist-esm/samples-dev/deploymentsCreateOrUpdateSample.js.map +1 -0
- package/dist-esm/samples-dev/deploymentsDeleteSample.d.ts +2 -0
- package/dist-esm/samples-dev/deploymentsDeleteSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/deploymentsDeleteSample.js +42 -0
- package/dist-esm/samples-dev/deploymentsDeleteSample.js.map +1 -0
- package/dist-esm/samples-dev/deploymentsGetSample.d.ts +2 -0
- package/dist-esm/samples-dev/deploymentsGetSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/deploymentsGetSample.js +42 -0
- package/dist-esm/samples-dev/deploymentsGetSample.js.map +1 -0
- package/dist-esm/samples-dev/deploymentsListByDeviceGroupSample.d.ts +2 -0
- package/dist-esm/samples-dev/deploymentsListByDeviceGroupSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/deploymentsListByDeviceGroupSample.js +62 -0
- package/dist-esm/samples-dev/deploymentsListByDeviceGroupSample.js.map +1 -0
- package/dist-esm/samples-dev/deviceGroupsClaimDevicesSample.d.ts +2 -0
- package/dist-esm/samples-dev/deviceGroupsClaimDevicesSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/deviceGroupsClaimDevicesSample.js +46 -0
- package/dist-esm/samples-dev/deviceGroupsClaimDevicesSample.js.map +1 -0
- package/dist-esm/samples-dev/deviceGroupsCountDevicesSample.d.ts +2 -0
- package/dist-esm/samples-dev/deviceGroupsCountDevicesSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/deviceGroupsCountDevicesSample.js +41 -0
- package/dist-esm/samples-dev/deviceGroupsCountDevicesSample.js.map +1 -0
- package/dist-esm/samples-dev/deviceGroupsCreateOrUpdateSample.d.ts +2 -0
- package/dist-esm/samples-dev/deviceGroupsCreateOrUpdateSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/deviceGroupsCreateOrUpdateSample.js +46 -0
- package/dist-esm/samples-dev/deviceGroupsCreateOrUpdateSample.js.map +1 -0
- package/dist-esm/samples-dev/deviceGroupsDeleteSample.d.ts +2 -0
- package/dist-esm/samples-dev/deviceGroupsDeleteSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/deviceGroupsDeleteSample.js +41 -0
- package/dist-esm/samples-dev/deviceGroupsDeleteSample.js.map +1 -0
- package/dist-esm/samples-dev/deviceGroupsGetSample.d.ts +2 -0
- package/dist-esm/samples-dev/deviceGroupsGetSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/deviceGroupsGetSample.js +41 -0
- package/dist-esm/samples-dev/deviceGroupsGetSample.js.map +1 -0
- package/dist-esm/samples-dev/deviceGroupsListByProductSample.d.ts +2 -0
- package/dist-esm/samples-dev/deviceGroupsListByProductSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/deviceGroupsListByProductSample.js +61 -0
- package/dist-esm/samples-dev/deviceGroupsListByProductSample.js.map +1 -0
- package/dist-esm/samples-dev/deviceGroupsUpdateSample.d.ts +2 -0
- package/dist-esm/samples-dev/deviceGroupsUpdateSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/deviceGroupsUpdateSample.js +42 -0
- package/dist-esm/samples-dev/deviceGroupsUpdateSample.js.map +1 -0
- package/dist-esm/samples-dev/devicesCreateOrUpdateSample.d.ts +2 -0
- package/dist-esm/samples-dev/devicesCreateOrUpdateSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/devicesCreateOrUpdateSample.js +43 -0
- package/dist-esm/samples-dev/devicesCreateOrUpdateSample.js.map +1 -0
- package/dist-esm/samples-dev/devicesDeleteSample.d.ts +2 -0
- package/dist-esm/samples-dev/devicesDeleteSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/devicesDeleteSample.js +42 -0
- package/dist-esm/samples-dev/devicesDeleteSample.js.map +1 -0
- package/dist-esm/samples-dev/devicesGenerateCapabilityImageSample.d.ts +2 -0
- package/dist-esm/samples-dev/devicesGenerateCapabilityImageSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/devicesGenerateCapabilityImageSample.js +45 -0
- package/dist-esm/samples-dev/devicesGenerateCapabilityImageSample.js.map +1 -0
- package/dist-esm/samples-dev/devicesGetSample.d.ts +2 -0
- package/dist-esm/samples-dev/devicesGetSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/devicesGetSample.js +42 -0
- package/dist-esm/samples-dev/devicesGetSample.js.map +1 -0
- package/dist-esm/samples-dev/devicesListByDeviceGroupSample.d.ts +2 -0
- package/dist-esm/samples-dev/devicesListByDeviceGroupSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/devicesListByDeviceGroupSample.js +62 -0
- package/dist-esm/samples-dev/devicesListByDeviceGroupSample.js.map +1 -0
- package/dist-esm/samples-dev/devicesUpdateSample.d.ts +2 -0
- package/dist-esm/samples-dev/devicesUpdateSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/devicesUpdateSample.js +43 -0
- package/dist-esm/samples-dev/devicesUpdateSample.js.map +1 -0
- package/dist-esm/samples-dev/imagesCreateOrUpdateSample.d.ts +2 -0
- package/dist-esm/samples-dev/imagesCreateOrUpdateSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/imagesCreateOrUpdateSample.js +41 -0
- package/dist-esm/samples-dev/imagesCreateOrUpdateSample.js.map +1 -0
- package/dist-esm/samples-dev/imagesDeleteSample.d.ts +2 -0
- package/dist-esm/samples-dev/imagesDeleteSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/imagesDeleteSample.js +40 -0
- package/dist-esm/samples-dev/imagesDeleteSample.js.map +1 -0
- package/dist-esm/samples-dev/imagesGetSample.d.ts +2 -0
- package/dist-esm/samples-dev/imagesGetSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/imagesGetSample.js +40 -0
- package/dist-esm/samples-dev/imagesGetSample.js.map +1 -0
- package/dist-esm/samples-dev/imagesListByCatalogSample.d.ts +2 -0
- package/dist-esm/samples-dev/imagesListByCatalogSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/imagesListByCatalogSample.js +60 -0
- package/dist-esm/samples-dev/imagesListByCatalogSample.js.map +1 -0
- package/dist-esm/samples-dev/operationsListSample.d.ts +2 -0
- package/dist-esm/samples-dev/operationsListSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/operationsListSample.js +58 -0
- package/dist-esm/samples-dev/operationsListSample.js.map +1 -0
- package/dist-esm/samples-dev/productsCountDevicesSample.d.ts +2 -0
- package/dist-esm/samples-dev/productsCountDevicesSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/productsCountDevicesSample.js +40 -0
- package/dist-esm/samples-dev/productsCountDevicesSample.js.map +1 -0
- package/dist-esm/samples-dev/productsCreateOrUpdateSample.d.ts +2 -0
- package/dist-esm/samples-dev/productsCreateOrUpdateSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/productsCreateOrUpdateSample.js +41 -0
- package/dist-esm/samples-dev/productsCreateOrUpdateSample.js.map +1 -0
- package/dist-esm/samples-dev/productsDeleteSample.d.ts +2 -0
- package/dist-esm/samples-dev/productsDeleteSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/productsDeleteSample.js +40 -0
- package/dist-esm/samples-dev/productsDeleteSample.js.map +1 -0
- package/dist-esm/samples-dev/productsGenerateDefaultDeviceGroupsSample.d.ts +2 -0
- package/dist-esm/samples-dev/productsGenerateDefaultDeviceGroupsSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/productsGenerateDefaultDeviceGroupsSample.js +61 -0
- package/dist-esm/samples-dev/productsGenerateDefaultDeviceGroupsSample.js.map +1 -0
- package/dist-esm/samples-dev/productsGetSample.d.ts +2 -0
- package/dist-esm/samples-dev/productsGetSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/productsGetSample.js +40 -0
- package/dist-esm/samples-dev/productsGetSample.js.map +1 -0
- package/dist-esm/samples-dev/productsListByCatalogSample.d.ts +2 -0
- package/dist-esm/samples-dev/productsListByCatalogSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/productsListByCatalogSample.js +60 -0
- package/dist-esm/samples-dev/productsListByCatalogSample.js.map +1 -0
- package/dist-esm/samples-dev/productsUpdateSample.d.ts +2 -0
- package/dist-esm/samples-dev/productsUpdateSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/productsUpdateSample.js +41 -0
- package/dist-esm/samples-dev/productsUpdateSample.js.map +1 -0
- package/dist-esm/src/azureSphereManagementClient.d.ts +27 -0
- package/dist-esm/src/azureSphereManagementClient.d.ts.map +1 -0
- package/dist-esm/src/azureSphereManagementClient.js +107 -0
- package/dist-esm/src/azureSphereManagementClient.js.map +1 -0
- package/dist-esm/src/index.d.ts +6 -0
- package/dist-esm/src/index.d.ts.map +1 -0
- package/dist-esm/src/index.js +13 -0
- package/dist-esm/src/index.js.map +1 -0
- package/dist-esm/src/lroImpl.d.ts +11 -0
- package/dist-esm/src/lroImpl.d.ts.map +1 -0
- package/dist-esm/src/lroImpl.js +21 -0
- package/dist-esm/src/lroImpl.js.map +1 -0
- package/dist-esm/src/models/index.d.ts +1318 -0
- package/dist-esm/src/models/index.d.ts.map +1 -0
- package/dist-esm/src/models/index.js +158 -0
- package/dist-esm/src/models/index.js.map +1 -0
- package/dist-esm/src/models/mappers.d.ts +61 -0
- package/dist-esm/src/models/mappers.d.ts.map +1 -0
- package/dist-esm/src/models/mappers.js +1441 -0
- package/dist-esm/src/models/mappers.js.map +1 -0
- package/dist-esm/src/models/parameters.d.ts +34 -0
- package/dist-esm/src/models/parameters.d.ts.map +1 -0
- package/dist-esm/src/models/parameters.js +265 -0
- package/dist-esm/src/models/parameters.js.map +1 -0
- package/dist-esm/src/operations/catalogs.d.ts +205 -0
- package/dist-esm/src/operations/catalogs.d.ts.map +1 -0
- package/dist-esm/src/operations/catalogs.js +1081 -0
- package/dist-esm/src/operations/catalogs.js.map +1 -0
- package/dist-esm/src/operations/certificates.d.ts +66 -0
- package/dist-esm/src/operations/certificates.d.ts.map +1 -0
- package/dist-esm/src/operations/certificates.js +269 -0
- package/dist-esm/src/operations/certificates.js.map +1 -0
- package/dist-esm/src/operations/deployments.d.ts +109 -0
- package/dist-esm/src/operations/deployments.d.ts.map +1 -0
- package/dist-esm/src/operations/deployments.js +436 -0
- package/dist-esm/src/operations/deployments.js.map +1 -0
- package/dist-esm/src/operations/deviceGroups.d.ts +150 -0
- package/dist-esm/src/operations/deviceGroups.d.ts.map +1 -0
- package/dist-esm/src/operations/deviceGroups.js +647 -0
- package/dist-esm/src/operations/deviceGroups.js.map +1 -0
- package/dist-esm/src/operations/devices.d.ts +152 -0
- package/dist-esm/src/operations/devices.d.ts.map +1 -0
- package/dist-esm/src/operations/devices.js +643 -0
- package/dist-esm/src/operations/devices.js.map +1 -0
- package/dist-esm/src/operations/images.d.ts +81 -0
- package/dist-esm/src/operations/images.d.ts.map +1 -0
- package/dist-esm/src/operations/images.js +369 -0
- package/dist-esm/src/operations/images.js.map +1 -0
- package/dist-esm/src/operations/index.d.ts +9 -0
- package/dist-esm/src/operations/index.d.ts.map +1 -0
- package/dist-esm/src/operations/index.js +16 -0
- package/dist-esm/src/operations/index.js.map +1 -0
- package/dist-esm/src/operations/operations.d.ts +32 -0
- package/dist-esm/src/operations/operations.d.ts.map +1 -0
- package/dist-esm/src/operations/operations.js +138 -0
- package/dist-esm/src/operations/operations.js.map +1 -0
- package/dist-esm/src/operations/products.d.ts +145 -0
- package/dist-esm/src/operations/products.d.ts.map +1 -0
- package/dist-esm/src/operations/products.js +639 -0
- package/dist-esm/src/operations/products.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/catalogs.d.ts +99 -0
- package/dist-esm/src/operationsInterfaces/catalogs.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/catalogs.js +9 -0
- package/dist-esm/src/operationsInterfaces/catalogs.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/certificates.d.ts +41 -0
- package/dist-esm/src/operationsInterfaces/certificates.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/certificates.js +9 -0
- package/dist-esm/src/operationsInterfaces/certificates.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/deployments.d.ts +79 -0
- package/dist-esm/src/operationsInterfaces/deployments.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/deployments.js +9 -0
- package/dist-esm/src/operationsInterfaces/deployments.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/deviceGroups.d.ts +122 -0
- package/dist-esm/src/operationsInterfaces/deviceGroups.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/deviceGroups.js +9 -0
- package/dist-esm/src/operationsInterfaces/deviceGroups.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/devices.d.ts +122 -0
- package/dist-esm/src/operationsInterfaces/devices.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/devices.js +9 -0
- package/dist-esm/src/operationsInterfaces/devices.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/images.d.ts +56 -0
- package/dist-esm/src/operationsInterfaces/images.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/images.js +9 -0
- package/dist-esm/src/operationsInterfaces/images.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/index.d.ts +9 -0
- package/dist-esm/src/operationsInterfaces/index.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/index.js +16 -0
- package/dist-esm/src/operationsInterfaces/index.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/operations.d.ts +11 -0
- package/dist-esm/src/operationsInterfaces/operations.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/operations.js +9 -0
- package/dist-esm/src/operationsInterfaces/operations.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/products.d.ts +99 -0
- package/dist-esm/src/operationsInterfaces/products.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/products.js +9 -0
- package/dist-esm/src/operationsInterfaces/products.js.map +1 -0
- package/dist-esm/src/pagingHelper.d.ts +13 -0
- package/dist-esm/src/pagingHelper.d.ts.map +1 -0
- package/dist-esm/src/pagingHelper.js +32 -0
- package/dist-esm/src/pagingHelper.js.map +1 -0
- package/dist-esm/test/sphere_operations_test.spec.d.ts +4 -0
- package/dist-esm/test/sphere_operations_test.spec.d.ts.map +1 -0
- package/dist-esm/test/sphere_operations_test.spec.js +145 -0
- package/dist-esm/test/sphere_operations_test.spec.js.map +1 -0
- package/package.json +123 -0
- package/review/arm-sphere.api.md +1112 -0
- package/rollup.config.js +122 -0
- package/src/azureSphereManagementClient.ts +172 -0
- package/src/index.ts +13 -0
- package/src/lroImpl.ts +42 -0
- package/src/models/index.ts +1534 -0
- package/src/models/mappers.ts +1562 -0
- package/src/models/parameters.ts +321 -0
- package/src/operations/catalogs.ts +1390 -0
- package/src/operations/certificates.ts +354 -0
- package/src/operations/deployments.ts +609 -0
- package/src/operations/deviceGroups.ts +912 -0
- package/src/operations/devices.ts +918 -0
- package/src/operations/images.ts +508 -0
- package/src/operations/index.ts +16 -0
- package/src/operations/operations.ts +149 -0
- package/src/operations/products.ts +884 -0
- package/src/operationsInterfaces/catalogs.ts +189 -0
- package/src/operationsInterfaces/certificates.ts +80 -0
- package/src/operationsInterfaces/deployments.ts +144 -0
- package/src/operationsInterfaces/deviceGroups.ts +233 -0
- package/src/operationsInterfaces/devices.ts +235 -0
- package/src/operationsInterfaces/images.ts +109 -0
- package/src/operationsInterfaces/index.ts +16 -0
- package/src/operationsInterfaces/operations.ts +22 -0
- package/src/operationsInterfaces/products.ts +186 -0
- package/src/pagingHelper.ts +39 -0
- package/tsconfig.json +33 -0
- package/types/arm-sphere.d.ts +2155 -0
- package/types/tsdoc-metadata.json +11 -0
|
@@ -0,0 +1,1081 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Copyright (c) Microsoft Corporation.
|
|
3
|
+
* Licensed under the MIT License.
|
|
4
|
+
*
|
|
5
|
+
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
6
|
+
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
7
|
+
*/
|
|
8
|
+
import { __asyncDelegator, __asyncGenerator, __asyncValues, __await, __awaiter } from "tslib";
|
|
9
|
+
import { setContinuationToken } from "../pagingHelper";
|
|
10
|
+
import * as coreClient from "@azure/core-client";
|
|
11
|
+
import * as Mappers from "../models/mappers";
|
|
12
|
+
import * as Parameters from "../models/parameters";
|
|
13
|
+
import { createHttpPoller } from "@azure/core-lro";
|
|
14
|
+
import { createLroSpec } from "../lroImpl";
|
|
15
|
+
/// <reference lib="esnext.asynciterable" />
|
|
16
|
+
/** Class containing Catalogs operations. */
|
|
17
|
+
export class CatalogsImpl {
|
|
18
|
+
/**
|
|
19
|
+
* Initialize a new instance of the class Catalogs class.
|
|
20
|
+
* @param client Reference to the service client
|
|
21
|
+
*/
|
|
22
|
+
constructor(client) {
|
|
23
|
+
this.client = client;
|
|
24
|
+
}
|
|
25
|
+
/**
|
|
26
|
+
* List Catalog resources by subscription ID
|
|
27
|
+
* @param options The options parameters.
|
|
28
|
+
*/
|
|
29
|
+
listBySubscription(options) {
|
|
30
|
+
const iter = this.listBySubscriptionPagingAll(options);
|
|
31
|
+
return {
|
|
32
|
+
next() {
|
|
33
|
+
return iter.next();
|
|
34
|
+
},
|
|
35
|
+
[Symbol.asyncIterator]() {
|
|
36
|
+
return this;
|
|
37
|
+
},
|
|
38
|
+
byPage: (settings) => {
|
|
39
|
+
if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
|
|
40
|
+
throw new Error("maxPageSize is not supported by this operation.");
|
|
41
|
+
}
|
|
42
|
+
return this.listBySubscriptionPagingPage(options, settings);
|
|
43
|
+
}
|
|
44
|
+
};
|
|
45
|
+
}
|
|
46
|
+
listBySubscriptionPagingPage(options, settings) {
|
|
47
|
+
return __asyncGenerator(this, arguments, function* listBySubscriptionPagingPage_1() {
|
|
48
|
+
let result;
|
|
49
|
+
let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
|
|
50
|
+
if (!continuationToken) {
|
|
51
|
+
result = yield __await(this._listBySubscription(options));
|
|
52
|
+
let page = result.value || [];
|
|
53
|
+
continuationToken = result.nextLink;
|
|
54
|
+
setContinuationToken(page, continuationToken);
|
|
55
|
+
yield yield __await(page);
|
|
56
|
+
}
|
|
57
|
+
while (continuationToken) {
|
|
58
|
+
result = yield __await(this._listBySubscriptionNext(continuationToken, options));
|
|
59
|
+
continuationToken = result.nextLink;
|
|
60
|
+
let page = result.value || [];
|
|
61
|
+
setContinuationToken(page, continuationToken);
|
|
62
|
+
yield yield __await(page);
|
|
63
|
+
}
|
|
64
|
+
});
|
|
65
|
+
}
|
|
66
|
+
listBySubscriptionPagingAll(options) {
|
|
67
|
+
return __asyncGenerator(this, arguments, function* listBySubscriptionPagingAll_1() {
|
|
68
|
+
var _a, e_1, _b, _c;
|
|
69
|
+
try {
|
|
70
|
+
for (var _d = true, _e = __asyncValues(this.listBySubscriptionPagingPage(options)), _f; _f = yield __await(_e.next()), _a = _f.done, !_a;) {
|
|
71
|
+
_c = _f.value;
|
|
72
|
+
_d = false;
|
|
73
|
+
try {
|
|
74
|
+
const page = _c;
|
|
75
|
+
yield __await(yield* __asyncDelegator(__asyncValues(page)));
|
|
76
|
+
}
|
|
77
|
+
finally {
|
|
78
|
+
_d = true;
|
|
79
|
+
}
|
|
80
|
+
}
|
|
81
|
+
}
|
|
82
|
+
catch (e_1_1) { e_1 = { error: e_1_1 }; }
|
|
83
|
+
finally {
|
|
84
|
+
try {
|
|
85
|
+
if (!_d && !_a && (_b = _e.return)) yield __await(_b.call(_e));
|
|
86
|
+
}
|
|
87
|
+
finally { if (e_1) throw e_1.error; }
|
|
88
|
+
}
|
|
89
|
+
});
|
|
90
|
+
}
|
|
91
|
+
/**
|
|
92
|
+
* List Catalog resources by resource group
|
|
93
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
94
|
+
* @param options The options parameters.
|
|
95
|
+
*/
|
|
96
|
+
listByResourceGroup(resourceGroupName, options) {
|
|
97
|
+
const iter = this.listByResourceGroupPagingAll(resourceGroupName, options);
|
|
98
|
+
return {
|
|
99
|
+
next() {
|
|
100
|
+
return iter.next();
|
|
101
|
+
},
|
|
102
|
+
[Symbol.asyncIterator]() {
|
|
103
|
+
return this;
|
|
104
|
+
},
|
|
105
|
+
byPage: (settings) => {
|
|
106
|
+
if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
|
|
107
|
+
throw new Error("maxPageSize is not supported by this operation.");
|
|
108
|
+
}
|
|
109
|
+
return this.listByResourceGroupPagingPage(resourceGroupName, options, settings);
|
|
110
|
+
}
|
|
111
|
+
};
|
|
112
|
+
}
|
|
113
|
+
listByResourceGroupPagingPage(resourceGroupName, options, settings) {
|
|
114
|
+
return __asyncGenerator(this, arguments, function* listByResourceGroupPagingPage_1() {
|
|
115
|
+
let result;
|
|
116
|
+
let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
|
|
117
|
+
if (!continuationToken) {
|
|
118
|
+
result = yield __await(this._listByResourceGroup(resourceGroupName, options));
|
|
119
|
+
let page = result.value || [];
|
|
120
|
+
continuationToken = result.nextLink;
|
|
121
|
+
setContinuationToken(page, continuationToken);
|
|
122
|
+
yield yield __await(page);
|
|
123
|
+
}
|
|
124
|
+
while (continuationToken) {
|
|
125
|
+
result = yield __await(this._listByResourceGroupNext(resourceGroupName, continuationToken, options));
|
|
126
|
+
continuationToken = result.nextLink;
|
|
127
|
+
let page = result.value || [];
|
|
128
|
+
setContinuationToken(page, continuationToken);
|
|
129
|
+
yield yield __await(page);
|
|
130
|
+
}
|
|
131
|
+
});
|
|
132
|
+
}
|
|
133
|
+
listByResourceGroupPagingAll(resourceGroupName, options) {
|
|
134
|
+
return __asyncGenerator(this, arguments, function* listByResourceGroupPagingAll_1() {
|
|
135
|
+
var _a, e_2, _b, _c;
|
|
136
|
+
try {
|
|
137
|
+
for (var _d = true, _e = __asyncValues(this.listByResourceGroupPagingPage(resourceGroupName, options)), _f; _f = yield __await(_e.next()), _a = _f.done, !_a;) {
|
|
138
|
+
_c = _f.value;
|
|
139
|
+
_d = false;
|
|
140
|
+
try {
|
|
141
|
+
const page = _c;
|
|
142
|
+
yield __await(yield* __asyncDelegator(__asyncValues(page)));
|
|
143
|
+
}
|
|
144
|
+
finally {
|
|
145
|
+
_d = true;
|
|
146
|
+
}
|
|
147
|
+
}
|
|
148
|
+
}
|
|
149
|
+
catch (e_2_1) { e_2 = { error: e_2_1 }; }
|
|
150
|
+
finally {
|
|
151
|
+
try {
|
|
152
|
+
if (!_d && !_a && (_b = _e.return)) yield __await(_b.call(_e));
|
|
153
|
+
}
|
|
154
|
+
finally { if (e_2) throw e_2.error; }
|
|
155
|
+
}
|
|
156
|
+
});
|
|
157
|
+
}
|
|
158
|
+
/**
|
|
159
|
+
* Lists deployments for catalog.
|
|
160
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
161
|
+
* @param catalogName Name of catalog
|
|
162
|
+
* @param options The options parameters.
|
|
163
|
+
*/
|
|
164
|
+
listDeployments(resourceGroupName, catalogName, options) {
|
|
165
|
+
const iter = this.listDeploymentsPagingAll(resourceGroupName, catalogName, options);
|
|
166
|
+
return {
|
|
167
|
+
next() {
|
|
168
|
+
return iter.next();
|
|
169
|
+
},
|
|
170
|
+
[Symbol.asyncIterator]() {
|
|
171
|
+
return this;
|
|
172
|
+
},
|
|
173
|
+
byPage: (settings) => {
|
|
174
|
+
if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
|
|
175
|
+
throw new Error("maxPageSize is not supported by this operation.");
|
|
176
|
+
}
|
|
177
|
+
return this.listDeploymentsPagingPage(resourceGroupName, catalogName, options, settings);
|
|
178
|
+
}
|
|
179
|
+
};
|
|
180
|
+
}
|
|
181
|
+
listDeploymentsPagingPage(resourceGroupName, catalogName, options, settings) {
|
|
182
|
+
return __asyncGenerator(this, arguments, function* listDeploymentsPagingPage_1() {
|
|
183
|
+
let result;
|
|
184
|
+
let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
|
|
185
|
+
if (!continuationToken) {
|
|
186
|
+
result = yield __await(this._listDeployments(resourceGroupName, catalogName, options));
|
|
187
|
+
let page = result.value || [];
|
|
188
|
+
continuationToken = result.nextLink;
|
|
189
|
+
setContinuationToken(page, continuationToken);
|
|
190
|
+
yield yield __await(page);
|
|
191
|
+
}
|
|
192
|
+
while (continuationToken) {
|
|
193
|
+
result = yield __await(this._listDeploymentsNext(resourceGroupName, catalogName, continuationToken, options));
|
|
194
|
+
continuationToken = result.nextLink;
|
|
195
|
+
let page = result.value || [];
|
|
196
|
+
setContinuationToken(page, continuationToken);
|
|
197
|
+
yield yield __await(page);
|
|
198
|
+
}
|
|
199
|
+
});
|
|
200
|
+
}
|
|
201
|
+
listDeploymentsPagingAll(resourceGroupName, catalogName, options) {
|
|
202
|
+
return __asyncGenerator(this, arguments, function* listDeploymentsPagingAll_1() {
|
|
203
|
+
var _a, e_3, _b, _c;
|
|
204
|
+
try {
|
|
205
|
+
for (var _d = true, _e = __asyncValues(this.listDeploymentsPagingPage(resourceGroupName, catalogName, options)), _f; _f = yield __await(_e.next()), _a = _f.done, !_a;) {
|
|
206
|
+
_c = _f.value;
|
|
207
|
+
_d = false;
|
|
208
|
+
try {
|
|
209
|
+
const page = _c;
|
|
210
|
+
yield __await(yield* __asyncDelegator(__asyncValues(page)));
|
|
211
|
+
}
|
|
212
|
+
finally {
|
|
213
|
+
_d = true;
|
|
214
|
+
}
|
|
215
|
+
}
|
|
216
|
+
}
|
|
217
|
+
catch (e_3_1) { e_3 = { error: e_3_1 }; }
|
|
218
|
+
finally {
|
|
219
|
+
try {
|
|
220
|
+
if (!_d && !_a && (_b = _e.return)) yield __await(_b.call(_e));
|
|
221
|
+
}
|
|
222
|
+
finally { if (e_3) throw e_3.error; }
|
|
223
|
+
}
|
|
224
|
+
});
|
|
225
|
+
}
|
|
226
|
+
/**
|
|
227
|
+
* List the device groups for the catalog.
|
|
228
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
229
|
+
* @param catalogName Name of catalog
|
|
230
|
+
* @param listDeviceGroupsRequest List device groups for catalog.
|
|
231
|
+
* @param options The options parameters.
|
|
232
|
+
*/
|
|
233
|
+
listDeviceGroups(resourceGroupName, catalogName, listDeviceGroupsRequest, options) {
|
|
234
|
+
const iter = this.listDeviceGroupsPagingAll(resourceGroupName, catalogName, listDeviceGroupsRequest, options);
|
|
235
|
+
return {
|
|
236
|
+
next() {
|
|
237
|
+
return iter.next();
|
|
238
|
+
},
|
|
239
|
+
[Symbol.asyncIterator]() {
|
|
240
|
+
return this;
|
|
241
|
+
},
|
|
242
|
+
byPage: (settings) => {
|
|
243
|
+
if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
|
|
244
|
+
throw new Error("maxPageSize is not supported by this operation.");
|
|
245
|
+
}
|
|
246
|
+
return this.listDeviceGroupsPagingPage(resourceGroupName, catalogName, listDeviceGroupsRequest, options, settings);
|
|
247
|
+
}
|
|
248
|
+
};
|
|
249
|
+
}
|
|
250
|
+
listDeviceGroupsPagingPage(resourceGroupName, catalogName, listDeviceGroupsRequest, options, settings) {
|
|
251
|
+
return __asyncGenerator(this, arguments, function* listDeviceGroupsPagingPage_1() {
|
|
252
|
+
let result;
|
|
253
|
+
let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
|
|
254
|
+
if (!continuationToken) {
|
|
255
|
+
result = yield __await(this._listDeviceGroups(resourceGroupName, catalogName, listDeviceGroupsRequest, options));
|
|
256
|
+
let page = result.value || [];
|
|
257
|
+
continuationToken = result.nextLink;
|
|
258
|
+
setContinuationToken(page, continuationToken);
|
|
259
|
+
yield yield __await(page);
|
|
260
|
+
}
|
|
261
|
+
while (continuationToken) {
|
|
262
|
+
result = yield __await(this._listDeviceGroupsNext(resourceGroupName, catalogName, listDeviceGroupsRequest, continuationToken, options));
|
|
263
|
+
continuationToken = result.nextLink;
|
|
264
|
+
let page = result.value || [];
|
|
265
|
+
setContinuationToken(page, continuationToken);
|
|
266
|
+
yield yield __await(page);
|
|
267
|
+
}
|
|
268
|
+
});
|
|
269
|
+
}
|
|
270
|
+
listDeviceGroupsPagingAll(resourceGroupName, catalogName, listDeviceGroupsRequest, options) {
|
|
271
|
+
return __asyncGenerator(this, arguments, function* listDeviceGroupsPagingAll_1() {
|
|
272
|
+
var _a, e_4, _b, _c;
|
|
273
|
+
try {
|
|
274
|
+
for (var _d = true, _e = __asyncValues(this.listDeviceGroupsPagingPage(resourceGroupName, catalogName, listDeviceGroupsRequest, options)), _f; _f = yield __await(_e.next()), _a = _f.done, !_a;) {
|
|
275
|
+
_c = _f.value;
|
|
276
|
+
_d = false;
|
|
277
|
+
try {
|
|
278
|
+
const page = _c;
|
|
279
|
+
yield __await(yield* __asyncDelegator(__asyncValues(page)));
|
|
280
|
+
}
|
|
281
|
+
finally {
|
|
282
|
+
_d = true;
|
|
283
|
+
}
|
|
284
|
+
}
|
|
285
|
+
}
|
|
286
|
+
catch (e_4_1) { e_4 = { error: e_4_1 }; }
|
|
287
|
+
finally {
|
|
288
|
+
try {
|
|
289
|
+
if (!_d && !_a && (_b = _e.return)) yield __await(_b.call(_e));
|
|
290
|
+
}
|
|
291
|
+
finally { if (e_4) throw e_4.error; }
|
|
292
|
+
}
|
|
293
|
+
});
|
|
294
|
+
}
|
|
295
|
+
/**
|
|
296
|
+
* Lists device insights for catalog.
|
|
297
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
298
|
+
* @param catalogName Name of catalog
|
|
299
|
+
* @param options The options parameters.
|
|
300
|
+
*/
|
|
301
|
+
listDeviceInsights(resourceGroupName, catalogName, options) {
|
|
302
|
+
const iter = this.listDeviceInsightsPagingAll(resourceGroupName, catalogName, options);
|
|
303
|
+
return {
|
|
304
|
+
next() {
|
|
305
|
+
return iter.next();
|
|
306
|
+
},
|
|
307
|
+
[Symbol.asyncIterator]() {
|
|
308
|
+
return this;
|
|
309
|
+
},
|
|
310
|
+
byPage: (settings) => {
|
|
311
|
+
if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
|
|
312
|
+
throw new Error("maxPageSize is not supported by this operation.");
|
|
313
|
+
}
|
|
314
|
+
return this.listDeviceInsightsPagingPage(resourceGroupName, catalogName, options, settings);
|
|
315
|
+
}
|
|
316
|
+
};
|
|
317
|
+
}
|
|
318
|
+
listDeviceInsightsPagingPage(resourceGroupName, catalogName, options, settings) {
|
|
319
|
+
return __asyncGenerator(this, arguments, function* listDeviceInsightsPagingPage_1() {
|
|
320
|
+
let result;
|
|
321
|
+
let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
|
|
322
|
+
if (!continuationToken) {
|
|
323
|
+
result = yield __await(this._listDeviceInsights(resourceGroupName, catalogName, options));
|
|
324
|
+
let page = result.value || [];
|
|
325
|
+
continuationToken = result.nextLink;
|
|
326
|
+
setContinuationToken(page, continuationToken);
|
|
327
|
+
yield yield __await(page);
|
|
328
|
+
}
|
|
329
|
+
while (continuationToken) {
|
|
330
|
+
result = yield __await(this._listDeviceInsightsNext(resourceGroupName, catalogName, continuationToken, options));
|
|
331
|
+
continuationToken = result.nextLink;
|
|
332
|
+
let page = result.value || [];
|
|
333
|
+
setContinuationToken(page, continuationToken);
|
|
334
|
+
yield yield __await(page);
|
|
335
|
+
}
|
|
336
|
+
});
|
|
337
|
+
}
|
|
338
|
+
listDeviceInsightsPagingAll(resourceGroupName, catalogName, options) {
|
|
339
|
+
return __asyncGenerator(this, arguments, function* listDeviceInsightsPagingAll_1() {
|
|
340
|
+
var _a, e_5, _b, _c;
|
|
341
|
+
try {
|
|
342
|
+
for (var _d = true, _e = __asyncValues(this.listDeviceInsightsPagingPage(resourceGroupName, catalogName, options)), _f; _f = yield __await(_e.next()), _a = _f.done, !_a;) {
|
|
343
|
+
_c = _f.value;
|
|
344
|
+
_d = false;
|
|
345
|
+
try {
|
|
346
|
+
const page = _c;
|
|
347
|
+
yield __await(yield* __asyncDelegator(__asyncValues(page)));
|
|
348
|
+
}
|
|
349
|
+
finally {
|
|
350
|
+
_d = true;
|
|
351
|
+
}
|
|
352
|
+
}
|
|
353
|
+
}
|
|
354
|
+
catch (e_5_1) { e_5 = { error: e_5_1 }; }
|
|
355
|
+
finally {
|
|
356
|
+
try {
|
|
357
|
+
if (!_d && !_a && (_b = _e.return)) yield __await(_b.call(_e));
|
|
358
|
+
}
|
|
359
|
+
finally { if (e_5) throw e_5.error; }
|
|
360
|
+
}
|
|
361
|
+
});
|
|
362
|
+
}
|
|
363
|
+
/**
|
|
364
|
+
* Lists devices for catalog.
|
|
365
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
366
|
+
* @param catalogName Name of catalog
|
|
367
|
+
* @param options The options parameters.
|
|
368
|
+
*/
|
|
369
|
+
listDevices(resourceGroupName, catalogName, options) {
|
|
370
|
+
const iter = this.listDevicesPagingAll(resourceGroupName, catalogName, options);
|
|
371
|
+
return {
|
|
372
|
+
next() {
|
|
373
|
+
return iter.next();
|
|
374
|
+
},
|
|
375
|
+
[Symbol.asyncIterator]() {
|
|
376
|
+
return this;
|
|
377
|
+
},
|
|
378
|
+
byPage: (settings) => {
|
|
379
|
+
if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
|
|
380
|
+
throw new Error("maxPageSize is not supported by this operation.");
|
|
381
|
+
}
|
|
382
|
+
return this.listDevicesPagingPage(resourceGroupName, catalogName, options, settings);
|
|
383
|
+
}
|
|
384
|
+
};
|
|
385
|
+
}
|
|
386
|
+
listDevicesPagingPage(resourceGroupName, catalogName, options, settings) {
|
|
387
|
+
return __asyncGenerator(this, arguments, function* listDevicesPagingPage_1() {
|
|
388
|
+
let result;
|
|
389
|
+
let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
|
|
390
|
+
if (!continuationToken) {
|
|
391
|
+
result = yield __await(this._listDevices(resourceGroupName, catalogName, options));
|
|
392
|
+
let page = result.value || [];
|
|
393
|
+
continuationToken = result.nextLink;
|
|
394
|
+
setContinuationToken(page, continuationToken);
|
|
395
|
+
yield yield __await(page);
|
|
396
|
+
}
|
|
397
|
+
while (continuationToken) {
|
|
398
|
+
result = yield __await(this._listDevicesNext(resourceGroupName, catalogName, continuationToken, options));
|
|
399
|
+
continuationToken = result.nextLink;
|
|
400
|
+
let page = result.value || [];
|
|
401
|
+
setContinuationToken(page, continuationToken);
|
|
402
|
+
yield yield __await(page);
|
|
403
|
+
}
|
|
404
|
+
});
|
|
405
|
+
}
|
|
406
|
+
listDevicesPagingAll(resourceGroupName, catalogName, options) {
|
|
407
|
+
return __asyncGenerator(this, arguments, function* listDevicesPagingAll_1() {
|
|
408
|
+
var _a, e_6, _b, _c;
|
|
409
|
+
try {
|
|
410
|
+
for (var _d = true, _e = __asyncValues(this.listDevicesPagingPage(resourceGroupName, catalogName, options)), _f; _f = yield __await(_e.next()), _a = _f.done, !_a;) {
|
|
411
|
+
_c = _f.value;
|
|
412
|
+
_d = false;
|
|
413
|
+
try {
|
|
414
|
+
const page = _c;
|
|
415
|
+
yield __await(yield* __asyncDelegator(__asyncValues(page)));
|
|
416
|
+
}
|
|
417
|
+
finally {
|
|
418
|
+
_d = true;
|
|
419
|
+
}
|
|
420
|
+
}
|
|
421
|
+
}
|
|
422
|
+
catch (e_6_1) { e_6 = { error: e_6_1 }; }
|
|
423
|
+
finally {
|
|
424
|
+
try {
|
|
425
|
+
if (!_d && !_a && (_b = _e.return)) yield __await(_b.call(_e));
|
|
426
|
+
}
|
|
427
|
+
finally { if (e_6) throw e_6.error; }
|
|
428
|
+
}
|
|
429
|
+
});
|
|
430
|
+
}
|
|
431
|
+
/**
|
|
432
|
+
* List Catalog resources by subscription ID
|
|
433
|
+
* @param options The options parameters.
|
|
434
|
+
*/
|
|
435
|
+
_listBySubscription(options) {
|
|
436
|
+
return this.client.sendOperationRequest({ options }, listBySubscriptionOperationSpec);
|
|
437
|
+
}
|
|
438
|
+
/**
|
|
439
|
+
* List Catalog resources by resource group
|
|
440
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
441
|
+
* @param options The options parameters.
|
|
442
|
+
*/
|
|
443
|
+
_listByResourceGroup(resourceGroupName, options) {
|
|
444
|
+
return this.client.sendOperationRequest({ resourceGroupName, options }, listByResourceGroupOperationSpec);
|
|
445
|
+
}
|
|
446
|
+
/**
|
|
447
|
+
* Get a Catalog
|
|
448
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
449
|
+
* @param catalogName Name of catalog
|
|
450
|
+
* @param options The options parameters.
|
|
451
|
+
*/
|
|
452
|
+
get(resourceGroupName, catalogName, options) {
|
|
453
|
+
return this.client.sendOperationRequest({ resourceGroupName, catalogName, options }, getOperationSpec);
|
|
454
|
+
}
|
|
455
|
+
/**
|
|
456
|
+
* Create a Catalog
|
|
457
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
458
|
+
* @param catalogName Name of catalog
|
|
459
|
+
* @param resource Resource create parameters.
|
|
460
|
+
* @param options The options parameters.
|
|
461
|
+
*/
|
|
462
|
+
beginCreateOrUpdate(resourceGroupName, catalogName, resource, options) {
|
|
463
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
464
|
+
const directSendOperation = (args, spec) => __awaiter(this, void 0, void 0, function* () {
|
|
465
|
+
return this.client.sendOperationRequest(args, spec);
|
|
466
|
+
});
|
|
467
|
+
const sendOperationFn = (args, spec) => __awaiter(this, void 0, void 0, function* () {
|
|
468
|
+
var _a;
|
|
469
|
+
let currentRawResponse = undefined;
|
|
470
|
+
const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
|
|
471
|
+
const callback = (rawResponse, flatResponse) => {
|
|
472
|
+
currentRawResponse = rawResponse;
|
|
473
|
+
providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
|
|
474
|
+
};
|
|
475
|
+
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
476
|
+
const flatResponse = yield directSendOperation(updatedArgs, spec);
|
|
477
|
+
return {
|
|
478
|
+
flatResponse,
|
|
479
|
+
rawResponse: {
|
|
480
|
+
statusCode: currentRawResponse.status,
|
|
481
|
+
body: currentRawResponse.parsedBody,
|
|
482
|
+
headers: currentRawResponse.headers.toJSON()
|
|
483
|
+
}
|
|
484
|
+
};
|
|
485
|
+
});
|
|
486
|
+
const lro = createLroSpec({
|
|
487
|
+
sendOperationFn,
|
|
488
|
+
args: { resourceGroupName, catalogName, resource, options },
|
|
489
|
+
spec: createOrUpdateOperationSpec
|
|
490
|
+
});
|
|
491
|
+
const poller = yield createHttpPoller(lro, {
|
|
492
|
+
restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
|
|
493
|
+
intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
|
|
494
|
+
resourceLocationConfig: "azure-async-operation"
|
|
495
|
+
});
|
|
496
|
+
yield poller.poll();
|
|
497
|
+
return poller;
|
|
498
|
+
});
|
|
499
|
+
}
|
|
500
|
+
/**
|
|
501
|
+
* Create a Catalog
|
|
502
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
503
|
+
* @param catalogName Name of catalog
|
|
504
|
+
* @param resource Resource create parameters.
|
|
505
|
+
* @param options The options parameters.
|
|
506
|
+
*/
|
|
507
|
+
beginCreateOrUpdateAndWait(resourceGroupName, catalogName, resource, options) {
|
|
508
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
509
|
+
const poller = yield this.beginCreateOrUpdate(resourceGroupName, catalogName, resource, options);
|
|
510
|
+
return poller.pollUntilDone();
|
|
511
|
+
});
|
|
512
|
+
}
|
|
513
|
+
/**
|
|
514
|
+
* Update a Catalog
|
|
515
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
516
|
+
* @param catalogName Name of catalog
|
|
517
|
+
* @param properties The resource properties to be updated.
|
|
518
|
+
* @param options The options parameters.
|
|
519
|
+
*/
|
|
520
|
+
update(resourceGroupName, catalogName, properties, options) {
|
|
521
|
+
return this.client.sendOperationRequest({ resourceGroupName, catalogName, properties, options }, updateOperationSpec);
|
|
522
|
+
}
|
|
523
|
+
/**
|
|
524
|
+
* Delete a Catalog
|
|
525
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
526
|
+
* @param catalogName Name of catalog
|
|
527
|
+
* @param options The options parameters.
|
|
528
|
+
*/
|
|
529
|
+
beginDelete(resourceGroupName, catalogName, options) {
|
|
530
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
531
|
+
const directSendOperation = (args, spec) => __awaiter(this, void 0, void 0, function* () {
|
|
532
|
+
return this.client.sendOperationRequest(args, spec);
|
|
533
|
+
});
|
|
534
|
+
const sendOperationFn = (args, spec) => __awaiter(this, void 0, void 0, function* () {
|
|
535
|
+
var _a;
|
|
536
|
+
let currentRawResponse = undefined;
|
|
537
|
+
const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
|
|
538
|
+
const callback = (rawResponse, flatResponse) => {
|
|
539
|
+
currentRawResponse = rawResponse;
|
|
540
|
+
providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
|
|
541
|
+
};
|
|
542
|
+
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
543
|
+
const flatResponse = yield directSendOperation(updatedArgs, spec);
|
|
544
|
+
return {
|
|
545
|
+
flatResponse,
|
|
546
|
+
rawResponse: {
|
|
547
|
+
statusCode: currentRawResponse.status,
|
|
548
|
+
body: currentRawResponse.parsedBody,
|
|
549
|
+
headers: currentRawResponse.headers.toJSON()
|
|
550
|
+
}
|
|
551
|
+
};
|
|
552
|
+
});
|
|
553
|
+
const lro = createLroSpec({
|
|
554
|
+
sendOperationFn,
|
|
555
|
+
args: { resourceGroupName, catalogName, options },
|
|
556
|
+
spec: deleteOperationSpec
|
|
557
|
+
});
|
|
558
|
+
const poller = yield createHttpPoller(lro, {
|
|
559
|
+
restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
|
|
560
|
+
intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
|
|
561
|
+
resourceLocationConfig: "location"
|
|
562
|
+
});
|
|
563
|
+
yield poller.poll();
|
|
564
|
+
return poller;
|
|
565
|
+
});
|
|
566
|
+
}
|
|
567
|
+
/**
|
|
568
|
+
* Delete a Catalog
|
|
569
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
570
|
+
* @param catalogName Name of catalog
|
|
571
|
+
* @param options The options parameters.
|
|
572
|
+
*/
|
|
573
|
+
beginDeleteAndWait(resourceGroupName, catalogName, options) {
|
|
574
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
575
|
+
const poller = yield this.beginDelete(resourceGroupName, catalogName, options);
|
|
576
|
+
return poller.pollUntilDone();
|
|
577
|
+
});
|
|
578
|
+
}
|
|
579
|
+
/**
|
|
580
|
+
* Counts devices in catalog.
|
|
581
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
582
|
+
* @param catalogName Name of catalog
|
|
583
|
+
* @param options The options parameters.
|
|
584
|
+
*/
|
|
585
|
+
countDevices(resourceGroupName, catalogName, options) {
|
|
586
|
+
return this.client.sendOperationRequest({ resourceGroupName, catalogName, options }, countDevicesOperationSpec);
|
|
587
|
+
}
|
|
588
|
+
/**
|
|
589
|
+
* Lists deployments for catalog.
|
|
590
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
591
|
+
* @param catalogName Name of catalog
|
|
592
|
+
* @param options The options parameters.
|
|
593
|
+
*/
|
|
594
|
+
_listDeployments(resourceGroupName, catalogName, options) {
|
|
595
|
+
return this.client.sendOperationRequest({ resourceGroupName, catalogName, options }, listDeploymentsOperationSpec);
|
|
596
|
+
}
|
|
597
|
+
/**
|
|
598
|
+
* List the device groups for the catalog.
|
|
599
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
600
|
+
* @param catalogName Name of catalog
|
|
601
|
+
* @param listDeviceGroupsRequest List device groups for catalog.
|
|
602
|
+
* @param options The options parameters.
|
|
603
|
+
*/
|
|
604
|
+
_listDeviceGroups(resourceGroupName, catalogName, listDeviceGroupsRequest, options) {
|
|
605
|
+
return this.client.sendOperationRequest({ resourceGroupName, catalogName, listDeviceGroupsRequest, options }, listDeviceGroupsOperationSpec);
|
|
606
|
+
}
|
|
607
|
+
/**
|
|
608
|
+
* Lists device insights for catalog.
|
|
609
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
610
|
+
* @param catalogName Name of catalog
|
|
611
|
+
* @param options The options parameters.
|
|
612
|
+
*/
|
|
613
|
+
_listDeviceInsights(resourceGroupName, catalogName, options) {
|
|
614
|
+
return this.client.sendOperationRequest({ resourceGroupName, catalogName, options }, listDeviceInsightsOperationSpec);
|
|
615
|
+
}
|
|
616
|
+
/**
|
|
617
|
+
* Lists devices for catalog.
|
|
618
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
619
|
+
* @param catalogName Name of catalog
|
|
620
|
+
* @param options The options parameters.
|
|
621
|
+
*/
|
|
622
|
+
_listDevices(resourceGroupName, catalogName, options) {
|
|
623
|
+
return this.client.sendOperationRequest({ resourceGroupName, catalogName, options }, listDevicesOperationSpec);
|
|
624
|
+
}
|
|
625
|
+
/**
|
|
626
|
+
* ListBySubscriptionNext
|
|
627
|
+
* @param nextLink The nextLink from the previous successful call to the ListBySubscription method.
|
|
628
|
+
* @param options The options parameters.
|
|
629
|
+
*/
|
|
630
|
+
_listBySubscriptionNext(nextLink, options) {
|
|
631
|
+
return this.client.sendOperationRequest({ nextLink, options }, listBySubscriptionNextOperationSpec);
|
|
632
|
+
}
|
|
633
|
+
/**
|
|
634
|
+
* ListByResourceGroupNext
|
|
635
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
636
|
+
* @param nextLink The nextLink from the previous successful call to the ListByResourceGroup method.
|
|
637
|
+
* @param options The options parameters.
|
|
638
|
+
*/
|
|
639
|
+
_listByResourceGroupNext(resourceGroupName, nextLink, options) {
|
|
640
|
+
return this.client.sendOperationRequest({ resourceGroupName, nextLink, options }, listByResourceGroupNextOperationSpec);
|
|
641
|
+
}
|
|
642
|
+
/**
|
|
643
|
+
* ListDeploymentsNext
|
|
644
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
645
|
+
* @param catalogName Name of catalog
|
|
646
|
+
* @param nextLink The nextLink from the previous successful call to the ListDeployments method.
|
|
647
|
+
* @param options The options parameters.
|
|
648
|
+
*/
|
|
649
|
+
_listDeploymentsNext(resourceGroupName, catalogName, nextLink, options) {
|
|
650
|
+
return this.client.sendOperationRequest({ resourceGroupName, catalogName, nextLink, options }, listDeploymentsNextOperationSpec);
|
|
651
|
+
}
|
|
652
|
+
/**
|
|
653
|
+
* ListDeviceGroupsNext
|
|
654
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
655
|
+
* @param catalogName Name of catalog
|
|
656
|
+
* @param listDeviceGroupsRequest List device groups for catalog.
|
|
657
|
+
* @param nextLink The nextLink from the previous successful call to the ListDeviceGroups method.
|
|
658
|
+
* @param options The options parameters.
|
|
659
|
+
*/
|
|
660
|
+
_listDeviceGroupsNext(resourceGroupName, catalogName, listDeviceGroupsRequest, nextLink, options) {
|
|
661
|
+
return this.client.sendOperationRequest({
|
|
662
|
+
resourceGroupName,
|
|
663
|
+
catalogName,
|
|
664
|
+
listDeviceGroupsRequest,
|
|
665
|
+
nextLink,
|
|
666
|
+
options
|
|
667
|
+
}, listDeviceGroupsNextOperationSpec);
|
|
668
|
+
}
|
|
669
|
+
/**
|
|
670
|
+
* ListDeviceInsightsNext
|
|
671
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
672
|
+
* @param catalogName Name of catalog
|
|
673
|
+
* @param nextLink The nextLink from the previous successful call to the ListDeviceInsights method.
|
|
674
|
+
* @param options The options parameters.
|
|
675
|
+
*/
|
|
676
|
+
_listDeviceInsightsNext(resourceGroupName, catalogName, nextLink, options) {
|
|
677
|
+
return this.client.sendOperationRequest({ resourceGroupName, catalogName, nextLink, options }, listDeviceInsightsNextOperationSpec);
|
|
678
|
+
}
|
|
679
|
+
/**
|
|
680
|
+
* ListDevicesNext
|
|
681
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
682
|
+
* @param catalogName Name of catalog
|
|
683
|
+
* @param nextLink The nextLink from the previous successful call to the ListDevices method.
|
|
684
|
+
* @param options The options parameters.
|
|
685
|
+
*/
|
|
686
|
+
_listDevicesNext(resourceGroupName, catalogName, nextLink, options) {
|
|
687
|
+
return this.client.sendOperationRequest({ resourceGroupName, catalogName, nextLink, options }, listDevicesNextOperationSpec);
|
|
688
|
+
}
|
|
689
|
+
}
|
|
690
|
+
// Operation Specifications
|
|
691
|
+
const serializer = coreClient.createSerializer(Mappers, /* isXml */ false);
|
|
692
|
+
const listBySubscriptionOperationSpec = {
|
|
693
|
+
path: "/subscriptions/{subscriptionId}/providers/Microsoft.AzureSphere/catalogs",
|
|
694
|
+
httpMethod: "GET",
|
|
695
|
+
responses: {
|
|
696
|
+
200: {
|
|
697
|
+
bodyMapper: Mappers.CatalogListResult
|
|
698
|
+
},
|
|
699
|
+
default: {
|
|
700
|
+
bodyMapper: Mappers.ErrorResponse
|
|
701
|
+
}
|
|
702
|
+
},
|
|
703
|
+
queryParameters: [Parameters.apiVersion],
|
|
704
|
+
urlParameters: [Parameters.$host, Parameters.subscriptionId],
|
|
705
|
+
headerParameters: [Parameters.accept],
|
|
706
|
+
serializer
|
|
707
|
+
};
|
|
708
|
+
const listByResourceGroupOperationSpec = {
|
|
709
|
+
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AzureSphere/catalogs",
|
|
710
|
+
httpMethod: "GET",
|
|
711
|
+
responses: {
|
|
712
|
+
200: {
|
|
713
|
+
bodyMapper: Mappers.CatalogListResult
|
|
714
|
+
},
|
|
715
|
+
default: {
|
|
716
|
+
bodyMapper: Mappers.ErrorResponse
|
|
717
|
+
}
|
|
718
|
+
},
|
|
719
|
+
queryParameters: [Parameters.apiVersion],
|
|
720
|
+
urlParameters: [
|
|
721
|
+
Parameters.$host,
|
|
722
|
+
Parameters.subscriptionId,
|
|
723
|
+
Parameters.resourceGroupName
|
|
724
|
+
],
|
|
725
|
+
headerParameters: [Parameters.accept],
|
|
726
|
+
serializer
|
|
727
|
+
};
|
|
728
|
+
const getOperationSpec = {
|
|
729
|
+
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AzureSphere/catalogs/{catalogName}",
|
|
730
|
+
httpMethod: "GET",
|
|
731
|
+
responses: {
|
|
732
|
+
200: {
|
|
733
|
+
bodyMapper: Mappers.Catalog
|
|
734
|
+
},
|
|
735
|
+
default: {
|
|
736
|
+
bodyMapper: Mappers.ErrorResponse
|
|
737
|
+
}
|
|
738
|
+
},
|
|
739
|
+
queryParameters: [Parameters.apiVersion],
|
|
740
|
+
urlParameters: [
|
|
741
|
+
Parameters.$host,
|
|
742
|
+
Parameters.subscriptionId,
|
|
743
|
+
Parameters.resourceGroupName,
|
|
744
|
+
Parameters.catalogName
|
|
745
|
+
],
|
|
746
|
+
headerParameters: [Parameters.accept],
|
|
747
|
+
serializer
|
|
748
|
+
};
|
|
749
|
+
const createOrUpdateOperationSpec = {
|
|
750
|
+
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AzureSphere/catalogs/{catalogName}",
|
|
751
|
+
httpMethod: "PUT",
|
|
752
|
+
responses: {
|
|
753
|
+
200: {
|
|
754
|
+
bodyMapper: Mappers.Catalog
|
|
755
|
+
},
|
|
756
|
+
201: {
|
|
757
|
+
bodyMapper: Mappers.Catalog
|
|
758
|
+
},
|
|
759
|
+
202: {
|
|
760
|
+
bodyMapper: Mappers.Catalog
|
|
761
|
+
},
|
|
762
|
+
204: {
|
|
763
|
+
bodyMapper: Mappers.Catalog
|
|
764
|
+
},
|
|
765
|
+
default: {
|
|
766
|
+
bodyMapper: Mappers.ErrorResponse
|
|
767
|
+
}
|
|
768
|
+
},
|
|
769
|
+
requestBody: Parameters.resource,
|
|
770
|
+
queryParameters: [Parameters.apiVersion],
|
|
771
|
+
urlParameters: [
|
|
772
|
+
Parameters.$host,
|
|
773
|
+
Parameters.subscriptionId,
|
|
774
|
+
Parameters.resourceGroupName,
|
|
775
|
+
Parameters.catalogName
|
|
776
|
+
],
|
|
777
|
+
headerParameters: [Parameters.accept, Parameters.contentType],
|
|
778
|
+
mediaType: "json",
|
|
779
|
+
serializer
|
|
780
|
+
};
|
|
781
|
+
const updateOperationSpec = {
|
|
782
|
+
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AzureSphere/catalogs/{catalogName}",
|
|
783
|
+
httpMethod: "PATCH",
|
|
784
|
+
responses: {
|
|
785
|
+
200: {
|
|
786
|
+
bodyMapper: Mappers.Catalog
|
|
787
|
+
},
|
|
788
|
+
default: {
|
|
789
|
+
bodyMapper: Mappers.ErrorResponse
|
|
790
|
+
}
|
|
791
|
+
},
|
|
792
|
+
requestBody: Parameters.properties,
|
|
793
|
+
queryParameters: [Parameters.apiVersion],
|
|
794
|
+
urlParameters: [
|
|
795
|
+
Parameters.$host,
|
|
796
|
+
Parameters.subscriptionId,
|
|
797
|
+
Parameters.resourceGroupName,
|
|
798
|
+
Parameters.catalogName
|
|
799
|
+
],
|
|
800
|
+
headerParameters: [Parameters.accept, Parameters.contentType],
|
|
801
|
+
mediaType: "json",
|
|
802
|
+
serializer
|
|
803
|
+
};
|
|
804
|
+
const deleteOperationSpec = {
|
|
805
|
+
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AzureSphere/catalogs/{catalogName}",
|
|
806
|
+
httpMethod: "DELETE",
|
|
807
|
+
responses: {
|
|
808
|
+
200: {},
|
|
809
|
+
201: {},
|
|
810
|
+
202: {},
|
|
811
|
+
204: {},
|
|
812
|
+
default: {
|
|
813
|
+
bodyMapper: Mappers.ErrorResponse
|
|
814
|
+
}
|
|
815
|
+
},
|
|
816
|
+
queryParameters: [Parameters.apiVersion],
|
|
817
|
+
urlParameters: [
|
|
818
|
+
Parameters.$host,
|
|
819
|
+
Parameters.subscriptionId,
|
|
820
|
+
Parameters.resourceGroupName,
|
|
821
|
+
Parameters.catalogName
|
|
822
|
+
],
|
|
823
|
+
headerParameters: [Parameters.accept],
|
|
824
|
+
serializer
|
|
825
|
+
};
|
|
826
|
+
const countDevicesOperationSpec = {
|
|
827
|
+
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AzureSphere/catalogs/{catalogName}/countDevices",
|
|
828
|
+
httpMethod: "POST",
|
|
829
|
+
responses: {
|
|
830
|
+
200: {
|
|
831
|
+
bodyMapper: Mappers.CountDeviceResponse
|
|
832
|
+
},
|
|
833
|
+
default: {
|
|
834
|
+
bodyMapper: Mappers.ErrorResponse
|
|
835
|
+
}
|
|
836
|
+
},
|
|
837
|
+
queryParameters: [Parameters.apiVersion],
|
|
838
|
+
urlParameters: [
|
|
839
|
+
Parameters.$host,
|
|
840
|
+
Parameters.subscriptionId,
|
|
841
|
+
Parameters.resourceGroupName,
|
|
842
|
+
Parameters.catalogName
|
|
843
|
+
],
|
|
844
|
+
headerParameters: [Parameters.accept],
|
|
845
|
+
serializer
|
|
846
|
+
};
|
|
847
|
+
const listDeploymentsOperationSpec = {
|
|
848
|
+
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AzureSphere/catalogs/{catalogName}/listDeployments",
|
|
849
|
+
httpMethod: "POST",
|
|
850
|
+
responses: {
|
|
851
|
+
200: {
|
|
852
|
+
bodyMapper: Mappers.DeploymentListResult
|
|
853
|
+
},
|
|
854
|
+
default: {
|
|
855
|
+
bodyMapper: Mappers.ErrorResponse
|
|
856
|
+
}
|
|
857
|
+
},
|
|
858
|
+
queryParameters: [
|
|
859
|
+
Parameters.apiVersion,
|
|
860
|
+
Parameters.filter,
|
|
861
|
+
Parameters.top,
|
|
862
|
+
Parameters.skip,
|
|
863
|
+
Parameters.maxpagesize
|
|
864
|
+
],
|
|
865
|
+
urlParameters: [
|
|
866
|
+
Parameters.$host,
|
|
867
|
+
Parameters.subscriptionId,
|
|
868
|
+
Parameters.resourceGroupName,
|
|
869
|
+
Parameters.catalogName
|
|
870
|
+
],
|
|
871
|
+
headerParameters: [Parameters.accept],
|
|
872
|
+
serializer
|
|
873
|
+
};
|
|
874
|
+
const listDeviceGroupsOperationSpec = {
|
|
875
|
+
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AzureSphere/catalogs/{catalogName}/listDeviceGroups",
|
|
876
|
+
httpMethod: "POST",
|
|
877
|
+
responses: {
|
|
878
|
+
200: {
|
|
879
|
+
bodyMapper: Mappers.DeviceGroupListResult
|
|
880
|
+
},
|
|
881
|
+
default: {
|
|
882
|
+
bodyMapper: Mappers.ErrorResponse
|
|
883
|
+
}
|
|
884
|
+
},
|
|
885
|
+
requestBody: Parameters.listDeviceGroupsRequest,
|
|
886
|
+
queryParameters: [
|
|
887
|
+
Parameters.apiVersion,
|
|
888
|
+
Parameters.filter,
|
|
889
|
+
Parameters.top,
|
|
890
|
+
Parameters.skip,
|
|
891
|
+
Parameters.maxpagesize
|
|
892
|
+
],
|
|
893
|
+
urlParameters: [
|
|
894
|
+
Parameters.$host,
|
|
895
|
+
Parameters.subscriptionId,
|
|
896
|
+
Parameters.resourceGroupName,
|
|
897
|
+
Parameters.catalogName
|
|
898
|
+
],
|
|
899
|
+
headerParameters: [Parameters.accept, Parameters.contentType],
|
|
900
|
+
mediaType: "json",
|
|
901
|
+
serializer
|
|
902
|
+
};
|
|
903
|
+
const listDeviceInsightsOperationSpec = {
|
|
904
|
+
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AzureSphere/catalogs/{catalogName}/listDeviceInsights",
|
|
905
|
+
httpMethod: "POST",
|
|
906
|
+
responses: {
|
|
907
|
+
200: {
|
|
908
|
+
bodyMapper: Mappers.PagedDeviceInsight
|
|
909
|
+
},
|
|
910
|
+
default: {
|
|
911
|
+
bodyMapper: Mappers.ErrorResponse
|
|
912
|
+
}
|
|
913
|
+
},
|
|
914
|
+
queryParameters: [
|
|
915
|
+
Parameters.apiVersion,
|
|
916
|
+
Parameters.filter,
|
|
917
|
+
Parameters.top,
|
|
918
|
+
Parameters.skip,
|
|
919
|
+
Parameters.maxpagesize
|
|
920
|
+
],
|
|
921
|
+
urlParameters: [
|
|
922
|
+
Parameters.$host,
|
|
923
|
+
Parameters.subscriptionId,
|
|
924
|
+
Parameters.resourceGroupName,
|
|
925
|
+
Parameters.catalogName
|
|
926
|
+
],
|
|
927
|
+
headerParameters: [Parameters.accept],
|
|
928
|
+
serializer
|
|
929
|
+
};
|
|
930
|
+
const listDevicesOperationSpec = {
|
|
931
|
+
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AzureSphere/catalogs/{catalogName}/listDevices",
|
|
932
|
+
httpMethod: "POST",
|
|
933
|
+
responses: {
|
|
934
|
+
200: {
|
|
935
|
+
bodyMapper: Mappers.DeviceListResult
|
|
936
|
+
},
|
|
937
|
+
default: {
|
|
938
|
+
bodyMapper: Mappers.ErrorResponse
|
|
939
|
+
}
|
|
940
|
+
},
|
|
941
|
+
queryParameters: [
|
|
942
|
+
Parameters.apiVersion,
|
|
943
|
+
Parameters.filter,
|
|
944
|
+
Parameters.top,
|
|
945
|
+
Parameters.skip,
|
|
946
|
+
Parameters.maxpagesize
|
|
947
|
+
],
|
|
948
|
+
urlParameters: [
|
|
949
|
+
Parameters.$host,
|
|
950
|
+
Parameters.subscriptionId,
|
|
951
|
+
Parameters.resourceGroupName,
|
|
952
|
+
Parameters.catalogName
|
|
953
|
+
],
|
|
954
|
+
headerParameters: [Parameters.accept],
|
|
955
|
+
serializer
|
|
956
|
+
};
|
|
957
|
+
const listBySubscriptionNextOperationSpec = {
|
|
958
|
+
path: "{nextLink}",
|
|
959
|
+
httpMethod: "GET",
|
|
960
|
+
responses: {
|
|
961
|
+
200: {
|
|
962
|
+
bodyMapper: Mappers.CatalogListResult
|
|
963
|
+
},
|
|
964
|
+
default: {
|
|
965
|
+
bodyMapper: Mappers.ErrorResponse
|
|
966
|
+
}
|
|
967
|
+
},
|
|
968
|
+
urlParameters: [
|
|
969
|
+
Parameters.$host,
|
|
970
|
+
Parameters.nextLink,
|
|
971
|
+
Parameters.subscriptionId
|
|
972
|
+
],
|
|
973
|
+
headerParameters: [Parameters.accept],
|
|
974
|
+
serializer
|
|
975
|
+
};
|
|
976
|
+
const listByResourceGroupNextOperationSpec = {
|
|
977
|
+
path: "{nextLink}",
|
|
978
|
+
httpMethod: "GET",
|
|
979
|
+
responses: {
|
|
980
|
+
200: {
|
|
981
|
+
bodyMapper: Mappers.CatalogListResult
|
|
982
|
+
},
|
|
983
|
+
default: {
|
|
984
|
+
bodyMapper: Mappers.ErrorResponse
|
|
985
|
+
}
|
|
986
|
+
},
|
|
987
|
+
urlParameters: [
|
|
988
|
+
Parameters.$host,
|
|
989
|
+
Parameters.nextLink,
|
|
990
|
+
Parameters.subscriptionId,
|
|
991
|
+
Parameters.resourceGroupName
|
|
992
|
+
],
|
|
993
|
+
headerParameters: [Parameters.accept],
|
|
994
|
+
serializer
|
|
995
|
+
};
|
|
996
|
+
const listDeploymentsNextOperationSpec = {
|
|
997
|
+
path: "{nextLink}",
|
|
998
|
+
httpMethod: "GET",
|
|
999
|
+
responses: {
|
|
1000
|
+
200: {
|
|
1001
|
+
bodyMapper: Mappers.DeploymentListResult
|
|
1002
|
+
},
|
|
1003
|
+
default: {
|
|
1004
|
+
bodyMapper: Mappers.ErrorResponse
|
|
1005
|
+
}
|
|
1006
|
+
},
|
|
1007
|
+
urlParameters: [
|
|
1008
|
+
Parameters.$host,
|
|
1009
|
+
Parameters.nextLink,
|
|
1010
|
+
Parameters.subscriptionId,
|
|
1011
|
+
Parameters.resourceGroupName,
|
|
1012
|
+
Parameters.catalogName
|
|
1013
|
+
],
|
|
1014
|
+
headerParameters: [Parameters.accept],
|
|
1015
|
+
serializer
|
|
1016
|
+
};
|
|
1017
|
+
const listDeviceGroupsNextOperationSpec = {
|
|
1018
|
+
path: "{nextLink}",
|
|
1019
|
+
httpMethod: "GET",
|
|
1020
|
+
responses: {
|
|
1021
|
+
200: {
|
|
1022
|
+
bodyMapper: Mappers.DeviceGroupListResult
|
|
1023
|
+
},
|
|
1024
|
+
default: {
|
|
1025
|
+
bodyMapper: Mappers.ErrorResponse
|
|
1026
|
+
}
|
|
1027
|
+
},
|
|
1028
|
+
urlParameters: [
|
|
1029
|
+
Parameters.$host,
|
|
1030
|
+
Parameters.nextLink,
|
|
1031
|
+
Parameters.subscriptionId,
|
|
1032
|
+
Parameters.resourceGroupName,
|
|
1033
|
+
Parameters.catalogName
|
|
1034
|
+
],
|
|
1035
|
+
headerParameters: [Parameters.accept, Parameters.contentType],
|
|
1036
|
+
mediaType: "json",
|
|
1037
|
+
serializer
|
|
1038
|
+
};
|
|
1039
|
+
const listDeviceInsightsNextOperationSpec = {
|
|
1040
|
+
path: "{nextLink}",
|
|
1041
|
+
httpMethod: "GET",
|
|
1042
|
+
responses: {
|
|
1043
|
+
200: {
|
|
1044
|
+
bodyMapper: Mappers.PagedDeviceInsight
|
|
1045
|
+
},
|
|
1046
|
+
default: {
|
|
1047
|
+
bodyMapper: Mappers.ErrorResponse
|
|
1048
|
+
}
|
|
1049
|
+
},
|
|
1050
|
+
urlParameters: [
|
|
1051
|
+
Parameters.$host,
|
|
1052
|
+
Parameters.nextLink,
|
|
1053
|
+
Parameters.subscriptionId,
|
|
1054
|
+
Parameters.resourceGroupName,
|
|
1055
|
+
Parameters.catalogName
|
|
1056
|
+
],
|
|
1057
|
+
headerParameters: [Parameters.accept],
|
|
1058
|
+
serializer
|
|
1059
|
+
};
|
|
1060
|
+
const listDevicesNextOperationSpec = {
|
|
1061
|
+
path: "{nextLink}",
|
|
1062
|
+
httpMethod: "GET",
|
|
1063
|
+
responses: {
|
|
1064
|
+
200: {
|
|
1065
|
+
bodyMapper: Mappers.DeviceListResult
|
|
1066
|
+
},
|
|
1067
|
+
default: {
|
|
1068
|
+
bodyMapper: Mappers.ErrorResponse
|
|
1069
|
+
}
|
|
1070
|
+
},
|
|
1071
|
+
urlParameters: [
|
|
1072
|
+
Parameters.$host,
|
|
1073
|
+
Parameters.nextLink,
|
|
1074
|
+
Parameters.subscriptionId,
|
|
1075
|
+
Parameters.resourceGroupName,
|
|
1076
|
+
Parameters.catalogName
|
|
1077
|
+
],
|
|
1078
|
+
headerParameters: [Parameters.accept],
|
|
1079
|
+
serializer
|
|
1080
|
+
};
|
|
1081
|
+
//# sourceMappingURL=catalogs.js.map
|